@dexteel/mesf-core 7.10.1 → 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.
Files changed (65) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +19 -0
  3. package/dist/MESFMain.d.ts +1 -1
  4. package/dist/account/login.d.ts +1 -1
  5. package/dist/account/models/login.models.d.ts +1 -0
  6. package/dist/components/navigation/Header.d.ts +1 -2
  7. package/dist/components/navigation/Navigation.d.ts +1 -2
  8. package/dist/index.d.ts +0 -1
  9. package/dist/index.esm.js +691 -3364
  10. package/dist/index.esm.js.map +1 -1
  11. package/dist/pages/trendings-v2/TrendingsPageV2.d.ts +2 -2
  12. package/dist/pages/trendings-v2/components/chart/components/TagFolderCustomNodeV2.d.ts +1 -1
  13. package/dist/pages/trendings-v2/components/chart/components/TagSearchInput.d.ts +1 -1
  14. package/dist/pages/trendings-v2/components/chart/components/TagsTreeModalV2.d.ts +1 -1
  15. package/dist/pages/{trendings/components/chart/components/modals/tagsTreeModal/ContextMenu → trendings-v2/components/chart/components/modals/tagsTreeModal}/ContextMenu.d.ts +1 -1
  16. package/dist/pages/{trendings → trendings-v2}/components/chart/components/modals/tagsTreeModal/CustomDragView.d.ts +1 -1
  17. 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
  18. 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
  19. package/dist/pages/trendings-v2/components/chart/context/TrendingContextV2.d.ts +1 -2
  20. package/dist/pages/trendings-v2/components/chart/hooks/useTagSearch.d.ts +1 -1
  21. package/dist/pages/trendings-v2/components/chart/models/TrendingModelsV2.d.ts +1 -0
  22. package/dist/pages/trendings-v2/components/chart/repository/TrendingRepositoryV2.d.ts +47 -1
  23. package/dist/pages/trendings-v2/components/chart/utils/buildTagsTree.d.ts +3 -0
  24. package/dist/pages/trendings-v2/components/chart/utils/calculateDateFromPeriod.d.ts +1 -1
  25. package/dist/pages/{trendings → trendings-v2}/components/chart/utils/dateNavigator.d.ts +1 -1
  26. package/package.json +1 -1
  27. package/dist/pages/trendings/TrendingsPage.d.ts +0 -3
  28. package/dist/pages/trendings/components/chart/DateComponent.d.ts +0 -6
  29. package/dist/pages/trendings/components/chart/TableComponent.d.ts +0 -14
  30. package/dist/pages/trendings/components/chart/Trending.d.ts +0 -9
  31. package/dist/pages/trendings/components/chart/components/CellComponent.d.ts +0 -11
  32. package/dist/pages/trendings/components/chart/components/ColorPicker.d.ts +0 -8
  33. package/dist/pages/trendings/components/chart/components/DraggableLineControl.d.ts +0 -11
  34. package/dist/pages/trendings/components/chart/components/modals/deleteViewModal/DeleteViewModal.d.ts +0 -9
  35. package/dist/pages/trendings/components/chart/components/modals/editViewModal/EditViewModal.d.ts +0 -9
  36. package/dist/pages/trendings/components/chart/components/modals/loadView/LoadViewModal.d.ts +0 -7
  37. package/dist/pages/trendings/components/chart/components/modals/saveAsView/SaveAsViewModal.d.ts +0 -7
  38. package/dist/pages/trendings/components/chart/components/modals/saveView/SaveViewModal.d.ts +0 -7
  39. package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/TagFolderCustomNode.d.ts +0 -20
  40. package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/TagSelectionModal.d.ts +0 -9
  41. package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/TagsTreeModal.d.ts +0 -9
  42. package/dist/pages/trendings/components/chart/context/TrendingContext.d.ts +0 -120
  43. package/dist/pages/trendings/components/chart/customOptionsComponent.d.ts +0 -10
  44. package/dist/pages/trendings/components/chart/hooks/useGetVerticalLinePlugin.d.ts +0 -2
  45. package/dist/pages/trendings/components/chart/hooks/useTagsDataTable.d.ts +0 -24
  46. package/dist/pages/trendings/components/chart/hooks/useUpdateCursorData.d.ts +0 -2
  47. package/dist/pages/trendings/components/chart/hooks/useXAxisDatePlugin.d.ts +0 -2
  48. package/dist/pages/trendings/components/chart/hooks/useYAxisPlugin.d.ts +0 -2
  49. package/dist/pages/trendings/components/chart/models/TagsTree.model.d.ts +0 -12
  50. package/dist/pages/trendings/components/chart/models/TrendingModels.d.ts +0 -65
  51. package/dist/pages/trendings/components/chart/models/scopes.model.d.ts +0 -1
  52. package/dist/pages/trendings/components/chart/repository/TrendingRepository.d.ts +0 -48
  53. package/dist/pages/trendings/components/chart/sections/chart/hooks/useChartOptions.d.ts +0 -105
  54. package/dist/pages/trendings/components/chart/sections/header.d.ts +0 -8
  55. package/dist/pages/trendings/components/chart/sections/trending-chart.d.ts +0 -12
  56. package/dist/pages/trendings/components/chart/utils/areRangeSimilar.d.ts +0 -2
  57. package/dist/pages/trendings/components/chart/utils/buildTagsTree.d.ts +0 -4
  58. package/dist/pages/trendings/components/chart/utils/calculateScales.d.ts +0 -4
  59. package/dist/pages/trendings/components/chart/utils/formatDateTimeToString.d.ts +0 -4
  60. package/dist/pages/trendings/components/chart/utils/formatTimeDiffWithMs.d.ts +0 -1
  61. package/dist/pages/trendings/components/chart/utils/timeDifference.d.ts +0 -1
  62. package/dist/pages/trendings/hooks/useTrendingQueries.d.ts +0 -15
  63. package/dist/pages/trendings/index.d.ts +0 -3
  64. package/dist/pages/trendings/reducers/trendings.reducer.d.ts +0 -115
  65. /package/dist/pages/{trendings → trendings-v2}/components/chart/utils/tagColors.d.ts +0 -0
