@progress/kendo-vue-scheduler 3.1.3-dev.202203311441 → 3.1.4
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/items/SchedulerEditItem.js +130 -33
- package/dist/es/items/SchedulerItemContent.js +4 -2
- package/dist/es/items/SchedulerViewItem.js +129 -9
- package/dist/es/items/hooks/use-series.d.ts +1 -0
- package/dist/es/items/hooks/use-series.js +1 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/recurrence/common.js +2 -1
- package/dist/npm/items/SchedulerEditItem.js +130 -30
- package/dist/npm/items/SchedulerItemContent.js +4 -2
- package/dist/npm/items/SchedulerViewItem.js +129 -9
- package/dist/npm/items/hooks/use-series.d.ts +1 -0
- package/dist/npm/items/hooks/use-series.js +2 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/recurrence/common.js +2 -1
- package/package.json +12 -12
|
@@ -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
|
});
|
|
@@ -11,6 +27,10 @@ var allVue = Vue;
|
|
|
11
27
|
var gh = allVue.h;
|
|
12
28
|
var inject = allVue.inject;
|
|
13
29
|
|
|
30
|
+
var SchedulerForm_1 = require("../components/SchedulerForm");
|
|
31
|
+
|
|
32
|
+
var Scheduler_1 = require("../Scheduler");
|
|
33
|
+
|
|
14
34
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
15
35
|
|
|
16
36
|
var SchedulerViewItem_1 = require("./SchedulerViewItem");
|
|
@@ -31,7 +51,9 @@ var use_resize_item_1 = require("./hooks/use-resize-item");
|
|
|
31
51
|
|
|
32
52
|
var use_series_1 = require("./hooks/use-series");
|
|
33
53
|
|
|
34
|
-
var use_items_selection_1 = require("../hooks/use-items-selection");
|
|
54
|
+
var use_items_selection_1 = require("../hooks/use-items-selection");
|
|
55
|
+
|
|
56
|
+
var utils_1 = require("../utils"); // tslint:enable:max-line-length
|
|
35
57
|
|
|
36
58
|
|
|
37
59
|
var SchedulerEditItemVue2 = {
|
|
@@ -90,6 +112,9 @@ var SchedulerEditItemVue2 = {
|
|
|
90
112
|
inject: {
|
|
91
113
|
bv: {
|
|
92
114
|
default: null
|
|
115
|
+
},
|
|
116
|
+
ks: {
|
|
117
|
+
default: null
|
|
93
118
|
}
|
|
94
119
|
},
|
|
95
120
|
provide: function provide() {
|
|
@@ -109,11 +134,22 @@ var SchedulerEditItemVue2 = {
|
|
|
109
134
|
showOccurrenceDialog: this.showOccurrenceDialog
|
|
110
135
|
},
|
|
111
136
|
currentTabIndex: this.$props.tabIndex,
|
|
112
|
-
|
|
137
|
+
currentFormItem: null,
|
|
138
|
+
currentSelected: null,
|
|
139
|
+
currentSeries: null // item: null
|
|
113
140
|
|
|
114
141
|
};
|
|
115
142
|
},
|
|
116
143
|
computed: {
|
|
144
|
+
compSelected: function compSelected() {
|
|
145
|
+
return this.selected !== undefined ? this.selected : this.currentSelected;
|
|
146
|
+
},
|
|
147
|
+
compSeries: function compSeries() {
|
|
148
|
+
return this.series !== undefined ? this.series : this.currentSeries;
|
|
149
|
+
},
|
|
150
|
+
compFormItem: function compFormItem() {
|
|
151
|
+
return this.formItem !== undefined ? this.formItem : this.currentFormItem;
|
|
152
|
+
},
|
|
117
153
|
currentState: function currentState() {
|
|
118
154
|
return {
|
|
119
155
|
selected: this.selected,
|
|
@@ -361,7 +397,20 @@ var SchedulerEditItemVue2 = {
|
|
|
361
397
|
onResizeenddrag: this.handleResizeEndDrag,
|
|
362
398
|
onResizestartdrag: this.handleResizeStartDrag,
|
|
363
399
|
onResizeselease: this.handleResizeRelease
|
|
364
|
-
}
|
|
400
|
+
}, [this.compFormItem && !showOccurrenceDialog && editable.edit && h(SchedulerForm_1.SchedulerForm, {
|
|
401
|
+
dataItem: this.compFormItem,
|
|
402
|
+
attrs: this.v3 ? undefined : {
|
|
403
|
+
dataItem: this.compFormItem
|
|
404
|
+
},
|
|
405
|
+
onSubmit: this.handleFormSubmit,
|
|
406
|
+
on: this.v3 ? undefined : {
|
|
407
|
+
"submit": this.handleFormSubmit,
|
|
408
|
+
"close": this.handleCancel,
|
|
409
|
+
"cancel": this.handleCancel
|
|
410
|
+
},
|
|
411
|
+
onClose: this.handleCancel,
|
|
412
|
+
onCancel: this.handleCancel
|
|
413
|
+
})]) // {((dragItem && editable.drag)) && (Array.isArray(dragItem)
|
|
365
414
|
// ? (dragItem as any).map((di, idx) => (
|
|
366
415
|
// <Drag
|
|
367
416
|
// key={idx}
|
|
@@ -401,12 +450,6 @@ var SchedulerEditItemVue2 = {
|
|
|
401
450
|
// vertical={this.$props.vertical}
|
|
402
451
|
// />
|
|
403
452
|
// ))}
|
|
404
|
-
// {(formItem && !showOccurrenceDialog && editable.edit) && (<Form
|
|
405
|
-
// dataItem={formItem}
|
|
406
|
-
// onSubmit={this.handleFormSubmit}
|
|
407
|
-
// onClose={this.handleCancel}
|
|
408
|
-
// onCancel={this.handleCancel}
|
|
409
|
-
// />)}
|
|
410
453
|
// {(showOccurrenceDialog) && (<OccurrenceDialog
|
|
411
454
|
// dataItem={formItem || dragItem || resizeItem || removeItem}
|
|
412
455
|
// isRemove={removeItem !== null}
|
|
@@ -425,6 +468,47 @@ var SchedulerEditItemVue2 = {
|
|
|
425
468
|
);
|
|
426
469
|
},
|
|
427
470
|
methods: {
|
|
471
|
+
dispatchSeries: function dispatchSeries(action, _event) {
|
|
472
|
+
var newSeries = use_series_1.seriesReducer(this.compSeries, action);
|
|
473
|
+
this.currentSeries = newSeries;
|
|
474
|
+
this.$emit('serieschange', newSeries);
|
|
475
|
+
},
|
|
476
|
+
dispatchFormItem: function dispatchFormItem(action, _event) {
|
|
477
|
+
var newFormItem;
|
|
478
|
+
|
|
479
|
+
switch (action.type) {
|
|
480
|
+
case use_form_item_1.FORM_ITEM_ACTION.set:
|
|
481
|
+
newFormItem = action.payload;
|
|
482
|
+
break;
|
|
483
|
+
|
|
484
|
+
case use_form_item_1.FORM_ITEM_ACTION.reset:
|
|
485
|
+
newFormItem = null;
|
|
486
|
+
break;
|
|
487
|
+
|
|
488
|
+
case use_form_item_1.FORM_ITEM_ACTION.setMaster:
|
|
489
|
+
newFormItem = kendo_vue_common_1.clone(utils_1.findMaster(action.payload, this.ks.fields, this.ks.dataItems));
|
|
490
|
+
break;
|
|
491
|
+
|
|
492
|
+
case use_form_item_1.FORM_ITEM_ACTION.complete:
|
|
493
|
+
if (this.compFormItem) {
|
|
494
|
+
this.$emit('dataaction', {
|
|
495
|
+
type: Scheduler_1.DATA_ACTION.update,
|
|
496
|
+
series: this.compSeries,
|
|
497
|
+
dataItem: action.payload
|
|
498
|
+
});
|
|
499
|
+
newFormItem = null;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
break;
|
|
503
|
+
|
|
504
|
+
default:
|
|
505
|
+
newFormItem = this.compFormItem;
|
|
506
|
+
break;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
this.currentFormItem = newFormItem;
|
|
510
|
+
this.$emit('formitemchange', newFormItem);
|
|
511
|
+
},
|
|
428
512
|
handleFocus: function handleFocus(event) {
|
|
429
513
|
if (this.onFocusAction) {
|
|
430
514
|
var actions = this.onFocusAction(event, this.$props, this.currentState);
|
|
@@ -466,7 +550,7 @@ var SchedulerEditItemVue2 = {
|
|
|
466
550
|
},
|
|
467
551
|
handleClick: function handleClick(event) {
|
|
468
552
|
if (this.onClickAction) {
|
|
469
|
-
var actions = this.onClickAction(event, this
|
|
553
|
+
var actions = this.onClickAction(event, this.$props, this.currentState);
|
|
470
554
|
|
|
471
555
|
if (actions) {// Array.isArray(actions)
|
|
472
556
|
// ? actions.filter(Boolean).map((action) => action &&
|
|
@@ -478,20 +562,26 @@ var SchedulerEditItemVue2 = {
|
|
|
478
562
|
this.$emit('click', event);
|
|
479
563
|
},
|
|
480
564
|
handleDoubleClick: function handleDoubleClick(event) {
|
|
481
|
-
if (this.onDoubleClickAction) {
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
565
|
+
if (this.onDoubleClickAction) {
|
|
566
|
+
var actions = this.onDoubleClickAction(event, this.$props, this.currentState);
|
|
567
|
+
var that_1 = this;
|
|
568
|
+
|
|
569
|
+
if (actions) {
|
|
570
|
+
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
571
|
+
return action && that_1.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
572
|
+
item: that_1.dataItem
|
|
573
|
+
}), event);
|
|
574
|
+
}) : that_1.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
575
|
+
item: that_1.dataItem
|
|
576
|
+
}));
|
|
577
|
+
}
|
|
488
578
|
}
|
|
489
579
|
|
|
490
580
|
this.$emit('doubleclick', event);
|
|
491
581
|
},
|
|
492
582
|
handleRemoveClick: function handleRemoveClick(event) {
|
|
493
583
|
if (this.onRemoveClickAction) {
|
|
494
|
-
var actions = this.onRemoveClickAction(event, this
|
|
584
|
+
var actions = this.onRemoveClickAction(event, this.$props, this.currentState);
|
|
495
585
|
|
|
496
586
|
if (actions) {// Array.isArray(actions)
|
|
497
587
|
// ? actions.filter(Boolean).map((action) => action &&
|
|
@@ -504,7 +594,7 @@ var SchedulerEditItemVue2 = {
|
|
|
504
594
|
},
|
|
505
595
|
handlePress: function handlePress(event) {
|
|
506
596
|
if (this.onPressAction) {
|
|
507
|
-
var actions = this.onPressAction(event, this
|
|
597
|
+
var actions = this.onPressAction(event, this.$props, this.currentState);
|
|
508
598
|
|
|
509
599
|
if (actions) {// Array.isArray(actions)
|
|
510
600
|
// ? actions.filter(Boolean).map((action) => action &&
|
|
@@ -517,7 +607,7 @@ var SchedulerEditItemVue2 = {
|
|
|
517
607
|
},
|
|
518
608
|
handleDrag: function handleDrag(event) {
|
|
519
609
|
if (this.onDragAction) {
|
|
520
|
-
var actions = this.onDragAction(event, this
|
|
610
|
+
var actions = this.onDragAction(event, this.$props, this.currentState);
|
|
521
611
|
|
|
522
612
|
if (actions) {// Array.isArray(actions)
|
|
523
613
|
// ? actions.filter(Boolean).map((action) => action &&
|
|
@@ -623,28 +713,38 @@ var SchedulerEditItemVue2 = {
|
|
|
623
713
|
this.$emit('resizerelease', event);
|
|
624
714
|
},
|
|
625
715
|
handleFormSubmit: function handleFormSubmit(event) {
|
|
716
|
+
var _this = this;
|
|
717
|
+
|
|
626
718
|
if (this.onFormSubmitAction) {
|
|
627
719
|
var actions = this.onFormSubmitAction(event, this.$props, this.currentState);
|
|
628
720
|
|
|
629
|
-
if (actions) {
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
721
|
+
if (actions) {
|
|
722
|
+
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
723
|
+
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
724
|
+
item: _this.item
|
|
725
|
+
}), event);
|
|
726
|
+
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
727
|
+
item: this.item
|
|
728
|
+
}), event);
|
|
635
729
|
}
|
|
636
730
|
}
|
|
637
731
|
|
|
638
732
|
this.$emit('formsubmit', event);
|
|
639
733
|
},
|
|
640
734
|
handleCancel: function handleCancel(event) {
|
|
735
|
+
var _this = this;
|
|
736
|
+
|
|
641
737
|
if (this.onCancelAction) {
|
|
642
738
|
var actions = this.onCancelAction(event, this.$props, this.currentState);
|
|
643
739
|
|
|
644
|
-
if (actions) {
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
740
|
+
if (actions) {
|
|
741
|
+
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
742
|
+
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
743
|
+
item: _this.item
|
|
744
|
+
}), event);
|
|
745
|
+
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
746
|
+
item: this.item
|
|
747
|
+
}), event);
|
|
648
748
|
}
|
|
649
749
|
}
|
|
650
750
|
|
|
@@ -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
|
|
|
@@ -19,5 +19,6 @@ export declare type SchedulerItemSeriesAction = {
|
|
|
19
19
|
type: SERIES_ACTION;
|
|
20
20
|
payload?: boolean;
|
|
21
21
|
};
|
|
22
|
+
export declare const seriesReducer: (state: any, action: SchedulerItemSeriesAction) => any;
|
|
22
23
|
/** @hidden */
|
|
23
24
|
export declare const useSeries: (_defaultProp: DataItem, _prop?: DataItem, _callback?: any) => any[];
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useSeries = exports.SERIES_ACTION = void 0;
|
|
6
|
+
exports.useSeries = exports.seriesReducer = exports.SERIES_ACTION = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* Represents the available `action` types for the `SchedulerItemSeriesAction` objects.
|
|
9
9
|
*
|
|
@@ -21,7 +21,7 @@ var SERIES_ACTION;
|
|
|
21
21
|
SERIES_ACTION["toggle"] = "SERIES_TOGGLE";
|
|
22
22
|
})(SERIES_ACTION = exports.SERIES_ACTION || (exports.SERIES_ACTION = {}));
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
exports.seriesReducer = function (state, action) {
|
|
25
25
|
switch (action.type) {
|
|
26
26
|
case SERIES_ACTION.reset:
|
|
27
27
|
return null;
|
|
@@ -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: 1649223897,
|
|
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
|
};
|
|
@@ -76,7 +76,8 @@ exports.getUntil = function (rrule) {
|
|
|
76
76
|
exports.getMonths = function (intl) {
|
|
77
77
|
return intl.dateFormatNames({
|
|
78
78
|
type: 'months',
|
|
79
|
-
nameType: 'wide'
|
|
79
|
+
nameType: 'wide',
|
|
80
|
+
standAlone: true
|
|
80
81
|
}).map(function (month, idx) { return ({
|
|
81
82
|
text: month,
|
|
82
83
|
value: idx + 1
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-scheduler",
|
|
3
3
|
"description": "Kendo UI for Vue Scheduler package",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.4",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@progress/kendo-data-query": "^1.5.1",
|
|
44
44
|
"@progress/kendo-recurrence": "^1.0.1",
|
|
45
|
-
"@progress/kendo-vue-common": "3.1.
|
|
45
|
+
"@progress/kendo-vue-common": "3.1.4",
|
|
46
46
|
"@telerik/kendo-draggable": "^2.2.1"
|
|
47
47
|
},
|
|
48
48
|
"@progress": {
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
"@progress/kendo-date-math": "^1.4.1",
|
|
59
59
|
"@progress/kendo-drawing": "^1.8.0",
|
|
60
60
|
"@progress/kendo-licensing": "^1.0.1",
|
|
61
|
-
"@progress/kendo-vue-buttons": "3.1.
|
|
62
|
-
"@progress/kendo-vue-dateinputs": "3.1.
|
|
63
|
-
"@progress/kendo-vue-dialogs": "3.1.
|
|
64
|
-
"@progress/kendo-vue-dropdowns": "3.1.
|
|
65
|
-
"@progress/kendo-vue-form": "3.1.
|
|
66
|
-
"@progress/kendo-vue-inputs": "3.1.
|
|
67
|
-
"@progress/kendo-vue-intl": "3.1.
|
|
68
|
-
"@progress/kendo-vue-labels": "3.1.
|
|
69
|
-
"@progress/kendo-vue-popup": "3.1.
|
|
70
|
-
"@progress/kendo-vue-progressbars": "3.1.
|
|
61
|
+
"@progress/kendo-vue-buttons": "3.1.4",
|
|
62
|
+
"@progress/kendo-vue-dateinputs": "3.1.4",
|
|
63
|
+
"@progress/kendo-vue-dialogs": "3.1.4",
|
|
64
|
+
"@progress/kendo-vue-dropdowns": "3.1.4",
|
|
65
|
+
"@progress/kendo-vue-form": "3.1.4",
|
|
66
|
+
"@progress/kendo-vue-inputs": "3.1.4",
|
|
67
|
+
"@progress/kendo-vue-intl": "3.1.4",
|
|
68
|
+
"@progress/kendo-vue-labels": "3.1.4",
|
|
69
|
+
"@progress/kendo-vue-popup": "3.1.4",
|
|
70
|
+
"@progress/kendo-vue-progressbars": "3.1.4",
|
|
71
71
|
"cldr-core": "36.0.0",
|
|
72
72
|
"cldr-dates-full": "36.0.0",
|
|
73
73
|
"cldr-numbers-full": "36.0.0"
|