sag_components 2.0.0-beta250 → 2.0.0-beta251
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 +80 -75
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +80 -75
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -10581,24 +10581,23 @@ const QuarterPopupPicker = ({
|
|
|
10581
10581
|
};
|
|
10582
10582
|
|
|
10583
10583
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10584
|
-
const QuarterPicker =
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
} = _ref;
|
|
10584
|
+
const QuarterPicker = ({
|
|
10585
|
+
availableQuarters,
|
|
10586
|
+
// ["Q1-2024"]
|
|
10587
|
+
label,
|
|
10588
|
+
onChange,
|
|
10589
|
+
borderRadius,
|
|
10590
|
+
required,
|
|
10591
|
+
width,
|
|
10592
|
+
height,
|
|
10593
|
+
placeholder,
|
|
10594
|
+
disabled,
|
|
10595
|
+
borderColor,
|
|
10596
|
+
borderColorFocus,
|
|
10597
|
+
textColor,
|
|
10598
|
+
selectedValue,
|
|
10599
|
+
startYear
|
|
10600
|
+
}) => {
|
|
10602
10601
|
const [isFocused, setIsFocused] = useState(false);
|
|
10603
10602
|
const [isOpen, setIsOpen] = useState(false);
|
|
10604
10603
|
const [value, setValue] = useState('');
|
|
@@ -11040,23 +11039,22 @@ const MonthPopupPicker = ({
|
|
|
11040
11039
|
};
|
|
11041
11040
|
|
|
11042
11041
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11043
|
-
const MonthPicker =
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
} = _ref;
|
|
11042
|
+
const MonthPicker = ({
|
|
11043
|
+
availableMonths,
|
|
11044
|
+
label,
|
|
11045
|
+
onChange,
|
|
11046
|
+
borderRadius,
|
|
11047
|
+
required,
|
|
11048
|
+
width,
|
|
11049
|
+
height,
|
|
11050
|
+
placeholder,
|
|
11051
|
+
disabled,
|
|
11052
|
+
borderColor,
|
|
11053
|
+
borderColorFocus,
|
|
11054
|
+
textColor,
|
|
11055
|
+
selectedValue,
|
|
11056
|
+
startYear
|
|
11057
|
+
}) => {
|
|
11060
11058
|
const [isFocused, setIsFocused] = useState(false);
|
|
11061
11059
|
const [isOpen, setIsOpen] = useState(false);
|
|
11062
11060
|
const [value, setValue] = useState('');
|
|
@@ -24167,22 +24165,21 @@ const DeleteIcon = styled.div`
|
|
|
24167
24165
|
position: absolute;
|
|
24168
24166
|
`;
|
|
24169
24167
|
|
|
24170
|
-
const QuickFilterDropdownSingle =
|
|
24171
|
-
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24185
|
-
} = _ref;
|
|
24168
|
+
const QuickFilterDropdownSingle = ({
|
|
24169
|
+
label,
|
|
24170
|
+
hoverColor,
|
|
24171
|
+
options,
|
|
24172
|
+
selectedValue,
|
|
24173
|
+
placeHolder,
|
|
24174
|
+
onChange,
|
|
24175
|
+
disabled,
|
|
24176
|
+
width,
|
|
24177
|
+
error,
|
|
24178
|
+
errorMessage,
|
|
24179
|
+
xIconShow,
|
|
24180
|
+
labelColor,
|
|
24181
|
+
showLabelOnTop
|
|
24182
|
+
}) => {
|
|
24186
24183
|
const [isFocused, setIsFocused] = useState(false);
|
|
24187
24184
|
const [showOptions, setShowOptions] = useState(false);
|
|
24188
24185
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24639,26 +24636,25 @@ const IconContainer$2 = styled.div`
|
|
|
24639
24636
|
cursor: pointer;
|
|
24640
24637
|
`;
|
|
24641
24638
|
|
|
24642
|
-
const QuickFilterDropdownMultiSelection =
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
} = _ref;
|
|
24639
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24640
|
+
label,
|
|
24641
|
+
labelEmptyValue,
|
|
24642
|
+
options,
|
|
24643
|
+
selectedValue,
|
|
24644
|
+
placeHolder,
|
|
24645
|
+
onChange,
|
|
24646
|
+
required,
|
|
24647
|
+
disabled,
|
|
24648
|
+
width,
|
|
24649
|
+
height,
|
|
24650
|
+
error,
|
|
24651
|
+
errorMessage,
|
|
24652
|
+
labelColor,
|
|
24653
|
+
xIconShow,
|
|
24654
|
+
checkBoxColor,
|
|
24655
|
+
showLabelOnTop,
|
|
24656
|
+
dropdownHeight
|
|
24657
|
+
}) => {
|
|
24662
24658
|
const [isFocused, setIsFocused] = useState(false);
|
|
24663
24659
|
const [showOptions, setShowOptions] = useState(false);
|
|
24664
24660
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -36156,9 +36152,9 @@ const ToggleSlider = styled.span`
|
|
|
36156
36152
|
}
|
|
36157
36153
|
`;
|
|
36158
36154
|
|
|
36159
|
-
/**
|
|
36160
|
-
* ToggleSwitch component for on/off states.
|
|
36161
|
-
* Supports small/large sizes and disabled state.
|
|
36155
|
+
/**
|
|
36156
|
+
* ToggleSwitch component for on/off states.
|
|
36157
|
+
* Supports small/large sizes and disabled state.
|
|
36162
36158
|
*/
|
|
36163
36159
|
function ToggleSwitch(_ref) {
|
|
36164
36160
|
let {
|
|
@@ -42660,6 +42656,14 @@ const TableBody = /*#__PURE__*/forwardRef(({
|
|
|
42660
42656
|
const [shimmerRowIndex, setShimmerRowIndex] = useState(-1);
|
|
42661
42657
|
const [shimmerStartTime, setShimmerStartTime] = useState(null);
|
|
42662
42658
|
|
|
42659
|
+
// Helper function to get nested values from objects (e.g., "status.PackageStatusDescription")
|
|
42660
|
+
const getNestedValue = (obj, path) => {
|
|
42661
|
+
if (!path || typeof path !== 'string') return undefined;
|
|
42662
|
+
return path.split('.').reduce((current, key) => {
|
|
42663
|
+
return current && current[key] !== undefined ? current[key] : undefined;
|
|
42664
|
+
}, obj);
|
|
42665
|
+
};
|
|
42666
|
+
|
|
42663
42667
|
// Handle shimmer effect changes
|
|
42664
42668
|
useEffect(() => {
|
|
42665
42669
|
if (indexToShimmer >= 0) {
|
|
@@ -43402,7 +43406,8 @@ const TableBody = /*#__PURE__*/forwardRef(({
|
|
|
43402
43406
|
}
|
|
43403
43407
|
let value, formattedValue;
|
|
43404
43408
|
try {
|
|
43405
|
-
|
|
43409
|
+
// Support nested keys like "status.PackageStatusDescription"
|
|
43410
|
+
value = column.key.includes('.') ? getNestedValue(row, column.key) : row[column.key];
|
|
43406
43411
|
formattedValue = formatValue(value, column, row, rowIndex) || "";
|
|
43407
43412
|
} catch (e) {
|
|
43408
43413
|
console.error("Error formatting value:", e);
|