@syncfusion/ej2-schedule 19.4.40 → 19.4.47
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 +20 -1
- 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 +59 -43
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +59 -43
- 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 +13 -13
- package/src/schedule/actions/drag.js +1 -1
- package/src/schedule/actions/resize.js +44 -37
- package/src/schedule/base/css-constant.d.ts +6 -0
- package/src/schedule/base/css-constant.js +6 -0
- package/src/schedule/event-renderer/month.js +2 -1
- package/src/schedule/renderer/header-renderer.js +1 -1
- package/src/schedule/renderer/view-base.js +5 -3
- package/styles/bootstrap-dark.css +4 -0
- package/styles/bootstrap.css +4 -0
- package/styles/bootstrap4.css +4 -0
- package/styles/bootstrap5-dark.css +4 -0
- package/styles/bootstrap5.css +4 -0
- package/styles/fabric-dark.css +4 -0
- package/styles/fabric.css +4 -0
- package/styles/highcontrast-light.css +4 -0
- package/styles/highcontrast.css +4 -0
- package/styles/material-dark.css +4 -0
- package/styles/material.css +4 -0
- package/styles/schedule/_layout.scss +4 -0
- package/styles/schedule/bootstrap-dark.css +4 -0
- package/styles/schedule/bootstrap.css +4 -0
- package/styles/schedule/bootstrap4.css +4 -0
- package/styles/schedule/bootstrap5-dark.css +4 -0
- package/styles/schedule/bootstrap5.css +4 -0
- package/styles/schedule/fabric-dark.css +4 -0
- package/styles/schedule/fabric.css +4 -0
- package/styles/schedule/highcontrast-light.css +4 -0
- package/styles/schedule/highcontrast.css +4 -0
- package/styles/schedule/material-dark.css +4 -0
- package/styles/schedule/material.css +4 -0
- package/styles/schedule/tailwind-dark.css +4 -0
- package/styles/schedule/tailwind.css +4 -0
- package/styles/tailwind-dark.css +4 -0
- package/styles/tailwind.css +4 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.4.
|
|
3
|
+
* version : 19.4.47
|
|
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@19.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-schedule@19.4.42",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-CJKe5R/fsdYOFi+vj+Gws1FDhKaOdqL3F6sqFlUuHjl9htd4FZ5wZnF7+Nt0Gz8YLHkpzijmgtImb2An2EHQXQ==",
|
|
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": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-19.4.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-19.4.42.tgz",
|
|
27
|
+
"_shasum": "627a36b9b03ee584d4adde17fd4e77873d0afc8c",
|
|
28
28
|
"_spec": "@syncfusion/ej2-schedule@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~19.4.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~19.4.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~19.4.
|
|
41
|
-
"@syncfusion/ej2-data": "~19.4.
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~19.4.
|
|
38
|
+
"@syncfusion/ej2-base": "~19.4.42",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~19.4.42",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~19.4.42",
|
|
41
|
+
"@syncfusion/ej2-data": "~19.4.47",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~19.4.47",
|
|
43
43
|
"@syncfusion/ej2-excel-export": "~19.4.38",
|
|
44
|
-
"@syncfusion/ej2-inputs": "~19.4.
|
|
44
|
+
"@syncfusion/ej2-inputs": "~19.4.47",
|
|
45
45
|
"@syncfusion/ej2-lists": "~19.4.38",
|
|
46
|
-
"@syncfusion/ej2-navigations": "~19.4.
|
|
47
|
-
"@syncfusion/ej2-popups": "~19.4.
|
|
46
|
+
"@syncfusion/ej2-navigations": "~19.4.47",
|
|
47
|
+
"@syncfusion/ej2-popups": "~19.4.47"
|
|
48
48
|
},
|
|
49
49
|
"deprecated": false,
|
|
50
50
|
"description": "Flexible scheduling library with more built-in features and enhanced customization options similar to outlook and google calendar, allowing the users to plan and manage their appointments with efficient data-binding support.",
|
|
@@ -81,6 +81,6 @@
|
|
|
81
81
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
82
82
|
},
|
|
83
83
|
"typings": "index.d.ts",
|
|
84
|
-
"version": "19.4.
|
|
84
|
+
"version": "19.4.47",
|
|
85
85
|
"sideEffects": false
|
|
86
86
|
}
|
|
@@ -1073,7 +1073,7 @@ var DragAndDrop = /** @class */ (function (_super) {
|
|
|
1073
1073
|
if (!isNullOrUndefined(targetDate)) {
|
|
1074
1074
|
if (!this.parent.activeViewOptions.timeScale.enable || (this.parent.currentView === 'TimelineMonth')) {
|
|
1075
1075
|
var eventSrt = eventObj[this.parent.eventFields.startTime];
|
|
1076
|
-
eventStart = new Date(
|
|
1076
|
+
eventStart = new Date(targetDate.setHours(eventSrt.getHours(), eventSrt.getMinutes(), eventSrt.getSeconds()));
|
|
1077
1077
|
}
|
|
1078
1078
|
else {
|
|
1079
1079
|
eventStart = targetDate;
|
|
@@ -81,9 +81,9 @@ var Resize = /** @class */ (function (_super) {
|
|
|
81
81
|
bottom: resizeTarget.classList.contains(cls.BOTTOM_RESIZE_HANDLER)
|
|
82
82
|
};
|
|
83
83
|
_this.actionObj.groupIndex = _this.parent.uiStateValues.isGroupAdaptive ? _this.parent.uiStateValues.groupIndex : 0;
|
|
84
|
-
var workCell = _this.parent.element.querySelector('.' + cls.WORK_CELLS_CLASS);
|
|
85
|
-
_this.actionObj.cellWidth = workCell.
|
|
86
|
-
_this.actionObj.cellHeight = workCell.
|
|
84
|
+
var workCell = _this.parent.element.querySelector('.' + cls.WORK_CELLS_CLASS).getBoundingClientRect();
|
|
85
|
+
_this.actionObj.cellWidth = workCell.width;
|
|
86
|
+
_this.actionObj.cellHeight = workCell.height;
|
|
87
87
|
var hRows = _this.parent.activeViewOptions.headerRows.map(function (row) { return row.option; });
|
|
88
88
|
if (_this.parent.activeView.isTimelineView() && hRows.length > 0 && ['Date', 'Hour'].indexOf(hRows.slice(-1)[0]) < 0) {
|
|
89
89
|
var tr = _this.parent.getContentTable().querySelector('tr');
|
|
@@ -93,8 +93,9 @@ var Resize = /** @class */ (function (_super) {
|
|
|
93
93
|
var td = tdCollections_1[_i];
|
|
94
94
|
noOfDays += parseInt(td.getAttribute('colspan'), 10);
|
|
95
95
|
}
|
|
96
|
-
|
|
97
|
-
_this.actionObj.
|
|
96
|
+
var trRect = tr.getBoundingClientRect();
|
|
97
|
+
_this.actionObj.cellWidth = trRect.width / noOfDays;
|
|
98
|
+
_this.actionObj.cellHeight = trRect.height;
|
|
98
99
|
}
|
|
99
100
|
var pages = _this.getPageCoordinates(e);
|
|
100
101
|
_this.actionObj.X = pages.pageX;
|
|
@@ -345,12 +346,12 @@ var Resize = /** @class */ (function (_super) {
|
|
|
345
346
|
var eventEnd = new Date(this.actionObj.event[this.parent.eventFields.endTime].getTime());
|
|
346
347
|
var resizeTime;
|
|
347
348
|
var isDateHeader = false;
|
|
349
|
+
var headerName = this.parent.currentView;
|
|
348
350
|
var isTimeViews = ['TimelineDay', 'TimelineWeek', 'TimelineWorkWeek'].indexOf(this.parent.currentView) > -1;
|
|
349
351
|
var isTimelineMonth = this.parent.currentView === 'TimelineMonth';
|
|
350
352
|
var isWithoutScale = isTimelineMonth || isTimeViews && !this.parent.activeViewOptions.timeScale.enable;
|
|
351
353
|
if (this.parent.activeView.isTimelineView()) {
|
|
352
354
|
var tr = this.parent.getContentTable().querySelector('tr');
|
|
353
|
-
var headerName = this.parent.currentView;
|
|
354
355
|
if (this.parent.activeViewOptions.headerRows.length > 0) {
|
|
355
356
|
var rows = this.parent.activeViewOptions.headerRows.map(function (row) { return row.option; });
|
|
356
357
|
headerName = rows.slice(-1)[0];
|
|
@@ -362,6 +363,11 @@ var Resize = /** @class */ (function (_super) {
|
|
|
362
363
|
var cellIndex = 0;
|
|
363
364
|
var tdCollections = [].slice.call(tr.children);
|
|
364
365
|
var isLastCell = false;
|
|
366
|
+
var pixelsPerMinute = this.actionObj.cellWidth / (this.parent.activeViewOptions.timeScale.interval /
|
|
367
|
+
this.parent.activeViewOptions.timeScale.slotCount);
|
|
368
|
+
var offset = parseFloat(this.parent.enableRtl ? this.actionObj.clone.style.right :
|
|
369
|
+
this.actionObj.clone.style.left);
|
|
370
|
+
offset = Math.round(offset / pixelsPerMinute) * pixelsPerMinute;
|
|
365
371
|
if (['Year', 'Month', 'Week', 'Date'].indexOf(headerName) !== -1) {
|
|
366
372
|
var noOfDays = 0;
|
|
367
373
|
for (var _i = 0, tdCollections_2 = tdCollections; _i < tdCollections_2.length; _i++) {
|
|
@@ -370,28 +376,28 @@ var Resize = /** @class */ (function (_super) {
|
|
|
370
376
|
}
|
|
371
377
|
var offsetValue = this.parent.enableRtl ? parseInt(this.actionObj.clone.style.right, 10) :
|
|
372
378
|
parseInt(this.actionObj.clone.style.left, 10);
|
|
379
|
+
offsetValue = Math.round(offsetValue / this.actionObj.cellWidth) * this.actionObj.cellWidth;
|
|
373
380
|
if (!isLeft) {
|
|
374
|
-
offsetValue += (this.actionObj.clone.
|
|
381
|
+
offsetValue += (this.actionObj.clone.getBoundingClientRect().width - this.actionObj.cellWidth);
|
|
375
382
|
}
|
|
376
|
-
cellIndex = Math.floor(offsetValue / Math.floor(tr.
|
|
383
|
+
cellIndex = Math.floor(offsetValue / Math.floor(tr.getBoundingClientRect().width / noOfDays));
|
|
377
384
|
isDateHeader = isTimeViews && headerName === 'Date';
|
|
378
|
-
cellIndex = isLeft ? cellIndex :
|
|
385
|
+
cellIndex = isLeft ? cellIndex : isTimelineMonth ? cellIndex + 1 : cellIndex;
|
|
379
386
|
isLastCell = cellIndex === tdCollections.length;
|
|
380
387
|
cellIndex = (cellIndex < 0) ? 0 : (cellIndex >= noOfDays) ? noOfDays - 1 : cellIndex;
|
|
381
388
|
}
|
|
382
389
|
else {
|
|
383
390
|
var cellWidth = this.actionObj.cellWidth;
|
|
384
|
-
cellIndex = isLeft ? Math.floor(
|
|
385
|
-
Math.ceil((
|
|
386
|
-
this.actionObj.cellWidth);
|
|
391
|
+
cellIndex = isLeft ? Math.floor(offset / this.actionObj.cellWidth) :
|
|
392
|
+
Math.ceil((offset + (this.actionObj.clone.getBoundingClientRect().width - cellWidth)) / this.actionObj.cellWidth);
|
|
387
393
|
if (this.parent.enableRtl) {
|
|
388
394
|
var cellOffsetWidth = 0;
|
|
389
395
|
if (headerName === 'TimelineMonth' || (!this.parent.activeViewOptions.timeScale.enable &&
|
|
390
396
|
!isTimelineMonth)) {
|
|
391
397
|
cellOffsetWidth = this.actionObj.cellWidth;
|
|
392
398
|
}
|
|
393
|
-
var offsetWidth = (Math.floor(
|
|
394
|
-
this.actionObj.cellWidth) + (isLeft ? 0 : this.actionObj.clone.
|
|
399
|
+
var offsetWidth = (Math.floor(offset / this.actionObj.cellWidth) *
|
|
400
|
+
this.actionObj.cellWidth) + (isLeft ? 0 : this.actionObj.clone.getBoundingClientRect().width - cellOffsetWidth);
|
|
395
401
|
cellIndex = Math.floor(offsetWidth / this.actionObj.cellWidth);
|
|
396
402
|
}
|
|
397
403
|
isLastCell = cellIndex === tdCollections.length;
|
|
@@ -409,13 +415,11 @@ var Resize = /** @class */ (function (_super) {
|
|
|
409
415
|
resizeTime = new Date(resizeDate.setHours(resizeTime.getHours(), resizeTime.getMinutes(), resizeTime.getSeconds()));
|
|
410
416
|
}
|
|
411
417
|
else {
|
|
412
|
-
var offsetValue = this.parent.enableRtl ? parseFloat(this.actionObj.clone.style.right) :
|
|
413
|
-
parseFloat(this.actionObj.clone.style.left);
|
|
414
418
|
if (!isLeft) {
|
|
415
|
-
|
|
419
|
+
offset += this.actionObj.clone.getBoundingClientRect().width;
|
|
416
420
|
}
|
|
417
421
|
var spanMinutes = Math.ceil((this.actionObj.slotInterval / this.actionObj.cellWidth) *
|
|
418
|
-
(
|
|
422
|
+
(offset - Math.floor(offset / this.actionObj.cellWidth) * this.actionObj.cellWidth));
|
|
419
423
|
spanMinutes = (isLastCell || (!isLeft && spanMinutes === 0)) ? this.actionObj.slotInterval : spanMinutes;
|
|
420
424
|
resizeTime = new Date(resizeDate.getTime());
|
|
421
425
|
resizeTime.setMinutes(resizeTime.getMinutes() + spanMinutes);
|
|
@@ -424,9 +428,10 @@ var Resize = /** @class */ (function (_super) {
|
|
|
424
428
|
}
|
|
425
429
|
else {
|
|
426
430
|
var cloneIndex = closest(this.actionObj.clone, 'td').cellIndex;
|
|
427
|
-
var originalWidth = Math.ceil((isLeft ? this.actionObj.element.
|
|
428
|
-
this.actionObj.cellWidth;
|
|
429
|
-
var noOfDays = Math.ceil((this.actionObj.clone.
|
|
431
|
+
var originalWidth = Math.ceil((isLeft ? this.actionObj.element.getBoundingClientRect().width : 0) /
|
|
432
|
+
this.actionObj.cellWidth) * this.actionObj.cellWidth;
|
|
433
|
+
var noOfDays = Math.ceil((this.actionObj.clone.getBoundingClientRect().width - originalWidth) /
|
|
434
|
+
this.actionObj.cellWidth);
|
|
430
435
|
var tr = closest(this.actionObj.clone, 'tr');
|
|
431
436
|
var dayIndex = isLeft ? cloneIndex - noOfDays : cloneIndex + noOfDays - 1;
|
|
432
437
|
dayIndex = this.getIndex(dayIndex);
|
|
@@ -446,8 +451,8 @@ var Resize = /** @class */ (function (_super) {
|
|
|
446
451
|
}
|
|
447
452
|
else {
|
|
448
453
|
var isTimeScaleViews = isTimeViews && this.parent.activeViewOptions.timeScale.enable;
|
|
449
|
-
var resizeEnd = ((!isTimeScaleViews || isDateHeader
|
|
450
|
-
util.addDays(resizeTime, 1) : resizeTime;
|
|
454
|
+
var resizeEnd = ((!isTimeScaleViews || isDateHeader || isTimeViews && ['Week', 'Month', 'Year'].indexOf(headerName) > -1)
|
|
455
|
+
&& resizeTime.getHours() === 0 && resizeTime.getMinutes() === 0) ? util.addDays(resizeTime, 1) : resizeTime;
|
|
451
456
|
if (isWithoutScale && (resizeEnd.getTime() - eventStart.getTime()) <= 0) {
|
|
452
457
|
resizeEnd = util.addDays(util.resetTime(eventStart), 1);
|
|
453
458
|
}
|
|
@@ -484,29 +489,30 @@ var Resize = /** @class */ (function (_super) {
|
|
|
484
489
|
var slotInterval = (this.actionObj.cellWidth / this.actionObj.slotInterval) * this.actionObj.interval;
|
|
485
490
|
var pageWidth = isLeft ? (this.actionObj.X - this.actionObj.pageX) : (this.actionObj.pageX - this.actionObj.X);
|
|
486
491
|
var targetWidth = isTimelineView ?
|
|
487
|
-
(this.actionObj.element.
|
|
488
|
-
this.parent.currentView === 'Month' ? this.actionObj.element.
|
|
489
|
-
Math.ceil(this.actionObj.element.
|
|
492
|
+
(this.actionObj.element.getBoundingClientRect().width / this.actionObj.cellWidth) * this.actionObj.cellWidth :
|
|
493
|
+
this.parent.currentView === 'Month' ? this.actionObj.element.getBoundingClientRect().width :
|
|
494
|
+
Math.ceil(this.actionObj.element.getBoundingClientRect().width / this.actionObj.cellWidth) * this.actionObj.cellWidth;
|
|
490
495
|
var offsetWidth = targetWidth + (Math.ceil(pageWidth / this.actionObj.cellWidth) * this.actionObj.cellWidth);
|
|
496
|
+
var left = (this.parent.enableRtl) ? parseInt(this.actionObj.element.style.right, 10) : this.actionObj.clone.offsetLeft;
|
|
491
497
|
if (isTimeViews) {
|
|
492
|
-
offsetWidth = targetWidth + (
|
|
493
|
-
|
|
498
|
+
offsetWidth = targetWidth + (Math.ceil(pageWidth / slotInterval) * slotInterval);
|
|
499
|
+
offsetWidth = (Math.round((left + offsetWidth) / slotInterval) * slotInterval) - left;
|
|
494
500
|
this.actionObj.event[this.parent.eventFields.isAllDay] = false;
|
|
495
501
|
}
|
|
496
502
|
var width = !isLeft && ((offsetWidth + this.actionObj.clone.offsetLeft > this.scrollArgs.width)) ?
|
|
497
|
-
this.actionObj.clone.
|
|
503
|
+
this.actionObj.clone.getBoundingClientRect().width : (offsetWidth < this.actionObj.cellWidth) ? offsetWidth : offsetWidth;
|
|
498
504
|
if (this.parent.enableRtl) {
|
|
499
505
|
var rightValue = isTimelineView ? parseInt(this.actionObj.element.style.right, 10) :
|
|
500
506
|
-(offsetWidth - this.actionObj.cellWidth);
|
|
501
507
|
rightValue = isTimelineView ? rightValue : isLeft ? 0 : rightValue > 0 ? 0 : rightValue;
|
|
502
508
|
if (isTimelineView && !isLeft) {
|
|
503
|
-
rightValue = Math.ceil((this.actionObj.element.offsetLeft + (this.actionObj.element.
|
|
509
|
+
rightValue = Math.ceil((this.actionObj.element.offsetLeft + (this.actionObj.element.getBoundingClientRect().width +
|
|
504
510
|
(this.actionObj.pageX - this.actionObj.X))) / slotInterval) * slotInterval;
|
|
505
511
|
rightValue = rightValue < 0 ? Math.abs(rightValue) : -rightValue;
|
|
506
512
|
}
|
|
507
513
|
rightValue = rightValue >= this.scrollArgs.width ? this.scrollArgs.width - this.actionObj.cellWidth : rightValue;
|
|
508
514
|
styles.right = formatUnit(rightValue);
|
|
509
|
-
width = width + rightValue > this.scrollArgs.width ? this.actionObj.clone.
|
|
515
|
+
width = width + rightValue > this.scrollArgs.width ? this.actionObj.clone.getBoundingClientRect().width : width;
|
|
510
516
|
}
|
|
511
517
|
else {
|
|
512
518
|
var offsetLeft = isLeft ? this.actionObj.element.offsetLeft - (this.actionObj.X - this.actionObj.pageX) :
|
|
@@ -514,12 +520,12 @@ var Resize = /** @class */ (function (_super) {
|
|
|
514
520
|
if (isTimelineView) {
|
|
515
521
|
offsetLeft = isLeft ? offsetLeft : parseInt(this.actionObj.clone.style.left, 10);
|
|
516
522
|
if (this.parent.enableRtl) {
|
|
517
|
-
offsetLeft = !isLeft ? (this.actionObj.pageX < this.actionObj.X - this.actionObj.clone.
|
|
518
|
-
parseInt(this.actionObj.clone.style.right, 10) : offsetLeft : offsetLeft;
|
|
523
|
+
offsetLeft = !isLeft ? (this.actionObj.pageX < this.actionObj.X - this.actionObj.clone.getBoundingClientRect().width)
|
|
524
|
+
? parseInt(this.actionObj.clone.style.right, 10) : offsetLeft : offsetLeft;
|
|
519
525
|
}
|
|
520
526
|
else {
|
|
521
|
-
offsetLeft = isLeft ? (this.actionObj.pageX > this.actionObj.X + this.actionObj.clone.
|
|
522
|
-
this.actionObj.clone.
|
|
527
|
+
offsetLeft = isLeft ? (this.actionObj.pageX > this.actionObj.X + this.actionObj.clone.getBoundingClientRect().width &&
|
|
528
|
+
this.actionObj.clone.getBoundingClientRect().width === this.actionObj.cellWidth) ?
|
|
523
529
|
parseInt(this.actionObj.clone.style.left, 10) : offsetLeft : offsetLeft;
|
|
524
530
|
}
|
|
525
531
|
}
|
|
@@ -529,9 +535,10 @@ var Resize = /** @class */ (function (_super) {
|
|
|
529
535
|
Math.ceil(Math.abs(offsetLeft) / this.actionObj.cellWidth) * this.actionObj.cellWidth;
|
|
530
536
|
if (offsetLeft < 0) {
|
|
531
537
|
offsetLeft = 0;
|
|
532
|
-
width = this.actionObj.clone.
|
|
538
|
+
width = this.actionObj.clone.getBoundingClientRect().width;
|
|
533
539
|
}
|
|
534
|
-
var cloneWidth = Math.ceil(this.actionObj.clone.
|
|
540
|
+
var cloneWidth = Math.ceil(this.actionObj.clone.getBoundingClientRect().width / this.actionObj.cellWidth) *
|
|
541
|
+
this.actionObj.cellWidth;
|
|
535
542
|
if (isLeft) {
|
|
536
543
|
styles.left = formatUnit(isTimelineView ? offsetLeft : isLeft ? leftValue < 0 ? -offsetLeft :
|
|
537
544
|
(Math.ceil((targetWidth - cloneWidth) / this.actionObj.cellWidth) * this.actionObj.cellWidth) : offsetLeft);
|
|
@@ -44,6 +44,12 @@ export declare const DATE_HEADER_CONTAINER_CLASS: string;
|
|
|
44
44
|
/** @private */
|
|
45
45
|
export declare const HEADER_CELLS_CLASS: string;
|
|
46
46
|
/** @private */
|
|
47
|
+
export declare const HEADER_WEEK_CELLS_CLASS: string;
|
|
48
|
+
/** @private */
|
|
49
|
+
export declare const HEADER_MONTH_CELLS_CLASS: string;
|
|
50
|
+
/** @private */
|
|
51
|
+
export declare const HEADER_YEAR_CELLS_CLASS: string;
|
|
52
|
+
/** @private */
|
|
47
53
|
export declare const WORKDAY_CLASS: string;
|
|
48
54
|
/** @private */
|
|
49
55
|
export declare const OTHERMONTH_CLASS: string;
|
|
@@ -44,6 +44,12 @@ export var DATE_HEADER_CONTAINER_CLASS = 'e-date-header-container';
|
|
|
44
44
|
/** @private */
|
|
45
45
|
export var HEADER_CELLS_CLASS = 'e-header-cells';
|
|
46
46
|
/** @private */
|
|
47
|
+
export var HEADER_WEEK_CELLS_CLASS = 'e-header-week-cell';
|
|
48
|
+
/** @private */
|
|
49
|
+
export var HEADER_MONTH_CELLS_CLASS = 'e-header-month-cell';
|
|
50
|
+
/** @private */
|
|
51
|
+
export var HEADER_YEAR_CELLS_CLASS = 'e-header-year-cell';
|
|
52
|
+
/** @private */
|
|
47
53
|
export var WORKDAY_CLASS = 'e-work-days';
|
|
48
54
|
/** @private */
|
|
49
55
|
export var OTHERMONTH_CLASS = 'e-other-month';
|
|
@@ -170,7 +170,8 @@ var MonthEvent = /** @class */ (function (_super) {
|
|
|
170
170
|
setStyleAttribute(cell, { 'height': height_1 + 'px' });
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
var cellDetail = this.workCells
|
|
173
|
+
var cellDetail = this.workCells[this.parent.activeView.isTimelineView() ?
|
|
174
|
+
0 : this.workCells.length - 1].getBoundingClientRect();
|
|
174
175
|
this.cellWidth = cellDetail.width;
|
|
175
176
|
this.cellHeight = cellDetail.height;
|
|
176
177
|
this.dateRender = dateRender;
|
|
@@ -417,7 +417,7 @@ var HeaderRenderer = /** @class */ (function () {
|
|
|
417
417
|
break;
|
|
418
418
|
case 'e-today':
|
|
419
419
|
currentTime = util.resetTime(this.parent.getCurrentTime());
|
|
420
|
-
if (this.parent.currentView === 'Agenda' || !this.parent.isSelectedDate(currentTime) ||
|
|
420
|
+
if (this.parent.currentView === 'Agenda' || this.parent.currentView === 'MonthAgenda' || !this.parent.isSelectedDate(currentTime) ||
|
|
421
421
|
this.parent.currentView === 'Month' && this.parent.activeViewOptions.displayDate && !this.hasSelectedDate() &&
|
|
422
422
|
util.resetTime(this.parent.activeViewOptions.displayDate) !== currentTime || this.parent.currentView === 'Month' &&
|
|
423
423
|
this.parent.activeViewOptions.numberOfWeeks > 0 && !this.hasSelectedDate()
|
|
@@ -437,7 +437,7 @@ var ViewBase = /** @class */ (function () {
|
|
|
437
437
|
if (this.isTimelineView()) {
|
|
438
438
|
var colElements = this.getColElements();
|
|
439
439
|
var contentBody = this.element.querySelector('.' + cls.CONTENT_TABLE_CLASS + ' tbody');
|
|
440
|
-
var colWidth_1 =
|
|
440
|
+
var colWidth_1 = (contentBody.getBoundingClientRect().width / (colElements.length / 2));
|
|
441
441
|
colElements.forEach(function (col) { return setStyleAttribute(col, { 'width': formatUnit(colWidth_1) }); });
|
|
442
442
|
if (content.offsetHeight !== content.clientHeight) {
|
|
443
443
|
var resourceColumn = this.parent.element.querySelector('.' + cls.RESOURCE_COLUMN_WRAP_CLASS);
|
|
@@ -445,9 +445,11 @@ var ViewBase = /** @class */ (function () {
|
|
|
445
445
|
setStyleAttribute(resourceColumn, { 'height': formatUnit(content.clientHeight) });
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
var
|
|
448
|
+
var cssClass = "." + cls.HEADER_CELLS_CLASS + ",." + cls.TIME_SLOT_CLASS + ",." + cls.HEADER_WEEK_CELLS_CLASS + ",." + cls.HEADER_MONTH_CELLS_CLASS + ",." + cls.HEADER_YEAR_CELLS_CLASS;
|
|
449
|
+
var headerCellElements = [].slice.call(this.element.querySelectorAll(cssClass));
|
|
449
450
|
headerCellElements.forEach(function (ele) {
|
|
450
|
-
var
|
|
451
|
+
var colSpan = isNullOrUndefined(ele.getAttribute('colspan')) ? '1' : ele.getAttribute('colspan');
|
|
452
|
+
var headerCellColSpan = parseInt(colSpan, 10);
|
|
451
453
|
setStyleAttribute(ele, { 'width': formatUnit(colWidth_1 * headerCellColSpan) });
|
|
452
454
|
});
|
|
453
455
|
}
|
|
@@ -2276,6 +2276,10 @@
|
|
|
2276
2276
|
transform: translateY(0);
|
|
2277
2277
|
}
|
|
2278
2278
|
|
|
2279
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2280
|
+
position: relative;
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2279
2283
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2280
2284
|
transition: all 1000ms linear;
|
|
2281
2285
|
}
|
package/styles/bootstrap.css
CHANGED
|
@@ -2273,6 +2273,10 @@
|
|
|
2273
2273
|
transform: translateY(0);
|
|
2274
2274
|
}
|
|
2275
2275
|
|
|
2276
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2277
|
+
position: relative;
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2276
2280
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2277
2281
|
transition: all 1000ms linear;
|
|
2278
2282
|
}
|
package/styles/bootstrap4.css
CHANGED
|
@@ -2279,6 +2279,10 @@
|
|
|
2279
2279
|
transform: translateY(0);
|
|
2280
2280
|
}
|
|
2281
2281
|
|
|
2282
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2283
|
+
position: relative;
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2282
2286
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2283
2287
|
transition: all 1000ms linear;
|
|
2284
2288
|
}
|
|
@@ -2284,6 +2284,10 @@
|
|
|
2284
2284
|
transform: translateY(0);
|
|
2285
2285
|
}
|
|
2286
2286
|
|
|
2287
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2288
|
+
position: relative;
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2287
2291
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2288
2292
|
transition: all 1000ms linear;
|
|
2289
2293
|
}
|
package/styles/bootstrap5.css
CHANGED
|
@@ -2285,6 +2285,10 @@
|
|
|
2285
2285
|
transform: translateY(0);
|
|
2286
2286
|
}
|
|
2287
2287
|
|
|
2288
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2289
|
+
position: relative;
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2288
2292
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2289
2293
|
transition: all 1000ms linear;
|
|
2290
2294
|
}
|
package/styles/fabric-dark.css
CHANGED
|
@@ -2276,6 +2276,10 @@
|
|
|
2276
2276
|
transform: translateY(0);
|
|
2277
2277
|
}
|
|
2278
2278
|
|
|
2279
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2280
|
+
position: relative;
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2279
2283
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2280
2284
|
transition: all 1000ms linear;
|
|
2281
2285
|
}
|
package/styles/fabric.css
CHANGED
|
@@ -2276,6 +2276,10 @@
|
|
|
2276
2276
|
transform: translateY(0);
|
|
2277
2277
|
}
|
|
2278
2278
|
|
|
2279
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2280
|
+
position: relative;
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2279
2283
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2280
2284
|
transition: all 1000ms linear;
|
|
2281
2285
|
}
|
|
@@ -2272,6 +2272,10 @@
|
|
|
2272
2272
|
transform: translateY(0);
|
|
2273
2273
|
}
|
|
2274
2274
|
|
|
2275
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2276
|
+
position: relative;
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2275
2279
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2276
2280
|
transition: all 1000ms linear;
|
|
2277
2281
|
}
|
package/styles/highcontrast.css
CHANGED
|
@@ -2280,6 +2280,10 @@
|
|
|
2280
2280
|
transform: translateY(0);
|
|
2281
2281
|
}
|
|
2282
2282
|
|
|
2283
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2284
|
+
position: relative;
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2283
2287
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2284
2288
|
transition: all 1000ms linear;
|
|
2285
2289
|
}
|
package/styles/material-dark.css
CHANGED
|
@@ -2273,6 +2273,10 @@
|
|
|
2273
2273
|
transform: translateY(0);
|
|
2274
2274
|
}
|
|
2275
2275
|
|
|
2276
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2277
|
+
position: relative;
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2276
2280
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2277
2281
|
transition: all 1000ms linear;
|
|
2278
2282
|
}
|
package/styles/material.css
CHANGED
|
@@ -2277,6 +2277,10 @@
|
|
|
2277
2277
|
transform: translateY(0);
|
|
2278
2278
|
}
|
|
2279
2279
|
|
|
2280
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2281
|
+
position: relative;
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2280
2284
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2281
2285
|
transition: all 1000ms linear;
|
|
2282
2286
|
}
|
|
@@ -2276,6 +2276,10 @@
|
|
|
2276
2276
|
transform: translateY(0);
|
|
2277
2277
|
}
|
|
2278
2278
|
|
|
2279
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2280
|
+
position: relative;
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2279
2283
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2280
2284
|
transition: all 1000ms linear;
|
|
2281
2285
|
}
|
|
@@ -2273,6 +2273,10 @@
|
|
|
2273
2273
|
transform: translateY(0);
|
|
2274
2274
|
}
|
|
2275
2275
|
|
|
2276
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2277
|
+
position: relative;
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2276
2280
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2277
2281
|
transition: all 1000ms linear;
|
|
2278
2282
|
}
|
|
@@ -2279,6 +2279,10 @@
|
|
|
2279
2279
|
transform: translateY(0);
|
|
2280
2280
|
}
|
|
2281
2281
|
|
|
2282
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2283
|
+
position: relative;
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2282
2286
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2283
2287
|
transition: all 1000ms linear;
|
|
2284
2288
|
}
|
|
@@ -2284,6 +2284,10 @@
|
|
|
2284
2284
|
transform: translateY(0);
|
|
2285
2285
|
}
|
|
2286
2286
|
|
|
2287
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2288
|
+
position: relative;
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2287
2291
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2288
2292
|
transition: all 1000ms linear;
|
|
2289
2293
|
}
|
|
@@ -2285,6 +2285,10 @@
|
|
|
2285
2285
|
transform: translateY(0);
|
|
2286
2286
|
}
|
|
2287
2287
|
|
|
2288
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2289
|
+
position: relative;
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2288
2292
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2289
2293
|
transition: all 1000ms linear;
|
|
2290
2294
|
}
|
|
@@ -2276,6 +2276,10 @@
|
|
|
2276
2276
|
transform: translateY(0);
|
|
2277
2277
|
}
|
|
2278
2278
|
|
|
2279
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2280
|
+
position: relative;
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2279
2283
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2280
2284
|
transition: all 1000ms linear;
|
|
2281
2285
|
}
|
|
@@ -2276,6 +2276,10 @@
|
|
|
2276
2276
|
transform: translateY(0);
|
|
2277
2277
|
}
|
|
2278
2278
|
|
|
2279
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2280
|
+
position: relative;
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2279
2283
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2280
2284
|
transition: all 1000ms linear;
|
|
2281
2285
|
}
|
|
@@ -2272,6 +2272,10 @@
|
|
|
2272
2272
|
transform: translateY(0);
|
|
2273
2273
|
}
|
|
2274
2274
|
|
|
2275
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2276
|
+
position: relative;
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2275
2279
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2276
2280
|
transition: all 1000ms linear;
|
|
2277
2281
|
}
|
|
@@ -2280,6 +2280,10 @@
|
|
|
2280
2280
|
transform: translateY(0);
|
|
2281
2281
|
}
|
|
2282
2282
|
|
|
2283
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2284
|
+
position: relative;
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2283
2287
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2284
2288
|
transition: all 1000ms linear;
|
|
2285
2289
|
}
|
|
@@ -2273,6 +2273,10 @@
|
|
|
2273
2273
|
transform: translateY(0);
|
|
2274
2274
|
}
|
|
2275
2275
|
|
|
2276
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2277
|
+
position: relative;
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2276
2280
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2277
2281
|
transition: all 1000ms linear;
|
|
2278
2282
|
}
|
|
@@ -2277,6 +2277,10 @@
|
|
|
2277
2277
|
transform: translateY(0);
|
|
2278
2278
|
}
|
|
2279
2279
|
|
|
2280
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2281
|
+
position: relative;
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2280
2284
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2281
2285
|
transition: all 1000ms linear;
|
|
2282
2286
|
}
|
|
@@ -2283,6 +2283,10 @@
|
|
|
2283
2283
|
transform: translateY(0);
|
|
2284
2284
|
}
|
|
2285
2285
|
|
|
2286
|
+
.e-schedule .e-virtual-scroll .e-content-table.e-virtual-relative {
|
|
2287
|
+
position: relative;
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2286
2290
|
.e-schedule .e-virtual-scroll .e-content-wrap.e-transition {
|
|
2287
2291
|
transition: all 1000ms linear;
|
|
2288
2292
|
}
|