@@ -1,48 +0,0 @@
1
- import { TagFromTree } from "../models/TagsTree.model";
2
- import { View } from "../models/TrendingModels";
3
- export declare const getTagsTree: () => Promise<TagFromTree[]>;
4
- export declare const deleteTagFolder: (TagFolderId: number) => Promise<void>;
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>;
15
- export declare const getSeriesData: (TagIds: string, Start: number | null, End: number | null, SampleCount: number) => Promise<import("../../../../../services").ResponseMESF>;
16
- export declare const saveTagDefaults: ({ tagId, alias, color, minScale, maxScale, unit, }: {
17
- tagId: number;
18
- alias: string;
19
- color: string;
20
- minScale: number;
21
- maxScale: number;
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, order, alias, tagType, sourceTagId, bitIndex, }: {
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
- order?: number;
42
- alias?: string;
43
- tagType?: string;
44
- sourceTagId?: number;
45
- bitIndex?: number;
46
- }) => Promise<void>;
47
- export declare const deleteViewTag: (ViewId: number, TagId: number) => Promise<import("../../../../../services").ResponseMESF>;
48
- export declare const deleteAllViewTagsFromView: (ViewId: number) => Promise<void>;
@@ -1,105 +0,0 @@
1
- export declare const useChartOptions: () => [{
2
- animation: {
3
- duration: number;
4
- };
5
- responsive: boolean;
6
- maintainAspectRatio: boolean;
7
- scales: {
8
- x: {
9
- type: "time";
10
- ticks: {
11
- autoSkip: boolean;
12
- maxTicksLimit: number;
13
- callback: (value: any, index: any, ticks: any) => string | string[];
14
- };
15
- grid: {
16
- display: boolean;
17
- };
18
- };
19
- y: {
20
- grid: {
21
- display: boolean;
22
- };
23
- afterUpdate(axis: any): void;
24
- };
25
- };
26
- plugins: {
27
- tooltip: {
28
- enabled: boolean;
29
- };
30
- legend: {
31
- display: boolean;
32
- };
33
- zoom: {
34
- zoom: {
35
- wheel: {
36
- enabled: boolean;
37
- mode: "x";
38
- };
39
- pinch: {
40
- enabled: boolean;
41
- mode: "x";
42
- };
43
- onZoom: ({ chart }: any) => void;
44
- mode: "x";
45
- };
46
- pan: {
47
- enabled: boolean;
48
- mode: "x";
49
- onPan: ({ chart }: any) => void;
50
- };
51
- };
52
- };
53
- }, import("react").Dispatch<import("react").SetStateAction<{
54
- animation: {
55
- duration: number;
56
- };
57
- responsive: boolean;
58
- maintainAspectRatio: boolean;
59
- scales: {
60
- x: {
61
- type: "time";
62
- ticks: {
63
- autoSkip: boolean;
64
- maxTicksLimit: number;
65
- callback: (value: any, index: any, ticks: any) => string | string[];
66
- };
67
- grid: {
68
- display: boolean;
69
- };
70
- };
71
- y: {
72
- grid: {
73
- display: boolean;
74
- };
75
- afterUpdate(axis: any): void;
76
- };
77
- };
78
- plugins: {
79
- tooltip: {
80
- enabled: boolean;
81
- };
82
- legend: {
83
- display: boolean;
84
- };
85
- zoom: {
86
- zoom: {
87
- wheel: {
88
- enabled: boolean;
89
- mode: "x";
90
- };
91
- pinch: {
92
- enabled: boolean;
93
- mode: "x";
94
- };
95
- onZoom: ({ chart }: any) => void;
96
- mode: "x";
97
- };
98
- pan: {
99
- enabled: boolean;
100
- mode: "x";
101
- onPan: ({ chart }: any) => void;
102
- };
103
- };
104
- };
105
- }>>];
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- interface Props {
3
- setChartOptions: (options: any) => void;
4
- autoRefresh: boolean;
5
- setAutoRefresh: (autoRefresh: boolean) => void;
6
- }
7
- export declare const Header: React.MemoExoticComponent<({ setChartOptions, autoRefresh, setAutoRefresh }: Props) => React.JSX.Element>;
8
- export {};
@@ -1,12 +0,0 @@
1
- import React from "react";
2
- import { ViewTagDataSet } from "../models/TrendingModels";
3
- interface Props {
4
- series: ViewTagDataSet[][];
5
- chartOptions: any;
6
- setChartOptions: any;
7
- setCursorData: any;
8
- chartData: any;
9
- setChartData: any;
10
- }
11
- export declare const TrendingChart: React.MemoExoticComponent<({ series, chartOptions, setChartOptions, chartData, setCursorData, setChartData, }: Props) => React.JSX.Element>;
12
- export {};
@@ -1,2 +0,0 @@
1
- import { ViewTag } from "../models/TrendingModels";
2
- export declare const areRangesSimilar: (tag1: ViewTag, tag2: ViewTag) => boolean | undefined;
@@ -1,4 +0,0 @@
1
- import { NodeModel } from "@minoru/react-dnd-treeview";
2
- import { TagFromTree } from "../models/TagsTree.model";
3
- export declare function buildTagsTree(data: TagFromTree[]): TagFromTree[];
4
- export declare function buildTagsTreeV2(data: TagFromTree[]): NodeModel<TagFromTree>[];
@@ -1,4 +0,0 @@
1
- export declare const calculateScales: (min: any, max: any, sigDigits: any) => {
2
- minScale: number;
3
- maxScale: number;
4
- };
@@ -1,4 +0,0 @@
1
- export declare const formatDateTimeToString: (date: Date) => {
2
- formattedDate: string;
3
- formattedTime: string;
4
- };
@@ -1 +0,0 @@
1
- export declare const formatTimeDiffWithMs: (start: number, end: number) => string;
@@ -1 +0,0 @@
1
- export declare const timeDifference: (start: number, end: number) => string;
@@ -1,15 +0,0 @@
1
- import { TagFromTree } from "../components/chart/models/TagsTree.model";
2
- import { View, ViewTagDataSet } from "../components/chart/models/TrendingModels";
3
- export declare const useSearchViews: ({ autoRefresh, }: {
4
- autoRefresh?: boolean;
5
- }) => import("@tanstack/react-query").UseQueryResult<View[], Error>;
6
- export declare const useSearchViewTags: ({ viewId }: {
7
- viewId: number | null;
8
- }) => import("@tanstack/react-query").UseQueryResult<any[], Error>;
9
- export declare const useSearchTagsTree: () => import("@tanstack/react-query").UseQueryResult<TagFromTree[], Error>;
10
- export declare const useSearchSeries: ({ start, end, tagIds, autoRefresh, }: {
11
- start: number;
12
- end: number;
13
- tagIds: number[];
14
- autoRefresh?: boolean;
15
- }) => import("@tanstack/react-query").UseQueryResult<ViewTagDataSet[][], Error>;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const index: () => React.JSX.Element;
3
- export default index;
@@ -1,115 +0,0 @@
1
- import { View, ViewTagsMap } from "../components/chart/models/TrendingModels";
2
- import { scopeType } from "../components/chart/models/scopes.model";
3
- export declare const TrendingsReducer: import("@reduxjs/toolkit").Slice<{
4
- timeScopeStart: Date;
5
- timeScopeEnd: Date;
6
- scope: scopeType;
7
- graphPan?: boolean;
8
- graphShouldUpdate: number;
9
- shouldRefetchSeries: number;
10
- views: View[];
11
- viewSelected: View | null;
12
- viewTags: ViewTagsMap;
13
- }, {
14
- setTotalScope(state: import("immer/dist/internal").WritableDraft<{
15
- timeScopeStart: Date;
16
- timeScopeEnd: Date;
17
- scope: scopeType;
18
- graphPan?: boolean;
19
- graphShouldUpdate: number;
20
- shouldRefetchSeries: number;
21
- views: View[];
22
- viewSelected: View | null;
23
- viewTags: ViewTagsMap;
24
- }>, { payload, type, }: {
25
- payload: {
26
- scope: scopeType;
27
- start?: Date;
28
- end?: Date;
29
- graphPan?: boolean;
30
- } | {
31
- scope?: scopeType;
32
- start: Date;
33
- end?: Date;
34
- graphPan?: boolean;
35
- } | {
36
- scope?: scopeType;
37
- start?: Date;
38
- end: Date;
39
- graphPan?: boolean;
40
- } | {
41
- scope?: scopeType;
42
- start: Date;
43
- end: Date;
44
- graphPan: boolean;
45
- };
46
- type: string;
47
- }): void;
48
- setViews(state: import("immer/dist/internal").WritableDraft<{
49
- timeScopeStart: Date;
50
- timeScopeEnd: Date;
51
- scope: scopeType;
52
- graphPan?: boolean;
53
- graphShouldUpdate: number;
54
- shouldRefetchSeries: number;
55
- views: View[];
56
- viewSelected: View | null;
57
- viewTags: ViewTagsMap;
58
- }>, { payload }: {
59
- payload: any;
60
- type: string;
61
- }): void;
62
- setViewSelected(state: import("immer/dist/internal").WritableDraft<{
63
- timeScopeStart: Date;
64
- timeScopeEnd: Date;
65
- scope: scopeType;
66
- graphPan?: boolean;
67
- graphShouldUpdate: number;
68
- shouldRefetchSeries: number;
69
- views: View[];
70
- viewSelected: View | null;
71
- viewTags: ViewTagsMap;
72
- }>, { payload }: {
73
- payload: any;
74
- type: string;
75
- }): void;
76
- setViewTags(state: import("immer/dist/internal").WritableDraft<{
77
- timeScopeStart: Date;
78
- timeScopeEnd: Date;
79
- scope: scopeType;
80
- graphPan?: boolean;
81
- graphShouldUpdate: number;
82
- shouldRefetchSeries: number;
83
- views: View[];
84
- viewSelected: View | null;
85
- viewTags: ViewTagsMap;
86
- }>, { payload }: {
87
- payload: any;
88
- type: string;
89
- }): void;
90
- setViewTagsAndRefetch(state: import("immer/dist/internal").WritableDraft<{
91
- timeScopeStart: Date;
92
- timeScopeEnd: Date;
93
- scope: scopeType;
94
- graphPan?: boolean;
95
- graphShouldUpdate: number;
96
- shouldRefetchSeries: number;
97
- views: View[];
98
- viewSelected: View | null;
99
- viewTags: ViewTagsMap;
100
- }>, { payload }: {
101
- payload: any;
102
- type: string;
103
- }): void;
104
- setGraphShouldUpdate(state: import("immer/dist/internal").WritableDraft<{
105
- timeScopeStart: Date;
106
- timeScopeEnd: Date;
107
- scope: scopeType;
108
- graphPan?: boolean;
109
- graphShouldUpdate: number;
110
- shouldRefetchSeries: number;
111
- views: View[];
112
- viewSelected: View | null;
113
- viewTags: ViewTagsMap;
114
- }>): void;
115
- }, "__">;