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
|
-
|
|
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
|
-
|
|
9548
|
-
|
|
9549
|
-
|
|
9550
|
-
|
|
9551
|
-
|
|
9552
|
-
|
|
9553
|
-
|
|
9554
|
-
|
|
9555
|
-
|
|
9556
|
-
|
|
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
|
-
|
|
9981
|
-
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
|
|
9991
|
-
|
|
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
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
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
|
-
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10905
|
-
|
|
10906
|
-
|
|
10907
|
-
|
|
10908
|
-
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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:
|
|
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
|
-
|
|
24137
|
-
|
|
24138
|
-
|
|
24139
|
-
|
|
24140
|
-
|
|
24141
|
-
|
|
24142
|
-
|
|
24143
|
-
|
|
24144
|
-
|
|
24145
|
-
|
|
24146
|
-
|
|
24147
|
-
|
|
24148
|
-
|
|
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
|
-
|
|
24549
|
-
|
|
24550
|
-
|
|
24551
|
-
|
|
24552
|
-
|
|
24553
|
-
|
|
24554
|
-
|
|
24555
|
-
|
|
24556
|
-
|
|
24557
|
-
|
|
24558
|
-
|
|
24559
|
-
|
|
24560
|
-
|
|
24561
|
-
|
|
24562
|
-
|
|
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();
|