@progress/kendo-react-common 13.3.0-develop.9 → 13.4.0-develop.1
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/Draggable.d.ts +93 -0
- package/Droppable.d.ts +84 -0
- package/FormComponent.d.ts +218 -0
- package/apply-default-props.d.ts +13 -0
- package/browser-support.service.d.ts +14 -0
- package/canUseDOM.d.ts +11 -0
- package/canUseRef.d.ts +12 -0
- package/classNames.d.ts +15 -0
- package/clone.d.ts +27 -0
- package/constants/main.d.ts +27 -0
- package/contexts/AdaptiveModeContext.d.ts +50 -0
- package/contexts/AdaptiveModeContext.mjs +2 -2
- package/contexts/ZIndexContext.d.ts +14 -0
- package/deep-merge.d.ts +13 -0
- package/dist/cdn/js/kendo-react-common.js +1 -1
- package/drag-n-drop/context/index.d.ts +24 -0
- package/drag-n-drop/index.d.ts +33 -0
- package/events/BaseEvent.d.ts +25 -0
- package/events/dispatchEvent.d.ts +21 -0
- package/fieldList.d.ts +11 -0
- package/fileExtensionIcon.d.ts +12 -0
- package/getActiveElement.d.ts +15 -0
- package/getTabIndex.d.ts +11 -0
- package/getter.d.ts +21 -0
- package/guid.d.ts +11 -0
- package/hasRelativeStackingContext.d.ts +9 -0
- package/hocs/AsyncFocusBlur.d.ts +20 -0
- package/hocs/use-adaptive-mode-hoc.d.ts +10 -0
- package/hocs/use-id-hoc.d.ts +10 -0
- package/hocs/use-unstyled-hoc.d.ts +10 -0
- package/hocs/withPropsContext.d.ts +12 -0
- package/hocs/withzIndexContext.d.ts +10 -0
- package/hooks/index.d.ts +19 -0
- package/hooks/use-id.d.ts +9 -0
- package/hooks/use-immediate-inherit-state.d.ts +13 -0
- package/hooks/use-isomorphic-layout-effect.d.ts +10 -0
- package/hooks/useAsyncFocusBlur.d.ts +32 -0
- package/hooks/useCollection.d.ts +21 -0
- package/hooks/useControlledState.d.ts +11 -0
- package/hooks/useCustomComponent.d.ts +16 -0
- package/hooks/useDir.d.ts +12 -0
- package/hooks/useDocument.d.ts +14 -0
- package/hooks/useDraggable.d.ts +75 -0
- package/hooks/useDroppable.d.ts +46 -0
- package/hooks/useInheritedState.d.ts +23 -0
- package/hooks/useMouse.d.ts +27 -0
- package/hooks/usePointer.d.ts +28 -0
- package/hooks/usePropsContext.d.ts +10 -0
- package/hooks/useRtl.d.ts +12 -0
- package/hooks/useTouch.d.ts +22 -0
- package/hooks/useWindow.d.ts +14 -0
- package/icons/BaseIconProps.d.ts +79 -0
- package/icons/Icon.d.ts +41 -0
- package/icons/IconWrap.d.ts +14 -0
- package/icons/IconsContext.d.ts +28 -0
- package/icons/SvgIcon.d.ts +77 -0
- package/icons/constants.d.ts +20 -0
- package/icons/models/flip.d.ts +18 -0
- package/icons/models/size.d.ts +22 -0
- package/icons/models/theme-color.d.ts +28 -0
- package/icons/utils.d.ts +24 -0
- package/index.d.mts +74 -4288
- package/index.d.ts +74 -4288
- package/keys.d.ts +47 -0
- package/memoize.d.ts +17 -0
- package/models/auto-scroll-options.d.ts +29 -0
- package/models/index.d.ts +12 -0
- package/models/kendoReactComponentBaseProps.d.ts +30 -0
- package/models/mouse.d.ts +56 -0
- package/models/pointer.d.ts +30 -0
- package/models/touch.d.ts +24 -0
- package/navigation.d.ts +166 -0
- package/noop.d.ts +11 -0
- package/package.json +1 -1
- package/rowHeightService.d.ts +31 -0
- package/scrollbarWidth.d.ts +15 -0
- package/setter.d.ts +23 -0
- package/theme.d.ts +15 -0
- package/trappedFocus.d.ts +44 -0
- package/tree-utils/FieldsService.d.ts +32 -0
- package/tree-utils/SortedPublicItemIds.d.ts +15 -0
- package/tree-utils/itemIdUtils.d.ts +67 -0
- package/tree-utils/itemIdUtils.mjs +51 -51
- package/tree-utils/itemUtils.d.ts +52 -0
- package/tree-utils/misc.d.ts +15 -0
- package/treeDataOperations.d.ts +46 -0
- package/typography/Typography.d.ts +41 -0
- package/typography/TypographyProps.d.ts +127 -0
- package/typography/constants.d.ts +91 -0
- package/typography/models/margin.d.ts +30 -0
- package/unstyled/animations.d.ts +96 -0
- package/unstyled/buttons.d.ts +186 -0
- package/unstyled/buttons.js +1 -1
- package/unstyled/buttons.mjs +104 -194
- package/unstyled/dateinputs.d.ts +397 -0
- package/unstyled/dateinputs.mjs +19 -19
- package/unstyled/dropdowns.d.ts +314 -0
- package/unstyled/dropdowns.mjs +1 -1
- package/unstyled/form.d.ts +71 -0
- package/unstyled/form.mjs +1 -1
- package/unstyled/grid.d.ts +12 -0
- package/unstyled/grid.js +1 -1
- package/unstyled/grid.mjs +51 -50
- package/unstyled/icons.d.ts +89 -0
- package/unstyled/icons.mjs +1 -1
- package/unstyled/inputs.d.ts +213 -0
- package/unstyled/inputs.mjs +14 -14
- package/unstyled/interfaces/common.d.ts +138 -0
- package/unstyled/json-classes.d.ts +378 -0
- package/unstyled/labels.d.ts +99 -0
- package/unstyled/main.d.ts +34 -0
- package/unstyled/popup.d.ts +123 -0
- package/unstyled/popup.mjs +3 -3
- package/validate-package.d.ts +38 -0
- package/watermark/WatermarkOverlay.d.ts +21 -0
package/keys.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const Keys: {
|
|
12
|
+
backspace: number;
|
|
13
|
+
tab: number;
|
|
14
|
+
enter: number;
|
|
15
|
+
shift: number;
|
|
16
|
+
esc: number;
|
|
17
|
+
space: number;
|
|
18
|
+
pageUp: number;
|
|
19
|
+
pageDown: number;
|
|
20
|
+
end: number;
|
|
21
|
+
home: number;
|
|
22
|
+
left: number;
|
|
23
|
+
up: number;
|
|
24
|
+
right: number;
|
|
25
|
+
down: number;
|
|
26
|
+
delete: number;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare const KEYS: {
|
|
32
|
+
backspace: string;
|
|
33
|
+
tab: string;
|
|
34
|
+
enter: string;
|
|
35
|
+
shift: string;
|
|
36
|
+
esc: string;
|
|
37
|
+
space: string;
|
|
38
|
+
pageUp: string;
|
|
39
|
+
pageDown: string;
|
|
40
|
+
end: string;
|
|
41
|
+
home: string;
|
|
42
|
+
left: string;
|
|
43
|
+
up: string;
|
|
44
|
+
right: string;
|
|
45
|
+
down: string;
|
|
46
|
+
delete: string;
|
|
47
|
+
};
|
package/memoize.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
type EqualityFn<TFunc extends (...args: any[]) => any> = (newArgs: Parameters<TFunc>, lastArgs: Parameters<TFunc>) => boolean;
|
|
9
|
+
type MemoizedFn<TFunc extends (this: any, ...args: any[]) => any> = {
|
|
10
|
+
clear: () => void;
|
|
11
|
+
(this: ThisParameterType<TFunc>, ...args: Parameters<TFunc>): ReturnType<TFunc>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare function memoizeOne<TFunc extends (this: any, ...newArgs: any[]) => any>(resultFn: TFunc, isEqualFn?: EqualityFn<TFunc>): MemoizedFn<TFunc>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Represents additional configuration options for the `autoScroll` options of the `useDraggable` hook and `Draggable` component.
|
|
10
|
+
*/
|
|
11
|
+
export interface AutoScrollOptions {
|
|
12
|
+
/**
|
|
13
|
+
* Set to `false` to disable the `autoScroll` feature.
|
|
14
|
+
*/
|
|
15
|
+
enabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Allows the user to toggle `autoScroll` in a specific direction.
|
|
18
|
+
*/
|
|
19
|
+
direction?: {
|
|
20
|
+
horizontal: boolean;
|
|
21
|
+
vertical: boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Overrides the calculated element used for boundary detection, used to calculate the `autoScroll` velocity.
|
|
25
|
+
*/
|
|
26
|
+
boundaryElementRef?: React.RefObject<HTMLElement | null | {
|
|
27
|
+
element: HTMLElement | null;
|
|
28
|
+
}> | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
export * from './mouse.js';
|
|
9
|
+
export * from './touch.js';
|
|
10
|
+
export * from './pointer.js';
|
|
11
|
+
export * from './auto-scroll-options.js';
|
|
12
|
+
export * from './kendoReactComponentBaseProps.js';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*
|
|
11
|
+
* Represents the base properties of a KendoReact component.
|
|
12
|
+
*/
|
|
13
|
+
export interface KendoReactComponentBaseProps {
|
|
14
|
+
/**
|
|
15
|
+
* Sets the `id` property of the top div element of the component.
|
|
16
|
+
*/
|
|
17
|
+
id?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Determines the children nodes.
|
|
20
|
+
*/
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Sets additional classes to the component.
|
|
24
|
+
*/
|
|
25
|
+
className?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Sets additional CSS styles to the component.
|
|
28
|
+
*/
|
|
29
|
+
style?: React.CSSProperties;
|
|
30
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
export interface KendoMouse<T, E extends HTMLElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Fired when the mouse button is pressed down on the element.
|
|
12
|
+
*/
|
|
13
|
+
onMouseDown?: (args: KendoMouseEvent<T, E>) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Fired when the mouse button is released over the element.
|
|
16
|
+
*/
|
|
17
|
+
onMouseUp?: (args: KendoMouseEvent<T, E>) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Fired when the element is clicked.
|
|
20
|
+
*/
|
|
21
|
+
onClick?: (args: KendoMouseEvent<T, E>) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Fired when the element is double-clicked.
|
|
24
|
+
*/
|
|
25
|
+
onDoubleClick?: (args: KendoMouseEvent<T, E>) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Fired when the mouse pointer enters the element.
|
|
28
|
+
*/
|
|
29
|
+
onMouseEnter?: (args: KendoMouseEvent<T, E>) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Fired when the mouse pointer leaves the element.
|
|
32
|
+
*/
|
|
33
|
+
onMouseLeave?: (args: KendoMouseEvent<T, E>) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Fired when the mouse pointer moves over the element.
|
|
36
|
+
*/
|
|
37
|
+
onMouseMove?: (args: KendoMouseEvent<T, E>) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Fired when the mouse pointer leaves the element or any of its child elements.
|
|
40
|
+
*/
|
|
41
|
+
onMouseOut?: (args: KendoMouseEvent<T, E>) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Fired when the mouse pointer moves over the element or any of its child elements.
|
|
44
|
+
*/
|
|
45
|
+
onMouseOver?: (args: KendoMouseEvent<T, E>) => void;
|
|
46
|
+
}
|
|
47
|
+
export interface KendoMouseEvent<T, E extends HTMLElement = HTMLElement> {
|
|
48
|
+
/**
|
|
49
|
+
* The React synthetic mouse event that triggered the action.
|
|
50
|
+
*/
|
|
51
|
+
syntheticEvent: React.MouseEvent<E>;
|
|
52
|
+
/**
|
|
53
|
+
* The target object that is associated with the event.
|
|
54
|
+
*/
|
|
55
|
+
target: T;
|
|
56
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface KendoPointer<T, E extends HTMLElement> {
|
|
13
|
+
onPointerDown?: (args: KendoPointerEvent<T, E>) => void;
|
|
14
|
+
onPointerMove?: (args: KendoPointerEvent<T, E>) => void;
|
|
15
|
+
onPointerUp?: (args: KendoPointerEvent<T, E>) => void;
|
|
16
|
+
onPointerCancel?: (args: KendoPointerEvent<T, E>) => void;
|
|
17
|
+
onGotPointerCapture?: (args: KendoPointerEvent<T, E>) => void;
|
|
18
|
+
onLostPointerCapture?: (args: KendoPointerEvent<T, E>) => void;
|
|
19
|
+
onPointerEnter?: (args: KendoPointerEvent<T, E>) => void;
|
|
20
|
+
onPointerOver?: (args: KendoPointerEvent<T, E>) => void;
|
|
21
|
+
onPointerLeave?: (args: KendoPointerEvent<T, E>) => void;
|
|
22
|
+
onPointerOut?: (args: KendoPointerEvent<T, E>) => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export interface KendoPointerEvent<T, E extends HTMLElement = HTMLElement> {
|
|
28
|
+
syntheticEvent: React.PointerEvent<E>;
|
|
29
|
+
target: T;
|
|
30
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface KendoTouch<T, E extends HTMLElement> {
|
|
13
|
+
onTouchStart?: (args: KendoTouchEvent<T, E>) => void;
|
|
14
|
+
onTouchMove?: (args: KendoTouchEvent<T, E>) => void;
|
|
15
|
+
onTouchEnd?: (args: KendoTouchEvent<T, E>) => void;
|
|
16
|
+
onTouchCancel?: (args: KendoTouchEvent<T, E>) => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export interface KendoTouchEvent<T, E extends HTMLElement = HTMLElement> {
|
|
22
|
+
syntheticEvent: React.TouchEvent<E>;
|
|
23
|
+
target: T;
|
|
24
|
+
}
|
package/navigation.d.ts
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Represents the [Navigation](https://www.telerik.com/kendo-react-ui/components/common/api/navigation) options object.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export interface NavigationOptions {
|
|
13
|
+
/**
|
|
14
|
+
* Sets the tabIndex used by the [Navigation](https://www.telerik.com/kendo-react-ui/components/common/api/navigation).
|
|
15
|
+
*/
|
|
16
|
+
tabIndex: number;
|
|
17
|
+
/**
|
|
18
|
+
* Sets the root DOM element used by the [Navigation](https://www.telerik.com/kendo-react-ui/components/common/api/navigation).
|
|
19
|
+
*/
|
|
20
|
+
root: React.RefObject<HTMLElement | null>;
|
|
21
|
+
/**
|
|
22
|
+
* Sets the CSS selectors used by the [Navigation](https://www.telerik.com/kendo-react-ui/components/common/api/navigation). The navigation DOM elements will be queried using the selectors.
|
|
23
|
+
* Make sure their order matches the navigating order.
|
|
24
|
+
*/
|
|
25
|
+
selectors: string[] | string[][];
|
|
26
|
+
/**
|
|
27
|
+
* Configures if the roving tabIndex technique will be used in the [Navigation](https://www.telerik.com/kendo-react-ui/components/common/api/navigation). Defaults to `true`.
|
|
28
|
+
*/
|
|
29
|
+
rovingTabIndex?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the options of the focus methods that is used. Defaults to `{ preventScroll: true }`.
|
|
32
|
+
*/
|
|
33
|
+
focusOptions?: FocusOptions;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the mouse events handlers.
|
|
36
|
+
*/
|
|
37
|
+
mouseEvents?: {
|
|
38
|
+
[type: string]: (target: HTMLElement, nav: Navigation, ev: React.MouseEvent<HTMLElement>) => void;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Sets the keyboard events handlers.
|
|
42
|
+
*/
|
|
43
|
+
keyboardEvents?: {
|
|
44
|
+
[type: string]: {
|
|
45
|
+
[key: string]: (target: HTMLElement, nav: Navigation, ev: React.KeyboardEvent<HTMLElement>) => void;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Sets a class to the current focused element.
|
|
50
|
+
*/
|
|
51
|
+
focusClass?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Represents the [KendoReact Navigation functionality](https://www.telerik.com/kendo-react-ui/components/common/navigation).
|
|
55
|
+
* It handles the navigation through a collection of DOM elements.
|
|
56
|
+
*/
|
|
57
|
+
export declare class Navigation {
|
|
58
|
+
/**
|
|
59
|
+
* @hidden
|
|
60
|
+
*/
|
|
61
|
+
selectors: string[] | string[][];
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
65
|
+
mouseEvents: {
|
|
66
|
+
[type: string]: (target: HTMLElement, nav: Navigation, ev: React.MouseEvent<HTMLElement>) => void;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
*/
|
|
71
|
+
keyboardEvents: {
|
|
72
|
+
[type: string]: {
|
|
73
|
+
[key: string]: (target: HTMLElement, nav: Navigation, ev: React.KeyboardEvent<HTMLElement>, options?: any) => void;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @hidden
|
|
78
|
+
*/
|
|
79
|
+
tabIndex: number;
|
|
80
|
+
/**
|
|
81
|
+
* @hidden
|
|
82
|
+
*/
|
|
83
|
+
focusOptions: FocusOptions;
|
|
84
|
+
/**
|
|
85
|
+
* @hidden
|
|
86
|
+
*/
|
|
87
|
+
root: React.RefObject<HTMLElement | null>;
|
|
88
|
+
/**
|
|
89
|
+
* @hidden
|
|
90
|
+
*/
|
|
91
|
+
rovingTabIndex?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* @hidden
|
|
94
|
+
*/
|
|
95
|
+
focusClass?: string;
|
|
96
|
+
/**
|
|
97
|
+
* @hidden
|
|
98
|
+
*/
|
|
99
|
+
lastFocused: HTMLElement | null;
|
|
100
|
+
constructor(options: NavigationOptions);
|
|
101
|
+
/**
|
|
102
|
+
* Returns the collection of DOM elements which the module will navigate in.
|
|
103
|
+
*/
|
|
104
|
+
get elements(): HTMLElement[];
|
|
105
|
+
/**
|
|
106
|
+
* Returns the first navigation DOM element.
|
|
107
|
+
*/
|
|
108
|
+
get first(): HTMLElement | null;
|
|
109
|
+
/**
|
|
110
|
+
* Returns the last navigation DOM element.
|
|
111
|
+
*/
|
|
112
|
+
get last(): HTMLElement | null;
|
|
113
|
+
/**
|
|
114
|
+
* Returns the focused DOM element from the navigation collection of DOM elements.
|
|
115
|
+
*/
|
|
116
|
+
get current(): HTMLElement | null;
|
|
117
|
+
/**
|
|
118
|
+
* Returns the next DOM element from the navigation collection of DOM elements.
|
|
119
|
+
*/
|
|
120
|
+
next(target: HTMLElement, selectors?: string[] | string[][]): HTMLElement;
|
|
121
|
+
/**
|
|
122
|
+
* Returns the previous DOM element from the navigation collection of DOM elements.
|
|
123
|
+
*/
|
|
124
|
+
previous(target: HTMLElement, selectors?: string[] | string[][]): HTMLElement;
|
|
125
|
+
/**
|
|
126
|
+
* Focuses the next element from the navigation collection of DOM elements.
|
|
127
|
+
*/
|
|
128
|
+
focusNext(target: HTMLElement, selectors?: string[] | string[][]): HTMLElement;
|
|
129
|
+
/**
|
|
130
|
+
* Focuses the previous element from the navigation collection of DOM elements.
|
|
131
|
+
*/
|
|
132
|
+
focusPrevious(target: HTMLElement, selectors?: string[] | string[][]): HTMLElement;
|
|
133
|
+
/**
|
|
134
|
+
* The keyboard events handler.
|
|
135
|
+
*/
|
|
136
|
+
triggerKeyboardEvent(ev: React.KeyboardEvent<HTMLElement>, options?: any): void;
|
|
137
|
+
/**
|
|
138
|
+
* The mouse events handler.
|
|
139
|
+
*/
|
|
140
|
+
triggerMouseEvent(ev: React.MouseEvent<HTMLElement>): void;
|
|
141
|
+
/**
|
|
142
|
+
* Focuses the passed element from the navigation collection of DOM elements.
|
|
143
|
+
*/
|
|
144
|
+
focusElement(element: HTMLElement | null, previous?: HTMLElement | null): void;
|
|
145
|
+
/**
|
|
146
|
+
* Set the first element tabIndex to `1` and `-1` for the rest.
|
|
147
|
+
*/
|
|
148
|
+
initializeRovingTab(itemIndex?: number): void;
|
|
149
|
+
/**
|
|
150
|
+
* Remove a focus listener.
|
|
151
|
+
*/
|
|
152
|
+
removeFocusListener(): void;
|
|
153
|
+
/**
|
|
154
|
+
* Remove a focus class.
|
|
155
|
+
*/
|
|
156
|
+
removeFocusClass(target: HTMLElement): void;
|
|
157
|
+
/**
|
|
158
|
+
* @hidden
|
|
159
|
+
*/
|
|
160
|
+
update: () => void;
|
|
161
|
+
private setFocusClass;
|
|
162
|
+
private disableTabindexForRest;
|
|
163
|
+
private focusNextIndex;
|
|
164
|
+
private customElements;
|
|
165
|
+
private target;
|
|
166
|
+
}
|
package/noop.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const noop: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-common",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.4.0-develop.1",
|
|
4
4
|
"description": "React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export interface DataItemWrapper {
|
|
12
|
+
dataItem: any;
|
|
13
|
+
rowType: any;
|
|
14
|
+
level: number;
|
|
15
|
+
expanded: boolean;
|
|
16
|
+
dataIndex: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export declare class RowHeightService {
|
|
22
|
+
private total;
|
|
23
|
+
private offsets;
|
|
24
|
+
private heights;
|
|
25
|
+
constructor(total: number, rowHeight: number);
|
|
26
|
+
height(rowIndex: number): number;
|
|
27
|
+
index(position: number): number;
|
|
28
|
+
offset(rowIndex: number): number;
|
|
29
|
+
totalHeight(): number;
|
|
30
|
+
update(startIndex: number, rowHeights: Array<number>): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const getScrollbarWidth: () => number | false;
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare const setScrollbarWidth: (width?: number) => false | undefined;
|
package/setter.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Can be used for setting value to object using field path. For example `users[index].name`.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```jsx-no-run
|
|
13
|
+
* const values = {users:[{lastName: 'Doe'}]};
|
|
14
|
+
* const firstUserFirstName = setter('user[0].firstName');
|
|
15
|
+
*
|
|
16
|
+
* firstUserFirstName(values, 'John');
|
|
17
|
+
*
|
|
18
|
+
* console.log(values)
|
|
19
|
+
*
|
|
20
|
+
* // result: {users:[{firstName: 'John', lastName: 'Doe'}]}
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function setter(field: string): any;
|
package/theme.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/** @hidden */
|
|
9
|
+
export interface KendoThemeMaps {
|
|
10
|
+
sizeMap: Record<Exclude<any, null>, string>;
|
|
11
|
+
roundedMap: Record<Exclude<any, null>, string>;
|
|
12
|
+
orientationMap: Record<Exclude<any, null>, string>;
|
|
13
|
+
}
|
|
14
|
+
/** @hidden */
|
|
15
|
+
export declare const kendoThemeMaps: KendoThemeMaps;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const focusableChildren: (element: HTMLElement, elementsSelectors?: string[]) => HTMLElement[] | [
|
|
12
|
+
];
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const firstFocusableChild: (element: HTMLElement, elementsSelectors?: string[]) => HTMLElement | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare const lastFocusableChild: (element: HTMLElement, elementsSelectors?: string[]) => HTMLElement | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
export declare const focusFirstFocusableChild: (element: HTMLElement, elementsSelectors?: string[]) => void;
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
export declare const focusLastFocusableChild: (element: HTMLElement, elementsSelectors?: string[]) => void;
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
*/
|
|
32
|
+
export declare const keepFocusInContainer: (e: React.KeyboardEvent, containerElement?: HTMLElement | null, elementsSelectors?: string[]) => void;
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
36
|
+
export declare const applyTrappedFocus: (e: React.KeyboardEvent, containerElement: HTMLElement, updateFocusedState?: ((isContainerFocused: boolean) => void) | undefined, elementsSelectors?: string[]) => void;
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
40
|
+
export declare const enableNavigatableContainer: (containerElement: HTMLElement, elementsSelectors?: string[]) => void;
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
export declare const disableNavigatableContainer: (containerElement: HTMLElement, elementsSelectors?: string[]) => void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare class TreeFieldsService {
|
|
12
|
+
focusIdField: string | undefined;
|
|
13
|
+
private expandField;
|
|
14
|
+
private selectField;
|
|
15
|
+
private childrenField;
|
|
16
|
+
private hasChildrenField;
|
|
17
|
+
private textField;
|
|
18
|
+
private disableField;
|
|
19
|
+
private checkField;
|
|
20
|
+
private checkIndeterminateField;
|
|
21
|
+
constructor(treeViewProps: any);
|
|
22
|
+
expanded(item: any): boolean | undefined;
|
|
23
|
+
selected(item: any): boolean | undefined;
|
|
24
|
+
text(item: any): string | undefined;
|
|
25
|
+
disabled(item: any): boolean | undefined;
|
|
26
|
+
hasChildren(item: any): boolean | undefined;
|
|
27
|
+
children(item: any): any[];
|
|
28
|
+
checked(item: any): boolean | undefined;
|
|
29
|
+
checkIndeterminate(item: any): boolean | undefined;
|
|
30
|
+
focusId(item: any): any;
|
|
31
|
+
getChildrenField(): string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare class SortedPublicItemIds {
|
|
12
|
+
private objects;
|
|
13
|
+
init(publicItemIds: any[]): void;
|
|
14
|
+
hasId(publicItemId: any): boolean;
|
|
15
|
+
}
|