sag_components 2.0.0-beta90 → 2.0.0-beta92
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
|
@@ -25119,13 +25119,13 @@ const OneColumnContainer = props => {
|
|
|
25119
25119
|
}))), isPercentOfChange && !isLoading && !hover && /*#__PURE__*/React$1.createElement(PercentOfChange, {
|
|
25120
25120
|
className: "PercentOfChange",
|
|
25121
25121
|
isPercentDataPositive: PercentOfChangeData
|
|
25122
|
-
}, PercentOfChangeData > 0 ? /*#__PURE__*/React$1.createElement(UpArrowIcon, {
|
|
25122
|
+
}, PercentOfChangeData === null || PercentOfChangeData === undefined ? 'N/A' : /*#__PURE__*/React$1.createElement(React$1.Fragment, null, PercentOfChangeData > 0 ? /*#__PURE__*/React$1.createElement(UpArrowIcon, {
|
|
25123
25123
|
width: "11",
|
|
25124
25124
|
height: "10"
|
|
25125
25125
|
}) : PercentOfChangeData < 0 ? /*#__PURE__*/React$1.createElement(DownArrowIcon, {
|
|
25126
25126
|
width: "11",
|
|
25127
25127
|
height: "10"
|
|
25128
|
-
}) : null, `${Math.abs(PercentOfChangeData)}%`), isLoading && /*#__PURE__*/React$1.createElement(LoadingDiv, {
|
|
25128
|
+
}) : null, `${Math.abs(PercentOfChangeData ?? 0)}%`)), isLoading && /*#__PURE__*/React$1.createElement(LoadingDiv, {
|
|
25129
25129
|
className: "loadingDiv"
|
|
25130
25130
|
}, /*#__PURE__*/React$1.createElement(SkeletonTheme, {
|
|
25131
25131
|
baseColor: "#EAEAEA"
|
|
@@ -31375,7 +31375,7 @@ const SegmentedButton = props => {
|
|
|
31375
31375
|
const {
|
|
31376
31376
|
className,
|
|
31377
31377
|
name,
|
|
31378
|
-
options,
|
|
31378
|
+
options = [],
|
|
31379
31379
|
width,
|
|
31380
31380
|
height,
|
|
31381
31381
|
controlradius,
|
|
@@ -31963,7 +31963,7 @@ const SingleChart = props => {
|
|
|
31963
31963
|
|
|
31964
31964
|
const InnerBar = props => {
|
|
31965
31965
|
const {
|
|
31966
|
-
brushInnerBarData,
|
|
31966
|
+
brushInnerBarData = [],
|
|
31967
31967
|
color,
|
|
31968
31968
|
backgroundColor,
|
|
31969
31969
|
hideBrush
|
|
@@ -32164,21 +32164,21 @@ const BrushChart = props => {
|
|
|
32164
32164
|
hideSecondBrush,
|
|
32165
32165
|
hideThirdBrush,
|
|
32166
32166
|
hideLastBrush,
|
|
32167
|
-
segmentedbuttonOptions,
|
|
32167
|
+
segmentedbuttonOptions = [],
|
|
32168
32168
|
title,
|
|
32169
32169
|
lineChartColor,
|
|
32170
32170
|
innerChartColor,
|
|
32171
32171
|
barChartColor
|
|
32172
32172
|
} = props;
|
|
32173
|
-
const [selectedOption, setSelectedOption] = useState(segmentedbuttonOptions[0]);
|
|
32173
|
+
const [selectedOption, setSelectedOption] = useState(segmentedbuttonOptions && segmentedbuttonOptions[0] || "");
|
|
32174
32174
|
return /*#__PURE__*/React$1.createElement(Container, {
|
|
32175
32175
|
height: height,
|
|
32176
32176
|
width: width
|
|
32177
32177
|
}, /*#__PURE__*/React$1.createElement(Title$5, null, title), /*#__PURE__*/React$1.createElement(SegmentedContainer, {
|
|
32178
32178
|
gap: "8px",
|
|
32179
|
-
options: segmentedbuttonOptions.map(value => ({
|
|
32179
|
+
options: segmentedbuttonOptions ? segmentedbuttonOptions.map(value => ({
|
|
32180
32180
|
value
|
|
32181
|
-
})),
|
|
32181
|
+
})) : [],
|
|
32182
32182
|
onClick: _ref => {
|
|
32183
32183
|
let {
|
|
32184
32184
|
value
|