@progress/kendo-vue-scheduler 3.8.4-dev.202302160938 → 3.8.4-dev.202302221027
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/dist/cdn/js/kendo-vue-scheduler.js +1 -1
- package/dist/es/hooks/use-slots-focus.js +4 -4
- package/dist/es/models/Slot.d.ts +2 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/utils/main.js +15 -13
- package/dist/esm/hooks/use-slots-focus.js +4 -4
- package/dist/esm/models/Slot.d.ts +2 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/utils/main.js +15 -13
- package/dist/npm/hooks/use-slots-focus.js +4 -4
- package/dist/npm/models/Slot.d.ts +2 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/utils/main.js +15 -13
- package/package.json +12 -12
|
@@ -72,24 +72,24 @@ export var dispatchFocusedSlots = function dispatchFocusedSlots(action, event) {
|
|
|
72
72
|
/** @hidden */
|
|
73
73
|
export var findUpSlot = function findUpSlot(target, all) {
|
|
74
74
|
return all.find(function (slot) {
|
|
75
|
-
return slot !== null && target !== null && slot
|
|
75
|
+
return slot !== null && target !== null && slot.cSlot.row === target.$props.row - 1 && slot.cSlot.col === target.$props.col;
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
78
|
/** @hidden */
|
|
79
79
|
export var findLeftSlot = function findLeftSlot(target, all) {
|
|
80
80
|
return all.find(function (slot) {
|
|
81
|
-
return slot !== null && target !== null && slot
|
|
81
|
+
return slot !== null && target !== null && slot.cSlot.row === target.$props.row && slot.cSlot.col === target.$props.col - 1;
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
84
|
/** @hidden */
|
|
85
85
|
export var findRightSlot = function findRightSlot(target, all) {
|
|
86
86
|
return all.find(function (slot) {
|
|
87
|
-
return slot !== null && target !== null && slot
|
|
87
|
+
return slot !== null && target !== null && slot.cSlot.row === target.$props.row && slot.cSlot.col === target.$props.col + 1;
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
90
|
/** @hidden */
|
|
91
91
|
export var findDownSlot = function findDownSlot(target, all) {
|
|
92
92
|
return all.find(function (slot) {
|
|
93
|
-
return slot !== null && target !== null && slot
|
|
93
|
+
return slot !== null && target !== null && slot.cSlot.row === target.$props.row + 1 && slot.cSlot.col === target.$props.col;
|
|
94
94
|
});
|
|
95
95
|
};
|
package/dist/es/models/Slot.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-scheduler',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1677061339,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
package/dist/es/utils/main.js
CHANGED
|
@@ -457,10 +457,10 @@ export var calculateOrder = function (current, items, slots, ignoreIsAllDay) {
|
|
|
457
457
|
var orderNumbers = [];
|
|
458
458
|
var sorted = items.sort(function (a, b) { return a.$props.start.getTime() - b.$props.start.getTime(); });
|
|
459
459
|
sorted.forEach(function (item) {
|
|
460
|
-
var fit = (ignoreIsAllDay || (item.$props.isAllDay === slot
|
|
461
|
-
&& item.$props.range.index === slot
|
|
462
|
-
&& item.$props.group.index === slot
|
|
463
|
-
&& intersects(item.$props.start, item.$props.end, slot
|
|
460
|
+
var fit = (ignoreIsAllDay || (item.$props.isAllDay === slot.cSlot.isAllDay))
|
|
461
|
+
&& item.$props.range.index === slot.cSlot.range.index
|
|
462
|
+
&& item.$props.group.index === slot.cSlot.group.index
|
|
463
|
+
&& intersects(item.$props.start, item.$props.end, slot.cSlot.start, slot.cSlot.end);
|
|
464
464
|
if (fit) {
|
|
465
465
|
var order = findMissing(orderNumbers);
|
|
466
466
|
if (item === current && result === undefined) {
|
|
@@ -482,17 +482,18 @@ export var mapSlotsToItems = function (items, slots, ignoreIsAllDay) {
|
|
|
482
482
|
slots.forEach(function (slot) {
|
|
483
483
|
var orderNumbers = [];
|
|
484
484
|
items.forEach(function (item) {
|
|
485
|
-
var
|
|
486
|
-
|
|
487
|
-
&& item.
|
|
488
|
-
&&
|
|
485
|
+
var currentSlot = slot.cSlot ? slot.cSlot : slot;
|
|
486
|
+
var fit = (ignoreIsAllDay || (item.isAllDay === currentSlot.isAllDay))
|
|
487
|
+
&& item.range.index === currentSlot.range.index
|
|
488
|
+
&& item.group.index === currentSlot.group.index
|
|
489
|
+
&& intersects(item.start, item.end, currentSlot.start, currentSlot.end);
|
|
489
490
|
if (fit) {
|
|
490
491
|
var order = findMissing(orderNumbers);
|
|
491
492
|
if (item.order === null || item.order === undefined || item.order < order) {
|
|
492
493
|
item.order = order;
|
|
493
494
|
}
|
|
494
495
|
orderNumbers.splice(item.order, 0, item.order);
|
|
495
|
-
|
|
496
|
+
currentSlot.items.push(item);
|
|
496
497
|
}
|
|
497
498
|
});
|
|
498
499
|
});
|
|
@@ -506,10 +507,11 @@ export var mapItemsToSlots = function (items, slots, ignoreIsAllDay) {
|
|
|
506
507
|
// Populate
|
|
507
508
|
items.forEach(function (item) {
|
|
508
509
|
slots.forEach(function (slot) {
|
|
509
|
-
var
|
|
510
|
-
|
|
511
|
-
&& item.
|
|
512
|
-
&&
|
|
510
|
+
var currentSlot = slot.cSlot ? slot.cSlot : slot;
|
|
511
|
+
var fit = (ignoreIsAllDay || (item.isAllDay === currentSlot.isAllDay))
|
|
512
|
+
&& item.range.index === currentSlot.range.index
|
|
513
|
+
&& item.group.index === currentSlot.group.index
|
|
514
|
+
&& intersects(item.start, item.end, currentSlot.start, currentSlot.end);
|
|
513
515
|
if (fit) {
|
|
514
516
|
item.slots.push(slot);
|
|
515
517
|
}
|
|
@@ -72,24 +72,24 @@ export var dispatchFocusedSlots = function dispatchFocusedSlots(action, event) {
|
|
|
72
72
|
/** @hidden */
|
|
73
73
|
export var findUpSlot = function findUpSlot(target, all) {
|
|
74
74
|
return all.find(function (slot) {
|
|
75
|
-
return slot !== null && target !== null && slot
|
|
75
|
+
return slot !== null && target !== null && slot.cSlot.row === target.$props.row - 1 && slot.cSlot.col === target.$props.col;
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
78
|
/** @hidden */
|
|
79
79
|
export var findLeftSlot = function findLeftSlot(target, all) {
|
|
80
80
|
return all.find(function (slot) {
|
|
81
|
-
return slot !== null && target !== null && slot
|
|
81
|
+
return slot !== null && target !== null && slot.cSlot.row === target.$props.row && slot.cSlot.col === target.$props.col - 1;
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
84
|
/** @hidden */
|
|
85
85
|
export var findRightSlot = function findRightSlot(target, all) {
|
|
86
86
|
return all.find(function (slot) {
|
|
87
|
-
return slot !== null && target !== null && slot
|
|
87
|
+
return slot !== null && target !== null && slot.cSlot.row === target.$props.row && slot.cSlot.col === target.$props.col + 1;
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
90
|
/** @hidden */
|
|
91
91
|
export var findDownSlot = function findDownSlot(target, all) {
|
|
92
92
|
return all.find(function (slot) {
|
|
93
|
-
return slot !== null && target !== null && slot
|
|
93
|
+
return slot !== null && target !== null && slot.cSlot.row === target.$props.row + 1 && slot.cSlot.col === target.$props.col;
|
|
94
94
|
});
|
|
95
95
|
};
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-scheduler',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1677061339,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
package/dist/esm/utils/main.js
CHANGED
|
@@ -457,10 +457,10 @@ export var calculateOrder = function (current, items, slots, ignoreIsAllDay) {
|
|
|
457
457
|
var orderNumbers = [];
|
|
458
458
|
var sorted = items.sort(function (a, b) { return a.$props.start.getTime() - b.$props.start.getTime(); });
|
|
459
459
|
sorted.forEach(function (item) {
|
|
460
|
-
var fit = (ignoreIsAllDay || (item.$props.isAllDay === slot
|
|
461
|
-
&& item.$props.range.index === slot
|
|
462
|
-
&& item.$props.group.index === slot
|
|
463
|
-
&& intersects(item.$props.start, item.$props.end, slot
|
|
460
|
+
var fit = (ignoreIsAllDay || (item.$props.isAllDay === slot.cSlot.isAllDay))
|
|
461
|
+
&& item.$props.range.index === slot.cSlot.range.index
|
|
462
|
+
&& item.$props.group.index === slot.cSlot.group.index
|
|
463
|
+
&& intersects(item.$props.start, item.$props.end, slot.cSlot.start, slot.cSlot.end);
|
|
464
464
|
if (fit) {
|
|
465
465
|
var order = findMissing(orderNumbers);
|
|
466
466
|
if (item === current && result === undefined) {
|
|
@@ -482,17 +482,18 @@ export var mapSlotsToItems = function (items, slots, ignoreIsAllDay) {
|
|
|
482
482
|
slots.forEach(function (slot) {
|
|
483
483
|
var orderNumbers = [];
|
|
484
484
|
items.forEach(function (item) {
|
|
485
|
-
var
|
|
486
|
-
|
|
487
|
-
&& item.
|
|
488
|
-
&&
|
|
485
|
+
var currentSlot = slot.cSlot ? slot.cSlot : slot;
|
|
486
|
+
var fit = (ignoreIsAllDay || (item.isAllDay === currentSlot.isAllDay))
|
|
487
|
+
&& item.range.index === currentSlot.range.index
|
|
488
|
+
&& item.group.index === currentSlot.group.index
|
|
489
|
+
&& intersects(item.start, item.end, currentSlot.start, currentSlot.end);
|
|
489
490
|
if (fit) {
|
|
490
491
|
var order = findMissing(orderNumbers);
|
|
491
492
|
if (item.order === null || item.order === undefined || item.order < order) {
|
|
492
493
|
item.order = order;
|
|
493
494
|
}
|
|
494
495
|
orderNumbers.splice(item.order, 0, item.order);
|
|
495
|
-
|
|
496
|
+
currentSlot.items.push(item);
|
|
496
497
|
}
|
|
497
498
|
});
|
|
498
499
|
});
|
|
@@ -506,10 +507,11 @@ export var mapItemsToSlots = function (items, slots, ignoreIsAllDay) {
|
|
|
506
507
|
// Populate
|
|
507
508
|
items.forEach(function (item) {
|
|
508
509
|
slots.forEach(function (slot) {
|
|
509
|
-
var
|
|
510
|
-
|
|
511
|
-
&& item.
|
|
512
|
-
&&
|
|
510
|
+
var currentSlot = slot.cSlot ? slot.cSlot : slot;
|
|
511
|
+
var fit = (ignoreIsAllDay || (item.isAllDay === currentSlot.isAllDay))
|
|
512
|
+
&& item.range.index === currentSlot.range.index
|
|
513
|
+
&& item.group.index === currentSlot.group.index
|
|
514
|
+
&& intersects(item.start, item.end, currentSlot.start, currentSlot.end);
|
|
513
515
|
if (fit) {
|
|
514
516
|
item.slots.push(slot);
|
|
515
517
|
}
|
|
@@ -79,28 +79,28 @@ exports.dispatchFocusedSlots = dispatchFocusedSlots;
|
|
|
79
79
|
/** @hidden */
|
|
80
80
|
var findUpSlot = function findUpSlot(target, all) {
|
|
81
81
|
return all.find(function (slot) {
|
|
82
|
-
return slot !== null && target !== null && slot
|
|
82
|
+
return slot !== null && target !== null && slot.cSlot.row === target.$props.row - 1 && slot.cSlot.col === target.$props.col;
|
|
83
83
|
});
|
|
84
84
|
};
|
|
85
85
|
exports.findUpSlot = findUpSlot;
|
|
86
86
|
/** @hidden */
|
|
87
87
|
var findLeftSlot = function findLeftSlot(target, all) {
|
|
88
88
|
return all.find(function (slot) {
|
|
89
|
-
return slot !== null && target !== null && slot
|
|
89
|
+
return slot !== null && target !== null && slot.cSlot.row === target.$props.row && slot.cSlot.col === target.$props.col - 1;
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
92
|
exports.findLeftSlot = findLeftSlot;
|
|
93
93
|
/** @hidden */
|
|
94
94
|
var findRightSlot = function findRightSlot(target, all) {
|
|
95
95
|
return all.find(function (slot) {
|
|
96
|
-
return slot !== null && target !== null && slot
|
|
96
|
+
return slot !== null && target !== null && slot.cSlot.row === target.$props.row && slot.cSlot.col === target.$props.col + 1;
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
99
|
exports.findRightSlot = findRightSlot;
|
|
100
100
|
/** @hidden */
|
|
101
101
|
var findDownSlot = function findDownSlot(target, all) {
|
|
102
102
|
return all.find(function (slot) {
|
|
103
|
-
return slot !== null && target !== null && slot
|
|
103
|
+
return slot !== null && target !== null && slot.cSlot.row === target.$props.row + 1 && slot.cSlot.col === target.$props.col;
|
|
104
104
|
});
|
|
105
105
|
};
|
|
106
106
|
exports.findDownSlot = findDownSlot;
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-scheduler',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1677061339,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
14
14
|
};
|
package/dist/npm/utils/main.js
CHANGED
|
@@ -500,10 +500,10 @@ var calculateOrder = function (current, items, slots, ignoreIsAllDay) {
|
|
|
500
500
|
var orderNumbers = [];
|
|
501
501
|
var sorted = items.sort(function (a, b) { return a.$props.start.getTime() - b.$props.start.getTime(); });
|
|
502
502
|
sorted.forEach(function (item) {
|
|
503
|
-
var fit = (ignoreIsAllDay || (item.$props.isAllDay === slot
|
|
504
|
-
&& item.$props.range.index === slot
|
|
505
|
-
&& item.$props.group.index === slot
|
|
506
|
-
&& (0, exports.intersects)(item.$props.start, item.$props.end, slot
|
|
503
|
+
var fit = (ignoreIsAllDay || (item.$props.isAllDay === slot.cSlot.isAllDay))
|
|
504
|
+
&& item.$props.range.index === slot.cSlot.range.index
|
|
505
|
+
&& item.$props.group.index === slot.cSlot.group.index
|
|
506
|
+
&& (0, exports.intersects)(item.$props.start, item.$props.end, slot.cSlot.start, slot.cSlot.end);
|
|
507
507
|
if (fit) {
|
|
508
508
|
var order = (0, exports.findMissing)(orderNumbers);
|
|
509
509
|
if (item === current && result === undefined) {
|
|
@@ -526,17 +526,18 @@ var mapSlotsToItems = function (items, slots, ignoreIsAllDay) {
|
|
|
526
526
|
slots.forEach(function (slot) {
|
|
527
527
|
var orderNumbers = [];
|
|
528
528
|
items.forEach(function (item) {
|
|
529
|
-
var
|
|
530
|
-
|
|
531
|
-
&& item.
|
|
532
|
-
&&
|
|
529
|
+
var currentSlot = slot.cSlot ? slot.cSlot : slot;
|
|
530
|
+
var fit = (ignoreIsAllDay || (item.isAllDay === currentSlot.isAllDay))
|
|
531
|
+
&& item.range.index === currentSlot.range.index
|
|
532
|
+
&& item.group.index === currentSlot.group.index
|
|
533
|
+
&& (0, exports.intersects)(item.start, item.end, currentSlot.start, currentSlot.end);
|
|
533
534
|
if (fit) {
|
|
534
535
|
var order = (0, exports.findMissing)(orderNumbers);
|
|
535
536
|
if (item.order === null || item.order === undefined || item.order < order) {
|
|
536
537
|
item.order = order;
|
|
537
538
|
}
|
|
538
539
|
orderNumbers.splice(item.order, 0, item.order);
|
|
539
|
-
|
|
540
|
+
currentSlot.items.push(item);
|
|
540
541
|
}
|
|
541
542
|
});
|
|
542
543
|
});
|
|
@@ -551,10 +552,11 @@ var mapItemsToSlots = function (items, slots, ignoreIsAllDay) {
|
|
|
551
552
|
// Populate
|
|
552
553
|
items.forEach(function (item) {
|
|
553
554
|
slots.forEach(function (slot) {
|
|
554
|
-
var
|
|
555
|
-
|
|
556
|
-
&& item.
|
|
557
|
-
&&
|
|
555
|
+
var currentSlot = slot.cSlot ? slot.cSlot : slot;
|
|
556
|
+
var fit = (ignoreIsAllDay || (item.isAllDay === currentSlot.isAllDay))
|
|
557
|
+
&& item.range.index === currentSlot.range.index
|
|
558
|
+
&& item.group.index === currentSlot.group.index
|
|
559
|
+
&& (0, exports.intersects)(item.start, item.end, currentSlot.start, currentSlot.end);
|
|
558
560
|
if (fit) {
|
|
559
561
|
item.slots.push(slot);
|
|
560
562
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-scheduler",
|
|
3
3
|
"description": "Kendo UI for Vue Scheduler package",
|
|
4
|
-
"version": "3.8.4-dev.
|
|
4
|
+
"version": "3.8.4-dev.202302221027",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@progress/kendo-data-query": "^1.5.1",
|
|
51
51
|
"@progress/kendo-draggable": "^3.0.1",
|
|
52
52
|
"@progress/kendo-recurrence": "^1.0.1",
|
|
53
|
-
"@progress/kendo-vue-common": "3.8.4-dev.
|
|
53
|
+
"@progress/kendo-vue-common": "3.8.4-dev.202302221027"
|
|
54
54
|
},
|
|
55
55
|
"@progress": {
|
|
56
56
|
"friendlyName": "Scheduler",
|
|
@@ -66,16 +66,16 @@
|
|
|
66
66
|
"@progress/kendo-drawing": "^1.8.0",
|
|
67
67
|
"@progress/kendo-licensing": "^1.3.0",
|
|
68
68
|
"@progress/kendo-svg-icons": "^1.0.0",
|
|
69
|
-
"@progress/kendo-vue-buttons": "3.8.4-dev.
|
|
70
|
-
"@progress/kendo-vue-dateinputs": "3.8.4-dev.
|
|
71
|
-
"@progress/kendo-vue-dialogs": "3.8.4-dev.
|
|
72
|
-
"@progress/kendo-vue-dropdowns": "3.8.4-dev.
|
|
73
|
-
"@progress/kendo-vue-form": "3.8.4-dev.
|
|
74
|
-
"@progress/kendo-vue-inputs": "3.8.4-dev.
|
|
75
|
-
"@progress/kendo-vue-intl": "3.8.4-dev.
|
|
76
|
-
"@progress/kendo-vue-labels": "3.8.4-dev.
|
|
77
|
-
"@progress/kendo-vue-popup": "3.8.4-dev.
|
|
78
|
-
"@progress/kendo-vue-progressbars": "3.8.4-dev.
|
|
69
|
+
"@progress/kendo-vue-buttons": "3.8.4-dev.202302221027",
|
|
70
|
+
"@progress/kendo-vue-dateinputs": "3.8.4-dev.202302221027",
|
|
71
|
+
"@progress/kendo-vue-dialogs": "3.8.4-dev.202302221027",
|
|
72
|
+
"@progress/kendo-vue-dropdowns": "3.8.4-dev.202302221027",
|
|
73
|
+
"@progress/kendo-vue-form": "3.8.4-dev.202302221027",
|
|
74
|
+
"@progress/kendo-vue-inputs": "3.8.4-dev.202302221027",
|
|
75
|
+
"@progress/kendo-vue-intl": "3.8.4-dev.202302221027",
|
|
76
|
+
"@progress/kendo-vue-labels": "3.8.4-dev.202302221027",
|
|
77
|
+
"@progress/kendo-vue-popup": "3.8.4-dev.202302221027",
|
|
78
|
+
"@progress/kendo-vue-progressbars": "3.8.4-dev.202302221027",
|
|
79
79
|
"cldr-core": "^41.0.0",
|
|
80
80
|
"cldr-dates-full": "^41.0.0",
|
|
81
81
|
"cldr-numbers-full": "^41.0.0"
|