@progress/kendo-angular-gantt 2.0.1-dev.202206220905 → 2.0.2
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.
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-gantt',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1656535098,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -40,12 +40,8 @@ export class TimelineBaseViewService {
|
|
|
40
40
|
}
|
|
41
41
|
const startResult = orderBy(tasks, [{ field: this.mapper.taskFields.start, dir: 'asc' }]);
|
|
42
42
|
const endResult = orderBy(tasks, [{ field: this.mapper.taskFields.end, dir: 'desc' }]);
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const rangeEnd = this.mapper.extractFromTask(endResult[0], 'end') || new Date();
|
|
46
|
-
if (firstDay === rangeEnd.getDay()) {
|
|
47
|
-
rangeEnd.setDate(rangeEnd.getDate() + 7);
|
|
48
|
-
}
|
|
43
|
+
const rangeStart = new Date(this.mapper.extractFromTask(startResult[0], 'start')) || new Date();
|
|
44
|
+
const rangeEnd = new Date(this.mapper.extractFromTask(endResult[0], 'end')) || new Date();
|
|
49
45
|
const start = this.getStartOffset(rangeStart);
|
|
50
46
|
const end = this.getEndOffset(rangeEnd);
|
|
51
47
|
this._viewStart = Number(start);
|
|
@@ -121,7 +117,7 @@ export class TimelineBaseViewService {
|
|
|
121
117
|
const daySlots = this.getDays(startDay, slotEnd);
|
|
122
118
|
const span = daySlots.length;
|
|
123
119
|
const firstDay = this.intlService.formatDate(firstDayInWeek(getDate(startDay), weekStart), DAY_FORMAT);
|
|
124
|
-
const lastDay = this.intlService.formatDate(
|
|
120
|
+
const lastDay = this.intlService.formatDate(slotEnd, DAY_FORMAT);
|
|
125
121
|
if (span > 0) {
|
|
126
122
|
slots.push({
|
|
127
123
|
start: daySlots[0].start,
|
|
@@ -47,7 +47,7 @@ const packageMetadata = {
|
|
|
47
47
|
name: '@progress/kendo-angular-gantt',
|
|
48
48
|
productName: 'Kendo UI for Angular',
|
|
49
49
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
50
|
-
publishDate:
|
|
50
|
+
publishDate: 1656535098,
|
|
51
51
|
version: '',
|
|
52
52
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
53
53
|
};
|
|
@@ -710,12 +710,8 @@ class TimelineBaseViewService {
|
|
|
710
710
|
}
|
|
711
711
|
const startResult = orderBy(tasks, [{ field: this.mapper.taskFields.start, dir: 'asc' }]);
|
|
712
712
|
const endResult = orderBy(tasks, [{ field: this.mapper.taskFields.end, dir: 'desc' }]);
|
|
713
|
-
const
|
|
714
|
-
const
|
|
715
|
-
const rangeEnd = this.mapper.extractFromTask(endResult[0], 'end') || new Date();
|
|
716
|
-
if (firstDay === rangeEnd.getDay()) {
|
|
717
|
-
rangeEnd.setDate(rangeEnd.getDate() + 7);
|
|
718
|
-
}
|
|
713
|
+
const rangeStart = new Date(this.mapper.extractFromTask(startResult[0], 'start')) || new Date();
|
|
714
|
+
const rangeEnd = new Date(this.mapper.extractFromTask(endResult[0], 'end')) || new Date();
|
|
719
715
|
const start = this.getStartOffset(rangeStart);
|
|
720
716
|
const end = this.getEndOffset(rangeEnd);
|
|
721
717
|
this._viewStart = Number(start);
|
|
@@ -791,7 +787,7 @@ class TimelineBaseViewService {
|
|
|
791
787
|
const daySlots = this.getDays(startDay, slotEnd);
|
|
792
788
|
const span = daySlots.length;
|
|
793
789
|
const firstDay = this.intlService.formatDate(firstDayInWeek(getDate(startDay), weekStart), DAY_FORMAT);
|
|
794
|
-
const lastDay = this.intlService.formatDate(
|
|
790
|
+
const lastDay = this.intlService.formatDate(slotEnd, DAY_FORMAT);
|
|
795
791
|
if (span > 0) {
|
|
796
792
|
slots.push({
|
|
797
793
|
start: daySlots[0].start,
|