@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
@@ -87,7 +87,8 @@ var SchedulerItemVue2 = {
87
87
  dragHint: Boolean,
88
88
  resizeHint: Boolean,
89
89
  format: String,
90
- maxSiblingsPerSlot: Number
90
+ maxSiblingsPerSlot: Number,
91
+ itemTitle: String
91
92
  },
92
93
  data: function data() {
93
94
  return {
@@ -106,6 +107,12 @@ var SchedulerItemVue2 = {
106
107
  },
107
108
  setItems: {
108
109
  default: null
110
+ },
111
+ itemClick: {
112
+ default: null
113
+ },
114
+ itemDoubleClick: {
115
+ default: null
109
116
  }
110
117
  },
111
118
  computed: {
@@ -238,7 +245,7 @@ var SchedulerItemVue2 = {
238
245
  "mouseout": this.handleMouseOut,
239
246
  "mouseenter": this.handleMouseEnter,
240
247
  "mouseleave": this.handleMouseLeave,
241
- "doubleclick": this.handleDoubleClick,
248
+ "dblclick": this.handleDoubleClick,
242
249
  "keydown": this.handleKeyDown,
243
250
  "keypress": this.handleKeyPress,
244
251
  "keyup": this.handleKeyUp
@@ -252,14 +259,22 @@ var SchedulerItemVue2 = {
252
259
  onMouseout: this.handleMouseOut,
253
260
  onMouseenter: this.handleMouseEnter,
254
261
  onMouseleave: this.handleMouseLeave,
255
- onDoubleclick: this.handleDoubleClick // Keyboard
262
+ onDblclick: this.handleDoubleClick // Keyboard
256
263
  ,
257
264
  onKeydown: this.handleKeyDown,
258
265
  onKeypress: this.handleKeyPress,
259
266
  onKeyup: this.handleKeyUp,
260
267
  "data-group-index": this.$props.group.index,
261
268
  "data-range-index": this.$props.range.index
262
- }, [defaultSlot, !this.$props.resizeHint && h("span", {
269
+ }, [!this.$props.resizeHint && h("span", {
270
+ "class": "k-event-actions"
271
+ }, [this.$props.tail && h("span", {
272
+ "class": "k-icon k-i-arrow-60-left"
273
+ }), this.$props.isRecurring && !this.$props.isException && h("span", {
274
+ "class": "k-icon k-i-reload"
275
+ }), !this.$props.isRecurring && this.$props.isException && h("span", {
276
+ "class": "k-icon k-i-non-recurrence"
277
+ })]), defaultSlot, !this.$props.resizeHint && h("span", {
263
278
  "class": "k-event-actions"
264
279
  }, [editable.remove && h("a", {
265
280
  tabIndex: -1,
@@ -312,130 +327,197 @@ var SchedulerItemVue2 = {
312
327
  handleFocus: function handleFocus(event) {
313
328
  this.$emit('focus', {
314
329
  event: event,
315
- target: this.item
330
+ target: {
331
+ props: __assign({}, this.$props),
332
+ element: this.$el
333
+ }
316
334
  });
317
335
  },
318
336
  handleBlur: function handleBlur(event) {
319
337
  this.$emit('blur', {
320
338
  event: event,
321
- target: this.item
339
+ target: {
340
+ props: __assign({}, this.$props),
341
+ element: this.$el
342
+ }
322
343
  });
323
344
  },
324
345
  // Mouse Handlers
325
346
  handleMouseDown: function handleMouseDown(event) {
326
347
  this.$emit('mousedown', {
327
348
  event: event,
328
- target: this.item
349
+ target: {
350
+ props: __assign({}, this.$props),
351
+ element: this.$el
352
+ }
329
353
  });
330
354
  },
331
355
  handleClick: function handleClick(event) {
332
- this.$emit('click', {
356
+ var args = {
333
357
  event: event,
334
- target: this.item
335
- });
358
+ target: {
359
+ props: __assign({}, this.$props),
360
+ element: this.$el
361
+ }
362
+ };
363
+ this.$emit('click', args);
364
+ this.itemClick(args);
336
365
  },
337
366
  handleMouseUp: function handleMouseUp(event) {
338
367
  this.$emit('mouseup', {
339
368
  event: event,
340
- target: this.item
369
+ target: {
370
+ props: __assign({}, this.$props),
371
+ element: this.$el
372
+ }
341
373
  });
342
374
  },
343
375
  handleMouseOver: function handleMouseOver(event) {
344
376
  this.$emit('mouseover', {
345
377
  event: event,
346
- target: this.item
378
+ target: {
379
+ props: __assign({}, this.$props),
380
+ element: this.$el
381
+ }
347
382
  });
348
383
  },
349
384
  handleMouseOut: function handleMouseOut(event) {
350
385
  this.$emit('mouseout', {
351
386
  event: event,
352
- target: this.item
387
+ target: {
388
+ props: __assign({}, this.$props),
389
+ element: this.$el
390
+ }
353
391
  });
354
392
  },
355
393
  handleMouseEnter: function handleMouseEnter(event) {
356
394
  this.$emit('mouseenter', {
357
395
  event: event,
358
- target: this.item
396
+ target: {
397
+ props: __assign({}, this.$props),
398
+ element: this.$el
399
+ }
359
400
  });
360
401
  },
361
402
  handleMouseLeave: function handleMouseLeave(event) {
362
403
  this.$emit('mouseleave', {
363
404
  event: event,
364
- target: this.item
405
+ target: {
406
+ props: __assign({}, this.$props),
407
+ element: this.$el
408
+ }
365
409
  });
366
410
  },
367
411
  handleDoubleClick: function handleDoubleClick(event) {
368
- this.$emit('doubleclick', {
412
+ var args = {
369
413
  event: event,
370
- target: this.item
371
- });
414
+ target: {
415
+ props: __assign({}, this.$props),
416
+ element: this.$el
417
+ }
418
+ };
419
+ this.$emit('doubleclick', args);
420
+ this.itemDoubleClick(args);
372
421
  },
373
422
  handleRemoveClick: function handleRemoveClick(event) {
374
423
  this.$emit('removeclick', {
375
424
  event: event,
376
- target: this.item
425
+ target: {
426
+ props: __assign({}, this.$props),
427
+ element: this.$el
428
+ }
377
429
  });
378
430
  },
379
431
  // Keyboard Handlers
380
432
  handleKeyDown: function handleKeyDown(event) {
381
433
  this.$emit('keydown', {
382
434
  event: event,
383
- target: this.item
435
+ target: {
436
+ props: __assign({}, this.$props),
437
+ element: this.$el
438
+ }
384
439
  });
385
440
  },
386
441
  handleKeyPress: function handleKeyPress(event) {
387
442
  this.$emit('keypress', {
388
443
  event: event,
389
- target: this.item
444
+ target: {
445
+ props: __assign({}, this.$props),
446
+ element: this.$el
447
+ }
390
448
  });
391
449
  },
392
450
  handleKeyUp: function handleKeyUp(event) {
393
451
  this.$emit('keyup', {
394
452
  event: event,
395
- target: this.item
453
+ target: {
454
+ props: __assign({}, this.$props),
455
+ element: this.$el
456
+ }
396
457
  });
397
458
  },
398
459
  // Drag Handlers
399
460
  handlePress: function handlePress(dragEvent) {
400
461
  this.$emit('press', {
401
462
  dragEvent: dragEvent,
402
- target: this.item
463
+ target: {
464
+ props: __assign({}, this.$props),
465
+ element: this.$el
466
+ }
403
467
  });
404
468
  },
405
469
  handleDrag: function handleDrag(dragEvent) {
406
470
  this.$emit('drag', {
407
471
  dragEvent: dragEvent,
408
- target: this.item
472
+ target: {
473
+ props: __assign({}, this.$props),
474
+ element: this.$el
475
+ }
409
476
  });
410
477
  },
411
478
  handleRelease: function handleRelease(dragEvent) {
412
479
  this.$emit('release', {
413
480
  dragEvent: dragEvent,
414
- target: this.item
481
+ target: {
482
+ props: __assign({}, this.$props),
483
+ element: this.$el
484
+ }
415
485
  });
416
486
  },
417
487
  handleResizePress: function handleResizePress(dragEvent) {
418
488
  this.$emit('resizepress', {
419
489
  dragEvent: dragEvent,
420
- target: this.item
490
+ target: {
491
+ props: __assign({}, this.$props),
492
+ element: this.$el
493
+ }
421
494
  });
422
495
  },
423
496
  handleResizeStartDrag: function handleResizeStartDrag(dragEvent) {
424
497
  this.$emit('resizestartdrag', {
425
498
  dragEvent: dragEvent,
426
- target: this.item
499
+ target: {
500
+ props: __assign({}, this.$props),
501
+ element: this.$e
502
+ }
427
503
  });
428
504
  },
429
505
  handleResizeEndDrag: function handleResizeEndDrag(dragEvent) {
430
506
  this.$emit('resizeenddrag', {
431
507
  dragEvent: dragEvent,
432
- target: this.item
508
+ target: {
509
+ props: __assign({}, this.$props),
510
+ element: this.$el
511
+ }
433
512
  });
434
513
  },
435
514
  handleResizeRelease: function handleResizeRelease(dragEvent) {
436
515
  this.$emit('resizerelease', {
437
516
  dragEvent: dragEvent,
438
- target: this.item
517
+ target: {
518
+ props: __assign({}, this.$props),
519
+ element: this.$e
520
+ }
439
521
  });
440
522
  }
441
523
  }
@@ -25,6 +25,7 @@ import { getRect, setRect } from '../views/common/utils';
25
25
  import { BORDER_WIDTH } from '../constants';
26
26
  import { provideIntlService } from '@progress/kendo-vue-intl';
27
27
  import { SchedulerItemContent } from './SchedulerItemContent';
28
+ import { getDefaultSlots, getTemplate } from '@progress/kendo-vue-common';
28
29
  var ITEMS_SPACING = 1; // tslint:enable:max-line-length
29
30
 
30
31
  var SchedulerViewItemVue2 = {
@@ -141,58 +142,16 @@ var SchedulerViewItemVue2 = {
141
142
  render: function render(createElement) {
142
143
  var _this2 = this;
143
144
 
144
- var h = gh || createElement; // tslint:enable:max-line-length
145
+ var h = gh || createElement;
146
+ var defaultSlot = getDefaultSlots(this); // tslint:enable:max-line-length
145
147
 
146
- var _a = this.$props,
147
- itemProp = _a.item,
148
- refTo = _a.refTo,
149
- itemRef = _a.itemRef;
150
148
  this.intl = provideIntlService(this);
151
- return (// @ts-ignore function children
152
- h(SchedulerItem, {
149
+ var itemRender;
150
+ var itemRenderDefaultRendering = // @ts-ignore function children
151
+ h(SchedulerItem, {
152
+ ignoreIsAllDay: this.ignoreIsAllDay,
153
+ attrs: this.v3 ? undefined : {
153
154
  ignoreIsAllDay: this.ignoreIsAllDay,
154
- attrs: this.v3 ? undefined : {
155
- ignoreIsAllDay: this.ignoreIsAllDay,
156
- item: this.item,
157
- uid: this.uid,
158
- start: this.start,
159
- end: this.end,
160
- originalStart: this.originalStart,
161
- startTimezone: this.startTimezone,
162
- endTimezone: this.endTimezone,
163
- isAllDay: this.isAllDay,
164
- title: this.title,
165
- description: this.description,
166
- occurrenceId: this.occurrenceId,
167
- recurrenceExceptions: this.recurrenceExceptions,
168
- recurrenceRule: this.recurrenceRule,
169
- recurrenceId: this.recurrenceId,
170
- dataItem: this.dataItem,
171
- head: this.head,
172
- tail: this.tail,
173
- order: this.order,
174
- zonedStart: this.zonedStart,
175
- zonedEnd: this.zonedEnd,
176
- slots: this.slots,
177
- group: this.group,
178
- range: this.range,
179
- isException: this.isException,
180
- isRecurring: this.isRecurring,
181
- id: this.id,
182
- tabIndex: this.tabIndex,
183
- className: this.className,
184
- itemStyle: this.itemStyle,
185
- editable: this.editable,
186
- selected: this.selected,
187
- vertical: this.vertical,
188
- dragHint: this.dragHint,
189
- resizeHint: this.resizeHint,
190
- format: this.format // {...itemProps}
191
- // refTo={this}
192
- ,
193
- maxSiblingsPerSlot: this.maxSiblingsPerSlot // itemRef={item}
194
-
195
- },
196
155
  item: this.item,
197
156
  uid: this.uid,
198
157
  start: this.start,
@@ -228,59 +187,88 @@ var SchedulerViewItemVue2 = {
228
187
  dragHint: this.dragHint,
229
188
  resizeHint: this.resizeHint,
230
189
  format: this.format,
231
- maxSiblingsPerSlot: this.maxSiblingsPerSlot,
232
- style: __assign({
233
- visibility: this.visible ? undefined : 'hidden',
234
- display: this.display ? undefined : 'none'
235
- }, this.$props.style)
236
- }, this.v3 ? function () {
237
- return [!_this2.$props.resizeHint && h("span", {
238
- "class": "k-event-actions"
239
- }, [_this2.$props.tail && h("span", {
240
- "class": "k-icon k-i-arrow-60-left"
241
- }), _this2.$props.isRecurring && !_this2.$props.isException && h("span", {
242
- "class": "k-icon k-i-reload"
243
- }), !_this2.$props.isRecurring && _this2.$props.isException && h("span", {
244
- "class": "k-icon k-i-non-recurrence"
245
- })]), !_this2.$props.resizeHint && h("div", {
246
- title: _this2.itemTitle,
247
- attrs: _this2.v3 ? undefined : {
248
- title: _this2.itemTitle
249
- }
250
- }, [!_this2.$props.isAllDay && // @ts-ignore function children
251
- h(SchedulerItemContent, {
252
- "class": "k-event-template k-event-time "
253
- }, _this2.v3 ? function () {
254
- return [_this2.itemTitle];
255
- } : [_this2.itemTitle]), // @ts-ignore function children
256
- h(SchedulerItemContent, {
257
- "class": "k-event-template"
258
- }, _this2.v3 ? function () {
259
- return [_this2.$props.title];
260
- } : [_this2.$props.title])])];
261
- } : [!_this2.$props.resizeHint && h("span", {
262
- "class": "k-event-actions"
263
- }, [_this2.$props.tail && h("span", {
264
- "class": "k-icon k-i-arrow-60-left"
265
- }), _this2.$props.isRecurring && !_this2.$props.isException && h("span", {
266
- "class": "k-icon k-i-reload"
267
- }), !_this2.$props.isRecurring && _this2.$props.isException && h("span", {
268
- "class": "k-icon k-i-non-recurrence"
269
- })]), !_this2.$props.resizeHint && h("div", {
190
+ itemTitle: this.itemTitle,
191
+ maxSiblingsPerSlot: this.maxSiblingsPerSlot
192
+ },
193
+ item: this.item,
194
+ uid: this.uid,
195
+ start: this.start,
196
+ end: this.end,
197
+ originalStart: this.originalStart,
198
+ startTimezone: this.startTimezone,
199
+ endTimezone: this.endTimezone,
200
+ isAllDay: this.isAllDay,
201
+ title: this.title,
202
+ description: this.description,
203
+ occurrenceId: this.occurrenceId,
204
+ recurrenceExceptions: this.recurrenceExceptions,
205
+ recurrenceRule: this.recurrenceRule,
206
+ recurrenceId: this.recurrenceId,
207
+ dataItem: this.dataItem,
208
+ head: this.head,
209
+ tail: this.tail,
210
+ order: this.order,
211
+ zonedStart: this.zonedStart,
212
+ zonedEnd: this.zonedEnd,
213
+ slots: this.slots,
214
+ group: this.group,
215
+ range: this.range,
216
+ isException: this.isException,
217
+ isRecurring: this.isRecurring,
218
+ id: this.id,
219
+ tabIndex: this.tabIndex,
220
+ className: this.className,
221
+ itemStyle: this.itemStyle,
222
+ editable: this.editable,
223
+ selected: this.selected,
224
+ vertical: this.vertical,
225
+ dragHint: this.dragHint,
226
+ resizeHint: this.resizeHint,
227
+ format: this.format,
228
+ itemTitle: this.itemTitle,
229
+ maxSiblingsPerSlot: this.maxSiblingsPerSlot,
230
+ style: __assign({
231
+ visibility: this.visible ? undefined : 'hidden',
232
+ display: this.display ? undefined : 'none'
233
+ }, this.$props.style)
234
+ }, this.v3 ? function () {
235
+ return [!_this2.$props.resizeHint && h("div", {
270
236
  title: _this2.itemTitle,
271
237
  attrs: _this2.v3 ? undefined : {
272
238
  title: _this2.itemTitle
273
239
  }
274
- }, [!_this2.$props.isAllDay && h(SchedulerItemContent, {
240
+ }, [!_this2.$props.isAllDay && // @ts-ignore function children
241
+ h(SchedulerItemContent, {
275
242
  "class": "k-event-template k-event-time "
276
243
  }, _this2.v3 ? function () {
277
244
  return [_this2.itemTitle];
278
- } : [_this2.itemTitle]), h(SchedulerItemContent, {
245
+ } : [_this2.itemTitle]), // @ts-ignore function children
246
+ h(SchedulerItemContent, {
279
247
  "class": "k-event-template"
280
248
  }, _this2.v3 ? function () {
281
249
  return [_this2.$props.title];
282
- } : [_this2.$props.title])])])
283
- );
250
+ } : [_this2.$props.title])])];
251
+ } : [!_this2.$props.resizeHint && h("div", {
252
+ title: _this2.itemTitle,
253
+ attrs: _this2.v3 ? undefined : {
254
+ title: _this2.itemTitle
255
+ }
256
+ }, [!_this2.$props.isAllDay && h(SchedulerItemContent, {
257
+ "class": "k-event-template k-event-time "
258
+ }, _this2.v3 ? function () {
259
+ return [_this2.itemTitle];
260
+ } : [_this2.itemTitle]), h(SchedulerItemContent, {
261
+ "class": "k-event-template"
262
+ }, _this2.v3 ? function () {
263
+ return [_this2.$props.title];
264
+ } : [_this2.$props.title])])]);
265
+ itemRender = getTemplate.call(this, {
266
+ h: h,
267
+ template: this.$props.item,
268
+ defaultRendering: itemRenderDefaultRendering,
269
+ defaultSlots: defaultSlot
270
+ });
271
+ return itemRender;
284
272
  },
285
273
  methods: {
286
274
  calculateMostSiblings: function calculateMostSiblings(slots, items) {
package/dist/es/main.d.ts CHANGED
@@ -22,8 +22,12 @@ import { SchedulerFormEditor, SchedulerFormEditorHandle, SchedulerFormEditorProp
22
22
  import { SchedulerOccurrenceDialog, SchedulerOccurrenceDialogHandle, SchedulerOccurrenceDialogProps } from './components/SchedulerOccurrenceDialog';
23
23
  import { SchedulerRemoveDialog, SchedulerRemoveDialogHandle, SchedulerRemoveDialogProps } from './components/SchedulerRemoveDialog';
24
24
  import { SchedulerHeader, SchedulerHeaderProps, SchedulerHeaderHandle } from './components/header/SchedulerHeader';
25
+ import { BusinessHours, BusinessHoursProps } from './components/footer/bussiness-hours/BusinessHours';
25
26
  import { DateHeaderCell, DateHeaderCellHandle, DateHeaderCellProps } from './components/DateHeaderCell';
26
27
  import { TimeHeaderCell, TimeHeaderCellHandle, TimeHeaderCellProps } from './components/TimeHeaderCell';
28
+ import { SchedulerNavigation, SchedulerNavigationProps } from './components/header/navigation/SchedulerNavigation';
29
+ import { NavigationDatePicker } from './components/header/navigation/NavigationDatePicker';
30
+ import { SchedulerViewSelector, SchedulerViewSelectorProps } from './components/header/view-selector/SchedulerViewSelector';
27
31
  import { SchedulerFooter, SchedulerFooterProps, SchedulerFooterHandle } from './components/footer/SchedulerFooter';
28
32
  import { DRAG_ITEM_ACTION, SchedulerItemDragItemAction } from './items/hooks/use-drag-item';
29
33
  import { ITEMS_FOCUS_ACTION, SchedulerItemsFocusAction, SchedulerSlotsFocusAction, SLOTS_FOCUS_ACTION } from './hooks';
@@ -35,4 +39,4 @@ import { SchedulerItemShowOccurrenceDialogAction, SHOW_OCCURRENCE_DIALOG_ACTION
35
39
  import { SchedulerItemShowRemoveDialogAction, SHOW_REMOVE_DIALOG_ACTION } from './items/hooks/use-show-remove-item-dialog';
36
40
  import { SchedulerSlotsSelectAction, SLOTS_SELECT_ACTION } from './hooks/use-slots-selection';
37
41
  import { SchedulerGroup, SchedulerResource } from './models';
38
- export { Scheduler, SchedulerProps, AgendaView, TimelineView, DayView, WeekView, WorkWeekView, MonthView, SchedulerDataChangeEvent, SchedulerDateChangeEvent, SchedulerViewChangeEvent, DataAction, DATA_ACTION, SchedulerItem, SchedulerItemProps, SchedulerItemHandle, SchedulerItemContent, SchedulerItemContentProps, SchedulerViewItem, SchedulerViewItemProps, SchedulerViewItemHandle, SchedulerEditItem, SchedulerEditItemProps, SchedulerEditItemState, SchedulerEditItemAction, SchedulerEditItemHandle, SchedulerSlot, SchedulerSlotProps, SchedulerSlotHandle, SchedulerViewSlot, SchedulerViewSlotProps, SchedulerViewSlotHandle, SchedulerSlotExpandableConfig, SchedulerEditSlot, SchedulerEditSlotProps, SchedulerEditSlotHandle, SchedulerTask, SchedulerTaskProps, SchedulerTaskHandle, SchedulerViewTask, SchedulerViewTaskProps, SchedulerViewTaskHandle, SchedulerEditTask, SchedulerEditTaskProps, SchedulerEditTaskHandle, SchedulerDrag, SchedulerDragProps, SchedulerResize, SchedulerResizeProps, SchedulerForm, SchedulerFormHandle, SchedulerFormProps, SchedulerFormEditor, SchedulerFormEditorProps, SchedulerFormEditorHandle, SchedulerOccurrenceDialog, SchedulerOccurrenceDialogProps, SchedulerOccurrenceDialogHandle, SchedulerRemoveDialog, SchedulerRemoveDialogProps, SchedulerRemoveDialogHandle, SchedulerHeader, SchedulerHeaderProps, SchedulerHeaderHandle, SchedulerFooter, SchedulerFooterProps, SchedulerFooterHandle, DateHeaderCell, DateHeaderCellHandle, DateHeaderCellProps, TimeHeaderCell, TimeHeaderCellHandle, TimeHeaderCellProps, DRAG_ITEM_ACTION, SchedulerItemDragItemAction, ITEMS_FOCUS_ACTION, SchedulerItemsFocusAction, ITEMS_SELECT_ACTION, SchedulerItemsSelectAction, REMOVE_ITEM_ACTION, SchedulerItemRemoveItemAction, RESIZE_ITEM_ACTION, SchedulerItemResizeItemAction, SERIES_ACTION, SchedulerItemSeriesAction, SHOW_OCCURRENCE_DIALOG_ACTION, SchedulerItemShowOccurrenceDialogAction, SHOW_REMOVE_DIALOG_ACTION, SchedulerItemShowRemoveDialogAction, SLOTS_FOCUS_ACTION, SchedulerSlotsFocusAction, SLOTS_SELECT_ACTION, SchedulerSlotsSelectAction, SchedulerResource, SchedulerGroup };
42
+ export { Scheduler, SchedulerProps, AgendaView, TimelineView, DayView, WeekView, WorkWeekView, MonthView, SchedulerDataChangeEvent, SchedulerDateChangeEvent, SchedulerViewChangeEvent, DataAction, DATA_ACTION, SchedulerItem, SchedulerItemProps, SchedulerItemHandle, SchedulerItemContent, SchedulerItemContentProps, SchedulerViewItem, SchedulerViewItemProps, SchedulerViewItemHandle, SchedulerEditItem, SchedulerEditItemProps, SchedulerEditItemState, SchedulerEditItemAction, SchedulerEditItemHandle, SchedulerSlot, SchedulerSlotProps, SchedulerSlotHandle, SchedulerViewSlot, SchedulerViewSlotProps, SchedulerViewSlotHandle, SchedulerSlotExpandableConfig, SchedulerEditSlot, SchedulerEditSlotProps, SchedulerEditSlotHandle, SchedulerTask, SchedulerTaskProps, SchedulerTaskHandle, SchedulerViewTask, SchedulerViewTaskProps, SchedulerViewTaskHandle, SchedulerEditTask, SchedulerEditTaskProps, SchedulerEditTaskHandle, SchedulerDrag, SchedulerDragProps, SchedulerResize, SchedulerResizeProps, SchedulerForm, SchedulerFormHandle, SchedulerFormProps, SchedulerFormEditor, SchedulerFormEditorProps, SchedulerFormEditorHandle, SchedulerOccurrenceDialog, SchedulerOccurrenceDialogProps, SchedulerOccurrenceDialogHandle, SchedulerRemoveDialog, SchedulerRemoveDialogProps, SchedulerRemoveDialogHandle, SchedulerHeader, SchedulerHeaderProps, SchedulerHeaderHandle, SchedulerFooter, SchedulerFooterProps, SchedulerFooterHandle, DateHeaderCell, DateHeaderCellHandle, DateHeaderCellProps, TimeHeaderCell, TimeHeaderCellHandle, TimeHeaderCellProps, DRAG_ITEM_ACTION, SchedulerItemDragItemAction, ITEMS_FOCUS_ACTION, SchedulerItemsFocusAction, ITEMS_SELECT_ACTION, SchedulerItemsSelectAction, REMOVE_ITEM_ACTION, SchedulerItemRemoveItemAction, RESIZE_ITEM_ACTION, SchedulerItemResizeItemAction, SERIES_ACTION, SchedulerItemSeriesAction, SHOW_OCCURRENCE_DIALOG_ACTION, SchedulerItemShowOccurrenceDialogAction, SHOW_REMOVE_DIALOG_ACTION, SchedulerItemShowRemoveDialogAction, SLOTS_FOCUS_ACTION, SchedulerSlotsFocusAction, SLOTS_SELECT_ACTION, SchedulerSlotsSelectAction, SchedulerResource, SchedulerGroup, BusinessHours, BusinessHoursProps, SchedulerNavigation, SchedulerNavigationProps, NavigationDatePicker, SchedulerViewSelector, SchedulerViewSelectorProps };
package/dist/es/main.js CHANGED
@@ -22,18 +22,12 @@ import { SchedulerFormEditor } from './editors/SchedulerFormEditor';
22
22
  import { SchedulerOccurrenceDialog } from './components/SchedulerOccurrenceDialog';
23
23
  import { SchedulerRemoveDialog } from './components/SchedulerRemoveDialog';
24
24
  import { SchedulerHeader } from './components/header/SchedulerHeader';
25
+ import { BusinessHours } from './components/footer/bussiness-hours/BusinessHours';
25
26
  import { DateHeaderCell } from './components/DateHeaderCell';
26
27
  import { TimeHeaderCell } from './components/TimeHeaderCell';
27
- // import {
28
- // SchedulerNavigation,
29
- // SchedulerNavigationProps,
30
- // SchedulerNavigationHandle
31
- // } from './components/SchedulerNavigation';
32
- // import {
33
- // SchedulerViewSelector,
34
- // SchedulerViewSelectorProps,
35
- // SchedulerViewSelectorHandle
36
- // } from './components/SchedulerViewSelector';
28
+ import { SchedulerNavigation } from './components/header/navigation/SchedulerNavigation';
29
+ import { NavigationDatePicker } from './components/header/navigation/NavigationDatePicker';
30
+ import { SchedulerViewSelector } from './components/header/view-selector/SchedulerViewSelector';
37
31
  import { SchedulerFooter } from './components/footer/SchedulerFooter';
38
32
  import { DRAG_ITEM_ACTION } from './items/hooks/use-drag-item';
39
33
  import { ITEMS_FOCUS_ACTION, SLOTS_FOCUS_ACTION } from './hooks';
@@ -79,4 +73,4 @@ SchedulerHeader,
79
73
  // SchedulerViewSelector,
80
74
  // SchedulerViewSelectorProps,
81
75
  // SchedulerViewSelectorHandle
82
- SchedulerFooter, DateHeaderCell, TimeHeaderCell, DRAG_ITEM_ACTION, ITEMS_FOCUS_ACTION, ITEMS_SELECT_ACTION, REMOVE_ITEM_ACTION, RESIZE_ITEM_ACTION, SERIES_ACTION, SHOW_OCCURRENCE_DIALOG_ACTION, SHOW_REMOVE_DIALOG_ACTION, SLOTS_FOCUS_ACTION, SLOTS_SELECT_ACTION };
76
+ SchedulerFooter, DateHeaderCell, TimeHeaderCell, DRAG_ITEM_ACTION, ITEMS_FOCUS_ACTION, ITEMS_SELECT_ACTION, REMOVE_ITEM_ACTION, RESIZE_ITEM_ACTION, SERIES_ACTION, SHOW_OCCURRENCE_DIALOG_ACTION, SHOW_REMOVE_DIALOG_ACTION, SLOTS_FOCUS_ACTION, SLOTS_SELECT_ACTION, BusinessHours, SchedulerNavigation, NavigationDatePicker, SchedulerViewSelector };
@@ -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: 1646159364,
8
+ publishDate: 1647354431,
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
  };
@@ -14,7 +14,6 @@ var SchedulerEditSlotVue2 = {
14
14
  name: 'KendoSchedulerEditSlot',
15
15
  props: {
16
16
  viewSlot: Object,
17
- renderSlot: Object,
18
17
  form: Object,
19
18
  formItem: Object,
20
19
  refTo: [Function, Object],
@@ -38,7 +37,10 @@ var SchedulerEditSlotVue2 = {
38
37
  zonedStart: Object,
39
38
  zonedEnd: Object,
40
39
  isAllDay: Boolean,
41
- expandable: [Boolean, Object]
40
+ expandable: [Boolean, Object],
41
+ slotRender: [String, Function, Object],
42
+ navDay: Boolean,
43
+ itemsPerSlot: Number
42
44
  },
43
45
  created: function created() {
44
46
  this.slot = null;
@@ -96,7 +98,9 @@ var SchedulerEditSlotVue2 = {
96
98
  start = _a.start,
97
99
  end = _a.end,
98
100
  zonedStart = _a.zonedStart,
99
- zonedEnd = _a.zonedEnd; // const fields = useSchedulerFieldsContext();
101
+ zonedEnd = _a.zonedEnd,
102
+ navDay = _a.navDay,
103
+ itemsPerSlot = _a.itemsPerSlot; // const fields = useSchedulerFieldsContext();
100
104
  // const [slots] = useSchedulerViewSlotsContext();
101
105
  // const [items] = useSchedulerViewItemsContext();
102
106
  // const [selectedSlots, dispatchSlotsSelection] = useSchedulerViewSelectedSlotsContext();
@@ -107,8 +111,9 @@ var SchedulerEditSlotVue2 = {
107
111
  });
108
112
  return (// @ts-ignore function children
109
113
  h(SchedulerViewSlot, {
110
- isAllDay: this.isAllDay,
114
+ slotRender: this.$props.slotRender,
111
115
  attrs: this.v3 ? undefined : {
116
+ slotRender: this.$props.slotRender,
112
117
  isAllDay: this.isAllDay,
113
118
  expandable: this.expandable,
114
119
  items: items,
@@ -122,12 +127,14 @@ var SchedulerEditSlotVue2 = {
122
127
  start: start,
123
128
  end: end,
124
129
  zonedStart: zonedStart,
125
- zonedEnd: zonedEnd // refTo={this}
126
- ,
130
+ zonedEnd: zonedEnd,
127
131
  selected: selected,
132
+ navDay: navDay,
133
+ itemsPerSlot: itemsPerSlot,
128
134
  tabIndex: this.currentTabIndex // Focus
129
135
 
130
136
  },
137
+ isAllDay: this.isAllDay,
131
138
  expandable: this.expandable,
132
139
  items: items,
133
140
  row: row,
@@ -142,17 +149,21 @@ var SchedulerEditSlotVue2 = {
142
149
  zonedStart: zonedStart,
143
150
  zonedEnd: zonedEnd,
144
151
  selected: selected,
152
+ navDay: navDay,
153
+ itemsPerSlot: itemsPerSlot,
145
154
  tabIndex: this.currentTabIndex,
146
155
  onFocus: this.handleFocus // Mouse
147
156
  ,
148
157
  on: this.v3 ? undefined : {
149
158
  "focus": this.handleFocus,
150
159
  "doubleclick": this.handleDoubleClick,
151
- "keydown": this.handleKeyDown
160
+ "keydown": this.handleKeyDown,
161
+ "showmoreitems": this.handleShowMoreItemsClick
152
162
  },
153
163
  onDoubleclick: this.handleDoubleClick // Keyboard
154
164
  ,
155
- onKeydown: this.handleKeyDown
165
+ onKeydown: this.handleKeyDown,
166
+ onShowmoreitems: this.handleShowMoreItemsClick
156
167
  }, this.v3 ? function () {
157
168
  return [defaultSlot];
158
169
  } : [defaultSlot]) // (this.formItem && <SchedulerForm
@@ -166,6 +177,9 @@ var SchedulerEditSlotVue2 = {
166
177
  );
167
178
  },
168
179
  methods: {
180
+ handleShowMoreItemsClick: function handleShowMoreItemsClick(event) {
181
+ this.$emit('showmoreitems', event);
182
+ },
169
183
  createDataItemFromSlot: function createDataItemFromSlot() {
170
184
  var dataItem = {};
171
185
  setField(dataItem, this.fields.start, new Date(this.$props.start.getTime()));
@@ -191,7 +205,7 @@ var SchedulerEditSlotVue2 = {
191
205
  if (this.computedEditable.select) {
192
206
  this.dispatchSlotsSelection({
193
207
  type: SLOTS_SELECT_ACTION.select,
194
- slot: this.renderSlot
208
+ slot: this.slotRender
195
209
  }, event.event);
196
210
  }
197
211
 
@@ -10,6 +10,10 @@ import { Slot, SchedulerSlotMouseEvent, SchedulerSlotKeyboardEvent, SchedulerSlo
10
10
  export interface SchedulerSlotProps extends Slot {
11
11
  /** @hidden */
12
12
  refTo: any;
13
+ /** @hidden */
14
+ navDay?: boolean;
15
+ /** @hidden */
16
+ itemsPerSlot?: number;
13
17
  /**
14
18
  * Specifies the `id` of the wrapping element of the SchedulerSlot.
15
19
  */