sag_components 2.0.0-beta300 → 2.0.0-beta301

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/dist/index.js CHANGED
@@ -37815,7 +37815,8 @@ const FilterPop = props => {
37815
37815
  showSearch = true,
37816
37816
  searchPlaceholder = "Search...",
37817
37817
  itemHeight = 32,
37818
- overscan = 5
37818
+ overscan = 5,
37819
+ hasActiveFilter = false // NEW: Indicates if this column has an active filter
37819
37820
  } = props;
37820
37821
  const [searchTerm, setSearchTerm] = React$1.useState("");
37821
37822
  const [selectedAttributes, setSelectedAttributes] = React$1.useState({});
@@ -38166,7 +38167,7 @@ const FilterPop = props => {
38166
38167
  }
38167
38168
  }, "Clear Search"), /*#__PURE__*/React__default["default"].createElement(ResetButton$1, {
38168
38169
  onClick: handleReset,
38169
- disabled: areAllNonAllItemsSelected() && selectedAttributes.All
38170
+ disabled: !hasActiveFilter && areAllNonAllItemsSelected() && selectedAttributes.All
38170
38171
  }, "Reset")));
38171
38172
  };
38172
38173
 
@@ -41433,6 +41434,8 @@ const TableHeader = ({
41433
41434
  }
41434
41435
  });
41435
41436
  } else {
41437
+ // Check if this column has an active filter (not in default state)
41438
+ const hasActiveFilter = !isFilterInDefaultState(key);
41436
41439
  return /*#__PURE__*/React__default["default"].createElement(FilterPop, {
41437
41440
  width: "300px",
41438
41441
  height: "auto",
@@ -41442,6 +41445,7 @@ const TableHeader = ({
41442
41445
  doubleColumn: doubleColumn,
41443
41446
  menuName: title,
41444
41447
  selectedAttributes: filterSelections[key] || {},
41448
+ hasActiveFilter: hasActiveFilter,
41445
41449
  onCheck: event => handleFilterSelectionChange(key, event),
41446
41450
  onReset: () => handleFilterReset(key)
41447
41451
  });