@progress/kendo-vue-scheduler 3.1.0-dev.202203011833 → 3.1.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.
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 +129 -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/ViewSelectorItem.js +5 -7
  11. package/dist/es/components/header/view-selector/ViewSelectorList.js +19 -13
  12. package/dist/es/context/SchedulerResourceIteratorContext.js +2 -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 +104 -17
  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 +127 -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/ViewSelectorItem.js +6 -7
  63. package/dist/npm/components/header/view-selector/ViewSelectorList.js +21 -13
  64. package/dist/npm/context/SchedulerResourceIteratorContext.js +2 -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 +107 -17
  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
@@ -7,8 +7,7 @@ import { Button } from '@progress/kendo-vue-buttons'; // tslint:enable:max-line-
7
7
 
8
8
  var ShowMoreItemsButtonVue2 = {
9
9
  name: 'KendoShowMoreItemsButton',
10
- props: {
11
- currentSlot: Object
10
+ props: {// currentSlot: Object
12
11
  },
13
12
  inject: {
14
13
  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,88 @@
1
+ // @ts-ignore
2
+ import * as Vue from 'vue';
3
+ var allVue = Vue;
4
+ var gh = allVue.h;
5
+ import { showFullDay, showWorkDay, messages } from '../../../messages';
6
+ import { ToolbarItem } from '@progress/kendo-vue-buttons';
7
+ import { getDefaultSlots } from '@progress/kendo-vue-common';
8
+ import { Button } from '@progress/kendo-vue-buttons';
9
+ import { provideLocalizationService } from '@progress/kendo-vue-intl'; // tslint:enable:max-line-length
10
+
11
+ var BusinessHoursVue2 = {
12
+ name: 'KendoBusinessHours',
13
+ // @ts-ignore
14
+ emits: {
15
+ click: null
16
+ },
17
+ inject: {
18
+ ks: {
19
+ default: null
20
+ },
21
+ kendoLocalizationService: {
22
+ default: null
23
+ }
24
+ },
25
+ props: {
26
+ slotDuration: Number
27
+ },
28
+ // @ts-ignore
29
+ setup: !gh ? undefined : function () {
30
+ var v3 = !!gh;
31
+ return {
32
+ v3: v3
33
+ };
34
+ },
35
+ // @ts-ignore
36
+ render: function render(createElement) {
37
+ var _this = this;
38
+
39
+ var h = gh || createElement;
40
+ var defaultSlot = getDefaultSlots(this);
41
+ this.localization = provideLocalizationService(this);
42
+ return this.slotDuration && this.slotDuration < 24 * 60 ? // @ts-ignore function children
43
+ h(ToolbarItem // ref={(item) => { if (item) { element.current = item.element; } }}
44
+ , {
45
+ "class": 'k-scheduler-navigation'
46
+ }, this.v3 ? function () {
47
+ return [defaultSlot ? defaultSlot : // @ts-ignore function children
48
+ h(Button, {
49
+ tabIndex: -1,
50
+ attrs: _this.v3 ? undefined : {
51
+ tabIndex: -1
52
+ },
53
+ onClick: _this.handleShowWorkHoursClick,
54
+ on: _this.v3 ? undefined : {
55
+ "click": _this.handleShowWorkHoursClick
56
+ }
57
+ }, _this.v3 ? function () {
58
+ return [h("span", {
59
+ "class": "k-icon k-i-clock"
60
+ }), "\xA0", _this.localization.toLanguageString(_this.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this.ks.showWorkHours ? showFullDay : showWorkDay])];
61
+ } : [h("span", {
62
+ "class": "k-icon k-i-clock"
63
+ }), "\xA0", _this.localization.toLanguageString(_this.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this.ks.showWorkHours ? showFullDay : showWorkDay])])];
64
+ } : [defaultSlot ? defaultSlot : h(Button, {
65
+ tabIndex: -1,
66
+ attrs: _this.v3 ? undefined : {
67
+ tabIndex: -1
68
+ },
69
+ onClick: _this.handleShowWorkHoursClick,
70
+ on: _this.v3 ? undefined : {
71
+ "click": _this.handleShowWorkHoursClick
72
+ }
73
+ }, _this.v3 ? function () {
74
+ return [h("span", {
75
+ "class": "k-icon k-i-clock"
76
+ }), "\xA0", _this.localization.toLanguageString(_this.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this.ks.showWorkHours ? showFullDay : showWorkDay])];
77
+ } : [h("span", {
78
+ "class": "k-icon k-i-clock"
79
+ }), "\xA0", _this.localization.toLanguageString(_this.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this.ks.showWorkHours ? showFullDay : showWorkDay])])]) : null;
80
+ },
81
+ methods: {
82
+ handleShowWorkHoursClick: function handleShowWorkHoursClick(e) {
83
+ this.$emit('click', e);
84
+ }
85
+ }
86
+ };
87
+ var BusinessHours = BusinessHoursVue2;
88
+ export { BusinessHours, BusinessHoursVue2 };
@@ -54,7 +54,7 @@ var NavigationDatePickerVue2 = {
54
54
  // @ts-ignore
55
55
  render: function render(createElement) {
56
56
  var h = gh || createElement;
57
- var normalized = ZonedDate.fromLocalDate(this.$props.value, this.ks.timezone);
57
+ var normalized = ZonedDate.fromLocalDate(this.$props.value || this.ks.currentDate, this.ks.timezone);
58
58
  var value = getDate(normalized);
59
59
  return (// @ts-ignore
60
60
  h(DatePicker, {
@@ -64,8 +64,7 @@ var NavigationDatePickerVue2 = {
64
64
  dateInput: EMPTY_DATE_INPUT,
65
65
  attrs: this.v3 ? undefined : {
66
66
  dateInput: EMPTY_DATE_INPUT,
67
- toggleButton: DatePickerToggleButton // {...props}
68
- ,
67
+ toggleButton: DatePickerToggleButton,
69
68
  value: value
70
69
  },
71
70
  toggleButton: DatePickerToggleButton,
@@ -2,12 +2,23 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ import { Button, ButtonGroup } from '@progress/kendo-vue-buttons';
5
6
  import { ToolbarItem } from '@progress/kendo-vue-buttons';
6
- import { getDefaultSlots } from '@progress/kendo-vue-common'; // tslint:enable:max-line-length
7
+ import { getDefaultSlots } from '@progress/kendo-vue-common';
8
+ import { messages, today, previousTitle, nextTitle } from '../../../messages';
9
+ import { provideLocalizationService } from '@progress/kendo-vue-intl'; // tslint:enable:max-line-length
7
10
 
8
11
  var SchedulerNavigationVue2 = {
9
12
  name: 'KendoSchedulerNavigation',
10
13
  props: {},
14
+ inject: {
15
+ ks: {
16
+ default: null
17
+ },
18
+ kendoLocalizationService: {
19
+ default: null
20
+ }
21
+ },
11
22
  // @ts-ignore
12
23
  setup: !gh ? undefined : function () {
13
24
  var v3 = !!gh;
@@ -17,13 +28,318 @@ var SchedulerNavigationVue2 = {
17
28
  },
18
29
  // @ts-ignore
19
30
  render: function render(createElement) {
31
+ var _this = this;
32
+
20
33
  var h = gh || createElement;
21
34
  var defaultSlot = getDefaultSlots(this);
35
+ this.localization = provideLocalizationService(this);
36
+ var todayText = this.localization.toLanguageString(today, messages[today]);
37
+ var previousText = this.localization.toLanguageString(previousTitle, messages[previousTitle]);
38
+ var nextText = this.localization.toLanguageString(nextTitle, messages[nextTitle]);
22
39
  return (// @ts-ignore function children
23
40
  h(ToolbarItem, this.v3 ? function () {
24
- return [defaultSlot];
25
- } : [defaultSlot])
41
+ return [// @ts-ignore function children
42
+ h(ButtonGroup, {
43
+ "class": "k-scheduler-navigation"
44
+ }, _this.v3 ? function () {
45
+ return [// @ts-ignore function children
46
+ h(Button, {
47
+ role: "button",
48
+ attrs: _this.v3 ? undefined : {
49
+ role: "button",
50
+ tabIndex: -1,
51
+ title: todayText,
52
+ "aria-label": todayText
53
+ },
54
+ tabIndex: -1,
55
+ title: todayText,
56
+ "aria-label": todayText,
57
+ onClick: _this.handleTodayClick,
58
+ on: _this.v3 ? undefined : {
59
+ "click": _this.handleTodayClick
60
+ }
61
+ }, _this.v3 ? function () {
62
+ return [todayText];
63
+ } : [todayText]), // @ts-ignore function children
64
+ h(Button, {
65
+ role: "button",
66
+ attrs: _this.v3 ? undefined : {
67
+ role: "button",
68
+ tabIndex: -1,
69
+ title: previousText,
70
+ "aria-label": previousText
71
+ },
72
+ tabIndex: -1,
73
+ "class": "k-button-icon",
74
+ title: previousText,
75
+ "aria-label": previousText,
76
+ onClick: _this.handlePrevClick,
77
+ on: _this.v3 ? undefined : {
78
+ "click": _this.handlePrevClick
79
+ }
80
+ }, _this.v3 ? function () {
81
+ return [h("span", {
82
+ "class": "k-button-text"
83
+ }, [h("span", {
84
+ "class": "k-icon k-i-arrow-60-left"
85
+ })])];
86
+ } : [h("span", {
87
+ "class": "k-button-text"
88
+ }, [h("span", {
89
+ "class": "k-icon k-i-arrow-60-left"
90
+ })])]), // @ts-ignore function children
91
+ h(Button, {
92
+ role: "button",
93
+ attrs: _this.v3 ? undefined : {
94
+ role: "button",
95
+ tabIndex: -1,
96
+ title: nextText,
97
+ "aria-label": nextText
98
+ },
99
+ tabIndex: -1,
100
+ "class": "k-button-icon",
101
+ title: nextText,
102
+ "aria-label": nextText,
103
+ onClick: _this.handleNextClick,
104
+ on: _this.v3 ? undefined : {
105
+ "click": _this.handleNextClick
106
+ }
107
+ }, _this.v3 ? function () {
108
+ return [h("span", {
109
+ "class": "k-button-text"
110
+ }, [h("span", {
111
+ "class": "k-icon k-i-arrow-60-right"
112
+ })])];
113
+ } : [h("span", {
114
+ "class": "k-button-text"
115
+ }, [h("span", {
116
+ "class": "k-icon k-i-arrow-60-right"
117
+ })])])];
118
+ } : [h(Button, {
119
+ role: "button",
120
+ attrs: _this.v3 ? undefined : {
121
+ role: "button",
122
+ tabIndex: -1,
123
+ title: todayText,
124
+ "aria-label": todayText
125
+ },
126
+ tabIndex: -1,
127
+ title: todayText,
128
+ "aria-label": todayText,
129
+ onClick: _this.handleTodayClick,
130
+ on: _this.v3 ? undefined : {
131
+ "click": _this.handleTodayClick
132
+ }
133
+ }, _this.v3 ? function () {
134
+ return [todayText];
135
+ } : [todayText]), h(Button, {
136
+ role: "button",
137
+ attrs: _this.v3 ? undefined : {
138
+ role: "button",
139
+ tabIndex: -1,
140
+ title: previousText,
141
+ "aria-label": previousText
142
+ },
143
+ tabIndex: -1,
144
+ "class": "k-button-icon",
145
+ title: previousText,
146
+ "aria-label": previousText,
147
+ onClick: _this.handlePrevClick,
148
+ on: _this.v3 ? undefined : {
149
+ "click": _this.handlePrevClick
150
+ }
151
+ }, _this.v3 ? function () {
152
+ return [h("span", {
153
+ "class": "k-button-text"
154
+ }, [h("span", {
155
+ "class": "k-icon k-i-arrow-60-left"
156
+ })])];
157
+ } : [h("span", {
158
+ "class": "k-button-text"
159
+ }, [h("span", {
160
+ "class": "k-icon k-i-arrow-60-left"
161
+ })])]), h(Button, {
162
+ role: "button",
163
+ attrs: _this.v3 ? undefined : {
164
+ role: "button",
165
+ tabIndex: -1,
166
+ title: nextText,
167
+ "aria-label": nextText
168
+ },
169
+ tabIndex: -1,
170
+ "class": "k-button-icon",
171
+ title: nextText,
172
+ "aria-label": nextText,
173
+ onClick: _this.handleNextClick,
174
+ on: _this.v3 ? undefined : {
175
+ "click": _this.handleNextClick
176
+ }
177
+ }, _this.v3 ? function () {
178
+ return [h("span", {
179
+ "class": "k-button-text"
180
+ }, [h("span", {
181
+ "class": "k-icon k-i-arrow-60-right"
182
+ })])];
183
+ } : [h("span", {
184
+ "class": "k-button-text"
185
+ }, [h("span", {
186
+ "class": "k-icon k-i-arrow-60-right"
187
+ })])])])];
188
+ } : [h(ButtonGroup, {
189
+ "class": "k-scheduler-navigation"
190
+ }, _this.v3 ? function () {
191
+ return [h(Button, {
192
+ role: "button",
193
+ attrs: _this.v3 ? undefined : {
194
+ role: "button",
195
+ tabIndex: -1,
196
+ title: todayText,
197
+ "aria-label": todayText
198
+ },
199
+ tabIndex: -1,
200
+ title: todayText,
201
+ "aria-label": todayText,
202
+ onClick: _this.handleTodayClick,
203
+ on: _this.v3 ? undefined : {
204
+ "click": _this.handleTodayClick
205
+ }
206
+ }, _this.v3 ? function () {
207
+ return [todayText];
208
+ } : [todayText]), h(Button, {
209
+ role: "button",
210
+ attrs: _this.v3 ? undefined : {
211
+ role: "button",
212
+ tabIndex: -1,
213
+ title: previousText,
214
+ "aria-label": previousText
215
+ },
216
+ tabIndex: -1,
217
+ "class": "k-button-icon",
218
+ title: previousText,
219
+ "aria-label": previousText,
220
+ onClick: _this.handlePrevClick,
221
+ on: _this.v3 ? undefined : {
222
+ "click": _this.handlePrevClick
223
+ }
224
+ }, _this.v3 ? function () {
225
+ return [h("span", {
226
+ "class": "k-button-text"
227
+ }, [h("span", {
228
+ "class": "k-icon k-i-arrow-60-left"
229
+ })])];
230
+ } : [h("span", {
231
+ "class": "k-button-text"
232
+ }, [h("span", {
233
+ "class": "k-icon k-i-arrow-60-left"
234
+ })])]), h(Button, {
235
+ role: "button",
236
+ attrs: _this.v3 ? undefined : {
237
+ role: "button",
238
+ tabIndex: -1,
239
+ title: nextText,
240
+ "aria-label": nextText
241
+ },
242
+ tabIndex: -1,
243
+ "class": "k-button-icon",
244
+ title: nextText,
245
+ "aria-label": nextText,
246
+ onClick: _this.handleNextClick,
247
+ on: _this.v3 ? undefined : {
248
+ "click": _this.handleNextClick
249
+ }
250
+ }, _this.v3 ? function () {
251
+ return [h("span", {
252
+ "class": "k-button-text"
253
+ }, [h("span", {
254
+ "class": "k-icon k-i-arrow-60-right"
255
+ })])];
256
+ } : [h("span", {
257
+ "class": "k-button-text"
258
+ }, [h("span", {
259
+ "class": "k-icon k-i-arrow-60-right"
260
+ })])])];
261
+ } : [h(Button, {
262
+ role: "button",
263
+ attrs: _this.v3 ? undefined : {
264
+ role: "button",
265
+ tabIndex: -1,
266
+ title: todayText,
267
+ "aria-label": todayText
268
+ },
269
+ tabIndex: -1,
270
+ title: todayText,
271
+ "aria-label": todayText,
272
+ onClick: _this.handleTodayClick,
273
+ on: _this.v3 ? undefined : {
274
+ "click": _this.handleTodayClick
275
+ }
276
+ }, _this.v3 ? function () {
277
+ return [todayText];
278
+ } : [todayText]), h(Button, {
279
+ role: "button",
280
+ attrs: _this.v3 ? undefined : {
281
+ role: "button",
282
+ tabIndex: -1,
283
+ title: previousText,
284
+ "aria-label": previousText
285
+ },
286
+ tabIndex: -1,
287
+ "class": "k-button-icon",
288
+ title: previousText,
289
+ "aria-label": previousText,
290
+ onClick: _this.handlePrevClick,
291
+ on: _this.v3 ? undefined : {
292
+ "click": _this.handlePrevClick
293
+ }
294
+ }, _this.v3 ? function () {
295
+ return [h("span", {
296
+ "class": "k-button-text"
297
+ }, [h("span", {
298
+ "class": "k-icon k-i-arrow-60-left"
299
+ })])];
300
+ } : [h("span", {
301
+ "class": "k-button-text"
302
+ }, [h("span", {
303
+ "class": "k-icon k-i-arrow-60-left"
304
+ })])]), h(Button, {
305
+ role: "button",
306
+ attrs: _this.v3 ? undefined : {
307
+ role: "button",
308
+ tabIndex: -1,
309
+ title: nextText,
310
+ "aria-label": nextText
311
+ },
312
+ tabIndex: -1,
313
+ "class": "k-button-icon",
314
+ title: nextText,
315
+ "aria-label": nextText,
316
+ onClick: _this.handleNextClick,
317
+ on: _this.v3 ? undefined : {
318
+ "click": _this.handleNextClick
319
+ }
320
+ }, _this.v3 ? function () {
321
+ return [h("span", {
322
+ "class": "k-button-text"
323
+ }, [h("span", {
324
+ "class": "k-icon k-i-arrow-60-right"
325
+ })])];
326
+ } : [h("span", {
327
+ "class": "k-button-text"
328
+ }, [h("span", {
329
+ "class": "k-icon k-i-arrow-60-right"
330
+ })])])])])
26
331
  );
332
+ },
333
+ methods: {
334
+ handleTodayClick: function handleTodayClick(e) {
335
+ this.$emit('todayclick', e);
336
+ },
337
+ handlePrevClick: function handlePrevClick(e) {
338
+ this.$emit('prevclick', e);
339
+ },
340
+ handleNextClick: function handleNextClick(e) {
341
+ this.$emit('nextclick', e);
342
+ }
27
343
  }
28
344
  };
29
345
  var SchedulerNavigation = SchedulerNavigationVue2;
@@ -3,7 +3,8 @@ import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
5
  import { ToolbarItem } from '@progress/kendo-vue-buttons';
6
- import { getDefaultSlots } from '@progress/kendo-vue-common'; // tslint:enable:max-line-length
6
+ import { getDefaultSlots } from '@progress/kendo-vue-common';
7
+ import { ViewSelectorList } from './ViewSelectorList'; // tslint:enable:max-line-length
7
8
 
8
9
  var SchedulerViewSelectorVue2 = {
9
10
  name: 'KendoSchedulerViewSelector',
@@ -24,8 +25,8 @@ var SchedulerViewSelectorVue2 = {
24
25
  , {
25
26
  "class": 'k-scheduler-views'
26
27
  }, this.v3 ? function () {
27
- return [defaultSlot];
28
- } : [defaultSlot])
28
+ return [h(ViewSelectorList)];
29
+ } : [h(ViewSelectorList)])
29
30
  );
30
31
  }
31
32
  };
@@ -3,7 +3,8 @@ import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
5
  import { Button } from '@progress/kendo-vue-buttons';
6
- import { provideLocalizationService } from '@progress/kendo-vue-intl'; // tslint:enable:max-line-length
6
+ import { provideLocalizationService } from '@progress/kendo-vue-intl';
7
+ import { messages } from '../../../messages'; // tslint:enable:max-line-length
7
8
 
8
9
  var ViewSelectorItemVue2 = {
9
10
  name: 'KendoViewSelectorItem',
@@ -32,12 +33,9 @@ var ViewSelectorItemVue2 = {
32
33
  render: function render(createElement) {
33
34
  var h = gh || createElement;
34
35
  var localization = provideLocalizationService(this);
35
- var title = this.$props.view.title || this.$props.view.name; // const title = React.useMemo(
36
- // () => typeof props.view.title === 'function'
37
- // ? props.view.title.call(undefined, localization)
38
- // : props.view.title,
39
- // [props.view.title, localization]);
40
-
36
+ var nameTitle = 'scheduler.' + this.$props.view.name + 'ViewTitle';
37
+ var name = localization.toLanguageString(nameTitle, messages[nameTitle]);
38
+ var title = this.$props.view.title || name;
41
39
  return (// @ts-ignore function children
42
40
  h(Button, {
43
41
  role: "button",
@@ -22,11 +22,16 @@ var gh = allVue.h; // import { useSchedulerViewsContext } from '../../../main';
22
22
  // import { useLocalization } from '@progress/kendo-vue-intl';
23
23
 
24
24
  import { DropDownButton, ButtonGroup } from '@progress/kendo-vue-buttons';
25
- import { ViewSelectorItem } from './ViewSelectorItem'; // tslint:enable:max-line-length
25
+ import { ViewSelectorItem } from './ViewSelectorItem';
26
+ import { provideLocalizationService } from '@progress/kendo-vue-intl';
27
+ import { messages } from '../../../messages'; // tslint:enable:max-line-length
26
28
 
27
29
  var ViewSelectorListVue2 = {
28
30
  name: 'KendoViewSelectorList',
29
31
  inject: {
32
+ kendoLocalizationService: {
33
+ default: null
34
+ },
30
35
  ks: {
31
36
  default: null
32
37
  },
@@ -69,13 +74,13 @@ var ViewSelectorListVue2 = {
69
74
  var _this = this;
70
75
 
71
76
  var h = gh || createElement;
72
- var views = this.ks.views; // useSchedulerViewsContext();
73
- // const [activeViewName, setActiveViewName] = useSchedulerActiveViewContext();
74
-
77
+ var views = this.ks.views;
78
+ this.localization = provideLocalizationService(this);
75
79
  var activeView = views.find(function (v) {
76
80
  return v.name === _this.ks.activeViewName;
77
- }); // const localization = useLocalization();
78
-
81
+ });
82
+ var activeNameTitle = 'scheduler.' + activeView.name + 'ViewTitle';
83
+ var activeName = this.localization.toLanguageString(activeNameTitle, messages[activeNameTitle]);
79
84
  return h("div", {
80
85
  "class": "k-scheduler-views-wrapper"
81
86
  }, [activeView && this.media === 'mobile' && // @ts-ignore function children
@@ -94,26 +99,27 @@ var ViewSelectorListVue2 = {
94
99
  },
95
100
  textField: "title",
96
101
  items: views.map(function (v) {
102
+ var nameTitle = 'scheduler.' + v.name + 'ViewTitle';
103
+ var name = this.localization.toLanguageString(nameTitle, messages[nameTitle]);
97
104
  return __assign(__assign({}, v.props), {
98
105
  selected: v.name === this.ks.activeViewName,
99
106
  name: v.name,
100
- title: v.title || v.name
107
+ title: v.title || name
101
108
  });
102
109
  }, this),
103
- text: // {typeof activeView.props.title === 'function'
104
- // ? activeView.props.title.call(undefined, localization)
105
- // :
106
- activeView.title || activeView.name
110
+ text: activeView.title || activeName
107
111
  },
108
112
  textField: "title",
109
113
  items: views.map(function (v) {
114
+ var nameTitle = 'scheduler.' + v.name + 'ViewTitle';
115
+ var name = this.localization.toLanguageString(nameTitle, messages[nameTitle]);
110
116
  return __assign(__assign({}, v.props), {
111
117
  selected: v.name === this.ks.activeViewName,
112
118
  name: v.name,
113
- title: v.title || v.name
119
+ title: v.title || name
114
120
  });
115
121
  }, this),
116
- text: activeView.title || activeView.name
122
+ text: activeView.title || activeName
117
123
  }, this.v3 ? function () {
118
124
  return [h("span", {
119
125
  "class": "k-icon k-i-arrow-60-down"
@@ -44,9 +44,9 @@ var SchedulerResourceIteratorContextVue2 = {
44
44
  render: function render(createElement) {
45
45
  var h = gh || createElement;
46
46
  var defaultSlot = getDefaultSlots(this);
47
- return this.$props.noWrap ? defaultSlot[0] : h("div", {
47
+ return defaultSlot ? this.$props.noWrap && defaultSlot ? defaultSlot[0] : h("div", {
48
48
  "class": "k-scheduler-cell k-group-cell"
49
- }, [defaultSlot]);
49
+ }, [defaultSlot]) : null;
50
50
  }
51
51
  };
52
52
  var SchedulerResourceIteratorContext = SchedulerResourceIteratorContextVue2;
@@ -19,6 +19,7 @@ var SchedulerEditItemVue2 = {
19
19
  name: 'KendoSchedulerEditItem',
20
20
  props: {
21
21
  tabIndex: Number,
22
+ item: [String, Function, Object],
22
23
  viewItem: [String, Function, Object],
23
24
  drag: [String, Function, Object],
24
25
  resize: [String, Function, Object],
@@ -89,7 +90,8 @@ var SchedulerEditItemVue2 = {
89
90
  showOccurrenceDialog: this.showOccurrenceDialog
90
91
  },
91
92
  currentTabIndex: this.$props.tabIndex,
92
- item: null
93
+ currentItem: null // item: null
94
+
93
95
  };
94
96
  },
95
97
  computed: {
@@ -457,14 +459,13 @@ var SchedulerEditItemVue2 = {
457
459
  this.$emit('click', event);
458
460
  },
459
461
  handleDoubleClick: function handleDoubleClick(event) {
460
- if (this.onDoubleClickAction) {
461
- var actions = this.onDoubleClickAction(event, this.props, this.currentState);
462
-
463
- if (actions) {// Array.isArray(actions)
464
- // ? actions.filter(Boolean).map((action) => action &&
465
- // this.actionsReducerMap[action.type]({...action, item: this.item}, event))
466
- // : this.actionsReducerMap[actions.type]({...actions, item: this.item});
467
- }
462
+ if (this.onDoubleClickAction) {// const actions = this.onDoubleClickAction(event, this.props, this.currentState);
463
+ // if (actions) {
464
+ // Array.isArray(actions)
465
+ // ? actions.filter(Boolean).map((action) => action &&
466
+ // this.actionsReducerMap[action.type]({...action, item: this.item}, event))
467
+ // : this.actionsReducerMap[actions.type]({...actions, item: this.item});
468
+ // }
468
469
  }
469
470
 
470
471
  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 %}).