@progress/kendo-vue-scheduler 3.1.0 → 3.1.2-dev.202203221454

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 (110) 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 +104 -682
  4. package/dist/es/components/SchedulerForm.js +4 -40
  5. package/dist/es/components/ShowMoreItemsButton.js +1 -2
  6. package/dist/es/components/footer/bussiness-hours/{BussinessHours.d.ts → BusinessHours.d.ts} +1 -0
  7. package/dist/es/components/footer/bussiness-hours/BusinessHours.js +88 -0
  8. package/dist/es/components/header/navigation/NavigationDatePicker.js +2 -3
  9. package/dist/es/components/header/navigation/SchedulerNavigation.js +319 -3
  10. package/dist/es/components/header/view-selector/SchedulerViewSelector.js +4 -3
  11. package/dist/es/components/header/view-selector/ViewSelectorItem.js +5 -7
  12. package/dist/es/components/header/view-selector/ViewSelectorList.js +19 -13
  13. package/dist/es/context/SchedulerResourceIteratorContext.js +2 -2
  14. package/dist/es/items/SchedulerEditItem.js +3 -1
  15. package/dist/es/items/SchedulerItem.d.ts +2 -0
  16. package/dist/es/items/SchedulerItem.js +11 -2
  17. package/dist/es/items/SchedulerViewItem.js +80 -92
  18. package/dist/es/main.d.ts +5 -1
  19. package/dist/es/main.js +5 -11
  20. package/dist/es/package-metadata.js +1 -1
  21. package/dist/es/slots/SchedulerEditSlot.js +58 -18
  22. package/dist/es/slots/SchedulerSlot.d.ts +4 -0
  23. package/dist/es/slots/SchedulerSlot.js +19 -3
  24. package/dist/es/slots/SchedulerViewSlot.d.ts +1 -1
  25. package/dist/es/slots/SchedulerViewSlot.js +58 -30
  26. package/dist/es/tasks/SchedulerEditTask.js +56 -49
  27. package/dist/es/tasks/SchedulerTask.js +3 -1
  28. package/dist/es/tasks/SchedulerViewTask.js +17 -22
  29. package/dist/es/views/agenda/AgendaView.js +18 -9
  30. package/dist/es/views/agenda/AgendaViewBody.d.ts +1 -0
  31. package/dist/es/views/agenda/AgendaViewBody.js +2 -1
  32. package/dist/es/views/common/VerticalResourceIterator.d.ts +1 -0
  33. package/dist/es/views/common/VerticalResourceIterator.js +104 -17
  34. package/dist/es/views/day/DayView.js +15 -3
  35. package/dist/es/views/day/DayViewAllDaySlots.d.ts +2 -0
  36. package/dist/es/views/day/DayViewAllDaySlots.js +12 -5
  37. package/dist/es/views/day/DayViewMiddleRow.js +12 -9
  38. package/dist/es/views/day/DayViewVerticalRow.d.ts +41 -0
  39. package/dist/es/views/day/DayViewVerticalRow.js +101 -0
  40. package/dist/es/views/day/DayViewVerticalSlotsRow.d.ts +50 -0
  41. package/dist/es/views/day/DayViewVerticalSlotsRow.js +132 -0
  42. package/dist/es/views/day/MultiDayView.d.ts +1 -1
  43. package/dist/es/views/day/MultiDayView.js +183 -288
  44. package/dist/es/views/month/MonthView.d.ts +1 -1
  45. package/dist/es/views/month/MonthView.js +56 -65
  46. package/dist/es/views/month/MonthViewBody.d.ts +2 -0
  47. package/dist/es/views/month/MonthViewBody.js +36 -51
  48. package/dist/es/views/time/MultiDayTimelineView.d.ts +2 -2
  49. package/dist/es/views/time/MultiDayTimelineView.js +52 -41
  50. package/dist/es/views/time/TimelineView.js +9 -3
  51. package/dist/es/views/time/TimelineViewBody.d.ts +2 -0
  52. package/dist/es/views/time/TimelineViewBody.js +6 -2
  53. package/dist/es/views/week/WeekView.js +9 -3
  54. package/dist/es/views/week/WorkWeekView.js +9 -3
  55. package/dist/npm/Scheduler.d.ts +1 -1
  56. package/dist/npm/Scheduler.js +102 -682
  57. package/dist/npm/components/SchedulerForm.js +4 -40
  58. package/dist/npm/components/ShowMoreItemsButton.js +1 -2
  59. package/dist/npm/components/footer/bussiness-hours/{BussinessHours.d.ts → BusinessHours.d.ts} +1 -0
  60. package/dist/npm/components/footer/bussiness-hours/BusinessHours.js +102 -0
  61. package/dist/npm/components/header/navigation/NavigationDatePicker.js +2 -3
  62. package/dist/npm/components/header/navigation/SchedulerNavigation.js +323 -4
  63. package/dist/npm/components/header/view-selector/SchedulerViewSelector.js +5 -3
  64. package/dist/npm/components/header/view-selector/ViewSelectorItem.js +6 -7
  65. package/dist/npm/components/header/view-selector/ViewSelectorList.js +21 -13
  66. package/dist/npm/context/SchedulerResourceIteratorContext.js +2 -2
  67. package/dist/npm/items/SchedulerEditItem.js +3 -1
  68. package/dist/npm/items/SchedulerItem.d.ts +2 -0
  69. package/dist/npm/items/SchedulerItem.js +11 -2
  70. package/dist/npm/items/SchedulerViewItem.js +81 -92
  71. package/dist/npm/main.d.ts +5 -1
  72. package/dist/npm/main.js +9 -11
  73. package/dist/npm/package-metadata.js +1 -1
  74. package/dist/npm/slots/SchedulerEditSlot.js +59 -18
  75. package/dist/npm/slots/SchedulerSlot.d.ts +4 -0
  76. package/dist/npm/slots/SchedulerSlot.js +20 -3
  77. package/dist/npm/slots/SchedulerViewSlot.d.ts +1 -1
  78. package/dist/npm/slots/SchedulerViewSlot.js +57 -29
  79. package/dist/npm/tasks/SchedulerEditTask.js +57 -49
  80. package/dist/npm/tasks/SchedulerTask.js +4 -1
  81. package/dist/npm/tasks/SchedulerViewTask.js +17 -21
  82. package/dist/npm/views/agenda/AgendaView.js +18 -9
  83. package/dist/npm/views/agenda/AgendaViewBody.d.ts +1 -0
  84. package/dist/npm/views/agenda/AgendaViewBody.js +2 -1
  85. package/dist/npm/views/common/VerticalResourceIterator.d.ts +1 -0
  86. package/dist/npm/views/common/VerticalResourceIterator.js +107 -17
  87. package/dist/npm/views/day/DayView.js +15 -3
  88. package/dist/npm/views/day/DayViewAllDaySlots.d.ts +2 -0
  89. package/dist/npm/views/day/DayViewAllDaySlots.js +12 -5
  90. package/dist/npm/views/day/DayViewMiddleRow.js +12 -9
  91. package/dist/npm/views/day/DayViewVerticalRow.d.ts +41 -0
  92. package/dist/npm/views/day/DayViewVerticalRow.js +113 -0
  93. package/dist/npm/views/day/DayViewVerticalSlotsRow.d.ts +50 -0
  94. package/dist/npm/views/day/DayViewVerticalSlotsRow.js +145 -0
  95. package/dist/npm/views/day/MultiDayView.d.ts +1 -1
  96. package/dist/npm/views/day/MultiDayView.js +184 -289
  97. package/dist/npm/views/month/MonthView.d.ts +1 -1
  98. package/dist/npm/views/month/MonthView.js +56 -65
  99. package/dist/npm/views/month/MonthViewBody.d.ts +2 -0
  100. package/dist/npm/views/month/MonthViewBody.js +36 -52
  101. package/dist/npm/views/time/MultiDayTimelineView.d.ts +2 -2
  102. package/dist/npm/views/time/MultiDayTimelineView.js +52 -41
  103. package/dist/npm/views/time/TimelineView.js +9 -3
  104. package/dist/npm/views/time/TimelineViewBody.d.ts +2 -0
  105. package/dist/npm/views/time/TimelineViewBody.js +6 -2
  106. package/dist/npm/views/week/WeekView.js +9 -3
  107. package/dist/npm/views/week/WorkWeekView.js +9 -3
  108. package/package.json +12 -12
  109. package/dist/es/components/footer/bussiness-hours/BussinessHours.js +0 -33
  110. 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() {
@@ -232,11 +231,11 @@ var SchedulerVue2 = {
232
231
  return currentView.name === _this.ks.activeViewName;
233
232
  }) || this.views[0] || h(DayView_1.DayView);
