sag_components 1.0.653 → 1.0.655
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.
|
@@ -22,6 +22,7 @@ const Input = _ref => {
|
|
|
22
22
|
selectedValue,
|
|
23
23
|
placeHolder,
|
|
24
24
|
onChange,
|
|
25
|
+
onBlur,
|
|
25
26
|
required,
|
|
26
27
|
disabled,
|
|
27
28
|
width,
|
|
@@ -30,8 +31,7 @@ const Input = _ref => {
|
|
|
30
31
|
labelColor,
|
|
31
32
|
leftIcon,
|
|
32
33
|
rightIcon,
|
|
33
|
-
password
|
|
34
|
-
...props
|
|
34
|
+
password
|
|
35
35
|
} = _ref;
|
|
36
36
|
const [isFocused, setIsFocused] = (0, _react.useState)(false);
|
|
37
37
|
const [inputValue, setInputValue] = (0, _react.useState)('');
|
|
@@ -68,6 +68,7 @@ const Input = _ref => {
|
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
const handleBlur = () => {
|
|
71
|
+
onBlur();
|
|
71
72
|
setIsFocused(false);
|
|
72
73
|
};
|
|
73
74
|
const getLeftIcon = () => {
|
|
@@ -128,7 +129,7 @@ const Input = _ref => {
|
|
|
128
129
|
color: disabled ? '#D0D0D0' : 'red',
|
|
129
130
|
height: '16px'
|
|
130
131
|
}
|
|
131
|
-
}, "*")), /*#__PURE__*/_react.default.createElement(_Input.StyledInput,
|
|
132
|
+
}, "*")), /*#__PURE__*/_react.default.createElement(_Input.StyledInput, {
|
|
132
133
|
className: "StyledInput",
|
|
133
134
|
ref: inputRef,
|
|
134
135
|
type: password && !showPassword ? 'password' : 'text',
|
|
@@ -141,7 +142,7 @@ const Input = _ref => {
|
|
|
141
142
|
placeholder: isFocused ? placeHolder : '',
|
|
142
143
|
error: error,
|
|
143
144
|
isFocused: isFocused
|
|
144
|
-
}))
|
|
145
|
+
})), password ? getPasswordIcon() : getRightIcon()), error && (errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.length) > 0 && /*#__PURE__*/_react.default.createElement(_Input.ErrorMessage, {
|
|
145
146
|
className: "ErrorMessage",
|
|
146
147
|
width: width
|
|
147
148
|
}, errorMessage));
|
|
@@ -14,6 +14,7 @@ var _Benchmark = require("./Benchmark");
|
|
|
14
14
|
const TotalDoughnutChart = props => {
|
|
15
15
|
var _DoughnutChartContain, _DoughnutChartContain2;
|
|
16
16
|
const {
|
|
17
|
+
className,
|
|
17
18
|
title,
|
|
18
19
|
value,
|
|
19
20
|
addingBenchmark,
|
|
@@ -88,6 +89,7 @@ const TotalDoughnutChart = props => {
|
|
|
88
89
|
}
|
|
89
90
|
}, !isPercent && row.value && currencySign ? (0, _CommonFunctions.getCurrencySign)(currencyType, row.value) : '', !isPercent && row.value ? dotCutTrenty(row) : !isPercent && 'No Data', !isPercent && row.value && dotCut ? (0, _CommonFunctions.getFormattedUnits)(row.value) : '', !isPercent && row.value && itemsPercentagesValueAside && " (".concat(Math.round(row.value / value * 100), "%)"), isPercent && row.value && "".concat(row.value.toFixed(1), "%"));
|
|
90
91
|
return /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.ControlsContainer, {
|
|
92
|
+
className: className,
|
|
91
93
|
id: "ControlsContainer",
|
|
92
94
|
height: height,
|
|
93
95
|
width: width,
|