@dexteel/mesf-core 4.10.3 → 4.10.5

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.
@@ -1,11 +1,26 @@
1
1
  import { ChartData } from 'chart.js';
2
- import React from 'react';
2
+ import React, { Dispatch } from 'react';
3
3
  import './ContextMenu.css';
4
- import { CursorData } from './models/TrendingModels';
4
+ import { CursorData, ViewTag } from './models/TrendingModels';
5
5
  interface TableComponentProps {
6
6
  cursorData: CursorData;
7
7
  chartData: ChartData;
8
8
  getTagsFromAPI: Function;
9
+ viewTagForDelete: ViewTag | null;
10
+ setViewTagForDelete: Dispatch<ViewTag | null>;
11
+ selectedRowIndex: number | null;
12
+ setSelectedRowIndex: Dispatch<number | null>;
13
+ handleRightClick: (e: any, index: 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
+ };
9
24
  }
10
25
  declare const TableComponent: React.FC<TableComponentProps>;
11
26
  export default TableComponent;
@@ -7,7 +7,7 @@ export declare const saveTagDefaults: (TagId: number, Alias: string, Color: stri
7
7
  export declare const getViews: (Search: string | null) => Promise<import("../../../../../services").ResponseMESF>;
8
8
  export declare const upsertView: (ViewId: number | null, ViewName: string, isPublic: boolean) => Promise<import("../../../../../services").ResponseMESF>;
9
9
  export declare const deleteView: (ViewId: number) => Promise<import("../../../../../services").ResponseMESF>;
10
- export declare const getViewTags: (ViewId: number | null) => Promise<import("../../../../../services").ResponseMESF>;
10
+ export declare const getViewTags: (ViewId: number) => Promise<import("../../../../../services").ResponseMESF>;
11
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>;
12
12
  export declare const deleteViewTag: (ViewId: number, TagId: number) => Promise<import("../../../../../services").ResponseMESF>;
13
13
  export declare const deleteAllViewTagsFromView: (ViewId: number) => Promise<import("../../../../../services").ResponseMESF>;
@@ -1 +1 @@
1
- export declare const useTagsTableStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"checkbox" | "color" | "scale" | "visible" | "rowHover" | "topTitles" | "bottomTitlesRow" | "doubleInput" | "inputCol" | "aliasCol" | "autoScale" | "unit" | "numberInput" | "xStats" | "dataType">;
1
+ export declare const useTagsTableStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"topTitles" | "color" | "scale" | "checkbox" | "visible" | "bottomTitlesRow" | "rowHover" | "doubleInput" | "inputCol" | "aliasCol" | "viewSelected" | "autoScale" | "unit" | "numberInput" | "xStats" | "dataType">;
@@ -1 +1,2 @@
1
1
  export declare const tagColors: string[];
2
+ export declare const getRandomColor: () => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexteel/mesf-core",
3
- "version": "4.10.3",
3
+ "version": "4.10.5",
4
4
  "author": "Dexteel Team",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",