@progress/kendo-vue-scheduler 3.3.0-dev.202205100750 → 3.3.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/components/BaseView.js +0 -10
- package/dist/es/components/SchedulerForm.js +1 -1
- package/dist/es/components/footer/SchedulerFooter.d.ts +0 -1
- package/dist/es/components/header/SchedulerHeader.d.ts +0 -1
- package/dist/es/context/SchedulerContext.d.ts +0 -8
- package/dist/es/context/SchedulerContext.js +1 -202
- package/dist/es/context/SchedulerEditItemContext.d.ts +0 -5
- package/dist/es/context/SchedulerEditItemContext.js +1 -177
- package/dist/es/context/SchedulerEditSlotContext.js +1 -44
- package/dist/es/context/SchedulerEditTaskContext.d.ts +0 -1
- package/dist/es/context/SchedulerEditTaskContext.js +1 -33
- package/dist/es/context/SchedulerViewContext.d.ts +0 -1
- package/dist/es/context/SchedulerViewContext.js +1 -92
- package/dist/es/editors/SchedulerFormEditor.js +119 -118
- package/dist/es/hooks/index.d.ts +0 -1
- package/dist/es/hooks/index.js +0 -1
- package/dist/es/hooks/useAsyncMouseEnterLeave.js +1 -1
- package/dist/es/hooks/useEditable.js +1 -4
- package/dist/es/hooks/useRowSync.js +1 -2
- package/dist/es/hooks/useSchedulerSlot.d.ts +1 -1
- package/dist/es/hooks/useSchedulerSlot.js +1 -26
- package/dist/es/hooks/useSlotExpand.js +3 -35
- package/dist/es/hooks/useWorkHours.js +0 -7
- package/dist/es/items/SchedulerEditItem.d.ts +0 -2
- package/dist/es/items/SchedulerItem.d.ts +0 -2
- package/dist/es/items/SchedulerItem.js +1 -0
- package/dist/es/items/SchedulerViewItem.d.ts +0 -2
- package/dist/es/items/SchedulerViewItem.js +5 -6
- package/dist/es/models/SchedulerHandle.d.ts +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/slots/SchedulerEditSlot.d.ts +0 -2
- package/dist/es/slots/SchedulerSlot.d.ts +0 -2
- package/dist/es/slots/SchedulerSlot.js +1 -0
- package/dist/es/slots/SchedulerViewSlot.d.ts +0 -2
- package/dist/es/slots/SchedulerViewSlot.js +26 -0
- package/dist/es/tasks/SchedulerEditTask.d.ts +0 -2
- package/dist/es/tasks/SchedulerViewTask.d.ts +0 -2
- package/dist/es/utils/index.js +0 -2
- package/dist/es/views/month/MonthView.js +19 -3
- package/dist/npm/components/BaseView.js +0 -10
- package/dist/npm/components/SchedulerForm.js +1 -1
- package/dist/npm/components/footer/SchedulerFooter.d.ts +0 -1
- package/dist/npm/components/header/SchedulerHeader.d.ts +0 -1
- package/dist/npm/context/SchedulerContext.d.ts +0 -8
- package/dist/npm/context/SchedulerContext.js +2 -202
- package/dist/npm/context/SchedulerEditItemContext.d.ts +0 -5
- package/dist/npm/context/SchedulerEditItemContext.js +1 -177
- package/dist/npm/context/SchedulerEditSlotContext.js +2 -44
- package/dist/npm/context/SchedulerEditTaskContext.d.ts +0 -1
- package/dist/npm/context/SchedulerEditTaskContext.js +1 -33
- package/dist/npm/context/SchedulerViewContext.d.ts +0 -1
- package/dist/npm/context/SchedulerViewContext.js +1 -92
- package/dist/npm/editors/SchedulerFormEditor.js +122 -120
- package/dist/npm/hooks/index.d.ts +0 -1
- package/dist/npm/hooks/index.js +0 -1
- package/dist/npm/hooks/useAsyncMouseEnterLeave.js +1 -1
- package/dist/npm/hooks/useEditable.js +2 -4
- package/dist/npm/hooks/useRowSync.js +1 -2
- package/dist/npm/hooks/useSchedulerSlot.d.ts +1 -1
- package/dist/npm/hooks/useSchedulerSlot.js +1 -26
- package/dist/npm/hooks/useSlotExpand.js +3 -35
- package/dist/npm/hooks/useWorkHours.js +0 -7
- package/dist/npm/items/SchedulerEditItem.d.ts +0 -2
- package/dist/npm/items/SchedulerItem.d.ts +0 -2
- package/dist/npm/items/SchedulerItem.js +1 -0
- package/dist/npm/items/SchedulerViewItem.d.ts +0 -2
- package/dist/npm/items/SchedulerViewItem.js +5 -6
- package/dist/npm/models/SchedulerHandle.d.ts +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/slots/SchedulerEditSlot.d.ts +0 -2
- package/dist/npm/slots/SchedulerSlot.d.ts +0 -2
- package/dist/npm/slots/SchedulerSlot.js +1 -0
- package/dist/npm/slots/SchedulerViewSlot.d.ts +0 -2
- package/dist/npm/slots/SchedulerViewSlot.js +26 -0
- package/dist/npm/tasks/SchedulerEditTask.d.ts +0 -2
- package/dist/npm/tasks/SchedulerViewTask.d.ts +0 -2
- package/dist/npm/utils/index.js +0 -2
- package/dist/npm/views/month/MonthView.js +18 -2
- package/package.json +12 -12
- package/dist/es/hooks/useSchedulerItem.d.ts +0 -6
- package/dist/es/hooks/useSchedulerItem.js +0 -33
- package/dist/npm/hooks/useSchedulerItem.d.ts +0 -6
- package/dist/npm/hooks/useSchedulerItem.js +0 -39
package/dist/npm/hooks/index.js
CHANGED
|
@@ -17,6 +17,5 @@ __exportStar(require("./useAsyncMouseEnterLeave"), exports);
|
|
|
17
17
|
__exportStar(require("./useEditable"), exports);
|
|
18
18
|
__exportStar(require("./useSlotExpand"), exports);
|
|
19
19
|
__exportStar(require("./useWorkHours"), exports);
|
|
20
|
-
__exportStar(require("./useSchedulerItem"), exports);
|
|
21
20
|
__exportStar(require("./use-items-focus"), exports);
|
|
22
21
|
__exportStar(require("./use-slots-focus"), exports);
|
|
@@ -9,7 +9,7 @@ exports.useAsyncMouseEnterLeave = void 0;
|
|
|
9
9
|
exports.useAsyncMouseEnterLeave = function (_a) {
|
|
10
10
|
var handleMouseEnter = _a.handleMouseEnter,
|
|
11
11
|
handleMouseLeave = _a.handleMouseLeave;
|
|
12
|
-
var tick = {}.current;
|
|
12
|
+
var tick = {}.current;
|
|
13
13
|
|
|
14
14
|
var nextTick = function nextTick(f) {
|
|
15
15
|
clearTimeout(tick);
|
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useEditable = void 0;
|
|
7
|
-
|
|
6
|
+
exports.useEditable = void 0;
|
|
8
7
|
/** @hidden */
|
|
9
8
|
|
|
10
9
|
exports.useEditable = function (editable) {
|
|
11
|
-
var context = {};
|
|
12
|
-
|
|
10
|
+
var context = {};
|
|
13
11
|
var settings = editable !== undefined ? editable : context.editable || false;
|
|
14
12
|
var edit = settings === true || settings !== undefined && settings !== false && settings.edit === true;
|
|
15
13
|
var resize = settings === true || settings !== undefined && settings !== false && settings.resize === true;
|
|
@@ -8,31 +8,6 @@ exports.useSchedulerSlot = void 0; // import { useSchedulerViewSlotsContext } fr
|
|
|
8
8
|
|
|
9
9
|
/** @hidden */
|
|
10
10
|
|
|
11
|
-
exports.useSchedulerSlot = function (_props
|
|
12
|
-
// const { refTo } = props;
|
|
13
|
-
// const slot = React.useRef<SchedulerSlotHandle>(null);
|
|
14
|
-
// const element = React.useRef<HTMLDivElement>(null);
|
|
15
|
-
// const [, dispatchSlots] = useSchedulerViewSlotsContext();
|
|
16
|
-
// React.useImperativeHandle(slot, () => ({ element: element.current, props }));
|
|
17
|
-
// React.useImperativeHandle(ref, () => slot.current);
|
|
18
|
-
// React.useImperativeHandle(refTo, () => slot.current);
|
|
19
|
-
// React.useEffect(
|
|
20
|
-
// () => {
|
|
21
|
-
// dispatchSlots({
|
|
22
|
-
// type: COLLECTION_ACTION.add,
|
|
23
|
-
// item: slot
|
|
24
|
-
// });
|
|
25
|
-
// return () => {
|
|
26
|
-
// dispatchSlots({
|
|
27
|
-
// type: COLLECTION_ACTION.remove,
|
|
28
|
-
// item: slot
|
|
29
|
-
// });
|
|
30
|
-
// };
|
|
31
|
-
// }
|
|
32
|
-
// );
|
|
33
|
-
// return {
|
|
34
|
-
// slot,
|
|
35
|
-
// element
|
|
36
|
-
// };
|
|
11
|
+
exports.useSchedulerSlot = function (_props) {
|
|
37
12
|
return [];
|
|
38
13
|
};
|
|
@@ -29,6 +29,7 @@ exports.useSlotExpand = function (slot, _scheduler, config) {
|
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
element.style.minHeight = null;
|
|
32
33
|
initialHeight = element.clientHeight;
|
|
33
34
|
};
|
|
34
35
|
|
|
@@ -72,41 +73,8 @@ exports.useSlotExpand = function (slot, _scheduler, config) {
|
|
|
72
73
|
} else if (element) {
|
|
73
74
|
element.style.minHeight = null;
|
|
74
75
|
}
|
|
75
|
-
};
|
|
76
|
-
// const handleResize = React.useCallback(() => {
|
|
77
|
-
// if(timeout.current !== undefined) {
|
|
78
|
-
// window.cancelAnimationFrame(timeout.current);
|
|
79
|
-
// }
|
|
80
|
-
// timeout.current = window.requestAnimationFrame(() => {
|
|
81
|
-
// expand();
|
|
82
|
-
// });
|
|
83
|
-
// },[expand]);
|
|
84
|
-
|
|
76
|
+
};
|
|
85
77
|
|
|
86
78
|
getInitialHeight();
|
|
87
|
-
expand();
|
|
88
|
-
// React.useLayoutEffect(getInitialHeight, []);
|
|
89
|
-
// // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
90
|
-
// React.useEffect(expand, [slot, slot.current && slot.current.props, config]);
|
|
91
|
-
// React.useEffect(
|
|
92
|
-
// () => {
|
|
93
|
-
// if(!slot.current) {return;}
|
|
94
|
-
// const props = slot.current.props;
|
|
95
|
-
// const existing = props.items.filter((i) => {
|
|
96
|
-
// return i.refTo.current;
|
|
97
|
-
// });
|
|
98
|
-
// const callbacks = existing.map((item: Item) => {
|
|
99
|
-
// if(!item.refTo.current || !item.refTo.current.element) {return;}
|
|
100
|
-
// if(!scheduler.current) {return;}
|
|
101
|
-
// const observer = new (window as any).ResizeObserver(handleResize);
|
|
102
|
-
// observer.observe(item.refTo.current.element);
|
|
103
|
-
// return () => {
|
|
104
|
-
// observer.disconnect();
|
|
105
|
-
// };
|
|
106
|
-
// });
|
|
107
|
-
// return () => {
|
|
108
|
-
// callbacks.forEach(cb => cb && cb());
|
|
109
|
-
// };
|
|
110
|
-
// },
|
|
111
|
-
// [handleResize, scheduler, slot]);
|
|
79
|
+
expand();
|
|
112
80
|
};
|
|
@@ -7,12 +7,5 @@ exports.useWorkHours = void 0;
|
|
|
7
7
|
/** @hidden */
|
|
8
8
|
|
|
9
9
|
exports.useWorkHours = function (_showWorkHours, _defaultShowWorkHours) {
|
|
10
|
-
// const [show, setShow] = usePropOrState(showWorkHours, defaultShowWorkHours);
|
|
11
|
-
// const handleShowWorkHoursChange = React.useCallback(
|
|
12
|
-
// () => {
|
|
13
|
-
// setShow(!show);
|
|
14
|
-
// },
|
|
15
|
-
// [show, setShow]);
|
|
16
|
-
// return [show, handleShowWorkHoursChange];
|
|
17
10
|
return [];
|
|
18
11
|
};
|
|
@@ -313,8 +313,6 @@ export interface SchedulerEditItemState {
|
|
|
313
313
|
}
|
|
314
314
|
/**
|
|
315
315
|
* Represents the object which is returned from the `ref` callback of the [SchedulerEditItem]({% slug api_scheduler_scheduleredititem %}).
|
|
316
|
-
*
|
|
317
|
-
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
318
316
|
*/
|
|
319
317
|
export interface SchedulerEditItemHandle {
|
|
320
318
|
element: HTMLDivElement | null;
|
|
@@ -194,8 +194,6 @@ export interface SchedulerItemProps extends Item {
|
|
|
194
194
|
}
|
|
195
195
|
/**
|
|
196
196
|
* Represents the object which is returned from the `ref` callback of the [SchedulerItem]({% slug api_scheduler_scheduleritem %}).
|
|
197
|
-
*
|
|
198
|
-
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
199
197
|
*/
|
|
200
198
|
export interface SchedulerItemHandle {
|
|
201
199
|
element: HTMLDivElement | null;
|
|
@@ -19,8 +19,6 @@ export interface SchedulerViewItemProps extends SchedulerItemProps {
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Represents the object which is returned from the `ref` callback of the [SchedulerViewItem]({% slug api_scheduler_schedulerviewitem %}).
|
|
22
|
-
*
|
|
23
|
-
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
24
22
|
*/
|
|
25
23
|
export interface SchedulerViewItemHandle {
|
|
26
24
|
element: HTMLDivElement | null;
|
|
@@ -125,12 +125,7 @@ var SchedulerViewItemVue2 = {
|
|
|
125
125
|
};
|
|
126
126
|
},
|
|
127
127
|
mounted: function mounted() {
|
|
128
|
-
var that = this;
|
|
129
128
|
this.element = this.getElement();
|
|
130
|
-
this.$nextTick(function () {
|
|
131
|
-
that.align();
|
|
132
|
-
that.position();
|
|
133
|
-
});
|
|
134
129
|
|
|
135
130
|
if (!this.ks.scheduler || !this.ks.scheduler.$el) {
|
|
136
131
|
return;
|
|
@@ -144,6 +139,10 @@ var SchedulerViewItemVue2 = {
|
|
|
144
139
|
this.$nextTick(function () {
|
|
145
140
|
that.align();
|
|
146
141
|
that.position();
|
|
142
|
+
that.$nextTick(function () {
|
|
143
|
+
that.align();
|
|
144
|
+
that.position();
|
|
145
|
+
});
|
|
147
146
|
});
|
|
148
147
|
|
|
149
148
|
if (!this.ks.scheduler || !this.ks.scheduler.$el || this.observer) {
|
|
@@ -373,7 +372,7 @@ var SchedulerViewItemVue2 = {
|
|
|
373
372
|
// Mouse
|
|
374
373
|
// mouseup: this.handleMouseUp,
|
|
375
374
|
// mousedown: this.handleMouseDown,
|
|
376
|
-
// click: this.handleClick,
|
|
375
|
+
// click: this.handleClick,
|
|
377
376
|
doubleclick: this.handleDoubleClick,
|
|
378
377
|
removeclick: this.handleRemoveClick,
|
|
379
378
|
// Drag
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SchedulerProps } from '../Scheduler';
|
|
2
2
|
/**
|
|
3
|
-
* Represents the Object which is passed to the
|
|
3
|
+
* Represents the Object which is passed to the callback of the Scheduler component.
|
|
4
4
|
*/
|
|
5
5
|
export interface SchedulerHandle {
|
|
6
6
|
props: SchedulerProps;
|
|
@@ -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: 1652240966,
|
|
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
|
};
|
|
@@ -38,8 +38,6 @@ export interface SchedulerEditSlotProps extends SchedulerViewSlotProps {
|
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Represents the object which is returned from the `ref` callback of the [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}).
|
|
41
|
-
*
|
|
42
|
-
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
43
41
|
*/
|
|
44
42
|
export interface SchedulerEditSlotHandle {
|
|
45
43
|
props: SchedulerEditSlotProps;
|
|
@@ -113,8 +113,6 @@ export interface SchedulerSlotProps extends Slot {
|
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
115
|
* Represents the object which is returned from the `ref` callback of the [SchedulerSlot]({% slug api_scheduler_schedulerslot %}).
|
|
116
|
-
*
|
|
117
|
-
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
118
116
|
*/
|
|
119
117
|
export interface SchedulerSlotHandle {
|
|
120
118
|
element: HTMLDivElement | null;
|
|
@@ -32,8 +32,6 @@ export interface SchedulerViewSlotProps extends SchedulerSlotProps {
|
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Represents the object which is returned from the `ref` callback of the [SchedulerViewItem]({% slug api_scheduler_schedulerviewitem %}).
|
|
35
|
-
*
|
|
36
|
-
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
37
35
|
*/
|
|
38
36
|
export interface SchedulerViewSlotHandle {
|
|
39
37
|
props: SchedulerViewSlotProps;
|
|
@@ -73,10 +73,18 @@ var SchedulerViewSlotVue2 = {
|
|
|
73
73
|
default: null
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
|
+
data: function data() {
|
|
77
|
+
return {
|
|
78
|
+
timeout: undefined
|
|
79
|
+
};
|
|
80
|
+
},
|
|
76
81
|
updated: function updated() {
|
|
77
82
|
var that = this;
|
|
78
83
|
this.$nextTick(function () {
|
|
79
84
|
hooks_1.useSlotExpand(that, that.ks.scheduler.$el, that.$props.expandable);
|
|
85
|
+
that.$nextTick(function () {
|
|
86
|
+
hooks_1.useSlotExpand(that, that.ks.scheduler.$el, that.$props.expandable);
|
|
87
|
+
});
|
|
80
88
|
});
|
|
81
89
|
},
|
|
82
90
|
mounted: function mounted() {
|
|
@@ -84,6 +92,13 @@ var SchedulerViewSlotVue2 = {
|
|
|
84
92
|
this.$nextTick(function () {
|
|
85
93
|
hooks_1.useSlotExpand(that, that.ks.scheduler.$el, that.$props.expandable);
|
|
86
94
|
});
|
|
95
|
+
|
|
96
|
+
if (!this.ks.scheduler || !this.ks.scheduler.$el) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
this.observer = new window.ResizeObserver(this.handleResize);
|
|
101
|
+
this.observer.observe(this.ks.scheduler.$el);
|
|
87
102
|
},
|
|
88
103
|
// @ts-ignore
|
|
89
104
|
setup: !gh ? undefined : function () {
|
|
@@ -193,6 +208,17 @@ var SchedulerViewSlotVue2 = {
|
|
|
193
208
|
},
|
|
194
209
|
handleFocus: function handleFocus(args) {
|
|
195
210
|
this.$emit('focus', args);
|
|
211
|
+
},
|
|
212
|
+
handleResize: function handleResize() {
|
|
213
|
+
var that = this;
|
|
214
|
+
|
|
215
|
+
if (this.timeout !== undefined) {
|
|
216
|
+
window.cancelAnimationFrame(this.timeout);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
this.timeout = window.requestAnimationFrame(function () {
|
|
220
|
+
hooks_1.useSlotExpand(that, that.ks.scheduler.$el, that.$props.expandable);
|
|
221
|
+
});
|
|
196
222
|
}
|
|
197
223
|
}
|
|
198
224
|
};
|
|
@@ -71,8 +71,6 @@ export interface SchedulerEditTaskProps extends SchedulerViewTaskProps {
|
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* Represents the object which is returned from the `ref` callback of the [SchedulerEditTask]({% slug api_scheduler_scheduleredittask %}).
|
|
74
|
-
*
|
|
75
|
-
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
76
74
|
*/
|
|
77
75
|
export interface SchedulerEditTaskHandle {
|
|
78
76
|
element: HTMLDivElement | null;
|
|
@@ -17,8 +17,6 @@ export interface SchedulerViewTaskProps extends SchedulerTaskProps {
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Represents the object which is returned from the `ref` callback of the [SchedulerViewTask]({% slug api_scheduler_schedulerviewtask %}).
|
|
20
|
-
*
|
|
21
|
-
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
22
20
|
*/
|
|
23
21
|
export interface SchedulerViewTaskHandle {
|
|
24
22
|
element: HTMLDivElement | null;
|
package/dist/npm/utils/index.js
CHANGED
|
@@ -77,8 +77,6 @@ exports.dateWithTime = dateWithTime;
|
|
|
77
77
|
* @hidden
|
|
78
78
|
*/
|
|
79
79
|
exports.getToday = function () { return kendo_date_math_1.getDate(new Date()); };
|
|
80
|
-
// Introduce max depth doe to Maximum call stack size exceeded when react <body />
|
|
81
|
-
// The element.closest() approach is not available due to browser support issues.
|
|
82
80
|
/** @hidden */
|
|
83
81
|
exports.slotDive = function (x, y, maxDepth, level) {
|
|
84
82
|
if (level === void 0) { level = 0; }
|
|
@@ -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
|
});
|
|
@@ -254,9 +270,9 @@ var MonthViewVue2 = {
|
|
|
254
270
|
});
|
|
255
271
|
return (// @ts-ignore function children
|
|
256
272
|
h(BaseView_1.BaseView, {
|
|
257
|
-
props: this.$props,
|
|
273
|
+
props: __assign({}, this.$props),
|
|
258
274
|
attrs: this.v3 ? undefined : {
|
|
259
|
-
props: this.$props,
|
|
275
|
+
props: __assign({}, this.$props),
|
|
260
276
|
baseSlots: monthSlots,
|
|
261
277
|
ranges: this.ranges
|
|
262
278
|
},
|
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.3.0
|
|
4
|
+
"version": "3.3.0",
|
|
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.3.0
|
|
45
|
+
"@progress/kendo-vue-common": "3.3.0",
|
|
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.3.0
|
|
62
|
-
"@progress/kendo-vue-dateinputs": "3.3.0
|
|
63
|
-
"@progress/kendo-vue-dialogs": "3.3.0
|
|
64
|
-
"@progress/kendo-vue-dropdowns": "3.3.0
|
|
65
|
-
"@progress/kendo-vue-form": "3.3.0
|
|
66
|
-
"@progress/kendo-vue-inputs": "3.3.0
|
|
67
|
-
"@progress/kendo-vue-intl": "3.3.0
|
|
68
|
-
"@progress/kendo-vue-labels": "3.3.0
|
|
69
|
-
"@progress/kendo-vue-popup": "3.3.0
|
|
70
|
-
"@progress/kendo-vue-progressbars": "3.3.0
|
|
61
|
+
"@progress/kendo-vue-buttons": "3.3.0",
|
|
62
|
+
"@progress/kendo-vue-dateinputs": "3.3.0",
|
|
63
|
+
"@progress/kendo-vue-dialogs": "3.3.0",
|
|
64
|
+
"@progress/kendo-vue-dropdowns": "3.3.0",
|
|
65
|
+
"@progress/kendo-vue-form": "3.3.0",
|
|
66
|
+
"@progress/kendo-vue-inputs": "3.3.0",
|
|
67
|
+
"@progress/kendo-vue-intl": "3.3.0",
|
|
68
|
+
"@progress/kendo-vue-labels": "3.3.0",
|
|
69
|
+
"@progress/kendo-vue-popup": "3.3.0",
|
|
70
|
+
"@progress/kendo-vue-progressbars": "3.3.0",
|
|
71
71
|
"cldr-core": "36.0.0",
|
|
72
72
|
"cldr-dates-full": "36.0.0",
|
|
73
73
|
"cldr-numbers-full": "36.0.0"
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// import { useSchedulerViewItemsContext } from '../context';
|
|
2
|
-
// import { COLLECTION_ACTION } from '@progress/kendo-vue-common';
|
|
3
|
-
|
|
4
|
-
/** @hidden */
|
|
5
|
-
export var useSchedulerItem = function useSchedulerItem(_props, _refTo) {
|
|
6
|
-
// const { refTo, itemRef } = props;
|
|
7
|
-
// const item = React.useRef<SchedulerItemHandle>(null);
|
|
8
|
-
// const element = React.useRef<HTMLDivElement>(null);
|
|
9
|
-
// const [, dispatchItems] = useSchedulerViewItemsContext();
|
|
10
|
-
// React.useImperativeHandle(item, () => ({ element: element.current, props }));
|
|
11
|
-
// React.useImperativeHandle(ref, () => item.current);
|
|
12
|
-
// React.useImperativeHandle(refTo, () => item.current);
|
|
13
|
-
// React.useImperativeHandle(itemRef, () => item.current);
|
|
14
|
-
// React.useLayoutEffect(
|
|
15
|
-
// () => {
|
|
16
|
-
// dispatchItems({
|
|
17
|
-
// type: COLLECTION_ACTION.add,
|
|
18
|
-
// item
|
|
19
|
-
// });
|
|
20
|
-
// return () => {
|
|
21
|
-
// dispatchItems({
|
|
22
|
-
// type: COLLECTION_ACTION.remove,
|
|
23
|
-
// item
|
|
24
|
-
// });
|
|
25
|
-
// };
|
|
26
|
-
// }
|
|
27
|
-
// );
|
|
28
|
-
// return {
|
|
29
|
-
// item,
|
|
30
|
-
// element
|
|
31
|
-
// };
|
|
32
|
-
return [];
|
|
33
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useSchedulerItem = void 0; // import { useSchedulerViewItemsContext } from '../context';
|
|
7
|
-
// import { COLLECTION_ACTION } from '@progress/kendo-vue-common';
|
|
8
|
-
|
|
9
|
-
/** @hidden */
|
|
10
|
-
|
|
11
|
-
exports.useSchedulerItem = function (_props, _refTo) {
|
|
12
|
-
// const { refTo, itemRef } = props;
|
|
13
|
-
// const item = React.useRef<SchedulerItemHandle>(null);
|
|
14
|
-
// const element = React.useRef<HTMLDivElement>(null);
|
|
15
|
-
// const [, dispatchItems] = useSchedulerViewItemsContext();
|
|
16
|
-
// React.useImperativeHandle(item, () => ({ element: element.current, props }));
|
|
17
|
-
// React.useImperativeHandle(ref, () => item.current);
|
|
18
|
-
// React.useImperativeHandle(refTo, () => item.current);
|
|
19
|
-
// React.useImperativeHandle(itemRef, () => item.current);
|
|
20
|
-
// React.useLayoutEffect(
|
|
21
|
-
// () => {
|
|
22
|
-
// dispatchItems({
|
|
23
|
-
// type: COLLECTION_ACTION.add,
|
|
24
|
-
// item
|
|
25
|
-
// });
|
|
26
|
-
// return () => {
|
|
27
|
-
// dispatchItems({
|
|
28
|
-
// type: COLLECTION_ACTION.remove,
|
|
29
|
-
// item
|
|
30
|
-
// });
|
|
31
|
-
// };
|
|
32
|
-
// }
|
|
33
|
-
// );
|
|
34
|
-
// return {
|
|
35
|
-
// item,
|
|
36
|
-
// element
|
|
37
|
-
// };
|
|
38
|
-
return [];
|
|
39
|
-
};
|