es-grid-template 1.8.89 → 1.8.91
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/es/group-component/hook/utils.d.ts +3 -3
- package/es/table-component/header/TableHeadCell.js +1 -2
- package/es/table-component/header/TableHeadCell2.js +2 -3
- package/es/table-component/header/TableHeadGroupCell.js +2 -3
- package/lib/table-component/header/TableHeadCell.js +1 -2
- package/lib/table-component/header/TableHeadCell2.js +2 -3
- package/lib/table-component/header/TableHeadGroupCell.js +2 -3
- package/package.json +2 -1
|
@@ -208,9 +208,9 @@ export declare const fixColumnsLeft: <RecordType>(columns: ColumnTable<RecordTyp
|
|
|
208
208
|
ellipsis?: boolean;
|
|
209
209
|
allowResizing?: boolean;
|
|
210
210
|
allowSelection?: boolean | ((rowData: RecordType) => boolean);
|
|
211
|
-
onCellStyles?: Omit<CSSProperties, "left" | "right" | "display" | "
|
|
212
|
-
onCellHeaderStyles?: Omit<CSSProperties, "left" | "right" | "display" | "
|
|
213
|
-
onCellFooterStyles?: Omit<CSSProperties, "left" | "right" | "display" | "
|
|
211
|
+
onCellStyles?: Omit<CSSProperties, "left" | "right" | "display" | "width" | "minWidth" | "position"> | ((cellValue: any, cell: import("@tanstack/react-table").Cell<RecordType, unknown>) => Omit<CSSProperties, "left" | "right" | "display" | "width" | "minWidth" | "position">);
|
|
212
|
+
onCellHeaderStyles?: Omit<CSSProperties, "left" | "right" | "display" | "width" | "minWidth" | "position"> | ((cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "left" | "right" | "display" | "width" | "minWidth" | "position">);
|
|
213
|
+
onCellFooterStyles?: Omit<CSSProperties, "left" | "right" | "display" | "width" | "minWidth" | "position"> | ((cellValue: any, cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "left" | "right" | "display" | "width" | "minWidth" | "position">);
|
|
214
214
|
sumGroup?: boolean;
|
|
215
215
|
getValue?: (row: any, rowIndex: number) => any;
|
|
216
216
|
getCellProps?: (value: any, row: any, rowIndex: number) => import("./../../grid-component/type").CellProps;
|
|
@@ -39,7 +39,6 @@ const TableHeadCell = props => {
|
|
|
39
39
|
const filtered = (header.column.getFilterValue() ?? []).length > 0;
|
|
40
40
|
const cellContent = originalColumn.headerTemplate ? originalColumn.headerTemplate : t ? t(originalColumn.headerText) : originalColumn.headerText;
|
|
41
41
|
const headerCustomTooltip = originalColumn.headerTooltip ?? (t ? t(originalColumn.headerText) : originalColumn.headerText);
|
|
42
|
-
const hasValue = headerCustomTooltip.trim().length > 0;
|
|
43
42
|
|
|
44
43
|
// const filtered = header.column.getIsFiltered()
|
|
45
44
|
|
|
@@ -217,7 +216,7 @@ const TableHeadCell = props => {
|
|
|
217
216
|
...style
|
|
218
217
|
},
|
|
219
218
|
"data-tooltip-id": `${id}-tooltip-content`,
|
|
220
|
-
"data-tooltip-content":
|
|
219
|
+
"data-tooltip-content": headerCustomTooltip
|
|
221
220
|
}, /*#__PURE__*/React.createElement("div", {
|
|
222
221
|
className: classNames('', {
|
|
223
222
|
[`${prefix}-grid-filter-column`]: header.column.id !== 'selection_column',
|
|
@@ -58,8 +58,7 @@ const TableHeadCell2 = props => {
|
|
|
58
58
|
const cellStyles = typeof originalColumn.onCellHeaderStyles === 'function' ? originalColumn.onCellHeaderStyles(header) : originalColumn.onCellHeaderStyles;
|
|
59
59
|
const filtered = ((fieldOriginal ? fieldOriginal.getFilterValue() : column.getFilterValue()) ?? []).length > 0;
|
|
60
60
|
const cellContent = originalColumn.headerTemplate ? originalColumn.headerTemplate : t ? t(originalColumn.headerText) : originalColumn.headerText;
|
|
61
|
-
const headerCustomTooltip = originalColumn
|
|
62
|
-
const hasValue = headerCustomTooltip.trim().length > 0;
|
|
61
|
+
const headerCustomTooltip = originalColumn?.headerTooltip ?? (t ? t(originalColumn?.headerText) : originalColumn?.headerText);
|
|
63
62
|
const style = {
|
|
64
63
|
transition: 'width transform 0.2s ease-in-out',
|
|
65
64
|
whiteSpace: 'nowrap',
|
|
@@ -252,7 +251,7 @@ const TableHeadCell2 = props => {
|
|
|
252
251
|
},
|
|
253
252
|
"data-tooltip-id": `${id}-tooltip-content`,
|
|
254
253
|
"data-tooltip-delay-show": 500,
|
|
255
|
-
"data-tooltip-content":
|
|
254
|
+
"data-tooltip-content": headerCustomTooltip
|
|
256
255
|
}, /*#__PURE__*/React.createElement("div", {
|
|
257
256
|
className: classNames('', {
|
|
258
257
|
[`${prefix}-grid-filter-column`]: column.id !== 'selection_column',
|
|
@@ -26,8 +26,7 @@ const TableHeadGroupCell = props => {
|
|
|
26
26
|
const originalColumn = column.columnDef.meta ?? {};
|
|
27
27
|
const cellStyles = typeof originalColumn.onCellHeaderStyles === 'function' ? originalColumn.onCellHeaderStyles(header) : originalColumn.onCellHeaderStyles;
|
|
28
28
|
const cellContent = originalColumn.headerTemplate ? originalColumn.headerTemplate : t ? t(originalColumn.headerText) : originalColumn.headerText;
|
|
29
|
-
const headerCustomTooltip = originalColumn
|
|
30
|
-
const hasValue = headerCustomTooltip.trim().length > 0;
|
|
29
|
+
const headerCustomTooltip = originalColumn?.headerTooltip ?? (t ? t(originalColumn?.headerText) : originalColumn?.headerText);
|
|
31
30
|
const style = {
|
|
32
31
|
transition: 'width transform 0.2s ease-in-out',
|
|
33
32
|
whiteSpace: 'nowrap',
|
|
@@ -55,7 +54,7 @@ const TableHeadGroupCell = props => {
|
|
|
55
54
|
...style
|
|
56
55
|
},
|
|
57
56
|
"data-tooltip-id": `${id}-tooltip-content`,
|
|
58
|
-
"data-tooltip-content":
|
|
57
|
+
"data-tooltip-content": headerCustomTooltip
|
|
59
58
|
}, /*#__PURE__*/React.createElement("div", {
|
|
60
59
|
className: classNames('', {
|
|
61
60
|
[`${prefix}-grid-filter-column`]: column.id !== 'selection_column',
|
|
@@ -48,7 +48,6 @@ const TableHeadCell = props => {
|
|
|
48
48
|
const filtered = (header.column.getFilterValue() ?? []).length > 0;
|
|
49
49
|
const cellContent = originalColumn.headerTemplate ? originalColumn.headerTemplate : t ? t(originalColumn.headerText) : originalColumn.headerText;
|
|
50
50
|
const headerCustomTooltip = originalColumn.headerTooltip ?? (t ? t(originalColumn.headerText) : originalColumn.headerText);
|
|
51
|
-
const hasValue = headerCustomTooltip.trim().length > 0;
|
|
52
51
|
|
|
53
52
|
// const filtered = header.column.getIsFiltered()
|
|
54
53
|
|
|
@@ -226,7 +225,7 @@ const TableHeadCell = props => {
|
|
|
226
225
|
...style
|
|
227
226
|
},
|
|
228
227
|
"data-tooltip-id": `${id}-tooltip-content`,
|
|
229
|
-
"data-tooltip-content":
|
|
228
|
+
"data-tooltip-content": headerCustomTooltip
|
|
230
229
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
231
230
|
className: (0, _classnames.default)('', {
|
|
232
231
|
[`${prefix}-grid-filter-column`]: header.column.id !== 'selection_column',
|
|
@@ -67,8 +67,7 @@ const TableHeadCell2 = props => {
|
|
|
67
67
|
const cellStyles = typeof originalColumn.onCellHeaderStyles === 'function' ? originalColumn.onCellHeaderStyles(header) : originalColumn.onCellHeaderStyles;
|
|
68
68
|
const filtered = ((fieldOriginal ? fieldOriginal.getFilterValue() : column.getFilterValue()) ?? []).length > 0;
|
|
69
69
|
const cellContent = originalColumn.headerTemplate ? originalColumn.headerTemplate : t ? t(originalColumn.headerText) : originalColumn.headerText;
|
|
70
|
-
const headerCustomTooltip = originalColumn
|
|
71
|
-
const hasValue = headerCustomTooltip.trim().length > 0;
|
|
70
|
+
const headerCustomTooltip = originalColumn?.headerTooltip ?? (t ? t(originalColumn?.headerText) : originalColumn?.headerText);
|
|
72
71
|
const style = {
|
|
73
72
|
transition: 'width transform 0.2s ease-in-out',
|
|
74
73
|
whiteSpace: 'nowrap',
|
|
@@ -261,7 +260,7 @@ const TableHeadCell2 = props => {
|
|
|
261
260
|
},
|
|
262
261
|
"data-tooltip-id": `${id}-tooltip-content`,
|
|
263
262
|
"data-tooltip-delay-show": 500,
|
|
264
|
-
"data-tooltip-content":
|
|
263
|
+
"data-tooltip-content": headerCustomTooltip
|
|
265
264
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
266
265
|
className: (0, _classnames.default)('', {
|
|
267
266
|
[`${prefix}-grid-filter-column`]: column.id !== 'selection_column',
|
|
@@ -35,8 +35,7 @@ const TableHeadGroupCell = props => {
|
|
|
35
35
|
const originalColumn = column.columnDef.meta ?? {};
|
|
36
36
|
const cellStyles = typeof originalColumn.onCellHeaderStyles === 'function' ? originalColumn.onCellHeaderStyles(header) : originalColumn.onCellHeaderStyles;
|
|
37
37
|
const cellContent = originalColumn.headerTemplate ? originalColumn.headerTemplate : t ? t(originalColumn.headerText) : originalColumn.headerText;
|
|
38
|
-
const headerCustomTooltip = originalColumn
|
|
39
|
-
const hasValue = headerCustomTooltip.trim().length > 0;
|
|
38
|
+
const headerCustomTooltip = originalColumn?.headerTooltip ?? (t ? t(originalColumn?.headerText) : originalColumn?.headerText);
|
|
40
39
|
const style = {
|
|
41
40
|
transition: 'width transform 0.2s ease-in-out',
|
|
42
41
|
whiteSpace: 'nowrap',
|
|
@@ -64,7 +63,7 @@ const TableHeadGroupCell = props => {
|
|
|
64
63
|
...style
|
|
65
64
|
},
|
|
66
65
|
"data-tooltip-id": `${id}-tooltip-content`,
|
|
67
|
-
"data-tooltip-content":
|
|
66
|
+
"data-tooltip-content": headerCustomTooltip
|
|
68
67
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
69
68
|
className: (0, _classnames.default)('', {
|
|
70
69
|
[`${prefix}-grid-filter-column`]: column.id !== 'selection_column',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-grid-template",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.91",
|
|
4
4
|
"description": "es-grid-template",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
"react-tooltip": "^5.28.1",
|
|
80
80
|
"react-virtuoso": "^4.17.0",
|
|
81
81
|
"rimraf": "5.0.10",
|
|
82
|
+
"rxjs": "^6.5.4",
|
|
82
83
|
"sass": "^1.81.0",
|
|
83
84
|
"styled-components": "^6.1.15",
|
|
84
85
|
"sweetalert2": "^11.4.14",
|