carbon-addons-iot-react 5.1.4 → 5.1.5
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.
|
@@ -271,6 +271,14 @@ var TableToolbar = function TableToolbar(_ref) {
|
|
|
271
271
|
return "".concat(totalSelected, " ").concat(i18n.itemSelected);
|
|
272
272
|
/* eslint-disable-next-line react-hooks/exhaustive-deps */
|
|
273
273
|
}, [i18n.itemSelected, i18n.itemsSelected, totalSelected]);
|
|
274
|
+
|
|
275
|
+
/** If all option are false then hide entire row for toolbar, without this its allocated height remain and blank space was visible */
|
|
276
|
+
var allFalse = [hasAdvancedFilter, hasAggregations, hasColumnSelection, hasFilter, hasSearch, hasRowCountInHeader, hasRowEdit, hasUserViewManagement, hasBatchActionToolbar, hasRowSelection].every(function (flag) {
|
|
277
|
+
return !flag;
|
|
278
|
+
});
|
|
279
|
+
if (allFalse) {
|
|
280
|
+
return null;
|
|
281
|
+
}
|
|
274
282
|
return /*#__PURE__*/React__default.createElement(TableToolbar$2
|
|
275
283
|
// TODO: remove deprecated 'testID' in v3
|
|
276
284
|
, {
|
|
@@ -283,6 +283,14 @@ var TableToolbar = function TableToolbar(_ref) {
|
|
|
283
283
|
return "".concat(totalSelected, " ").concat(i18n.itemSelected);
|
|
284
284
|
/* eslint-disable-next-line react-hooks/exhaustive-deps */
|
|
285
285
|
}, [i18n.itemSelected, i18n.itemsSelected, totalSelected]);
|
|
286
|
+
|
|
287
|
+
/** If all option are false then hide entire row for toolbar, without this its allocated height remain and blank space was visible */
|
|
288
|
+
var allFalse = [hasAdvancedFilter, hasAggregations, hasColumnSelection, hasFilter, hasSearch, hasRowCountInHeader, hasRowEdit, hasUserViewManagement, hasBatchActionToolbar, hasRowSelection].every(function (flag) {
|
|
289
|
+
return !flag;
|
|
290
|
+
});
|
|
291
|
+
if (allFalse) {
|
|
292
|
+
return null;
|
|
293
|
+
}
|
|
286
294
|
return /*#__PURE__*/React__default.default.createElement(react.TableToolbar
|
|
287
295
|
// TODO: remove deprecated 'testID' in v3
|
|
288
296
|
, {
|
package/package.json
CHANGED
|
@@ -345,11 +345,11 @@
|
|
|
345
345
|
"whatwg-fetch": "^3.0.0"
|
|
346
346
|
},
|
|
347
347
|
"sideEffects": false,
|
|
348
|
-
"version": "5.1.
|
|
348
|
+
"version": "5.1.5",
|
|
349
349
|
"resolutions": {
|
|
350
350
|
"chokidar": "3.3.1",
|
|
351
351
|
"react-grid-layout": "1.2.2",
|
|
352
352
|
"got": "11.8.5"
|
|
353
353
|
},
|
|
354
|
-
"gitHead": "
|
|
354
|
+
"gitHead": "3035bd0ce9cad7ad1588fa95ff6c783e0a8ba099"
|
|
355
355
|
}
|
|
@@ -217026,6 +217026,14 @@ ${formatRule(Codicon.menuSubmenu)}
|
|
|
217026
217026
|
return "".concat(totalSelected, " ").concat(i18n.itemSelected);
|
|
217027
217027
|
/* eslint-disable-next-line react-hooks/exhaustive-deps */
|
|
217028
217028
|
}, [i18n.itemSelected, i18n.itemsSelected, totalSelected]);
|
|
217029
|
+
|
|
217030
|
+
/** If all option are false then hide entire row for toolbar, without this its allocated height remain and blank space was visible */
|
|
217031
|
+
var allFalse = [hasAdvancedFilter, hasAggregations, hasColumnSelection, hasFilter, hasSearch, hasRowCountInHeader, hasRowEdit, hasUserViewManagement, hasBatchActionToolbar, hasRowSelection].every(function (flag) {
|
|
217032
|
+
return !flag;
|
|
217033
|
+
});
|
|
217034
|
+
if (allFalse) {
|
|
217035
|
+
return null;
|
|
217036
|
+
}
|
|
217029
217037
|
return /*#__PURE__*/React$1.createElement(react.TableToolbar
|
|
217030
217038
|
// TODO: remove deprecated 'testID' in v3
|
|
217031
217039
|
, {
|