@equinor/echo-framework 0.20.5-beta-8 → 0.20.5-beta10

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 (57) hide show
  1. package/index.cjs.js +1 -1
  2. package/package.json +4 -3
  3. package/src/index.d.ts +9 -5
  4. package/src/lib/components/fullScreenButtons/FullScreenChip.d.ts +0 -1
  5. package/src/lib/components/fullScreenButtons/FullScreenModeButton.d.ts +0 -1
  6. package/src/lib/components/fullScreenButtons/FullScreenModeChip.d.ts +5 -0
  7. package/src/lib/components/fullScreenButtons/index.d.ts +1 -1
  8. package/src/lib/components/index.d.ts +1 -1
  9. package/src/lib/components/tagSearchDropDown/index.d.ts +1 -0
  10. package/src/lib/components/tagSearchDropDown/tagSearchDropDown.d.ts +9 -0
  11. package/src/lib/feature/equipment/components/equipmentItemHeader/showEquipmentIn3dButton.d.ts +1 -2
  12. package/src/lib/feature/equipment/types/equipment.d.ts +2 -2
  13. package/src/lib/feature/equipment/utils/equipmentUtils.d.ts +1 -2
  14. package/src/lib/feature/globalSelection/OpenGlobalSelectionIn3DButton.d.ts +9 -0
  15. package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts +19 -4
  16. package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.utils.d.ts +2 -0
  17. package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStoreHelpers.d.ts +10 -0
  18. package/src/lib/feature/globalSelection/hooks/useGlobalSelectionItems.d.ts +2 -0
  19. package/src/lib/feature/globalSelection/index.d.ts +3 -1
  20. package/src/lib/feature/measuringPoint/components/index.d.ts +0 -1
  21. package/src/lib/feature/measuringPoint/index.d.ts +1 -1
  22. package/src/lib/feature/openItemsIn3d/index.d.ts +4 -0
  23. package/src/lib/feature/openItemsIn3d/logic/convertToPlantTagPairs.d.ts +10 -0
  24. package/src/lib/feature/openItemsIn3d/logic/createEcho3dInternalLink.d.ts +11 -0
  25. package/src/lib/feature/openItemsIn3d/logic/openItemsIn3d.utils.d.ts +45 -0
  26. package/src/lib/{components/openIn3d/OpenIn3dWarningDialog.d.ts → feature/openItemsIn3d/openIn3dWarningDialog.d.ts} +2 -2
  27. package/src/lib/feature/openItemsIn3d/openItemsIn3dDialog.d.ts +42 -0
  28. package/src/lib/feature/openItemsIn3d/plantNoSelectionDialog.d.ts +10 -0
  29. package/src/lib/hooks/index.d.ts +1 -0
  30. package/src/lib/hooks/useFetchInstCodeBySapPlantId.d.ts +3 -0
  31. package/src/lib/services/dataLayerPanel/dataLayerPanel.store.d.ts +43 -0
  32. package/src/lib/services/dataLayerPanel/index.d.ts +1 -0
  33. package/src/lib/types/echoHubPlant.d.ts +1 -1
  34. package/src/lib/utils/echopediaWebReactPortal.utils.d.ts +4 -0
  35. package/src/lib/utils/getPdmsPlantCodeForTag.d.ts +6 -0
  36. package/src/lib/utils/index.d.ts +2 -1
  37. package/src/lib/utils/openIn3d/tagLists.d.ts +10 -4
  38. package/src/lib/utils/plantInfo.d.ts +9 -20
  39. package/src/lib/utils/workOrderUtils.d.ts +1 -0
  40. package/src/lib/components/echo3DButton/3dButtonUtils.d.ts +0 -12
  41. package/src/lib/components/echo3DButton/OpenIn3dDropdown.d.ts +0 -11
  42. package/src/lib/components/echo3DButton/echo3DButton.d.ts +0 -18
  43. package/src/lib/components/echo3DButton/echo3DIconButton.d.ts +0 -26
  44. package/src/lib/components/echo3DButton/icons/E3DWebBetaIcon.d.ts +0 -6
  45. package/src/lib/components/echo3DButton/index.d.ts +0 -2
  46. package/src/lib/components/echo3DButton/missingEcho3dAccessDialog.d.ts +0 -8
  47. package/src/lib/components/echo3DButton/plantNotAvailableInfo.d.ts +0 -6
  48. package/src/lib/components/echo3DButton/useGetOpenIn3d.d.ts +0 -5
  49. package/src/lib/components/echo3DButton/useGoToEcho3DWebLink.d.ts +0 -1
  50. package/src/lib/components/fullScreenButtons/FullScreenButton.d.ts +0 -7
  51. package/src/lib/components/openIn3d/OpenIn3dDialogs.d.ts +0 -14
  52. package/src/lib/components/openIn3d/PlantNoSelectionDialog.d.ts +0 -13
  53. package/src/lib/components/openIn3d/index.d.ts +0 -4
  54. package/src/lib/feature/measuringPoint/components/measuringPointDetails/measuringPointDetails.logic.d.ts +0 -2
  55. package/src/lib/utils/tagUtils.d.ts +0 -26
  56. /package/src/lib/{components/openIn3d → feature/openItemsIn3d}/SelectedItemsMenu.d.ts +0 -0
  57. /package/src/lib/{components/openIn3d → feature/openItemsIn3d}/openIn3dMenu.d.ts +0 -0
