@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
@@ -16,8 +16,7 @@ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons"); // tslint:enab
16
16
 
17
17
  var ShowMoreItemsButtonVue2 = {
18
18
  name: 'KendoShowMoreItemsButton',
19
- props: {
20
- currentSlot: Object
19
+ props: {// currentSlot: Object
21
20
  },
22
21
  inject: {
23
22
  kendoLocalizationService: {
@@ -5,6 +5,7 @@ declare type DefaultMethods<V> = {
5
5
  };
6
6
  /** @hidden */
7
7
  export interface BusinessHoursProps {
8
+ slotDuration?: number;
8
9
  }
9
10
  /** @hidden */
10
11
  export interface BusinessHoursHandle {
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.BusinessHoursVue2 = exports.BusinessHours = void 0; // @ts-ignore
7
+
8
+ var Vue = require("vue");
9
+
10
+ var allVue = Vue;
11
+ var gh = allVue.h;
12
+
13
+ var messages_1 = require("../../../messages");
14
+
15
+ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
16
+
17
+ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
18
+
19
+ var kendo_vue_buttons_2 = require("@progress/kendo-vue-buttons");
20
+
21
+ var kendo_vue_intl_1 = require("@progress/kendo-vue-intl"); // tslint:enable:max-line-length
22
+
23
+
24
+ var BusinessHoursVue2 = {
25
+ name: 'KendoBusinessHours',
26
+ // @ts-ignore
27
+ emits: {
28
+ click: null
29
+ },
30
+ inject: {
31
+ ks: {
32
+ default: null
33
+ },
34
+ kendoLocalizationService: {
35
+ default: null
36
+ }
37
+ },
38
+ props: {
39
+ slotDuration: Number
40
+ },
41
+ // @ts-ignore
42
+ setup: !gh ? undefined : function () {
43
+ var v3 = !!gh;
44
+ return {
45
+ v3: v3
46
+ };
47
+ },
48
+ // @ts-ignore
49
+ render: function render(createElement) {
50
+ var _this = this;
51
+
52
+ var h = gh || createElement;
53
+ var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
54
+ this.localization = kendo_vue_intl_1.provideLocalizationService(this);
55
+ return this.slotDuration && this.slotDuration < 24 * 60 ? // @ts-ignore function children
56
+ h(kendo_vue_buttons_1.ToolbarItem, {
57
+ // ref={(item) => { if (item) { element.current = item.element; } }}
58
+ "class": 'k-scheduler-navigation'
59
+ }, this.v3 ? function () {
60
+ return [defaultSlot ? defaultSlot : // @ts-ignore function children
61
+ h(kendo_vue_buttons_2.Button, {
62
+ tabIndex: -1,
63
+ attrs: _this.v3 ? undefined : {
64
+ tabIndex: -1
65
+ },
66
+ onClick: _this.handleShowWorkHoursClick,
67
+ on: _this.v3 ? undefined : {
68
+ "click": _this.handleShowWorkHoursClick
69
+ }
70
+ }, _this.v3 ? function () {
71
+ return [h("span", {
72
+ "class": "k-icon k-i-clock"
73
+ }), "\xA0", _this.localization.toLanguageString(_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])];
74
+ } : [h("span", {
75
+ "class": "k-icon k-i-clock"
76
+ }), "\xA0", _this.localization.toLanguageString(_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])])];
77
+ } : [defaultSlot ? defaultSlot : h(kendo_vue_buttons_2.Button, {
78
+ tabIndex: -1,
79
+ attrs: _this.v3 ? undefined : {
80
+ tabIndex: -1
81
+ },
82
+ onClick: _this.handleShowWorkHoursClick,
83
+ on: _this.v3 ? undefined : {
84
+ "click": _this.handleShowWorkHoursClick
85
+ }
86
+ }, _this.v3 ? function () {
87
+ return [h("span", {
88
+ "class": "k-icon k-i-clock"
89
+ }), "\xA0", _this.localization.toLanguageString(_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])];
90
+ } : [h("span", {
91
+ "class": "k-icon k-i-clock"
92
+ }), "\xA0", _this.localization.toLanguageString(_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])])]) : null;
93
+ },
94
+ methods: {
95
+ handleShowWorkHoursClick: function handleShowWorkHoursClick(e) {
96
+ this.$emit('click', e);
97
+ }
98
+ }
99
+ };
100
+ exports.BusinessHoursVue2 = BusinessHoursVue2;
101
+ var BusinessHours = BusinessHoursVue2;
102
+ exports.BusinessHours = BusinessHours;
@@ -65,7 +65,7 @@ var NavigationDatePickerVue2 = {
65
65
  // @ts-ignore
66
66
  render: function render(createElement) {
67
67
  var h = gh || createElement;
68
- var normalized = kendo_date_math_1.ZonedDate.fromLocalDate(this.$props.value, this.ks.timezone);
68
+ var normalized = kendo_date_math_1.ZonedDate.fromLocalDate(this.$props.value || this.ks.currentDate, this.ks.timezone);
69
69
  var value = kendo_date_math_1.getDate(normalized);
70
70
  return (// @ts-ignore
71
71
  h(kendo_vue_dateinputs_1.DatePicker, {
@@ -75,8 +75,7 @@ var NavigationDatePickerVue2 = {
75
75
  dateInput: EMPTY_DATE_INPUT,
76
76
  attrs: this.v3 ? undefined : {
77
77
  dateInput: EMPTY_DATE_INPUT,
78
- toggleButton: DatePickerToggleButton_1.DatePickerToggleButton // {...props}
79
- ,
78
+ toggleButton: DatePickerToggleButton_1.DatePickerToggleButton,
80
79
  value: value
81
80
  },
82
81
  toggleButton: DatePickerToggleButton_1.DatePickerToggleButton,
@@ -12,12 +12,26 @@ var gh = allVue.h;
12
12
 
13
13
  var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
14
14
 
15
- var kendo_vue_common_1 = require("@progress/kendo-vue-common"); // tslint:enable:max-line-length
15
+ var kendo_vue_buttons_2 = require("@progress/kendo-vue-buttons");
16
+
17
+ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
18
+
19
+ var messages_1 = require("../../../messages");
20
+
21
+ var kendo_vue_intl_1 = require("@progress/kendo-vue-intl"); // tslint:enable:max-line-length
16
22
 
17
23
 
18
24
  var SchedulerNavigationVue2 = {
19
25
  name: 'KendoSchedulerNavigation',
20
26
  props: {},
27
+ inject: {
28
+ ks: {
29
+ default: null
30
+ },
31
+ kendoLocalizationService: {
32
+ default: null
33
+ }
34
+ },
21
35
  // @ts-ignore
22
36
  setup: !gh ? undefined : function () {
23
37
  var v3 = !!gh;
@@ -27,13 +41,318 @@ var SchedulerNavigationVue2 = {
27
41
  },
28
42
  // @ts-ignore
29
43
  render: function render(createElement) {
44
+ var _this = this;
45
+
30
46
  var h = gh || createElement;
31
47
  var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
48
+ this.localization = kendo_vue_intl_1.provideLocalizationService(this);
49
+ var todayText = this.localization.toLanguageString(messages_1.today, messages_1.messages[messages_1.today]);
50
+ var previousText = this.localization.toLanguageString(messages_1.previousTitle, messages_1.messages[messages_1.previousTitle]);
51
+ var nextText = this.localization.toLanguageString(messages_1.nextTitle, messages_1.messages[messages_1.nextTitle]);
32
52
  return (// @ts-ignore function children
33
- h(kendo_vue_buttons_1.ToolbarItem, this.v3 ? function () {
34
- return [defaultSlot];
35
- } : [defaultSlot])
53
+ h(kendo_vue_buttons_2.ToolbarItem, this.v3 ? function () {
54
+ return [// @ts-ignore function children
55
+ h(kendo_vue_buttons_1.ButtonGroup, {
56
+ "class": "k-scheduler-navigation"
57
+ }, _this.v3 ? function () {
58
+ return [// @ts-ignore function children
59
+ h(kendo_vue_buttons_1.Button, {
60
+ role: "button",
61
+ attrs: _this.v3 ? undefined : {
62
+ role: "button",
63
+ tabIndex: -1,
64
+ title: todayText,
65
+ "aria-label": todayText
66
+ },
67
+ tabIndex: -1,
68
+ title: todayText,
69
+ "aria-label": todayText,
70
+ onClick: _this.handleTodayClick,
71
+ on: _this.v3 ? undefined : {
72
+ "click": _this.handleTodayClick
73
+ }
74
+ }, _this.v3 ? function () {
75
+ return [todayText];
76
+ } : [todayText]), // @ts-ignore function children
77
+ h(kendo_vue_buttons_1.Button, {
78
+ role: "button",
79
+ attrs: _this.v3 ? undefined : {
80
+ role: "button",
81
+ tabIndex: -1,
82
+ title: previousText,
83
+ "aria-label": previousText
84
+ },
85
+ tabIndex: -1,
86
+ "class": "k-button-icon",
87
+ title: previousText,
88
+ "aria-label": previousText,
89
+ onClick: _this.handlePrevClick,
90
+ on: _this.v3 ? undefined : {
91
+ "click": _this.handlePrevClick
92
+ }
93
+ }, _this.v3 ? function () {
94
+ return [h("span", {
95
+ "class": "k-button-text"
96
+ }, [h("span", {
97
+ "class": "k-icon k-i-arrow-60-left"
98
+ })])];
99
+ } : [h("span", {
100
+ "class": "k-button-text"
101
+ }, [h("span", {
102
+ "class": "k-icon k-i-arrow-60-left"
103
+ })])]), // @ts-ignore function children
104
+ h(kendo_vue_buttons_1.Button, {
105
+ role: "button",
106
+ attrs: _this.v3 ? undefined : {
107
+ role: "button",
108
+ tabIndex: -1,
109
+ title: nextText,
110
+ "aria-label": nextText
111
+ },
112
+ tabIndex: -1,
113
+ "class": "k-button-icon",
114
+ title: nextText,
115
+ "aria-label": nextText,
116
+ onClick: _this.handleNextClick,
117
+ on: _this.v3 ? undefined : {
118
+ "click": _this.handleNextClick
119
+ }
120
+ }, _this.v3 ? function () {
121
+ return [h("span", {
122
+ "class": "k-button-text"
123
+ }, [h("span", {
124
+ "class": "k-icon k-i-arrow-60-right"
125
+ })])];
126
+ } : [h("span", {
127
+ "class": "k-button-text"
128
+ }, [h("span", {
129
+ "class": "k-icon k-i-arrow-60-right"
130
+ })])])];
131
+ } : [h(kendo_vue_buttons_1.Button, {
132
+ role: "button",
133
+ attrs: _this.v3 ? undefined : {
134
+ role: "button",
135
+ tabIndex: -1,
136
+ title: todayText,
137
+ "aria-label": todayText
138
+ },
139
+ tabIndex: -1,
140
+ title: todayText,
141
+ "aria-label": todayText,
142
+ onClick: _this.handleTodayClick,
143
+ on: _this.v3 ? undefined : {
144
+ "click": _this.handleTodayClick
145
+ }
146
+ }, _this.v3 ? function () {
147
+ return [todayText];
148
+ } : [todayText]), h(kendo_vue_buttons_1.Button, {
149
+ role: "button",
150
+ attrs: _this.v3 ? undefined : {
151
+ role: "button",
152
+ tabIndex: -1,
153
+ title: previousText,
154
+ "aria-label": previousText
155
+ },
156
+ tabIndex: -1,
157
+ "class": "k-button-icon",
158
+ title: previousText,
159
+ "aria-label": previousText,
160
+ onClick: _this.handlePrevClick,
161
+ on: _this.v3 ? undefined : {
162
+ "click": _this.handlePrevClick
163
+ }
164
+ }, _this.v3 ? function () {
165
+ return [h("span", {
166
+ "class": "k-button-text"
167
+ }, [h("span", {
168
+ "class": "k-icon k-i-arrow-60-left"
169
+ })])];
170
+ } : [h("span", {
171
+ "class": "k-button-text"
172
+ }, [h("span", {
173
+ "class": "k-icon k-i-arrow-60-left"
174
+ })])]), h(kendo_vue_buttons_1.Button, {
175
+ role: "button",
176
+ attrs: _this.v3 ? undefined : {
177
+ role: "button",
178
+ tabIndex: -1,
179
+ title: nextText,
180
+ "aria-label": nextText
181
+ },
182
+ tabIndex: -1,
183
+ "class": "k-button-icon",
184
+ title: nextText,
185
+ "aria-label": nextText,
186
+ onClick: _this.handleNextClick,
187
+ on: _this.v3 ? undefined : {
188
+ "click": _this.handleNextClick
189
+ }
190
+ }, _this.v3 ? function () {
191
+ return [h("span", {
192
+ "class": "k-button-text"
193
+ }, [h("span", {
194
+ "class": "k-icon k-i-arrow-60-right"
195
+ })])];
196
+ } : [h("span", {
197
+ "class": "k-button-text"
198
+ }, [h("span", {
199
+ "class": "k-icon k-i-arrow-60-right"
200
+ })])])])];
201
+ } : [h(kendo_vue_buttons_1.ButtonGroup, {
202
+ "class": "k-scheduler-navigation"
203
+ }, _this.v3 ? function () {
204
+ return [h(kendo_vue_buttons_1.Button, {
205
+ role: "button",
206
+ attrs: _this.v3 ? undefined : {
207
+ role: "button",
208
+ tabIndex: -1,
209
+ title: todayText,
210
+ "aria-label": todayText
211
+ },
212
+ tabIndex: -1,
213
+ title: todayText,
214
+ "aria-label": todayText,
215
+ onClick: _this.handleTodayClick,
216
+ on: _this.v3 ? undefined : {
217
+ "click": _this.handleTodayClick
218
+ }
219
+ }, _this.v3 ? function () {
220
+ return [todayText];
221
+ } : [todayText]), h(kendo_vue_buttons_1.Button, {
222
+ role: "button",
223
+ attrs: _this.v3 ? undefined : {
224
+ role: "button",
225
+ tabIndex: -1,
226
+ title: previousText,
227
+ "aria-label": previousText
228
+ },
229
+ tabIndex: -1,
230
+ "class": "k-button-icon",
231
+ title: previousText,
232
+ "aria-label": previousText,
233
+ onClick: _this.handlePrevClick,
234
+ on: _this.v3 ? undefined : {
235
+ "click": _this.handlePrevClick
236
+ }
237
+ }, _this.v3 ? function () {
238
+ return [h("span", {
239
+ "class": "k-button-text"
240
+ }, [h("span", {
241
+ "class": "k-icon k-i-arrow-60-left"
242
+ })])];
243
+ } : [h("span", {
244
+ "class": "k-button-text"
245
+ }, [h("span", {
246
+ "class": "k-icon k-i-arrow-60-left"
247
+ })])]), h(kendo_vue_buttons_1.Button, {
248
+ role: "button",
249
+ attrs: _this.v3 ? undefined : {
250
+ role: "button",
251
+ tabIndex: -1,
252
+ title: nextText,
253
+ "aria-label": nextText
254
+ },
255
+ tabIndex: -1,
256
+ "class": "k-button-icon",
257
+ title: nextText,
258
+ "aria-label": nextText,
259
+ onClick: _this.handleNextClick,
260
+ on: _this.v3 ? undefined : {
261
+ "click": _this.handleNextClick
262
+ }
263
+ }, _this.v3 ? function () {
264
+ return [h("span", {
265
+ "class": "k-button-text"
266
+ }, [h("span", {
267
+ "class": "k-icon k-i-arrow-60-right"
268
+ })])];
269
+ } : [h("span", {
270
+ "class": "k-button-text"
271
+ }, [h("span", {
272
+ "class": "k-icon k-i-arrow-60-right"
273
+ })])])];
274
+ } : [h(kendo_vue_buttons_1.Button, {
275
+ role: "button",
276
+ attrs: _this.v3 ? undefined : {
277
+ role: "button",
278
+ tabIndex: -1,
279
+ title: todayText,
280
+ "aria-label": todayText
281
+ },
282
+ tabIndex: -1,
283
+ title: todayText,
284
+ "aria-label": todayText,
285
+ onClick: _this.handleTodayClick,
286
+ on: _this.v3 ? undefined : {
287
+ "click": _this.handleTodayClick
288
+ }
289
+ }, _this.v3 ? function () {
290
+ return [todayText];
291
+ } : [todayText]), h(kendo_vue_buttons_1.Button, {
292
+ role: "button",
293
+ attrs: _this.v3 ? undefined : {
294
+ role: "button",
295
+ tabIndex: -1,
296
+ title: previousText,
297
+ "aria-label": previousText
298
+ },
299
+ tabIndex: -1,
300
+ "class": "k-button-icon",
301
+ title: previousText,
302
+ "aria-label": previousText,
303
+ onClick: _this.handlePrevClick,
304
+ on: _this.v3 ? undefined : {
305
+ "click": _this.handlePrevClick
306
+ }
307
+ }, _this.v3 ? function () {
308
+ return [h("span", {
309
+ "class": "k-button-text"
310
+ }, [h("span", {
311
+ "class": "k-icon k-i-arrow-60-left"
312
+ })])];
313
+ } : [h("span", {
314
+ "class": "k-button-text"
315
+ }, [h("span", {
316
+ "class": "k-icon k-i-arrow-60-left"
317
+ })])]), h(kendo_vue_buttons_1.Button, {
318
+ role: "button",
319
+ attrs: _this.v3 ? undefined : {
320
+ role: "button",
321
+ tabIndex: -1,
322
+ title: nextText,
323
+ "aria-label": nextText
324
+ },
325
+ tabIndex: -1,
326
+ "class": "k-button-icon",
327
+ title: nextText,
328
+ "aria-label": nextText,
329
+ onClick: _this.handleNextClick,
330
+ on: _this.v3 ? undefined : {
331
+ "click": _this.handleNextClick
332
+ }
333
+ }, _this.v3 ? function () {
334
+ return [h("span", {
335
+ "class": "k-button-text"
336
+ }, [h("span", {
337
+ "class": "k-icon k-i-arrow-60-right"
338
+ })])];
339
+ } : [h("span", {
340
+ "class": "k-button-text"
341
+ }, [h("span", {
342
+ "class": "k-icon k-i-arrow-60-right"
343
+ })])])])])
36
344
  );
345
+ },
346
+ methods: {
347
+ handleTodayClick: function handleTodayClick(e) {
348
+ this.$emit('todayclick', e);
349
+ },
350
+ handlePrevClick: function handlePrevClick(e) {
351
+ this.$emit('prevclick', e);
352
+ },
353
+ handleNextClick: function handleNextClick(e) {
354
+ this.$emit('nextclick', e);
355
+ }
37
356
  }
38
357
  };
39
358
  exports.SchedulerNavigationVue2 = SchedulerNavigationVue2;
@@ -12,7 +12,9 @@ var gh = allVue.h;
12
12
 
13
13
  var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
14
14
 
15
- var kendo_vue_common_1 = require("@progress/kendo-vue-common"); // tslint:enable:max-line-length
15
+ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
16
+
17
+ var ViewSelectorList_1 = require("./ViewSelectorList"); // tslint:enable:max-line-length
16
18
 
17
19
 
18
20
  var SchedulerViewSelectorVue2 = {
@@ -34,8 +36,8 @@ var SchedulerViewSelectorVue2 = {
34
36
  // ref={(item) => { if (item) { element.current = item.element; } }}
35
37
  "class": 'k-scheduler-views'
36
38
  }, this.v3 ? function () {
37
- return [defaultSlot];
38
- } : [defaultSlot])
39
+ return [h(ViewSelectorList_1.ViewSelectorList)];
40
+ } : [h(ViewSelectorList_1.ViewSelectorList)])
39
41
  );
40
42
  }
41
43
  };
@@ -87,7 +87,8 @@ var ViewSelectorListVue2 = {
87
87
 
88
88
  return h("div", {
89
89
  "class": "k-scheduler-views-wrapper"
90
- }, [activeView && this.media === 'mobile' && h(kendo_vue_buttons_1.DropDownButton, {
90
+ }, [activeView && this.media === 'mobile' && // @ts-ignore function children
91
+ h(kendo_vue_buttons_1.DropDownButton, {
91
92
  "class": "k-views-dropdown",
92
93
  onItemclick: this.handleItemClick,
93
94
  on: this.v3 ? undefined : {
@@ -122,7 +123,13 @@ var ViewSelectorListVue2 = {
122
123
  });
123
124
  }, this),
124
125
  text: activeView.title || activeView.name
125
- }), this.media === 'desktop' && // @ts-ignore function children
126
+ }, this.v3 ? function () {
127
+ return [h("span", {
128
+ "class": "k-icon k-i-arrow-60-down"
129
+ })];
130
+ } : [h("span", {
131
+ "class": "k-icon k-i-arrow-60-down"
132
+ })]), this.media === 'desktop' && // @ts-ignore function children
126
133
  h(kendo_vue_buttons_1.ButtonGroup, {
127
134
  "class": "k-scheduler-views"
128
135
  }, this.v3 ? function () {
@@ -5,6 +5,7 @@ declare type DefaultMethods<V> = {
5
5
  };
6
6
  /** @hidden */
7
7
  export interface SchedulerResourceIteratorContextProps {
8
+ noWrap: boolean;
8
9
  resource: any;
9
10
  groupIndex: number;
10
11
  }
@@ -17,6 +17,7 @@ var SchedulerResourceIteratorContextVue2 = {
17
17
  name: 'KendoSchedulerResourceIteratorContext',
18
18
  inheritAttrs: false,
19
19
  props: {
20
+ noWrap: Boolean,
20
21
  resource: {
21
22
  type: Object,
22
23
  default: function _default() {
@@ -52,9 +53,9 @@ var SchedulerResourceIteratorContextVue2 = {
52
53
  render: function render(createElement) {
53
54
  var h = gh || createElement;
54
55
  var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
55
- return h("div", {
56
+ return defaultSlot ? this.$props.noWrap && defaultSlot ? defaultSlot[0] : h("div", {
56
57
  "class": "k-scheduler-cell k-group-cell"
57
- }, [defaultSlot]);
58
+ }, [defaultSlot]) : null;
58
59
  }
59
60
  };
60
61
  exports.SchedulerResourceIteratorContextVue2 = SchedulerResourceIteratorContextVue2;
@@ -38,6 +38,7 @@ var SchedulerEditItemVue2 = {
38
38
  name: 'KendoSchedulerEditItem',
39
39
  props: {
40
40
  tabIndex: Number,
41
+ item: [String, Function, Object],
41
42
  viewItem: [String, Function, Object],
42
43
  drag: [String, Function, Object],
43
44
  resize: [String, Function, Object],
@@ -108,7 +109,8 @@ var SchedulerEditItemVue2 = {
108
109
  showOccurrenceDialog: this.showOccurrenceDialog
109
110
  },
110
111
  currentTabIndex: this.$props.tabIndex,
111
- item: null
112
+ currentItem: null // item: null
113
+
112
114
  };
113
115
  },
114
116
  computed: {
@@ -476,14 +478,13 @@ var SchedulerEditItemVue2 = {
476
478
  this.$emit('click', event);
477
479
  },
478
480
  handleDoubleClick: function handleDoubleClick(event) {
479
- if (this.onDoubleClickAction) {
480
- var actions = this.onDoubleClickAction(event, this.props, this.currentState);
481
-
482
- if (actions) {// Array.isArray(actions)
483
- // ? actions.filter(Boolean).map((action) => action &&
484
- // this.actionsReducerMap[action.type]({...action, item: this.item}, event))
485
- // : this.actionsReducerMap[actions.type]({...actions, item: this.item});
486
- }
481
+ if (this.onDoubleClickAction) {// const actions = this.onDoubleClickAction(event, this.props, this.currentState);
482
+ // if (actions) {
483
+ // Array.isArray(actions)
484
+ // ? actions.filter(Boolean).map((action) => action &&
485
+ // this.actionsReducerMap[action.type]({...action, item: this.item}, event))
486
+ // : this.actionsReducerMap[actions.type]({...actions, item: this.item});
487
+ // }
487
488
  }
488
489
 
489
490
  this.$emit('doubleclick', event);
@@ -177,6 +177,8 @@ export interface SchedulerItemProps extends Item {
177
177
  onResizeRelease?: (event: SchedulerItemDragEvent) => void;
178
178
  /** @hidden */
179
179
  maxSiblingsPerSlot?: number;
180
+ /** @hidden */
181
+ itemTitle?: string;
180
182
  }
181
183
  /**
182
184
  * Represents the object which is returned from the `ref` callback of the [SchedulerItem]({% slug api_scheduler_scheduleritem %}).