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.js CHANGED
@@ -10618,24 +10618,23 @@ const QuarterPopupPicker = ({
10618
10618
  };
10619
10619
 
10620
10620
  /* eslint-disable import/no-extraneous-dependencies */
10621
- const QuarterPicker = _ref => {
10622
- let {
10623
- availableQuarters,
10624
- // ["Q1-2024"]
10625
- label,
10626
- onChange,
10627
- borderRadius,
10628
- required,
10629
- width,
10630
- height,
10631
- placeholder,
10632
- disabled,
10633
- borderColor,
10634
- borderColorFocus,
10635
- textColor,
10636
- selectedValue,
10637
- startYear
10638
- } = _ref;
10621
+ const QuarterPicker = ({
10622
+ availableQuarters,
10623
+ // ["Q1-2024"]
10624
+ label,
10625
+ onChange,
10626
+ borderRadius,
10627
+ required,
10628
+ width,
10629
+ height,
10630
+ placeholder,
10631
+ disabled,
10632
+ borderColor,
10633
+ borderColorFocus,
10634
+ textColor,
10635
+ selectedValue,
10636
+ startYear
10637
+ }) => {
10639
10638
  const [isFocused, setIsFocused] = React$1.useState(false);
10640
10639
  const [isOpen, setIsOpen] = React$1.useState(false);
10641
10640
  const [value, setValue] = React$1.useState('');
@@ -11077,23 +11076,22 @@ const MonthPopupPicker = ({
11077
11076
  };
11078
11077
 
11079
11078
  /* eslint-disable import/no-extraneous-dependencies */
11080
- const MonthPicker = _ref => {
11081
- let {
11082
- availableMonths,
11083
- label,
11084
- onChange,
11085
- borderRadius,
11086
- required,
11087
- width,
11088
- height,
11089
- placeholder,
11090
- disabled,
11091
- borderColor,
11092
- borderColorFocus,
11093
- textColor,
11094
- selectedValue,
11095
- startYear
11096
- } = _ref;
11079
+ const MonthPicker = ({
11080
+ availableMonths,
11081
+ label,
11082
+ onChange,
11083
+ borderRadius,
11084
+ required,
11085
+ width,
11086
+ height,
11087
+ placeholder,
11088
+ disabled,
11089
+ borderColor,
11090
+ borderColorFocus,
11091
+ textColor,
11092
+ selectedValue,
11093
+ startYear
11094
+ }) => {
11097
11095
  const [isFocused, setIsFocused] = React$1.useState(false);
11098
11096
  const [isOpen, setIsOpen] = React$1.useState(false);
11099
11097
  const [value, setValue] = React$1.useState('');
@@ -24204,22 +24202,21 @@ const DeleteIcon = styled__default["default"].div`
24204
24202
  position: absolute;
24205
24203
  `;
24206
24204
 
24207
- const QuickFilterDropdownSingle = _ref => {
24208
- let {
24209
- label,
24210
- hoverColor,
24211
- options,
24212
- selectedValue,
24213
- placeHolder,
24214
- onChange,
24215
- disabled,
24216
- width,
24217
- error,
24218
- errorMessage,
24219
- xIconShow,
24220
- labelColor,
24221
- showLabelOnTop
24222
- } = _ref;
24205
+ const QuickFilterDropdownSingle = ({
24206
+ label,
24207
+ hoverColor,
24208
+ options,
24209
+ selectedValue,
24210
+ placeHolder,
24211
+ onChange,
24212
+ disabled,
24213
+ width,
24214
+ error,
24215
+ errorMessage,
24216
+ xIconShow,
24217
+ labelColor,
24218
+ showLabelOnTop
24219
+ }) => {
24223
24220
  const [isFocused, setIsFocused] = React$1.useState(false);
24224
24221
  const [showOptions, setShowOptions] = React$1.useState(false);
24225
24222
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24671,26 +24668,25 @@ const IconContainer$2 = styled__default["default"].div`
24671
24668
  cursor: pointer;
24672
24669
  `;
24673
24670
 
24674
- const QuickFilterDropdownMultiSelection = _ref => {
24675
- let {
24676
- label,
24677
- labelEmptyValue,
24678
- options,
24679
- selectedValue,
24680
- placeHolder,
24681
- onChange,
24682
- required,
24683
- disabled,
24684
- width,
24685
- height,
24686
- error,
24687
- errorMessage,
24688
- labelColor,
24689
- xIconShow,
24690
- checkBoxColor,
24691
- showLabelOnTop,
24692
- dropdownHeight
24693
- } = _ref;
24671
+ const QuickFilterDropdownMultiSelection = ({
24672
+ label,
24673
+ labelEmptyValue,
24674
+ options,
24675
+ selectedValue,
24676
+ placeHolder,
24677
+ onChange,
24678
+ required,
24679
+ disabled,
24680
+ width,
24681
+ height,
24682
+ error,
24683
+ errorMessage,
24684
+ labelColor,
24685
+ xIconShow,
24686
+ checkBoxColor,
24687
+ showLabelOnTop,
24688
+ dropdownHeight
24689
+ }) => {
24694
24690
  const [isFocused, setIsFocused] = React$1.useState(false);
24695
24691
  const [showOptions, setShowOptions] = React$1.useState(false);
24696
24692
  const [inputValue, setInputValue] = React$1.useState('');
@@ -36230,9 +36226,9 @@ const ToggleSlider = styled__default["default"].span`
36230
36226
  }
36231
36227
  `;
36232
36228
 
36233
- /**
36234
- * ToggleSwitch component for on/off states.
36235
- * Supports small/large sizes and disabled state.
36229
+ /**
36230
+ * ToggleSwitch component for on/off states.
36231
+ * Supports small/large sizes and disabled state.
36236
36232
  */
36237
36233
  function ToggleSwitch(_ref) {
36238
36234
  let {
@@ -37815,7 +37811,8 @@ const FilterPop = props => {
37815
37811
  showSearch = true,
37816
37812
  searchPlaceholder = "Search...",
37817
37813
  itemHeight = 32,
37818
- overscan = 5
37814
+ overscan = 5,
37815
+ hasActiveFilter = false // NEW: Indicates if this column has an active filter
37819
37816
  } = props;
37820
37817
  const [searchTerm, setSearchTerm] = React$1.useState("");
37821
37818
  const [selectedAttributes, setSelectedAttributes] = React$1.useState({});
@@ -38166,7 +38163,7 @@ const FilterPop = props => {
38166
38163
  }
38167
38164
  }, "Clear Search"), /*#__PURE__*/React__default["default"].createElement(ResetButton$1, {
38168
38165
  onClick: handleReset,
38169
- disabled: areAllNonAllItemsSelected() && selectedAttributes.All
38166
+ disabled: !hasActiveFilter && areAllNonAllItemsSelected() && selectedAttributes.All
38170
38167
  }, "Reset")));
38171
38168
  };
38172
38169
 
@@ -41433,6 +41430,8 @@ const TableHeader = ({
41433
41430
  }
41434
41431
  });
41435
41432
  } else {
41433
+ // Check if this column has an active filter (not in default state)
41434
+ const hasActiveFilter = !isFilterInDefaultState(key);
41436
41435
  return /*#__PURE__*/React__default["default"].createElement(FilterPop, {
41437
41436
  width: "300px",
41438
41437
  height: "auto",
@@ -41442,6 +41441,7 @@ const TableHeader = ({
41442
41441
  doubleColumn: doubleColumn,
41443
41442
  menuName: title,
41444
41443
  selectedAttributes: filterSelections[key] || {},
41444
+ hasActiveFilter: hasActiveFilter,
41445
41445
  onCheck: event => handleFilterSelectionChange(key, event),
41446
41446
  onReset: () => handleFilterReset(key)
41447
41447
  });
@@ -42966,6 +42966,9 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
42966
42966
  }, {
42967
42967
  status: "Cancelled",
42968
42968
  palette: ["#EBA6AF", "#8B1538"]
42969
+ }, {
42970
+ status: "Submitted",
42971
+ palette: ["#B9D5D5", "#2F4F4F"]
42969
42972
  }],
42970
42973
  onCommentSave = () => {},
42971
42974
  commentTextLimit = 150,