@dexteel/mesf-core 4.17.0 → 4.19.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.
Files changed (82) hide show
  1. package/.husky/pre-commit +14 -0
  2. package/.release-please-manifest.json +1 -1
  3. package/CHANGELOG.md +45 -0
  4. package/biome.json +11 -0
  5. package/dist/MESFMain.d.ts +1 -1
  6. package/dist/components/modals/modal.mesf.d.ts +1 -1
  7. package/dist/components/shared/buttons/button-with-loading.d.ts +1 -2
  8. package/dist/configuration/pages/asset/components/AssetConfiguration/CustomDragPreview.d.ts +1 -1
  9. package/dist/configuration/pages/asset/components/AssetConfiguration/CustomNode.d.ts +1 -1
  10. package/dist/configuration/pages/asset/components/AssetConfiguration/MultipleDragPreview.d.ts +1 -1
  11. package/dist/configuration/pages/asset/components/hooks/useAssetActions.d.ts +1 -1
  12. package/dist/configuration/pages/asset/context/ConfigurationAssetContext.d.ts +1 -1
  13. package/dist/configuration/pages/job/components/JobsTable/TableJobs.d.ts +6 -1
  14. package/dist/configuration/pages/job/components/JobsTable/customHooks/useJobsOptionsFunctions.d.ts +10 -0
  15. package/dist/configuration/pages/job/components/JobsTable/customHooks/useJobsTableData.d.ts +3 -3
  16. package/dist/configuration/pages/job/context/JobsContext.d.ts +1 -1
  17. package/dist/configuration/pages/log/components/LogsTable/customHooks/useLogsOptionsFunctions.d.ts +11 -0
  18. package/dist/configuration/pages/log/context/LogsContext.d.ts +1 -1
  19. package/dist/configuration/pages/profiles/components/Delete/DeleteProfile.d.ts +2 -2
  20. package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useProfilesOptionsFunctions.d.ts +12 -0
  21. package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useTableData.d.ts +4 -4
  22. package/dist/configuration/pages/profiles/context/ProfileContext.d.ts +1 -1
  23. package/dist/configuration/pages/profiles/index.d.ts +2 -2
  24. package/dist/configuration/pages/shifCrew/components/customHooks/useShiftsOptionsFunctions.d.ts +11 -0
  25. package/dist/configuration/pages/shifCrew/components/customHooks/useTableShift.d.ts +2 -1
  26. package/dist/configuration/pages/shifCrew/context/ShiftsCrewsContext.d.ts +1 -1
  27. package/dist/configuration/pages/users/components/Delete/DeleteUser.d.ts +2 -2
  28. package/dist/configuration/pages/users/components/EditUser/EditUser.d.ts +2 -2
  29. package/dist/configuration/pages/users/components/UsersDataTable/customHooks/useTableData.d.ts +3 -4
  30. package/dist/configuration/pages/users/components/UsersDataTable/customHooks/useUsersOptionsFunctions.d.ts +13 -0
  31. package/dist/configuration/pages/users/components/common/AuthTypeSelector.d.ts +2 -1
  32. package/dist/configuration/pages/users/components/common/ProfilesPicker.d.ts +2 -1
  33. package/dist/configuration/pages/users/context/UsersContext.d.ts +1 -1
  34. package/dist/context/UTLSettingContext.d.ts +1 -1
  35. package/dist/context/assetContext.d.ts +1 -1
  36. package/dist/context/userContext.d.ts +1 -1
  37. package/dist/controls/alert.d.ts +1 -1
  38. package/dist/controls/charts/genericChart.d.ts +1 -1
  39. package/dist/controls/contextMenu/ContextMenu.d.ts +2 -0
  40. package/dist/controls/contextMenu/index.d.ts +4 -0
  41. package/dist/controls/contextMenu/models/MenuOptionType.d.ts +10 -0
  42. package/dist/controls/contextMenu/styles/ContextMenuStyles.d.ts +1 -0
  43. package/dist/controls/contextMenu/useContextMenuMESF.d.ts +22 -0
  44. package/dist/controls/filters/TreePickerControl.d.ts +11 -0
  45. package/dist/controls/filters/TreePickerControlV2.d.ts +13 -0
  46. package/dist/controls/filters/dialogFilter.d.ts +1 -1
  47. package/dist/controls/filters/filters.d.ts +2 -9
  48. package/dist/controls/index.d.ts +2 -1
  49. package/dist/controls/panels.d.ts +1 -1
  50. package/dist/controls/shift-navigator/context/ShiftNavigatorProvider.d.ts +1 -1
  51. package/dist/controls/shift-navigator/hook/useShiftNavigator.d.ts +1 -1
  52. package/dist/controls/shift-navigator/index.d.ts +5 -5
  53. package/dist/controls/tables/dataGrid.d.ts +1 -1
  54. package/dist/hooks/useSearchUTLSetting.d.ts +1 -1
  55. package/dist/index.d.ts +3 -3
  56. package/dist/index.esm.js +3579 -2989
  57. package/dist/index.esm.js.map +1 -1
  58. package/dist/pages/trendings/components/chart/TableComponent.d.ts +4 -4
  59. package/dist/pages/trendings/components/chart/components/CellComponent.d.ts +3 -3
  60. package/dist/pages/trendings/components/chart/components/ColorPicker.d.ts +1 -1
  61. package/dist/pages/trendings/components/chart/components/DraggableLineControl.d.ts +2 -2
  62. package/dist/pages/trendings/components/chart/components/modals/deleteViewModal/DeleteViewModal.d.ts +2 -2
  63. package/dist/pages/trendings/components/chart/components/modals/editViewModal/EditViewModal.d.ts +2 -2
  64. package/dist/pages/trendings/components/chart/components/modals/loadView/LoadViewModal.d.ts +1 -1
  65. package/dist/pages/trendings/components/chart/components/modals/saveAsView/SaveAsViewModal.d.ts +1 -1
  66. package/dist/pages/trendings/components/chart/components/modals/saveView/SaveViewModal.d.ts +1 -1
  67. package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/ContextMenu/ContextMenu.d.ts +4 -4
  68. package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/ContextMenu/NewFolder/NewFolder.d.ts +4 -4
  69. package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/ContextMenu/RemoveFolder/RemoveFolder.d.ts +4 -4
  70. package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/TagFolderCustomNode.d.ts +3 -3
  71. package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/TagSelectionModal.d.ts +1 -1
  72. package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/TagsTreeModal.d.ts +2 -2
  73. package/dist/pages/trendings/components/chart/context/TrendingContext.d.ts +1 -1
  74. package/dist/pages/trendings/components/chart/hooks/useGetVerticalLinePlugin.d.ts +1 -1
  75. package/dist/pages/trendings/components/chart/hooks/useTagsDataTable.d.ts +1 -1
  76. package/dist/pages/trendings/components/chart/hooks/useUpdateCursorData.d.ts +1 -1
  77. package/dist/pages/trendings/components/chart/hooks/useXAxisDatePlugin.d.ts +1 -1
  78. package/dist/pages/trendings/components/chart/sections/header.d.ts +1 -1
  79. package/dist/pages/trendings/components/chart/sections/trending-chart.d.ts +1 -1
  80. package/dist/pages/trendings/index.d.ts +1 -1
  81. package/dist/services/index.d.ts +1 -1
  82. package/package.json +5 -3
