@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,9 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
}; // @ts-ignore
|
|
16
|
+
|
|
17
|
+
|
|
2
18
|
import * as Vue from 'vue';
|
|
3
19
|
var allVue = Vue;
|
|
4
20
|
var gh = allVue.h;
|
|
5
21
|
var inject = allVue.inject;
|
|
6
|
-
import {
|
|
22
|
+
import { SchedulerForm } from '../components/SchedulerForm';
|
|
23
|
+
import { DATA_ACTION } from '../Scheduler';
|
|
24
|
+
import { clone, Keys } from '@progress/kendo-vue-common';
|
|
7
25
|
import { SchedulerViewItem } from './SchedulerViewItem';
|
|
8
26
|
import { ITEMS_FOCUS_ACTION, SLOTS_FOCUS_ACTION, useEditable } from '../hooks';
|
|
9
27
|
import { FORM_ITEM_ACTION, useFormItem } from './hooks/use-form-item';
|
|
@@ -12,8 +30,9 @@ import { REMOVE_ITEM_ACTION, useRemoveItem } from './hooks/use-remove-item';
|
|
|
12
30
|
import { SHOW_REMOVE_DIALOG_ACTION, useShowRemoveDialog } from './hooks/use-show-remove-item-dialog';
|
|
13
31
|
import { DRAG_ITEM_ACTION, useDragItem } from './hooks/use-drag-item';
|
|
14
32
|
import { RESIZE_ITEM_ACTION, useResizeItem } from './hooks/use-resize-item';
|
|
15
|
-
import { SERIES_ACTION, useSeries } from './hooks/use-series';
|
|
16
|
-
import { ITEMS_SELECT_ACTION } from '../hooks/use-items-selection';
|
|
33
|
+
import { seriesReducer, SERIES_ACTION, useSeries } from './hooks/use-series';
|
|
34
|
+
import { ITEMS_SELECT_ACTION } from '../hooks/use-items-selection';
|
|
35
|
+
import { findMaster } from '../utils'; // tslint:enable:max-line-length
|
|
17
36
|
|
|
18
37
|
var SchedulerEditItemVue2 = {
|
|
19
38
|
name: 'KendoSchedulerEditItem',
|
|
@@ -71,6 +90,9 @@ var SchedulerEditItemVue2 = {
|
|
|
71
90
|
inject: {
|
|
72
91
|
bv: {
|
|
73
92
|
default: null
|
|
93
|
+
},
|
|
94
|
+
ks: {
|
|
95
|
+
default: null
|
|
74
96
|
}
|
|
75
97
|
},
|
|
76
98
|
provide: function provide() {
|
|
@@ -90,11 +112,22 @@ var SchedulerEditItemVue2 = {
|
|
|
90
112
|
showOccurrenceDialog: this.showOccurrenceDialog
|
|
91
113
|
},
|
|
92
114
|
currentTabIndex: this.$props.tabIndex,
|
|
93
|
-
|
|
115
|
+
currentFormItem: null,
|
|
116
|
+
currentSelected: null,
|
|
117
|
+
currentSeries: null // item: null
|
|
94
118
|
|
|
95
119
|
};
|
|
96
120
|
},
|
|
97
121
|
computed: {
|
|
122
|
+
compSelected: function compSelected() {
|
|
123
|
+
return this.selected !== undefined ? this.selected : this.currentSelected;
|
|
124
|
+
},
|
|
125
|
+
compSeries: function compSeries() {
|
|
126
|
+
return this.series !== undefined ? this.series : this.currentSeries;
|
|
127
|
+
},
|
|
128
|
+
compFormItem: function compFormItem() {
|
|
129
|
+
return this.formItem !== undefined ? this.formItem : this.currentFormItem;
|
|
130
|
+
},
|
|
98
131
|
currentState: function currentState() {
|
|
99
132
|
return {
|
|
100
133
|
selected: this.selected,
|
|
@@ -342,7 +375,20 @@ var SchedulerEditItemVue2 = {
|
|
|
342
375
|
onResizeenddrag: this.handleResizeEndDrag,
|
|
343
376
|
onResizestartdrag: this.handleResizeStartDrag,
|
|
344
377
|
onResizeselease: this.handleResizeRelease
|
|
345
|
-
}
|
|
378
|
+
}, [this.compFormItem && !showOccurrenceDialog && editable.edit && h(SchedulerForm, {
|
|
379
|
+
dataItem: this.compFormItem,
|
|
380
|
+
attrs: this.v3 ? undefined : {
|
|
381
|
+
dataItem: this.compFormItem
|
|
382
|
+
},
|
|
383
|
+
onSubmit: this.handleFormSubmit,
|
|
384
|
+
on: this.v3 ? undefined : {
|
|
385
|
+
"submit": this.handleFormSubmit,
|
|
386
|
+
"close": this.handleCancel,
|
|
387
|
+
"cancel": this.handleCancel
|
|
388
|
+
},
|
|
389
|
+
onClose: this.handleCancel,
|
|
390
|
+
onCancel: this.handleCancel
|
|
391
|
+
})]) // {((dragItem && editable.drag)) && (Array.isArray(dragItem)
|
|
346
392
|
// ? (dragItem as any).map((di, idx) => (
|
|
347
393
|
// <Drag
|
|
348
394
|
// key={idx}
|
|
@@ -382,12 +428,6 @@ var SchedulerEditItemVue2 = {
|
|
|
382
428
|
// vertical={this.$props.vertical}
|
|
383
429
|
// />
|
|
384
430
|
// ))}
|
|
385
|
-
// {(formItem && !showOccurrenceDialog && editable.edit) && (<Form
|
|
386
|
-
// dataItem={formItem}
|
|
387
|
-
// onSubmit={this.handleFormSubmit}
|
|
388
|
-
// onClose={this.handleCancel}
|
|
389
|
-
// onCancel={this.handleCancel}
|
|
390
|
-
// />)}
|
|
391
431
|
// {(showOccurrenceDialog) && (<OccurrenceDialog
|
|
392
432
|
// dataItem={formItem || dragItem || resizeItem || removeItem}
|
|
393
433
|
// isRemove={removeItem !== null}
|
|
@@ -406,6 +446,47 @@ var SchedulerEditItemVue2 = {
|
|
|
406
446
|
);
|
|
407
447
|
},
|
|
408
448
|
methods: {
|
|
449
|
+
dispatchSeries: function dispatchSeries(action, _event) {
|
|
450
|
+
var newSeries = seriesReducer(this.compSeries, action);
|
|
451
|
+
this.currentSeries = newSeries;
|
|
452
|
+
this.$emit('serieschange', newSeries);
|
|
453
|
+
},
|
|
454
|
+
dispatchFormItem: function dispatchFormItem(action, _event) {
|
|
455
|
+
var newFormItem;
|
|
456
|
+
|
|
457
|
+
switch (action.type) {
|
|
458
|
+
case FORM_ITEM_ACTION.set:
|
|
459
|
+
newFormItem = action.payload;
|
|
460
|
+
break;
|
|
461
|
+
|
|
462
|
+
case FORM_ITEM_ACTION.reset:
|
|
463
|
+
newFormItem = null;
|
|
464
|
+
break;
|
|
465
|
+
|
|
466
|
+
case FORM_ITEM_ACTION.setMaster:
|
|
467
|
+
newFormItem = clone(findMaster(action.payload, this.ks.fields, this.ks.dataItems));
|
|
468
|
+
break;
|
|
469
|
+
|
|
470
|
+
case FORM_ITEM_ACTION.complete:
|
|
471
|
+
if (this.compFormItem) {
|
|
472
|
+
this.$emit('dataaction', {
|
|
473
|
+
type: DATA_ACTION.update,
|
|
474
|
+
series: this.compSeries,
|
|
475
|
+
dataItem: action.payload
|
|
476
|
+
});
|
|
477
|
+
newFormItem = null;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
break;
|
|
481
|
+
|
|
482
|
+
default:
|
|
483
|
+
newFormItem = this.compFormItem;
|
|
484
|
+
break;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
this.currentFormItem = newFormItem;
|
|
488
|
+
this.$emit('formitemchange', newFormItem);
|
|
489
|
+
},
|
|
409
490
|
handleFocus: function handleFocus(event) {
|
|
410
491
|
if (this.onFocusAction) {
|
|
411
492
|
var actions = this.onFocusAction(event, this.$props, this.currentState);
|
|
@@ -447,7 +528,7 @@ var SchedulerEditItemVue2 = {
|
|
|
447
528
|
},
|
|
448
529
|
handleClick: function handleClick(event) {
|
|
449
530
|
if (this.onClickAction) {
|
|
450
|
-
var actions = this.onClickAction(event, this
|
|
531
|
+
var actions = this.onClickAction(event, this.$props, this.currentState);
|
|
451
532
|
|
|
452
533
|
if (actions) {// Array.isArray(actions)
|
|
453
534
|
// ? actions.filter(Boolean).map((action) => action &&
|
|
@@ -459,20 +540,26 @@ var SchedulerEditItemVue2 = {
|
|
|
459
540
|
this.$emit('click', event);
|
|
460
541
|
},
|
|
461
542
|
handleDoubleClick: function handleDoubleClick(event) {
|
|
462
|
-
if (this.onDoubleClickAction) {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
543
|
+
if (this.onDoubleClickAction) {
|
|
544
|
+
var actions = this.onDoubleClickAction(event, this.$props, this.currentState);
|
|
545
|
+
var that_1 = this;
|
|
546
|
+
|
|
547
|
+
if (actions) {
|
|
548
|
+
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
549
|
+
return action && that_1.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
550
|
+
item: that_1.dataItem
|
|
551
|
+
}), event);
|
|
552
|
+
}) : that_1.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
553
|
+
item: that_1.dataItem
|
|
554
|
+
}));
|
|
555
|
+
}
|
|
469
556
|
}
|
|
470
557
|
|
|
471
558
|
this.$emit('doubleclick', event);
|
|
472
559
|
},
|
|
473
560
|
handleRemoveClick: function handleRemoveClick(event) {
|
|
474
561
|
if (this.onRemoveClickAction) {
|
|
475
|
-
var actions = this.onRemoveClickAction(event, this
|
|
562
|
+
var actions = this.onRemoveClickAction(event, this.$props, this.currentState);
|
|
476
563
|
|
|
477
564
|
if (actions) {// Array.isArray(actions)
|
|
478
565
|
// ? actions.filter(Boolean).map((action) => action &&
|
|
@@ -485,7 +572,7 @@ var SchedulerEditItemVue2 = {
|
|
|
485
572
|
},
|
|
486
573
|
handlePress: function handlePress(event) {
|
|
487
574
|
if (this.onPressAction) {
|
|
488
|
-
var actions = this.onPressAction(event, this
|
|
575
|
+
var actions = this.onPressAction(event, this.$props, this.currentState);
|
|
489
576
|
|
|
490
577
|
if (actions) {// Array.isArray(actions)
|
|
491
578
|
// ? actions.filter(Boolean).map((action) => action &&
|
|
@@ -498,7 +585,7 @@ var SchedulerEditItemVue2 = {
|
|
|
498
585
|
},
|
|
499
586
|
handleDrag: function handleDrag(event) {
|
|
500
587
|
if (this.onDragAction) {
|
|
501
|
-
var actions = this.onDragAction(event, this
|
|
588
|
+
var actions = this.onDragAction(event, this.$props, this.currentState);
|
|
502
589
|
|
|
503
590
|
if (actions) {// Array.isArray(actions)
|
|
504
591
|
// ? actions.filter(Boolean).map((action) => action &&
|
|
@@ -604,28 +691,38 @@ var SchedulerEditItemVue2 = {
|
|
|
604
691
|
this.$emit('resizerelease', event);
|
|
605
692
|
},
|
|
606
693
|
handleFormSubmit: function handleFormSubmit(event) {
|
|
694
|
+
var _this = this;
|
|
695
|
+
|
|
607
696
|
if (this.onFormSubmitAction) {
|
|
608
697
|
var actions = this.onFormSubmitAction(event, this.$props, this.currentState);
|
|
609
698
|
|
|
610
|
-
if (actions) {
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
699
|
+
if (actions) {
|
|
700
|
+
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
701
|
+
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
702
|
+
item: _this.item
|
|
703
|
+
}), event);
|
|
704
|
+
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
705
|
+
item: this.item
|
|
706
|
+
}), event);
|
|
616
707
|
}
|
|
617
708
|
}
|
|
618
709
|
|
|
619
710
|
this.$emit('formsubmit', event);
|
|
620
711
|
},
|
|
621
712
|
handleCancel: function handleCancel(event) {
|
|
713
|
+
var _this = this;
|
|
714
|
+
|
|
622
715
|
if (this.onCancelAction) {
|
|
623
716
|
var actions = this.onCancelAction(event, this.$props, this.currentState);
|
|
624
717
|
|
|
625
|
-
if (actions) {
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
718
|
+
if (actions) {
|
|
719
|
+
Array.isArray(actions) ? actions.filter(Boolean).map(function (action) {
|
|
720
|
+
return action && _this.actionsReducerMap[action.type](__assign(__assign({}, action), {
|
|
721
|
+
item: _this.item
|
|
722
|
+
}), event);
|
|
723
|
+
}) : this.actionsReducerMap[actions.type](__assign(__assign({}, actions), {
|
|
724
|
+
item: this.item
|
|
725
|
+
}), event);
|
|
629
726
|
}
|
|
630
727
|
}
|
|
631
728
|
|
|
@@ -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
|
|
|
@@ -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[];
|
|
@@ -14,7 +14,7 @@ export var SERIES_ACTION;
|
|
|
14
14
|
SERIES_ACTION["toggle"] = "SERIES_TOGGLE";
|
|
15
15
|
})(SERIES_ACTION || (SERIES_ACTION = {}));
|
|
16
16
|
|
|
17
|
-
var seriesReducer = function seriesReducer(state, action) {
|
|
17
|
+
export var seriesReducer = function seriesReducer(state, action) {
|
|
18
18
|
switch (action.type) {
|
|
19
19
|
case SERIES_ACTION.reset:
|
|
20
20
|
return null;
|
|
@@ -31,7 +31,6 @@ var seriesReducer = function seriesReducer(state, action) {
|
|
|
31
31
|
};
|
|
32
32
|
/** @hidden */
|
|
33
33
|
|
|
34
|
-
|
|
35
34
|
export var useSeries = function useSeries(_defaultProp, _prop, _callback) {
|
|
36
35
|
// const [series, setSeries] = useControlledState<DataItem | null>(defaultProp, prop, callback);
|
|
37
36
|
// const handleSeriesAction = (action: SchedulerItemSeriesAction) => {
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-scheduler',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1649223897,
|
|
9
9
|
version: '',
|
|
10
10
|
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'
|
|
11
11
|
};
|
|
@@ -73,7 +73,8 @@ export var getUntil = function (rrule) {
|
|
|
73
73
|
export var getMonths = function (intl) {
|
|
74
74
|
return intl.dateFormatNames({
|
|
75
75
|
type: 'months',
|
|
76
|
-
nameType: 'wide'
|
|
76
|
+
nameType: 'wide',
|
|
77
|
+
standAlone: true
|
|
77
78
|
}).map(function (month, idx) { return ({
|
|
78
79
|
text: month,
|
|
79
80
|
value: idx + 1
|