@dexteel/mesf-core 7.17.2 → 7.18.0
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/.github/workflows/publish-to-npm.yaml +2 -7
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +7 -0
- package/dist/configuration/pages/shifCrew/ShiftsCrewsPage.d.ts +0 -2
- package/dist/configuration/pages/shifCrew/components/Create/CreateShift.d.ts +3 -1
- package/dist/configuration/pages/shifCrew/components/Delete/DeleteShift.d.ts +3 -1
- package/dist/configuration/pages/shifCrew/components/Edit/EditShift.d.ts +3 -1
- package/dist/configuration/pages/shifCrew/repositories/ShiftsCrewsRepository.d.ts +3 -3
- package/dist/controls/index.d.ts +2 -0
- package/dist/controls/shift-navigator/component/shift-navigator.control.d.ts +2 -1
- package/dist/controls/shift-navigator/hook/useShiftNavigator.d.ts +6 -6
- package/dist/controls/shift-navigator-v2/repositories/ShiftsRepository.d.ts +1 -0
- package/dist/controls/shift-selector/ShiftAutocomplete.d.ts +12 -2
- package/dist/controls/shift-selector/repositories/ShiftRepository.d.ts +6 -0
- package/dist/index.esm.js +1482 -1412
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -20,16 +20,11 @@ jobs:
|
|
|
20
20
|
(github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release-please'))
|
|
21
21
|
runs-on: ubuntu-latest
|
|
22
22
|
steps:
|
|
23
|
-
- uses: actions/checkout@
|
|
23
|
+
- uses: actions/checkout@v5
|
|
24
24
|
- name: Setup Node.js
|
|
25
25
|
uses: actions/setup-node@v4
|
|
26
26
|
with:
|
|
27
|
-
node-version: 'lts/
|
|
28
|
-
- name: Upgrade npm for Trusted Publishing
|
|
29
|
-
run: |
|
|
30
|
-
npm install -g npm@latest
|
|
31
|
-
npm --version
|
|
32
|
-
npm config set registry https://registry.npmjs.org/
|
|
27
|
+
node-version: 'lts/krypton' # Node 24 LTS
|
|
33
28
|
- name: Install dependencies
|
|
34
29
|
run: npm install
|
|
35
30
|
- name: Build
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [7.18.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v7.17.2...@dexteel/mesf-core-v7.18.0) (2026-04-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Add AssetId support to Shifts ([#648](https://github.com/dexteel/mesf-core-frontend/issues/648)) ([75f077c](https://github.com/dexteel/mesf-core-frontend/commit/75f077cf82d91192f5a53fd48ea8addf688acdc8))
|
|
9
|
+
|
|
3
10
|
## [7.17.2](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v7.17.1...@dexteel/mesf-core-v7.17.2) (2026-03-27)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -5,6 +5,8 @@ type Props = {
|
|
|
5
5
|
show: boolean;
|
|
6
6
|
onHide: (shouldUpdate: boolean) => void;
|
|
7
7
|
suffixTitle?: string;
|
|
8
|
+
assetId: number | null;
|
|
9
|
+
assetName: string;
|
|
8
10
|
};
|
|
9
|
-
export declare const CreateShift: ({ shiftSelected, show, onHide, suffixTitle, }: Props) => React.JSX.Element;
|
|
11
|
+
export declare const CreateShift: ({ shiftSelected, show, onHide, suffixTitle, assetId, assetName, }: Props) => React.JSX.Element;
|
|
10
12
|
export {};
|
|
@@ -5,6 +5,8 @@ type Props = {
|
|
|
5
5
|
show: boolean;
|
|
6
6
|
onHide: (shouldUpdate: boolean) => void;
|
|
7
7
|
suffixTitle?: string;
|
|
8
|
+
assetId: number | null;
|
|
9
|
+
assetName: string;
|
|
8
10
|
};
|
|
9
|
-
export declare const DeleteShift: ({ shiftSelected, show, onHide, suffixTitle, }: Props) => React.JSX.Element;
|
|
11
|
+
export declare const DeleteShift: ({ shiftSelected, show, onHide, suffixTitle, assetId, assetName, }: Props) => React.JSX.Element;
|
|
10
12
|
export {};
|
|
@@ -5,6 +5,8 @@ type Props = {
|
|
|
5
5
|
show: boolean;
|
|
6
6
|
onHide: (shouldUpdate: boolean) => void;
|
|
7
7
|
suffixTitle?: string;
|
|
8
|
+
assetId: number | null;
|
|
9
|
+
assetName: string;
|
|
8
10
|
};
|
|
9
|
-
export declare const EditShift: ({ shiftSelected, show, onHide, suffixTitle, }: Props) => React.JSX.Element;
|
|
11
|
+
export declare const EditShift: ({ shiftSelected, show, onHide, suffixTitle, assetId, assetName, }: Props) => React.JSX.Element;
|
|
10
12
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ShiftParameters } from "../models/ShiftParameters";
|
|
2
|
-
export declare const getShiftParameters: (signal?: AbortSignal) => Promise<ShiftParameters[]>;
|
|
3
|
-
export declare const upsertShiftParameters: ({ PatternStart, ShiftCodes, Crews, CrewRotation, Comments }: ShiftParameters, isUpdate?: boolean) => Promise<void>;
|
|
4
|
-
export declare const deleteShiftParameters: (PatternStart: Date) => Promise<void>;
|
|
2
|
+
export declare const getShiftParameters: (assetId: number | null, signal?: AbortSignal) => Promise<ShiftParameters[]>;
|
|
3
|
+
export declare const upsertShiftParameters: ({ PatternStart, ShiftCodes, Crews, CrewRotation, Comments }: ShiftParameters, assetId: number | null, isUpdate?: boolean) => Promise<void>;
|
|
4
|
+
export declare const deleteShiftParameters: (assetId: number | null, PatternStart: Date) => Promise<void>;
|
package/dist/controls/index.d.ts
CHANGED
|
@@ -5,4 +5,6 @@ export * from "./tables/dataGrid";
|
|
|
5
5
|
export * from "./panels";
|
|
6
6
|
export * from "./shift-navigator";
|
|
7
7
|
export * from "./shift-navigator-v2";
|
|
8
|
+
export * from "./shift-selector/ShiftAutocomplete";
|
|
9
|
+
export * from "./shift-selector/ShiftSelector";
|
|
8
10
|
export * from "./contextMenu";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Grid2Props } from "@mui/material";
|
|
2
2
|
import React from "react";
|
|
3
3
|
export type ShiftNavigatorDirection = "Previous" | "Next" | "Last";
|
|
4
|
-
export declare const ShiftDayNavigatorControl: ({ useRouter, onShiftChange, preventInit, withPaper, margin, ...props }: {
|
|
4
|
+
export declare const ShiftDayNavigatorControl: ({ useRouter, onShiftChange, preventInit, withPaper, margin, assetId, ...props }: {
|
|
5
5
|
useRouter?: boolean;
|
|
6
6
|
onShiftChange?: (shiftId: number) => void;
|
|
7
7
|
preventInit?: boolean;
|
|
8
8
|
withPaper?: boolean;
|
|
9
9
|
margin?: string;
|
|
10
|
+
assetId?: number;
|
|
10
11
|
} & Grid2Props) => React.JSX.Element;
|
|
@@ -2,13 +2,13 @@ import { ShiftNavigatorDirection } from "../component/shift-navigator.control";
|
|
|
2
2
|
import { ShiftInfo } from "../models/shift-navigator.model";
|
|
3
3
|
export declare const useShiftNavigatorManager: () => {
|
|
4
4
|
shiftInfo: ShiftInfo | null;
|
|
5
|
-
moveShift: (direction: ShiftNavigatorDirection) => Promise<ShiftInfo | void>;
|
|
6
|
-
getShiftDataFromAPI: (productionDate: Date | null, shiftId: number) => Promise<ShiftInfo | void>;
|
|
7
|
-
initShiftNavigator: () => Promise<ShiftInfo | void>;
|
|
5
|
+
moveShift: (direction: ShiftNavigatorDirection, assetId?: number | null) => Promise<ShiftInfo | void>;
|
|
6
|
+
getShiftDataFromAPI: (productionDate: Date | null, shiftId: number, assetId?: number | null) => Promise<ShiftInfo | void>;
|
|
7
|
+
initShiftNavigator: (assetId?: number | null) => Promise<ShiftInfo | void>;
|
|
8
8
|
};
|
|
9
9
|
export type ShiftNavigatorManagerResult = {
|
|
10
10
|
shiftInfo: ShiftInfo | null;
|
|
11
|
-
moveShift: (direction: ShiftNavigatorDirection) => Promise<ShiftInfo | void>;
|
|
12
|
-
getShiftDataFromAPI: (productionDate: Date | null, shiftId: number) => Promise<ShiftInfo | void>;
|
|
13
|
-
initShiftNavigator: () => Promise<ShiftInfo | void>;
|
|
11
|
+
moveShift: (direction: ShiftNavigatorDirection, assetId?: number | null) => Promise<ShiftInfo | void>;
|
|
12
|
+
getShiftDataFromAPI: (productionDate: Date | null, shiftId: number, assetId?: number | null) => Promise<ShiftInfo | void>;
|
|
13
|
+
initShiftNavigator: (assetId?: number | null) => Promise<ShiftInfo | void>;
|
|
14
14
|
};
|
|
@@ -2,6 +2,7 @@ import { ShiftsResponse } from "../models/shift-data";
|
|
|
2
2
|
export interface ShiftNavigatorFilterParams {
|
|
3
3
|
productionDate: Date | null;
|
|
4
4
|
shiftId: number;
|
|
5
|
+
assetId?: number | null;
|
|
5
6
|
}
|
|
6
7
|
export declare const getShiftsRangeByParameters: (period: string | null, Start?: Date | null, End?: Date | null, StartShiftId?: number | null, EndShiftId?: number | null, action?: "prev" | "next" | "last" | null) => Promise<{
|
|
7
8
|
ok: boolean;
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ShiftData } from "../shift-navigator-v2";
|
|
3
|
-
export declare const useShiftsAroundCurrent: ({ currentShiftId, shiftsRange, }: {
|
|
3
|
+
export declare const useShiftsAroundCurrent: ({ currentShiftId, shiftsRange, enabled, }: {
|
|
4
4
|
currentShiftId?: number;
|
|
5
5
|
shiftsRange?: number;
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
}) => import("@tanstack/react-query").UseQueryResult<ShiftData[], Error>;
|
|
8
|
+
export declare const useShiftsByRange: ({ shiftId, assetId, shiftsBefore, shiftsAfter, enabled, }: {
|
|
9
|
+
shiftId?: number;
|
|
10
|
+
assetId?: number;
|
|
11
|
+
shiftsBefore?: number;
|
|
12
|
+
shiftsAfter?: number;
|
|
13
|
+
enabled?: boolean;
|
|
6
14
|
}) => import("@tanstack/react-query").UseQueryResult<ShiftData[], Error>;
|
|
7
15
|
type Props = {
|
|
8
16
|
currentShiftId: number;
|
|
@@ -10,6 +18,8 @@ type Props = {
|
|
|
10
18
|
onShiftSelected: (shift: ShiftData | null) => void;
|
|
11
19
|
disabled?: boolean;
|
|
12
20
|
shiftsRange?: number;
|
|
21
|
+
assetId?: number;
|
|
22
|
+
shiftsAfter?: number;
|
|
13
23
|
};
|
|
14
|
-
export declare const ShiftAutocomplete: ({ currentShiftId, value, onShiftSelected, disabled, shiftsRange, }: Props) => React.JSX.Element;
|
|
24
|
+
export declare const ShiftAutocomplete: ({ currentShiftId, value, onShiftSelected, disabled, shiftsRange, assetId, shiftsAfter, }: Props) => React.JSX.Element;
|
|
15
25
|
export {};
|
|
@@ -3,6 +3,12 @@ import { ShiftData } from "../../shift-navigator-v2";
|
|
|
3
3
|
export declare const getShifts: (params: {
|
|
4
4
|
shiftId: number | null;
|
|
5
5
|
}, signal?: AbortSignal) => Promise<ShiftInfo[]>;
|
|
6
|
+
export declare const getShiftsByRange: ({ shiftId, assetId, shiftsBefore, shiftsAfter, }: {
|
|
7
|
+
shiftId?: number;
|
|
8
|
+
assetId?: number;
|
|
9
|
+
shiftsBefore?: number;
|
|
10
|
+
shiftsAfter?: number;
|
|
11
|
+
}) => Promise<ShiftData[]>;
|
|
6
12
|
export declare const getShiftsAroundCurrent: ({ currentShiftId, shiftsRange, }: {
|
|
7
13
|
currentShiftId?: number;
|
|
8
14
|
shiftsRange?: number;
|