@dexteel/mesf-core 6.1.1 → 6.1.2
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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +7 -0
- package/dist/index.d.ts +0 -3
- package/dist/index.esm.js +723 -980
- package/dist/index.esm.js.map +1 -1
- package/dist/pages/trendings/TrendingsPage.d.ts +3 -16
- package/dist/pages/trendings/components/chart/TableComponent.d.ts +12 -0
- package/dist/pages/trendings/components/chart/Trending.d.ts +1 -2
- package/dist/pages/trendings/components/chart/components/modals/loadView/LoadViewModal.d.ts +2 -1
- package/dist/pages/trendings/components/chart/customOptionsComponent.d.ts +0 -2
- package/dist/pages/trendings/components/chart/repository/TrendingRepository.d.ts +11 -41
- package/dist/pages/trendings/components/chart/sections/header.d.ts +1 -3
- package/dist/pages/trendings/components/chart/sections/trending-chart.d.ts +1 -1
- package/package.json +1 -1
- package/release-please-config.json +2 -10
- package/.github/workflows/release-please-v4.yml +0 -61
- package/.github/workflows/release-please-v5.yml +0 -63
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
autoRefresh?: boolean;
|
|
6
|
-
}) => import("@tanstack/react-query").UseQueryResult<View[], Error>;
|
|
7
|
-
export declare const searchViewTags: ({ viewId }: {
|
|
8
|
-
viewId: number | null;
|
|
9
|
-
}) => import("@tanstack/react-query").UseQueryResult<any[], Error>;
|
|
10
|
-
export declare const searchTagsTree: () => import("@tanstack/react-query").UseQueryResult<TagFromTree[], Error>;
|
|
11
|
-
export declare const searchSeries: ({ start, end, tagIds, autoRefresh, }: {
|
|
12
|
-
start: number;
|
|
13
|
-
end: number;
|
|
14
|
-
tagIds: number[];
|
|
15
|
-
autoRefresh?: boolean;
|
|
16
|
-
}) => import("@tanstack/react-query").UseQueryResult<ViewTagDataSet[][], Error>;
|
|
17
|
-
export declare const TrendingsPage: () => React.JSX.Element;
|
|
2
|
+
type Props = {};
|
|
3
|
+
export declare const TrendingsPage: (props: Props) => React.JSX.Element;
|
|
4
|
+
export {};
|
|
@@ -5,10 +5,22 @@ import { CursorData, ViewTag } from "./models/TrendingModels";
|
|
|
5
5
|
interface TableComponentProps {
|
|
6
6
|
cursorData: CursorData;
|
|
7
7
|
chartData: ChartData;
|
|
8
|
+
getTagsFromAPI: Function;
|
|
8
9
|
viewTagForDelete: ViewTag | null;
|
|
9
10
|
setViewTagForDelete: Dispatch<ViewTag | null>;
|
|
10
11
|
selectedRowTagId: number | null;
|
|
11
12
|
setSelectedRowTagId: Dispatch<number | null>;
|
|
13
|
+
handleRightClick: (e: any, tagId: number | null) => void;
|
|
14
|
+
openContextMenu: boolean;
|
|
15
|
+
setOpenContextMenu: Dispatch<boolean>;
|
|
16
|
+
setContextMenuPosition: Dispatch<{
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
}>;
|
|
20
|
+
contextMenuPosition: {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
};
|
|
12
24
|
}
|
|
13
25
|
declare const TableComponent: React.FC<TableComponentProps>;
|
|
14
26
|
export default TableComponent;
|
|
@@ -2,8 +2,7 @@ import "chartjs-adapter-moment/dist/chartjs-adapter-moment.esm.js";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
interface TrendingProps {
|
|
4
4
|
title: string;
|
|
5
|
-
|
|
6
|
-
setAutoRefresh: (autoRefresh: boolean) => void;
|
|
5
|
+
getTagsFromAPI: Function;
|
|
7
6
|
}
|
|
8
7
|
declare const Trending: React.FC<TrendingProps>;
|
|
9
8
|
export default Trending;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface Props {
|
|
3
|
+
getTagsFromAPI: Function;
|
|
3
4
|
open: boolean;
|
|
4
5
|
handleClose: (shouldUpdate: boolean) => void;
|
|
5
6
|
}
|
|
6
|
-
export declare const LoadViewModal: ({ open, handleClose }: Props) => React.JSX.Element;
|
|
7
|
+
export declare const LoadViewModal: ({ open, handleClose, getTagsFromAPI }: Props) => React.JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -3,8 +3,6 @@ import { CustomOptions } from "./models/TrendingModels";
|
|
|
3
3
|
interface CustomOptionsComponentProps {
|
|
4
4
|
customOptions: CustomOptions;
|
|
5
5
|
setCustomOptions: React.Dispatch<React.SetStateAction<CustomOptions>>;
|
|
6
|
-
autoRefresh: boolean;
|
|
7
|
-
setAutoRefresh: (autoRefresh: boolean) => void;
|
|
8
6
|
}
|
|
9
7
|
declare const CustomOptionsComponent: React.FC<CustomOptionsComponentProps>;
|
|
10
8
|
export default CustomOptionsComponent;
|
|
@@ -1,43 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const upsertTagFolder: ({ tagFolderId, parentTagFolderId, tagFolderName, isActive, }: {
|
|
6
|
-
tagFolderId: number | null;
|
|
7
|
-
parentTagFolderId: number | null;
|
|
8
|
-
tagFolderName: string;
|
|
9
|
-
isActive: boolean;
|
|
10
|
-
}) => Promise<void>;
|
|
11
|
-
export declare const changeTagFolderToTag: ({ tagId, tagFolderId, }: {
|
|
12
|
-
tagId: number | null;
|
|
13
|
-
tagFolderId: number | null;
|
|
14
|
-
}) => Promise<void>;
|
|
1
|
+
export declare const getTagsTree: () => Promise<import("../../../../../services").ResponseMESF>;
|
|
2
|
+
export declare const deleteTagFolder: (TagFolderId: number) => Promise<import("../../../../../services").ResponseMESF>;
|
|
3
|
+
export declare const upsertTagFolder: (TagFolderId: number | null, ParentTagFolderId: number | null, TagFolderName: string, IsActive: boolean) => Promise<import("../../../../../services").ResponseMESF>;
|
|
4
|
+
export declare const changeTagFolderToTag: (TagId: number | null, TagFolderId: number | null) => Promise<import("../../../../../services").ResponseMESF>;
|
|
15
5
|
export declare const getSeriesData: (TagIds: string, Start: number | null, End: number | null, SampleCount: number) => Promise<import("../../../../../services").ResponseMESF>;
|
|
16
|
-
export declare const saveTagDefaults: (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
unit: string;
|
|
23
|
-
}) => Promise<void>;
|
|
24
|
-
export declare const getViews: (Search: string | null) => Promise<View[]>;
|
|
25
|
-
export declare const upsertView: ({ viewId, viewName, isPublic, }: {
|
|
26
|
-
viewId: number | null;
|
|
27
|
-
viewName: string;
|
|
28
|
-
isPublic: boolean;
|
|
29
|
-
}) => Promise<number>;
|
|
30
|
-
export declare const deleteView: (ViewId: number) => Promise<void>;
|
|
31
|
-
export declare const getViewTags: (ViewId: number) => Promise<any[]>;
|
|
32
|
-
export declare const upsertViewTag: ({ viewId, tagId, color, minScale, maxScale, isVisible, isAutoScale, unit, }: {
|
|
33
|
-
viewId: number;
|
|
34
|
-
tagId: number;
|
|
35
|
-
color: string;
|
|
36
|
-
minScale: number;
|
|
37
|
-
maxScale: number;
|
|
38
|
-
isVisible: boolean;
|
|
39
|
-
isAutoScale: boolean;
|
|
40
|
-
unit: string;
|
|
41
|
-
}) => Promise<void>;
|
|
6
|
+
export declare const saveTagDefaults: (TagId: number, Alias: string, Color: string, MinScale: number, MaxScale: number, Unit: string) => Promise<import("../../../../../services").ResponseMESF>;
|
|
7
|
+
export declare const getViews: (Search: string | null) => Promise<import("../../../../../services").ResponseMESF>;
|
|
8
|
+
export declare const upsertView: (ViewId: number | null, ViewName: string, isPublic: boolean) => Promise<import("../../../../../services").ResponseMESF>;
|
|
9
|
+
export declare const deleteView: (ViewId: number) => Promise<import("../../../../../services").ResponseMESF>;
|
|
10
|
+
export declare const getViewTags: (ViewId: number) => Promise<import("../../../../../services").ResponseMESF>;
|
|
11
|
+
export declare const upsertViewTag: (ViewId: number, TagId: number, Color: string, MinScale: number, MaxScale: number, IsVisible: boolean, IsAutoScale: boolean, Unit: string) => Promise<import("../../../../../services").ResponseMESF>;
|
|
42
12
|
export declare const deleteViewTag: (ViewId: number, TagId: number) => Promise<import("../../../../../services").ResponseMESF>;
|
|
43
|
-
export declare const deleteAllViewTagsFromView: (ViewId: number) => Promise<
|
|
13
|
+
export declare const deleteAllViewTagsFromView: (ViewId: number) => Promise<import("../../../../../services").ResponseMESF>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface Props {
|
|
3
3
|
setChartOptions: (options: any) => void;
|
|
4
|
-
autoRefresh: boolean;
|
|
5
|
-
setAutoRefresh: (autoRefresh: boolean) => void;
|
|
6
4
|
}
|
|
7
|
-
export declare const Header:
|
|
5
|
+
export declare const Header: ({ setChartOptions }: Props) => React.JSX.Element;
|
|
8
6
|
export {};
|
|
@@ -8,5 +8,5 @@ interface Props {
|
|
|
8
8
|
chartData: any;
|
|
9
9
|
setChartData: any;
|
|
10
10
|
}
|
|
11
|
-
export declare const TrendingChart:
|
|
11
|
+
export declare const TrendingChart: ({ series, chartOptions, setChartOptions, chartData, setCursorData, setChartData, }: Props) => React.JSX.Element;
|
|
12
12
|
export {};
|
package/package.json
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"packages": {
|
|
3
3
|
".": {
|
|
4
|
-
"release-type": "
|
|
4
|
+
"release-type": "node",
|
|
5
5
|
"package-name": "@dexteel/mesf-core",
|
|
6
|
-
"changelog-path": "CHANGELOG.md",
|
|
7
6
|
"bump-minor-pre-major": true,
|
|
8
7
|
"bump-patch-for-minor-pre-major": true,
|
|
9
8
|
"draft": false,
|
|
10
|
-
"prerelease": false
|
|
11
|
-
"extra-files": [
|
|
12
|
-
{
|
|
13
|
-
"type": "json",
|
|
14
|
-
"path": "package.json",
|
|
15
|
-
"jsonpath": "$.version"
|
|
16
|
-
}
|
|
17
|
-
]
|
|
9
|
+
"prerelease": false
|
|
18
10
|
}
|
|
19
11
|
},
|
|
20
12
|
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
name: Release Please
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
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
|
-
|
|
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 }}
|
|
56
|
-
with:
|
|
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
|
|
@@ -1,63 +0,0 @@
|
|
|
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
|