@progress/kendo-vue-scheduler 3.0.9 → 3.1.1-dev.202203151205

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.
Files changed (108) hide show
  1. package/dist/cdn/js/kendo-vue-scheduler.js +2 -2
  2. package/dist/es/Scheduler.d.ts +1 -1
  3. package/dist/es/Scheduler.js +133 -683
  4. package/dist/es/components/ShowMoreItemsButton.js +1 -2
  5. package/dist/es/components/footer/bussiness-hours/{BussinessHours.d.ts → BusinessHours.d.ts} +1 -0
  6. package/dist/es/components/footer/bussiness-hours/BusinessHours.js +88 -0
  7. package/dist/es/components/header/navigation/NavigationDatePicker.js +2 -3
  8. package/dist/es/components/header/navigation/SchedulerNavigation.js +319 -3
  9. package/dist/es/components/header/view-selector/SchedulerViewSelector.js +4 -3
  10. package/dist/es/components/header/view-selector/ViewSelectorList.js +9 -2
  11. package/dist/es/context/SchedulerResourceIteratorContext.d.ts +1 -0
  12. package/dist/es/context/SchedulerResourceIteratorContext.js +3 -2
  13. package/dist/es/items/SchedulerEditItem.js +10 -9
  14. package/dist/es/items/SchedulerItem.d.ts +2 -0
  15. package/dist/es/items/SchedulerItem.js +111 -29
  16. package/dist/es/items/SchedulerViewItem.js +80 -92
  17. package/dist/es/main.d.ts +5 -1
  18. package/dist/es/main.js +5 -11
  19. package/dist/es/package-metadata.js +1 -1
  20. package/dist/es/slots/SchedulerEditSlot.js +23 -9
  21. package/dist/es/slots/SchedulerSlot.d.ts +4 -0
  22. package/dist/es/slots/SchedulerSlot.js +96 -21
  23. package/dist/es/slots/SchedulerViewSlot.d.ts +1 -1
  24. package/dist/es/slots/SchedulerViewSlot.js +53 -30
  25. package/dist/es/tasks/SchedulerEditTask.js +56 -49
  26. package/dist/es/tasks/SchedulerTask.js +57 -4
  27. package/dist/es/tasks/SchedulerViewTask.js +17 -22
  28. package/dist/es/views/agenda/AgendaView.js +18 -9
  29. package/dist/es/views/agenda/AgendaViewBody.d.ts +1 -0
  30. package/dist/es/views/agenda/AgendaViewBody.js +2 -1
  31. package/dist/es/views/common/VerticalResourceIterator.d.ts +1 -0
  32. package/dist/es/views/common/VerticalResourceIterator.js +124 -28
  33. package/dist/es/views/day/DayView.js +9 -3
  34. package/dist/es/views/day/DayViewAllDaySlots.d.ts +1 -0
  35. package/dist/es/views/day/DayViewAllDaySlots.js +3 -2
  36. package/dist/es/views/day/DayViewMiddleRow.js +12 -9
  37. package/dist/es/views/day/DayViewVerticalRow.d.ts +41 -0
  38. package/dist/es/views/day/DayViewVerticalRow.js +101 -0
  39. package/dist/es/views/day/DayViewVerticalSlotsRow.d.ts +50 -0
  40. package/dist/es/views/day/DayViewVerticalSlotsRow.js +132 -0
  41. package/dist/es/views/day/MultiDayView.d.ts +1 -1
  42. package/dist/es/views/day/MultiDayView.js +167 -284
  43. package/dist/es/views/month/MonthView.d.ts +1 -1
  44. package/dist/es/views/month/MonthView.js +56 -65
  45. package/dist/es/views/month/MonthViewBody.d.ts +2 -0
  46. package/dist/es/views/month/MonthViewBody.js +36 -51
  47. package/dist/es/views/time/MultiDayTimelineView.d.ts +2 -2
  48. package/dist/es/views/time/MultiDayTimelineView.js +52 -41
  49. package/dist/es/views/time/TimelineView.js +9 -3
  50. package/dist/es/views/time/TimelineViewBody.d.ts +2 -0
  51. package/dist/es/views/time/TimelineViewBody.js +6 -2
  52. package/dist/es/views/week/WeekView.js +9 -3
  53. package/dist/es/views/week/WorkWeekView.js +9 -3
  54. package/dist/npm/Scheduler.d.ts +1 -1
  55. package/dist/npm/Scheduler.js +131 -683
  56. package/dist/npm/components/ShowMoreItemsButton.js +1 -2
  57. package/dist/npm/components/footer/bussiness-hours/{BussinessHours.d.ts → BusinessHours.d.ts} +1 -0
  58. package/dist/npm/components/footer/bussiness-hours/BusinessHours.js +102 -0
  59. package/dist/npm/components/header/navigation/NavigationDatePicker.js +2 -3
  60. package/dist/npm/components/header/navigation/SchedulerNavigation.js +323 -4
  61. package/dist/npm/components/header/view-selector/SchedulerViewSelector.js +5 -3
  62. package/dist/npm/components/header/view-selector/ViewSelectorList.js +9 -2
  63. package/dist/npm/context/SchedulerResourceIteratorContext.d.ts +1 -0
  64. package/dist/npm/context/SchedulerResourceIteratorContext.js +3 -2
  65. package/dist/npm/items/SchedulerEditItem.js +10 -9
  66. package/dist/npm/items/SchedulerItem.d.ts +2 -0
  67. package/dist/npm/items/SchedulerItem.js +111 -29
  68. package/dist/npm/items/SchedulerViewItem.js +81 -92
  69. package/dist/npm/main.d.ts +5 -1
  70. package/dist/npm/main.js +9 -11
  71. package/dist/npm/package-metadata.js +1 -1
  72. package/dist/npm/slots/SchedulerEditSlot.js +23 -9
  73. package/dist/npm/slots/SchedulerSlot.d.ts +4 -0
  74. package/dist/npm/slots/SchedulerSlot.js +96 -20
  75. package/dist/npm/slots/SchedulerViewSlot.d.ts +1 -1
  76. package/dist/npm/slots/SchedulerViewSlot.js +52 -29
  77. package/dist/npm/tasks/SchedulerEditTask.js +57 -49
  78. package/dist/npm/tasks/SchedulerTask.js +57 -3
  79. package/dist/npm/tasks/SchedulerViewTask.js +17 -21
  80. package/dist/npm/views/agenda/AgendaView.js +18 -9
  81. package/dist/npm/views/agenda/AgendaViewBody.d.ts +1 -0
  82. package/dist/npm/views/agenda/AgendaViewBody.js +2 -1
  83. package/dist/npm/views/common/VerticalResourceIterator.d.ts +1 -0
  84. package/dist/npm/views/common/VerticalResourceIterator.js +127 -28
  85. package/dist/npm/views/day/DayView.js +9 -3
  86. package/dist/npm/views/day/DayViewAllDaySlots.d.ts +1 -0
  87. package/dist/npm/views/day/DayViewAllDaySlots.js +3 -2
  88. package/dist/npm/views/day/DayViewMiddleRow.js +12 -9
  89. package/dist/npm/views/day/DayViewVerticalRow.d.ts +41 -0
  90. package/dist/npm/views/day/DayViewVerticalRow.js +113 -0
  91. package/dist/npm/views/day/DayViewVerticalSlotsRow.d.ts +50 -0
  92. package/dist/npm/views/day/DayViewVerticalSlotsRow.js +145 -0
  93. package/dist/npm/views/day/MultiDayView.d.ts +1 -1
  94. package/dist/npm/views/day/MultiDayView.js +168 -285
  95. package/dist/npm/views/month/MonthView.d.ts +1 -1
  96. package/dist/npm/views/month/MonthView.js +56 -65
  97. package/dist/npm/views/month/MonthViewBody.d.ts +2 -0
  98. package/dist/npm/views/month/MonthViewBody.js +36 -52
  99. package/dist/npm/views/time/MultiDayTimelineView.d.ts +2 -2
  100. package/dist/npm/views/time/MultiDayTimelineView.js +52 -41
  101. package/dist/npm/views/time/TimelineView.js +9 -3
  102. package/dist/npm/views/time/TimelineViewBody.d.ts +2 -0
  103. package/dist/npm/views/time/TimelineViewBody.js +6 -2
  104. package/dist/npm/views/week/WeekView.js +9 -3
  105. package/dist/npm/views/week/WorkWeekView.js +9 -3
  106. package/package.json +12 -12
  107. package/dist/es/components/footer/bussiness-hours/BussinessHours.js +0 -33
  108. package/dist/npm/components/footer/bussiness-hours/BussinessHours.js +0 -44
