@equinor/echo-framework 0.13.1 → 0.14.0-test-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 +17 -4
- package/index.css +2837 -0
- package/index.js +70 -0
- package/package.json +25 -126
- package/src/index.d.ts +100 -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/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 +22 -22
- 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 +9 -9
- 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 +7 -7
- 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/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/index.d.ts +4 -4
- 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 -100
- 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
package/package.json
CHANGED
|
@@ -1,128 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"test-wo-install": "jest --watchAll",
|
|
28
|
-
"test": "npm ci & jest --watchAll",
|
|
29
|
-
"test-coverage": "npm ci & jest --coverage --watchAll",
|
|
30
|
-
"patch": "npm version patch",
|
|
31
|
-
"major": "npm version major",
|
|
32
|
-
"minor": "npm version minor",
|
|
33
|
-
"echo-update": "echo-update",
|
|
34
|
-
"echo-update-all": "echo-update -a",
|
|
35
|
-
"yalc-purge": "rmdir \"%APPDATA%/../Local/Yalc/packages/@equinor/echo-framework\" /q /s",
|
|
36
|
-
"re-yalc": "npm run build && yalc push --sig"
|
|
37
|
-
},
|
|
38
|
-
"peerDependencies": {
|
|
39
|
-
"@equinor/echo-base": ">= 0.6.12 < 0.7.0",
|
|
40
|
-
"@equinor/echo-components": ">= 0.7.0 < 0.8.0",
|
|
41
|
-
"@equinor/echo-core": ">= 0.8.0 < 0.9.0",
|
|
42
|
-
"@equinor/echo-search": ">= 0.14.0 < 0.15.0",
|
|
43
|
-
"@equinor/echo-utils": ">= 0.3.0 < 0.4.0",
|
|
44
|
-
"@equinor/eds-core-react": "^0.25.0",
|
|
45
|
-
"@equinor/eds-icons": "^0.17.0",
|
|
46
|
-
"react": ">= 17.0.2",
|
|
47
|
-
"react-dom": ">= 17.0.2",
|
|
48
|
-
"react-router-dom": "^5.3.4",
|
|
49
|
-
"styled-components": "^5.3.11"
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"@babel/core": "^7.22.9",
|
|
53
|
-
"@babel/preset-env": "^7.22.9",
|
|
54
|
-
"@babel/preset-react": "^7.22.5",
|
|
55
|
-
"@equinor/echo-base": "^0.6.22",
|
|
56
|
-
"@equinor/echo-components": "0.7.12",
|
|
57
|
-
"@equinor/echo-core": "^0.8.0",
|
|
58
|
-
"@equinor/echo-scripts": "^0.1.5",
|
|
59
|
-
"@equinor/echo-search": "^0.14.0",
|
|
60
|
-
"@equinor/echo-update": "^1.3.1",
|
|
61
|
-
"@equinor/echo-utils": "^0.3.1",
|
|
62
|
-
"@equinor/eds-core-react": "^0.25.0",
|
|
63
|
-
"@equinor/eds-icons": "^0.17.0",
|
|
64
|
-
"@modular-css/rollup": "^28.3.2",
|
|
65
|
-
"@rollup/plugin-babel": "^5.3.1",
|
|
66
|
-
"@rollup/plugin-commonjs": "^22.0.2",
|
|
67
|
-
"@rollup/plugin-image": "^2.1.1",
|
|
68
|
-
"@rollup/plugin-json": "^4.1.0",
|
|
69
|
-
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
70
|
-
"@rollup/plugin-typescript": "^8.5.0",
|
|
71
|
-
"@rollup/plugin-url": "^7.0.0",
|
|
72
|
-
"@svgr/rollup": "^6.5.1",
|
|
73
|
-
"@testing-library/react": "^14.0.0",
|
|
74
|
-
"@types/jest": "^29.5.3",
|
|
75
|
-
"@types/node": "^18.17.2",
|
|
76
|
-
"@types/react": "^18.2.18",
|
|
77
|
-
"@types/react-dom": "^18.2.7",
|
|
78
|
-
"@types/react-router-dom": "^5.3.3",
|
|
79
|
-
"@types/styled-components": "5.1.26",
|
|
80
|
-
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
81
|
-
"@typescript-eslint/parser": "^5.62.0",
|
|
82
|
-
"@wessberg/rollup-plugin-ts": "^2.0.4",
|
|
83
|
-
"autoprefixer": "^10.4.14",
|
|
84
|
-
"babel-jest": "^29.6.2",
|
|
85
|
-
"eslint": "^8.46.0",
|
|
86
|
-
"eslint-config-prettier": "^8.10.0",
|
|
87
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
88
|
-
"eslint-plugin-react": "^7.33.1",
|
|
89
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
90
|
-
"jest": "^29.6.2",
|
|
91
|
-
"jest-environment-jsdom": "^29.6.2",
|
|
92
|
-
"jest-expo": "^48.0.2",
|
|
93
|
-
"postcss": "^8.4.27",
|
|
94
|
-
"postcss-assets": "^6.0.0",
|
|
95
|
-
"postcss-modules": "^4.3.1",
|
|
96
|
-
"prettier": "^2.8.8",
|
|
97
|
-
"react": "^18.2.0",
|
|
98
|
-
"react-dom": "^18.2.0",
|
|
99
|
-
"react-router-dom": "^5.3.4",
|
|
100
|
-
"rollup": "^2.79.1",
|
|
101
|
-
"rollup-plugin-delete": "^2.0.0",
|
|
102
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
103
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
104
|
-
"rollup-plugin-tslib-resolve-id": "^0.0.0",
|
|
105
|
-
"rollup-plugin-typescript-paths": "^1.4.0",
|
|
106
|
-
"rollup-plugin-typescript2": "^0.35.0",
|
|
107
|
-
"styled-components": "^5.3.11",
|
|
108
|
-
"ts-jest": "^29.1.1",
|
|
109
|
-
"tslib": "^2.6.1",
|
|
110
|
-
"typescript": "=4.9.5",
|
|
111
|
-
"user-agent-data-types": "^0.3.1"
|
|
112
|
-
},
|
|
113
|
-
"dependencies": {
|
|
114
|
-
"@microsoft/signalr": "^6.0.20",
|
|
115
|
-
"immer": "^9.0.21",
|
|
116
|
-
"zustand": "^4.4.0"
|
|
117
|
-
},
|
|
118
|
-
"compilerOptions": {
|
|
119
|
-
"declaration": true
|
|
120
|
-
},
|
|
121
|
-
"files": [
|
|
122
|
-
"dist/"
|
|
123
|
-
],
|
|
124
|
-
"engines": {
|
|
125
|
-
"node": ">=16.8.0",
|
|
126
|
-
"npm": ">=7.0.0"
|
|
127
|
-
}
|
|
2
|
+
"name": "@equinor/echo-framework",
|
|
3
|
+
"version": "0.14.0-test-0",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@equinor/echo-base": ">= 0.6.12 < 0.7.0",
|
|
6
|
+
"@equinor/echo-components": ">= 0.7.0 < 0.8.0",
|
|
7
|
+
"@equinor/echo-core": ">= 0.8.0 < 0.9.0",
|
|
8
|
+
"@equinor/echo-search": ">= 0.14.0 < 0.15.0",
|
|
9
|
+
"@equinor/echo-utils": ">= 0.3.0 < 0.4.0",
|
|
10
|
+
"@equinor/eds-core-react": "^0.25.0",
|
|
11
|
+
"@equinor/eds-icons": "^0.17.0",
|
|
12
|
+
"react": ">= 17.0.2",
|
|
13
|
+
"react-dom": ">= 17.0.2",
|
|
14
|
+
"@microsoft/signalr": "7.0.7",
|
|
15
|
+
"classnames": "2.3.2",
|
|
16
|
+
"history": "4.10.1",
|
|
17
|
+
"lodash": "4.17.21",
|
|
18
|
+
"react-router-dom": "5.3.4",
|
|
19
|
+
"ua-parser-js": "1.0.35",
|
|
20
|
+
"zustand": "4.3.8"
|
|
21
|
+
},
|
|
22
|
+
"module": "./index.js",
|
|
23
|
+
"main": "./index.js",
|
|
24
|
+
"type": "module",
|
|
25
|
+
"types": "./src/index.d.ts",
|
|
26
|
+
"dependencies": {}
|
|
128
27
|
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './lib/globalStyles.css';
|
|
3
|
+
import { getPlantsInfo, getTagDetails } from './lib/services/api';
|
|
4
|
+
import './lib/theme/theme.css';
|
|
5
|
+
import { getLegendStatusColor } from './lib/utils/legendUtils';
|
|
6
|
+
export * from './lib/components';
|
|
7
|
+
export * from './lib/coreApplication';
|
|
8
|
+
export { RegisteredHookName } from './lib/hooks/hookLibrary';
|
|
9
|
+
export { useIsCompactLayout } from './lib/hooks/useIsCompactLayout';
|
|
10
|
+
export { useScreenOrientation } from './lib/hooks/useScreenOrientation';
|
|
11
|
+
export { useScreenValues } from './lib/hooks/useScreenValues';
|
|
12
|
+
export { RegisteredComponentName } from './lib/services/componentRegistry/componentRegistry';
|
|
13
|
+
export { DetailedDeviceInformationProvider, detailedDeviceInformationProvider } from './lib/services/deviceInformation/deepDeviceInfo';
|
|
14
|
+
export { DeviceInformation, deviceInfo } from './lib/services/deviceInformation/deviceInfo';
|
|
15
|
+
export * from './lib/services/eventHubActions';
|
|
16
|
+
export * from './lib/services/searchItemDetails/searchItemDetails.store';
|
|
17
|
+
export { SearchItemDetailsContainer } from './lib/services/searchItemDetails/searchItemDetailsContainer';
|
|
18
|
+
export * from './lib/theme/themeConst';
|
|
19
|
+
export * from './lib/types/api-echohub';
|
|
20
|
+
export type { EchoHubPlant } from './lib/types/echoHubPlant';
|
|
21
|
+
export * from './lib/types/eventTypes';
|
|
22
|
+
export * from './lib/types/extensions';
|
|
23
|
+
export type { SetActiveTagNo, TagData } from './lib/types/hookLibrary';
|
|
24
|
+
export { LegendStatus, LegendType } from './lib/types/legend';
|
|
25
|
+
export type { ModelPermissions } from './lib/types/modelPermissions';
|
|
26
|
+
export { PingableSources } from './lib/types/pingableSources';
|
|
27
|
+
export * from './lib/utils';
|
|
28
|
+
export { getLegendStatusColor, legendTypeToLegendStatus, toLegendStatusOrString, valueToEnum } from './lib/utils/legendUtils';
|
|
29
|
+
export * from './lib/utils/startup';
|
|
30
|
+
export declare const registerEchopediaComponent: ({ name, component }: {
|
|
31
|
+
name: import("./lib/services/componentRegistry/componentRegistry").RegisteredComponentName;
|
|
32
|
+
component: import("react").FunctionComponent<any>;
|
|
33
|
+
}) => void;
|
|
34
|
+
declare const EchoFramework: Readonly<{
|
|
35
|
+
Utils: Readonly<{
|
|
36
|
+
Navigation: Readonly<{
|
|
37
|
+
goToExternalLink: (link: string, redirect?: boolean | undefined) => void;
|
|
38
|
+
}>;
|
|
39
|
+
Color: Readonly<{
|
|
40
|
+
getLegendStatusColor: typeof getLegendStatusColor;
|
|
41
|
+
}>;
|
|
42
|
+
}>;
|
|
43
|
+
Hooks: Readonly<{
|
|
44
|
+
searchItems: Readonly<{
|
|
45
|
+
useSearchItemDetailsStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<unknown>, "setState"> & {
|
|
46
|
+
setState(nextStateOrUpdater: unknown, shouldReplace?: boolean | undefined): void;
|
|
47
|
+
}>;
|
|
48
|
+
}>;
|
|
49
|
+
useEchoHistory(): (path: string, params?: {
|
|
50
|
+
[key: string]: string;
|
|
51
|
+
} | undefined, state?: any) => void;
|
|
52
|
+
useHas3dAccess(plantCode?: string | undefined): boolean;
|
|
53
|
+
usePlantAvailableIn3d(plantCode?: string | undefined): boolean;
|
|
54
|
+
usePlantAvailableIn3dWeb(plantCode?: string | undefined): boolean;
|
|
55
|
+
useScreenOrientation(): import("./lib/types/hookLibrary").ScreenOrientation;
|
|
56
|
+
useScreenValues(): {
|
|
57
|
+
isScreenMobileSize: boolean;
|
|
58
|
+
screenOrientation: import("./lib/types/hookLibrary").ScreenOrientation;
|
|
59
|
+
};
|
|
60
|
+
useTagDetails({ instCode, tagNo }: {
|
|
61
|
+
tagNo: string;
|
|
62
|
+
instCode: string;
|
|
63
|
+
}): {
|
|
64
|
+
tagDetails: import("@equinor/echo-search").TagDetailsDto | undefined;
|
|
65
|
+
isTagDetailsLoading: boolean;
|
|
66
|
+
hasError: boolean;
|
|
67
|
+
};
|
|
68
|
+
useSetActiveTagNo: () => import("./lib/types/hookLibrary").SetActiveTagNo;
|
|
69
|
+
useContextMenuDataInfo: (tagNo: string, expanded: boolean, setActivePanel?: (() => void) | undefined) => import("@equinor/echo-components").DataInformation[];
|
|
70
|
+
useTagData: () => import("./lib/types/hookLibrary").TagData;
|
|
71
|
+
useIsContextMenuInfoLoading: () => boolean;
|
|
72
|
+
useSetActiveCommPackNo: () => import("./lib/types/hookLibrary").SetActiveCommPackNo;
|
|
73
|
+
useSetActiveMcPackNo: () => import("./lib/types/hookLibrary").SetActiveMcPackNo;
|
|
74
|
+
}>;
|
|
75
|
+
EchopediaComponentLibrary: Readonly<{
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated Please use 'getTagListItem()' instead - that supports the new search flow
|
|
78
|
+
* Returns with the TagItem component, which is used in EchopediaWeb's search panel
|
|
79
|
+
* and pdf side drawer when listing out tags.
|
|
80
|
+
* @returns {React.FC<any>} legacy TagItem component
|
|
81
|
+
*/
|
|
82
|
+
getTagItem: () => import("react").FunctionComponent<any>;
|
|
83
|
+
/**
|
|
84
|
+
* Returns with the TagItem component, which is used in EchopediaWeb's search panel
|
|
85
|
+
* and pdf side drawer when listing out tags.
|
|
86
|
+
* @returns {React.FC<any>} TagListItem component
|
|
87
|
+
*/
|
|
88
|
+
getTagListItem: () => import("react").FunctionComponent<any>;
|
|
89
|
+
}>;
|
|
90
|
+
APIs: Readonly<{
|
|
91
|
+
getPlantsInfo: typeof getPlantsInfo;
|
|
92
|
+
getTagDetails: typeof getTagDetails;
|
|
93
|
+
getTemporarilyEchoHubListFor3D: (instCode: string, request: import("./lib/types/api-echohub").TemporaryEchoHubListDto, abortSignal?: AbortSignal | undefined, withoutBaseUrl?: boolean | undefined) => Promise<{
|
|
94
|
+
app3dUrl: string;
|
|
95
|
+
web3dUrl: string;
|
|
96
|
+
}>;
|
|
97
|
+
createTemporarilyEchoHubListFor3D: (request: import("./lib/types/api-echohub").TemporaryEchoHubListDto, abortSignal?: AbortSignal | undefined) => Promise<import("./lib/types/api-echohub").TemporaryHubListCreatedResponse>;
|
|
98
|
+
}>;
|
|
99
|
+
}>;
|
|
100
|
+
export default EchoFramework;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface AppLinksProps {
|
|
3
|
-
isHome?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const AppLinks: React.FC<AppLinksProps>;
|
|
6
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AppLinksProps {
|
|
3
|
+
isHome?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const AppLinks: React.FC<AppLinksProps>;
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AppLink } from '@equinor/echo-core';
|
|
2
|
-
export declare const addInstCodeParamToAppLink: (appLink: AppLink, instCode: string) => AppLink;
|
|
1
|
+
import { AppLink } from '@equinor/echo-core';
|
|
2
|
+
export declare const addInstCodeParamToAppLink: (appLink: AppLink, instCode: string) => AppLink;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './AppLinks';
|
|
2
|
-
export * from './linkButton/linkButton';
|
|
1
|
+
export * from './AppLinks';
|
|
2
|
+
export * from './linkButton/linkButton';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AppLink } from '@equinor/echo-core';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface LinkButtonProps {
|
|
4
|
-
appLink: AppLink;
|
|
5
|
-
}
|
|
6
|
-
export declare const LinkButton: React.FC<LinkButtonProps>;
|
|
7
|
-
export default LinkButton;
|
|
1
|
+
import { AppLink } from '@equinor/echo-core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface LinkButtonProps {
|
|
4
|
+
appLink: AppLink;
|
|
5
|
+
}
|
|
6
|
+
export declare const LinkButton: React.FC<LinkButtonProps>;
|
|
7
|
+
export default LinkButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './layouts';
|
|
1
|
+
export * from './layouts';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type LayoutKey = 'main' | 'nativePdf' | 'colorLayout' | '3dweb' | undefined;
|
|
3
|
-
export interface LayoutProps {
|
|
4
|
-
layoutKey?: string;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare const Layout: React.FC<LayoutProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type LayoutKey = 'main' | 'nativePdf' | 'colorLayout' | '3dweb' | undefined;
|
|
3
|
+
export interface LayoutProps {
|
|
4
|
+
layoutKey?: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const Layout: React.FC<LayoutProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TagSummaryDto } from '@equinor/echo-search';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export type ContextualAppLinksContextType = {
|
|
4
|
-
tag: TagSummaryDto;
|
|
5
|
-
instCode: string;
|
|
6
|
-
} | undefined;
|
|
7
|
-
export declare const AppLinksContext: React.Context<ContextualAppLinksContextType>;
|
|
1
|
+
import { TagSummaryDto } from '@equinor/echo-search';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type ContextualAppLinksContextType = {
|
|
4
|
+
tag: TagSummaryDto;
|
|
5
|
+
instCode: string;
|
|
6
|
+
} | undefined;
|
|
7
|
+
export declare const AppLinksContext: React.Context<ContextualAppLinksContextType>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TagSummaryDto } from '@equinor/echo-search';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
type ContextualAppLinksProps = {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
tag: TagSummaryDto;
|
|
6
|
-
instCode: string;
|
|
7
|
-
};
|
|
8
|
-
declare const _default: React.NamedExoticComponent<ContextualAppLinksProps>;
|
|
9
|
-
export default _default;
|
|
1
|
+
import { TagSummaryDto } from '@equinor/echo-search';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type ContextualAppLinksProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
tag: TagSummaryDto;
|
|
6
|
+
instCode: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: React.NamedExoticComponent<ContextualAppLinksProps>;
|
|
9
|
+
export default _default;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type ExternalAppsMenuProp = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
classNames?: {
|
|
5
|
-
button?: string;
|
|
6
|
-
popupMenu?: string;
|
|
7
|
-
};
|
|
8
|
-
[key: string]: unknown;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Wrapper component for external application links. To be used inside ContextualAppLinks component.
|
|
12
|
-
* This will render an icon button with external link icon. When the button is clicked, an EDS menu will be shown.
|
|
13
|
-
* Pass any external icons as children inside this component: they will rendered inside the above mentioned menu.
|
|
14
|
-
* This component is extendable: Also renders any external app link icon, which is registered in the EchoCore application state.
|
|
15
|
-
*
|
|
16
|
-
* @param {ExternalAppsMenuProp} props
|
|
17
|
-
* @param {React.ReactNode} props.children Optional: Will be rendered inside the EDS menu
|
|
18
|
-
* @param {Object} props.classNames Optional: custom class names for inner structural DOM elements.
|
|
19
|
-
* @param {string} props.classNames.button Optional: custom class name to be applied to the icon button
|
|
20
|
-
* @param {string} props.classNames.popupMenu Optional: custom class name to be applied to the popup menu
|
|
21
|
-
* @param {unknown} ...rest param: Every other props will be applied on the topmost, wrapper div element.
|
|
22
|
-
*
|
|
23
|
-
* @returns {React.FC<ExternalAppsMenuProp>}
|
|
24
|
-
*
|
|
25
|
-
* @throws {BaseError} If used outside of ContextualAppLinks compound component - requires react context provided by it.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
export declare const ExternalAppsMenu: React.FC<ExternalAppsMenuProp>;
|
|
29
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type ExternalAppsMenuProp = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
classNames?: {
|
|
5
|
+
button?: string;
|
|
6
|
+
popupMenu?: string;
|
|
7
|
+
};
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Wrapper component for external application links. To be used inside ContextualAppLinks component.
|
|
12
|
+
* This will render an icon button with external link icon. When the button is clicked, an EDS menu will be shown.
|
|
13
|
+
* Pass any external icons as children inside this component: they will rendered inside the above mentioned menu.
|
|
14
|
+
* This component is extendable: Also renders any external app link icon, which is registered in the EchoCore application state.
|
|
15
|
+
*
|
|
16
|
+
* @param {ExternalAppsMenuProp} props
|
|
17
|
+
* @param {React.ReactNode} props.children Optional: Will be rendered inside the EDS menu
|
|
18
|
+
* @param {Object} props.classNames Optional: custom class names for inner structural DOM elements.
|
|
19
|
+
* @param {string} props.classNames.button Optional: custom class name to be applied to the icon button
|
|
20
|
+
* @param {string} props.classNames.popupMenu Optional: custom class name to be applied to the popup menu
|
|
21
|
+
* @param {unknown} ...rest param: Every other props will be applied on the topmost, wrapper div element.
|
|
22
|
+
*
|
|
23
|
+
* @returns {React.FC<ExternalAppsMenuProp>}
|
|
24
|
+
*
|
|
25
|
+
* @throws {BaseError} If used outside of ContextualAppLinks compound component - requires react context provided by it.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare const ExternalAppsMenu: React.FC<ExternalAppsMenuProp>;
|
|
29
|
+
export {};
|
package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/allExternalLinks.d.ts
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* To be used inside ContextualAppLinks component.
|
|
4
|
-
* List of pre-defined external app links.
|
|
5
|
-
* Contains link to: Stid, ProCoSys, Sap, Semi, McApp, SafeX, TR2000.
|
|
6
|
-
*
|
|
7
|
-
* Each link will determine by itself if they should be rendered (or not) based on various conditions, like: the passed tag.
|
|
8
|
-
*
|
|
9
|
-
* @returns {React.FC}
|
|
10
|
-
* @throws {BaseError} If used outside of ContextualAppLinks compound component - requires react context provided by it.
|
|
11
|
-
*/
|
|
12
|
-
export declare const AllExternalLinks: React.FC;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* To be used inside ContextualAppLinks component.
|
|
4
|
+
* List of pre-defined external app links.
|
|
5
|
+
* Contains link to: Stid, ProCoSys, Sap, Semi, McApp, SafeX, TR2000.
|
|
6
|
+
*
|
|
7
|
+
* Each link will determine by itself if they should be rendered (or not) based on various conditions, like: the passed tag.
|
|
8
|
+
*
|
|
9
|
+
* @returns {React.FC}
|
|
10
|
+
* @throws {BaseError} If used outside of ContextualAppLinks compound component - requires react context provided by it.
|
|
11
|
+
*/
|
|
12
|
+
export declare const AllExternalLinks: React.FC;
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { TagDetailsDto } from '@equinor/echo-search';
|
|
2
|
-
import { ProCoSysApiTag } from '../../../types/api-proCoSysTagResponse';
|
|
3
|
-
type GetTagDetailsAndProCoSysDataResult = {
|
|
4
|
-
tagDetails: TagDetailsDto | undefined;
|
|
5
|
-
proCoSysTag: ProCoSysApiTag | undefined;
|
|
6
|
-
hasError: boolean;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Specific tool for external link buttons to help build URLS for deep linking into ProCoSys web app.
|
|
10
|
-
* Fetches both tag details and tag information from ProCoSys.
|
|
11
|
-
*
|
|
12
|
-
* @param {Object} params
|
|
13
|
-
* @param {string} params.tagNo The tag number to query.
|
|
14
|
-
* @param {string} params.instCode Plant installation code for the given tag.
|
|
15
|
-
* @returns {GetTagDetailsAndProCoSysDataResult} response - The returned promise will resolve once both API calls are resolved. (with Promise.all)
|
|
16
|
-
* @returns {TagDetailsDto} response.tagDetails - Result of tag details API call.
|
|
17
|
-
* @returns {ProCoSysApiTag} response.proCoSysTag - Tag related information from the ProCoSys system.
|
|
18
|
-
* @returns {hasError} response.hasError - indicates if there were any errors during the API calls. The exception is handled under the hood.
|
|
19
|
-
*/
|
|
20
|
-
export declare function getTagDetailsAndProCoSysData({ tagNo, instCode }: {
|
|
21
|
-
tagNo:
|
|
22
|
-
instCode:
|
|
23
|
-
}): Promise<GetTagDetailsAndProCoSysDataResult>;
|
|
24
|
-
type getTagDetailsWithErrorHandlingResponse = {
|
|
25
|
-
tagDetails: TagDetailsDto | undefined;
|
|
26
|
-
hasError: boolean;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Wraps the 'getTagDetails' function. Handles and logs any Error thrown by it whi;e displaying an error message toast.
|
|
30
|
-
* Use 'getTagDetails' if you want complete freedom on how you handle any exceptions.
|
|
31
|
-
*
|
|
32
|
-
* If there were any errors during the API call, the returned value will have a 'hasError' flag set to 'true'.
|
|
33
|
-
*
|
|
34
|
-
* @param {Object} params
|
|
35
|
-
* @param {string} params.tagNo The tag number to query.
|
|
36
|
-
* @param {string} params.instCode Plant installation code for the given tag.
|
|
37
|
-
* @param {AbortSignal} params.abortSignal A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
|
|
38
|
-
* @returns {getTagDetailsWithErrorHandlingResponse} response
|
|
39
|
-
* @returns {TagDetailsDto} response.tagDetails - Result of tag details API call.
|
|
40
|
-
* @returns {hasError} response.hasError - indicates if there were any errors during the API call.
|
|
41
|
-
*/
|
|
42
|
-
export declare function getTagDetailsWithErrorHandling({ tagNo, instCode }: {
|
|
43
|
-
tagNo: string;
|
|
44
|
-
instCode?: string;
|
|
45
|
-
}): Promise<getTagDetailsWithErrorHandlingResponse>;
|
|
46
|
-
/**
|
|
47
|
-
* Replace all non-aplhanumeric characters (eg: '-' and ' ') with a wildcard (*)
|
|
48
|
-
*
|
|
49
|
-
* @param {string} tagNo The tag number
|
|
50
|
-
* @returns New tag number with non-alpha characters replaced
|
|
51
|
-
*/
|
|
52
|
-
export declare function replaceNonAlphaCharsWithWildcard(tagNo: string | undefined): string | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* Add a wildcard (*) between number and characters
|
|
55
|
-
*
|
|
56
|
-
* @param {string} tagNo The tag number
|
|
57
|
-
* @returns New tag number with a wildcard (*) between number and characters
|
|
58
|
-
*/
|
|
59
|
-
export declare function addWildcardBetweenNumAndChar(tagNo: string | undefined): string | undefined;
|
|
60
|
-
export {};
|
|
1
|
+
import { TagDetailsDto } from '@equinor/echo-search';
|
|
2
|
+
import { ProCoSysApiTag } from '../../../types/api-proCoSysTagResponse';
|
|
3
|
+
type GetTagDetailsAndProCoSysDataResult = {
|
|
4
|
+
tagDetails: TagDetailsDto | undefined;
|
|
5
|
+
proCoSysTag: ProCoSysApiTag | undefined;
|
|
6
|
+
hasError: boolean;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Specific tool for external link buttons to help build URLS for deep linking into ProCoSys web app.
|
|
10
|
+
* Fetches both tag details and tag information from ProCoSys.
|
|
11
|
+
*
|
|
12
|
+
* @param {Object} params
|
|
13
|
+
* @param {string} params.tagNo The tag number to query.
|
|
14
|
+
* @param {string} params.instCode Plant installation code for the given tag.
|
|
15
|
+
* @returns {GetTagDetailsAndProCoSysDataResult} response - The returned promise will resolve once both API calls are resolved. (with Promise.all)
|
|
16
|
+
* @returns {TagDetailsDto} response.tagDetails - Result of tag details API call.
|
|
17
|
+
* @returns {ProCoSysApiTag} response.proCoSysTag - Tag related information from the ProCoSys system.
|
|
18
|
+
* @returns {hasError} response.hasError - indicates if there were any errors during the API calls. The exception is handled under the hood.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getTagDetailsAndProCoSysData({ tagNo, instCode }: {
|
|
21
|
+
tagNo: string;
|
|
22
|
+
instCode: string;
|
|
23
|
+
}): Promise<GetTagDetailsAndProCoSysDataResult>;
|
|
24
|
+
type getTagDetailsWithErrorHandlingResponse = {
|
|
25
|
+
tagDetails: TagDetailsDto | undefined;
|
|
26
|
+
hasError: boolean;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Wraps the 'getTagDetails' function. Handles and logs any Error thrown by it whi;e displaying an error message toast.
|
|
30
|
+
* Use 'getTagDetails' if you want complete freedom on how you handle any exceptions.
|
|
31
|
+
*
|
|
32
|
+
* If there were any errors during the API call, the returned value will have a 'hasError' flag set to 'true'.
|
|
33
|
+
*
|
|
34
|
+
* @param {Object} params
|
|
35
|
+
* @param {string} params.tagNo The tag number to query.
|
|
36
|
+
* @param {string} params.instCode Plant installation code for the given tag.
|
|
37
|
+
* @param {AbortSignal} params.abortSignal A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
|
|
38
|
+
* @returns {getTagDetailsWithErrorHandlingResponse} response
|
|
39
|
+
* @returns {TagDetailsDto} response.tagDetails - Result of tag details API call.
|
|
40
|
+
* @returns {hasError} response.hasError - indicates if there were any errors during the API call.
|
|
41
|
+
*/
|
|
42
|
+
export declare function getTagDetailsWithErrorHandling({ tagNo, instCode }: {
|
|
43
|
+
tagNo: string;
|
|
44
|
+
instCode?: string;
|
|
45
|
+
}): Promise<getTagDetailsWithErrorHandlingResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Replace all non-aplhanumeric characters (eg: '-' and ' ') with a wildcard (*)
|
|
48
|
+
*
|
|
49
|
+
* @param {string} tagNo The tag number
|
|
50
|
+
* @returns New tag number with non-alpha characters replaced
|
|
51
|
+
*/
|
|
52
|
+
export declare function replaceNonAlphaCharsWithWildcard(tagNo: string | undefined): string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Add a wildcard (*) between number and characters
|
|
55
|
+
*
|
|
56
|
+
* @param {string} tagNo The tag number
|
|
57
|
+
* @returns New tag number with a wildcard (*) between number and characters
|
|
58
|
+
*/
|
|
59
|
+
export declare function addWildcardBetweenNumAndChar(tagNo: string | undefined): string | undefined;
|
|
60
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type ExternalLinkToCommAppProps = {
|
|
3
|
-
tagNo: string;
|
|
4
|
-
instCode: string;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* External link button to Commissioning web app.
|
|
8
|
-
*
|
|
9
|
-
* @param {string} tagNo The tag's number to open in the Comm app.
|
|
10
|
-
* @param {string} instCode Plant installation code.
|
|
11
|
-
* @returns {React.FC<ExternalLinkToMcAppProps>} React component.
|
|
12
|
-
*/
|
|
13
|
-
export declare const ExternalLinkToCommApp: React.FC<ExternalLinkToCommAppProps>;
|
|
14
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type ExternalLinkToCommAppProps = {
|
|
3
|
+
tagNo: string;
|
|
4
|
+
instCode: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* External link button to Commissioning web app.
|
|
8
|
+
*
|
|
9
|
+
* @param {string} tagNo The tag's number to open in the Comm app.
|
|
10
|
+
* @param {string} instCode Plant installation code.
|
|
11
|
+
* @returns {React.FC<ExternalLinkToMcAppProps>} React component.
|
|
12
|
+
*/
|
|
13
|
+
export declare const ExternalLinkToCommApp: React.FC<ExternalLinkToCommAppProps>;
|
|
14
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type ExternalLinkToConditionAdviserProps = {
|
|
3
|
-
tagNo: string;
|
|
4
|
-
instCode: string;
|
|
5
|
-
loadingStatusCallback?: (isLoading: boolean) => void;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* External link button to the Condition Adviser tool.
|
|
9
|
-
*
|
|
10
|
-
* @param {string} tagNo The tag's number to open in the Condition Adviser tool.
|
|
11
|
-
* @param {string} instCode Plant installation code.
|
|
12
|
-
* @returns {React.FC<ExternalLinkToConditionAdviserProps>} React component.
|
|
13
|
-
*/
|
|
14
|
-
export declare const ExternalLinkToConditionAdviser: React.FC<ExternalLinkToConditionAdviserProps>;
|
|
15
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type ExternalLinkToConditionAdviserProps = {
|
|
3
|
+
tagNo: string;
|
|
4
|
+
instCode: string;
|
|
5
|
+
loadingStatusCallback?: (isLoading: boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* External link button to the Condition Adviser tool.
|
|
9
|
+
*
|
|
10
|
+
* @param {string} tagNo The tag's number to open in the Condition Adviser tool.
|
|
11
|
+
* @param {string} instCode Plant installation code.
|
|
12
|
+
* @returns {React.FC<ExternalLinkToConditionAdviserProps>} React component.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ExternalLinkToConditionAdviser: React.FC<ExternalLinkToConditionAdviserProps>;
|
|
15
|
+
export {};
|