@zauru-sdk/components 6.5.3 → 6.5.4

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,17 @@
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
+ ## [6.5.4](https://github.com/intuitiva/zauru-typescript-sdk/compare/@zauru-sdk/components@6.5.3...@zauru-sdk/components@6.5.4) (2026-09-16)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * envolver celdas de ZauruTable por palabra sin recortar números ([02d734b](https://github.com/intuitiva/zauru-typescript-sdk/commit/02d734b66d3089c8002b0d5bd04db82c90691722))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [6.5.3](https://github.com/intuitiva/zauru-typescript-sdk/compare/@zauru-sdk/components@6.5.1...@zauru-sdk/components@6.5.3) (2026-09-16)
7
18
 
8
19
 
@@ -10,15 +10,10 @@ const headerTextWrapStyle = {
10
10
  overflow: "visible",
11
11
  textOverflow: "clip",
12
12
  overflowWrap: "break-word",
13
- wordBreak: "break-word",
13
+ wordBreak: "normal",
14
14
  lineHeight: "1.25",
15
15
  };
16
16
  const customStyles = {
17
- table: {
18
- style: {
19
- minWidth: 0,
20
- },
21
- },
22
17
  tableWrapper: {
23
18
  style: {
24
19
  display: "block",
@@ -68,8 +63,11 @@ const customStyles = {
68
63
  },
69
64
  cells: {
70
65
  style: {
71
- whiteSpace: "normal", // Allow wrapping for cell content
72
- wordBreak: "break-word",
66
+ whiteSpace: "normal",
67
+ overflow: "visible",
68
+ textOverflow: "clip",
69
+ overflowWrap: "break-word",
70
+ wordBreak: "normal",
73
71
  },
74
72
  },
75
73
  expanderRow: {
@@ -211,7 +209,15 @@ export const ZauruTable = (props) => {
211
209
  };
212
210
  const loadSubHeader = !!(search || offlineSearch.length > 0);
213
211
  const subHeaderComponent = loadSubHeader ? subHeaderComponentMemo : undefined;
214
- return (_jsx("div", { className: "w-full min-w-0 max-w-full overflow-x-auto", children: _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, expandOnRowClicked: !!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
212
+ const normalizedColumns = Array.isArray(columns)
213
+ ? columns.map((column) => {
214
+ if (!column || typeof column !== "object") {
215
+ return column;
216
+ }
217
+ return { wrap: true, ...column };
218
+ })
219
+ : columns;
220
+ return (_jsx("div", { className: "w-full min-w-0 max-w-full overflow-x-auto", children: _jsx(DataTable, { className: className, subHeaderWrap: true, theme: theme ?? "solarized", columns: normalizedColumns, 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, expandOnRowClicked: !!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
215
221
  ? pagination.rowsPerPageOptions
216
222
  : [10, 50, 100], ...others }) }));
217
223
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/components",
3
- "version": "6.5.3",
3
+ "version": "6.5.4",
4
4
  "description": "Componentes reutilizables en las WebApps de Zauru.",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -62,5 +62,5 @@
62
62
  "styled-components": "^5.3.5",
63
63
  "zod": "^3.23.8"
64
64
  },
65
- "gitHead": "7fd754da02ac48ceb661b39ac86f64a64fe4f749"
65
+ "gitHead": "322a6b620a8e384a6b221999cfe13628511014fb"
66
66
  }
@@ -16,16 +16,11 @@ const headerTextWrapStyle = {
16
16
  overflow: "visible",
17
17
  textOverflow: "clip",
18
18
  overflowWrap: "break-word",
19
- wordBreak: "break-word",
19
+ wordBreak: "normal",
20
20
  lineHeight: "1.25",
21
21
  } as const;
22
22
 
23
23
  const customStyles: TableStyles = {
24
- table: {
25
- style: {
26
- minWidth: 0,
27
- },
28
- },
29
24
  tableWrapper: {
30
25
  style: {
31
26
  display: "block",
@@ -75,8 +70,11 @@ const customStyles: TableStyles = {
75
70
  },
76
71
  cells: {
77
72
  style: {
78
- whiteSpace: "normal", // Allow wrapping for cell content
79
- wordBreak: "break-word",
73
+ whiteSpace: "normal",
74
+ overflow: "visible",
75
+ textOverflow: "clip",
76
+ overflowWrap: "break-word",
77
+ wordBreak: "normal",
80
78
  },
81
79
  },
82
80
  expanderRow: {
@@ -289,6 +287,14 @@ export const ZauruTable = (props: Props) => {
289
287
 
290
288
  const loadSubHeader = !!(search || offlineSearch.length > 0);
291
289
  const subHeaderComponent = loadSubHeader ? subHeaderComponentMemo : undefined;
290
+ const normalizedColumns = Array.isArray(columns)
291
+ ? columns.map((column: any) => {
292
+ if (!column || typeof column !== "object") {
293
+ return column;
294
+ }
295
+ return { wrap: true, ...column };
296
+ })
297
+ : columns;
292
298
 
293
299
  return (
294
300
  <div className="w-full min-w-0 max-w-full overflow-x-auto">
@@ -296,7 +302,7 @@ export const ZauruTable = (props: Props) => {
296
302
  className={className}
297
303
  subHeaderWrap
298
304
  theme={theme ?? "solarized"}
299
- columns={columns}
305
+ columns={normalizedColumns}
300
306
  conditionalRowStyles={conditionalRowStyles}
301
307
  data={filteredData}
302
308
  customStyles={customStyles}