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 CHANGED
@@ -10581,24 +10581,23 @@ const QuarterPopupPicker = ({
10581
10581
  };
10582
10582
 
10583
10583
  /* eslint-disable import/no-extraneous-dependencies */
10584
- const QuarterPicker = _ref => {
10585
- let {
10586
- availableQuarters,
10587
- // ["Q1-2024"]
10588
- label,
10589
- onChange,
10590
- borderRadius,
10591
- required,
10592
- width,
10593
- height,
10594
- placeholder,
10595
- disabled,
10596
- borderColor,
10597
- borderColorFocus,
10598
- textColor,
10599
- selectedValue,
10600
- startYear
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 = _ref => {
11044
- let {
11045
- availableMonths,
11046
- label,
11047
- onChange,
11048
- borderRadius,
11049
- required,
11050
- width,
11051
- height,
11052
- placeholder,
11053
- disabled,
11054
- borderColor,
11055
- borderColorFocus,
11056
- textColor,
11057
- selectedValue,
11058
- startYear
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 = _ref => {
24171
- let {
24172
- label,
24173
- hoverColor,
24174
- options,
24175
- selectedValue,
24176
- placeHolder,
24177
- onChange,
24178
- disabled,
24179
- width,
24180
- error,
24181
- errorMessage,
24182
- xIconShow,
24183
- labelColor,
24184
- showLabelOnTop
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 = _ref => {
24643
- let {
24644
- label,
24645
- labelEmptyValue,
24646
- options,
24647
- selectedValue,
24648
- placeHolder,
24649
- onChange,
24650
- required,
24651
- disabled,
24652
- width,
24653
- height,
24654
- error,
24655
- errorMessage,
24656
- labelColor,
24657
- xIconShow,
24658
- checkBoxColor,
24659
- showLabelOnTop,
24660
- dropdownHeight
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
- value = row[column.key];
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);