sag_components 2.0.0-beta284 → 2.0.0-beta286
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.d.ts +6 -0
- package/dist/index.esm.js +83 -69
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +83 -69
- package/dist/index.js.map +1 -1
- package/dist/types/components/DownloadProgress/DownloadProgress.d.ts +6 -0
- package/dist/types/components/DownloadProgress/DownloadProgress.stories.d.ts +21 -10
- package/dist/types/components/DownloadProgress/DownloadProgress.style.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8940,28 +8940,27 @@ const IconContainer$5 = styled__default["default"].div`
|
|
|
8940
8940
|
cursor: pointer;
|
|
8941
8941
|
`;
|
|
8942
8942
|
|
|
8943
|
-
const DropdownSingleNew =
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
} = _ref;
|
|
8943
|
+
const DropdownSingleNew = ({
|
|
8944
|
+
label,
|
|
8945
|
+
labelEmptyValue,
|
|
8946
|
+
options,
|
|
8947
|
+
selectedValue,
|
|
8948
|
+
onChange,
|
|
8949
|
+
required,
|
|
8950
|
+
disabled,
|
|
8951
|
+
width,
|
|
8952
|
+
height,
|
|
8953
|
+
minHeight,
|
|
8954
|
+
withMarginBottom = true,
|
|
8955
|
+
error,
|
|
8956
|
+
errorMessage,
|
|
8957
|
+
xIconShow,
|
|
8958
|
+
labelColor,
|
|
8959
|
+
showLabelOnTop,
|
|
8960
|
+
orderBy,
|
|
8961
|
+
placeHolder = "",
|
|
8962
|
+
elementType
|
|
8963
|
+
}) => {
|
|
8965
8964
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
8966
8965
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
8967
8966
|
const [showAbove, setShowAbove] = React$1.useState(false);
|
|
@@ -24654,26 +24653,25 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24654
24653
|
cursor: pointer;
|
|
24655
24654
|
`;
|
|
24656
24655
|
|
|
24657
|
-
const QuickFilterDropdownMultiSelection =
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24668
|
-
|
|
24669
|
-
|
|
24670
|
-
|
|
24671
|
-
|
|
24672
|
-
|
|
24673
|
-
|
|
24674
|
-
|
|
24675
|
-
|
|
24676
|
-
} = _ref;
|
|
24656
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24657
|
+
label,
|
|
24658
|
+
labelEmptyValue,
|
|
24659
|
+
options,
|
|
24660
|
+
selectedValue,
|
|
24661
|
+
placeHolder,
|
|
24662
|
+
onChange,
|
|
24663
|
+
required,
|
|
24664
|
+
disabled,
|
|
24665
|
+
width,
|
|
24666
|
+
height,
|
|
24667
|
+
error,
|
|
24668
|
+
errorMessage,
|
|
24669
|
+
labelColor,
|
|
24670
|
+
xIconShow,
|
|
24671
|
+
checkBoxColor,
|
|
24672
|
+
showLabelOnTop,
|
|
24673
|
+
dropdownHeight
|
|
24674
|
+
}) => {
|
|
24677
24675
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24678
24676
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24679
24677
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -34209,7 +34207,7 @@ const Header$3 = styled__default["default"].div`
|
|
|
34209
34207
|
align-items: flex-start;
|
|
34210
34208
|
}
|
|
34211
34209
|
`;
|
|
34212
|
-
const CloseButton$
|
|
34210
|
+
const CloseButton$2 = styled__default["default"].button`
|
|
34213
34211
|
position: absolute;
|
|
34214
34212
|
top: -10px;
|
|
34215
34213
|
right: 0px;
|
|
@@ -34410,7 +34408,7 @@ const InsightsCarousel = _ref => {
|
|
|
34410
34408
|
$titleColor: titleColor
|
|
34411
34409
|
}, /*#__PURE__*/React__default["default"].cloneElement(icon, {
|
|
34412
34410
|
fill: iconColor
|
|
34413
|
-
}), title), /*#__PURE__*/React__default["default"].createElement(CloseButton$
|
|
34411
|
+
}), title), /*#__PURE__*/React__default["default"].createElement(CloseButton$2, {
|
|
34414
34412
|
onClick: () => onClose?.({
|
|
34415
34413
|
label: "closeCarousel"
|
|
34416
34414
|
}),
|
|
@@ -34547,14 +34545,13 @@ ProgressBar.defaultProps = {
|
|
|
34547
34545
|
|
|
34548
34546
|
const DownloadProgressMainContainer = styled__default["default"].div`
|
|
34549
34547
|
font-family: "Poppins", sans-serif;
|
|
34550
|
-
font-
|
|
34551
|
-
font-size: 12px;
|
|
34548
|
+
font-size: 14px;
|
|
34552
34549
|
font-weight: 400;
|
|
34553
34550
|
color: #212121;
|
|
34554
34551
|
line-height: 14px;
|
|
34555
34552
|
position: relative;
|
|
34556
34553
|
margin: 0;
|
|
34557
|
-
padding: 10px;
|
|
34554
|
+
padding: 15px 20px 10px;
|
|
34558
34555
|
background: #ffffff;
|
|
34559
34556
|
border-radius: 12px;
|
|
34560
34557
|
box-shadow: ${props => props.showShadow ? '0px 0px 20px 0px rgba(0, 0, 0, 0.2)' : ''};
|
|
@@ -34562,14 +34559,13 @@ const DownloadProgressMainContainer = styled__default["default"].div`
|
|
|
34562
34559
|
const DownloadProgressContentContainer = styled__default["default"].div`
|
|
34563
34560
|
display: flex;
|
|
34564
34561
|
align-items: center;
|
|
34565
|
-
margin: 0 10px;
|
|
34566
34562
|
gap: 10px;
|
|
34567
34563
|
`;
|
|
34568
|
-
const DownloadProgressTitle = styled__default["default"].
|
|
34564
|
+
const DownloadProgressTitle = styled__default["default"].h4`
|
|
34569
34565
|
font-weight: 400;
|
|
34570
|
-
margin: 10px;
|
|
34566
|
+
margin: 0 0 10px;
|
|
34571
34567
|
`;
|
|
34572
|
-
const DownloadProgressStatusMessage = styled__default["default"].
|
|
34568
|
+
const DownloadProgressStatusMessage = styled__default["default"].h5`
|
|
34573
34569
|
margin: 3px 0;
|
|
34574
34570
|
&.DownloadProgressStatusMessage_succeeded{
|
|
34575
34571
|
font-weight: 500;
|
|
@@ -34583,11 +34579,19 @@ const DownloadProgressStatusMessage = styled__default["default"].h3`
|
|
|
34583
34579
|
font-weight: 400;
|
|
34584
34580
|
text-decoration: underline;
|
|
34585
34581
|
&:hover {
|
|
34586
|
-
|
|
34587
|
-
|
|
34588
|
-
|
|
34582
|
+
background-Color: #f1f1f1;
|
|
34583
|
+
cursor: pointer;
|
|
34584
|
+
}
|
|
34589
34585
|
}
|
|
34590
34586
|
`;
|
|
34587
|
+
const CloseButton$1 = styled__default["default"].button`
|
|
34588
|
+
position: absolute;
|
|
34589
|
+
top: 15px;
|
|
34590
|
+
right: 20px;
|
|
34591
|
+
background: none;
|
|
34592
|
+
border: none;
|
|
34593
|
+
cursor: pointer;
|
|
34594
|
+
`;
|
|
34591
34595
|
|
|
34592
34596
|
const DownloadProgress = props => {
|
|
34593
34597
|
const {
|
|
@@ -34596,11 +34600,13 @@ const DownloadProgress = props => {
|
|
|
34596
34600
|
failedMessage,
|
|
34597
34601
|
downloadStatus,
|
|
34598
34602
|
showShadow,
|
|
34603
|
+
showCloseButton,
|
|
34599
34604
|
progressPercent,
|
|
34600
34605
|
refreshInterval,
|
|
34601
34606
|
progressBarColor,
|
|
34602
34607
|
onTryAgainClick,
|
|
34603
|
-
className
|
|
34608
|
+
className,
|
|
34609
|
+
onCloseClick
|
|
34604
34610
|
} = props;
|
|
34605
34611
|
const [DownloadStatus, setDownloadStatus] = React$1.useState(downloadStatus);
|
|
34606
34612
|
React$1.useEffect(() => {
|
|
@@ -34658,7 +34664,12 @@ const DownloadProgress = props => {
|
|
|
34658
34664
|
showShadow: showShadow
|
|
34659
34665
|
}, /*#__PURE__*/React__default["default"].createElement(DownloadProgressTitle, {
|
|
34660
34666
|
className: "DownloadProgressTitle"
|
|
34661
|
-
}, title
|
|
34667
|
+
}, title, showCloseButton && /*#__PURE__*/React__default["default"].createElement(CloseButton$1, {
|
|
34668
|
+
onClick: onCloseClick
|
|
34669
|
+
}, /*#__PURE__*/React__default["default"].createElement(CloseXIcon, {
|
|
34670
|
+
width: "12",
|
|
34671
|
+
height: "12"
|
|
34672
|
+
}))), displayProgressContent());
|
|
34662
34673
|
};
|
|
34663
34674
|
DownloadProgress.propTypes = {
|
|
34664
34675
|
title: PropTypes.string,
|
|
@@ -34666,6 +34677,8 @@ DownloadProgress.propTypes = {
|
|
|
34666
34677
|
failedMessage: PropTypes.string,
|
|
34667
34678
|
downloadStatus: PropTypes.string,
|
|
34668
34679
|
showShadow: PropTypes.bool,
|
|
34680
|
+
showCloseButton: PropTypes.bool,
|
|
34681
|
+
onCloseClick: PropTypes.func,
|
|
34669
34682
|
progressPercent: PropTypes.number,
|
|
34670
34683
|
refreshInterval: PropTypes.number,
|
|
34671
34684
|
progressBarColor: PropTypes.string,
|
|
@@ -34678,6 +34691,8 @@ DownloadProgress.defaultProps = {
|
|
|
34678
34691
|
failedMessage: 'Something went wrong',
|
|
34679
34692
|
downloadStatus: 'inProgress',
|
|
34680
34693
|
showShadow: true,
|
|
34694
|
+
showCloseButton: false,
|
|
34695
|
+
onCloseClick: () => {},
|
|
34681
34696
|
progressPercent: 0,
|
|
34682
34697
|
refreshInterval: 100,
|
|
34683
34698
|
progressBarColor: '#92CF17',
|
|
@@ -34986,18 +35001,17 @@ styled.css`
|
|
|
34986
35001
|
* • onApply(start,end) — callback, both numbers (inclusive)
|
|
34987
35002
|
* • onCancel() — callback
|
|
34988
35003
|
*/
|
|
34989
|
-
const WeeksCalendar =
|
|
34990
|
-
|
|
34991
|
-
|
|
34992
|
-
|
|
34993
|
-
|
|
34994
|
-
|
|
34995
|
-
|
|
34996
|
-
|
|
34997
|
-
|
|
34998
|
-
|
|
34999
|
-
|
|
35000
|
-
} = _ref;
|
|
35004
|
+
const WeeksCalendar = ({
|
|
35005
|
+
year,
|
|
35006
|
+
defaultStartWeek = null,
|
|
35007
|
+
defaultEndWeek = null,
|
|
35008
|
+
backgroundColor = "#066768",
|
|
35009
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
35010
|
+
allowedWeekRange = null,
|
|
35011
|
+
// New prop for range restriction
|
|
35012
|
+
onApply,
|
|
35013
|
+
onCancel
|
|
35014
|
+
}) => {
|
|
35001
35015
|
// state -------------------------------------------------
|
|
35002
35016
|
const [startWeek, setStartWeek] = React$1.useState(defaultStartWeek);
|
|
35003
35017
|
const [endWeek, setEndWeek] = React$1.useState(defaultEndWeek);
|
|
@@ -57461,7 +57475,7 @@ const scrollableStyles = `
|
|
|
57461
57475
|
}
|
|
57462
57476
|
`;
|
|
57463
57477
|
const TooltipWrapper = styled__default["default"](Tooltip$2)`
|
|
57464
|
-
|
|
57478
|
+
width: 100%;
|
|
57465
57479
|
`;
|
|
57466
57480
|
const DropdownContainer = styled__default["default"].div`
|
|
57467
57481
|
position: relative;
|