@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.
- package/.github/workflows/publish-to-npm.yaml +1 -0
- package/.github/workflows/release-please-v6.yml +63 -0
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +47 -0
- package/dist/MESFMain.d.ts +3 -1
- package/dist/components/shared/buttons/ExcelButton.d.ts +8 -0
- package/dist/components/shared/status-bar/CustomStatusPanel.d.ts +4 -0
- package/dist/configuration/pages/asset/AssetPage.d.ts +2 -0
- package/dist/configuration/pages/asset/components/{AssetConfiguration/AssetSearchInput.d.ts → AssetSearchInput.d.ts} +2 -2
- package/dist/configuration/pages/asset/components/TreeAsset.d.ts +4 -0
- package/dist/configuration/pages/asset/components/dialogs/create-new-asset-dialog.d.ts +3 -1
- package/dist/configuration/pages/asset/components/dialogs/edit-asset-dialog.d.ts +2 -1
- package/dist/configuration/pages/asset/components/dialogs/remove-asset-dialog.d.ts +3 -1
- package/dist/configuration/pages/asset/components/dialogs/viewer-asset-dialog.d.ts +2 -1
- package/dist/configuration/pages/asset/components/hooks/useAssetOptionsFunctions.d.ts +17 -0
- package/dist/configuration/pages/asset/components/{AssetConfiguration → node}/CustomNode.d.ts +7 -1
- package/dist/configuration/pages/asset/{components/hooks → hooks}/useAssetActions.d.ts +1 -1
- package/dist/configuration/pages/asset/index.d.ts +2 -2
- package/dist/configuration/pages/asset/models/AssetParameters.d.ts +5 -1
- package/dist/configuration/pages/asset/repositories/AssetRepository.d.ts +20 -0
- package/dist/configuration/pages/job/JobsPage.d.ts +3 -3
- package/dist/configuration/pages/job/components/JobsTable/TableJobs.d.ts +1 -6
- package/dist/configuration/pages/job/components/JobsTable/customHooks/useJobsOptionsFunctions.d.ts +1 -2
- package/dist/configuration/pages/job/components/JobsTable/customHooks/useJobsTableData.d.ts +0 -1
- package/dist/configuration/pages/job/repositories/JobsRepository.d.ts +7 -12
- package/dist/configuration/pages/log/LogsPage.d.ts +1 -1
- package/dist/configuration/pages/log/styles/tableStyles.d.ts +1 -1
- package/dist/configuration/pages/profiles/ProfilesPage.d.ts +3 -3
- package/dist/configuration/pages/profiles/components/ProceduresOfProfile/ActionsOfProfile.d.ts +4 -0
- package/dist/configuration/pages/profiles/components/ProceduresOfProfile/ProceduresDataTable/index.d.ts +1 -0
- package/dist/configuration/pages/profiles/components/ProfilesTable/TableProfiles.d.ts +1 -6
- package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useTableData.d.ts +0 -5
- package/dist/configuration/pages/profiles/repositories/ProfilesRepository.d.ts +13 -7
- package/dist/configuration/pages/realtime/config/index.d.ts +16 -1
- package/dist/configuration/pages/realtime/repositories/config-repository.d.ts +6 -0
- package/dist/configuration/pages/settings/SettingsPage.d.ts +2 -0
- package/dist/configuration/pages/settings/components/TableSettings.d.ts +1 -8
- package/dist/configuration/pages/settings/components/customHooks/useTableSettings.d.ts +3 -1
- package/dist/configuration/pages/settings/components/upsertDelete/CreateSetting.d.ts +3 -1
- package/dist/configuration/pages/settings/components/upsertDelete/DeleteSetting.d.ts +3 -1
- package/dist/configuration/pages/settings/components/upsertDelete/EditSetting.d.ts +3 -1
- package/dist/configuration/pages/settings/models/Setting.d.ts +0 -1
- package/dist/configuration/pages/settings/repositories/settingRepository.d.ts +7 -3
- package/dist/configuration/pages/settings/styles/useStyles.d.ts +1 -1
- package/dist/configuration/pages/shifCrew/ShiftsCrewsPage.d.ts +3 -3
- package/dist/configuration/pages/shifCrew/components/Create/CreateShift.d.ts +3 -1
- package/dist/configuration/pages/shifCrew/components/Delete/DeleteShift.d.ts +3 -1
- package/dist/configuration/pages/shifCrew/components/Edit/EditShift.d.ts +3 -1
- package/dist/configuration/pages/shifCrew/components/TableShifts.d.ts +1 -6
- package/dist/configuration/pages/shifCrew/components/customHooks/useTableShift.d.ts +3 -11
- package/dist/configuration/pages/shifCrew/repositories/ShiftsCrewsRepository.d.ts +3 -3
- package/dist/configuration/pages/users/UsersPage.d.ts +6 -3
- package/dist/configuration/pages/users/components/UsersDataTable/TableUsers.d.ts +1 -6
- package/dist/configuration/pages/users/components/UsersDataTable/customHooks/useTableData.d.ts +0 -8
- package/dist/configuration/pages/users/components/common/AuthTypeSelector.d.ts +1 -0
- package/dist/configuration/pages/users/models/User.d.ts +1 -0
- package/dist/configuration/pages/users/repositories/UsersRepository.d.ts +11 -7
- package/dist/context/LogbookSettingsContext.d.ts +7 -0
- package/dist/controls/asset-filter/AssetFilter.d.ts +13 -0
- package/dist/controls/asset-filter/repositories/AssetRepository.d.ts +2 -0
- package/dist/controls/asset-tree-picker/AssetTreePicker.d.ts +9 -0
- package/dist/controls/modals/ConfirmationDialogRaw.d.ts +9 -0
- package/dist/controls/shift-navigator/component/shift-navigator.control.d.ts +2 -1
- package/dist/controls/shift-navigator-v2/component/shift-period-navigator.control.d.ts +3 -2
- package/dist/controls/shift-selector/ShiftAutocomplete.d.ts +15 -0
- package/dist/controls/shift-selector/ShiftSelector.d.ts +13 -0
- package/dist/controls/shift-selector/repositories/ShiftRepository.d.ts +7 -0
- package/dist/controls/snackbars/notification-snackbar.d.ts +8 -0
- package/dist/css/themeMESF.d.ts +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.esm.js +14592 -12164
- package/dist/index.esm.js.map +1 -1
- package/dist/models/Asset.d.ts +1 -0
- package/dist/pages/logbook/entry/LogbookPage.d.ts +10 -0
- package/dist/pages/logbook/entry/components/Logbook.d.ts +2 -0
- package/dist/pages/logbook/entry/components/attachments/AttachmentModal.d.ts +12 -0
- package/dist/pages/logbook/entry/components/attachments/AttachmentPlugin.d.ts +15 -0
- package/dist/pages/logbook/entry/components/attachments/DeleteAttachmentConfirmationDialog.d.ts +9 -0
- package/dist/pages/logbook/entry/components/dialog/DeleteEntryDialog.d.ts +9 -0
- package/dist/pages/logbook/entry/components/entry-viewer/ContentInput.d.ts +17 -0
- package/dist/pages/logbook/entry/components/entry-viewer/EntryViewer.d.ts +15 -0
- package/dist/pages/logbook/entry/components/entry-viewer/styles/useEntryViewerStyles.d.ts +1 -0
- package/dist/pages/logbook/entry/components/filters/filters.d.ts +11 -0
- package/dist/pages/logbook/entry/hooks/useEntrySubmission.d.ts +34 -0
- package/dist/pages/logbook/entry/hooks/useLogbookEntryOptionsFunctions.d.ts +12 -0
- package/dist/pages/logbook/entry/hooks/useTableData.d.ts +11 -0
- package/dist/pages/logbook/entry/index.d.ts +2 -0
- package/dist/pages/logbook/entry/models/Entry.d.ts +16 -0
- package/dist/pages/logbook/entry/models/EntryAttachment.d.ts +20 -0
- package/dist/pages/logbook/entry/repository/LogbookRepository.d.ts +34 -0
- package/dist/pages/logbook/index.d.ts +14 -0
- package/dist/pages/logbook/report/LogbookPage.d.ts +11 -0
- package/dist/pages/logbook/report/components/Logbook.d.ts +2 -0
- package/dist/pages/logbook/report/components/entry-viewer/EntryViewer.d.ts +13 -0
- package/dist/pages/logbook/report/components/entry-viewer/styles/useEntryViewerStyles.d.ts +1 -0
- package/dist/pages/logbook/report/components/filters/filters.d.ts +15 -0
- package/dist/pages/logbook/report/hooks/useTableData.d.ts +8 -0
- package/dist/pages/logbook/report/index.d.ts +2 -0
- package/dist/pages/logbook/report/repository/LogbookRepository.d.ts +6 -0
- package/dist/pages/logbook/useGridDefinitions.d.ts +9 -0
- package/dist/pages/trendings/TrendingsPage.d.ts +16 -3
- package/dist/pages/trendings/components/chart/TableComponent.d.ts +0 -12
- package/dist/pages/trendings/components/chart/Trending.d.ts +2 -1
- package/dist/pages/trendings/components/chart/components/modals/loadView/LoadViewModal.d.ts +1 -2
- package/dist/pages/trendings/components/chart/customOptionsComponent.d.ts +2 -0
- package/dist/pages/trendings/components/chart/repository/TrendingRepository.d.ts +41 -11
- package/dist/pages/trendings/components/chart/sections/header.d.ts +3 -1
- package/dist/reducers/LogbookSettingsReducer.d.ts +24 -0
- package/dist/repositorie/MESF-frontend-Repositorie.d.ts +5 -3
- package/package.json +6 -1
- package/dist/configuration/pages/asset/ConfigurationAssetPage.d.ts +0 -2
- package/dist/configuration/pages/asset/components/AssetConfiguration/AssetView.d.ts +0 -2
- package/dist/configuration/pages/asset/components/AssetConfiguration/ConfigurationAssetComponent.d.ts +0 -2
- package/dist/configuration/pages/asset/components/hooks/useAssetCodes.d.ts +0 -3
- package/dist/configuration/pages/asset/context/ConfigurationAssetContext.d.ts +0 -328
- package/dist/configuration/pages/asset/hooks/useSearchAssets.d.ts +0 -8
- package/dist/configuration/pages/asset/models/AssetAPI.d.ts +0 -9
- package/dist/configuration/pages/asset/models/InitialValueDataAsset.d.ts +0 -2
- package/dist/configuration/pages/asset/reducers/ConfigurationAssetReducer.d.ts +0 -323
- package/dist/configuration/pages/asset/repositories/ConfigurationAssetRepository.d.ts +0 -4
- package/dist/configuration/pages/asset/theme.d.ts +0 -1
- package/dist/configuration/pages/profiles/components/common/Pickers/ProfilesPicker.d.ts +0 -11
- package/dist/configuration/pages/profiles/components/common/Profiles/hook/useGetProfilesEffect.d.ts +0 -8
- package/dist/configuration/pages/profiles/context/ProfileContext.d.ts +0 -26
- package/dist/configuration/pages/profiles/reducers/ProfilesReducer.d.ts +0 -21
- package/dist/configuration/pages/settings/context/SettingsContext.d.ts +0 -26
- package/dist/configuration/pages/settings/reducers/SettingReducer.d.ts +0 -20
- package/dist/configuration/pages/shifCrew/context/ShiftsCrewsContext.d.ts +0 -26
- package/dist/configuration/pages/shifCrew/reducers/ShiftsCrewsReducer.d.ts +0 -20
- package/dist/configuration/pages/users/context/UsersContext.d.ts +0 -17
- package/dist/configuration/pages/users/models/Profile.d.ts +0 -8
- package/dist/configuration/pages/users/reducers/UsersReducer.d.ts +0 -11
- package/dist/hooks/useSearchAssets.d.ts +0 -3
- package/dist/hooks/useSearchUTLSetting.d.ts +0 -5
- /package/dist/configuration/pages/asset/components/{AssetConfiguration → drag}/CustomDragPreview.d.ts +0 -0
- /package/dist/configuration/pages/asset/components/{AssetConfiguration → drag}/MultipleDragPreview.d.ts +0 -0
- /package/dist/configuration/pages/asset/components/{AssetConfiguration → node}/TypeIcon.d.ts +0 -0
|
@@ -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
|
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)
|
package/dist/MESFMain.d.ts
CHANGED
|
@@ -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 {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NodeModel } from "@minoru/react-dnd-treeview";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { AssetSearchResult } from "
|
|
4
|
-
import { FileProperties } from "
|
|
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;
|
|
@@ -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 {};
|
package/dist/configuration/pages/asset/components/{AssetConfiguration → node}/CustomNode.d.ts
RENAMED
|
@@ -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.
|
|
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 "
|
|
2
|
+
import { FileProperties } from "../models/FileProperties";
|
|
3
3
|
type Props = {
|
|
4
4
|
asset: NodeModel<FileProperties>[];
|
|
5
5
|
selectedNodes: NodeModel<FileProperties>[];
|
|
@@ -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
|
-
|
|
3
|
-
export declare const
|
|
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
|
-
|
|
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;
|
package/dist/configuration/pages/job/components/JobsTable/customHooks/useJobsOptionsFunctions.d.ts
CHANGED
|
@@ -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,
|
|
7
|
+
export declare const useJobsOptionsFunctions: ({ setShowModal, setJobSelected, }: Props) => {
|
|
9
8
|
getMenuOptions: (data: Job) => MenuOptionType[];
|
|
10
9
|
};
|
|
11
10
|
export {};
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { Job } from "../models/Job";
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
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" | "
|
|
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
|
-
|
|
3
|
-
export declare const
|
|
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;
|
package/dist/configuration/pages/profiles/components/ProceduresOfProfile/ActionsOfProfile.d.ts
CHANGED
|
@@ -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,7 +1,2 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
|
|
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;
|
package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useTableData.d.ts
CHANGED
|
@@ -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
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
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,9 +1,2 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
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,3 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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" | "
|
|
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
|
-
|
|
3
|
-
export declare const
|
|
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 {};
|