@progress/kendo-vue-scheduler 3.0.9 → 3.1.1-dev.202203151205

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