Skip to content

Commit c5300a1

Browse files
committed
UI: collapse expanded rows for all tables when switching page (for Weka Home)
1 parent 3cffb92 commit c5300a1

File tree

14 files changed

+1854
-1807
lines changed

14 files changed

+1854
-1807
lines changed

dist/cjs/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/types/components/Table/Table.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ interface TableProps<Data extends Record<string, unknown>> {
9393
customDateFormat?: string;
9494
hasResizableColumns?: boolean;
9595
hasEmptyActionsCell?: boolean;
96+
collapseRowsOnLeavingPage?: boolean;
9697
}
97-
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;
98+
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;
9899
declare const _default: React.MemoExoticComponent<typeof Table>;
99100
export default _default;

dist/cjs/types/components/TextEditor/components/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ export * from './FoldAllButton';
33
export * from './FontSizeControls';
44
export * from './LinesCount';
55
export * from './TextEditorFull';
6-
export { ParsedData } from './TextEditorFull';
6+
export type * from './TextEditorFull';
77
export * from './TextViewerLite';
88
export * from './SearchButton';

dist/esm/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/types/components/Table/Table.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ interface TableProps<Data extends Record<string, unknown>> {
9393
customDateFormat?: string;
9494
hasResizableColumns?: boolean;
9595
hasEmptyActionsCell?: boolean;
96+
collapseRowsOnLeavingPage?: boolean;
9697
}
97-
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;
98+
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;
9899
declare const _default: React.MemoExoticComponent<typeof Table>;
99100
export default _default;

dist/esm/types/components/TextEditor/components/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ export * from './FoldAllButton';
33
export * from './FontSizeControls';
44
export * from './LinesCount';
55
export * from './TextEditorFull';
6-
export { ParsedData } from './TextEditorFull';
6+
export type * from './TextEditorFull';
77
export * from './TextViewerLite';
88
export * from './SearchButton';

dist/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,9 @@ interface TableProps<Data extends Record<string, unknown>> {
534534
customDateFormat?: string;
535535
hasResizableColumns?: boolean;
536536
hasEmptyActionsCell?: boolean;
537+
collapseRowsOnLeavingPage?: boolean;
537538
}
538-
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;
539+
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;
539540
declare const _default: React.MemoExoticComponent<typeof Table>;
540541

541542
interface ActionsCellProps {

0 commit comments

Comments
 (0)