@dexteel/mesf-core 4.14.0 → 4.16.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,24 +1,61 @@
1
+ name: Release Please
2
+
1
3
  on:
2
4
  push:
3
5
  branches:
4
6
  - master
5
7
 
6
- permissions:
7
- contents: write
8
- pull-requests: write
9
-
10
- name: release-please
11
-
12
8
  jobs:
13
9
  release-please:
14
10
  runs-on: ubuntu-latest
15
11
  steps:
16
12
  - uses: googleapis/release-please-action@v4
13
+ id: release
14
+ with:
15
+ command: manifest
16
+ token: ${{ secrets.GITHUB_TOKEN }}
17
+
18
+ - uses: actions/checkout@v4
19
+ if: ${{ steps.release.outputs.release_created }}
20
+
21
+ - name: Setup Node.js
22
+ if: ${{ steps.release.outputs.release_created }}
23
+ uses: actions/setup-node@v4
24
+ with:
25
+ node-version: 'lts/hydrogen' # Adjust this to your Node.js version
26
+
27
+ - name: Update Node.js package versions
28
+ if: ${{ steps.release.outputs.release_created }}
29
+ run: |
30
+ version="${{ steps.release.outputs.version }}"
31
+ find . -name "package.json" -type f -print0 | while IFS= read -r -d '' file; do
32
+ jq ".version = \"${version}\"" "$file" > temp.json && mv temp.json "$file"
33
+ done
34
+
35
+ - name: Update CHANGELOG.md
36
+ if: ${{ steps.release.outputs.release_created }}
37
+ run: |
38
+ version="${{ steps.release.outputs.version }}"
39
+ date=$(date +"%Y-%m-%d")
40
+ echo -e "# Changelog\n\n## [${version}] - ${date}\n\n${{ steps.release.outputs.changelog }}\n\n$(cat CHANGELOG.md)" > CHANGELOG.md
41
+
42
+ - name: Commit changes
43
+ if: ${{ steps.release.outputs.release_created }}
44
+ run: |
45
+ git config --local user.email "action@github.com"
46
+ git config --local user.name "GitHub Action"
47
+ git add .
48
+ git commit -m "chore: update versions and CHANGELOG for ${{ steps.release.outputs.version }}" || echo "No changes to commit"
49
+ git push
50
+
51
+ - name: Create Release
52
+ if: ${{ steps.release.outputs.release_created }}
53
+ uses: actions/create-release@v1
54
+ env:
55
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17
56
  with:
