@ssplib/react-components 0.0.344 → 0.0.346
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.
|
@@ -3,6 +3,6 @@ import { TableProps2 } from './types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Tabela cujo dados devem ser passados via props
|
|
5
5
|
*/
|
|
6
|
-
export declare function GenericTable({ mediaQueryLG, columns, emptyMsg, dataPath, tableName, csv, columnSize, action, useKC, csvExcludeKeys, csvExcludeKeysCSV, csvExcludeKeysAll, csvCustomKeyNames, csvButtonTitle, csvNoZipText, csvAllButtonTitle, removeQuotes, normalize, csvShowAllButton, csvWithoutZip, itemCount, csvUpper, csvZipFileNamesKey, generateCsvZip, hideTitleCSV, csvExcludeUpper, multipleDataPath, expandTextMaxLength, collapsedSize, customMargin, customMarginMobile, filtersFunc, filters, orderBy, customErrorMsg, customTableStyle, id, initialData, isLoading, alwaysExpanded, totalCount, pageLimit, }: TableProps2): JSX.Element;
|
|
6
|
+
export declare function GenericTable({ mediaQueryLG, columns, emptyMsg, dataPath, tableName, csv, columnSize, action, useKC, csvExcludeKeys, csvExcludeKeysCSV, csvExcludeKeysAll, csvCustomKeyNames, csvButtonTitle, csvNoZipText, csvAllButtonTitle, removeQuotes, normalize, csvShowAllButton, csvWithoutZip, itemCount, csvUpper, csvZipFileNamesKey, generateCsvZip, hideTitleCSV, csvExcludeUpper, multipleDataPath, expandTextMaxLength, collapsedSize, customMargin, customMarginMobile, filtersFunc, filters, orderBy, customErrorMsg, customTableStyle, id, initialData, isLoading, alwaysExpanded, totalCount, pageLimit, serverSidePagination, page: controlledPage, onPageChange, }: TableProps2): JSX.Element;
|
|
7
7
|
declare const _default: React.MemoExoticComponent<typeof GenericTable>;
|
|
8
8
|
export default _default;
|
|
@@ -222,4 +222,14 @@ export interface TableProps2 {
|
|
|
222
222
|
totalCount?: number;
|
|
223
223
|
/** Maximum limit per page from the server */
|
|
224
224
|
pageLimit?: number;
|
|
225
|
+
/**
|
|
226
|
+
* Quando true, a paginação é controlada externamente (server-side).
|
|
227
|
+
* - page/onPageChange controlam a página atual; ao mudar página, onPageChange é chamado para o pai buscar os dados.
|
|
228
|
+
* - initialData deve conter apenas os itens da página atual (já retornados pela API).
|
|
229
|
+
*/
|
|
230
|
+
serverSidePagination?: boolean;
|
|
231
|
+
/** Página atual (1-based). Usado quando serverSidePagination é true. */
|
|
232
|
+
page?: number;
|
|
233
|
+
/** Callback ao mudar de página. Usado quando serverSidePagination é true para o pai buscar a nova página via API. */
|
|
234
|
+
onPageChange?: (page: number) => void;
|
|
225
235
|
}
|