sag_components 2.0.0-beta215 → 2.0.0-beta217
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
|
@@ -10590,24 +10590,23 @@ const QuarterPopupPicker = ({
|
|
|
10590
10590
|
};
|
|
10591
10591
|
|
|
10592
10592
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10593
|
-
const QuarterPicker =
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
} = _ref;
|
|
10593
|
+
const QuarterPicker = ({
|
|
10594
|
+
availableQuarters,
|
|
10595
|
+
// ["Q1-2024"]
|
|
10596
|
+
label,
|
|
10597
|
+
onChange,
|
|
10598
|
+
borderRadius,
|
|
10599
|
+
required,
|
|
10600
|
+
width,
|
|
10601
|
+
height,
|
|
10602
|
+
placeholder,
|
|
10603
|
+
disabled,
|
|
10604
|
+
borderColor,
|
|
10605
|
+
borderColorFocus,
|
|
10606
|
+
textColor,
|
|
10607
|
+
selectedValue,
|
|
10608
|
+
startYear
|
|
10609
|
+
}) => {
|
|
10611
10610
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10612
10611
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10613
10612
|
const [value, setValue] = React$1.useState('');
|
|
@@ -11049,23 +11048,22 @@ const MonthPopupPicker = ({
|
|
|
11049
11048
|
};
|
|
11050
11049
|
|
|
11051
11050
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11052
|
-
const MonthPicker =
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11068
|
-
} = _ref;
|
|
11051
|
+
const MonthPicker = ({
|
|
11052
|
+
availableMonths,
|
|
11053
|
+
label,
|
|
11054
|
+
onChange,
|
|
11055
|
+
borderRadius,
|
|
11056
|
+
required,
|
|
11057
|
+
width,
|
|
11058
|
+
height,
|
|
11059
|
+
placeholder,
|
|
11060
|
+
disabled,
|
|
11061
|
+
borderColor,
|
|
11062
|
+
borderColorFocus,
|
|
11063
|
+
textColor,
|
|
11064
|
+
selectedValue,
|
|
11065
|
+
startYear
|
|
11066
|
+
}) => {
|
|
11069
11067
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
11070
11068
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
11071
11069
|
const [value, setValue] = React$1.useState('');
|
|
@@ -24176,22 +24174,21 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
24176
24174
|
position: absolute;
|
|
24177
24175
|
`;
|
|
24178
24176
|
|
|
24179
|
-
const QuickFilterDropdownSingle =
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24185
|
-
|
|
24186
|
-
|
|
24187
|
-
|
|
24188
|
-
|
|
24189
|
-
|
|
24190
|
-
|
|
24191
|
-
|
|
24192
|
-
|
|
24193
|
-
|
|
24194
|
-
} = _ref;
|
|
24177
|
+
const QuickFilterDropdownSingle = ({
|
|
24178
|
+
label,
|
|
24179
|
+
hoverColor,
|
|
24180
|
+
options,
|
|
24181
|
+
selectedValue,
|
|
24182
|
+
placeHolder,
|
|
24183
|
+
onChange,
|
|
24184
|
+
disabled,
|
|
24185
|
+
width,
|
|
24186
|
+
error,
|
|
24187
|
+
errorMessage,
|
|
24188
|
+
xIconShow,
|
|
24189
|
+
labelColor,
|
|
24190
|
+
showLabelOnTop
|
|
24191
|
+
}) => {
|
|
24195
24192
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24196
24193
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24197
24194
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24648,26 +24645,25 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24648
24645
|
cursor: pointer;
|
|
24649
24646
|
`;
|
|
24650
24647
|
|
|
24651
|
-
const QuickFilterDropdownMultiSelection =
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24668
|
-
|
|
24669
|
-
|
|
24670
|
-
} = _ref;
|
|
24648
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24649
|
+
label,
|
|
24650
|
+
labelEmptyValue,
|
|
24651
|
+
options,
|
|
24652
|
+
selectedValue,
|
|
24653
|
+
placeHolder,
|
|
24654
|
+
onChange,
|
|
24655
|
+
required,
|
|
24656
|
+
disabled,
|
|
24657
|
+
width,
|
|
24658
|
+
height,
|
|
24659
|
+
error,
|
|
24660
|
+
errorMessage,
|
|
24661
|
+
labelColor,
|
|
24662
|
+
xIconShow,
|
|
24663
|
+
checkBoxColor,
|
|
24664
|
+
showLabelOnTop,
|
|
24665
|
+
dropdownHeight
|
|
24666
|
+
}) => {
|
|
24671
24667
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24672
24668
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24673
24669
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -36151,9 +36147,9 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
36151
36147
|
}
|
|
36152
36148
|
`;
|
|
36153
36149
|
|
|
36154
|
-
/**
|
|
36155
|
-
* ToggleSwitch component for on/off states.
|
|
36156
|
-
* Supports small/large sizes and disabled state.
|
|
36150
|
+
/**
|
|
36151
|
+
* ToggleSwitch component for on/off states.
|
|
36152
|
+
* Supports small/large sizes and disabled state.
|
|
36157
36153
|
*/
|
|
36158
36154
|
function ToggleSwitch(_ref) {
|
|
36159
36155
|
let {
|
|
@@ -38765,6 +38761,7 @@ const TableHeader = ({
|
|
|
38765
38761
|
const showColumnFilter = column => {
|
|
38766
38762
|
const {
|
|
38767
38763
|
key,
|
|
38764
|
+
doubleColumn,
|
|
38768
38765
|
title,
|
|
38769
38766
|
filterOptions,
|
|
38770
38767
|
freeTextFilter,
|
|
@@ -38781,7 +38778,12 @@ const TableHeader = ({
|
|
|
38781
38778
|
inputType: "text",
|
|
38782
38779
|
placeholder: column.key === 'EventCode' ? 'Enter Event ID' : 'Search..',
|
|
38783
38780
|
fieldHeight: "40px",
|
|
38784
|
-
onTyping:
|
|
38781
|
+
onTyping: value => {
|
|
38782
|
+
setFilterState(prev => ({
|
|
38783
|
+
...prev,
|
|
38784
|
+
[key]: value
|
|
38785
|
+
}));
|
|
38786
|
+
},
|
|
38785
38787
|
onReset: () => {
|
|
38786
38788
|
setFilterState(prev => ({
|
|
38787
38789
|
...prev,
|
|
@@ -38824,6 +38826,7 @@ const TableHeader = ({
|
|
|
38824
38826
|
color: "#066768",
|
|
38825
38827
|
isAsc: true,
|
|
38826
38828
|
list: filterOptions,
|
|
38829
|
+
doubleColumn: doubleColumn,
|
|
38827
38830
|
menuName: title,
|
|
38828
38831
|
selectedAttributes: filterSelections[key] || {},
|
|
38829
38832
|
onCheck: event => handleFilterSelectionChange(key, event),
|
|
@@ -40207,7 +40210,7 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
|
|
|
40207
40210
|
|
|
40208
40211
|
// Handle shimmer effect changes
|
|
40209
40212
|
React$1.useEffect(() => {
|
|
40210
|
-
if (indexToShimmer >= 0
|
|
40213
|
+
if (indexToShimmer >= 0) {
|
|
40211
40214
|
setShimmerRowIndex(indexToShimmer);
|
|
40212
40215
|
setShimmerStartTime(Date.now());
|
|
40213
40216
|
|
|
@@ -40217,8 +40220,11 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
|
|
|
40217
40220
|
setShimmerStartTime(null);
|
|
40218
40221
|
}, 5000);
|
|
40219
40222
|
return () => clearTimeout(timeout);
|
|
40223
|
+
} else if (indexToShimmer === -1) {
|
|
40224
|
+
setShimmerRowIndex(-1);
|
|
40225
|
+
setShimmerStartTime(null);
|
|
40220
40226
|
}
|
|
40221
|
-
}, [indexToShimmer
|
|
40227
|
+
}, [indexToShimmer]);
|
|
40222
40228
|
|
|
40223
40229
|
// Expose methods to parent component via ref
|
|
40224
40230
|
React$1.useImperativeHandle(ref, () => ({
|
|
@@ -40812,7 +40818,7 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
|
|
|
40812
40818
|
key: row.id || `row-${rowIndex}`
|
|
40813
40819
|
}, /*#__PURE__*/React__default["default"].createElement(TableRow, {
|
|
40814
40820
|
"data-row-index": rowIndex,
|
|
40815
|
-
className:
|
|
40821
|
+
className: shimmerRowIndex === rowIndex ? "shimmer-row" : "",
|
|
40816
40822
|
isFocused: focusedRowIndex === rowIndex,
|
|
40817
40823
|
selectedColor: selectedColor,
|
|
40818
40824
|
onMouseEnter: () => setHoveredRowIndex(rowIndex),
|
|
@@ -45544,7 +45550,8 @@ const NewSubitem = ({
|
|
|
45544
45550
|
onBack,
|
|
45545
45551
|
addNewPackage,
|
|
45546
45552
|
updateExistingPackage,
|
|
45547
|
-
componentText = "Scale"
|
|
45553
|
+
componentText = "Scale",
|
|
45554
|
+
itemAndPackage
|
|
45548
45555
|
}) => {
|
|
45549
45556
|
const [negotiatedBrands, setNegotiatedBrands] = React$1.useState("");
|
|
45550
45557
|
const [negotiatedComponent, setNegotiatedComponent] = React$1.useState(componentText);
|
|
@@ -45559,7 +45566,9 @@ const NewSubitem = ({
|
|
|
45559
45566
|
}, [packageObject]);
|
|
45560
45567
|
React$1.useEffect(() => {
|
|
45561
45568
|
if (packageObject && packageObject.brands === negotiatedBrands) return;
|
|
45562
|
-
setIsPackageDuplicated(
|
|
45569
|
+
setIsPackageDuplicated(itemAndPackage.some(obj => {
|
|
45570
|
+
obj.name === vendor && obj.packages.some(pkg => pkg.brands === negotiatedBrands);
|
|
45571
|
+
}));
|
|
45563
45572
|
setIsApplyEnabled(negotiatedBrands.trim().length > 2 && vendor.packages.some(pkg => pkg.brands === negotiatedBrands) === false);
|
|
45564
45573
|
}, [negotiatedBrands]);
|
|
45565
45574
|
return /*#__PURE__*/React__default["default"].createElement(NewSubitemContainer, null, /*#__PURE__*/React__default["default"].createElement(Header, null, /*#__PURE__*/React__default["default"].createElement(BackButton, {
|