@dexteel/mesf-core 7.8.1 → 7.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +7 -0
  3. package/dist/controls/section-selector/SectionMultiSelect.d.ts +11 -0
  4. package/dist/controls/section-selector/SectionSelector.d.ts +11 -0
  5. package/dist/controls/section-selector/hooks/index.d.ts +2 -0
  6. package/dist/controls/section-selector/hooks/useSections.d.ts +7 -0
  7. package/dist/controls/section-selector/hooks/useTopSections.d.ts +6 -0
  8. package/dist/controls/section-selector/index.d.ts +5 -0
  9. package/dist/controls/section-selector/models/Section.d.ts +22 -0
  10. package/dist/controls/section-selector/repositories/SectionRepository.d.ts +16 -0
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.esm.js +2830 -240
  13. package/dist/index.esm.js.map +1 -1
  14. package/dist/pages/section-logbook/entry/LogbookPage.d.ts +3 -0
  15. package/dist/pages/section-logbook/entry/components/Logbook.d.ts +2 -0
  16. package/dist/pages/section-logbook/entry/components/attachments/AttachmentModal.d.ts +12 -0
  17. package/dist/pages/section-logbook/entry/components/attachments/AttachmentPlugin.d.ts +15 -0
  18. package/dist/pages/section-logbook/entry/components/attachments/DeleteAttachmentConfirmationDialog.d.ts +9 -0
  19. package/dist/pages/section-logbook/entry/components/dialog/DeleteEntryDialog.d.ts +9 -0
  20. package/dist/pages/section-logbook/entry/components/entry-viewer/ContentInput.d.ts +16 -0
  21. package/dist/pages/section-logbook/entry/components/entry-viewer/EntryViewer.d.ts +17 -0
  22. package/dist/pages/section-logbook/entry/components/filters/filters.d.ts +10 -0
  23. package/dist/pages/section-logbook/entry/hooks/useEntries.d.ts +8 -0
  24. package/dist/pages/section-logbook/entry/hooks/useEntrySubmission.d.ts +34 -0
  25. package/dist/pages/section-logbook/entry/hooks/useLogbookEntryOptionsFunctions.d.ts +12 -0
  26. package/dist/pages/section-logbook/entry/hooks/useTableData.d.ts +10 -0
  27. package/dist/pages/section-logbook/entry/index.d.ts +2 -0
  28. package/dist/pages/section-logbook/entry/models/Entry.d.ts +22 -0
  29. package/dist/pages/section-logbook/entry/models/EntryAttachment.d.ts +20 -0
  30. package/dist/pages/section-logbook/entry/repository/LogbookRepository.d.ts +34 -0
  31. package/dist/pages/section-logbook/index.d.ts +22 -0
  32. package/dist/pages/section-logbook/report/LogbookPage.d.ts +3 -0
  33. package/dist/pages/section-logbook/report/components/Logbook.d.ts +2 -0
  34. package/dist/pages/section-logbook/report/components/entry-viewer/EntryViewer.d.ts +13 -0
  35. package/dist/pages/section-logbook/report/components/filters/filters.d.ts +14 -0
  36. package/dist/pages/section-logbook/report/hooks/useEntriesReport.d.ts +10 -0
  37. package/dist/pages/section-logbook/report/hooks/useTableData.d.ts +8 -0
  38. package/dist/pages/section-logbook/report/index.d.ts +2 -0
  39. package/dist/pages/section-logbook/report/repository/LogbookRepository.d.ts +8 -0
  40. package/dist/pages/section-logbook/shared/LogbookSectionPage.d.ts +2 -0
  41. package/dist/pages/section-logbook/shared/components/LogbookSection.d.ts +2 -0
  42. package/dist/pages/section-logbook/shared/components/entry-viewer/SectionEntryViewer.d.ts +14 -0
  43. package/dist/pages/section-logbook/shared/components/entry-viewer/index.d.ts +1 -0
  44. package/dist/pages/section-logbook/shared/components/filters/SectionFilters.d.ts +15 -0
  45. package/dist/pages/section-logbook/shared/components/filters/index.d.ts +1 -0
  46. package/dist/pages/section-logbook/shared/hooks/index.d.ts +2 -0
  47. package/dist/pages/section-logbook/shared/hooks/useSectionEntries.d.ts +7 -0
  48. package/dist/pages/section-logbook/shared/hooks/useTableData.d.ts +11 -0
  49. package/dist/pages/section-logbook/shared/index.d.ts +6 -0
  50. package/dist/pages/section-logbook/shared/models/SectionEntry.d.ts +16 -0
  51. package/dist/pages/section-logbook/shared/repository/SectionRepository.d.ts +25 -0
  52. package/dist/pages/section-logbook/useGridDefinitions.d.ts +9 -0
  53. package/dist/reducers/LogbookSettingsReducer.d.ts +11 -0
  54. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ export { useEntries, routeLogbookEntry } from "./hooks/useEntries";
