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.esm.js CHANGED
@@ -37805,7 +37805,8 @@ const FilterPop = props => {
37805
37805
  showSearch = true,
37806
37806
  searchPlaceholder = "Search...",
37807
37807
  itemHeight = 32,
37808
- overscan = 5
37808
+ overscan = 5,
37809
+ hasActiveFilter = false // NEW: Indicates if this column has an active filter
37809
37810
  } = props;
37810
37811
  const [searchTerm, setSearchTerm] = useState("");
37811
37812
  const [selectedAttributes, setSelectedAttributes] = useState({});
@@ -38156,7 +38157,7 @@ const FilterPop = props => {
38156
38157
  }
38157
38158
  }, "Clear Search"), /*#__PURE__*/React$1.createElement(ResetButton$1, {
38158
38159
  onClick: handleReset,
38159
- disabled: areAllNonAllItemsSelected() && selectedAttributes.All
38160
+ disabled: !hasActiveFilter && areAllNonAllItemsSelected() && selectedAttributes.All
38160
38161
  }, "Reset")));
38161
38162
  };
38162
38163
 
@@ -41423,6 +41424,8 @@ const TableHeader = ({
41423
41424
  }
41424
41425
  });
41425
41426
  } else {
41427
+ // Check if this column has an active filter (not in default state)
41428
+ const hasActiveFilter = !isFilterInDefaultState(key);
41426
41429
  return /*#__PURE__*/React$1.createElement(FilterPop, {
41427
41430
  width: "300px",
41428
41431
  height: "auto",
@@ -41432,6 +41435,7 @@ const TableHeader = ({
41432
41435
  doubleColumn: doubleColumn,
41433
41436
  menuName: title,
41434
41437
  selectedAttributes: filterSelections[key] || {},
41438
+ hasActiveFilter: hasActiveFilter,
41435
41439
  onCheck: event => handleFilterSelectionChange(key, event),
41436
41440
  onReset: () => handleFilterReset(key)
41437
41441
  });