@dexteel/mesf-core 7.16.1 → 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 +37 -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 +1515 -1420
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -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,42 @@
|
|
|
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
|
+
|
|
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)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **devops:** add rollup config to build correctly ([df33adc](https://github.com/dexteel/mesf-core-frontend/commit/df33adc71d81c8ced414a59f16c817e238f545c8))
|
|
16
|
+
|
|
17
|
+
## [7.17.1](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v7.17.0...@dexteel/mesf-core-v7.17.1) (2026-03-27)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **deps:** upgrade rollup-plugin-typescript2 and fix setTimeout types ([#641](https://github.com/dexteel/mesf-core-frontend/issues/641)) ([867c828](https://github.com/dexteel/mesf-core-frontend/commit/867c828187051f3096b544b15a38248976d25c72))
|
|
23
|
+
|
|
24
|
+
## [7.17.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v7.16.1...@dexteel/mesf-core-v7.17.0) (2026-03-27)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* add workflow_dispatch trigger to npm publish workflow ([d776298](https://github.com/dexteel/mesf-core-frontend/commit/d7762989b613ed262cb9969824ef5068d1e05343))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* **Asset Search:** Fix search box overlapping tree items at certain resolutions ([5d1e1f3](https://github.com/dexteel/mesf-core-frontend/commit/5d1e1f3370cd96e84b02a4301ec9256c2b768846))
|
|
35
|
+
* **Header:** Show drawer dynamically according to the navbar content and screen size. ([b65cbda](https://github.com/dexteel/mesf-core-frontend/commit/b65cbdac1f6657b27d3e55eba8f435b3b067931f))
|
|
36
|
+
* **logbook:** handle AssetId=0 as valid root asset by replacing falsy checks with null checks ([3e660a9](https://github.com/dexteel/mesf-core-frontend/commit/3e660a9e35de36051b2522d81f7f2825ca9f9854))
|
|
37
|
+
* **Navbar Menu Bar:** Update closeDrawer function reference and adjust hoverSwitchDelayMs. ([0895812](https://github.com/dexteel/mesf-core-frontend/commit/08958129ce081f9bc4f644fb49bee38fa032cca7))
|
|
38
|
+
* upgrade npm to 11.5.1+ for OIDC Trusted Publishing support ([443c5fa](https://github.com/dexteel/mesf-core-frontend/commit/443c5fad15e9b0f68aeff98a4aad4156d34f2588))
|
|
39
|
+
|
|
3
40
|
## [7.16.1](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v7.16.0...@dexteel/mesf-core-v7.16.1) (2026-03-24)
|
|
4
41
|
|
|
5
42
|
|
|
@@ -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;
|