sag_components 2.0.0-beta56 → 2.0.0-beta57

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
@@ -9494,67 +9494,70 @@ const DropdownMain = styled__default["default"].div`
9494
9494
  `;
9495
9495
 
9496
9496
  /* eslint-disable react/prop-types */
9497
- const DropdownNew = ({
9498
- isMulti,
9499
- label,
9500
- labelEmptyValue,
9501
- options,
9502
- selectedValue,
9503
- placeHolder,
9504
- onChange,
9505
- required,
9506
- disabled,
9507
- width,
9508
- error,
9509
- errorMessage,
9510
- labelColor,
9511
- checkBoxColor,
9512
- xIconShow,
9513
- showLabelOnTop,
9514
- orderBy,
9515
- elementType
9516
- }) => /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
9517
- className: "DropdownMain",
9518
- width: width
9519
- }, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
9520
- className: "DropdownMultiNew",
9521
- placeHolder: placeHolder,
9522
- label: label,
9523
- labelEmptyValue: labelEmptyValue,
9524
- labelColor: labelColor,
9525
- checkBoxColor: checkBoxColor,
9526
- required: required,
9527
- options: options,
9528
- width: width,
9529
- disabled: disabled,
9530
- error: error,
9531
- errorMessage: errorMessage,
9532
- selectedValue: selectedValue,
9533
- xIconShow: xIconShow,
9534
- onChange: onChange,
9535
- showLabelOnTop: showLabelOnTop,
9536
- orderBy: orderBy,
9537
- elementType: elementType
9538
- }) : /*#__PURE__*/React__default["default"].createElement(DropdownSingleNew, {
9539
- className: "DropdownSingleNew",
9540
- placeHolder: placeHolder,
9541
- label: label,
9542
- labelEmptyValue: labelEmptyValue,
9543
- labelColor: labelColor,
9544
- checkBoxColor: checkBoxColor,
9545
- required: required,
9546
- options: options,
9547
- width: width,
9548
- disabled: disabled,
9549
- error: error,
9550
- errorMessage: errorMessage,
9551
- selectedValue: selectedValue,
9552
- xIconShow: xIconShow,
9553
- onChange: onChange,
9554
- showLabelOnTop: showLabelOnTop,
9555
- orderBy: orderBy,
9556
- elementType: elementType
9557
- }));
9497
+ const DropdownNew = _ref => {
9498
+ let {
9499
+ isMulti,
9500
+ label,
9501
+ labelEmptyValue,
9502
+ options,
9503
+ selectedValue,
9504
+ placeHolder,
9505
+ onChange,
9506
+ required,
9507
+ disabled,
9508
+ width,
9509
+ error,
9510
+ errorMessage,
9511
+ labelColor,
9512
+ checkBoxColor,
9513
+ xIconShow,
9514
+ showLabelOnTop,
9515
+ orderBy,
9516
+ elementType
9517
+ } = _ref;
9518
+ return /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
9519
+ className: "DropdownMain",
9520
+ width: width
9521
+ }, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
9522
+ className: "DropdownMultiNew",
9523
+ placeHolder: placeHolder,
9524
+ label: label,
9525
+ labelEmptyValue: labelEmptyValue,
9526
+ labelColor: labelColor,
9527
+ checkBoxColor: checkBoxColor,
9528
+ required: required,
9529
+ options: options,
9530
+ width: width,
9531
+ disabled: disabled,
9532
+ error: error,
9533
+ errorMessage: errorMessage,
9534
+ selectedValue: selectedValue,
9535
+ xIconShow: xIconShow,
9536
+ onChange: onChange,
9537
+ showLabelOnTop: showLabelOnTop,
9538
+ orderBy: orderBy,
9539
+ elementType: elementType
9540
+ }) : /*#__PURE__*/React__default["default"].createElement(DropdownSingleNew, {
9541
+ className: "DropdownSingleNew",
9542
+ placeHolder: placeHolder,
9543
+ label: label,
9544
+ labelEmptyValue: labelEmptyValue,
9545
+ labelColor: labelColor,
9546
+ checkBoxColor: checkBoxColor,
9547
+ required: required,
9548
+ options: options,
9549
+ width: width,
9550
+ disabled: disabled,
9551
+ error: error,
9552
+ errorMessage: errorMessage,
9553
+ selectedValue: selectedValue,
9554
+ xIconShow: xIconShow,
9555
+ onChange: onChange,
9556
+ showLabelOnTop: showLabelOnTop,
9557
+ orderBy: orderBy,
9558
+ elementType: elementType
9559
+ }));
9560
+ };
9558
9561
  DropdownNew.propTypes = {
9559
9562
  placeHolder: PropTypes.string,
9560
9563
  label: PropTypes.string,
@@ -9976,20 +9979,21 @@ const DatePicker = ({
9976
9979
  };
9977
9980
 
9978
9981
  /* eslint-disable import/no-extraneous-dependencies */
9979
- const RangePicker = ({
9980
- label,
9981
- onChange,
9982
- borderRadius,
9983
- required,
9984
- width,
9985
- height,
9986
- placeholder,
9987
- disabled,
9988
- borderColor,
9989
- borderColorFocus,
9990
- textColor,
9991
- selectedValue
9992
- }) => {
9982
+ const RangePicker = _ref => {
9983
+ let {
9984
+ label,
9985
+ onChange,
9986
+ borderRadius,
9987
+ required,
9988
+ width,
9989
+ height,
9990
+ placeholder,
9991
+ disabled,
9992
+ borderColor,
9993
+ borderColorFocus,
9994
+ textColor,
9995
+ selectedValue
9996
+ } = _ref;
9993
9997
  const [isFocused, setIsFocused] = React$1.useState(false);
9994
9998
  const [isOpen, setIsOpen] = React$1.useState(false);
9995
9999
  const [value, setValue] = React$1.useState(''); // Added value state
@@ -10430,22 +10434,23 @@ const QuarterPopupPicker = ({
10430
10434
  };
10431
10435
 
10432
10436
  /* eslint-disable import/no-extraneous-dependencies */
10433
- const QuarterPicker = ({
10434
- availableQuarters,
10435
- // ["Q1-2024"]
10436
- label,
10437
- onChange,
10438
- borderRadius,
10439
- required,
10440
- width,
10441
- height,
10442
- placeholder,
10443
- disabled,
10444
- borderColor,
10445
- borderColorFocus,
10446
- textColor,
10447
- selectedValue
10448
- }) => {
10437
+ const QuarterPicker = _ref => {
10438
+ let {
10439
+ availableQuarters,
10440
+ // ["Q1-2024"]
10441
+ label,
10442
+ onChange,
10443
+ borderRadius,
10444
+ required,
10445
+ width,
10446
+ height,
10447
+ placeholder,
10448
+ disabled,
10449
+ borderColor,
10450
+ borderColorFocus,
10451
+ textColor,
10452
+ selectedValue
10453
+ } = _ref;
10449
10454
  const [isFocused, setIsFocused] = React$1.useState(false);
10450
10455
  const [isOpen, setIsOpen] = React$1.useState(false);
10451
10456
  const [value, setValue] = React$1.useState('');
@@ -10892,21 +10897,22 @@ const MonthPopupPicker = ({
10892
10897
  };
10893
10898
 
10894
10899
  /* eslint-disable import/no-extraneous-dependencies */
10895
- const MonthPicker = ({
10896
- availableMonths,
10897
- label,
10898
- onChange,
10899
- borderRadius,
10900
- required,
10901
- width,
10902
- height,
10903
- placeholder,
10904
- disabled,
10905
- borderColor,
10906
- borderColorFocus,
10907
- textColor,
10908
- selectedValue
10909
- }) => {
10900
+ const MonthPicker = _ref => {
10901
+ let {
10902
+ availableMonths,
10903
+ label,
10904
+ onChange,
10905
+ borderRadius,
10906
+ required,
10907
+ width,
10908
+ height,
10909
+ placeholder,
10910
+ disabled,
10911
+ borderColor,
10912
+ borderColorFocus,
10913
+ textColor,
10914
+ selectedValue
10915
+ } = _ref;
10910
10916
  const [isFocused, setIsFocused] = React$1.useState(false);
10911
10917
  const [isOpen, setIsOpen] = React$1.useState(false);
10912
10918
  const [value, setValue] = React$1.useState('');
@@ -11251,7 +11257,7 @@ const FilterPanel = props => {
11251
11257
  inputSubType: 'year'
11252
11258
  } : ''),
11253
11259
  ...(newPeriodPickerSelectedValue[0]?.value === 'ytd' ? {
11254
- inputSubType: 'daterange'
11260
+ inputSubType: 'ytd'
11255
11261
  } : ''),
11256
11262
  ...(newPeriodPickerSelectedValue[0]?.value === 'month' ? {
11257
11263
  inputSubType: 'month'
@@ -11274,7 +11280,7 @@ const FilterPanel = props => {
11274
11280
  inputSubType: 'year'
11275
11281
  } : ''),
11276
11282
  ...(newPeriodPickerSelectedValue[0]?.value === 'ytd' ? {
11277
- inputSubType: 'daterange'
11283
+ inputSubType: 'ytd'
11278
11284
  } : ''),
11279
11285
  ...(newPeriodPickerSelectedValue[0]?.value === 'month' ? {
11280
11286
  inputSubType: 'month'
@@ -11464,7 +11470,7 @@ const FilterPanel = props => {
11464
11470
  const selectedValue = eventRangePicker && typeof eventRangePicker === 'string' ? `${eventRangePicker}` : undefined;
11465
11471
  const newFieldsDataState = FieldsDataState?.map(itemField => itemField.name === item.name ? {
11466
11472
  ...itemField,
11467
- inputSubType: 'daterange',
11473
+ inputSubType: 'ytd',
11468
11474
  selectedValue: selectedValue ? `${selectedValue}` : undefined
11469
11475
  } : itemField);
11470
11476
  setFieldsDataState(newFieldsDataState);
@@ -11473,14 +11479,14 @@ const FilterPanel = props => {
11473
11479
  changedItem: {
11474
11480
  name: item.name,
11475
11481
  inputType: item.inputType,
11476
- inputSubType: 'daterange',
11482
+ inputSubType: 'ytd',
11477
11483
  selectedValue: selectedValue ? `${selectedValue}` : undefined
11478
11484
  }
11479
11485
  });
11480
11486
  },
11481
11487
  required: item.required,
11482
11488
  placeholder: "Select Date Range ...",
11483
- selectedValue: item.selectedValue || getYTDString(),
11489
+ selectedValue: getYTDString(),
11484
11490
  disabled: true,
11485
11491
  width: "100%",
11486
11492
  height: "55px"
@@ -24132,21 +24138,22 @@ const DeleteIcon = styled__default["default"].div`
24132
24138
  position: absolute;
24133
24139
  `;
24134
24140
 
24135
- const QuickFilterDropdownSingle = ({
24136
- label,
24137
- hoverColor,
24138
- options,
24139
- selectedValue,
24140
- placeHolder,
24141
- onChange,
24142
- disabled,
24143
- width,
24144
- error,
24145
- errorMessage,
24146
- xIconShow,
24147
- labelColor,
24148
- showLabelOnTop
24149
- }) => {
24141
+ const QuickFilterDropdownSingle = _ref => {
24142
+ let {
24143
+ label,
24144
+ hoverColor,
24145
+ options,
24146
+ selectedValue,
24147
+ placeHolder,
24148
+ onChange,
24149
+ disabled,
24150
+ width,
24151
+ error,
24152
+ errorMessage,
24153
+ xIconShow,
24154
+ labelColor,
24155
+ showLabelOnTop
24156
+ } = _ref;
24150
24157
  const [isFocused, setIsFocused] = React$1.useState(false);
24151
24158
  const [showOptions, setShowOptions] = React$1.useState(false);
24152
24159
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24544,23 +24551,24 @@ const IconContainer$2 = styled__default["default"].div`
24544
24551
  cursor: pointer;
24545
24552
  `;
24546
24553
 
24547
- const QuickFilterDropdownMultiSelection = ({
24548
- label,
24549
- labelEmptyValue,
24550
- options,
24551
- selectedValue,
24552
- placeHolder,
24553
- onChange,
24554
- required,
24555
- disabled,
24556
- width,
24557
- error,
24558
- errorMessage,
24559
- labelColor,
24560
- xIconShow,
24561
- checkBoxColor,
24562
- showLabelOnTop
24563
- }) => {
24554
+ const QuickFilterDropdownMultiSelection = _ref => {
24555
+ let {
24556
+ label,
24557
+ labelEmptyValue,
24558
+ options,
24559
+ selectedValue,
24560
+ placeHolder,
24561
+ onChange,
24562
+ required,
24563
+ disabled,
24564
+ width,
24565
+ error,
24566
+ errorMessage,
24567
+ labelColor,
24568
+ xIconShow,
24569
+ checkBoxColor,
24570
+ showLabelOnTop
24571
+ } = _ref;
24564
24572
  const [isFocused, setIsFocused] = React$1.useState(false);
24565
24573
  const [showOptions, setShowOptions] = React$1.useState(false);
24566
24574
  const [inputValue, setInputValue] = React$1.useState('');
@@ -31411,7 +31419,7 @@ const BatteryChart = props => {
31411
31419
  // ];
31412
31420
 
31413
31421
  const SeparatedLineBarChart = ({
31414
- barlineData
31422
+ barlineData = []
31415
31423
  }) => {
31416
31424
  // Sort the data by week number extracted from the label
31417
31425
  const sortedData = barlineData?.sort((a, b) => {
@@ -31949,7 +31957,7 @@ SegmentedButton.defaultProps = {
31949
31957
  };
31950
31958
 
31951
31959
  function InnerBarChart({
31952
- data
31960
+ data = []
31953
31961
  }) {
31954
31962
  const processedData = data.map(item => {
31955
31963
  const parts = item.label.replace("Vendor Selling Event:", "").trim();