@progress/kendo-react-common 7.2.4-develop.2 → 7.2.4-develop.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/Draggable.js +8 -0
  2. package/Draggable.mjs +79 -0
  3. package/Droppable.js +8 -0
  4. package/Droppable.mjs +64 -0
  5. package/FormComponent.js +8 -0
  6. package/FormComponent.mjs +13 -0
  7. package/browser-support.service.js +8 -0
  8. package/browser-support.service.mjs +25 -0
  9. package/canUseDOM.js +8 -0
  10. package/canUseDOM.mjs +13 -0
  11. package/canUseRef.js +8 -0
  12. package/canUseRef.mjs +15 -0
  13. package/classNames.js +8 -0
  14. package/classNames.mjs +17 -0
  15. package/clone.js +8 -0
  16. package/clone.mjs +44 -0
  17. package/constants/index.js +8 -0
  18. package/constants/index.mjs +12 -0
  19. package/contexts/ZIndexContext.js +8 -0
  20. package/contexts/ZIndexContext.mjs +15 -0
  21. package/dist/cdn/js/kendo-react-common.js +8 -5
  22. package/drag-n-drop/context/index.js +8 -0
  23. package/drag-n-drop/context/index.mjs +23 -0
  24. package/drag-n-drop/index.js +8 -0
  25. package/drag-n-drop/index.mjs +46 -0
  26. package/events/dispatchEvent.js +8 -0
  27. package/events/dispatchEvent.mjs +21 -0
  28. package/fieldList.js +8 -0
  29. package/fieldList.mjs +18 -0
  30. package/getActiveElement.js +8 -0
  31. package/getActiveElement.mjs +19 -0
  32. package/getTabIndex.js +8 -0
  33. package/getTabIndex.mjs +16 -0
  34. package/getter.js +8 -0
  35. package/getter.mjs +26 -0
  36. package/guid.js +8 -0
  37. package/guid.mjs +17 -0
  38. package/hasRelativeStackingContext.js +8 -0
  39. package/hasRelativeStackingContext.mjs +25 -0
  40. package/hocs/AsyncFocusBlur.js +8 -0
  41. package/hocs/AsyncFocusBlur.mjs +23 -0
  42. package/hocs/use-id-hoc.js +8 -0
  43. package/hocs/use-id-hoc.mjs +17 -0
  44. package/hocs/withPropsContext.js +8 -0
  45. package/hocs/withPropsContext.mjs +18 -0
  46. package/hooks/use-id.js +8 -0
  47. package/hooks/use-id.mjs +35 -0
  48. package/hooks/use-isomorphic-layout-effect.js +8 -0
  49. package/hooks/use-isomorphic-layout-effect.mjs +13 -0
  50. package/hooks/useAsyncFocusBlur.js +8 -0
  51. package/hooks/useAsyncFocusBlur.mjs +38 -0
  52. package/hooks/useCollection.js +8 -0
  53. package/hooks/useCollection.mjs +32 -0
  54. package/hooks/useControlledState.js +8 -0
  55. package/hooks/useControlledState.mjs +21 -0
  56. package/hooks/useCustomComponent.js +8 -0
  57. package/hooks/useCustomComponent.mjs +22 -0
  58. package/hooks/useDir.js +8 -0
  59. package/hooks/useDir.mjs +24 -0
  60. package/hooks/useDocument.js +8 -0
  61. package/hooks/useDocument.mjs +22 -0
  62. package/hooks/useDraggable.js +8 -0
  63. package/hooks/useDraggable.mjs +308 -0
  64. package/hooks/useDroppable.js +8 -0
  65. package/hooks/useDroppable.mjs +67 -0
  66. package/hooks/useInheritedState.js +8 -0
  67. package/hooks/useInheritedState.mjs +21 -0
  68. package/hooks/useMouse.js +8 -0
  69. package/hooks/useMouse.mjs +98 -0
  70. package/hooks/usePropsContext.js +8 -0
  71. package/hooks/usePropsContext.mjs +13 -0
  72. package/hooks/useRtl.js +8 -0
  73. package/hooks/useRtl.mjs +24 -0
  74. package/hooks/useWindow.js +8 -0
  75. package/hooks/useWindow.mjs +20 -0
  76. package/icons/Icon.js +8 -0
  77. package/icons/Icon.mjs +92 -0
  78. package/icons/IconWrap.js +8 -0
  79. package/icons/IconWrap.mjs +24 -0
  80. package/icons/IconsContext.js +8 -0
  81. package/icons/IconsContext.mjs +14 -0
  82. package/icons/SvgIcon.js +8 -0
  83. package/icons/SvgIcon.mjs +124 -0
  84. package/icons/constants.js +8 -0
  85. package/icons/constants.mjs +21 -0
  86. package/icons/utils.js +8 -0
  87. package/icons/utils.mjs +19 -0
  88. package/index.d.mts +1771 -5
  89. package/index.d.ts +1771 -65
  90. package/index.js +8 -5
  91. package/index.mjs +147 -1812
  92. package/keys.js +8 -0
  93. package/keys.mjs +28 -0
  94. package/memoize.js +8 -0
  95. package/memoize.mjs +38 -0
  96. package/navigation.js +8 -0
  97. package/navigation.mjs +97 -0
  98. package/noop.js +8 -0
  99. package/noop.mjs +13 -0
  100. package/package.json +1 -1
  101. package/scrollbarWidth.js +8 -0
  102. package/scrollbarWidth.mjs +20 -0
  103. package/setter.js +8 -0
  104. package/setter.mjs +27 -0
  105. package/theme.js +8 -0
  106. package/theme.mjs +27 -0
  107. package/trappedFocus.js +8 -0
  108. package/trappedFocus.mjs +58 -0
  109. package/tree-utils/FieldsService.js +8 -0
  110. package/tree-utils/FieldsService.mjs +48 -0
  111. package/tree-utils/SortedPublicItemIds.js +8 -0
  112. package/tree-utils/SortedPublicItemIds.mjs +24 -0
  113. package/tree-utils/itemIdUtils.js +8 -0
  114. package/tree-utils/itemIdUtils.mjs +87 -0
  115. package/tree-utils/itemUtils.js +8 -0
  116. package/tree-utils/itemUtils.mjs +118 -0
  117. package/tree-utils/misc.js +8 -0
  118. package/tree-utils/misc.mjs +22 -0
  119. package/treeDataOperations.js +8 -0
  120. package/treeDataOperations.mjs +45 -0
  121. package/typography/Typography.js +8 -0
  122. package/typography/Typography.mjs +110 -0
  123. package/typography/constants.js +8 -0
  124. package/typography/constants.mjs +71 -0
  125. package/validate-package.js +8 -0
  126. package/validate-package.mjs +20 -0
  127. package/watermark/WatermarkOverlay.js +8 -0
  128. package/watermark/WatermarkOverlay.mjs +93 -0
  129. package/Draggable.d.ts +0 -90
  130. package/Droppable.d.ts +0 -81
  131. package/FormComponent.d.ts +0 -167
  132. package/browser-support.service.d.ts +0 -11
  133. package/canUseDOM.d.ts +0 -8
  134. package/canUseRef.d.ts +0 -9
  135. package/classNames.d.ts +0 -8
  136. package/clone.d.ts +0 -24
  137. package/constants/index.d.ts +0 -8
  138. package/contexts/ZIndexContext.d.ts +0 -11
  139. package/drag-n-drop/context/index.d.ts +0 -23
  140. package/drag-n-drop/index.d.ts +0 -25
  141. package/events/BaseEvent.d.ts +0 -22
  142. package/events/dispatchEvent.d.ts +0 -18
  143. package/fieldList.d.ts +0 -8
  144. package/focus.d.ts +0 -8
  145. package/getActiveElement.d.ts +0 -12
  146. package/getTabIndex.d.ts +0 -8
  147. package/getter.d.ts +0 -18
  148. package/guid.d.ts +0 -8
  149. package/hasRelativeStackingContext.d.ts +0 -6
  150. package/hocs/AsyncFocusBlur.d.ts +0 -17
  151. package/hocs/use-id-hoc.d.ts +0 -7
  152. package/hocs/withPropsContext.d.ts +0 -9
  153. package/hooks/index.d.ts +0 -16
  154. package/hooks/use-id.d.ts +0 -6
  155. package/hooks/use-isomorphic-layout-effect.d.ts +0 -7
  156. package/hooks/useAsyncFocusBlur.d.ts +0 -29
  157. package/hooks/useCollection.d.ts +0 -18
  158. package/hooks/useControlledState.d.ts +0 -11
  159. package/hooks/useCustomComponent.d.ts +0 -15
  160. package/hooks/useDir.d.ts +0 -9
  161. package/hooks/useDocument.d.ts +0 -11
  162. package/hooks/useDraggable.d.ts +0 -67
  163. package/hooks/useDroppable.d.ts +0 -32
  164. package/hooks/useInheritedState.d.ts +0 -17
  165. package/hooks/useMouse.d.ts +0 -24
  166. package/hooks/usePropsContext.d.ts +0 -7
  167. package/hooks/useRtl.d.ts +0 -9
  168. package/hooks/useWindow.d.ts +0 -11
  169. package/icons/BaseIconProps.d.ts +0 -76
  170. package/icons/Icon.d.ts +0 -39
  171. package/icons/IconWrap.d.ts +0 -11
  172. package/icons/IconsContext.d.ts +0 -25
  173. package/icons/SvgIcon.d.ts +0 -75
  174. package/icons/constants.d.ts +0 -17
  175. package/icons/models/flip.d.ts +0 -15
  176. package/icons/models/size.d.ts +0 -19
  177. package/icons/models/theme-color.d.ts +0 -25
  178. package/icons/utils.d.ts +0 -21
  179. package/keys.d.ts +0 -24
  180. package/memoize.d.ts +0 -14
  181. package/models/auto-scroll-options.d.ts +0 -26
  182. package/models/index.d.ts +0 -9
  183. package/models/kendoReactComponentBaseProps.d.ts +0 -27
  184. package/models/mouse.d.ts +0 -20
  185. package/models/pointer.d.ts +0 -27
  186. package/models/touch.d.ts +0 -21
  187. package/navigation.d.ts +0 -131
  188. package/noop.d.ts +0 -8
  189. package/scrollbarWidth.d.ts +0 -12
  190. package/setter.d.ts +0 -20
  191. package/theme.d.ts +0 -12
  192. package/tree-utils/FieldsService.d.ts +0 -29
  193. package/tree-utils/SortedPublicItemIds.d.ts +0 -12
  194. package/tree-utils/itemIdUtils.d.ts +0 -64
  195. package/tree-utils/itemUtils.d.ts +0 -49
  196. package/tree-utils/misc.d.ts +0 -12
  197. package/treeDataOperations.d.ts +0 -43
  198. package/typography/Typography.d.ts +0 -39
  199. package/typography/TypographyProps.d.ts +0 -124
  200. package/typography/constants.d.ts +0 -88
  201. package/typography/models/margin.d.ts +0 -27
  202. package/validate-package.d.ts +0 -13
  203. package/watermark/WatermarkOverlay.d.ts +0 -9
