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.js
CHANGED
|
@@ -10591,24 +10591,23 @@ const QuarterPopupPicker = ({
|
|
|
10591
10591
|
};
|
|
10592
10592
|
|
|
10593
10593
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10594
|
-
const QuarterPicker =
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
|
|
10611
|
-
} = _ref;
|
|
10594
|
+
const QuarterPicker = ({
|
|
10595
|
+
availableQuarters,
|
|
10596
|
+
// ["Q1-2024"]
|
|
10597
|
+
label,
|
|
10598
|
+
onChange,
|
|
10599
|
+
borderRadius,
|
|
10600
|
+
required,
|
|
10601
|
+
width,
|
|
10602
|
+
height,
|
|
10603
|
+
placeholder,
|
|
10604
|
+
disabled,
|
|
10605
|
+
borderColor,
|
|
10606
|
+
borderColorFocus,
|
|
10607
|
+
textColor,
|
|
10608
|
+
selectedValue,
|
|
10609
|
+
startYear
|
|
10610
|
+
}) => {
|
|
10612
10611
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10613
10612
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10614
10613
|
const [value, setValue] = React$1.useState('');
|
|
@@ -11050,23 +11049,22 @@ const MonthPopupPicker = ({
|
|
|
11050
11049
|
};
|
|
11051
11050
|
|
|
11052
11051
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11053
|
-
const MonthPicker =
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11068
|
-
|
|
11069
|
-
} = _ref;
|
|
11052
|
+
const MonthPicker = ({
|
|
11053
|
+
availableMonths,
|
|
11054
|
+
label,
|
|
11055
|
+
onChange,
|
|
11056
|
+
borderRadius,
|
|
11057
|
+
required,
|
|
11058
|
+
width,
|
|
11059
|
+
height,
|
|
11060
|
+
placeholder,
|
|
11061
|
+
disabled,
|
|
11062
|
+
borderColor,
|
|
11063
|
+
borderColorFocus,
|
|
11064
|
+
textColor,
|
|
11065
|
+
selectedValue,
|
|
11066
|
+
startYear
|
|
11067
|
+
}) => {
|
|
11070
11068
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
11071
11069
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
11072
11070
|
const [value, setValue] = React$1.useState('');
|
|
@@ -24177,22 +24175,21 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
24177
24175
|
position: absolute;
|
|
24178
24176
|
`;
|
|
24179
24177
|
|
|
24180
|
-
const QuickFilterDropdownSingle =
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24185
|
-
|
|
24186
|
-
|
|
24187
|
-
|
|
24188
|
-
|
|
24189
|
-
|
|
24190
|
-
|
|
24191
|
-
|
|
24192
|
-
|
|
24193
|
-
|
|
24194
|
-
|
|
24195
|
-
} = _ref;
|
|
24178
|
+
const QuickFilterDropdownSingle = ({
|
|
24179
|
+
label,
|
|
24180
|
+
hoverColor,
|
|
24181
|
+
options,
|
|
24182
|
+
selectedValue,
|
|
24183
|
+
placeHolder,
|
|
24184
|
+
onChange,
|
|
24185
|
+
disabled,
|
|
24186
|
+
width,
|
|
24187
|
+
error,
|
|
24188
|
+
errorMessage,
|
|
24189
|
+
xIconShow,
|
|
24190
|
+
labelColor,
|
|
24191
|
+
showLabelOnTop
|
|
24192
|
+
}) => {
|
|
24196
24193
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24197
24194
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24198
24195
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24649,26 +24646,25 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24649
24646
|
cursor: pointer;
|
|
24650
24647
|
`;
|
|
24651
24648
|
|
|
24652
|
-
const QuickFilterDropdownMultiSelection =
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24668
|
-
|
|
24669
|
-
|
|
24670
|
-
|
|
24671
|
-
} = _ref;
|
|
24649
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24650
|
+
label,
|
|
24651
|
+
labelEmptyValue,
|
|
24652
|
+
options,
|
|
24653
|
+
selectedValue,
|
|
24654
|
+
placeHolder,
|
|
24655
|
+
onChange,
|
|
24656
|
+
required,
|
|
24657
|
+
disabled,
|
|
24658
|
+
width,
|
|
24659
|
+
height,
|
|
24660
|
+
error,
|
|
24661
|
+
errorMessage,
|
|
24662
|
+
labelColor,
|
|
24663
|
+
xIconShow,
|
|
24664
|
+
checkBoxColor,
|
|
24665
|
+
showLabelOnTop,
|
|
24666
|
+
dropdownHeight
|
|
24667
|
+
}) => {
|
|
24672
24668
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24673
24669
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24674
24670
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -36166,9 +36162,9 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
36166
36162
|
}
|
|
36167
36163
|
`;
|
|
36168
36164
|
|
|
36169
|
-
/**
|
|
36170
|
-
* ToggleSwitch component for on/off states.
|
|
36171
|
-
* Supports small/large sizes and disabled state.
|
|
36165
|
+
/**
|
|
36166
|
+
* ToggleSwitch component for on/off states.
|
|
36167
|
+
* Supports small/large sizes and disabled state.
|
|
36172
36168
|
*/
|
|
36173
36169
|
function ToggleSwitch(_ref) {
|
|
36174
36170
|
let {
|
|
@@ -42670,6 +42666,14 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
|
|
|
42670
42666
|
const [shimmerRowIndex, setShimmerRowIndex] = React$1.useState(-1);
|
|
42671
42667
|
const [shimmerStartTime, setShimmerStartTime] = React$1.useState(null);
|
|
42672
42668
|
|
|
42669
|
+
// Helper function to get nested values from objects (e.g., "status.PackageStatusDescription")
|
|
42670
|
+
const getNestedValue = (obj, path) => {
|
|
42671
|
+
if (!path || typeof path !== 'string') return undefined;
|
|
42672
|
+
return path.split('.').reduce((current, key) => {
|
|
42673
|
+
return current && current[key] !== undefined ? current[key] : undefined;
|
|
42674
|
+
}, obj);
|
|
42675
|
+
};
|
|
42676
|
+
|
|
42673
42677
|
// Handle shimmer effect changes
|
|
42674
42678
|
React$1.useEffect(() => {
|
|
42675
42679
|
if (indexToShimmer >= 0) {
|
|
@@ -43412,7 +43416,8 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
|
|
|
43412
43416
|
}
|
|
43413
43417
|
let value, formattedValue;
|
|
43414
43418
|
try {
|
|
43415
|
-
|
|
43419
|
+
// Support nested keys like "status.PackageStatusDescription"
|
|
43420
|
+
value = column.key.includes('.') ? getNestedValue(row, column.key) : row[column.key];
|
|
43416
43421
|
formattedValue = formatValue(value, column, row, rowIndex) || "";
|
|
43417
43422
|
} catch (e) {
|
|
43418
43423
|
console.error("Error formatting value:", e);
|