@dexteel/mesf-core 7.11.0 → 7.11.1
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/MESFMain.d.ts +1 -1
- package/dist/components/navigation/Header.d.ts +1 -2
- package/dist/components/navigation/Navigation.d.ts +1 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +637 -3353
- package/dist/index.esm.js.map +1 -1
- package/dist/pages/trendings-v2/TrendingsPageV2.d.ts +2 -2
- package/dist/pages/trendings-v2/components/chart/components/TagFolderCustomNodeV2.d.ts +1 -1
- package/dist/pages/trendings-v2/components/chart/components/TagSearchInput.d.ts +1 -1
- package/dist/pages/trendings-v2/components/chart/components/TagsTreeModalV2.d.ts +1 -1
- package/dist/pages/{trendings/components/chart/components/modals/tagsTreeModal/ContextMenu → trendings-v2/components/chart/components/modals/tagsTreeModal}/ContextMenu.d.ts +1 -1
- package/dist/pages/{trendings → trendings-v2}/components/chart/components/modals/tagsTreeModal/CustomDragView.d.ts +1 -1
- package/dist/pages/{trendings/components/chart/components/modals/tagsTreeModal/ContextMenu/NewFolder/NewFolder.d.ts → trendings-v2/components/chart/components/modals/tagsTreeModal/NewFolderModal.d.ts} +1 -1
- package/dist/pages/{trendings/components/chart/components/modals/tagsTreeModal/ContextMenu/RemoveFolder/RemoveFolder.d.ts → trendings-v2/components/chart/components/modals/tagsTreeModal/RemoveFolderModal.d.ts} +1 -1
- package/dist/pages/trendings-v2/components/chart/context/TrendingContextV2.d.ts +1 -2
- package/dist/pages/trendings-v2/components/chart/hooks/useTagSearch.d.ts +1 -1
- package/dist/pages/trendings-v2/components/chart/models/TrendingModelsV2.d.ts +1 -0
- package/dist/pages/trendings-v2/components/chart/repository/TrendingRepositoryV2.d.ts +47 -1
- package/dist/pages/trendings-v2/components/chart/utils/buildTagsTree.d.ts +3 -0
- package/dist/pages/trendings-v2/components/chart/utils/calculateDateFromPeriod.d.ts +1 -1
- package/dist/pages/{trendings → trendings-v2}/components/chart/utils/dateNavigator.d.ts +1 -1
- package/package.json +1 -1
- package/dist/pages/trendings/TrendingsPage.d.ts +0 -3
- package/dist/pages/trendings/components/chart/DateComponent.d.ts +0 -6
- package/dist/pages/trendings/components/chart/TableComponent.d.ts +0 -14
- package/dist/pages/trendings/components/chart/Trending.d.ts +0 -9
- package/dist/pages/trendings/components/chart/components/CellComponent.d.ts +0 -11
- package/dist/pages/trendings/components/chart/components/ColorPicker.d.ts +0 -8
- package/dist/pages/trendings/components/chart/components/DraggableLineControl.d.ts +0 -11
- package/dist/pages/trendings/components/chart/components/modals/deleteViewModal/DeleteViewModal.d.ts +0 -9
- package/dist/pages/trendings/components/chart/components/modals/editViewModal/EditViewModal.d.ts +0 -9
- package/dist/pages/trendings/components/chart/components/modals/loadView/LoadViewModal.d.ts +0 -7
- package/dist/pages/trendings/components/chart/components/modals/saveAsView/SaveAsViewModal.d.ts +0 -7
- package/dist/pages/trendings/components/chart/components/modals/saveView/SaveViewModal.d.ts +0 -7
- package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/TagFolderCustomNode.d.ts +0 -20
- package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/TagSelectionModal.d.ts +0 -9
- package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/TagsTreeModal.d.ts +0 -9
- package/dist/pages/trendings/components/chart/context/TrendingContext.d.ts +0 -120
- package/dist/pages/trendings/components/chart/customOptionsComponent.d.ts +0 -10
- package/dist/pages/trendings/components/chart/hooks/useGetVerticalLinePlugin.d.ts +0 -2
- package/dist/pages/trendings/components/chart/hooks/useTagsDataTable.d.ts +0 -24
- package/dist/pages/trendings/components/chart/hooks/useUpdateCursorData.d.ts +0 -2
- package/dist/pages/trendings/components/chart/hooks/useXAxisDatePlugin.d.ts +0 -2
- package/dist/pages/trendings/components/chart/hooks/useYAxisPlugin.d.ts +0 -2
- package/dist/pages/trendings/components/chart/models/TagsTree.model.d.ts +0 -12
- package/dist/pages/trendings/components/chart/models/TrendingModels.d.ts +0 -65
- package/dist/pages/trendings/components/chart/models/scopes.model.d.ts +0 -1
- package/dist/pages/trendings/components/chart/repository/TrendingRepository.d.ts +0 -48
- package/dist/pages/trendings/components/chart/sections/chart/hooks/useChartOptions.d.ts +0 -105
- package/dist/pages/trendings/components/chart/sections/header.d.ts +0 -8
- package/dist/pages/trendings/components/chart/sections/trending-chart.d.ts +0 -12
- package/dist/pages/trendings/components/chart/utils/areRangeSimilar.d.ts +0 -2
- package/dist/pages/trendings/components/chart/utils/buildTagsTree.d.ts +0 -4
- package/dist/pages/trendings/components/chart/utils/calculateScales.d.ts +0 -4
- package/dist/pages/trendings/components/chart/utils/formatDateTimeToString.d.ts +0 -4
- package/dist/pages/trendings/components/chart/utils/formatTimeDiffWithMs.d.ts +0 -1
- package/dist/pages/trendings/components/chart/utils/timeDifference.d.ts +0 -1
- package/dist/pages/trendings/hooks/useTrendingQueries.d.ts +0 -15
- package/dist/pages/trendings/index.d.ts +0 -3
- package/dist/pages/trendings/reducers/trendings.reducer.d.ts +0 -115
- /package/dist/pages/{trendings → trendings-v2}/components/chart/utils/tagColors.d.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { ViewTagDataSet } from "./components/chart/models/TrendingModelsV2";
|
|
2
|
+
import type { View, ViewTagDataSet } from "./components/chart/models/TrendingModelsV2";
|
|
3
3
|
export declare const useSearchViews: ({ autoRefresh, }: {
|
|
4
4
|
autoRefresh?: boolean;
|
|
5
|
-
}) => import("@tanstack/react-query").UseQueryResult<
|
|
5
|
+
}) => import("@tanstack/react-query").UseQueryResult<View[], unknown>;
|
|
6
6
|
export declare const useSearchViewTags: ({ viewId }: {
|
|
7
7
|
viewId: number | null;
|
|
8
8
|
}) => import("@tanstack/react-query").UseQueryResult<any[], unknown>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NodeModel, RenderParams } from "@minoru/react-dnd-treeview";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { TagFromTree } from "
|
|
3
|
+
import { TagFromTree } from "../models/TrendingModelsV2";
|
|
4
4
|
interface CustomNodeProps {
|
|
5
5
|
node: NodeModel<TagFromTree>;
|
|
6
6
|
setContextMenuOver: (data: NodeModel<TagFromTree>, e: React.MouseEvent<HTMLElement>) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NodeModel } from "@minoru/react-dnd-treeview";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { TagFromTree } from "../../../../trendings/components/chart/models/TagsTree.model";
|
|
4
3
|
import { TagSearchResult } from "../hooks/useTagSearch";
|
|
4
|
+
import { TagFromTree } from "../models/TrendingModelsV2";
|
|
5
5
|
interface TagSearchInputProps {
|
|
6
6
|
tagNodes: NodeModel<TagFromTree>[];
|
|
7
7
|
onSearchResultClick: (result: TagSearchResult) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NodeModel } from "@minoru/react-dnd-treeview";
|
|
2
2
|
import React, { type Dispatch } from "react";
|
|
3
|
-
import { TagFromTree } from "
|
|
3
|
+
import { TagFromTree } from "../../../models/TrendingModelsV2";
|
|
4
4
|
interface Props {
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
tagNodeSelectedInTree: NodeModel<TagFromTree> | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DragLayerMonitorProps } from "@minoru/react-dnd-treeview";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { TagFromTree } from "../../../models/
|
|
3
|
+
import { TagFromTree } from "../../../models/TrendingModelsV2";
|
|
4
4
|
type Props = {
|
|
5
5
|
monitorProps: DragLayerMonitorProps<TagFromTree>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NodeModel } from "@minoru/react-dnd-treeview";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { TagFromTree } from "
|
|
3
|
+
import { TagFromTree } from "../../../models/TrendingModelsV2";
|
|
4
4
|
interface Props {
|
|
5
5
|
open: boolean;
|
|
6
6
|
handleClose: (shouldUpdate: boolean) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NodeModel } from "@minoru/react-dnd-treeview";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { TagFromTree } from "
|
|
3
|
+
import { TagFromTree } from "../../../models/TrendingModelsV2";
|
|
4
4
|
interface Props {
|
|
5
5
|
open: boolean;
|
|
6
6
|
handleClose: (shouldUpdate: boolean) => void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { scopeType } from "../../../../trendings/components/chart/models/scopes.model";
|
|
3
2
|
import type { TagMinMax } from "../hooks/useSeriesMinMax";
|
|
4
|
-
import type { ChartConfig, CursorData, View, ViewTagsMap } from "../models/TrendingModelsV2";
|
|
3
|
+
import type { ChartConfig, CursorData, View, ViewTagsMap, scopeType } from "../models/TrendingModelsV2";
|
|
5
4
|
interface TrendingState {
|
|
6
5
|
viewTags: ViewTagsMap;
|
|
7
6
|
viewSelected: View | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NodeModel } from "@minoru/react-dnd-treeview";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { TagFromTree } from "
|
|
3
|
+
import { TagFromTree } from "../models/TrendingModelsV2";
|
|
4
4
|
export interface TagSearchResult {
|
|
5
5
|
id: number;
|
|
6
6
|
name: string;
|
|
@@ -1 +1,47 @@
|
|
|
1
|
-
|
|
1
|
+
import { TagFromTree, View } from "../models/TrendingModelsV2";
|
|
2
|
+
export declare const getTagsTree: () => Promise<TagFromTree[]>;
|
|
3
|
+
export declare const deleteTagFolder: (TagFolderId: number) => Promise<void>;
|
|
4
|
+
export declare const upsertTagFolder: ({ tagFolderId, parentTagFolderId, tagFolderName, isActive, }: {
|
|
5
|
+
tagFolderId: number | null;
|
|
6
|
+
parentTagFolderId: number | null;
|
|
7
|
+
tagFolderName: string;
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
}) => Promise<void>;
|
|
10
|
+
export declare const changeTagFolderToTag: ({ tagId, tagFolderId, }: {
|
|
11
|
+
tagId: number | null;
|
|
12
|
+
tagFolderId: number | null;
|
|
13
|
+
}) => Promise<void>;
|
|
14
|
+
export declare const getSeriesData: (TagIds: string, Start: number | null, End: number | null, SampleCount: number) => Promise<import("../../../../../services").ResponseMESF>;
|
|
15
|
+
export declare const saveTagDefaults: ({ tagId, alias, color, minScale, maxScale, unit, }: {
|
|
16
|
+
tagId: number;
|
|
17
|
+
alias: string;
|
|
18
|
+
color: string;
|
|
19
|
+
minScale: number;
|
|
20
|
+
maxScale: number;
|
|
21
|
+
unit: string;
|
|
22
|
+
}) => Promise<void>;
|
|
23
|
+
export declare const getViews: (Search: string | null) => Promise<View[]>;
|
|
24
|
+
export declare const upsertView: ({ viewId, viewName, isPublic, }: {
|
|
25
|
+
viewId: number | null;
|
|
26
|
+
viewName: string;
|
|
27
|
+
isPublic: boolean;
|
|
28
|
+
}) => Promise<number>;
|
|
29
|
+
export declare const deleteView: (ViewId: number) => Promise<void>;
|
|
30
|
+
export declare const getViewTags: (ViewId: number) => Promise<any[]>;
|
|
31
|
+
export declare const upsertViewTag: ({ viewId, tagId, color, minScale, maxScale, isVisible, isAutoScale, unit, order, alias, tagType, sourceTagId, bitIndex, }: {
|
|
32
|
+
viewId: number;
|
|
33
|
+
tagId: number;
|
|
34
|
+
color: string;
|
|
35
|
+
minScale: number;
|
|
36
|
+
maxScale: number;
|
|
37
|
+
isVisible: boolean;
|
|
38
|
+
isAutoScale: boolean;
|
|
39
|
+
unit: string;
|
|
40
|
+
order?: number;
|
|
41
|
+
alias?: string;
|
|
42
|
+
tagType?: string;
|
|
43
|
+
sourceTagId?: number;
|
|
44
|
+
bitIndex?: number;
|
|
45
|
+
}) => Promise<void>;
|
|
46
|
+
export declare const deleteViewTag: (ViewId: number, TagId: number) => Promise<import("../../../../../services").ResponseMESF>;
|
|
47
|
+
export declare const deleteAllViewTagsFromView: (ViewId: number) => Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { scopeType } from "../models/
|
|
1
|
+
import { scopeType } from "../models/TrendingModelsV2";
|
|
2
2
|
export declare const dateNavigator: (startDate: Date, endDate: Date, scope: scopeType, operator: "add" | "subtract", current?: boolean) => {
|
|
3
3
|
newStartDate: Date;
|
|
4
4
|
newEndDate: Date;
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ChartData } from "chart.js";
|
|
2
|
-
import React, { type Dispatch } from "react";
|
|
3
|
-
import "./ContextMenu.css";
|
|
4
|
-
import { CursorData, ViewTag } from "./models/TrendingModels";
|
|
5
|
-
interface TableComponentProps {
|
|
6
|
-
cursorData: CursorData;
|
|
7
|
-
chartData: ChartData;
|
|
8
|
-
viewTagForDelete: ViewTag | null;
|
|
9
|
-
setViewTagForDelete: Dispatch<ViewTag | null>;
|
|
10
|
-
selectedRowTagId: number | null;
|
|
11
|
-
setSelectedRowTagId: Dispatch<number | null>;
|
|
12
|
-
}
|
|
13
|
-
declare const TableComponent: React.FC<TableComponentProps>;
|
|
14
|
-
export default TableComponent;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "chartjs-adapter-moment/dist/chartjs-adapter-moment.esm.js";
|
|
2
|
-
import React from "react";
|
|
3
|
-
interface TrendingProps {
|
|
4
|
-
title: string;
|
|
5
|
-
autoRefresh: boolean;
|
|
6
|
-
setAutoRefresh: (autoRefresh: boolean) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const Trending: React.FC<TrendingProps>;
|
|
9
|
-
export default Trending;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ChartData } from "chart.js";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Tag } from "../models/TrendingModels";
|
|
4
|
-
interface Props {
|
|
5
|
-
tag: Tag;
|
|
6
|
-
chartData: ChartData;
|
|
7
|
-
index: number;
|
|
8
|
-
limitX: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const CellComponent: ({ tag, chartData, index, limitX }: Props) => React.JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ChartArea } from "chart.js";
|
|
2
|
-
import React from "react";
|
|
3
|
-
interface DraggableLineControlProps {
|
|
4
|
-
chartArea: ChartArea;
|
|
5
|
-
initialLeft: number;
|
|
6
|
-
otherLineCoord: number;
|
|
7
|
-
onUpdate: (newLeft: number) => void;
|
|
8
|
-
color: string;
|
|
9
|
-
}
|
|
10
|
-
declare const DraggableLineControl: React.FC<DraggableLineControlProps>;
|
|
11
|
-
export default DraggableLineControl;
|
package/dist/pages/trendings/components/chart/components/modals/deleteViewModal/DeleteViewModal.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View } from "../../../models/TrendingModels";
|
|
3
|
-
interface Props {
|
|
4
|
-
open: boolean;
|
|
5
|
-
handleClose: (shouldUpdate: boolean) => void;
|
|
6
|
-
view: View | null;
|
|
7
|
-
}
|
|
8
|
-
export declare const DeleteViewModal: ({ open, handleClose, view }: Props) => React.JSX.Element;
|
|
9
|
-
export {};
|
package/dist/pages/trendings/components/chart/components/modals/editViewModal/EditViewModal.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View } from "../../../models/TrendingModels";
|
|
3
|
-
interface Props {
|
|
4
|
-
open: boolean;
|
|
5
|
-
handleClose: (shouldUpdate: boolean) => void;
|
|
6
|
-
view: View | null;
|
|
7
|
-
}
|
|
8
|
-
export declare const EditViewModal: ({ open, handleClose, view }: Props) => React.JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { NodeModel, RenderParams } from "@minoru/react-dnd-treeview";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { TagFromTree } from "../../../models/TagsTree.model";
|
|
4
|
-
interface CustomNodeProps {
|
|
5
|
-
node: NodeModel<TagFromTree>;
|
|
6
|
-
setContextMenuOver: (data: NodeModel<TagFromTree>, e: React.MouseEvent<HTMLElement>) => void;
|
|
7
|
-
options: RenderParams;
|
|
8
|
-
openTagFolders: {
|
|
9
|
-
[TagId: string]: string | number;
|
|
10
|
-
[TagId: number]: string | number;
|
|
11
|
-
};
|
|
12
|
-
handleSelect: (node: NodeModel<TagFromTree>) => void;
|
|
13
|
-
setOpenTagFolders: React.Dispatch<React.SetStateAction<{
|
|
14
|
-
[TagId: string]: string | number;
|
|
15
|
-
[TagId: number]: string | number;
|
|
16
|
-
}>>;
|
|
17
|
-
isSelected: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare const TagFolderCustomNode: React.FC<CustomNodeProps>;
|
|
20
|
-
export {};
|
package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/TagSelectionModal.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TagFromTree } from "../../../models/TagsTree.model";
|
|
3
|
-
interface TagSelectionModalProps {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
onTagSelect: (tag: TagFromTree) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const TagSelectionModal: ({ isOpen, onClose, onTagSelect, }: TagSelectionModalProps) => React.JSX.Element;
|
|
9
|
-
export {};
|
package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/TagsTreeModal.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TagFromTree } from "../../../models/TagsTree.model";
|
|
3
|
-
interface Props {
|
|
4
|
-
open: boolean;
|
|
5
|
-
handleClose: () => void;
|
|
6
|
-
onTagSelect: (selected: TagFromTree) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const TagsTreeModal: ({ open, handleClose, onTagSelect }: Props) => React.JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import React, { type ReactNode } from "react";
|
|
2
|
-
export declare const useTrendingContext: () => {
|
|
3
|
-
state: {
|
|
4
|
-
timeScopeStart: Date;
|
|
5
|
-
timeScopeEnd: Date;
|
|
6
|
-
scope: import("../models/scopes.model").scopeType;
|
|
7
|
-
graphPan?: boolean;
|
|
8
|
-
graphShouldUpdate: number;
|
|
9
|
-
shouldRefetchSeries: number;
|
|
10
|
-
views: import("../models/TrendingModels").View[];
|
|
11
|
-
viewSelected: import("../models/TrendingModels").View | null;
|
|
12
|
-
viewTags: import("../models/TrendingModels").ViewTagsMap;
|
|
13
|
-
};
|
|
14
|
-
actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
15
|
-
setTotalScope(state: import("immer/dist/internal").WritableDraft<{
|
|
16
|
-
timeScopeStart: Date;
|
|
17
|
-
timeScopeEnd: Date;
|
|
18
|
-
scope: import("../models/scopes.model").scopeType;
|
|
19
|
-
graphPan?: boolean;
|
|
20
|
-
graphShouldUpdate: number;
|
|
21
|
-
shouldRefetchSeries: number;
|
|
22
|
-
views: import("../models/TrendingModels").View[];
|
|
23
|
-
viewSelected: import("../models/TrendingModels").View | null;
|
|
24
|
-
viewTags: import("../models/TrendingModels").ViewTagsMap;
|
|
25
|
-
}>, { payload, type, }: {
|
|
26
|
-
payload: {
|
|
27
|
-
scope: import("../models/scopes.model").scopeType;
|
|
28
|
-
start?: Date;
|
|
29
|
-
end?: Date;
|
|
30
|
-
graphPan?: boolean;
|
|
31
|
-
} | {
|
|
32
|
-
scope?: import("../models/scopes.model").scopeType;
|
|
33
|
-
start: Date;
|
|
34
|
-
end?: Date;
|
|
35
|
-
graphPan?: boolean;
|
|
36
|
-
} | {
|
|
37
|
-
scope?: import("../models/scopes.model").scopeType;
|
|
38
|
-
start?: Date;
|
|
39
|
-
end: Date;
|
|
40
|
-
graphPan?: boolean;
|
|
41
|
-
} | {
|
|
42
|
-
scope?: import("../models/scopes.model").scopeType;
|
|
43
|
-
start: Date;
|
|
44
|
-
end: Date;
|
|
45
|
-
graphPan: boolean;
|
|
46
|
-
};
|
|
47
|
-
type: string;
|
|
48
|
-
}): void;
|
|
49
|
-
setViews(state: import("immer/dist/internal").WritableDraft<{
|
|
50
|
-
timeScopeStart: Date;
|
|
51
|
-
timeScopeEnd: Date;
|
|
52
|
-
scope: import("../models/scopes.model").scopeType;
|
|
53
|
-
graphPan?: boolean;
|
|
54
|
-
graphShouldUpdate: number;
|
|
55
|
-
shouldRefetchSeries: number;
|
|
56
|
-
views: import("../models/TrendingModels").View[];
|
|
57
|
-
viewSelected: import("../models/TrendingModels").View | null;
|
|
58
|
-
viewTags: import("../models/TrendingModels").ViewTagsMap;
|
|
59
|
-
}>, { payload }: {
|
|
60
|
-
payload: any;
|
|
61
|
-
type: string;
|
|
62
|
-
}): void;
|
|
63
|
-
setViewSelected(state: import("immer/dist/internal").WritableDraft<{
|
|
64
|
-
timeScopeStart: Date;
|
|
65
|
-
timeScopeEnd: Date;
|
|
66
|
-
scope: import("../models/scopes.model").scopeType;
|
|
67
|
-
graphPan?: boolean;
|
|
68
|
-
graphShouldUpdate: number;
|
|
69
|
-
shouldRefetchSeries: number;
|
|
70
|
-
views: import("../models/TrendingModels").View[];
|
|
71
|
-
viewSelected: import("../models/TrendingModels").View | null;
|
|
72
|
-
viewTags: import("../models/TrendingModels").ViewTagsMap;
|
|
73
|
-
}>, { payload }: {
|
|
74
|
-
payload: any;
|
|
75
|
-
type: string;
|
|
76
|
-
}): void;
|
|
77
|
-
setViewTags(state: import("immer/dist/internal").WritableDraft<{
|
|
78
|
-
timeScopeStart: Date;
|
|
79
|
-
timeScopeEnd: Date;
|
|
80
|
-
scope: import("../models/scopes.model").scopeType;
|
|
81
|
-
graphPan?: boolean;
|
|
82
|
-
graphShouldUpdate: number;
|
|
83
|
-
shouldRefetchSeries: number;
|
|
84
|
-
views: import("../models/TrendingModels").View[];
|
|
85
|
-
viewSelected: import("../models/TrendingModels").View | null;
|
|
86
|
-
viewTags: import("../models/TrendingModels").ViewTagsMap;
|
|
87
|
-
}>, { payload }: {
|
|
88
|
-
payload: any;
|
|
89
|
-
type: string;
|
|
90
|
-
}): void;
|
|
91
|
-
setViewTagsAndRefetch(state: import("immer/dist/internal").WritableDraft<{
|
|
92
|
-
timeScopeStart: Date;
|
|
93
|
-
timeScopeEnd: Date;
|
|
94
|
-
scope: import("../models/scopes.model").scopeType;
|
|
95
|
-
graphPan?: boolean;
|
|
96
|
-
graphShouldUpdate: number;
|
|
97
|
-
shouldRefetchSeries: number;
|
|
98
|
-
views: import("../models/TrendingModels").View[];
|
|
99
|
-
viewSelected: import("../models/TrendingModels").View | null;
|
|
100
|
-
viewTags: import("../models/TrendingModels").ViewTagsMap;
|
|
101
|
-
}>, { payload }: {
|
|
102
|
-
payload: any;
|
|
103
|
-
type: string;
|
|
104
|
-
}): void;
|
|
105
|
-
setGraphShouldUpdate(state: import("immer/dist/internal").WritableDraft<{
|
|
106
|
-
timeScopeStart: Date;
|
|
107
|
-
timeScopeEnd: Date;
|
|
108
|
-
scope: import("../models/scopes.model").scopeType;
|
|
109
|
-
graphPan?: boolean;
|
|
110
|
-
graphShouldUpdate: number;
|
|
111
|
-
shouldRefetchSeries: number;
|
|
112
|
-
views: import("../models/TrendingModels").View[];
|
|
113
|
-
viewSelected: import("../models/TrendingModels").View | null;
|
|
114
|
-
viewTags: import("../models/TrendingModels").ViewTagsMap;
|
|
115
|
-
}>): void;
|
|
116
|
-
}, "__">;
|
|
117
|
-
};
|
|
118
|
-
export declare const TrendingProvider: ({ children }: {
|
|
119
|
-
children: ReactNode;
|
|
120
|
-
}) => React.JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CustomOptions } from "./models/TrendingModels";
|
|
3
|
-
interface CustomOptionsComponentProps {
|
|
4
|
-
customOptions: CustomOptions;
|
|
5
|
-
setCustomOptions: React.Dispatch<React.SetStateAction<CustomOptions>>;
|
|
6
|
-
autoRefresh: boolean;
|
|
7
|
-
setAutoRefresh: (autoRefresh: boolean) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const CustomOptionsComponent: React.FC<CustomOptionsComponentProps>;
|
|
10
|
-
export default CustomOptionsComponent;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ChartData } from "chart.js";
|
|
2
|
-
import { CursorData, ViewTagsMap } from "../models/TrendingModels";
|
|
3
|
-
interface Props {
|
|
4
|
-
cursorData: CursorData;
|
|
5
|
-
viewTagsMap: ViewTagsMap;
|
|
6
|
-
chartData: ChartData;
|
|
7
|
-
}
|
|
8
|
-
interface TagsDataTable {
|
|
9
|
-
[tagName: string]: {
|
|
10
|
-
y1: number;
|
|
11
|
-
y2: number;
|
|
12
|
-
y2y1: number;
|
|
13
|
-
pmin: {
|
|
14
|
-
x: number | Date;
|
|
15
|
-
y: number;
|
|
16
|
-
};
|
|
17
|
-
pmax: {
|
|
18
|
-
x: number | Date;
|
|
19
|
-
y: number;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export declare const useTagsDataTable: ({ cursorData, viewTagsMap, chartData, }: Props) => TagsDataTable;
|
|
24
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface TagFromTree {
|
|
2
|
-
TagId: number;
|
|
3
|
-
ParentTagId: number | null;
|
|
4
|
-
TagName: string;
|
|
5
|
-
Alias: string;
|
|
6
|
-
TagTypeCode: string;
|
|
7
|
-
Color: string | null;
|
|
8
|
-
MinScale: number | null;
|
|
9
|
-
MaxScale: number | null;
|
|
10
|
-
Unit: string | null;
|
|
11
|
-
children: null | TagFromTree[];
|
|
12
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export type ViewTagsMap = {
|
|
2
|
-
[tagId: number]: {
|
|
3
|
-
viewTag: ViewTag;
|
|
4
|
-
order: number;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export interface TimeScope {
|
|
8
|
-
start: Date;
|
|
9
|
-
end: Date;
|
|
10
|
-
}
|
|
11
|
-
export interface Sample {
|
|
12
|
-
timestamp: number;
|
|
13
|
-
value: number;
|
|
14
|
-
}
|
|
15
|
-
export type SampleArray = Sample[][];
|
|
16
|
-
export interface Tag {
|
|
17
|
-
tagId: number;
|
|
18
|
-
tagName: string;
|
|
19
|
-
alias: string;
|
|
20
|
-
tagType: string;
|
|
21
|
-
color: string;
|
|
22
|
-
minValue: number;
|
|
23
|
-
maxValue: number;
|
|
24
|
-
unit: number;
|
|
25
|
-
visible: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface CursorData {
|
|
28
|
-
x1: Date;
|
|
29
|
-
x2: Date;
|
|
30
|
-
values: number[];
|
|
31
|
-
}
|
|
32
|
-
export interface LineCoords {
|
|
33
|
-
x1: number;
|
|
34
|
-
x2: number;
|
|
35
|
-
}
|
|
36
|
-
export interface CustomOptions {
|
|
37
|
-
showGrid: boolean;
|
|
38
|
-
stepped: boolean;
|
|
39
|
-
}
|
|
40
|
-
export type TagList = Tag[];
|
|
41
|
-
export interface View {
|
|
42
|
-
ViewId: number;
|
|
43
|
-
ViewName: string;
|
|
44
|
-
UserName: string | null;
|
|
45
|
-
IsPublic: boolean;
|
|
46
|
-
LastModified: Date | null;
|
|
47
|
-
LastModifiedBy: number | null;
|
|
48
|
-
}
|
|
49
|
-
export interface ViewTag {
|
|
50
|
-
ViewId: number;
|
|
51
|
-
TagId: number;
|
|
52
|
-
TagName: string;
|
|
53
|
-
Alias: string;
|
|
54
|
-
TagType: string;
|
|
55
|
-
Color: string;
|
|
56
|
-
MinScale: number;
|
|
57
|
-
MaxScale: number;
|
|
58
|
-
Unit: string;
|
|
59
|
-
IsVisible: boolean;
|
|
60
|
-
IsAutoScale: boolean;
|
|
61
|
-
}
|
|
62
|
-
export interface ViewTagDataSet {
|
|
63
|
-
timestamp: number;
|
|
64
|
-
value: number;
|
|
65
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type scopeType = "10 min" | "1 hour" | "4 hours" | "12 hours" | "1 day" | "10 days" | "custom";
|