@progress/kendo-react-common 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009
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-common.js +1 -1
- package/dist/es/Draggable.d.ts +1 -1
- package/dist/es/Droppable.d.ts +1 -1
- package/dist/es/FormComponent.d.ts +3 -3
- package/dist/es/browser-support.service.d.ts +1 -1
- package/dist/es/browser-support.service.js +2 -1
- package/dist/es/canUseRef.d.ts +1 -1
- package/dist/es/clone.d.ts +1 -1
- package/dist/es/contexts/ZIndexContext.d.ts +2 -2
- package/dist/es/drag-n-drop/context/index.d.ts +3 -2
- package/dist/es/events/BaseEvent.js +1 -0
- package/dist/es/getTabIndex.d.ts +1 -1
- package/dist/es/hasRelativeStackingContext.js +1 -1
- package/dist/es/hocs/AsyncFocusBlur.d.ts +1 -1
- package/dist/es/hocs/AsyncFocusBlur.js +2 -1
- package/dist/es/hocs/withPropsContext.d.ts +2 -2
- package/dist/es/hooks/useAsyncFocusBlur.js +13 -4
- package/dist/es/hooks/useCollection.d.ts +1 -1
- package/dist/es/hooks/useControlledState.d.ts +5 -2
- package/dist/es/hooks/useControlledState.js +1 -1
- package/dist/es/hooks/useCustomComponent.d.ts +3 -12
- package/dist/es/hooks/useCustomComponent.js +5 -6
- package/dist/es/hooks/useDocument.d.ts +2 -2
- package/dist/es/hooks/useInheritedState.d.ts +1 -1
- package/dist/es/hooks/useMouse.d.ts +10 -10
- package/dist/es/hooks/usePointer.d.ts +11 -11
- package/dist/es/hooks/usePointer.js +1 -1
- package/dist/es/hooks/usePropsContext.d.ts +1 -1
- package/dist/es/hooks/useTouch.d.ts +5 -5
- package/dist/es/hooks/useTouch.js +1 -1
- package/dist/es/hooks/useWindow.d.ts +2 -2
- package/dist/es/icons/BaseIconProps.js +1 -0
- package/dist/es/icons/Icon.d.ts +1 -1
- package/dist/es/icons/Icon.js +4 -2
- package/dist/es/icons/SvgIcon.d.ts +1 -1
- package/dist/es/icons/SvgIcon.js +4 -2
- package/dist/es/icons/constants.d.ts +6 -6
- package/dist/es/icons/models/flip.js +1 -0
- package/dist/es/icons/models/size.js +1 -0
- package/dist/es/icons/models/theme-color.js +1 -0
- package/dist/es/main.js +7 -0
- package/dist/es/models/auto-scroll-options.js +1 -0
- package/dist/es/models/index.js +5 -0
- package/dist/es/models/kendoReactComponentBaseProps.js +1 -0
- package/dist/es/models/mouse.js +1 -0
- package/dist/es/models/pointer.js +1 -0
- package/dist/es/models/touch.js +1 -0
- package/dist/es/scrollbarWidth.d.ts +1 -1
- package/dist/es/scrollbarWidth.js +1 -1
- package/dist/es/treeDataOperations.js +13 -4
- package/dist/es/typography/Typography.js +8 -6
- package/dist/es/typography/TypographyProps.js +1 -0
- package/dist/es/typography/constants.d.ts +44 -44
- package/dist/es/typography/models/margin.js +1 -0
- package/dist/es/validate-package.js +2 -2
- package/dist/npm/Draggable.d.ts +1 -1
- package/dist/npm/Draggable.js +2 -1
- package/dist/npm/Droppable.d.ts +1 -1
- package/dist/npm/Droppable.js +2 -1
- package/dist/npm/FormComponent.d.ts +3 -3
- package/dist/npm/FormComponent.js +1 -0
- package/dist/npm/browser-support.service.d.ts +1 -1
- package/dist/npm/browser-support.service.js +3 -1
- package/dist/npm/canUseDOM.js +1 -0
- package/dist/npm/canUseRef.d.ts +1 -1
- package/dist/npm/canUseRef.js +3 -1
- package/dist/npm/classNames.js +3 -1
- package/dist/npm/clone.d.ts +1 -1
- package/dist/npm/clone.js +4 -2
- package/dist/npm/constants/index.js +1 -0
- package/dist/npm/contexts/ZIndexContext.d.ts +2 -2
- package/dist/npm/contexts/ZIndexContext.js +3 -1
- package/dist/npm/drag-n-drop/context/index.d.ts +3 -2
- package/dist/npm/drag-n-drop/context/index.js +1 -0
- package/dist/npm/drag-n-drop/index.js +7 -5
- package/dist/npm/events/dispatchEvent.js +1 -0
- package/dist/npm/fieldList.js +1 -0
- package/dist/npm/focus.js +3 -1
- package/dist/npm/getTabIndex.d.ts +1 -1
- package/dist/npm/getTabIndex.js +3 -1
- package/dist/npm/getter.js +2 -1
- package/dist/npm/guid.js +3 -1
- package/dist/npm/hasRelativeStackingContext.js +4 -2
- package/dist/npm/hocs/AsyncFocusBlur.d.ts +1 -1
- package/dist/npm/hocs/AsyncFocusBlur.js +6 -3
- package/dist/npm/hocs/withPropsContext.d.ts +2 -2
- package/dist/npm/hocs/withPropsContext.js +6 -3
- package/dist/npm/hooks/index.js +26 -15
- package/dist/npm/hooks/useAsyncFocusBlur.js +14 -4
- package/dist/npm/hooks/useCollection.d.ts +1 -1
- package/dist/npm/hooks/useCollection.js +3 -1
- package/dist/npm/hooks/useControlledState.d.ts +5 -2
- package/dist/npm/hooks/useControlledState.js +4 -2
- package/dist/npm/hooks/useCustomComponent.d.ts +3 -12
- package/dist/npm/hooks/useCustomComponent.js +7 -6
- package/dist/npm/hooks/useDir.js +1 -0
- package/dist/npm/hooks/useDocument.d.ts +2 -2
- package/dist/npm/hooks/useDocument.js +3 -1
- package/dist/npm/hooks/useDraggable.js +7 -6
- package/dist/npm/hooks/useDroppable.js +2 -1
- package/dist/npm/hooks/useInheritedState.d.ts +1 -1
- package/dist/npm/hooks/useInheritedState.js +3 -1
- package/dist/npm/hooks/useMouse.d.ts +10 -10
- package/dist/npm/hooks/useMouse.js +3 -1
- package/dist/npm/hooks/usePointer.d.ts +11 -11
- package/dist/npm/hooks/usePointer.js +4 -2
- package/dist/npm/hooks/usePropsContext.d.ts +1 -1
- package/dist/npm/hooks/usePropsContext.js +3 -1
- package/dist/npm/hooks/useRtl.js +1 -0
- package/dist/npm/hooks/useTouch.d.ts +5 -5
- package/dist/npm/hooks/useTouch.js +4 -2
- package/dist/npm/hooks/useWindow.d.ts +2 -2
- package/dist/npm/hooks/useWindow.js +4 -2
- package/dist/npm/icons/Icon.d.ts +1 -1
- package/dist/npm/icons/Icon.js +7 -4
- package/dist/npm/icons/SvgIcon.d.ts +1 -1
- package/dist/npm/icons/SvgIcon.js +6 -3
- package/dist/npm/icons/constants.d.ts +6 -6
- package/dist/npm/icons/constants.js +1 -0
- package/dist/npm/keys.js +1 -0
- package/dist/npm/main.js +60 -42
- package/dist/npm/models/index.js +19 -0
- package/dist/npm/noop.js +3 -1
- package/dist/npm/scrollbarWidth.d.ts +1 -1
- package/dist/npm/scrollbarWidth.js +6 -3
- package/dist/npm/setter.js +2 -1
- package/dist/npm/theme.js +1 -0
- package/dist/npm/treeDataOperations.js +22 -8
- package/dist/npm/typography/Typography.js +9 -6
- package/dist/npm/typography/constants.d.ts +44 -44
- package/dist/npm/typography/constants.js +1 -0
- package/dist/npm/validate-package.js +3 -2
- package/dist/systemjs/kendo-react-common.js +1 -1
- package/package.json +10 -10
|
@@ -6,10 +6,10 @@ declare type ElementTouch = {
|
|
|
6
6
|
/**
|
|
7
7
|
* @hidden
|
|
8
8
|
*/
|
|
9
|
-
export declare const useMouse: <E extends HTMLElement, P extends KendoTouch<any, any>, R extends {}>(props: P, target: React.RefObject<R>, extend?: {
|
|
10
|
-
onTouchStart?: (args: React.TouchEvent<E>) => void;
|
|
11
|
-
onTouchMove?: (args: React.TouchEvent<E>) => void;
|
|
12
|
-
onTouchEnd?: (args: React.TouchEvent<E>) => void;
|
|
13
|
-
onTouchCancel?: (args: React.TouchEvent<E>) => void;
|
|
9
|
+
export declare const useMouse: <E extends HTMLElement | null, P extends KendoTouch<any, any>, R extends {}>(props: P, target: React.RefObject<R>, extend?: {
|
|
10
|
+
onTouchStart?: ((args: React.TouchEvent<E>) => void) | undefined;
|
|
11
|
+
onTouchMove?: ((args: React.TouchEvent<E>) => void) | undefined;
|
|
12
|
+
onTouchEnd?: ((args: React.TouchEvent<E>) => void) | undefined;
|
|
13
|
+
onTouchCancel?: ((args: React.TouchEvent<E>) => void) | undefined;
|
|
14
14
|
}) => ElementTouch;
|
|
15
15
|
export {};
|
|
@@ -17,7 +17,7 @@ export var useMouse = function (props, target, extend) {
|
|
|
17
17
|
if (extend === void 0) { extend = {}; }
|
|
18
18
|
return Object.keys(extend).reduce(function (acc, key) {
|
|
19
19
|
var _a;
|
|
20
|
-
return (__assign({}, acc, (_a = {}, _a[key] = React.useCallback(function (syntheticEvent) {
|
|
20
|
+
return (__assign(__assign({}, acc), (_a = {}, _a[key] = React.useCallback(function (syntheticEvent) {
|
|
21
21
|
if (extend[key]) {
|
|
22
22
|
extend[key](syntheticEvent);
|
|
23
23
|
}
|
|
@@ -2,6 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns a function, which gets the `defaultView` based on the `ownerDocument` of the element.
|
|
4
4
|
*/
|
|
5
|
-
export declare const useWindow: (ref: React.RefObject<HTMLElement | {
|
|
6
|
-
element: HTMLElement;
|
|
5
|
+
export declare const useWindow: (ref: React.RefObject<HTMLElement | null | {
|
|
6
|
+
element: HTMLElement | null;
|
|
7
7
|
}>) => () => Window;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es/icons/Icon.d.ts
CHANGED
|
@@ -32,4 +32,4 @@ export interface IconProps extends BaseIconProps, KendoMouse<IconHandle, HTMLSpa
|
|
|
32
32
|
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
export declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<IconHandle>>;
|
|
35
|
+
export declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<IconHandle | null>>;
|
package/dist/es/icons/Icon.js
CHANGED
|
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
14
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
15
|
t[p] = s[p];
|
|
16
16
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
18
|
-
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
19
21
|
return t;
|
|
20
22
|
};
|
|
21
23
|
import * as React from 'react';
|
|
@@ -68,4 +68,4 @@ export interface SvgIconProps extends BaseIconProps, React.SVGAttributes<HTMLOrS
|
|
|
68
68
|
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
69
69
|
* ```
|
|
70
70
|
*/
|
|
71
|
-
export declare const SvgIcon: React.ForwardRefExoticComponent<SvgIconProps & React.RefAttributes<SvgIconHandle>>;
|
|
71
|
+
export declare const SvgIcon: React.ForwardRefExoticComponent<SvgIconProps & React.RefAttributes<SvgIconHandle | null>>;
|
package/dist/es/icons/SvgIcon.js
CHANGED
|
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
14
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
15
|
t[p] = s[p];
|
|
16
16
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
18
|
-
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
19
21
|
return t;
|
|
20
22
|
};
|
|
21
23
|
import * as React from 'react';
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* @hidden
|
|
3
3
|
*/
|
|
4
4
|
export declare const SIZE_CLASSES: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
default: string;
|
|
6
|
+
xsmall: string;
|
|
7
|
+
small: string;
|
|
8
|
+
medium: string;
|
|
9
|
+
large: string;
|
|
10
|
+
xlarge: string;
|
|
11
11
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es/main.js
CHANGED
|
@@ -16,6 +16,7 @@ export * from './setter';
|
|
|
16
16
|
export * from './treeDataOperations';
|
|
17
17
|
export * from './validate-package';
|
|
18
18
|
export * from './hasRelativeStackingContext';
|
|
19
|
+
export * from './events/BaseEvent';
|
|
19
20
|
export * from './events/dispatchEvent';
|
|
20
21
|
export * from './hocs/AsyncFocusBlur';
|
|
21
22
|
export * from './hocs/withPropsContext';
|
|
@@ -28,8 +29,14 @@ export * from './hooks/usePropsContext';
|
|
|
28
29
|
export * from './hooks/useCollection';
|
|
29
30
|
export * from './hooks/useDocument';
|
|
30
31
|
export * from './hooks/useWindow';
|
|
32
|
+
export * from './models';
|
|
31
33
|
export * from './icons/Icon';
|
|
32
34
|
export * from './icons/SvgIcon';
|
|
35
|
+
export * from './icons/models/flip';
|
|
36
|
+
export * from './icons/models/size';
|
|
37
|
+
export * from './icons/models/theme-color';
|
|
38
|
+
export * from './typography/models/margin';
|
|
39
|
+
export * from './typography/TypographyProps';
|
|
33
40
|
export * from './typography/Typography';
|
|
34
41
|
export * from './drag-n-drop';
|
|
35
42
|
export * from './Draggable';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es/models/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es/models/mouse.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es/models/touch.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -18,5 +18,5 @@ export var setScrollbarWidth = function () {
|
|
|
18
18
|
return false;
|
|
19
19
|
}
|
|
20
20
|
var scrollbarWidth = new BrowserSupportService().scrollbarWidth;
|
|
21
|
-
document.body.style.setProperty('--kendo-scrollbar-width', scrollbarWidth
|
|
21
|
+
document.body.style.setProperty('--kendo-scrollbar-width', "".concat(scrollbarWidth, "px"));
|
|
22
22
|
};
|
|
@@ -9,14 +9,23 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
|
+
if (ar || !(i in from)) {
|
|
15
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16
|
+
ar[i] = from[i];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
|
+
};
|
|
12
21
|
// Gets and sets the children. Returns the children or the re-created item with the new children.
|
|
13
22
|
function children(item, subItemsField, subItems) {
|
|
14
23
|
var _a;
|
|
15
24
|
if (subItems) {
|
|
16
|
-
return __assign({}, item, (_a = {}, _a[subItemsField] = subItems.length ? subItems
|
|
25
|
+
return __assign(__assign({}, item), (_a = {}, _a[subItemsField] = subItems.length ? __spreadArray([], subItems, true) : undefined, _a));
|
|
17
26
|
}
|
|
18
27
|
else {
|
|
19
|
-
return item && item[subItemsField] ? item[subItemsField]
|
|
28
|
+
return item && item[subItemsField] ? __spreadArray([], item[subItemsField], true) : [];
|
|
20
29
|
}
|
|
21
30
|
}
|
|
22
31
|
function mapItem(dataItem, subItemsField, callbackfn) {
|
|
@@ -36,7 +45,7 @@ function mapItem(dataItem, subItemsField, callbackfn) {
|
|
|
36
45
|
* @returns {any[]} - The new data tree.
|
|
37
46
|
*/
|
|
38
47
|
export var mapTree = function (tree, subItemsField, callback) {
|
|
39
|
-
return tree.map(function (item) { return mapItem(item, subItemsField, callback); })
|
|
48
|
+
return __spreadArray([], tree.map(function (item) { return mapItem(item, subItemsField, callback); }), true);
|
|
40
49
|
};
|
|
41
50
|
/**
|
|
42
51
|
* Creates a new array with the results of calling the provided callback function
|
|
@@ -83,7 +92,7 @@ export var extendDataItem = function (item, subItemsField, propsToExtend) {
|
|
|
83
92
|
*/
|
|
84
93
|
export var getItemPath = function (tree, level, subItemsField) {
|
|
85
94
|
var nodes = [];
|
|
86
|
-
var itemLevel = level
|
|
95
|
+
var itemLevel = __spreadArray([], level, true);
|
|
87
96
|
if (itemLevel.length) {
|
|
88
97
|
var element = tree[itemLevel.shift() || 0];
|
|
89
98
|
nodes.push(element);
|
|
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
14
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
15
|
t[p] = s[p];
|
|
16
16
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
18
|
-
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
19
21
|
return t;
|
|
20
22
|
};
|
|
21
23
|
import * as React from 'react';
|
|
@@ -36,12 +38,12 @@ var generateTypography = function (element) {
|
|
|
36
38
|
React.useImperativeHandle(ref, function () { return target.current; });
|
|
37
39
|
var defaultClass = function () {
|
|
38
40
|
var classMap = element === 'p' ? 'paragraph' : element;
|
|
39
|
-
return "k-"
|
|
41
|
+
return "k-".concat(classMap);
|
|
40
42
|
};
|
|
41
43
|
var Component = element;
|
|
42
44
|
var setMarginClassPerSide = function (marginSide, value) {
|
|
43
45
|
var val = typeof value === 'string' ? MARGIN_ENUM_VALUES[value] : value;
|
|
44
|
-
return ""
|
|
46
|
+
return "".concat(MARGIN_SIDES_CLASSES[marginSide]).concat(val);
|
|
45
47
|
};
|
|
46
48
|
var setMarginClasses = function () {
|
|
47
49
|
if (margin === undefined) {
|
|
@@ -52,7 +54,7 @@ var generateTypography = function (element) {
|
|
|
52
54
|
}
|
|
53
55
|
// The the predefined Kendo classes are starting from 0 to 24.
|
|
54
56
|
if (typeof margin === 'number' && margin >= 0 && margin <= 24) {
|
|
55
|
-
return ["k-m-"
|
|
57
|
+
return ["k-m-".concat(margin)];
|
|
56
58
|
}
|
|
57
59
|
if (typeof margin === 'object') {
|
|
58
60
|
var marginClassesList_1 = [];
|
|
@@ -99,7 +101,7 @@ var generateTypography = function (element) {
|
|
|
99
101
|
'dark', 'light', 'inverse'
|
|
100
102
|
])
|
|
101
103
|
};
|
|
102
|
-
component.displayName = "KendoReactTypography"
|
|
104
|
+
component.displayName = "KendoReactTypography".concat(element.toUpperCase());
|
|
103
105
|
return component;
|
|
104
106
|
};
|
|
105
107
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,83 +2,83 @@
|
|
|
2
2
|
* @hidden
|
|
3
3
|
*/
|
|
4
4
|
export declare const FONT_SIZE_CLASSES: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
xsmall: string;
|
|
6
|
+
small: string;
|
|
7
|
+
medium: string;
|
|
8
|
+
large: string;
|
|
9
|
+
xlarge: string;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* @hidden
|
|
13
13
|
*/
|
|
14
14
|
export declare const FONT_WEIGHT_CLASSES: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
light: string;
|
|
16
|
+
normal: string;
|
|
17
|
+
bold: string;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
20
|
* @hidden
|
|
21
21
|
*/
|
|
22
22
|
export declare const MARGIN_ENUM_CLASSES: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
xsmall: string;
|
|
24
|
+
small: string;
|
|
25
|
+
medium: string;
|
|
26
|
+
large: string;
|
|
27
|
+
xlarge: string;
|
|
28
|
+
thin: string;
|
|
29
|
+
hair: string;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* @hidden
|
|
33
33
|
*/
|
|
34
34
|
export declare const MARGIN_ENUM_VALUES: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
xsmall: string;
|
|
36
|
+
small: string;
|
|
37
|
+
medium: string;
|
|
38
|
+
large: string;
|
|
39
|
+
xlarge: string;
|
|
40
|
+
thin: string;
|
|
41
|
+
hair: string;
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
44
|
* @hidden
|
|
45
45
|
*/
|
|
46
46
|
export declare const MARGIN_SIDES_CLASSES: {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
top: string;
|
|
48
|
+
right: string;
|
|
49
|
+
bottom: string;
|
|
50
|
+
left: string;
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
53
|
* @hidden
|
|
54
54
|
*/
|
|
55
55
|
export declare const TEXT_ALIGN_CLASSES: {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
left: string;
|
|
57
|
+
right: string;
|
|
58
|
+
center: string;
|
|
59
|
+
justify: string;
|
|
60
60
|
};
|
|
61
61
|
/**
|
|
62
62
|
* @hidden
|
|
63
63
|
*/
|
|
64
64
|
export declare const TEXT_TRANSFORM_CLASSES: {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
lowercase: string;
|
|
66
|
+
uppercase: string;
|
|
67
|
+
capitalize: string;
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
70
|
* @hidden
|
|
71
71
|
*/
|
|
72
72
|
export declare const THEME_COLOR_CLASSES: {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
73
|
+
inherit: string;
|
|
74
|
+
primary: string;
|
|
75
|
+
secondary: string;
|
|
76
|
+
tertiary: string;
|
|
77
|
+
info: string;
|
|
78
|
+
success: string;
|
|
79
|
+
warning: string;
|
|
80
|
+
error: string;
|
|
81
|
+
dark: string;
|
|
82
|
+
light: string;
|
|
83
|
+
inverse: string;
|
|
84
84
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -7,9 +7,9 @@ export function validatePackage(packageMetadata) {
|
|
|
7
7
|
licensing.validatePackage(packageMetadata);
|
|
8
8
|
}
|
|
9
9
|
else {
|
|
10
|
-
var message = "License activation failed for "
|
|
10
|
+
var message = "License activation failed for ".concat(packageMetadata.name, "\n");
|
|
11
11
|
message += 'The @progress/kendo-licensing script is not loaded.\n';
|
|
12
|
-
message += "See "
|
|
12
|
+
message += "See ".concat(packageMetadata.licensingDocsUrl, " for more information.\n");
|
|
13
13
|
console.warn(message);
|
|
14
14
|
}
|
|
15
15
|
}
|
package/dist/npm/Draggable.d.ts
CHANGED
|
@@ -81,6 +81,6 @@ export interface DraggableProps extends DraggableOptions {
|
|
|
81
81
|
* Accepts properties of type [DraggableProps]({% slug api_common_draggableprops %}),
|
|
82
82
|
* and returns an object of type [DraggableHandle]({% slug api_common_draggablehandle %}) when the `ref` is obtained.
|
|
83
83
|
*/
|
|
84
|
-
export declare const Draggable: React.ForwardRefExoticComponent<DraggableProps & React.RefAttributes<DraggableHandle>>;
|
|
84
|
+
export declare const Draggable: React.ForwardRefExoticComponent<DraggableProps & React.RefAttributes<DraggableHandle | null>>;
|
|
85
85
|
export declare type Draggable = DraggableHandle;
|
|
86
86
|
export {};
|
package/dist/npm/Draggable.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Draggable = void 0;
|
|
3
4
|
var React = require("react");
|
|
4
5
|
var hooks_1 = require("./hooks");
|
|
5
6
|
/**
|
|
@@ -67,7 +68,7 @@ exports.Draggable = React.forwardRef(function (props, ref) {
|
|
|
67
68
|
event: event
|
|
68
69
|
});
|
|
69
70
|
}, [getElement, props.onDragEnd]);
|
|
70
|
-
hooks_1.useDraggable(childRef, {
|
|
71
|
+
(0, hooks_1.useDraggable)(childRef, {
|
|
71
72
|
onPress: handlePress,
|
|
72
73
|
onRelease: handleRelease,
|
|
73
74
|
onDragStart: handleDragStart,
|
package/dist/npm/Droppable.d.ts
CHANGED
|
@@ -72,6 +72,6 @@ export interface DroppableProps {
|
|
|
72
72
|
* Accepts properties of type [DroppableProps]({% slug api_common_droppableprops %}),
|
|
73
73
|
* and returns an object of type [DroppableHandle]({% slug api_common_droppablehandle %}) when the `ref` is obtained.
|
|
74
74
|
*/
|
|
75
|
-
export declare const Droppable: React.ForwardRefExoticComponent<DroppableProps & React.RefAttributes<DroppableHandle>>;
|
|
75
|
+
export declare const Droppable: React.ForwardRefExoticComponent<DroppableProps & React.RefAttributes<DroppableHandle | null>>;
|
|
76
76
|
export declare type Droppable = DroppableHandle;
|
|
77
77
|
export {};
|
package/dist/npm/Droppable.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Droppable = void 0;
|
|
3
4
|
var React = require("react");
|
|
4
5
|
var hooks_1 = require("./hooks");
|
|
5
6
|
/**
|
|
@@ -57,7 +58,7 @@ exports.Droppable = React.forwardRef(function (props, ref) {
|
|
|
57
58
|
event: event
|
|
58
59
|
});
|
|
59
60
|
}, [props.onDrop, getElement]);
|
|
60
|
-
hooks_1.useDroppable(childRef, {
|
|
61
|
+
(0, hooks_1.useDroppable)(childRef, {
|
|
61
62
|
onDragEnter: handleDragEnter,
|
|
62
63
|
onDragOver: handleDragOver,
|
|
63
64
|
onDragLeave: handleDragLeave,
|
|
@@ -92,7 +92,7 @@ export interface FormComponentValidity {
|
|
|
92
92
|
* @hidden
|
|
93
93
|
*/
|
|
94
94
|
export declare abstract class FormComponent {
|
|
95
|
-
abstract
|
|
96
|
-
abstract
|
|
97
|
-
abstract
|
|
95
|
+
abstract get value(): any;
|
|
96
|
+
abstract get validity(): FormComponentValidity;
|
|
97
|
+
abstract get name(): string | undefined;
|
|
98
98
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BrowserSupportService = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* @hidden
|
|
5
6
|
*/
|
|
@@ -9,6 +10,7 @@ var getDocument = function () { return typeof document !== 'undefined' ? documen
|
|
|
9
10
|
*/
|
|
10
11
|
var BrowserSupportService = /** @class */ (function () {
|
|
11
12
|
function BrowserSupportService() {
|
|
13
|
+
this.scrollbar = 0;
|
|
12
14
|
}
|
|
13
15
|
Object.defineProperty(BrowserSupportService.prototype, "scrollbarWidth", {
|
|
14
16
|
get: function () {
|
|
@@ -23,7 +25,7 @@ var BrowserSupportService = /** @class */ (function () {
|
|
|
23
25
|
}
|
|
24
26
|
return this.scrollbar;
|
|
25
27
|
},
|
|
26
|
-
enumerable:
|
|
28
|
+
enumerable: false,
|
|
27
29
|
configurable: true
|
|
28
30
|
});
|
|
29
31
|
return BrowserSupportService;
|
package/dist/npm/canUseDOM.js
CHANGED
package/dist/npm/canUseRef.d.ts
CHANGED
package/dist/npm/canUseRef.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.canUseRef = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* @hidden
|
|
5
6
|
*/
|
|
@@ -11,4 +12,5 @@ var isForwardRef = function (Component) { return Boolean(Component.$$typeof && t
|
|
|
11
12
|
/**
|
|
12
13
|
* @hidden
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
var canUseRef = function (Component) { return typeof Comment !== 'string' && (isClassComponent(Component) || isForwardRef(Component)); };
|
|
16
|
+
exports.canUseRef = canUseRef;
|
package/dist/npm/classNames.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.classNames = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* @hidden
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
|
+
var classNames = function () {
|
|
7
8
|
var args = [];
|
|
8
9
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
9
10
|
args[_i] = arguments[_i];
|
|
@@ -30,3 +31,4 @@ exports.classNames = function () {
|
|
|
30
31
|
.filter(function (el) { return el !== null; })
|
|
31
32
|
.join(' ');
|
|
32
33
|
};
|
|
34
|
+
exports.classNames = classNames;
|
package/dist/npm/clone.d.ts
CHANGED
package/dist/npm/clone.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cloneArray = exports.cloneValue = exports.cloneObject = exports.clone = exports.cloneDate = void 0;
|
|
3
4
|
var React = require("react");
|
|
4
5
|
/**
|
|
5
6
|
* @hidden
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
var cloneDate = function (date) { return date ? new Date(date.getTime()) : null; };
|
|
9
|
+
exports.cloneDate = cloneDate;
|
|
8
10
|
/**
|
|
9
11
|
* @hidden
|
|
10
12
|
*/
|
|
@@ -34,7 +36,7 @@ function cloneValue(value, nextValue) {
|
|
|
34
36
|
return cloneArray(value);
|
|
35
37
|
}
|
|
36
38
|
else if (value instanceof Date) {
|
|
37
|
-
return exports.cloneDate(value);
|
|
39
|
+
return (0, exports.cloneDate)(value);
|
|
38
40
|
}
|
|
39
41
|
else if (React.isValidElement(value)) {
|
|
40
42
|
return React.cloneElement(value, value.props);
|
|
@@ -2,6 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
/** @hidden */
|
|
3
3
|
export declare type ZIndexContextType = number | undefined;
|
|
4
4
|
/** @hidden */
|
|
5
|
-
export declare const ZIndexContext: React.Context<
|
|
5
|
+
export declare const ZIndexContext: React.Context<ZIndexContextType>;
|
|
6
6
|
/** @hidden */
|
|
7
|
-
export declare const useZIndexContext: () =>
|
|
7
|
+
export declare const useZIndexContext: () => ZIndexContextType;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useZIndexContext = exports.ZIndexContext = void 0;
|
|
3
4
|
var React = require("react");
|
|
4
5
|
/** @hidden */
|
|
5
6
|
exports.ZIndexContext = React.createContext(0);
|
|
6
7
|
/** @hidden */
|
|
7
|
-
|
|
8
|
+
var useZIndexContext = function () { return React.useContext(exports.ZIndexContext); };
|
|
9
|
+
exports.useZIndexContext = useZIndexContext;
|
|
8
10
|
exports.ZIndexContext.displayName = 'KendoReactZIndexContext';
|