@dexteel/mesf-core 4.20.6 → 4.21.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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "4.20.6"
2
+ ".": "4.21.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Features
7
+
8
+ * **ShiftNavigator v2:** Add Shift and Period Navigator ([e6247a4](https://github.com/dexteel/mesf-core-frontend/commit/e6247a467b035b04dfb3774831d3d0fcd7ef399d))
9
+
3
10
  ## [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
11
 
5
12
 
@@ -5,4 +5,5 @@ export * from "./tables/GenericTable";
5
5
  export * from "./tables/dataGrid";
6
6
  export * from "./panels";
7
7
  export * from "./shift-navigator";
8
+ export * from "./shift-navigator-v2";
8
9
  export * from "./contextMenu";
@@ -1,7 +1,4 @@
1
- export interface ShiftNavigatorFilterParams {
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,8 @@
1
+ import React from "react";
2
+ import { SearchShiftsParameters } from "../models/SearchShiftsParameters";
3
+ type Props = {
4
+ value: SearchShiftsParameters | null;
5
+ onChange: (value: any) => void;
6
+ };
7
+ export declare const ShiftPeriodNavigatorControl: ({ value, onChange }: Props) => React.JSX.Element;
8
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from "./component/shift-period-navigator.control";
2
+ export * from "./models/SearchShiftsParameters";
3
+ export * from "./models/shift-data";
4
+ export * from "./repositories/ShiftsRepository";
@@ -0,0 +1,4 @@
1
+ export interface SearchShiftsParameters {
2
+ StartShiftId: number | null;
3
+ EndShiftId: number | null;
4
+ }
@@ -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
+ }>;