Skip to content

Commit

Permalink
Merge pull request #76 from Apollo-Spreadsheet/feat/apollo-build-test
Browse files Browse the repository at this point in the history
Feat/apollo build test
  • Loading branch information
VeraRibeiro authored Aug 18, 2022
2 parents 3601311 + 8349884 commit 18b5cfa
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apollo-spreadsheet",
"version": "1.0.52",
"version": "1.0.53",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"description": "React excel like fast grid plugin",
Expand Down
6 changes: 3 additions & 3 deletions src/ApolloSpreadsheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export const ApolloSpreadSheet: React.FC<ApolloSpreadsheetProps> = forwardRef(
minRowHeight={props.minColumnHeight ?? 50}
scrollLeft={scrollLeft}
onScrollHeader={props?.id ? onScrollHeader : () => null}
onColumnCollapse={props?.onColumnCollapseChange}
//onColumnCollapse={props?.onColumnCollapseChange}
apiRef={apiRef}
sort={sort}
nestedRowsEnabled={nestedRowsEnabled}
Expand All @@ -308,8 +308,8 @@ export const ApolloSpreadSheet: React.FC<ApolloSpreadsheetProps> = forwardRef(
mergeCells={mergedCells}
mergedPositions={mergedPositions}
isMerged={isMerged}
onRowCollapse={props?.onRowCollapseChange}
displayCollapseIcon={props?.displayCollapseIcon}
// onRowCollapse={props?.onRowCollapseChange}
// displayCollapseIcon={props?.displayCollapseIcon}
nestedRowsProps={nestedRowsProps}
theme={theme}
coreId={`core-${props?.id}`}
Expand Down
6 changes: 0 additions & 6 deletions src/ApolloSpreadsheetProps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import { NestedColumnsProps } from './nestedColumns/nestedColumnsProps'
export interface ApolloCrudProps {
onCreateRow?: (coords: NavigationCoords) => void
onCellChange?: ICellChangeEvent<any>
onColumnCollapseChange?: (column: string) => void
onRowCollapseChange?: (row: string) => void
}

export interface ApolloColumnRowSizeProps {
Expand Down Expand Up @@ -96,10 +94,6 @@ export interface ApolloLayoutProps {
* Optional renderer to be used in place of rows when either :rowCount or :columnCount is 0.
*/
noContentOverlay?: () => ReactNode
/**
* Toggle icon display in Collapses
*/
displayCollapseIcon?: boolean
}

export interface ApolloCoreProps {
Expand Down
5 changes: 2 additions & 3 deletions src/gridWrapper/GridWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const GridWrapper: React.FC<GridWrapperProps> = React.memo(
rowHeight,
noContentOverlay,
onRowCollapse,
displayCollapseIcon = true,
//displayCollapseIcon = true,
coreId,
}) => {
const logger = useLogger('GridWrapper')
Expand Down Expand Up @@ -309,7 +309,7 @@ const GridWrapper: React.FC<GridWrapperProps> = React.memo(
const component = (
<div style={depth > 1 ? { marginLeft: nestedMargin } : {}}>
{cell.value}
{displayCollapseIcon ? renderExpandOrCollapseIcon() : null}
{/* {displayCollapseIcon ? renderExpandOrCollapseIcon() : null} */}
</div>
)
return wrapper(component)
Expand All @@ -336,7 +336,6 @@ const GridWrapper: React.FC<GridWrapperProps> = React.memo(
nestedRowsProps,
highlightBorderColor,
apiRef,
displayCollapseIcon,
onRowCollapse,
logger,
],
Expand Down
2 changes: 1 addition & 1 deletion src/gridWrapper/gridWrapperProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ export interface GridWrapperProps
theme?: GridTheme
coreId?: string
onRowCollapse?: (params: string) => any
displayCollapseIcon?: boolean
// displayCollapseIcon?: boolean
}
8 changes: 4 additions & 4 deletions stories/components/Budget/P&L.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ export function Financial() {
connectToIds={['grid1', 'grid4']}
containerClassName={useTheme.containerClass}
theme={useTheme.theme}
onColumnCollapseChange={getExpandedColumnsTwo}
//onColumnCollapseChange={getExpandedColumnsTwo}
getSelectedCoords={getSelectedCoords2}
suppressNavigation
defaultCoords={{ rowIndex: -1, colIndex: -1 }}
Expand All @@ -511,7 +511,7 @@ export function Financial() {
connectToIds={['grid4']}
containerClassName={useTheme.containerClass}
theme={useTheme.theme}
onRowCollapseChange={getExpandedRows}
// onRowCollapseChange={getExpandedRows}
getSelectedCoords={getSelectedCoords3}
suppressNavigation
defaultCoords={{ rowIndex: -1, colIndex: -1 }}
Expand All @@ -534,8 +534,8 @@ export function Financial() {
connectToIds={['grid3', 'grid2']}
containerClassName={useTheme.containerClass}
theme={useTheme.theme}
onColumnCollapseChange={getExpandedColumns}
displayCollapseIcon={false}
//onColumnCollapseChange={getExpandedColumns}
// displayCollapseIcon={false}
getSelectedCoords={getSelectedCoords4}
suppressNavigation
defaultCoords={{ rowIndex: -1, colIndex: -1 }}
Expand Down

0 comments on commit 18b5cfa

Please sign in to comment.