package/memoize.d.ts DELETED
@@ -1,14 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- type EqualityFn<TFunc extends (...args: any[]) => any> = (newArgs: Parameters<TFunc>, lastArgs: Parameters<TFunc>) => boolean;
6
- type MemoizedFn<TFunc extends (this: any, ...args: any[]) => any> = {
7
- clear: () => void;
8
- (this: ThisParameterType<TFunc>, ...args: Parameters<TFunc>): ReturnType<TFunc>;
9
- };
10
- /**
11
- * @hidden
12
- */
13
- export declare function memoizeOne<TFunc extends (this: any, ...newArgs: any[]) => any>(resultFn: TFunc, isEqualFn?: EqualityFn<TFunc>): MemoizedFn<TFunc>;
14
- export {};
@@ -1,26 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Represents additional configuration options for the `autoScroll` options of the `useDraggable` hook and `Draggable` component.
7
- */
8
- export interface AutoScrollOptions {
9
- /**
10
- * Set to `false` to disable the `autoScroll` feature.
11
- */
12
- enabled?: boolean;
13
- /**
14
- * Allows the user to toggle `autoScroll` in a specific direction.
15
- */
16
- direction?: {
17
- horizontal: boolean;
18
- vertical: boolean;
19
- };
20
- /**
21
- * Overrides the calculated element used for boundary detection, used to calculate the `autoScroll` velocity.
22
- */
23
- boundaryElementRef?: React.RefObject<HTMLElement | null | {
24
- element: HTMLElement | null;
25
- }> | null;
26
- }
package/models/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export * from './mouse';
6
- export * from './touch';
7
- export * from './pointer';
8
- export * from './auto-scroll-options';
9
- export * from './kendoReactComponentBaseProps';
@@ -1,27 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- *
8
- * Represents the base properties of a KendoReact component.
9
- */
10
- export interface KendoReactComponentBaseProps {
11
- /**
12
- * Sets the `id` property of the top div element of the component.
13
- */
14
- id?: string;
15
- /**
16
- * Determines the children nodes.
17
- */
18
- children?: React.ReactNode;
19
- /**
20
- * Sets additional classes to the component.
21
- */
22
- className?: string;
23
- /**
24
- * Sets additional CSS styles to the component.
25
- */
26
- style?: React.CSSProperties;
27
- }
package/models/mouse.d.ts DELETED
@@ -1,20 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- export interface KendoMouse<T, E extends HTMLElement> {
7
- onMouseDown?: (args: KendoMouseEvent<T, E>) => void;
8
- onMouseUp?: (args: KendoMouseEvent<T, E>) => void;
9
- onClick?: (args: KendoMouseEvent<T, E>) => void;
10
- onDoubleClick?: (args: KendoMouseEvent<T, E>) => void;
11
- onMouseEnter?: (args: KendoMouseEvent<T, E>) => void;
12
- onMouseLeave?: (args: KendoMouseEvent<T, E>) => void;
13
- onMouseMove?: (args: KendoMouseEvent<T, E>) => void;
14
- onMouseOut?: (args: KendoMouseEvent<T, E>) => void;
15
- onMouseOver?: (args: KendoMouseEvent<T, E>) => void;
16
- }
17
- export interface KendoMouseEvent<T, E extends HTMLElement = HTMLElement> {
18
- syntheticEvent: React.MouseEvent<E>;
19
- target: T;
20
- }
@@ -1,27 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /**
7
- * @hidden
8
- */
9
- export interface KendoPointer<T, E extends HTMLElement> {
10
- onPointerDown?: (args: KendoPointerEvent<T, E>) => void;
11
- onPointerMove?: (args: KendoPointerEvent<T, E>) => void;
12
- onPointerUp?: (args: KendoPointerEvent<T, E>) => void;
13
- onPointerCancel?: (args: KendoPointerEvent<T, E>) => void;
14
- onGotPointerCapture?: (args: KendoPointerEvent<T, E>) => void;
15
- onLostPointerCapture?: (args: KendoPointerEvent<T, E>) => void;
16
- onPointerEnter?: (args: KendoPointerEvent<T, E>) => void;
17
- onPointerOver?: (args: KendoPointerEvent<T, E>) => void;
18
- onPointerLeave?: (args: KendoPointerEvent<T, E>) => void;
19
- onPointerOut?: (args: KendoPointerEvent<T, E>) => void;
20
- }
21
- /**
22
- * @hidden
23
- */
24
- export interface KendoPointerEvent<T, E extends HTMLElement = HTMLElement> {
25
- syntheticEvent: React.PointerEvent<E>;
26
- target: T;
27
- }
package/models/touch.d.ts DELETED
@@ -1,21 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /**
7
- * @hidden
8
- */
9
- export interface KendoTouch<T, E extends HTMLElement> {
10
- onTouchStart?: (args: KendoTouchEvent<T, E>) => void;
11
- onTouchMove?: (args: KendoTouchEvent<T, E>) => void;
12
- onTouchEnd?: (args: KendoTouchEvent<T, E>) => void;
13
- onTouchCancel?: (args: KendoTouchEvent<T, E>) => void;
14
- }
15
- /**
16
- * @hidden
17
- */
18
- export interface KendoTouchEvent<T, E extends HTMLElement = HTMLElement> {
19
- syntheticEvent: React.TouchEvent<E>;
20
- target: T;
21
- }
package/navigation.d.ts DELETED
@@ -1,131 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const FOCUSABLE_ELEMENTS: string[];
9
- /**
10
- * Represents the [Navigation]({% slug api_common_navigation %}) options object.
11
- *
12
- */
13
- export interface NavigationOptions {
14
- /**
15
- * Sets the tabIndex used by the [Navigation]({% slug api_common_navigation %}).
16
- */
17
- tabIndex: number;
18
- /**
19
- * Sets the root DOM element used by the [Navigation]({% slug api_common_navigation %}).
20
- */
21
- root: React.RefObject<HTMLElement>;
22
- /**
23
- * Sets the CSS selectors used by the [Navigation]({% slug api_common_navigation %}). The navigation DOM elements will be queried using the selectors.
24
- * Make sure their order matches the navigating order.
25
- */
26
- selectors: string[];
27
- /**
28
- * Configures if the roving tabIndex technique will be used in the [Navigation]({% slug api_common_navigation %}).
29
- */
30
- rovingTabIndex?: boolean;
31
- /**
32
- * Sets the options of the focus methods that is used. Defaults to `{ preventScroll: true }`.
33
- */
34
- focusOptions?: FocusOptions;
35
- /**
36
- * Sets the mouse events handlers.
37
- */
38
- mouseEvents?: {
39
- [type: string]: (target: HTMLElement, nav: Navigation, ev: React.MouseEvent<HTMLElement>) => void;
40
- };
41
- /**
42
- * Sets the keyboard events handlers.
43
- */
44
- keyboardEvents?: {
45
- [type: string]: {
46
- [key: string]: (target: HTMLElement, nav: Navigation, ev: React.KeyboardEvent<HTMLElement>) => void;
47
- };
48
- };
49
- }
50
- /**
51
- * Represents the [KendoReact Navigation functionality]({% slug overview_navigation %}).
52
- * It handles the navigation through a collection of DOM elements.
53
- */
54
- export declare class Navigation {
55
- /**
56
- * @hidden
57
- */
58
- selectors: string[];
59
- /**
60
- * @hidden
61
- */
62
- mouseEvents: {
63
- [type: string]: (target: HTMLElement, nav: Navigation, ev: React.MouseEvent<HTMLElement>) => void;
64
- };
65
- /**
66
- * @hidden
67
- */
68
- keyboardEvents: {
69
- [type: string]: {
70
- [key: string]: (target: HTMLElement, nav: Navigation, ev: React.KeyboardEvent<HTMLElement>, options?: any) => void;
71
- };
72
- };
73
- /**
74
- * @hidden
75
- */
76
- tabIndex: number;
77
- /**
78
- * @hidden
79
- */
80
- focusOptions: FocusOptions;
81
- /**
82
- * @hidden
83
- */
84
- root: React.RefObject<HTMLElement>;
85
- /**
86
- * @hidden
87
- */
88
- rovingTabIndex?: boolean;
89
- constructor(options: NavigationOptions);
90
- /**
91
- * Returns the collection of DOM elements which the module will navigate in.
92
- */
93
- get elements(): HTMLElement[];
94
- /**
95
- * Returns the first navigation DOM element.
96
- */
97
- get first(): HTMLElement | null;
98
- /**
99
- * Returns the last navigation DOM element.
100
- */
101
- get last(): HTMLElement | null;
102
- /**
103
- * Returns the focused DOM element from the navigation collection of DOM elements.
104
- */
105
- get current(): HTMLElement | null;
106
- /**
107
- * Focuses the next element from the navigation collection of DOM elements.
108
- */
109
- focusNext(target: HTMLElement): HTMLElement;
110
- /**
111
- * Focuses the previous element from the navigation collection of DOM elements.
112
- */
113
- focusPrevious(target: HTMLElement): HTMLElement;
114
- /**
115
- * The keyboard events handler.
116
- */
117
- triggerKeyboardEvent(ev: React.KeyboardEvent<HTMLElement>, options?: any): void;
118
- /**
119
- * The mouse events handler.
120
- */
121
- triggerMouseEvent(ev: React.MouseEvent<HTMLElement>): void;
122
- /**
123
- * Focuses the passed element from the navigation collection of DOM elements.
124
- */
125
- focusElement(element: HTMLElement | null, previous: HTMLElement | null): void;
126
- /**
127
- * @hidden
128
- */
129
- update: () => void;
130
- private focusNextIndex;
131
- }
package/noop.d.ts DELETED
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const noop: () => void;
@@ -1,12 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const getScrollbarWidth: () => number | false;
9
- /**
10
- * @hidden
11
- */
12
- export declare const setScrollbarWidth: () => false | undefined;
package/setter.d.ts DELETED
@@ -1,20 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Can be used for setting value to object using field path. For example `users[index].name`.
7
- *
8
- * @example
9
- * ```jsx-no-run
10
- * const values = {users:[{lastName: 'Doe'}]};
11
- * const firstUserFirstName = setter('user[0].firstName');
12
- *
13
- * firstUserFirstName(values, 'John');
14
- *
15
- * console.log(values)
16
- *
17
- * // result: {users:[{firstName: 'John', lastName: 'Doe'}]}
18
- * ```
19
- */
20
- export declare function setter(field: string): any;
package/theme.d.ts DELETED
@@ -1,12 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /** @hidden */
6
- export interface KendoThemeMaps {
7
- sizeMap: Record<Exclude<any, null>, String>;
8
- roundedMap: Record<Exclude<any, null>, String>;
9
- orientationMap: Record<Exclude<any, null>, String>;
10
- }
11
- /** @hidden */
12
- export declare const kendoThemeMaps: KendoThemeMaps;
@@ -1,29 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare class TreeFieldsService {
9
- focusIdField: string | undefined;
10
- private expandField;
11
- private selectField;
12
- private childrenField;
13
- private hasChildrenField;
14
- private textField;
15
- private disableField;
16
- private checkField;
17
- private checkIndeterminateField;
18
- constructor(treeViewProps: any);
19
- expanded(item: any): boolean | undefined;
20
- selected(item: any): boolean | undefined;
21
- text(item: any): string | undefined;
22
- disabled(item: any): boolean | undefined;
23
- hasChildren(item: any): boolean | undefined;
24
- children(item: any): any[];
25
- checked(item: any): boolean | undefined;
26
- checkIndeterminate(item: any): boolean | undefined;
27
- focusId(item: any): any;
28
- getChildrenField(): string;
29
- }
@@ -1,12 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare class SortedPublicItemIds {
9
- private objects;
10
- init(publicItemIds: any[]): void;
11
- hasId(publicItemId: any): boolean;
12
- }
@@ -1,64 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const EMPTY_ID = "";
9
- /**
10
- * @hidden
11
- */
12
- export declare const ZERO_LEVEL_ZERO_NODE_ID = "0";
13
- /**
14
- * @hidden
15
- */
16
- export declare const SEPARATOR = "_";
17
- /**
18
- * @hidden
19
- */
20
- export declare function getItemById(itemId: string, items: any, childrenField: string): any;
21
- /**
22
- * @hidden
23
- */
24
- export declare function getRootParentId(itemId: string): string;
25
- /**
26
- * @hidden
27
- */
28
- export declare function getIdWithoutRootParentId(itemId: string): string;
29
- /**
30
- * @hidden
31
- */
32
- export declare function getFirstChildId(itemId: string): string;
33
- /**
34
- * @hidden
35
- */
36
- export declare function createId(childId: string | number, parentId?: string): string;
37
- /**
38
- * @hidden
39
- */
40
- export declare function getDirectParentId(itemId: string): string;
41
- /**
42
- * @hidden
43
- */
44
- export declare function isIdEmptyOrZeroLevel(itemId: string): boolean;
45
- /**
46
- * @hidden
47
- */
48
- export declare function isIdZeroLevel(itemId: string): boolean;
49
- /**
50
- * @hidden
51
- */
52
- export declare function getAllShortIds(itemId: string): string[];
53
- /**
54
- * @hidden
55
- */
56
- export declare function getShortId(itemId: string): string;
57
- /**
58
- * @hidden
59
- */
60
- export declare function isItemFirstFromSiblings(itemId: string): boolean;
61
- /**
62
- * @hidden
63
- */
64
- export declare function getDecrementedItemIdAfterRemoval(removedItemId: string, itemId: string): string;
@@ -1,49 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { TreeFieldsService } from './FieldsService';
6
- /**
7
- * @hidden
8
- */
9
- export declare function hasChildren(item: any, childrenField: string): boolean;
10
- /**
11
- * @hidden
12
- */
13
- export declare function isItemExpandedAndWithChildren(item: any, fieldsSvc: TreeFieldsService): boolean | undefined;
14
- /**
15
- * @hidden
16
- */
17
- export declare function resolveItemId(publicId: any, idField: string, items: any[], childrenField: string): string | undefined;
18
- /**
19
- * @hidden
20
- */
21
- export declare function resolveItemsIds(publicIds: any[], idField: string, items: any[], childrenField: string): string[];
22
- /**
23
- * @hidden
24
- */
25
- export declare function updateItem(items: any[], itemId: string, update: (item: any) => void, cloneField: string, childrenField: string): any[];
26
- /**
27
- * @hidden
28
- */
29
- export declare function isEnabledAndAllParentsEnabled(itemId: string, items: any, fieldsSvc: TreeFieldsService): any;
30
- /**
31
- * @hidden
32
- */
33
- export declare function getAllDirectIndirectChildrenIds(item: any, itemId: string, childrenField: string, idField: string | undefined): any[];
34
- /**
35
- * @hidden
36
- */
37
- export declare function areAllDirectChildrenChecked(item: any, itemId: any, idField: string | undefined, childrenField: string, check: string[]): boolean;
38
- /**
39
- * @hidden
40
- */
41
- export declare function getAllParents(itemId: string, childrenField: string, items: any[]): any[];
42
- /**
43
- * @hidden
44
- */
45
- export declare function removeItem(itemId: string, childrenField: string, items: any[]): any[];
46
- /**
47
- * @hidden
48
- */
49
- export declare function addItem(item: any, operation: 'before' | 'after' | 'child', childrenField: string, targetItemId: string, items: any[]): any[];
@@ -1,12 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare function getNestedValue(fieldName: string | undefined, dataItem: any): any;
9
- /**
10
- * @hidden
11
- */
12
- export declare function isArray(operation: string[] | any): operation is any[];
@@ -1,43 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Creates a new array with the results of calling the provided callback function
7
- * on every element in the provided data tree.
8
- *
9
- * @param {any[]} tree - The data tree.
10
- * @param {string} subItemsField - The field which points to the subitems collection of each data item.
11
- * @param {(value: any) => any} callback - The callback function.
12
- * @returns {any[]} - The new data tree.
13
- */
14
- export declare const mapTree: (tree: any[], subItemsField: string, callback: (value: any) => any) => any[];
15
- /**
16
- * Creates a new array with the results of calling the provided callback function
17
- * on the element which match the `level` in the provided data tree.
18
- *
19
- * @param {any[]} tree - The data tree.
20
- * @param {number[]} level - An array of indexes of each parent and current item in the data tree.
21
- * @param {string} subItemsField - The field which points to the subitems collection of each data item.
22
- * @param {(value: any) => any} callback - The callback function.
23
- * @returns {any[]} - The new data tree.
24
- */
25
- export declare const mapTreeItem: (tree: any[], level: number[], subItemsField: string, callback: (value: any) => any) => void;
26
- /**
27
- * Similar to the `Object.assign` function. Additionally, creates a new array for the subitems.
28
- *
29
- * @param {object} item - The source data item.
30
- * @param {string} subItemsField - The field which points to the subitems collection of each data item.
31
- * @param {object} propsToExtend - The props with which the source data item will be extended.
32
- * @returns {object} - The target data item.
33
- */
34
- export declare const extendDataItem: (item: any, subItemsField: string, propsToExtend?: any) => any;
35
- /**
36
- * Returns the data item path in the tree based on the level parameter.
37
- *
38
- * @param {any[]} tree - The data tree.
39
- * @param {number[]} level - The level of the target tree item.
40
- * @param {string} subItemsField - The field which points to the subitems collection of each data item.
41
- * @returns {any[]} - The path of the data item.
42
- */
43
- export declare const getItemPath: (tree: any[], level: number[], subItemsField?: string) => any[];
@@ -1,39 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { TypographyProps } from './TypographyProps';
7
- /**
8
- * @hidden
9
- */
10
- export interface TypographyHandle {
11
- /**
12
- * The TypographyHandle element.
13
- */
14
- element: HTMLElement | null;
15
- }
16
- /**
17
- * Represents the [KendoReact Typography component]({% slug overview_typography %}).
18
- *
19
- * @example
20
- * ```jsx
21
- * const App = () => {
22
- * return (
23
- * <Typography.h2>Heading 2</Typography.h2>
24
- * );
25
- * };
26
- * ReactDOM.render(<App />, document.querySelector('my-app'));
27
- * ```
28
- */
29
- export declare const Typography: {
30
- h1: React.ForwardRefExoticComponent<TypographyProps>;
31
- h2: React.ForwardRefExoticComponent<TypographyProps>;
32
- h3: React.ForwardRefExoticComponent<TypographyProps>;
33
- h4: React.ForwardRefExoticComponent<TypographyProps>;
34
- h5: React.ForwardRefExoticComponent<TypographyProps>;
35
- h6: React.ForwardRefExoticComponent<TypographyProps>;
36
- p: React.ForwardRefExoticComponent<TypographyProps>;
37
- code: React.ForwardRefExoticComponent<TypographyProps>;
38
- pre: React.ForwardRefExoticComponent<TypographyProps>;
39
- };