@equinor/echo-framework 0.13.2 → 0.14.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 +48 -4
- package/index.css +2890 -0
- package/index.js +70 -0
- package/package.json +25 -126
- package/src/index.d.ts +102 -0
- package/{dist → src/lib}/components/appLinks/AppLinks.d.ts +6 -6
- package/{dist → src/lib}/components/appLinks/applinkUtils.d.ts +2 -2
- package/{dist → src/lib}/components/appLinks/index.d.ts +2 -2
- package/{dist → src/lib}/components/appLinks/linkButton/linkButton.d.ts +7 -7
- package/{dist → src/lib}/components/containers/index.d.ts +1 -1
- package/{dist → src/lib}/components/containers/layouts.d.ts +7 -7
- package/{dist → src/lib}/components/contextualAppLinks/contextualAppLinks.context.d.ts +7 -7
- package/{dist → src/lib}/components/contextualAppLinks/contextualAppLinks.d.ts +9 -9
- package/{dist → src/lib}/components/contextualAppLinks/externalAppsMenu.d.ts +29 -29
- package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/allExternalLinks.d.ts +12 -12
- package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.d.ts +60 -60
- package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToCommApp.d.ts +14 -14
- package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToConditionAdviser.d.ts +15 -15
- package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToMcApp.d.ts +14 -14
- package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToProCoSys.d.ts +14 -14
- package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToSafeX.d.ts +13 -13
- package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToSap.d.ts +18 -18
- package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToSemiDoc.d.ts +17 -17
- package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToStid.d.ts +14 -14
- package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToTr2000.d.ts +17 -17
- package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToTrendingApp.d.ts +15 -15
- package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/iconButtonSpinner.d.ts +18 -18
- package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/index.d.ts +10 -10
- package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/trainingCenterForValvesMenu.d.ts +7 -7
- package/{dist → src/lib}/components/contextualAppLinks/hooks/useContextualAppLinks.d.ts +18 -18
- package/{dist → src/lib}/components/contextualAppLinks/hooks/useContextualAppLinksContext.d.ts +4 -4
- package/{dist → src/lib}/components/contextualAppLinks/index.d.ts +13 -13
- package/{dist → src/lib}/components/contextualAppLinks/internalAppLinks.d.ts +24 -24
- package/{dist → src/lib}/components/contextualAppLinks/linkButton.d.ts +19 -19
- package/{dist → src/lib}/components/echo3DButton/3dButtonUtils.d.ts +12 -12
- package/{dist → src/lib}/components/echo3DButton/OpenIn3dDropdown.d.ts +11 -11
- package/{dist → src/lib}/components/echo3DButton/echo3DButton.d.ts +18 -18
- package/{dist → src/lib}/components/echo3DButton/echo3DIconButton.d.ts +26 -26
- package/{dist → src/lib}/components/echo3DButton/icons/E3DWebBetaIcon.d.ts +6 -6
- package/{dist → src/lib}/components/echo3DButton/index.d.ts +2 -2
- package/{dist → src/lib}/components/echo3DButton/missingEcho3dAccessDialog.d.ts +8 -8
- package/{dist → src/lib}/components/echo3DButton/plantNotAvailableInfo.d.ts +6 -6
- package/{dist → src/lib}/components/echo3DButton/useGetOpenIn3d.d.ts +5 -5
- package/{dist → src/lib}/components/echo3DButton/useGoToEcho3DWebLink.d.ts +1 -1
- package/{dist → src/lib}/components/echoLogo/echoLogo.d.ts +6 -6
- package/{dist → src/lib}/components/echoLogo/index.d.ts +1 -1
- package/{dist → src/lib}/components/errorBoundary/components/chunkLoadErrorMessage.d.ts +3 -3
- package/{dist → src/lib}/components/errorBoundary/components/errorBoundaryBaseMessage.d.ts +7 -7
- package/{dist → src/lib}/components/errorBoundary/components/notificationCardWithLogo.d.ts +13 -13
- package/{dist → src/lib}/components/errorBoundary/errorBoundary.d.ts +15 -15
- package/{dist → src/lib}/components/errorBoundary/index.d.ts +1 -1
- package/{dist → src/lib}/components/externalLinkButton/externalLinkButton.d.ts +45 -45
- package/{dist → src/lib}/components/footer/footer.d.ts +10 -10
- package/{dist → src/lib}/components/footer/index.d.ts +1 -1
- package/{dist → src/lib}/components/fullScreenButtons/FullScreenButton.d.ts +7 -7
- package/{dist → src/lib}/components/fullScreenButtons/FullScreenChip.d.ts +8 -8
- package/{dist → src/lib}/components/fullScreenButtons/FullScreenModeButtons.d.ts +7 -7
- package/{dist → src/lib}/components/fullScreenButtons/index.d.ts +3 -3
- package/src/lib/components/homePage/HomePage.d.ts +1 -0
- package/{dist → src/lib}/components/homePage/index.d.ts +1 -1
- package/{dist → src/lib}/components/index.d.ts +23 -25
- package/{dist → src/lib}/components/lazyLoading/appLoadingIndicator.d.ts +6 -6
- package/{dist → src/lib}/components/lazyLoading/index.d.ts +1 -1
- package/{dist → src/lib}/components/lazyLoading/lazyLoadedAppWrapper.d.ts +14 -14
- package/{dist → src/lib}/components/mediator/index.d.ts +1 -1
- package/{dist → src/lib}/components/mediator/mediator.d.ts +6 -6
- package/{dist → src/lib}/components/pageMenu/Navigation/applicationList.d.ts +3 -3
- package/{dist → src/lib}/components/pageMenu/defaultAccordionItem.d.ts +12 -12
- package/{dist → src/lib}/components/pageMenu/index.d.ts +3 -3
- package/{dist → src/lib}/components/pageMenu/pageMenu.d.ts +15 -15
- package/{dist → src/lib}/components/pageMenu/pageMenuDrawerItem.d.ts +16 -16
- package/{dist → src/lib}/components/pageMenu/settings/asset.d.ts +6 -6
- package/{dist → src/lib}/components/pageMenu/settings/profile.d.ts +6 -6
- package/{dist → src/lib}/components/pageMenu/settings/settings.d.ts +7 -7
- package/{dist → src/lib}/components/pageMenu/version/version.d.ts +3 -3
- package/{dist → src/lib}/components/panel/corePanelIcon.d.ts +6 -6
- package/{dist → src/lib}/components/panel/corePanelLeft.d.ts +3 -3
- package/{dist → src/lib}/components/panel/corePanelRight.d.ts +3 -3
- package/{dist → src/lib}/components/panel/index.d.ts +2 -2
- package/{dist → src/lib}/components/panelButton/index.d.ts +1 -1
- package/{dist → src/lib}/components/panelButton/panelButton.d.ts +19 -19
- package/{dist → src/lib}/components/plantSelector/index.d.ts +1 -1
- package/{dist → src/lib}/components/plantSelector/plantSelector.d.ts +18 -18
- package/{dist → src/lib}/components/prepview/Prepview.d.ts +16 -16
- package/{dist → src/lib}/components/prepview/api/api.d.ts +7 -7
- package/{dist → src/lib}/components/prepview/api/attachment.d.ts +2 -2
- package/{dist → src/lib}/components/prepview/api/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/api/resources.d.ts +6 -6
- package/{dist → src/lib}/components/prepview/common/access/handler/StatusHandler.d.ts +8 -8
- package/{dist → src/lib}/components/prepview/common/access/handler/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/common/access/index.d.ts +2 -2
- package/{dist → src/lib}/components/prepview/common/access/request/RequestAccess.d.ts +6 -6
- package/{dist → src/lib}/components/prepview/common/access/request/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/common/additionalInformation/AdditionalDetails.d.ts +9 -10
- package/{dist → src/lib}/components/prepview/common/additionalInformation/tabsPanels/TabsPanels.d.ts +14 -14
- package/{dist → src/lib}/components/prepview/common/additionalInformation/tabsPanels/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/common/contentPicker/ContentPicker.d.ts +8 -8
- package/{dist → src/lib}/components/prepview/common/contentPicker/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/common/details/accordion/DetailsAccordion.d.ts +8 -8
- package/{dist → src/lib}/components/prepview/common/details/accordion/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/common/details/index.d.ts +3 -3
- package/src/lib/components/prepview/common/details/loader/DetailsLoader.d.ts +2 -0
- package/{dist → src/lib}/components/prepview/common/details/loader/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/common/details/panel/EmptyDetailsPanel.d.ts +5 -6
- package/{dist → src/lib}/components/prepview/common/details/panel/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/common/fileSizeDisplay/FileSizeDisplay.d.ts +10 -11
- package/{dist → src/lib}/components/prepview/common/fileSizeDisplay/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/common/index.d.ts +6 -6
- package/{dist → src/lib}/components/prepview/common/info/block/InfoBlock.d.ts +9 -9
- package/{dist → src/lib}/components/prepview/common/info/block/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/common/info/index.d.ts +3 -3
- package/src/lib/components/prepview/common/info/list/InfoBlockList.d.ts +5 -0
- package/{dist → src/lib}/components/prepview/common/info/list/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/common/info/section/InfoSection.d.ts +6 -6
- package/{dist → src/lib}/components/prepview/common/info/section/index.d.ts +2 -2
- package/{dist → src/lib}/components/prepview/common/info/section/longText/LongTextSection.d.ts +7 -8
- package/{dist → src/lib}/components/prepview/common/info/section/longText/index.d.ts +1 -1
- package/src/lib/components/prepview/common/link/Link.d.ts +6 -0
- package/{dist → src/lib}/components/prepview/context/PrepviewContext.d.ts +15 -15
- package/{dist → src/lib}/components/prepview/hooks/index.d.ts +4 -4
- package/{dist → src/lib}/components/prepview/hooks/useFetch.d.ts +4 -4
- package/{dist → src/lib}/components/prepview/hooks/useIsMobile.d.ts +5 -5
- package/{dist → src/lib}/components/prepview/hooks/useOnClickDownload.d.ts +9 -9
- package/{dist → src/lib}/components/prepview/hooks/useSetActiveSearchItem.d.ts +10 -10
- package/{dist → src/lib}/components/prepview/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/notification/details/DetailsNotification.d.ts +9 -9
- package/{dist → src/lib}/components/prepview/notification/details/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/notification/header/Header.d.ts +7 -7
- package/{dist → src/lib}/components/prepview/notification/header/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/notification/index.d.ts +8 -8
- package/{dist → src/lib}/components/prepview/panels/attachments/Attachments.d.ts +8 -9
- package/{dist → src/lib}/components/prepview/panels/attachments/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/panels/history/TagHistory.d.ts +9 -9
- package/{dist → src/lib}/components/prepview/panels/history/group/TagHistoryGroup.d.ts +10 -10
- package/{dist → src/lib}/components/prepview/panels/history/group/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/panels/history/horizontalView/HorizontalTagHistory.d.ts +9 -9
- package/{dist → src/lib}/components/prepview/panels/history/horizontalView/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/panels/history/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/panels/history/items/Items.d.ts +11 -11
- package/{dist → src/lib}/components/prepview/panels/history/items/NotificationItem.d.ts +7 -7
- package/{dist → src/lib}/components/prepview/panels/history/items/PunchItem.d.ts +7 -7
- package/{dist → src/lib}/components/prepview/panels/history/items/WorkOrderItem.d.ts +7 -7
- package/{dist → src/lib}/components/prepview/panels/history/items/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/panels/index.d.ts +7 -7
- package/{dist → src/lib}/components/prepview/panels/objects/Objects.d.ts +6 -7
- package/{dist → src/lib}/components/prepview/panels/objects/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/panels/operations/Operations.d.ts +6 -7
- package/{dist → src/lib}/components/prepview/panels/operations/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/panels/risk/Risk.d.ts +6 -7
- package/{dist → src/lib}/components/prepview/panels/risk/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/panels/risk/trafficLight/TrafficLight.d.ts +7 -7
- package/{dist → src/lib}/components/prepview/panels/risk/trafficLight/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/panels/tagDocumentRefs/HorizontalDocumentGroups.d.ts +7 -8
- package/{dist → src/lib}/components/prepview/panels/tagDocumentRefs/TagDocumentGroup.d.ts +8 -9
- package/{dist → src/lib}/components/prepview/panels/tagDocumentRefs/TagDocumentItem.d.ts +7 -8
- package/{dist → src/lib}/components/prepview/panels/tagDocumentRefs/TagDocumentRefs.d.ts +7 -8
- package/{dist → src/lib}/components/prepview/panels/tagDocumentRefs/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/panels/tagInformation/TagInformation.d.ts +10 -11
- package/{dist → src/lib}/components/prepview/panels/tagInformation/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/punch/details/Details.d.ts +9 -9
- package/{dist → src/lib}/components/prepview/punch/details/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/punch/header/Header.d.ts +7 -7
- package/{dist → src/lib}/components/prepview/punch/header/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/punch/index.d.ts +8 -8
- package/{dist → src/lib}/components/prepview/types/attachment.d.ts +7 -7
- package/{dist → src/lib}/components/prepview/types/common.d.ts +50 -50
- package/{dist → src/lib}/components/prepview/types/document.d.ts +13 -13
- package/{dist → src/lib}/components/prepview/types/index.d.ts +9 -9
- package/{dist → src/lib}/components/prepview/types/notification.d.ts +68 -68
- package/{dist → src/lib}/components/prepview/types/operation.d.ts +13 -13
- package/{dist → src/lib}/components/prepview/types/punch.d.ts +27 -27
- package/{dist → src/lib}/components/prepview/types/safety.d.ts +21 -21
- package/{dist → src/lib}/components/prepview/types/tag.d.ts +24 -24
- package/{dist → src/lib}/components/prepview/types/workorder.d.ts +83 -83
- package/{dist → src/lib}/components/prepview/utils/date.d.ts +5 -5
- package/{dist → src/lib}/components/prepview/utils/documents.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/utils/dom.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/utils/enums/documents.d.ts +14 -14
- package/{dist → src/lib}/components/prepview/utils/enums/index.d.ts +2 -2
- package/{dist → src/lib}/components/prepview/utils/enums/tagHistoryItem.d.ts +5 -5
- package/{dist → src/lib}/components/prepview/utils/index.d.ts +10 -10
- package/{dist → src/lib}/components/prepview/utils/logger.d.ts +71 -71
- package/{dist → src/lib}/components/prepview/utils/notification.d.ts +3 -3
- package/{dist → src/lib}/components/prepview/utils/object.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/utils/punch.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/utils/string.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/utils/url.d.ts +9 -9
- package/{dist → src/lib}/components/prepview/utils/workorder.d.ts +2 -2
- package/{dist → src/lib}/components/prepview/workorder/details/DetailsWorkOrder.d.ts +9 -9
- package/{dist → src/lib}/components/prepview/workorder/details/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/workorder/header/WorkOrderHeader.d.ts +8 -8
- package/{dist → src/lib}/components/prepview/workorder/header/index.d.ts +1 -1
- package/{dist → src/lib}/components/prepview/workorder/index.d.ts +9 -9
- package/{dist → src/lib}/components/projectSelector/ProcosysProjectSelector.d.ts +17 -17
- package/{dist → src/lib}/components/projectSelector/index.d.ts +1 -1
- package/{dist → src/lib}/components/realTimeData/RealTimePopoverButton.d.ts +18 -18
- package/{dist → src/lib}/components/realTimeData/components/IMSDropdown/RealTimeIMSDropdown.d.ts +8 -8
- package/{dist → src/lib}/components/realTimeData/components/IMSDropdown/index.d.ts +1 -1
- package/{dist → src/lib}/components/realTimeData/components/connectorForIMSTag/RealTimeConnectorForIMSTag.d.ts +7 -7
- package/{dist → src/lib}/components/realTimeData/components/connectorForIMSTag/index.d.ts +1 -1
- package/{dist → src/lib}/components/realTimeData/components/contextButton/RealTimeContextButton.d.ts +7 -7
- package/{dist → src/lib}/components/realTimeData/components/contextButton/index.d.ts +1 -1
- package/{dist → src/lib}/components/realTimeData/components/contextPopover/Popover.d.ts +9 -9
- package/{dist → src/lib}/components/realTimeData/components/contextPopover/index.d.ts +1 -1
- package/{dist → src/lib}/components/realTimeData/components/index.d.ts +4 -4
- package/{dist → src/lib}/components/realTimeData/hooks/index.d.ts +3 -3
- package/{dist → src/lib}/components/realTimeData/hooks/useRealTimeHub.d.ts +13 -13
- package/{dist → src/lib}/components/realTimeData/hooks/useSignalR.d.ts +10 -10
- package/{dist → src/lib}/components/realTimeData/hooks/useSignalRListener.d.ts +4 -4
- package/{dist → src/lib}/components/realTimeData/index.d.ts +1 -1
- package/{dist → src/lib}/components/router/echoRoute.d.ts +11 -11
- package/{dist → src/lib}/components/router/echoRouter.d.ts +6 -6
- package/{dist → src/lib}/components/router/echoWrapper.d.ts +7 -7
- package/{dist → src/lib}/components/router/index.d.ts +3 -3
- package/{dist → src/lib}/components/router/routes.d.ts +5 -5
- package/{dist → src/lib}/components/searchMenu/index.d.ts +1 -1
- package/{dist → src/lib}/components/searchMenu/searchMenu.d.ts +3 -3
- package/{dist → src/lib}/components/tagNumber/index.d.ts +1 -1
- package/{dist → src/lib}/components/tagNumber/tagNumber.d.ts +8 -8
- package/{dist → src/lib}/components/toaster/index.d.ts +2 -2
- package/{dist → src/lib}/components/toaster/toaster.d.ts +10 -10
- package/{dist → src/lib}/components/toaster/toasters.d.ts +3 -3
- package/{dist → src/lib}/coreApplication/BarComponents/TopBarContent.d.ts +5 -5
- package/{dist → src/lib}/coreApplication/EchoBarComponent.d.ts +10 -10
- package/{dist → src/lib}/coreApplication/EchoContent.d.ts +8 -8
- package/{dist → src/lib}/coreApplication/EchoContentPanels.d.ts +9 -9
- package/{dist → src/lib}/coreApplication/EchoEventHandler.d.ts +11 -11
- package/{dist → src/lib}/coreApplication/EchoToolBar.d.ts +19 -20
- package/{dist → src/lib}/coreApplication/EchoTopBar.d.ts +4 -4
- package/{dist → src/lib}/coreApplication/EchoUserInterfaceStore.d.ts +21 -21
- package/{dist → src/lib}/coreApplication/index.d.ts +7 -7
- package/{dist → src/lib}/hooks/hookLibrary.d.ts +49 -49
- package/{dist → src/lib}/hooks/index.d.ts +8 -8
- package/{dist → src/lib}/hooks/useEchoHistory.d.ts +11 -11
- package/{dist → src/lib}/hooks/useHas3dAccess.d.ts +1 -1
- package/{dist → src/lib}/hooks/useIsCompactLayout.d.ts +5 -5
- package/{dist → src/lib}/hooks/useIsFullScreenModeEnabled.d.ts +1 -1
- package/{dist → src/lib}/hooks/useLongPress.d.ts +6 -6
- package/{dist → src/lib}/hooks/usePlantAvailableIn3d.d.ts +1 -1
- package/{dist → src/lib}/hooks/usePlantAvailableIn3dWeb.d.ts +1 -1
- package/{dist → src/lib}/hooks/useScreenOrientation.d.ts +5 -5
- package/{dist → src/lib}/hooks/useScreenValues.d.ts +13 -13
- package/{dist → src/lib}/hooks/useSemi.d.ts +21 -21
- package/{dist → src/lib}/hooks/useTagDetails.d.ts +20 -20
- package/{dist → src/lib}/hooks/useWindowSize.d.ts +8 -8
- package/{dist → src/lib}/icons/edsIons.d.ts +1 -1
- package/{dist → src/lib}/icons/equinor-logo.d.ts +2 -2
- package/{dist → src/lib}/icons/logo_ee.d.ts +3 -3
- package/{dist → src/lib}/icons/search.d.ts +3 -3
- package/{dist → src/lib}/services/api/api-manager.d.ts +19 -19
- package/{dist → src/lib}/services/api/api-plantinfo.d.ts +5 -5
- package/{dist → src/lib}/services/api/api-plants.d.ts +7 -7
- package/{dist → src/lib}/services/api/api-realtimedata.d.ts +2 -2
- package/{dist → src/lib}/services/api/api-tag-details.d.ts +17 -17
- package/{dist → src/lib}/services/api/api-tag-list-for-3D.d.ts +26 -26
- package/{dist → src/lib}/services/api/api-tags.d.ts +17 -17
- package/{dist → src/lib}/services/api/api-version.d.ts +2 -2
- package/{dist → src/lib}/services/api/index.d.ts +3 -3
- package/{dist → src/lib}/services/componentRegistry/componentRegistry.d.ts +34 -34
- package/{dist → src/lib}/services/deviceInformation/deepDeviceInfo.d.ts +41 -41
- package/{dist → src/lib}/services/deviceInformation/deviceInfo.d.ts +45 -45
- package/{dist → src/lib}/services/echopediaAnalyticsModule/echopediaAnalyticsModule.d.ts +1 -1
- package/{dist → src/lib}/services/eventCallbacks/plantChanged.d.ts +9 -9
- package/{dist → src/lib}/services/eventHubActions/index.d.ts +1 -1
- package/{dist → src/lib}/services/eventHubActions/toastActions.d.ts +6 -6
- package/{dist → src/lib}/services/searchItemDetails/searchItemDetails.store.d.ts +26 -26
- package/{dist → src/lib}/services/searchItemDetails/searchItemDetailsContainer.d.ts +6 -6
- package/{dist → src/lib}/theme/themeConst.d.ts +51 -51
- package/{dist → src/lib}/types/api-echohub.d.ts +36 -36
- package/{dist → src/lib}/types/api-proCoSysTagResponse.d.ts +8 -8
- package/{dist → src/lib}/types/device.d.ts +53 -53
- package/{dist → src/lib}/types/echoHubPlant.d.ts +11 -11
- package/{dist → src/lib}/types/eventTypes/fullScreenModeEvent.d.ts +3 -3
- package/{dist → src/lib}/types/eventTypes/index.d.ts +5 -5
- package/{dist → src/lib}/types/eventTypes/legendEvent.d.ts +4 -4
- package/{dist → src/lib}/types/eventTypes/plantEvent.d.ts +5 -5
- package/{dist → src/lib}/types/eventTypes/searchDetailsContainerEvents.d.ts +3 -3
- package/{dist → src/lib}/types/eventTypes/toasterEvent.d.ts +5 -5
- package/{dist → src/lib}/types/extensions.d.ts +7 -7
- package/{dist → src/lib}/types/hookLibrary.d.ts +20 -20
- package/{dist → src/lib}/types/legend.d.ts +45 -45
- package/{dist → src/lib}/types/modelPermissions.d.ts +4 -4
- package/{dist → src/lib}/types/pingableSources.d.ts +4 -4
- package/{dist → src/lib}/types/realtimedata.d.ts +18 -18
- package/{dist → src/lib}/types/toaster.d.ts +7 -7
- package/{dist → src/lib}/types/toasterMessage.d.ts +5 -5
- package/{dist → src/lib}/utils/arrayUtils.d.ts +8 -8
- package/{dist → src/lib}/utils/copyText.d.ts +2 -2
- package/{dist → src/lib}/utils/eventHandlerUtils.d.ts +1 -1
- package/{dist → src/lib}/utils/index.d.ts +3 -3
- package/{dist → src/lib}/utils/legendUtils.d.ts +18 -18
- package/{dist → src/lib}/utils/navigationUtils.d.ts +7 -7
- package/{dist → src/lib}/utils/plantInfo.d.ts +98 -98
- package/{dist → src/lib}/utils/plantsDataUtils.d.ts +9 -9
- package/{dist → src/lib}/utils/projectSelectorUtils.d.ts +1 -1
- package/{dist → src/lib}/utils/searchUtil.d.ts +1 -1
- package/{dist → src/lib}/utils/startup.d.ts +6 -6
- package/{dist → src/lib}/utils/tagUtils.d.ts +23 -23
- package/{dist → src/lib}/utils/taskCache.d.ts +23 -23
- package/LICENSE +0 -21
- package/dist/__tests__/3dButtonUtils.test.d.ts +0 -1
- package/dist/__tests__/eventHandlerUtils.test.d.ts +0 -1
- package/dist/__tests__/plantInfoSetup.d.ts +0 -2
- package/dist/__tests__/plantInfoUtils.test.d.ts +0 -1
- package/dist/__tests__/prepviewUtils.test.d.ts +0 -1
- package/dist/__tests__/projectSelectorUtils.test.d.ts +0 -1
- package/dist/__tests__/realTimeDataHooks.test.d.ts +0 -1
- package/dist/__tests__/realTimeDataUtils.test.d.ts +0 -1
- package/dist/components/appLinks/applinkUtils.test.d.ts +0 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.test.d.ts +0 -1
- package/dist/components/contextualAppLinks/hooks/useContextualAppLinks.test.d.ts +0 -1
- package/dist/components/contextualAppLinks/hooks/useContextualAppLinksContext.test.d.ts +0 -1
- package/dist/components/homePage/HomePage.d.ts +0 -2
- package/dist/components/prepview/common/details/loader/DetailsLoader.d.ts +0 -3
- package/dist/components/prepview/common/info/list/InfoBlockList.d.ts +0 -6
- package/dist/components/prepview/common/link/Link.d.ts +0 -7
- package/dist/hooks/useLongPress.test.d.ts +0 -1
- package/dist/hooks/useSemi.test.d.ts +0 -1
- package/dist/hooks/useTagDetails.test.d.ts +0 -1
- package/dist/index.css +0 -1
- package/dist/index.d.ts +0 -102
- package/dist/index.js +0 -43
- package/dist/services/api/api-tag-details.test.d.ts +0 -1
- package/dist/services/api/api-tag-list-for-3D.test.d.ts +0 -1
- package/dist/services/api/api-tags.test.d.ts +0 -1
- package/dist/services/componentRegistry/componentRegistry.test.d.ts +0 -1
- package/dist/services/searchItemDetails/searchItemDetails.store.test.d.ts +0 -1
- package/dist/setupTests.d.ts +0 -1
- package/dist/utils/arrayUtils.test.d.ts +0 -1
- package/dist/utils/copyText.test.d.ts +0 -1
- package/dist/utils/legendUtils.test.d.ts +0 -1
- package/dist/utils/navigationUtils.test.d.ts +0 -1
- package/dist/utils/plantInfo.test.d.ts +0 -1
- package/dist/utils/tagUtils.test.d.ts +0 -1
- package/dist/utils/taskCache.test.d.ts +0 -1
- /package/{dist/1bd97dd2170d0f64.svg → 1bd97dd2170d0f64.svg} +0 -0
- /package/{dist/47deeba42768c5d1.svg → 47deeba42768c5d1.svg} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './navigationUtils';
|
|
2
|
-
export * from './plantInfo';
|
|
3
|
-
export * from './searchUtil';
|
|
1
|
+
export * from './navigationUtils';
|
|
2
|
+
export * from './plantInfo';
|
|
3
|
+
export * from './searchUtil';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { LegendStatus, LegendType } from '../types/legend';
|
|
2
|
-
/**
|
|
3
|
-
* Get the right status color for a given tag status
|
|
4
|
-
* @param {LegendStatus} tagStatus
|
|
5
|
-
* @returns {string} The mapped css color variable name
|
|
6
|
-
*/
|
|
7
|
-
export declare function getLegendStatusColor(tagStatus?: LegendStatus | string): string;
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated use toLegendStatusOrString instead
|
|
10
|
-
*/
|
|
11
|
-
export declare function legendTypeToLegendStatus(legendType: LegendType, status: string): string | LegendStatus;
|
|
12
|
-
/**
|
|
13
|
-
* Returns the matching legend status for a given string, otherwise return original string.
|
|
14
|
-
* @param status {string} the status to be matched with LegendStatus
|
|
15
|
-
* @returns {LegendStatus | string}
|
|
16
|
-
*/
|
|
17
|
-
export declare function toLegendStatusOrString(status: string): LegendStatus | string;
|
|
18
|
-
export declare function valueToEnum(value: string | undefined | null, enumType: typeof LegendStatus): LegendStatus;
|
|
1
|
+
import { LegendStatus, LegendType } from '../types/legend';
|
|
2
|
+
/**
|
|
3
|
+
* Get the right status color for a given tag status
|
|
4
|
+
* @param {LegendStatus} tagStatus
|
|
5
|
+
* @returns {string} The mapped css color variable name
|
|
6
|
+
*/
|
|
7
|
+
export declare function getLegendStatusColor(tagStatus?: LegendStatus | string): string;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated use toLegendStatusOrString instead
|
|
10
|
+
*/
|
|
11
|
+
export declare function legendTypeToLegendStatus(legendType: LegendType, status: string): string | LegendStatus;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the matching legend status for a given string, otherwise return original string.
|
|
14
|
+
* @param status {string} the status to be matched with LegendStatus
|
|
15
|
+
* @returns {LegendStatus | string}
|
|
16
|
+
*/
|
|
17
|
+
export declare function toLegendStatusOrString(status: string): LegendStatus | string;
|
|
18
|
+
export declare function valueToEnum(value: string | undefined | null, enumType: typeof LegendStatus): LegendStatus;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Helper function to execute a redirection to an outer source.
|
|
3
|
-
*
|
|
4
|
-
* @param {string} link Link to navigate to.
|
|
5
|
-
* @param {boolean} redirect Set this to 'true' to load the given url to navigate to in the current tab / window.
|
|
6
|
-
*/
|
|
7
|
-
export declare const goToExternalLink: (link: string, redirect?: boolean) => void;
|
|
1
|
+
/**
|
|
2
|
+
* Helper function to execute a redirection to an outer source.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} link Link to navigate to.
|
|
5
|
+
* @param {boolean} redirect Set this to 'true' to load the given url to navigate to in the current tab / window.
|
|
6
|
+
*/
|
|
7
|
+
export declare const goToExternalLink: (link: string, redirect?: boolean) => void;
|
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
import { EchoHubPlant } from '../types/echoHubPlant';
|
|
2
|
-
/**
|
|
3
|
-
* Method for setting echo hub plant information in local storage under the key echoHubPlantInfo
|
|
4
|
-
*
|
|
5
|
-
* @param {EchoHubPlant[]} plants list of plant information to add to local storage
|
|
6
|
-
*/
|
|
7
|
-
export declare function setPlantInfo(plants: EchoHubPlant[]): void;
|
|
8
|
-
/**
|
|
9
|
-
* Method for getting echo hub plant information from local storage.
|
|
10
|
-
* If plant information is not in local storage, then this method will try to fetch the information
|
|
11
|
-
* from the api and update local storage if the api call was a success
|
|
12
|
-
* @export
|
|
13
|
-
* @return {*} {Promise<EchoHubPlant[]>} List of echo hub plant information
|
|
14
|
-
*/
|
|
15
|
-
export declare function getCachedPlantInfo(): Promise<EchoHubPlant[]>;
|
|
16
|
-
/**
|
|
17
|
-
* Fetches plant information for a given installation code from the api
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @param {string} instCode
|
|
21
|
-
* @return {*} {Promise<EchoHubPlant[]>} list of plant information for a given installation code
|
|
22
|
-
*/
|
|
23
|
-
export declare function getPlantsOnInstallation(instCode: string): Promise<EchoHubPlant[]>;
|
|
24
|
-
/**
|
|
25
|
-
* Fetches all plant information for from the api
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @return {*} {Promise<EchoHubPlant[]>} list of plant information for a given installation code
|
|
29
|
-
*/
|
|
30
|
-
export declare function getAllPlants(): Promise<EchoHubPlant[]>;
|
|
31
|
-
/**
|
|
32
|
-
* Filters out a single plant information for a installation code from a lost of plant information
|
|
33
|
-
*
|
|
34
|
-
* @export
|
|
35
|
-
* @param {EchoHubPlant[]} plantInfo list of plant information to filter from
|
|
36
|
-
* @param {string} instCode installation code to filter list with
|
|
37
|
-
* @param {string} [plantIdentificator] alternative way of filtering the provided plant information
|
|
38
|
-
* @return {*} {(EchoHubPlant | null)} Returns a single plant information or null if no match was found
|
|
39
|
-
*/
|
|
40
|
-
export declare function getPlant(plantInfo: EchoHubPlant[], instCode: string, plantIdentificator?: string): EchoHubPlant | null;
|
|
41
|
-
/**
|
|
42
|
-
* Gets plant information from a given sap id
|
|
43
|
-
*
|
|
44
|
-
* @export
|
|
45
|
-
* @param {string} sapId Sap id to look for
|
|
46
|
-
* @return {*} {(Promise<EchoHubPlant | null>)} Returns a single plant information or null if no match was found
|
|
47
|
-
*/
|
|
48
|
-
export declare function getPlantBySapId(sapId: string): Promise<EchoHubPlant | null>;
|
|
49
|
-
/**
|
|
50
|
-
* Gets all plant codes for a given installation code
|
|
51
|
-
* @export
|
|
52
|
-
* @param {string} instCode installation code to look for
|
|
53
|
-
* @return {*} {Promise<string[]>} list of plant codes for the given installation
|
|
54
|
-
*/
|
|
55
|
-
export declare function getPlantCodesOnInstallation(instCode: string): Promise<string[]>;
|
|
56
|
-
/**
|
|
57
|
-
* Method for checking a users access to a given installation
|
|
58
|
-
*
|
|
59
|
-
* @export
|
|
60
|
-
* @param {string} instCode installation code to check access for
|
|
61
|
-
* @return {*} {Promise<boolean>} returns whether the user has access to that given installation
|
|
62
|
-
*/
|
|
63
|
-
export declare function check3dPermissionOnInstallation(instCode: string): Promise<boolean>;
|
|
64
|
-
/**
|
|
65
|
-
* Method for checking 3d access for a given instCode or plantCode, if plantCode in provided then instCode is ignored
|
|
66
|
-
*
|
|
67
|
-
* @export
|
|
68
|
-
* @param {string} instCode Installation code to check access on
|
|
69
|
-
* @param {string} [plantCode] Plant code to check access on, installation code is ignored if plant code is provided
|
|
70
|
-
* @return {*} {Promise<boolean>} Whether a user has access to a plant or installation
|
|
71
|
-
*/
|
|
72
|
-
export declare function check3dAccessForInstCodeOrPlantCode(instCode: string, plantCode?: string): Promise<boolean>;
|
|
73
|
-
/**
|
|
74
|
-
* Method for checking a users access to a given plant
|
|
75
|
-
*
|
|
76
|
-
* @export
|
|
77
|
-
* @param {string} plantCode plant code to check access to
|
|
78
|
-
* @return {*} {Promise<boolean>} returns whether the user has access to that given plant
|
|
79
|
-
*/
|
|
80
|
-
export declare function check3dPermissionForPlantCode(plantCode: string): Promise<boolean>;
|
|
81
|
-
/**
|
|
82
|
-
* Method to check if a given installation and plant is available in Echo 3d
|
|
83
|
-
*
|
|
84
|
-
* @export
|
|
85
|
-
* @param {string} instCode Installation to check access to
|
|
86
|
-
* @param {string} [plantCode] Plant to check access to
|
|
87
|
-
* @return {*} {Promise<boolean>} returns whether the user has access to that given plant
|
|
88
|
-
*/
|
|
89
|
-
export declare function checkPlantAvailableIn3d(instCode: string, plantCode?: string): Promise<boolean>;
|
|
90
|
-
/**
|
|
91
|
-
* Method to check if a given installation and plant is available in Echo 3d web
|
|
92
|
-
*
|
|
93
|
-
* @export
|
|
94
|
-
* @param {string} instCode Installation to check access to
|
|
95
|
-
* @param {string} [plantCode] Plant to check access to
|
|
96
|
-
* @return {*} {Promise<boolean>} returns whether the user has access to that given plant
|
|
97
|
-
*/
|
|
98
|
-
export declare function checkPlantAvailableIn3dWeb(instCode: string, plantCode?: string): Promise<boolean>;
|
|
1
|
+
import { EchoHubPlant } from '../types/echoHubPlant';
|
|
2
|
+
/**
|
|
3
|
+
* Method for setting echo hub plant information in local storage under the key echoHubPlantInfo
|
|
4
|
+
*
|
|
5
|
+
* @param {EchoHubPlant[]} plants list of plant information to add to local storage
|
|
6
|
+
*/
|
|
7
|
+
export declare function setPlantInfo(plants: EchoHubPlant[]): void;
|
|
8
|
+
/**
|
|
9
|
+
* Method for getting echo hub plant information from local storage.
|
|
10
|
+
* If plant information is not in local storage, then this method will try to fetch the information
|
|
11
|
+
* from the api and update local storage if the api call was a success
|
|
12
|
+
* @export
|
|
13
|
+
* @return {*} {Promise<EchoHubPlant[]>} List of echo hub plant information
|
|
14
|
+
*/
|
|
15
|
+
export declare function getCachedPlantInfo(): Promise<EchoHubPlant[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Fetches plant information for a given installation code from the api
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @param {string} instCode
|
|
21
|
+
* @return {*} {Promise<EchoHubPlant[]>} list of plant information for a given installation code
|
|
22
|
+
*/
|
|
23
|
+
export declare function getPlantsOnInstallation(instCode: string): Promise<EchoHubPlant[]>;
|
|
24
|
+
/**
|
|
25
|
+
* Fetches all plant information for from the api
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @return {*} {Promise<EchoHubPlant[]>} list of plant information for a given installation code
|
|
29
|
+
*/
|
|
30
|
+
export declare function getAllPlants(): Promise<EchoHubPlant[]>;
|
|
31
|
+
/**
|
|
32
|
+
* Filters out a single plant information for a installation code from a lost of plant information
|
|
33
|
+
*
|
|
34
|
+
* @export
|
|
35
|
+
* @param {EchoHubPlant[]} plantInfo list of plant information to filter from
|
|
36
|
+
* @param {string} instCode installation code to filter list with
|
|
37
|
+
* @param {string} [plantIdentificator] alternative way of filtering the provided plant information
|
|
38
|
+
* @return {*} {(EchoHubPlant | null)} Returns a single plant information or null if no match was found
|
|
39
|
+
*/
|
|
40
|
+
export declare function getPlant(plantInfo: EchoHubPlant[], instCode: string, plantIdentificator?: string): EchoHubPlant | null;
|
|
41
|
+
/**
|
|
42
|
+
* Gets plant information from a given sap id
|
|
43
|
+
*
|
|
44
|
+
* @export
|
|
45
|
+
* @param {string} sapId Sap id to look for
|
|
46
|
+
* @return {*} {(Promise<EchoHubPlant | null>)} Returns a single plant information or null if no match was found
|
|
47
|
+
*/
|
|
48
|
+
export declare function getPlantBySapId(sapId: string): Promise<EchoHubPlant | null>;
|
|
49
|
+
/**
|
|
50
|
+
* Gets all plant codes for a given installation code
|
|
51
|
+
* @export
|
|
52
|
+
* @param {string} instCode installation code to look for
|
|
53
|
+
* @return {*} {Promise<string[]>} list of plant codes for the given installation
|
|
54
|
+
*/
|
|
55
|
+
export declare function getPlantCodesOnInstallation(instCode: string): Promise<string[]>;
|
|
56
|
+
/**
|
|
57
|
+
* Method for checking a users access to a given installation
|
|
58
|
+
*
|
|
59
|
+
* @export
|
|
60
|
+
* @param {string} instCode installation code to check access for
|
|
61
|
+
* @return {*} {Promise<boolean>} returns whether the user has access to that given installation
|
|
62
|
+
*/
|
|
63
|
+
export declare function check3dPermissionOnInstallation(instCode: string): Promise<boolean>;
|
|
64
|
+
/**
|
|
65
|
+
* Method for checking 3d access for a given instCode or plantCode, if plantCode in provided then instCode is ignored
|
|
66
|
+
*
|
|
67
|
+
* @export
|
|
68
|
+
* @param {string} instCode Installation code to check access on
|
|
69
|
+
* @param {string} [plantCode] Plant code to check access on, installation code is ignored if plant code is provided
|
|
70
|
+
* @return {*} {Promise<boolean>} Whether a user has access to a plant or installation
|
|
71
|
+
*/
|
|
72
|
+
export declare function check3dAccessForInstCodeOrPlantCode(instCode: string, plantCode?: string): Promise<boolean>;
|
|
73
|
+
/**
|
|
74
|
+
* Method for checking a users access to a given plant
|
|
75
|
+
*
|
|
76
|
+
* @export
|
|
77
|
+
* @param {string} plantCode plant code to check access to
|
|
78
|
+
* @return {*} {Promise<boolean>} returns whether the user has access to that given plant
|
|
79
|
+
*/
|
|
80
|
+
export declare function check3dPermissionForPlantCode(plantCode: string): Promise<boolean>;
|
|
81
|
+
/**
|
|
82
|
+
* Method to check if a given installation and plant is available in Echo 3d
|
|
83
|
+
*
|
|
84
|
+
* @export
|
|
85
|
+
* @param {string} instCode Installation to check access to
|
|
86
|
+
* @param {string} [plantCode] Plant to check access to
|
|
87
|
+
* @return {*} {Promise<boolean>} returns whether the user has access to that given plant
|
|
88
|
+
*/
|
|
89
|
+
export declare function checkPlantAvailableIn3d(instCode: string, plantCode?: string): Promise<boolean>;
|
|
90
|
+
/**
|
|
91
|
+
* Method to check if a given installation and plant is available in Echo 3d web
|
|
92
|
+
*
|
|
93
|
+
* @export
|
|
94
|
+
* @param {string} instCode Installation to check access to
|
|
95
|
+
* @param {string} [plantCode] Plant to check access to
|
|
96
|
+
* @return {*} {Promise<boolean>} returns whether the user has access to that given plant
|
|
97
|
+
*/
|
|
98
|
+
export declare function checkPlantAvailableIn3dWeb(instCode: string, plantCode?: string): Promise<boolean>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Plant } from '@equinor/echo-core';
|
|
2
|
-
/**
|
|
3
|
-
* Function for comparing our local plant list with the API plant list.
|
|
4
|
-
* Returns true if they are not equal, returns false otherwise.
|
|
5
|
-
* @param {Plant[]} apiPlants
|
|
6
|
-
* @param {Plant[]} localStoragePlants
|
|
7
|
-
* @return {*} {boolean}
|
|
8
|
-
*/
|
|
9
|
-
export declare const checkIsPlantsListUpdated: (apiPlants: ReadonlyArray<Plant>, localStoragePlants: ReadonlyArray<Plant>) => boolean;
|
|
1
|
+
import { Plant } from '@equinor/echo-core';
|
|
2
|
+
/**
|
|
3
|
+
* Function for comparing our local plant list with the API plant list.
|
|
4
|
+
* Returns true if they are not equal, returns false otherwise.
|
|
5
|
+
* @param {Plant[]} apiPlants
|
|
6
|
+
* @param {Plant[]} localStoragePlants
|
|
7
|
+
* @return {*} {boolean}
|
|
8
|
+
*/
|
|
9
|
+
export declare const checkIsPlantsListUpdated: (apiPlants: ReadonlyArray<Plant>, localStoragePlants: ReadonlyArray<Plant>) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function filterProjectsStartsWithFirst(data: string[], filter: string): string[];
|
|
1
|
+
export declare function filterProjectsStartsWithFirst(data: string[], filter: string): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function trimToLength(inputString: string, stringLength: number): string;
|
|
1
|
+
export declare function trimToLength(inputString: string, stringLength: number): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Function which will run all startup functions.
|
|
3
|
-
* @export
|
|
4
|
-
* @return {*} {Promise<void>}
|
|
5
|
-
*/
|
|
6
|
-
export declare function startup(): Promise<void>;
|
|
1
|
+
/**
|
|
2
|
+
* Function which will run all startup functions.
|
|
3
|
+
* @export
|
|
4
|
+
* @return {*} {Promise<void>}
|
|
5
|
+
*/
|
|
6
|
+
export declare function startup(): Promise<void>;
|
|
@@ -1,23 +1,23 @@
|
|
|
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(tagDetails: TagDetailsDto): Promise<string>;
|
|
17
|
-
/**
|
|
18
|
-
* Function for getting plant project description based on Tag Details
|
|
19
|
-
* Returns the plant project description if found, otherwise, return empty string.
|
|
20
|
-
* @param {TagDetailsDto} tagDetails
|
|
21
|
-
* @returns {*} {string}
|
|
22
|
-
*/
|
|
23
|
-
export declare function getProjectDescriptionForTag(tagDetails: TagDetailsDto): Promise<string>;
|
|
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(tagDetails: TagDetailsDto): Promise<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Function for getting plant project description based on Tag Details
|
|
19
|
+
* Returns the plant project description if found, otherwise, return empty string.
|
|
20
|
+
* @param {TagDetailsDto} tagDetails
|
|
21
|
+
* @returns {*} {string}
|
|
22
|
+
*/
|
|
23
|
+
export declare function getProjectDescriptionForTag(tagDetails: TagDetailsDto): Promise<string>;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export interface CachedTaskItem<T> {
|
|
2
|
-
task: Promise<T>;
|
|
3
|
-
key: string;
|
|
4
|
-
timeToLiveMilliseconds?: number;
|
|
5
|
-
}
|
|
6
|
-
interface InternalCachedTaskItem<T> extends CachedTaskItem<T> {
|
|
7
|
-
timeStamp: Date;
|
|
8
|
-
}
|
|
9
|
-
export interface CacheOptions {
|
|
10
|
-
maxItems: number;
|
|
11
|
-
defaultTimeToLiveMilliseconds: number;
|
|
12
|
-
}
|
|
13
|
-
export declare class TaskCache {
|
|
14
|
-
cache: InternalCachedTaskItem<unknown>[];
|
|
15
|
-
cacheOptions: CacheOptions;
|
|
16
|
-
constructor(cacheOptions: CacheOptions);
|
|
17
|
-
add<T>(item: CachedTaskItem<T>): void;
|
|
18
|
-
get(url: string): CachedTaskItem<unknown> | undefined;
|
|
19
|
-
clear(): void;
|
|
20
|
-
private clearExpired;
|
|
21
|
-
private removeItem;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
1
|
+
export interface CachedTaskItem<T> {
|
|
2
|
+
task: Promise<T>;
|
|
3
|
+
key: string;
|
|
4
|
+
timeToLiveMilliseconds?: number;
|
|
5
|
+
}
|
|
6
|
+
interface InternalCachedTaskItem<T> extends CachedTaskItem<T> {
|
|
7
|
+
timeStamp: Date;
|
|
8
|
+
}
|
|
9
|
+
export interface CacheOptions {
|
|
10
|
+
maxItems: number;
|
|
11
|
+
defaultTimeToLiveMilliseconds: number;
|
|
12
|
+
}
|
|
13
|
+
export declare class TaskCache {
|
|
14
|
+
cache: InternalCachedTaskItem<unknown>[];
|
|
15
|
+
cacheOptions: CacheOptions;
|
|
16
|
+
constructor(cacheOptions: CacheOptions);
|
|
17
|
+
add<T>(item: CachedTaskItem<T>): void;
|
|
18
|
+
get(url: string): CachedTaskItem<unknown> | undefined;
|
|
19
|
+
clear(): void;
|
|
20
|
+
private clearExpired;
|
|
21
|
+
private removeItem;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 Equinor
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root{--xSmall:0.25rem;--small:0.5rem;--medium:1rem;--large:1.5rem;--xLarge:2rem;--black:#000;--white:#fff;--equiBlue1:#233746;--equiBlue2:#d7e1ed;--equiBlue3:#d5eaf4;--equiGray1:#87929a;--equiGray2:#b4bbc0;--equiGray3:#d1d5d8;--equiGray4:#e3e6e8;--equiRed1:#ff1243;--darkEquiRed:#ce183e;--equiGreen1:#006f79;--equiGreen2:#deedee;--equiGreen3:#e6faec;--echoText:#3d3d3d;--disabledBackgroundColor:#eaeaea;--disabledColor:#6f6f6f;--onGoing:#fbca36;--done:#4bb748;--asBuilt:#007079;--planned:#4bb748;--future:#52c0ff;--historic:#ff7d98;--outOfService:#ff9200;--reserved:#243746;--voided:#eb0000;--default:#dcdcdc;--ok:#23ef2a;--os:#adaead;--pa:#f94693;--pb:#fd0;--unknown:#525252;--rfccSent:#bcf316;--rfccPartly:#c7f316;--rfcc:#60f316;--rfocSent:#0dccf2;--rfocPartly:#1accf2;--rfoc:#0d59f2;--rfccRejected:#ff1243;--rfocRejected:#ff1243;--handoverError:#eb0000;--priorityHigh:#ff1243;--priorityMedium:#fbca36;--systems:#d5eaf4;--locations:#3eb54a;--warningText:#ad6200;--warningIcon:#ff9200;--warningBackground:#ffe7d6;--dropDownButtonBackground:#f0f0f0;--dropDownTextColor:grey;--searchBarBackground:#f7f7f7;--highSeverity:#ffc1c1;--mediumSeverity:#ffe7d6;--lowSeverity:#dce6ee;--defaultSeverity:#d5eaf4;--highSeverityText:#eb0000;--mediumSeverityText:#52c0ff;--lowSeverityText:#4bb748;--defaultSeverityText:#3d3d3d;--toggleActive:#4bb748;--toggleInactive:#b30d2f;--hoverIcon:#004f55;--tertiaryText:#6f6f6f;--dividerColor:#dcdcdc}#root,body,html{height:100%;overflow:hidden;width:100%}html[data-theme=dark]{--equiGreen1:#006f79}body,h1,h2,h3,h4,h5,h6,label,p{color:var(--echoText)}body,html,span{font-family:Equinor!important}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-track{background:#f7f7f7;border-radius:5px}::-webkit-scrollbar-thumb{background:#007079;border-radius:5px}::-webkit-scrollbar-thumb:hover{background:#004f55}button,input{appearance:none;background:transparent;border:inherit;color:inherit;font:inherit;outline:0}input,input:after,input:before{-webkit-user-select:initial;-khtml-user-select:initial;-moz-user-select:initial;-ms-user-select:initial;user-select:auto}
|
package/dist/index.d.ts
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './globalStyles.css';
|
|
3
|
-
import { getPlantsInfo, getTagDetails } from './services/api';
|
|
4
|
-
import './theme/theme.css';
|
|
5
|
-
import { getLegendStatusColor } from './utils/legendUtils';
|
|
6
|
-
export * from './components';
|
|
7
|
-
export * from './coreApplication';
|
|
8
|
-
export { RegisteredHookName } from './hooks/hookLibrary';
|
|
9
|
-
export { useIsCompactLayout } from './hooks/useIsCompactLayout';
|
|
10
|
-
export { useIsFullScreenModeEnabled } from './hooks/useIsFullScreenModeEnabled';
|
|
11
|
-
export { useScreenOrientation } from './hooks/useScreenOrientation';
|
|
12
|
-
export { useScreenValues } from './hooks/useScreenValues';
|
|
13
|
-
export { RegisteredComponentName } from './services/componentRegistry/componentRegistry';
|
|
14
|
-
export { DetailedDeviceInformationProvider, detailedDeviceInformationProvider } from './services/deviceInformation/deepDeviceInfo';
|
|
15
|
-
export { DeviceInformation, deviceInfo } from './services/deviceInformation/deviceInfo';
|
|
16
|
-
export * from './services/eventHubActions';
|
|
17
|
-
export * from './services/searchItemDetails/searchItemDetails.store';
|
|
18
|
-
export { SearchItemDetailsContainer } from './services/searchItemDetails/searchItemDetailsContainer';
|
|
19
|
-
export * from './theme/themeConst';
|
|
20
|
-
export * from './types/api-echohub';
|
|
21
|
-
export type { EchoHubPlant } from './types/echoHubPlant';
|
|
22
|
-
export * from './types/eventTypes';
|
|
23
|
-
export * from './types/extensions';
|
|
24
|
-
export type { SetActiveTagNo, TagData } from './types/hookLibrary';
|
|
25
|
-
export { LegendStatus, LegendType } from './types/legend';
|
|
26
|
-
export type { ModelPermissions } from './types/modelPermissions';
|
|
27
|
-
export { PingableSources } from './types/pingableSources';
|
|
28
|
-
export * from './utils';
|
|
29
|
-
export { getLegendStatusColor, legendTypeToLegendStatus, toLegendStatusOrString, valueToEnum } from './utils/legendUtils';
|
|
30
|
-
export * from './utils/startup';
|
|
31
|
-
export declare const registerEchopediaComponent: ({ name, component }: {
|
|
32
|
-
name: import("./services/componentRegistry/componentRegistry").RegisteredComponentName;
|
|
33
|
-
component: import("react").FunctionComponent<any>;
|
|
34
|
-
}) => void;
|
|
35
|
-
declare const EchoFramework: Readonly<{
|
|
36
|
-
Utils: Readonly<{
|
|
37
|
-
Navigation: Readonly<{
|
|
38
|
-
goToExternalLink: (link: string, redirect?: boolean | undefined) => void;
|
|
39
|
-
}>;
|
|
40
|
-
Color: Readonly<{
|
|
41
|
-
getLegendStatusColor: typeof getLegendStatusColor;
|
|
42
|
-
}>;
|
|
43
|
-
}>;
|
|
44
|
-
Hooks: Readonly<{
|
|
45
|
-
searchItems: Readonly<{
|
|
46
|
-
useSearchItemDetailsStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<import("./services/searchItemDetails/searchItemDetails.store").SearchItemDetailsState>, "setState"> & {
|
|
47
|
-
setState(nextStateOrUpdater: import("./services/searchItemDetails/searchItemDetails.store").SearchItemDetailsState | Partial<import("./services/searchItemDetails/searchItemDetails.store").SearchItemDetailsState> | ((state: import("immer/dist/internal").WritableDraft<import("./services/searchItemDetails/searchItemDetails.store").SearchItemDetailsState>) => void), shouldReplace?: boolean | undefined): void;
|
|
48
|
-
}>;
|
|
49
|
-
}>;
|
|
50
|
-
useEchoHistory(): (path: string, params?: {
|
|
51
|
-
[key: string]: string;
|
|
52
|
-
} | undefined, state?: any) => void;
|
|
53
|
-
useHas3dAccess(plantCode?: string | undefined): boolean;
|
|
54
|
-
useIsFullScreenModeEnabled(): boolean;
|
|
55
|
-
usePlantAvailableIn3d(plantCode?: string | undefined): boolean;
|
|
56
|
-
usePlantAvailableIn3dWeb(plantCode?: string | undefined): boolean;
|
|
57
|
-
useScreenOrientation(): import("./types/hookLibrary").ScreenOrientation;
|
|
58
|
-
useScreenValues(): {
|
|
59
|
-
isScreenMobileSize: boolean;
|
|
60
|
-
screenOrientation: import("./types/hookLibrary").ScreenOrientation;
|
|
61
|
-
};
|
|
62
|
-
useTagDetails({ instCode, tagNo }: {
|
|
63
|
-
tagNo: string;
|
|
64
|
-
instCode: string;
|
|
65
|
-
}): {
|
|
66
|
-
tagDetails: import("@equinor/echo-search").TagDetailsDto | undefined;
|
|
67
|
-
isTagDetailsLoading: boolean;
|
|
68
|
-
hasError: boolean;
|
|
69
|
-
};
|
|
70
|
-
useSetActiveTagNo: () => import("./types/hookLibrary").SetActiveTagNo;
|
|
71
|
-
useContextMenuDataInfo: (tagNo: string, expanded: boolean, setActivePanel?: (() => void) | undefined) => import("@equinor/echo-components").DataInformation[];
|
|
72
|
-
useTagData: () => import("./types/hookLibrary").TagData;
|
|
73
|
-
useIsContextMenuInfoLoading: () => boolean;
|
|
74
|
-
useSetActiveCommPackNo: () => import("./types/hookLibrary").SetActiveCommPackNo;
|
|
75
|
-
useSetActiveMcPackNo: () => import("./types/hookLibrary").SetActiveMcPackNo;
|
|
76
|
-
}>;
|
|
77
|
-
EchopediaComponentLibrary: Readonly<{
|
|
78
|
-
/**
|
|
79
|
-
* @deprecated Please use 'getTagListItem()' instead - that supports the new search flow
|
|
80
|
-
* Returns with the TagItem component, which is used in EchopediaWeb's search panel
|
|
81
|
-
* and pdf side drawer when listing out tags.
|
|
82
|
-
* @returns {React.FC<any>} legacy TagItem component
|
|
83
|
-
*/
|
|
84
|
-
getTagItem: () => import("react").FunctionComponent<any>;
|
|
85
|
-
/**
|
|
86
|
-
* Returns with the TagItem component, which is used in EchopediaWeb's search panel
|
|
87
|
-
* and pdf side drawer when listing out tags.
|
|
88
|
-
* @returns {React.FC<any>} TagListItem component
|
|
89
|
-
*/
|
|
90
|
-
getTagListItem: () => import("react").FunctionComponent<any>;
|
|
91
|
-
}>;
|
|
92
|
-
APIs: Readonly<{
|
|
93
|
-
getPlantsInfo: typeof getPlantsInfo;
|
|
94
|
-
getTagDetails: typeof getTagDetails;
|
|
95
|
-
getTemporarilyEchoHubListFor3D: (instCode: string, request: import("./types/api-echohub").TemporaryEchoHubListDto, abortSignal?: AbortSignal | undefined, withoutBaseUrl?: boolean | undefined) => Promise<{
|
|
96
|
-
app3dUrl: string;
|
|
97
|
-
web3dUrl: string;
|
|
98
|
-
}>;
|
|
99
|
-
createTemporarilyEchoHubListFor3D: (request: import("./types/api-echohub").TemporaryEchoHubListDto, abortSignal?: AbortSignal | undefined) => Promise<import("./types/api-echohub").TemporaryHubListCreatedResponse>;
|
|
100
|
-
}>;
|
|
101
|
-
}>;
|
|
102
|
-
export default EchoFramework;
|