@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
@@ -33,18 +33,16 @@ import * as Vue from 'vue';
33
33
  var allVue = Vue;
34
34
  var gh = allVue.h;
35
35
  import { getModelFields, getField, findMaster, setField, toSchedulerGroups, getToday } from './utils';
36
- import { clone, getListeners, templateRendering } from '@progress/kendo-vue-common';
36
+ import { clone, getListeners, getTemplate, templateRendering } from '@progress/kendo-vue-common';
37
37
  import { provideIntlService, provideLocalizationService } from '@progress/kendo-vue-intl';
38
38
  import { SchedulerHeader } from './components/header/SchedulerHeader';
39
39
  import { SchedulerNavigation } from './components/header/navigation/SchedulerNavigation';
40
40
  import { SchedulerViewSelector } from './components/header/view-selector/SchedulerViewSelector';
41
41
  import { addDays, addMonths } from '@progress/kendo-date-math';
42
42
  import { SchedulerFooter } from './components/footer/SchedulerFooter';
43
- import { Button, ToolbarSpacer, ButtonGroup } from '@progress/kendo-vue-buttons';
44
- import { showFullDay, showWorkDay, messages, today, previousTitle, nextTitle } from './messages';
43
+ import { ToolbarSpacer } from '@progress/kendo-vue-buttons';
45
44
  import { NavigationDatePicker } from './components/header/navigation/NavigationDatePicker';
46
- import { ViewSelectorList } from './components/header/view-selector/ViewSelectorList';
47
- import { BusinessHours } from './components/footer/bussiness-hours/BussinessHours';
45
+ import { BusinessHours } from './components/footer/bussiness-hours/BusinessHours';
48
46
  import { DayView } from './views/day/DayView'; // import { SchedulerFormProps } from './editors/SchedulerFormEditor';
49
47
 
50
48
  import { validatePackage } from '@progress/kendo-vue-common';
@@ -106,7 +104,10 @@ var SchedulerVue2 = {
106
104
  default: new Date()
107
105
  },
108
106
  header: [String, Function, Object],
109
- footer: [String, Function, Object]
107
+ footer: [String, Function, Object],
108
+ slotRender: [String, Function, Object],
109
+ item: [String, Function, Object],
110
+ task: [String, Function, Object]
110
111
  },
111
112
  computed: {
112
113
  wrapperClassName: function wrapperClassName() {
@@ -206,11 +207,11 @@ var SchedulerVue2 = {
206
207
  return currentView.name === _this.ks.activeViewName;
207
208
  }) || this.views[0] || h(DayView);
208
209
  var slotDuration = this.getViewPropValue(this.ks.view, 'slotDuration', this.ks.activeViewName);
209
- var todayText = this.localization.toLanguageString(today, messages[today]);
210
- var previousText = this.localization.toLanguageString(previousTitle, messages[previousTitle]);
211
- var nextText = this.localization.toLanguageString(nextTitle, messages[nextTitle]);
212
- var heaeder = templateRendering.call(this, view.header || this.$props.header, getListeners.call(this));
210
+ var header = templateRendering.call(this, view.header || this.$props.header, getListeners.call(this));
213
211
  var footer = templateRendering.call(this, view.footer || this.$props.footer, getListeners.call(this));
212
+ var slotRender = templateRendering.call(this, view.slot || this.$props.slotRender, {});
213
+ var item = templateRendering.call(this, view.item || this.$props.item, {});
214
+ var task = templateRendering.call(this, view.task || this.$props.task, {});
214
215
  var ViewSelector = SchedulerViewSelector;
215
216
  var viewComponent = this.getViewComponentByName(this.ks.activeViewName || view.name);
216
217
 
@@ -219,329 +220,25 @@ var SchedulerVue2 = {
219
220
  dataItems: undefined,
220
221
  views: undefined,
221
222
  defaultDate: undefined,
222
- dateRange: this.ks.dateRange
223
+ dateRange: this.ks.dateRange,
224
+ slotRender: slotRender,
225
+ item: item,
226
+ task: task
223
227
  });
