@zauru-sdk/components 1.0.86 → 1.0.87
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.0.87](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.86...v1.0.87) (2024-08-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @zauru-sdk/components
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.0.86](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.85...v1.0.86) (2024-08-02)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @zauru-sdk/components
|
|
@@ -172,6 +172,8 @@ const ZauruTable = (props) => {
|
|
|
172
172
|
};
|
|
173
173
|
const loadSubHeader = !!(search || offlineSearch.length > 0);
|
|
174
174
|
const subHeaderComponent = loadSubHeader ? subHeaderComponentMemo : undefined;
|
|
175
|
-
return ((0, jsx_runtime_1.jsx)(DataTable, { className: className, subHeaderWrap: true, theme: theme ?? "solarized", columns: columns, conditionalRowStyles: conditionalRowStyles, data: filteredData, customStyles: customStyles, progressPending: loading, highlightOnHover: true, pointerOnHover: true, dense: true, striped: true, pagination: !whitOutPagination, persistTableHead: true, responsive: true, noHeader: true, expandableRows: !!expandable, expandableRowExpanded: expandable ? expandable.expandableRowExpanded : undefined, expandableRowsComponent: expandable ? expandable.expandableRowsComponent : undefined, subHeader: loadSubHeader, subHeaderComponent: subHeaderComponent, paginationServer: !!pagination, paginationTotalRows: pagination
|
|
175
|
+
return ((0, jsx_runtime_1.jsx)(DataTable, { className: className, subHeaderWrap: true, theme: theme ?? "solarized", columns: columns, conditionalRowStyles: conditionalRowStyles, data: filteredData, customStyles: customStyles, progressPending: loading, highlightOnHover: true, pointerOnHover: true, dense: true, striped: true, pagination: !whitOutPagination, persistTableHead: true, responsive: true, noHeader: true, expandableRows: !!expandable, expandableRowExpanded: expandable ? expandable.expandableRowExpanded : undefined, expandableRowsComponent: expandable ? expandable.expandableRowsComponent : undefined, subHeader: loadSubHeader, subHeaderComponent: subHeaderComponent, paginationServer: !!pagination, paginationTotalRows: pagination?.totalRows ?? undefined, onChangeRowsPerPage: pagination ? handlePerRowsChange : undefined, onChangePage: pagination ? handlePageChange : undefined, paginationComponentOptions: paginationComponentOptions, paginationRowsPerPageOptions: pagination?.rowsPerPageOptions
|
|
176
|
+
? pagination.rowsPerPageOptions
|
|
177
|
+
: [10, 50, 100], ...others }));
|
|
176
178
|
};
|
|
177
179
|
exports.ZauruTable = ZauruTable;
|
|
@@ -146,5 +146,7 @@ export const ZauruTable = (props) => {
|
|
|
146
146
|
};
|
|
147
147
|
const loadSubHeader = !!(search || offlineSearch.length > 0);
|
|
148
148
|
const subHeaderComponent = loadSubHeader ? subHeaderComponentMemo : undefined;
|
|
149
|
-
return (_jsx(DataTable, { className: className, subHeaderWrap: true, theme: theme ?? "solarized", columns: columns, conditionalRowStyles: conditionalRowStyles, data: filteredData, customStyles: customStyles, progressPending: loading, highlightOnHover: true, pointerOnHover: true, dense: true, striped: true, pagination: !whitOutPagination, persistTableHead: true, responsive: true, noHeader: true, expandableRows: !!expandable, expandableRowExpanded: expandable ? expandable.expandableRowExpanded : undefined, expandableRowsComponent: expandable ? expandable.expandableRowsComponent : undefined, subHeader: loadSubHeader, subHeaderComponent: subHeaderComponent, paginationServer: !!pagination, paginationTotalRows: pagination
|
|
149
|
+
return (_jsx(DataTable, { className: className, subHeaderWrap: true, theme: theme ?? "solarized", columns: columns, conditionalRowStyles: conditionalRowStyles, data: filteredData, customStyles: customStyles, progressPending: loading, highlightOnHover: true, pointerOnHover: true, dense: true, striped: true, pagination: !whitOutPagination, persistTableHead: true, responsive: true, noHeader: true, expandableRows: !!expandable, expandableRowExpanded: expandable ? expandable.expandableRowExpanded : undefined, expandableRowsComponent: expandable ? expandable.expandableRowsComponent : undefined, subHeader: loadSubHeader, subHeaderComponent: subHeaderComponent, paginationServer: !!pagination, paginationTotalRows: pagination?.totalRows ?? undefined, onChangeRowsPerPage: pagination ? handlePerRowsChange : undefined, onChangePage: pagination ? handlePageChange : undefined, paginationComponentOptions: paginationComponentOptions, paginationRowsPerPageOptions: pagination?.rowsPerPageOptions
|
|
150
|
+
? pagination.rowsPerPageOptions
|
|
151
|
+
: [10, 50, 100], ...others }));
|
|
150
152
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.87",
|
|
4
4
|
"description": "Componentes reutilizables en las WebApps de Zauru.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"@reduxjs/toolkit": "^2.2.1",
|
|
35
35
|
"@remix-run/react": "^2.8.1",
|
|
36
36
|
"@zauru-sdk/common": "^1.0.86",
|
|
37
|
-
"@zauru-sdk/hooks": "^1.0.
|
|
37
|
+
"@zauru-sdk/hooks": "^1.0.87",
|
|
38
38
|
"@zauru-sdk/icons": "^1.0.60",
|
|
39
39
|
"@zauru-sdk/types": "^1.0.84",
|
|
40
|
-
"@zauru-sdk/utils": "^1.0.
|
|
40
|
+
"@zauru-sdk/utils": "^1.0.87",
|
|
41
41
|
"framer-motion": "^11.0.8",
|
|
42
42
|
"jsonwebtoken": "^9.0.2",
|
|
43
43
|
"react": "^18.2.0",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"react-select": "^5.8.0",
|
|
48
48
|
"styled-components": "^5.3.5"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "94233ba13ca291f573fdbd92cc38eaa72b595d25"
|
|
51
51
|
}
|
package/src/Table/ZauruTable.tsx
CHANGED
|
@@ -252,12 +252,14 @@ export const ZauruTable = (props: Props) => {
|
|
|
252
252
|
subHeader={loadSubHeader}
|
|
253
253
|
subHeaderComponent={subHeaderComponent}
|
|
254
254
|
paginationServer={!!pagination}
|
|
255
|
-
paginationTotalRows={pagination
|
|
255
|
+
paginationTotalRows={pagination?.totalRows ?? undefined}
|
|
256
256
|
onChangeRowsPerPage={pagination ? handlePerRowsChange : undefined}
|
|
257
257
|
onChangePage={pagination ? handlePageChange : undefined}
|
|
258
258
|
paginationComponentOptions={paginationComponentOptions}
|
|
259
259
|
paginationRowsPerPageOptions={
|
|
260
|
-
pagination?.rowsPerPageOptions
|
|
260
|
+
pagination?.rowsPerPageOptions
|
|
261
|
+
? pagination.rowsPerPageOptions
|
|
262
|
+
: [10, 50, 100]
|
|
261
263
|
}
|
|
262
264
|
{...others}
|
|
263
265
|
/>
|