sag_components 1.0.620 → 1.0.622
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.
|
@@ -21,7 +21,8 @@ const DownloadProgress = props => {
|
|
|
21
21
|
progressPercent,
|
|
22
22
|
refreshInterval,
|
|
23
23
|
progressBarColor,
|
|
24
|
-
onTryAgainClick
|
|
24
|
+
onTryAgainClick,
|
|
25
|
+
className
|
|
25
26
|
} = props;
|
|
26
27
|
const [DownloadStatus, setDownloadStatus] = (0, _react.useState)(downloadStatus);
|
|
27
28
|
(0, _react.useEffect)(() => {
|
|
@@ -75,7 +76,7 @@ const DownloadProgress = props => {
|
|
|
75
76
|
return content;
|
|
76
77
|
};
|
|
77
78
|
return /*#__PURE__*/_react.default.createElement(_DownloadProgress.DownloadProgressMainContainer, {
|
|
78
|
-
className:
|
|
79
|
+
className: className,
|
|
79
80
|
showShadow: showShadow
|
|
80
81
|
}, /*#__PURE__*/_react.default.createElement(_DownloadProgress.DownloadProgressTitle, {
|
|
81
82
|
className: "DownloadProgressTitle"
|
|
@@ -91,5 +92,6 @@ DownloadProgress.defaultProps = {
|
|
|
91
92
|
progressPercent: 0,
|
|
92
93
|
refreshInterval: 100,
|
|
93
94
|
progressBarColor: '#92CF17',
|
|
94
|
-
onTryAgainClick: () => {}
|
|
95
|
+
onTryAgainClick: () => {},
|
|
96
|
+
className: 'DownloadProgressMainContainer'
|
|
95
97
|
};
|
|
@@ -47,7 +47,10 @@ const FilterPanel = props => {
|
|
|
47
47
|
...itemFieldsDataState,
|
|
48
48
|
...(itemFieldsDataState.dropdownOptions ? {
|
|
49
49
|
dropdownOptions: foundItem !== null && foundItem !== void 0 && foundItem.dropdownOptions ? foundItem === null || foundItem === void 0 ? void 0 : foundItem.dropdownOptions : undefined
|
|
50
|
-
} : '')
|
|
50
|
+
} : ''),
|
|
51
|
+
...{
|
|
52
|
+
disabled: (foundItem === null || foundItem === void 0 ? void 0 : foundItem.disabled) || false
|
|
53
|
+
}
|
|
51
54
|
};
|
|
52
55
|
});
|
|
53
56
|
setFieldsDataState(newFieldsDataState);
|
|
@@ -243,6 +246,15 @@ const FilterPanel = props => {
|
|
|
243
246
|
content = /*#__PURE__*/_react.default.createElement(_Dropdown.Dropdown, {
|
|
244
247
|
className: "Dropdown",
|
|
245
248
|
name: item.name,
|
|
249
|
+
defaultValue: () => {
|
|
250
|
+
var _item$defaultValue, _item$defaultValue2;
|
|
251
|
+
if (!(item !== null && item !== void 0 && item.defaultValue)) return '';
|
|
252
|
+
const newValue = {
|
|
253
|
+
id: "".concat(item === null || item === void 0 ? void 0 : (_item$defaultValue = item.defaultValue) === null || _item$defaultValue === void 0 ? void 0 : _item$defaultValue.value),
|
|
254
|
+
label: "".concat(item === null || item === void 0 ? void 0 : (_item$defaultValue2 = item.defaultValue) === null || _item$defaultValue2 === void 0 ? void 0 : _item$defaultValue2.label)
|
|
255
|
+
};
|
|
256
|
+
return newValue;
|
|
257
|
+
},
|
|
246
258
|
reset: Reset,
|
|
247
259
|
showPopupIcon: true,
|
|
248
260
|
allowedInput: "all",
|