Skip to content

Commit

Permalink
UI: collapse expanded rows for all tables when switching page (for We…
Browse files Browse the repository at this point in the history
…ka Home)
  • Loading branch information
sofa-tata committed Oct 17, 2023
1 parent 3cffb92 commit cf7306e
Show file tree
Hide file tree
Showing 14 changed files with 1,854 additions and 1,807 deletions.
2 changes: 1 addition & 1 deletion dist/cjs/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/cjs/types/components/Table/Table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ interface TableProps<Data extends Record<string, unknown>> {
customDateFormat?: string;
hasResizableColumns?: boolean;
hasEmptyActionsCell?: boolean;
collapseRowsOnLeavingPage?: boolean;
}
declare function Table<Values extends Record<string, unknown>>({ columns, data, rowActions, tableActions, title, defaultSort, globalFilter, defaultGlobalFilter, checkRowSelected, checkRowHighlighted, getRowId, addFilterToUrl, RowSubComponent, listenerPrefix, onRowClick, miniTable, filterCategory, fixedPageSize, disableActionsPortal, maxRows, emptyMessage, colPropForShowColumns, manualPagination, itemsAmount, canExpandAll, loading, onFiltersChanged, defaultDescendingSort, customRowActions, manualFilters, extraClasses, initialFilters: initialUserFilters, groupBy, hasCustomDateFormat, customDateFormat, hasResizableColumns, hasEmptyActionsCell }: TableProps<Values>): JSX.Element;
declare function Table<Values extends Record<string, unknown>>({ columns, data, rowActions, tableActions, title, defaultSort, globalFilter, defaultGlobalFilter, checkRowSelected, checkRowHighlighted, getRowId, addFilterToUrl, RowSubComponent, listenerPrefix, onRowClick, miniTable, filterCategory, fixedPageSize, disableActionsPortal, maxRows, emptyMessage, colPropForShowColumns, manualPagination, itemsAmount, canExpandAll, loading, onFiltersChanged, defaultDescendingSort, customRowActions, manualFilters, extraClasses, initialFilters: initialUserFilters, groupBy, hasCustomDateFormat, customDateFormat, hasResizableColumns, hasEmptyActionsCell, collapseRowsOnLeavingPage }: TableProps<Values>): JSX.Element;
declare const _default: React.MemoExoticComponent<typeof Table>;
export default _default;
2 changes: 1 addition & 1 deletion dist/cjs/types/components/TextEditor/components/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ export * from './FoldAllButton';
export * from './FontSizeControls';
export * from './LinesCount';
export * from './TextEditorFull';
export { ParsedData } from './TextEditorFull';
export type * from './TextEditorFull';
export * from './TextViewerLite';
export * from './SearchButton';
2 changes: 1 addition & 1 deletion dist/esm/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/esm/types/components/Table/Table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ interface TableProps<Data extends Record<string, unknown>> {
customDateFormat?: string;
hasResizableColumns?: boolean;
hasEmptyActionsCell?: boolean;
collapseRowsOnLeavingPage?: boolean;
}
declare function Table<Values extends Record<string, unknown>>({ columns, data, rowActions, tableActions, title, defaultSort, globalFilter, defaultGlobalFilter, checkRowSelected, checkRowHighlighted, getRowId, addFilterToUrl, RowSubComponent, listenerPrefix, onRowClick, miniTable, filterCategory, fixedPageSize, disableActionsPortal, maxRows, emptyMessage, colPropForShowColumns, manualPagination, itemsAmount, canExpandAll, loading, onFiltersChanged, defaultDescendingSort, customRowActions, manualFilters, extraClasses, initialFilters: initialUserFilters, groupBy, hasCustomDateFormat, customDateFormat, hasResizableColumns, hasEmptyActionsCell }: TableProps<Values>): JSX.Element;
declare function Table<Values extends Record<string, unknown>>({ columns, data, rowActions, tableActions, title, defaultSort, globalFilter, defaultGlobalFilter, checkRowSelected, checkRowHighlighted, getRowId, addFilterToUrl, RowSubComponent, listenerPrefix, onRowClick, miniTable, filterCategory, fixedPageSize, disableActionsPortal, maxRows, emptyMessage, colPropForShowColumns, manualPagination, itemsAmount, canExpandAll, loading, onFiltersChanged, defaultDescendingSort, customRowActions, manualFilters, extraClasses, initialFilters: initialUserFilters, groupBy, hasCustomDateFormat, customDateFormat, hasResizableColumns, hasEmptyActionsCell, collapseRowsOnLeavingPage }: TableProps<Values>): JSX.Element;
declare const _default: React.MemoExoticComponent<typeof Table>;
export default _default;
2 changes: 1 addition & 1 deletion dist/esm/types/components/TextEditor/components/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ export * from './FoldAllButton';
export * from './FontSizeControls';
export * from './LinesCount';
export * from './TextEditorFull';
export { ParsedData } from './TextEditorFull';
export type * from './TextEditorFull';
export * from './TextViewerLite';
export * from './SearchButton';
3 changes: 2 additions & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,9 @@ interface TableProps<Data extends Record<string, unknown>> {
customDateFormat?: string;
hasResizableColumns?: boolean;
hasEmptyActionsCell?: boolean;
collapseRowsOnLeavingPage?: boolean;
}
declare function Table<Values extends Record<string, unknown>>({ columns, data, rowActions, tableActions, title, defaultSort, globalFilter, defaultGlobalFilter, checkRowSelected, checkRowHighlighted, getRowId, addFilterToUrl, RowSubComponent, listenerPrefix, onRowClick, miniTable, filterCategory, fixedPageSize, disableActionsPortal, maxRows, emptyMessage, colPropForShowColumns, manualPagination, itemsAmount, canExpandAll, loading, onFiltersChanged, defaultDescendingSort, customRowActions, manualFilters, extraClasses, initialFilters: initialUserFilters, groupBy, hasCustomDateFormat, customDateFormat, hasResizableColumns, hasEmptyActionsCell }: TableProps<Values>): JSX.Element;
declare function Table<Values extends Record<string, unknown>>({ columns, data, rowActions, tableActions, title, defaultSort, globalFilter, defaultGlobalFilter, checkRowSelected, checkRowHighlighted, getRowId, addFilterToUrl, RowSubComponent, listenerPrefix, onRowClick, miniTable, filterCategory, fixedPageSize, disableActionsPortal, maxRows, emptyMessage, colPropForShowColumns, manualPagination, itemsAmount, canExpandAll, loading, onFiltersChanged, defaultDescendingSort, customRowActions, manualFilters, extraClasses, initialFilters: initialUserFilters, groupBy, hasCustomDateFormat, customDateFormat, hasResizableColumns, hasEmptyActionsCell, collapseRowsOnLeavingPage }: TableProps<Values>): JSX.Element;
declare const _default: React.MemoExoticComponent<typeof Table>;

interface ActionsCellProps {
Expand Down
Loading

0 comments on commit cf7306e

Please sign in to comment.