@dexteel/mesf-core 4.13.5 → 4.15.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/CHANGELOG.md +23 -0
- package/dist/MESFMain.d.ts +5 -4
- package/dist/controls/filters/dialogFilter.d.ts +27 -10
- package/dist/controls/filters/filters.d.ts +4 -1
- package/dist/controls/index.d.ts +1 -0
- package/dist/controls/shift-navigator/component/shift-navigator.control.d.ts +6 -0
- package/dist/controls/shift-navigator/context/ShiftNavigatorProvider.d.ts +4 -0
- package/dist/controls/shift-navigator/hook/useShiftNavigator.d.ts +14 -0
- package/dist/controls/shift-navigator/index.d.ts +5 -0
- package/dist/controls/shift-navigator/models/shift-navigator.model.d.ts +30 -0
- package/dist/controls/shift-navigator/repositories/ShiftsRepository.d.ts +13 -0
- package/dist/globalContext.d.ts +2 -2
- package/dist/index.esm.js +648 -246
- package/dist/index.esm.js.map +1 -1
- package/dist/pages/trendings/components/chart/context/TrendingContext.d.ts +7 -7
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [4.15.0](https://github.com/dexteel/mesf-core-frontend/compare/v4.14.0...v4.15.0) (2024-07-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **Shift Navigator:** Add shift navigator to mesf core ([ead49a0](https://github.com/dexteel/mesf-core-frontend/commit/ead49a03fa2cd16bf823fde00a4355c8987a02ea))
|
|
11
|
+
* Use Shift Navigator ([a24b84e](https://github.com/dexteel/mesf-core-frontend/commit/a24b84ee97a9e2f7e2507b276891dc599880080e))
|
|
12
|
+
|
|
13
|
+
## [4.14.0](https://github.com/dexteel/mesf-core-frontend/compare/v4.13.0...v4.14.0) (2024-07-08)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **Shift Navigator:** Add shift navigator to mesf core ([ead49a0](https://github.com/dexteel/mesf-core-frontend/commit/ead49a03fa2cd16bf823fde00a4355c8987a02ea))
|
|
19
|
+
* **TreePickerControl:** Add ability to display asset/drawings relationship and enable the selection of multiple nodes ([1cec643](https://github.com/dexteel/mesf-core-frontend/commit/1cec643d17959cd776691c927738dbe2d8023b83))
|
|
20
|
+
|
|
21
|
+
## [4.14.0](https://github.com/dexteel/mesf-core-frontend/compare/v4.13.5...v4.14.0) (2024-07-02)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* **TreePickerControl:** Add ability to display asset/drawings relationship and enable the selection of multiple nodes ([1cec643](https://github.com/dexteel/mesf-core-frontend/commit/1cec643d17959cd776691c927738dbe2d8023b83))
|
|
27
|
+
|
|
5
28
|
### [4.13.5](https://github.com/dexteel/mesf-core-frontend/compare/v4.12.4...v4.13.5) (2024-05-24)
|
|
6
29
|
|
|
7
30
|
## [4.13.0](https://github.com/dexteel/mesf-core-frontend/compare/v4.12.4...v4.13.0) (2024-05-24)
|
package/dist/MESFMain.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
import "./css/index.css";
|
|
3
|
+
import { ConfigurationsType } from "./configurationMenu";
|
|
3
4
|
interface Props {
|
|
4
5
|
authentication: any;
|
|
5
|
-
routes:
|
|
6
|
-
navbar:
|
|
6
|
+
routes: ReactNode;
|
|
7
|
+
navbar: ReactNode;
|
|
7
8
|
navbarTitle?: string;
|
|
8
|
-
configurations:
|
|
9
|
+
configurations: ConfigurationsType;
|
|
9
10
|
showAreaSelector?: boolean;
|
|
10
11
|
showTrendingsIcon?: boolean;
|
|
11
12
|
}
|
|
@@ -1,12 +1,29 @@
|
|
|
1
|
-
import PropTypes from "prop-types";
|
|
2
1
|
import React from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
interface TreeNode {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
isCode: boolean;
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
isInternal?: boolean;
|
|
8
|
+
isLeaf?: boolean;
|
|
9
|
+
children?: TreeNode[];
|
|
10
|
+
delayCategoryColor?: string;
|
|
11
|
+
}
|
|
12
|
+
interface ModalTreeFilterControlProps {
|
|
13
|
+
onClose: (value?: number, name?: string, node?: TreeNode) => void;
|
|
14
|
+
value?: number;
|
|
15
|
+
open: boolean;
|
|
16
|
+
title: string;
|
|
17
|
+
data: TreeNode;
|
|
18
|
+
selectBranch: boolean;
|
|
19
|
+
selectActive: boolean;
|
|
20
|
+
selectInternal: boolean;
|
|
21
|
+
multipleSelectNodes: boolean;
|
|
22
|
+
onHide?: (value: boolean) => void;
|
|
23
|
+
listAssetDrawings?: number[];
|
|
24
|
+
setListAssetDrawings?: React.Dispatch<React.SetStateAction<number[]>>;
|
|
25
|
+
onSuccess?: (value: boolean) => void;
|
|
26
|
+
isLoading: boolean;
|
|
27
|
+
}
|
|
28
|
+
declare const ModalTreeFilterControl: React.FC<ModalTreeFilterControlProps>;
|
|
12
29
|
export { ModalTreeFilterControl };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React, { Component } from "react";
|
|
2
2
|
type TreePickerControlProps = {
|
|
3
|
-
onSelect: (value: string, description: string, findNode: any, showPath?: boolean) => void;
|
|
3
|
+
onSelect: (value: string, description: string, findNode: any, showPath?: boolean, listAssetDrawings?: number[], multipleSelectNodes?: boolean, onHide?: (showAssetTree?: boolean) => void, showAssetTree?: boolean) => void;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
setListAssetDrawings?: Function;
|
|
6
|
+
onSuccess?: (success: boolean) => void;
|
|
4
7
|
[key: string]: any;
|
|
5
8
|
};
|
|
6
9
|
export declare const TreePickerControl: (props: TreePickerControlProps) => React.JSX.Element;
|
package/dist/controls/index.d.ts
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ShiftNavigatorDirection = "Previous" | "Next" | "Last";
|
|
3
|
+
export declare const ShiftDayNavigatorControl: (props: {
|
|
4
|
+
useRouter?: boolean | undefined;
|
|
5
|
+
onShiftChange?: ((shiftId: number) => void) | undefined;
|
|
6
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ShiftInfo } from "../models/shift-navigator.model";
|
|
2
|
+
import { ShiftNavigatorDirection } from "../component/shift-navigator.control";
|
|
3
|
+
export declare const useShiftNavigatorManager: () => {
|
|
4
|
+
shiftInfo: ShiftInfo | null;
|
|
5
|
+
moveShift: (direction: ShiftNavigatorDirection) => Promise<void>;
|
|
6
|
+
getShiftDataFromAPI: (productionDate: Date | null, shiftId: number) => Promise<void>;
|
|
7
|
+
initShiftNavigator: () => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
export type ShiftNavigatorManagerResult = {
|
|
10
|
+
shiftInfo: ShiftInfo | null;
|
|
11
|
+
moveShift: (direction: ShiftNavigatorDirection) => Promise<void>;
|
|
12
|
+
getShiftDataFromAPI: (productionDate: Date | null, shiftId: number) => Promise<void>;
|
|
13
|
+
initShiftNavigator: () => Promise<void>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface ShiftInfo {
|
|
2
|
+
CurrentShiftId: number;
|
|
3
|
+
CurrentProductionDate: Date;
|
|
4
|
+
CurrentProductionShift: number;
|
|
5
|
+
CurrentShift: string;
|
|
6
|
+
CurrentCrew: string;
|
|
7
|
+
CurrentStart: Date;
|
|
8
|
+
CurrentEnd: Date;
|
|
9
|
+
PreviousShiftId: number;
|
|
10
|
+
PreviousProductionDate: Date;
|
|
11
|
+
PreviousProductionShift: number;
|
|
12
|
+
PreviousShift: string;
|
|
13
|
+
PreviousCrew: string;
|
|
14
|
+
PreviousStart: Date;
|
|
15
|
+
PreviousEnd: Date;
|
|
16
|
+
NextShiftId: null | number;
|
|
17
|
+
NextProductionDate: null | Date;
|
|
18
|
+
NextProductionShift: null | number;
|
|
19
|
+
NextShift: null | string;
|
|
20
|
+
NextCrew: null | string;
|
|
21
|
+
NextStart: null | Date;
|
|
22
|
+
NextEnd: null | Date;
|
|
23
|
+
LastShiftId: number;
|
|
24
|
+
LastProductionDate: Date;
|
|
25
|
+
LastProductionShift: number;
|
|
26
|
+
LastShift: string;
|
|
27
|
+
LastCrew: string;
|
|
28
|
+
LastStart: Date;
|
|
29
|
+
LastEnd: Date;
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ShiftNavigatorFilterParams {
|
|
2
|
+
productionDate: Date | null;
|
|
3
|
+
shiftId: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const getShiftByParameters: (parameters: ShiftNavigatorFilterParams) => Promise<{
|
|
6
|
+
ok: boolean;
|
|
7
|
+
data: any;
|
|
8
|
+
message?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
ok: boolean;
|
|
11
|
+
message: any;
|
|
12
|
+
data?: undefined;
|
|
13
|
+
}>;
|
package/dist/globalContext.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ConfigurationsType } from "./configurationMenu";
|
|
3
|
-
declare const RouterContext: React.Context<React.
|
|
3
|
+
declare const RouterContext: React.Context<React.ReactNode>;
|
|
4
4
|
declare const ConfigurationContext: React.Context<ConfigurationsType>;
|
|
5
|
-
declare const NavbarContext: React.Context<React.
|
|
5
|
+
declare const NavbarContext: React.Context<React.ReactNode>;
|
|
6
6
|
export { RouterContext, ConfigurationContext, NavbarContext };
|