@dexteel/mesf-core 5.14.1 → 6.0.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 (137) hide show
  1. package/.github/workflows/publish-to-npm.yaml +1 -0
  2. package/.github/workflows/release-please-v6.yml +63 -0
  3. package/.release-please-manifest.json +1 -1
  4. package/CHANGELOG.md +47 -0
  5. package/dist/MESFMain.d.ts +3 -1
  6. package/dist/components/shared/buttons/ExcelButton.d.ts +8 -0
  7. package/dist/components/shared/status-bar/CustomStatusPanel.d.ts +4 -0
  8. package/dist/configuration/pages/asset/AssetPage.d.ts +2 -0
  9. package/dist/configuration/pages/asset/components/{AssetConfiguration/AssetSearchInput.d.ts → AssetSearchInput.d.ts} +2 -2
  10. package/dist/configuration/pages/asset/components/TreeAsset.d.ts +4 -0
  11. package/dist/configuration/pages/asset/components/dialogs/create-new-asset-dialog.d.ts +3 -1
  12. package/dist/configuration/pages/asset/components/dialogs/edit-asset-dialog.d.ts +2 -1
  13. package/dist/configuration/pages/asset/components/dialogs/remove-asset-dialog.d.ts +3 -1
  14. package/dist/configuration/pages/asset/components/dialogs/viewer-asset-dialog.d.ts +2 -1
  15. package/dist/configuration/pages/asset/components/hooks/useAssetOptionsFunctions.d.ts +17 -0
  16. package/dist/configuration/pages/asset/components/{AssetConfiguration → node}/CustomNode.d.ts +7 -1
  17. package/dist/configuration/pages/asset/{components/hooks → hooks}/useAssetActions.d.ts +1 -1
  18. package/dist/configuration/pages/asset/index.d.ts +2 -2
  19. package/dist/configuration/pages/asset/models/AssetParameters.d.ts +5 -1
  20. package/dist/configuration/pages/asset/repositories/AssetRepository.d.ts +20 -0
  21. package/dist/configuration/pages/job/JobsPage.d.ts +3 -3
  22. package/dist/configuration/pages/job/components/JobsTable/TableJobs.d.ts +1 -6
  23. package/dist/configuration/pages/job/components/JobsTable/customHooks/useJobsOptionsFunctions.d.ts +1 -2
  24. package/dist/configuration/pages/job/components/JobsTable/customHooks/useJobsTableData.d.ts +0 -1
  25. package/dist/configuration/pages/job/repositories/JobsRepository.d.ts +7 -12
  26. package/dist/configuration/pages/log/LogsPage.d.ts +1 -1
  27. package/dist/configuration/pages/log/styles/tableStyles.d.ts +1 -1
  28. package/dist/configuration/pages/profiles/ProfilesPage.d.ts +3 -3
  29. package/dist/configuration/pages/profiles/components/ProceduresOfProfile/ActionsOfProfile.d.ts +4 -0
  30. package/dist/configuration/pages/profiles/components/ProceduresOfProfile/ProceduresDataTable/index.d.ts +1 -0
  31. package/dist/configuration/pages/profiles/components/ProfilesTable/TableProfiles.d.ts +1 -6
  32. package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useTableData.d.ts +0 -5
  33. package/dist/configuration/pages/profiles/repositories/ProfilesRepository.d.ts +13 -7
  34. package/dist/configuration/pages/realtime/config/index.d.ts +16 -1
  35. package/dist/configuration/pages/realtime/repositories/config-repository.d.ts +6 -0
  36. package/dist/configuration/pages/settings/SettingsPage.d.ts +2 -0
  37. package/dist/configuration/pages/settings/components/TableSettings.d.ts +1 -8
  38. package/dist/configuration/pages/settings/components/customHooks/useTableSettings.d.ts +3 -1
  39. package/dist/configuration/pages/settings/components/upsertDelete/CreateSetting.d.ts +3 -1
  40. package/dist/configuration/pages/settings/components/upsertDelete/DeleteSetting.d.ts +3 -1
  41. package/dist/configuration/pages/settings/components/upsertDelete/EditSetting.d.ts +3 -1
  42. package/dist/configuration/pages/settings/models/Setting.d.ts +0 -1
  43. package/dist/configuration/pages/settings/repositories/settingRepository.d.ts +7 -3
  44. package/dist/configuration/pages/settings/styles/useStyles.d.ts +1 -1
  45. package/dist/configuration/pages/shifCrew/ShiftsCrewsPage.d.ts +3 -3
  46. package/dist/configuration/pages/shifCrew/components/Create/CreateShift.d.ts +3 -1
  47. package/dist/configuration/pages/shifCrew/components/Delete/DeleteShift.d.ts +3 -1
  48. package/dist/configuration/pages/shifCrew/components/Edit/EditShift.d.ts +3 -1
  49. package/dist/configuration/pages/shifCrew/components/TableShifts.d.ts +1 -6
  50. package/dist/configuration/pages/shifCrew/components/customHooks/useTableShift.d.ts +3 -11
  51. package/dist/configuration/pages/shifCrew/repositories/ShiftsCrewsRepository.d.ts +3 -3
  52. package/dist/configuration/pages/users/UsersPage.d.ts +6 -3
  53. package/dist/configuration/pages/users/components/UsersDataTable/TableUsers.d.ts +1 -6
  54. package/dist/configuration/pages/users/components/UsersDataTable/customHooks/useTableData.d.ts +0 -8
  55. package/dist/configuration/pages/users/components/common/AuthTypeSelector.d.ts +1 -0
  56. package/dist/configuration/pages/users/models/User.d.ts +1 -0
  57. package/dist/configuration/pages/users/repositories/UsersRepository.d.ts +11 -7
  58. package/dist/context/LogbookSettingsContext.d.ts +7 -0
  59. package/dist/controls/asset-filter/AssetFilter.d.ts +13 -0
  60. package/dist/controls/asset-filter/repositories/AssetRepository.d.ts +2 -0
  61. package/dist/controls/asset-tree-picker/AssetTreePicker.d.ts +9 -0
  62. package/dist/controls/modals/ConfirmationDialogRaw.d.ts +9 -0
  63. package/dist/controls/shift-navigator/component/shift-navigator.control.d.ts +2 -1
  64. package/dist/controls/shift-navigator-v2/component/shift-period-navigator.control.d.ts +3 -2
  65. package/dist/controls/shift-selector/ShiftAutocomplete.d.ts +15 -0
  66. package/dist/controls/shift-selector/ShiftSelector.d.ts +13 -0
  67. package/dist/controls/shift-selector/repositories/ShiftRepository.d.ts +7 -0
  68. package/dist/controls/snackbars/notification-snackbar.d.ts +8 -0
  69. package/dist/css/themeMESF.d.ts +1 -0
  70. package/dist/index.d.ts +7 -0
  71. package/dist/index.esm.js +14592 -12164
  72. package/dist/index.esm.js.map +1 -1
  73. package/dist/models/Asset.d.ts +1 -0
  74. package/dist/pages/logbook/entry/LogbookPage.d.ts +10 -0
  75. package/dist/pages/logbook/entry/components/Logbook.d.ts +2 -0
  76. package/dist/pages/logbook/entry/components/attachments/AttachmentModal.d.ts +12 -0
  77. package/dist/pages/logbook/entry/components/attachments/AttachmentPlugin.d.ts +15 -0
  78. package/dist/pages/logbook/entry/components/attachments/DeleteAttachmentConfirmationDialog.d.ts +9 -0
  79. package/dist/pages/logbook/entry/components/dialog/DeleteEntryDialog.d.ts +9 -0
  80. package/dist/pages/logbook/entry/components/entry-viewer/ContentInput.d.ts +17 -0
  81. package/dist/pages/logbook/entry/components/entry-viewer/EntryViewer.d.ts +15 -0
  82. package/dist/pages/logbook/entry/components/entry-viewer/styles/useEntryViewerStyles.d.ts +1 -0
  83. package/dist/pages/logbook/entry/components/filters/filters.d.ts +11 -0
  84. package/dist/pages/logbook/entry/hooks/useEntrySubmission.d.ts +34 -0
  85. package/dist/pages/logbook/entry/hooks/useLogbookEntryOptionsFunctions.d.ts +12 -0
  86. package/dist/pages/logbook/entry/hooks/useTableData.d.ts +11 -0
  87. package/dist/pages/logbook/entry/index.d.ts +2 -0
  88. package/dist/pages/logbook/entry/models/Entry.d.ts +16 -0
  89. package/dist/pages/logbook/entry/models/EntryAttachment.d.ts +20 -0
  90. package/dist/pages/logbook/entry/repository/LogbookRepository.d.ts +34 -0
  91. package/dist/pages/logbook/index.d.ts +14 -0
  92. package/dist/pages/logbook/report/LogbookPage.d.ts +11 -0
  93. package/dist/pages/logbook/report/components/Logbook.d.ts +2 -0
  94. package/dist/pages/logbook/report/components/entry-viewer/EntryViewer.d.ts +13 -0
  95. package/dist/pages/logbook/report/components/entry-viewer/styles/useEntryViewerStyles.d.ts +1 -0
  96. package/dist/pages/logbook/report/components/filters/filters.d.ts +15 -0
  97. package/dist/pages/logbook/report/hooks/useTableData.d.ts +8 -0
  98. package/dist/pages/logbook/report/index.d.ts +2 -0
  99. package/dist/pages/logbook/report/repository/LogbookRepository.d.ts +6 -0
  100. package/dist/pages/logbook/useGridDefinitions.d.ts +9 -0
  101. package/dist/pages/trendings/TrendingsPage.d.ts +16 -3
  102. package/dist/pages/trendings/components/chart/TableComponent.d.ts +0 -12
  103. package/dist/pages/trendings/components/chart/Trending.d.ts +2 -1
  104. package/dist/pages/trendings/components/chart/components/modals/loadView/LoadViewModal.d.ts +1 -2
  105. package/dist/pages/trendings/components/chart/customOptionsComponent.d.ts +2 -0
  106. package/dist/pages/trendings/components/chart/repository/TrendingRepository.d.ts +41 -11
  107. package/dist/pages/trendings/components/chart/sections/header.d.ts +3 -1
  108. package/dist/reducers/LogbookSettingsReducer.d.ts +24 -0
  109. package/dist/repositorie/MESF-frontend-Repositorie.d.ts +5 -3
  110. package/package.json +6 -1
  111. package/dist/configuration/pages/asset/ConfigurationAssetPage.d.ts +0 -2
  112. package/dist/configuration/pages/asset/components/AssetConfiguration/AssetView.d.ts +0 -2
  113. package/dist/configuration/pages/asset/components/AssetConfiguration/ConfigurationAssetComponent.d.ts +0 -2
  114. package/dist/configuration/pages/asset/components/hooks/useAssetCodes.d.ts +0 -3
  115. package/dist/configuration/pages/asset/context/ConfigurationAssetContext.d.ts +0 -328
  116. package/dist/configuration/pages/asset/hooks/useSearchAssets.d.ts +0 -8
  117. package/dist/configuration/pages/asset/models/AssetAPI.d.ts +0 -9
  118. package/dist/configuration/pages/asset/models/InitialValueDataAsset.d.ts +0 -2
  119. package/dist/configuration/pages/asset/reducers/ConfigurationAssetReducer.d.ts +0 -323
  120. package/dist/configuration/pages/asset/repositories/ConfigurationAssetRepository.d.ts +0 -4
  121. package/dist/configuration/pages/asset/theme.d.ts +0 -1
  122. package/dist/configuration/pages/profiles/components/common/Pickers/ProfilesPicker.d.ts +0 -11
  123. package/dist/configuration/pages/profiles/components/common/Profiles/hook/useGetProfilesEffect.d.ts +0 -8
  124. package/dist/configuration/pages/profiles/context/ProfileContext.d.ts +0 -26
  125. package/dist/configuration/pages/profiles/reducers/ProfilesReducer.d.ts +0 -21
  126. package/dist/configuration/pages/settings/context/SettingsContext.d.ts +0 -26
  127. package/dist/configuration/pages/settings/reducers/SettingReducer.d.ts +0 -20
  128. package/dist/configuration/pages/shifCrew/context/ShiftsCrewsContext.d.ts +0 -26
  129. package/dist/configuration/pages/shifCrew/reducers/ShiftsCrewsReducer.d.ts +0 -20
  130. package/dist/configuration/pages/users/context/UsersContext.d.ts +0 -17
  131. package/dist/configuration/pages/users/models/Profile.d.ts +0 -8
  132. package/dist/configuration/pages/users/reducers/UsersReducer.d.ts +0 -11
  133. package/dist/hooks/useSearchAssets.d.ts +0 -3
  134. package/dist/hooks/useSearchUTLSetting.d.ts +0 -5
  135. /package/dist/configuration/pages/asset/components/{AssetConfiguration → drag}/CustomDragPreview.d.ts +0 -0
  136. /package/dist/configuration/pages/asset/components/{AssetConfiguration → drag}/MultipleDragPreview.d.ts +0 -0
  137. /package/dist/configuration/pages/asset/components/{AssetConfiguration → node}/TypeIcon.d.ts +0 -0
