@dexteel/mesf-core 4.5.8 → 4.5.10

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.
@@ -6,8 +6,6 @@ interface TableComponentProps {
6
6
  tagList: TagList;
7
7
  setTagList: React.Dispatch<React.SetStateAction<TagList>>;
8
8
  cursorData: CursorData;
9
- onDeleteTag: (tagId: number) => void;
10
- onAddTag: (tagId: number) => void;
11
9
  chartData: ChartData;
12
10
  }
13
11
  declare const TableComponent: React.FC<TableComponentProps>;
@@ -0,0 +1,2 @@
1
+ import { Plugin } from 'chart.js';
2
+ export declare const useXAxisDatePlugin: () => Plugin;
@@ -0,0 +1,2 @@
1
+ import { Plugin } from "chart.js";
2
+ export declare const useYAxisPlugin: () => Plugin;
@@ -0,0 +1,106 @@
1
+ /// <reference types="react" />
2
+ export declare const useChartOptions: () => [{
3
+ animation: {
4
+ duration: number;
5
+ };
6
+ responsive: boolean;
7
+ maintainAspectRatio: boolean;
8
+ scales: {
9
+ x: {
10
+ type: "time";
11
+ ticks: {
12
+ autoSkip: boolean;
13
+ maxTicksLimit: number;
14
+ callback: (value: any, index: any, ticks: any) => string | string[];
15
+ };
16
+ grid: {
17
+ display: boolean;
18
+ };
19
+ };
20
+ y: {
21
+ grid: {
22
+ display: boolean;
23
+ };
24
+ afterUpdate(axis: any): void;
25
+ };
26
+ };
27
+ plugins: {
28
+ tooltip: {
29
+ enabled: boolean;
30
+ };
31
+ legend: {
32
+ display: boolean;
33
+ };
34
+ zoom: {
35
+ zoom: {
36
+ wheel: {
37
+ enabled: boolean;
38
+ mode: "x";
39
+ };
40
+ pinch: {
41
+ enabled: boolean;
42
+ mode: "x";
43
+ };
44
+ onZoom: ({ chart }: any) => void;
45
+ mode: "x";
46
+ };
47
+ pan: {
48
+ enabled: boolean;
49
+ mode: "x";
50
+ onPan: ({ chart }: any) => void;
51
+ };
52
+ };
53
+ };
54
+ }, import("react").Dispatch<import("react").SetStateAction<{
55
+ animation: {
56
+ duration: number;
57
+ };
58
+ responsive: boolean;
59
+ maintainAspectRatio: boolean;
60
+ scales: {
61
+ x: {
62
+ type: "time";
63
+ ticks: {
64
+ autoSkip: boolean;
65
+ maxTicksLimit: number;
66
+ callback: (value: any, index: any, ticks: any) => string | string[];
67
+ };
68
+ grid: {
69
+ display: boolean;
70
+ };
71
+ };
72
+ y: {
73
+ grid: {
74
+ display: boolean;
75
+ };
76
+ afterUpdate(axis: any): void;
77
+ };
78
+ };
79
+ plugins: {
80
+ tooltip: {
81
+ enabled: boolean;
82
+ };
83
+ legend: {
84
+ display: boolean;
85
+ };
86
+ zoom: {
87
+ zoom: {
88
+ wheel: {
89
+ enabled: boolean;
90
+ mode: "x";
91
+ };
92
+ pinch: {
93
+ enabled: boolean;
94
+ mode: "x";
95
+ };
96
+ onZoom: ({ chart }: any) => void;
97
+ mode: "x";
98
+ };
99
+ pan: {
100
+ enabled: boolean;
101
+ mode: "x";
102
+ onPan: ({ chart }: any) => void;
103
+ };
104
+ };
105
+ };
106
+ }>>];
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ setChartOptions: (options: any) => void;
4
+ }
5
+ export declare const Header: ({ setChartOptions }: Props) => React.JSX.Element;
6
+ export {};
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { Tag } from "../models/TrendingModels";
3
+ interface Props {
4
+ tagList: Tag[];
5
+ series: any[];
6
+ chartOptions: any;
7
+ setChartOptions: any;
8
+ setCursorData: any;
9
+ chartData: any;
10
+ setChartData: any;
11
+ }
12
+ export declare const TrendingChart: ({ tagList, series, chartOptions, setChartOptions, chartData, setCursorData, setChartData }: Props) => React.JSX.Element;
13
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const formatDateTimeToString: (date: Date) => {
2
+ formattedDate: string;
3
+ formattedTime: string;
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexteel/mesf-core",
3
- "version": "4.5.8",
3
+ "version": "4.5.10",
4
4
  "author": "Dexteel Team",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -99,6 +99,7 @@
99
99
  "chart.js": "^4.4.1",
100
100
  "chartjs-adapter-moment": "^1.0.1",
101
101
  "chartjs-plugin-zoom": "^2.0.1",
102
+ "cross-env": "^7.0.3",
102
103
  "lodash-es": "^4.17.21",
103
104
  "react-chartjs-2": "^5.2.0",
104
105
  "react-dnd": "^16.0.1",