@equinor/echo-framework 0.20.16 → 0.20.17
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 +1 -1
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/lib/components/prepview/types/shared.d.ts +35 -13
- package/src/lib/feature/equipment/components/equipmentTabs/MeasuringPointsForEquipmentItem.d.ts +3 -2
- package/src/lib/feature/equipment/components/equipmentTabs/MeasuringPointsForEquipmentItemList.d.ts +6 -0
- package/src/lib/feature/equipment/components/equipmentTabs/equipmentTabs.d.ts +2 -1
- package/src/lib/feature/equipment/hooks/useEquipmentWithMeasuringPoints.d.ts +1 -1
- package/src/lib/services/userSetting/index.d.ts +1 -0
- package/src/lib/services/userSetting/userSettingStore.d.ts +25 -0
- package/src/lib/types/hookLibrary.d.ts +1 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export * from './lib/services/eventHubActions';
|
|
|
37
37
|
export * from './lib/services/leftPanelNavigation';
|
|
38
38
|
export * from './lib/services/locationService/locationService';
|
|
39
39
|
export { createSimpleStore } from './lib/services/stores/createSimpleStore';
|
|
40
|
+
export * from './lib/services/userSetting';
|
|
40
41
|
export * from './lib/types/api-echohub';
|
|
41
42
|
export type { EchoHubPlant } from './lib/types/echoHubPlant';
|
|
42
43
|
export * from './lib/types/eventTypes';
|
|
@@ -99,25 +99,47 @@ export type HistoricWorkOrderItem = {
|
|
|
99
99
|
isActive: boolean;
|
|
100
100
|
requiredEndDateTime?: Date;
|
|
101
101
|
requiredEndDateStatus?: string;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
operationId?: string;
|
|
110
|
-
mainWorkCenterId: string;
|
|
111
|
-
createdDateTime: Date;
|
|
112
|
-
changedDateTime: Date;
|
|
102
|
+
requiredEndDateStatusDescription?: string;
|
|
103
|
+
maintenancePlanDate?: Date;
|
|
104
|
+
planningPlant?: string;
|
|
105
|
+
planningPlantId?: string;
|
|
106
|
+
basicFinishDateTime?: Date;
|
|
107
|
+
basicFinishDateStatus?: string;
|
|
108
|
+
basicFinishDateStatusDescription?: string;
|
|
113
109
|
earlyStartDate?: Date;
|
|
114
110
|
earlyFinishDate?: Date;
|
|
115
|
-
|
|
116
|
-
|
|
111
|
+
createdDateTime: Date;
|
|
112
|
+
changedDateTime: Date;
|
|
113
|
+
description?: string;
|
|
114
|
+
title?: string;
|
|
115
|
+
workCenter?: string;
|
|
116
|
+
workCenterId?: string;
|
|
117
|
+
operationId?: string;
|
|
117
118
|
sortField?: string;
|
|
118
119
|
hasPrts?: boolean;
|
|
119
120
|
recordTypeIds?: string[];
|
|
120
121
|
hasB30Document?: boolean;
|
|
122
|
+
activeStatusIds?: string;
|
|
123
|
+
userStatus?: string;
|
|
124
|
+
tag?: {
|
|
125
|
+
functionalLocationId?: string;
|
|
126
|
+
tagId?: string;
|
|
127
|
+
plantId?: string;
|
|
128
|
+
categoryId?: string;
|
|
129
|
+
category?: string;
|
|
130
|
+
instCode?: string;
|
|
131
|
+
};
|
|
132
|
+
plannerGroupId?: string;
|
|
133
|
+
plantId?: string;
|
|
134
|
+
instCode?: string;
|
|
135
|
+
functionalLocationId?: string;
|
|
136
|
+
tagPlantId?: string;
|
|
137
|
+
tagId?: string;
|
|
138
|
+
tagCategory?: string;
|
|
139
|
+
tagCategoryId?: string;
|
|
140
|
+
mapLocationId?: string;
|
|
141
|
+
maintenancePlantId?: string;
|
|
142
|
+
maintenancePlant?: string;
|
|
121
143
|
};
|
|
122
144
|
export type PunchGroup = {
|
|
123
145
|
type: string;
|
package/src/lib/feature/equipment/components/equipmentTabs/MeasuringPointsForEquipmentItem.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
interface MeasuringPointsPanelProps {
|
|
2
2
|
equipmentId: string;
|
|
3
|
-
onLoadUpdate
|
|
3
|
+
onLoadUpdate: (status: {
|
|
4
4
|
isLoading: boolean;
|
|
5
5
|
numberOfItemsLoaded?: number;
|
|
6
6
|
}) => void;
|
|
7
7
|
}
|
|
8
8
|
export declare const MeasuringPointsForEquipmentItem: React.FC<MeasuringPointsPanelProps>;
|
|
9
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Equipment } from '../../types/equipment';
|
|
2
|
-
|
|
2
|
+
interface EquipmentTabsProps {
|
|
3
3
|
equipment: Equipment;
|
|
4
4
|
tagNo: string;
|
|
5
5
|
plantNo: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const EquipmentTabs: React.FC<EquipmentTabsProps>;
|
|
8
|
+
export {};
|
|
@@ -3,7 +3,7 @@ export declare function useEquipmentWithoutMeasuringPoints(equipmentId: string):
|
|
|
3
3
|
status: 'error' | 'success' | 'pending';
|
|
4
4
|
equipmentWithMeasuringPoints: EquipmentWithMeasuringPoints[];
|
|
5
5
|
};
|
|
6
|
-
export declare function useEquipmentWithMeasuringPoints(equipmentId: string): {
|
|
6
|
+
export declare function useEquipmentWithMeasuringPoints(equipmentId: string, isEnabledMeasuringPoints: boolean): {
|
|
7
7
|
status: 'error' | 'success' | 'pending';
|
|
8
8
|
equipmentWithMeasuringPoints: EquipmentWithMeasuringPoints[];
|
|
9
9
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useUserSettingsStore, userSettingsSnapshot } from './userSettingStore';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface UserSettings {
|
|
2
|
+
measuringPointsEnabled: boolean;
|
|
3
|
+
setMeasuringPointsEnabled: (value: boolean) => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function userSettingsSnapshot(): UserSettings;
|
|
6
|
+
export declare const useUserSettingsStore: import("zustand").UseBoundStore<Omit<Omit<Omit<import("zustand").StoreApi<UserSettings>, "setState"> & {
|
|
7
|
+
setState<A extends string | {
|
|
8
|
+
type: string;
|
|
9
|
+
}>(partial: UserSettings | Partial<UserSettings> | ((state: UserSettings) => UserSettings | Partial<UserSettings>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
10
|
+
}, "persist"> & {
|
|
11
|
+
persist: {
|
|
12
|
+
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<UserSettings, unknown>>) => void;
|
|
13
|
+
clearStorage: () => void;
|
|
14
|
+
rehydrate: () => Promise<void> | void;
|
|
15
|
+
hasHydrated: () => boolean;
|
|
16
|
+
onHydrate: (fn: (state: UserSettings) => void) => () => void;
|
|
17
|
+
onFinishHydration: (fn: (state: UserSettings) => void) => () => void;
|
|
18
|
+
getOptions: () => Partial<import("zustand/middleware").PersistOptions<UserSettings, unknown>>;
|
|
19
|
+
};
|
|
20
|
+
}, "setState"> & {
|
|
21
|
+
setState(nextStateOrUpdater: UserSettings | Partial<UserSettings> | ((state: import("immer").WritableDraft<UserSettings>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
22
|
+
type: string;
|
|
23
|
+
} | undefined): void;
|
|
24
|
+
}>;
|
|
25
|
+
export {};
|
|
@@ -7,6 +7,7 @@ export type SetActiveTagNo = (argsORtagNo: string | {
|
|
|
7
7
|
keepLastNavigationItem?: boolean;
|
|
8
8
|
openInPanel?: boolean;
|
|
9
9
|
displayMessageOnItemNotFound?: boolean;
|
|
10
|
+
omitTagNoFromUrl?: boolean;
|
|
10
11
|
}, activeTagTab?: string, activeTagSubTab?: string, instCode?: string, openInPanel?: boolean, displayMessageOnItemNotFound?: boolean) => void;
|
|
11
12
|
export type TagData = [(tagNo: string, instCode: string) => void];
|
|
12
13
|
export type SetActiveCommPackNo = (argsORcommPackNo: string | {
|