@@ -5,6 +5,7 @@ on:
5
5
  branches:
6
6
  - master
7
7
  - next
8
+ - next-ng
8
9
  jobs:
9
10
  publish:
10
11
  if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release-please')
@@ -0,0 +1,63 @@
1
+ name: Release Please (v6 - next-ng)
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - next-ng
7
+
8
+ jobs:
9
+ release-please:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: googleapis/release-please-action@v4
13
+ id: release
14
+ with:
15
+ command: manifest
16
+ token: ${{ secrets.GITHUB_TOKEN }}
17
+ target-branch: 'next-ng'
18
+ default-branch: 'next-ng'
19
+
20
+ - uses: actions/checkout@v4
21
+ if: ${{ steps.release.outputs.release_created }}
22
+
23
+ - name: Setup Node.js
24
+ if: ${{ steps.release.outputs.release_created }}
25
+ uses: actions/setup-node@v4
26
+ with:
27
+ node-version: 'lts/hydrogen' # Adjust this to your Node.js version
28
+
29
+ - name: Update Node.js package versions
30
+ if: ${{ steps.release.outputs.release_created }}
31
+ run: |
32
+ version="${{ steps.release.outputs.version }}"
33
+ find . -name "package.json" -type f -print0 | while IFS= read -r -d '' file; do
34
+ jq ".version = \"${version}\"" "$file" > temp.json && mv temp.json "$file"
35
+ done
36
+
37
+ - name: Update CHANGELOG.md
38
+ if: ${{ steps.release.outputs.release_created }}
39
+ run: |
40
+ version="${{ steps.release.outputs.version }}"
41
+ date=$(date +"%Y-%m-%d")
42
+ echo -e "# Changelog\n\n## [${version}] - ${date}\n\n${{ steps.release.outputs.changelog }}\n\n$(cat CHANGELOG.md)" > CHANGELOG.md
43
+
44
+ - name: Commit changes
45
+ if: ${{ steps.release.outputs.release_created }}
46
+ run: |
47
+ git config --local user.email "action@github.com"
48
+ git config --local user.name "GitHub Action"
49
+ git add .
50
+ git commit -m "chore: update versions and CHANGELOG for ${{ steps.release.outputs.version }}" || echo "No changes to commit"
51
+ git push
52
+
53
+ - name: Create Release
54
+ if: ${{ steps.release.outputs.release_created }}
55
+ uses: actions/create-release@v1
56
+ env:
57
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58
+ with:
59
+ tag_name: ${{ steps.release.outputs.tag_name }}
60
+ release_name: Release ${{ steps.release.outputs.version }}
61
+ body: ${{ steps.release.outputs.changelog }}
62
+ draft: false
63
+ prerelease: false
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "5.14.1"
2
+ ".": "6.0.1"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,50 @@
1
+ # Changelog
2
+
3
+ ## [6.0.1](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v6.0.0...@dexteel/mesf-core-v6.0.1) (2025-09-30)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **logbook:** simplify settings context and remove duplicate providers ([#482](https://github.com/dexteel/mesf-core-frontend/issues/482)) ([20c0dec](https://github.com/dexteel/mesf-core-frontend/commit/20c0dec12c13173a8ea75a76fd1817adc0662947))
9
+
10
+ ## [6.0.0] - 2025-09-30
11
+
12
+
13
+
14
+ # Changelog
15
+
16
+ ## [6.0.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v5.14.1...@dexteel/mesf-core-v6.0.0) (2025-09-30)
17
+
18
+
19
+ ### ⚠ BREAKING CHANGES
20
+
21
+ * **dexteel/MESF v6:** use react-query in all sections
22
+
23
+ ### Features
24
+
25
+ * **assets:** Remove context/reducer | Use react-query | Remove unused files | Improve contextMenu ([5c4c13f](https://github.com/dexteel/mesf-core-frontend/commit/5c4c13f0674534031311a4de4ad07a9ce37bc885))
26
+ * **dexteel/MESF v6:** add new version v6 ([d3136b9](https://github.com/dexteel/mesf-core-frontend/commit/d3136b9eb87962d1b2855e95ad23185e8364d5f4))
27
+ * **jobs:** Remove context/reducer | Use react-query ([8258ae8](https://github.com/dexteel/mesf-core-frontend/commit/8258ae82336202f4fe49b0fdb5d80dd2770837ac))
28
+ * **logbook:** Add LogbookReport ([7ca92dc](https://github.com/dexteel/mesf-core-frontend/commit/7ca92dc10a296010a7108f91bafa9bf162501b53))
29
+ * **logs:** Remove context/reducer | Use react-query ([de98522](https://github.com/dexteel/mesf-core-frontend/commit/de985227701d98c2a85c978586132ec7ddfa620d))
30
+ * **mesf:** Add AssetTreePicker and themeDXT ([5dd14cc](https://github.com/dexteel/mesf-core-frontend/commit/5dd14ccdb55466185fb50f33e33720246cb13595))
31
+ * **profiles:** Remove context/reducer | Use react-query | Remove unused files ([00ebcd7](https://github.com/dexteel/mesf-core-frontend/commit/00ebcd722a00542c0b92b73c659f80f109ab6bfb))
32
+ * **real-time:** Use react-query | Add config-repository ([32d0b4b](https://github.com/dexteel/mesf-core-frontend/commit/32d0b4b159742869ef3a0ce3a7dfe1584ecec868))
33
+ * **settings:** Remove context/reducer | Use react-query ([7f8024f](https://github.com/dexteel/mesf-core-frontend/commit/7f8024f5a01529ed6f19835580375d150e53e9a5))
34
+ * **shifts-crews:** Remove context/reducer | Use react-query ([a17e5c9](https://github.com/dexteel/mesf-core-frontend/commit/a17e5c9dd13be46dab99da61ce841d27c035de16))
35
+ * **trending:** Add react-query | Fix contextMenu | Refactor styles ([4de8ae1](https://github.com/dexteel/mesf-core-frontend/commit/4de8ae1dea54150876a988f7e12b5e137814e002))
36
+ * **users:** Remove context/reducer | Use react-query ([4ff16f7](https://github.com/dexteel/mesf-core-frontend/commit/4ff16f752c8a7188e1f866e7a58383df8f3f763e))
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * add npm publish job for v6 ([7dae720](https://github.com/dexteel/mesf-core-frontend/commit/7dae720ff57d1e46488830ea6ca18a7f6c59c6da))
42
+ * **mesf:** Use react-query instead of custom functions ([3a121ba](https://github.com/dexteel/mesf-core-frontend/commit/3a121bac6fffbfd6ac9fcbcbe1ed8694a1d2d833))
43
+
44
+ ## [5.14.1] - 2025-09-23
45
+
46
+
47
+
1
48
  # Changelog
2
49
 
3
50
  ## [5.14.1](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v5.14.0...@dexteel/mesf-core-v5.14.1) (2025-09-23)
@@ -1,5 +1,6 @@
1
1
  import React, { type ReactNode } from "react";
2
2
  import { ConfigurationsType } from "./configurationMenu";
3
+ import type { LogbookSettingsState } from "./reducers/LogbookSettingsReducer";
3
4
  interface Props {
4
5
  authentication: any;
5
6
  routes: ReactNode;
@@ -11,6 +12,7 @@ interface Props {
11
12
  byPassHeaderRoutes?: string[];
12
13
  plantAssetId?: number;
13
14
  theme?: any;
15
+ logbookSettings?: Partial<LogbookSettingsState>;
14
16
  }
15
- declare function MESFMain({ authentication, routes, navbar, navbarTitle, configurations, showAreaSelector, showTrendingsIcon, byPassHeaderRoutes, plantAssetId, theme, }: Props): React.JSX.Element;
17
+ declare function MESFMain({ authentication, routes, navbar, navbarTitle, configurations, showAreaSelector, showTrendingsIcon, byPassHeaderRoutes, plantAssetId, theme, logbookSettings, }: Props): React.JSX.Element;
16
18
  export { MESFMain };
@@ -0,0 +1,8 @@
1
+ import "@fortawesome/fontawesome-free/css/all.min.css";
2
+ import React from "react";
3
+ interface Props {
4
+ handleExportToExcel: () => void;
5
+ disabled?: boolean;
6
+ }
7
+ export declare const ExcelButton: ({ handleExportToExcel, disabled }: Props) => React.JSX.Element;
8
+ export {};
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ export declare const CustomStatusPanel: ({ handleNew }: {
3
+ handleNew: () => void;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const AssetPage: () => React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { NodeModel } from "@minoru/react-dnd-treeview";
2
2
  import React from "react";
3
- import { AssetSearchResult } from "../../hooks/useAssetSearch";
4
- import { FileProperties } from "../../models/FileProperties";
3
+ import { AssetSearchResult } from "../hooks/useAssetSearch";
4
+ import { FileProperties } from "../models/FileProperties";
5
5
  interface AssetSearchInputProps {
6
6
  assetNodes: NodeModel<FileProperties>[];
7
7
  onSearchResultClick: (result: AssetSearchResult) => void;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { Asset } from "../../../../models/Asset";
3
+ export declare const searchAssets: () => import("@tanstack/react-query").UseQueryResult<Asset[], Error>;
4
+ export declare const TreeAsset: () => React.JSX.Element;
@@ -1,8 +1,10 @@
1
1
  import React from "react";
2
+ import { AssetParameters } from "../../models/AssetParameters";
2
3
  type Props = {
4
+ assetNodeSelectedInTree: AssetParameters | null;
3
5
  show: boolean;
4
6
  onHide: (shouldUpdate: boolean) => void;
5
7
  suffixTitle?: string;
6
8
  };
7
- export declare const CreateNewAssetDialog: ({ show, onHide, suffixTitle }: Props) => React.JSX.Element;
9
+ export declare const CreateNewAssetDialog: ({ assetNodeSelectedInTree, show, onHide, suffixTitle, }: Props) => React.JSX.Element;
8
10
  export {};
@@ -1,8 +1,9 @@
1
1
  import React from "react";
2
2
  type Props = {
3
+ selectedAssetId: number | null;
3
4
  show: boolean;
4
5
  onHide: (shouldUpdate: boolean) => void;
5
6
  suffixTitle?: string;
6
7
  };
7
- export declare const EditAssetDialog: ({ show, onHide, suffixTitle }: Props) => React.JSX.Element;
8
+ export declare const EditAssetDialog: ({ selectedAssetId, show, onHide, suffixTitle, }: Props) => React.JSX.Element;
8
9
  export {};
@@ -1,8 +1,10 @@
1
1
  import React from "react";
2
2
  type Props = {
3
+ selectedAssetId: number | null;
4
+ selectedAssetName: string | null;
3
5
  show: boolean;
4
6
  onHide: (shouldUpdate: boolean) => void;
5
7
  suffixTitle?: string;
6
8
  };
7
- export declare const RemoveAssetDialog: ({ show, onHide, suffixTitle }: Props) => React.JSX.Element;
9
+ export declare const RemoveAssetDialog: ({ selectedAssetId, selectedAssetName, show, onHide, suffixTitle, }: Props) => React.JSX.Element;
8
10
  export {};
@@ -1,8 +1,9 @@
1
1
  import React from "react";
2
2
  type Props = {
3
+ selectedAssetId: number | null;
3
4
  show: boolean;
4
5
  onHide: (onHide: boolean) => void;
5
6
  suffixTitle?: string;
6
7
  };
7
- export declare const ViewerAssetDialog: ({ show, onHide, suffixTitle }: Props) => React.JSX.Element;
8
+ export declare const ViewerAssetDialog: ({ selectedAssetId, show, onHide, suffixTitle, }: Props) => React.JSX.Element;
8
9
  export {};
@@ -0,0 +1,17 @@
1
+ import { MenuOptionType } from "../../../../../controls";
2
+ import { AssetParameters } from "../../models/AssetParameters";
3
+ type Props = {
4
+ setAssetNodeSelectedInTree: (node: any | null) => void;
5
+ setAssetId: Function;
6
+ setShowModal: (modal: "new" | "edit" | "delete" | "view" | "") => void;
7
+ handleMoveUp: ({ assetId }: {
8
+ assetId: number;
9
+ }) => void;
10
+ handleMoveDown: ({ assetId }: {
11
+ assetId: number;
12
+ }) => void;
13
+ };
14
+ export declare const useAssetOptionsFunctions: ({ setAssetNodeSelectedInTree, setAssetId, setShowModal, handleMoveUp, handleMoveDown, }: Props) => {
15
+ getMenuOptions: (data: AssetParameters) => MenuOptionType[];
16
+ };
17
+ export {};
@@ -2,6 +2,12 @@ import { NodeModel, RenderParams } from "@minoru/react-dnd-treeview";
2
2
  import React from "react";
3
3
  import { FileProperties } from "../../models/FileProperties";
4
4
  type Props = RenderParams & {
5
+ openAssets: {
6
+ [assetId: number | string]: number | string;
7
+ };
8
+ setOpenAssets: (assets: {
9
+ [assetId: number | string]: number | string;
10
+ }) => void;
5
11
  node: NodeModel<FileProperties>;
6
12
  setContextMenuOver: (data: NodeModel<FileProperties>, e: React.MouseEvent<HTMLElement>) => void;
7
13
  onDoubleClick: (data: NodeModel<FileProperties>, e: React.MouseEvent<HTMLElement>) => void;
@@ -11,5 +17,5 @@ type Props = RenderParams & {
11
17
  onClick: (e: React.MouseEvent, node: NodeModel<FileProperties>) => void;
12
18
  "data-node-id"?: string;
13
19
  };
14
- export declare const CustomNode: React.FC<Props>;
20
+ export declare const CustomNode: ({ openAssets, setOpenAssets, setContextMenuOver, onDoubleClick, testIdPrefix, isSelected, ...props }: Props) => React.JSX.Element;
15
21
  export {};
@@ -1,5 +1,5 @@
1
1
  import { type DropOptions, type NodeModel } from "@minoru/react-dnd-treeview";
2
- import { FileProperties } from "../../models/FileProperties";
2
+ import { FileProperties } from "../models/FileProperties";
3
3
  type Props = {
4
4
  asset: NodeModel<FileProperties>[];
5
5
  selectedNodes: NodeModel<FileProperties>[];
@@ -1,4 +1,4 @@
1
1
  import * as React from "react";
2
2
  type Props = {};
3
- declare const AssetPage: (props: Props) => React.JSX.Element;
4
- export default AssetPage;
3
+ declare const Asset: (props: Props) => React.JSX.Element;
4
+ export default Asset;
@@ -1,7 +1,11 @@
1
1
  export interface AssetParameters {
2
2
  id: number;
3
- parent: number | null;
3
+ parent: number;
4
4
  text: string;
5
+ isAtTop: boolean;
6
+ isAtBottom: boolean;
7
+ isEditable: boolean;
8
+ sortOrder: number | null;
5
9
  data: {
6
10
  fileType: string;
7
11
  fileSize: string;
@@ -0,0 +1,20 @@
1
+ export declare const updateAsset: ({ AssetIds, ParentAssetId, }: {
2
+ AssetIds: (number | string)[];
3
+ ParentAssetId: number;
4
+ }) => Promise<void>;
5
+ export declare const insertAsset: ({ AssetName, ParentAssetId, CanBeDefaultAsset, }: {
6
+ AssetName: string;
7
+ ParentAssetId: number;
8
+ CanBeDefaultAsset: boolean | null;
9
+ }) => Promise<void>;
10
+ export declare const updateAssetData: ({ AssetId, AssetName, ParentAssetId, IsAsset, CanBeDefaultAsset, }: {
11
+ AssetId: number;
12
+ AssetName: string;
13
+ ParentAssetId: number;
14
+ IsAsset: boolean;
15
+ CanBeDefaultAsset: boolean | null;
16
+ }) => Promise<void>;
17
+ export declare const removeAsset: ({ AssetId, IsActive, }: {
18
+ AssetId: number;
19
+ IsActive: boolean;
20
+ }) => Promise<void>;
@@ -1,4 +1,4 @@
1
1
  import * as React from "react";
2
- type Props = {};
3
- export declare const Jobs: (prop: Props) => React.JSX.Element;
4
- export {};
2
+ import { Job } from "./models/Job";
3
+ export declare const searchJobs: () => import("@tanstack/react-query").UseQueryResult<Job[], Error>;
4
+ export declare const Jobs: () => React.JSX.Element;
@@ -1,7 +1,2 @@
1
1
  import * as React from "react";
2
- type Props = {
3
- getJobsFromAPI: Function;
4
- isLoading: boolean;
5
- };
6
- export declare const TableJobs: ({ getJobsFromAPI, isLoading }: Props) => React.JSX.Element;
7
- export {};
2
+ export declare const TableJobs: () => React.JSX.Element;
@@ -3,9 +3,8 @@ import { Job } from "../../../models/Job";
3
3
  type Props = {
4
4
  setShowModal: (modal: "create" | "update" | "reset" | "enable" | "") => void;
5
5
  setJobSelected: (job: Job) => void;
6
- getJobsFromAPI: Function;
7
6
  };
8
- export declare const useJobsOptionsFunctions: ({ setShowModal, setJobSelected, getJobsFromAPI, }: Props) => {
7
+ export declare const useJobsOptionsFunctions: ({ setShowModal, setJobSelected, }: Props) => {
9
8
  getMenuOptions: (data: Job) => MenuOptionType[];
10
9
  };
11
10
  export {};
@@ -6,7 +6,6 @@ type Props = {
6
6
  showContextMenu: Function;
7
7
  };
8
8
  export declare const useJobsTableData: ({ setShowModal, setJobSelected, showContextMenu, }: Props) => {
9
- rows: Job[];
10
9
  columnDefs: ColDef<any, any>[];
11
10
  };
12
11
  export {};
@@ -1,13 +1,8 @@
1
1
  import { Job } from "../models/Job";
2
- export declare const GetJobsStatus: () => Promise<{
3
- ok: boolean;
4
- data: any;
5
- message?: undefined;
6
- } | {
7
- ok: boolean;
8
- message: string;
9
- data?: undefined;
10
- }>;
11
- export declare const upsertJob: (job: Job) => Promise<import("../../../../services/ApiService").ResponseMESF>;
12
- export declare const SetJobEnable: (enabled: boolean | null, jobId: number | null) => Promise<import("../../../../services/ApiService").ResponseMESF>;
13
- export declare const RestartJob: (jobId: number | null) => Promise<import("../../../../services/ApiService").ResponseMESF>;
2
+ export declare const getJobs: () => Promise<Job[]>;
3
+ export declare const upsertJob: (job: Job) => Promise<number>;
4
+ export declare const setJobEnable: ({ enabled, jobId, }: {
5
+ enabled: boolean | null;
6
+ jobId: number | null;
7
+ }) => Promise<void>;
8
+ export declare const restartJob: (jobId: number | null) => Promise<void>;
@@ -7,6 +7,6 @@ type useLogsProps = {
7
7
  logTypeCode: number | string | null;
8
8
  autoRefresh: boolean;
9
9
  };
10
- export declare const useLogs: ({ startDate, endDate, logTypeCode, autoRefresh, }: useLogsProps) => import("@tanstack/react-query").UseQueryResult<Log[], Error>;
10
+ export declare const searchLogs: ({ startDate, endDate, logTypeCode, autoRefresh, }: useLogsProps) => import("@tanstack/react-query").UseQueryResult<Log[], Error>;
11
11
  export declare const Logs: (prop: Props) => React.JSX.Element;
12
12
  export {};
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root" | "card" | "filters" | "form">;
1
+ export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root" | "card" | "form">;
@@ -1,4 +1,4 @@
1
1
  import * as React from "react";
2
- type Props = {};
3
- export declare const Profiles: (prop: Props) => React.JSX.Element;
4
- export {};
2
+ import { Profile } from "./models/Profile";
3
+ export declare const searchProfiles: () => import("@tanstack/react-query").UseQueryResult<Profile[], Error>;
4
+ export declare const Profiles: () => React.JSX.Element;
@@ -1,5 +1,9 @@
1
1
  import * as React from "react";
2
+ import { Action } from "../../models/Action";
2
3
  import { Profile } from "../../models/Profile";
4
+ export declare const searchActionsOfProfile: ({ profileId, }: {
5
+ profileId: number | null;
6
+ }) => import("@tanstack/react-query").UseQueryResult<Action[], Error>;
3
7
  type Props = {
4
8
  profileForEdit: Profile | null;
5
9
  show: boolean;
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
2
  import { Action } from "../../../models/Action";
3
+ export declare const searchActions: () => import("@tanstack/react-query").UseQueryResult<Action[], Error>;
3
4
  interface Props {
4
5
  actionsOfProfile: Action[];
5
6
  onSelectionChanged: Function;
@@ -1,7 +1,2 @@
1
1
  import * as React from "react";
2
- type Props = {
3
- getProfilesFromAPI: Function;
4
- isLoading: boolean;
5
- };
6
- export declare const TableProfiles: ({ getProfilesFromAPI, isLoading }: Props) => React.JSX.Element;
7
- export {};
2
+ export declare const TableProfiles: () => React.JSX.Element;
@@ -7,11 +7,6 @@ type Props = {
7
7
  showContextMenu: Function;
8
8
  };
9
9
  export declare const useTableData: ({ setProfileId, setModalProceduresProfile, setModalDeleteProfile, showContextMenu, }: Props) => {
10
- rows: {
11
- id: number | null;
12
- ProfileId: number | null;
13
- ProfileName: string;
14
- }[];
15
10
  columnDefs: ColDef<any, any>[];
16
11
  };
17
12
  export {};
@@ -1,8 +1,14 @@
1
- import { Profile } from "../../profiles/models/Profile";
2
1
  import { Action } from "../models/Action";
3
- export declare const getProfiles: () => Promise<import("../../../../services/ApiService").ResponseMESF>;
4
- export declare const upsertProfile: (ProfileId: number, ProfileName: string) => Promise<import("../../../../services/ApiService").ResponseMESF>;
5
- export declare const getActions: () => Promise<import("../../../../services/ApiService").ResponseMESF>;
6
- export declare const getActionsByProfileId: (profile: Profile) => Promise<import("../../../../services/ApiService").ResponseMESF>;
7
- export declare const upsertProfileActions: (profile: Profile, actions: Action[]) => Promise<import("../../../../services/ApiService").ResponseMESF>;
8
- export declare const deleteProfile: (profileId: number) => Promise<import("../../../../services/ApiService").ResponseMESF>;
2
+ import { Profile } from "../models/Profile";
3
+ export declare const getProfiles: () => Promise<Profile[]>;
4
+ export declare const upsertProfile: ({ ProfileId, ProfileName, }: {
5
+ ProfileId: number;
6
+ ProfileName: string;
7
+ }) => Promise<void>;
8
+ export declare const getActions: () => Promise<Action[]>;
9
+ export declare const getActionsByProfileId: (profileId: number) => Promise<Action[]>;
10
+ export declare const upsertProfileActions: ({ profileId, actions, }: {
11
+ profileId: number;
12
+ actions: Action[];
13
+ }) => Promise<void>;
14
+ export declare const deleteProfile: (profileId: number) => Promise<void>;
@@ -1,3 +1,18 @@
1
1
  import React from "react";
2
- declare const QueryCacheInvalidations: React.FC;
2
+ export interface QueryCacheResponse {
3
+ actions: Action[];
4
+ cacheInvalidations: CacheInvalidation[];
5
+ }
6
+ export interface Action {
7
+ ActionId: number;
8
+ ActionName: string;
9
+ ActionTypeId: number;
10
+ }
11
+ export interface CacheInvalidation {
12
+ SourceId: number;
13
+ Source: string;
14
+ TargetsCSV: string;
15
+ }
16
+ export declare const searchQueryCacheInvalidations: () => import("@tanstack/react-query").UseQueryResult<QueryCacheResponse, Error>;
17
+ declare const QueryCacheInvalidations: () => React.JSX.Element;
3
18
  export default QueryCacheInvalidations;
@@ -0,0 +1,6 @@
1
+ import { Action, QueryCacheResponse } from "../config";
2
+ export declare const getQueryCacheInvalidations: () => Promise<QueryCacheResponse>;
3
+ export declare const upsertQueryCacheInvalidations: ({ actionId, targets, }: {
4
+ actionId: number;
5
+ targets: Action[];
6
+ }) => Promise<void>;
@@ -1,2 +1,4 @@
1
1
  import React from "react";
2
+ import { Setting } from "./models/Setting";
3
+ export declare const searchSettings: () => import("@tanstack/react-query").UseQueryResult<Setting[], Error>;
2
4
  export declare const SettingsPage: () => React.JSX.Element;
@@ -1,9 +1,2 @@
1
1
  import React from "react";
2
- import { Setting } from "../models/Setting";
3
- interface Props {
4
- rows: Setting[];
5
- isLoading: boolean;
6
- getSettingsFromAPI: () => void;
7
- }
8
- export declare const TableSettings: ({ getSettingsFromAPI, isLoading, rows, }: Props) => React.JSX.Element;
9
- export {};
2
+ export declare const TableSettings: () => React.JSX.Element;
@@ -1,10 +1,12 @@
1
1
  import { ColDef } from "ag-grid-community";
2
+ import { Setting } from "../../models/Setting";
2
3
  type Props = {
3
4
  setOpenModalEditSetting: Function;
4
5
  setOpenModalDeleteSetting: Function;
5
6
  showContextMenu: Function;
7
+ setSettingSelected: (setting: Setting | null) => void;
6
8
  };
7
- export declare const useTableData: ({ setOpenModalEditSetting, setOpenModalDeleteSetting, showContextMenu, }: Props) => {
9
+ export declare const useTableData: ({ setOpenModalEditSetting, setOpenModalDeleteSetting, showContextMenu, setSettingSelected, }: Props) => {
8
10
  columnDefs: ColDef<any, any>[];
9
11
  defaultColDef: ColDef<any, any>;
10
12
  };
@@ -1,8 +1,10 @@
1
1
  import * as React from "react";
2
+ import { Setting } from "../../models/Setting";
2
3
  type Props = {
4
+ settingSelected: Setting | null;
3
5
  show: boolean;
4
6
  onHide: (shouldUpdate: boolean) => void;
5
7
  suffixTitle?: string;
6
8
  };
7
- export declare const CreateSetting: ({ show, onHide, suffixTitle }: Props) => React.JSX.Element;
9
+ export declare const CreateSetting: ({ settingSelected, show, onHide, suffixTitle, }: Props) => React.JSX.Element;
8
10
  export {};
@@ -1,8 +1,10 @@
1
1
  import * as React from "react";
2
+ import { Setting } from "../../models/Setting";
2
3
  type Props = {
4
+ settingSelected: Setting | null;
3
5
  show: boolean;
4
6
  onHide: (shouldUpdate: boolean) => void;
5
7
  suffixTitle?: string;
6
8
  };
7
- export declare const DeleteSetting: ({ show, onHide, suffixTitle }: Props) => React.JSX.Element;
9
+ export declare const DeleteSetting: ({ settingSelected, show, onHide, suffixTitle, }: Props) => React.JSX.Element;
8
10
  export {};
@@ -1,8 +1,10 @@
1
1
  import * as React from "react";
2
+ import { Setting } from "../../models/Setting";
2
3
  type Props = {
4
+ settingSelected: Setting | null;
3
5
  show: boolean;
4
6
  onHide: (shouldUpdate: boolean) => void;
5
7
  suffixTitle?: string;
6
8
  };
7
- export declare const EditSetting: ({ show, onHide, suffixTitle }: Props) => React.JSX.Element;
9
+ export declare const EditSetting: ({ settingSelected, show, onHide, suffixTitle, }: Props) => React.JSX.Element;
8
10
  export {};
@@ -1,5 +1,4 @@
1
1
  export interface Setting {
2
- SettingId: null | number;
3
2
  SettingName: string;
4
3
  Value: string;
5
4
  Description: string;
@@ -1,3 +1,7 @@
1
- import { Setting } from "../models/Setting";
2
- export declare const upsertSettings: ({ SettingId, Description, SettingName, Value, }: Setting) => Promise<import("../../../../services/ApiService").ResponseMESF>;
3
- export declare const deleteSetting: (SettingId: number) => Promise<import("../../../../services/ApiService").ResponseMESF>;
1
+ export declare const upsertSettings: ({ oldName, newName, description, value, }: {
2
+ oldName: string | null;
3
+ newName: string;
4
+ description: string;
5
+ value: string;
6
+ }) => Promise<void>;
7
+ export declare const deleteSetting: (settingName: string) => Promise<void>;
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root" | "textfield" | "relative" | "btnModal">;
1
+ export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root" | "textfield" | "btnModal">;
@@ -1,4 +1,4 @@
1
1
  import * as React from "react";
2
- type Props = {};
3
- export declare const ShiftsCrews: (prop: Props) => React.JSX.Element;
4
- export {};
2
+ import { ShiftParameters } from "./models/ShiftParameters";
3
+ export declare const searchShifts: () => import("@tanstack/react-query").UseQueryResult<ShiftParameters[], Error>;
4
+ export declare const ShiftsCrews: () => React.JSX.Element;
@@ -1,8 +1,10 @@
1
1
  import * as React from "react";
2
+ import { ShiftParameters } from "../../models/ShiftParameters";
2
3
  type Props = {
4
+ shiftSelected: ShiftParameters | null;
3
5
  show: boolean;
4
6
  onHide: (shouldUpdate: boolean) => void;
5
7
  suffixTitle?: string;
6
8
  };
7
- export declare const CreateShift: ({ show, onHide, suffixTitle }: Props) => React.JSX.Element;
9
+ export declare const CreateShift: ({ shiftSelected, show, onHide, suffixTitle, }: Props) => React.JSX.Element;
8
10
  export {};