@dexteel/mesf-core 4.20.6 → 4.22.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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +20 -0
- package/dist/context/axiosInstance.d.ts +1 -2
- package/dist/controls/index.d.ts +1 -0
- package/dist/controls/shift-navigator/repositories/ShiftsRepository.d.ts +1 -4
- package/dist/controls/shift-navigator-v2/component/shift-period-navigator.control.d.ts +15 -0
- package/dist/controls/shift-navigator-v2/index.d.ts +4 -0
- package/dist/controls/shift-navigator-v2/models/SearchShiftsParameters.d.ts +4 -0
- package/dist/controls/shift-navigator-v2/models/shift-data.d.ts +22 -0
- package/dist/controls/shift-navigator-v2/repositories/ShiftsRepository.d.ts +14 -0
- package/dist/index.esm.js +460 -134
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.22.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.21.0...@dexteel/mesf-core-v4.22.0) (2024-12-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **ShiftNavigatorV2:** Add configurable properties to enhance component flexibility ([e1d7f45](https://github.com/dexteel/mesf-core-frontend/commit/e1d7f45442aab9c3b9c8ef94fa2ad806eaaef40c))
|
|
9
|
+
|
|
10
|
+
## [4.21.0] - 2024-12-19
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# Changelog
|
|
15
|
+
|
|
16
|
+
## [4.21.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.20.6...@dexteel/mesf-core-v4.21.0) (2024-12-19)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* **ShiftNavigator v2:** Add Shift and Period Navigator ([e6247a4](https://github.com/dexteel/mesf-core-frontend/commit/e6247a467b035b04dfb3774831d3d0fcd7ef399d))
|
|
22
|
+
|
|
3
23
|
## [4.20.6](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.20.5...@dexteel/mesf-core-v4.20.6) (2024-12-11)
|
|
4
24
|
|
|
5
25
|
|
package/dist/controls/index.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
productionDate: Date | null;
|
|
3
|
-
shiftId: number;
|
|
4
|
-
}
|
|
1
|
+
import { ShiftNavigatorFilterParams } from "../../shift-navigator-v2";
|
|
5
2
|
export declare const getShiftByParameters: (parameters: ShiftNavigatorFilterParams) => Promise<{
|
|
6
3
|
ok: boolean;
|
|
7
4
|
data: any;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SearchShiftsParameters } from "../models/SearchShiftsParameters";
|
|
3
|
+
interface PeriodOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
type Props = {
|
|
8
|
+
value: SearchShiftsParameters | null;
|
|
9
|
+
onChange: (value: any) => void;
|
|
10
|
+
showShiftAndCrews?: boolean;
|
|
11
|
+
dateFormat?: string;
|
|
12
|
+
periodOptions?: PeriodOption[];
|
|
13
|
+
};
|
|
14
|
+
export declare const ShiftPeriodNavigatorControl: ({ value, onChange, showShiftAndCrews, dateFormat, periodOptions, }: Props) => React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface ShiftData {
|
|
2
|
+
ShiftId: number;
|
|
3
|
+
AssetId: number;
|
|
4
|
+
ProductionDate: string;
|
|
5
|
+
ProductionShift: number;
|
|
6
|
+
Shift: string;
|
|
7
|
+
Crew: string;
|
|
8
|
+
Start: string | Date;
|
|
9
|
+
End: string | Date;
|
|
10
|
+
prevShiftId: number;
|
|
11
|
+
nextShiftId: number;
|
|
12
|
+
}
|
|
13
|
+
export interface ShiftsResponse {
|
|
14
|
+
errorMessage: null;
|
|
15
|
+
returnValue: number;
|
|
16
|
+
tables: {
|
|
17
|
+
0: {
|
|
18
|
+
columns: string[];
|
|
19
|
+
rows: ShiftData[];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ShiftsResponse } from "../models/shift-data";
|
|
2
|
+
export interface ShiftNavigatorFilterParams {
|
|
3
|
+
productionDate: Date | null;
|
|
4
|
+
shiftId: number;
|
|
5
|
+
}
|
|
6
|
+
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
|
+
ok: boolean;
|
|
8
|
+
data: ShiftsResponse;
|
|
9
|
+
message?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
ok: boolean;
|
|
12
|
+
message: string;
|
|
13
|
+
data?: undefined;
|
|
14
|
+
}>;
|