@progress/kendo-vue-scheduler 3.8.4-dev.202302160720 → 3.8.4-dev.202302210950

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.
@@ -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.$props.row === target.$props.row - 1 && slot.$props.col === target.$props.col;
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.$props.row === target.$props.row && slot.$props.col === target.$props.col - 1;
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.$props.row === target.$props.row && slot.$props.col === target.$props.col + 1;
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.$props.row === target.$props.row + 1 && slot.$props.col === target.$props.col;
93
+ return slot !== null && target !== null && slot.cSlot.row === target.$props.row + 1 && slot.cSlot.col === target.$props.col;
94
94
  });
95
95
  };
@@ -6,6 +6,8 @@ import { Range } from './Range';
6
6
  export interface Slot {
7
7
  /** @hidden */
8
8
  refTo: any;
9
+ /** @hidden */
10
+ cSlot?: any;
9
11
  /**
10
12
  * Represents the consecutive number of the slot in the current range.
11
13
  */
@@ -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: 1676531723,
8
+ publishDate: 1676972565,
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
  };
@@ -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.$props.isAllDay))
461
- && item.$props.range.index === slot.$props.range.index
462
- && item.$props.group.index === slot.$props.group.index
463
- && intersects(item.$props.start, item.$props.end, slot.$props.start, slot.$props.end);
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 fit = (ignoreIsAllDay || (item.isAllDay === slot.isAllDay))
486
- && item.range.index === slot.range.index
487
- && item.group.index === slot.group.index
488
- && intersects(item.start, item.end, slot.start, slot.end);
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
- slot.items.push(item);
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 fit = (ignoreIsAllDay || (item.isAllDay === slot.isAllDay))
510
- && item.range.index === slot.range.index
511
- && item.group.index === slot.group.index
512
- && intersects(item.start, item.end, slot.start, slot.end);
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.$props.row === target.$props.row - 1 && slot.$props.col === target.$props.col;
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.$props.row === target.$props.row && slot.$props.col === target.$props.col - 1;
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.$props.row === target.$props.row && slot.$props.col === target.$props.col + 1;
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.$props.row === target.$props.row + 1 && slot.$props.col === target.$props.col;
93
+ return slot !== null && target !== null && slot.cSlot.row === target.$props.row + 1 && slot.cSlot.col === target.$props.col;
94
94
  });
95
95
  };
@@ -6,6 +6,8 @@ import { Range } from './Range';
6
6
  export interface Slot {
7
7
  /** @hidden */
8
8
  refTo: any;
9
+ /** @hidden */
10
+ cSlot?: any;
9
11
  /**
10
12
  * Represents the consecutive number of the slot in the current range.
11
13
  */
@@ -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: 1676531723,
8
+ publishDate: 1676972565,
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
  };
@@ -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.$props.isAllDay))
461
- && item.$props.range.index === slot.$props.range.index
462
- && item.$props.group.index === slot.$props.group.index
463
- && intersects(item.$props.start, item.$props.end, slot.$props.start, slot.$props.end);
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 fit = (ignoreIsAllDay || (item.isAllDay === slot.isAllDay))
486
- && item.range.index === slot.range.index
487
- && item.group.index === slot.group.index
488
- && intersects(item.start, item.end, slot.start, slot.end);
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
- slot.items.push(item);
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 fit = (ignoreIsAllDay || (item.isAllDay === slot.isAllDay))
510
- && item.range.index === slot.range.index
511
- && item.group.index === slot.group.index
512
- && intersects(item.start, item.end, slot.start, slot.end);
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.$props.row === target.$props.row - 1 && slot.$props.col === target.$props.col;
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.$props.row === target.$props.row && slot.$props.col === target.$props.col - 1;
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.$props.row === target.$props.row && slot.$props.col === target.$props.col + 1;
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.$props.row === target.$props.row + 1 && slot.$props.col === target.$props.col;
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;
@@ -6,6 +6,8 @@ import { Range } from './Range';
6
6
  export interface Slot {
7
7
  /** @hidden */
8
8
  refTo: any;
9
+ /** @hidden */
10
+ cSlot?: any;
9
11
  /**
10
12
  * Represents the consecutive number of the slot in the current range.
11
13
  */
@@ -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: 1676531723,
11
+ publishDate: 1676972565,
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
  };
@@ -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.$props.isAllDay))
504
- && item.$props.range.index === slot.$props.range.index
505
- && item.$props.group.index === slot.$props.group.index
506
- && (0, exports.intersects)(item.$props.start, item.$props.end, slot.$props.start, slot.$props.end);
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 fit = (ignoreIsAllDay || (item.isAllDay === slot.isAllDay))
530
- && item.range.index === slot.range.index
531
- && item.group.index === slot.group.index
532
- && (0, exports.intersects)(item.start, item.end, slot.start, slot.end);
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
- slot.items.push(item);
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 fit = (ignoreIsAllDay || (item.isAllDay === slot.isAllDay))
555
- && item.range.index === slot.range.index
556
- && item.group.index === slot.group.index
557
- && (0, exports.intersects)(item.start, item.end, slot.start, slot.end);
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.202302160720",
4
+ "version": "3.8.4-dev.202302210950",
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.202302160720"
53
+ "@progress/kendo-vue-common": "3.8.4-dev.202302210950"
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.202302160720",
70
- "@progress/kendo-vue-dateinputs": "3.8.4-dev.202302160720",
71
- "@progress/kendo-vue-dialogs": "3.8.4-dev.202302160720",
72
- "@progress/kendo-vue-dropdowns": "3.8.4-dev.202302160720",
73
- "@progress/kendo-vue-form": "3.8.4-dev.202302160720",
74
- "@progress/kendo-vue-inputs": "3.8.4-dev.202302160720",
75
- "@progress/kendo-vue-intl": "3.8.4-dev.202302160720",
76
- "@progress/kendo-vue-labels": "3.8.4-dev.202302160720",
77
- "@progress/kendo-vue-popup": "3.8.4-dev.202302160720",
78
- "@progress/kendo-vue-progressbars": "3.8.4-dev.202302160720",
69
+ "@progress/kendo-vue-buttons": "3.8.4-dev.202302210950",
70
+ "@progress/kendo-vue-dateinputs": "3.8.4-dev.202302210950",
71
+ "@progress/kendo-vue-dialogs": "3.8.4-dev.202302210950",
72
+ "@progress/kendo-vue-dropdowns": "3.8.4-dev.202302210950",
73
+ "@progress/kendo-vue-form": "3.8.4-dev.202302210950",
74
+ "@progress/kendo-vue-inputs": "3.8.4-dev.202302210950",
75
+ "@progress/kendo-vue-intl": "3.8.4-dev.202302210950",
76
+ "@progress/kendo-vue-labels": "3.8.4-dev.202302210950",
77
+ "@progress/kendo-vue-popup": "3.8.4-dev.202302210950",
78
+ "@progress/kendo-vue-progressbars": "3.8.4-dev.202302210950",
79
79
  "cldr-core": "^41.0.0",
80
80
  "cldr-dates-full": "^41.0.0",
81
81
  "cldr-numbers-full": "^41.0.0"