@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
@@ -58,13 +58,9 @@ var SchedulerFooter_1 = require("./components/footer/SchedulerFooter");
58
58
 
59
59
  var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
60
60
 
61
- var messages_1 = require("./messages");
62
-
63
61
  var NavigationDatePicker_1 = require("./components/header/navigation/NavigationDatePicker");
64
62
 
65
- var ViewSelectorList_1 = require("./components/header/view-selector/ViewSelectorList");
66
-
67
- var BussinessHours_1 = require("./components/footer/bussiness-hours/BussinessHours");
63
+ var BusinessHours_1 = require("./components/footer/bussiness-hours/BusinessHours");
68
64
 
69
65
  var DayView_1 = require("./views/day/DayView"); // import { SchedulerFormProps } from './editors/SchedulerFormEditor';
70
66
 
@@ -132,7 +128,10 @@ var SchedulerVue2 = {
132
128
  default: new Date()
133
129
  },
134
130
  header: [String, Function, Object],
135
- footer: [String, Function, Object]
131
+ footer: [String, Function, Object],
132
+ slotRender: [String, Function, Object],
133
+ item: [String, Function, Object],
134
+ task: [String, Function, Object]
136
135
  },
137
136
  computed: {
138
137
  wrapperClassName: function wrapperClassName() {
@@ -152,7 +151,13 @@ var SchedulerVue2 = {
152
151
  return {
153
152
  ks: this.ks,
154
153
  setActiveViewName: this.handleActiveViewNameChange,
155
- setActiveDate: this.handleDateChange
154
+ setActiveDate: this.handleDateChange,
155
+ itemDoubleClick: this.handleItemDoubleClick,
156
+ itemClick: this.handleItemClick,
157
+ slotDoubleClick: this.handleSlotDoubleClick,
158
+ slotClick: this.handleSlotClick,
159
+ taskDoubleClick: this.handleTaskDoubleClick,
160
+ taskClick: this.handleTaskClick
156
161
  };
157
162
  },
158
163
  data: function data() {
@@ -226,11 +231,11 @@ var SchedulerVue2 = {
226
231
  return currentView.name === _this.ks.activeViewName;
227
232
  }) || this.views[0] || h(DayView_1.DayView);
228
233
  var slotDuration = this.getViewPropValue(this.ks.view, 'slotDuration', this.ks.activeViewName);
229
- var todayText = this.localization.toLanguageString(messages_1.today, messages_1.messages[messages_1.today]);
230
- var previousText = this.localization.toLanguageString(messages_1.previousTitle, messages_1.messages[messages_1.previousTitle]);
231
- var nextText = this.localization.toLanguageString(messages_1.nextTitle, messages_1.messages[messages_1.nextTitle]);
232
- var heaeder = kendo_vue_common_1.templateRendering.call(this, view.header || this.$props.header, kendo_vue_common_1.getListeners.call(this));
234
+ var header = kendo_vue_common_1.templateRendering.call(this, view.header || this.$props.header, kendo_vue_common_1.getListeners.call(this));
233
235
  var footer = kendo_vue_common_1.templateRendering.call(this, view.footer || this.$props.footer, kendo_vue_common_1.getListeners.call(this));
236
+ var slotRender = kendo_vue_common_1.templateRendering.call(this, view.slot || this.$props.slotRender, {});
237
+ var item = kendo_vue_common_1.templateRendering.call(this, view.item || this.$props.item, {});
238
+ var task = kendo_vue_common_1.templateRendering.call(this, view.task || this.$props.task, {});
234
239
  var ViewSelector = SchedulerViewSelector_1.SchedulerViewSelector;
235
240
  var viewComponent = this.getViewComponentByName(this.ks.activeViewName || view.name);
236
241
 
@@ -239,329 +244,25 @@ var SchedulerVue2 = {
239
244
  dataItems: undefined,
240
245
  views: undefined,
241
246
  defaultDate: undefined,
242
- dateRange: this.ks.dateRange
247
+ dateRange: this.ks.dateRange,
248
+ slotRender: slotRender,
249
+ item: item,
250
+ task: task
243
251
  });
244
252
 
245
- return h("div", {
246
- id: this.$props.id,
247
- attrs: this.v3 ? undefined : {
248
- id: this.$props.id,
249
- tabIndex: this.$props.tabIndex // Aria
250
- // dir={dir}
251
- ,
252
- role: this.$props.role,
253
- "aria-label": this.$props.ariaLabel,
254
- "aria-labelledby": this.$props.ariaLabelledby // Handlers
255
-
256
- },
257
- style: {
258
- height: this.$props.height + 'px'
259
- },
260
- "class": this.wrapperClassName,
261
- tabIndex: this.$props.tabIndex,
262
- role: this.$props.role,
263
- "aria-label": this.$props.ariaLabel,
264
- "aria-labelledby": this.$props.ariaLabelledby,
265
- onFocusin: this.handleFocus,
266
- on: this.v3 ? undefined : {
267
- "focusin": this.handleFocus,
268
- "focusout": this.handleBlur
269
- },
270
- onFocusout: this.handleBlur
271
- }, [// @ts-ignore function children
253
+ var headerRender;
254
+ var headerRenderDefaultRendering = // @ts-ignore function children
272
255
  h(SchedulerHeader_1.SchedulerHeader, this.v3 ? function () {
273
- return [// @ts-ignore function children
274
- h(SchedulerNavigation_1.SchedulerNavigation, _this2.v3 ? function () {
275
- return [// @ts-ignore function children
276
- h(kendo_vue_buttons_1.ButtonGroup, {
277
- "class": "k-scheduler-navigation"
278
- }, _this2.v3 ? function () {
279
- return [// @ts-ignore function children
280
- h(kendo_vue_buttons_1.Button, {
281
- role: "button",
282
- attrs: _this2.v3 ? undefined : {
283
- role: "button",
284
- tabIndex: -1,
285
- title: todayText,
286
- "aria-label": todayText
287
- },
288
- tabIndex: -1,
289
- title: todayText,
290
- "aria-label": todayText,
291
- onClick: _this2.handleTodayClick,
292
- on: _this2.v3 ? undefined : {
293
- "click": _this2.handleTodayClick
294
- }
295
- }, _this2.v3 ? function () {
296
- return [todayText];
297
- } : [todayText]), // @ts-ignore function children
298
- h(kendo_vue_buttons_1.Button, {
299
- role: "button",
300
- attrs: _this2.v3 ? undefined : {
301
- role: "button",
302
- tabIndex: -1,
303
- title: previousText,
304
- "aria-label": previousText
305
- },
306
- tabIndex: -1,
307
- "class": "k-button-icon",
308
- title: previousText,
309
- "aria-label": previousText,
310
- onClick: _this2.handlePrevClick,
311
- on: _this2.v3 ? undefined : {
312
- "click": _this2.handlePrevClick
313
- }
314
- }, _this2.v3 ? function () {
315
- return [h("span", {
316
- "class": "k-button-text"
317
- }, [h("span", {
318
- "class": "k-icon k-i-arrow-60-left"
319
- })])];
320
- } : [h("span", {
321
- "class": "k-button-text"
322
- }, [h("span", {
323
- "class": "k-icon k-i-arrow-60-left"
324
- })])]), // @ts-ignore function children
325
- h(kendo_vue_buttons_1.Button, {
326
- role: "button",
327
- attrs: _this2.v3 ? undefined : {
328
- role: "button",
329
- tabIndex: -1,
330
- title: nextText,
331
- "aria-label": nextText
332
- },
333
- tabIndex: -1,
334
- "class": "k-button-icon",
335
- title: nextText,
336
- "aria-label": nextText,
337
- onClick: _this2.handleNextClick,
338
- on: _this2.v3 ? undefined : {
339
- "click": _this2.handleNextClick
340
- }
341
- }, _this2.v3 ? function () {
342
- return [h("span", {
343
- "class": "k-button-text"
344
- }, [h("span", {
345
- "class": "k-icon k-i-arrow-60-right"
346
- })])];
347
- } : [h("span", {
348
- "class": "k-button-text"
349
- }, [h("span", {
350
- "class": "k-icon k-i-arrow-60-right"
351
- })])])];
352
- } : [h(kendo_vue_buttons_1.Button, {
353
- role: "button",
354
- attrs: _this2.v3 ? undefined : {
355
- role: "button",
356
- tabIndex: -1,
357
- title: todayText,
358
- "aria-label": todayText
359
- },
360
- tabIndex: -1,
361
- title: todayText,
362
- "aria-label": todayText,
363
- onClick: _this2.handleTodayClick,
364
- on: _this2.v3 ? undefined : {
365
- "click": _this2.handleTodayClick
366
- }
367
- }, _this2.v3 ? function () {
368
- return [todayText];
369
- } : [todayText]), h(kendo_vue_buttons_1.Button, {
370
- role: "button",
371
- attrs: _this2.v3 ? undefined : {
372
- role: "button",
373
- tabIndex: -1,
374
- title: previousText,
375
- "aria-label": previousText
376
- },
377
- tabIndex: -1,
378
- "class": "k-button-icon",
379
- title: previousText,
380
- "aria-label": previousText,
381
- onClick: _this2.handlePrevClick,
382
- on: _this2.v3 ? undefined : {
383
- "click": _this2.handlePrevClick
384
- }
385
- }, _this2.v3 ? function () {
386
- return [h("span", {
387
- "class": "k-button-text"
388
- }, [h("span", {
389
- "class": "k-icon k-i-arrow-60-left"
390
- })])];
391
- } : [h("span", {
392
- "class": "k-button-text"
393
- }, [h("span", {
394
- "class": "k-icon k-i-arrow-60-left"
395
- })])]), h(kendo_vue_buttons_1.Button, {
396
- role: "button",
397
- attrs: _this2.v3 ? undefined : {
398
- role: "button",
399
- tabIndex: -1,
400
- title: nextText,
401
- "aria-label": nextText
402
- },
403
- tabIndex: -1,
404
- "class": "k-button-icon",
405
- title: nextText,
406
- "aria-label": nextText,
407
- onClick: _this2.handleNextClick,
408
- on: _this2.v3 ? undefined : {
409
- "click": _this2.handleNextClick
410
- }
411
- }, _this2.v3 ? function () {
412
- return [h("span", {
413
- "class": "k-button-text"
414
- }, [h("span", {
415
- "class": "k-icon k-i-arrow-60-right"
416
- })])];
417
- } : [h("span", {
418
- "class": "k-button-text"
419
- }, [h("span", {
420
- "class": "k-icon k-i-arrow-60-right"
421
- })])])])];
422
- } : [h(kendo_vue_buttons_1.ButtonGroup, {
423
- "class": "k-scheduler-navigation"
424
- }, _this2.v3 ? function () {
425
- return [h(kendo_vue_buttons_1.Button, {
426
- role: "button",
427
- attrs: _this2.v3 ? undefined : {
428
- role: "button",
429
- tabIndex: -1,
430
- title: todayText,
431
- "aria-label": todayText
432
- },
433
- tabIndex: -1,
434
- title: todayText,
435
- "aria-label": todayText,
436
- onClick: _this2.handleTodayClick,
437
- on: _this2.v3 ? undefined : {
438
- "click": _this2.handleTodayClick
439
- }
440
- }, _this2.v3 ? function () {
441
- return [todayText];
442
- } : [todayText]), h(kendo_vue_buttons_1.Button, {
443
- role: "button",
444
- attrs: _this2.v3 ? undefined : {
445
- role: "button",
446
- tabIndex: -1,
447
- title: previousText,
448
- "aria-label": previousText
449
- },
450
- tabIndex: -1,
451
- "class": "k-button-icon",
452
- title: previousText,
453
- "aria-label": previousText,
454
- onClick: _this2.handlePrevClick,
455
- on: _this2.v3 ? undefined : {
456
- "click": _this2.handlePrevClick
457
- }
458
- }, _this2.v3 ? function () {
459
- return [h("span", {
460
- "class": "k-button-text"
461
- }, [h("span", {
462
- "class": "k-icon k-i-arrow-60-left"
463
- })])];
464
- } : [h("span", {
465
- "class": "k-button-text"
466
- }, [h("span", {
467
- "class": "k-icon k-i-arrow-60-left"
468
- })])]), h(kendo_vue_buttons_1.Button, {
469
- role: "button",
470
- attrs: _this2.v3 ? undefined : {
471
- role: "button",
472
- tabIndex: -1,
473
- title: nextText,
474
- "aria-label": nextText
475
- },
476
- tabIndex: -1,
477
- "class": "k-button-icon",
478
- title: nextText,
479
- "aria-label": nextText,
480
- onClick: _this2.handleNextClick,
481
- on: _this2.v3 ? undefined : {
482
- "click": _this2.handleNextClick
483
- }
484
- }, _this2.v3 ? function () {
485
- return [h("span", {
486
- "class": "k-button-text"
487
- }, [h("span", {
488
- "class": "k-icon k-i-arrow-60-right"
489
- })])];
490
- } : [h("span", {
491
- "class": "k-button-text"
492
- }, [h("span", {
493
- "class": "k-icon k-i-arrow-60-right"
494
- })])])];
495
- } : [h(kendo_vue_buttons_1.Button, {
496
- role: "button",
497
- attrs: _this2.v3 ? undefined : {
498
- role: "button",
499
- tabIndex: -1,
500
- title: todayText,
501
- "aria-label": todayText
502
- },
503
- tabIndex: -1,
504
- title: todayText,
505
- "aria-label": todayText,
506
- onClick: _this2.handleTodayClick,
256
+ return [h(SchedulerNavigation_1.SchedulerNavigation, {
257
+ onPrevclick: _this2.handlePrevClick,
507
258
  on: _this2.v3 ? undefined : {
508
- "click": _this2.handleTodayClick
509
- }
510
- }, _this2.v3 ? function () {
511
- return [todayText];
512
- } : [todayText]), h(kendo_vue_buttons_1.Button, {
513
- role: "button",
514
- attrs: _this2.v3 ? undefined : {
515
- role: "button",
516
- tabIndex: -1,
517
- title: previousText,
518
- "aria-label": previousText
519
- },
520
- tabIndex: -1,
521
- "class": "k-button-icon",
522
- title: previousText,
523
- "aria-label": previousText,
524
- onClick: _this2.handlePrevClick,
525
- on: _this2.v3 ? undefined : {
526
- "click": _this2.handlePrevClick
527
- }
528
- }, _this2.v3 ? function () {
529
- return [h("span", {
530
- "class": "k-button-text"
531
- }, [h("span", {
532
- "class": "k-icon k-i-arrow-60-left"
533
- })])];
534
- } : [h("span", {
535
- "class": "k-button-text"
536
- }, [h("span", {
537
- "class": "k-icon k-i-arrow-60-left"
538
- })])]), h(kendo_vue_buttons_1.Button, {
539
- role: "button",
540
- attrs: _this2.v3 ? undefined : {
541
- role: "button",
542
- tabIndex: -1,
543
- title: nextText,
544
- "aria-label": nextText
259
+ "prevclick": _this2.handlePrevClick,
260
+ "nextclick": _this2.handleNextClick,
261
+ "todayclick": _this2.handleTodayClick
545
262
  },
546
- tabIndex: -1,
547
- "class": "k-button-icon",
548
- title: nextText,
549
- "aria-label": nextText,
550
- onClick: _this2.handleNextClick,
551
- on: _this2.v3 ? undefined : {
552
- "click": _this2.handleNextClick
553
- }
554
- }, _this2.v3 ? function () {
555
- return [h("span", {
556
- "class": "k-button-text"
557
- }, [h("span", {
558
- "class": "k-icon k-i-arrow-60-right"
559
- })])];
560
- } : [h("span", {
561
- "class": "k-button-text"
562
- }, [h("span", {
563
- "class": "k-icon k-i-arrow-60-right"
564
- })])])])]), h(NavigationDatePicker_1.NavigationDatePicker, {
263
+ onNextclick: _this2.handleNextClick,
264
+ onTodayclick: _this2.handleTodayClick
265
+ }), h(NavigationDatePicker_1.NavigationDatePicker, {
565
266
  value: _this2.ks.currentDate,
566
267
  attrs: _this2.v3 ? undefined : {
567
268
  value: _this2.ks.currentDate
@@ -570,297 +271,17 @@ var SchedulerVue2 = {
570
271
  on: _this2.v3 ? undefined : {
571
272
  "change": _this2.handleDatePickerChange
572
273
  }
573
- }), h(kendo_vue_buttons_1.ToolbarSpacer), // @ts-ignore function children
574
- h(ViewSelector, _this2.v3 ? function () {
575
- return [h(ViewSelectorList_1.ViewSelectorList)];
576
- } : [h(ViewSelectorList_1.ViewSelectorList)])];
577
- } : [h(SchedulerNavigation_1.SchedulerNavigation, _this2.v3 ? function () {
578
- return [h(kendo_vue_buttons_1.ButtonGroup, {
579
- "class": "k-scheduler-navigation"
580
- }, _this2.v3 ? function () {
581
- return [h(kendo_vue_buttons_1.Button, {
582
- role: "button",
583
- attrs: _this2.v3 ? undefined : {
584
- role: "button",
585
- tabIndex: -1,
586
- title: todayText,
587
- "aria-label": todayText
588
- },
589
- tabIndex: -1,
590
- title: todayText,
591
- "aria-label": todayText,
592
- onClick: _this2.handleTodayClick,
593
- on: _this2.v3 ? undefined : {
594
- "click": _this2.handleTodayClick
595
- }
596
- }, _this2.v3 ? function () {
597
- return [todayText];
598
- } : [todayText]), h(kendo_vue_buttons_1.Button, {
599
- role: "button",
600
- attrs: _this2.v3 ? undefined : {
601
- role: "button",
602
- tabIndex: -1,
603
- title: previousText,
604
- "aria-label": previousText
605
- },
606
- tabIndex: -1,
607
- "class": "k-button-icon",
608
- title: previousText,
609
- "aria-label": previousText,
610
- onClick: _this2.handlePrevClick,
611
- on: _this2.v3 ? undefined : {
612
- "click": _this2.handlePrevClick
613
- }
614
- }, _this2.v3 ? function () {
615
- return [h("span", {
616
- "class": "k-button-text"
617
- }, [h("span", {
618
- "class": "k-icon k-i-arrow-60-left"
619
- })])];
620
- } : [h("span", {
621
- "class": "k-button-text"
622
- }, [h("span", {
623
- "class": "k-icon k-i-arrow-60-left"
624
- })])]), h(kendo_vue_buttons_1.Button, {
625
- role: "button",
626
- attrs: _this2.v3 ? undefined : {
627
- role: "button",
628
- tabIndex: -1,
629
- title: nextText,
630
- "aria-label": nextText
631
- },
632
- tabIndex: -1,
633
- "class": "k-button-icon",
634
- title: nextText,
635
- "aria-label": nextText,
636
- onClick: _this2.handleNextClick,
637
- on: _this2.v3 ? undefined : {
638
- "click": _this2.handleNextClick
639
- }
640
- }, _this2.v3 ? function () {
641
- return [h("span", {
642
- "class": "k-button-text"
643
- }, [h("span", {
644
- "class": "k-icon k-i-arrow-60-right"
645
- })])];
646
- } : [h("span", {
647
- "class": "k-button-text"
648
- }, [h("span", {
649
- "class": "k-icon k-i-arrow-60-right"
650
- })])])];
651
- } : [h(kendo_vue_buttons_1.Button, {
652
- role: "button",
653
- attrs: _this2.v3 ? undefined : {
654
- role: "button",
655
- tabIndex: -1,
656
- title: todayText,
657
- "aria-label": todayText
658
- },
659
- tabIndex: -1,
660
- title: todayText,
661
- "aria-label": todayText,
662
- onClick: _this2.handleTodayClick,
663
- on: _this2.v3 ? undefined : {
664
- "click": _this2.handleTodayClick
665
- }
666
- }, _this2.v3 ? function () {
667
- return [todayText];
668
- } : [todayText]), h(kendo_vue_buttons_1.Button, {
669
- role: "button",
670
- attrs: _this2.v3 ? undefined : {
671
- role: "button",
672
- tabIndex: -1,
673
- title: previousText,
674
- "aria-label": previousText
675
- },
676
- tabIndex: -1,
677
- "class": "k-button-icon",
678
- title: previousText,
679
- "aria-label": previousText,
680
- onClick: _this2.handlePrevClick,
681
- on: _this2.v3 ? undefined : {
682
- "click": _this2.handlePrevClick
683
- }
684
- }, _this2.v3 ? function () {
685
- return [h("span", {
686
- "class": "k-button-text"
687
- }, [h("span", {
688
- "class": "k-icon k-i-arrow-60-left"
689
- })])];
690
- } : [h("span", {
691
- "class": "k-button-text"
692
- }, [h("span", {
693
- "class": "k-icon k-i-arrow-60-left"
694
- })])]), h(kendo_vue_buttons_1.Button, {
695
- role: "button",
696
- attrs: _this2.v3 ? undefined : {
697
- role: "button",
698
- tabIndex: -1,
699
- title: nextText,
700
- "aria-label": nextText
701
- },
702
- tabIndex: -1,
703
- "class": "k-button-icon",
704
- title: nextText,
705
- "aria-label": nextText,
706
- onClick: _this2.handleNextClick,
707
- on: _this2.v3 ? undefined : {
708
- "click": _this2.handleNextClick
709
- }
710
- }, _this2.v3 ? function () {
711
- return [h("span", {
712
- "class": "k-button-text"
713
- }, [h("span", {
714
- "class": "k-icon k-i-arrow-60-right"
715
- })])];
716
- } : [h("span", {
717
- "class": "k-button-text"
718
- }, [h("span", {
719
- "class": "k-icon k-i-arrow-60-right"
720
- })])])])];
721
- } : [h(kendo_vue_buttons_1.ButtonGroup, {
722
- "class": "k-scheduler-navigation"
723
- }, _this2.v3 ? function () {
724
- return [h(kendo_vue_buttons_1.Button, {
725
- role: "button",
726
- attrs: _this2.v3 ? undefined : {
727
- role: "button",
728
- tabIndex: -1,
729
- title: todayText,
730
- "aria-label": todayText
731
- },
732
- tabIndex: -1,
733
- title: todayText,
734
- "aria-label": todayText,
735
- onClick: _this2.handleTodayClick,
736
- on: _this2.v3 ? undefined : {
737
- "click": _this2.handleTodayClick
738
- }
739
- }, _this2.v3 ? function () {
740
- return [todayText];
741
- } : [todayText]), h(kendo_vue_buttons_1.Button, {
742
- role: "button",
743
- attrs: _this2.v3 ? undefined : {
744
- role: "button",
745
- tabIndex: -1,
746
- title: previousText,
747
- "aria-label": previousText
748
- },
749
- tabIndex: -1,
750
- "class": "k-button-icon",
751
- title: previousText,
752
- "aria-label": previousText,
753
- onClick: _this2.handlePrevClick,
754
- on: _this2.v3 ? undefined : {
755
- "click": _this2.handlePrevClick
756
- }
757
- }, _this2.v3 ? function () {
758
- return [h("span", {
759
- "class": "k-button-text"
760
- }, [h("span", {
761
- "class": "k-icon k-i-arrow-60-left"
762
- })])];
763
- } : [h("span", {
764
- "class": "k-button-text"
765
- }, [h("span", {
766
- "class": "k-icon k-i-arrow-60-left"
767
- })])]), h(kendo_vue_buttons_1.Button, {
768
- role: "button",
769
- attrs: _this2.v3 ? undefined : {
770
- role: "button",
771
- tabIndex: -1,
772
- title: nextText,
773
- "aria-label": nextText
774
- },
775
- tabIndex: -1,
776
- "class": "k-button-icon",
777
- title: nextText,
778
- "aria-label": nextText,
779
- onClick: _this2.handleNextClick,
780
- on: _this2.v3 ? undefined : {
781
- "click": _this2.handleNextClick
782
- }
783
- }, _this2.v3 ? function () {
784
- return [h("span", {
785
- "class": "k-button-text"
786
- }, [h("span", {
787
- "class": "k-icon k-i-arrow-60-right"
788
- })])];
789
- } : [h("span", {
790
- "class": "k-button-text"
791
- }, [h("span", {
792
- "class": "k-icon k-i-arrow-60-right"
793
- })])])];
794
- } : [h(kendo_vue_buttons_1.Button, {
795
- role: "button",
796
- attrs: _this2.v3 ? undefined : {
797
- role: "button",
798
- tabIndex: -1,
799
- title: todayText,
800
- "aria-label": todayText
801
- },
802
- tabIndex: -1,
803
- title: todayText,
804
- "aria-label": todayText,
805
- onClick: _this2.handleTodayClick,
806
- on: _this2.v3 ? undefined : {
807
- "click": _this2.handleTodayClick
808
- }
809
- }, _this2.v3 ? function () {
810
- return [todayText];
811
- } : [todayText]), h(kendo_vue_buttons_1.Button, {
812
- role: "button",
813
- attrs: _this2.v3 ? undefined : {
814
- role: "button",
815
- tabIndex: -1,
816
- title: previousText,
817
- "aria-label": previousText
818
- },
819
- tabIndex: -1,
820
- "class": "k-button-icon",
821
- title: previousText,
822
- "aria-label": previousText,
823
- onClick: _this2.handlePrevClick,
274
+ }), h(kendo_vue_buttons_1.ToolbarSpacer), h(ViewSelector)];
275
+ } : [h(SchedulerNavigation_1.SchedulerNavigation, {
276
+ onPrevclick: _this2.handlePrevClick,
824
277
  on: _this2.v3 ? undefined : {
825
- "click": _this2.handlePrevClick
826
- }
827
- }, _this2.v3 ? function () {
828
- return [h("span", {
829
- "class": "k-button-text"
830
- }, [h("span", {
831
- "class": "k-icon k-i-arrow-60-left"
832
- })])];
833
- } : [h("span", {
834
- "class": "k-button-text"
835
- }, [h("span", {
836
- "class": "k-icon k-i-arrow-60-left"
837
- })])]), h(kendo_vue_buttons_1.Button, {
838
- role: "button",
839
- attrs: _this2.v3 ? undefined : {
840
- role: "button",
841
- tabIndex: -1,
842
- title: nextText,
843
- "aria-label": nextText
278
+ "prevclick": _this2.handlePrevClick,
279
+ "nextclick": _this2.handleNextClick,
280
+ "todayclick": _this2.handleTodayClick
844
281
  },
845
- tabIndex: -1,
846
- "class": "k-button-icon",
847
- title: nextText,
848
- "aria-label": nextText,
849
- onClick: _this2.handleNextClick,
850
- on: _this2.v3 ? undefined : {
851
- "click": _this2.handleNextClick
852
- }
853
- }, _this2.v3 ? function () {
854
- return [h("span", {
855
- "class": "k-button-text"
856
- }, [h("span", {
857
- "class": "k-icon k-i-arrow-60-right"
858
- })])];
859
- } : [h("span", {
860
- "class": "k-button-text"
861
- }, [h("span", {
862
- "class": "k-icon k-i-arrow-60-right"
863
- })])])])]), h(NavigationDatePicker_1.NavigationDatePicker, {
282
+ onNextclick: _this2.handleNextClick,
283
+ onTodayclick: _this2.handleTodayClick
284
+ }), h(NavigationDatePicker_1.NavigationDatePicker, {
864
285
  value: _this2.ks.currentDate,
865
286
  attrs: _this2.v3 ? undefined : {
866
287
  value: _this2.ks.currentDate
@@ -869,85 +290,90 @@ var SchedulerVue2 = {
869
290
  on: _this2.v3 ? undefined : {
870
291
  "change": _this2.handleDatePickerChange
871
292
  }
872
- }), h(kendo_vue_buttons_1.ToolbarSpacer), h(ViewSelector, _this2.v3 ? function () {
873
- return [h(ViewSelectorList_1.ViewSelectorList)];
874
- } : [h(ViewSelectorList_1.ViewSelectorList)])]), view && h(viewComponent, __assign({
875
- key: this.ks.view.name,
876
- onDataaction: this.handleDataAction,
877
- on: this.v3 ? undefined : {
878
- 'dataaction': this.handleDataAction
293
+ }), h(kendo_vue_buttons_1.ToolbarSpacer), h(ViewSelector)]);
294
+ headerRender = kendo_vue_common_1.getTemplate.call(this, {
295
+ h: h,
296
+ template: header,
297
+ defaultRendering: headerRenderDefaultRendering,
298
+ additionalProps: {
299
+ currentDate: this.ks.currentDate
879
300
  },
880
- props: this.v3 ? undefined : viewProps
881
- }, viewProps)), // @ts-ignore function children
301
+ additionalListeners: {
302
+ prevclick: this.handlePrevClick,
303
+ nextclick: this.handleNextClick,
304
+ todayclick: this.handleTodayClick,
305
+ datepickerchange: this.handleDatePickerChange
306
+ }
307
+ });
308
+ var footerRender;
309
+ var footerRenderDefaultRendering = // @ts-ignore function children
882
310
  h(SchedulerFooter_1.SchedulerFooter, this.v3 ? function () {
883
- return [slotDuration && slotDuration < 24 * 60 && // @ts-ignore function children
884
- h(BussinessHours_1.BusinessHours, _this2.v3 ? function () {
885
- return [// @ts-ignore function children
886
- h(kendo_vue_buttons_1.Button, {
887
- tabIndex: -1,
888
- attrs: _this2.v3 ? undefined : {
889
- tabIndex: -1
890
- },
891
- onClick: _this2.handleShowWorkHoursClick,
892
- on: _this2.v3 ? undefined : {
893
- "click": _this2.handleShowWorkHoursClick
894
- }
895
- }, _this2.v3 ? function () {
896
- return [h("span", {
897
- "class": "k-icon k-i-clock"
898
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])];
899
- } : [h("span", {
900
- "class": "k-icon k-i-clock"
901
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])])];
902
- } : [h(kendo_vue_buttons_1.Button, {
903
- tabIndex: -1,
904
- attrs: _this2.v3 ? undefined : {
905
- tabIndex: -1
906
- },
907
- onClick: _this2.handleShowWorkHoursClick,
908
- on: _this2.v3 ? undefined : {
909
- "click": _this2.handleShowWorkHoursClick
910
- }
911
- }, _this2.v3 ? function () {
912
- return [h("span", {
913
- "class": "k-icon k-i-clock"
914
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])];
915
- } : [h("span", {
916
- "class": "k-icon k-i-clock"
917
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])])])];
918
- } : [slotDuration && slotDuration < 24 * 60 && h(BussinessHours_1.BusinessHours, _this2.v3 ? function () {
919
- return [h(kendo_vue_buttons_1.Button, {
920
- tabIndex: -1,
311
+ return [// @ts-ignore function children
312
+ h(BusinessHours_1.BusinessHours, {
313
+ slotDuration: slotDuration,
921
314
  attrs: _this2.v3 ? undefined : {
922
- tabIndex: -1
315
+ slotDuration: slotDuration
923
316
  },
924
317
  onClick: _this2.handleShowWorkHoursClick,
925
318
  on: _this2.v3 ? undefined : {
926
319
  "click": _this2.handleShowWorkHoursClick
927
320
  }
928
- }, _this2.v3 ? function () {
929
- return [h("span", {
930
- "class": "k-icon k-i-clock"
931
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])];
932
- } : [h("span", {
933
- "class": "k-icon k-i-clock"
934
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])])];
935
- } : [h(kendo_vue_buttons_1.Button, {
936
- tabIndex: -1,
321
+ })];
322
+ } : [h(BusinessHours_1.BusinessHours, {
323
+ slotDuration: slotDuration,
937
324
  attrs: _this2.v3 ? undefined : {
938
- tabIndex: -1
325
+ slotDuration: slotDuration
939
326
  },
940
327
  onClick: _this2.handleShowWorkHoursClick,
941
328
  on: _this2.v3 ? undefined : {
942
329
  "click": _this2.handleShowWorkHoursClick
943
330
  }
944
- }, _this2.v3 ? function () {
945
- return [h("span", {
946
- "class": "k-icon k-i-clock"
947
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])];
948
- } : [h("span", {
949
- "class": "k-icon k-i-clock"
950
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay, messages_1.messages[_this2.ks.showWorkHours ? messages_1.showFullDay : messages_1.showWorkDay])])])])]);
331
+ })]);
332
+ footerRender = kendo_vue_common_1.getTemplate.call(this, {
333
+ h: h,
334
+ template: footer,
335
+ defaultRendering: footerRenderDefaultRendering,
336
+ additionalProps: {
337
+ slotDuration: slotDuration
338
+ },
339
+ additionalListeners: {
340
+ showworkhoursclick: this.handleShowWorkHoursClick
341
+ }
342
+ });
343
+ return h("div", {
344
+ id: this.$props.id,
345
+ attrs: this.v3 ? undefined : {
346
+ id: this.$props.id,
347
+ tabIndex: this.$props.tabIndex // Aria
348
+ // dir={dir}
349
+ ,
350
+ role: this.$props.role,
351
+ "aria-label": this.$props.ariaLabel,
352
+ "aria-labelledby": this.$props.ariaLabelledby // Handlers
353
+
354
+ },
355
+ style: {
356
+ height: this.$props.height + 'px'
357
+ },
358
+ "class": this.wrapperClassName,
359
+ tabIndex: this.$props.tabIndex,
360
+ role: this.$props.role,
361
+ "aria-label": this.$props.ariaLabel,
362
+ "aria-labelledby": this.$props.ariaLabelledby,
363
+ onFocusin: this.handleFocus,
364
+ on: this.v3 ? undefined : {
365
+ "focusin": this.handleFocus,
366
+ "focusout": this.handleBlur
367
+ },
368
+ onFocusout: this.handleBlur
369
+ }, [headerRender, view && h(viewComponent, __assign({
370
+ key: this.ks.view.name,
371
+ onDataaction: this.handleDataAction,
372
+ on: this.v3 ? undefined : {
373
+ 'dataaction': this.handleDataAction
374
+ },
375
+ props: this.v3 ? undefined : viewProps
376
+ }, viewProps)), footerRender]);
951
377
  },
952
378
  methods: {
953
379
  getViewComponentByName: function getViewComponentByName(viewName) {
@@ -1165,6 +591,24 @@ var SchedulerVue2 = {
1165
591
  this.$el.style.boxShadow = '';
1166
592
  }
1167
593
  },
594
+ handleItemClick: function handleItemClick(args) {
595
+ this.$emit('itemclick', args);
596
+ },
597
+ handleItemDoubleClick: function handleItemDoubleClick(args) {
598
+ this.$emit('itemdoubleclick', args);
599
+ },
600
+ handleSlotClick: function handleSlotClick(args) {
601
+ this.$emit('slotclick', args);
602
+ },
603
+ handleSlotDoubleClick: function handleSlotDoubleClick(args) {
604
+ this.$emit('slotdoubleclick', args);
605
+ },
606
+ handleTaskClick: function handleTaskClick(args) {
607
+ this.$emit('taskclick', args);
608
+ },
609
+ handleTaskDoubleClick: function handleTaskDoubleClick(args) {
610
+ this.$emit('taskdoubleclick', args);
611
+ },
1168
612
  setDate: function setDate(newDate, event) {
1169
613
  this.ks.currentDate = newDate;
1170
614
  this.updatePassedState();