@progress/kendo-vue-scheduler 3.0.9-dev.202202281506 → 3.0.9-dev.202203011321

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.
@@ -41,19 +41,7 @@ var constants_1 = require("../../constants");
41
41
 
42
42
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
43
43
 
44
- var SchedulerEditItem_1 = require("../../items/SchedulerEditItem"); // import {
45
- // useSchedulerDataContext,
46
- // useSchedulerPropsContext,
47
- // useSchedulerGroupsContext,
48
- // useSchedulerFieldsContext,
49
- // useSchedulerDateRangeContext,
50
- // useSchedulerOrientationContext
51
- // } from '../../context/SchedulerContext';
52
-
53
-
54
- var SchedulerResourceIteratorContext_1 = require("../../context/SchedulerResourceIteratorContext");
55
-
56
- var CurrentTimeMarket_1 = require("../../components/CurrentTimeMarket");
44
+ var SchedulerEditItem_1 = require("../../items/SchedulerEditItem");
57
45
 
58
46
  var DateHeaderCell_1 = require("../../components/DateHeaderCell");
59
47
 
@@ -77,6 +65,10 @@ var MultiDayTimelineViewVue2 = {
77
65
  type: Boolean,
78
66
  default: true
79
67
  },
68
+ showWorkHours: {
69
+ type: Boolean,
70
+ default: true
71
+ },
80
72
  dateRange: {
81
73
  type: [Function, Object],
82
74
  default: function _default() {
@@ -198,15 +190,43 @@ var MultiDayTimelineViewVue2 = {
198
190
  ranges: this.ranges
199
191
  }).filter(function (item) {
200
192
  return _this.viewStart.getTime() === _this.viewEnd.getTime() || utils_1.isInTimeRange(item.zonedStart, _this.viewStart, _this.viewEnd) || utils_1.isInTimeRange(item.zonedEnd, _this.viewStart, _this.viewEnd) || utils_1.isInTimeRange(new Date(item.zonedEnd.getTime() - (item.zonedEnd.getTime() - item.zonedStart.getTime()) / 2), _this.viewStart, _this.viewEnd);
201
- });
202
- utils_1.mapItemsToSlots(items, this.timelineSlots, false);
203
- utils_1.mapSlotsToItems(items, this.timelineSlots, false);
193
+ }); // mapItemsToSlots(items, this.timelineSlots, false);
194
+ // mapSlotsToItems(items, this.timelineSlots, false);
195
+
204
196
  return items;
205
197
  }
206
198
  },
207
199
  mounted: function mounted() {
208
200
  this.timeRef = null;
209
201
  this.bodyRef = null;
202
+ hooks_1.useCellSync({
203
+ element: this.$el,
204
+ selector: '.k-resource-cell',
205
+ attribute: 'data-depth-index',
206
+ explicitDepth: true
207
+ });
208
+ hooks_1.useRowSync({
209
+ element: this.$el,
210
+ selector: '.k-resource-row',
211
+ horizontalAttribute: 'data-depth-index',
212
+ verticalAttribute: 'data-resource-index',
213
+ applyTo: '.k-resource-cell'
214
+ });
215
+ },
216
+ updated: function updated() {
217
+ hooks_1.useCellSync({
218
+ element: this.$el,
219
+ selector: '.k-resource-cell',
220
+ attribute: 'data-depth-index',
221
+ explicitDepth: true
222
+ });
223
+ hooks_1.useRowSync({
224
+ element: this.$el,
225
+ selector: '.k-resource-row',
226
+ horizontalAttribute: 'data-depth-index',
227
+ verticalAttribute: 'data-resource-index',
228
+ applyTo: '.k-resource-cell'
229
+ });
210
230
  },
211
231
  // @ts-ignore
