@dexteel/mesf-core 7.13.1 → 7.13.3
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,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [7.13.3](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v7.13.2...@dexteel/mesf-core-v7.13.3) (2026-02-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **Shift Navigator Control:** Add Grid2Props type to props. ([e9af1af](https://github.com/dexteel/mesf-core-frontend/commit/e9af1af61023156dc6c96166b6ab4e8f03ca676e))
|
|
9
|
+
* **Shift Navigator Control:** Add Grid2Props type to props. ([3c3f151](https://github.com/dexteel/mesf-core-frontend/commit/3c3f151b4430b4cbe4e0a576d2d1abf20f120039))
|
|
10
|
+
|
|
11
|
+
## [7.13.2](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v7.13.1...@dexteel/mesf-core-v7.13.2) (2026-02-13)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **Shift Navigator Control:** Add props to customize better the style. ([b2ffa1c](https://github.com/dexteel/mesf-core-frontend/commit/b2ffa1c3fa1578352c2463e5ddd1a3e18a8a58c9))
|
|
17
|
+
* **Shift Navigator Control:** Add props to customize better the style. ([0f488d3](https://github.com/dexteel/mesf-core-frontend/commit/0f488d30819ae0a2b225cf76ade56e4b72f1cb32))
|
|
18
|
+
|
|
3
19
|
## [7.13.1](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v7.13.0...@dexteel/mesf-core-v7.13.1) (2026-02-12)
|
|
4
20
|
|
|
5
21
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { Grid2Props } from "@mui/material";
|
|
1
2
|
import React from "react";
|
|
2
3
|
export type ShiftNavigatorDirection = "Previous" | "Next" | "Last";
|
|
3
|
-
export declare const ShiftDayNavigatorControl: ({ useRouter, onShiftChange, preventInit, withPaper, margin, }: {
|
|
4
|
+
export declare const ShiftDayNavigatorControl: ({ useRouter, onShiftChange, preventInit, withPaper, margin, ...props }: {
|
|
4
5
|
useRouter?: boolean;
|
|
5
6
|
onShiftChange?: (shiftId: number) => void;
|
|
6
7
|
preventInit?: boolean;
|
|
7
8
|
withPaper?: boolean;
|
|
8
9
|
margin?: string;
|
|
9
|
-
}) => React.JSX.Element;
|
|
10
|
+
} & Grid2Props) => React.JSX.Element;
|
package/dist/index.esm.js
CHANGED
|
@@ -5713,8 +5713,9 @@ const ShiftNavigatorProvider = ({ children }) => {
|
|
|
5713
5713
|
return (React__default.createElement(ShiftNavigatorContext.Provider, { value: shiftNavigatorManager }, children));
|
|
5714
5714
|
};
|
|
5715
5715
|
|
|
5716
|
-
const ShiftDayNavigatorControl = (
|
|
5717
|
-
var
|
|
5716
|
+
const ShiftDayNavigatorControl = (_a) => {
|
|
5717
|
+
var _b;
|
|
5718
|
+
var { useRouter, onShiftChange, preventInit, withPaper = true, margin = "1rem 1rem 1rem 1rem" } = _a, props = __rest(_a, ["useRouter", "onShiftChange", "preventInit", "withPaper", "margin"]);
|
|
5718
5719
|
const { shiftInfo, initShiftNavigator, moveShift, getShiftDataFromAPI } = useShiftNavigator();
|
|
5719
5720
|
const [shiftInfoCopy, setShiftInfoCopy] = useState(shiftInfo);
|
|
5720
5721
|
const [error, setError] = useState("");
|
|
@@ -5726,7 +5727,7 @@ const ShiftDayNavigatorControl = ({ useRouter, onShiftChange, preventInit, withP
|
|
|
5726
5727
|
};
|
|
5727
5728
|
if (shiftInfo !== null && shiftInfo.CurrentShiftId) {
|
|
5728
5729
|
if (useRouter) {
|
|
5729
|
-
updateHistory((
|
|
5730
|
+
updateHistory((_b = shiftInfo === null || shiftInfo === void 0 ? void 0 : shiftInfo.CurrentShiftId) === null || _b === void 0 ? void 0 : _b.toString());
|
|
5730
5731
|
}
|
|
5731
5732
|
}
|
|
5732
5733
|
useEffect(() => {
|
|
@@ -5777,7 +5778,7 @@ const ShiftDayNavigatorControl = ({ useRouter, onShiftChange, preventInit, withP
|
|
|
5777
5778
|
}
|
|
5778
5779
|
}
|
|
5779
5780
|
}, []);
|
|
5780
|
-
const gridContent = (React__default.createElement(Grid2, { container: true, justifyContent: "flex-start", alignItems: "center", spacing: 1, px: 1 },
|
|
5781
|
+
const gridContent = (React__default.createElement(Grid2, Object.assign({ container: true, justifyContent: "flex-start", alignItems: "center", spacing: 1, px: 1 }, props),
|
|
5781
5782
|
React__default.createElement(Grid2, { size: "auto" },
|
|
5782
5783
|
React__default.createElement(Tooltip, { title: "Previous Shift" },
|
|
5783
5784
|
React__default.createElement(IconButton$1, { "aria-label": "Previous Shift", color: "primary", disabled: !(shiftInfo === null || shiftInfo === void 0 ? void 0 : shiftInfo.PreviousShiftId), onClick: () => {
|