@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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "4.20.6"
2
+ ".": "4.22.0"
3
3
  }
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
 
@@ -1,3 +1,2 @@
1
- import axios from "axios";
2
1
  export declare function renewToken(): Promise<any[]>;
3
- export declare const axiosInstance: axios.AxiosInstance;
2
+ export declare const axiosInstance: import("axios").AxiosInstance;
@@ -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,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,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
+ }>;