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.js
CHANGED
|
@@ -10618,24 +10618,23 @@ const QuarterPopupPicker = ({
|
|
|
10618
10618
|
};
|
|
10619
10619
|
|
|
10620
10620
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10621
|
-
const QuarterPicker =
|
|
10622
|
-
|
|
10623
|
-
|
|
10624
|
-
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
|
|
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 =
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
|
|
11088
|
-
|
|
11089
|
-
|
|
11090
|
-
|
|
11091
|
-
|
|
11092
|
-
|
|
11093
|
-
|
|
11094
|
-
|
|
11095
|
-
|
|
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 =
|
|
24208
|
-
|
|
24209
|
-
|
|
24210
|
-
|
|
24211
|
-
|
|
24212
|
-
|
|
24213
|
-
|
|
24214
|
-
|
|
24215
|
-
|
|
24216
|
-
|
|
24217
|
-
|
|
24218
|
-
|
|
24219
|
-
|
|
24220
|
-
|
|
24221
|
-
|
|
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 =
|
|
24675
|
-
|
|
24676
|
-
|
|
24677
|
-
|
|
24678
|
-
|
|
24679
|
-
|
|
24680
|
-
|
|
24681
|
-
|
|
24682
|
-
|
|
24683
|
-
|
|
24684
|
-
|
|
24685
|
-
|
|
24686
|
-
|
|
24687
|
-
|
|
24688
|
-
|
|
24689
|
-
|
|
24690
|
-
|
|
24691
|
-
|
|
24692
|
-
|
|
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,
|