@progress/kendo-react-scheduler 4.11.0 → 4.13.0-dev.202111231559
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-react-scheduler.js +2 -2
- package/dist/es/components/BaseView.js +2 -1
- package/dist/es/context/SchedulerViewContext.d.ts +2 -1
- package/dist/es/hooks/index.d.ts +0 -1
- package/dist/es/hooks/index.js +0 -1
- package/dist/es/hooks/useSchedulerItem.js +1 -1
- package/dist/es/hooks/useSchedulerSlot.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/components/BaseView.js +3 -2
- package/dist/npm/context/SchedulerViewContext.d.ts +2 -1
- package/dist/npm/hooks/index.d.ts +0 -1
- package/dist/npm/hooks/index.js +0 -1
- package/dist/npm/hooks/useSchedulerItem.js +3 -3
- package/dist/npm/hooks/useSchedulerSlot.js +3 -3
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-react-scheduler.js +1 -1
- package/package.json +12 -12
- package/dist/es/hooks/useCollection.d.ts +0 -14
- package/dist/es/hooks/useCollection.js +0 -26
- package/dist/npm/hooks/useCollection.d.ts +0 -14
- package/dist/npm/hooks/useCollection.js +0 -28
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useCellSync,
|
|
2
|
+
import { useCellSync, useItemsFocus, useSlotsFocus } from '../hooks';
|
|
3
3
|
import { classNames } from '@progress/kendo-react-common';
|
|
4
4
|
import { SchedulerViewContext } from '../context/SchedulerViewContext';
|
|
5
5
|
import { ITEMS_SELECT_ACTION, useItemsSelection } from '../hooks/use-items-selection';
|
|
6
6
|
import { useSlotsSelection, SLOTS_SELECT_ACTION } from '../hooks/use-slots-selection';
|
|
7
|
+
import { useCollection } from '@progress/kendo-react-common';
|
|
7
8
|
/**
|
|
8
9
|
* @hidden
|
|
9
10
|
*/
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SchedulerViewProps, Range } from '../models';
|
|
3
|
-
import {
|
|
3
|
+
import { SchedulerItemsFocusAction, SchedulerSlotsFocusAction } from '../hooks';
|
|
4
4
|
import { SchedulerSlotHandle, SchedulerItemHandle } from '../main';
|
|
5
5
|
import { SchedulerItemsSelectAction } from '../hooks/use-items-selection';
|
|
6
6
|
import { SchedulerSlotsSelectAction } from '../hooks/use-slots-selection';
|
|
7
|
+
import { CollectionAction } from '@progress/kendo-react-common';
|
|
7
8
|
/**
|
|
8
9
|
* @hidden
|
|
9
10
|
*/
|
package/dist/es/hooks/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export * from './useCellSync';
|
|
|
3
3
|
export * from './useRowSync';
|
|
4
4
|
export * from './useAsyncMouseEnterLeave';
|
|
5
5
|
export * from './useEditable';
|
|
6
|
-
export * from './useCollection';
|
|
7
6
|
export * from './useSlotExpand';
|
|
8
7
|
export * from './useWorkHours';
|
|
9
8
|
export * from './useSchedulerItem';
|
package/dist/es/hooks/index.js
CHANGED
|
@@ -3,7 +3,6 @@ export * from './useCellSync';
|
|
|
3
3
|
export * from './useRowSync';
|
|
4
4
|
export * from './useAsyncMouseEnterLeave';
|
|
5
5
|
export * from './useEditable';
|
|
6
|
-
export * from './useCollection';
|
|
7
6
|
export * from './useSlotExpand';
|
|
8
7
|
export * from './useWorkHours';
|
|
9
8
|
export * from './useSchedulerItem';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useSchedulerViewItemsContext } from '../context';
|
|
3
|
-
import { COLLECTION_ACTION } from '
|
|
3
|
+
import { COLLECTION_ACTION } from '@progress/kendo-react-common';
|
|
4
4
|
/** @hidden */
|
|
5
5
|
export var useSchedulerItem = function (props, ref) {
|
|
6
6
|
var _ref = props._ref, itemRef = props.itemRef;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useSchedulerViewSlotsContext } from '../context';
|
|
3
|
-
import { COLLECTION_ACTION } from '
|
|
3
|
+
import { COLLECTION_ACTION } from '@progress/kendo-react-common';
|
|
4
4
|
/** @hidden */
|
|
5
5
|
export var useSchedulerSlot = function (props, ref) {
|
|
6
6
|
var _ref = props._ref;
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-scheduler',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1637682840,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -6,14 +6,15 @@ var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
|
6
6
|
var SchedulerViewContext_1 = require("../context/SchedulerViewContext");
|
|
7
7
|
var use_items_selection_1 = require("../hooks/use-items-selection");
|
|
8
8
|
var use_slots_selection_1 = require("../hooks/use-slots-selection");
|
|
9
|
+
var kendo_react_common_2 = require("@progress/kendo-react-common");
|
|
9
10
|
/**
|
|
10
11
|
* @hidden
|
|
11
12
|
*/
|
|
12
13
|
exports.BaseView = React.forwardRef(function (props, ref) {
|
|
13
14
|
var element = React.useRef(null);
|
|
14
15
|
React.useImperativeHandle(ref, function () { return element.current; });
|
|
15
|
-
var _a =
|
|
16
|
-
var _b =
|
|
16
|
+
var _a = kendo_react_common_2.useCollection([]), items = _a[0], dispatchItems = _a[1];
|
|
17
|
+
var _b = kendo_react_common_2.useCollection([]), slots = _b[0], dispatchSlots = _b[1];
|
|
17
18
|
var _c = hooks_1.useItemsFocus(items), focusedItems = _c[0], dispatchFocusedItems = _c[1];
|
|
18
19
|
var _d = hooks_1.useSlotsFocus(slots), focusedSlots = _d[0], dispatchFocusedSlots = _d[1];
|
|
19
20
|
var _e = use_items_selection_1.useItemsSelection(items), selectedItems = _e[0], dispatchSelectedItems = _e[1];
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SchedulerViewProps, Range } from '../models';
|
|
3
|
-
import {
|
|
3
|
+
import { SchedulerItemsFocusAction, SchedulerSlotsFocusAction } from '../hooks';
|
|
4
4
|
import { SchedulerSlotHandle, SchedulerItemHandle } from '../main';
|
|
5
5
|
import { SchedulerItemsSelectAction } from '../hooks/use-items-selection';
|
|
6
6
|
import { SchedulerSlotsSelectAction } from '../hooks/use-slots-selection';
|
|
7
|
+
import { CollectionAction } from '@progress/kendo-react-common';
|
|
7
8
|
/**
|
|
8
9
|
* @hidden
|
|
9
10
|
*/
|
|
@@ -3,7 +3,6 @@ export * from './useCellSync';
|
|
|
3
3
|
export * from './useRowSync';
|
|
4
4
|
export * from './useAsyncMouseEnterLeave';
|
|
5
5
|
export * from './useEditable';
|
|
6
|
-
export * from './useCollection';
|
|
7
6
|
export * from './useSlotExpand';
|
|
8
7
|
export * from './useWorkHours';
|
|
9
8
|
export * from './useSchedulerItem';
|
package/dist/npm/hooks/index.js
CHANGED
|
@@ -8,7 +8,6 @@ __export(require("./useCellSync"));
|
|
|
8
8
|
__export(require("./useRowSync"));
|
|
9
9
|
__export(require("./useAsyncMouseEnterLeave"));
|
|
10
10
|
__export(require("./useEditable"));
|
|
11
|
-
__export(require("./useCollection"));
|
|
12
11
|
__export(require("./useSlotExpand"));
|
|
13
12
|
__export(require("./useWorkHours"));
|
|
14
13
|
__export(require("./useSchedulerItem"));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var React = require("react");
|
|
4
4
|
var context_1 = require("../context");
|
|
5
|
-
var
|
|
5
|
+
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
6
6
|
/** @hidden */
|
|
7
7
|
exports.useSchedulerItem = function (props, ref) {
|
|
8
8
|
var _ref = props._ref, itemRef = props.itemRef;
|
|
@@ -15,12 +15,12 @@ exports.useSchedulerItem = function (props, ref) {
|
|
|
15
15
|
React.useImperativeHandle(itemRef, function () { return item.current; });
|
|
16
16
|
React.useLayoutEffect(function () {
|
|
17
17
|
dispatchItems({
|
|
18
|
-
type:
|
|
18
|
+
type: kendo_react_common_1.COLLECTION_ACTION.add,
|
|
19
19
|
item: item
|
|
20
20
|
});
|
|
21
21
|
return function () {
|
|
22
22
|
dispatchItems({
|
|
23
|
-
type:
|
|
23
|
+
type: kendo_react_common_1.COLLECTION_ACTION.remove,
|
|
24
24
|
item: item
|
|
25
25
|
});
|
|
26
26
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var React = require("react");
|
|
4
4
|
var context_1 = require("../context");
|
|
5
|
-
var
|
|
5
|
+
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
6
6
|
/** @hidden */
|
|
7
7
|
exports.useSchedulerSlot = function (props, ref) {
|
|
8
8
|
var _ref = props._ref;
|
|
@@ -14,12 +14,12 @@ exports.useSchedulerSlot = function (props, ref) {
|
|
|
14
14
|
React.useImperativeHandle(_ref, function () { return slot.current; });
|
|
15
15
|
React.useEffect(function () {
|
|
16
16
|
dispatchSlots({
|
|
17
|
-
type:
|
|
17
|
+
type: kendo_react_common_1.COLLECTION_ACTION.add,
|
|
18
18
|
item: slot
|
|
19
19
|
});
|
|
20
20
|
return function () {
|
|
21
21
|
dispatchSlots({
|
|
22
|
-
type:
|
|
22
|
+
type: kendo_react_common_1.COLLECTION_ACTION.remove,
|
|
23
23
|
item: slot
|
|
24
24
|
});
|
|
25
25
|
};
|
|
@@ -7,7 +7,7 @@ exports.packageMetadata = {
|
|
|
7
7
|
name: '@progress/kendo-react-scheduler',
|
|
8
8
|
productName: 'KendoReact',
|
|
9
9
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
10
|
-
publishDate:
|
|
10
|
+
publishDate: 1637682840,
|
|
11
11
|
version: '',
|
|
12
12
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
13
13
|
};
|