@widergy/energy-ui 3.10.2 → 3.10.4
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.10.4](https://github.com/widergy/energy-ui/compare/v3.10.3...v3.10.4) (2024-06-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add only past month date validation ([#463](https://github.com/widergy/energy-ui/issues/463)) ([ef7957c](https://github.com/widergy/energy-ui/commit/ef7957c0e850d3793517ca4dfbd6eb3b769c17fc))
|
|
7
|
+
|
|
8
|
+
## [3.10.3](https://github.com/widergy/energy-ui/compare/v3.10.2...v3.10.3) (2024-06-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* fix attachment list preview building with external value changing ([#461](https://github.com/widergy/energy-ui/issues/461)) ([84beb3b](https://github.com/widergy/energy-ui/commit/84beb3bff5d3d2df1ea64b756c38eb21de6569ad))
|
|
14
|
+
|
|
1
15
|
## [3.10.2](https://github.com/widergy/energy-ui/compare/v3.10.1...v3.10.2) (2024-06-19)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -192,9 +192,9 @@ const AttachmentContainer = _ref => {
|
|
|
192
192
|
});
|
|
193
193
|
};
|
|
194
194
|
(0, _react.useEffect)(() => {
|
|
195
|
-
if (!(0, _isEmpty.default)(updatedFiles)) buildPreviews(updatedFiles);
|
|
195
|
+
if (!(0, _isEmpty.default)(updatedFiles)) buildPreviews(updatedFiles);else if (!(0, _isEmpty.default)(input.value)) buildPreviews(input.value.files);
|
|
196
196
|
if (Array.isArray(input.value) && !(0, _isEmpty.default)(input.value) || input.value && typeof input.value === 'string') loadDefaultValues();
|
|
197
|
-
}, []);
|
|
197
|
+
}, [input]);
|
|
198
198
|
return /*#__PURE__*/_react.default.createElement(_layout.default, {
|
|
199
199
|
acceptedFileTypes: acceptedFileTypes,
|
|
200
200
|
classes: classes,
|
|
@@ -79,7 +79,7 @@ const UTDatePicker = _ref => {
|
|
|
79
79
|
} = _ref;
|
|
80
80
|
const classes = (0, _react.useMemo)(() => (0, _classesUtils.mergeClasses)(themeClasses, classNames), [classNames]);
|
|
81
81
|
const configMask = (field === null || field === void 0 || (_field$configuration = field.configuration) === null || _field$configuration === void 0 ? void 0 : _field$configuration.date_mask) || _constants.OUTPUT_LABEL_MASK;
|
|
82
|
-
const onlyPastMonth = (field === null ||
|
|
82
|
+
const onlyPastMonth = ((_field$configuration2 = field.configuration) === null || _field$configuration2 === void 0 || (_field$configuration2 = _field$configuration2.customDateValidations) === null || _field$configuration2 === void 0 || (_field$configuration2 = _field$configuration2.onlyPastMonth) === null || _field$configuration2 === void 0 ? void 0 : _field$configuration2.active) || false;
|
|
83
83
|
const pastMonthDates = (0, _utils.getPastMonthDates)(onlyPastMonth);
|
|
84
84
|
const {
|
|
85
85
|
minDate,
|