@progress/kendo-vue-scheduler 3.2.6 → 3.2.7-dev.202205021145
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.
- package/dist/cdn/js/kendo-vue-scheduler.js +2 -2
- package/dist/es/components/BaseView.js +14 -12
- package/dist/es/components/header/view-selector/ViewSelectorList.js +9 -7
- package/dist/es/hooks/use-items-focus.js +8 -8
- package/dist/es/hooks/use-items-selection.js +11 -11
- package/dist/es/hooks/use-slots-focus.js +20 -20
- package/dist/es/hooks/use-slots-selection.js +4 -4
- package/dist/es/hooks/useSlotExpand.js +1 -1
- package/dist/es/items/SchedulerEditItem.d.ts +1 -1
- package/dist/es/items/SchedulerEditItem.js +145 -119
- package/dist/es/items/SchedulerItem.d.ts +1 -0
- package/dist/es/items/SchedulerItem.js +408 -167
- package/dist/es/items/SchedulerViewItem.d.ts +1 -0
- package/dist/es/items/SchedulerViewItem.js +17 -17
- package/dist/es/items/hooks/use-drag-item.js +5 -3
- package/dist/es/items/hooks/use-resize-item.d.ts +2 -4
- package/dist/es/items/hooks/use-resize-item.js +278 -176
- package/dist/es/models/SchedulerView.d.ts +2 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/slots/SchedulerEditSlot.js +21 -16
- package/dist/es/slots/SchedulerSlot.js +20 -1
- package/dist/es/slots/SchedulerViewSlot.js +30 -5
- package/dist/es/utils/index.d.ts +4 -0
- package/dist/es/utils/index.js +23 -14
- package/dist/es/views/common/SchedulerDrag.js +1 -0
- package/dist/es/views/common/SchedulerResize.js +69 -21
- package/dist/es/views/common/VerticalResourceIterator.js +2 -2
- package/dist/es/views/day/DayView.js +2 -1
- package/dist/es/views/day/MultiDayView.d.ts +4 -0
- package/dist/es/views/day/MultiDayView.js +86 -15
- package/dist/es/views/week/WeekView.js +2 -1
- package/dist/npm/components/BaseView.js +14 -12
- package/dist/npm/components/header/view-selector/ViewSelectorList.js +9 -7
- package/dist/npm/hooks/use-items-focus.js +8 -8
- package/dist/npm/hooks/use-items-selection.js +11 -11
- package/dist/npm/hooks/use-slots-focus.js +20 -20
- package/dist/npm/hooks/use-slots-selection.js +4 -4
- package/dist/npm/hooks/useSlotExpand.js +1 -1
- package/dist/npm/items/SchedulerEditItem.d.ts +1 -1
- package/dist/npm/items/SchedulerEditItem.js +144 -118
- package/dist/npm/items/SchedulerItem.d.ts +1 -0
- package/dist/npm/items/SchedulerItem.js +407 -166
- package/dist/npm/items/SchedulerViewItem.d.ts +1 -0
- package/dist/npm/items/SchedulerViewItem.js +17 -17
- package/dist/npm/items/hooks/use-drag-item.js +5 -3
- package/dist/npm/items/hooks/use-resize-item.d.ts +2 -4
- package/dist/npm/items/hooks/use-resize-item.js +281 -176
- package/dist/npm/models/SchedulerView.d.ts +2 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/slots/SchedulerEditSlot.js +20 -15
- package/dist/npm/slots/SchedulerSlot.js +20 -1
- package/dist/npm/slots/SchedulerViewSlot.js +30 -5
- package/dist/npm/utils/index.d.ts +4 -0
- package/dist/npm/utils/index.js +24 -15
- package/dist/npm/views/common/SchedulerDrag.js +1 -0
- package/dist/npm/views/common/SchedulerResize.js +69 -21
- package/dist/npm/views/common/VerticalResourceIterator.js +2 -2
- package/dist/npm/views/day/DayView.js +2 -1
- package/dist/npm/views/day/MultiDayView.d.ts +4 -0
- package/dist/npm/views/day/MultiDayView.js +87 -15
- package/dist/npm/views/week/WeekView.js +2 -1
- package/package.json +12 -12
|
@@ -206,6 +206,11 @@ var SchedulerItemVue2 = {
|
|
|
206
206
|
item: this
|
|
207
207
|
});
|
|
208
208
|
},
|
|
209
|
+
mounted: function mounted() {
|
|
210
|
+
if (!this.element) {
|
|
211
|
+
this.element = this.$refs.draggable && this.$refs.draggable.element;
|
|
212
|
+
}
|
|
213
|
+
},
|
|
209
214
|
destroyed: !!gh ? undefined : function () {
|
|
210
215
|
this.setItems({
|
|
211
216
|
type: utils_1.COLLECTION_ACTION.remove,
|
|
@@ -228,152 +233,330 @@ var SchedulerItemVue2 = {
|
|
|
228
233
|
},
|
|
229
234
|
// @ts-ignore
|
|
230
235
|
render: function render(createElement) {
|
|
231
|
-
var
|
|
232
|
-
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this); // const { item, element } = useSchedulerItem(this.$props, this.$el);
|
|
236
|
+
var _this = this;
|
|
233
237
|
|
|
238
|
+
var h = gh || createElement;
|
|
239
|
+
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
234
240
|
var editable = hooks_1.useEditable(this.$props.editable);
|
|
235
241
|
this.intl = kendo_vue_intl_1.provideIntlService(this);
|
|
236
242
|
var localization = kendo_vue_intl_1.provideLocalizationService(this);
|
|
237
|
-
var deleteMessage = localization.toLanguageString(messages_1.deleteTitle, messages_1.messages[messages_1.deleteTitle]);
|
|
238
|
-
//
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
243
|
+
var deleteMessage = localization.toLanguageString(messages_1.deleteTitle, messages_1.messages[messages_1.deleteTitle]);
|
|
244
|
+
return (// @ts-ignore function children
|
|
245
|
+
h(kendo_vue_common_1.Draggable, {
|
|
246
|
+
onPress: this.handlePress,
|
|
247
|
+
on: this.v3 ? undefined : {
|
|
248
|
+
"press": this.handlePress,
|
|
249
|
+
"drag": this.handleDrag,
|
|
250
|
+
"release": this.handleRelease
|
|
251
|
+
},
|
|
252
|
+
onDrag: this.handleDrag,
|
|
253
|
+
onRelease: this.handleRelease,
|
|
254
|
+
ref: 'draggable'
|
|
255
|
+
}, this.v3 ? function () {
|
|
256
|
+
return [h("div", {
|
|
257
|
+
id: _this.$props.id,
|
|
258
|
+
attrs: _this.v3 ? undefined : {
|
|
259
|
+
id: _this.$props.id,
|
|
260
|
+
tabIndex: _this.currentTabIndex,
|
|
261
|
+
// Aria
|
|
262
|
+
"aria-label": _this.eventLabel,
|
|
263
|
+
"aria-selected": _this.$props.selected // Focus
|
|
264
|
+
,
|
|
265
|
+
"data-group-index": _this.$props.group.index,
|
|
266
|
+
"data-range-index": _this.$props.range.index
|
|
267
|
+
},
|
|
268
|
+
style: _this.computedStyle,
|
|
269
|
+
tabIndex: _this.currentTabIndex,
|
|
270
|
+
"class": _this.itemClassName,
|
|
271
|
+
"aria-label": _this.eventLabel,
|
|
272
|
+
"aria-selected": _this.$props.selected,
|
|
273
|
+
onFocusin: _this.handleFocus,
|
|
274
|
+
on: _this.v3 ? undefined : {
|
|
275
|
+
"focusin": _this.handleFocus,
|
|
276
|
+
"blur": _this.handleBlur,
|
|
277
|
+
"mouseup": _this.handleMouseUp,
|
|
278
|
+
"mousedown": _this.handleMouseDown,
|
|
279
|
+
"click": _this.handleClick,
|
|
280
|
+
"mouseover": _this.handleMouseOver,
|
|
281
|
+
"mouseout": _this.handleMouseOut,
|
|
282
|
+
"mouseenter": _this.handleMouseEnter,
|
|
283
|
+
"mouseleave": _this.handleMouseLeave,
|
|
284
|
+
"dblclick": _this.handleDoubleClick,
|
|
285
|
+
"keydown": _this.handleKeyDown,
|
|
286
|
+
"keypress": _this.handleKeyPress,
|
|
287
|
+
"keyup": _this.handleKeyUp
|
|
288
|
+
},
|
|
289
|
+
onBlur: _this.handleBlur // Mouse
|
|
290
|
+
,
|
|
291
|
+
onMouseup: _this.handleMouseUp,
|
|
292
|
+
onMousedown: _this.handleMouseDown,
|
|
293
|
+
onClick: _this.handleClick,
|
|
294
|
+
onMouseover: _this.handleMouseOver,
|
|
295
|
+
onMouseout: _this.handleMouseOut,
|
|
296
|
+
onMouseenter: _this.handleMouseEnter,
|
|
297
|
+
onMouseleave: _this.handleMouseLeave,
|
|
298
|
+
onDblclick: _this.handleDoubleClick // Keyboard
|
|
282
299
|
,
|
|
283
|
-
|
|
284
|
-
|
|
300
|
+
onKeydown: _this.handleKeyDown,
|
|
301
|
+
onKeypress: _this.handleKeyPress,
|
|
302
|
+
onKeyup: _this.handleKeyUp,
|
|
303
|
+
"data-group-index": _this.$props.group.index,
|
|
304
|
+
"data-range-index": _this.$props.range.index
|
|
305
|
+
}, [!_this.$props.resizeHint && h("span", {
|
|
306
|
+
"class": "k-event-actions"
|
|
307
|
+
}, [_this.$props.tail && h("span", {
|
|
308
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
309
|
+
}), _this.$props.isRecurring && !_this.$props.isException && h("span", {
|
|
310
|
+
"class": "k-icon k-i-reload"
|
|
311
|
+
}), !_this.$props.isRecurring && _this.$props.isException && h("span", {
|
|
312
|
+
"class": "k-icon k-i-non-recurrence"
|
|
313
|
+
})]), _this.formItem && !_this.showOccurrenceDialog && editable.edit && h(SchedulerForm_1.SchedulerForm, {
|
|
314
|
+
dataItem: _this.formItem,
|
|
315
|
+
attrs: _this.v3 ? undefined : {
|
|
316
|
+
dataItem: _this.formItem
|
|
317
|
+
},
|
|
318
|
+
onSubmit: _this.ksFormSubmit,
|
|
319
|
+
on: _this.v3 ? undefined : {
|
|
320
|
+
"submit": _this.ksFormSubmit,
|
|
321
|
+
"close": _this.ksCancel,
|
|
322
|
+
"cancel": _this.ksCancel
|
|
323
|
+
},
|
|
324
|
+
onClose: _this.ksCancel,
|
|
325
|
+
onCancel: _this.ksCancel
|
|
326
|
+
}), _this.showOccurrenceDialog && h(SchedulerOccurrenceDialog_1.SchedulerOccurrenceDialog, {
|
|
327
|
+
dataItem: _this.formItem || _this.dragItem || _this.resizeItem || _this.removeItem,
|
|
328
|
+
attrs: _this.v3 ? undefined : {
|
|
329
|
+
dataItem: _this.formItem || _this.dragItem || _this.resizeItem || _this.removeItem,
|
|
330
|
+
isRemove: !!_this.removeItem
|
|
331
|
+
},
|
|
332
|
+
isRemove: !!_this.removeItem,
|
|
333
|
+
onClose: _this.ksCancel,
|
|
334
|
+
on: _this.v3 ? undefined : {
|
|
335
|
+
"close": _this.ksCancel,
|
|
336
|
+
"occurrenceclose": _this.ksOccurrenceClick,
|
|
337
|
+
"seriesclose": _this.ksSeriesClick
|
|
338
|
+
},
|
|
339
|
+
onOccurrenceclose: _this.ksOccurrenceClick,
|
|
340
|
+
onSeriesclose: _this.ksSeriesClick
|
|
341
|
+
}), _this.showRemoveDialog && _this.removeItem && editable.remove && h(SchedulerRemoveDialog_1.SchedulerRemoveDialog, {
|
|
342
|
+
dataItem: _this.removeItem,
|
|
343
|
+
attrs: _this.v3 ? undefined : {
|
|
344
|
+
dataItem: _this.removeItem
|
|
345
|
+
},
|
|
346
|
+
onClose: _this.ksCancel,
|
|
347
|
+
on: _this.v3 ? undefined : {
|
|
348
|
+
"close": _this.ksCancel,
|
|
349
|
+
"cancel": _this.ksCancel,
|
|
350
|
+
"confirm": _this.ksRemoveConfirm
|
|
351
|
+
},
|
|
352
|
+
onCancel: _this.ksCancel,
|
|
353
|
+
onConfirm: _this.ksRemoveConfirm
|
|
354
|
+
}), defaultSlot, !_this.$props.resizeHint && h("span", {
|
|
355
|
+
"class": "k-event-actions"
|
|
356
|
+
}, [editable.remove && h("a", {
|
|
357
|
+
tabIndex: -1,
|
|
358
|
+
attrs: _this.v3 ? undefined : {
|
|
359
|
+
tabIndex: -1,
|
|
360
|
+
"aria-hidden": "true",
|
|
361
|
+
title: deleteMessage,
|
|
362
|
+
"aria-label": deleteMessage
|
|
363
|
+
},
|
|
364
|
+
"aria-hidden": "true",
|
|
365
|
+
"class": "k-link k-event-delete",
|
|
366
|
+
title: deleteMessage,
|
|
367
|
+
"aria-label": deleteMessage,
|
|
368
|
+
onClick: _this.handleRemoveClick,
|
|
369
|
+
on: _this.v3 ? undefined : {
|
|
370
|
+
"click": _this.handleRemoveClick
|
|
371
|
+
}
|
|
372
|
+
}, [h("span", {
|
|
373
|
+
"class": "k-icon k-i-close"
|
|
374
|
+
})]), _this.$props.head && h("span", {
|
|
375
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
376
|
+
})]), editable.resize && _this.$props.vertical && [// @ts-ignore function children
|
|
377
|
+
h(kendo_vue_common_1.Draggable, {
|
|
378
|
+
onPress: _this.handleResizePress,
|
|
379
|
+
on: _this.v3 ? undefined : {
|
|
380
|
+
"press": _this.handleResizePress,
|
|
381
|
+
"drag": _this.handleResizeStartDrag,
|
|
382
|
+
"release": _this.handleResizeRelease
|
|
383
|
+
},
|
|
384
|
+
onDrag: _this.handleResizeStartDrag,
|
|
385
|
+
onRelease: _this.handleResizeRelease
|
|
386
|
+
}, _this.v3 ? function () {
|
|
387
|
+
return [h("span", {
|
|
388
|
+
"class": "k-resize-handle k-resize-n",
|
|
389
|
+
ref: _this.resizeNorth
|
|
390
|
+
})];
|
|
391
|
+
} : [h("span", {
|
|
392
|
+
"class": "k-resize-handle k-resize-n",
|
|
393
|
+
ref: _this.resizeNorth
|
|
394
|
+
})]), // @ts-ignore function children
|
|
395
|
+
h(kendo_vue_common_1.Draggable, {
|
|
396
|
+
onPress: _this.handleResizePress,
|
|
397
|
+
on: _this.v3 ? undefined : {
|
|
398
|
+
"press": _this.handleResizePress,
|
|
399
|
+
"drag": _this.handleResizeEndDrag,
|
|
400
|
+
"release": _this.handleResizeRelease
|
|
401
|
+
},
|
|
402
|
+
onDrag: _this.handleResizeEndDrag,
|
|
403
|
+
onRelease: _this.handleResizeRelease
|
|
404
|
+
}, _this.v3 ? function () {
|
|
405
|
+
return [h("span", {
|
|
406
|
+
"class": "k-resize-handle k-resize-s",
|
|
407
|
+
ref: _this.resizeSouth
|
|
408
|
+
})];
|
|
409
|
+
} : [h("span", {
|
|
410
|
+
"class": "k-resize-handle k-resize-s",
|
|
411
|
+
ref: _this.resizeSouth
|
|
412
|
+
})])], editable.resize && !_this.$props.vertical && [// @ts-ignore function children
|
|
413
|
+
h(kendo_vue_common_1.Draggable, {
|
|
414
|
+
onPress: _this.handleResizePress,
|
|
415
|
+
on: _this.v3 ? undefined : {
|
|
416
|
+
"press": _this.handleResizePress,
|
|
417
|
+
"drag": _this.handleResizeStartDrag,
|
|
418
|
+
"release": _this.handleResizeRelease
|
|
419
|
+
},
|
|
420
|
+
onDrag: _this.handleResizeStartDrag,
|
|
421
|
+
onRelease: _this.handleResizeRelease
|
|
422
|
+
}, _this.v3 ? function () {
|
|
423
|
+
return [h("span", {
|
|
424
|
+
"class": "k-resize-handle k-resize-w",
|
|
425
|
+
ref: _this.resizeWest
|
|
426
|
+
})];
|
|
427
|
+
} : [h("span", {
|
|
428
|
+
"class": "k-resize-handle k-resize-w",
|
|
429
|
+
ref: _this.resizeWest
|
|
430
|
+
})]), // @ts-ignore function children
|
|
431
|
+
h(kendo_vue_common_1.Draggable, {
|
|
432
|
+
onPress: _this.handleResizePress,
|
|
433
|
+
on: _this.v3 ? undefined : {
|
|
434
|
+
"press": _this.handleResizePress,
|
|
435
|
+
"drag": _this.handleResizeEndDrag,
|
|
436
|
+
"release": _this.handleResizeRelease
|
|
437
|
+
},
|
|
438
|
+
onDrag: _this.handleResizeEndDrag,
|
|
439
|
+
onRelease: _this.handleResizeRelease
|
|
440
|
+
}, _this.v3 ? function () {
|
|
441
|
+
return [h("span", {
|
|
442
|
+
"class": "k-resize-handle k-resize-e",
|
|
443
|
+
ref: _this.resizeEast
|
|
444
|
+
})];
|
|
445
|
+
} : [h("span", {
|
|
446
|
+
"class": "k-resize-handle k-resize-e",
|
|
447
|
+
ref: _this.resizeEast
|
|
448
|
+
})])], _this.$props.resizeHint && [h("div", {
|
|
449
|
+
"class": "k-marquee-color",
|
|
450
|
+
style: {
|
|
451
|
+
borderColor: _this.color,
|
|
452
|
+
backgroundColor: _this.color
|
|
453
|
+
}
|
|
454
|
+
}), h("div", {
|
|
455
|
+
"class": "k-marquee-text"
|
|
456
|
+
}, [!_this.$props.tail && h("div", {
|
|
457
|
+
"class": "k-label-top"
|
|
458
|
+
}, [_this.intl.formatDate(_this.$props.zonedStart, _this.$props.format)]), !_this.$props.head && h("div", {
|
|
459
|
+
"class": "k-label-bottom"
|
|
460
|
+
}, [_this.intl.formatDate(_this.$props.zonedEnd, _this.$props.format)])])]])];
|
|
461
|
+
} : [h("div", {
|
|
462
|
+
id: _this.$props.id,
|
|
463
|
+
attrs: _this.v3 ? undefined : {
|
|
464
|
+
id: _this.$props.id,
|
|
465
|
+
tabIndex: _this.currentTabIndex,
|
|
466
|
+
"aria-label": _this.eventLabel,
|
|
467
|
+
"aria-selected": _this.$props.selected,
|
|
468
|
+
"data-group-index": _this.$props.group.index,
|
|
469
|
+
"data-range-index": _this.$props.range.index
|
|
285
470
|
},
|
|
286
|
-
style:
|
|
287
|
-
tabIndex:
|
|
288
|
-
"class":
|
|
289
|
-
"aria-label":
|
|
290
|
-
"aria-selected":
|
|
291
|
-
|
|
292
|
-
on:
|
|
293
|
-
"
|
|
294
|
-
"blur":
|
|
295
|
-
"mouseup":
|
|
296
|
-
"mousedown":
|
|
297
|
-
"click":
|
|
298
|
-
"mouseover":
|
|
299
|
-
"mouseout":
|
|
300
|
-
"mouseenter":
|
|
301
|
-
"mouseleave":
|
|
302
|
-
"dblclick":
|
|
303
|
-
"keydown":
|
|
304
|
-
"keypress":
|
|
305
|
-
"keyup":
|
|
471
|
+
style: _this.computedStyle,
|
|
472
|
+
tabIndex: _this.currentTabIndex,
|
|
473
|
+
"class": _this.itemClassName,
|
|
474
|
+
"aria-label": _this.eventLabel,
|
|
475
|
+
"aria-selected": _this.$props.selected,
|
|
476
|
+
onFocusin: _this.handleFocus,
|
|
477
|
+
on: _this.v3 ? undefined : {
|
|
478
|
+
"focusin": _this.handleFocus,
|
|
479
|
+
"blur": _this.handleBlur,
|
|
480
|
+
"mouseup": _this.handleMouseUp,
|
|
481
|
+
"mousedown": _this.handleMouseDown,
|
|
482
|
+
"click": _this.handleClick,
|
|
483
|
+
"mouseover": _this.handleMouseOver,
|
|
484
|
+
"mouseout": _this.handleMouseOut,
|
|
485
|
+
"mouseenter": _this.handleMouseEnter,
|
|
486
|
+
"mouseleave": _this.handleMouseLeave,
|
|
487
|
+
"dblclick": _this.handleDoubleClick,
|
|
488
|
+
"keydown": _this.handleKeyDown,
|
|
489
|
+
"keypress": _this.handleKeyPress,
|
|
490
|
+
"keyup": _this.handleKeyUp
|
|
306
491
|
},
|
|
307
|
-
onBlur:
|
|
308
|
-
,
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
,
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
"data-range-index": this.$props.range.index
|
|
323
|
-
}, [!this.$props.resizeHint && h("span", {
|
|
492
|
+
onBlur: _this.handleBlur,
|
|
493
|
+
onMouseup: _this.handleMouseUp,
|
|
494
|
+
onMousedown: _this.handleMouseDown,
|
|
495
|
+
onClick: _this.handleClick,
|
|
496
|
+
onMouseover: _this.handleMouseOver,
|
|
497
|
+
onMouseout: _this.handleMouseOut,
|
|
498
|
+
onMouseenter: _this.handleMouseEnter,
|
|
499
|
+
onMouseleave: _this.handleMouseLeave,
|
|
500
|
+
onDblclick: _this.handleDoubleClick,
|
|
501
|
+
onKeydown: _this.handleKeyDown,
|
|
502
|
+
onKeypress: _this.handleKeyPress,
|
|
503
|
+
onKeyup: _this.handleKeyUp,
|
|
504
|
+
"data-group-index": _this.$props.group.index,
|
|
505
|
+
"data-range-index": _this.$props.range.index
|
|
506
|
+
}, [!_this.$props.resizeHint && h("span", {
|
|
324
507
|
"class": "k-event-actions"
|
|
325
|
-
}, [
|
|
508
|
+
}, [_this.$props.tail && h("span", {
|
|
326
509
|
"class": "k-icon k-i-arrow-60-left"
|
|
327
|
-
}),
|
|
510
|
+
}), _this.$props.isRecurring && !_this.$props.isException && h("span", {
|
|
328
511
|
"class": "k-icon k-i-reload"
|
|
329
|
-
}), !
|
|
512
|
+
}), !_this.$props.isRecurring && _this.$props.isException && h("span", {
|
|
330
513
|
"class": "k-icon k-i-non-recurrence"
|
|
331
|
-
})]),
|
|
332
|
-
dataItem:
|
|
333
|
-
attrs:
|
|
334
|
-
dataItem:
|
|
514
|
+
})]), _this.formItem && !_this.showOccurrenceDialog && editable.edit && h(SchedulerForm_1.SchedulerForm, {
|
|
515
|
+
dataItem: _this.formItem,
|
|
516
|
+
attrs: _this.v3 ? undefined : {
|
|
517
|
+
dataItem: _this.formItem
|
|
335
518
|
},
|
|
336
|
-
onSubmit:
|
|
337
|
-
on:
|
|
338
|
-
"submit":
|
|
339
|
-
"close":
|
|
340
|
-
"cancel":
|
|
519
|
+
onSubmit: _this.ksFormSubmit,
|
|
520
|
+
on: _this.v3 ? undefined : {
|
|
521
|
+
"submit": _this.ksFormSubmit,
|
|
522
|
+
"close": _this.ksCancel,
|
|
523
|
+
"cancel": _this.ksCancel
|
|
341
524
|
},
|
|
342
|
-
onClose:
|
|
343
|
-
onCancel:
|
|
344
|
-
}),
|
|
345
|
-
dataItem:
|
|
346
|
-
attrs:
|
|
347
|
-
dataItem:
|
|
348
|
-
isRemove: !!
|
|
525
|
+
onClose: _this.ksCancel,
|
|
526
|
+
onCancel: _this.ksCancel
|
|
527
|
+
}), _this.showOccurrenceDialog && h(SchedulerOccurrenceDialog_1.SchedulerOccurrenceDialog, {
|
|
528
|
+
dataItem: _this.formItem || _this.dragItem || _this.resizeItem || _this.removeItem,
|
|
529
|
+
attrs: _this.v3 ? undefined : {
|
|
530
|
+
dataItem: _this.formItem || _this.dragItem || _this.resizeItem || _this.removeItem,
|
|
531
|
+
isRemove: !!_this.removeItem
|
|
349
532
|
},
|
|
350
|
-
isRemove: !!
|
|
351
|
-
onClose:
|
|
352
|
-
on:
|
|
353
|
-
"close":
|
|
354
|
-
"occurrenceclose":
|
|
355
|
-
"seriesclose":
|
|
533
|
+
isRemove: !!_this.removeItem,
|
|
534
|
+
onClose: _this.ksCancel,
|
|
535
|
+
on: _this.v3 ? undefined : {
|
|
536
|
+
"close": _this.ksCancel,
|
|
537
|
+
"occurrenceclose": _this.ksOccurrenceClick,
|
|
538
|
+
"seriesclose": _this.ksSeriesClick
|
|
356
539
|
},
|
|
357
|
-
onOccurrenceclose:
|
|
358
|
-
onSeriesclose:
|
|
359
|
-
}),
|
|
360
|
-
dataItem:
|
|
361
|
-
attrs:
|
|
362
|
-
dataItem:
|
|
540
|
+
onOccurrenceclose: _this.ksOccurrenceClick,
|
|
541
|
+
onSeriesclose: _this.ksSeriesClick
|
|
542
|
+
}), _this.showRemoveDialog && _this.removeItem && editable.remove && h(SchedulerRemoveDialog_1.SchedulerRemoveDialog, {
|
|
543
|
+
dataItem: _this.removeItem,
|
|
544
|
+
attrs: _this.v3 ? undefined : {
|
|
545
|
+
dataItem: _this.removeItem
|
|
363
546
|
},
|
|
364
|
-
onClose:
|
|
365
|
-
on:
|
|
366
|
-
"close":
|
|
367
|
-
"cancel":
|
|
368
|
-
"confirm":
|
|
547
|
+
onClose: _this.ksCancel,
|
|
548
|
+
on: _this.v3 ? undefined : {
|
|
549
|
+
"close": _this.ksCancel,
|
|
550
|
+
"cancel": _this.ksCancel,
|
|
551
|
+
"confirm": _this.ksRemoveConfirm
|
|
369
552
|
},
|
|
370
|
-
onCancel:
|
|
371
|
-
onConfirm:
|
|
372
|
-
}), defaultSlot, !
|
|
553
|
+
onCancel: _this.ksCancel,
|
|
554
|
+
onConfirm: _this.ksRemoveConfirm
|
|
555
|
+
}), defaultSlot, !_this.$props.resizeHint && h("span", {
|
|
373
556
|
"class": "k-event-actions"
|
|
374
557
|
}, [editable.remove && h("a", {
|
|
375
558
|
tabIndex: -1,
|
|
376
|
-
attrs:
|
|
559
|
+
attrs: _this.v3 ? undefined : {
|
|
377
560
|
tabIndex: -1,
|
|
378
561
|
"aria-hidden": "true",
|
|
379
562
|
title: deleteMessage,
|
|
@@ -383,50 +566,108 @@ var SchedulerItemVue2 = {
|
|
|
383
566
|
"class": "k-link k-event-delete",
|
|
384
567
|
title: deleteMessage,
|
|
385
568
|
"aria-label": deleteMessage,
|
|
386
|
-
onClick:
|
|
387
|
-
on:
|
|
388
|
-
"click":
|
|
569
|
+
onClick: _this.handleRemoveClick,
|
|
570
|
+
on: _this.v3 ? undefined : {
|
|
571
|
+
"click": _this.handleRemoveClick
|
|
389
572
|
}
|
|
390
573
|
}, [h("span", {
|
|
391
574
|
"class": "k-icon k-i-close"
|
|
392
|
-
})]),
|
|
575
|
+
})]), _this.$props.head && h("span", {
|
|
393
576
|
"class": "k-icon k-i-arrow-60-right"
|
|
394
|
-
})]), editable.resize &&
|
|
577
|
+
})]), editable.resize && _this.$props.vertical && [h(kendo_vue_common_1.Draggable, {
|
|
578
|
+
onPress: _this.handleResizePress,
|
|
579
|
+
on: _this.v3 ? undefined : {
|
|
580
|
+
"press": _this.handleResizePress,
|
|
581
|
+
"drag": _this.handleResizeStartDrag,
|
|
582
|
+
"release": _this.handleResizeRelease
|
|
583
|
+
},
|
|
584
|
+
onDrag: _this.handleResizeStartDrag,
|
|
585
|
+
onRelease: _this.handleResizeRelease
|
|
586
|
+
}, _this.v3 ? function () {
|
|
587
|
+
return [h("span", {
|
|
588
|
+
"class": "k-resize-handle k-resize-n",
|
|
589
|
+
ref: _this.resizeNorth
|
|
590
|
+
})];
|
|
591
|
+
} : [h("span", {
|
|
395
592
|
"class": "k-resize-handle k-resize-n",
|
|
396
|
-
ref:
|
|
397
|
-
}), h(
|
|
593
|
+
ref: _this.resizeNorth
|
|
594
|
+
})]), h(kendo_vue_common_1.Draggable, {
|
|
595
|
+
onPress: _this.handleResizePress,
|
|
596
|
+
on: _this.v3 ? undefined : {
|
|
597
|
+
"press": _this.handleResizePress,
|
|
598
|
+
"drag": _this.handleResizeEndDrag,
|
|
599
|
+
"release": _this.handleResizeRelease
|
|
600
|
+
},
|
|
601
|
+
onDrag: _this.handleResizeEndDrag,
|
|
602
|
+
onRelease: _this.handleResizeRelease
|
|
603
|
+
}, _this.v3 ? function () {
|
|
604
|
+
return [h("span", {
|
|
605
|
+
"class": "k-resize-handle k-resize-s",
|
|
606
|
+
ref: _this.resizeSouth
|
|
607
|
+
})];
|
|
608
|
+
} : [h("span", {
|
|
398
609
|
"class": "k-resize-handle k-resize-s",
|
|
399
|
-
ref:
|
|
400
|
-
})], editable.resize && !
|
|
610
|
+
ref: _this.resizeSouth
|
|
611
|
+
})])], editable.resize && !_this.$props.vertical && [h(kendo_vue_common_1.Draggable, {
|
|
612
|
+
onPress: _this.handleResizePress,
|
|
613
|
+
on: _this.v3 ? undefined : {
|
|
614
|
+
"press": _this.handleResizePress,
|
|
615
|
+
"drag": _this.handleResizeStartDrag,
|
|
616
|
+
"release": _this.handleResizeRelease
|
|
617
|
+
},
|
|
618
|
+
onDrag: _this.handleResizeStartDrag,
|
|
619
|
+
onRelease: _this.handleResizeRelease
|
|
620
|
+
}, _this.v3 ? function () {
|
|
621
|
+
return [h("span", {
|
|
622
|
+
"class": "k-resize-handle k-resize-w",
|
|
623
|
+
ref: _this.resizeWest
|
|
624
|
+
})];
|
|
625
|
+
} : [h("span", {
|
|
401
626
|
"class": "k-resize-handle k-resize-w",
|
|
402
|
-
ref:
|
|
403
|
-
}), h(
|
|
627
|
+
ref: _this.resizeWest
|
|
628
|
+
})]), h(kendo_vue_common_1.Draggable, {
|
|
629
|
+
onPress: _this.handleResizePress,
|
|
630
|
+
on: _this.v3 ? undefined : {
|
|
631
|
+
"press": _this.handleResizePress,
|
|
632
|
+
"drag": _this.handleResizeEndDrag,
|
|
633
|
+
"release": _this.handleResizeRelease
|
|
634
|
+
},
|
|
635
|
+
onDrag: _this.handleResizeEndDrag,
|
|
636
|
+
onRelease: _this.handleResizeRelease
|
|
637
|
+
}, _this.v3 ? function () {
|
|
638
|
+
return [h("span", {
|
|
639
|
+
"class": "k-resize-handle k-resize-e",
|
|
640
|
+
ref: _this.resizeEast
|
|
641
|
+
})];
|
|
642
|
+
} : [h("span", {
|
|
404
643
|
"class": "k-resize-handle k-resize-e",
|
|
405
|
-
ref:
|
|
406
|
-
})],
|
|
644
|
+
ref: _this.resizeEast
|
|
645
|
+
})])], _this.$props.resizeHint && [h("div", {
|
|
407
646
|
"class": "k-marquee-color",
|
|
408
647
|
style: {
|
|
409
|
-
borderColor:
|
|
410
|
-
backgroundColor:
|
|
648
|
+
borderColor: _this.color,
|
|
649
|
+
backgroundColor: _this.color
|
|
411
650
|
}
|
|
412
651
|
}), h("div", {
|
|
413
652
|
"class": "k-marquee-text"
|
|
414
|
-
}, [!
|
|
653
|
+
}, [!_this.$props.tail && h("div", {
|
|
415
654
|
"class": "k-label-top"
|
|
416
|
-
}, [
|
|
655
|
+
}, [_this.intl.formatDate(_this.$props.zonedStart, _this.$props.format)]), !_this.$props.head && h("div", {
|
|
417
656
|
"class": "k-label-bottom"
|
|
418
|
-
}, [
|
|
419
|
-
|
|
657
|
+
}, [_this.intl.formatDate(_this.$props.zonedEnd, _this.$props.format)])])]])])
|
|
420
658
|
);
|
|
421
659
|
},
|
|
422
660
|
methods: {
|
|
661
|
+
getElement: function getElement() {
|
|
662
|
+
return this.$el.nodeType === 8 ? this.$el.parentElement : this.$el.nodeType === 3 ? this.$el.nextElementSibling : this.$el;
|
|
663
|
+
},
|
|
423
664
|
// Focus Handlers
|
|
424
665
|
handleFocus: function handleFocus(event) {
|
|
425
666
|
this.$emit('focus', {
|
|
426
667
|
event: event,
|
|
427
668
|
target: {
|
|
428
669
|
props: __assign({}, this.$props),
|
|
429
|
-
element: this
|
|
670
|
+
element: this.element
|
|
430
671
|
}
|
|
431
672
|
});
|
|
432
673
|
},
|
|
@@ -435,7 +676,7 @@ var SchedulerItemVue2 = {
|
|
|
435
676
|
event: event,
|
|
436
677
|
target: {
|
|
437
678
|
props: __assign({}, this.$props),
|
|
438
|
-
element: this
|
|
679
|
+
element: this.element
|
|
439
680
|
}
|
|
440
681
|
});
|
|
441
682
|
},
|
|
@@ -445,7 +686,7 @@ var SchedulerItemVue2 = {
|
|
|
445
686
|
event: event,
|
|
446
687
|
target: {
|
|
447
688
|
props: __assign({}, this.$props),
|
|
448
|
-
element: this
|
|
689
|
+
element: this.element
|
|
449
690
|
}
|
|
450
691
|
});
|
|
451
692
|
},
|
|
@@ -454,7 +695,7 @@ var SchedulerItemVue2 = {
|
|
|
454
695
|
event: event,
|
|
455
696
|
target: {
|
|
456
697
|
props: __assign({}, this.$props),
|
|
457
|
-
element: this
|
|
698
|
+
element: this.element
|
|
458
699
|
}
|
|
459
700
|
};
|
|
460
701
|
this.$emit('click', args);
|
|
@@ -465,7 +706,7 @@ var SchedulerItemVue2 = {
|
|
|
465
706
|
event: event,
|
|
466
707
|
target: {
|
|
467
708
|
props: __assign({}, this.$props),
|
|
468
|
-
element: this
|
|
709
|
+
element: this.element
|
|
469
710
|
}
|
|
470
711
|
});
|
|
471
712
|
},
|
|
@@ -474,7 +715,7 @@ var SchedulerItemVue2 = {
|
|
|
474
715
|
event: event,
|
|
475
716
|
target: {
|
|
476
717
|
props: __assign({}, this.$props),
|
|
477
|
-
element: this
|
|
718
|
+
element: this.element
|
|
478
719
|
}
|
|
479
720
|
});
|
|
480
721
|
},
|
|
@@ -483,7 +724,7 @@ var SchedulerItemVue2 = {
|
|
|
483
724
|
event: event,
|
|
484
725
|
target: {
|
|
485
726
|
props: __assign({}, this.$props),
|
|
486
|
-
element: this
|
|
727
|
+
element: this.element
|
|
487
728
|
}
|
|
488
729
|
});
|
|
489
730
|
},
|
|
@@ -492,7 +733,7 @@ var SchedulerItemVue2 = {
|
|
|
492
733
|
event: event,
|
|
493
734
|
target: {
|
|
494
735
|
props: __assign({}, this.$props),
|
|
495
|
-
element: this
|
|
736
|
+
element: this.element
|
|
496
737
|
}
|
|
497
738
|
});
|
|
498
739
|
},
|
|
@@ -501,7 +742,7 @@ var SchedulerItemVue2 = {
|
|
|
501
742
|
event: event,
|
|
502
743
|
target: {
|
|
503
744
|
props: __assign({}, this.$props),
|
|
504
|
-
element: this
|
|
745
|
+
element: this.element
|
|
505
746
|
}
|
|
506
747
|
});
|
|
507
748
|
},
|
|
@@ -510,7 +751,7 @@ var SchedulerItemVue2 = {
|
|
|
510
751
|
event: event,
|
|
511
752
|
target: {
|
|
512
753
|
props: __assign({}, this.$props),
|
|
513
|
-
element: this
|
|
754
|
+
element: this.element
|
|
514
755
|
}
|
|
515
756
|
};
|
|
516
757
|
this.$emit('doubleclick', args);
|
|
@@ -521,7 +762,7 @@ var SchedulerItemVue2 = {
|
|
|
521
762
|
event: event,
|
|
522
763
|
target: {
|
|
523
764
|
props: __assign({}, this.$props),
|
|
524
|
-
element: this
|
|
765
|
+
element: this.element
|
|
525
766
|
}
|
|
526
767
|
});
|
|
527
768
|
},
|
|
@@ -531,7 +772,7 @@ var SchedulerItemVue2 = {
|
|
|
531
772
|
event: event,
|
|
532
773
|
target: {
|
|
533
774
|
props: __assign({}, this.$props),
|
|
534
|
-
element: this
|
|
775
|
+
element: this.element
|
|
535
776
|
}
|
|
536
777
|
});
|
|
537
778
|
},
|
|
@@ -540,7 +781,7 @@ var SchedulerItemVue2 = {
|
|
|
540
781
|
event: event,
|
|
541
782
|
target: {
|
|
542
783
|
props: __assign({}, this.$props),
|
|
543
|
-
element: this
|
|
784
|
+
element: this.element
|
|
544
785
|
}
|
|
545
786
|
});
|
|
546
787
|
},
|
|
@@ -549,7 +790,7 @@ var SchedulerItemVue2 = {
|
|
|
549
790
|
event: event,
|
|
550
791
|
target: {
|
|
551
792
|
props: __assign({}, this.$props),
|
|
552
|
-
element: this
|
|
793
|
+
element: this.element
|
|
553
794
|
}
|
|
554
795
|
});
|
|
555
796
|
},
|
|
@@ -559,7 +800,7 @@ var SchedulerItemVue2 = {
|
|
|
559
800
|
dragEvent: dragEvent,
|
|
560
801
|
target: {
|
|
561
802
|
props: __assign({}, this.$props),
|
|
562
|
-
element: this
|
|
803
|
+
element: this.element
|
|
563
804
|
}
|
|
564
805
|
});
|
|
565
806
|
},
|
|
@@ -568,7 +809,7 @@ var SchedulerItemVue2 = {
|
|
|
568
809
|
dragEvent: dragEvent,
|
|
569
810
|
target: {
|
|
570
811
|
props: __assign({}, this.$props),
|
|
571
|
-
element: this
|
|
812
|
+
element: this.element
|
|
572
813
|
}
|
|
573
814
|
});
|
|
574
815
|
},
|
|
@@ -577,7 +818,7 @@ var SchedulerItemVue2 = {
|
|
|
577
818
|
dragEvent: dragEvent,
|
|
578
819
|
target: {
|
|
579
820
|
props: __assign({}, this.$props),
|
|
580
|
-
element: this
|
|
821
|
+
element: this.element
|
|
581
822
|
}
|
|
582
823
|
});
|
|
583
824
|
},
|
|
@@ -586,7 +827,7 @@ var SchedulerItemVue2 = {
|
|
|
586
827
|
dragEvent: dragEvent,
|
|
587
828
|
target: {
|
|
588
829
|
props: __assign({}, this.$props),
|
|
589
|
-
element: this
|
|
830
|
+
element: this.element
|
|
590
831
|
}
|
|
591
832
|
});
|
|
592
833
|
},
|
|
@@ -595,7 +836,7 @@ var SchedulerItemVue2 = {
|
|
|
595
836
|
dragEvent: dragEvent,
|
|
596
837
|
target: {
|
|
597
838
|
props: __assign({}, this.$props),
|
|
598
|
-
element: this
|
|
839
|
+
element: this.element
|
|
599
840
|
}
|
|
600
841
|
});
|
|
601
842
|
},
|
|
@@ -604,7 +845,7 @@ var SchedulerItemVue2 = {
|
|
|
604
845
|
dragEvent: dragEvent,
|
|
605
846
|
target: {
|
|
606
847
|
props: __assign({}, this.$props),
|
|
607
|
-
element: this
|
|
848
|
+
element: this.element
|
|
608
849
|
}
|
|
609
850
|
});
|
|
610
851
|
},
|
|
@@ -613,7 +854,7 @@ var SchedulerItemVue2 = {
|
|
|
613
854
|
dragEvent: dragEvent,
|
|
614
855
|
target: {
|
|
615
856
|
props: __assign({}, this.$props),
|
|
616
|
-
element: this
|
|
857
|
+
element: this.element
|
|
617
858
|
}
|
|
618
859
|
});
|
|
619
860
|
}
|