212
232
  setup: !gh ? undefined : function () {
@@ -217,7 +237,7 @@ var MultiDayTimelineViewVue2 = {
217
237
  },
218
238
  // @ts-ignore
219
239
  render: function render(createElement) {
220
- var _this = this;
240
+ var _this2 = this;
221
241
 
222
242
  var h = gh || createElement; // const {
223
243
  // group,
@@ -231,7 +251,11 @@ var MultiDayTimelineViewVue2 = {
231
251
  var slotDuration = this.$props.slotDuration;
232
252
  var workDayStart = intl.parseDate(this.$props.workDayStart);
233
253
  var workDayEnd = intl.parseDate(this.$props.workDayEnd);
234
- var width = (this.ks.orientation === 'horizontal' ? this.timelineSlots.length : this.timelineSlots.length / this.groups.length) * (this.$props.columnWidth + constants_1.BORDER_WIDTH);
254
+ var items = this.items;
255
+ var timelineSlots = this.timelineSlots;
256
+ utils_1.mapItemsToSlots(items, timelineSlots, true);
257
+ utils_1.mapSlotsToItems(items, timelineSlots, true);
258
+ var width = (this.ks.orientation === 'horizontal' ? timelineSlots.length : timelineSlots.length / this.ks.groups.length) * (this.$props.columnWidth + constants_1.BORDER_WIDTH);
235
259
  var head = [h("div", {
236
260
  "class": "k-scheduler-row"
237
261
  }, [this.ranges.map(function (range, rangeIndex) {
@@ -254,7 +278,7 @@ var MultiDayTimelineViewVue2 = {
254
278
  "class": "k-scheduler-row",
255
279
  ref: 'timeRef'
256
280
  }, [this.ranges.map(function (_, rangeIndex) {
257
- return this.timelineSlots.filter(function (s) {
281
+ return timelineSlots.filter(function (s) {
258
282
  return s.group.index === FIRST_INDEX && s.range.index === rangeIndex;
259
283
  }).map(function (slot) {
260
284
  return slot.zonedStart.getMinutes() % slotDuration === 0 ? h(TimeHeaderCell_1.TimeHeaderCell, {
@@ -273,139 +297,342 @@ var MultiDayTimelineViewVue2 = {
273
297
  }) : null;
274
298
  }, this);
275
299
  }, this)])];
276
- hooks_1.useCellSync({
277
- element: this.$el,
278
- selector: '.k-resource-cell',
279
- attribute: 'data-depth-index',
280
- explicitDepth: true
281
- });
282
- hooks_1.useRowSync({
283
- element: this.$el,
284
- selector: '.k-resource-row',
285
- horizontalAttribute: 'data-depth-index',
286
- verticalAttribute: 'data-resource-index',
287
- applyTo: '.k-resource-cell'
288
- });
289
- return h(BaseView_1.BaseView, {
290
- id: this.$props.id,
291
- attrs: this.v3 ? undefined : {
300
+ return (// @ts-ignore function children
301
+ h(BaseView_1.BaseView, {
292
302
  id: this.$props.id,
303
+ attrs: this.v3 ? undefined : {
304
+ id: this.$props.id,
305
+ props: this.$props,
306
+ baseSlots: timelineSlots,
307
+ ranges: this.ranges
308
+ },
309
+ "class": 'k-scheduler-timeline-view',
293
310
  props: this.$props,
294
- baseSlots: this.timelineSlots,
311
+ baseSlots: timelineSlots,
295
312
  ranges: this.ranges
296
- },
297
- "class": 'k-scheduler-timeline-view',
298
- props: this.$props,
299
- baseSlots: this.timelineSlots,
300
- ranges: this.ranges
301
- }, [h("div", {
302
- "class": 'k-scheduler-head',
303
- style: {
304
- width: width + 'px'
305
- }
306
- }, [this.ks.orientation === 'horizontal' ? h(HorizontalResourceIterator_1.HorizontalResourceIterator, {
307
- nested: true,
308
- attrs: this.v3 ? undefined : {
313
+ }, this.v3 ? function () {
314
+ return [h("div", {
315
+ "class": 'k-scheduler-head',
316
+ style: {
317
+ width: width + 'px'
318
+ }
319
+ }, [_this2.ks.orientation === 'horizontal' ? // @ts-ignore function children
320
+ h(HorizontalResourceIterator_1.HorizontalResourceIterator, {
321
+ nested: true,
322
+ attrs: _this2.v3 ? undefined : {
323
+ nested: true,
324
+ group: _this2.ks.props.group,
325
+ resources: _this2.ks.props.resources,
326
+ rowContent: TimelineViewRowContent_1.TimelineViewRowContent
327
+ },
328
+ group: _this2.ks.props.group,
329
+ resources: _this2.ks.props.resources,
330
+ rowContent: TimelineViewRowContent_1.TimelineViewRowContent
331
+ }, _this2.v3 ? function () {
332
+ return [head];
333
+ } : [head]) : // @ts-ignore function children
334
+ h(VerticalResourceIterator_1.VerticalResourceIterator, {
335
+ wrapGroup: true,
336
+ attrs: _this2.v3 ? undefined : {
337
+ wrapGroup: true,
338
+ group: _this2.ks.props.group,
339
+ resources: _this2.ks.props.resources
340
+ },
341
+ group: _this2.ks.props.group,
342
+ resources: _this2.ks.props.resources
343
+ }, _this2.v3 ? function () {
344
+ return [head];
345
+ } : [head])]), h("div", {
346
+ "class": "k-scheduler-body",
347
+ style: {
348
+ width: width + 'px'
349
+ },
350
+ ref: 'bodyRef'
351
+ }, [_this2.ks.orientation === 'horizontal' ? // @ts-ignore function children
352
+ h(HorizontalResourceIterator_1.HorizontalResourceIterator, {
353
+ group: _this2.ks.props.group,
354
+ attrs: _this2.v3 ? undefined : {
355
+ group: _this2.ks.props.group,
356
+ resources: _this2.ks.props.resources,
357
+ rowContent: TimelineViewAllEventsRowContent_1.TimelineViewAllEventsRowContent
358
+ },
359
+ resources: _this2.ks.props.resources,
360
+ rowContent: TimelineViewAllEventsRowContent_1.TimelineViewAllEventsRowContent
361
+ }, _this2.v3 ? function () {
362
+ return [// @ts-ignore function children
363
+ h(TimelineViewBody_1.TimelineViewBody, {
364
+ ranges: _this2.ranges,
365
+ attrs: _this2.v3 ? undefined : {
366
+ ranges: _this2.ranges,
367
+ workDayStart: workDayStart,
368
+ workDayEnd: workDayEnd,
369
+ timelineSlots: timelineSlots
370
+ },
371
+ workDayStart: workDayStart,
372
+ workDayEnd: workDayEnd,
373
+ timelineSlots: timelineSlots,
374
+ onDataaction: _this2.handleDataAction,
375
+ on: _this2.v3 ? undefined : {
376
+ "dataaction": _this2.handleDataAction
377
+ }
378
+ })];
379
+ } : [h(TimelineViewBody_1.TimelineViewBody, {
380
+ ranges: _this2.ranges,
381
+ attrs: _this2.v3 ? undefined : {
382
+ ranges: _this2.ranges,
383
+ workDayStart: workDayStart,
384
+ workDayEnd: workDayEnd,
385
+ timelineSlots: timelineSlots
386
+ },
387
+ workDayStart: workDayStart,
388
+ workDayEnd: workDayEnd,
389
+ timelineSlots: timelineSlots,
390
+ onDataaction: _this2.handleDataAction,
391
+ on: _this2.v3 ? undefined : {
392
+ "dataaction": _this2.handleDataAction
393
+ }
394
+ })]) : h(VerticalResourceIterator_1.VerticalResourceIterator, {
395
+ nested: true,
396
+ attrs: _this2.v3 ? undefined : {
397
+ nested: true,
398
+ wrapGroup: true,
399
+ group: _this2.ks.props.group,
400
+ resources: _this2.ks.props.resources
401
+ },
402
+ wrapGroup: true,
403
+ group: _this2.ks.props.group,
404
+ resources: _this2.ks.props.resources
405
+ }, [// @ts-ignore function children
406
+ h(TimelineViewBody_1.TimelineViewBody, {
407
+ range: _this2.range,
408
+ attrs: _this2.v3 ? undefined : {
409
+ range: _this2.range,
410
+ workDayStart: workDayStart,
411
+ workDayEnd: workDayEnd,
412
+ timelineSlots: timelineSlots
413
+ },
414
+ workDayStart: workDayStart,
415
+ workDayEnd: workDayEnd,
416
+ timelineSlots: timelineSlots,
417
+ onDataaction: _this2.handleDataAction,
418
+ on: _this2.v3 ? undefined : {
419
+ "dataaction": _this2.handleDataAction
420
+ }
421
+ })]), items.sort(utils_1.orderSort).map(function (item) {
422
+ return h(SchedulerEditItem_1.SchedulerEditItem, {
423
+ key: item.isRecurring ? item.uid + ":" + item.group.index + ":" + item.range.index + ":" + item.originalStart : item.uid + ":" + item.group.index + ":" + item.range.index,
424
+ uid: item.uid,
425
+ attrs: this.v3 ? undefined : {
426
+ uid: item.uid,
427
+ start: item.start,
428
+ end: item.end,
429
+ originalStart: item.originalStart,
430
+ startTimezone: item.startTimezone,
431
+ endTimezone: item.endTimezone,
432
+ isAllDay: item.isAllDay,
433
+ title: item.title,
434
+ description: item.description,
435
+ occurrenceId: item.occurrenceId,
436
+ recurrenceExceptions: item.recurrenceExceptions,
437
+ recurrenceRule: item.recurrenceRule,
438
+ recurrenceId: item.recurrenceId,
439
+ dataItem: item.dataItem,
440
+ itemRef: item.itemRef,
441
+ head: item.head,
442
+ tail: item.tail,
443
+ order: item.order,
444
+ zonedStart: item.zonedStart,
445
+ zonedEnd: item.zonedEnd,
446
+ slots: item.slots,
447
+ group: item.group,
448
+ range: item.range,
449
+ isException: item.isException,
450
+ isRecurring: item.isRecurring,
451
+ format: 't',
452
+ form: this.$props.form,
453
+ item: this.$props.item,
454
+ viewItem: this.$props.viewItem,
455
+ editable: this.$props.editable,
456
+ ignoreIsAllDay: true,
457
+ vertical: false
458
+ },
459
+ start: item.start,
460
+ end: item.end,
461
+ originalStart: item.originalStart,
462
+ startTimezone: item.startTimezone,
463
+ endTimezone: item.endTimezone,
464
+ isAllDay: item.isAllDay,
465
+ title: item.title,
466
+ description: item.description,
467
+ occurrenceId: item.occurrenceId,
468
+ recurrenceExceptions: item.recurrenceExceptions,
469
+ recurrenceRule: item.recurrenceRule,
470
+ recurrenceId: item.recurrenceId,
471
+ dataItem: item.dataItem,
472
+ itemRef: item.itemRef,
473
+ head: item.head,
474
+ tail: item.tail,
475
+ order: item.order,
476
+ zonedStart: item.zonedStart,
477
+ zonedEnd: item.zonedEnd,
478
+ slots: item.slots,
479
+ group: item.group,
480
+ range: item.range,
481
+ isException: item.isException,
482
+ isRecurring: item.isRecurring,
483
+ format: 't',
484
+ form: this.$props.form,
485
+ onDataaction: this.handleDataAction,
486
+ on: this.v3 ? undefined : {
487
+ "dataaction": this.handleDataAction
488
+ },
489
+ item: this.$props.item,
490
+ viewItem: this.$props.viewItem,
491
+ editable: this.$props.editable,
492
+ ignoreIsAllDay: true,
493
+ vertical: false
494
+ });
495
+ }, _this2)])];
496
+ } : [h("div", {
497
+ "class": 'k-scheduler-head',
498
+ style: {
499
+ width: width + 'px'
500
+ }
501
+ }, [_this2.ks.orientation === 'horizontal' ? h(HorizontalResourceIterator_1.HorizontalResourceIterator, {
309
502
  nested: true,
310
- group: this.ks.props.group,
311
- resources: this.ks.props.resources,
503
+ attrs: _this2.v3 ? undefined : {
504
+ nested: true,
505
+ group: _this2.ks.props.group,
506
+ resources: _this2.ks.props.resources,
507
+ rowContent: TimelineViewRowContent_1.TimelineViewRowContent
508
+ },
509
+ group: _this2.ks.props.group,
510
+ resources: _this2.ks.props.resources,
312
511
  rowContent: TimelineViewRowContent_1.TimelineViewRowContent
313
- },
314
- group: this.ks.props.group,
315
- resources: this.ks.props.resources,
316
- rowContent: TimelineViewRowContent_1.TimelineViewRowContent
317
- }, [head]) : h(VerticalResourceIterator_1.VerticalResourceIterator, {
318
- wrapGroup: true,
319
- attrs: this.v3 ? undefined : {
512
+ }, _this2.v3 ? function () {
513
+ return [head];
514
+ } : [head]) : h(VerticalResourceIterator_1.VerticalResourceIterator, {
320
515
  wrapGroup: true,
321
- group: this.ks.props.group,
322
- resources: this.ks.props.resources
323
- },
324
- group: this.ks.props.group,
325
- resources: this.ks.props.resources
326
- }, [head])]), h("div", {
327
- "class": "k-scheduler-body",
328
- style: {
329
- width: width + 'px'
330
- },
331
- ref: 'bodyRef'
332
- }, [this.ks.orientation === 'horizontal' ? h(HorizontalResourceIterator_1.HorizontalResourceIterator, {
333
- group: this.ks.props.group,
334
- attrs: this.v3 ? undefined : {
335
- group: this.ks.props.group,
336
- resources: this.ks.props.resources,
516
+ attrs: _this2.v3 ? undefined : {
517
+ wrapGroup: true,
518
+ group: _this2.ks.props.group,
519
+ resources: _this2.ks.props.resources
520
+ },
521
+ group: _this2.ks.props.group,
522
+ resources: _this2.ks.props.resources
523
+ }, _this2.v3 ? function () {
524
+ return [head];
525
+ } : [head])]), h("div", {
526
+ "class": "k-scheduler-body",
527
+ style: {
528
+ width: width + 'px'
529
+ },
530
+ ref: 'bodyRef'
531
+ }, [_this2.ks.orientation === 'horizontal' ? h(HorizontalResourceIterator_1.HorizontalResourceIterator, {
532
+ group: _this2.ks.props.group,
533
+ attrs: _this2.v3 ? undefined : {
534
+ group: _this2.ks.props.group,
535
+ resources: _this2.ks.props.resources,
536
+ rowContent: TimelineViewAllEventsRowContent_1.TimelineViewAllEventsRowContent
537
+ },
538
+ resources: _this2.ks.props.resources,
337
539
  rowContent: TimelineViewAllEventsRowContent_1.TimelineViewAllEventsRowContent
338
- },
339
- resources: this.ks.props.resources,
340
- rowContent: TimelineViewAllEventsRowContent_1.TimelineViewAllEventsRowContent
341
- }, [// @ts-ignore function children
342
- h(TimelineViewBody_1.TimelineViewBody, {
343
- ranges: this.ranges,
344
- attrs: this.v3 ? undefined : {
345
- ranges: this.ranges,
540
+ }, _this2.v3 ? function () {
541
+ return [h(TimelineViewBody_1.TimelineViewBody, {
542
+ ranges: _this2.ranges,
543
+ attrs: _this2.v3 ? undefined : {
544
+ ranges: _this2.ranges,
545
+ workDayStart: workDayStart,
546
+ workDayEnd: workDayEnd,
547
+ timelineSlots: timelineSlots
548
+ },
549
+ workDayStart: workDayStart,
550
+ workDayEnd: workDayEnd,
551
+ timelineSlots: timelineSlots,
552
+ onDataaction: _this2.handleDataAction,
553
+ on: _this2.v3 ? undefined : {
554
+ "dataaction": _this2.handleDataAction
555
+ }
556
+ })];
557
+ } : [h(TimelineViewBody_1.TimelineViewBody, {
558
+ ranges: _this2.ranges,
559
+ attrs: _this2.v3 ? undefined : {
560
+ ranges: _this2.ranges,
561
+ workDayStart: workDayStart,
562
+ workDayEnd: workDayEnd,
563
+ timelineSlots: timelineSlots
564
+ },
346
565
  workDayStart: workDayStart,
347
566
  workDayEnd: workDayEnd,
348
- timelineSlots: this.timelineSlots
349
- },
350
- workDayStart: workDayStart,
351
- workDayEnd: workDayEnd,
352
- timelineSlots: this.timelineSlots,
353
- onDataaction: this.handleDataAction,
354
- on: this.v3 ? undefined : {
355
- "dataaction": this.handleDataAction
356
- }
357
- }), h(SchedulerResourceIteratorContext_1.SchedulerResourceIteratorContext.Consumer, [function (_a) {
358
- var groupIndex = _a.groupIndex;
359
- return _this.$props.currentTimeMarker && utils_1.intersects(utils_1.first(_this.ranges).start, utils_1.last(_this.ranges).end, new Date(), new Date(), true) && h(CurrentTimeMarket_1.CurrentTimeMarker, {
360
- groupIndex: groupIndex,
361
- attrs: this.v3 ? undefined : {
362
- groupIndex: groupIndex,
363
- attachArrow: 'timeRef',
364
- vertical: true
365
- },
366
- attachArrow: 'timeRef',
367
- vertical: true
368
- });
369
- }])]) : h(VerticalResourceIterator_1.VerticalResourceIterator, {
370
- nested: true,
371
- attrs: this.v3 ? undefined : {
567
+ timelineSlots: timelineSlots,
568
+ onDataaction: _this2.handleDataAction,
569
+ on: _this2.v3 ? undefined : {
570
+ "dataaction": _this2.handleDataAction
571
+ }
572
+ })]) : h(VerticalResourceIterator_1.VerticalResourceIterator, {
372
573
  nested: true,
574
+ attrs: _this2.v3 ? undefined : {
575
+ nested: true,
576
+ wrapGroup: true,
577
+ group: _this2.ks.props.group,
578
+ resources: _this2.ks.props.resources
579
+ },
373
580
  wrapGroup: true,
374
- group: this.ks.props.group,
375
- resources: this.ks.props.resources
376
- },
377
- wrapGroup: true,
378
- group: this.ks.props.group,
379
- resources: this.ks.props.resources
380
- }, [// @ts-ignore function children
381
- h(TimelineViewBody_1.TimelineViewBody, {
382
- range: this.range,
383
- attrs: this.v3 ? undefined : {
384
- range: this.range,
581
+ group: _this2.ks.props.group,
582
+ resources: _this2.ks.props.resources
583
+ }, [h(TimelineViewBody_1.TimelineViewBody, {
584
+ range: _this2.range,
585
+ attrs: _this2.v3 ? undefined : {
586
+ range: _this2.range,
587
+ workDayStart: workDayStart,
588
+ workDayEnd: workDayEnd,
589
+ timelineSlots: timelineSlots
590
+ },
385
591
  workDayStart: workDayStart,
386
592
  workDayEnd: workDayEnd,
387
- timelineSlots: this.timelineSlots
388
- },
389
- workDayStart: workDayStart,
390
- workDayEnd: workDayEnd,
391
- timelineSlots: this.timelineSlots,
392
- onDataaction: this.handleDataAction,
393
- on: this.v3 ? undefined : {
394
- "dataaction": this.handleDataAction
395
- }
396
- })]), this.ks.orientation === 'vertical' && this.$props.currentTimeMarker && utils_1.intersects(utils_1.first(this.ranges).start, utils_1.last(this.ranges).end, new Date(), new Date(), true) && h(CurrentTimeMarket_1.CurrentTimeMarker, {
397
- attachArrow: 'timeRef',
398
- attrs: this.v3 ? undefined : {
399
- attachArrow: 'timeRef',
400
- vertical: true
401
- },
402
- vertical: true
403
- }), this.items.sort(utils_1.orderSort).map(function (item) {
404
- return h(SchedulerEditItem_1.SchedulerEditItem, {
405
- key: item.isRecurring ? item.uid + ":" + item.group.index + ":" + item.range.index + ":" + item.originalStart : item.uid + ":" + item.group.index + ":" + item.range.index,
406
- uid: item.uid,
407
- attrs: this.v3 ? undefined : {
593
+ timelineSlots: timelineSlots,
594
+ onDataaction: _this2.handleDataAction,
595
+ on: _this2.v3 ? undefined : {
596
+ "dataaction": _this2.handleDataAction
597
+ }
598
+ })]), items.sort(utils_1.orderSort).map(function (item) {
599
+ return h(SchedulerEditItem_1.SchedulerEditItem, {
600
+ key: item.isRecurring ? item.uid + ":" + item.group.index + ":" + item.range.index + ":" + item.originalStart : item.uid + ":" + item.group.index + ":" + item.range.index,
408
601
  uid: item.uid,
602
+ attrs: this.v3 ? undefined : {
603
+ uid: item.uid,
604
+ start: item.start,
605
+ end: item.end,
606
+ originalStart: item.originalStart,
607
+ startTimezone: item.startTimezone,
608
+ endTimezone: item.endTimezone,
609
+ isAllDay: item.isAllDay,
610
+ title: item.title,
611
+ description: item.description,
612
+ occurrenceId: item.occurrenceId,
613
+ recurrenceExceptions: item.recurrenceExceptions,
614
+ recurrenceRule: item.recurrenceRule,
615
+ recurrenceId: item.recurrenceId,
616
+ dataItem: item.dataItem,
617
+ itemRef: item.itemRef,
618
+ head: item.head,
619
+ tail: item.tail,
620
+ order: item.order,
621
+ zonedStart: item.zonedStart,
622
+ zonedEnd: item.zonedEnd,
623
+ slots: item.slots,
624
+ group: item.group,
625
+ range: item.range,
626
+ isException: item.isException,
627
+ isRecurring: item.isRecurring,
628
+ format: 't',
629
+ form: this.$props.form,
630
+ item: this.$props.item,
631
+ viewItem: this.$props.viewItem,
632
+ editable: this.$props.editable,
633
+ ignoreIsAllDay: true,
634
+ vertical: false
635
+ },
409
636
  start: item.start,
410
637
  end: item.end,
411
638
  originalStart: item.originalStart,
@@ -432,49 +659,18 @@ var MultiDayTimelineViewVue2 = {
432
659
  isRecurring: item.isRecurring,
433
660
  format: 't',
434
661
  form: this.$props.form,
662
+ onDataaction: this.handleDataAction,
663
+ on: this.v3 ? undefined : {
664
+ "dataaction": this.handleDataAction
665
+ },
435
666
  item: this.$props.item,
436
667
  viewItem: this.$props.viewItem,
437
668
  editable: this.$props.editable,
438
669
  ignoreIsAllDay: true,
439
670
  vertical: false
440
- },
441
- start: item.start,
442
- end: item.end,
443
- originalStart: item.originalStart,
444
- startTimezone: item.startTimezone,
445
- endTimezone: item.endTimezone,
446
- isAllDay: item.isAllDay,
447
- title: item.title,
448
- description: item.description,
449
- occurrenceId: item.occurrenceId,
450
- recurrenceExceptions: item.recurrenceExceptions,
451
- recurrenceRule: item.recurrenceRule,
452
- recurrenceId: item.recurrenceId,
453
- dataItem: item.dataItem,
454
- itemRef: item.itemRef,
455
- head: item.head,
456
- tail: item.tail,
457
- order: item.order,
458
- zonedStart: item.zonedStart,
459
- zonedEnd: item.zonedEnd,
460
- slots: item.slots,
461
- group: item.group,
462
- range: item.range,
463
- isException: item.isException,
464
- isRecurring: item.isRecurring,
465
- format: 't',
466
- form: this.$props.form,
467
- onDataaction: this.handleDataAction,
468
- on: this.v3 ? undefined : {
469
- "dataaction": this.handleDataAction
470
- },
471
- item: this.$props.item,
472
- viewItem: this.$props.viewItem,
473
- editable: this.$props.editable,
474
- ignoreIsAllDay: true,
475
- vertical: false
476
- });
477
- }, this)])]);
671
+ });
672
+ }, _this2)])])
673
+ );
478
674
  },
479
675
  methods: {
480
676
  handleDataAction: function handleDataAction(action) {