@progress/kendo-vue-scheduler 3.0.9-dev.202203011321 → 3.1.0
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/Scheduler.js +29 -1
- package/dist/es/components/header/view-selector/ViewSelectorList.js +9 -2
- package/dist/es/context/SchedulerResourceIteratorContext.d.ts +1 -0
- package/dist/es/context/SchedulerResourceIteratorContext.js +2 -1
- package/dist/es/items/SchedulerEditItem.js +7 -8
- package/dist/es/items/SchedulerItem.js +100 -27
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/slots/SchedulerSlot.js +77 -18
- package/dist/es/tasks/SchedulerTask.js +54 -3
- package/dist/es/views/common/VerticalResourceIterator.js +22 -13
- package/dist/npm/Scheduler.js +29 -1
- package/dist/npm/components/header/view-selector/ViewSelectorList.js +9 -2
- package/dist/npm/context/SchedulerResourceIteratorContext.d.ts +1 -0
- package/dist/npm/context/SchedulerResourceIteratorContext.js +2 -1
- package/dist/npm/items/SchedulerEditItem.js +7 -8
- package/dist/npm/items/SchedulerItem.js +100 -27
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/slots/SchedulerSlot.js +76 -17
- package/dist/npm/tasks/SchedulerTask.js +53 -2
- package/dist/npm/views/common/VerticalResourceIterator.js +22 -13
- package/package.json +12 -12
|
@@ -64,11 +64,13 @@ var VerticalResourceIteratorVue2 = {
|
|
|
64
64
|
if (args.depth === args.resources.length || !hasGroups) {
|
|
65
65
|
return (// @ts-ignore function children
|
|
66
66
|
h(SchedulerResourceIteratorContext, {
|
|
67
|
-
|
|
67
|
+
noWrap: true,
|
|
68
68
|
attrs: this.v3 ? undefined : {
|
|
69
|
+
noWrap: true,
|
|
69
70
|
resource: args.resources[args.depth],
|
|
70
71
|
groupIndex: hasGroups ? args.groupIndex : 0
|
|
71
72
|
},
|
|
73
|
+
resource: args.resources[args.depth],
|
|
72
74
|
groupIndex: hasGroups ? args.groupIndex : 0
|
|
73
75
|
}, this.v3 ? function () {
|
|
74
76
|
return [children];
|
|
@@ -146,11 +148,13 @@ var VerticalResourceIteratorVue2 = {
|
|
|
146
148
|
if (args.depth === args.resources.length || !hasGroups) {
|
|
147
149
|
return (// @ts-ignore function children
|
|
148
150
|
h(SchedulerResourceIteratorContext, {
|
|
149
|
-
|
|
151
|
+
noWrap: true,
|
|
150
152
|
attrs: this.v3 ? undefined : {
|
|
153
|
+
noWrap: true,
|
|
151
154
|
resource: args.resources[args.depth],
|
|
152
155
|
groupIndex: hasGroups ? args.groupIndex : undefined
|
|
153
156
|
},
|
|
157
|
+
resource: args.resources[args.depth],
|
|
154
158
|
groupIndex: hasGroups ? args.groupIndex : undefined
|
|
155
159
|
}, this.v3 ? function () {
|
|
156
160
|
return [children];
|
|
@@ -186,19 +190,24 @@ var VerticalResourceIteratorVue2 = {
|
|
|
186
190
|
|
|
187
191
|
var cellChildren = function cellChildren(children, currentResources, currentGroupIndex) {
|
|
188
192
|
var hasGroups = currentResources.length > 0;
|
|
189
|
-
return
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
return (// @ts-ignore function children
|
|
194
|
+
h(SchedulerResourceIteratorContext, {
|
|
195
|
+
noWrap: true,
|
|
196
|
+
attrs: this.v3 ? undefined : {
|
|
197
|
+
noWrap: true,
|
|
198
|
+
resource: currentResources[currentGroupIndex],
|
|
199
|
+
groupIndex: hasGroups ? currentGroupIndex : undefined
|
|
200
|
+
},
|
|
195
201
|
resource: currentResources[currentGroupIndex],
|
|
196
202
|
groupIndex: hasGroups ? currentGroupIndex : undefined
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
203
|
+
}, this.v3 ? function () {
|
|
204
|
+
return [h("div", {
|
|
205
|
+
"class": "k-scheduler-cell k-group-content"
|
|
206
|
+
}, [children])];
|
|
207
|
+
} : [h("div", {
|
|
208
|
+
"class": "k-scheduler-cell k-group-content"
|
|
209
|
+
}, [children])])
|
|
210
|
+
);
|
|
202
211
|
};
|
|
203
212
|
|
|
204
213
|
var cellPrefix = function cellPrefix(currentResources) {
|
package/dist/npm/Scheduler.js
CHANGED
|
@@ -152,7 +152,13 @@ var SchedulerVue2 = {
|
|
|
152
152
|
return {
|
|
153
153
|
ks: this.ks,
|
|
154
154
|
setActiveViewName: this.handleActiveViewNameChange,
|
|
155
|
-
setActiveDate: this.handleDateChange
|
|
155
|
+
setActiveDate: this.handleDateChange,
|
|
156
|
+
itemDoubleClick: this.handleItemDoubleClick,
|
|
157
|
+
itemClick: this.handleItemClick,
|
|
158
|
+
slotDoubleClick: this.handleSlotDoubleClick,
|
|
159
|
+
slotClick: this.handleSlotClick,
|
|
160
|
+
taskDoubleClick: this.handleTaskDoubleClick,
|
|
161
|
+
taskClick: this.handleTaskClick
|
|
156
162
|
};
|
|
157
163
|
},
|
|
158
164
|
data: function data() {
|
|
@@ -199,6 +205,10 @@ var SchedulerVue2 = {
|
|
|
199
205
|
watch: {
|
|
200
206
|
view: function view(newName) {
|
|
201
207
|
this.updatePassedState(newName);
|
|
208
|
+
},
|
|
209
|
+
timezone: function timezone(newName) {
|
|
210
|
+
this.ks.timezone = newName;
|
|
211
|
+
this.updatePassedState();
|
|
202
212
|
}
|
|
203
213
|
},
|
|
204
214
|
// @ts-ignore
|
|
@@ -1161,6 +1171,24 @@ var SchedulerVue2 = {
|
|
|
1161
1171
|
this.$el.style.boxShadow = '';
|
|
1162
1172
|
}
|
|
1163
1173
|
},
|
|
1174
|
+
handleItemClick: function handleItemClick(args) {
|
|
1175
|
+
this.$emit('itemclick', args);
|
|
1176
|
+
},
|
|
1177
|
+
handleItemDoubleClick: function handleItemDoubleClick(args) {
|
|
1178
|
+
this.$emit('itemdoubleclick', args);
|
|
1179
|
+
},
|
|
1180
|
+
handleSlotClick: function handleSlotClick(args) {
|
|
1181
|
+
this.$emit('slotclick', args);
|
|
1182
|
+
},
|
|
1183
|
+
handleSlotDoubleClick: function handleSlotDoubleClick(args) {
|
|
1184
|
+
this.$emit('slotdoubleclick', args);
|
|
1185
|
+
},
|
|
1186
|
+
handleTaskClick: function handleTaskClick(args) {
|
|
1187
|
+
this.$emit('taskclick', args);
|
|
1188
|
+
},
|
|
1189
|
+
handleTaskDoubleClick: function handleTaskDoubleClick(args) {
|
|
1190
|
+
this.$emit('taskdoubleclick', args);
|
|
1191
|
+
},
|
|
1164
1192
|
setDate: function setDate(newDate, event) {
|
|
1165
1193
|
this.ks.currentDate = newDate;
|
|
1166
1194
|
this.updatePassedState();
|
|
@@ -87,7 +87,8 @@ var ViewSelectorListVue2 = {
|
|
|
87
87
|
|
|
88
88
|
return h("div", {
|
|
89
89
|
"class": "k-scheduler-views-wrapper"
|
|
90
|
-
}, [activeView && this.media === 'mobile' &&
|
|
90
|
+
}, [activeView && this.media === 'mobile' && // @ts-ignore function children
|
|
91
|
+
h(kendo_vue_buttons_1.DropDownButton, {
|
|
91
92
|
"class": "k-views-dropdown",
|
|
92
93
|
onItemclick: this.handleItemClick,
|
|
93
94
|
on: this.v3 ? undefined : {
|
|
@@ -122,7 +123,13 @@ var ViewSelectorListVue2 = {
|
|
|
122
123
|
});
|
|
123
124
|
}, this),
|
|
124
125
|
text: activeView.title || activeView.name
|
|
125
|
-
}
|
|
126
|
+
}, this.v3 ? function () {
|
|
127
|
+
return [h("span", {
|
|
128
|
+
"class": "k-icon k-i-arrow-60-down"
|
|
129
|
+
})];
|
|
130
|
+
} : [h("span", {
|
|
131
|
+
"class": "k-icon k-i-arrow-60-down"
|
|
132
|
+
})]), this.media === 'desktop' && // @ts-ignore function children
|
|
126
133
|
h(kendo_vue_buttons_1.ButtonGroup, {
|
|
127
134
|
"class": "k-scheduler-views"
|
|
128
135
|
}, this.v3 ? function () {
|
|
@@ -17,6 +17,7 @@ var SchedulerResourceIteratorContextVue2 = {
|
|
|
17
17
|
name: 'KendoSchedulerResourceIteratorContext',
|
|
18
18
|
inheritAttrs: false,
|
|
19
19
|
props: {
|
|
20
|
+
noWrap: Boolean,
|
|
20
21
|
resource: {
|
|
21
22
|
type: Object,
|
|
22
23
|
default: function _default() {
|
|
@@ -52,7 +53,7 @@ var SchedulerResourceIteratorContextVue2 = {
|
|
|
52
53
|
render: function render(createElement) {
|
|
53
54
|
var h = gh || createElement;
|
|
54
55
|
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
55
|
-
return h("div", {
|
|
56
|
+
return this.$props.noWrap ? defaultSlot[0] : h("div", {
|
|
56
57
|
"class": "k-scheduler-cell k-group-cell"
|
|
57
58
|
}, [defaultSlot]);
|
|
58
59
|
}
|
|
@@ -476,14 +476,13 @@ var SchedulerEditItemVue2 = {
|
|
|
476
476
|
this.$emit('click', event);
|
|
477
477
|
},
|
|
478
478
|
handleDoubleClick: function handleDoubleClick(event) {
|
|
479
|
-
if (this.onDoubleClickAction) {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
}
|
|
479
|
+
if (this.onDoubleClickAction) {// const actions = this.onDoubleClickAction(event, this.props, this.currentState);
|
|
480
|
+
// if (actions) {
|
|
481
|
+
// Array.isArray(actions)
|
|
482
|
+
// ? actions.filter(Boolean).map((action) => action &&
|
|
483
|
+
// this.actionsReducerMap[action.type]({...action, item: this.item}, event))
|
|
484
|
+
// : this.actionsReducerMap[actions.type]({...actions, item: this.item});
|
|
485
|
+
// }
|
|
487
486
|
}
|
|
488
487
|
|
|
489
488
|
this.$emit('doubleclick', event);
|
|
@@ -120,6 +120,12 @@ var SchedulerItemVue2 = {
|
|
|
120
120
|
},
|
|
121
121
|
setItems: {
|
|
122
122
|
default: null
|
|
123
|
+
},
|
|
124
|
+
itemClick: {
|
|
125
|
+
default: null
|
|
126
|
+
},
|
|
127
|
+
itemDoubleClick: {
|
|
128
|
+
default: null
|
|
123
129
|
}
|
|
124
130
|
},
|
|
125
131
|
computed: {
|
|
@@ -252,7 +258,7 @@ var SchedulerItemVue2 = {
|
|
|
252
258
|
"mouseout": this.handleMouseOut,
|
|
253
259
|
"mouseenter": this.handleMouseEnter,
|
|
254
260
|
"mouseleave": this.handleMouseLeave,
|
|
255
|
-
"
|
|
261
|
+
"dblclick": this.handleDoubleClick,
|
|
256
262
|
"keydown": this.handleKeyDown,
|
|
257
263
|
"keypress": this.handleKeyPress,
|
|
258
264
|
"keyup": this.handleKeyUp
|
|
@@ -266,7 +272,7 @@ var SchedulerItemVue2 = {
|
|
|
266
272
|
onMouseout: this.handleMouseOut,
|
|
267
273
|
onMouseenter: this.handleMouseEnter,
|
|
268
274
|
onMouseleave: this.handleMouseLeave,
|
|
269
|
-
|
|
275
|
+
onDblclick: this.handleDoubleClick // Keyboard
|
|
270
276
|
,
|
|
271
277
|
onKeydown: this.handleKeyDown,
|
|
272
278
|
onKeypress: this.handleKeyPress,
|
|
@@ -326,130 +332,197 @@ var SchedulerItemVue2 = {
|
|
|
326
332
|
handleFocus: function handleFocus(event) {
|
|
327
333
|
this.$emit('focus', {
|
|
328
334
|
event: event,
|
|
329
|
-
target:
|
|
335
|
+
target: {
|
|
336
|
+
props: __assign({}, this.$props),
|
|
337
|
+
element: this.$el
|
|
338
|
+
}
|
|
330
339
|
});
|
|
331
340
|
},
|
|
332
341
|
handleBlur: function handleBlur(event) {
|
|
333
342
|
this.$emit('blur', {
|
|
334
343
|
event: event,
|
|
335
|
-
target:
|
|
344
|
+
target: {
|
|
345
|
+
props: __assign({}, this.$props),
|
|
346
|
+
element: this.$el
|
|
347
|
+
}
|
|
336
348
|
});
|
|
337
349
|
},
|
|
338
350
|
// Mouse Handlers
|
|
339
351
|
handleMouseDown: function handleMouseDown(event) {
|
|
340
352
|
this.$emit('mousedown', {
|
|
341
353
|
event: event,
|
|
342
|
-
target:
|
|
354
|
+
target: {
|
|
355
|
+
props: __assign({}, this.$props),
|
|
356
|
+
element: this.$el
|
|
357
|
+
}
|
|
343
358
|
});
|
|
344
359
|
},
|
|
345
360
|
handleClick: function handleClick(event) {
|
|
346
|
-
|
|
361
|
+
var args = {
|
|
347
362
|
event: event,
|
|
348
|
-
target:
|
|
349
|
-
|
|
363
|
+
target: {
|
|
364
|
+
props: __assign({}, this.$props),
|
|
365
|
+
element: this.$el
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
this.$emit('click', args);
|
|
369
|
+
this.itemClick(args);
|
|
350
370
|
},
|
|
351
371
|
handleMouseUp: function handleMouseUp(event) {
|
|
352
372
|
this.$emit('mouseup', {
|
|
353
373
|
event: event,
|
|
354
|
-
target:
|
|
374
|
+
target: {
|
|
375
|
+
props: __assign({}, this.$props),
|
|
376
|
+
element: this.$el
|
|
377
|
+
}
|
|
355
378
|
});
|
|
356
379
|
},
|
|
357
380
|
handleMouseOver: function handleMouseOver(event) {
|
|
358
381
|
this.$emit('mouseover', {
|
|
359
382
|
event: event,
|
|
360
|
-
target:
|
|
383
|
+
target: {
|
|
384
|
+
props: __assign({}, this.$props),
|
|
385
|
+
element: this.$el
|
|
386
|
+
}
|
|
361
387
|
});
|
|
362
388
|
},
|
|
363
389
|
handleMouseOut: function handleMouseOut(event) {
|
|
364
390
|
this.$emit('mouseout', {
|
|
365
391
|
event: event,
|
|
366
|
-
target:
|
|
392
|
+
target: {
|
|
393
|
+
props: __assign({}, this.$props),
|
|
394
|
+
element: this.$el
|
|
395
|
+
}
|
|
367
396
|
});
|
|
368
397
|
},
|
|
369
398
|
handleMouseEnter: function handleMouseEnter(event) {
|
|
370
399
|
this.$emit('mouseenter', {
|
|
371
400
|
event: event,
|
|
372
|
-
target:
|
|
401
|
+
target: {
|
|
402
|
+
props: __assign({}, this.$props),
|
|
403
|
+
element: this.$el
|
|
404
|
+
}
|
|
373
405
|
});
|
|
374
406
|
},
|
|
375
407
|
handleMouseLeave: function handleMouseLeave(event) {
|
|
376
408
|
this.$emit('mouseleave', {
|
|
377
409
|
event: event,
|
|
378
|
-
target:
|
|
410
|
+
target: {
|
|
411
|
+
props: __assign({}, this.$props),
|
|
412
|
+
element: this.$el
|
|
413
|
+
}
|
|
379
414
|
});
|
|
380
415
|
},
|
|
381
416
|
handleDoubleClick: function handleDoubleClick(event) {
|
|
382
|
-
|
|
417
|
+
var args = {
|
|
383
418
|
event: event,
|
|
384
|
-
target:
|
|
385
|
-
|
|
419
|
+
target: {
|
|
420
|
+
props: __assign({}, this.$props),
|
|
421
|
+
element: this.$el
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
this.$emit('doubleclick', args);
|
|
425
|
+
this.itemDoubleClick(args);
|
|
386
426
|
},
|
|
387
427
|
handleRemoveClick: function handleRemoveClick(event) {
|
|
388
428
|
this.$emit('removeclick', {
|
|
389
429
|
event: event,
|
|
390
|
-
target:
|
|
430
|
+
target: {
|
|
431
|
+
props: __assign({}, this.$props),
|
|
432
|
+
element: this.$el
|
|
433
|
+
}
|
|
391
434
|
});
|
|
392
435
|
},
|
|
393
436
|
// Keyboard Handlers
|
|
394
437
|
handleKeyDown: function handleKeyDown(event) {
|
|
395
438
|
this.$emit('keydown', {
|
|
396
439
|
event: event,
|
|
397
|
-
target:
|
|
440
|
+
target: {
|
|
441
|
+
props: __assign({}, this.$props),
|
|
442
|
+
element: this.$el
|
|
443
|
+
}
|
|
398
444
|
});
|
|
399
445
|
},
|
|
400
446
|
handleKeyPress: function handleKeyPress(event) {
|
|
401
447
|
this.$emit('keypress', {
|
|
402
448
|
event: event,
|
|
403
|
-
target:
|
|
449
|
+
target: {
|
|
450
|
+
props: __assign({}, this.$props),
|
|
451
|
+
element: this.$el
|
|
452
|
+
}
|
|
404
453
|
});
|
|
405
454
|
},
|
|
406
455
|
handleKeyUp: function handleKeyUp(event) {
|
|
407
456
|
this.$emit('keyup', {
|
|
408
457
|
event: event,
|
|
409
|
-
target:
|
|
458
|
+
target: {
|
|
459
|
+
props: __assign({}, this.$props),
|
|
460
|
+
element: this.$el
|
|
461
|
+
}
|
|
410
462
|
});
|
|
411
463
|
},
|
|
412
464
|
// Drag Handlers
|
|
413
465
|
handlePress: function handlePress(dragEvent) {
|
|
414
466
|
this.$emit('press', {
|
|
415
467
|
dragEvent: dragEvent,
|
|
416
|
-
target:
|
|
468
|
+
target: {
|
|
469
|
+
props: __assign({}, this.$props),
|
|
470
|
+
element: this.$el
|
|
471
|
+
}
|
|
417
472
|
});
|
|
418
473
|
},
|
|
419
474
|
handleDrag: function handleDrag(dragEvent) {
|
|
420
475
|
this.$emit('drag', {
|
|
421
476
|
dragEvent: dragEvent,
|
|
422
|
-
target:
|
|
477
|
+
target: {
|
|
478
|
+
props: __assign({}, this.$props),
|
|
479
|
+
element: this.$el
|
|
480
|
+
}
|
|
423
481
|
});
|
|
424
482
|
},
|
|
425
483
|
handleRelease: function handleRelease(dragEvent) {
|
|
426
484
|
this.$emit('release', {
|
|
427
485
|
dragEvent: dragEvent,
|
|
428
|
-
target:
|
|
486
|
+
target: {
|
|
487
|
+
props: __assign({}, this.$props),
|
|
488
|
+
element: this.$el
|
|
489
|
+
}
|
|
429
490
|
});
|
|
430
491
|
},
|
|
431
492
|
handleResizePress: function handleResizePress(dragEvent) {
|
|
432
493
|
this.$emit('resizepress', {
|
|
433
494
|
dragEvent: dragEvent,
|
|
434
|
-
target:
|
|
495
|
+
target: {
|
|
496
|
+
props: __assign({}, this.$props),
|
|
497
|
+
element: this.$el
|
|
498
|
+
}
|
|
435
499
|
});
|
|
436
500
|
},
|
|
437
501
|
handleResizeStartDrag: function handleResizeStartDrag(dragEvent) {
|
|
438
502
|
this.$emit('resizestartdrag', {
|
|
439
503
|
dragEvent: dragEvent,
|
|
440
|
-
target:
|
|
504
|
+
target: {
|
|
505
|
+
props: __assign({}, this.$props),
|
|
506
|
+
element: this.$e
|
|
507
|
+
}
|
|
441
508
|
});
|
|
442
509
|
},
|
|
443
510
|
handleResizeEndDrag: function handleResizeEndDrag(dragEvent) {
|
|
444
511
|
this.$emit('resizeenddrag', {
|
|
445
512
|
dragEvent: dragEvent,
|
|
446
|
-
target:
|
|
513
|
+
target: {
|
|
514
|
+
props: __assign({}, this.$props),
|
|
515
|
+
element: this.$el
|
|
516
|
+
}
|
|
447
517
|
});
|
|
448
518
|
},
|
|
449
519
|
handleResizeRelease: function handleResizeRelease(dragEvent) {
|
|
450
520
|
this.$emit('resizerelease', {
|
|
451
521
|
dragEvent: dragEvent,
|
|
452
|
-
target:
|
|
522
|
+
target: {
|
|
523
|
+
props: __assign({}, this.$props),
|
|
524
|
+
element: this.$e
|
|
525
|
+
}
|
|
453
526
|
});
|
|
454
527
|
}
|
|
455
528
|
}
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-scheduler',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1646205551,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
14
14
|
};
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var __assign = undefined && undefined.__assign || function () {
|
|
4
|
+
__assign = Object.assign || function (t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
|
|
8
|
+
for (var p in s) {
|
|
9
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
return __assign.apply(this, arguments);
|
|
17
|
+
};
|
|
18
|
+
|
|
3
19
|
Object.defineProperty(exports, "__esModule", {
|
|
4
20
|
value: true
|
|
5
21
|
});
|
|
@@ -64,6 +80,12 @@ var SchedulerSlotVue2 = {
|
|
|
64
80
|
},
|
|
65
81
|
setSlots: {
|
|
66
82
|
default: null
|
|
83
|
+
},
|
|
84
|
+
slotClick: {
|
|
85
|
+
default: null
|
|
86
|
+
},
|
|
87
|
+
slotDoubleClick: {
|
|
88
|
+
default: null
|
|
67
89
|
}
|
|
68
90
|
},
|
|
69
91
|
created: function created() {
|
|
@@ -130,7 +152,7 @@ var SchedulerSlotVue2 = {
|
|
|
130
152
|
"mouseleave": this.handleMouseLeave,
|
|
131
153
|
"mouseover": this.handleMouseOver,
|
|
132
154
|
"mouseout": this.handleMouseOut,
|
|
133
|
-
"
|
|
155
|
+
"dblclick": this.handleDoubleClick,
|
|
134
156
|
"keydown": this.handleKeyDown,
|
|
135
157
|
"keypress": this.handleKeyPress,
|
|
136
158
|
"keyup": this.handleKeyUp
|
|
@@ -142,7 +164,7 @@ var SchedulerSlotVue2 = {
|
|
|
142
164
|
onMouseleave: this.handleMouseLeave,
|
|
143
165
|
onMouseover: this.handleMouseOver,
|
|
144
166
|
onMouseout: this.handleMouseOut,
|
|
145
|
-
|
|
167
|
+
onDblclick: this.handleDoubleClick // Keyboard
|
|
146
168
|
,
|
|
147
169
|
onKeydown: this.handleKeyDown,
|
|
148
170
|
onKeypress: this.handleKeyPress,
|
|
@@ -160,67 +182,104 @@ var SchedulerSlotVue2 = {
|
|
|
160
182
|
handleFocus: function handleFocus(event) {
|
|
161
183
|
this.$emit('focus', {
|
|
162
184
|
event: event,
|
|
163
|
-
target:
|
|
185
|
+
target: {
|
|
186
|
+
props: __assign({}, this.$props),
|
|
187
|
+
element: this.$el
|
|
188
|
+
}
|
|
164
189
|
});
|
|
165
190
|
},
|
|
166
191
|
handleBlur: function handleBlur(event) {
|
|
167
192
|
this.$emit('blur', {
|
|
168
193
|
event: event,
|
|
169
|
-
target:
|
|
194
|
+
target: {
|
|
195
|
+
props: __assign({}, this.$props),
|
|
196
|
+
element: this.$el
|
|
197
|
+
}
|
|
170
198
|
});
|
|
171
199
|
},
|
|
172
200
|
handleClick: function handleClick(event) {
|
|
173
|
-
|
|
201
|
+
var args = {
|
|
174
202
|
event: event,
|
|
175
|
-
target:
|
|
176
|
-
|
|
203
|
+
target: {
|
|
204
|
+
props: __assign({}, this.$props),
|
|
205
|
+
element: this.$el
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
this.$emit('click', args);
|
|
209
|
+
this.slotClick(args);
|
|
177
210
|
},
|
|
178
211
|
handleMouseOver: function handleMouseOver(event) {
|
|
179
212
|
this.$emit('mouseover', {
|
|
180
213
|
event: event,
|
|
181
|
-
target:
|
|
214
|
+
target: {
|
|
215
|
+
props: __assign({}, this.$props),
|
|
216
|
+
element: this.$el
|
|
217
|
+
}
|
|
182
218
|
});
|
|
183
219
|
},
|
|
184
220
|
handleMouseOut: function handleMouseOut(event) {
|
|
185
221
|
this.$emit('mouseout', {
|
|
186
222
|
event: event,
|
|
187
|
-
target:
|
|
223
|
+
target: {
|
|
224
|
+
props: __assign({}, this.$props),
|
|
225
|
+
element: this.$el
|
|
226
|
+
}
|
|
188
227
|
});
|
|
189
228
|
},
|
|
190
229
|
handleMouseEnter: function handleMouseEnter(event) {
|
|
191
230
|
this.$emit('mouseenter', {
|
|
192
231
|
event: event,
|
|
193
|
-
target:
|
|
232
|
+
target: {
|
|
233
|
+
props: __assign({}, this.$props),
|
|
234
|
+
element: this.$el
|
|
235
|
+
}
|
|
194
236
|
});
|
|
195
237
|
},
|
|
196
238
|
handleMouseLeave: function handleMouseLeave(event) {
|
|
197
239
|
this.$emit('mouseleave', {
|
|
198
240
|
event: event,
|
|
199
|
-
target:
|
|
241
|
+
target: {
|
|
242
|
+
props: __assign({}, this.$props),
|
|
243
|
+
element: this.$el
|
|
244
|
+
}
|
|
200
245
|
});
|
|
201
246
|
},
|
|
202
247
|
handleDoubleClick: function handleDoubleClick(event) {
|
|
203
|
-
|
|
248
|
+
var args = {
|
|
204
249
|
event: event,
|
|
205
|
-
target:
|
|
206
|
-
|
|
250
|
+
target: {
|
|
251
|
+
props: __assign({}, this.$props),
|
|
252
|
+
element: this.$el
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
this.$emit('doubleclick', args);
|
|
256
|
+
this.slotDoubleClick(args);
|
|
207
257
|
},
|
|
208
258
|
handleKeyDown: function handleKeyDown(event) {
|
|
209
259
|
this.$emit('keydown', {
|
|
210
260
|
event: event,
|
|
211
|
-
target:
|
|
261
|
+
target: {
|
|
262
|
+
props: __assign({}, this.$props),
|
|
263
|
+
element: this.$el
|
|
264
|
+
}
|
|
212
265
|
});
|
|
213
266
|
},
|
|
214
267
|
handleKeyPress: function handleKeyPress(event) {
|
|
215
268
|
this.$emit('keydown', {
|
|
216
269
|
event: event,
|
|
217
|
-
target:
|
|
270
|
+
target: {
|
|
271
|
+
props: __assign({}, this.$props),
|
|
272
|
+
element: this.$el
|
|
273
|
+
}
|
|
218
274
|
});
|
|
219
275
|
},
|
|
220
276
|
handleKeyUp: function handleKeyUp(event) {
|
|
221
277
|
this.$emit('keyup', {
|
|
222
278
|
event: event,
|
|
223
|
-
target:
|
|
279
|
+
target: {
|
|
280
|
+
props: __assign({}, this.$props),
|
|
281
|
+
element: this.$el
|
|
282
|
+
}
|
|
224
283
|
});
|
|
225
284
|
}
|
|
226
285
|
}
|