@dexteel/mesf-core 5.7.0 → 5.7.1

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "5.7.0"
2
+ ".": "5.7.1"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # Changelog
2
+
3
+ ## [5.7.1](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v5.7.0...@dexteel/mesf-core-v5.7.1) (2025-08-25)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **shift-navigator:** fix custom date picker values and add date validation ([2535c74](https://github.com/dexteel/mesf-core-frontend/commit/2535c74d76a3157fa6cfbaf8f8eb9565a1a2923c))
9
+ * **shift-navigator:** fix custom date picker values and add date validation ([7f8f181](https://github.com/dexteel/mesf-core-frontend/commit/7f8f1818bee8b00519123c68e6bfa4bd5aa827ec))
10
+
11
+ ## [5.7.0] - 2025-07-17
12
+
13
+
14
+
1
15
  # Changelog
2
16
 
3
17
  ## [5.7.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v5.6.3...@dexteel/mesf-core-v5.7.0) (2025-07-17)
package/dist/index.esm.js CHANGED
@@ -1857,9 +1857,11 @@ var ShiftPeriodNavigatorControl = function (_a) {
1857
1857
  React__default.createElement(IconButton$1, { size: "small", color: "primary", disabled: loadingShiftPeriodList || isCustomMode, onClick: function () { return handleArrowNavigation("prev"); } },
1858
1858
  React__default.createElement(ChevronLeft, null))),
1859
1859
  React__default.createElement("div", { className: "".concat(classes.gridItem, " ").concat(classes.datePickerWrapper) },
1860
- React__default.createElement(DatePicker$1, { label: "Start", format: dateFormat, value: moment$2((startShift === null || startShift === void 0 ? void 0 : startShift.Start) || moment$2().subtract(1, "day")), onChange: function (value) {
1860
+ React__default.createElement(DatePicker$1, { label: "Start", format: dateFormat, value: isCustomMode
1861
+ ? customStartDate || moment$2().subtract(1, "day")
1862
+ : moment$2((startShift === null || startShift === void 0 ? void 0 : startShift.Start) || moment$2().subtract(1, "day")), onChange: function (value) {
1861
1863
  return handleDateChange(value ? moment$2(value) : null, "start");
1862
- }, disabled: loadingShiftPeriodList, enableAccessibleFieldDOMStructure: false, slots: {
1864
+ }, disabled: loadingShiftPeriodList, maxDate: isCustomMode ? moment$2() : undefined, enableAccessibleFieldDOMStructure: false, slots: {
1863
1865
  textField: function (props) { return (React__default.createElement(TextField, __assign({}, props, { size: "small", variant: "outlined", fullWidth: true, style: { width: "100%" }, InputProps: __assign(__assign({}, props.InputProps), { style: { paddingTop: "2px" } }) }))); },
1864
1866
  openPickerIcon: function () { return (React__default.createElement("div", { style: {
1865
1867
  display: "flex",
@@ -1877,9 +1879,11 @@ var ShiftPeriodNavigatorControl = function (_a) {
1877
1879
  width: "100%",
1878
1880
  } }, periodOptions.map(function (option) { return (React__default.createElement(MenuItem, { key: option.value, value: option.value }, option.label)); })))),
1879
1881
  React__default.createElement("div", { className: "".concat(classes.gridItem, " ").concat(classes.datePickerWrapper) },
1880
- React__default.createElement(DatePicker$1, { label: "End", format: dateFormat, value: moment$2((endShift === null || endShift === void 0 ? void 0 : endShift.Start) || moment$2().subtract(1, "day")), onChange: function (value) {
1882
+ React__default.createElement(DatePicker$1, { label: "End", format: dateFormat, value: isCustomMode
1883
+ ? customEndDate || moment$2()
1884
+ : moment$2((endShift === null || endShift === void 0 ? void 0 : endShift.End) || (endShift === null || endShift === void 0 ? void 0 : endShift.Start) || moment$2()), onChange: function (value) {
1881
1885
  return handleDateChange(value ? moment$2(value) : null, "end");
1882
- }, disabled: loadingShiftPeriodList, enableAccessibleFieldDOMStructure: false, slots: {
1886
+ }, disabled: loadingShiftPeriodList, minDate: isCustomMode && customStartDate ? customStartDate : undefined, maxDate: isCustomMode ? moment$2() : undefined, enableAccessibleFieldDOMStructure: false, slots: {
1883
1887
  textField: function (props) { return (React__default.createElement(TextField, __assign({}, props, { size: "small", variant: "outlined", fullWidth: true, style: { width: "100%" }, InputProps: __assign(__assign({}, props.InputProps), { style: { paddingTop: "2px" } }) }))); },
1884
1888
  openPickerIcon: function () { return (React__default.createElement("div", { style: {
1885
1889
  display: "flex",