@@ -1,26 +0,0 @@
1
- import { TagDetailsDto } from '@equinor/echo-search';
2
- import React from 'react';
3
- interface Echo3DIconButtonProps {
4
- instCode: string;
5
- tagDetails?: TagDetailsDto;
6
- tagNo: string;
7
- enabled?: boolean;
8
- openInNewWindow?: boolean;
9
- }
10
- /**
11
- *
12
- * Component for rendering 3D buttons.
13
- * Will render a ghost icon that displays a dropdown upon click with 3D web and 3D app items.
14
- * The items in the dropdown will be enabled/disabled based on plant info - where it is stated if the plant is available for 3D App and/or 3D Web.
15
- * Setting openInNewWindow to true will open 3d web in new tab if 3D web button is clicked.
16
- * Echo 3D app will always open in new tab/open 3D app
17
- * @param {OLDModel3dButtonProps} {
18
- * tagDetails,
19
- * tagNo,
20
- * enabled,
21
- * openInNewWindow
22
- * }
23
- * @return {*}
24
- */
25
- export declare const Echo3DIconButton: React.FC<Echo3DIconButtonProps>;
26
- export {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface E3DWebBetaIconProps {
3
- color: string;
4
- }
5
- declare const E3DWebBetaIcon: React.FC<E3DWebBetaIconProps>;
6
- export default E3DWebBetaIcon;
@@ -1,2 +0,0 @@
1
- export * from './echo3DButton';
2
- export * from './echo3DIconButton';
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface MissingEcho3dAccessDialogProps {
3
- getApplyForAccessUrl: Promise<string>;
4
- isDialogOpen: boolean;
5
- setIsDialogOpen: React.Dispatch<React.SetStateAction<boolean>>;
6
- }
7
- export declare const MissingEcho3dAccessDialog: React.FC<MissingEcho3dAccessDialogProps>;
8
- export default MissingEcho3dAccessDialog;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface PlantNotAvailableInfoProps {
3
- children: React.ReactNode;
4
- }
5
- declare const PlantNotAvailableInfo: React.FC<PlantNotAvailableInfoProps>;
6
- export default PlantNotAvailableInfo;
@@ -1,5 +0,0 @@
1
- import { TagDetailsDto } from '@equinor/echo-search';
2
- export declare const useGetOpenIn3d: (instCode: string, plantIsAvailableIn3d: boolean, plantIsAvailableIn3dWeb: boolean) => {
3
- openIn3dWeb: (openInNewWindow?: boolean, tagDetails?: TagDetailsDto, tagNo?: string) => Promise<void>;
4
- openIn3dApp: (event: React.MouseEvent, tagDetails?: TagDetailsDto) => Promise<void>;
5
- };
@@ -1 +0,0 @@
1
- export declare const useGoToEcho3DWebLink: () => (openInNewWindow: boolean, linkTo: string, paramsString: string) => void;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface FullScreenButtonProps {
3
- active: boolean;
4
- onClick: () => void;
5
- }
6
- export declare const FullScreenButton: React.FC<FullScreenButtonProps>;
7
- export default FullScreenButton;
@@ -1,14 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- interface OpenIn3dDialogsProps {
3
- isOpenIn3dWarningDialogOpen: boolean;
4
- isSelectPlantNoDialogOpen: boolean;
5
- setIsOpenIn3dWarningDialogOpen: Dispatch<React.SetStateAction<boolean>>;
6
- setIsSelectPlantNoDialogOpen: Dispatch<React.SetStateAction<boolean>>;
7
- onOKButtonClicked: () => void;
8
- uniquePlantNos: string[];
9
- tagNoCounts: Record<string, number>;
10
- selectedPlantNo: string | undefined;
11
- setSelectedPlantNo: Dispatch<SetStateAction<string | undefined>>;
12
- }
13
- export declare const OpenIn3dDialogs: React.FC<OpenIn3dDialogsProps>;
14
- export {};
@@ -1,13 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- interface PlantNoSelectionDialogProps {
3
- onOKButtonClicked: () => void;
4
- open: boolean;
5
- uniquePlantNos: string[];
6
- selectedPlantNo: string | undefined;
7
- setSelectedPlantNo: Dispatch<SetStateAction<string | undefined>>;
8
- isSelectPlantNoDialogOpen: boolean;
9
- setIsSelectPlantNoDialogOpen: Dispatch<SetStateAction<boolean>>;
10
- tagNoCounts: Record<string, number>;
11
- }
12
- export declare const PlantNoSelectionDialog: React.FC<PlantNoSelectionDialogProps>;
13
- export {};
@@ -1,4 +0,0 @@
1
- export { OpenIn3dDialogs } from './OpenIn3dDialogs';
2
- export { OpenIn3dWarningDialog } from './OpenIn3dWarningDialog';
3
- export { PlantNoSelectionDialog } from './PlantNoSelectionDialog';
4
- export { SelectedItemsMenu } from './SelectedItemsMenu';
@@ -1,2 +0,0 @@
1
- export declare const getInstCodeForSapPlantId: (sapPlantId: string) => string;
2
- export declare const isNumberInRange: (sapPlantIdStr: string, sapPlantIdRange: string) => boolean;
@@ -1,26 +0,0 @@
1
- import { TagDetailsDto } from '@equinor/echo-search';
2
- /**
3
- * Function for getting the echoUrl based on tag details
4
- * Returns the url if found, builds and returns an url if plantCode and tagNo is found
5
- * Otherwise - returns empty string
6
- * @param {(TagDetailsDto | undefined)} tagDetails
7
- * @return {*} {string}
8
- */
9
- export declare function getEcho3DAppUrlForTag(tagDetails: TagDetailsDto | undefined): Promise<string>;
10
- /**
11
- * Function for getting Plant Code based on Tag Details data
12
- * Returns the plant Code if found, returns empty string otherwise.
13
- * @param {TagDetailsDto} tagDetails
14
- * @returns {*} {string}
15
- */
16
- export declare function getPlantCodeForTag(args: {
17
- plantNo: string;
18
- instCode: string;
19
- }): Promise<string>;
20
- /**
21
- * Function for getting plant project description based on Tag Details
22
- * Returns the plant project description if found, otherwise, return empty string.
23
- * @param {TagDetailsDto} tagDetails
24
- * @returns {*} {string}
25
- */
26
- export declare function getProjectDescriptionForTag(tagDetails: TagDetailsDto): Promise<string>;