@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
|
@@ -217,110 +217,119 @@ var SchedulerItemVue2 = {
|
|
|
217
217
|
// onRelease: this.handleResizeRelease
|
|
218
218
|
// });
|
|
219
219
|
|
|
220
|
-
return
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
return (// <Draggable
|
|
221
|
+
// onPress={this.handlePress}
|
|
222
|
+
// onDrag={this.handleDrag}
|
|
223
|
+
// onRelease={this.handleRelease}
|
|
224
|
+
// ref={'draggable'}
|
|
225
|
+
// >
|
|
226
|
+
// @ts-ignore function children
|
|
227
|
+
h("div", {
|
|
223
228
|
id: this.$props.id,
|
|
229
|
+
attrs: this.v3 ? undefined : {
|
|
230
|
+
id: this.$props.id,
|
|
231
|
+
tabIndex: this.currentTabIndex,
|
|
232
|
+
// Aria
|
|
233
|
+
"aria-label": this.eventLabel,
|
|
234
|
+
"aria-selected": this.$props.selected // Focus
|
|
235
|
+
,
|
|
236
|
+
"data-group-index": this.$props.group.index,
|
|
237
|
+
"data-range-index": this.$props.range.index
|
|
238
|
+
},
|
|
239
|
+
style: this.computedStyle,
|
|
224
240
|
tabIndex: this.currentTabIndex,
|
|
225
|
-
|
|
241
|
+
"class": this.itemClassName,
|
|
226
242
|
"aria-label": this.eventLabel,
|
|
227
|
-
"aria-selected": this.$props.selected
|
|
243
|
+
"aria-selected": this.$props.selected,
|
|
244
|
+
onFocus: this.handleFocus,
|
|
245
|
+
on: this.v3 ? undefined : {
|
|
246
|
+
"focus": this.handleFocus,
|
|
247
|
+
"blur": this.handleBlur,
|
|
248
|
+
"mouseup": this.handleMouseUp,
|
|
249
|
+
"mousedown": this.handleMouseDown,
|
|
250
|
+
"click": this.handleClick,
|
|
251
|
+
"mouseover": this.handleMouseOver,
|
|
252
|
+
"mouseout": this.handleMouseOut,
|
|
253
|
+
"mouseenter": this.handleMouseEnter,
|
|
254
|
+
"mouseleave": this.handleMouseLeave,
|
|
255
|
+
"dblclick": this.handleDoubleClick,
|
|
256
|
+
"keydown": this.handleKeyDown,
|
|
257
|
+
"keypress": this.handleKeyPress,
|
|
258
|
+
"keyup": this.handleKeyUp
|
|
259
|
+
},
|
|
260
|
+
onBlur: this.handleBlur // Mouse
|
|
228
261
|
,
|
|
262
|
+
onMouseup: this.handleMouseUp,
|
|
263
|
+
onMousedown: this.handleMouseDown,
|
|
264
|
+
onClick: this.handleClick,
|
|
265
|
+
onMouseover: this.handleMouseOver,
|
|
266
|
+
onMouseout: this.handleMouseOut,
|
|
267
|
+
onMouseenter: this.handleMouseEnter,
|
|
268
|
+
onMouseleave: this.handleMouseLeave,
|
|
269
|
+
onDblclick: this.handleDoubleClick // Keyboard
|
|
270
|
+
,
|
|
271
|
+
onKeydown: this.handleKeyDown,
|
|
272
|
+
onKeypress: this.handleKeyPress,
|
|
273
|
+
onKeyup: this.handleKeyUp,
|
|
229
274
|
"data-group-index": this.$props.group.index,
|
|
230
275
|
"data-range-index": this.$props.range.index
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
"
|
|
241
|
-
|
|
242
|
-
"mousedown": this.handleMouseDown,
|
|
243
|
-
"click": this.handleClick,
|
|
244
|
-
"mouseover": this.handleMouseOver,
|
|
245
|
-
"mouseout": this.handleMouseOut,
|
|
246
|
-
"mouseenter": this.handleMouseEnter,
|
|
247
|
-
"mouseleave": this.handleMouseLeave,
|
|
248
|
-
"dblclick": this.handleDoubleClick,
|
|
249
|
-
"keydown": this.handleKeyDown,
|
|
250
|
-
"keypress": this.handleKeyPress,
|
|
251
|
-
"keyup": this.handleKeyUp
|
|
252
|
-
},
|
|
253
|
-
onBlur: this.handleBlur // Mouse
|
|
254
|
-
,
|
|
255
|
-
onMouseup: this.handleMouseUp,
|
|
256
|
-
onMousedown: this.handleMouseDown,
|
|
257
|
-
onClick: this.handleClick,
|
|
258
|
-
onMouseover: this.handleMouseOver,
|
|
259
|
-
onMouseout: this.handleMouseOut,
|
|
260
|
-
onMouseenter: this.handleMouseEnter,
|
|
261
|
-
onMouseleave: this.handleMouseLeave,
|
|
262
|
-
onDblclick: this.handleDoubleClick // Keyboard
|
|
263
|
-
,
|
|
264
|
-
onKeydown: this.handleKeyDown,
|
|
265
|
-
onKeypress: this.handleKeyPress,
|
|
266
|
-
onKeyup: this.handleKeyUp,
|
|
267
|
-
"data-group-index": this.$props.group.index,
|
|
268
|
-
"data-range-index": this.$props.range.index
|
|
269
|
-
}, [!this.$props.resizeHint && h("span", {
|
|
270
|
-
"class": "k-event-actions"
|
|
271
|
-
}, [this.$props.tail && h("span", {
|
|
272
|
-
"class": "k-icon k-i-arrow-60-left"
|
|
273
|
-
}), this.$props.isRecurring && !this.$props.isException && h("span", {
|
|
274
|
-
"class": "k-icon k-i-reload"
|
|
275
|
-
}), !this.$props.isRecurring && this.$props.isException && h("span", {
|
|
276
|
-
"class": "k-icon k-i-non-recurrence"
|
|
277
|
-
})]), defaultSlot, !this.$props.resizeHint && h("span", {
|
|
278
|
-
"class": "k-event-actions"
|
|
279
|
-
}, [editable.remove && h("a", {
|
|
280
|
-
tabIndex: -1,
|
|
281
|
-
attrs: this.v3 ? undefined : {
|
|
276
|
+
}, [!this.$props.resizeHint && h("span", {
|
|
277
|
+
"class": "k-event-actions"
|
|
278
|
+
}, [this.$props.tail && h("span", {
|
|
279
|
+
"class": "k-icon k-i-arrow-60-left"
|
|
280
|
+
}), this.$props.isRecurring && !this.$props.isException && h("span", {
|
|
281
|
+
"class": "k-icon k-i-reload"
|
|
282
|
+
}), !this.$props.isRecurring && this.$props.isException && h("span", {
|
|
283
|
+
"class": "k-icon k-i-non-recurrence"
|
|
284
|
+
})]), defaultSlot, !this.$props.resizeHint && h("span", {
|
|
285
|
+
"class": "k-event-actions"
|
|
286
|
+
}, [editable.remove && h("a", {
|
|
282
287
|
tabIndex: -1,
|
|
288
|
+
attrs: this.v3 ? undefined : {
|
|
289
|
+
tabIndex: -1,
|
|
290
|
+
"aria-hidden": "true",
|
|
291
|
+
title: deleteMessage,
|
|
292
|
+
"aria-label": deleteMessage
|
|
293
|
+
},
|
|
283
294
|
"aria-hidden": "true",
|
|
295
|
+
"class": "k-link k-event-delete",
|
|
284
296
|
title: deleteMessage,
|
|
285
|
-
"aria-label": deleteMessage
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
"
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
"
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}, [this.intl.formatDate(this.$props.zonedStart, this.$props.format)]), !this.$props.head && h("div", {
|
|
322
|
-
"class": "k-label-bottom"
|
|
323
|
-
}, [this.intl.formatDate(this.$props.zonedEnd, this.$props.format)])])]]);
|
|
297
|
+
"aria-label": deleteMessage,
|
|
298
|
+
onClick: this.handleRemoveClick,
|
|
299
|
+
on: this.v3 ? undefined : {
|
|
300
|
+
"click": this.handleRemoveClick
|
|
301
|
+
}
|
|
302
|
+
}, [h("span", {
|
|
303
|
+
"class": "k-icon k-i-close"
|
|
304
|
+
})]), this.$props.head && h("span", {
|
|
305
|
+
"class": "k-icon k-i-arrow-60-right"
|
|
306
|
+
})]), editable.resize && this.$props.vertical && [h("span", {
|
|
307
|
+
"class": "k-resize-handle k-resize-n",
|
|
308
|
+
ref: this.resizeNorth
|
|
309
|
+
}), h("span", {
|
|
310
|
+
"class": "k-resize-handle k-resize-s",
|
|
311
|
+
ref: this.resizeSouth
|
|
312
|
+
})], editable.resize && !this.$props.vertical && [h("span", {
|
|
313
|
+
"class": "k-resize-handle k-resize-w",
|
|
314
|
+
ref: this.resizeWest
|
|
315
|
+
}), h("span", {
|
|
316
|
+
"class": "k-resize-handle k-resize-e",
|
|
317
|
+
ref: this.resizeEast
|
|
318
|
+
})], this.$props.resizeHint && [h("div", {
|
|
319
|
+
"class": "k-marquee-color",
|
|
320
|
+
style: {
|
|
321
|
+
borderColor: this.color,
|
|
322
|
+
backgroundColor: this.color
|
|
323
|
+
}
|
|
324
|
+
}), h("div", {
|
|
325
|
+
"class": "k-marquee-text"
|
|
326
|
+
}, [!this.$props.tail && h("div", {
|
|
327
|
+
"class": "k-label-top"
|
|
328
|
+
}, [this.intl.formatDate(this.$props.zonedStart, this.$props.format)]), !this.$props.head && h("div", {
|
|
329
|
+
"class": "k-label-bottom"
|
|
330
|
+
}, [this.intl.formatDate(this.$props.zonedEnd, this.$props.format)])])]]) // </Draggable>
|
|
331
|
+
|
|
332
|
+
);
|
|
324
333
|
},
|
|
325
334
|
methods: {
|
|
326
335
|
// Focus Handlers
|
|
@@ -6,7 +6,9 @@ var gh = allVue.h; // tslint:enable:max-line-length
|
|
|
6
6
|
|
|
7
7
|
var SchedulerItemContentVue2 = {
|
|
8
8
|
name: 'KendoSchedulerItemContent',
|
|
9
|
-
props: {
|
|
9
|
+
props: {
|
|
10
|
+
title: String
|
|
11
|
+
},
|
|
10
12
|
// @ts-ignore
|
|
11
13
|
setup: !gh ? undefined : function () {
|
|
12
14
|
var v3 = !!gh;
|
|
@@ -20,7 +22,7 @@ var SchedulerItemContentVue2 = {
|
|
|
20
22
|
var defaultSlot = getDefaultSlots(this);
|
|
21
23
|
return h("div", {
|
|
22
24
|
"class": 'k-event-template'
|
|
23
|
-
}, [defaultSlot]);
|
|
25
|
+
}, [this.title, defaultSlot]);
|
|
24
26
|
}
|
|
25
27
|
};
|
|
26
28
|
var SchedulerItemContent = SchedulerItemContentVue2;
|
|
@@ -230,7 +230,44 @@ var SchedulerViewItemVue2 = {
|
|
|
230
230
|
style: __assign({
|
|
231
231
|
visibility: this.visible ? undefined : 'hidden',
|
|
232
232
|
display: this.display ? undefined : 'none'
|
|
233
|
-
}, this.$props.style)
|
|
233
|
+
}, this.$props.style) // Keyboard
|
|
234
|
+
,
|
|
235
|
+
onKeydown: this.handleKeyDown,
|
|
236
|
+
on: this.v3 ? undefined : {
|
|
237
|
+
"keydown": this.handleKeyDown,
|
|
238
|
+
"keyup": this.handleKeyUp,
|
|
239
|
+
"focus": this.handleFocus,
|
|
240
|
+
"mouseup": this.handleMouseUp,
|
|
241
|
+
"mousedown": this.handleMouseDown,
|
|
242
|
+
"click": this.handleClick,
|
|
243
|
+
"doubleclick": this.handleDoubleClick,
|
|
244
|
+
"removeclick": this.handleRemoveClick,
|
|
245
|
+
"press": this.handlePress,
|
|
246
|
+
"drag": this.handleDrag,
|
|
247
|
+
"release": this.handleRelease,
|
|
248
|
+
"resizepress": this.handleResizePress,
|
|
249
|
+
"resizeenddrag": this.handleResizeEndDrag,
|
|
250
|
+
"resizestartdrag": this.handleResizeStartDrag,
|
|
251
|
+
"resizeselease": this.handleResizeRelease
|
|
252
|
+
},
|
|
253
|
+
onKeyup: this.handleKeyUp // Focus
|
|
254
|
+
,
|
|
255
|
+
onFocus: this.handleFocus // Mouse
|
|
256
|
+
,
|
|
257
|
+
onMouseup: this.handleMouseUp,
|
|
258
|
+
onMousedown: this.handleMouseDown,
|
|
259
|
+
onClick: this.handleClick,
|
|
260
|
+
onDoubleclick: this.handleDoubleClick,
|
|
261
|
+
onRemoveclick: this.handleRemoveClick // Drag
|
|
262
|
+
,
|
|
263
|
+
onPress: this.handlePress,
|
|
264
|
+
onDrag: this.handleDrag,
|
|
265
|
+
onRelease: this.handleRelease // Resize
|
|
266
|
+
,
|
|
267
|
+
onResizepress: this.handleResizePress,
|
|
268
|
+
onResizeenddrag: this.handleResizeEndDrag,
|
|
269
|
+
onResizestartdrag: this.handleResizeStartDrag,
|
|
270
|
+
onResizeselease: this.handleResizeRelease
|
|
234
271
|
}, this.v3 ? function () {
|
|
235
272
|
return [!_this2.$props.resizeHint && h("div", {
|
|
236
273
|
title: _this2.itemTitle,
|
|
@@ -239,29 +276,45 @@ var SchedulerViewItemVue2 = {
|
|
|
239
276
|
}
|
|
240
277
|
}, [!_this2.$props.isAllDay && // @ts-ignore function children
|
|
241
278
|
h(SchedulerItemContent, {
|
|
279
|
+
title: _this2.itemTitle,
|
|
280
|
+
attrs: _this2.v3 ? undefined : {
|
|
281
|
+
title: _this2.itemTitle
|
|
282
|
+
},
|
|
242
283
|
"class": "k-event-template k-event-time "
|
|
243
284
|
}, _this2.v3 ? function () {
|
|
244
|
-
return [
|
|
245
|
-
} : [
|
|
285
|
+
return [defaultSlot];
|
|
286
|
+
} : [defaultSlot]), // @ts-ignore function children
|
|
246
287
|
h(SchedulerItemContent, {
|
|
288
|
+
title: _this2.$props.title,
|
|
289
|
+
attrs: _this2.v3 ? undefined : {
|
|
290
|
+
title: _this2.$props.title
|
|
291
|
+
},
|
|
247
292
|
"class": "k-event-template"
|
|
248
293
|
}, _this2.v3 ? function () {
|
|
249
|
-
return [
|
|
250
|
-
} : [
|
|
294
|
+
return [defaultSlot];
|
|
295
|
+
} : [defaultSlot])])];
|
|
251
296
|
} : [!_this2.$props.resizeHint && h("div", {
|
|
252
297
|
title: _this2.itemTitle,
|
|
253
298
|
attrs: _this2.v3 ? undefined : {
|
|
254
299
|
title: _this2.itemTitle
|
|
255
300
|
}
|
|
256
301
|
}, [!_this2.$props.isAllDay && h(SchedulerItemContent, {
|
|
302
|
+
title: _this2.itemTitle,
|
|
303
|
+
attrs: _this2.v3 ? undefined : {
|
|
304
|
+
title: _this2.itemTitle
|
|
305
|
+
},
|
|
257
306
|
"class": "k-event-template k-event-time "
|
|
258
307
|
}, _this2.v3 ? function () {
|
|
259
|
-
return [
|
|
260
|
-
} : [
|
|
308
|
+
return [defaultSlot];
|
|
309
|
+
} : [defaultSlot]), h(SchedulerItemContent, {
|
|
310
|
+
title: _this2.$props.title,
|
|
311
|
+
attrs: _this2.v3 ? undefined : {
|
|
312
|
+
title: _this2.$props.title
|
|
313
|
+
},
|
|
261
314
|
"class": "k-event-template"
|
|
262
315
|
}, _this2.v3 ? function () {
|
|
263
|
-
return [
|
|
264
|
-
} : [
|
|
316
|
+
return [defaultSlot];
|
|
317
|
+
} : [defaultSlot])])]);
|
|
265
318
|
itemRender = getTemplate.call(this, {
|
|
266
319
|
h: h,
|
|
267
320
|
template: this.$props.item,
|
|
@@ -271,6 +324,73 @@ var SchedulerViewItemVue2 = {
|
|
|
271
324
|
return itemRender;
|
|
272
325
|
},
|
|
273
326
|
methods: {
|
|
327
|
+
// Focus Handlers
|
|
328
|
+
handleFocus: function handleFocus(e) {
|
|
329
|
+
this.$emit('focus', e);
|
|
330
|
+
},
|
|
331
|
+
handleBlur: function handleBlur(e) {
|
|
332
|
+
this.$emit('blur', e);
|
|
333
|
+
},
|
|
334
|
+
// Mouse Handlers
|
|
335
|
+
handleMouseDown: function handleMouseDown(e) {
|
|
336
|
+
this.$emit('mousedown', e);
|
|
337
|
+
},
|
|
338
|
+
handleClick: function handleClick(e) {
|
|
339
|
+
this.$emit('click', e);
|
|
340
|
+
},
|
|
341
|
+
handleMouseUp: function handleMouseUp(e) {
|
|
342
|
+
this.$emit('mouseup', e);
|
|
343
|
+
},
|
|
344
|
+
handleMouseOver: function handleMouseOver(e) {
|
|
345
|
+
this.$emit('mouseover', e);
|
|
346
|
+
},
|
|
347
|
+
handleMouseOut: function handleMouseOut(e) {
|
|
348
|
+
this.$emit('mouseout', e);
|
|
349
|
+
},
|
|
350
|
+
handleMouseEnter: function handleMouseEnter(e) {
|
|
351
|
+
this.$emit('mouseenter', e);
|
|
352
|
+
},
|
|
353
|
+
handleMouseLeave: function handleMouseLeave(e) {
|
|
354
|
+
this.$emit('mouseleave', e);
|
|
355
|
+
},
|
|
356
|
+
handleDoubleClick: function handleDoubleClick(e) {
|
|
357
|
+
this.$emit('doubleclick', e);
|
|
358
|
+
},
|
|
359
|
+
handleRemoveClick: function handleRemoveClick(e) {
|
|
360
|
+
this.$emit('removeclick', e);
|
|
361
|
+
},
|
|
362
|
+
// Keyboard Handlers
|
|
363
|
+
handleKeyDown: function handleKeyDown(e) {
|
|
364
|
+
this.$emit('keydown', e);
|
|
365
|
+
},
|
|
366
|
+
handleKeyPress: function handleKeyPress(e) {
|
|
367
|
+
this.$emit('keypress', e);
|
|
368
|
+
},
|
|
369
|
+
handleKeyUp: function handleKeyUp(e) {
|
|
370
|
+
this.$emit('keyup', e);
|
|
371
|
+
},
|
|
372
|
+
// Drag Handlers
|
|
373
|
+
handlePress: function handlePress(e) {
|
|
374
|
+
this.$emit('press', e);
|
|
375
|
+
},
|
|
376
|
+
handleDrag: function handleDrag(e) {
|
|
377
|
+
this.$emit('drag', e);
|
|
378
|
+
},
|
|
379
|
+
handleRelease: function handleRelease(e) {
|
|
380
|
+
this.$emit('release', e);
|
|
381
|
+
},
|
|
382
|
+
handleResizePress: function handleResizePress(e) {
|
|
383
|
+
this.$emit('resizepress', e);
|
|
384
|
+
},
|
|
385
|
+
handleResizeStartDrag: function handleResizeStartDrag(e) {
|
|
386
|
+
this.$emit('resizestartdrag', e);
|
|
387
|
+
},
|
|
388
|
+
handleResizeEndDrag: function handleResizeEndDrag(e) {
|
|
389
|
+
this.$emit('resizeenddrag', e);
|
|
390
|
+
},
|
|
391
|
+
handleResizeRelease: function handleResizeRelease(e) {
|
|
392
|
+
this.$emit('resizerelease', e);
|
|
393
|
+
},
|
|
274
394
|
calculateMostSiblings: function calculateMostSiblings(slots, items) {
|
|
275
395
|
var _this = this;
|
|
276
396
|
|
|
@@ -302,6 +422,12 @@ var SchedulerViewItemVue2 = {
|
|
|
302
422
|
align: function align() {
|
|
303
423
|
var _this = this;
|
|
304
424
|
|
|
425
|
+
var element = this.$el.nodeType === 8 ? this.$el.parentElement : this.$el;
|
|
426
|
+
|
|
427
|
+
if (!element) {
|
|
428
|
+
return;
|
|
429
|
+
}
|
|
430
|
+
|
|
305
431
|
var slots = (this.bv.slots || []).filter(function (slot) {
|
|
306
432
|
return slot && _this.inSlot(slot.$props, _this.$props);
|
|
307
433
|
});
|
|
@@ -324,12 +450,12 @@ var SchedulerViewItemVue2 = {
|
|
|
324
450
|
}
|
|
325
451
|
|
|
326
452
|
var rect = getRect(firstSlot.$el);
|
|
327
|
-
setRect(
|
|
453
|
+
setRect(element, rect);
|
|
328
454
|
},
|
|
329
455
|
position: function position() {
|
|
330
456
|
var _this = this;
|
|
331
457
|
|
|
332
|
-
var element = this.$el;
|
|
458
|
+
var element = this.$el.nodeType === 8 ? this.$el.parentElement : this.$el;
|
|
333
459
|
|
|
334
460
|
if (!element) {
|
|
335
461
|
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;
|