@carbon/ibm-products 2.31.1 → 2.32.0
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/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js
CHANGED
@@ -96,9 +96,12 @@ var CustomizeColumnsTearsheet = function CustomizeColumnsTearsheet(_ref) {
|
|
96
96
|
}, [columnObjects]);
|
97
97
|
var string = searchText.trim().toLowerCase();
|
98
98
|
useEffect(function () {
|
99
|
-
|
100
|
-
|
101
|
-
|
99
|
+
var notFilterableCount = columnObjects.filter(function (col) {
|
100
|
+
return !col.canFilter;
|
101
|
+
});
|
102
|
+
setVisibleColumnsCount(getVisibleColumnsCount() - notFilterableCount.length);
|
103
|
+
setTotalColumns(columnObjects.length - notFilterableCount.length);
|
104
|
+
}, [getVisibleColumnsCount, columnObjects]);
|
102
105
|
return /*#__PURE__*/React__default.createElement(TearsheetNarrow, {
|
103
106
|
className: "".concat(blockClass, "__customize-columns-tearsheet"),
|
104
107
|
open: isOpen,
|
package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js
CHANGED
@@ -104,9 +104,12 @@ var CustomizeColumnsTearsheet = function CustomizeColumnsTearsheet(_ref) {
|
|
104
104
|
}, [columnObjects]);
|
105
105
|
var string = searchText.trim().toLowerCase();
|
106
106
|
React.useEffect(function () {
|
107
|
-
|
108
|
-
|
109
|
-
|
107
|
+
var notFilterableCount = columnObjects.filter(function (col) {
|
108
|
+
return !col.canFilter;
|
109
|
+
});
|
110
|
+
setVisibleColumnsCount(getVisibleColumnsCount() - notFilterableCount.length);
|
111
|
+
setTotalColumns(columnObjects.length - notFilterableCount.length);
|
112
|
+
}, [getVisibleColumnsCount, columnObjects]);
|
110
113
|
return /*#__PURE__*/React__default["default"].createElement(TearsheetNarrow.TearsheetNarrow, {
|
111
114
|
className: "".concat(blockClass, "__customize-columns-tearsheet"),
|
112
115
|
open: isOpen,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products",
|
3
3
|
"description": "Carbon for IBM Products",
|
4
|
-
"version": "2.
|
4
|
+
"version": "2.32.0",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -114,5 +114,5 @@
|
|
114
114
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
|
115
115
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
|
116
116
|
},
|
117
|
-
"gitHead": "
|
117
|
+
"gitHead": "1785ad497681a5f69574c808db00e251625c4be9"
|
118
118
|
}
|