@patternfly/react-drag-drop 5.2.0-prerelease.6 → 5.2.0-prerelease.7
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/CHANGELOG.md +6 -0
- package/dist/cjs.tsbuildinfo +1 -1
- package/dist/esm/next/components/DragDrop/DragDropSort.d.ts +8 -1
- package/dist/esm/next/components/DragDrop/DragDropSort.d.ts.map +1 -1
- package/dist/esm/next/components/DragDrop/DragDropSort.js.map +1 -1
- package/dist/esm/next/components/DragDrop/index.d.ts +0 -1
- package/dist/esm/next/components/DragDrop/index.d.ts.map +1 -1
- package/dist/esm/next/components/DragDrop/index.js +0 -1
- package/dist/esm/next/components/DragDrop/index.js.map +1 -1
- package/dist/esm.tsbuildinfo +1 -1
- package/dist/js/next/components/DragDrop/DragDropSort.d.ts +8 -1
- package/dist/js/next/components/DragDrop/DragDropSort.d.ts.map +1 -1
- package/dist/js/next/components/DragDrop/DragDropSort.js.map +1 -1
- package/dist/js/next/components/DragDrop/index.d.ts +0 -1
- package/dist/js/next/components/DragDrop/index.d.ts.map +1 -1
- package/dist/js/next/components/DragDrop/index.js +0 -1
- package/dist/js/next/components/DragDrop/index.js.map +1 -1
- package/package.json +2 -2
- package/src/next/components/DragDrop/DragDropSort.tsx +9 -1
- package/src/next/components/DragDrop/examples/DragDrop.md +1 -1
- package/src/next/components/DragDrop/examples/DragDropDemos.md +1 -1
- package/src/next/components/DragDrop/index.ts +0 -1
- package/dist/esm/next/components/DragDrop/DragDropUtil.d.ts +0 -10
- package/dist/esm/next/components/DragDrop/DragDropUtil.d.ts.map +0 -1
- package/dist/esm/next/components/DragDrop/DragDropUtil.js +0 -2
- package/dist/esm/next/components/DragDrop/DragDropUtil.js.map +0 -1
- package/dist/js/next/components/DragDrop/DragDropUtil.d.ts +0 -10
- package/dist/js/next/components/DragDrop/DragDropUtil.d.ts.map +0 -1
- package/dist/js/next/components/DragDrop/DragDropUtil.js +0 -3
- package/dist/js/next/components/DragDrop/DragDropUtil.js.map +0 -1
- package/src/next/components/DragDrop/DragDropUtil.tsx +0 -8
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DndContextProps, DragEndEvent, DragStartEvent } from '@dnd-kit/core';
|
|
3
|
-
import { DraggableObject } from './DragDropUtil';
|
|
4
3
|
export declare type DragDropSortDragEndEvent = DragEndEvent;
|
|
5
4
|
export declare type DragDropSortDragStartEvent = DragStartEvent;
|
|
5
|
+
export interface DraggableObject {
|
|
6
|
+
/** Unique id of the draggable object */
|
|
7
|
+
id: string;
|
|
8
|
+
/** Content rendered in the draggable object */
|
|
9
|
+
content: React.ReactNode;
|
|
10
|
+
/** Props spread to the rendered wrapper of the draggable object */
|
|
11
|
+
props?: any;
|
|
12
|
+
}
|
|
6
13
|
/**
|
|
7
14
|
* DragDropSortProps extends dnd-kit's props which may be viewed at https://docs.dndkit.com/api-documentation/context-provider#props.
|
|
8
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DragDropSort.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/DragDropSort.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAIL,eAAe,EAKf,YAAY,EACZ,cAAc,EACf,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"DragDropSort.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/DragDropSort.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAIL,eAAe,EAKf,YAAY,EACZ,cAAc,EACf,MAAM,eAAe,CAAC;AAYvB,oBAAY,wBAAwB,GAAG,YAAY,CAAC;AACpD,oBAAY,0BAA0B,GAAG,cAAc,CAAC;AAExD,MAAM,WAAW,eAAe;IAC9B,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,mEAAmE;IACnE,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD;iFAC6E;IAC7E,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC9B,wCAAwC;IACxC,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,kDAAkD;IAClD,MAAM,EAAE,CAAC,KAAK,EAAE,wBAAwB,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClH,2DAA2D;IAC3D,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACvE;;;;;SAKK;IACL,OAAO,CAAC,EAAE,SAAS,GAAG,mBAAmB,GAAG,UAAU,GAAG,sBAAsB,GAAG,iBAAiB,CAAC;CACrG;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAyHnE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DragDropSort.js","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/DragDropSort.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,2DAA+C;AAC/C,wCAWuB;AACvB,gDAK2B;AAC3B,2CAAwC;AACxC,mEAAgE;AAChE,2FAAwF;
|
|
1
|
+
{"version":3,"file":"DragDropSort.js","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/DragDropSort.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,2DAA+C;AAC/C,wCAWuB;AACvB,gDAK2B;AAC3B,2CAAwC;AACxC,mEAAgE;AAChE,2FAAwF;AACxF,mHAAgF;AAoCzE,MAAM,YAAY,GAA+C,CAAC,EAOrD,EAAE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,CAAC,QAAQ,EAAE;gBAC3B,QAAQ,EAAE,gBAAgB;aAC3B,CAAC;QACH,CAAC,QAAQ,IAAI,iCAAM,gBAAgB,CAAO,CAChC,CACd,CAAC;AACJ,CAAC,CAAC;AAzHW,QAAA,YAAY,gBAyHvB;AACF,oBAAY,CAAC,WAAW,GAAG,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-drag-drop",
|
|
3
|
-
"version": "5.2.0-prerelease.
|
|
3
|
+
"version": "5.2.0-prerelease.7",
|
|
4
4
|
"description": "PatternFly drag and drop solution",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"rimraf": "^2.6.2",
|
|
47
47
|
"typescript": "^4.7.4"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "f62813fe364bf682dfb04f4c6e30cc637508b26a"
|
|
50
50
|
}
|
|
@@ -21,12 +21,20 @@ import {
|
|
|
21
21
|
import { Draggable } from './Draggable';
|
|
22
22
|
import { DraggableDataListItem } from './DraggableDataListItem';
|
|
23
23
|
import { DraggableDualListSelectorListItem } from './DraggableDualListSelectorListItem';
|
|
24
|
-
import { DraggableObject } from './DragDropUtil';
|
|
25
24
|
import styles from '@patternfly/react-styles/css/components/DragDrop/drag-drop';
|
|
26
25
|
|
|
27
26
|
export type DragDropSortDragEndEvent = DragEndEvent;
|
|
28
27
|
export type DragDropSortDragStartEvent = DragStartEvent;
|
|
29
28
|
|
|
29
|
+
export interface DraggableObject {
|
|
30
|
+
/** Unique id of the draggable object */
|
|
31
|
+
id: string;
|
|
32
|
+
/** Content rendered in the draggable object */
|
|
33
|
+
content: React.ReactNode;
|
|
34
|
+
/** Props spread to the rendered wrapper of the draggable object */
|
|
35
|
+
props?: any;
|
|
36
|
+
}
|
|
37
|
+
|
|
30
38
|
/**
|
|
31
39
|
* DragDropSortProps extends dnd-kit's props which may be viewed at https://docs.dndkit.com/api-documentation/context-provider#props.
|
|
32
40
|
*/
|
|
@@ -15,7 +15,7 @@ import AngleDoubleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-d
|
|
|
15
15
|
import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
|
|
16
16
|
import PficonSortCommonAscIcon from '@patternfly/react-icons/dist/esm/icons/pficon-sort-common-asc-icon';
|
|
17
17
|
|
|
18
|
-
import { DragDropSort
|
|
18
|
+
import { DragDropSort } from '@patternfly/react-drag-drop';
|
|
19
19
|
|
|
20
20
|
## Sorting examples
|
|
21
21
|
|
|
@@ -14,7 +14,7 @@ import AngleDoubleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-d
|
|
|
14
14
|
import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
|
|
15
15
|
import PficonSortCommonAscIcon from '@patternfly/react-icons/dist/esm/icons/pficon-sort-common-asc-icon';
|
|
16
16
|
|
|
17
|
-
import { DragDropSort
|
|
17
|
+
import { DragDropSort } from '@patternfly/react-drag-drop';
|
|
18
18
|
|
|
19
19
|
## Sorting demos
|
|
20
20
|
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface DraggableObject {
|
|
3
|
-
/** Unique id of the draggable object */
|
|
4
|
-
id: string;
|
|
5
|
-
/** Content rendered in the draggable object */
|
|
6
|
-
content: React.ReactNode;
|
|
7
|
-
/** Props spread to the rendered wrapper of the draggable object */
|
|
8
|
-
props?: any;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=DragDropUtil.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DragDropUtil.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/DragDropUtil.tsx"],"names":[],"mappings":";AAAA,MAAM,WAAW,eAAe;IAC9B,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,mEAAmE;IACnE,KAAK,CAAC,EAAE,GAAG,CAAC;CACb"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DragDropUtil.js","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/DragDropUtil.tsx"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface DraggableObject {
|
|
3
|
-
/** Unique id of the draggable object */
|
|
4
|
-
id: string;
|
|
5
|
-
/** Content rendered in the draggable object */
|
|
6
|
-
content: React.ReactNode;
|
|
7
|
-
/** Props spread to the rendered wrapper of the draggable object */
|
|
8
|
-
props?: any;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=DragDropUtil.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DragDropUtil.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/DragDropUtil.tsx"],"names":[],"mappings":";AAAA,MAAM,WAAW,eAAe;IAC9B,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,mEAAmE;IACnE,KAAK,CAAC,EAAE,GAAG,CAAC;CACb"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DragDropUtil.js","sourceRoot":"","sources":["../../../../../src/next/components/DragDrop/DragDropUtil.tsx"],"names":[],"mappings":""}
|