@progress/kendo-vue-scheduler 3.1.3 → 3.1.5-dev.202204110939
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/NOTICE.txt +49 -6
- package/dist/cdn/js/kendo-vue-scheduler.js +2 -2
- package/dist/es/components/SchedulerForm.js +6 -0
- package/dist/es/components/SchedulerOccurrenceDialog.js +52 -7
- package/dist/es/components/SchedulerRemoveDialog.js +52 -7
- package/dist/es/editors/ResourceEditor.js +13 -11
- package/dist/es/editors/SchedulerFormEditor.js +11 -10
- package/dist/es/editors/ZonedDateTime.d.ts +1 -0
- package/dist/es/editors/ZonedDateTime.js +5 -2
- package/dist/es/items/SchedulerEditItem.js +518 -231
- package/dist/es/items/SchedulerItem.js +104 -95
- package/dist/es/items/SchedulerItemContent.js +4 -2
- package/dist/es/items/SchedulerViewItem.js +137 -11
- package/dist/es/items/hooks/use-drag-item.d.ts +2 -6
- package/dist/es/items/hooks/use-drag-item.js +228 -153
- package/dist/es/items/hooks/use-series.d.ts +1 -0
- package/dist/es/items/hooks/use-series.js +1 -2
- package/dist/es/items/hooks/use-show-occurrence-dialog.d.ts +1 -0
- package/dist/es/items/hooks/use-show-occurrence-dialog.js +1 -2
- package/dist/es/items/hooks/use-show-remove-item-dialog.d.ts +1 -0
- package/dist/es/items/hooks/use-show-remove-item-dialog.js +1 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/recurrence/RecurrenceEditor.d.ts +1 -0
- package/dist/es/recurrence/RecurrenceEditor.js +5 -0
- package/dist/es/recurrence/RecurrenceFrequencyEditor.js +4 -0
- package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +4 -0
- package/dist/es/recurrence/common.js +2 -1
- package/dist/es/tasks/SchedulerEditTask.d.ts +9 -0
- package/dist/es/tasks/SchedulerEditTask.js +118 -35
- package/dist/es/tasks/SchedulerTask.js +3 -2
- package/dist/es/tasks/SchedulerViewTask.js +15 -3
- package/dist/es/views/agenda/AgendaView.js +21 -9
- package/dist/es/views/agenda/AgendaViewBody.d.ts +1 -0
- package/dist/es/views/agenda/AgendaViewBody.js +6 -1
- package/dist/es/views/common/SchedulerDrag.js +62 -11
- package/dist/es/views/day/DayView.js +4 -0
- package/dist/es/views/month/MonthView.js +5 -1
- package/dist/es/views/time/MultiDayTimelineView.js +28 -9
- package/dist/es/views/time/TimelineView.js +4 -0
- package/dist/es/views/week/WeekView.js +12 -2
- package/dist/es/views/week/WorkWeekView.js +12 -2
- package/dist/npm/components/SchedulerForm.js +6 -0
- package/dist/npm/components/SchedulerOccurrenceDialog.js +52 -7
- package/dist/npm/components/SchedulerRemoveDialog.js +52 -7
- package/dist/npm/editors/ResourceEditor.js +12 -10
- package/dist/npm/editors/SchedulerFormEditor.js +11 -11
- package/dist/npm/editors/ZonedDateTime.d.ts +1 -0
- package/dist/npm/editors/ZonedDateTime.js +4 -1
- package/dist/npm/items/SchedulerEditItem.js +517 -224
- package/dist/npm/items/SchedulerItem.js +104 -95
- package/dist/npm/items/SchedulerItemContent.js +4 -2
- package/dist/npm/items/SchedulerViewItem.js +137 -11
- package/dist/npm/items/hooks/use-drag-item.d.ts +2 -6
- package/dist/npm/items/hooks/use-drag-item.js +231 -153
- package/dist/npm/items/hooks/use-series.d.ts +1 -0
- package/dist/npm/items/hooks/use-series.js +2 -2
- package/dist/npm/items/hooks/use-show-occurrence-dialog.d.ts +1 -0
- package/dist/npm/items/hooks/use-show-occurrence-dialog.js +2 -2
- package/dist/npm/items/hooks/use-show-remove-item-dialog.d.ts +1 -0
- package/dist/npm/items/hooks/use-show-remove-item-dialog.js +2 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/recurrence/RecurrenceEditor.d.ts +1 -0
- package/dist/npm/recurrence/RecurrenceEditor.js +5 -0
- package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +4 -0
- package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +4 -0
- package/dist/npm/recurrence/common.js +2 -1
- package/dist/npm/tasks/SchedulerEditTask.d.ts +9 -0
- package/dist/npm/tasks/SchedulerEditTask.js +120 -35
- package/dist/npm/tasks/SchedulerTask.js +3 -2
- package/dist/npm/tasks/SchedulerViewTask.js +15 -3
- package/dist/npm/views/agenda/AgendaView.js +21 -9
- package/dist/npm/views/agenda/AgendaViewBody.d.ts +1 -0
- package/dist/npm/views/agenda/AgendaViewBody.js +6 -1
- package/dist/npm/views/common/SchedulerDrag.js +62 -11
- package/dist/npm/views/day/DayView.js +4 -0
- package/dist/npm/views/month/MonthView.js +5 -1
- package/dist/npm/views/time/MultiDayTimelineView.js +27 -8
- package/dist/npm/views/time/TimelineView.js +4 -0
- package/dist/npm/views/week/WeekView.js +12 -2
- package/dist/npm/views/week/WorkWeekView.js +12 -2
- package/package.json +12 -12
|
@@ -231,110 +231,119 @@ var SchedulerItemVue2 = {
|
|
|
231
231
|
// onRelease: this.handleResizeRelease
|
|
232
232
|
// });
|
|
233
233
|
|
|
234
|
-
return
|
|
235
|
-
|
|
236
|
-
|
|
234
|
+
return (// <Draggable
|
|
235
|
+
// onPress={this.handlePress}
|
|
236
|
+
// onDrag={this.handleDrag}
|
|
237
|
+
// onRelease={this.handleRelease}
|
|
238
|
+
// ref={'draggable'}
|
|
239
|
+
// >
|
|
240
|
+
// @ts-ignore function children
|
|
241
|
+
h("div", {
|
|
237
242
|
id: this.$props.id,
|
|
243
|
+
attrs: this.v3 ? undefined : {
|
|
244
|
+
id: this.$props.id,
|
|
245
|
+
tabIndex: this.currentTabIndex,
|
|
246
|
+
// Aria
|
|
247
|
+
"aria-label": this.eventLabel,
|
|
248
|
+
"aria-selected": this.$props.selected // Focus
|
|
249
|
+
,
|
|
250
|
+
"data-group-index": this.$props.group.index,
|
|
251
|
+
"data-range-index": this.$props.range.index
|
|
252
|
+
},
|
|
253
|
+
style: this.computedStyle,
|
|
238
254
|
tabIndex: this.currentTabIndex,
|
|
239
|
-
|
|
255
|
+
"class": this.itemClassName,
|
|
240
256
|
"aria-label": this.eventLabel,
|
|
241
|
-
"aria-selected": this.$props.selected
|
|
257
|
+
"aria-selected": this.$props.selected,
|
|
258
|
+
onFocus: this.handleFocus,
|
|
259
|
+
on: this.v3 ? undefined : {
|
|
260
|
+
"focus": this.handleFocus,
|
|
261
|
+
"blur": this.handleBlur,
|
|
262
|
+
"mouseup": this.handleMouseUp,
|
|
263
|
+
"mousedown": this.handleMouseDown,
|
|
264
|
+
"click": this.handleClick,
|
|
265
|
+
"mouseover": this.handleMouseOver,
|
|
266
|
+
"mouseout": this.handleMouseOut,
|
|
267
|
+
"mouseenter": this.handleMouseEnter,
|
|
268
|
+
"mouseleave": this.handleMouseLeave,
|
|
269
|
+
"dblclick": this.handleDoubleClick,
|
|
270
|
+
"keydown": this.handleKeyDown,
|
|
271
|
+
"keypress": this.handleKeyPress,
|
|
272
|
+
"keyup": this.handleKeyUp
|
|
273
|
+
},
|
|
274
|
+
onBlur: this.handleBlur // Mouse
|
|
242
275
|
,
|
|
276
|
+
onMouseup: this.handleMouseUp,
|
|
277
|
+
onMousedown: this.handleMouseDown,
|
|
278
|
+
onClick: this.handleClick,
|
|
279
|
+
onMouseover: this.handleMouseOver,
|
|
280
|
+
onMouseout: this.handleMouseOut,
|
|
281
|
+
onMouseenter: this.handleMouseEnter,
|
|
282
|
+
onMouseleave: this.handleMouseLeave,
|
|
283
|
+
onDblclick: this.handleDoubleClick // Keyboard
|
|
284
|
+
,
|
|
285
|
+
onKeydown: this.handleKeyDown,
|
|
286
|
+
onKeypress: this.handleKeyPress,
|
|
287
|
+
onKeyup: this.handleKeyUp,
|
|
243
288
|
"data-group-index": this.$props.group.index,
|
|
244
289
|
"data-range-index": this.$props.range.index
|
|
245
|
-
},
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
"
|
|
255
|
-
|
|
256
|
-
"mousedown": this.handleMouseDown,
|
|
257
|
-
"click": this.handleClick,
|
|
258
|
-
"mouseover": this.handleMouseOver,
|
|
259
|
-
"mouseout": this.handleMouseOut,
|
|
260
|
-
"mouseenter": this.handleMouseEnter,
|
|
261
|
-
"mouseleave": this.handleMouseLeave,
|
|
262
|
-
"dblclick": this.handleDoubleClick,
|
|
263
|
-
"keydown": this.handleKeyDown,
|
|
264
|
-
"keypress": this.handleKeyPress,
|
|
265
|
-
"keyup": this.handleKeyUp
|
|
266
|
-
},
|
|
267
|
-
onBlur: this.handleBlur // Mouse
|
|
268
|
-
,
|
|
269
|
-
onMouseup: this.handleMouseUp,
|
|
270
|
-
onMousedown: this.handleMouseDown,
|
|
271
|
-
onClick: this.handleClick,
|
|
272
|
-
onMouseover: this.handleMouseOver,
|
|
273
|
-
onMouseout: this.handleMouseOut,
|
|
274
|
-
onMouseenter: this.handleMouseEnter,
|
|
275
|
-
onMouseleave: this.handleMouseLeave,
|
|
276
|
-
onDblclick: this.handleDoubleClick // Keyboard
|
|
277
|
-
,
|
|
278
|
-
onKeydown: this.handleKeyDown,
|
|
279
|
-
onKeypress: this.handleKeyPress,
|
|
280
|
-
onKeyup: this.handleKeyUp,
|
|
281
|
-
"data-group-index": this.$props.group.index,
|
|
282
|
-
"data-range-index": this.$props.range.index
|
|
283
|
-
}, [!this.$props.resizeHint && h("span", {
|
|
284
|
-
"class": "k-event-actions"
|
|
285
|
-
}, [this.$props.tail && h("span", {
|
|
286
|
-
"class": "k-icon k-i-arrow-60-left"
|
|
287
|
-
}), this.$props.isRecurring && !this.$props.isException && h("span", {
|
|
288
|
-
"class": "k-icon k-i-reload"
|
|
289
|
-
}), !this.$props.isRecurring && this.$props.isException && h("span", {
|
|
290
|
-
"class": "k-icon k-i-non-recurrence"
|
|
291
|
-
})]), defaultSlot, !this.$props.resizeHint && h("span", {
|
|
292
|
-
"class": "k-event-actions"
|
|
293
|
-
}, [editable.remove && h("a", {
|
|
294
|
-
tabIndex: -1,
|
|
295
|
-
attrs: this.v3 ? undefined : {
|
|
290
|
+
}, [!this.$props.resizeHint && h("span", {
|
|
291
|
+
"class": "k-event-actions"
|
|
292
|
+
}, [this.$props.tail && h("span", {
|
|
293
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
294
|
+
}), this.$props.isRecurring && !this.$props.isException && h("span", {
|
|
295
|
+
"class": "k-icon k-i-reload"
|
|
296
|
+
}), !this.$props.isRecurring && this.$props.isException && h("span", {
|
|
297
|
+
"class": "k-icon k-i-non-recurrence"
|
|
298
|
+
})]), defaultSlot, !this.$props.resizeHint && h("span", {
|
|
299
|
+
"class": "k-event-actions"
|
|
300
|
+
}, [editable.remove && h("a", {
|
|
296
301
|
tabIndex: -1,
|
|
302
|
+
attrs: this.v3 ? undefined : {
|
|
303
|
+
tabIndex: -1,
|
|
304
|
+
"aria-hidden": "true",
|
|
305
|
+
title: deleteMessage,
|
|
306
|
+
"aria-label": deleteMessage
|
|
307
|
+
},
|
|
297
308
|
"aria-hidden": "true",
|
|
309
|
+
"class": "k-link k-event-delete",
|
|
298
310
|
title: deleteMessage,
|
|
299
|
-
"aria-label": deleteMessage
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
"
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
"
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}, [this.intl.formatDate(this.$props.zonedStart, this.$props.format)]), !this.$props.head && h("div", {
|
|
336
|
-
"class": "k-label-bottom"
|
|
337
|
-
}, [this.intl.formatDate(this.$props.zonedEnd, this.$props.format)])])]]);
|
|
311
|
+
"aria-label": deleteMessage,
|
|
312
|
+
onClick: this.handleRemoveClick,
|
|
313
|
+
on: this.v3 ? undefined : {
|
|
314
|
+
"click": this.handleRemoveClick
|
|
315
|
+
}
|
|
316
|
+
}, [h("span", {
|
|
317
|
+
"class": "k-icon k-i-close"
|
|
318
|
+
})]), this.$props.head && h("span", {
|
|
319
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
320
|
+
})]), editable.resize && this.$props.vertical && [h("span", {
|
|
321
|
+
"class": "k-resize-handle k-resize-n",
|
|
322
|
+
ref: this.resizeNorth
|
|
323
|
+
}), h("span", {
|
|
324
|
+
"class": "k-resize-handle k-resize-s",
|
|
325
|
+
ref: this.resizeSouth
|
|
326
|
+
})], editable.resize && !this.$props.vertical && [h("span", {
|
|
327
|
+
"class": "k-resize-handle k-resize-w",
|
|
328
|
+
ref: this.resizeWest
|
|
329
|
+
}), h("span", {
|
|
330
|
+
"class": "k-resize-handle k-resize-e",
|
|
331
|
+
ref: this.resizeEast
|
|
332
|
+
})], this.$props.resizeHint && [h("div", {
|
|
333
|
+
"class": "k-marquee-color",
|
|
334
|
+
style: {
|
|
335
|
+
borderColor: this.color,
|
|
336
|
+
backgroundColor: this.color
|
|
337
|
+
}
|
|
338
|
+
}), h("div", {
|
|
339
|
+
"class": "k-marquee-text"
|
|
340
|
+
}, [!this.$props.tail && h("div", {
|
|
341
|
+
"class": "k-label-top"
|
|
342
|
+
}, [this.intl.formatDate(this.$props.zonedStart, this.$props.format)]), !this.$props.head && h("div", {
|
|
343
|
+
"class": "k-label-bottom"
|
|
344
|
+
}, [this.intl.formatDate(this.$props.zonedEnd, this.$props.format)])])]]) // </Draggable>
|
|
345
|
+
|
|
346
|
+
);
|
|
338
347
|
},
|
|
339
348
|
methods: {
|
|
340
349
|
// Focus Handlers
|
|
@@ -14,7 +14,9 @@ var gh = allVue.h; // tslint:enable:max-line-length
|
|
|
14
14
|
|
|
15
15
|
var SchedulerItemContentVue2 = {
|
|
16
16
|
name: 'KendoSchedulerItemContent',
|
|
17
|
-
props: {
|
|
17
|
+
props: {
|
|
18
|
+
title: String
|
|
19
|
+
},
|
|
18
20
|
// @ts-ignore
|
|
19
21
|
setup: !gh ? undefined : function () {
|
|
20
22
|
var v3 = !!gh;
|
|
@@ -28,7 +30,7 @@ var SchedulerItemContentVue2 = {
|
|
|
28
30
|
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
29
31
|
return h("div", {
|
|
30
32
|
"class": 'k-event-template'
|
|
31
|
-
}, [defaultSlot]);
|
|
33
|
+
}, [this.title, defaultSlot]);
|
|
32
34
|
}
|
|
33
35
|
};
|
|
34
36
|
exports.SchedulerItemContentVue2 = SchedulerItemContentVue2;
|
|
@@ -245,7 +245,44 @@ var SchedulerViewItemVue2 = {
|
|
|
245
245
|
style: __assign({
|
|
246
246
|
visibility: this.visible ? undefined : 'hidden',
|
|
247
247
|
display: this.display ? undefined : 'none'
|
|
248
|
-
}, this.$props.style)
|
|
248
|
+
}, this.$props.style) // Keyboard
|
|
249
|
+
,
|
|
250
|
+
onKeydown: this.handleKeyDown,
|
|
251
|
+
on: this.v3 ? undefined : {
|
|
252
|
+
"keydown": this.handleKeyDown,
|
|
253
|
+
"keyup": this.handleKeyUp,
|
|
254
|
+
"focus": this.handleFocus,
|
|
255
|
+
"mouseup": this.handleMouseUp,
|
|
256
|
+
"mousedown": this.handleMouseDown,
|
|
257
|
+
"click": this.handleClick,
|
|
258
|
+
"doubleclick": this.handleDoubleClick,
|
|
259
|
+
"removeclick": this.handleRemoveClick,
|
|
260
|
+
"press": this.handlePress,
|
|
261
|
+
"drag": this.handleDrag,
|
|
262
|
+
"release": this.handleRelease,
|
|
263
|
+
"resizepress": this.handleResizePress,
|
|
264
|
+
"resizeenddrag": this.handleResizeEndDrag,
|
|
265
|
+
"resizestartdrag": this.handleResizeStartDrag,
|
|
266
|
+
"resizeselease": this.handleResizeRelease
|
|
267
|
+
},
|
|
268
|
+
onKeyup: this.handleKeyUp // Focus
|
|
269
|
+
,
|
|
270
|
+
onFocus: this.handleFocus // Mouse
|
|
271
|
+
,
|
|
272
|
+
onMouseup: this.handleMouseUp,
|
|
273
|
+
onMousedown: this.handleMouseDown,
|
|
274
|
+
onClick: this.handleClick,
|
|
275
|
+
onDoubleclick: this.handleDoubleClick,
|
|
276
|
+
onRemoveclick: this.handleRemoveClick // Drag
|
|
277
|
+
,
|
|
278
|
+
onPress: this.handlePress,
|
|
279
|
+
onDrag: this.handleDrag,
|
|
280
|
+
onRelease: this.handleRelease // Resize
|
|
281
|
+
,
|
|
282
|
+
onResizepress: this.handleResizePress,
|
|
283
|
+
onResizeenddrag: this.handleResizeEndDrag,
|
|
284
|
+
onResizestartdrag: this.handleResizeStartDrag,
|
|
285
|
+
onResizeselease: this.handleResizeRelease
|
|
249
286
|
}, this.v3 ? function () {
|
|
250
287
|
return [!_this2.$props.resizeHint && h("div", {
|
|
251
288
|
title: _this2.itemTitle,
|
|
@@ -254,29 +291,45 @@ var SchedulerViewItemVue2 = {
|
|
|
254
291
|
}
|
|
255
292
|
}, [!_this2.$props.isAllDay && // @ts-ignore function children
|
|
256
293
|
h(SchedulerItemContent_1.SchedulerItemContent, {
|
|
294
|
+
title: _this2.itemTitle,
|
|
295
|
+
attrs: _this2.v3 ? undefined : {
|
|
296
|
+
title: _this2.itemTitle
|
|
297
|
+
},
|
|
257
298
|
"class": "k-event-template k-event-time "
|
|
258
299
|
}, _this2.v3 ? function () {
|
|
259
|
-
return [
|
|
260
|
-
} : [
|
|
300
|
+
return [defaultSlot];
|
|
301
|
+
} : [defaultSlot]), // @ts-ignore function children
|
|
261
302
|
h(SchedulerItemContent_1.SchedulerItemContent, {
|
|
303
|
+
title: _this2.$props.title,
|
|
304
|
+
attrs: _this2.v3 ? undefined : {
|
|
305
|
+
title: _this2.$props.title
|
|
306
|
+
},
|
|
262
307
|
"class": "k-event-template"
|
|
263
308
|
}, _this2.v3 ? function () {
|
|
264
|
-
return [
|
|
265
|
-
} : [
|
|
309
|
+
return [defaultSlot];
|
|
310
|
+
} : [defaultSlot])])];
|
|
266
311
|
} : [!_this2.$props.resizeHint && h("div", {
|
|
267
312
|
title: _this2.itemTitle,
|
|
268
313
|
attrs: _this2.v3 ? undefined : {
|
|
269
314
|
title: _this2.itemTitle
|
|
270
315
|
}
|
|
271
316
|
}, [!_this2.$props.isAllDay && h(SchedulerItemContent_1.SchedulerItemContent, {
|
|
317
|
+
title: _this2.itemTitle,
|
|
318
|
+
attrs: _this2.v3 ? undefined : {
|
|
319
|
+
title: _this2.itemTitle
|
|
320
|
+
},
|
|
272
321
|
"class": "k-event-template k-event-time "
|
|
273
322
|
}, _this2.v3 ? function () {
|
|
274
|
-
return [
|
|
275
|
-
} : [
|
|
323
|
+
return [defaultSlot];
|
|
324
|
+
} : [defaultSlot]), h(SchedulerItemContent_1.SchedulerItemContent, {
|
|
325
|
+
title: _this2.$props.title,
|
|
326
|
+
attrs: _this2.v3 ? undefined : {
|
|
327
|
+
title: _this2.$props.title
|
|
328
|
+
},
|
|
276
329
|
"class": "k-event-template"
|
|
277
330
|
}, _this2.v3 ? function () {
|
|
278
|
-
return [
|
|
279
|
-
} : [
|
|
331
|
+
return [defaultSlot];
|
|
332
|
+
} : [defaultSlot])])]);
|
|
280
333
|
itemRender = kendo_vue_common_1.getTemplate.call(this, {
|
|
281
334
|
h: h,
|
|
282
335
|
template: this.$props.item,
|
|
@@ -286,6 +339,73 @@ var SchedulerViewItemVue2 = {
|
|
|
286
339
|
return itemRender;
|
|
287
340
|
},
|
|
288
341
|
methods: {
|
|
342
|
+
// Focus Handlers
|
|
343
|
+
handleFocus: function handleFocus(e) {
|
|
344
|
+
this.$emit('focus', e);
|
|
345
|
+
},
|
|
346
|
+
handleBlur: function handleBlur(e) {
|
|
347
|
+
this.$emit('blur', e);
|
|
348
|
+
},
|
|
349
|
+
// Mouse Handlers
|
|
350
|
+
handleMouseDown: function handleMouseDown(e) {
|
|
351
|
+
this.$emit('mousedown', e);
|
|
352
|
+
},
|
|
353
|
+
handleClick: function handleClick(e) {
|
|
354
|
+
this.$emit('click', e);
|
|
355
|
+
},
|
|
356
|
+
handleMouseUp: function handleMouseUp(e) {
|
|
357
|
+
this.$emit('mouseup', e);
|
|
358
|
+
},
|
|
359
|
+
handleMouseOver: function handleMouseOver(e) {
|
|
360
|
+
this.$emit('mouseover', e);
|
|
361
|
+
},
|
|
362
|
+
handleMouseOut: function handleMouseOut(e) {
|
|
363
|
+
this.$emit('mouseout', e);
|
|
364
|
+
},
|
|
365
|
+
handleMouseEnter: function handleMouseEnter(e) {
|
|
366
|
+
this.$emit('mouseenter', e);
|
|
367
|
+
},
|
|
368
|
+
handleMouseLeave: function handleMouseLeave(e) {
|
|
369
|
+
this.$emit('mouseleave', e);
|
|
370
|
+
},
|
|
371
|
+
handleDoubleClick: function handleDoubleClick(e) {
|
|
372
|
+
this.$emit('doubleclick', e);
|
|
373
|
+
},
|
|
374
|
+
handleRemoveClick: function handleRemoveClick(e) {
|
|
375
|
+
this.$emit('removeclick', e);
|
|
376
|
+
},
|
|
377
|
+
// Keyboard Handlers
|
|
378
|
+
handleKeyDown: function handleKeyDown(e) {
|
|
379
|
+
this.$emit('keydown', e);
|
|
380
|
+
},
|
|
381
|
+
handleKeyPress: function handleKeyPress(e) {
|
|
382
|
+
this.$emit('keypress', e);
|
|
383
|
+
},
|
|
384
|
+
handleKeyUp: function handleKeyUp(e) {
|
|
385
|
+
this.$emit('keyup', e);
|
|
386
|
+
},
|
|
387
|
+
// Drag Handlers
|
|
388
|
+
handlePress: function handlePress(e) {
|
|
389
|
+
this.$emit('press', e);
|
|
390
|
+
},
|
|
391
|
+
handleDrag: function handleDrag(e) {
|
|
392
|
+
this.$emit('drag', e);
|
|
393
|
+
},
|
|
394
|
+
handleRelease: function handleRelease(e) {
|
|
395
|
+
this.$emit('release', e);
|
|
396
|
+
},
|
|
397
|
+
handleResizePress: function handleResizePress(e) {
|
|
398
|
+
this.$emit('resizepress', e);
|
|
399
|
+
},
|
|
400
|
+
handleResizeStartDrag: function handleResizeStartDrag(e) {
|
|
401
|
+
this.$emit('resizestartdrag', e);
|
|
402
|
+
},
|
|
403
|
+
handleResizeEndDrag: function handleResizeEndDrag(e) {
|
|
404
|
+
this.$emit('resizeenddrag', e);
|
|
405
|
+
},
|
|
406
|
+
handleResizeRelease: function handleResizeRelease(e) {
|
|
407
|
+
this.$emit('resizerelease', e);
|
|
408
|
+
},
|
|
289
409
|
calculateMostSiblings: function calculateMostSiblings(slots, items) {
|
|
290
410
|
var _this = this;
|
|
291
411
|
|
|
@@ -317,6 +437,12 @@ var SchedulerViewItemVue2 = {
|
|
|
317
437
|
align: function align() {
|
|
318
438
|
var _this = this;
|
|
319
439
|
|
|
440
|
+
var element = this.$el.nodeType === 8 ? this.$el.parentElement : this.$el;
|
|
441
|
+
|
|
442
|
+
if (!element) {
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
|
|
320
446
|
var slots = (this.bv.slots || []).filter(function (slot) {
|
|
321
447
|
return slot && _this.inSlot(slot.$props, _this.$props);
|
|
322
448
|
});
|
|
@@ -339,12 +465,12 @@ var SchedulerViewItemVue2 = {
|
|
|
339
465
|
}
|
|
340
466
|
|
|
341
467
|
var rect = utils_2.getRect(firstSlot.$el);
|
|
342
|
-
utils_2.setRect(
|
|
468
|
+
utils_2.setRect(element, rect);
|
|
343
469
|
},
|
|
344
470
|
position: function position() {
|
|
345
471
|
var _this = this;
|
|
346
472
|
|
|
347
|
-
var element = this.$el;
|
|
473
|
+
var element = this.$el.nodeType === 8 ? this.$el.parentElement : this.$el;
|
|
348
474
|
|
|
349
475
|
if (!element) {
|
|
350
476
|
return;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DataItem } from '../../models';
|
|
2
|
+
import { SchedulerEditItemAll } from '../SchedulerEditItem';
|
|
2
3
|
/**
|
|
3
4
|
* Represents the available `action` types for the `SchedulerItemDragItemAction` objects.
|
|
4
5
|
*
|
|
@@ -30,9 +31,4 @@ export interface SchedulerItemDragItemAction {
|
|
|
30
31
|
payload?: DataItem;
|
|
31
32
|
}
|
|
32
33
|
/** @hidden */
|
|
33
|
-
export declare const useDragItem: (
|
|
34
|
-
dataItem: DataItem;
|
|
35
|
-
ignoreIsAllDay?: boolean;
|
|
36
|
-
isAllDay?: boolean;
|
|
37
|
-
onDataaction?: any;
|
|
38
|
-
}, _state: [DataItem, DataItem, any]) => any[];
|
|
34
|
+
export declare const useDragItem: (this: SchedulerEditItemAll, action: SchedulerItemDragItemAction) => void;
|