224
228
 
225
- return h("div", {
226
- id: this.$props.id,
227
- attrs: this.v3 ? undefined : {
228
- id: this.$props.id,
229
- tabIndex: this.$props.tabIndex // Aria
230
- // dir={dir}
231
- ,
232
- role: this.$props.role,
233
- "aria-label": this.$props.ariaLabel,
234
- "aria-labelledby": this.$props.ariaLabelledby // Handlers
235
-
236
- },
237
- style: {
238
- height: this.$props.height + 'px'
239
- },
240
- "class": this.wrapperClassName,
241
- tabIndex: this.$props.tabIndex,
242
- role: this.$props.role,
243
- "aria-label": this.$props.ariaLabel,
244
- "aria-labelledby": this.$props.ariaLabelledby,
245
- onFocusin: this.handleFocus,
246
- on: this.v3 ? undefined : {
247
- "focusin": this.handleFocus,
248
- "focusout": this.handleBlur
249
- },
250
- onFocusout: this.handleBlur
251
- }, [// @ts-ignore function children
229
+ var headerRender;
230
+ var headerRenderDefaultRendering = // @ts-ignore function children
252
231
  h(SchedulerHeader, this.v3 ? function () {
253
- return [// @ts-ignore function children
254
- h(SchedulerNavigation, _this2.v3 ? function () {
255
- return [// @ts-ignore function children
256
- h(ButtonGroup, {
257
- "class": "k-scheduler-navigation"
258
- }, _this2.v3 ? function () {
259
- return [// @ts-ignore function children
260
- h(Button, {
261
- role: "button",
262
- attrs: _this2.v3 ? undefined : {
263
- role: "button",
264
- tabIndex: -1,
265
- title: todayText,
266
- "aria-label": todayText
267
- },
268
- tabIndex: -1,
269
- title: todayText,
270
- "aria-label": todayText,
271
- onClick: _this2.handleTodayClick,
272
- on: _this2.v3 ? undefined : {
273
- "click": _this2.handleTodayClick
274
- }
275
- }, _this2.v3 ? function () {
276
- return [todayText];
277
- } : [todayText]), // @ts-ignore function children
278
- h(Button, {
279
- role: "button",
280
- attrs: _this2.v3 ? undefined : {
281
- role: "button",
282
- tabIndex: -1,
283
- title: previousText,
284
- "aria-label": previousText
285
- },
286
- tabIndex: -1,
287
- "class": "k-button-icon",
288
- title: previousText,
289
- "aria-label": previousText,
290
- onClick: _this2.handlePrevClick,
291
- on: _this2.v3 ? undefined : {
292
- "click": _this2.handlePrevClick
293
- }
294
- }, _this2.v3 ? function () {
295
- return [h("span", {
296
- "class": "k-button-text"
297
- }, [h("span", {
298
- "class": "k-icon k-i-arrow-60-left"
299
- })])];
300
- } : [h("span", {
301
- "class": "k-button-text"
302
- }, [h("span", {
303
- "class": "k-icon k-i-arrow-60-left"
304
- })])]), // @ts-ignore function children
305
- h(Button, {
306
- role: "button",
307
- attrs: _this2.v3 ? undefined : {
308
- role: "button",
309
- tabIndex: -1,
310
- title: nextText,
311
- "aria-label": nextText
312
- },
313
- tabIndex: -1,
314
- "class": "k-button-icon",
315
- title: nextText,
316
- "aria-label": nextText,
317
- onClick: _this2.handleNextClick,
318
- on: _this2.v3 ? undefined : {
319
- "click": _this2.handleNextClick
320
- }
321
- }, _this2.v3 ? function () {
322
- return [h("span", {
323
- "class": "k-button-text"
324
- }, [h("span", {
325
- "class": "k-icon k-i-arrow-60-right"
326
- })])];
327
- } : [h("span", {
328
- "class": "k-button-text"
329
- }, [h("span", {
330
- "class": "k-icon k-i-arrow-60-right"
331
- })])])];
332
- } : [h(Button, {
333
- role: "button",
334
- attrs: _this2.v3 ? undefined : {
335
- role: "button",
336
- tabIndex: -1,
337
- title: todayText,
338
- "aria-label": todayText
339
- },
340
- tabIndex: -1,
341
- title: todayText,
342
- "aria-label": todayText,
343
- onClick: _this2.handleTodayClick,
344
- on: _this2.v3 ? undefined : {
345
- "click": _this2.handleTodayClick
346
- }
347
- }, _this2.v3 ? function () {
348
- return [todayText];
349
- } : [todayText]), h(Button, {
350
- role: "button",
351
- attrs: _this2.v3 ? undefined : {
352
- role: "button",
353
- tabIndex: -1,
354
- title: previousText,
355
- "aria-label": previousText
356
- },
357
- tabIndex: -1,
358
- "class": "k-button-icon",
359
- title: previousText,
360
- "aria-label": previousText,
361
- onClick: _this2.handlePrevClick,
362
- on: _this2.v3 ? undefined : {
363
- "click": _this2.handlePrevClick
364
- }
365
- }, _this2.v3 ? function () {
366
- return [h("span", {
367
- "class": "k-button-text"
368
- }, [h("span", {
369
- "class": "k-icon k-i-arrow-60-left"
370
- })])];
371
- } : [h("span", {
372
- "class": "k-button-text"
373
- }, [h("span", {
374
- "class": "k-icon k-i-arrow-60-left"
375
- })])]), h(Button, {
376
- role: "button",
377
- attrs: _this2.v3 ? undefined : {
378
- role: "button",
379
- tabIndex: -1,
380
- title: nextText,
381
- "aria-label": nextText
382
- },
383
- tabIndex: -1,
384
- "class": "k-button-icon",
385
- title: nextText,
386
- "aria-label": nextText,
387
- onClick: _this2.handleNextClick,
388
- on: _this2.v3 ? undefined : {
389
- "click": _this2.handleNextClick
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-right"
396
- })])];
397
- } : [h("span", {
398
- "class": "k-button-text"
399
- }, [h("span", {
400
- "class": "k-icon k-i-arrow-60-right"
401
- })])])])];
402
- } : [h(ButtonGroup, {
403
- "class": "k-scheduler-navigation"
404
- }, _this2.v3 ? function () {
405
- return [h(Button, {
406
- role: "button",
407
- attrs: _this2.v3 ? undefined : {
408
- role: "button",
409
- tabIndex: -1,
410
- title: todayText,
411
- "aria-label": todayText
412
- },
413
- tabIndex: -1,
414
- title: todayText,
415
- "aria-label": todayText,
416
- onClick: _this2.handleTodayClick,
417
- on: _this2.v3 ? undefined : {
418
- "click": _this2.handleTodayClick
419
- }
420
- }, _this2.v3 ? function () {
421
- return [todayText];
422
- } : [todayText]), h(Button, {
423
- role: "button",
424
- attrs: _this2.v3 ? undefined : {
425
- role: "button",
426
- tabIndex: -1,
427
- title: previousText,
428
- "aria-label": previousText
429
- },
430
- tabIndex: -1,
431
- "class": "k-button-icon",
432
- title: previousText,
433
- "aria-label": previousText,
434
- onClick: _this2.handlePrevClick,
435
- on: _this2.v3 ? undefined : {
436
- "click": _this2.handlePrevClick
437
- }
438
- }, _this2.v3 ? function () {
439
- return [h("span", {
440
- "class": "k-button-text"
441
- }, [h("span", {
442
- "class": "k-icon k-i-arrow-60-left"
443
- })])];
444
- } : [h("span", {
445
- "class": "k-button-text"
446
- }, [h("span", {
447
- "class": "k-icon k-i-arrow-60-left"
448
- })])]), h(Button, {
449
- role: "button",
450
- attrs: _this2.v3 ? undefined : {
451
- role: "button",
452
- tabIndex: -1,
453
- title: nextText,
454
- "aria-label": nextText
455
- },
456
- tabIndex: -1,
457
- "class": "k-button-icon",
458
- title: nextText,
459
- "aria-label": nextText,
460
- onClick: _this2.handleNextClick,
461
- on: _this2.v3 ? undefined : {
462
- "click": _this2.handleNextClick
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-right"
469
- })])];
470
- } : [h("span", {
471
- "class": "k-button-text"
472
- }, [h("span", {
473
- "class": "k-icon k-i-arrow-60-right"
474
- })])])];
475
- } : [h(Button, {
476
- role: "button",
477
- attrs: _this2.v3 ? undefined : {
478
- role: "button",
479
- tabIndex: -1,
480
- title: todayText,
481
- "aria-label": todayText
482
- },
483
- tabIndex: -1,
484
- title: todayText,
485
- "aria-label": todayText,
486
- onClick: _this2.handleTodayClick,
232
+ return [h(SchedulerNavigation, {
233
+ onPrevclick: _this2.handlePrevClick,
487
234
  on: _this2.v3 ? undefined : {
488
- "click": _this2.handleTodayClick
489
- }
490
- }, _this2.v3 ? function () {
491
- return [todayText];
492
- } : [todayText]), h(Button, {
493
- role: "button",
494
- attrs: _this2.v3 ? undefined : {
495
- role: "button",
496
- tabIndex: -1,
497
- title: previousText,
498
- "aria-label": previousText
235
+ "prevclick": _this2.handlePrevClick,
236
+ "nextclick": _this2.handleNextClick,
237
+ "todayclick": _this2.handleTodayClick
499
238
  },
500
- tabIndex: -1,
501
- "class": "k-button-icon",
502
- title: previousText,
503
- "aria-label": previousText,
504
- onClick: _this2.handlePrevClick,
505
- on: _this2.v3 ? undefined : {
506
- "click": _this2.handlePrevClick
507
- }
508
- }, _this2.v3 ? function () {
509
- return [h("span", {
510
- "class": "k-button-text"
511
- }, [h("span", {
512
- "class": "k-icon k-i-arrow-60-left"
513
- })])];
514
- } : [h("span", {
515
- "class": "k-button-text"
516
- }, [h("span", {
517
- "class": "k-icon k-i-arrow-60-left"
518
- })])]), h(Button, {
519
- role: "button",
520
- attrs: _this2.v3 ? undefined : {
521
- role: "button",
522
- tabIndex: -1,
523
- title: nextText,
524
- "aria-label": nextText
525
- },
526
- tabIndex: -1,
527
- "class": "k-button-icon",
528
- title: nextText,
529
- "aria-label": nextText,
530
- onClick: _this2.handleNextClick,
531
- on: _this2.v3 ? undefined : {
532
- "click": _this2.handleNextClick
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-right"
539
- })])];
540
- } : [h("span", {
541
- "class": "k-button-text"
542
- }, [h("span", {
543
- "class": "k-icon k-i-arrow-60-right"
544
- })])])])]), h(NavigationDatePicker, {
239
+ onNextclick: _this2.handleNextClick,
240
+ onTodayclick: _this2.handleTodayClick
241
+ }), h(NavigationDatePicker, {
545
242
  value: _this2.ks.currentDate,
546
243
  attrs: _this2.v3 ? undefined : {
547
244
  value: _this2.ks.currentDate
@@ -550,297 +247,17 @@ var SchedulerVue2 = {
550
247
  on: _this2.v3 ? undefined : {
551
248
  "change": _this2.handleDatePickerChange
552
249
  }
553
- }), h(ToolbarSpacer), // @ts-ignore function children
554
- h(ViewSelector, _this2.v3 ? function () {
555
- return [h(ViewSelectorList)];
556
- } : [h(ViewSelectorList)])];
557
- } : [h(SchedulerNavigation, _this2.v3 ? function () {
558
- return [h(ButtonGroup, {
559
- "class": "k-scheduler-navigation"
560
- }, _this2.v3 ? function () {
561
- return [h(Button, {
562
- role: "button",
563
- attrs: _this2.v3 ? undefined : {
564
- role: "button",
565
- tabIndex: -1,
566
- title: todayText,
567
- "aria-label": todayText
568
- },
569
- tabIndex: -1,
570
- title: todayText,
571
- "aria-label": todayText,
572
- onClick: _this2.handleTodayClick,
573
- on: _this2.v3 ? undefined : {
574
- "click": _this2.handleTodayClick
575
- }
576
- }, _this2.v3 ? function () {
577
- return [todayText];
578
- } : [todayText]), h(Button, {
579
- role: "button",
580
- attrs: _this2.v3 ? undefined : {
581
- role: "button",
582
- tabIndex: -1,
583
- title: previousText,
584
- "aria-label": previousText
585
- },
586
- tabIndex: -1,
587
- "class": "k-button-icon",
588
- title: previousText,
589
- "aria-label": previousText,
590
- onClick: _this2.handlePrevClick,
591
- on: _this2.v3 ? undefined : {
592
- "click": _this2.handlePrevClick
593
- }
594
- }, _this2.v3 ? function () {
595
- return [h("span", {
596
- "class": "k-button-text"
597
- }, [h("span", {
598
- "class": "k-icon k-i-arrow-60-left"
599
- })])];
600
- } : [h("span", {
601
- "class": "k-button-text"
602
- }, [h("span", {
603
- "class": "k-icon k-i-arrow-60-left"
604
- })])]), h(Button, {
605
- role: "button",
606
- attrs: _this2.v3 ? undefined : {
607
- role: "button",
608
- tabIndex: -1,
609
- title: nextText,
610
- "aria-label": nextText
611
- },
612
- tabIndex: -1,
613
- "class": "k-button-icon",
614
- title: nextText,
615
- "aria-label": nextText,
616
- onClick: _this2.handleNextClick,
617
- on: _this2.v3 ? undefined : {
618
- "click": _this2.handleNextClick
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-right"
625
- })])];
626
- } : [h("span", {
627
- "class": "k-button-text"
628
- }, [h("span", {
629
- "class": "k-icon k-i-arrow-60-right"
630
- })])])];
631
- } : [h(Button, {
632
- role: "button",
633
- attrs: _this2.v3 ? undefined : {
634
- role: "button",
635
- tabIndex: -1,
636
- title: todayText,
637
- "aria-label": todayText
638
- },
639
- tabIndex: -1,
640
- title: todayText,
641
- "aria-label": todayText,
642
- onClick: _this2.handleTodayClick,
643
- on: _this2.v3 ? undefined : {
644
- "click": _this2.handleTodayClick
645
- }
646
- }, _this2.v3 ? function () {
647
- return [todayText];
648
- } : [todayText]), h(Button, {
649
- role: "button",
650
- attrs: _this2.v3 ? undefined : {
651
- role: "button",
652
- tabIndex: -1,
653
- title: previousText,
654
- "aria-label": previousText
655
- },
656
- tabIndex: -1,
657
- "class": "k-button-icon",
658
- title: previousText,
659
- "aria-label": previousText,
660
- onClick: _this2.handlePrevClick,
661
- on: _this2.v3 ? undefined : {
662
- "click": _this2.handlePrevClick
663
- }
664
- }, _this2.v3 ? function () {
665
- return [h("span", {
666
- "class": "k-button-text"
667
- }, [h("span", {
668
- "class": "k-icon k-i-arrow-60-left"
669
- })])];
670
- } : [h("span", {
671
- "class": "k-button-text"
672
- }, [h("span", {
673
- "class": "k-icon k-i-arrow-60-left"
674
- })])]), h(Button, {
675
- role: "button",
676
- attrs: _this2.v3 ? undefined : {
677
- role: "button",
678
- tabIndex: -1,
679
- title: nextText,
680
- "aria-label": nextText
681
- },
682
- tabIndex: -1,
683
- "class": "k-button-icon",
684
- title: nextText,
685
- "aria-label": nextText,
686
- onClick: _this2.handleNextClick,
687
- on: _this2.v3 ? undefined : {
688
- "click": _this2.handleNextClick
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-right"
695
- })])];
696
- } : [h("span", {
697
- "class": "k-button-text"
698
- }, [h("span", {
699
- "class": "k-icon k-i-arrow-60-right"
700
- })])])])];
701
- } : [h(ButtonGroup, {
702
- "class": "k-scheduler-navigation"
703
- }, _this2.v3 ? function () {
704
- return [h(Button, {
705
- role: "button",
706
- attrs: _this2.v3 ? undefined : {
707
- role: "button",
708
- tabIndex: -1,
709
- title: todayText,
710
- "aria-label": todayText
711
- },
712
- tabIndex: -1,
713
- title: todayText,
714
- "aria-label": todayText,
715
- onClick: _this2.handleTodayClick,
716
- on: _this2.v3 ? undefined : {
717
- "click": _this2.handleTodayClick
718
- }
719
- }, _this2.v3 ? function () {
720
- return [todayText];
721
- } : [todayText]), h(Button, {
722
- role: "button",
723
- attrs: _this2.v3 ? undefined : {
724
- role: "button",
725
- tabIndex: -1,
726
- title: previousText,
727
- "aria-label": previousText
728
- },
729
- tabIndex: -1,
730
- "class": "k-button-icon",
731
- title: previousText,
732
- "aria-label": previousText,
733
- onClick: _this2.handlePrevClick,
734
- on: _this2.v3 ? undefined : {
735
- "click": _this2.handlePrevClick
736
- }
737
- }, _this2.v3 ? function () {
738
- return [h("span", {
739
- "class": "k-button-text"
740
- }, [h("span", {
741
- "class": "k-icon k-i-arrow-60-left"
742
- })])];
743
- } : [h("span", {
744
- "class": "k-button-text"
745
- }, [h("span", {
746
- "class": "k-icon k-i-arrow-60-left"
747
- })])]), h(Button, {
748
- role: "button",
749
- attrs: _this2.v3 ? undefined : {
750
- role: "button",
751
- tabIndex: -1,
752
- title: nextText,
753
- "aria-label": nextText
754
- },
755
- tabIndex: -1,
756
- "class": "k-button-icon",
757
- title: nextText,
758
- "aria-label": nextText,
759
- onClick: _this2.handleNextClick,
760
- on: _this2.v3 ? undefined : {
761
- "click": _this2.handleNextClick
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-right"
768
- })])];
769
- } : [h("span", {
770
- "class": "k-button-text"
771
- }, [h("span", {
772
- "class": "k-icon k-i-arrow-60-right"
773
- })])])];
774
- } : [h(Button, {
775
- role: "button",
776
- attrs: _this2.v3 ? undefined : {
777
- role: "button",
778
- tabIndex: -1,
779
- title: todayText,
780
- "aria-label": todayText
781
- },
782
- tabIndex: -1,
783
- title: todayText,
784
- "aria-label": todayText,
785
- onClick: _this2.handleTodayClick,
250
+ }), h(ToolbarSpacer), h(ViewSelector)];
251
+ } : [h(SchedulerNavigation, {
252
+ onPrevclick: _this2.handlePrevClick,
786
253
  on: _this2.v3 ? undefined : {
787
- "click": _this2.handleTodayClick
788
- }
789
- }, _this2.v3 ? function () {
790
- return [todayText];
791
- } : [todayText]), h(Button, {
792
- role: "button",
793
- attrs: _this2.v3 ? undefined : {
794
- role: "button",
795
- tabIndex: -1,
796
- title: previousText,
797
- "aria-label": previousText
798
- },
799
- tabIndex: -1,
800
- "class": "k-button-icon",
801
- title: previousText,
802
- "aria-label": previousText,
803
- onClick: _this2.handlePrevClick,
804
- on: _this2.v3 ? undefined : {
805
- "click": _this2.handlePrevClick
806
- }
807
- }, _this2.v3 ? function () {
808
- return [h("span", {
809
- "class": "k-button-text"
810
- }, [h("span", {
811
- "class": "k-icon k-i-arrow-60-left"
812
- })])];
813
- } : [h("span", {
814
- "class": "k-button-text"
815
- }, [h("span", {
816
- "class": "k-icon k-i-arrow-60-left"
817
- })])]), h(Button, {
818
- role: "button",
819
- attrs: _this2.v3 ? undefined : {
820
- role: "button",
821
- tabIndex: -1,
822
- title: nextText,
823
- "aria-label": nextText
254
+ "prevclick": _this2.handlePrevClick,
255
+ "nextclick": _this2.handleNextClick,
256
+ "todayclick": _this2.handleTodayClick
824
257
  },
825
- tabIndex: -1,
826
- "class": "k-button-icon",
827
- title: nextText,
828
- "aria-label": nextText,
829
- onClick: _this2.handleNextClick,
830
- on: _this2.v3 ? undefined : {
831
- "click": _this2.handleNextClick
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-right"
838
- })])];
839
- } : [h("span", {
840
- "class": "k-button-text"
841
- }, [h("span", {
842
- "class": "k-icon k-i-arrow-60-right"
843
- })])])])]), h(NavigationDatePicker, {
258
+ onNextclick: _this2.handleNextClick,
259
+ onTodayclick: _this2.handleTodayClick
260
+ }), h(NavigationDatePicker, {
844
261
  value: _this2.ks.currentDate,
845
262
  attrs: _this2.v3 ? undefined : {
846
263
  value: _this2.ks.currentDate
@@ -849,85 +266,90 @@ var SchedulerVue2 = {
849
266
  on: _this2.v3 ? undefined : {
850
267
  "change": _this2.handleDatePickerChange
851
268
  }
852
- }), h(ToolbarSpacer), h(ViewSelector, _this2.v3 ? function () {
853
- return [h(ViewSelectorList)];
854
- } : [h(ViewSelectorList)])]), view && h(viewComponent, __assign({
855
- key: this.ks.view.name,
856
- onDataaction: this.handleDataAction,
857
- on: this.v3 ? undefined : {
858
- 'dataaction': this.handleDataAction
269
+ }), h(ToolbarSpacer), h(ViewSelector)]);
270
+ headerRender = getTemplate.call(this, {
271
+ h: h,
272
+ template: header,
273
+ defaultRendering: headerRenderDefaultRendering,
274
+ additionalProps: {
275
+ currentDate: this.ks.currentDate
859
276
  },
860
- props: this.v3 ? undefined : viewProps
861
- }, viewProps)), // @ts-ignore function children
277
+ additionalListeners: {
278
+ prevclick: this.handlePrevClick,
279
+ nextclick: this.handleNextClick,
280
+ todayclick: this.handleTodayClick,
281
+ datepickerchange: this.handleDatePickerChange
282
+ }
283
+ });
284
+ var footerRender;
285
+ var footerRenderDefaultRendering = // @ts-ignore function children
862
286
  h(SchedulerFooter, this.v3 ? function () {
863
- return [slotDuration && slotDuration < 24 * 60 && // @ts-ignore function children
864
- h(BusinessHours, _this2.v3 ? function () {
865
- return [// @ts-ignore function children
866
- h(Button, {
867
- tabIndex: -1,
868
- attrs: _this2.v3 ? undefined : {
869
- tabIndex: -1
870
- },
871
- onClick: _this2.handleShowWorkHoursClick,
872
- on: _this2.v3 ? undefined : {
873
- "click": _this2.handleShowWorkHoursClick
874
- }
875
- }, _this2.v3 ? function () {
876
- return [h("span", {
877
- "class": "k-icon k-i-clock"
878
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])];
879
- } : [h("span", {
880
- "class": "k-icon k-i-clock"
881
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])])];
882
- } : [h(Button, {
883
- tabIndex: -1,
884
- attrs: _this2.v3 ? undefined : {
885
- tabIndex: -1
886
- },
887
- onClick: _this2.handleShowWorkHoursClick,
888
- on: _this2.v3 ? undefined : {
889
- "click": _this2.handleShowWorkHoursClick
890
- }
891
- }, _this2.v3 ? function () {
892
- return [h("span", {
893
- "class": "k-icon k-i-clock"
894
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])];
895
- } : [h("span", {
896
- "class": "k-icon k-i-clock"
897
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])])])];
898
- } : [slotDuration && slotDuration < 24 * 60 && h(BusinessHours, _this2.v3 ? function () {
899
- return [h(Button, {
900
- tabIndex: -1,
287
+ return [// @ts-ignore function children
288
+ h(BusinessHours, {
289
+ slotDuration: slotDuration,
901
290
  attrs: _this2.v3 ? undefined : {
902
- tabIndex: -1
291
+ slotDuration: slotDuration
903
292
  },
904
293
  onClick: _this2.handleShowWorkHoursClick,
905
294
  on: _this2.v3 ? undefined : {
906
295
  "click": _this2.handleShowWorkHoursClick
907
296
  }
908
- }, _this2.v3 ? function () {
909
- return [h("span", {
910
- "class": "k-icon k-i-clock"
911
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])];
912
- } : [h("span", {
913
- "class": "k-icon k-i-clock"
914
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])])];
915
- } : [h(Button, {
916
- tabIndex: -1,
297
+ })];
298
+ } : [h(BusinessHours, {
299
+ slotDuration: slotDuration,
917
300
  attrs: _this2.v3 ? undefined : {
918
- tabIndex: -1
301
+ slotDuration: slotDuration
919
302
  },
920
303
  onClick: _this2.handleShowWorkHoursClick,
921
304
  on: _this2.v3 ? undefined : {
922
305
  "click": _this2.handleShowWorkHoursClick
923
306
  }
924
- }, _this2.v3 ? function () {
925
- return [h("span", {
926
- "class": "k-icon k-i-clock"
927
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])];
928
- } : [h("span", {
929
- "class": "k-icon k-i-clock"
930
- }), "\xA0", _this2.localization.toLanguageString(_this2.ks.showWorkHours ? showFullDay : showWorkDay, messages[_this2.ks.showWorkHours ? showFullDay : showWorkDay])])])])]);
307
+ })]);
308
+ footerRender = getTemplate.call(this, {
309
+ h: h,
310
+ template: footer,
311
+ defaultRendering: footerRenderDefaultRendering,
312
+ additionalProps: {
313
+ slotDuration: slotDuration
314
+ },
315
+ additionalListeners: {
316
+ showworkhoursclick: this.handleShowWorkHoursClick
317
+ }
318
+ });
319
+ return h("div", {
320
+ id: this.$props.id,
321
+ attrs: this.v3 ? undefined : {
322
+ id: this.$props.id,
323
+ tabIndex: this.$props.tabIndex // Aria
324
+ // dir={dir}
325
+ ,
326
+ role: this.$props.role,
327
+ "aria-label": this.$props.ariaLabel,
328
+ "aria-labelledby": this.$props.ariaLabelledby // Handlers
329
+
330
+ },
331
+ style: {
332
+ height: this.$props.height + 'px'
333
+ },
334
+ "class": this.wrapperClassName,
335
+ tabIndex: this.$props.tabIndex,
336
+ role: this.$props.role,
337
+ "aria-label": this.$props.ariaLabel,
338
+ "aria-labelledby": this.$props.ariaLabelledby,
339
+ onFocusin: this.handleFocus,
340
+ on: this.v3 ? undefined : {
341
+ "focusin": this.handleFocus,
342
+ "focusout": this.handleBlur
343
+ },
344
+ onFocusout: this.handleBlur
345
+ }, [headerRender, view && h(viewComponent, __assign({
346
+ key: this.ks.view.name,
347
+ onDataaction: this.handleDataAction,
348
+ on: this.v3 ? undefined : {
349
+ 'dataaction': this.handleDataAction
350
+ },
351
+ props: this.v3 ? undefined : viewProps
352
+ }, viewProps)), footerRender]);
931
353
  },
932
354
  methods: {
933
355
  getViewComponentByName: function getViewComponentByName(viewName) {