@progress/kendo-angular-scheduler 14.4.0-develop.1 → 14.4.0-develop.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.
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/views/agenda/agenda-view-list.component.mjs +4 -4
- package/esm2020/views/agenda/utils.mjs +6 -2
- package/esm2020/views/multi-day/utils.mjs +2 -3
- package/fesm2015/progress-kendo-angular-scheduler.mjs +13 -9
- package/fesm2020/progress-kendo-angular-scheduler.mjs +13 -9
- package/package.json +12 -12
- package/schematics/ngAdd/index.js +2 -2
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-scheduler',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '14.4.0-develop.
|
|
12
|
+
publishDate: 1703164645,
|
|
13
|
+
version: '14.4.0-develop.2',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -113,7 +113,7 @@ AgendaListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
113
113
|
<td class="k-scheduler-timecolumn" role="gridcell">
|
|
114
114
|
<div *ngIf="!agendaTimeTemplate">
|
|
115
115
|
<kendo-icon-wrapper
|
|
116
|
-
*ngIf="extractDataItem(item).tail"
|
|
116
|
+
*ngIf="extractDataItem(item).tail || extractDataItem(item).mid"
|
|
117
117
|
[name]="arrowIcons[0]"
|
|
118
118
|
[svgIcon]="arrowSVGIcons[0]"
|
|
119
119
|
>
|
|
@@ -121,7 +121,7 @@ AgendaListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
121
121
|
|
|
122
122
|
{{ formatTime(extractDataItem(item)) }}
|
|
123
123
|
<kendo-icon-wrapper
|
|
124
|
-
*ngIf="extractDataItem(item).head"
|
|
124
|
+
*ngIf="extractDataItem(item).head || extractDataItem(item).mid"
|
|
125
125
|
[name]="arrowIcons[1]"
|
|
126
126
|
[svgIcon]="arrowSVGIcons[1]"
|
|
127
127
|
>
|
|
@@ -166,7 +166,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
166
166
|
<td class="k-scheduler-timecolumn" role="gridcell">
|
|
167
167
|
<div *ngIf="!agendaTimeTemplate">
|
|
168
168
|
<kendo-icon-wrapper
|
|
169
|
-
*ngIf="extractDataItem(item).tail"
|
|
169
|
+
*ngIf="extractDataItem(item).tail || extractDataItem(item).mid"
|
|
170
170
|
[name]="arrowIcons[0]"
|
|
171
171
|
[svgIcon]="arrowSVGIcons[0]"
|
|
172
172
|
>
|
|
@@ -174,7 +174,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
174
174
|
|
|
175
175
|
{{ formatTime(extractDataItem(item)) }}
|
|
176
176
|
<kendo-icon-wrapper
|
|
177
|
-
*ngIf="extractDataItem(item).head"
|
|
177
|
+
*ngIf="extractDataItem(item).head || extractDataItem(item).mid"
|
|
178
178
|
[name]="arrowIcons[1]"
|
|
179
179
|
[svgIcon]="arrowSVGIcons[1]"
|
|
180
180
|
>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { TaskCollection, compose } from './tasks.collection';
|
|
6
|
-
import { MS_PER_DAY } from '@progress/kendo-date-math';
|
|
6
|
+
import { MS_PER_DAY, toLocalDate } from '@progress/kendo-date-math';
|
|
7
7
|
import { intersects, eventResources, toUTCDate, addUTCDays, getUTCDate } from '../utils';
|
|
8
8
|
import { getField } from '../../common/util';
|
|
9
9
|
/**
|
|
@@ -48,11 +48,15 @@ function createTask(item, resourceIdx, resources, color) {
|
|
|
48
48
|
const durationInDays = ({ start, end, isAllDay = false }) => {
|
|
49
49
|
const eventEnd = isAllDay ? getUTCDate(end) : end;
|
|
50
50
|
const duration = Math.ceil((eventEnd - +getUTCDate(start)) / MS_PER_DAY);
|
|
51
|
-
if (isAllDay) {
|
|
51
|
+
if (isAllDay && duration > 0 && !endsAtMidnight(end)) {
|
|
52
52
|
return duration + 1;
|
|
53
53
|
}
|
|
54
54
|
return duration;
|
|
55
55
|
};
|
|
56
|
+
const endsAtMidnight = (end) => {
|
|
57
|
+
end = toLocalDate(end);
|
|
58
|
+
return (end.getHours() === 0 && end.getMinutes() === 0 && end.getSeconds() === 0 && end.getMilliseconds() === 0);
|
|
59
|
+
};
|
|
56
60
|
const curry = fn => {
|
|
57
61
|
const len = fn.length;
|
|
58
62
|
return (...args) => len === args.length
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { intersects, toUTCDate, roundAllDayEnd } from '../utils';
|
|
6
|
-
import { MS_PER_DAY } from '@progress/kendo-date-math';
|
|
7
6
|
import { sortTasksByTime } from '../../common/util';
|
|
8
7
|
/** @hidden */
|
|
9
8
|
export const isMultiDay = ({ start, end }) => {
|
|
@@ -21,8 +20,8 @@ export const createTasks = (periodStart, periodEnd, items, ranges) => {
|
|
|
21
20
|
for (let index = 0; index < items.length; index++) {
|
|
22
21
|
const item = items[index];
|
|
23
22
|
const multiDay = isMultiDay(item);
|
|
24
|
-
const multipleRanges = multiDay && !item.event.isAllDay
|
|
25
|
-
const isAllDay = item.event.isAllDay
|
|
23
|
+
const multipleRanges = multiDay && !item.event.isAllDay;
|
|
24
|
+
const isAllDay = typeof item.event.isAllDay === 'boolean' ? item.event.isAllDay : (multiDay && !multipleRanges);
|
|
26
25
|
const endTime = (isAllDay ? roundAllDayEnd(item) : item.end).toUTCDate();
|
|
27
26
|
const startTime = (isAllDay ? item.start.stripTime() : item.start).toUTCDate();
|
|
28
27
|
for (let rangeIndex = 0; rangeIndex < ranges.length; rangeIndex++) {
|
|
@@ -48,8 +48,8 @@ const packageMetadata = {
|
|
|
48
48
|
name: '@progress/kendo-angular-scheduler',
|
|
49
49
|
productName: 'Kendo UI for Angular',
|
|
50
50
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
51
|
-
publishDate:
|
|
52
|
-
version: '14.4.0-develop.
|
|
51
|
+
publishDate: 1703164645,
|
|
52
|
+
version: '14.4.0-develop.2',
|
|
53
53
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
54
54
|
};
|
|
55
55
|
|
|
@@ -8139,11 +8139,15 @@ function createTask(item, resourceIdx, resources, color) {
|
|
|
8139
8139
|
const durationInDays = ({ start, end, isAllDay = false }) => {
|
|
8140
8140
|
const eventEnd = isAllDay ? getUTCDate(end) : end;
|
|
8141
8141
|
const duration = Math.ceil((eventEnd - +getUTCDate(start)) / MS_PER_DAY$1);
|
|
8142
|
-
if (isAllDay) {
|
|
8142
|
+
if (isAllDay && duration > 0 && !endsAtMidnight(end)) {
|
|
8143
8143
|
return duration + 1;
|
|
8144
8144
|
}
|
|
8145
8145
|
return duration;
|
|
8146
8146
|
};
|
|
8147
|
+
const endsAtMidnight = (end) => {
|
|
8148
|
+
end = toLocalDate(end);
|
|
8149
|
+
return (end.getHours() === 0 && end.getMinutes() === 0 && end.getSeconds() === 0 && end.getMilliseconds() === 0);
|
|
8150
|
+
};
|
|
8147
8151
|
const curry = fn => {
|
|
8148
8152
|
const len = fn.length;
|
|
8149
8153
|
return (...args) => len === args.length
|
|
@@ -8573,7 +8577,7 @@ AgendaListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
8573
8577
|
<td class="k-scheduler-timecolumn" role="gridcell">
|
|
8574
8578
|
<div *ngIf="!agendaTimeTemplate">
|
|
8575
8579
|
<kendo-icon-wrapper
|
|
8576
|
-
*ngIf="extractDataItem(item).tail"
|
|
8580
|
+
*ngIf="extractDataItem(item).tail || extractDataItem(item).mid"
|
|
8577
8581
|
[name]="arrowIcons[0]"
|
|
8578
8582
|
[svgIcon]="arrowSVGIcons[0]"
|
|
8579
8583
|
>
|
|
@@ -8581,7 +8585,7 @@ AgendaListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
8581
8585
|
|
|
8582
8586
|
{{ formatTime(extractDataItem(item)) }}
|
|
8583
8587
|
<kendo-icon-wrapper
|
|
8584
|
-
*ngIf="extractDataItem(item).head"
|
|
8588
|
+
*ngIf="extractDataItem(item).head || extractDataItem(item).mid"
|
|
8585
8589
|
[name]="arrowIcons[1]"
|
|
8586
8590
|
[svgIcon]="arrowSVGIcons[1]"
|
|
8587
8591
|
>
|
|
@@ -8626,7 +8630,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8626
8630
|
<td class="k-scheduler-timecolumn" role="gridcell">
|
|
8627
8631
|
<div *ngIf="!agendaTimeTemplate">
|
|
8628
8632
|
<kendo-icon-wrapper
|
|
8629
|
-
*ngIf="extractDataItem(item).tail"
|
|
8633
|
+
*ngIf="extractDataItem(item).tail || extractDataItem(item).mid"
|
|
8630
8634
|
[name]="arrowIcons[0]"
|
|
8631
8635
|
[svgIcon]="arrowSVGIcons[0]"
|
|
8632
8636
|
>
|
|
@@ -8634,7 +8638,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8634
8638
|
|
|
8635
8639
|
{{ formatTime(extractDataItem(item)) }}
|
|
8636
8640
|
<kendo-icon-wrapper
|
|
8637
|
-
*ngIf="extractDataItem(item).head"
|
|
8641
|
+
*ngIf="extractDataItem(item).head || extractDataItem(item).mid"
|
|
8638
8642
|
[name]="arrowIcons[1]"
|
|
8639
8643
|
[svgIcon]="arrowSVGIcons[1]"
|
|
8640
8644
|
>
|
|
@@ -13008,8 +13012,8 @@ const createTasks = (periodStart, periodEnd, items, ranges) => {
|
|
|
13008
13012
|
for (let index = 0; index < items.length; index++) {
|
|
13009
13013
|
const item = items[index];
|
|
13010
13014
|
const multiDay = isMultiDay(item);
|
|
13011
|
-
const multipleRanges = multiDay && !item.event.isAllDay
|
|
13012
|
-
const isAllDay = item.event.isAllDay
|
|
13015
|
+
const multipleRanges = multiDay && !item.event.isAllDay;
|
|
13016
|
+
const isAllDay = typeof item.event.isAllDay === 'boolean' ? item.event.isAllDay : (multiDay && !multipleRanges);
|
|
13013
13017
|
const endTime = (isAllDay ? roundAllDayEnd(item) : item.end).toUTCDate();
|
|
13014
13018
|
const startTime = (isAllDay ? item.start.stripTime() : item.start).toUTCDate();
|
|
13015
13019
|
for (let rangeIndex = 0; rangeIndex < ranges.length; rangeIndex++) {
|
|
@@ -48,8 +48,8 @@ const packageMetadata = {
|
|
|
48
48
|
name: '@progress/kendo-angular-scheduler',
|
|
49
49
|
productName: 'Kendo UI for Angular',
|
|
50
50
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
51
|
-
publishDate:
|
|
52
|
-
version: '14.4.0-develop.
|
|
51
|
+
publishDate: 1703164645,
|
|
52
|
+
version: '14.4.0-develop.2',
|
|
53
53
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
54
54
|
};
|
|
55
55
|
|
|
@@ -8101,11 +8101,15 @@ function createTask(item, resourceIdx, resources, color) {
|
|
|
8101
8101
|
const durationInDays = ({ start, end, isAllDay = false }) => {
|
|
8102
8102
|
const eventEnd = isAllDay ? getUTCDate(end) : end;
|
|
8103
8103
|
const duration = Math.ceil((eventEnd - +getUTCDate(start)) / MS_PER_DAY$1);
|
|
8104
|
-
if (isAllDay) {
|
|
8104
|
+
if (isAllDay && duration > 0 && !endsAtMidnight(end)) {
|
|
8105
8105
|
return duration + 1;
|
|
8106
8106
|
}
|
|
8107
8107
|
return duration;
|
|
8108
8108
|
};
|
|
8109
|
+
const endsAtMidnight = (end) => {
|
|
8110
|
+
end = toLocalDate(end);
|
|
8111
|
+
return (end.getHours() === 0 && end.getMinutes() === 0 && end.getSeconds() === 0 && end.getMilliseconds() === 0);
|
|
8112
|
+
};
|
|
8109
8113
|
const curry = fn => {
|
|
8110
8114
|
const len = fn.length;
|
|
8111
8115
|
return (...args) => len === args.length
|
|
@@ -8538,7 +8542,7 @@ AgendaListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
8538
8542
|
<td class="k-scheduler-timecolumn" role="gridcell">
|
|
8539
8543
|
<div *ngIf="!agendaTimeTemplate">
|
|
8540
8544
|
<kendo-icon-wrapper
|
|
8541
|
-
*ngIf="extractDataItem(item).tail"
|
|
8545
|
+
*ngIf="extractDataItem(item).tail || extractDataItem(item).mid"
|
|
8542
8546
|
[name]="arrowIcons[0]"
|
|
8543
8547
|
[svgIcon]="arrowSVGIcons[0]"
|
|
8544
8548
|
>
|
|
@@ -8546,7 +8550,7 @@ AgendaListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
8546
8550
|
|
|
8547
8551
|
{{ formatTime(extractDataItem(item)) }}
|
|
8548
8552
|
<kendo-icon-wrapper
|
|
8549
|
-
*ngIf="extractDataItem(item).head"
|
|
8553
|
+
*ngIf="extractDataItem(item).head || extractDataItem(item).mid"
|
|
8550
8554
|
[name]="arrowIcons[1]"
|
|
8551
8555
|
[svgIcon]="arrowSVGIcons[1]"
|
|
8552
8556
|
>
|
|
@@ -8591,7 +8595,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8591
8595
|
<td class="k-scheduler-timecolumn" role="gridcell">
|
|
8592
8596
|
<div *ngIf="!agendaTimeTemplate">
|
|
8593
8597
|
<kendo-icon-wrapper
|
|
8594
|
-
*ngIf="extractDataItem(item).tail"
|
|
8598
|
+
*ngIf="extractDataItem(item).tail || extractDataItem(item).mid"
|
|
8595
8599
|
[name]="arrowIcons[0]"
|
|
8596
8600
|
[svgIcon]="arrowSVGIcons[0]"
|
|
8597
8601
|
>
|
|
@@ -8599,7 +8603,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8599
8603
|
|
|
8600
8604
|
{{ formatTime(extractDataItem(item)) }}
|
|
8601
8605
|
<kendo-icon-wrapper
|
|
8602
|
-
*ngIf="extractDataItem(item).head"
|
|
8606
|
+
*ngIf="extractDataItem(item).head || extractDataItem(item).mid"
|
|
8603
8607
|
[name]="arrowIcons[1]"
|
|
8604
8608
|
[svgIcon]="arrowSVGIcons[1]"
|
|
8605
8609
|
>
|
|
@@ -12964,8 +12968,8 @@ const createTasks = (periodStart, periodEnd, items, ranges) => {
|
|
|
12964
12968
|
for (let index = 0; index < items.length; index++) {
|
|
12965
12969
|
const item = items[index];
|
|
12966
12970
|
const multiDay = isMultiDay(item);
|
|
12967
|
-
const multipleRanges = multiDay && !item.event.isAllDay
|
|
12968
|
-
const isAllDay = item.event.isAllDay
|
|
12971
|
+
const multipleRanges = multiDay && !item.event.isAllDay;
|
|
12972
|
+
const isAllDay = typeof item.event.isAllDay === 'boolean' ? item.event.isAllDay : (multiDay && !multipleRanges);
|
|
12969
12973
|
const endTime = (isAllDay ? roundAllDayEnd(item) : item.end).toUTCDate();
|
|
12970
12974
|
const startTime = (isAllDay ? item.start.stripTime() : item.start).toUTCDate();
|
|
12971
12975
|
for (let rangeIndex = 0; rangeIndex < ranges.length; rangeIndex++) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-scheduler",
|
|
3
|
-
"version": "14.4.0-develop.
|
|
3
|
+
"version": "14.4.0-develop.2",
|
|
4
4
|
"description": "Kendo UI Scheduler Angular - Outlook or Google-style angular scheduler calendar. Full-featured and customizable embedded scheduling from the creator developers trust for professional UI components.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -26,21 +26,21 @@
|
|
|
26
26
|
"@progress/kendo-data-query": "^1.0.0",
|
|
27
27
|
"@progress/kendo-drawing": "^1.17.2",
|
|
28
28
|
"@progress/kendo-licensing": "^1.0.2",
|
|
29
|
-
"@progress/kendo-angular-buttons": "14.4.0-develop.
|
|
30
|
-
"@progress/kendo-angular-common": "14.4.0-develop.
|
|
31
|
-
"@progress/kendo-angular-dateinputs": "14.4.0-develop.
|
|
32
|
-
"@progress/kendo-angular-dialog": "14.4.0-develop.
|
|
33
|
-
"@progress/kendo-angular-dropdowns": "14.4.0-develop.
|
|
34
|
-
"@progress/kendo-angular-icons": "14.4.0-develop.
|
|
35
|
-
"@progress/kendo-angular-inputs": "14.4.0-develop.
|
|
36
|
-
"@progress/kendo-angular-intl": "14.4.0-develop.
|
|
37
|
-
"@progress/kendo-angular-l10n": "14.4.0-develop.
|
|
38
|
-
"@progress/kendo-angular-popup": "14.4.0-develop.
|
|
29
|
+
"@progress/kendo-angular-buttons": "14.4.0-develop.2",
|
|
30
|
+
"@progress/kendo-angular-common": "14.4.0-develop.2",
|
|
31
|
+
"@progress/kendo-angular-dateinputs": "14.4.0-develop.2",
|
|
32
|
+
"@progress/kendo-angular-dialog": "14.4.0-develop.2",
|
|
33
|
+
"@progress/kendo-angular-dropdowns": "14.4.0-develop.2",
|
|
34
|
+
"@progress/kendo-angular-icons": "14.4.0-develop.2",
|
|
35
|
+
"@progress/kendo-angular-inputs": "14.4.0-develop.2",
|
|
36
|
+
"@progress/kendo-angular-intl": "14.4.0-develop.2",
|
|
37
|
+
"@progress/kendo-angular-l10n": "14.4.0-develop.2",
|
|
38
|
+
"@progress/kendo-angular-popup": "14.4.0-develop.2",
|
|
39
39
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"tslib": "^2.3.1",
|
|
43
|
-
"@progress/kendo-angular-schematics": "14.4.0-develop.
|
|
43
|
+
"@progress/kendo-angular-schematics": "14.4.0-develop.2",
|
|
44
44
|
"@progress/kendo-date-math": "^1.3.2",
|
|
45
45
|
"@progress/kendo-draggable": "^3.0.2",
|
|
46
46
|
"@progress/kendo-file-saver": "^1.0.7",
|
|
@@ -4,9 +4,9 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
4
4
|
function default_1(options) {
|
|
5
5
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'SchedulerModule', package: 'scheduler', peerDependencies: {
|
|
6
6
|
// peer dep of the dropdowns
|
|
7
|
-
'@progress/kendo-angular-treeview': '14.4.0-develop.
|
|
7
|
+
'@progress/kendo-angular-treeview': '14.4.0-develop.2',
|
|
8
8
|
// peer dependency of kendo-angular-inputs
|
|
9
|
-
'@progress/kendo-angular-dialog': '14.4.0-develop.
|
|
9
|
+
'@progress/kendo-angular-dialog': '14.4.0-develop.2',
|
|
10
10
|
// peer dependency of kendo-angular-icons
|
|
11
11
|
'@progress/kendo-svg-icons': '^2.0.0'
|
|
12
12
|
} });
|