@progress/kendo-angular-scheduler 18.5.1-develop.3 → 18.5.2-develop.1
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.
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '18.5.
|
|
13
|
+
publishDate: 1744795860,
|
|
14
|
+
version: '18.5.2-develop.1',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -322,7 +322,7 @@ export class DayTimeResourceGroup {
|
|
|
322
322
|
range.unregisterSlot(slot);
|
|
323
323
|
if (!range.hasSlots) {
|
|
324
324
|
const ranges = this.slotRanges(slot);
|
|
325
|
-
|
|
325
|
+
ranges[slot.id.rangeIndex] = undefined;
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
registerItem(component) {
|
|
@@ -397,7 +397,7 @@ export class DayTimeResourceGroup {
|
|
|
397
397
|
return this.timeRanges.reduce((acc, range) => acc.concat(range.slots), []);
|
|
398
398
|
}
|
|
399
399
|
get hasSlots() {
|
|
400
|
-
return Boolean(this.dayRanges.find(range => range
|
|
400
|
+
return Boolean(this.dayRanges.find(range => range?.hasSlots) || this.timeRanges.find(range => range?.hasSlots));
|
|
401
401
|
}
|
|
402
402
|
cleanRanges() {
|
|
403
403
|
this.dayRanges = this.dayRanges.filter(r => Boolean(r));
|
|
@@ -434,7 +434,7 @@ export class DayTimeSlotService extends BaseSlotService {
|
|
|
434
434
|
})));
|
|
435
435
|
const rowHeight = this.groups[0].timeRanges[0]?.slots[0].height;
|
|
436
436
|
this.groups.forEach((group, index) => {
|
|
437
|
-
group.initTimeSlots(rowHeight, eventHeight, resourceRows
|
|
437
|
+
group.initTimeSlots(rowHeight, eventHeight, resourceRows?.[index] ? resourceRows[index].nativeElement.children[0]?.children[0].offsetHeight : 0);
|
|
438
438
|
});
|
|
439
439
|
this.groups.forEach((group) => group.setTimelineOffsets());
|
|
440
440
|
}
|
|
@@ -480,28 +480,26 @@ export class DayTimeSlotService extends BaseSlotService {
|
|
|
480
480
|
return this.groups[resourceIndex][allDay ? 'dayRanges' : 'timeRanges'][rangeIndex]?.slots[index];
|
|
481
481
|
}
|
|
482
482
|
slotByPosition(x, y, isDaySlot, includeDayRanges) {
|
|
483
|
-
let range;
|
|
484
483
|
if (isDaySlot) {
|
|
485
|
-
this.groups.
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
return range.slots.find(slot => rectContainsX(slot.rect, x, this.calculateScaleX()));
|
|
484
|
+
for (let i = 0; i < this.groups.length; i++) {
|
|
485
|
+
const foundRange = this.groups[i].dayRanges.find(r => rectContainsX(r.rect, x, this.calculateScaleX()));
|
|
486
|
+
if (foundRange) {
|
|
487
|
+
return foundRange.slots.find(slot => rectContainsX(slot.rect, x, this.calculateScaleX()));
|
|
488
|
+
}
|
|
491
489
|
}
|
|
492
490
|
}
|
|
493
491
|
else {
|
|
494
|
-
this.groups.
|
|
492
|
+
for (let i = 0; i < this.groups.length; i++) {
|
|
493
|
+
let range;
|
|
495
494
|
if (includeDayRanges) {
|
|
496
|
-
range =
|
|
495
|
+
range = this.groups[i].dayRanges.find(r => rectContains(r.rect, x, y, this.calculateScaleX()));
|
|
497
496
|
}
|
|
498
497
|
if (!range) {
|
|
499
|
-
range =
|
|
498
|
+
range = this.groups[i].timeRanges.find(r => rectContains(r.rect, x, y, this.calculateScaleX()));
|
|
499
|
+
}
|
|
500
|
+
if (range) {
|
|
501
|
+
return range.slots.find(slot => rectContains(slot.rect, x, y, this.calculateScaleX()));
|
|
500
502
|
}
|
|
501
|
-
return range;
|
|
502
|
-
});
|
|
503
|
-
if (range) {
|
|
504
|
-
return range.slots.find(slot => rectContains(slot.rect, x, y, this.calculateScaleX()));
|
|
505
503
|
}
|
|
506
504
|
}
|
|
507
505
|
}
|
|
@@ -338,12 +338,12 @@ export class MonthSlotService extends BaseSlotService {
|
|
|
338
338
|
}
|
|
339
339
|
slotByPosition(x, y) {
|
|
340
340
|
let range;
|
|
341
|
-
this.groups.
|
|
341
|
+
for (let i = 0; i < this.groups.length; i++) {
|
|
342
|
+
const group = this.groups[i];
|
|
342
343
|
range = group.dayRanges.find(r => rectContains(r.rect, x, y, this.calculateScaleX()));
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
return range.slots.find(slot => rectContains(slot.rect, x, y, this.calculateScaleX()));
|
|
344
|
+
if (range) {
|
|
345
|
+
return range.slots.find(slot => rectContains(slot.rect, x, y, this.calculateScaleX()));
|
|
346
|
+
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
dragRanges(currentSlot, offset) {
|
|
@@ -43,8 +43,8 @@ const packageMetadata = {
|
|
|
43
43
|
productName: 'Kendo UI for Angular',
|
|
44
44
|
productCode: 'KENDOUIANGULAR',
|
|
45
45
|
productCodes: ['KENDOUIANGULAR'],
|
|
46
|
-
publishDate:
|
|
47
|
-
version: '18.5.
|
|
46
|
+
publishDate: 1744795860,
|
|
47
|
+
version: '18.5.2-develop.1',
|
|
48
48
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -11924,12 +11924,12 @@ class MonthSlotService extends BaseSlotService {
|
|
|
11924
11924
|
}
|
|
11925
11925
|
slotByPosition(x, y) {
|
|
11926
11926
|
let range;
|
|
11927
|
-
this.groups.
|
|
11927
|
+
for (let i = 0; i < this.groups.length; i++) {
|
|
11928
|
+
const group = this.groups[i];
|
|
11928
11929
|
range = group.dayRanges.find(r => rectContains(r.rect, x, y, this.calculateScaleX()));
|
|
11929
|
-
|
|
11930
|
-
|
|
11931
|
-
|
|
11932
|
-
return range.slots.find(slot => rectContains(slot.rect, x, y, this.calculateScaleX()));
|
|
11930
|
+
if (range) {
|
|
11931
|
+
return range.slots.find(slot => rectContains(slot.rect, x, y, this.calculateScaleX()));
|
|
11932
|
+
}
|
|
11933
11933
|
}
|
|
11934
11934
|
}
|
|
11935
11935
|
dragRanges(currentSlot, offset) {
|
|
@@ -15462,7 +15462,7 @@ class DayTimeResourceGroup {
|
|
|
15462
15462
|
range.unregisterSlot(slot);
|
|
15463
15463
|
if (!range.hasSlots) {
|
|
15464
15464
|
const ranges = this.slotRanges(slot);
|
|
15465
|
-
|
|
15465
|
+
ranges[slot.id.rangeIndex] = undefined;
|
|
15466
15466
|
}
|
|
15467
15467
|
}
|
|
15468
15468
|
registerItem(component) {
|
|
@@ -15537,7 +15537,7 @@ class DayTimeResourceGroup {
|
|
|
15537
15537
|
return this.timeRanges.reduce((acc, range) => acc.concat(range.slots), []);
|
|
15538
15538
|
}
|
|
15539
15539
|
get hasSlots() {
|
|
15540
|
-
return Boolean(this.dayRanges.find(range => range
|
|
15540
|
+
return Boolean(this.dayRanges.find(range => range?.hasSlots) || this.timeRanges.find(range => range?.hasSlots));
|
|
15541
15541
|
}
|
|
15542
15542
|
cleanRanges() {
|
|
15543
15543
|
this.dayRanges = this.dayRanges.filter(r => Boolean(r));
|
|
@@ -15574,7 +15574,7 @@ class DayTimeSlotService extends BaseSlotService {
|
|
|
15574
15574
|
})));
|
|
15575
15575
|
const rowHeight = this.groups[0].timeRanges[0]?.slots[0].height;
|
|
15576
15576
|
this.groups.forEach((group, index) => {
|
|
15577
|
-
group.initTimeSlots(rowHeight, eventHeight, resourceRows
|
|
15577
|
+
group.initTimeSlots(rowHeight, eventHeight, resourceRows?.[index] ? resourceRows[index].nativeElement.children[0]?.children[0].offsetHeight : 0);
|
|
15578
15578
|
});
|
|
15579
15579
|
this.groups.forEach((group) => group.setTimelineOffsets());
|
|
15580
15580
|
}
|
|
@@ -15620,28 +15620,26 @@ class DayTimeSlotService extends BaseSlotService {
|
|
|
15620
15620
|
return this.groups[resourceIndex][allDay ? 'dayRanges' : 'timeRanges'][rangeIndex]?.slots[index];
|
|
15621
15621
|
}
|
|
15622
15622
|
slotByPosition(x, y, isDaySlot, includeDayRanges) {
|
|
15623
|
-
let range;
|
|
15624
15623
|
if (isDaySlot) {
|
|
15625
|
-
this.groups.
|
|
15626
|
-
|
|
15627
|
-
|
|
15628
|
-
|
|
15629
|
-
|
|
15630
|
-
return range.slots.find(slot => rectContainsX(slot.rect, x, this.calculateScaleX()));
|
|
15624
|
+
for (let i = 0; i < this.groups.length; i++) {
|
|
15625
|
+
const foundRange = this.groups[i].dayRanges.find(r => rectContainsX(r.rect, x, this.calculateScaleX()));
|
|
15626
|
+
if (foundRange) {
|
|
15627
|
+
return foundRange.slots.find(slot => rectContainsX(slot.rect, x, this.calculateScaleX()));
|
|
15628
|
+
}
|
|
15631
15629
|
}
|
|
15632
15630
|
}
|
|
15633
15631
|
else {
|
|
15634
|
-
this.groups.
|
|
15632
|
+
for (let i = 0; i < this.groups.length; i++) {
|
|
15633
|
+
let range;
|
|
15635
15634
|
if (includeDayRanges) {
|
|
15636
|
-
range =
|
|
15635
|
+
range = this.groups[i].dayRanges.find(r => rectContains(r.rect, x, y, this.calculateScaleX()));
|
|
15637
15636
|
}
|
|
15638
15637
|
if (!range) {
|
|
15639
|
-
range =
|
|
15638
|
+
range = this.groups[i].timeRanges.find(r => rectContains(r.rect, x, y, this.calculateScaleX()));
|
|
15639
|
+
}
|
|
15640
|
+
if (range) {
|
|
15641
|
+
return range.slots.find(slot => rectContains(slot.rect, x, y, this.calculateScaleX()));
|
|
15640
15642
|
}
|
|
15641
|
-
return range;
|
|
15642
|
-
});
|
|
15643
|
-
if (range) {
|
|
15644
|
-
return range.slots.find(slot => rectContains(slot.rect, x, y, this.calculateScaleX()));
|
|
15645
15643
|
}
|
|
15646
15644
|
}
|
|
15647
15645
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-scheduler",
|
|
3
|
-
"version": "18.5.
|
|
3
|
+
"version": "18.5.2-develop.1",
|
|
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",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"package": {
|
|
20
20
|
"productName": "Kendo UI for Angular",
|
|
21
21
|
"productCode": "KENDOUIANGULAR",
|
|
22
|
-
"publishDate":
|
|
22
|
+
"publishDate": 1744795860,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -32,23 +32,23 @@
|
|
|
32
32
|
"@progress/kendo-data-query": "^1.0.0",
|
|
33
33
|
"@progress/kendo-drawing": "^1.21.0",
|
|
34
34
|
"@progress/kendo-licensing": "^1.5.0",
|
|
35
|
-
"@progress/kendo-angular-tooltip": "18.5.
|
|
36
|
-
"@progress/kendo-angular-buttons": "18.5.
|
|
37
|
-
"@progress/kendo-angular-common": "18.5.
|
|
38
|
-
"@progress/kendo-angular-dateinputs": "18.5.
|
|
39
|
-
"@progress/kendo-angular-dialog": "18.5.
|
|
40
|
-
"@progress/kendo-angular-dropdowns": "18.5.
|
|
41
|
-
"@progress/kendo-angular-icons": "18.5.
|
|
42
|
-
"@progress/kendo-angular-inputs": "18.5.
|
|
43
|
-
"@progress/kendo-angular-intl": "18.5.
|
|
44
|
-
"@progress/kendo-angular-l10n": "18.5.
|
|
45
|
-
"@progress/kendo-angular-label": "18.5.
|
|
46
|
-
"@progress/kendo-angular-popup": "18.5.
|
|
35
|
+
"@progress/kendo-angular-tooltip": "18.5.2-develop.1",
|
|
36
|
+
"@progress/kendo-angular-buttons": "18.5.2-develop.1",
|
|
37
|
+
"@progress/kendo-angular-common": "18.5.2-develop.1",
|
|
38
|
+
"@progress/kendo-angular-dateinputs": "18.5.2-develop.1",
|
|
39
|
+
"@progress/kendo-angular-dialog": "18.5.2-develop.1",
|
|
40
|
+
"@progress/kendo-angular-dropdowns": "18.5.2-develop.1",
|
|
41
|
+
"@progress/kendo-angular-icons": "18.5.2-develop.1",
|
|
42
|
+
"@progress/kendo-angular-inputs": "18.5.2-develop.1",
|
|
43
|
+
"@progress/kendo-angular-intl": "18.5.2-develop.1",
|
|
44
|
+
"@progress/kendo-angular-l10n": "18.5.2-develop.1",
|
|
45
|
+
"@progress/kendo-angular-label": "18.5.2-develop.1",
|
|
46
|
+
"@progress/kendo-angular-popup": "18.5.2-develop.1",
|
|
47
47
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"tslib": "^2.3.1",
|
|
51
|
-
"@progress/kendo-angular-schematics": "18.5.
|
|
51
|
+
"@progress/kendo-angular-schematics": "18.5.2-develop.1",
|
|
52
52
|
"@progress/kendo-date-math": "^1.3.2",
|
|
53
53
|
"@progress/kendo-draggable": "^3.0.2",
|
|
54
54
|
"@progress/kendo-file-saver": "^1.0.7",
|
|
@@ -4,10 +4,10 @@ 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 deps of the dropdowns
|
|
7
|
-
'@progress/kendo-angular-treeview': '18.5.
|
|
8
|
-
'@progress/kendo-angular-navigation': '18.5.
|
|
7
|
+
'@progress/kendo-angular-treeview': '18.5.2-develop.1',
|
|
8
|
+
'@progress/kendo-angular-navigation': '18.5.2-develop.1',
|
|
9
9
|
// peer dependency of kendo-angular-inputs
|
|
10
|
-
'@progress/kendo-angular-dialog': '18.5.
|
|
10
|
+
'@progress/kendo-angular-dialog': '18.5.2-develop.1',
|
|
11
11
|
// peer dependency of kendo-angular-icons
|
|
12
12
|
'@progress/kendo-svg-icons': '^4.0.0'
|
|
13
13
|
} });
|