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