@@ -1,7 +1,7 @@
1
- import { ChartData } from 'chart.js';
2
- import React, { Dispatch } from 'react';
3
- import './ContextMenu.css';
4
- import { CursorData, ViewTag } from './models/TrendingModels';
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
5
  interface TableComponentProps {
6
6
  cursorData: CursorData;
7
7
  chartData: ChartData;
@@ -1,6 +1,6 @@
1
- import { ChartData } from 'chart.js';
2
- import React from 'react';
3
- import { Tag } from '../models/TrendingModels';
1
+ import { ChartData } from "chart.js";
2
+ import React from "react";
3
+ import { Tag } from "../models/TrendingModels";
4
4
  interface Props {
5
5
  tag: Tag;
6
6
  chartData: ChartData;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  interface Props {
3
3
  onChange: Function;
4
4
  color: string;
@@ -1,5 +1,5 @@
1
- import { ChartArea } from 'chart.js';
2
- import React from 'react';
1
+ import { ChartArea } from "chart.js";
2
+ import React from "react";
3
3
  interface DraggableLineControlProps {
4
4
  chartArea: ChartArea;
5
5
  initialLeft: number;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { View } from '../../../models/TrendingModels';
1
+ import React from "react";
2
+ import { View } from "../../../models/TrendingModels";
3
3
  interface Props {
4
4
  open: boolean;
5
5
  handleClose: (shouldUpdate: boolean) => void;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { View } from '../../../models/TrendingModels';
1
+ import React from "react";
2
+ import { View } from "../../../models/TrendingModels";
3
3
  interface Props {
4
4
  open: boolean;
5
5
  handleClose: (shouldUpdate: boolean) => void;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  interface Props {
3
3
  getTagsFromAPI: Function;
4
4
  open: boolean;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  interface Props {
3
3
  open: boolean;
4
4
  handleClose: (shouldUpdate: boolean) => void;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  interface Props {
3
3
  open: boolean;
4
4
  handleClose: (shouldUpdate: boolean) => void;
@@ -1,6 +1,6 @@
1
- import { NodeModel } from '@minoru/react-dnd-treeview';
2
- import React, { Dispatch } from 'react';
3
- import { TagFromTree } from '../../../../models/TagsTree.model';
1
+ import { NodeModel } from "@minoru/react-dnd-treeview";
2
+ import React, { type Dispatch } from "react";
3
+ import { TagFromTree } from "../../../../models/TagsTree.model";
4
4
  interface Props {
5
5
  isOpen: boolean;
6
6
  tagNodeSelectedInTree: NodeModel<TagFromTree> | null;
@@ -11,5 +11,5 @@ interface Props {
11
11
  getTagsTreeData: Function;
12
12
  setShowContextMenu: Dispatch<boolean>;
13
13
  }
14
- export declare const ContextMenu: ({ isOpen, anchorPoint, tagNodeSelectedInTree, getTagsTreeData, setShowContextMenu }: Props) => React.JSX.Element;
14
+ export declare const ContextMenu: ({ isOpen, anchorPoint, tagNodeSelectedInTree, getTagsTreeData, setShowContextMenu, }: Props) => React.JSX.Element;
15
15
  export {};
@@ -1,10 +1,10 @@
1
- import { NodeModel } from '@minoru/react-dnd-treeview';
2
- import React from 'react';
3
- import { TagFromTree } from '../../../../../models/TagsTree.model';
1
+ import { NodeModel } from "@minoru/react-dnd-treeview";
2
+ import React from "react";
3
+ import { TagFromTree } from "../../../../../models/TagsTree.model";
4
4
  interface Props {
5
5
  open: boolean;
6
6
  handleClose: (shouldUpdate: boolean) => void;
7
7
  tagNodeSelectedInTree: NodeModel<TagFromTree> | null;
8
8
  }
9
- export declare const NewFolderModal: ({ open, handleClose, tagNodeSelectedInTree }: Props) => React.JSX.Element;
9
+ export declare const NewFolderModal: ({ open, handleClose, tagNodeSelectedInTree, }: Props) => React.JSX.Element;
10
10
  export {};
@@ -1,10 +1,10 @@
1
- import { NodeModel } from '@minoru/react-dnd-treeview';
2
- import React from 'react';
3
- import { TagFromTree } from '../../../../../models/TagsTree.model';
1
+ import { NodeModel } from "@minoru/react-dnd-treeview";
2
+ import React from "react";
3
+ import { TagFromTree } from "../../../../../models/TagsTree.model";
4
4
  interface Props {
5
5
  open: boolean;
6
6
  handleClose: (shouldUpdate: boolean) => void;
7
7
  tagNodeSelectedInTree: NodeModel<TagFromTree> | null;
8
8
  }
9
- export declare const RemoveFolderModal: ({ open, handleClose, tagNodeSelectedInTree }: Props) => React.JSX.Element;
9
+ export declare const RemoveFolderModal: ({ open, handleClose, tagNodeSelectedInTree, }: Props) => React.JSX.Element;
10
10
  export {};
@@ -1,6 +1,6 @@
1
- import { NodeModel, RenderParams } from '@minoru/react-dnd-treeview';
2
- import React from 'react';
3
- import { TagFromTree } from '../../../models/TagsTree.model';
1
+ import { NodeModel, RenderParams } from "@minoru/react-dnd-treeview";
2
+ import React from "react";
3
+ import { TagFromTree } from "../../../models/TagsTree.model";
4
4
  interface CustomNodeProps {
5
5
  node: NodeModel<TagFromTree>;
6
6
  setContextMenuOver: (data: NodeModel<TagFromTree>, e: React.MouseEvent<HTMLElement>) => void;
@@ -5,5 +5,5 @@ interface TagSelectionModalProps {
5
5
  onClose: () => void;
6
6
  onTagSelect: (tag: TagFromTree) => void;
7
7
  }
8
- export declare const TagSelectionModal: ({ isOpen, onClose, onTagSelect }: TagSelectionModalProps) => React.JSX.Element;
8
+ export declare const TagSelectionModal: ({ isOpen, onClose, onTagSelect, }: TagSelectionModalProps) => React.JSX.Element;
9
9
  export {};
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { TagFromTree } from '../../../models/TagsTree.model';
1
+ import React from "react";
2
+ import { TagFromTree } from "../../../models/TagsTree.model";
3
3
  interface Props {
4
4
  open: boolean;
5
5
  handleClose: () => void;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from "react";
1
+ import React, { type ReactNode } from "react";
2
2
  export declare const useTrendingContext: () => {
3
3
  state: {
4
4
  timeScopeStart: Date;
@@ -1,2 +1,2 @@
1
- import { Plugin } from 'chart.js';
1
+ import { Plugin } from "chart.js";
2
2
  export declare const useGetVerticalLinePlugin: (setChartArea: (param: any) => void, setCoords: any) => Plugin;
@@ -20,5 +20,5 @@ interface TagsDataTable {
20
20
  };
21
21
  };
22
22
  }
23
- export declare const useTagsDataTable: ({ cursorData, viewTagsMap, chartData }: Props) => TagsDataTable;
23
+ export declare const useTagsDataTable: ({ cursorData, viewTagsMap, chartData, }: Props) => TagsDataTable;
24
24
  export {};
@@ -1,2 +1,2 @@
1
- import { CursorData } from '../models/TrendingModels';
1
+ import { CursorData } from "../models/TrendingModels";
2
2
  export declare const updateCursorData: (chart: any, setCursorData: (cursorData: CursorData) => void) => void;
@@ -1,2 +1,2 @@
1
- import { Plugin } from 'chart.js';
1
+ import { Plugin } from "chart.js";
2
2
  export declare const useXAxisDatePlugin: () => Plugin;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  interface Props {
3
3
  setChartOptions: (options: any) => void;
4
4
  }
@@ -8,5 +8,5 @@ interface Props {
8
8
  chartData: any;
9
9
  setChartData: any;
10
10
  }
11
- export declare const TrendingChart: ({ series, chartOptions, setChartOptions, chartData, setCursorData, setChartData }: Props) => React.JSX.Element;
11
+ export declare const TrendingChart: ({ series, chartOptions, setChartOptions, chartData, setCursorData, setChartData, }: Props) => React.JSX.Element;
12
12
  export {};
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  declare const index: () => React.JSX.Element;
3
3
  export default index;
@@ -1,2 +1,2 @@
1
1
  export * from "./ApiService";
2
- export * from './TimeService';
2
+ export * from "./TimeService";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexteel/mesf-core",
3
- "version": "4.17.0",
3
+ "version": "4.19.0",
4
4
  "author": "Dexteel Team",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -12,7 +12,8 @@
12
12
  "ci": "rimraf -rf ./dist && rollup -c",
13
13
  "build": "rimraf -rf ./dist && rollup -c",
14
14
  "watch": "cross-env rollup -wc",
15
- "start": "cross-env rollup -wc"
15
+ "start": "cross-env rollup -wc",
16
+ "prepare": "husky"
16
17
  },
17
18
  "license": "ISC",
18
19
  "devDependencies": {
@@ -23,7 +24,7 @@
23
24
  "@babel/preset-react": "^7.16.7",
24
25
  "@babel/preset-typescript": "^7.16.7",
25
26
  "@babel/runtime": "^7.17.2",
26
- "@biomejs/biome": "1.4.1",
27
+ "@biomejs/biome": "^1.8.3",
27
28
  "@material-ui/core": "^4.12.3",
28
29
  "@material-ui/data-grid": "^4.0.0-alpha.37",
29
30
  "@material-ui/icons": "^4.11.2",
@@ -40,6 +41,7 @@
40
41
  "@types/react": "^17.0.39",
41
42
  "autoprefixer": "^10.4.2",
42
43
  "bootstrap": "^4.6.1",
44
+ "husky": "^9.1.4",
43
45
  "moment": "^2.29.3",
44
46
  "prop-types": "^15.8.1",
45
47
  "react": "^17.0.2",