@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
package/dist/models/Asset.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Entry } from "./models/Entry";
|
|
3
|
+
type useEntriesProps = {
|
|
4
|
+
shiftId?: number;
|
|
5
|
+
assetId?: number | null;
|
|
6
|
+
};
|
|
7
|
+
export declare const useEntries: ({ shiftId, assetId }: useEntriesProps) => import("@tanstack/react-query").UseQueryResult<Entry[], Error>;
|
|
8
|
+
export declare const routeLogbookEntry = "/logbook/entry";
|
|
9
|
+
export declare const LogbookPage: () => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { EntrySubmissionData } from "../../hooks/useEntrySubmission";
|
|
3
|
+
type Props = {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
entryId: number | null;
|
|
7
|
+
isEditing: boolean;
|
|
8
|
+
entryData?: EntrySubmissionData | null;
|
|
9
|
+
onEntrySubmitted?: (entryId: number, entryData?: any) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const AttachmentModal: ({ open, onClose, entryId, isEditing, entryData, onEntrySubmitted, }: Props) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PluginComponent } from "react-markdown-editor-lite";
|
|
3
|
+
export interface AttachmentPluginConfig {
|
|
4
|
+
attachmentCount: number;
|
|
5
|
+
onAttachmentClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
export default class AttachmentPlugin extends PluginComponent {
|
|
8
|
+
static pluginName: string;
|
|
9
|
+
static align: string;
|
|
10
|
+
static defaultConfig: {
|
|
11
|
+
start: number;
|
|
12
|
+
end: number;
|
|
13
|
+
};
|
|
14
|
+
render(): React.JSX.Element;
|
|
15
|
+
}
|
package/dist/pages/logbook/entry/components/attachments/DeleteAttachmentConfirmationDialog.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
attachmentName: string;
|
|
5
|
+
onClose: (confirmed: boolean) => void;
|
|
6
|
+
isDeleting?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const DeleteAttachmentConfirmationDialog: ({ open, attachmentName, onClose, isDeleting, }: Props) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Entry } from "../../models/Entry";
|
|
3
|
+
type Props = {
|
|
4
|
+
entry: Entry | null;
|
|
5
|
+
show: boolean;
|
|
6
|
+
onHide: (onHide: boolean) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const RemoveEntryDialog: ({ entry, show, onHide }: Props) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "react-markdown-editor-lite/lib/index.css";
|
|
3
|
+
import { EntrySubmissionData } from "../../hooks/useEntrySubmission";
|
|
4
|
+
type Props = {
|
|
5
|
+
value: string | null;
|
|
6
|
+
onChange: (content: string) => void;
|
|
7
|
+
isEditing: boolean;
|
|
8
|
+
isNewEntry: boolean;
|
|
9
|
+
UpdateTimestamp: Date;
|
|
10
|
+
UpdatedBy: string;
|
|
11
|
+
entryId: number;
|
|
12
|
+
entryData: EntrySubmissionData;
|
|
13
|
+
onEntrySubmitted?: (entryId: number, entryData?: any) => void;
|
|
14
|
+
allowAttachments?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const ContentInput: ({ value, onChange, isEditing, UpdateTimestamp, UpdatedBy, isNewEntry, entryId, entryData, onEntrySubmitted, allowAttachments, }: Props) => React.JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Entry } from "../../models/Entry";
|
|
3
|
+
type Props = {
|
|
4
|
+
entry: Entry | null;
|
|
5
|
+
show: "edit" | "view" | "";
|
|
6
|
+
onChangeShow: () => void;
|
|
7
|
+
onHide: (entry?: number | null, shouldStayInEditMode?: boolean) => void;
|
|
8
|
+
canEditAsset?: boolean;
|
|
9
|
+
canEditShift?: boolean;
|
|
10
|
+
filterAssets?: "area";
|
|
11
|
+
allowAttachments?: boolean;
|
|
12
|
+
shiftsRange?: number;
|
|
13
|
+
};
|
|
14
|
+
export declare const EntryViewer: ({ entry, show, onChangeShow, onHide, canEditAsset, canEditShift, filterAssets, allowAttachments, shiftsRange, }: Props) => React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useEntryViewerStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root" | "paper" | "inputEditable">;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
withAssetFilter?: "tree" | "selector";
|
|
4
|
+
filterAssets?: "area";
|
|
5
|
+
assetId?: number | null;
|
|
6
|
+
setAssetId?: (assetId: number | null) => void;
|
|
7
|
+
quickFilter: string;
|
|
8
|
+
onQuickFilterChange: (text: string) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const Filters: ({ withAssetFilter, filterAssets, assetId, setAssetId, quickFilter, onQuickFilterChange, }: Props) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Entry } from "../models/Entry";
|
|
2
|
+
export type EntrySubmissionData = {
|
|
3
|
+
assetId: number | null;
|
|
4
|
+
entryId: number | null;
|
|
5
|
+
shiftId: number;
|
|
6
|
+
isForOtherShift?: boolean;
|
|
7
|
+
title: string;
|
|
8
|
+
content: string;
|
|
9
|
+
author: string;
|
|
10
|
+
createTimestamp: Date;
|
|
11
|
+
};
|
|
12
|
+
type UseEntrySubmissionOptions = {
|
|
13
|
+
onSuccess?: (entry: Entry | null) => void;
|
|
14
|
+
onError?: (error: Error) => void;
|
|
15
|
+
isNewEntry?: boolean;
|
|
16
|
+
onHide?: (entry?: number | null, shouldStayInEditMode?: boolean) => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const useEntrySubmission: ({ onSuccess, onError, isNewEntry, onHide, }?: UseEntrySubmissionOptions) => {
|
|
19
|
+
submitEntry: (formData: EntrySubmissionData) => Promise<void>;
|
|
20
|
+
isSubmitLoading: boolean;
|
|
21
|
+
showConfirmationDialog: boolean;
|
|
22
|
+
pendingSubmitData: EntrySubmissionData | null;
|
|
23
|
+
handleConfirmationClose: (value?: string) => void;
|
|
24
|
+
mutation: import("@tanstack/react-query").UseMutationResult<Entry | null, Error, {
|
|
25
|
+
assetId: number | null;
|
|
26
|
+
entryId: number | null;
|
|
27
|
+
shiftId: number;
|
|
28
|
+
title: string;
|
|
29
|
+
content: string;
|
|
30
|
+
createTimestamp: Date;
|
|
31
|
+
author: string;
|
|
32
|
+
}, unknown>;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MenuOptionType } from "../../../../controls";
|
|
2
|
+
import { Entry } from "../models/Entry";
|
|
3
|
+
type Props = {
|
|
4
|
+
setSelectedRowData: (logbookEntry: Entry | null) => void;
|
|
5
|
+
setShow: (modal: "edit" | "view" | "") => void;
|
|
6
|
+
setShowRemoveDialog: (show: boolean) => void;
|
|
7
|
+
handleNewEntry: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const useLogbookEntryOptionsFunctions: ({ setSelectedRowData, setShow, setShowRemoveDialog, handleNewEntry, }: Props) => {
|
|
10
|
+
getMenuOptions: (data: Entry) => MenuOptionType[];
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ColDef } from "ag-grid-enterprise";
|
|
2
|
+
type Props = {
|
|
3
|
+
showContextMenu: Function;
|
|
4
|
+
allowAttachments?: boolean;
|
|
5
|
+
withAssetFilter?: "tree" | "selector";
|
|
6
|
+
showShiftCrew?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const useTableData: ({ showContextMenu, allowAttachments, withAssetFilter, showShiftCrew, }: Props) => {
|
|
9
|
+
columnDefs: ColDef<any, any>[];
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Entry {
|
|
2
|
+
EntryId: number;
|
|
3
|
+
ShiftId: number;
|
|
4
|
+
AssetId: number | null;
|
|
5
|
+
Shift: string | null;
|
|
6
|
+
Crew: string | null;
|
|
7
|
+
Title: string;
|
|
8
|
+
Content: string;
|
|
9
|
+
CreateTimestamp: Date | null;
|
|
10
|
+
UpdateTimestamp: Date | null;
|
|
11
|
+
LogEntryTypeCode: "M" | "A";
|
|
12
|
+
Author: string | null;
|
|
13
|
+
UpdatedBy: string | null;
|
|
14
|
+
AttachmentCount?: number;
|
|
15
|
+
}
|
|
16
|
+
export declare const ENTRY_INITIAL_VALUES: Entry;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface EntryAttachment {
|
|
2
|
+
EntryAttachmentId: number;
|
|
3
|
+
EntryId: number;
|
|
4
|
+
UploadFileId: number;
|
|
5
|
+
AttachmentName: string;
|
|
6
|
+
AttachmentURL: string;
|
|
7
|
+
CreationTime: Date;
|
|
8
|
+
CreatedBy: string;
|
|
9
|
+
FileName: string;
|
|
10
|
+
Path: string;
|
|
11
|
+
Hash: string;
|
|
12
|
+
DoesExist: boolean;
|
|
13
|
+
URL: string;
|
|
14
|
+
}
|
|
15
|
+
export interface AttachmentUploadRequest {
|
|
16
|
+
entryId: number;
|
|
17
|
+
uploadFileId: number;
|
|
18
|
+
attachmentName: string;
|
|
19
|
+
attachmentURL: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Entry } from "../models/Entry";
|
|
2
|
+
import { AttachmentUploadRequest, EntryAttachment } from "../models/EntryAttachment";
|
|
3
|
+
export declare const getEntries: ({ shiftId, assetId, signal, }: {
|
|
4
|
+
shiftId?: number | null;
|
|
5
|
+
assetId?: number | null;
|
|
6
|
+
signal: AbortSignal | undefined;
|
|
7
|
+
}) => Promise<Entry[]>;
|
|
8
|
+
export declare const upsertEntry: ({ assetId, entryId, shiftId, title, content, createTimestamp, author, }: {
|
|
9
|
+
assetId: number | null;
|
|
10
|
+
entryId: number | null;
|
|
11
|
+
shiftId: number;
|
|
12
|
+
title: string;
|
|
13
|
+
content: string;
|
|
14
|
+
createTimestamp: Date;
|
|
15
|
+
author: string;
|
|
16
|
+
}) => Promise<Entry>;
|
|
17
|
+
export declare const deleteEntry: (EntryId: number | null) => Promise<void>;
|
|
18
|
+
export declare const deleteUploadFile: (uploadFileId: number) => Promise<void>;
|
|
19
|
+
export declare const getEntryAttachments: (entryId: number) => Promise<EntryAttachment[]>;
|
|
20
|
+
export declare const upsertEntryAttachment: ({ entryId, uploadFileId, attachmentName, attachmentURL, }: AttachmentUploadRequest) => Promise<{
|
|
21
|
+
CreationTime: Date;
|
|
22
|
+
EntryAttachmentId: number;
|
|
23
|
+
EntryId: number;
|
|
24
|
+
UploadFileId: number;
|
|
25
|
+
AttachmentName: string;
|
|
26
|
+
AttachmentURL: string;
|
|
27
|
+
CreatedBy: string;
|
|
28
|
+
FileName: string;
|
|
29
|
+
Path: string;
|
|
30
|
+
Hash: string;
|
|
31
|
+
DoesExist: boolean;
|
|
32
|
+
URL: string;
|
|
33
|
+
} | null>;
|
|
34
|
+
export declare const deleteEntryAttachment: (entryAttachmentId: number, uploadFileId?: number) => Promise<void>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare const logbookRoutesMESF: {
|
|
3
|
+
path: string;
|
|
4
|
+
element: ReactNode;
|
|
5
|
+
permission?: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const logbookNavbar: {
|
|
8
|
+
id: string;
|
|
9
|
+
label: string;
|
|
10
|
+
items: {
|
|
11
|
+
label: string;
|
|
12
|
+
to: string;
|
|
13
|
+
}[];
|
|
14
|
+
}[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Entry } from "../entry/models/Entry";
|
|
3
|
+
type useEntriesProps = {
|
|
4
|
+
startShiftId: number | null;
|
|
5
|
+
endShiftId: number | null;
|
|
6
|
+
assetId: number | null;
|
|
7
|
+
};
|
|
8
|
+
export declare const useEntriesReport: ({ startShiftId, endShiftId, assetId, }: useEntriesProps) => import("@tanstack/react-query").UseQueryResult<Entry[], Error>;
|
|
9
|
+
export declare const routeLogbookReport = "/logbook/report";
|
|
10
|
+
export declare const LogbookPage: () => React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Entry } from "../../../entry/models/Entry";
|
|
3
|
+
type Props = {
|
|
4
|
+
entry: Entry | null;
|
|
5
|
+
show: "edit" | "view" | "";
|
|
6
|
+
onChangeShow: () => void;
|
|
7
|
+
onHide: () => void;
|
|
8
|
+
filterAssets?: "area";
|
|
9
|
+
showAsset?: boolean;
|
|
10
|
+
showAttachments?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const EntryViewer: ({ entry, show, onHide, filterAssets, showAsset, showAttachments, }: Props) => React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useEntryViewerStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root" | "paper" | "inputEditable">;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SearchShiftsParameters } from "../../../../../controls";
|
|
3
|
+
type Props = {
|
|
4
|
+
withAssetFilter?: "tree" | "selector";
|
|
5
|
+
filterAssets?: "area";
|
|
6
|
+
quickFilter: string;
|
|
7
|
+
onQuickFilterChange: (text: string) => void;
|
|
8
|
+
assetId: number | null;
|
|
9
|
+
setAssetId: (value: number | null) => void;
|
|
10
|
+
shiftPeriod: SearchShiftsParameters;
|
|
11
|
+
onChangeShiftPeriod: (value: SearchShiftsParameters, period: string | null) => void;
|
|
12
|
+
actualPeriod?: string | null;
|
|
13
|
+
};
|
|
14
|
+
export declare const Filters: ({ withAssetFilter, filterAssets, quickFilter, onQuickFilterChange, assetId, setAssetId, shiftPeriod, onChangeShiftPeriod, actualPeriod, }: Props) => React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {}
|
|
2
|
+
import { TagFromTree } from "./components/chart/models/TagsTree.model";
|
|
3
|
+
import { View, ViewTagDataSet } from "./components/chart/models/TrendingModels";
|
|
4
|
+
export declare const searchViews: ({ autoRefresh, }: {
|
|
5
|
+
autoRefresh?: boolean;
|
|
6
|
+
}) => import("@tanstack/react-query").UseQueryResult<View[], Error>;
|
|
7
|
+
export declare const searchViewTags: ({ viewId }: {
|
|
8
|
+
viewId: number | null;
|
|
9
|
+
}) => import("@tanstack/react-query").UseQueryResult<any[], Error>;
|
|
10
|
+
export declare const searchTagsTree: () => import("@tanstack/react-query").UseQueryResult<TagFromTree[], Error>;
|
|
11
|
+
export declare const searchSeries: ({ start, end, tagIds, autoRefresh, }: {
|
|
12
|
+
start: number;
|
|
13
|
+
end: number;
|
|
14
|
+
tagIds: number[];
|
|
15
|
+
autoRefresh?: boolean;
|
|
16
|
+
}) => import("@tanstack/react-query").UseQueryResult<ViewTagDataSet[][], Error>;
|
|
17
|
+
export declare const TrendingsPage: () => React.JSX.Element;
|
|
@@ -5,22 +5,10 @@ import { CursorData, ViewTag } from "./models/TrendingModels";
|
|
|
5
5
|
interface TableComponentProps {
|
|
6
6
|
cursorData: CursorData;
|
|
7
7
|
chartData: ChartData;
|
|
8
|
-
getTagsFromAPI: Function;
|
|
9
8
|
viewTagForDelete: ViewTag | null;
|
|
10
9
|
setViewTagForDelete: Dispatch<ViewTag | null>;
|
|
11
10
|
selectedRowTagId: number | null;
|
|
12
11
|
setSelectedRowTagId: Dispatch<number | null>;
|
|
13
|
-
handleRightClick: (e: any, tagId: 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
|
-
};
|
|
24
12
|
}
|
|
25
13
|
declare const TableComponent: React.FC<TableComponentProps>;
|
|
26
14
|
export default TableComponent;
|
|
@@ -2,7 +2,8 @@ import "chartjs-adapter-moment/dist/chartjs-adapter-moment.esm.js";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
interface TrendingProps {
|
|
4
4
|
title: string;
|
|
5
|
-
|
|
5
|
+
autoRefresh: boolean;
|
|
6
|
+
setAutoRefresh: (autoRefresh: boolean) => void;
|
|
6
7
|
}
|
|
7
8
|
declare const Trending: React.FC<TrendingProps>;
|
|
8
9
|
export default Trending;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface Props {
|
|
3
|
-
getTagsFromAPI: Function;
|
|
4
3
|
open: boolean;
|
|
5
4
|
handleClose: (shouldUpdate: boolean) => void;
|
|
6
5
|
}
|
|
7
|
-
export declare const LoadViewModal: ({ open, handleClose
|
|
6
|
+
export declare const LoadViewModal: ({ open, handleClose }: Props) => React.JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -3,6 +3,8 @@ import { CustomOptions } from "./models/TrendingModels";
|
|
|
3
3
|
interface CustomOptionsComponentProps {
|
|
4
4
|
customOptions: CustomOptions;
|
|
5
5
|
setCustomOptions: React.Dispatch<React.SetStateAction<CustomOptions>>;
|
|
6
|
+
autoRefresh: boolean;
|
|
7
|
+
setAutoRefresh: (autoRefresh: boolean) => void;
|
|
6
8
|
}
|
|
7
9
|
declare const CustomOptionsComponent: React.FC<CustomOptionsComponentProps>;
|
|
8
10
|
export default CustomOptionsComponent;
|
|
@@ -1,13 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
1
|
+
import { TagFromTree } from "../models/TagsTree.model";
|
|
2
|
+
import { View } from "../models/TrendingModels";
|
|
3
|
+
export declare const getTagsTree: () => Promise<TagFromTree[]>;
|
|
4
|
+
export declare const deleteTagFolder: (TagFolderId: number) => Promise<void>;
|
|
5
|
+
export declare const upsertTagFolder: ({ tagFolderId, parentTagFolderId, tagFolderName, isActive, }: {
|
|
6
|
+
tagFolderId: number | null;
|
|
7
|
+
parentTagFolderId: number | null;
|
|
8
|
+
tagFolderName: string;
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
}) => Promise<void>;
|
|
11
|
+
export declare const changeTagFolderToTag: ({ tagId, tagFolderId, }: {
|
|
12
|
+
tagId: number | null;
|
|
13
|
+
tagFolderId: number | null;
|
|
14
|
+
}) => Promise<void>;
|
|
5
15
|
export declare const getSeriesData: (TagIds: string, Start: number | null, End: number | null, SampleCount: number) => Promise<import("../../../../../services").ResponseMESF>;
|
|
6
|
-
export declare const saveTagDefaults: (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
16
|
+
export declare const saveTagDefaults: ({ tagId, alias, color, minScale, maxScale, unit, }: {
|
|
17
|
+
tagId: number;
|
|
18
|
+
alias: string;
|
|
19
|
+
color: string;
|
|
20
|
+
minScale: number;
|
|
21
|
+
maxScale: number;
|
|
22
|
+
unit: string;
|
|
23
|
+
}) => Promise<void>;
|
|
24
|
+
export declare const getViews: (Search: string | null) => Promise<View[]>;
|
|
25
|
+
export declare const upsertView: ({ viewId, viewName, isPublic, }: {
|
|
26
|
+
viewId: number | null;
|
|
27
|
+
viewName: string;
|
|
28
|
+
isPublic: boolean;
|
|
29
|
+
}) => Promise<number>;
|
|
30
|
+
export declare const deleteView: (ViewId: number) => Promise<void>;
|
|
31
|
+
export declare const getViewTags: (ViewId: number) => Promise<any[]>;
|
|
32
|
+
export declare const upsertViewTag: ({ viewId, tagId, color, minScale, maxScale, isVisible, isAutoScale, unit, }: {
|
|
33
|
+
viewId: number;
|
|
34
|
+
tagId: number;
|
|
35
|
+
color: string;
|
|
36
|
+
minScale: number;
|
|
37
|
+
maxScale: number;
|
|
38
|
+
isVisible: boolean;
|
|
39
|
+
isAutoScale: boolean;
|
|
40
|
+
unit: string;
|
|
41
|
+
}) => Promise<void>;
|
|
12
42
|
export declare const deleteViewTag: (ViewId: number, TagId: number) => Promise<import("../../../../../services").ResponseMESF>;
|
|
13
|
-
export declare const deleteAllViewTagsFromView: (ViewId: number) => Promise<
|
|
43
|
+
export declare const deleteAllViewTagsFromView: (ViewId: number) => Promise<void>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface Props {
|
|
3
3
|
setChartOptions: (options: any) => void;
|
|
4
|
+
autoRefresh: boolean;
|
|
5
|
+
setAutoRefresh: (autoRefresh: boolean) => void;
|
|
4
6
|
}
|
|
5
|
-
export declare const Header: ({ setChartOptions }: Props) => React.JSX.Element;
|
|
7
|
+
export declare const Header: ({ setChartOptions, autoRefresh, setAutoRefresh, }: Props) => React.JSX.Element;
|
|
6
8
|
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface LogbookEntrySettings {
|
|
2
|
+
withAssetFilter?: "tree" | "selector";
|
|
3
|
+
filterAssets?: "area";
|
|
4
|
+
canEditAsset?: boolean;
|
|
5
|
+
presetAssetId?: number;
|
|
6
|
+
allowAttachments?: boolean;
|
|
7
|
+
canEditShift?: boolean;
|
|
8
|
+
showShiftCrew?: boolean;
|
|
9
|
+
exportToExcel?: boolean;
|
|
10
|
+
shiftsRange?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface LogbookReportSettings {
|
|
13
|
+
withAssetFilter?: "tree" | "selector";
|
|
14
|
+
filterAssets?: "area";
|
|
15
|
+
showAttachments?: boolean;
|
|
16
|
+
showAsset?: boolean;
|
|
17
|
+
showShiftCrew?: boolean;
|
|
18
|
+
exportToExcel?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface LogbookSettingsState {
|
|
21
|
+
entry: LogbookEntrySettings;
|
|
22
|
+
report: LogbookReportSettings;
|
|
23
|
+
}
|
|
24
|
+
export declare const LogbookSettingsInitialState: LogbookSettingsState;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
1
|
+
import { Setting } from "../configuration/pages/settings/models/Setting";
|
|
2
|
+
import { Asset } from "../models/Asset";
|
|
3
|
+
export declare const getUser: (UserId: number, UserName: string | null) => Promise<Asset[]>;
|
|
4
|
+
export declare const getAssets: () => Promise<Asset[]>;
|
|
5
|
+
export declare const getUTLSettings: () => Promise<Setting[]>;
|
|
4
6
|
export declare const upsertDefaultAreaId: (UserId: number, DefaultAreaId: number | null) => Promise<import("../services").ResponseMESF>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexteel/mesf-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"author": "Dexteel Team",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"@rollup/plugin-typescript": "^8.3.1",
|
|
39
39
|
"@tanstack/react-query": "^4.41.0",
|
|
40
40
|
"@types/lodash-es": "^4.17.6",
|
|
41
|
+
"@types/markdown-it": "^14.1.2",
|
|
41
42
|
"@types/node": "^12.20.46",
|
|
42
43
|
"@types/react": "^17.0.39",
|
|
43
44
|
"autoprefixer": "^10.4.2",
|
|
@@ -98,6 +99,7 @@
|
|
|
98
99
|
"@azure/msal-react": "^1.1.0",
|
|
99
100
|
"@date-io/moment": "^1.3.13",
|
|
100
101
|
"@emotion/styled": "^11.11.0",
|
|
102
|
+
"@fortawesome/fontawesome-free": "^6.7.2",
|
|
101
103
|
"@microsoft/signalr": "^8.0.7",
|
|
102
104
|
"@minoru/react-dnd-treeview": "3.4.4",
|
|
103
105
|
"@mui/x-date-pickers": "^7.9.0",
|
|
@@ -108,10 +110,13 @@
|
|
|
108
110
|
"cross-env": "^7.0.3",
|
|
109
111
|
"date-fns-tz": "^3.1.3",
|
|
110
112
|
"lodash-es": "^4.17.21",
|
|
113
|
+
"markdown-it": "^13.0.2",
|
|
111
114
|
"moment-timezone": "^0.5.45",
|
|
112
115
|
"react-chartjs-2": "^5.2.0",
|
|
113
116
|
"react-dnd": "^16.0.1",
|
|
117
|
+
"react-dropzone": "^14.3.8",
|
|
114
118
|
"react-helmet-async": "^2.0.5",
|
|
119
|
+
"react-markdown-editor-lite": "^1.3.4",
|
|
115
120
|
"string-to-color": "^2.2.2",
|
|
116
121
|
"windows-iana": "^5.1.0"
|
|
117
122
|
},
|