234
233
  var slotDuration = this.getViewPropValue(this.ks.view, 'slotDuration', this.ks.activeViewName);
235
- var todayText = this.localization.toLanguageString(messages_1.today, messages_1.messages[messages_1.today]);
236
- var previousText = this.localization.toLanguageString(messages_1.previousTitle, messages_1.messages[messages_1.previousTitle]);
237
- var nextText = this.localization.toLanguageString(messages_1.nextTitle, messages_1.messages[messages_1.nextTitle]);
238
- 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));
239
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, {});
240
239
  var ViewSelector = SchedulerViewSelector_1.SchedulerViewSelector;
241
240
  var viewComponent = this.getViewComponentByName(this.ks.activeViewName || view.name);
242
241
 
@@ -245,329 +244,25 @@ var SchedulerVue2 = {
245
244
  dataItems: undefined,
246
245
  views: undefined,
247
246
  defaultDate: undefined,
248
- dateRange: this.ks.dateRange
247
+ dateRange: this.ks.dateRange,
248
+ slotRender: slotRender,
249
+ item: item,
250
+ task: task
249
251
  });
250
252
 
251
- return h("div", {
252
- id: this.$props.id,
253
- attrs: this.v3 ? undefined : {
254
- id: this.$props.id,
255
- tabIndex: this.$props.tabIndex // Aria
256
- // dir={dir}
257
- ,
258
- role: this.$props.role,
259
- "aria-label": this.$props.ariaLabel,
260
- "aria-labelledby": this.$props.ariaLabelledby // Handlers
261
-
262
- },
263
- style: {
264
- height: this.$props.height + 'px'
265
- },
266
- "class": this.wrapperClassName,
267
- tabIndex: this.$props.tabIndex,
268
- role: this.$props.role,
269
- "aria-label": this.$props.ariaLabel,
270
- "aria-labelledby": this.$props.ariaLabelledby,
271
- onFocusin: this.handleFocus,
272
- on: this.v3 ? undefined : {
273
- "focusin": this.handleFocus,
274
- "focusout": this.handleBlur
275
- },
276
- onFocusout: this.handleBlur
277
- }, [// @ts-ignore function children
253
+ var headerRender;
254
+ var headerRenderDefaultRendering = // @ts-ignore function children
278
255
  h(SchedulerHeader_1.SchedulerHeader, this.v3 ? function () {
279
- return [// @ts-ignore function children
280
- h(SchedulerNavigation_1.SchedulerNavigation, _this2.v3 ? function () {
281
- return [// @ts-ignore function children
282
- h(kendo_vue_buttons_1.ButtonGroup, {
283
- "class": "k-scheduler-navigation"
284
- }, _this2.v3 ? function () {
285
- return [// @ts-ignore function children
286
- h(kendo_vue_buttons_1.Button, {
287
- role: "button",
288
- attrs: _this2.v3 ? undefined : {
289
- role: "button",
290
- tabIndex: -1,
291
- title: todayText,
292
- "aria-label": todayText
293
- },
294
- tabIndex: -1,
295
- title: todayText,
296
- "aria-label": todayText,
297
- onClick: _this2.handleTodayClick,
298
- on: _this2.v3 ? undefined : {
299
- "click": _this2.handleTodayClick
300
- }
301
- }, _this2.v3 ? function () {
302
- return [todayText];
303
- } : [todayText]), // @ts-ignore function children
304
- h(kendo_vue_buttons_1.Button, {
305
- role: "button",
306
- attrs: _this2.v3 ? undefined : {
307
- role: "button",
308
- tabIndex: -1,
309
- title: previousText,
310
- "aria-label": previousText
311
- },
312
- tabIndex: -1,
313
- "class": "k-button-icon",
314
- title: previousText,
315
- "aria-label": previousText,
316
- onClick: _this2.handlePrevClick,
317
- on: _this2.v3 ? undefined : {
318
- "click": _this2.handlePrevClick
319
- }
320
- }, _this2.v3 ? function () {
321
- return [h("span", {
322
- "class": "k-button-text"
323
- }, [h("span", {
324
- "class": "k-icon k-i-arrow-60-left"
325
- })])];
326
- } : [h("span", {
327
- "class": "k-button-text"
328
- }, [h("span", {
329
- "class": "k-icon k-i-arrow-60-left"
330
- })])]), // @ts-ignore function children
331
- h(kendo_vue_buttons_1.Button, {
332
- role: "button",
333
- attrs: _this2.v3 ? undefined : {
334
- role: "button",
335
- tabIndex: -1,
336
- title: nextText,
337
- "aria-label": nextText
338
- },
339
- tabIndex: -1,
340
- "class": "k-button-icon",
341
- title: nextText,
342
- "aria-label": nextText,
343
- onClick: _this2.handleNextClick,
344
- on: _this2.v3 ? undefined : {
345
- "click": _this2.handleNextClick
346
- }
347
- }, _this2.v3 ? function () {
348
- return [h("span", {
349
- "class": "k-button-text"
350
- }, [h("span", {
351
- "class": "k-icon k-i-arrow-60-right"
352
- })])];
353
- } : [h("span", {
354
- "class": "k-button-text"
355
- }, [h("span", {
356
- "class": "k-icon k-i-arrow-60-right"
357
- })])])];
358
- } : [h(kendo_vue_buttons_1.Button, {
359
- role: "button",
360
- attrs: _this2.v3 ? undefined : {
361
- role: "button",
362
- tabIndex: -1,
363
- title: todayText,
364
- "aria-label": todayText
365
- },
366
- tabIndex: -1,
367
- title: todayText,
368
- "aria-label": todayText,
369
- onClick: _this2.handleTodayClick,
370
- on: _this2.v3 ? undefined : {
371
- "click": _this2.handleTodayClick
372
- }
373
- }, _this2.v3 ? function () {
374
- return [todayText];
375
- } : [todayText]), h(kendo_vue_buttons_1.Button, {
376
- role: "button",
377
- attrs: _this2.v3 ? undefined : {
378
- role: "button",
379
- tabIndex: -1,
380
- title: previousText,
381
- "aria-label": previousText
382
- },
383
- tabIndex: -1,
384
- "class": "k-button-icon",
385
- title: previousText,
386
- "aria-label": previousText,
387
- onClick: _this2.handlePrevClick,
388
- on: _this2.v3 ? undefined : {
389
- "click": _this2.handlePrevClick
390
- }
391
- }, _this2.v3 ? function () {
392
- return [h("span", {
393
- "class": "k-button-text"
394
- }, [h("span", {
395
- "class": "k-icon k-i-arrow-60-left"
396
- })])];
397
- } : [h("span", {
398
- "class": "k-button-text"
399
- }, [h("span", {
400
- "class": "k-icon k-i-arrow-60-left"
401
- })])]), h(kendo_vue_buttons_1.Button, {
402
- role: "button",
403
- attrs: _this2.v3 ? undefined : {
404
- role: "button",
405
- tabIndex: -1,
406
- title: nextText,
407
- "aria-label": nextText
408
- },
409
- tabIndex: -1,
410
- "class": "k-button-icon",
411
- title: nextText,
412
- "aria-label": nextText,
413
- onClick: _this2.handleNextClick,
414
- on: _this2.v3 ? undefined : {
415
- "click": _this2.handleNextClick
416
- }
417
- }, _this2.v3 ? function () {
418
- return [h("span", {
419
- "class": "k-button-text"
420
- }, [h("span", {
421
- "class": "k-icon k-i-arrow-60-right"
422
- })])];
423
- } : [h("span", {
424
- "class": "k-button-text"
425
- }, [h("span", {
426
- "class": "k-icon k-i-arrow-60-right"
427
- })])])])];
428
- } : [h(kendo_vue_buttons_1.ButtonGroup, {
429
- "class": "k-scheduler-navigation"
430
- }, _this2.v3 ? function () {
431
- return [h(kendo_vue_buttons_1.Button, {
432
- role: "button",
433
- attrs: _this2.v3 ? undefined : {
434
- role: "button",
435
- tabIndex: -1,
436
- title: todayText,
437
- "aria-label": todayText
438
- },
439
- tabIndex: -1,
440
- title: todayText,
441
- "aria-label": todayText,
442
- onClick: _this2.handleTodayClick,
443
- on: _this2.v3 ? undefined : {
444
- "click": _this2.handleTodayClick
445
- }
446
- }, _this2.v3 ? function () {
447
- return [todayText];
448
- } : [todayText]), h(kendo_vue_buttons_1.Button, {
449
- role: "button",
450
- attrs: _this2.v3 ? undefined : {
451
- role: "button",
452
- tabIndex: -1,
453
- title: previousText,
454
- "aria-label": previousText
455
- },
456
- tabIndex: -1,
457
- "class": "k-button-icon",
458
- title: previousText,
459
- "aria-label": previousText,
460
- onClick: _this2.handlePrevClick,
461
- on: _this2.v3 ? undefined : {
462
- "click": _this2.handlePrevClick
463
- }
464
- }, _this2.v3 ? function () {
465
- return [h("span", {
466
- "class": "k-button-text"
467
- }, [h("span", {
468
- "class": "k-icon k-i-arrow-60-left"
469
- })])];
470
- } : [h("span", {
471
- "class": "k-button-text"
472
- }, [h("span", {
473
- "class": "k-icon k-i-arrow-60-left"
474
- })])]), h(kendo_vue_buttons_1.Button, {
475
- role: "button",
476
- attrs: _this2.v3 ? undefined : {
477
- role: "button",
478
- tabIndex: -1,
479
- title: nextText,
480
- "aria-label": nextText
481
- },
482
- tabIndex: -1,
483
- "class": "k-button-icon",
484
- title: nextText,
485
- "aria-label": nextText,
486
- onClick: _this2.handleNextClick,
487
- on: _this2.v3 ? undefined : {
488
- "click": _this2.handleNextClick
489
- }
490
- }, _this2.v3 ? function () {
491
- return [h("span", {
492
- "class": "k-button-text"
493
- }, [h("span", {
494
- "class": "k-icon k-i-arrow-60-right"
495
- })])];
496
- } : [h("span", {
497
- "class": "k-button-text"
498
- }, [h("span", {
499
- "class": "k-icon k-i-arrow-60-right"
500
- })])])];
501
- } : [h(kendo_vue_buttons_1.Button, {
502
- role: "button",
503
- attrs: _this2.v3 ? undefined : {
504
- role: "button",
505
- tabIndex: -1,
506
- title: todayText,
507
- "aria-label": todayText
508
- },
509
- tabIndex: -1,
510
- title: todayText,
511
- "aria-label": todayText,
512
- onClick: _this2.handleTodayClick,
256
+ return [h(SchedulerNavigation_1.SchedulerNavigation, {
257
+ onPrevclick: _this2.handlePrevClick,
513
258
  on: _this2.v3 ? undefined : {
514
- "click": _this2.handleTodayClick
515
- }
516
- }, _this2.v3 ? function () {
517
- return [todayText];
518
- } : [todayText]), h(kendo_vue_buttons_1.Button, {
519
- role: "button",
520
- attrs: _this2.v3 ? undefined : {
521
- role: "button",
522
- tabIndex: -1,
523
- title: previousText,
524
- "aria-label": previousText
259
+ "prevclick": _this2.handlePrevClick,
260
+ "nextclick": _this2.handleNextClick,
261
+ "todayclick": _this2.handleTodayClick
525
262
  },
526
- tabIndex: -1,
527
- "class": "k-button-icon",
528
- title: previousText,
529
- "aria-label": previousText,
530
- onClick: _this2.handlePrevClick,
531
- on: _this2.v3 ? undefined : {
532
- "click": _this2.handlePrevClick
533
- }
534
- }, _this2.v3 ? function () {
535
- return [h("span", {
536
- "class": "k-button-text"
537
- }, [h("span", {
538
- "class": "k-icon k-i-arrow-60-left"
539
- })])];
540
- } : [h("span", {
541
- "class": "k-button-text"
542
- }, [h("span", {
543
- "class": "k-icon k-i-arrow-60-left"
544
- })])]), h(kendo_vue_buttons_1.Button, {
545
- role: "button",
546
- attrs: _this2.v3 ? undefined : {
547
- role: "button",
548
- tabIndex: -1,
549
- title: nextText,
550
- "aria-label": nextText
551
- },
552
- tabIndex: -1,
553
- "class": "k-button-icon",
554
- title: nextText,
555
- "aria-label": nextText,
556
- onClick: _this2.handleNextClick,
557
- on: _this2.v3 ? undefined : {
558
- "click": _this2.handleNextClick
559
- }
560
- }, _this2.v3 ? function () {
561
- return [h("span", {
562
- "class": "k-button-text"
563
- }, [h("span", {
564
- "class": "k-icon k-i-arrow-60-right"
565
- })])];
566
- } : [h("span", {
567
- "class": "k-button-text"
568
- }, [h("span", {
569
- "class": "k-icon k-i-arrow-60-right"
570
- })])])])]), h(NavigationDatePicker_1.NavigationDatePicker, {
263
+ onNextclick: _this2.handleNextClick,
264
+ onTodayclick: _this2.handleTodayClick
265
+ }), h(NavigationDatePicker_1.NavigationDatePicker, {
571
266
  value: _this2.ks.currentDate,
572
267
  attrs: _this2.v3 ? undefined : {
573
268
  value: _this2.ks.currentDate
@@ -576,297 +271,17 @@ var SchedulerVue2 = {
576
271
  on: _this2.v3 ? undefined : {
577
272
  "change": _this2.handleDatePickerChange
578
273
  }
579
- }), h(kendo_vue_buttons_1.ToolbarSpacer), // @ts-ignore function children
580
- h(ViewSelector, _this2.v3 ? function () {
581
- return [h(ViewSelectorList_1.ViewSelectorList)];
582
- } : [h(ViewSelectorList_1.ViewSelectorList)])];
583
- } : [h(SchedulerNavigation_1.SchedulerNavigation, _this2.v3 ? function () {
584
- return [h(kendo_vue_buttons_1.ButtonGroup, {
585
- "class": "k-scheduler-navigation"
586
- }, _this2.v3 ? function () {
587
- return [h(kendo_vue_buttons_1.Button, {
588
- role: "button",
589
- attrs: _this2.v3 ? undefined : {
590
- role: "button",
591
- tabIndex: -1,
592
- title: todayText,
593
- "aria-label": todayText
594
- },
595
- tabIndex: -1,
596
- title: todayText,
597
- "aria-label": todayText,
598
- onClick: _this2.handleTodayClick,
599
- on: _this2.v3 ? undefined : {
600
- "click": _this2.handleTodayClick
601
- }
602
- }, _this2.v3 ? function () {
603
- return [todayText];
604
- } : [todayText]), h(kendo_vue_buttons_1.Button, {
605
- role: "button",
606
- attrs: _this2.v3 ? undefined : {
607
- role: "button",
608
- tabIndex: -1,
609
- title: previousText,
610
- "aria-label": previousText
611
- },
612
- tabIndex: -1,
613
- "class": "k-button-icon",
614
- title: previousText,
615
- "aria-label": previousText,
616
- onClick: _this2.handlePrevClick,
617
- on: _this2.v3 ? undefined : {
618
- "click": _this2.handlePrevClick
619
- }
620
- }, _this2.v3 ? function () {
621
- return [h("span", {
622
- "class": "k-button-text"
623
- }, [h("span", {
624
- "class": "k-icon k-i-arrow-60-left"
625
- })])];
626
- } : [h("span", {
627
- "class": "k-button-text"
628
- }, [h("span", {
629
- "class": "k-icon k-i-arrow-60-left"
630
- })])]), h(kendo_vue_buttons_1.Button, {
631
- role: "button",
632
- attrs: _this2.v3 ? undefined : {
633
- role: "button",
634
- tabIndex: -1,
635
- title: nextText,
636
- "aria-label": nextText
637
- },
638
- tabIndex: -1,
639
- "class": "k-button-icon",
640
- title: nextText,
641
- "aria-label": nextText,
642
- onClick: _this2.handleNextClick,
643
- on: _this2.v3 ? undefined : {
644
- "click": _this2.handleNextClick
645
- }
646
- }, _this2.v3 ? function () {
647
- return [h("span", {
648
- "class": "k-button-text"
649
- }, [h("span", {
650
- "class": "k-icon k-i-arrow-60-right"
651
- })])];
652
- } : [h("span", {
653
- "class": "k-button-text"
654
- }, [h("span", {
655
- "class": "k-icon k-i-arrow-60-right"
656
- })])])];
657
- } : [h(kendo_vue_buttons_1.Button, {
658
- role: "button",
659
- attrs: _this2.v3 ? undefined : {
660
- role: "button",
661
- tabIndex: -1,
662
- title: todayText,
663
- "aria-label": todayText
664
- },
665
- tabIndex: -1,
666
- title: todayText,
667
- "aria-label": todayText,
668
- onClick: _this2.handleTodayClick,
669
- on: _this2.v3 ? undefined : {
670
- "click": _this2.handleTodayClick
671
- }
672
- }, _this2.v3 ? function () {
673
- return [todayText];
674
- } : [todayText]), h(kendo_vue_buttons_1.Button, {
675
- role: "button",
676
- attrs: _this2.v3 ? undefined : {
677
- role: "button",
678
- tabIndex: -1,
679
- title: previousText,
680
- "aria-label": previousText
681
- },
682
- tabIndex: -1,
683
- "class": "k-button-icon",
684
- title: previousText,
685
- "aria-label": previousText,
686
- onClick: _this2.handlePrevClick,
687
- on: _this2.v3 ? undefined : {
688
- "click": _this2.handlePrevClick
689
- }
690
- }, _this2.v3 ? function () {
691
- return [h("span", {
692
- "class": "k-button-text"
693
- }, [h("span", {
694
- "class": "k-icon k-i-arrow-60-left"
695
- })])];
696
- } : [h("span", {
697
- "class": "k-button-text"
698
- }, [h("span", {
699
- "class": "k-icon k-i-arrow-60-left"
700
- })])]), h(kendo_vue_buttons_1.Button, {
701
- role: "button",
702
- attrs: _this2.v3 ? undefined : {
703
- role: "button",
704
- tabIndex: -1,
705
- title: nextText,
706
- "aria-label": nextText
707
- },
708
- tabIndex: -1,
709
- "class": "k-button-icon",
710
- title: nextText,
711
- "aria-label": nextText,
712
- onClick: _this2.handleNextClick,
713
- on: _this2.v3 ? undefined : {
714
- "click": _this2.handleNextClick
715
- }
716
- }, _this2.v3 ? function () {
717
- return [h("span", {
718
- "class": "k-button-text"
719
- }, [h("span", {
720
- "class": "k-icon k-i-arrow-60-right"
721
- })])];
722
- } : [h("span", {
723
- "class": "k-button-text"
724
- }, [h("span", {
725
- "class": "k-icon k-i-arrow-60-right"
726
- })])])])];
727
- } : [h(kendo_vue_buttons_1.ButtonGroup, {
728
- "class": "k-scheduler-navigation"
729
- }, _this2.v3 ? function () {
730
- return [h(kendo_vue_buttons_1.Button, {
731
- role: "button",
732
- attrs: _this2.v3 ? undefined : {
733
- role: "button",
734
- tabIndex: -1,
735
- title: todayText,
736
- "aria-label": todayText
737
- },
738
- tabIndex: -1,
739
- title: todayText,
740
- "aria-label": todayText,
741
- onClick: _this2.handleTodayClick,
742
- on: _this2.v3 ? undefined : {
743
- "click": _this2.handleTodayClick
744
- }
745
- }, _this2.v3 ? function () {
746
- return [todayText];
747
- } : [todayText]), h(kendo_vue_buttons_1.Button, {
748
- role: "button",
749
- attrs: _this2.v3 ? undefined : {
750
- role: "button",
751
- tabIndex: -1,
752
- title: previousText,
753
- "aria-label": previousText
754
- },
755
- tabIndex: -1,
756
- "class": "k-button-icon",
757
- title: previousText,
758
- "aria-label": previousText,
759
- onClick: _this2.handlePrevClick,
760
- on: _this2.v3 ? undefined : {
761
- "click": _this2.handlePrevClick
762
- }
763
- }, _this2.v3 ? function () {
764
- return [h("span", {
765
- "class": "k-button-text"
766
- }, [h("span", {
767
- "class": "k-icon k-i-arrow-60-left"
768
- })])];
769
- } : [h("span", {
770
- "class": "k-button-text"
771
- }, [h("span", {
772
- "class": "k-icon k-i-arrow-60-left"
773
- })])]), h(kendo_vue_buttons_1.Button, {
774
- role: "button",
775
- attrs: _this2.v3 ? undefined : {
776
- role: "button",
777
- tabIndex: -1,
778
- title: nextText,
779
- "aria-label": nextText
780
- },
781
- tabIndex: -1,
782
- "class": "k-button-icon",
783
- title: nextText,
784
- "aria-label": nextText,
785
- onClick: _this2.handleNextClick,
786
- on: _this2.v3 ? undefined : {
787
- "click": _this2.handleNextClick
788
- }
789
- }, _this2.v3 ? function () {
790
- return [h("span", {
791
- "class": "k-button-text"
792
- }, [h("span", {
793
- "class": "k-icon k-i-arrow-60-right"
794
- })])];
795
- } : [h("span", {
796
- "class": "k-button-text"
797
- }, [h("span", {
798
- "class": "k-icon k-i-arrow-60-right"
799
- })])])];
800
- } : [h(kendo_vue_buttons_1.Button, {
801
- role: "button",
802
- attrs: _this2.v3 ? undefined : {
803
- role: "button",
804
- tabIndex: -1,
805
- title: todayText,
806
- "aria-label": todayText
807
- },
808
- tabIndex: -1,
809
- title: todayText,
810
- "aria-label": todayText,
811
- onClick: _this2.handleTodayClick,
274
+ }), h(kendo_vue_buttons_1.ToolbarSpacer), h(ViewSelector)];
275
+ } : [h(SchedulerNavigation_1.SchedulerNavigation, {
276
+ onPrevclick: _this2.handlePrevClick,
812
277
  on: _this2.v3 ? undefined : {
813
- "click": _this2.handleTodayClick
814
- }
815
- }, _this2.v3 ? function () {
816
- return [todayText];
817
- } : [todayText]), h(kendo_vue_buttons_1.Button, {
818
- role: "button",
819
- attrs: _this2.v3 ? undefined : {
820
- role: "button",
821
- tabIndex: -1,
822
- title: previousText,
823
- "aria-label": previousText
824
- },
825
- tabIndex: -1,
826
- "class": "k-button-icon",
827
- title: previousText,
828
- "aria-label": previousText,
829
- onClick: _this2.handlePrevClick,
830
- on: _this2.v3 ? undefined : {
831
- "click": _this2.handlePrevClick
832
- }
833
- }, _this2.v3 ? function () {
834
- return [h("span", {
835
- "class": "k-button-text"
836
- }, [h("span", {
837
- "class": "k-icon k-i-arrow-60-left"
838
- })])];
839
- } : [h("span", {
840
- "class": "k-button-text"
841
- }, [h("span", {
842
- "class": "k-icon k-i-arrow-60-left"
843
- })])]), h(kendo_vue_buttons_1.Button, {
844
- role: "button",
845
- attrs: _this2.v3 ? undefined : {
846
- role: "button",
847
- tabIndex: -1,
848
- title: nextText,
849
- "aria-label": nextText
278
+ "prevclick": _this2.handlePrevClick,
279
+ "nextclick": _this2.handleNextClick,
280
+ "todayclick": _this2.handleTodayClick
850
281
  },
851
- tabIndex: -1,
852
- "class": "k-button-icon",
853
- title: nextText,
854
- "aria-label": nextText,
855
- onClick: _this2.handleNextClick,
856
- on: _this2.v3 ? undefined : {
857
- "click": _this2.handleNextClick
858
- }
859
- }, _this2.v3 ? function () {
860
- return [h("span", {
861
- "class": "k-button-text"
862
- }, [h("span", {
863
- "class": "k-icon k-i-arrow-60-right"
864
- })])];
865
- } : [h("span", {
866
- "class": "k-button-text"
867
- }, [h("span", {
868
- "class": "k-icon k-i-arrow-60-right"
869
- })])])])]), h(NavigationDatePicker_1.NavigationDatePicker, {
282
+ onNextclick: _this2.handleNextClick,
283
+ onTodayclick: _this2.handleTodayClick
284
+ }), h(NavigationDatePicker_1.NavigationDatePicker, {
870
285
  value: _this2.ks.currentDate,
871
286
  attrs: _this2.v3 ? undefined : {
872
287
  value: _this2.ks.currentDate
@@ -875,85 +290,90 @@ var SchedulerVue2 = {
875
290
  on: _this2.v3 ? undefined : {
876
291
  "change": _this2.handleDatePickerChange
877
292
  }
878
- }), h(kendo_vue_buttons_1.ToolbarSpacer), h(ViewSelector, _this2.v3 ? function () {
879
- return [h(ViewSelectorList_1.ViewSelectorList)];
880
- } : [h(ViewSelectorList_1.ViewSelectorList)])]), view && h(viewComponent, __assign({
881
- key: this.ks.view.name,
882
- onDataaction: this.handleDataAction,
883
- on: this.v3 ? undefined : {
884
- '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
885
300
  },
886
- props: this.v3 ? undefined : viewProps
887
- }, 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
888
310
  h(SchedulerFooter_1.SchedulerFooter, this.v3 ? function () {
889
- return [slotDuration && slotDuration < 24 * 60 && // @ts-ignore function children
890
- h(BussinessHours_1.BusinessHours, _this2.v3 ? function () {
891
- return [// @ts-ignore function children
892
- h(kendo_vue_buttons_1.Button, {
893
- tabIndex: -1,
894
- attrs: _this2.v3 ? undefined : {
895
- tabIndex: -1
896
- },
897
- onClick: _this2.handleShowWorkHoursClick,
898
- on: _this2.v3 ? undefined : {
899
- "click": _this2.handleShowWorkHoursClick
900
- }
901
- }, _this2.v3 ? function () {
902
- return [h("span", {
903
- "class": "k-icon k-i-clock"
904
- }), "\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])];
905
- } : [h("span", {
906
- "class": "k-icon k-i-clock"
907
- }), "\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])])];
908
- } : [h(kendo_vue_buttons_1.Button, {
909
- tabIndex: -1,
910
- attrs: _this2.v3 ? undefined : {
911
- tabIndex: -1
912
- },
913
- onClick: _this2.handleShowWorkHoursClick,
914
- on: _this2.v3 ? undefined : {
915
- "click": _this2.handleShowWorkHoursClick
916
- }
917
- }, _this2.v3 ? function () {
918
- return [h("span", {
919
- "class": "k-icon k-i-clock"
920
- }), "\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])];
921
- } : [h("span", {
922
- "class": "k-icon k-i-clock"
923
- }), "\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])])])];
924
- } : [slotDuration && slotDuration < 24 * 60 && h(BussinessHours_1.BusinessHours, _this2.v3 ? function () {
925
- return [h(kendo_vue_buttons_1.Button, {
926
- tabIndex: -1,
311
+ return [// @ts-ignore function children
312
+ h(BusinessHours_1.BusinessHours, {
313
+ slotDuration: slotDuration,
927
314
  attrs: _this2.v3 ? undefined : {
928
- tabIndex: -1
315
+ slotDuration: slotDuration
929
316
  },
930
317
  onClick: _this2.handleShowWorkHoursClick,
931
318
  on: _this2.v3 ? undefined : {
932
319
  "click": _this2.handleShowWorkHoursClick
933
320
  }
934
- }, _this2.v3 ? function () {
935
- return [h("span", {
936
- "class": "k-icon k-i-clock"
937
- }), "\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])];
938
- } : [h("span", {
939
- "class": "k-icon k-i-clock"
940
- }), "\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])])];
941
- } : [h(kendo_vue_buttons_1.Button, {
942
- tabIndex: -1,
321
+ })];
322
+ } : [h(BusinessHours_1.BusinessHours, {
323
+ slotDuration: slotDuration,
943
324
  attrs: _this2.v3 ? undefined : {
944
- tabIndex: -1
325
+ slotDuration: slotDuration
945
326
  },
946
327
  onClick: _this2.handleShowWorkHoursClick,
947
328
  on: _this2.v3 ? undefined : {
948
329
  "click": _this2.handleShowWorkHoursClick
949
330
  }
950
- }, _this2.v3 ? function () {
951
- return [h("span", {
952
- "class": "k-icon k-i-clock"
953
- }), "\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])];
954
- } : [h("span", {
955
- "class": "k-icon k-i-clock"
956
- }), "\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]);
957
377
  },
958
378
  methods: {
959
379
  getViewComponentByName: function getViewComponentByName(viewName) {