18
- # this assumes that you have created a personal access token
19
- # (PAT) and configured it as a GitHub action secret named
20
- # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
21
- token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
22
- # this is a built-in strategy in release-please, see "Action Inputs"
23
- # for more options
24
- release-type: simple
57
+ tag_name: ${{ steps.release.outputs.tag_name }}
58
+ release_name: Release ${{ steps.release.outputs.version }}
59
+ body: ${{ steps.release.outputs.changelog }}
60
+ draft: false
61
+ prerelease: false
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "4.16.0"
3
+ }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,49 @@
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.16.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.15.0...@dexteel/mesf-core-v4.16.0) (2024-07-08)
6
+
7
+
8
+ ### Features
9
+
10
+ * add new button to navigate to current date ([b4e8577](https://github.com/dexteel/mesf-core-frontend/commit/b4e8577f3a463291551f3b57db5e20437e18f993))
11
+ * **devops:** auto change package.json after release ([ad69516](https://github.com/dexteel/mesf-core-frontend/commit/ad695164dcd91335169d98644b99b2482687b4c6))
12
+ * Implement TimeService and timezone from server ([8861ab6](https://github.com/dexteel/mesf-core-frontend/commit/8861ab619c10426e85b4671819bfb74b303a4f8f))
13
+ * **Shift Navigator:** Add shift navigator to mesf core ([ead49a0](https://github.com/dexteel/mesf-core-frontend/commit/ead49a03fa2cd16bf823fde00a4355c8987a02ea))
14
+ * **Time Zones:** expose timezone from TimeService ([a3ca37c](https://github.com/dexteel/mesf-core-frontend/commit/a3ca37c12f7cadf5357de9eeba30caa59d6071a4))
15
+ * **TimeService:** add moment instance to mesf ([11bff49](https://github.com/dexteel/mesf-core-frontend/commit/11bff49a59ba714fa3d6a7541203df549122d6be))
16
+ * **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))
17
+ * Use Shift Navigator ([a24b84e](https://github.com/dexteel/mesf-core-frontend/commit/a24b84ee97a9e2f7e2507b276891dc599880080e))
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **Assets Tree:** Fix bug when assets have parent assets with IsActive as false ([b27651e](https://github.com/dexteel/mesf-core-frontend/commit/b27651e6b6777b140fd0b0738408bfcc3fc42f14))
23
+ * **Assets:** Remove unused comment ([f6b6aea](https://github.com/dexteel/mesf-core-frontend/commit/f6b6aea2c65ae21274be9b5853eda995523c82f0))
24
+ * **devops:** change from main to master in gh actions ([5d58452](https://github.com/dexteel/mesf-core-frontend/commit/5d584522a2902d04be1784896abcb88bd4f8a2df))
25
+ * getIhPath ([0afb5e6](https://github.com/dexteel/mesf-core-frontend/commit/0afb5e6fd9df71cb8e1de43c1c08bb610cefe3ff))
26
+ * **Router:** fix Routes ([33e95f0](https://github.com/dexteel/mesf-core-frontend/commit/33e95f08b719f73ee0385dbf2c82829276e7aa06))
27
+ * **TimeService:** Add some try catches and handle utc datetime strings ([b073cd1](https://github.com/dexteel/mesf-core-frontend/commit/b073cd1e1fc3dcceed7a2155ab1a33e21e962805))
28
+ * **Trending:** Inputs of table fixed. Debounce added to inputs. Scales now allow negative numbers ([5eb394e](https://github.com/dexteel/mesf-core-frontend/commit/5eb394e903b51502ee2ce90f738a6ec5b8a081e3))
29
+ * **trending:** Load view bug when you add and remove a view tag ([eb8a155](https://github.com/dexteel/mesf-core-frontend/commit/eb8a1553cad19fa9be106716f8958728fc1507dc))
30
+ * **trending:** Load view bug when you add and remove a view tag ([0b3eb95](https://github.com/dexteel/mesf-core-frontend/commit/0b3eb952e006f8ea5942bb0aa17d0913f75c0ff8))
31
+
32
+ ## [4.15.0](https://github.com/dexteel/mesf-core-frontend/compare/v4.14.0...v4.15.0) (2024-07-08)
33
+
34
+
35
+ ### Features
36
+
37
+ * **Shift Navigator:** Add shift navigator to mesf core ([ead49a0](https://github.com/dexteel/mesf-core-frontend/commit/ead49a03fa2cd16bf823fde00a4355c8987a02ea))
38
+ * Use Shift Navigator ([a24b84e](https://github.com/dexteel/mesf-core-frontend/commit/a24b84ee97a9e2f7e2507b276891dc599880080e))
39
+
40
+ ## [4.14.0](https://github.com/dexteel/mesf-core-frontend/compare/v4.13.0...v4.14.0) (2024-07-08)
41
+
42
+
43
+ ### Features
44
+
45
+ * **Shift Navigator:** Add shift navigator to mesf core ([ead49a0](https://github.com/dexteel/mesf-core-frontend/commit/ead49a03fa2cd16bf823fde00a4355c8987a02ea))
46
+ * **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))
47
+
5
48
  ## [4.14.0](https://github.com/dexteel/mesf-core-frontend/compare/v4.13.5...v4.14.0) (2024-07-02)
6
49
 
7
50
 
@@ -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: any;
6
- navbar: any;
6
+ routes: ReactNode;
7
+ navbar: ReactNode;
7
8
  navbarTitle?: string;
8
- configurations: any;
9
+ configurations: ConfigurationsType;
9
10
  showAreaSelector?: boolean;
10
11
  showTrendingsIcon?: boolean;
11
12
  }
@@ -1,3 +1,29 @@
1
1
  import React from "react";
2
- declare const ModalTreeFilterControl: (props: any) => React.JSX.Element;
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>;
3
29
  export { ModalTreeFilterControl };
@@ -4,3 +4,4 @@ export * from "./filters/dialogFilter";
4
4
  export * from "./tables/GenericTable";
5
5
  export * from "./tables/dataGrid";
6
6
  export * from "./panels";
7
+ export * from './shift-navigator';
@@ -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,4 @@
1
+ import React from "react";
2
+ import { ShiftNavigatorManagerResult } from "../hook/useShiftNavigator";
3
+ export declare const useShiftNavigator: () => ShiftNavigatorManagerResult;
4
+ export declare const ShiftNavigatorProvider: ({ children }: any) => 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,5 @@
1
+ export * from './component/shift-navigator.control';
2
+ export * from './context/ShiftNavigatorProvider';
3
+ export * from './hook/useShiftNavigator';
4
+ export * from './models/shift-navigator.model';
5
+ export * from './repositories/ShiftsRepository';
@@ -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
+ }>;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { ConfigurationsType } from "./configurationMenu";
3
- declare const RouterContext: React.Context<React.FunctionComponent<{}>>;
3
+ declare const RouterContext: React.Context<React.ReactNode>;
4
4
  declare const ConfigurationContext: React.Context<ConfigurationsType>;
5
- declare const NavbarContext: React.Context<React.FunctionComponent<{}>>;
5
+ declare const NavbarContext: React.Context<React.ReactNode>;
6
6
  export { RouterContext, ConfigurationContext, NavbarContext };