sag_components 2.0.0-beta300 → 2.0.0-beta302

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
@@ -10608,24 +10608,23 @@ const QuarterPopupPicker = ({
10608
10608
  };
10609
10609
 
10610
10610
  /* eslint-disable import/no-extraneous-dependencies */
10611
- const QuarterPicker = _ref => {
10612
- let {
10613
- availableQuarters,
10614
- // ["Q1-2024"]
10615
- label,
10616
- onChange,
10617
- borderRadius,
10618
- required,
10619
- width,
10620
- height,
10621
- placeholder,
10622
- disabled,
10623
- borderColor,
10624
- borderColorFocus,
10625
- textColor,
10626
- selectedValue,
10627
- startYear
10628
- } = _ref;
10611
+ const QuarterPicker = ({
10612
+ availableQuarters,
10613
+ // ["Q1-2024"]
10614
+ label,
10615
+ onChange,
10616
+ borderRadius,
10617
+ required,
10618
+ width,
10619
+ height,
10620
+ placeholder,
10621
+ disabled,
10622
+ borderColor,
10623
+ borderColorFocus,
10624
+ textColor,
10625
+ selectedValue,
10626
+ startYear
10627
+ }) => {
10629
10628
  const [isFocused, setIsFocused] = useState(false);
10630
10629
  const [isOpen, setIsOpen] = useState(false);
10631
10630
  const [value, setValue] = useState('');
@@ -11067,23 +11066,22 @@ const MonthPopupPicker = ({
11067
11066
  };
11068
11067
 
11069
11068
  /* eslint-disable import/no-extraneous-dependencies */
11070
- const MonthPicker = _ref => {
11071
- let {
11072
- availableMonths,
11073
- label,
11074
- onChange,
11075
- borderRadius,
11076
- required,
11077
- width,
11078
- height,
11079
- placeholder,
11080
- disabled,
11081
- borderColor,
11082
- borderColorFocus,
11083
- textColor,
11084
- selectedValue,
11085
- startYear
11086
- } = _ref;
11069
+ const MonthPicker = ({
11070
+ availableMonths,
11071
+ label,
11072
+ onChange,
11073
+ borderRadius,
11074
+ required,
11075
+ width,
11076
+ height,
11077
+ placeholder,
11078
+ disabled,
11079
+ borderColor,
11080
+ borderColorFocus,
11081
+ textColor,
11082
+ selectedValue,
11083
+ startYear
11084
+ }) => {
11087
11085
  const [isFocused, setIsFocused] = useState(false);
11088
11086
  const [isOpen, setIsOpen] = useState(false);
11089
11087
  const [value, setValue] = useState('');
@@ -24194,22 +24192,21 @@ const DeleteIcon = styled.div`
24194
24192
  position: absolute;
24195
24193
  `;
24196
24194
 
24197
- const QuickFilterDropdownSingle = _ref => {
24198
- let {
24199
- label,
24200
- hoverColor,
24201
- options,
24202
- selectedValue,
24203
- placeHolder,
24204
- onChange,
24205
- disabled,
24206
- width,
24207
- error,
24208
- errorMessage,
24209
- xIconShow,
24210
- labelColor,
24211
- showLabelOnTop
24212
- } = _ref;
24195
+ const QuickFilterDropdownSingle = ({
24196
+ label,
24197
+ hoverColor,
24198
+ options,
24199
+ selectedValue,
24200
+ placeHolder,
24201
+ onChange,
24202
+ disabled,
24203
+ width,
24204
+ error,
24205
+ errorMessage,
24206
+ xIconShow,
24207
+ labelColor,
24208
+ showLabelOnTop
24209
+ }) => {
24213
24210
  const [isFocused, setIsFocused] = useState(false);
24214
24211
  const [showOptions, setShowOptions] = useState(false);
24215
24212
  const [inputValue, setInputValue] = useState("");
@@ -24661,26 +24658,25 @@ const IconContainer$2 = styled.div`
24661
24658
  cursor: pointer;
24662
24659
  `;
24663
24660
 
24664
- const QuickFilterDropdownMultiSelection = _ref => {
24665
- let {
24666
- label,
24667
- labelEmptyValue,
24668
- options,
24669
- selectedValue,
24670
- placeHolder,
24671
- onChange,
24672
- required,
24673
- disabled,
24674
- width,
24675
- height,
24676
- error,
24677
- errorMessage,
24678
- labelColor,
24679
- xIconShow,
24680
- checkBoxColor,
24681
- showLabelOnTop,
24682
- dropdownHeight
24683
- } = _ref;
24661
+ const QuickFilterDropdownMultiSelection = ({
24662
+ label,
24663
+ labelEmptyValue,
24664
+ options,
24665
+ selectedValue,
24666
+ placeHolder,
24667
+ onChange,
24668
+ required,
24669
+ disabled,
24670
+ width,
24671
+ height,
24672
+ error,
24673
+ errorMessage,
24674
+ labelColor,
24675
+ xIconShow,
24676
+ checkBoxColor,
24677
+ showLabelOnTop,
24678
+ dropdownHeight
24679
+ }) => {
24684
24680
  const [isFocused, setIsFocused] = useState(false);
24685
24681
  const [showOptions, setShowOptions] = useState(false);
24686
24682
  const [inputValue, setInputValue] = useState('');
@@ -36220,9 +36216,9 @@ const ToggleSlider = styled.span`
36220
36216
  }
36221
36217
  `;
36222
36218
 
36223
- /**
36224
- * ToggleSwitch component for on/off states.
36225
- * Supports small/large sizes and disabled state.
36219
+ /**
36220
+ * ToggleSwitch component for on/off states.
36221
+ * Supports small/large sizes and disabled state.
36226
36222
  */
36227
36223
  function ToggleSwitch(_ref) {
36228
36224
  let {
@@ -37805,7 +37801,8 @@ const FilterPop = props => {
37805
37801
  showSearch = true,
37806
37802
  searchPlaceholder = "Search...",
37807
37803
  itemHeight = 32,
37808
- overscan = 5
37804
+ overscan = 5,
37805
+ hasActiveFilter = false // NEW: Indicates if this column has an active filter
37809
37806
  } = props;
37810
37807
  const [searchTerm, setSearchTerm] = useState("");
37811
37808
  const [selectedAttributes, setSelectedAttributes] = useState({});
@@ -38156,7 +38153,7 @@ const FilterPop = props => {
38156
38153
  }
38157
38154
  }, "Clear Search"), /*#__PURE__*/React$1.createElement(ResetButton$1, {
38158
38155
  onClick: handleReset,
38159
- disabled: areAllNonAllItemsSelected() && selectedAttributes.All
38156
+ disabled: !hasActiveFilter && areAllNonAllItemsSelected() && selectedAttributes.All
38160
38157
  }, "Reset")));
38161
38158
  };
38162
38159
 
@@ -41423,6 +41420,8 @@ const TableHeader = ({
41423
41420
  }
41424
41421
  });
41425
41422
  } else {
41423
+ // Check if this column has an active filter (not in default state)
41424
+ const hasActiveFilter = !isFilterInDefaultState(key);
41426
41425
  return /*#__PURE__*/React$1.createElement(FilterPop, {
41427
41426
  width: "300px",
41428
41427
  height: "auto",
@@ -41432,6 +41431,7 @@ const TableHeader = ({
41432
41431
  doubleColumn: doubleColumn,
41433
41432
  menuName: title,
41434
41433
  selectedAttributes: filterSelections[key] || {},
41434
+ hasActiveFilter: hasActiveFilter,
41435
41435
  onCheck: event => handleFilterSelectionChange(key, event),
41436
41436
  onReset: () => handleFilterReset(key)
41437
41437
  });
@@ -42956,6 +42956,9 @@ const TableBody = /*#__PURE__*/forwardRef(({
42956
42956
  }, {
42957
42957
  status: "Cancelled",
42958
42958
  palette: ["#EBA6AF", "#8B1538"]
42959
+ }, {
42960
+ status: "Submitted",
42961
+ palette: ["#B9D5D5", "#2F4F4F"]
42959
42962
  }],
42960
42963
  onCommentSave = () => {},
42961
42964
  commentTextLimit = 150,