pixel-react-excel-sheet 1.0.37 → 1.0.38
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/lib/components/Drawer/Types.d.ts +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/types.d.ts +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +5 -4
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +5 -4
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Drawer/Drawer.stories.tsx +1 -1
- package/src/components/Drawer/Drawer.tsx +5 -4
- package/src/components/Drawer/Types.ts +1 -1
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Cell.tsx +0 -2
- package/src/components/Excel/ExcelFile/ExcelFileComponents/types.ts +2 -0
|
@@ -103,6 +103,7 @@ export type CellComponentProps<Cell extends CellBase = CellBase> = {
|
|
|
103
103
|
/** Set data of the cell */
|
|
104
104
|
setCellData: (cell: Cell) => void;
|
|
105
105
|
setContextMenu: React.Dispatch<React.SetStateAction<ContextMenuState>>;
|
|
106
|
+
contextClick: (event: React.MouseEvent) => void;
|
|
106
107
|
};
|
|
107
108
|
/** Type of the Spreadsheet Cell component */
|
|
108
109
|
export type CellComponent<Cell extends CellBase = CellBase> = React.ComponentType<CellComponentProps<Cell>>;
|
package/lib/index.d.ts
CHANGED
package/lib/index.esm.js
CHANGED
|
@@ -1102,7 +1102,7 @@ const Drawer = ({
|
|
|
1102
1102
|
leftSecondaryButtonProps = {},
|
|
1103
1103
|
showEditButton = false,
|
|
1104
1104
|
onEdit = () => {},
|
|
1105
|
-
|
|
1105
|
+
onCollapse = () => {},
|
|
1106
1106
|
overlay = false,
|
|
1107
1107
|
isFooterRequired = true,
|
|
1108
1108
|
footerContent = null,
|
|
@@ -1129,8 +1129,10 @@ const Drawer = ({
|
|
|
1129
1129
|
const handleEsc = useEscapeKey('Escape');
|
|
1130
1130
|
handleEsc(onClose);
|
|
1131
1131
|
const toggleExpand = () => {
|
|
1132
|
-
|
|
1133
|
-
|
|
1132
|
+
setIsExpanded(prev => {
|
|
1133
|
+
onCollapse(!prev);
|
|
1134
|
+
return !prev;
|
|
1135
|
+
});
|
|
1134
1136
|
};
|
|
1135
1137
|
const onCancel = () => {
|
|
1136
1138
|
if (secondaryButtonProps.onClick) {
|
|
@@ -31949,7 +31951,6 @@ const Cell = ({
|
|
|
31949
31951
|
}, [setCellDimensions, select, dragging, point]);
|
|
31950
31952
|
const contextClick = React.useCallback(event => {
|
|
31951
31953
|
event.preventDefault();
|
|
31952
|
-
console.log("Asdasd");
|
|
31953
31954
|
select(point);
|
|
31954
31955
|
setContextMenu({
|
|
31955
31956
|
open: true,
|