3
+ export declare const LogbookPage: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const Logbook: () => React.JSX.Element;
@@ -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
+ }
@@ -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,16 @@
1
+ import React from "react";
2
+ import { EntrySubmissionData } from "../../hooks/useEntrySubmission";
3
+ type Props = {
4
+ value: string | null;
5
+ onChange: (content: string) => void;
6
+ isEditing: boolean;
7
+ isNewEntry: boolean;
8
+ UpdateTimestamp: Date;
9
+ UpdatedBy: string;
10
+ entryId: number;
11
+ entryData: EntrySubmissionData;
12
+ onEntrySubmitted?: (entryId: number, entryData?: any) => void;
13
+ allowAttachments?: boolean;
14
+ };
15
+ export declare const ContentInput: ({ value, onChange, isEditing, UpdateTimestamp, UpdatedBy, isNewEntry, entryId, entryData, onEntrySubmitted, allowAttachments, }: Props) => React.JSX.Element;
16
+ export {};
@@ -0,0 +1,17 @@
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
+ preselectedAssetId?: number | null;
9
+ withAssetFilter?: "tree" | "selector";
10
+ canEditAsset?: boolean;
11
+ canEditShift?: boolean;
12
+ filterAssets?: "area";
13
+ allowAttachments?: boolean;
14
+ shiftsRange?: number;
15
+ };
16
+ export declare const EntryViewer: ({ entry, show, onChangeShow, onHide, preselectedAssetId, withAssetFilter, canEditAsset, canEditShift, filterAssets, allowAttachments, shiftsRange, }: Props) => React.JSX.Element;
17
+ export {};
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { type Section } from "../../../../../controls/section-selector";
3
+ type Props = {
4
+ quickFilter: string;
5
+ onQuickFilterChange: (text: string) => void;
6
+ selectedSections: Section[];
7
+ onSectionsChange: (sections: Section[]) => void;
8
+ };
9
+ export declare const Filters: ({ quickFilter, onQuickFilterChange, selectedSections, onSectionsChange, }: Props) => React.JSX.Element;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Entry } from "../models/Entry";
2
+ type UseEntriesProps = {
3
+ shiftId?: number;
4
+ sectionIds?: number[];
5
+ };
6
+ export declare const useEntries: ({ shiftId, sectionIds }: UseEntriesProps) => import("@tanstack/react-query").UseQueryResult<Entry[], Error>;
7
+ export declare const routeLogbookEntry = "/logbook/entry";
8
+ 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,10 @@
1
+ import { ColDef } from "ag-grid-enterprise";
2
+ type Props = {
3
+ showContextMenu: Function;
4
+ allowAttachments?: boolean;
5
+ showShiftCrew?: boolean;
6
+ };
7
+ export declare const useTableData: ({ showContextMenu, allowAttachments, showShiftCrew, }: Props) => {
8
+ columnDefs: ColDef<any, any>[];
9
+ };
10
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MESFLogbookEntry: () => React.JSX.Element;
@@ -0,0 +1,22 @@
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" | "S";
12
+ Author: string | null;
13
+ UpdatedBy: string | null;
14
+ AttachmentCount?: number;
15
+ SectionId: number | null;
16
+ SectionName?: string;
17
+ SectionFamilyName?: string;
18
+ WeighUp?: string | null;
19
+ BreakIn?: string | null;
20
+ SectionNotes?: string | null;
21
+ }
22
+ 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, sectionIds, signal, }: {
4
+ shiftId?: number | null;
5
+ sectionIds?: number[];
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,22 @@
1
+ import { type ReactNode } from "react";
2
+ import { MESFLogbookEntry } from "./entry";
3
+ import { MESFLogbookReport } from "./report";
4
+ export { MESFLogbookEntry, MESFLogbookReport };
5
+ export { SectionSelector } from "../../controls/section-selector";
6
+ export type { Section, SectionFamily, TopSection, } from "../../controls/section-selector";
7
+ export type { SectionEntry } from "./shared/models/SectionEntry";
8
+ export { getSections, getSectionFamilies, getTopUsedSections, } from "../../controls/section-selector";
9
+ export { getEntriesBySection, upsertSectionEntry, deleteSectionEntry, createSectionEntry, } from "./shared/repository/SectionRepository";
10
+ export declare const sectionLogbookRoutesMESF: {
11
+ path: string;
12
+ element: ReactNode;
13
+ permission?: string;
14
+ }[];
15
+ export declare const sectionLogbookNavbar: {
16
+ id: string;
17
+ label: string;
18
+ items: {
19
+ label: string;
20
+ to: string;
21
+ }[];
22
+ }[];
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ export { useEntriesReport, routeLogbookReport } from "./hooks/useEntriesReport";
3
+ export declare const LogbookPage: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const Logbook: () => React.JSX.Element;
@@ -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
+ showAsset?: boolean;
9
+ showAttachments?: boolean;
10
+ showSection?: boolean;
11
+ };
12
+ export declare const EntryViewer: ({ entry, show, onHide, showAsset, showAttachments, showSection, }: Props) => React.JSX.Element;
13
+ export {};
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { SearchShiftsParameters } from "../../../../../controls";
3
+ import { type Section } from "../../../../../controls/section-selector";
4
+ type Props = {
5
+ quickFilter: string;
6
+ onQuickFilterChange: (text: string) => void;
7
+ shiftPeriod: SearchShiftsParameters;
8
+ onChangeShiftPeriod: (value: SearchShiftsParameters, period: string | null) => void;
9
+ actualPeriod?: string | null;
10
+ selectedSections: Section[];
11
+ onSectionsChange: (sections: Section[]) => void;
12
+ };
13
+ export declare const Filters: ({ quickFilter, onQuickFilterChange, shiftPeriod, onChangeShiftPeriod, actualPeriod, selectedSections, onSectionsChange, }: Props) => React.JSX.Element;
14
+ export {};
@@ -0,0 +1,10 @@
1
+ import { Entry } from "../../entry/models/Entry";
2
+ type UseEntriesReportProps = {
3
+ startShiftId: number | null;
4
+ endShiftId: number | null;
5
+ assetId: number | null;
6
+ sectionIds?: number[];
7
+ };
8
+ export declare const useEntriesReport: ({ startShiftId, endShiftId, assetId, sectionIds, }: UseEntriesReportProps) => import("@tanstack/react-query").UseQueryResult<Entry[], Error>;
9
+ export declare const routeLogbookReport = "/logbook/report";
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ColDef } from "ag-grid-enterprise";
2
+ export declare const useTableData: ({ showAttachments, showAsset, showShiftCrew, }: {
3
+ showAttachments?: boolean;
4
+ showAsset?: boolean;
5
+ showShiftCrew?: boolean;
6
+ }) => {
7
+ columnDefs: ColDef<any, any>[];
8
+ };
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const MESFLogbookReport: () => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Entry } from "../../entry/models/Entry";
2
+ export declare const getEntriesReport: ({ startShiftId, endShiftId, assetId, sectionIds, signal, }: {
3
+ startShiftId?: number | null;
4
+ endShiftId?: number | null;
5
+ assetId?: number | null;
6
+ sectionIds?: number[];
7
+ signal?: AbortSignal;
8
+ }) => Promise<Entry[]>;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const LogbookSectionPage: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const LogbookSection: () => React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import type { SectionEntry } from "../../models/SectionEntry";
3
+ type Props = {
4
+ entry: SectionEntry | null;
5
+ show: "edit" | "view" | "";
6
+ onChangeShow: () => void;
7
+ onHide: () => void;
8
+ onSave: () => void;
9
+ withAssetFilter?: "tree" | "selector";
10
+ canEditAsset?: boolean;
11
+ filterAssets?: "area";
12
+ };
13
+ export declare const SectionEntryViewer: ({ entry, show, onChangeShow, onHide, onSave, withAssetFilter, canEditAsset, filterAssets, }: Props) => React.JSX.Element;
14
+ export {};
@@ -0,0 +1 @@
1
+ export { SectionEntryViewer } from "./SectionEntryViewer";
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { type Section } from "../../../../../controls/section-selector";
3
+ type Props = {
4
+ withAssetFilter?: "tree" | "selector";
5
+ filterAssets?: "area";
6
+ assetId?: number | null;
7
+ setAssetId?: (assetId: number | null) => void;
8
+ selectedSection: Section | null;
9
+ onSectionChange: (section: Section | null) => void;
10
+ topSectionsCount?: number;
11
+ quickFilter: string;
12
+ onQuickFilterChange: (text: string) => void;
13
+ };
14
+ export declare const SectionFilters: ({ withAssetFilter, filterAssets, assetId, setAssetId, selectedSection, onSectionChange, topSectionsCount, quickFilter, onQuickFilterChange, }: Props) => React.JSX.Element;
15
+ export {};
@@ -0,0 +1 @@
1
+ export { SectionFilters } from "./SectionFilters";
@@ -0,0 +1,2 @@
1
+ export { useSectionEntries, routeLogbookSection } from "./useSectionEntries";
2
+ export { useTableData } from "./useTableData";
@@ -0,0 +1,7 @@
1
+ import type { SectionEntry } from "../models/SectionEntry";
2
+ type UseSectionEntriesProps = {
3
+ sectionId?: number | null;
4
+ };
5
+ export declare const useSectionEntries: ({ sectionId }: UseSectionEntriesProps) => import("@tanstack/react-query").UseQueryResult<SectionEntry[], Error>;
6
+ export declare const routeLogbookSection = "/logbook/section";
7
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { 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,6 @@
1
+ export { LogbookSectionPage } from "./LogbookSectionPage";
2
+ export { LogbookSection } from "./components/LogbookSection";
3
+ export { routeLogbookSection } from "./hooks";
4
+ export type { Section, SectionFamily, TopSection, } from "../../../controls/section-selector";
5
+ export type { SectionEntry } from "./models/SectionEntry";
6
+ export { upsertSectionEntry } from "./repository/SectionRepository";
@@ -0,0 +1,16 @@
1
+ import type { Entry } from "../../entry/models/Entry";
2
+ export interface SectionEntry extends Entry {
3
+ SectionId: number;
4
+ SectionName: string;
5
+ SectionFamilyId: number;
6
+ SectionFamilyName: string;
7
+ WeighUp: string | null;
8
+ BreakIn: string | null;
9
+ SectionNotes: string | null;
10
+ SectionEntryCreatedAt: Date | null;
11
+ SectionEntryCreatedBy: string | null;
12
+ SectionEntryUpdatedAt: Date | null;
13
+ SectionEntryUpdatedBy: string | null;
14
+ EntryTypeCode: "F" | "S";
15
+ }
16
+ export declare const SECTION_ENTRY_INITIAL_VALUES: Partial<SectionEntry>;
@@ -0,0 +1,25 @@
1
+ import type { SectionEntry } from "../models/SectionEntry";
2
+ export declare const getEntriesBySection: ({ sectionId, signal, }: {
3
+ sectionId: number;
4
+ signal?: AbortSignal;
5
+ }) => Promise<SectionEntry[]>;
6
+ export declare const upsertSectionEntry: ({ entryId, sectionId, weighUp, breakIn, notes, }: {
7
+ entryId: number;
8
+ sectionId: number;
9
+ weighUp?: string | null;
10
+ breakIn?: string | null;
11
+ notes?: string | null;
12
+ }) => Promise<SectionEntry | null>;
13
+ export declare const deleteSectionEntry: (entryId: number) => Promise<void>;
14
+ export declare const createSectionEntry: ({ assetId, shiftId, sectionId, title, content, createTimestamp, author, weighUp, breakIn, notes, }: {
15
+ assetId: number | null;
16
+ shiftId: number;
17
+ sectionId: number;
18
+ title: string;
19
+ content: string;
20
+ createTimestamp: Date;
21
+ author: string;
22
+ weighUp?: string | null;
23
+ breakIn?: string | null;
24
+ notes?: string | null;
25
+ }) => Promise<SectionEntry | null>;
@@ -0,0 +1,9 @@
1
+ import { ColDef } from "ag-grid-enterprise";
2
+ type Props = {
3
+ OnEdit?: Function;
4
+ OnSend?: Function;
5
+ };
6
+ export declare const useGridDefinitions: ({ OnEdit, OnSend }: Props) => {
7
+ defaultColDef: ColDef<any, any>;
8
+ };
9
+ export {};
@@ -17,8 +17,19 @@ export interface LogbookReportSettings {
17
17
  showShiftCrew?: boolean;
18
18
  exportToExcel?: boolean;
19
19
  }
20
+ export interface LogbookSectionSettings {
21
+ schema?: string;
22
+ withAssetFilter?: "tree" | "selector";
23
+ filterAssets?: "area";
24
+ canEditAsset?: boolean;
25
+ allowAttachments?: boolean;
26
+ showShiftCrew?: boolean;
27
+ exportToExcel?: boolean;
28
+ topSectionsCount?: number;
29
+ }
20
30
  export interface LogbookSettingsState {
21
31
  entry: LogbookEntrySettings;
22
32
  report: LogbookReportSettings;
33
+ section: LogbookSectionSettings;
23
34
  }
24
35
  export declare const LogbookSettingsInitialState: LogbookSettingsState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexteel/mesf-core",
3
- "version": "7.8.1",
3
+ "version": "7.9.0",
4
4
  "author": "Dexteel Team",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",