@1771technologies/lytenyte-pro 1.0.12-dev.2 → 1.0.12-dev.3
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/+types.d.ts +0 -40
- package/dist/state/api/use-row-drag.js +0 -8
- package/package.json +7 -8
package/dist/+types.d.ts
CHANGED
|
@@ -5066,10 +5066,6 @@ export interface DropEventParams {
|
|
|
5066
5066
|
* @group Row Drag
|
|
5067
5067
|
*/
|
|
5068
5068
|
export interface DragMoveState {
|
|
5069
|
-
/**
|
|
5070
|
-
* Indicates if the drag was initiated via keyboard.
|
|
5071
|
-
*/
|
|
5072
|
-
readonly isKeyboard: boolean;
|
|
5073
5069
|
/**
|
|
5074
5070
|
* X coordinate of the drop.
|
|
5075
5071
|
*/
|
|
@@ -5151,42 +5147,6 @@ export interface UseRowDragParams<T> {
|
|
|
5151
5147
|
* Triggered when the drag results in a drop.
|
|
5152
5148
|
*/
|
|
5153
5149
|
readonly onDrop?: DropEventFn;
|
|
5154
|
-
/**
|
|
5155
|
-
* Function to generate placeholder content for the drag preview.
|
|
5156
|
-
*/
|
|
5157
|
-
readonly placeholder?: DragPlaceholderFn<T>;
|
|
5158
|
-
/**
|
|
5159
|
-
* Offset [x, y] in pixels from the cursor position for rendering the drag placeholder.
|
|
5160
|
-
*/
|
|
5161
|
-
readonly placeholderOffset?: [number, number];
|
|
5162
|
-
/**
|
|
5163
|
-
* Keyboard key used to initiate drag mode.
|
|
5164
|
-
*/
|
|
5165
|
-
readonly keyActivate?: string;
|
|
5166
|
-
/**
|
|
5167
|
-
* Keyboard key used to move to the next drop zone.
|
|
5168
|
-
*/
|
|
5169
|
-
readonly keyNext?: string;
|
|
5170
|
-
/**
|
|
5171
|
-
* Keyboard key used to move to the previous drop zone.
|
|
5172
|
-
*/
|
|
5173
|
-
readonly keyPrev?: string;
|
|
5174
|
-
/**
|
|
5175
|
-
* Keyboard key used to execute the drop.
|
|
5176
|
-
*/
|
|
5177
|
-
readonly keyDrop?: string;
|
|
5178
|
-
/**
|
|
5179
|
-
* Accessible label describing how to perform the drag operation.
|
|
5180
|
-
*/
|
|
5181
|
-
readonly dragInstructions?: string;
|
|
5182
|
-
/**
|
|
5183
|
-
* Screen reader message to announce drag start.
|
|
5184
|
-
*/
|
|
5185
|
-
readonly announceDragStart?: string;
|
|
5186
|
-
/**
|
|
5187
|
-
* Screen reader message to announce drag end.
|
|
5188
|
-
*/
|
|
5189
|
-
readonly announceDragEnd?: string;
|
|
5190
5150
|
}
|
|
5191
5151
|
/**
|
|
5192
5152
|
* Represents a rectangular selection of cells in LyteNyte Grid.
|
|
@@ -3,14 +3,6 @@ export const makeUseRowDrag = (grid) => {
|
|
|
3
3
|
return (params) => {
|
|
4
4
|
const c = useDraggable({
|
|
5
5
|
...params,
|
|
6
|
-
placeholder: params.placeholder
|
|
7
|
-
? (d) => {
|
|
8
|
-
return params.placeholder({
|
|
9
|
-
grid,
|
|
10
|
-
dragData: d,
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
: undefined,
|
|
14
6
|
getItems: (el) => {
|
|
15
7
|
const nearestRow = getNearestRow(el);
|
|
16
8
|
if (!nearestRow)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1771technologies/lytenyte-pro",
|
|
3
3
|
"description": "Blazingly fast headless React data grid with 100s of features.",
|
|
4
|
-
"version": "1.0.12-dev.
|
|
4
|
+
"version": "1.0.12-dev.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "COMMERCIAL",
|
|
7
7
|
"files": [
|
|
@@ -48,13 +48,12 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@1771technologies/
|
|
52
|
-
"@1771technologies/lytenyte-
|
|
53
|
-
"@1771technologies/lytenyte-
|
|
54
|
-
"@1771technologies/lytenyte-
|
|
55
|
-
"@1771technologies/lytenyte-
|
|
56
|
-
"@1771technologies/lytenyte-
|
|
57
|
-
"@1771technologies/lytenyte-react-hooks": "1.0.12-dev.2"
|
|
51
|
+
"@1771technologies/lytenyte-core": "1.0.12-dev.3",
|
|
52
|
+
"@1771technologies/lytenyte-dragon": "1.0.12-dev.3",
|
|
53
|
+
"@1771technologies/lytenyte-shared": "1.0.12-dev.3",
|
|
54
|
+
"@1771technologies/lytenyte-dom-utils": "1.0.12-dev.3",
|
|
55
|
+
"@1771technologies/lytenyte-js-utils": "1.0.12-dev.3",
|
|
56
|
+
"@1771technologies/lytenyte-react-hooks": "1.0.12-dev.3"
|
|
58
57
|
},
|
|
59
58
|
"peerDependencies": {
|
|
60
59
|
"react": "^18.0.0 || ^19.0.0",
|