@@ -0,0 +1,145 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.DayViewVerticalSlotsRowVue2 = exports.DayViewVerticalSlotsRow = void 0; // @ts-ignore
7
+
8
+ var Vue = require("vue");
9
+
10
+ var allVue = Vue;
11
+ var gh = allVue.h;
12
+
13
+ var MultiDayView_1 = require("./MultiDayView");
14
+
15
+ var SchedulerEditSlot_1 = require("../../slots/SchedulerEditSlot");
16
+
17
+ var utils_1 = require("../../utils");
18
+
19
+ var DayViewRowContent_1 = require("./DayViewRowContent");
20
+
21
+ var FIRST_INDEX = 0; // tslint:enable:max-line-length
22
+
23
+ var DayViewVerticalSlotsRowVue2 = {
24
+ name: 'KendoDayViewVerticalSlotsRow',
25
+ props: {
26
+ groupIndex: Number,
27
+ root: Object,
28
+ rootIndex: Number,
29
+ filtered: Array,
30
+ slotDivisions: {
31
+ type: Number,
32
+ default: 2
33
+ },
34
+ timeSlots: Array,
35
+ timeRanges: Array,
36
+ numberOfDays: Number,
37
+ workDayStart: Date,
38
+ workDayEnd: Date,
39
+ workWeekStart: Number,
40
+ workWeekEnd: Number
41
+ },
42
+ inject: {
43
+ ri: {
44
+ default: null
45
+ }
46
+ },
47
+ // @ts-ignore
48
+ setup: !gh ? undefined : function () {
49
+ var v3 = !!gh;
50
+ return {
51
+ v3: v3
52
+ };
53
+ },
54
+ // @ts-ignore
55
+ render: function render(createElement) {
56
+ var h = gh || createElement;
57
+ var EditSlot = this.$props.editSlot || SchedulerEditSlot_1.SchedulerEditSlot;
58
+ var groupIndex = this.groupIndex;
59
+ var that = this;
60
+ var _a = this.$props,
61
+ timeSlots = _a.timeSlots,
62
+ root = _a.root,
63
+ rootIndex = _a.rootIndex,
64
+ slotDivisions = _a.slotDivisions,
65
+ filtered = _a.filtered,
66
+ workDayStart = _a.workDayStart,
67
+ workDayEnd = _a.workDayEnd,
68
+ numberOfDays = _a.numberOfDays,
69
+ workWeekStart = _a.workWeekStart,
70
+ workWeekEnd = _a.workWeekEnd,
71
+ viewSlot = _a.viewSlot,
72
+ form = _a.form,
73
+ editable = _a.editable;
74
+ return h("div", {
75
+ "class": "k-scheduler-row",
76
+ key: root.index
77
+ }, [h(DayViewRowContent_1.DayViewRowContent, {
78
+ contentSlot: root,
79
+ attrs: this.v3 ? undefined : {
80
+ contentSlot: root,
81
+ isMaster: rootIndex % slotDivisions === 0,
82
+ isLast: (rootIndex + 1) % slotDivisions === 0,
83
+ timeHeaderCell: this.$props.timeHeaderCell
84
+ },
85
+ isMaster: rootIndex % slotDivisions === 0,
86
+ isLast: (rootIndex + 1) % slotDivisions === 0,
87
+ timeHeaderCell: this.$props.timeHeaderCell
88
+ }), this.timeRanges.map(function (_, rangeIndex) {
89
+ return timeSlots.filter(function (s) {
90
+ return s.index === root.index && s.group.index === groupIndex && s.range.index === rangeIndex;
91
+ }).map(function (slot) {
92
+ return h(EditSlot // slotRender={slot}
93
+ , {
94
+ viewSlot: viewSlot,
95
+ attrs: this.v3 ? undefined : {
96
+ viewSlot: viewSlot,
97
+ form: form,
98
+ index: slot.index,
99
+ start: slot.start,
100
+ end: slot.end,
101
+ zonedStart: slot.zonedStart,
102
+ zonedEnd: slot.zonedEnd,
103
+ items: slot.items,
104
+ group: slot.group,
105
+ range: slot.range,
106
+ isAllDay: slot.isAllDay,
107
+ row: filtered.length * (groupIndex || 0) + rootIndex + (groupIndex || 0) * MultiDayView_1.GRID_OFFSET + MultiDayView_1.GRID_OFFSET,
108
+ col: rangeIndex,
109
+ editable: editable,
110
+ isWorkHour: utils_1.isInTimeRange(slot.zonedStart, workDayStart, workDayEnd),
111
+ isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart)
112
+ },
113
+ form: form,
114
+ onDataaction: that.handleDataAction,
115
+ on: this.v3 ? undefined : {
116
+ "dataaction": that.handleDataAction
117
+ },
118
+ index: slot.index,
119
+ start: slot.start,
120
+ end: slot.end,
121
+ zonedStart: slot.zonedStart,
122
+ zonedEnd: slot.zonedEnd,
123
+ items: slot.items,
124
+ group: slot.group,
125
+ range: slot.range,
126
+ isAllDay: slot.isAllDay,
127
+ key: slot.start.getTime() + ":" + slot.group.index,
128
+ row: filtered.length * (groupIndex || 0) + rootIndex + (groupIndex || 0) * MultiDayView_1.GRID_OFFSET + MultiDayView_1.GRID_OFFSET,
129
+ col: rangeIndex,
130
+ editable: editable,
131
+ isWorkHour: utils_1.isInTimeRange(slot.zonedStart, workDayStart, workDayEnd),
132
+ isWorkDay: 0 <= slot.zonedStart.getDay() + (numberOfDays - workWeekStart) && (slot.zonedStart.getDay() + (numberOfDays - workWeekStart)) % numberOfDays <= workWeekEnd + (numberOfDays - workWeekStart)
133
+ });
134
+ }, true);
135
+ }, this)]);
136
+ },
137
+ methods: {
138
+ handleDataAction: function handleDataAction(action) {
139
+ this.$emit('dataaction', action);
140
+ }
141
+ }
142
+ };
143
+ exports.DayViewVerticalSlotsRowVue2 = DayViewVerticalSlotsRowVue2;
144
+ var DayViewVerticalSlotsRow = DayViewVerticalSlotsRowVue2;
145
+ exports.DayViewVerticalSlotsRow = DayViewVerticalSlotsRow;
@@ -113,7 +113,7 @@ export interface MultiDayViewProps extends SchedulerViewProps {
113
113
  /**
114
114
  * Overrides the `slot` prop of the Scheduler for the specified view only.
115
115
  */
116
- slot?: any;
116
+ slotRender?: any;
117
117
  /**
118
118
  * Overrides the `viewSlot` prop of the Scheduler for the specified view only.
119
119
  */