@dexteel/mesf-core 4.27.0 → 5.0.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.
@@ -4,6 +4,7 @@ on:
4
4
  types: [closed]
5
5
  branches:
6
6
  - master
7
+ - next
7
8
  jobs:
8
9
  publish:
9
10
  if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release-please')
@@ -0,0 +1,63 @@
1
+ name: Release Please (v5 - next)
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - next
7
+
8
+ jobs:
9
+ release-please:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: googleapis/release-please-action@v4
13
+ id: release
14
+ with:
15
+ command: manifest
16
+ token: ${{ secrets.GITHUB_TOKEN }}
17
+ target-branch: 'next'
18
+ default-branch: 'next'
19
+
20
+ - uses: actions/checkout@v4
21
+ if: ${{ steps.release.outputs.release_created }}
22
+
23
+ - name: Setup Node.js
24
+ if: ${{ steps.release.outputs.release_created }}
25
+ uses: actions/setup-node@v4
26
+ with:
27
+ node-version: 'lts/hydrogen' # Adjust this to your Node.js version
28
+
29
+ - name: Update Node.js package versions
30
+ if: ${{ steps.release.outputs.release_created }}
31
+ run: |
32
+ version="${{ steps.release.outputs.version }}"
33
+ find . -name "package.json" -type f -print0 | while IFS= read -r -d '' file; do
34
+ jq ".version = \"${version}\"" "$file" > temp.json && mv temp.json "$file"
35
+ done
36
+
37
+ - name: Update CHANGELOG.md
38
+ if: ${{ steps.release.outputs.release_created }}
39
+ run: |
40
+ version="${{ steps.release.outputs.version }}"
41
+ date=$(date +"%Y-%m-%d")
42
+ echo -e "# Changelog\n\n## [${version}] - ${date}\n\n${{ steps.release.outputs.changelog }}\n\n$(cat CHANGELOG.md)" > CHANGELOG.md
43
+
44
+ - name: Commit changes
45
+ if: ${{ steps.release.outputs.release_created }}
46
+ run: |
47
+ git config --local user.email "action@github.com"
48
+ git config --local user.name "GitHub Action"
49
+ git add .
50
+ git commit -m "chore: update versions and CHANGELOG for ${{ steps.release.outputs.version }}" || echo "No changes to commit"
51
+ git push
52
+
53
+ - name: Create Release
54
+ if: ${{ steps.release.outputs.release_created }}
55
+ uses: actions/create-release@v1
56
+ env:
57
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58
+ with:
59
+ tag_name: ${{ steps.release.outputs.tag_name }}
60
+ release_name: Release ${{ steps.release.outputs.version }}
61
+ body: ${{ steps.release.outputs.changelog }}
62
+ draft: false
63
+ prerelease: false
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "4.27.0"
2
+ ".": "5.0.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,38 @@
1
+ # Changelog
2
+
3
+ ## [5.0.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.28.0...@dexteel/mesf-core-v5.0.0) (2025-04-17)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * **UI:** Revamp and use MUI Theme. Remove bootstrap
9
+
10
+ ### Features
11
+
12
+ * **UI:** Revamp and use MUI Theme. Remove bootstrap ([207d5c3](https://github.com/dexteel/mesf-core-frontend/commit/207d5c37e74050b579d1a6e2423a7c8dd1efbda5))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **devops:** fix target branch & default branch ([33df2b6](https://github.com/dexteel/mesf-core-frontend/commit/33df2b6d0ba8e9a59a306e69a7b638db5246d520))
18
+
19
+ ## [4.28.0] - 2025-04-16
20
+
21
+
22
+
23
+ # Changelog
24
+
25
+ ## [4.28.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.27.0...@dexteel/mesf-core-v4.28.0) (2025-04-16)
26
+
27
+
28
+ ### Features
29
+
30
+ * **tree-picker-control-v2:** Show full path of node selected ([#373](https://github.com/dexteel/mesf-core-frontend/issues/373)) ([8ca434b](https://github.com/dexteel/mesf-core-frontend/commit/8ca434b29d1d41c1d2aed6087a52cc999f4e7452))
31
+
32
+ ## [4.27.0] - 2025-04-01
33
+
34
+
35
+
1
36
  # Changelog
2
37
 
3
38
  ## [4.27.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.26.5...@dexteel/mesf-core-v4.27.0) (2025-03-31)
@@ -1,5 +1,4 @@
1
1
  import React, { type ReactNode } from "react";
2
- import "./css/index.css";
3
2
  import { ConfigurationsType } from "./configurationMenu";
4
3
  interface Props {
5
4
  authentication: any;
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import "ag-grid-community/styles/ag-grid.css";
3
- import "ag-grid-community/styles/ag-theme-alpine.css";
3
+ import "ag-grid-community/styles/ag-theme-material.css";
4
4
  import "ag-grid-enterprise";
5
5
  type Props = {
6
6
  getShiftsCrewsFromAPI: Function;
@@ -1,3 +1,4 @@
1
+ import "ag-grid-community/styles/ag-theme-material.min.css";
1
2
  import * as React from "react";
2
3
  type Props = {
3
4
  getUsersFromAPI: Function;
@@ -1,13 +1,13 @@
1
- import React from "react";
2
- type SectionComponent = {
1
+ import { FC } from "react";
2
+ interface SectionComponent {
3
3
  path: string;
4
- sidebar: React.FunctionComponent;
5
- main: React.FunctionComponent;
4
+ sidebar: FC;
5
+ main: FC;
6
6
  exact?: boolean;
7
- };
8
- export type SidebarType = React.FunctionComponent<{
7
+ }
8
+ export type SidebarType = FC<{
9
9
  option?: string;
10
10
  }>;
11
11
  export type ConfigurationsType = [SectionComponent[], SidebarType];
12
- export default function Configuration(): React.JSX.Element;
13
- export {};
12
+ declare const Configuration: FC;
13
+ export default Configuration;
@@ -6,6 +6,7 @@ type TreePickerControlProps = {
6
6
  setListAssetDrawings?: Function;
7
7
  onSuccess?: (success: boolean) => void;
8
8
  showClearButton?: boolean;
9
+ showFullPath?: boolean;
9
10
  disabled?: boolean;
10
11
  dataSource: TreeNode;
11
12
  [key: string]: any;
@@ -1,4 +1,4 @@
1
- import React, { Component, type MouseEventHandler } from "react";
1
+ import React, { type MouseEventHandler } from "react";
2
2
  type GenericPanelProps = {
3
3
  title: string;
4
4
  description?: string;
@@ -10,8 +10,6 @@ type GenericPanelProps = {
10
10
  error?: any;
11
11
  children: any;
12
12
  };
13
- /********************MATERIAL UI STYLES********************************** */
14
- /************************************************************************* */
15
13
  declare const GenericPanel: ({ title, description, showPromptSuccess, showPromptError, onDismissSuccess, onDismissError, successMessage, error, children, }: GenericPanelProps) => React.JSX.Element;
16
14
  type MasterDetailPanelProps = {
17
15
  title: string;
@@ -22,11 +20,9 @@ type MasterDetailPanelProps = {
22
20
  deleteStatus: boolean;
23
21
  showSave: boolean;
24
22
  showDelete: boolean;
23
+ children?: React.ReactNode;
25
24
  };
26
- declare class MasterDetailPanel extends Component<MasterDetailPanelProps> {
27
- useStyles(): (props?: any) => import("@material-ui/styles").ClassNameMap<"root">;
28
- render(): React.JSX.Element;
29
- }
25
+ declare const MasterDetailPanel: ({ title, onSave, onCancel, onDelete, saveStatus, deleteStatus, showSave, showDelete, children, }: MasterDetailPanelProps) => React.JSX.Element;
30
26
  type ExtraButton = {
31
27
  name: string;
32
28
  onClick: MouseEventHandler;
@@ -38,25 +34,8 @@ type FilterPanelProps = {
38
34
  showButtons: boolean;
39
35
  showExport: boolean;
40
36
  extraButtons?: ExtraButton[];
37
+ children?: React.ReactNode;
41
38
  };
42
- declare class FilterPanel extends Component<FilterPanelProps> {
43
- onClickGo: MouseEventHandler;
44
- onClickReset: MouseEventHandler;
45
- onClickExport: MouseEventHandler;
46
- constructor(props: FilterPanelProps);
47
- ExportData(): void;
48
- ResetFilterValues(): void;
49
- GetFilterValues(): void;
50
- render(): React.JSX.Element;
51
- }
52
- declare class LongFilterPanel extends Component<FilterPanelProps> {
53
- onClickGo: MouseEventHandler;
54
- onClickReset: MouseEventHandler;
55
- onClickExport: MouseEventHandler;
56
- constructor(props: any);
57
- ExportData(): void;
58
- ResetFilterValues(): void;
59
- GetFilterValues(): void;
60
- render(): React.JSX.Element;
61
- }
39
+ declare const FilterPanel: (props: FilterPanelProps) => React.JSX.Element;
40
+ declare const LongFilterPanel: (props: FilterPanelProps) => React.JSX.Element;
62
41
  export { GenericPanel, FilterPanel, MasterDetailPanel, LongFilterPanel };
@@ -0,0 +1 @@
1
+ export declare const themeMESF: import("@material-ui/core").Theme;
package/dist/index.d.ts CHANGED
@@ -17,3 +17,4 @@ export * from "./configuration/pages/users/models/User";
17
17
  export * from "./configuration/pages/users/repositories/UsersRepository";
18
18
  export * from "@microsoft/signalr";
19
19
  export * from "./hooks/useMesfRealtime";
20
+ export * from "./css/themeMESF";