@progress/kendo-react-sortable 13.3.0 → 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/Sortable.d.ts +223 -0
- package/dist/cdn/js/kendo-react-sortable.js +1 -1
- package/events/BaseEvent.d.ts +16 -0
- package/events/PreventableEvent.d.ts +25 -0
- package/events/SortableOnDragEndEvent.d.ts +34 -0
- package/events/SortableOnDragOverEvent.d.ts +34 -0
- package/events/SortableOnDragStartEvent.d.ts +31 -0
- package/events/SortableOnNavigateEvent.d.ts +34 -0
- package/index.d.mts +9 -541
- package/index.d.ts +9 -541
- package/interfaces/SortableDefaultProps.d.ts +35 -0
- package/interfaces/SortableEmptyItemUIProps.d.ts +16 -0
- package/interfaces/SortableItemUIProps.d.ts +44 -0
- package/interfaces/SortableProps.d.ts +127 -0
- package/messages/index.d.ts +17 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +4 -4
- package/utils/utils.d.ts +36 -0
|
@@ -0,0 +1,127 @@
|
|
|
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 { SortableOnDragStartEvent } from './../events/SortableOnDragStartEvent.js';
|
|
9
|
+
import { SortableOnDragOverEvent } from './../events/SortableOnDragOverEvent.js';
|
|
10
|
+
import { SortableOnDragEndEvent } from './../events/SortableOnDragEndEvent.js';
|
|
11
|
+
import { SortableOnNavigateEvent } from './../events/SortableOnNavigateEvent.js';
|
|
12
|
+
import { SortableItemUIProps } from './SortableItemUIProps.js';
|
|
13
|
+
import { SortableDefaultProps } from './SortableDefaultProps.js';
|
|
14
|
+
/**
|
|
15
|
+
* Represents the props of the [KendoReact Sortable component](https://www.telerik.com/kendo-react-ui/components/sortable).
|
|
16
|
+
*/
|
|
17
|
+
export interface SortableProps extends SortableDefaultProps {
|
|
18
|
+
/**
|
|
19
|
+
* (Required) The Sortable items UI.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```jsx
|
|
23
|
+
* const ItemUI = (props) => <div>{props.dataItem.text}</div>;
|
|
24
|
+
* <Sortable itemUI={ItemUI} />
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
itemUI: React.ComponentType<SortableItemUIProps>;
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*
|
|
31
|
+
* Use it to override the sortable items container component.
|
|
32
|
+
*
|
|
33
|
+
* @default 'div'
|
|
34
|
+
*/
|
|
35
|
+
itemsWrapUI?: React.ForwardRefExoticComponent<any>;
|
|
36
|
+
/**
|
|
37
|
+
* (Required) The field which uniquely identifies the Sortable items.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```jsx
|
|
41
|
+
* <Sortable idField="id" />
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
idField: string;
|
|
45
|
+
/**
|
|
46
|
+
* The field which enables or disables an item.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```jsx
|
|
50
|
+
* <Sortable disabledField="isDisabled" />
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
disabledField?: string;
|
|
54
|
+
/**
|
|
55
|
+
* (Required) The data items of the Sortable.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```jsx
|
|
59
|
+
* <Sortable data={[{ id: 1, text: 'Item 1' }, { id: 2, text: 'Item 2' }]} />
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
data: Array<object>;
|
|
63
|
+
/**
|
|
64
|
+
* Defines the CSS styles which are applied to the Sortable element.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```jsx
|
|
68
|
+
* <Sortable style={{ border: '1px solid black' }} />
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
style?: React.CSSProperties;
|
|
72
|
+
/**
|
|
73
|
+
* Defines the CSS class which is applied to the Sortable element.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```jsx
|
|
77
|
+
* <Sortable className="custom-sortable" />
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
className?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Fires when the user starts dragging an item. This event is preventable.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```jsx
|
|
86
|
+
* <Sortable onDragStart={(event) => console.log(event)} />
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
onDragStart?: (event: SortableOnDragStartEvent) => void;
|
|
90
|
+
/**
|
|
91
|
+
* Fires when the user is dragging an item over another Sortable item.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```jsx
|
|
95
|
+
* <Sortable onDragOver={(event) => console.log(event)} />
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
onDragOver?: (event: SortableOnDragOverEvent) => void;
|
|
99
|
+
/**
|
|
100
|
+
* Fires when the user stops dragging an item.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```jsx
|
|
104
|
+
* <Sortable onDragEnd={(event) => console.log(event)} />
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
onDragEnd?: (event: SortableOnDragEndEvent) => void;
|
|
108
|
+
/**
|
|
109
|
+
* Fires when the user navigates within the Sortable by using the keyboard.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```jsx
|
|
113
|
+
* <Sortable onNavigate={(event) => console.log(event)} />
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
onNavigate?: (event: SortableOnNavigateEvent) => void;
|
|
117
|
+
/**
|
|
118
|
+
* If set to `true`, the user can use dedicated shortcuts to interact with the Sortable.
|
|
119
|
+
* By default, navigation is disabled.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* ```jsx
|
|
123
|
+
* <Sortable navigatable={true} />
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
navigatable?: boolean;
|
|
127
|
+
}
|
|
@@ -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
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const noData = "sortable.noData";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare const messages: {
|
|
16
|
+
"sortable.noData": string;
|
|
17
|
+
};
|
|
@@ -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
|
+
import { PackageMetadata } from '@progress/kendo-licensing';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const packageMetadata: PackageMetadata;
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-sortable",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-sortable",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1770219012,version:"13.4.0-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
|
+
// Generated file. DO NOT EDIT.
|
|
1
2
|
/**
|
|
2
|
-
* @
|
|
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
|
-
*-------------------------------------------------------------------------------------------
|
|
3
|
+
* @hidden
|
|
7
4
|
*/
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
export const packageMetadata = Object.freeze({
|
|
6
|
+
name: '@progress/kendo-react-sortable',
|
|
7
|
+
productName: 'KendoReact',
|
|
8
|
+
productCode: 'KENDOUIREACT',
|
|
9
|
+
productCodes: ['KENDOUIREACT'],
|
|
10
|
+
publishDate: 0,
|
|
11
|
+
version: '13.4.0-develop.1',
|
|
12
|
+
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/components/my-license/'
|
|
16
13
|
});
|
|
17
|
-
export {
|
|
18
|
-
e as packageMetadata
|
|
19
|
-
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-sortable",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.4.0-develop.1",
|
|
4
4
|
"description": "React Sortable provides a sortable drag-and-drop functionality to elements within a list. KendoReact Sortable package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@progress/kendo-licensing": "^1.7.2",
|
|
29
|
-
"@progress/kendo-react-common": "13.
|
|
30
|
-
"@progress/kendo-react-intl": "13.
|
|
29
|
+
"@progress/kendo-react-common": "13.4.0-develop.1",
|
|
30
|
+
"@progress/kendo-react-intl": "13.4.0-develop.1",
|
|
31
31
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
32
32
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
33
33
|
},
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"package": {
|
|
53
53
|
"productName": "KendoReact",
|
|
54
54
|
"productCode": "KENDOUIREACT",
|
|
55
|
-
"publishDate":
|
|
55
|
+
"publishDate": 1770219012,
|
|
56
56
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
57
57
|
}
|
|
58
58
|
},
|
package/utils/utils.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
declare const find: (data: object[], comparer: (item: object) => boolean) => object | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
declare const findIndex: (data: object[], comparer: (item: object) => boolean) => number;
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
declare const toClassList: (classNames: string) => string[];
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
declare const hasClasses: (element: any, classNames: string) => boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
declare const isFocusable: (element: any) => boolean;
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
declare const closest: (node: any, predicate: any) => any;
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
declare const relativeContextElement: (element: any) => any;
|
|
36
|
+
export { find, findIndex, toClassList, hasClasses, isFocusable, closest, relativeContextElement };
|