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 +79 -76
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +79 -76
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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 =
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
|
|
10618
|
-
|
|
10619
|
-
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
|
|
10623
|
-
|
|
10624
|
-
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
|
|
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 =
|
|
11071
|
-
|
|
11072
|
-
|
|
11073
|
-
|
|
11074
|
-
|
|
11075
|
-
|
|
11076
|
-
|
|
11077
|
-
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
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 =
|
|
24198
|
-
|
|
24199
|
-
|
|
24200
|
-
|
|
24201
|
-
|
|
24202
|
-
|
|
24203
|
-
|
|
24204
|
-
|
|
24205
|
-
|
|
24206
|
-
|
|
24207
|
-
|
|
24208
|
-
|
|
24209
|
-
|
|
24210
|
-
|
|
24211
|
-
|
|
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 =
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24668
|
-
|
|
24669
|
-
|
|
24670
|
-
|
|
24671
|
-
|
|
24672
|
-
|
|
24673
|
-
|
|
24674
|
-
|
|
24675
|
-
|
|
24676
|
-
|
|
24677
|
-
|
|
24678
|
-
|
|
24679
|
-
|
|
24680
|
-
|
|
24681
|
-
|
|
24682
|
-
|
|
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,
|