@dexteel/mesf-core 4.5.10 → 4.6.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 +2 -0
- package/dist/components/shared/buttons/button-with-loading.d.ts +9 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +1006 -722
- package/dist/index.esm.js.map +1 -1
- package/dist/pages/trendings/TrendingsPage.d.ts +4 -0
- package/dist/pages/trendings/components/chart/TableComponent.d.ts +1 -3
- package/dist/pages/trendings/components/chart/Trending.d.ts +0 -2
- package/dist/pages/trendings/components/chart/components/modals/addTagModal/AddTagModal.d.ts +2 -2
- package/dist/pages/trendings/components/chart/components/modals/addTagModal/TagSelectionModal.d.ts +2 -2
- package/dist/pages/trendings/components/chart/components/modals/loadView/LoadViewModal.d.ts +7 -0
- package/dist/pages/trendings/components/chart/components/modals/saveAsView/SaveAsViewModal.d.ts +7 -0
- package/dist/pages/trendings/components/chart/context/TrendingContext.d.ts +47 -0
- package/dist/pages/trendings/components/chart/hooks/useTagsDataTable.d.ts +3 -3
- package/dist/pages/trendings/components/chart/models/TrendingModels.d.ts +21 -0
- package/dist/pages/trendings/components/chart/repository/TrendingRepository.d.ts +4 -5
- package/dist/pages/trendings/components/chart/sections/trending-chart.d.ts +1 -3
- package/dist/pages/trendings/components/chart/styles/TrendingStyles.d.ts +1 -1
- package/dist/pages/trendings/components/chart/utils/areRangeSimilar.d.ts +2 -2
- package/dist/pages/trendings/index.d.ts +3 -4
- package/dist/pages/trendings/reducers/trendings.reducer.d.ts +48 -0
- package/package.json +1 -1
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { ChartData } from 'chart.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import './ContextMenu.css';
|
|
4
|
-
import { CursorData
|
|
4
|
+
import { CursorData } from './models/TrendingModels';
|
|
5
5
|
interface TableComponentProps {
|
|
6
|
-
tagList: TagList;
|
|
7
|
-
setTagList: React.Dispatch<React.SetStateAction<TagList>>;
|
|
8
6
|
cursorData: CursorData;
|
|
9
7
|
chartData: ChartData;
|
|
10
8
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import "chartjs-adapter-moment/dist/chartjs-adapter-moment.esm.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { Tag } from "./models/TrendingModels";
|
|
4
3
|
interface TrendingProps {
|
|
5
4
|
title: string;
|
|
6
|
-
tags: Tag[];
|
|
7
5
|
}
|
|
8
6
|
declare const Trending: React.FC<TrendingProps>;
|
|
9
7
|
export default Trending;
|
package/dist/pages/trendings/components/chart/components/modals/addTagModal/AddTagModal.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ViewTag } from '../../../models/TrendingModels';
|
|
3
3
|
interface Props {
|
|
4
4
|
open: boolean;
|
|
5
5
|
handleClose: () => void;
|
|
6
|
-
onTagSelect: (selected:
|
|
6
|
+
onTagSelect: (selected: ViewTag) => void;
|
|
7
7
|
}
|
|
8
8
|
export declare const AddTagModal: ({ open, handleClose, onTagSelect }: Props) => React.JSX.Element;
|
|
9
9
|
export {};
|
package/dist/pages/trendings/components/chart/components/modals/addTagModal/TagSelectionModal.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ViewTag } from "../../../models/TrendingModels";
|
|
3
3
|
interface TagSelectionModalProps {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
onClose: () => void;
|
|
6
|
-
onTagSelect: (tag:
|
|
6
|
+
onTagSelect: (tag: ViewTag) => void;
|
|
7
7
|
}
|
|
8
8
|
declare const TagSelectionModal: React.FC<TagSelectionModalProps>;
|
|
9
9
|
export default TagSelectionModal;
|
|
@@ -5,6 +5,10 @@ export declare const useTrendingContext: () => {
|
|
|
5
5
|
timeScopeEnd: Date;
|
|
6
6
|
scope: import("../models/scopes.model").scopeType;
|
|
7
7
|
graphPan?: boolean | undefined;
|
|
8
|
+
graphShouldUpdate: number;
|
|
9
|
+
views: import("../models/TrendingModels").View[];
|
|
10
|
+
viewSelected: import("../models/TrendingModels").View | null;
|
|
11
|
+
viewTags: import("../models/TrendingModels").ViewTag[];
|
|
8
12
|
};
|
|
9
13
|
actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
10
14
|
setTotalScope(state: import("immer/dist/internal").WritableDraft<{
|
|
@@ -12,6 +16,10 @@ export declare const useTrendingContext: () => {
|
|
|
12
16
|
timeScopeEnd: Date;
|
|
13
17
|
scope: import("../models/scopes.model").scopeType;
|
|
14
18
|
graphPan?: boolean | undefined;
|
|
19
|
+
graphShouldUpdate: number;
|
|
20
|
+
views: import("../models/TrendingModels").View[];
|
|
21
|
+
viewSelected: import("../models/TrendingModels").View | null;
|
|
22
|
+
viewTags: import("../models/TrendingModels").ViewTag[];
|
|
15
23
|
}>, { payload, type, }: {
|
|
16
24
|
payload: {
|
|
17
25
|
scope: import("../models/scopes.model").scopeType;
|
|
@@ -36,6 +44,45 @@ export declare const useTrendingContext: () => {
|
|
|
36
44
|
};
|
|
37
45
|
type: string;
|
|
38
46
|
}): void;
|
|
47
|
+
setViews(state: import("immer/dist/internal").WritableDraft<{
|
|
48
|
+
timeScopeStart: Date;
|
|
49
|
+
timeScopeEnd: Date;
|
|
50
|
+
scope: import("../models/scopes.model").scopeType;
|
|
51
|
+
graphPan?: boolean | undefined;
|
|
52
|
+
graphShouldUpdate: number;
|
|
53
|
+
views: import("../models/TrendingModels").View[];
|
|
54
|
+
viewSelected: import("../models/TrendingModels").View | null;
|
|
55
|
+
viewTags: import("../models/TrendingModels").ViewTag[];
|
|
56
|
+
}>, { payload }: {
|
|
57
|
+
payload: any;
|
|
58
|
+
type: string;
|
|
59
|
+
}): void;
|
|
60
|
+
setViewSelected(state: import("immer/dist/internal").WritableDraft<{
|
|
61
|
+
timeScopeStart: Date;
|
|
62
|
+
timeScopeEnd: Date;
|
|
63
|
+
scope: import("../models/scopes.model").scopeType;
|
|
64
|
+
graphPan?: boolean | undefined;
|
|
65
|
+
graphShouldUpdate: number;
|
|
66
|
+
views: import("../models/TrendingModels").View[];
|
|
67
|
+
viewSelected: import("../models/TrendingModels").View | null;
|
|
68
|
+
viewTags: import("../models/TrendingModels").ViewTag[];
|
|
69
|
+
}>, { payload }: {
|
|
70
|
+
payload: any;
|
|
71
|
+
type: string;
|
|
72
|
+
}): void;
|
|
73
|
+
setViewTags(state: import("immer/dist/internal").WritableDraft<{
|
|
74
|
+
timeScopeStart: Date;
|
|
75
|
+
timeScopeEnd: Date;
|
|
76
|
+
scope: import("../models/scopes.model").scopeType;
|
|
77
|
+
graphPan?: boolean | undefined;
|
|
78
|
+
graphShouldUpdate: number;
|
|
79
|
+
views: import("../models/TrendingModels").View[];
|
|
80
|
+
viewSelected: import("../models/TrendingModels").View | null;
|
|
81
|
+
viewTags: import("../models/TrendingModels").ViewTag[];
|
|
82
|
+
}>, { payload }: {
|
|
83
|
+
payload: any;
|
|
84
|
+
type: string;
|
|
85
|
+
}): void;
|
|
39
86
|
}, "__">;
|
|
40
87
|
};
|
|
41
88
|
export declare const TrendingProvider: ({ children }: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ChartData } from "chart.js";
|
|
2
|
-
import { CursorData,
|
|
2
|
+
import { CursorData, ViewTag } from "../models/TrendingModels";
|
|
3
3
|
interface Props {
|
|
4
4
|
cursorData: CursorData;
|
|
5
|
-
|
|
5
|
+
viewTags: ViewTag[];
|
|
6
6
|
chartData: ChartData;
|
|
7
7
|
}
|
|
8
8
|
interface TagsDataTable {
|
|
@@ -20,5 +20,5 @@ interface TagsDataTable {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
export declare const useTagsDataTable: ({ cursorData,
|
|
23
|
+
export declare const useTagsDataTable: ({ cursorData, viewTags, chartData }: Props) => TagsDataTable;
|
|
24
24
|
export {};
|
|
@@ -31,3 +31,24 @@ export interface CustomOptions {
|
|
|
31
31
|
stepped: boolean;
|
|
32
32
|
}
|
|
33
33
|
export type TagList = Tag[];
|
|
34
|
+
export interface View {
|
|
35
|
+
ViewId: number;
|
|
36
|
+
ViewName: string;
|
|
37
|
+
UserName: string | null;
|
|
38
|
+
IsPublic: boolean;
|
|
39
|
+
LastModified: Date | null;
|
|
40
|
+
LastModifiedBy: number | null;
|
|
41
|
+
}
|
|
42
|
+
export interface ViewTag {
|
|
43
|
+
ViewId: number;
|
|
44
|
+
TagId: number;
|
|
45
|
+
TagName: string;
|
|
46
|
+
Alias: string;
|
|
47
|
+
TagType: string;
|
|
48
|
+
Color: string;
|
|
49
|
+
MinScale: number;
|
|
50
|
+
MaxScale: number;
|
|
51
|
+
Unit: string;
|
|
52
|
+
IsVisible: boolean;
|
|
53
|
+
IsAutoScale: boolean;
|
|
54
|
+
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const fetchDataFunction: (tagList: TagList[], state: any, actions: any) => Promise<void>;
|
|
3
|
-
export declare const getTags: (NodeName: string | null) => Promise<import("../../../../../services").ResponseMESF>;
|
|
1
|
+
export declare const getTagDirectChildren: (NodeName: string | null) => Promise<import("../../../../../services").ResponseMESF>;
|
|
4
2
|
export declare const getSeriesData: (TagIds: string, Start: number | null, End: number | null, SampleCount: number) => Promise<import("../../../../../services").ResponseMESF>;
|
|
5
3
|
export declare const saveTagDefaults: (TagId: number, Alias: string, Color: string, MinScale: number, MaxScale: number, Unit: string) => Promise<import("../../../../../services").ResponseMESF>;
|
|
4
|
+
export declare const getViews: (Search: string | null) => Promise<import("../../../../../services").ResponseMESF>;
|
|
6
5
|
export declare const getViewTags: (ViewId: number | null) => Promise<import("../../../../../services").ResponseMESF>;
|
|
7
|
-
export declare const upsertView: (ViewId: number | null, ViewName: string,
|
|
8
|
-
export declare const upsertViewTag: (ViewId: number, TagId: number, Color: string, MinScale: number, MaxScale: number, IsVisible: boolean) => Promise<import("../../../../../services").ResponseMESF>;
|
|
6
|
+
export declare const upsertView: (ViewId: number | null, ViewName: string, isPublic: boolean) => Promise<import("../../../../../services").ResponseMESF>;
|
|
7
|
+
export declare const upsertViewTag: (ViewId: number, TagId: number, Color: string, MinScale: number, MaxScale: number, IsVisible: boolean, IsAutoScale: boolean) => Promise<import("../../../../../services").ResponseMESF>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Tag } from "../models/TrendingModels";
|
|
3
2
|
interface Props {
|
|
4
|
-
tagList: Tag[];
|
|
5
3
|
series: any[];
|
|
6
4
|
chartOptions: any;
|
|
7
5
|
setChartOptions: any;
|
|
@@ -9,5 +7,5 @@ interface Props {
|
|
|
9
7
|
chartData: any;
|
|
10
8
|
setChartData: any;
|
|
11
9
|
}
|
|
12
|
-
export declare const TrendingChart: ({
|
|
10
|
+
export declare const TrendingChart: ({ series, chartOptions, setChartOptions, chartData, setCursorData, setChartData }: Props) => React.JSX.Element;
|
|
13
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useTrendingStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"datetimePicker" | "select" | "labelOptions" | "navigatorButton">;
|
|
1
|
+
export declare const useTrendingStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"datetimePicker" | "select" | "labelOptions" | "isPublicCheckbox" | "navigatorButton">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const areRangesSimilar: (tag1:
|
|
1
|
+
import { ViewTag } from "../models/TrendingModels";
|
|
2
|
+
export declare const areRangesSimilar: (tag1: ViewTag, tag2: ViewTag) => boolean | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const index: () => React.JSX.Element;
|
|
3
|
+
export default index;
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import { scopeType } from "../components/chart/models/scopes.model";
|
|
2
|
+
import { View, ViewTag } from "../components/chart/models/TrendingModels";
|
|
2
3
|
export declare const TrendingsReducer: import("@reduxjs/toolkit").Slice<{
|
|
3
4
|
timeScopeStart: Date;
|
|
4
5
|
timeScopeEnd: Date;
|
|
5
6
|
scope: scopeType;
|
|
6
7
|
graphPan?: boolean | undefined;
|
|
8
|
+
graphShouldUpdate: number;
|
|
9
|
+
views: View[];
|
|
10
|
+
viewSelected: View | null;
|
|
11
|
+
viewTags: ViewTag[];
|
|
7
12
|
}, {
|
|
8
13
|
setTotalScope(state: import("immer/dist/internal").WritableDraft<{
|
|
9
14
|
timeScopeStart: Date;
|
|
10
15
|
timeScopeEnd: Date;
|
|
11
16
|
scope: scopeType;
|
|
12
17
|
graphPan?: boolean | undefined;
|
|
18
|
+
graphShouldUpdate: number;
|
|
19
|
+
views: View[];
|
|
20
|
+
viewSelected: View | null;
|
|
21
|
+
viewTags: ViewTag[];
|
|
13
22
|
}>, { payload, type, }: {
|
|
14
23
|
payload: {
|
|
15
24
|
scope: scopeType;
|
|
@@ -34,4 +43,43 @@ export declare const TrendingsReducer: import("@reduxjs/toolkit").Slice<{
|
|
|
34
43
|
};
|
|
35
44
|
type: string;
|
|
36
45
|
}): void;
|
|
46
|
+
setViews(state: import("immer/dist/internal").WritableDraft<{
|
|
47
|
+
timeScopeStart: Date;
|
|
48
|
+
timeScopeEnd: Date;
|
|
49
|
+
scope: scopeType;
|
|
50
|
+
graphPan?: boolean | undefined;
|
|
51
|
+
graphShouldUpdate: number;
|
|
52
|
+
views: View[];
|
|
53
|
+
viewSelected: View | null;
|
|
54
|
+
viewTags: ViewTag[];
|
|
55
|
+
}>, { payload }: {
|
|
56
|
+
payload: any;
|
|
57
|
+
type: string;
|
|
58
|
+
}): void;
|
|
59
|
+
setViewSelected(state: import("immer/dist/internal").WritableDraft<{
|
|
60
|
+
timeScopeStart: Date;
|
|
61
|
+
timeScopeEnd: Date;
|
|
62
|
+
scope: scopeType;
|
|
63
|
+
graphPan?: boolean | undefined;
|
|
64
|
+
graphShouldUpdate: number;
|
|
65
|
+
views: View[];
|
|
66
|
+
viewSelected: View | null;
|
|
67
|
+
viewTags: ViewTag[];
|
|
68
|
+
}>, { payload }: {
|
|
69
|
+
payload: any;
|
|
70
|
+
type: string;
|
|
71
|
+
}): void;
|
|
72
|
+
setViewTags(state: import("immer/dist/internal").WritableDraft<{
|
|
73
|
+
timeScopeStart: Date;
|
|
74
|
+
timeScopeEnd: Date;
|
|
75
|
+
scope: scopeType;
|
|
76
|
+
graphPan?: boolean | undefined;
|
|
77
|
+
graphShouldUpdate: number;
|
|
78
|
+
views: View[];
|
|
79
|
+
viewSelected: View | null;
|
|
80
|
+
viewTags: ViewTag[];
|
|
81
|
+
}>, { payload }: {
|
|
82
|
+
payload: any;
|
|
83
|
+
type: string;
|
|
84
|
+
}): void;
|
|
37
85
|
}, "__">;
|