@equinor/echo-framework 2.2.3 → 2.4.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.
- package/README.md +23 -3
- package/index.cjs.js +3 -3
- package/package.json +12 -8
- package/src/index.d.ts +8 -3
- package/src/lib/components/index.d.ts +2 -0
- package/src/lib/components/prepview/Prepview.d.ts +11 -1
- package/src/lib/components/prepview/context/PrepviewContext.d.ts +1 -1
- package/src/lib/components/prepview/panels/objects/EquipmentListItem.d.ts +9 -0
- package/src/lib/components/prepview/panels/objects/NotificationListItem.d.ts +9 -0
- package/src/lib/components/requestAccess/MissingAccessInfoButton.d.ts +6 -0
- package/src/lib/components/requestAccess/RequestAccessButton.d.ts +2 -1
- package/src/lib/components/requestAccess/RequestProCoSysAccess.d.ts +0 -1
- package/src/lib/components/verticalTabsSplitView/VerticalTabsSplitView.d.ts +1 -1
- package/src/lib/coreApplication/EchoUserInterfaceStore.d.ts +5 -0
- package/src/lib/feature/equipment/hooks/useEquipmentWithMeasuringPoints.d.ts +1 -1
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.d.ts +205 -2
- package/src/lib/feature/globalSelection/hooks/useGlobalSelectionItemsByTypeAsMap.d.ts +7 -0
- package/src/lib/feature/globalSelection/index.d.ts +1 -0
- package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/persist/selectionTree.load.utils.d.ts +7 -0
- package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/selectionTree.store.d.ts +78 -2
- package/src/lib/feature/legend/components/legendTextSelector/LegendTextSelector.d.ts +5 -6
- package/src/lib/feature/legend/components/pdfMarkers/PositionalItem.d.ts +1 -1
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/LegendColoredMarkerIcon.d.ts +2 -2
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/LegendMarkersRenderer.d.ts +1 -1
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/MarkerWithPopover.d.ts +13 -0
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/MultipleMarkersByLegends.d.ts +1 -5
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/MultipleMarkersBySingleLegend.d.ts +1 -2
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/hooks/useMarkerPopover.d.ts +19 -0
- package/src/lib/feature/legend/components/pdfMarkers/utils/markerId.utils.d.ts +18 -0
- package/src/lib/feature/legend/components/pdfMarkers/utils/splitMarkerByBadgeSelectionGroup.types.d.ts +4 -1
- package/src/lib/feature/legend/components/selectionLegend/SelectionLegend.d.ts +1 -1
- package/src/lib/feature/legend/components/selectionLegend/SelectionLegendChip.d.ts +1 -1
- package/src/lib/feature/legend/components/selectionLegend/components/SelectionLegendActions.d.ts +5 -0
- package/src/lib/feature/legend/components/selectionLegend/components/SelectionLegendOtherMarkers.d.ts +4 -0
- package/src/lib/feature/legend/components/selectionLegend/hooks/useSelectionGroupsForLegendRenderer.d.ts +5 -0
- package/src/lib/feature/legend/components/selectionLegend/hooks/useSelectionGroupsForLegendRenderer.utils.d.ts +17 -0
- package/src/lib/feature/legend/components/selectionLegend/selectionLegend.utils.d.ts +18 -7
- package/src/lib/feature/legend/legendFacade.d.ts +36 -9
- package/src/lib/feature/legend/stores/legendDataStore/legendStore.d.ts +35 -39
- package/src/lib/feature/legend/stores/legendUIStore/legendUIStore.d.ts +8 -3
- package/src/lib/feature/legend/stores/legendUIStore/legendUIStore.types.d.ts +15 -1
- package/src/lib/feature/legend/stores/legendVisibleDataAsTagsStore/legendVisibleDataAsTagsStore.d.ts +34 -1
- package/src/lib/feature/legend/stores/legendVisibleDataStore/legendVisibleDataStore.d.ts +20 -1
- package/src/lib/feature/legend/types/legendStrategy.type.d.ts +7 -3
- package/src/lib/hooks/useOpenPrepview.d.ts +1 -1
- package/src/lib/services/dataLayerPanel/dataLayerPanel.store.d.ts +53 -21
- package/src/lib/services/leftPanelNavigation/leftPanelNavigation.store.d.ts +14 -11
- package/src/lib/services/userSetting/userSettingStore.d.ts +8 -4
- package/src/lib/utils/dataAccess/accessGuidanceSections.d.ts +27 -0
- package/src/lib/{types → utils}/dataAccess/dataAccessLinks.d.ts +6 -1
- package/src/lib/utils/dataAccess/dataAccessLinks.utils.d.ts +9 -0
- package/src/types/procosysProject.d.ts +20 -0
- package/src/lib/components/requestAccess/RequestSapAccess.d.ts +0 -7
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/hooks/usePopoverHandler.d.ts +0 -7
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/hooks/usePopoverHandler.types.d.ts +0 -14
- package/src/lib/feature/legend/components/selectionLegend/hooks/useIsSelectionLegendVisible.d.ts +0 -6
- package/src/lib/types/dataAccess/index.d.ts +0 -1
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { SelectedLegend } from '../../feature/legacyLegend/legend';
|
|
1
|
+
import { LegendType, SelectedLegend } from '../../feature/legacyLegend/legend';
|
|
2
2
|
interface UserSettings {
|
|
3
|
-
measuringPointsEnabled: boolean;
|
|
4
3
|
selectedLegacyLegend: SelectedLegend;
|
|
5
4
|
}
|
|
6
5
|
interface UserSettingsActions {
|
|
7
|
-
setMeasuringPointsEnabled: (value: boolean) => void;
|
|
8
6
|
setSelectedLegacyLegend: (selectedLegend: SelectedLegend) => void;
|
|
9
7
|
}
|
|
10
8
|
type UserSettingsStore = UserSettings & UserSettingsActions;
|
|
@@ -31,7 +29,13 @@ export declare const useUserSettingsStore: import("zustand").UseBoundStore<Omit<
|
|
|
31
29
|
getOptions: () => Partial<import("zustand/middleware").PersistOptions<UserSettingsStore, unknown>>;
|
|
32
30
|
};
|
|
33
31
|
}, "setState"> & {
|
|
34
|
-
setState(nextStateOrUpdater: UserSettingsStore | Partial<UserSettingsStore> | ((state:
|
|
32
|
+
setState(nextStateOrUpdater: UserSettingsStore | Partial<UserSettingsStore> | ((state: {
|
|
33
|
+
selectedLegacyLegend: {
|
|
34
|
+
isEnabled: boolean;
|
|
35
|
+
legendType: LegendType;
|
|
36
|
+
};
|
|
37
|
+
setSelectedLegacyLegend: (selectedLegend: SelectedLegend) => void;
|
|
38
|
+
}) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
35
39
|
type: string;
|
|
36
40
|
} | undefined): void;
|
|
37
41
|
}>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a single link the user can follow to request or understand access.
|
|
3
|
+
*/
|
|
4
|
+
type AccessRequestLink = {
|
|
5
|
+
label: string;
|
|
6
|
+
url: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Group of related access request links, optionally with a heading describing who it applies to.
|
|
10
|
+
*/
|
|
11
|
+
type AccessRequestLinkGroup = {
|
|
12
|
+
heading?: string;
|
|
13
|
+
requestLinks: AccessRequestLink[];
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Higher-level guidance section combining descriptive text and one or more link groups.
|
|
17
|
+
*/
|
|
18
|
+
export type AccessGuidanceSection = {
|
|
19
|
+
description: string;
|
|
20
|
+
descriptionBold?: string;
|
|
21
|
+
requestLinkGroups: AccessRequestLinkGroup[];
|
|
22
|
+
note?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const SapAccessGuidanceSection: AccessGuidanceSection;
|
|
25
|
+
export declare const ProCoSysAccessGuidanceSection: (plantName: string) => AccessGuidanceSection;
|
|
26
|
+
export declare const IocAccessGuidanceSection: AccessGuidanceSection;
|
|
27
|
+
export {};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Central repository of link metadata used across the application.
|
|
3
|
+
*
|
|
4
|
+
* Keep raw URLs explicit (rather than generated) for traceability and to avoid
|
|
5
|
+
* accidental term changes when AccessIT search semantics evolve.
|
|
6
|
+
*/
|
|
1
7
|
export declare const dataAccessLinks: {
|
|
2
8
|
YO900: {
|
|
3
9
|
label: string;
|
|
@@ -44,4 +50,3 @@ export declare const dataAccessLinks: {
|
|
|
44
50
|
url: string;
|
|
45
51
|
};
|
|
46
52
|
};
|
|
47
|
-
export declare function createPlantNameQueryParam(plantName: string): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert the displayed Echo plant name into the AccessIT search term.
|
|
3
|
+
*
|
|
4
|
+
* 1. Attempt to match any defined special-case fragment (substring match)
|
|
5
|
+
* 2. Fall back to taking the first N words of the raw plant name (default 3)
|
|
6
|
+
*
|
|
7
|
+
* Encoding is handled via encodeURIComponent; callers should not add additional encoding.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createPlantNameQueryParam(plantName: string): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProcosysProject represents a project from the ProCoSys API.
|
|
3
|
+
* This is the canonical type for project data throughout the application.
|
|
4
|
+
*/
|
|
5
|
+
export interface ProcosysProject {
|
|
6
|
+
projectCode: string;
|
|
7
|
+
stidDeliveryCode: number;
|
|
8
|
+
description: string;
|
|
9
|
+
isRevProject: string;
|
|
10
|
+
filter: {
|
|
11
|
+
value: string;
|
|
12
|
+
text: string;
|
|
13
|
+
};
|
|
14
|
+
instCode: string;
|
|
15
|
+
insertedDate: string;
|
|
16
|
+
insertedBy: string;
|
|
17
|
+
updatedDate: string;
|
|
18
|
+
updatedBy: string;
|
|
19
|
+
validFlg: string;
|
|
20
|
+
}
|
package/src/lib/feature/legend/components/pdfMarkers/subComponents/hooks/usePopoverHandler.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LegendDataId, LegendId } from '../../../../types/legendType';
|
|
2
|
-
import { PopoverContent } from './usePopoverHandler.types';
|
|
3
|
-
export declare function usePopoverHandler(): {
|
|
4
|
-
currentPopover: PopoverContent | undefined;
|
|
5
|
-
handleOpenPopover: (itemId: LegendDataId, legendId: LegendId, uniqueIdentifier: string, fetchPopoverContent: () => Promise<ReadonlyArray<React.JSX.Element>>) => Promise<void>;
|
|
6
|
-
handleClosePopover: () => void;
|
|
7
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LegendDataId, LegendId } from '../../../../types/legendType';
|
|
2
|
-
export type RequestPopoverHandler = (itemId: LegendDataId, legendId: LegendId, uniqueIdentifier: string, fetchPopoverContent: () => Promise<ReadonlyArray<React.JSX.Element>>) => void;
|
|
3
|
-
export interface PopoverContent {
|
|
4
|
-
elements: ReadonlyArray<JSX.Element>;
|
|
5
|
-
activeItem: ActiveItem;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* We use active for the icon. Several icons might be active if they have the same tagNo on the PDF, but only 1 of them is open.
|
|
9
|
-
*/
|
|
10
|
-
export interface ActiveItem {
|
|
11
|
-
itemId: LegendDataId;
|
|
12
|
-
legendId: LegendId;
|
|
13
|
-
uniqueIdentifier: string;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { dataAccessLinks } from './dataAccessLinks';
|