akeyless-client-commons 1.0.223 → 1.0.225

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.
@@ -1699,6 +1699,7 @@ var TableProvider = function(props) {
1699
1699
  exportToExcelKeys = props.exportToExcelKeys, dataToAddToExcelTable = props.dataToAddToExcelTable, _props_exportExcelTitle = props.exportExcelTitle, exportExcelTitle = _props_exportExcelTitle === void 0 ? "Export to excel" : _props_exportExcelTitle, excelFileName = props.excelFileName, // summary
1700
1700
  sumColumns = props.sumColumns, _props_summaryLabel = props.summaryLabel, summaryLabel = _props_summaryLabel === void 0 ? "" : _props_summaryLabel, _props_summaryContainerStyle = props.summaryContainerStyle, summaryContainerStyle = _props_summaryContainerStyle === void 0 ? {} : _props_summaryContainerStyle, _props_summaryLabelStyle = props.summaryLabelStyle, summaryLabelStyle = _props_summaryLabelStyle === void 0 ? {} : _props_summaryLabelStyle, _props_summaryRowStyle = props.summaryRowStyle, summaryRowStyle = _props_summaryRowStyle === void 0 ? {} : _props_summaryRowStyle, _props_maxRows = props.// max rows
1701
1701
  maxRows, maxRows = _props_maxRows === void 0 ? data.length : _props_maxRows, _props_noneSearchKeys = props.noneSearchKeys, noneSearchKeys = _props_noneSearchKeys === void 0 ? [] : _props_noneSearchKeys, showDisplayAllRowsButton = props.showDisplayAllRowsButton;
1702
+ var normalizedNoneSearchKeys = noneSearchKeys || [];
1702
1703
  var _useSort = useSort(), sortColumn = _useSort.sortColumn, sortOrder = _useSort.sortOrder, handleSort = _useSort.handleSort, clearSort = _useSort.clearSort;
1703
1704
  var _useDisplayToggle = useDisplayToggle(), displayAllRows = _useDisplayToggle.displayAllRows, setDisplayAllRows = _useDisplayToggle.setDisplayAllRows;
1704
1705
  var _useSearch = useSearch(), searchQuery = _useSearch.searchQuery, handleSearch = _useSearch.handleSearch, debouncedSearchQuery = _useSearch.debouncedSearchQuery;
@@ -1724,10 +1725,10 @@ var TableProvider = function(props) {
1724
1725
  };
1725
1726
  var normalizedSearchQuery = cleanString(debouncedSearchQuery);
1726
1727
  var keys = allKeys.filter(function(val) {
1727
- return !(noneSearchKeys === null || noneSearchKeys === void 0 ? void 0 : noneSearchKeys.includes(val));
1728
+ return !normalizedNoneSearchKeys.includes(val);
1728
1729
  });
1729
1730
  filtered = data.filter(function(item) {
1730
- return allKeys.some(function(key) {
1731
+ return keys.some(function(key) {
1731
1732
  return cleanString(String(item[key])).includes(normalizedSearchQuery);
1732
1733
  });
1733
1734
  });
@@ -1764,7 +1765,7 @@ var TableProvider = function(props) {
1764
1765
  filters,
1765
1766
  data,
1766
1767
  displayAllRows,
1767
- noneSearchKeys
1768
+ normalizedNoneSearchKeys
1768
1769
  ]);
1769
1770
  var providerValues = _object_spread_props(_object_spread({}, props), {
1770
1771
  // props with default values
@@ -1483,6 +1483,7 @@ var TableProvider = function(props) {
1483
1483
  exportToExcelKeys = props.exportToExcelKeys, dataToAddToExcelTable = props.dataToAddToExcelTable, _props_exportExcelTitle = props.exportExcelTitle, exportExcelTitle = _props_exportExcelTitle === void 0 ? "Export to excel" : _props_exportExcelTitle, excelFileName = props.excelFileName, // summary
1484
1484
  sumColumns = props.sumColumns, _props_summaryLabel = props.summaryLabel, summaryLabel = _props_summaryLabel === void 0 ? "" : _props_summaryLabel, _props_summaryContainerStyle = props.summaryContainerStyle, summaryContainerStyle = _props_summaryContainerStyle === void 0 ? {} : _props_summaryContainerStyle, _props_summaryLabelStyle = props.summaryLabelStyle, summaryLabelStyle = _props_summaryLabelStyle === void 0 ? {} : _props_summaryLabelStyle, _props_summaryRowStyle = props.summaryRowStyle, summaryRowStyle = _props_summaryRowStyle === void 0 ? {} : _props_summaryRowStyle, _props_maxRows = props.// max rows
1485
1485
  maxRows, maxRows = _props_maxRows === void 0 ? data.length : _props_maxRows, _props_noneSearchKeys = props.noneSearchKeys, noneSearchKeys = _props_noneSearchKeys === void 0 ? [] : _props_noneSearchKeys, showDisplayAllRowsButton = props.showDisplayAllRowsButton;
1486
+ var normalizedNoneSearchKeys = noneSearchKeys || [];
1486
1487
  var _useSort = useSort(), sortColumn = _useSort.sortColumn, sortOrder = _useSort.sortOrder, handleSort = _useSort.handleSort, clearSort = _useSort.clearSort;
1487
1488
  var _useDisplayToggle = useDisplayToggle(), displayAllRows = _useDisplayToggle.displayAllRows, setDisplayAllRows = _useDisplayToggle.setDisplayAllRows;
1488
1489
  var _useSearch = useSearch(), searchQuery = _useSearch.searchQuery, handleSearch = _useSearch.handleSearch, debouncedSearchQuery = _useSearch.debouncedSearchQuery;
@@ -1508,10 +1509,10 @@ var TableProvider = function(props) {
1508
1509
  };
1509
1510
  var normalizedSearchQuery = cleanString(debouncedSearchQuery);
1510
1511
  var keys = allKeys.filter(function(val) {
1511
- return !(noneSearchKeys === null || noneSearchKeys === void 0 ? void 0 : noneSearchKeys.includes(val));
1512
+ return !normalizedNoneSearchKeys.includes(val);
1512
1513
  });
1513
1514
  filtered = data.filter(function(item) {
1514
- return allKeys.some(function(key) {
1515
+ return keys.some(function(key) {
1515
1516
  return cleanString(String(item[key])).includes(normalizedSearchQuery);
1516
1517
  });
1517
1518
  });
@@ -1548,7 +1549,7 @@ var TableProvider = function(props) {
1548
1549
  filters,
1549
1550
  data,
1550
1551
  displayAllRows,
1551
- noneSearchKeys
1552
+ normalizedNoneSearchKeys
1552
1553
  ]);
1553
1554
  var providerValues = _object_spread_props(_object_spread({}, props), {
1554
1555
  // props with default values
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.0.223",
3
+ "version": "1.0.225",
4
4
  "scripts": {
5
5
  "build": "tsup",
6
6
  "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",