@equinor/echo-framework 0.9.22 → 0.10.0-r18-beta-2
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/LICENSE +21 -21
- package/README.md +11 -6
- package/dist/{47deeba42768c5d1.svg → 063009f06499d102.svg} +8 -8
- package/dist/__tests__/prepviewUtils.test.d.ts +1 -0
- package/dist/components/containers/layouts.d.ts +3 -5
- package/dist/components/contextualAppLinks/contextualAppLinks.context.d.ts +1 -1
- package/dist/components/contextualAppLinks/contextualAppLinks.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalAppsMenu.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.d.ts +16 -2
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToCommApp.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToConditionAdviser.d.ts +15 -0
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToMcApp.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToProCoSys.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSafeX.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSap.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSemiDoc.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToStid.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTr2000.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTrendingApp.d.ts +15 -0
- package/dist/components/contextualAppLinks/externalLinkButtons/iconButtonSpinner.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/index.d.ts +2 -0
- package/dist/components/contextualAppLinks/hooks/useContextualAppLinks.d.ts +1 -1
- package/dist/components/contextualAppLinks/index.d.ts +1 -1
- package/dist/components/contextualAppLinks/internalAppLinks.d.ts +1 -1
- package/dist/components/contextualAppLinks/linkButton.d.ts +2 -2
- package/dist/components/externalLinkButton/externalLinkButton.d.ts +6 -5
- package/dist/components/homePage/HomePage.d.ts +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/pageMenu/defaultAccordionItem.d.ts +1 -1
- package/dist/components/panel/corePanelLeft.d.ts +4 -1
- package/dist/components/panel/corePanelRight.d.ts +4 -1
- package/dist/components/prepview/Prepview.d.ts +14 -0
- package/dist/components/prepview/api/api.d.ts +7 -0
- package/dist/components/prepview/api/attachment.d.ts +2 -0
- package/dist/components/prepview/api/index.d.ts +1 -0
- package/dist/components/prepview/api/resources.d.ts +6 -0
- package/dist/components/prepview/common/access/handler/StatusHandler.d.ts +8 -0
- package/dist/components/prepview/common/access/handler/index.d.ts +1 -0
- package/dist/components/prepview/common/access/index.d.ts +2 -0
- package/dist/components/prepview/common/access/request/RequestAccess.d.ts +6 -0
- package/dist/components/prepview/common/access/request/index.d.ts +1 -0
- package/dist/components/prepview/common/additionalInformation/AdditionalDetails.d.ts +11 -0
- package/dist/components/prepview/common/additionalInformation/tabsPanels/TabsPanels.d.ts +15 -0
- package/dist/components/prepview/common/additionalInformation/tabsPanels/index.d.ts +1 -0
- package/dist/components/prepview/common/contentPicker/ContentPicker.d.ts +8 -0
- package/dist/components/prepview/common/contentPicker/index.d.ts +1 -0
- package/dist/components/prepview/common/details/accordion/DetailsAccordion.d.ts +8 -0
- package/dist/components/prepview/common/details/accordion/index.d.ts +1 -0
- package/dist/components/prepview/common/details/index.d.ts +3 -0
- package/dist/components/prepview/common/details/loader/DetailsLoader.d.ts +3 -0
- package/dist/components/prepview/common/details/loader/index.d.ts +1 -0
- package/dist/components/prepview/common/details/panel/EmptyDetailsPanel.d.ts +6 -0
- package/dist/components/prepview/common/details/panel/index.d.ts +1 -0
- package/dist/components/prepview/common/fileSizeDisplay/FileSizeDisplay.d.ts +11 -0
- package/dist/components/prepview/common/fileSizeDisplay/index.d.ts +1 -0
- package/dist/components/prepview/common/index.d.ts +5 -0
- package/dist/components/prepview/common/info/block/InfoBlock.d.ts +9 -0
- package/dist/components/prepview/common/info/block/index.d.ts +1 -0
- package/dist/components/prepview/common/info/index.d.ts +3 -0
- package/dist/components/prepview/common/info/list/InfoBlockList.d.ts +6 -0
- package/dist/components/prepview/common/info/list/index.d.ts +1 -0
- package/dist/components/prepview/common/info/section/InfoSection.d.ts +6 -0
- package/dist/components/prepview/common/info/section/index.d.ts +2 -0
- package/dist/components/prepview/common/info/section/longText/LongTextSection.d.ts +8 -0
- package/dist/components/prepview/common/info/section/longText/index.d.ts +1 -0
- package/dist/components/prepview/context/PrepviewContext.d.ts +9 -0
- package/dist/components/prepview/hooks/index.d.ts +4 -0
- package/dist/components/prepview/hooks/useFetch.d.ts +4 -0
- package/dist/components/prepview/hooks/useIsMobile.d.ts +5 -0
- package/dist/components/prepview/hooks/useOnClickDownload.d.ts +9 -0
- package/dist/components/prepview/hooks/useSetActiveSearchItem.d.ts +10 -0
- package/dist/components/prepview/index.d.ts +1 -0
- package/dist/components/prepview/notification/details/DetailsNotification.d.ts +10 -0
- package/dist/components/prepview/notification/details/index.d.ts +1 -0
- package/dist/components/prepview/notification/header/Header.d.ts +8 -0
- package/dist/components/prepview/notification/header/index.d.ts +1 -0
- package/dist/components/prepview/notification/index.d.ts +9 -0
- package/dist/components/prepview/panels/attachments/Attachments.d.ts +9 -0
- package/dist/components/prepview/panels/attachments/index.d.ts +1 -0
- package/dist/components/prepview/panels/history/TagHistory.d.ts +9 -0
- package/dist/components/prepview/panels/history/group/TagHistoryGroup.d.ts +10 -0
- package/dist/components/prepview/panels/history/group/index.d.ts +1 -0
- package/dist/components/prepview/panels/history/horizontalView/HorizontalTagHistory.d.ts +9 -0
- package/dist/components/prepview/panels/history/horizontalView/index.d.ts +1 -0
- package/dist/components/prepview/panels/history/index.d.ts +1 -0
- package/dist/components/prepview/panels/history/items/Items.d.ts +11 -0
- package/dist/components/prepview/panels/history/items/NotificationItem.d.ts +7 -0
- package/dist/components/prepview/panels/history/items/PunchItem.d.ts +7 -0
- package/dist/components/prepview/panels/history/items/WorkOrderItem.d.ts +7 -0
- package/dist/components/prepview/panels/history/items/index.d.ts +1 -0
- package/dist/components/prepview/panels/index.d.ts +7 -0
- package/dist/components/prepview/panels/objects/Objects.d.ts +7 -0
- package/dist/components/prepview/panels/objects/index.d.ts +1 -0
- package/dist/components/prepview/panels/operations/Operations.d.ts +7 -0
- package/dist/components/prepview/panels/operations/index.d.ts +1 -0
- package/dist/components/prepview/panels/risk/Risk.d.ts +7 -0
- package/dist/components/prepview/panels/risk/index.d.ts +1 -0
- package/dist/components/prepview/panels/risk/trafficLight/TrafficLight.d.ts +7 -0
- package/dist/components/prepview/panels/risk/trafficLight/index.d.ts +1 -0
- package/dist/components/prepview/panels/tagDocumentRefs/HorizontalDocumentGroups.d.ts +9 -0
- package/dist/components/prepview/panels/tagDocumentRefs/TagDocumentGroup.d.ts +10 -0
- package/dist/components/prepview/panels/tagDocumentRefs/TagDocumentItem.d.ts +9 -0
- package/dist/components/prepview/panels/tagDocumentRefs/TagDocumentRefs.d.ts +9 -0
- package/dist/components/prepview/panels/tagDocumentRefs/index.d.ts +1 -0
- package/dist/components/prepview/panels/tagInformation/TagInformation.d.ts +11 -0
- package/dist/components/prepview/panels/tagInformation/index.d.ts +1 -0
- package/dist/components/prepview/punch/details/Details.d.ts +10 -0
- package/dist/components/prepview/punch/details/index.d.ts +1 -0
- package/dist/components/prepview/punch/header/Header.d.ts +8 -0
- package/dist/components/prepview/punch/header/index.d.ts +1 -0
- package/dist/components/prepview/punch/index.d.ts +9 -0
- package/dist/components/prepview/types/attachment.d.ts +7 -0
- package/dist/components/prepview/types/common.d.ts +50 -0
- package/dist/components/prepview/types/document.d.ts +13 -0
- package/dist/components/prepview/types/index.d.ts +9 -0
- package/dist/components/prepview/types/notification.d.ts +68 -0
- package/dist/components/prepview/types/operation.d.ts +13 -0
- package/dist/components/prepview/types/punch.d.ts +27 -0
- package/dist/components/prepview/types/safety.d.ts +21 -0
- package/dist/components/prepview/types/tag.d.ts +24 -0
- package/dist/components/prepview/types/workorder.d.ts +82 -0
- package/dist/components/prepview/utils/date.d.ts +5 -0
- package/dist/components/prepview/utils/documents.d.ts +1 -0
- package/dist/components/prepview/utils/dom.d.ts +1 -0
- package/dist/components/prepview/utils/enums/documents.d.ts +14 -0
- package/dist/components/prepview/utils/enums/index.d.ts +2 -0
- package/dist/components/prepview/utils/enums/tagHistoryItem.d.ts +5 -0
- package/dist/components/prepview/utils/index.d.ts +10 -0
- package/dist/components/prepview/utils/logger.d.ts +71 -0
- package/dist/components/prepview/utils/notification.d.ts +3 -0
- package/dist/components/prepview/utils/object.d.ts +1 -0
- package/dist/components/prepview/utils/punch.d.ts +1 -0
- package/dist/components/prepview/utils/string.d.ts +1 -0
- package/dist/components/prepview/utils/url.d.ts +9 -0
- package/dist/components/prepview/utils/workorder.d.ts +2 -0
- package/dist/components/prepview/workorder/details/DetailsWorkOrder.d.ts +10 -0
- package/dist/components/prepview/workorder/details/index.d.ts +1 -0
- package/dist/components/prepview/workorder/header/Header.d.ts +9 -0
- package/dist/components/prepview/workorder/header/index.d.ts +1 -0
- package/dist/components/prepview/workorder/index.d.ts +10 -0
- package/dist/components/realTimeData/hooks/useRealTimeHub.d.ts +1 -1
- package/dist/components/realTimeData/hooks/useSignalRListener.d.ts +1 -1
- package/dist/components/router/echoRoute.d.ts +1 -2
- package/dist/components/router/index.d.ts +0 -1
- package/dist/components/tagNumber/tagNumber.d.ts +3 -2
- package/dist/coreApplication/EchoBarComponent.d.ts +17 -0
- package/dist/coreApplication/EchoContent.d.ts +0 -1
- package/dist/coreApplication/EchoSetup.d.ts +1 -1
- package/dist/coreApplication/EchoUserInterfaceContextProvider.d.ts +13 -0
- package/dist/coreApplication/index.d.ts +2 -0
- package/dist/f4c85313e79b1662.svg +850 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useEchoHistory.d.ts +2 -2
- package/dist/hooks/useIsCompactLayout.d.ts +5 -0
- package/dist/hooks/useScreenOrientation.d.ts +5 -0
- package/dist/hooks/useScreenValues.d.ts +13 -0
- package/dist/hooks/useSemi.d.ts +1 -1
- package/dist/hooks/useWindowSize.d.ts +9 -0
- package/dist/index.d.ts +30 -1
- package/dist/index.js +42 -3
- package/dist/services/api/api-manager.d.ts +10 -2
- package/dist/services/componentRegistry/componentRegistry.d.ts +27 -7
- package/dist/services/deviceInformation/deepDeviceInfo.d.ts +41 -0
- package/dist/services/deviceInformation/deviceInfo.d.ts +45 -0
- package/dist/services/searchItemDetails/searchItemDetails.store.d.ts +26 -0
- package/dist/services/searchItemDetails/searchItemDetails.store.test.d.ts +1 -0
- package/dist/services/searchItemDetails/searchItemDetailsContainer.d.ts +6 -0
- package/dist/types/api-proCoSysTagResponse.d.ts +1 -1
- package/dist/types/device.d.ts +53 -0
- package/dist/types/eventTypes/index.d.ts +1 -0
- package/dist/types/eventTypes/searchDetailsContainerEvents.d.ts +3 -0
- package/dist/types/hookLibrary.d.ts +20 -4
- package/dist/types/legend.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/legendUtils.d.ts +7 -4
- package/dist/utils/searchUtil.d.ts +1 -0
- package/package.json +126 -122
- package/dist/components/router/useLayout.d.ts +0 -3
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FetchStatus } from '../../../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
statusCode: FetchStatus['statusCode'];
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare function StatusHandler({ statusCode, children }: Props): JSX.Element;
|
|
8
|
+
export { StatusHandler };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StatusHandler';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './RequestAccess';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { AdditionalDetailsDto, NotificationDetails, WorkOrderDetails } from '../../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
instCode: string;
|
|
5
|
+
workOrderDetails?: WorkOrderDetails;
|
|
6
|
+
notificationDetails?: NotificationDetails;
|
|
7
|
+
additionalDetails: AdditionalDetailsDto;
|
|
8
|
+
closePanel: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare function AdditionalDetails({ instCode, workOrderDetails, notificationDetails, additionalDetails, closePanel }: Props): JSX.Element;
|
|
11
|
+
export { AdditionalDetails };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AdditionalDetailsDto, NotificationDetails, WorkOrderDetails } from '../../../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
instCode: string;
|
|
5
|
+
workOrderDetails?: WorkOrderDetails;
|
|
6
|
+
notificationDetails?: NotificationDetails;
|
|
7
|
+
additionalDetails: AdditionalDetailsDto;
|
|
8
|
+
closePanel: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare function TabsPanels({ instCode, workOrderDetails, notificationDetails, additionalDetails, closePanel }: Props): JSX.Element | null;
|
|
11
|
+
interface TabsListProps {
|
|
12
|
+
tabListRef: React.RefObject<HTMLDivElement>;
|
|
13
|
+
}
|
|
14
|
+
declare function TabsList({ tabListRef }: TabsListProps): JSX.Element | null;
|
|
15
|
+
export { TabsPanels, TabsList };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TabsPanels';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import type { ContentPickerGroup } from '../../types';
|
|
3
|
+
interface ContentPickerProps {
|
|
4
|
+
groups: ContentPickerGroup[];
|
|
5
|
+
listItemStyle?: CSSProperties;
|
|
6
|
+
}
|
|
7
|
+
declare function ContentPicker({ groups, listItemStyle }: ContentPickerProps): JSX.Element;
|
|
8
|
+
export { ContentPicker };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ContentPicker';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AccordionProps } from '@equinor/eds-core-react';
|
|
3
|
+
interface DetailsAccordionProps {
|
|
4
|
+
headerLevel?: AccordionProps['headerLevel'];
|
|
5
|
+
children: React.ReactNode[];
|
|
6
|
+
}
|
|
7
|
+
declare function DetailsAccordion({ headerLevel, children }: DetailsAccordionProps): JSX.Element;
|
|
8
|
+
export { DetailsAccordion };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DetailsAccordion';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DetailsLoader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EmptyDetailsPanel';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FileDto } from '@equinor/echo-search';
|
|
3
|
+
interface FileSizeDisplayProps {
|
|
4
|
+
files: FileDto[];
|
|
5
|
+
fileType?: 'pdf';
|
|
6
|
+
viewCode?: 'v';
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function FileSizeDisplay({ files, fileType, viewCode, className }: FileSizeDisplayProps): JSX.Element | null;
|
|
10
|
+
declare function formatBytes(bytes: number, decimals?: number): string;
|
|
11
|
+
export { FileSizeDisplay, formatBytes };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FileSizeDisplay';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface InfoBlockType {
|
|
3
|
+
label: string;
|
|
4
|
+
stretched?: boolean;
|
|
5
|
+
fit?: boolean;
|
|
6
|
+
children: JSX.Element | string[] | string | number;
|
|
7
|
+
}
|
|
8
|
+
declare function InfoBlock({ label, stretched, fit, children }: InfoBlockType): JSX.Element;
|
|
9
|
+
export { InfoBlock };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InfoBlock';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InfoBlockList';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LongTextSection';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SideSheetOrientation } from '@equinor/echo-components';
|
|
3
|
+
interface PrepviewContext {
|
|
4
|
+
orientation: SideSheetOrientation;
|
|
5
|
+
isWorkOrder: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const PrepviewContext: React.Context<PrepviewContext>;
|
|
8
|
+
export declare const usePrepviewContext: () => PrepviewContext;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DependencyList } from 'react';
|
|
2
|
+
type FetchCallback<T> = () => Promise<T> | undefined;
|
|
3
|
+
export declare function useFetch<TError = unknown, T = unknown>(callback: FetchCallback<T>, deps?: DependencyList): [data: T | undefined, isLoading: boolean, error: TError | unknown];
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type DownloadPromise = () => Promise<Blob>;
|
|
2
|
+
interface DownloadOnClick {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
objectUrl?: string;
|
|
5
|
+
error?: unknown;
|
|
6
|
+
downloadOnClick: () => Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
declare function useOnClickDownload(downloadBlob: DownloadPromise, fileName?: string): DownloadOnClick;
|
|
9
|
+
export { useOnClickDownload };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum ItemTypes {
|
|
2
|
+
tag = "tag",
|
|
3
|
+
mcPack = "mcPack",
|
|
4
|
+
commPack = "commPack"
|
|
5
|
+
}
|
|
6
|
+
type ActiveSearchFunction = (type: ItemTypes, itemNumber: string, instCode: string) => void;
|
|
7
|
+
type ActivePackageSearchFunction = (type: ItemTypes, itemNumber: string, projectNumber: string) => void;
|
|
8
|
+
export declare function useSetActiveSearchItem(): ActiveSearchFunction;
|
|
9
|
+
export declare function useSetActivePackageItemInState(): ActivePackageSearchFunction;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Prepview';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { NotificationDetails } from '../../types';
|
|
3
|
+
export interface Props {
|
|
4
|
+
details: NotificationDetails;
|
|
5
|
+
instCode: string;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
closePanel: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare function DetailsNotification({ details, instCode, closePanel }: Props): JSX.Element;
|
|
10
|
+
export { DetailsNotification };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DetailsNotification';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Header';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PrepviewNotificationDto } from '../types';
|
|
3
|
+
interface NotificationProps {
|
|
4
|
+
instCode: string;
|
|
5
|
+
notification: PrepviewNotificationDto;
|
|
6
|
+
closePanel: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare function Notification(props: NotificationProps): JSX.Element | null;
|
|
9
|
+
export { Notification };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PrepviewAttachment } from '../../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
recordType: string;
|
|
5
|
+
recordId: string;
|
|
6
|
+
attachments: PrepviewAttachment[];
|
|
7
|
+
}
|
|
8
|
+
declare function AttachmentsPanel({ recordType, recordId, attachments }: Props): JSX.Element;
|
|
9
|
+
export { AttachmentsPanel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Attachments';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PrepviewNotification, PrepviewPunch, PrepviewTagHistoryGroup, PrepviewWorkOrder } from '../../types';
|
|
3
|
+
interface HistoryProps {
|
|
4
|
+
notificationGroups: PrepviewTagHistoryGroup<PrepviewNotification>[];
|
|
5
|
+
workOrderGroups: PrepviewTagHistoryGroup<PrepviewWorkOrder>[];
|
|
6
|
+
punchGroups: PrepviewTagHistoryGroup<PrepviewPunch>[];
|
|
7
|
+
}
|
|
8
|
+
declare function TagHistoryPanel({ notificationGroups, workOrderGroups, punchGroups }: HistoryProps): JSX.Element;
|
|
9
|
+
export { TagHistoryPanel };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PrepviewNotification, PrepviewPunch, PrepviewTagHistoryGroup, PrepviewWorkOrder } from '../../../types';
|
|
3
|
+
import { WorkItemType } from '../../../utils';
|
|
4
|
+
interface Props {
|
|
5
|
+
emptyText: string;
|
|
6
|
+
workItemType: WorkItemType;
|
|
7
|
+
groups: PrepviewTagHistoryGroup<PrepviewNotification | PrepviewWorkOrder | PrepviewPunch>[];
|
|
8
|
+
}
|
|
9
|
+
declare function TagHistoryGroup({ groups, emptyText, workItemType }: Props): JSX.Element;
|
|
10
|
+
export { TagHistoryGroup };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TagHistoryGroup';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PrepviewNotification, PrepviewPunch, PrepviewTagHistoryGroup, PrepviewWorkOrder } from '../../../types';
|
|
3
|
+
interface HorizontalTagHistoryProps {
|
|
4
|
+
notificationGroups: PrepviewTagHistoryGroup<PrepviewNotification>[];
|
|
5
|
+
workOrderGroups: PrepviewTagHistoryGroup<PrepviewWorkOrder>[];
|
|
6
|
+
punchGroups: PrepviewTagHistoryGroup<PrepviewPunch>[];
|
|
7
|
+
}
|
|
8
|
+
declare const HorizontalTagHistory: React.FC<HorizontalTagHistoryProps>;
|
|
9
|
+
export { HorizontalTagHistory };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HorizontalTagHistory';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TagHistory';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PrepviewNotification, PrepviewPunch, PrepviewWorkOrder } from '../../../types';
|
|
3
|
+
import { WorkItemType } from '../../../utils';
|
|
4
|
+
type Items = Array<PrepviewNotification | PrepviewWorkOrder | PrepviewPunch>;
|
|
5
|
+
export interface ItemProps {
|
|
6
|
+
itemType: WorkItemType;
|
|
7
|
+
subType: string;
|
|
8
|
+
items: Items;
|
|
9
|
+
}
|
|
10
|
+
declare const Items: React.FC<ItemProps>;
|
|
11
|
+
export { Items };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Items';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Objects';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Operations';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Risk';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TrafficLight';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PrepviewDocumentGroup } from '../../types';
|
|
3
|
+
interface HorizontalDocumentGroupsProps {
|
|
4
|
+
instCode: string;
|
|
5
|
+
documentGroups: Array<PrepviewDocumentGroup>;
|
|
6
|
+
tagNo: string;
|
|
7
|
+
}
|
|
8
|
+
declare function HorizontalDocumentGroups({ instCode, documentGroups, tagNo }: HorizontalDocumentGroupsProps): JSX.Element;
|
|
9
|
+
export { HorizontalDocumentGroups };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PrepviewDocument } from '../../types';
|
|
3
|
+
interface TagDocumentGroupProps {
|
|
4
|
+
instCode: string;
|
|
5
|
+
docType: string;
|
|
6
|
+
documents: PrepviewDocument[];
|
|
7
|
+
tagNo: string;
|
|
8
|
+
}
|
|
9
|
+
declare function TagDocumentGroup({ instCode, docType, documents, tagNo }: TagDocumentGroupProps): JSX.Element;
|
|
10
|
+
export { TagDocumentGroup };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PrepviewDocument } from '../../types';
|
|
3
|
+
interface TagDocumentItemProps {
|
|
4
|
+
instCode: string;
|
|
5
|
+
document: PrepviewDocument;
|
|
6
|
+
tagNo: string;
|
|
7
|
+
}
|
|
8
|
+
declare function TagDocumentItem({ instCode, document, tagNo }: TagDocumentItemProps): JSX.Element;
|
|
9
|
+
export { TagDocumentItem };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PrepviewDocumentGroup } from '../../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
instCode: string;
|
|
5
|
+
documentGroups: Array<PrepviewDocumentGroup>;
|
|
6
|
+
tagNo: string;
|
|
7
|
+
}
|
|
8
|
+
declare function TagDocumentRefsPanel({ documentGroups, instCode, tagNo }: Props): JSX.Element;
|
|
9
|
+
export { TagDocumentRefsPanel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TagDocumentRefs';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PrepviewTagInformation } from '../../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
tagInformation: PrepviewTagInformation;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* TagInformationPanel
|
|
8
|
+
* this panel requires the user to have maintenance access to show data.
|
|
9
|
+
*/
|
|
10
|
+
declare function TagInformationPanel({ tagInformation }: Props): JSX.Element;
|
|
11
|
+
export { TagInformationPanel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TagInformation';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PunchDetails } from '../../types';
|
|
3
|
+
export interface Props {
|
|
4
|
+
details: PunchDetails;
|
|
5
|
+
instCode: string;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
closePanel: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare function Details({ details, instCode, closePanel }: Props): JSX.Element;
|
|
10
|
+
export { Details };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Details';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Header';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PrepviewAttachment } from './attachment';
|
|
3
|
+
import { PrepviewDocumentGroup } from './document';
|
|
4
|
+
import { PrepviewNotification } from './notification';
|
|
5
|
+
import { PrepviewOperation } from './operation';
|
|
6
|
+
import { PrepviewPunch } from './punch';
|
|
7
|
+
import { PrepviewSafety } from './safety';
|
|
8
|
+
import { PrepviewRelatedTag, PrepviewTagInformation } from './tag';
|
|
9
|
+
import { PrepviewTagHistoryGroup, PrepviewWorkOrder } from './workorder';
|
|
10
|
+
export type FetchStatus = {
|
|
11
|
+
statusCode?: 'Forbidden' | string;
|
|
12
|
+
};
|
|
13
|
+
export type ContentPickerGroup = {
|
|
14
|
+
title?: string;
|
|
15
|
+
items: ContentPickerItem[];
|
|
16
|
+
};
|
|
17
|
+
export type ContentPickerItem = {
|
|
18
|
+
id: string;
|
|
19
|
+
title: string;
|
|
20
|
+
content: React.ReactNode;
|
|
21
|
+
};
|
|
22
|
+
export type AdditionalDetailsDto = {
|
|
23
|
+
attachments: FetchStatus & {
|
|
24
|
+
attachments: Array<PrepviewAttachment>;
|
|
25
|
+
};
|
|
26
|
+
documents: FetchStatus & {
|
|
27
|
+
documentGroups: Array<PrepviewDocumentGroup>;
|
|
28
|
+
};
|
|
29
|
+
history: FetchStatus & {
|
|
30
|
+
notificationGroups: FetchStatus & {
|
|
31
|
+
groups: PrepviewTagHistoryGroup<PrepviewNotification>[];
|
|
32
|
+
};
|
|
33
|
+
punchGroups: FetchStatus & {
|
|
34
|
+
groups: PrepviewTagHistoryGroup<PrepviewPunch>[];
|
|
35
|
+
};
|
|
36
|
+
workOrderGroups: FetchStatus & {
|
|
37
|
+
groups: PrepviewTagHistoryGroup<PrepviewWorkOrder>[];
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
objects: FetchStatus & {
|
|
41
|
+
objects: Array<PrepviewRelatedTag>;
|
|
42
|
+
};
|
|
43
|
+
operations: FetchStatus & {
|
|
44
|
+
operations: Array<PrepviewOperation>;
|
|
45
|
+
};
|
|
46
|
+
safetyCards: FetchStatus & {
|
|
47
|
+
safetyCards: Array<PrepviewSafety>;
|
|
48
|
+
};
|
|
49
|
+
tagInformation: FetchStatus & PrepviewTagInformation;
|
|
50
|
+
};
|