@equinor/echo-framework 0.26.4 → 0.26.7
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/index.cjs.js +3 -3
- package/package.json +6 -6
- package/src/index.d.ts +3 -0
- package/src/lib/components/workOrderListItem/components/WorkOrderHeaderDate.d.ts +9 -2
- package/src/lib/components/workOrderListItem/types/types.d.ts +1 -12
- package/src/lib/feature/globalSelection/globalSelection.api.d.ts +5 -0
- package/src/lib/feature/globalSelection/globalSelection.internal.d.ts +1 -1
- package/src/lib/feature/globalSelection/index.d.ts +1 -0
- package/src/lib/feature/workOrder/utils/workOrderUtils.d.ts +1 -0
- package/src/lib/services/echoViewService/echoView.api.d.ts +3 -0
- package/src/lib/services/echoViewService/echoView.type.d.ts +34 -0
- package/src/lib/services/echoViewService/echoViewService.d.ts +3 -0
- package/src/lib/services/echoViewService/loadEchoViewIdAndSelectionIdFromUrl.d.ts +6 -0
- package/src/lib/components/workOrderListItem/components/BasicFinishDate.d.ts +0 -2
- package/src/lib/components/workOrderListItem/components/OperationDateRange.d.ts +0 -2
- package/src/lib/components/workOrderListItem/components/PM01HeaderData.d.ts +0 -2
- package/src/lib/components/workOrderListItem/components/PM02HeaderData.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.7",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@equinor/echo-base": ">= 0.26.
|
|
6
|
-
"@equinor/echo-components": ">= 0.26.
|
|
7
|
-
"@equinor/echo-core": ">= 0.26.
|
|
8
|
-
"@equinor/echo-search": ">= 0.26.
|
|
9
|
-
"@equinor/echo-utils": ">= 0.26.
|
|
5
|
+
"@equinor/echo-base": ">= 0.26.6 < 0.27.0",
|
|
6
|
+
"@equinor/echo-components": ">= 0.26.6 < 0.27.0",
|
|
7
|
+
"@equinor/echo-core": ">= 0.26.6 < 0.27.0",
|
|
8
|
+
"@equinor/echo-search": ">= 0.26.6 < 0.27.0",
|
|
9
|
+
"@equinor/echo-utils": ">= 0.26.7 < 0.27.0",
|
|
10
10
|
"@equinor/eds-core-react": "0.43.0",
|
|
11
11
|
"@equinor/eds-icons": "0.22.0",
|
|
12
12
|
"react": ">= 17.0.2",
|
package/src/index.d.ts
CHANGED
|
@@ -43,6 +43,9 @@ export { getMeasurementsFromMaintenanceDataApi } from './lib/services/api/api-me
|
|
|
43
43
|
export { getPlantsCachedOrApi, getPlantsFromApi } from './lib/services/api/api-plants';
|
|
44
44
|
export { RegisteredComponentName } from './lib/services/componentRegistry/componentRegistry';
|
|
45
45
|
export * from './lib/services/dataLayerPanel';
|
|
46
|
+
export { EchoViewInspectionToolMode } from './lib/services/echoViewService/echoView.type';
|
|
47
|
+
export type { EchoView, EchoViewEcmPdfInspectionToolConfig, EchoViewSyncSettings } from './lib/services/echoViewService/echoView.type';
|
|
48
|
+
export { echoViewService, setEchoView } from './lib/services/echoViewService/echoViewService';
|
|
46
49
|
export * from './lib/services/eventHubActions';
|
|
47
50
|
export * from './lib/services/leftPanelNavigation';
|
|
48
51
|
export * from './lib/services/locationService/locationService';
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { WorkOrderHeaderDataProps } from '../types/types';
|
|
2
|
+
/**
|
|
3
|
+
* Displays the basic finish date for a work order, with optional status-based color.
|
|
4
|
+
*
|
|
5
|
+
* @param props.basicFinishDateStatus - The status of the basic finish date, used to determine color.
|
|
6
|
+
* @param props.basicFinishDateTime - The basic finish date/time value to display.
|
|
7
|
+
* @returns {JSX.Element} The formatted date label.
|
|
8
|
+
*/
|
|
9
|
+
export declare const WorkOrderHeaderDate: React.FC<WorkOrderHeaderDataProps>;
|
|
@@ -32,21 +32,10 @@ export interface WorkOrderListItemProps {
|
|
|
32
32
|
footer?: React.ReactNode;
|
|
33
33
|
isHighlightable?: boolean;
|
|
34
34
|
}
|
|
35
|
-
export type
|
|
35
|
+
export type WorkOrderHeaderDataProps = {
|
|
36
36
|
readonly basicFinishDateStatus?: string;
|
|
37
37
|
readonly basicFinishDateTime?: Date;
|
|
38
38
|
};
|
|
39
|
-
export type OperationDateRangeProps = {
|
|
40
|
-
readonly earlyStartDate?: Date;
|
|
41
|
-
readonly earlyFinishDate?: Date;
|
|
42
|
-
};
|
|
43
|
-
export type PM02HeaderDataProps = {
|
|
44
|
-
readonly maintenancePlanDate?: Date;
|
|
45
|
-
};
|
|
46
|
-
export type PM01HeaderDataProps = {
|
|
47
|
-
readonly requiredEndDateStatus: string;
|
|
48
|
-
readonly requiredEndDateTime: Date;
|
|
49
|
-
};
|
|
50
39
|
export type ExtraIconsProps = {
|
|
51
40
|
readonly hasPrts?: boolean;
|
|
52
41
|
readonly operationId?: string;
|
|
@@ -217,5 +217,10 @@ export declare const globalSelectionApi: Readonly<{
|
|
|
217
217
|
* Retrieves the unique IDs of all items stored in the selection menu panel.
|
|
218
218
|
*/
|
|
219
219
|
getAll: () => Readonly<GlobalSelectionTypes.ItemId[]>;
|
|
220
|
+
getTagIds: typeof getStoreTagIds;
|
|
221
|
+
getEquipmentIds: typeof getStoreEquipmentIds;
|
|
220
222
|
};
|
|
221
223
|
}>;
|
|
224
|
+
declare function getStoreTagIds(): GlobalSelectionTypes.TagId[];
|
|
225
|
+
declare function getStoreEquipmentIds(): GlobalSelectionTypes.EquipmentId[];
|
|
226
|
+
export {};
|
|
@@ -9,6 +9,7 @@ export { useGlobalSelectionTags } from './hooks/useGlobalSelectionTags';
|
|
|
9
9
|
export { useGlobalSelectionWorkOrders } from './hooks/useGlobalSelectionWorkOrders';
|
|
10
10
|
export { useSelectionCategoriesByGroupId } from './hooks/useSelectionCategoriesByGroupId';
|
|
11
11
|
export { useSelectionMenuGroups } from './selectionMenu/hooks/useSelectionMenuGroups';
|
|
12
|
+
export { loadEchoViewIdAndSelectionIdFromUrl } from '../../services/echoViewService/loadEchoViewIdAndSelectionIdFromUrl';
|
|
12
13
|
export { RemoveSelectionItemsConfirmDialog } from './components/RemoveSelectionItemsConfirmDialog';
|
|
13
14
|
export { globalSelectionApi } from './globalSelection.api';
|
|
14
15
|
export { globalSelectionInternal } from './globalSelection.internal';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { WorkOrderListItemData } from '../../../components/workOrderListItem/types/types';
|
|
2
2
|
import { WorkOrderItemHeaderData } from '../components/WorkOrderItemHeader.types';
|
|
3
3
|
export declare function mapHeaderDataToListItemData(headerData: WorkOrderItemHeaderData): WorkOrderListItemData;
|
|
4
|
+
export declare function convertToActiveStatusIdArray(activeStatusIds: string): string[];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Guid } from '@equinor/echo-utils';
|
|
2
|
+
export interface EchoViewBaseItem {
|
|
3
|
+
readonly id: Guid;
|
|
4
|
+
}
|
|
5
|
+
export interface EchoView extends EchoViewBaseItem {
|
|
6
|
+
readonly owner: string;
|
|
7
|
+
readonly selectionId: string | undefined;
|
|
8
|
+
readonly instCode: string | undefined;
|
|
9
|
+
readonly tagNo: string | undefined;
|
|
10
|
+
readonly search: string | undefined;
|
|
11
|
+
readonly skipOnboarding: boolean | undefined;
|
|
12
|
+
readonly useMaintenanceDevData: boolean | undefined;
|
|
13
|
+
readonly syncSettings: EchoViewSyncSettings | undefined;
|
|
14
|
+
readonly ecmPdfInspectionTool: EchoViewEcmPdfInspectionToolConfig | undefined;
|
|
15
|
+
readonly echo3D: Record<string, unknown> | undefined;
|
|
16
|
+
readonly version: string;
|
|
17
|
+
}
|
|
18
|
+
export interface EchoViewSyncSettings {
|
|
19
|
+
readonly enablePunches: boolean | undefined;
|
|
20
|
+
readonly enableChecklist: boolean | undefined;
|
|
21
|
+
readonly enableCommPk: boolean | undefined;
|
|
22
|
+
readonly enableMcPk: boolean | undefined;
|
|
23
|
+
readonly enableWorkOrders: boolean | undefined;
|
|
24
|
+
readonly enableNotifications: boolean | undefined;
|
|
25
|
+
}
|
|
26
|
+
export interface EchoViewEcmPdfInspectionToolConfig {
|
|
27
|
+
readonly ecm: EchoViewInspectionToolMode | undefined;
|
|
28
|
+
readonly docTypes: string[] | undefined;
|
|
29
|
+
readonly callbackUrl: string | undefined;
|
|
30
|
+
}
|
|
31
|
+
export declare enum EchoViewInspectionToolMode {
|
|
32
|
+
Markup = "Markup",
|
|
33
|
+
View = "View"
|
|
34
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EchoView } from './echoView.type';
|
|
2
|
+
/**
|
|
3
|
+
* Load echo view with selection on startup. Don't add any slow api calls here, since we want to render the app as fast as possible.
|
|
4
|
+
* This DOES NOT THROW, but handles errors internally.
|
|
5
|
+
*/
|
|
6
|
+
export declare function loadEchoViewIdAndSelectionIdFromUrl(): Promise<EchoView | undefined>;
|