@elliemae/ds-drag-and-drop 3.48.0 → 3.48.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.
|
@@ -120,7 +120,7 @@ const getVerticalKeyboardCoordinates = ({
|
|
|
120
120
|
}
|
|
121
121
|
if (dropIndicatorPosition === import_constants.DropIndicatorPosition.Inside || closestId === active.id || closestItem && closestItem.depth + 1 > maxDragAndDropLevel) {
|
|
122
122
|
return {
|
|
123
|
-
y:
|
|
123
|
+
y: collisionRect.top + closestRect.height / 2,
|
|
124
124
|
x: closestRect.left + 30
|
|
125
125
|
};
|
|
126
126
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/tree/getTreeKeyboardCoordinates.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable max-statements */\n/* eslint-disable max-params */\n/* eslint-disable complexity */\nimport type { KeyboardCoordinateGetter, DroppableContainer } from '@dnd-kit/core';\nimport { closestCorners, getClientRect, KeyboardCode } from '@dnd-kit/core';\nimport type { Coordinates } from '@dnd-kit/core/dist/types';\nimport type { DnDKitTree } from './types.js';\nimport { DropIndicatorPosition } from './constants.js';\n\nconst directions: string[] = [KeyboardCode.Down, KeyboardCode.Right, KeyboardCode.Up, KeyboardCode.Left];\n\nconst getVerticalKeyboardCoordinates = <T,>({\n flattenedItems,\n active,\n over,\n event,\n currentCoordinates,\n droppableContainers,\n collisionRect,\n dropIndicatorPosition,\n maxDragAndDropLevel,\n droppableRects,\n flattenedItemsDictionary,\n}: DnDKitTree.GetKeyboardCoordinatesArgs<T>): Coordinates | undefined => {\n // if (horizontal.includes(event.code)) return undefined;\n\n const overRect = over.rect;\n\n const layoutRects: DroppableContainer[] = [];\n const activeDraggableContainer = flattenedItemsDictionary[over.id]?.container || 'root';\n\n // Get the reacheable rects depending on the arrow key pressed\n droppableContainers.forEach((container) => {\n if (container?.disabled || !overRect) {\n return;\n }\n const rect = container.rect.current;\n if (event.code === 'ArrowRight') {\n if (rect && collisionRect.left + collisionRect.width < rect.left) {\n layoutRects.push(container);\n }\n } else if (event.code === 'ArrowLeft') {\n if (rect && collisionRect.left + collisionRect.width > rect.right) {\n layoutRects.push(container);\n }\n } else if (rect && event.code === 'ArrowDown' && collisionRect.top - 2 <= rect.top) {\n // We add and substract 2 just for the sake of avoiding edge cases\n layoutRects.push(container);\n } else if (rect && event.code === 'ArrowUp' && collisionRect.top + 2 >= rect.top) {\n layoutRects.push(container);\n }\n });\n\n // Get the closest rect based on dnd-kit closest-corners algorithm\n const sortedRects = closestCorners({\n collisionRect,\n droppableContainers: layoutRects,\n droppableRects,\n active,\n pointerCoordinates: null,\n });\n\n const closestId = sortedRects.length > 0 ? sortedRects[0].id : undefined;\n const closestElement = droppableContainers.get(closestId)?.node?.current;\n if (!closestId || !closestElement) return undefined;\n\n const closestRect = getClientRect(closestElement);\n\n if (event.code === 'ArrowRight' || event.code === 'ArrowLeft') {\n let coordsInY = currentCoordinates.y;\n\n // with this we check that the closest rect is not too far from the current coordinates\n // if it is, we are gonna go to the closest rect but in the y axis\n // if it is not, we are gonna go to the closest rect in the x axis and the current y axis\n if (\n (DropIndicatorPosition.Inside === dropIndicatorPosition &&\n Math.abs(closestRect.top - currentCoordinates.y) > 5) ||\n (DropIndicatorPosition.Inside !== dropIndicatorPosition &&\n Math.abs(closestRect.top - (currentCoordinates.y + collisionRect.height / 2)) > 5)\n ) {\n coordsInY =\n closestRect.top > currentCoordinates.y\n ? closestRect.top - collisionRect.height / 2\n : closestRect.bottom - collisionRect.height / 2;\n }\n return {\n x: closestRect.left + 30,\n y: coordsInY,\n };\n }\n\n const closestItem = flattenedItems[activeDraggableContainer]?.find((item) => item.uid === closestId);\n\n // If no rect is closest, do nothing\n if (!closestItem && !closestId) return undefined;\n const overContainerHasChanged = !closestItem;\n if (event.code === 'ArrowUp') {\n // If the drop indicator is inside (or over ourselves)\n // We are gonna go to the before position\n // Else we are gonna go inside the over rect\n if (\n dropIndicatorPosition === DropIndicatorPosition.Inside ||\n closestId === active.id ||\n (closestItem && closestItem.depth + 1 > maxDragAndDropLevel)\n ) {\n return {\n x: closestRect.left + 30,\n y: closestRect.top - collisionRect.height / 2,\n };\n }\n\n // changed the container\n if (overContainerHasChanged) {\n return {\n y: closestRect.bottom - collisionRect.height / 2,\n x: closestRect.left + 30,\n };\n }\n return {\n x: closestRect.left + 30,\n y: closestRect.top + Math.abs(closestRect.height - collisionRect.height) / 2,\n };\n }\n\n // If the drop indicator is over ourselves and after\n // We need to go inside the next one\n if (closestId === active.id && dropIndicatorPosition === DropIndicatorPosition.After) {\n return {\n x: closestRect.left + 30,\n y: closestRect.top + collisionRect.height,\n };\n }\n // If the drop indicator is inside, or over ourselves\n // We are gonna go to the after position\n if (\n dropIndicatorPosition === DropIndicatorPosition.Inside ||\n closestId === active.id ||\n (closestItem && closestItem.depth + 1 > maxDragAndDropLevel)\n ) {\n return {\n y:
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADIvB,kBAA4D;AAG5D,uBAAsC;AAEtC,MAAM,aAAuB,CAAC,yBAAa,MAAM,yBAAa,OAAO,yBAAa,IAAI,yBAAa,IAAI;AAEvG,MAAM,iCAAiC,CAAK;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAyE;AAGvE,QAAM,WAAW,KAAK;AAEtB,QAAM,cAAoC,CAAC;AAC3C,QAAM,2BAA2B,yBAAyB,KAAK,EAAE,GAAG,aAAa;AAGjF,sBAAoB,QAAQ,CAAC,cAAc;AACzC,QAAI,WAAW,YAAY,CAAC,UAAU;AACpC;AAAA,IACF;AACA,UAAM,OAAO,UAAU,KAAK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AEA,QAAM,cAAc,eAAe,wBAAwB,GAAG,KAAK,CAAC,SAAS,KAAK,QAAQ,SAAS;AAGnG,MAAI,CAAC,eAAe,CAAC,UAAW,QAAO;AACvC,QAAM,0BAA0B,CAAC;AACjC,MAAI,MAAM,SAAS,WAAW;AAI5B,QACE,0BAA0B,uCAAsB,UAChD,cAAc,OAAO,MACpB,eAAe,YAAY,QAAQ,IAAI,qBACxC;AACA,aAAO;AAAA,QACL,GAAG,YAAY,OAAO;AAAA,QACtB,GAAG,YAAY,MAAM,cAAc,SAAS;AAAA,MAC9C;AAAA,IACF;AAGA,QAAI,yBAAyB;AAC3B,aAAO;AAAA,QACL,GAAG,YAAY,SAAS,cAAc,SAAS;AAAA,QAC/C,GAAG,YAAY,OAAO;AAAA,MACxB;AAAA,IACF;AACA,WAAO;AAAA,MACL,GAAG,YAAY,OAAO;AAAA,MACtB,GAAG,YAAY,MAAM,KAAK,IAAI,YAAY,SAAS,cAAc,MAAM,IAAI;AAAA,IAC7E;AAAA,EACF;AAIA,MAAI,cAAc,OAAO,MAAM,0BAA0B,uCAAsB,OAAO;AACpF,WAAO;AAAA,MACL,GAAG,YAAY,OAAO;AAAA,MACtB,GAAG,YAAY,MAAM,cAAc;AAAA,IACrC;AAAA,EACF;AAGA,MACE,0BAA0B,uCAAsB,UAChD,cAAc,OAAO,MACpB,eAAe,YAAY,QAAQ,IAAI,qBACxC;AACA,WAAO;AAAA,MACL,GAAG,
|
|
4
|
+
"sourcesContent": ["/* eslint-disable max-statements */\n/* eslint-disable max-params */\n/* eslint-disable complexity */\nimport type { KeyboardCoordinateGetter, DroppableContainer } from '@dnd-kit/core';\nimport { closestCorners, getClientRect, KeyboardCode } from '@dnd-kit/core';\nimport type { Coordinates } from '@dnd-kit/core/dist/types';\nimport type { DnDKitTree } from './types.js';\nimport { DropIndicatorPosition } from './constants.js';\n\nconst directions: string[] = [KeyboardCode.Down, KeyboardCode.Right, KeyboardCode.Up, KeyboardCode.Left];\n\nconst getVerticalKeyboardCoordinates = <T,>({\n flattenedItems,\n active,\n over,\n event,\n currentCoordinates,\n droppableContainers,\n collisionRect,\n dropIndicatorPosition,\n maxDragAndDropLevel,\n droppableRects,\n flattenedItemsDictionary,\n}: DnDKitTree.GetKeyboardCoordinatesArgs<T>): Coordinates | undefined => {\n // if (horizontal.includes(event.code)) return undefined;\n\n const overRect = over.rect;\n\n const layoutRects: DroppableContainer[] = [];\n const activeDraggableContainer = flattenedItemsDictionary[over.id]?.container || 'root';\n\n // Get the reacheable rects depending on the arrow key pressed\n droppableContainers.forEach((container) => {\n if (container?.disabled || !overRect) {\n return;\n }\n const rect = container.rect.current;\n if (event.code === 'ArrowRight') {\n if (rect && collisionRect.left + collisionRect.width < rect.left) {\n layoutRects.push(container);\n }\n } else if (event.code === 'ArrowLeft') {\n if (rect && collisionRect.left + collisionRect.width > rect.right) {\n layoutRects.push(container);\n }\n } else if (rect && event.code === 'ArrowDown' && collisionRect.top - 2 <= rect.top) {\n // We add and substract 2 just for the sake of avoiding edge cases\n layoutRects.push(container);\n } else if (rect && event.code === 'ArrowUp' && collisionRect.top + 2 >= rect.top) {\n layoutRects.push(container);\n }\n });\n\n // Get the closest rect based on dnd-kit closest-corners algorithm\n const sortedRects = closestCorners({\n collisionRect,\n droppableContainers: layoutRects,\n droppableRects,\n active,\n pointerCoordinates: null,\n });\n\n const closestId = sortedRects.length > 0 ? sortedRects[0].id : undefined;\n const closestElement = droppableContainers.get(closestId)?.node?.current;\n if (!closestId || !closestElement) return undefined;\n\n const closestRect = getClientRect(closestElement);\n\n if (event.code === 'ArrowRight' || event.code === 'ArrowLeft') {\n let coordsInY = currentCoordinates.y;\n\n // with this we check that the closest rect is not too far from the current coordinates\n // if it is, we are gonna go to the closest rect but in the y axis\n // if it is not, we are gonna go to the closest rect in the x axis and the current y axis\n if (\n (DropIndicatorPosition.Inside === dropIndicatorPosition &&\n Math.abs(closestRect.top - currentCoordinates.y) > 5) ||\n (DropIndicatorPosition.Inside !== dropIndicatorPosition &&\n Math.abs(closestRect.top - (currentCoordinates.y + collisionRect.height / 2)) > 5)\n ) {\n coordsInY =\n closestRect.top > currentCoordinates.y\n ? closestRect.top - collisionRect.height / 2\n : closestRect.bottom - collisionRect.height / 2;\n }\n return {\n x: closestRect.left + 30,\n y: coordsInY,\n };\n }\n\n const closestItem = flattenedItems[activeDraggableContainer]?.find((item) => item.uid === closestId);\n\n // If no rect is closest, do nothing\n if (!closestItem && !closestId) return undefined;\n const overContainerHasChanged = !closestItem;\n if (event.code === 'ArrowUp') {\n // If the drop indicator is inside (or over ourselves)\n // We are gonna go to the before position\n // Else we are gonna go inside the over rect\n if (\n dropIndicatorPosition === DropIndicatorPosition.Inside ||\n closestId === active.id ||\n (closestItem && closestItem.depth + 1 > maxDragAndDropLevel)\n ) {\n return {\n x: closestRect.left + 30,\n y: closestRect.top - collisionRect.height / 2,\n };\n }\n\n // changed the container\n if (overContainerHasChanged) {\n return {\n y: closestRect.bottom - collisionRect.height / 2,\n x: closestRect.left + 30,\n };\n }\n return {\n x: closestRect.left + 30,\n y: closestRect.top + Math.abs(closestRect.height - collisionRect.height) / 2,\n };\n }\n\n // If the drop indicator is over ourselves and after\n // We need to go inside the next one\n if (closestId === active.id && dropIndicatorPosition === DropIndicatorPosition.After) {\n return {\n x: closestRect.left + 30,\n y: closestRect.top + collisionRect.height,\n };\n }\n // If the drop indicator is inside, or over ourselves\n // We are gonna go to the after position\n if (\n dropIndicatorPosition === DropIndicatorPosition.Inside ||\n closestId === active.id ||\n (closestItem && closestItem.depth + 1 > maxDragAndDropLevel)\n ) {\n return {\n y: collisionRect.top + closestRect.height / 2,\n x: closestRect.left + 30,\n };\n }\n\n // changed the container\n if (overContainerHasChanged) {\n return {\n y: closestRect.top - collisionRect.height / 2,\n x: closestRect.left + 30,\n };\n }\n\n return {\n x: closestRect.left + 30,\n y: closestRect.top + Math.abs(closestRect.height - collisionRect.height) / 2,\n };\n};\n\nexport const getTreeKeyboardCoordinates: <T>(context: DnDKitTree.SensorContext<T>) => KeyboardCoordinateGetter = (\n context,\n) => {\n const func: KeyboardCoordinateGetter = (\n event,\n { currentCoordinates, context: { over, droppableContainers, droppableRects, active, collisionRect } },\n ) => {\n if (directions.includes(event.code)) {\n if (!over || !active || !collisionRect) return undefined;\n\n const {\n items: flattenedItems,\n dropIndicatorPosition,\n maxDragAndDropLevel,\n isHorizontalDnD,\n flattenedItemsDictionary,\n containersRef,\n } = context.current;\n\n const args = {\n flattenedItems,\n active,\n over,\n event,\n currentCoordinates,\n droppableContainers,\n collisionRect,\n dropIndicatorPosition,\n droppableRects,\n maxDragAndDropLevel,\n flattenedItemsDictionary,\n containersRef,\n };\n\n if (isHorizontalDnD) return undefined;\n\n const newCoords = getVerticalKeyboardCoordinates(args);\n return newCoords;\n }\n return undefined;\n };\n return func;\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADIvB,kBAA4D;AAG5D,uBAAsC;AAEtC,MAAM,aAAuB,CAAC,yBAAa,MAAM,yBAAa,OAAO,yBAAa,IAAI,yBAAa,IAAI;AAEvG,MAAM,iCAAiC,CAAK;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAyE;AAGvE,QAAM,WAAW,KAAK;AAEtB,QAAM,cAAoC,CAAC;AAC3C,QAAM,2BAA2B,yBAAyB,KAAK,EAAE,GAAG,aAAa;AAGjF,sBAAoB,QAAQ,CAAC,cAAc;AACzC,QAAI,WAAW,YAAY,CAAC,UAAU;AACpC;AAAA,IACF;AACA,UAAM,OAAO,UAAU,KAAK;AAC5B,QAAI,MAAM,SAAS,cAAc;AAC/B,UAAI,QAAQ,cAAc,OAAO,cAAc,QAAQ,KAAK,MAAM;AAChE,oBAAY,KA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AAgB,QAAQ,cAAc,EAAE,MACjG;AACH,QAAI,WAAW,SAAS,MAAM,IAAI,GAAG;AACnC,UAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,cAAe,QAAO;AAE/C,YAAM;AAAA,QACJ,OAAO;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF,IAAI,QAAQ;AAEZ,YAAM,OAAO;AAAA,QACX;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAEA,UAAI,gBAAiB,QAAO;AAE5B,YAAM,YAAY,+BAA+B,IAAI;AACrD,aAAO;AAAA,IACT;AACA,WAAO;AAAA,EACT;AACA,SAAO;AACT;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -87,7 +87,7 @@ const getVerticalKeyboardCoordinates = ({
|
|
|
87
87
|
}
|
|
88
88
|
if (dropIndicatorPosition === DropIndicatorPosition.Inside || closestId === active.id || closestItem && closestItem.depth + 1 > maxDragAndDropLevel) {
|
|
89
89
|
return {
|
|
90
|
-
y:
|
|
90
|
+
y: collisionRect.top + closestRect.height / 2,
|
|
91
91
|
x: closestRect.left + 30
|
|
92
92
|
};
|
|
93
93
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/tree/getTreeKeyboardCoordinates.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-statements */\n/* eslint-disable max-params */\n/* eslint-disable complexity */\nimport type { KeyboardCoordinateGetter, DroppableContainer } from '@dnd-kit/core';\nimport { closestCorners, getClientRect, KeyboardCode } from '@dnd-kit/core';\nimport type { Coordinates } from '@dnd-kit/core/dist/types';\nimport type { DnDKitTree } from './types.js';\nimport { DropIndicatorPosition } from './constants.js';\n\nconst directions: string[] = [KeyboardCode.Down, KeyboardCode.Right, KeyboardCode.Up, KeyboardCode.Left];\n\nconst getVerticalKeyboardCoordinates = <T,>({\n flattenedItems,\n active,\n over,\n event,\n currentCoordinates,\n droppableContainers,\n collisionRect,\n dropIndicatorPosition,\n maxDragAndDropLevel,\n droppableRects,\n flattenedItemsDictionary,\n}: DnDKitTree.GetKeyboardCoordinatesArgs<T>): Coordinates | undefined => {\n // if (horizontal.includes(event.code)) return undefined;\n\n const overRect = over.rect;\n\n const layoutRects: DroppableContainer[] = [];\n const activeDraggableContainer = flattenedItemsDictionary[over.id]?.container || 'root';\n\n // Get the reacheable rects depending on the arrow key pressed\n droppableContainers.forEach((container) => {\n if (container?.disabled || !overRect) {\n return;\n }\n const rect = container.rect.current;\n if (event.code === 'ArrowRight') {\n if (rect && collisionRect.left + collisionRect.width < rect.left) {\n layoutRects.push(container);\n }\n } else if (event.code === 'ArrowLeft') {\n if (rect && collisionRect.left + collisionRect.width > rect.right) {\n layoutRects.push(container);\n }\n } else if (rect && event.code === 'ArrowDown' && collisionRect.top - 2 <= rect.top) {\n // We add and substract 2 just for the sake of avoiding edge cases\n layoutRects.push(container);\n } else if (rect && event.code === 'ArrowUp' && collisionRect.top + 2 >= rect.top) {\n layoutRects.push(container);\n }\n });\n\n // Get the closest rect based on dnd-kit closest-corners algorithm\n const sortedRects = closestCorners({\n collisionRect,\n droppableContainers: layoutRects,\n droppableRects,\n active,\n pointerCoordinates: null,\n });\n\n const closestId = sortedRects.length > 0 ? sortedRects[0].id : undefined;\n const closestElement = droppableContainers.get(closestId)?.node?.current;\n if (!closestId || !closestElement) return undefined;\n\n const closestRect = getClientRect(closestElement);\n\n if (event.code === 'ArrowRight' || event.code === 'ArrowLeft') {\n let coordsInY = currentCoordinates.y;\n\n // with this we check that the closest rect is not too far from the current coordinates\n // if it is, we are gonna go to the closest rect but in the y axis\n // if it is not, we are gonna go to the closest rect in the x axis and the current y axis\n if (\n (DropIndicatorPosition.Inside === dropIndicatorPosition &&\n Math.abs(closestRect.top - currentCoordinates.y) > 5) ||\n (DropIndicatorPosition.Inside !== dropIndicatorPosition &&\n Math.abs(closestRect.top - (currentCoordinates.y + collisionRect.height / 2)) > 5)\n ) {\n coordsInY =\n closestRect.top > currentCoordinates.y\n ? closestRect.top - collisionRect.height / 2\n : closestRect.bottom - collisionRect.height / 2;\n }\n return {\n x: closestRect.left + 30,\n y: coordsInY,\n };\n }\n\n const closestItem = flattenedItems[activeDraggableContainer]?.find((item) => item.uid === closestId);\n\n // If no rect is closest, do nothing\n if (!closestItem && !closestId) return undefined;\n const overContainerHasChanged = !closestItem;\n if (event.code === 'ArrowUp') {\n // If the drop indicator is inside (or over ourselves)\n // We are gonna go to the before position\n // Else we are gonna go inside the over rect\n if (\n dropIndicatorPosition === DropIndicatorPosition.Inside ||\n closestId === active.id ||\n (closestItem && closestItem.depth + 1 > maxDragAndDropLevel)\n ) {\n return {\n x: closestRect.left + 30,\n y: closestRect.top - collisionRect.height / 2,\n };\n }\n\n // changed the container\n if (overContainerHasChanged) {\n return {\n y: closestRect.bottom - collisionRect.height / 2,\n x: closestRect.left + 30,\n };\n }\n return {\n x: closestRect.left + 30,\n y: closestRect.top + Math.abs(closestRect.height - collisionRect.height) / 2,\n };\n }\n\n // If the drop indicator is over ourselves and after\n // We need to go inside the next one\n if (closestId === active.id && dropIndicatorPosition === DropIndicatorPosition.After) {\n return {\n x: closestRect.left + 30,\n y: closestRect.top + collisionRect.height,\n };\n }\n // If the drop indicator is inside, or over ourselves\n // We are gonna go to the after position\n if (\n dropIndicatorPosition === DropIndicatorPosition.Inside ||\n closestId === active.id ||\n (closestItem && closestItem.depth + 1 > maxDragAndDropLevel)\n ) {\n return {\n y:
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACIvB,SAAS,gBAAgB,eAAe,oBAAoB;AAG5D,SAAS,6BAA6B;AAEtC,MAAM,aAAuB,CAAC,aAAa,MAAM,aAA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,OAAO,MACpB,eAAe,YAAY,QAAQ,IAAI,qBACxC;AACA,WAAO;AAAA,MACL,GAAG,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-statements */\n/* eslint-disable max-params */\n/* eslint-disable complexity */\nimport type { KeyboardCoordinateGetter, DroppableContainer } from '@dnd-kit/core';\nimport { closestCorners, getClientRect, KeyboardCode } from '@dnd-kit/core';\nimport type { Coordinates } from '@dnd-kit/core/dist/types';\nimport type { DnDKitTree } from './types.js';\nimport { DropIndicatorPosition } from './constants.js';\n\nconst directions: string[] = [KeyboardCode.Down, KeyboardCode.Right, KeyboardCode.Up, KeyboardCode.Left];\n\nconst getVerticalKeyboardCoordinates = <T,>({\n flattenedItems,\n active,\n over,\n event,\n currentCoordinates,\n droppableContainers,\n collisionRect,\n dropIndicatorPosition,\n maxDragAndDropLevel,\n droppableRects,\n flattenedItemsDictionary,\n}: DnDKitTree.GetKeyboardCoordinatesArgs<T>): Coordinates | undefined => {\n // if (horizontal.includes(event.code)) return undefined;\n\n const overRect = over.rect;\n\n const layoutRects: DroppableContainer[] = [];\n const activeDraggableContainer = flattenedItemsDictionary[over.id]?.container || 'root';\n\n // Get the reacheable rects depending on the arrow key pressed\n droppableContainers.forEach((container) => {\n if (container?.disabled || !overRect) {\n return;\n }\n const rect = container.rect.current;\n if (event.code === 'ArrowRight') {\n if (rect && collisionRect.left + collisionRect.width < rect.left) {\n layoutRects.push(container);\n }\n } else if (event.code === 'ArrowLeft') {\n if (rect && collisionRect.left + collisionRect.width > rect.right) {\n layoutRects.push(container);\n }\n } else if (rect && event.code === 'ArrowDown' && collisionRect.top - 2 <= rect.top) {\n // We add and substract 2 just for the sake of avoiding edge cases\n layoutRects.push(container);\n } else if (rect && event.code === 'ArrowUp' && collisionRect.top + 2 >= rect.top) {\n layoutRects.push(container);\n }\n });\n\n // Get the closest rect based on dnd-kit closest-corners algorithm\n const sortedRects = closestCorners({\n collisionRect,\n droppableContainers: layoutRects,\n droppableRects,\n active,\n pointerCoordinates: null,\n });\n\n const closestId = sortedRects.length > 0 ? sortedRects[0].id : undefined;\n const closestElement = droppableContainers.get(closestId)?.node?.current;\n if (!closestId || !closestElement) return undefined;\n\n const closestRect = getClientRect(closestElement);\n\n if (event.code === 'ArrowRight' || event.code === 'ArrowLeft') {\n let coordsInY = currentCoordinates.y;\n\n // with this we check that the closest rect is not too far from the current coordinates\n // if it is, we are gonna go to the closest rect but in the y axis\n // if it is not, we are gonna go to the closest rect in the x axis and the current y axis\n if (\n (DropIndicatorPosition.Inside === dropIndicatorPosition &&\n Math.abs(closestRect.top - currentCoordinates.y) > 5) ||\n (DropIndicatorPosition.Inside !== dropIndicatorPosition &&\n Math.abs(closestRect.top - (currentCoordinates.y + collisionRect.height / 2)) > 5)\n ) {\n coordsInY =\n closestRect.top > currentCoordinates.y\n ? closestRect.top - collisionRect.height / 2\n : closestRect.bottom - collisionRect.height / 2;\n }\n return {\n x: closestRect.left + 30,\n y: coordsInY,\n };\n }\n\n const closestItem = flattenedItems[activeDraggableContainer]?.find((item) => item.uid === closestId);\n\n // If no rect is closest, do nothing\n if (!closestItem && !closestId) return undefined;\n const overContainerHasChanged = !closestItem;\n if (event.code === 'ArrowUp') {\n // If the drop indicator is inside (or over ourselves)\n // We are gonna go to the before position\n // Else we are gonna go inside the over rect\n if (\n dropIndicatorPosition === DropIndicatorPosition.Inside ||\n closestId === active.id ||\n (closestItem && closestItem.depth + 1 > maxDragAndDropLevel)\n ) {\n return {\n x: closestRect.left + 30,\n y: closestRect.top - collisionRect.height / 2,\n };\n }\n\n // changed the container\n if (overContainerHasChanged) {\n return {\n y: closestRect.bottom - collisionRect.height / 2,\n x: closestRect.left + 30,\n };\n }\n return {\n x: closestRect.left + 30,\n y: closestRect.top + Math.abs(closestRect.height - collisionRect.height) / 2,\n };\n }\n\n // If the drop indicator is over ourselves and after\n // We need to go inside the next one\n if (closestId === active.id && dropIndicatorPosition === DropIndicatorPosition.After) {\n return {\n x: closestRect.left + 30,\n y: closestRect.top + collisionRect.height,\n };\n }\n // If the drop indicator is inside, or over ourselves\n // We are gonna go to the after position\n if (\n dropIndicatorPosition === DropIndicatorPosition.Inside ||\n closestId === active.id ||\n (closestItem && closestItem.depth + 1 > maxDragAndDropLevel)\n ) {\n return {\n y: collisionRect.top + closestRect.height / 2,\n x: closestRect.left + 30,\n };\n }\n\n // changed the container\n if (overContainerHasChanged) {\n return {\n y: closestRect.top - collisionRect.height / 2,\n x: closestRect.left + 30,\n };\n }\n\n return {\n x: closestRect.left + 30,\n y: closestRect.top + Math.abs(closestRect.height - collisionRect.height) / 2,\n };\n};\n\nexport const getTreeKeyboardCoordinates: <T>(context: DnDKitTree.SensorContext<T>) => KeyboardCoordinateGetter = (\n context,\n) => {\n const func: KeyboardCoordinateGetter = (\n event,\n { currentCoordinates, context: { over, droppableContainers, droppableRects, active, collisionRect } },\n ) => {\n if (directions.includes(event.code)) {\n if (!over || !active || !collisionRect) return undefined;\n\n const {\n items: flattenedItems,\n dropIndicatorPosition,\n maxDragAndDropLevel,\n isHorizontalDnD,\n flattenedItemsDictionary,\n containersRef,\n } = context.current;\n\n const args = {\n flattenedItems,\n active,\n over,\n event,\n currentCoordinates,\n droppableContainers,\n collisionRect,\n dropIndicatorPosition,\n droppableRects,\n maxDragAndDropLevel,\n flattenedItemsDictionary,\n containersRef,\n };\n\n if (isHorizontalDnD) return undefined;\n\n const newCoords = getVerticalKeyboardCoordinates(args);\n return newCoords;\n }\n return undefined;\n };\n return func;\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACIvB,SAAS,gBAAgB,eAAe,oBAAoB;AAG5D,SAAS,6BAA6B;AAEtC,MAAM,aAAuB,CAAC,aAAa,MAAM,aAAa,OAAO,aAAa,IAAI,aAAa,IAAI;AAEvG,MAAM,iCAAiC,CAAK;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA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ACF;AAGA,MAAI,yBAAyB;AAC3B,WAAO;AAAA,MACL,GAAG,YAAY,MAAM,cAAc,SAAS;AAAA,MAC5C,GAAG,YAAY,OAAO;AAAA,IACxB;AAAA,EACF;AAEA,SAAO;AAAA,IACL,GAAG,YAAY,OAAO;AAAA,IACtB,GAAG,YAAY,MAAM,KAAK,IAAI,YAAY,SAAS,cAAc,MAAM,IAAI;AAAA,EAC7E;AACF;AAEO,MAAM,6BAAoG,CAC/G,YACG;AACH,QAAM,OAAiC,CACrC,OACA,EAAE,oBAAoB,SAAS,EAAE,MAAM,qBAAqB,gBAAgB,QAAQ,cAAc,EAAE,MACjG;AACH,QAAI,WAAW,SAAS,MAAM,IAAI,GAAG;AACnC,UAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,cAAe,QAAO;AAE/C,YAAM;AAAA,QACJ,OAAO;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF,IAAI,QAAQ;AAEZ,YAAM,OAAO;AAAA,QACX;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAEA,UAAI,gBAAiB,QAAO;AAE5B,YAAM,YAAY,+BAA+B,IAAI;AACrD,aAAO;AAAA,IACT;AACA,WAAO;AAAA,EACT;AACA,SAAO;AACT;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-drag-and-drop",
|
|
3
|
-
"version": "3.48.
|
|
3
|
+
"version": "3.48.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Drag And Drop",
|
|
6
6
|
"files": [
|
|
@@ -111,16 +111,16 @@
|
|
|
111
111
|
"@dnd-kit/core": "~6.0.8",
|
|
112
112
|
"@dnd-kit/modifiers": "~6.0.1",
|
|
113
113
|
"@dnd-kit/sortable": "~7.0.2",
|
|
114
|
-
"@elliemae/ds-fast-list": "3.48.
|
|
115
|
-
"@elliemae/ds-props-helpers": "3.48.
|
|
116
|
-
"@elliemae/ds-
|
|
117
|
-
"@elliemae/ds-
|
|
118
|
-
"@elliemae/ds-
|
|
114
|
+
"@elliemae/ds-fast-list": "3.48.1",
|
|
115
|
+
"@elliemae/ds-props-helpers": "3.48.1",
|
|
116
|
+
"@elliemae/ds-system": "3.48.1",
|
|
117
|
+
"@elliemae/ds-typescript-helpers": "3.48.1",
|
|
118
|
+
"@elliemae/ds-tree-model": "3.48.1"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
121
|
"@elliemae/pui-cli": "9.0.0-next.50",
|
|
122
122
|
"styled-components": "~5.3.9",
|
|
123
|
-
"@elliemae/ds-monorepo-devops": "3.48.
|
|
123
|
+
"@elliemae/ds-monorepo-devops": "3.48.1"
|
|
124
124
|
},
|
|
125
125
|
"peerDependencies": {
|
|
126
126
|
"lodash": "^4.17.21",
|