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.esm.js
CHANGED
|
@@ -9484,67 +9484,70 @@ const DropdownMain = styled.div`
|
|
|
9484
9484
|
`;
|
|
9485
9485
|
|
|
9486
9486
|
/* eslint-disable react/prop-types */
|
|
9487
|
-
const DropdownNew =
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9487
|
+
const DropdownNew = _ref => {
|
|
9488
|
+
let {
|
|
9489
|
+
isMulti,
|
|
9490
|
+
label,
|
|
9491
|
+
labelEmptyValue,
|
|
9492
|
+
options,
|
|
9493
|
+
selectedValue,
|
|
9494
|
+
placeHolder,
|
|
9495
|
+
onChange,
|
|
9496
|
+
required,
|
|
9497
|
+
disabled,
|
|
9498
|
+
width,
|
|
9499
|
+
error,
|
|
9500
|
+
errorMessage,
|
|
9501
|
+
labelColor,
|
|
9502
|
+
checkBoxColor,
|
|
9503
|
+
xIconShow,
|
|
9504
|
+
showLabelOnTop,
|
|
9505
|
+
orderBy,
|
|
9506
|
+
elementType
|
|
9507
|
+
} = _ref;
|
|
9508
|
+
return /*#__PURE__*/React$1.createElement(DropdownMain, {
|
|
9509
|
+
className: "DropdownMain",
|
|
9510
|
+
width: width
|
|
9511
|
+
}, isMulti ? /*#__PURE__*/React$1.createElement(DropdownMultiNew, {
|
|
9512
|
+
className: "DropdownMultiNew",
|
|
9513
|
+
placeHolder: placeHolder,
|
|
9514
|
+
label: label,
|
|
9515
|
+
labelEmptyValue: labelEmptyValue,
|
|
9516
|
+
labelColor: labelColor,
|
|
9517
|
+
checkBoxColor: checkBoxColor,
|
|
9518
|
+
required: required,
|
|
9519
|
+
options: options,
|
|
9520
|
+
width: width,
|
|
9521
|
+
disabled: disabled,
|
|
9522
|
+
error: error,
|
|
9523
|
+
errorMessage: errorMessage,
|
|
9524
|
+
selectedValue: selectedValue,
|
|
9525
|
+
xIconShow: xIconShow,
|
|
9526
|
+
onChange: onChange,
|
|
9527
|
+
showLabelOnTop: showLabelOnTop,
|
|
9528
|
+
orderBy: orderBy,
|
|
9529
|
+
elementType: elementType
|
|
9530
|
+
}) : /*#__PURE__*/React$1.createElement(DropdownSingleNew, {
|
|
9531
|
+
className: "DropdownSingleNew",
|
|
9532
|
+
placeHolder: placeHolder,
|
|
9533
|
+
label: label,
|
|
9534
|
+
labelEmptyValue: labelEmptyValue,
|
|
9535
|
+
labelColor: labelColor,
|
|
9536
|
+
checkBoxColor: checkBoxColor,
|
|
9537
|
+
required: required,
|
|
9538
|
+
options: options,
|
|
9539
|
+
width: width,
|
|
9540
|
+
disabled: disabled,
|
|
9541
|
+
error: error,
|
|
9542
|
+
errorMessage: errorMessage,
|
|
9543
|
+
selectedValue: selectedValue,
|
|
9544
|
+
xIconShow: xIconShow,
|
|
9545
|
+
onChange: onChange,
|
|
9546
|
+
showLabelOnTop: showLabelOnTop,
|
|
9547
|
+
orderBy: orderBy,
|
|
9548
|
+
elementType: elementType
|
|
9549
|
+
}));
|
|
9550
|
+
};
|
|
9548
9551
|
DropdownNew.propTypes = {
|
|
9549
9552
|
placeHolder: PropTypes.string,
|
|
9550
9553
|
label: PropTypes.string,
|
|
@@ -9966,20 +9969,21 @@ const DatePicker = ({
|
|
|
9966
9969
|
};
|
|
9967
9970
|
|
|
9968
9971
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
9969
|
-
const RangePicker =
|
|
9970
|
-
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
9975
|
-
|
|
9976
|
-
|
|
9977
|
-
|
|
9978
|
-
|
|
9979
|
-
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
|
|
9972
|
+
const RangePicker = _ref => {
|
|
9973
|
+
let {
|
|
9974
|
+
label,
|
|
9975
|
+
onChange,
|
|
9976
|
+
borderRadius,
|
|
9977
|
+
required,
|
|
9978
|
+
width,
|
|
9979
|
+
height,
|
|
9980
|
+
placeholder,
|
|
9981
|
+
disabled,
|
|
9982
|
+
borderColor,
|
|
9983
|
+
borderColorFocus,
|
|
9984
|
+
textColor,
|
|
9985
|
+
selectedValue
|
|
9986
|
+
} = _ref;
|
|
9983
9987
|
const [isFocused, setIsFocused] = useState(false);
|
|
9984
9988
|
const [isOpen, setIsOpen] = useState(false);
|
|
9985
9989
|
const [value, setValue] = useState(''); // Added value state
|
|
@@ -10420,22 +10424,23 @@ const QuarterPopupPicker = ({
|
|
|
10420
10424
|
};
|
|
10421
10425
|
|
|
10422
10426
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10423
|
-
const QuarterPicker =
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10427
|
+
const QuarterPicker = _ref => {
|
|
10428
|
+
let {
|
|
10429
|
+
availableQuarters,
|
|
10430
|
+
// ["Q1-2024"]
|
|
10431
|
+
label,
|
|
10432
|
+
onChange,
|
|
10433
|
+
borderRadius,
|
|
10434
|
+
required,
|
|
10435
|
+
width,
|
|
10436
|
+
height,
|
|
10437
|
+
placeholder,
|
|
10438
|
+
disabled,
|
|
10439
|
+
borderColor,
|
|
10440
|
+
borderColorFocus,
|
|
10441
|
+
textColor,
|
|
10442
|
+
selectedValue
|
|
10443
|
+
} = _ref;
|
|
10439
10444
|
const [isFocused, setIsFocused] = useState(false);
|
|
10440
10445
|
const [isOpen, setIsOpen] = useState(false);
|
|
10441
10446
|
const [value, setValue] = useState('');
|
|
@@ -10882,21 +10887,22 @@ const MonthPopupPicker = ({
|
|
|
10882
10887
|
};
|
|
10883
10888
|
|
|
10884
10889
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10885
|
-
const MonthPicker =
|
|
10886
|
-
|
|
10887
|
-
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
|
|
10891
|
-
|
|
10892
|
-
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10890
|
+
const MonthPicker = _ref => {
|
|
10891
|
+
let {
|
|
10892
|
+
availableMonths,
|
|
10893
|
+
label,
|
|
10894
|
+
onChange,
|
|
10895
|
+
borderRadius,
|
|
10896
|
+
required,
|
|
10897
|
+
width,
|
|
10898
|
+
height,
|
|
10899
|
+
placeholder,
|
|
10900
|
+
disabled,
|
|
10901
|
+
borderColor,
|
|
10902
|
+
borderColorFocus,
|
|
10903
|
+
textColor,
|
|
10904
|
+
selectedValue
|
|
10905
|
+
} = _ref;
|
|
10900
10906
|
const [isFocused, setIsFocused] = useState(false);
|
|
10901
10907
|
const [isOpen, setIsOpen] = useState(false);
|
|
10902
10908
|
const [value, setValue] = useState('');
|
|
@@ -11241,7 +11247,7 @@ const FilterPanel = props => {
|
|
|
11241
11247
|
inputSubType: 'year'
|
|
11242
11248
|
} : ''),
|
|
11243
11249
|
...(newPeriodPickerSelectedValue[0]?.value === 'ytd' ? {
|
|
11244
|
-
inputSubType: '
|
|
11250
|
+
inputSubType: 'ytd'
|
|
11245
11251
|
} : ''),
|
|
11246
11252
|
...(newPeriodPickerSelectedValue[0]?.value === 'month' ? {
|
|
11247
11253
|
inputSubType: 'month'
|
|
@@ -11264,7 +11270,7 @@ const FilterPanel = props => {
|
|
|
11264
11270
|
inputSubType: 'year'
|
|
11265
11271
|
} : ''),
|
|
11266
11272
|
...(newPeriodPickerSelectedValue[0]?.value === 'ytd' ? {
|
|
11267
|
-
inputSubType: '
|
|
11273
|
+
inputSubType: 'ytd'
|
|
11268
11274
|
} : ''),
|
|
11269
11275
|
...(newPeriodPickerSelectedValue[0]?.value === 'month' ? {
|
|
11270
11276
|
inputSubType: 'month'
|
|
@@ -11454,7 +11460,7 @@ const FilterPanel = props => {
|
|
|
11454
11460
|
const selectedValue = eventRangePicker && typeof eventRangePicker === 'string' ? `${eventRangePicker}` : undefined;
|
|
11455
11461
|
const newFieldsDataState = FieldsDataState?.map(itemField => itemField.name === item.name ? {
|
|
11456
11462
|
...itemField,
|
|
11457
|
-
inputSubType: '
|
|
11463
|
+
inputSubType: 'ytd',
|
|
11458
11464
|
selectedValue: selectedValue ? `${selectedValue}` : undefined
|
|
11459
11465
|
} : itemField);
|
|
11460
11466
|
setFieldsDataState(newFieldsDataState);
|
|
@@ -11463,14 +11469,14 @@ const FilterPanel = props => {
|
|
|
11463
11469
|
changedItem: {
|
|
11464
11470
|
name: item.name,
|
|
11465
11471
|
inputType: item.inputType,
|
|
11466
|
-
inputSubType: '
|
|
11472
|
+
inputSubType: 'ytd',
|
|
11467
11473
|
selectedValue: selectedValue ? `${selectedValue}` : undefined
|
|
11468
11474
|
}
|
|
11469
11475
|
});
|
|
11470
11476
|
},
|
|
11471
11477
|
required: item.required,
|
|
11472
11478
|
placeholder: "Select Date Range ...",
|
|
11473
|
-
selectedValue:
|
|
11479
|
+
selectedValue: getYTDString(),
|
|
11474
11480
|
disabled: true,
|
|
11475
11481
|
width: "100%",
|
|
11476
11482
|
height: "55px"
|
|
@@ -24122,21 +24128,22 @@ const DeleteIcon = styled.div`
|
|
|
24122
24128
|
position: absolute;
|
|
24123
24129
|
`;
|
|
24124
24130
|
|
|
24125
|
-
const QuickFilterDropdownSingle =
|
|
24126
|
-
|
|
24127
|
-
|
|
24128
|
-
|
|
24129
|
-
|
|
24130
|
-
|
|
24131
|
-
|
|
24132
|
-
|
|
24133
|
-
|
|
24134
|
-
|
|
24135
|
-
|
|
24136
|
-
|
|
24137
|
-
|
|
24138
|
-
|
|
24139
|
-
|
|
24131
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
24132
|
+
let {
|
|
24133
|
+
label,
|
|
24134
|
+
hoverColor,
|
|
24135
|
+
options,
|
|
24136
|
+
selectedValue,
|
|
24137
|
+
placeHolder,
|
|
24138
|
+
onChange,
|
|
24139
|
+
disabled,
|
|
24140
|
+
width,
|
|
24141
|
+
error,
|
|
24142
|
+
errorMessage,
|
|
24143
|
+
xIconShow,
|
|
24144
|
+
labelColor,
|
|
24145
|
+
showLabelOnTop
|
|
24146
|
+
} = _ref;
|
|
24140
24147
|
const [isFocused, setIsFocused] = useState(false);
|
|
24141
24148
|
const [showOptions, setShowOptions] = useState(false);
|
|
24142
24149
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24534,23 +24541,24 @@ const IconContainer$2 = styled.div`
|
|
|
24534
24541
|
cursor: pointer;
|
|
24535
24542
|
`;
|
|
24536
24543
|
|
|
24537
|
-
const QuickFilterDropdownMultiSelection =
|
|
24538
|
-
|
|
24539
|
-
|
|
24540
|
-
|
|
24541
|
-
|
|
24542
|
-
|
|
24543
|
-
|
|
24544
|
-
|
|
24545
|
-
|
|
24546
|
-
|
|
24547
|
-
|
|
24548
|
-
|
|
24549
|
-
|
|
24550
|
-
|
|
24551
|
-
|
|
24552
|
-
|
|
24553
|
-
|
|
24544
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24545
|
+
let {
|
|
24546
|
+
label,
|
|
24547
|
+
labelEmptyValue,
|
|
24548
|
+
options,
|
|
24549
|
+
selectedValue,
|
|
24550
|
+
placeHolder,
|
|
24551
|
+
onChange,
|
|
24552
|
+
required,
|
|
24553
|
+
disabled,
|
|
24554
|
+
width,
|
|
24555
|
+
error,
|
|
24556
|
+
errorMessage,
|
|
24557
|
+
labelColor,
|
|
24558
|
+
xIconShow,
|
|
24559
|
+
checkBoxColor,
|
|
24560
|
+
showLabelOnTop
|
|
24561
|
+
} = _ref;
|
|
24554
24562
|
const [isFocused, setIsFocused] = useState(false);
|
|
24555
24563
|
const [showOptions, setShowOptions] = useState(false);
|
|
24556
24564
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -31401,7 +31409,7 @@ const BatteryChart = props => {
|
|
|
31401
31409
|
// ];
|
|
31402
31410
|
|
|
31403
31411
|
const SeparatedLineBarChart = ({
|
|
31404
|
-
barlineData
|
|
31412
|
+
barlineData = []
|
|
31405
31413
|
}) => {
|
|
31406
31414
|
// Sort the data by week number extracted from the label
|
|
31407
31415
|
const sortedData = barlineData?.sort((a, b) => {
|
|
@@ -31939,7 +31947,7 @@ SegmentedButton.defaultProps = {
|
|
|
31939
31947
|
};
|
|
31940
31948
|
|
|
31941
31949
|
function InnerBarChart({
|
|
31942
|
-
data
|
|
31950
|
+
data = []
|
|
31943
31951
|
}) {
|
|
31944
31952
|
const processedData = data.map(item => {
|
|
31945
31953
|
const parts = item.label.replace("Vendor Selling Event:", "").trim();
|