@corva/ui 3.72.0-0 → 3.72.0-3
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/cjs-bundle/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/cjs-bundle/components/AppVersionsSelect/AppVersionsSelect.js.map +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.js.map +1 -1
- package/cjs-bundle/components/Chip/index.js.map +1 -1
- package/cjs-bundle/components/ColorPicker/ColorPicker.js.map +1 -1
- package/cjs-bundle/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/cjs-bundle/components/DevCenter/AppSideBar/AppSideBar.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js.map +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js.map +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/IsolatedPage.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/IsolatedPage.js.map +1 -1
- package/cjs-bundle/components/EChartsWrapper/EChartsWrapper.js +1 -1
- package/cjs-bundle/components/EChartsWrapper/EChartsWrapper.js.map +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js +1 -1
- package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/components/KeyboardKey/KeyboardKey.js.map +1 -1
- package/cjs-bundle/components/PinnableFilters/effects/index.js +1 -1
- package/cjs-bundle/components/PinnableFilters/effects/index.js.map +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeSidebar.js.map +1 -1
- package/cjs-bundle/components/Table/TableToolbar/TableToolbar.js.map +1 -1
- package/cjs-bundle/components/TruncatedText/index.js +1 -1
- package/cjs-bundle/components/TruncatedText/index.js.map +1 -1
- package/cjs-bundle/componentsV2/AppCommonsProvider/AppCommonsContext.js.map +1 -1
- package/cjs-bundle/componentsV2/AppCommonsProvider/utils.js +1 -1
- package/cjs-bundle/componentsV2/AppCommonsProvider/utils.js.map +1 -1
- package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/MenuItems.js +1 -1
- package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/MenuItems.js.map +1 -1
- package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.js +1 -1
- package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.js.map +1 -1
- package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
- package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js.map +1 -1
- package/cjs-bundle/componentsV2/Autocomplete/Autocomplete.js.map +1 -1
- package/cjs-bundle/componentsV2/FileIcon/constants.js.map +1 -1
- package/cjs-bundle/componentsV2/Tabs/Tabs.js.map +1 -1
- package/cjs-bundle/utils/createAdaptiveRoot.js +2 -0
- package/cjs-bundle/utils/createAdaptiveRoot.js.map +1 -0
- package/components/AddComment/Popover.d.ts +1 -1
- package/components/AddComment/Popover.d.ts.map +1 -1
- package/components/AddComment/Popup.d.ts +1 -1
- package/components/AddComment/Popup.d.ts.map +1 -1
- package/components/AddComment/components/Content.d.ts +1 -1
- package/components/AddComment/components/Content.d.ts.map +1 -1
- package/components/AdvancedSlider/Handle.d.ts +1 -1
- package/components/AdvancedSlider/Handle.d.ts.map +1 -1
- package/components/AdvancedSlider/icons/HandleIcon.d.ts +1 -1
- package/components/AdvancedSlider/icons/HandleIcon.d.ts.map +1 -1
- package/components/AnchorsList/AnchorsList.d.ts +1 -1
- package/components/AnchorsList/AnchorsList.d.ts.map +1 -1
- package/components/Annotations/AnnotationsContext.d.ts +1 -1
- package/components/Annotations/AnnotationsContext.d.ts.map +1 -1
- package/components/AppIcon/AppIcon.d.ts +1 -1
- package/components/AppIcon/AppIcon.d.ts.map +1 -1
- package/components/AppIcon/assets/CompletionAppIcon.d.ts +1 -1
- package/components/AppIcon/assets/CompletionAppIcon.d.ts.map +1 -1
- package/components/AppIcon/assets/CompletionAppIconBe.d.ts +1 -1
- package/components/AppIcon/assets/CompletionAppIconBe.d.ts.map +1 -1
- package/components/AppIcon/assets/DrillingAppIcon.d.ts +1 -1
- package/components/AppIcon/assets/DrillingAppIcon.d.ts.map +1 -1
- package/components/AppIcon/assets/DrillingAppIconBe.d.ts +1 -1
- package/components/AppIcon/assets/DrillingAppIconBe.d.ts.map +1 -1
- package/components/AppIcon/assets/InterventionAppIcon.d.ts +1 -1
- package/components/AppIcon/assets/InterventionAppIcon.d.ts.map +1 -1
- package/components/AppIcon/assets/NoSegmentAppIcon.d.ts +1 -1
- package/components/AppIcon/assets/NoSegmentAppIcon.d.ts.map +1 -1
- package/components/AppIcon/assets/NoSegmentAppIconBeIdle.d.ts +1 -1
- package/components/AppIcon/assets/NoSegmentAppIconBeIdle.d.ts.map +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.d.ts +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js.map +1 -1
- package/components/AssetEditor/index.d.ts +1 -1
- package/components/AssetEditorV2/components/MultipleAssetsToggle.d.ts +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelect.d.ts +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelectV2.d.ts +1 -1
- package/components/AssetEditorV2/components/SecondaryAssetSelect.d.ts +1 -1
- package/components/AssetEditorV2/index.d.ts +1 -1
- package/components/AssetsMultipleSelector/AssetsMultipleSelector.d.ts +1 -1
- package/components/AssetsMultipleSelector/AssetsMultipleSelector.d.ts.map +1 -1
- package/components/AttachFileButton/AttachFileButton.d.ts +1 -1
- package/components/AttachFileButton/AttachFileButton.d.ts.map +1 -1
- package/components/AttachmentLightbox/AttachmentLightbox.d.ts +1 -1
- package/components/AttachmentLightbox/AttachmentLightbox.d.ts.map +1 -1
- package/components/AttachmentLightbox/useAttachmentLightbox.d.ts +1 -1
- package/components/AttachmentPreview/AttachmentTile.d.ts +1 -1
- package/components/AttachmentPreview/AttachmentTile.d.ts.map +1 -1
- package/components/AttachmentPreview/StoredAttachmentPreview.d.ts +1 -1
- package/components/AttachmentPreview/StoredAttachmentPreview.d.ts.map +1 -1
- package/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/Map/Map.d.ts +1 -1
- package/components/BICOffsetPickerDialog/components/Map/Map.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
- package/components/BICOffsetPickerDialog/components/Map/Map.js.map +1 -1
- package/components/BICOffsetPickerDialog/components/Map/index.d.ts +1 -1
- package/components/BICOffsetPickerDialog/components/Map/index.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.d.ts +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetResultSection.d.ts +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetTypesSection.d.ts +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AutoCompleteAssetSearch.d.ts +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.d.ts +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.d.ts +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/WellListItem.d.ts +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/WellListItem.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/index.d.ts +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/index.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/index.d.ts +1 -1
- package/components/BICOffsetPickerDialog/index.d.ts.map +1 -1
- package/components/Breadcrumbs/index.d.ts +1 -1
- package/components/Breadcrumbs/index.d.ts.map +1 -1
- package/components/Button/components/LiveButton/index.d.ts +1 -1
- package/components/Button/components/LiveButton/index.d.ts.map +1 -1
- package/components/Casing/CasingComponentIcon.d.ts +1 -1
- package/components/Casing/CasingComponentIcon.d.ts.map +1 -1
- package/components/Casing/CasingTable/CasingComponent.d.ts +1 -1
- package/components/Casing/CasingTable/index.d.ts +1 -1
- package/components/Casing/CasingTableV2/CasingTableV2.d.ts +1 -1
- package/components/Casing/CasingTableV2/CasingTableV2.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Browser.d.ts +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Browser.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.d.ts +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/Component.d.ts +1 -1
- package/components/Casing/CasingTableV2/components/Component.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Browser.d.ts +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Browser.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.d.ts +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/EditComponentDialog.d.ts +1 -1
- package/components/Casing/CasingTableV2/components/EditComponentDialog.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/Header.d.ts +1 -1
- package/components/Casing/CasingTableV2/components/Header.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/SortableComponent.d.ts +1 -1
- package/components/Casing/CasingTableV2/components/SortableComponents.d.ts +1 -1
- package/components/Casing/CasingTile/CasingTile.d.ts +1 -1
- package/components/Casing/CasingTile/CasingTile.d.ts.map +1 -1
- package/components/Casing/CasingTileIcon.d.ts +1 -1
- package/components/Casing/CasingTileIcon.d.ts.map +1 -1
- package/components/Chart/components/AxisDropdown.d.ts +1 -1
- package/components/Chart/components/AxisDropdown.d.ts.map +1 -1
- package/components/Chart/components/AxisOverlay.d.ts +1 -1
- package/components/Chart/components/AxisOverlay.d.ts.map +1 -1
- package/components/Chart/components/ChartButton.d.ts +1 -1
- package/components/Chart/components/ChartButton.d.ts.map +1 -1
- package/components/Chart/components/ChartButtons.d.ts +1 -1
- package/components/Chart/components/ChartButtons.d.ts.map +1 -1
- package/components/Chart/components/ChartSelect.d.ts +1 -1
- package/components/Chart/components/ChartSelect.d.ts.map +1 -1
- package/components/Chart/components/ChartWrapper.d.ts +1 -1
- package/components/Chart/components/buttons/ChartTypeButton.d.ts +1 -1
- package/components/Chart/components/buttons/DragToZoomButton.d.ts +1 -1
- package/components/Chart/components/buttons/HideAxesButton.d.ts +1 -1
- package/components/Chart/components/buttons/PanButton.d.ts +1 -1
- package/components/Chart/components/buttons/ResetZoomButton.d.ts +1 -1
- package/components/Chart/components/buttons/ZoomInButton.d.ts +1 -1
- package/components/Chart/components/buttons/ZoomOutButton.d.ts +1 -1
- package/components/ChartActionsList/icons/GoLive.d.ts +1 -1
- package/components/ChartActionsList/icons/GoLive.d.ts.map +1 -1
- package/components/ChartActionsList/icons/LeftArrow.d.ts +1 -1
- package/components/ChartActionsList/icons/LeftArrow.d.ts.map +1 -1
- package/components/ChartActionsList/icons/RightArrow.d.ts +1 -1
- package/components/ChartActionsList/icons/RightArrow.d.ts.map +1 -1
- package/components/ChartActionsList/icons/TimeRange.d.ts +1 -1
- package/components/ChartActionsList/icons/TimeRange.d.ts.map +1 -1
- package/components/ChartActionsList/icons/ZoomIn.d.ts +1 -1
- package/components/ChartActionsList/icons/ZoomIn.d.ts.map +1 -1
- package/components/ChartActionsList/icons/ZoomOut.d.ts +1 -1
- package/components/ChartActionsList/icons/ZoomOut.d.ts.map +1 -1
- package/components/Checkbox/index.d.ts +1 -1
- package/components/Checkbox/index.d.ts.map +1 -1
- package/components/Chip/index.d.ts +1 -1
- package/components/Chip/index.d.ts.map +1 -1
- package/components/Chip/index.js.map +1 -1
- package/components/CollapsibleContent.d.ts +1 -1
- package/components/ColorPicker/ColorPicker.d.ts +2 -2
- package/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/components/ColorPicker/ColorPicker.js.map +1 -1
- package/components/ColorPicker/PaletteChromePicker/ColorSquare/ColorSquare.d.ts +1 -1
- package/components/ColorPicker/PaletteChromePicker/ColorSquare/ColorSquare.d.ts.map +1 -1
- package/components/CommentComposer/ChatChannelSelector.d.ts +1 -1
- package/components/CommentComposer/ChatChannelSelector.d.ts.map +1 -1
- package/components/CommentComposer/CommentComposer.d.ts +1 -1
- package/components/CommentComposer/CommentComposer.d.ts.map +1 -1
- package/components/CommentComposer/CommentMetaLine.d.ts +1 -1
- package/components/CommentComposer/CommentMetaLine.d.ts.map +1 -1
- package/components/CommentComposer/CommentReplyInput.d.ts +1 -1
- package/components/CommentComposer/CommentReplyInput.d.ts.map +1 -1
- package/components/CommentComposer/ShareToChatRow.d.ts +1 -1
- package/components/CommentComposer/ShareToChatRow.d.ts.map +1 -1
- package/components/ContextMenuItem/index.d.ts +1 -1
- package/components/ContextMenuItem/index.d.ts.map +1 -1
- package/components/CopyToClipboard/CopyToClipboard.d.ts +1 -1
- package/components/CopyToClipboard/CopyToClipboard.d.ts.map +1 -1
- package/components/CustomSelect/index.d.ts +1 -1
- package/components/DevCenter/AppHeader/AppHeader.d.ts +1 -1
- package/components/DevCenter/AppHeader/AppHeader.d.ts.map +1 -1
- package/components/DevCenter/AppHeader/PadIcon.d.ts +1 -1
- package/components/DevCenter/AppHeader/PadIcon.d.ts.map +1 -1
- package/components/DevCenter/AppHeader/PadMode.d.ts +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js.map +1 -1
- package/components/DevCenter/AppsDataProvider/AppsDataProvider.d.ts +1 -1
- package/components/DevCenter/AppsDataProvider/AppsDataProvider.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.d.ts +3 -2
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.d.ts +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.d.ts +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.d.ts +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.d.ts +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.d.ts +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchProvider.d.ts +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchProvider.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.d.ts +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.d.ts +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.d.ts +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.d.ts +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.d.ts +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.d.ts +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.d.ts.map +1 -1
- package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.d.ts +1 -1
- package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.d.ts.map +1 -1
- package/components/DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.d.ts +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.d.ts.map +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js.map +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.d.ts +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.d.ts.map +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/IsolatedPage.d.ts +2 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/IsolatedPage.d.ts.map +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/IsolatedPage.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/IsolatedPage.js.map +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/__tests__/isReact17App.test.d.ts +2 -0
- package/components/DevCenter/IsolatedDevCenterAppContainer/__tests__/isReact17App.test.d.ts.map +1 -0
- package/components/DevCenter/icons/CorvaLogoSmall.d.ts +1 -1
- package/components/DevCenter/icons/CorvaLogoSmall.d.ts.map +1 -1
- package/components/DevCenter/icons/DevCenterIcon.d.ts +1 -1
- package/components/DevCenter/icons/DevCenterIcon.d.ts.map +1 -1
- package/components/DisabledSettingsMessage/DisabledSettingsMessage.d.ts +1 -1
- package/components/DisabledSettingsMessage/DisabledSettingsMessage.d.ts.map +1 -1
- package/components/DocumentViewer/DocumentViewer.d.ts +1 -1
- package/components/Drillstring/BHACasingEmptyView/BHACasingEmptyView.d.ts +1 -1
- package/components/Drillstring/BHACasingEmptyView/BHACasingEmptyView.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentDetail/constants.d.ts +2 -2
- package/components/Drillstring/BHAComponentDetail/index.d.ts +1 -1
- package/components/Drillstring/BHAComponentDetail/index.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentIcon.d.ts +1 -1
- package/components/Drillstring/BHAComponentIcon.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Browser.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Browser.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Browser.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Browser.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Header.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Header.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Browser.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Browser.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Browser.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Browser.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Browser.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/SortableComponent.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/SortableComponents.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Browser.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Browser.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Suggestions/AutoCompleteDialog.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Suggestions/AutoCompleteDialog.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Browser.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/InputText.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/InputText.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.d.ts.map +1 -1
- package/components/Drillstring/BHAList/BHAList.d.ts +1 -1
- package/components/Drillstring/BHAList/BHAList.d.ts.map +1 -1
- package/components/Drillstring/BHASchematic.d.ts +1 -1
- package/components/Drillstring/BHASchematic.d.ts.map +1 -1
- package/components/Drillstring/BHATable/BHAComponent.d.ts +1 -1
- package/components/Drillstring/BHATable/index.d.ts +1 -1
- package/components/Drillstring/BHATable/index.d.ts.map +1 -1
- package/components/Drillstring/BHATile/BHATile.d.ts +1 -1
- package/components/Drillstring/BHATile/BHATile.d.ts.map +1 -1
- package/components/Drillstring/BHATileIcon.d.ts +1 -1
- package/components/Drillstring/BHATileIcon.d.ts.map +1 -1
- package/components/Drillstring/BhaIndicator/BhaIndicator.d.ts +1 -1
- package/components/Drillstring/DrillstringDetail/DrillstringDetail.d.ts +1 -1
- package/components/EChartsWrapper/EChartsWrapper.d.ts +2 -2
- package/components/EChartsWrapper/EChartsWrapper.d.ts.map +1 -1
- package/components/EChartsWrapper/EChartsWrapper.js +1 -1
- package/components/EChartsWrapper/EChartsWrapper.js.map +1 -1
- package/components/EditableItem/EditableItemWithBadge/index.d.ts +1 -1
- package/components/EmbeddedApp/DevCenterEmbeddedApp.d.ts +1 -1
- package/components/EmbeddedApp/EmbeddedApp.d.ts +1 -1
- package/components/EmbeddedApp/components/AppInfo.d.ts +2 -2
- package/components/EmojiIconButton.d.ts +1 -1
- package/components/EmojiIconButton.d.ts.map +1 -1
- package/components/EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.d.ts +1 -1
- package/components/EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.d.ts.map +1 -1
- package/components/EmptyView/EmptyView.d.ts +1 -1
- package/components/EmptyView/EmptyView.d.ts.map +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.d.ts +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.d.ts.map +1 -1
- package/components/FeedItem/FeedItem.d.ts +1 -1
- package/components/FeedItem/FeedItem.d.ts.map +1 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.d.ts +1 -1
- package/components/FeedItem/components/AvatarIcon.d.ts +1 -1
- package/components/FeedItem/components/AvatarIcon.d.ts.map +1 -1
- package/components/FeedItem/components/CompletionDateTimestamp.d.ts +1 -1
- package/components/FeedItem/components/CompletionDateTimestamp.d.ts.map +1 -1
- package/components/FeedItem/components/Content.d.ts +1 -1
- package/components/FeedItem/components/Content.d.ts.map +1 -1
- package/components/FeedItem/components/CreatedAt.d.ts +1 -1
- package/components/FeedItem/components/CreatedAt.d.ts.map +1 -1
- package/components/FeedItem/components/FeedComments.d.ts +1 -1
- package/components/FeedItem/components/FeedComments.d.ts.map +1 -1
- package/components/FeedItem/components/Icon.d.ts +1 -1
- package/components/FeedItem/components/Icon.d.ts.map +1 -1
- package/components/FeedItem/components/LessonsLearnedLeafIcon.d.ts +1 -1
- package/components/FeedItem/components/LessonsLearnedLeafIcon.d.ts.map +1 -1
- package/components/FeedItem/components/Reactions.d.ts +1 -1
- package/components/FeedItem/components/Reactions.d.ts.map +1 -1
- package/components/FeedItem/components/RigAndWell.d.ts +1 -1
- package/components/FeedItem/components/RigAndWell.d.ts.map +1 -1
- package/components/FeedItem/components/TypeAndAssetTitle.d.ts +1 -1
- package/components/FeedItem/components/TypeAndAssetTitle.d.ts.map +1 -1
- package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.d.ts +1 -1
- package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.d.ts.map +1 -1
- package/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.d.ts +1 -1
- package/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.d.ts.map +1 -1
- package/components/FeedItem/editModals/LessonsLearnedEdit/LessonsLearnedEdit.d.ts +1 -1
- package/components/FeedItem/editModals/LessonsLearnedEdit/LessonsLearnedEdit.d.ts.map +1 -1
- package/components/FeedItem/editModals/NptLessonsCommentEdit/NptLessonsCommentEdit.d.ts +1 -1
- package/components/FeedItem/editModals/NptLessonsCommentEdit/NptLessonsCommentEdit.d.ts.map +1 -1
- package/components/FeedItem/editModals/PCCommentEdit/PCCommentEdit.d.ts +1 -1
- package/components/FeedItem/editModals/PCCommentEdit/PCCommentEdit.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/AlertFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaNumber.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaSchematic.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/NoData.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/CompletionDocumentFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/CompletionNptFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/DepthCommentFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/DocumentFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/DvDCommentFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/DvDCommentFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/FluidReportFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/GenericDataCommentFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/GeosteeringFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Critical.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Critical.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Major.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Major.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Minor.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Minor.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/NptFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/PCCommentFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/PCCommentFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/PostFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/NoData.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Predictions.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/PredictionsItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/Stages.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/index.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js.map +1 -1
- package/components/FeedItem/feedItemTypes/TracesMemoFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/VerticalSectionAzimuth.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.d.ts +1 -1
- package/components/FileIcon/FileIcon.d.ts +1 -1
- package/components/FileIcon/FileIcon.d.ts.map +1 -1
- package/components/FileTypeIcon.d.ts +1 -1
- package/components/FileUploadIconButton.d.ts +2 -2
- package/components/FileUploadIconButton.d.ts.map +1 -1
- package/components/FilesDropzone/FilesDropzone.d.ts +1 -1
- package/components/FilesDropzone/FilesDropzone.d.ts.map +1 -1
- package/components/FilesLoader/Icons/IconCancel.d.ts +1 -1
- package/components/FilesLoader/Icons/IconCancel.d.ts.map +1 -1
- package/components/FilesLoader/Icons/IconWarning.d.ts +1 -1
- package/components/FilesLoader/Icons/IconWarning.d.ts.map +1 -1
- package/components/FilesLoaderV2/FilesLoaderV2.d.ts +1 -1
- package/components/FilesLoaderV2/FilesLoaderV2.d.ts.map +1 -1
- package/components/FilesProcessor/FilesProcessor.d.ts +1 -1
- package/components/FilesProcessor/FilesProcessor.d.ts.map +1 -1
- package/components/FilesProcessor/Processor.d.ts +1 -1
- package/components/FilesProcessor/Processor.d.ts.map +1 -1
- package/components/FolderMenuItem/components/ClosedFolderIcon.d.ts +1 -1
- package/components/FolderMenuItem/components/ClosedFolderIcon.d.ts.map +1 -1
- package/components/FolderMenuItem/components/FolderIcon.d.ts +1 -1
- package/components/FolderMenuItem/components/OpenFolderIcon.d.ts +1 -1
- package/components/FolderMenuItem/components/OpenFolderIcon.d.ts.map +1 -1
- package/components/FolderMenuItem/index.d.ts +1 -1
- package/components/FolderMenuItemWithLinks/index.d.ts +1 -1
- package/components/Formula/CloseSuggestion.d.ts +1 -1
- package/components/Formula/CloseSuggestion.d.ts.map +1 -1
- package/components/Formula/Formula.d.ts +1 -1
- package/components/Formula/Formula.d.ts.map +1 -1
- package/components/Formula/FormulaTextEditor.d.ts +1 -1
- package/components/Formula/FormulaTextEditor.d.ts.map +1 -1
- package/components/Formula/RootXIcon.d.ts +1 -1
- package/components/Formula/SuggestionsMenu.d.ts +1 -1
- package/components/Formula/SuggestionsMenu.d.ts.map +1 -1
- package/components/GoogleDocsViewer/index.d.ts +1 -1
- package/components/GradientManager/GradientManagerWithStorage/GradientManagerWithStorage.d.ts +1 -1
- package/components/GradientManager/GradientManagerWithStorage/GradientManagerWithStorage.d.ts.map +1 -1
- package/components/GradientManager/__tests__/pageHelpers.d.ts +8 -4
- package/components/GradientManager/__tests__/pageHelpers.d.ts.map +1 -1
- package/components/GradientPicker/GradientPicker.d.ts +1 -1
- package/components/GradientPicker/GradientPicker.d.ts.map +1 -1
- package/components/HeaderLayout/HeaderLayout.d.ts +1 -1
- package/components/HeaderLayout/HeaderLayout.d.ts.map +1 -1
- package/components/HeaderLayout/effects/index.d.ts +1 -1
- package/components/HelpCenter/HelpCenterIcon.d.ts +1 -1
- package/components/HelpCenter/HelpCenterIcon.d.ts.map +1 -1
- package/components/Hint/Hint.d.ts +1 -1
- package/components/Hint/Hint.d.ts.map +1 -1
- package/components/Icons/AnnotationIcon.d.ts +1 -1
- package/components/Icons/AttachIcon.d.ts +1 -1
- package/components/Icons/EmojiIcon.d.ts +1 -1
- package/components/Icons/RecommendationIcon.d.ts +1 -1
- package/components/Icons/SendIcon.d.ts +1 -1
- package/components/InfiniteList/index.d.ts +3 -3
- package/components/InfiniteList/index.d.ts.map +1 -1
- package/components/KeyboardDateTimePicker.d.ts +1 -1
- package/components/LabelsCounter/LabelsCounter.d.ts +1 -1
- package/components/MenuItem/index.d.ts +1 -1
- package/components/MenuItem/index.d.ts.map +1 -1
- package/components/MiddleTruncate/MiddleTruncate.d.ts +1 -1
- package/components/MiddleTruncate/MiddleTruncate.d.ts.map +1 -1
- package/components/NewDocumentViewer/effects/useFileContent.d.ts +1 -1
- package/components/Notifications/NotificationsContainer.d.ts +1 -1
- package/components/Notifications/NotificationsContainer.d.ts.map +1 -1
- package/components/OffsetWellChips/icons/SubjectIcon.d.ts +1 -1
- package/components/OffsetWellChips/icons/SubjectIcon.d.ts.map +1 -1
- package/components/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
- package/components/OffsetWellMap/OffsetWellMap.js +1 -1
- package/components/OffsetWellMap/OffsetWellMap.js.map +1 -1
- package/components/OffsetWellMap/WellTooltip.d.ts +1 -1
- package/components/OffsetWellMap/WellTooltip.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/OffsetWellPickerDialog.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/MultiSelect.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Filter/MultiSelect.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SingleSelect.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SingleSelect.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Filter/index.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Filter/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Map/Map.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Map/Map.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
- package/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Map/index.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Map/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Map/popupGenerator.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Map/popupGenerator.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Table/SubjectIndicator.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Table/SubjectIndicator.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Table/WellSearch.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Table/WellSearch.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/ClearFiltersButton.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/ClearFiltersButton.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/MultiSelect.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/MultiSelect.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/RadiusInput.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/RadiusInput.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/FormationsLegend.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/FormationsLegend.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/popupGenerator.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/popupGenerator.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AssetSearch.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetResultSection.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetTypesSection.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AutoCompleteAssetSearch.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/SubjectIndicator.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/SubjectIndicator.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/index.d.ts +1 -1
- package/components/OffsetWellPickerV3/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/Filter/MultiSelect.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/Filter/PeriodSelect.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/Filter/RadiusInput.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/Filter/SingleSelect.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/Filter/WellSection.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/Map/WellsMap.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetTypesSection.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/ViewWellSectionsName.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.d.ts +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5.d.ts +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/AppHeader.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/AppHeader.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderStats/HeaderStats.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderStats/HeaderStats.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/Filter.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/AdditionalFilterControls/AdditionalFilterControls.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/AdditionalFilterControls/AdditionalFilterControls.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/FilterOptionsList/FilterItem.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/FilterOptionsList/FilterItem.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/FilterOptionsList/FilterOptionsList.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/MultiFilterSelect/MultiFilterSelect.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/StatusFilterSelect/StatusFilterSelect.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/WellSectionSelect/WellSectionSelect.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/GhostSelectionZone.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/components/KeyboardKey/KeyboardKey.d.ts +3 -6
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/components/KeyboardKey/KeyboardKey.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/components/KeyboardKey/KeyboardKey.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapResizeVeil/MapResizeVeil.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapResizeVeil/MapResizeVeil.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/MapColumn/MapColumn.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/MapColumn/MapColumn.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/MapResizeHandle/MapResizeHandle.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/MapResizeHandle/MapResizeHandle.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetTypesSection/AssetTypesSection.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetTypesSection/AssetTypesSection.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/DistanceCell/DistanceCell.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/DistanceCell/DistanceCell.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/LastActiveCell/LastActiveCell.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/LastActiveCell/LastActiveCell.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/MetricsCells/MetricsCells.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/MetricsCells/MetricsCells.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/StatusCell/StatusCell.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/StatusCell/StatusCell.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/TaScoreCell/TaScoreCell.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/TaScoreCell/TaScoreCell.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellSectionCell/WellSectionCell.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellSectionCell/WellSectionCell.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricCell/MetricCell.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricCell/MetricCell.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricsHeaderCells/MetricsHeaderCells.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricsHeaderCells/MetricsHeaderCells.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricsSelect/MetricsSelect.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricsSelect/MetricsSelect.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/OffsetWellsTableHead/OffsetWellsTableHead.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/OffsetWellsTableHead/OffsetWellsTableHead.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/OffsetWellsTableRow/OffsetWellsTableRow.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/OffsetWellsTableRow/OffsetWellsTableRow.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/SettingsAccordion/SettingsAccordion.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/SettingsAccordion/SettingsAccordion.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SkeletonRows/SkeletonRows.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SkeletonRows/SkeletonRows.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SkeletonTableRow/SkeletonTableRow.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SkeletonTableRow/SkeletonTableRow.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SortableHeaderCell/SortableHeaderCell.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SortableHeaderCell/SortableHeaderCell.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/ViewWellSectionsName/ViewWellSectionsName.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/ViewWellSectionsName/ViewWellSectionsName.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/TableSection/TableSection.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/TableSection/TableSection.d.ts.map +1 -1
- package/components/PadOffsetsPicker/OffsetAssetChip.d.ts +1 -1
- package/components/PadOffsetsPicker/OffsetAssetsListExpander.d.ts +1 -1
- package/components/PadOffsetsPicker/PadOffsetsPicker.d.ts +1 -1
- package/components/PadOffsetsPicker/StagesSelector.d.ts +1 -1
- package/components/ParameterCharts/ParameterCharts.d.ts +1 -1
- package/components/ParameterCharts/components/ChartContainer.d.ts +1 -1
- package/components/ParameterCharts/components/Charts/EmptyChart.d.ts +1 -1
- package/components/ParameterCharts/components/Charts/EmptyChart.d.ts.map +1 -1
- package/components/ParameterCharts/components/Charts/LineChart.d.ts +1 -1
- package/components/ParameterCharts/components/DataLoadingIndicator.d.ts +1 -1
- package/components/ParameterCharts/components/DataLoadingIndicator.d.ts.map +1 -1
- package/components/ParameterCharts/components/SingleChannelTrackSettings.d.ts +1 -1
- package/components/ParameterCharts/components/Tooltip/CursorPositioner.d.ts +1 -1
- package/components/ParameterCharts/components/Tooltip/CursorPositioner.d.ts.map +1 -1
- package/components/ParameterCharts/components/Tooltip/Tooltip.d.ts +1 -1
- package/components/ParameterCharts/components/Track.d.ts +1 -1
- package/components/PinnableFilters/PinnableFilters.d.ts +1 -1
- package/components/PinnableFilters/PinnableFilters.d.ts.map +1 -1
- package/components/PinnableFilters/effects/index.d.ts +1 -1
- package/components/PinnableFilters/effects/index.d.ts.map +1 -1
- package/components/PinnableFilters/effects/index.js +1 -1
- package/components/PinnableFilters/effects/index.js.map +1 -1
- package/components/Popover/Popover.d.ts +1 -1
- package/components/Popover/Popover.d.ts.map +1 -1
- package/components/Popper/Popper.d.ts +1 -1
- package/components/Popper/Popper.d.ts.map +1 -1
- package/components/PostInput/PostInput.d.ts +1 -1
- package/components/PriceInput/FormattedNumber.d.ts +1 -1
- package/components/PriceInput/FormattedNumber.d.ts.map +1 -1
- package/components/PriceInput/PriceInput.d.ts +1 -1
- package/components/RangeSlider/inputs/FromInput.d.ts +1 -1
- package/components/RangeSlider/inputs/FromInput.d.ts.map +1 -1
- package/components/RangeSlider/inputs/ToInput.d.ts +1 -1
- package/components/RangeSlider/inputs/ToInput.d.ts.map +1 -1
- package/components/RealTimeValuesSidebar/RealTimeSidebar.d.ts +2 -1
- package/components/RealTimeValuesSidebar/RealTimeSidebar.d.ts.map +1 -1
- package/components/RealTimeValuesSidebar/RealTimeSidebar.js.map +1 -1
- package/components/RealTimeValuesSidebar/types.d.ts +1 -3
- package/components/RealTimeValuesSidebar/types.d.ts.map +1 -1
- package/components/Search/Search.d.ts +1 -1
- package/components/Search/assets/SearchIcon.d.ts +1 -1
- package/components/Search/assets/SearchIcon.d.ts.map +1 -1
- package/components/Search/components/Groups.d.ts +1 -1
- package/components/Search/components/Groups.d.ts.map +1 -1
- package/components/Search/components/InputAdornmentLeft.d.ts +1 -1
- package/components/Search/components/InputAdornmentLeft.d.ts.map +1 -1
- package/components/Search/components/RecentSearches.d.ts +1 -1
- package/components/Search/components/RecentSearches.d.ts.map +1 -1
- package/components/Search/components/SelectAllListItem.d.ts +1 -1
- package/components/Search/components/SelectAllListItem.d.ts.map +1 -1
- package/components/SearchInput/index.d.ts +1 -1
- package/components/SearchInput/index.d.ts.map +1 -1
- package/components/SettingEditors/DropdownEditor/index.d.ts +1 -1
- package/components/SettingEditors/DropdownEditor/index.d.ts.map +1 -1
- package/components/SettingEditors/RadioEditor/index.d.ts +1 -1
- package/components/SettingEditors/RadioEditor/index.d.ts.map +1 -1
- package/components/SlateFormattedText/Elements/ImageElement/ImageElement.d.ts +1 -1
- package/components/SlateFormattedText/Elements/VideoElement/VideoElement.d.ts +1 -1
- package/components/SlateFormattedText/RenderElements.d.ts +2 -2
- package/components/SlateFormattedText/RenderElements.d.ts.map +1 -1
- package/components/StageDesignVActual/ComparisonBar/ComparisonBar.d.ts +1 -1
- package/components/StageDesignVActual/ComparisonHeader.d.ts +1 -1
- package/components/StageDesignVActual/ComparisonRow.d.ts +1 -1
- package/components/StageDesignVActual/ElementsComparison/ElementsComparison.d.ts +1 -1
- package/components/Stepper/Step/Step.d.ts +1 -1
- package/components/Stepper/Step/Step.d.ts.map +1 -1
- package/components/Stepper/Stepper.d.ts +1 -1
- package/components/Stepper/StepsWrapper.d.ts +1 -1
- package/components/Stepper/StepsWrapper.d.ts.map +1 -1
- package/components/StyledMenuItem/index.d.ts +1 -1
- package/components/StyledMenuItem/index.d.ts.map +1 -1
- package/components/Table/Table/Table.d.ts +1 -1
- package/components/Table/Table/Table.d.ts.map +1 -1
- package/components/Table/TableCell/TableCell.d.ts +1 -1
- package/components/Table/TableCell/TableCell.d.ts.map +1 -1
- package/components/Table/TableContainer/TableContainer.d.ts +1 -1
- package/components/Table/TableContainer/TableContainer.d.ts.map +1 -1
- package/components/Table/TablePagination/TablePagination.d.ts +3 -3
- package/components/Table/TablePagination/TablePagination.d.ts.map +1 -1
- package/components/Table/TableSortLabel/TableSortLabel.d.ts +1 -1
- package/components/Table/TableSortLabel/TableSortLabel.d.ts.map +1 -1
- package/components/Table/TableToolbar/TableToolbar.d.ts +2 -2
- package/components/Table/TableToolbar/TableToolbar.d.ts.map +1 -1
- package/components/Table/TableToolbar/TableToolbar.js.map +1 -1
- package/components/Tabs/Tab.d.ts +1 -1
- package/components/Tabs/Tab.d.ts.map +1 -1
- package/components/Template/TemplatePopover/index.d.ts +1 -1
- package/components/Template/TemplatePopover/index.d.ts.map +1 -1
- package/components/Template/TemplateSharingDialog/UsersChipSelector.d.ts +1 -1
- package/components/Template/TemplateSharingDialog/index.d.ts +1 -1
- package/components/Template/TemplateSharingDialog/index.d.ts.map +1 -1
- package/components/Toaster/ToastContainer.d.ts +1 -1
- package/components/Toaster/ToastContainer.d.ts.map +1 -1
- package/components/TracesEditModal/TracesEditModal.d.ts +1 -1
- package/components/TracesEditModal/TracesEditModalContainer.d.ts +1 -1
- package/components/TruncatedText/index.d.ts +1 -1
- package/components/TruncatedText/index.d.ts.map +1 -1
- package/components/TruncatedText/index.js +1 -1
- package/components/TruncatedText/index.js.map +1 -1
- package/components/Typography.d.ts +18 -18
- package/components/VirtualizedTable/CustomizeColumnsDialog.d.ts +1 -1
- package/components/VirtualizedTable/CustomizeColumnsDialog.d.ts.map +1 -1
- package/components/VirtualizedTable/DraggableList.d.ts +1 -1
- package/components/VirtualizedTable/index.d.ts +1 -1
- package/components/VirtualizedTable/index.d.ts.map +1 -1
- package/components/WellSummary/ActivitySummaryChart.d.ts +1 -1
- package/components/WellSummary/ActivitySummaryChart.d.ts.map +1 -1
- package/components/WellSummary/FracWirelineTimeChart.d.ts +1 -1
- package/components/WellSummary/FracWirelineTimeChart.d.ts.map +1 -1
- package/components/WellSummary/WellSummaryItemLabel.d.ts +1 -1
- package/components/WellSummary/WellSummaryItemLabel.d.ts.map +1 -1
- package/components/WellSummary/WellSummaryItemTitle.d.ts +1 -1
- package/components/WellSummary/WellSummaryItemTitle.d.ts.map +1 -1
- package/components/WellSummary/WellSummaryItemValue.d.ts +1 -1
- package/components/WellSummary/WellSummaryItemValue.d.ts.map +1 -1
- package/componentsV2/Accordion/Accordion.d.ts +1 -1
- package/componentsV2/Accordion/Accordion.d.ts.map +1 -1
- package/componentsV2/Accordion/Accordion.stories.d.ts +8 -8
- package/componentsV2/Accordion/Accordion.stories.d.ts.map +1 -1
- package/componentsV2/AppCommonsProvider/AppCommonsContext.d.ts +1 -0
- package/componentsV2/AppCommonsProvider/AppCommonsContext.d.ts.map +1 -1
- package/componentsV2/AppCommonsProvider/AppCommonsContext.js.map +1 -1
- package/componentsV2/AppCommonsProvider/AppCommonsProvider.d.ts +1 -1
- package/componentsV2/AppCommonsProvider/AppCommonsProvider.d.ts.map +1 -1
- package/componentsV2/AppCommonsProvider/utils.d.ts +1 -1
- package/componentsV2/AppCommonsProvider/utils.d.ts.map +1 -1
- package/componentsV2/AppCommonsProvider/utils.js +1 -1
- package/componentsV2/AppCommonsProvider/utils.js.map +1 -1
- package/componentsV2/AppContainer/AppContainer.stories.d.ts +3 -3
- package/componentsV2/AppContainer/AppContainer.stories.d.ts.map +1 -1
- package/componentsV2/AppDqPopover/AppDqPopover.d.ts +1 -1
- package/componentsV2/AppDqPopover/AppDqPopover.d.ts.map +1 -1
- package/componentsV2/AppDqPopover/DqAlert/DqAlert.d.ts +1 -1
- package/componentsV2/AppDqPopover/DqAlert/DqAlert.d.ts.map +1 -1
- package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.d.ts +1 -1
- package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.d.ts.map +1 -1
- package/componentsV2/AppDqPopover/DqAsset/DqAsset.d.ts +1 -1
- package/componentsV2/AppDqPopover/DqAsset/DqAsset.d.ts.map +1 -1
- package/componentsV2/AppFooter/AppFooter.d.ts +1 -1
- package/componentsV2/AppFooter/AppFooter.d.ts.map +1 -1
- package/componentsV2/AppFooter/AppFooter.stories.d.ts +4 -4
- package/componentsV2/AppFooter/AppFooter.stories.d.ts.map +1 -1
- package/componentsV2/AppFooter/DqPopover/DqPopover.d.ts +1 -1
- package/componentsV2/AppFooter/DqPopover/DqPopover.d.ts.map +1 -1
- package/componentsV2/AppFooter/Warning.d.ts +1 -1
- package/componentsV2/AppFooter/Warning.d.ts.map +1 -1
- package/componentsV2/AppHeader/AppAssets/AppAssets.d.ts +1 -1
- package/componentsV2/AppHeader/AppAssets/AppAssets.d.ts.map +1 -1
- package/componentsV2/AppHeader/AppBadge/AppBadge.d.ts +1 -1
- package/componentsV2/AppHeader/AppBadge/AppBadge.d.ts.map +1 -1
- package/componentsV2/AppHeader/AppHeader.d.ts +1 -1
- package/componentsV2/AppHeader/AppHeader.d.ts.map +1 -1
- package/componentsV2/AppHeader/AppHeader.stories.d.ts +9 -9
- package/componentsV2/AppHeader/AppHeader.stories.d.ts.map +1 -1
- package/componentsV2/AppHeader/PadMode/PadMode.d.ts +1 -1
- package/componentsV2/AppHeader/PadMode/PadMode.d.ts.map +1 -1
- package/componentsV2/AppHeader/V3/Actions/Actions.d.ts +1 -1
- package/componentsV2/AppHeader/V3/Actions/Actions.d.ts.map +1 -1
- package/componentsV2/AppHeader/V3/AppHeaderV3.stories.d.ts +17 -17
- package/componentsV2/AppHeader/V3/AppHeaderV3.stories.d.ts.map +1 -1
- package/componentsV2/AppHeader/V3/AppRemoveConfirmationModal/AppRemoveConfirmationModal.d.ts +1 -1
- package/componentsV2/AppHeader/V3/AppRemoveConfirmationModal/AppRemoveConfirmationModal.d.ts.map +1 -1
- package/componentsV2/AppHeader/V3/AppTitle/AppTitle.d.ts +1 -1
- package/componentsV2/AppHeader/V3/AppTitle/AppTitle.d.ts.map +1 -1
- package/componentsV2/AppHeader/V3/AssetChips/AssetChips.d.ts +1 -1
- package/componentsV2/AppHeader/V3/AssetChips/AssetChips.d.ts.map +1 -1
- package/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.d.ts +1 -1
- package/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.d.ts.map +1 -1
- package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetItem.d.ts +1 -1
- package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetItem.d.ts.map +1 -1
- package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.d.ts +1 -1
- package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.d.ts.map +1 -1
- package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.d.ts +1 -1
- package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.d.ts.map +1 -1
- package/componentsV2/AppHeader/V3/VersionSelect/MenuItems.d.ts +2 -1
- package/componentsV2/AppHeader/V3/VersionSelect/MenuItems.d.ts.map +1 -1
- package/componentsV2/AppHeader/V3/VersionSelect/MenuItems.js +1 -1
- package/componentsV2/AppHeader/V3/VersionSelect/MenuItems.js.map +1 -1
- package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.d.ts +10 -0
- package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.d.ts.map +1 -1
- package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.js +1 -1
- package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.js.map +1 -1
- package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.d.ts +1 -1
- package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.d.ts.map +1 -1
- package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
- package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js.map +1 -1
- package/componentsV2/AppHeader/V3/VersionSelect/__tests__/VersionSelect.constants.test.d.ts +2 -0
- package/componentsV2/AppHeader/V3/VersionSelect/__tests__/VersionSelect.constants.test.d.ts.map +1 -0
- package/componentsV2/AppInfoMessage/AppMessageWrapper.d.ts +1 -1
- package/componentsV2/AppInfoMessage/AppMessageWrapper.d.ts.map +1 -1
- package/componentsV2/AppSettings/AppSettingsPinningContext.d.ts +1 -1
- package/componentsV2/AppSettings/AppSettingsPinningContext.d.ts.map +1 -1
- package/componentsV2/AppSettingsDivider/AppSettingsDivider.d.ts +1 -1
- package/componentsV2/AppSettingsDivider/AppSettingsDivider.d.ts.map +1 -1
- package/componentsV2/AppSettingsDivider/AppSettingsDivider.stories.d.ts +1 -1
- package/componentsV2/AppSettingsDivider/AppSettingsDivider.stories.d.ts.map +1 -1
- package/componentsV2/Autocomplete/Autocomplete.d.ts +4 -4
- package/componentsV2/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/componentsV2/Autocomplete/Autocomplete.js.map +1 -1
- package/componentsV2/Autocomplete/Autocomplete.stories.d.ts +22 -22
- package/componentsV2/Autocomplete/Autocomplete.stories.d.ts.map +1 -1
- package/componentsV2/Autocomplete/AutocompleteInput/AutocompleteInput.d.ts +1 -1
- package/componentsV2/Autocomplete/AutocompleteInput/AutocompleteInput.d.ts.map +1 -1
- package/componentsV2/Autocomplete/AutocompleteListBox.d.ts +3 -3
- package/componentsV2/Autocomplete/AutocompleteListBox.d.ts.map +1 -1
- package/componentsV2/Autocomplete/AutocompleteMenuItem.d.ts +1 -1
- package/componentsV2/Autocomplete/AutocompleteMenuItem.d.ts.map +1 -1
- package/componentsV2/Autocomplete/AutocompleteNext.stories.d.ts +22 -22
- package/componentsV2/Autocomplete/AutocompleteNext.stories.d.ts.map +1 -1
- package/componentsV2/Autocomplete/AutocompletePaper.d.ts +1 -1
- package/componentsV2/Autocomplete/AutocompletePaper.d.ts.map +1 -1
- package/componentsV2/Autocomplete/utils.d.ts +1 -1
- package/componentsV2/Autocomplete/utils.d.ts.map +1 -1
- package/componentsV2/Avatar/Avatar.stories.d.ts +4 -4
- package/componentsV2/Avatar/Avatar.stories.d.ts.map +1 -1
- package/componentsV2/AvatarGroup/AvatarGroup.stories.d.ts +3 -3
- package/componentsV2/AvatarGroup/AvatarGroup.stories.d.ts.map +1 -1
- package/componentsV2/BadgeBase/BadgeBase.d.ts +1 -1
- package/componentsV2/BadgeBase/BadgeBase.d.ts.map +1 -1
- package/componentsV2/BadgeComment/BadgeComment.stories.d.ts +1 -1
- package/componentsV2/BadgeComment/BadgeComment.stories.d.ts.map +1 -1
- package/componentsV2/BadgeComment/BadgeIcon.d.ts +1 -1
- package/componentsV2/BadgeComment/BadgeIcon.d.ts.map +1 -1
- package/componentsV2/BadgeCounter/BadgeCounter.d.ts +1 -1
- package/componentsV2/BadgeCounter/BadgeCounter.d.ts.map +1 -1
- package/componentsV2/BadgeCounter/BadgeCounter.stories.d.ts +3 -3
- package/componentsV2/BadgeCounter/BadgeCounter.stories.d.ts.map +1 -1
- package/componentsV2/BadgeDot/BadgeDot.d.ts +1 -1
- package/componentsV2/BadgeDot/BadgeDot.d.ts.map +1 -1
- package/componentsV2/BadgeDot/BadgeDot.stories.d.ts +3 -3
- package/componentsV2/BadgeDot/BadgeDot.stories.d.ts.map +1 -1
- package/componentsV2/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/componentsV2/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/componentsV2/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
- package/componentsV2/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/componentsV2/Button/Button.stories.d.ts +6 -6
- package/componentsV2/Button/Button.stories.d.ts.map +1 -1
- package/componentsV2/ButtonIcon/ButtonIcon.stories.d.ts +3 -3
- package/componentsV2/ButtonIcon/ButtonIcon.stories.d.ts.map +1 -1
- package/componentsV2/ButtonLive/ButtonLive.stories.d.ts +4 -4
- package/componentsV2/ButtonLive/ButtonLive.stories.d.ts.map +1 -1
- package/componentsV2/ButtonText/ButtonText.stories.d.ts +4 -4
- package/componentsV2/ButtonText/ButtonText.stories.d.ts.map +1 -1
- package/componentsV2/ChartCommonUtilities.stories.d.ts +7 -7
- package/componentsV2/ChartCommonUtilities.stories.d.ts.map +1 -1
- package/componentsV2/ChartHelper/ChartHelper.d.ts +1 -1
- package/componentsV2/ChartHelper/ChartHelper.d.ts.map +1 -1
- package/componentsV2/ChartHelper/ChartHelper.stories.d.ts +4 -4
- package/componentsV2/ChartHelper/ChartHelper.stories.d.ts.map +1 -1
- package/componentsV2/Checkbox/Checkbox.stories.d.ts +5 -5
- package/componentsV2/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/componentsV2/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/componentsV2/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
- package/componentsV2/CheckboxGroup/CheckboxGroup.stories.d.ts +5 -5
- package/componentsV2/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/componentsV2/Chip/Chip.stories.d.ts +9 -9
- package/componentsV2/Chip/Chip.stories.d.ts.map +1 -1
- package/componentsV2/ChipAlert/ChipAlert.stories.d.ts +3 -3
- package/componentsV2/ChipAlert/ChipAlert.stories.d.ts.map +1 -1
- package/componentsV2/ChipIndicator/ChipIndicator.stories.d.ts +4 -4
- package/componentsV2/ChipIndicator/ChipIndicator.stories.d.ts.map +1 -1
- package/componentsV2/ColorPicker/ColorPicker.d.ts +1 -1
- package/componentsV2/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/componentsV2/ColorPicker/ColorPicker.stories.d.ts +6 -6
- package/componentsV2/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/componentsV2/ColorPicker/OpacityDragtracker/OpacityDragtracker.d.ts +1 -1
- package/componentsV2/ColorPicker/OpacityDragtracker/OpacityDragtracker.d.ts.map +1 -1
- package/componentsV2/ColorPicker/Swatches/Swatches.d.ts +1 -1
- package/componentsV2/ColorPicker/Swatches/Swatches.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.stories.d.ts +4 -4
- package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.stories.d.ts.map +1 -1
- package/componentsV2/CopyToClipboard/CopyToClipboard.d.ts +1 -1
- package/componentsV2/CopyToClipboard/CopyToClipboard.d.ts.map +1 -1
- package/componentsV2/CopyToClipboard/CopyToClipboard.stories.d.ts +3 -3
- package/componentsV2/CopyToClipboard/CopyToClipboard.stories.d.ts.map +1 -1
- package/componentsV2/Counter/Counter.stories.d.ts +6 -6
- package/componentsV2/Counter/Counter.stories.d.ts.map +1 -1
- package/componentsV2/DatePicker/CalendarControls/CalendarControls.d.ts +1 -1
- package/componentsV2/DatePicker/CalendarControls/CalendarControls.d.ts.map +1 -1
- package/componentsV2/DatePicker/CalendarGrid/CalendarGrid.d.ts +1 -1
- package/componentsV2/DatePicker/CalendarGrid/CalendarGrid.d.ts.map +1 -1
- package/componentsV2/DatePicker/DatePicker.stories.d.ts +8 -8
- package/componentsV2/DatePicker/DatePicker.stories.d.ts.map +1 -1
- package/componentsV2/DatePicker/DatePickerNext.stories.d.ts +10 -10
- package/componentsV2/DatePicker/DatePickerNext.stories.d.ts.map +1 -1
- package/componentsV2/DragHandle/DragHandle.stories.d.ts +2 -2
- package/componentsV2/DragHandle/DragHandle.stories.d.ts.map +1 -1
- package/componentsV2/EmptyState/EmptyState.d.ts +1 -1
- package/componentsV2/EmptyState/EmptyState.d.ts.map +1 -1
- package/componentsV2/EmptyState/EmptyState.stories.d.ts +3 -3
- package/componentsV2/EmptyState/EmptyState.stories.d.ts.map +1 -1
- package/componentsV2/FileIcon/FileIcon.stories.d.ts +2 -2
- package/componentsV2/FileIcon/FileIcon.stories.d.ts.map +1 -1
- package/componentsV2/FileIcon/constants.d.ts +7 -6
- package/componentsV2/FileIcon/constants.d.ts.map +1 -1
- package/componentsV2/FileIcon/constants.js.map +1 -1
- package/componentsV2/FileIcon/icons/ArchiveFileIcon.d.ts +3 -3
- package/componentsV2/FileIcon/icons/ArchiveFileIcon.d.ts.map +1 -1
- package/componentsV2/FileIcon/icons/CSVFileIcon.d.ts +3 -3
- package/componentsV2/FileIcon/icons/CSVFileIcon.d.ts.map +1 -1
- package/componentsV2/FileIcon/icons/DocFileIcon.d.ts +3 -3
- package/componentsV2/FileIcon/icons/DocFileIcon.d.ts.map +1 -1
- package/componentsV2/FileIcon/icons/EDMFileIcon.d.ts +3 -3
- package/componentsV2/FileIcon/icons/EDMFileIcon.d.ts.map +1 -1
- package/componentsV2/FileIcon/icons/ExcelFileIcon.d.ts +3 -3
- package/componentsV2/FileIcon/icons/ExcelFileIcon.d.ts.map +1 -1
- package/componentsV2/FileIcon/icons/ImageFileIcon.d.ts +3 -3
- package/componentsV2/FileIcon/icons/ImageFileIcon.d.ts.map +1 -1
- package/componentsV2/FileIcon/icons/JsonFileIcon.d.ts +3 -3
- package/componentsV2/FileIcon/icons/JsonFileIcon.d.ts.map +1 -1
- package/componentsV2/FileIcon/icons/LasFileIcon.d.ts +3 -3
- package/componentsV2/FileIcon/icons/LasFileIcon.d.ts.map +1 -1
- package/componentsV2/FileIcon/icons/OtherFileIcon.d.ts +3 -3
- package/componentsV2/FileIcon/icons/OtherFileIcon.d.ts.map +1 -1
- package/componentsV2/FileIcon/icons/PdfFileIcon.d.ts +3 -3
- package/componentsV2/FileIcon/icons/PdfFileIcon.d.ts.map +1 -1
- package/componentsV2/FileIcon/icons/PowerPointFileIcon.d.ts +3 -3
- package/componentsV2/FileIcon/icons/PowerPointFileIcon.d.ts.map +1 -1
- package/componentsV2/FileIcon/icons/TxtFileIcon.d.ts +3 -3
- package/componentsV2/FileIcon/icons/TxtFileIcon.d.ts.map +1 -1
- package/componentsV2/FileIcon/icons/UnknownFileIcon.d.ts +3 -3
- package/componentsV2/FileIcon/icons/UnknownFileIcon.d.ts.map +1 -1
- package/componentsV2/FileIcon/icons/VideoFileIcon.d.ts +3 -3
- package/componentsV2/FileIcon/icons/VideoFileIcon.d.ts.map +1 -1
- package/componentsV2/FileIcon/icons/XmlFileIcon.d.ts +3 -3
- package/componentsV2/FileIcon/icons/XmlFileIcon.d.ts.map +1 -1
- package/componentsV2/FilesDropzone/FilesDropzone.d.ts +1 -1
- package/componentsV2/FilesDropzone/FilesDropzone.d.ts.map +1 -1
- package/componentsV2/FilesDropzone/FilesDropzone.stories.d.ts +1 -1
- package/componentsV2/FilesDropzone/FilesDropzone.stories.d.ts.map +1 -1
- package/componentsV2/FilesLoader/FilesLoader.d.ts +1 -1
- package/componentsV2/FilesLoader/FilesLoader.d.ts.map +1 -1
- package/componentsV2/FilesLoader/FilesLoader.stories.d.ts +6 -6
- package/componentsV2/FilesLoader/FilesLoader.stories.d.ts.map +1 -1
- package/componentsV2/FilesLoader/PreviewImage.d.ts +1 -1
- package/componentsV2/FilesLoader/PreviewImage.d.ts.map +1 -1
- package/componentsV2/FilesProcessor/FilesProcessor.d.ts +1 -1
- package/componentsV2/FilesProcessor/FilesProcessor.d.ts.map +1 -1
- package/componentsV2/FilesProcessor/FilesProcessor.stories.d.ts +4 -4
- package/componentsV2/FilesProcessor/FilesProcessor.stories.d.ts.map +1 -1
- package/componentsV2/FilesProcessor/Processor.d.ts +1 -1
- package/componentsV2/FilesProcessor/Processor.d.ts.map +1 -1
- package/componentsV2/Grid/Grid.d.ts +1 -1
- package/componentsV2/Grid/Grid.stories.d.ts +6 -6
- package/componentsV2/Grid/Grid.stories.d.ts.map +1 -1
- package/componentsV2/Header/Header.d.ts +1 -1
- package/componentsV2/Header/Header.d.ts.map +1 -1
- package/componentsV2/Header/Header.stories.d.ts +1 -1
- package/componentsV2/Header/Header.stories.d.ts.map +1 -1
- package/componentsV2/HideInNativeApp/index.d.ts +1 -1
- package/componentsV2/HideInNativeApp/index.d.ts.map +1 -1
- package/componentsV2/Hint/Hint.d.ts +1 -1
- package/componentsV2/Hint/Hint.d.ts.map +1 -1
- package/componentsV2/Hint/Hint.stories.d.ts +4 -4
- package/componentsV2/Hint/Hint.stories.d.ts.map +1 -1
- package/componentsV2/Hotkey/Hotkey.d.ts +1 -1
- package/componentsV2/Hotkey/Hotkey.d.ts.map +1 -1
- package/componentsV2/Hotkey/Hotkey.stories.d.ts +3 -3
- package/componentsV2/Hotkey/Hotkey.stories.d.ts.map +1 -1
- package/componentsV2/ImageViewer/ImageViewer.d.ts +1 -1
- package/componentsV2/ImageViewer/ImageViewer.d.ts.map +1 -1
- package/componentsV2/IndicatorLive/IndicatorLive.stories.d.ts +5 -5
- package/componentsV2/IndicatorLive/IndicatorLive.stories.d.ts.map +1 -1
- package/componentsV2/Label/Label.stories.d.ts +7 -7
- package/componentsV2/Label/Label.stories.d.ts.map +1 -1
- package/componentsV2/LiveDotIndicator/LiveDotIndicator.d.ts +1 -1
- package/componentsV2/LiveDotIndicator/LiveDotIndicator.d.ts.map +1 -1
- package/componentsV2/LoaderCircular/LoaderCircular.d.ts +1 -1
- package/componentsV2/LoaderCircular/LoaderCircular.d.ts.map +1 -1
- package/componentsV2/LoaderCircular/LoaderCircular.stories.d.ts +3 -3
- package/componentsV2/LoaderCircular/LoaderCircular.stories.d.ts.map +1 -1
- package/componentsV2/LoaderLinear/LoaderLinear.d.ts +1 -1
- package/componentsV2/LoaderLinear/LoaderLinear.d.ts.map +1 -1
- package/componentsV2/LoaderLinear/LoaderLinear.stories.d.ts +4 -4
- package/componentsV2/LoaderLinear/LoaderLinear.stories.d.ts.map +1 -1
- package/componentsV2/LoaderLogo/LoaderLogo.d.ts +1 -1
- package/componentsV2/LoaderLogo/LoaderLogo.d.ts.map +1 -1
- package/componentsV2/LoaderLogo/LoaderLogo.stories.d.ts +2 -2
- package/componentsV2/LoaderLogo/LoaderLogo.stories.d.ts.map +1 -1
- package/componentsV2/Menu/Menu.d.ts +1 -1
- package/componentsV2/Menu/Menu.d.ts.map +1 -1
- package/componentsV2/Menu/Menu.stories.d.ts +12 -12
- package/componentsV2/Menu/Menu.stories.d.ts.map +1 -1
- package/componentsV2/Menu/MenuDivider/MenuDivider.d.ts +1 -1
- package/componentsV2/Menu/MenuDivider/MenuDivider.d.ts.map +1 -1
- package/componentsV2/Menu/MenuGroup/MenuGroup.d.ts +1 -1
- package/componentsV2/Menu/MenuGroup/MenuGroup.d.ts.map +1 -1
- package/componentsV2/Modal/Modal.d.ts +1 -1
- package/componentsV2/Modal/Modal.d.ts.map +1 -1
- package/componentsV2/Modal/Modal.stories.d.ts +7 -7
- package/componentsV2/Modal/Modal.stories.d.ts.map +1 -1
- package/componentsV2/ModalWindow/ModalWindow.stories.d.ts +1 -1
- package/componentsV2/ModalWindow/ModalWindow.stories.d.ts.map +1 -1
- package/componentsV2/OffsetWellsButton/OffsetWellsButton.stories.d.ts +7 -7
- package/componentsV2/OffsetWellsButton/OffsetWellsButton.stories.d.ts.map +1 -1
- package/componentsV2/PadModeSelect/ColorAccent/ColorAccent.d.ts +1 -1
- package/componentsV2/PadModeSelect/ColorAccent/ColorAccent.d.ts.map +1 -1
- package/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.d.ts +1 -1
- package/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.d.ts.map +1 -1
- package/componentsV2/PadModeSelect/MenuWellStreamStatus.d.ts +1 -1
- package/componentsV2/PadModeSelect/MenuWellStreamStatus.d.ts.map +1 -1
- package/componentsV2/PadModeSelect/PadModeSelect.stories.d.ts +1 -1
- package/componentsV2/PadModeSelect/PadModeSelect.stories.d.ts.map +1 -1
- package/componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.d.ts +1 -1
- package/componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.d.ts.map +1 -1
- package/componentsV2/Paper/Paper.stories.d.ts +2 -2
- package/componentsV2/Paper/Paper.stories.d.ts.map +1 -1
- package/componentsV2/Popover/Popover.stories.d.ts +5 -5
- package/componentsV2/Popover/Popover.stories.d.ts.map +1 -1
- package/componentsV2/PopoverPanel/PopoverPanel.stories.d.ts +5 -5
- package/componentsV2/PopoverPanel/PopoverPanel.stories.d.ts.map +1 -1
- package/componentsV2/PopoverPanel/PopoverPanelContent/PopoverPanelContent.d.ts +1 -1
- package/componentsV2/PopoverPanel/PopoverPanelContent/PopoverPanelContent.d.ts.map +1 -1
- package/componentsV2/PopoverPanel/PopoverPanelDivider/PopoverPanelDivider.d.ts +1 -1
- package/componentsV2/PopoverPanel/PopoverPanelDivider/PopoverPanelDivider.d.ts.map +1 -1
- package/componentsV2/PopoverPanel/PopoverPanelFooter/PopoverPanelFooter.d.ts +1 -1
- package/componentsV2/PopoverPanel/PopoverPanelFooter/PopoverPanelFooter.d.ts.map +1 -1
- package/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.d.ts +1 -1
- package/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.d.ts.map +1 -1
- package/componentsV2/Popper/Popper.d.ts +1 -1
- package/componentsV2/Popper/Popper.d.ts.map +1 -1
- package/componentsV2/Popper/Popper.stories.d.ts +1 -1
- package/componentsV2/Popper/Popper.stories.d.ts.map +1 -1
- package/componentsV2/Radio/Radio.stories.d.ts +4 -4
- package/componentsV2/Radio/Radio.stories.d.ts.map +1 -1
- package/componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.d.ts +1 -1
- package/componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.d.ts.map +1 -1
- package/componentsV2/RadioAndCheckboxIcons/CheckboxIcon.d.ts +1 -1
- package/componentsV2/RadioAndCheckboxIcons/CheckboxIcon.d.ts.map +1 -1
- package/componentsV2/RadioAndCheckboxIcons/RadioIcon.d.ts +1 -1
- package/componentsV2/RadioAndCheckboxIcons/RadioIcon.d.ts.map +1 -1
- package/componentsV2/RadioGroup/RadioGroup.d.ts +1 -1
- package/componentsV2/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/componentsV2/RadioGroup/RadioGroup.stories.d.ts +5 -5
- package/componentsV2/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
- package/componentsV2/Scrollbars.stories.d.ts +2 -2
- package/componentsV2/Scrollbars.stories.d.ts.map +1 -1
- package/componentsV2/Select/Select.d.ts +1 -1
- package/componentsV2/Select/Select.stories.d.ts +18 -18
- package/componentsV2/Select/Select.stories.d.ts.map +1 -1
- package/componentsV2/Skeleton/Skeleton.d.ts +1 -1
- package/componentsV2/Skeleton/Skeleton.d.ts.map +1 -1
- package/componentsV2/Skeleton/Skeleton.stories.d.ts +4 -4
- package/componentsV2/Skeleton/Skeleton.stories.d.ts.map +1 -1
- package/componentsV2/Slider/Slider.stories.d.ts +8 -8
- package/componentsV2/Slider/Slider.stories.d.ts.map +1 -1
- package/componentsV2/Slider/components/SliderInput.d.ts +1 -1
- package/componentsV2/Slider/components/SliderInput.d.ts.map +1 -1
- package/componentsV2/SliderAdvanced/Bar.d.ts +1 -1
- package/componentsV2/SliderAdvanced/Bar.d.ts.map +1 -1
- package/componentsV2/SliderAdvanced/HandleWrapper.d.ts +1 -1
- package/componentsV2/SliderAdvanced/HandleWrapper.d.ts.map +1 -1
- package/componentsV2/SliderAdvanced/SliderAdvanced.d.ts +1 -1
- package/componentsV2/SliderAdvanced/SliderAdvanced.d.ts.map +1 -1
- package/componentsV2/SliderAdvanced/SliderAdvanced.stories.d.ts +5 -5
- package/componentsV2/SliderAdvanced/SliderAdvanced.stories.d.ts.map +1 -1
- package/componentsV2/SliderAdvanced/handles/HandleEditable.d.ts +1 -1
- package/componentsV2/SliderAdvanced/handles/HandleEditable.d.ts.map +1 -1
- package/componentsV2/SliderAdvanced/handles/HandleMinimal.d.ts +1 -1
- package/componentsV2/SliderAdvanced/handles/HandleMinimal.d.ts.map +1 -1
- package/componentsV2/SliderAdvanced/handles/HandleReadonly.d.ts +1 -1
- package/componentsV2/SliderAdvanced/handles/HandleReadonly.d.ts.map +1 -1
- package/componentsV2/Stepper/Step/Step.d.ts +1 -1
- package/componentsV2/Stepper/Step/Step.d.ts.map +1 -1
- package/componentsV2/Stepper/Stepper.d.ts +1 -1
- package/componentsV2/Stepper/Stepper.d.ts.map +1 -1
- package/componentsV2/Stepper/Stepper.stories.d.ts +7 -7
- package/componentsV2/Stepper/Stepper.stories.d.ts.map +1 -1
- package/componentsV2/Switch/Switch.stories.d.ts +5 -5
- package/componentsV2/Switch/Switch.stories.d.ts.map +1 -1
- package/componentsV2/Tabs/Tabs.d.ts +1 -1
- package/componentsV2/Tabs/Tabs.d.ts.map +1 -1
- package/componentsV2/Tabs/Tabs.js.map +1 -1
- package/componentsV2/Tabs/Tabs.stories.d.ts +7 -7
- package/componentsV2/Tabs/Tabs.stories.d.ts.map +1 -1
- package/componentsV2/Tag/Tag.stories.d.ts +5 -5
- package/componentsV2/Tag/Tag.stories.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/ConfirmationModal/ConfirmationModal.d.ts +1 -1
- package/componentsV2/TemplatesControl/ConfirmationModal/ConfirmationModal.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/FolderMenu/FolderMenu.d.ts +1 -1
- package/componentsV2/TemplatesControl/FolderMenu/FolderMenu.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.d.ts +1 -1
- package/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/Popover/Popover.d.ts +1 -1
- package/componentsV2/TemplatesControl/Popover/Popover.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/PopoverFooter/AddModal.d.ts +1 -1
- package/componentsV2/TemplatesControl/PopoverFooter/AddModal.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/PopoverFooter/PopoverFooter.d.ts +1 -1
- package/componentsV2/TemplatesControl/PopoverFooter/PopoverFooter.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.d.ts +1 -1
- package/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/Provider/Provider.d.ts +1 -1
- package/componentsV2/TemplatesControl/Provider/Provider.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/Provider/StoreControl.d.ts +1 -1
- package/componentsV2/TemplatesControl/Provider/StoreControl.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/PublishModal/PublishModal.d.ts +1 -1
- package/componentsV2/TemplatesControl/PublishModal/PublishModal.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/ShareModal/Item.d.ts +1 -1
- package/componentsV2/TemplatesControl/ShareModal/Item.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/ShareModal/ShareModal.d.ts +1 -1
- package/componentsV2/TemplatesControl/ShareModal/ShareModal.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.d.ts +1 -1
- package/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/TemplateMenu/MenuHeader/MenuHeader.d.ts +1 -1
- package/componentsV2/TemplatesControl/TemplateMenu/MenuHeader/MenuHeader.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/TemplateMenu/TemplateMenu.d.ts +1 -1
- package/componentsV2/TemplatesControl/TemplateMenu/TemplateMenu.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/TemplatesControl.d.ts +1 -1
- package/componentsV2/TemplatesControl/TemplatesControl.stories.d.ts +14 -14
- package/componentsV2/TemplatesControl/TemplatesControl.stories.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/TemplatesTree/TemplatesTree.d.ts +1 -1
- package/componentsV2/TemplatesControl/TemplatesTree/TemplatesTree.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/TemplatesTreeFolder/TemplatesTreeFolder.d.ts +1 -1
- package/componentsV2/TemplatesControl/TemplatesTreeFolder/TemplatesTreeFolder.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.d.ts +1 -1
- package/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/TemplatesTreeTemplate/TemplatesTreeTemplate.d.ts +1 -1
- package/componentsV2/TemplatesControl/TemplatesTreeTemplate/TemplatesTreeTemplate.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.d.ts +1 -1
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/UnsavedChangesBadge/UnsavedChangesBadge.d.ts +1 -1
- package/componentsV2/TemplatesControl/UnsavedChangesBadge/UnsavedChangesBadge.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/CompanyClosed.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/CompanyClosed.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/CompanyOpen.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/CompanyOpen.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/FracFleetClosed.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/FracFleetClosed.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/FracFleetOpen.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/FracFleetOpen.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/PadClosed.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/PadClosed.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/PadOpen.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/PadOpen.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/PresetClosed.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/PresetClosed.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/PresetOpen.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/PresetOpen.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/ProgramClosed.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/ProgramClosed.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/ProgramOpen.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/ProgramOpen.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/RegularClosed.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/RegularClosed.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/RegularOpen.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/RegularOpen.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/RigClosed.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/RigClosed.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/RigOpen.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/RigOpen.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/SharedClosed.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/SharedClosed.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/SharedOpen.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/SharedOpen.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/folder/utils.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/folder/utils.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon1.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon1.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon10.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon10.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon11.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon11.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon12.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon12.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon13.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon13.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon14.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon14.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon15.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon15.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon16.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon16.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon17.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon17.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon18.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon18.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon19.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon19.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon2.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon2.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon20.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon20.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon21.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon21.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon22.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon22.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon23.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon23.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon24.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon24.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon25.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon25.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon26.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon26.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon27.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon27.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon3.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon3.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon4.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon4.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon5.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon5.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon6.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon6.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon7.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon7.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon8.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon8.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon9.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/TemplateIcon9.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/icons/template/utils.d.ts +1 -1
- package/componentsV2/TemplatesControl/icons/template/utils.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.d.ts +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.d.ts +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.d.ts +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.d.ts +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/PublishTemplate.d.ts +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/PublishTemplate.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.d.ts +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.d.ts +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.d.ts +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/TemplateControls.d.ts +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/TemplateControls.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.d.ts +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.d.ts.map +1 -1
- package/componentsV2/Text/Text.stories.d.ts +4 -4
- package/componentsV2/Text/Text.stories.d.ts.map +1 -1
- package/componentsV2/TextEndTruncated/TextEndTruncated.d.ts +1 -1
- package/componentsV2/TextEndTruncated/TextEndTruncated.d.ts.map +1 -1
- package/componentsV2/TextEndTruncated/TextEndTruncated.stories.d.ts +4 -4
- package/componentsV2/TextEndTruncated/TextEndTruncated.stories.d.ts.map +1 -1
- package/componentsV2/TextInput/TextInput.stories.d.ts +9 -9
- package/componentsV2/TextInput/TextInput.stories.d.ts.map +1 -1
- package/componentsV2/TextInputNext/TextInputNext.stories.d.ts +13 -13
- package/componentsV2/TextInputNext/TextInputNext.stories.d.ts.map +1 -1
- package/componentsV2/TextInputNext/components/InfoIcon.d.ts +1 -1
- package/componentsV2/TextInputNext/components/InfoIcon.d.ts.map +1 -1
- package/componentsV2/TextInputNext/components/Label.d.ts +1 -1
- package/componentsV2/TextInputNext/components/Label.d.ts.map +1 -1
- package/componentsV2/TextInputNext/components/MessageWithIcon.d.ts +1 -1
- package/componentsV2/TextInputNext/components/MessageWithIcon.d.ts.map +1 -1
- package/componentsV2/TextInputNext/components/RequiredIndicator.d.ts +1 -1
- package/componentsV2/TextInputNext/components/RequiredIndicator.d.ts.map +1 -1
- package/componentsV2/TextInputNext/components/Unit.d.ts +1 -1
- package/componentsV2/TextInputNext/components/Unit.d.ts.map +1 -1
- package/componentsV2/TextLink/TextLink.stories.d.ts +4 -4
- package/componentsV2/TextLink/TextLink.stories.d.ts.map +1 -1
- package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.d.ts +1 -1
- package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.d.ts.map +1 -1
- package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.stories.d.ts +3 -3
- package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.stories.d.ts.map +1 -1
- package/componentsV2/ToggleButtons/ToggleButtons.d.ts +1 -1
- package/componentsV2/ToggleButtons/ToggleButtons.d.ts.map +1 -1
- package/componentsV2/ToggleButtons/ToggleButtons.stories.d.ts +6 -6
- package/componentsV2/ToggleButtons/ToggleButtons.stories.d.ts.map +1 -1
- package/componentsV2/Tooltip/DcTooltip.d.ts +1 -1
- package/componentsV2/Tooltip/DcTooltip.d.ts.map +1 -1
- package/componentsV2/Tooltip/Tooltip.d.ts +1 -1
- package/componentsV2/Tooltip/Tooltip.d.ts.map +1 -1
- package/componentsV2/Tooltip/Tooltip.stories.d.ts +5 -5
- package/componentsV2/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/componentsV2/UniversalLink/UniversalLink.d.ts +1 -1
- package/componentsV2/UniversalLink/UniversalLink.d.ts.map +1 -1
- package/componentsV2/UniversalLink/UniversalLink.stories.d.ts +1 -1
- package/componentsV2/UniversalLink/UniversalLink.stories.d.ts.map +1 -1
- package/componentsV2/WellArchivedMessage/ModalDisplayComponent/ModalDisplayComponent.d.ts +1 -1
- package/componentsV2/WellArchivedMessage/ModalDisplayComponent/ModalDisplayComponent.d.ts.map +1 -1
- package/componentsV2/WellArchivedMessage/WellArchivedMessage.d.ts +1 -1
- package/componentsV2/WellArchivedMessage/WellArchivedMessage.d.ts.map +1 -1
- package/componentsV2/WellArchivedMessage/WellArchivedMessage.stories.d.ts +3 -3
- package/componentsV2/WellArchivedMessage/WellArchivedMessage.stories.d.ts.map +1 -1
- package/exampleApp/ChartActionsListExample.d.ts +1 -1
- package/exampleApp/ChartActionsListExample.d.ts.map +1 -1
- package/exampleApp/ExampleApp.d.ts +1 -1
- package/exampleApp/ExampleApp.d.ts.map +1 -1
- package/exampleApp/ParameterChartExample.d.ts +1 -1
- package/exampleApp/ParameterChartExample.d.ts.map +1 -1
- package/exampleApp/RangeSliderExample.d.ts +1 -1
- package/exampleApp/RangeSliderExample.d.ts.map +1 -1
- package/hocs/withAssetEditorLockHOC.d.ts +1 -1
- package/hocs/withAssetEditorLockHOC.d.ts.map +1 -1
- package/hocs/withMUIProvidersHOC.d.ts +1 -1
- package/hocs/withMUIProvidersHOC.d.ts.map +1 -1
- package/icons/IconPark.stories.d.ts +1 -1
- package/icons/IconPark.stories.d.ts.map +1 -1
- package/icons/IconParkProvider.d.ts +1 -1
- package/icons/IconParkProvider.d.ts.map +1 -1
- package/mcp-server/server.mjs +2 -2
- package/package.json +14 -9
- package/permissions/ProvidePermissions.d.ts +1 -1
- package/permissions/ProvidePermissions.d.ts.map +1 -1
- package/storyBookHelpers/components.d.ts +2 -2
- package/storyBookHelpers/components.d.ts.map +1 -1
- package/storyBookHelpers/template/Template.stories.d.ts +2 -2
- package/storyBookHelpers/template/Template.stories.d.ts.map +1 -1
- package/storyBookHelpers/utils.d.ts +2 -2
- package/storyBookHelpers/utils.d.ts.map +1 -1
- package/testing/AppTestWrapper/AppTestWrapper.d.ts +1 -1
- package/testing/AppTestWrapper/AppTestWrapper.d.ts.map +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/utils/__tests__/createAdaptiveRoot.test.d.ts +2 -0
- package/utils/__tests__/createAdaptiveRoot.test.d.ts.map +1 -0
- package/utils/createAdaptiveRoot.d.ts +2 -0
- package/utils/createAdaptiveRoot.d.ts.map +1 -0
- package/utils/createAdaptiveRoot.js +2 -0
- package/utils/createAdaptiveRoot.js.map +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OffsetWellMap.js","sources":["../../../../src/components/OffsetWellMap/OffsetWellMap.js"],"sourcesContent":["import { createElement, useRef, useEffect, useState, useMemo } from 'react';\nimport ReactDOM from 'react-dom';\nimport { get } from 'lodash';\nimport classNames from 'classnames';\nimport { Tooltip } from '@material-ui/core';\nimport { Add as ZoomInIcon, Remove as ZoomOutIcon } from '@material-ui/icons';\nimport 'mapbox-gl/dist/mapbox-gl.css';\n\nimport SubjectWellIcon from './CustomIcon/SubjectWellIcon.svg';\nimport SubjectHighlightWellIcon from './CustomIcon/SubjectHighlightWellIcon.svg';\nimport { usePreviousWells } from './effects';\nimport { WellTooltip } from './WellTooltip';\nimport { getAllFormations } from './utils';\n\nimport styles from './OffsetWellMap.module.css';\n\nimport mapboxgl from '~/config/mapboxGl';\nimport { IS_MAPBOX_ENABLED } from '~/config/mapbox';\nimport { mapbox } from '~/utils';\n\nconst { isValidCoordinates } = mapbox;\nconst DEFAULT_COORDS = [29.749907, -95.358421];\nconst WELL_MARKER_SIZE = 5;\nconst HIGHLIGHT_MARKER_SIZE = 12;\nconst OFFSET_WELL_COLOR = '#03BCD4';\nconst RADIUS_CIRCLE_COLOR = '#03BCD4';\nconst HIGHLIGHT_WELL_COLOR = '#63EFFF';\nconst METERS_IN_MILE = 1609.34;\nconst ZOOM_INIT_VALUE = 3;\nconst ZOOM_MAX_VALUE = 18;\nconst ZOOM_MIN_VALUE = 1;\nconst MAX_RADIUS = 3000;\n\nconst RADIUS_SOURCE_ID = 'radius-circle';\nconst RADIUS_LAYER_ID = 'radius-circle-fill';\nconst WELLS_SOURCE_ID = 'wells';\nconst WELLS_HALO_LAYER_ID = 'wells-halo';\nconst WELLS_LAYER_ID = 'wells-circle';\nconst WELLS_ACTIVE_LAYER_ID = 'wells-active-highlight';\nconst WELLS_HOVER_LAYER_ID = 'wells-hover-highlight';\nconst EMPTY_FEATURE_COLLECTION = { type: 'FeatureCollection', features: [] };\nconst NO_HOVER_FILTER = ['==', ['id'], -1];\n\n// NOTE: Props keep the Leaflet [lat, lng] convention; mapbox-gl expects [lng, lat]\nconst toLngLat = ([lat, lng]) => [lng, lat];\n\n// NOTE: mapbox-gl circle layers are pixel-radius, so approximate the meter radius with a polygon\nconst makeCirclePolygon = ([lat, lng], radiusMeters, points = 64) => {\n const degreesLng = radiusMeters / (111320 * Math.cos((lat * Math.PI) / 180));\n const degreesLat = radiusMeters / 110574;\n const ring = [];\n for (let i = 0; i <= points; i += 1) {\n const theta = (i / points) * 2 * Math.PI;\n ring.push([lng + degreesLng * Math.cos(theta), lat + degreesLat * Math.sin(theta)]);\n }\n return { type: 'Polygon', coordinates: [ring] };\n};\n\nconst getCircleBounds = ([lat, lng], radiusMeters) => {\n const degreesLng = radiusMeters / (111320 * Math.cos((lat * Math.PI) / 180));\n const degreesLat = radiusMeters / 110574;\n return [\n [lng - degreesLng, lat - degreesLat],\n [lng + degreesLng, lat + degreesLat],\n ];\n};\n\n/** @type {React.FC<import('./OffsetWellMapProps').OffsetWellMapProps>} */\nconst OffsetWellMap = ({\n isViewOnly,\n subjectWell = null,\n wells,\n offsetWellIds,\n radius,\n handleChanageOffsetWell,\n handleChangeOffsetWell = handleChanageOffsetWell,\n activeWellId,\n isClickable = true,\n classes = {},\n}) => {\n const subjectWellCoords = useMemo(() => {\n return subjectWell && get(subjectWell, 'topHole.coordinates');\n }, [subjectWell]);\n const formationColors = useMemo(() => getAllFormations(wells), [wells]);\n\n const containerRef = useRef();\n const mapRef = useRef();\n const popupRef = useRef();\n const radiusBoundsRef = useRef(null);\n const wellsBoundsRef = useRef(null);\n const subjectIconRef = useRef();\n const wellByFeatureIdRef = useRef(new Map());\n const subjectFeatureIdRef = useRef(null);\n const hoveredFeatureIdRef = useRef(null);\n const [isSubjectWellHovered, setIsSubjectWellHovered] = useState(false);\n const isActiveWellIsSubjectWell = subjectWell?.id === activeWellId;\n const prevWells = usePreviousWells(wells);\n const [isMapReady, setIsMapReady] = useState(false);\n const [zoom, setZoom] = useState(ZOOM_INIT_VALUE);\n\n // NOTE: Initialize map\n useEffect(() => {\n if (!IS_MAPBOX_ENABLED) return undefined;\n\n const map = new mapboxgl.Map({\n container: containerRef.current,\n style: 'mapbox://styles/mapbox/dark-v9',\n center: toLngLat(DEFAULT_COORDS),\n zoom: ZOOM_INIT_VALUE,\n // NOTE: keep the zoom buttons' disable logic (zoom === ZOOM_MAX_VALUE) reachable\n maxZoom: ZOOM_MAX_VALUE,\n attributionControl: false,\n scrollZoom: false,\n doubleClickZoom: false,\n });\n mapRef.current = map;\n\n // NOTE: GL zoom is fractional where Leaflet was integer\n map.on('zoomend', () => setZoom(Math.round(map.getZoom())));\n\n // NOTE: Sources/layers can only be added after the style loads\n map.on('load', () => {\n map.addSource(RADIUS_SOURCE_ID, { type: 'geojson', data: EMPTY_FEATURE_COLLECTION });\n map.addLayer({\n id: RADIUS_LAYER_ID,\n type: 'fill',\n source: RADIUS_SOURCE_ID,\n paint: {\n 'fill-color': RADIUS_CIRCLE_COLOR,\n 'fill-opacity': 0.2,\n },\n });\n\n map.addSource(WELLS_SOURCE_ID, { type: 'geojson', data: EMPTY_FEATURE_COLLECTION });\n map.addLayer({\n id: WELLS_HALO_LAYER_ID,\n type: 'circle',\n source: WELLS_SOURCE_ID,\n filter: ['==', ['get', 'isOffsetWell'], true],\n paint: {\n 'circle-radius': HIGHLIGHT_MARKER_SIZE,\n 'circle-color': ['get', 'color'],\n 'circle-opacity': 0.08,\n },\n });\n map.addLayer({\n id: WELLS_LAYER_ID,\n type: 'circle',\n source: WELLS_SOURCE_ID,\n layout: {\n 'circle-sort-key': ['get', 'order'],\n },\n paint: {\n 'circle-radius': WELL_MARKER_SIZE,\n 'circle-color': ['get', 'color'],\n 'circle-opacity': ['get', 'opacity'],\n },\n });\n map.addLayer({\n id: WELLS_ACTIVE_LAYER_ID,\n type: 'circle',\n source: WELLS_SOURCE_ID,\n filter: ['==', ['get', 'isActive'], true],\n paint: {\n 'circle-radius': HIGHLIGHT_MARKER_SIZE,\n 'circle-color': ['get', 'color'],\n 'circle-opacity': 0.24,\n },\n });\n map.addLayer({\n id: WELLS_HOVER_LAYER_ID,\n type: 'circle',\n source: WELLS_SOURCE_ID,\n filter: NO_HOVER_FILTER,\n paint: {\n 'circle-radius': [\n 'case',\n ['get', 'isSubjectWell'],\n WELL_MARKER_SIZE,\n HIGHLIGHT_MARKER_SIZE,\n ],\n 'circle-color': [\n 'case',\n ['get', 'isSubjectWell'],\n HIGHLIGHT_WELL_COLOR,\n ['get', 'color'],\n ],\n 'circle-opacity': 0.24,\n },\n });\n\n setIsMapReady(true);\n });\n\n return () => {\n map.remove();\n mapRef.current = null;\n popupRef.current = null;\n subjectIconRef.current = null;\n radiusBoundsRef.current = null;\n wellsBoundsRef.current = null;\n };\n }, []);\n\n // NOTE: Radius circle\n useEffect(() => {\n radiusBoundsRef.current =\n subjectWellCoords && radius\n ? getCircleBounds(subjectWellCoords, radius * METERS_IN_MILE)\n : null;\n\n const map = mapRef.current;\n if (!map || !isMapReady) {\n return;\n }\n\n map.getSource(RADIUS_SOURCE_ID).setData(\n subjectWellCoords && radius\n ? {\n type: 'Feature',\n properties: {},\n geometry: makeCirclePolygon(subjectWellCoords, radius * METERS_IN_MILE),\n }\n : EMPTY_FEATURE_COLLECTION\n );\n }, [radius, subjectWellCoords, isMapReady]);\n\n const showTooltip = (well, isOffsetWell, isSubjectWell, coords) => {\n const popUpContainer = document.createElement('div');\n const popUpContent = createElement(WellTooltip(), {\n isViewOnly,\n well,\n color: get(formationColors, well.formation, '#BDBDBD'),\n isOffsetWell,\n isSubjectWell,\n isClickable,\n });\n ReactDOM.render(<>{popUpContent}</>, popUpContainer);\n if (!popupRef.current) {\n popupRef.current = new mapboxgl.Popup({\n closeButton: false,\n offset: HIGHLIGHT_MARKER_SIZE,\n });\n }\n popupRef.current\n .setLngLat(toLngLat(coords))\n .setDOMContent(popUpContainer)\n .addTo(mapRef.current);\n };\n\n // NOTE: Subject well hover swaps the subject marker color\n useEffect(() => {\n const map = mapRef.current;\n if (!map || !isMapReady) {\n return;\n }\n\n map.setPaintProperty(\n WELLS_LAYER_ID,\n 'circle-color',\n isSubjectWellHovered\n ? ['case', ['get', 'isSubjectWell'], HIGHLIGHT_WELL_COLOR, ['get', 'color']]\n : ['get', 'color']\n );\n }, [isSubjectWellHovered, isMapReady]);\n\n // NOTE: Well markers\n useEffect(() => {\n if (!wells || !offsetWellIds) {\n return undefined;\n }\n\n popupRef.current?.remove();\n\n const offsetWells = [];\n const unSelectedWells = [];\n wells.forEach(well => {\n if (well.id !== subjectWell?.id) {\n if (offsetWellIds.includes(well.id)) {\n offsetWells.push(well);\n } else {\n unSelectedWells.push(well);\n }\n }\n });\n const sortedWells = [...unSelectedWells, ...offsetWells, subjectWell];\n\n const features = [];\n const wellsBounds = new mapboxgl.LngLatBounds();\n wellByFeatureIdRef.current.clear();\n subjectFeatureIdRef.current = null;\n sortedWells.forEach((well, index) => {\n const coords = well?.topHole?.coordinates;\n\n if (coords && isValidCoordinates(coords)) {\n const isSubjectWell = subjectWell?.id === well.id;\n const isOffsetWell = offsetWellIds.includes(well.id) && !isSubjectWell;\n const color = isSubjectWell\n ? OFFSET_WELL_COLOR\n : get(formationColors, well.formation, '#BDBDBD');\n const opacity = isOffsetWell ? 0.7 : 0.3;\n\n features.push({\n type: 'Feature',\n id: index,\n geometry: { type: 'Point', coordinates: toLngLat(coords) },\n properties: {\n color,\n opacity: isSubjectWell ? 1 : opacity,\n isSubjectWell,\n isOffsetWell,\n isActive: well.id === activeWellId && !isActiveWellIsSubjectWell,\n order: index,\n },\n });\n wellByFeatureIdRef.current.set(index, { well, coords, isOffsetWell, isSubjectWell });\n if (isSubjectWell) {\n subjectFeatureIdRef.current = index;\n }\n wellsBounds.extend(toLngLat(coords));\n }\n });\n wellsBoundsRef.current = features.length ? wellsBounds : null;\n\n const map = mapRef.current;\n if (!map || !isMapReady) {\n return undefined;\n }\n\n map.getSource(WELLS_SOURCE_ID).setData({ type: 'FeatureCollection', features });\n map.setFilter(WELLS_HOVER_LAYER_ID, NO_HOVER_FILTER);\n hoveredFeatureIdRef.current = null;\n\n const handleMouseMove = e => {\n const feature = e.features?.[0];\n if (!feature || hoveredFeatureIdRef.current === feature.id) {\n return;\n }\n const entry = wellByFeatureIdRef.current.get(feature.id);\n if (!entry) {\n return;\n }\n\n hoveredFeatureIdRef.current = feature.id;\n map.getCanvas().style.cursor = 'pointer';\n\n // Highlight\n map.setFilter(WELLS_HOVER_LAYER_ID, ['==', ['id'], feature.id]);\n showTooltip(entry.well, entry.isOffsetWell, entry.isSubjectWell, entry.coords);\n if (entry.isSubjectWell) {\n setIsSubjectWellHovered(true);\n }\n };\n\n const handleMouseLeave = e => {\n // NOTE: Leaflet cleared hover on leaving the ENLARGED highlight marker, so keep the\n // hover while the cursor is still over the hover halo (or another well marker)\n if (\n e?.point &&\n map.queryRenderedFeatures(e.point, { layers: [WELLS_LAYER_ID, WELLS_HOVER_LAYER_ID] })\n .length\n ) {\n return;\n }\n const wasSubjectWell =\n hoveredFeatureIdRef.current !== null &&\n hoveredFeatureIdRef.current === subjectFeatureIdRef.current;\n hoveredFeatureIdRef.current = null;\n map.getCanvas().style.cursor = '';\n map.setFilter(WELLS_HOVER_LAYER_ID, NO_HOVER_FILTER);\n popupRef.current?.remove();\n if (wasSubjectWell) {\n setIsSubjectWellHovered(false);\n }\n };\n\n const handleClick = e => {\n if (isViewOnly) return;\n const entry = wellByFeatureIdRef.current.get(e.features?.[0]?.id);\n if (!entry) {\n return;\n }\n handleChangeOffsetWell(entry.well, !entry.isOffsetWell);\n };\n\n map.on('mousemove', WELLS_LAYER_ID, handleMouseMove);\n map.on('mouseleave', WELLS_LAYER_ID, handleMouseLeave);\n map.on('mouseleave', WELLS_HOVER_LAYER_ID, handleMouseLeave);\n map.on('click', WELLS_LAYER_ID, handleClick);\n\n setTimeout(() => {\n if (radius < MAX_RADIUS && mapRef.current && radiusBoundsRef.current && wells !== prevWells) {\n mapRef.current.fitBounds(radiusBoundsRef.current, { padding: 5 });\n }\n }, 500);\n\n return () => {\n map.off('mousemove', WELLS_LAYER_ID, handleMouseMove);\n map.off('mouseleave', WELLS_LAYER_ID, handleMouseLeave);\n map.off('mouseleave', WELLS_HOVER_LAYER_ID, handleMouseLeave);\n map.off('click', WELLS_LAYER_ID, handleClick);\n };\n }, [subjectWell, wells, offsetWellIds, activeWellId, isMapReady]);\n\n // NOTE: Subject Well Icon\n\n useEffect(() => {\n const map = mapRef.current;\n\n if (subjectIconRef.current) {\n subjectIconRef.current.remove();\n subjectIconRef.current = null;\n }\n\n if (!map || !subjectWellCoords) return;\n\n const isHighlighted = isSubjectWellHovered || isActiveWellIsSubjectWell;\n const icon = document.createElement('img');\n icon.src = isHighlighted ? SubjectHighlightWellIcon : SubjectWellIcon;\n const [iconWidth, iconHeight] = isHighlighted ? [70, 20] : [62, 12];\n const [anchorX, anchorY] = isHighlighted ? [35, 29] : [31, 25];\n icon.width = iconWidth;\n icon.height = iconHeight;\n\n icon.addEventListener('mouseover', () => {\n setIsSubjectWellHovered(true);\n\n // Highlight\n if (subjectFeatureIdRef.current !== null && map.getLayer(WELLS_HOVER_LAYER_ID)) {\n hoveredFeatureIdRef.current = subjectFeatureIdRef.current;\n map.setFilter(WELLS_HOVER_LAYER_ID, ['==', ['id'], subjectFeatureIdRef.current]);\n }\n showTooltip(subjectWell, false, true, subjectWellCoords);\n });\n\n icon.addEventListener('mouseout', () => {\n hoveredFeatureIdRef.current = null;\n if (map.getLayer(WELLS_HOVER_LAYER_ID)) {\n map.setFilter(WELLS_HOVER_LAYER_ID, NO_HOVER_FILTER);\n }\n popupRef.current?.remove();\n setIsSubjectWellHovered(false);\n });\n\n subjectIconRef.current = new mapboxgl.Marker({\n element: icon,\n anchor: 'center',\n // NOTE: Leaflet anchored the icon at [anchorX, anchorY] from its top-left corner\n offset: [iconWidth / 2 - anchorX, iconHeight / 2 - anchorY],\n })\n .setLngLat(toLngLat(subjectWellCoords))\n .addTo(map);\n }, [isSubjectWellHovered, subjectWellCoords, radius, subjectWell, isActiveWellIsSubjectWell]);\n\n // NOTE: Map Update\n useEffect(() => {\n if (radius > MAX_RADIUS) {\n mapRef.current?.setZoom(1);\n return;\n }\n setTimeout(() => {\n if (subjectWell) {\n if (mapRef.current && radiusBoundsRef.current && radius) {\n mapRef.current.fitBounds(radiusBoundsRef.current, { padding: 5 });\n }\n } else if (mapRef.current && wellsBoundsRef.current) {\n mapRef.current.fitBounds(wellsBoundsRef.current);\n }\n if (subjectWellCoords && mapRef.current) {\n mapRef.current.easeTo({ center: toLngLat(subjectWellCoords), duration: 700 });\n }\n }, 500);\n }, [radius, subjectWell, subjectWellCoords]);\n\n const handleZoomIn = () => {\n mapRef.current?.setZoom(zoom + 1);\n };\n\n const handleZoomOut = () => {\n if (zoom > 1) {\n mapRef.current?.setZoom(zoom - 1);\n }\n };\n\n return (\n <div className={classNames(styles.mapView, classes.root)}>\n <div\n className={classNames(styles.mapMain, classes.map)}\n ref={containerRef}\n onDoubleClick={handleZoomIn}\n >\n <div className={styles.zoomGroup}>\n <Tooltip title={zoom < ZOOM_MAX_VALUE ? 'Zoom in' : ''} placement=\"left\">\n <div\n className={classNames(styles.zoomButton, {\n [styles.zoomDisabled]: zoom === ZOOM_MAX_VALUE,\n })}\n onClick={handleZoomIn}\n >\n <ZoomInIcon className={styles.zoomInOutIcon} />\n </div>\n </Tooltip>\n <Tooltip title={zoom > ZOOM_MIN_VALUE ? 'Zoom out' : ''} placement=\"left\">\n <div\n className={classNames(styles.zoomButton, {\n [styles.zoomDisabled]: zoom === ZOOM_MIN_VALUE,\n })}\n onClick={handleZoomOut}\n >\n <ZoomOutIcon className={styles.zoomInOutIcon} />\n </div>\n </Tooltip>\n </div>\n </div>\n </div>\n );\n};\n\nexport default OffsetWellMap;\n"],"names":["isValidCoordinates","mapbox","DEFAULT_COORDS","EMPTY_FEATURE_COLLECTION","type","features","NO_HOVER_FILTER","toLngLat","_ref","_ref2","_slicedToArray","lat","makeCirclePolygon","_ref3","radiusMeters","_ref4","lng","points","degreesLng","Math","cos","PI","degreesLat","ring","i","theta","push","sin","coordinates","_ref7","isViewOnly","_ref7$subjectWell","subjectWell","wells","offsetWellIds","radius","handleChanageOffsetWell","_ref7$handleChangeOff","handleChangeOffsetWell","activeWellId","_ref7$isClickable","isClickable","_ref7$classes","classes","subjectWellCoords","useMemo","get","formationColors","getAllFormations","containerRef","useRef","mapRef","popupRef","radiusBoundsRef","wellsBoundsRef","subjectIconRef","wellByFeatureIdRef","Map","subjectFeatureIdRef","hoveredFeatureIdRef","useState","_useState2","_useState","isSubjectWellHovered","setIsSubjectWellHovered","isActiveWellIsSubjectWell","id","prevWells","usePreviousWells","_useState4","_useState3","isMapReady","setIsMapReady","_useState6","_useState5","zoom","setZoom","useEffect","IS_MAPBOX_ENABLED","map","mapboxgl","container","current","style","center","maxZoom","attributionControl","scrollZoom","doubleClickZoom","on","round","getZoom","addSource","data","addLayer","source","paint","filter","layout","remove","_ref5","_ref6","getSource","setData","properties","geometry","showTooltip","well","isOffsetWell","isSubjectWell","coords","popUpContainer","document","createElement","popUpContent","WellTooltip","color","formation","ReactDOM","render","_jsx","jsx","_Fragment","children","Popup","closeButton","offset","setLngLat","setDOMContent","addTo","setPaintProperty","_popupRef$current","offsetWells","unSelectedWells","forEach","includes","sortedWells","wellsBounds","LngLatBounds","clear","index","_well$topHole","topHole","opacity","isActive","order","set","extend","length","setFilter","handleMouseMove","e","_e$features","feature","entry","getCanvas","cursor","handleMouseLeave","_popupRef$current2","point","queryRenderedFeatures","layers","wasSubjectWell","handleClick","_e$features2","_e$features2$","setTimeout","fitBounds","padding","off","isHighlighted","icon","src","_ref8","_ref9","iconWidth","iconHeight","_ref10","_ref11","anchorX","anchorY","width","height","addEventListener","getLayer","_popupRef$current3","Marker","element","anchor","_mapRef$current","easeTo","duration","handleZoomIn","_mapRef$current2","className","classNames","styles","mapView","root","mapMain","ref","onDoubleClick","_jsxs","jsxs","zoomGroup","Tooltip","title","placement","zoomButton","_defineProperty","zoomDisabled","onClick","ZoomInIcon","zoomInOutIcon","_mapRef$current3","ZoomOutIcon"],"mappings":"kuBAoBQA,EAAuBC,EAAMA,OAA7BD,mBACFE,EAAiB,CAAC,WAAY,WAmB9BC,EAA2B,CAAEC,KAAM,oBAAqBC,SAAU,IAClEC,EAAkB,CAAC,KAAM,CAAC,OAAQ,GAGlCC,EAAW,SAAHC,GAAA,IAAAC,EAAAC,EAAAA,QAAAF,EAAA,GAAKG,EAAGF,EAAA,GAAK,MAAM,CAANA,EAAA,GAAYE,EAAI,EAGrCC,EAAoB,SAAHC,EAAgBC,GAIrC,IAJmE,IAAAC,EAAAL,EAAAA,QAAAG,EAAA,GAAzCF,EAAGI,EAAA,GAAEC,EAAGD,EAAA,GAAiBE,yDAAS,GACtDC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,GACpCb,EAAOc,aAldD,KAkdgBvI,KAEzBwI,QAASnB,GAAarE,SAEtBH,MAAC4F,MAAU,CAAClB,UAAWE,EAAOiB,oBAGlC7F,MAACqF,UAAO,CAACC,MAAOnI,GAxdH,EAwd2B,WAAa,GAAIoI,UAAU,OAAMpF,SACvEH,EAAAC,IAAA,MAAA,CACEyE,UAAWC,EAAU,QAACC,EAAOY,WAAUC,EAAA,QAAA,GACpCb,EAAOc,aA3dD,IA2dgBvI,KAEzBwI,QA7BU,WACN,IAAAG,EAAV3I,GAAO,IACT,QAAAxB,EAAAA,EAAO+B,eAAP,IAAAoI,GAAAA,EAAgB1I,QAAQD,GAAO,KA2BAgD,SAEvBH,MAAC+F,SAAW,CAACrB,UAAWE,EAAOiB,0BAO7C"}
|
|
1
|
+
{"version":3,"file":"OffsetWellMap.js","sources":["../../../../src/components/OffsetWellMap/OffsetWellMap.js"],"sourcesContent":["import { createElement, useRef, useEffect, useState, useMemo } from 'react';\nimport { get } from 'lodash';\nimport classNames from 'classnames';\nimport { Tooltip } from '@material-ui/core';\nimport { Add as ZoomInIcon, Remove as ZoomOutIcon } from '@material-ui/icons';\nimport 'mapbox-gl/dist/mapbox-gl.css';\n\nimport SubjectWellIcon from './CustomIcon/SubjectWellIcon.svg';\nimport SubjectHighlightWellIcon from './CustomIcon/SubjectHighlightWellIcon.svg';\nimport { usePreviousWells } from './effects';\nimport { WellTooltip } from './WellTooltip';\nimport { getAllFormations } from './utils';\n\nimport styles from './OffsetWellMap.module.css';\n\nimport mapboxgl from '~/config/mapboxGl';\nimport { IS_MAPBOX_ENABLED } from '~/config/mapbox';\nimport { mapbox } from '~/utils';\nimport { createAdaptiveRoot } from '~/utils/createAdaptiveRoot';\n\nconst { isValidCoordinates } = mapbox;\nconst DEFAULT_COORDS = [29.749907, -95.358421];\nconst WELL_MARKER_SIZE = 5;\nconst HIGHLIGHT_MARKER_SIZE = 12;\nconst OFFSET_WELL_COLOR = '#03BCD4';\nconst RADIUS_CIRCLE_COLOR = '#03BCD4';\nconst HIGHLIGHT_WELL_COLOR = '#63EFFF';\nconst METERS_IN_MILE = 1609.34;\nconst ZOOM_INIT_VALUE = 3;\nconst ZOOM_MAX_VALUE = 18;\nconst ZOOM_MIN_VALUE = 1;\nconst MAX_RADIUS = 3000;\n\nconst RADIUS_SOURCE_ID = 'radius-circle';\nconst RADIUS_LAYER_ID = 'radius-circle-fill';\nconst WELLS_SOURCE_ID = 'wells';\nconst WELLS_HALO_LAYER_ID = 'wells-halo';\nconst WELLS_LAYER_ID = 'wells-circle';\nconst WELLS_ACTIVE_LAYER_ID = 'wells-active-highlight';\nconst WELLS_HOVER_LAYER_ID = 'wells-hover-highlight';\nconst EMPTY_FEATURE_COLLECTION = { type: 'FeatureCollection', features: [] };\nconst NO_HOVER_FILTER = ['==', ['id'], -1];\n\n// NOTE: Props keep the Leaflet [lat, lng] convention; mapbox-gl expects [lng, lat]\nconst toLngLat = ([lat, lng]) => [lng, lat];\n\n// NOTE: mapbox-gl circle layers are pixel-radius, so approximate the meter radius with a polygon\nconst makeCirclePolygon = ([lat, lng], radiusMeters, points = 64) => {\n const degreesLng = radiusMeters / (111320 * Math.cos((lat * Math.PI) / 180));\n const degreesLat = radiusMeters / 110574;\n const ring = [];\n for (let i = 0; i <= points; i += 1) {\n const theta = (i / points) * 2 * Math.PI;\n ring.push([lng + degreesLng * Math.cos(theta), lat + degreesLat * Math.sin(theta)]);\n }\n return { type: 'Polygon', coordinates: [ring] };\n};\n\nconst getCircleBounds = ([lat, lng], radiusMeters) => {\n const degreesLng = radiusMeters / (111320 * Math.cos((lat * Math.PI) / 180));\n const degreesLat = radiusMeters / 110574;\n return [\n [lng - degreesLng, lat - degreesLat],\n [lng + degreesLng, lat + degreesLat],\n ];\n};\n\n/** @type {React.FC<import('./OffsetWellMapProps').OffsetWellMapProps>} */\nconst OffsetWellMap = ({\n isViewOnly,\n subjectWell = null,\n wells,\n offsetWellIds,\n radius,\n handleChanageOffsetWell,\n handleChangeOffsetWell = handleChanageOffsetWell,\n activeWellId,\n isClickable = true,\n classes = {},\n}) => {\n const subjectWellCoords = useMemo(() => {\n return subjectWell && get(subjectWell, 'topHole.coordinates');\n }, [subjectWell]);\n const formationColors = useMemo(() => getAllFormations(wells), [wells]);\n\n const containerRef = useRef();\n const mapRef = useRef();\n const popupRef = useRef();\n const radiusBoundsRef = useRef(null);\n const wellsBoundsRef = useRef(null);\n const subjectIconRef = useRef();\n const wellByFeatureIdRef = useRef(new Map());\n const subjectFeatureIdRef = useRef(null);\n const hoveredFeatureIdRef = useRef(null);\n const tooltipRootRef = useRef(null);\n const [isSubjectWellHovered, setIsSubjectWellHovered] = useState(false);\n const isActiveWellIsSubjectWell = subjectWell?.id === activeWellId;\n const prevWells = usePreviousWells(wells);\n const [isMapReady, setIsMapReady] = useState(false);\n const [zoom, setZoom] = useState(ZOOM_INIT_VALUE);\n\n // NOTE: Initialize map\n useEffect(() => {\n if (!IS_MAPBOX_ENABLED) return undefined;\n\n const map = new mapboxgl.Map({\n container: containerRef.current,\n style: 'mapbox://styles/mapbox/dark-v9',\n center: toLngLat(DEFAULT_COORDS),\n zoom: ZOOM_INIT_VALUE,\n // NOTE: keep the zoom buttons' disable logic (zoom === ZOOM_MAX_VALUE) reachable\n maxZoom: ZOOM_MAX_VALUE,\n attributionControl: false,\n scrollZoom: false,\n doubleClickZoom: false,\n });\n mapRef.current = map;\n\n // NOTE: GL zoom is fractional where Leaflet was integer\n map.on('zoomend', () => setZoom(Math.round(map.getZoom())));\n\n // NOTE: Sources/layers can only be added after the style loads\n map.on('load', () => {\n map.addSource(RADIUS_SOURCE_ID, { type: 'geojson', data: EMPTY_FEATURE_COLLECTION });\n map.addLayer({\n id: RADIUS_LAYER_ID,\n type: 'fill',\n source: RADIUS_SOURCE_ID,\n paint: {\n 'fill-color': RADIUS_CIRCLE_COLOR,\n 'fill-opacity': 0.2,\n },\n });\n\n map.addSource(WELLS_SOURCE_ID, { type: 'geojson', data: EMPTY_FEATURE_COLLECTION });\n map.addLayer({\n id: WELLS_HALO_LAYER_ID,\n type: 'circle',\n source: WELLS_SOURCE_ID,\n filter: ['==', ['get', 'isOffsetWell'], true],\n paint: {\n 'circle-radius': HIGHLIGHT_MARKER_SIZE,\n 'circle-color': ['get', 'color'],\n 'circle-opacity': 0.08,\n },\n });\n map.addLayer({\n id: WELLS_LAYER_ID,\n type: 'circle',\n source: WELLS_SOURCE_ID,\n layout: {\n 'circle-sort-key': ['get', 'order'],\n },\n paint: {\n 'circle-radius': WELL_MARKER_SIZE,\n 'circle-color': ['get', 'color'],\n 'circle-opacity': ['get', 'opacity'],\n },\n });\n map.addLayer({\n id: WELLS_ACTIVE_LAYER_ID,\n type: 'circle',\n source: WELLS_SOURCE_ID,\n filter: ['==', ['get', 'isActive'], true],\n paint: {\n 'circle-radius': HIGHLIGHT_MARKER_SIZE,\n 'circle-color': ['get', 'color'],\n 'circle-opacity': 0.24,\n },\n });\n map.addLayer({\n id: WELLS_HOVER_LAYER_ID,\n type: 'circle',\n source: WELLS_SOURCE_ID,\n filter: NO_HOVER_FILTER,\n paint: {\n 'circle-radius': [\n 'case',\n ['get', 'isSubjectWell'],\n WELL_MARKER_SIZE,\n HIGHLIGHT_MARKER_SIZE,\n ],\n 'circle-color': [\n 'case',\n ['get', 'isSubjectWell'],\n HIGHLIGHT_WELL_COLOR,\n ['get', 'color'],\n ],\n 'circle-opacity': 0.24,\n },\n });\n\n setIsMapReady(true);\n });\n\n return () => {\n tooltipRootRef.current?.unmount();\n tooltipRootRef.current = null;\n\n map.remove();\n mapRef.current = null;\n popupRef.current = null;\n subjectIconRef.current = null;\n radiusBoundsRef.current = null;\n wellsBoundsRef.current = null;\n };\n }, []);\n\n // NOTE: Radius circle\n useEffect(() => {\n radiusBoundsRef.current =\n subjectWellCoords && radius\n ? getCircleBounds(subjectWellCoords, radius * METERS_IN_MILE)\n : null;\n\n const map = mapRef.current;\n if (!map || !isMapReady) {\n return;\n }\n\n map.getSource(RADIUS_SOURCE_ID).setData(\n subjectWellCoords && radius\n ? {\n type: 'Feature',\n properties: {},\n geometry: makeCirclePolygon(subjectWellCoords, radius * METERS_IN_MILE),\n }\n : EMPTY_FEATURE_COLLECTION\n );\n }, [radius, subjectWellCoords, isMapReady]);\n\n const showTooltip = (well, isOffsetWell, isSubjectWell, coords) => {\n tooltipRootRef.current?.unmount();\n\n const popUpContainer = document.createElement('div');\n const popUpContent = createElement(WellTooltip(), {\n isViewOnly,\n well,\n color: get(formationColors, well.formation, '#BDBDBD'),\n isOffsetWell,\n isSubjectWell,\n isClickable,\n });\n tooltipRootRef.current = createAdaptiveRoot(popUpContainer);\n tooltipRootRef.current.render(<>{popUpContent}</>);\n if (!popupRef.current) {\n popupRef.current = new mapboxgl.Popup({\n closeButton: false,\n offset: HIGHLIGHT_MARKER_SIZE,\n });\n }\n popupRef.current\n .setLngLat(toLngLat(coords))\n .setDOMContent(popUpContainer)\n .addTo(mapRef.current);\n };\n\n // NOTE: Subject well hover swaps the subject marker color\n useEffect(() => {\n const map = mapRef.current;\n if (!map || !isMapReady) {\n return;\n }\n\n map.setPaintProperty(\n WELLS_LAYER_ID,\n 'circle-color',\n isSubjectWellHovered\n ? ['case', ['get', 'isSubjectWell'], HIGHLIGHT_WELL_COLOR, ['get', 'color']]\n : ['get', 'color']\n );\n }, [isSubjectWellHovered, isMapReady]);\n\n // NOTE: Well markers\n useEffect(() => {\n if (!wells || !offsetWellIds) {\n return undefined;\n }\n\n popupRef.current?.remove();\n\n const offsetWells = [];\n const unSelectedWells = [];\n wells.forEach(well => {\n if (well.id !== subjectWell?.id) {\n if (offsetWellIds.includes(well.id)) {\n offsetWells.push(well);\n } else {\n unSelectedWells.push(well);\n }\n }\n });\n const sortedWells = [...unSelectedWells, ...offsetWells, subjectWell];\n\n const features = [];\n const wellsBounds = new mapboxgl.LngLatBounds();\n wellByFeatureIdRef.current.clear();\n subjectFeatureIdRef.current = null;\n sortedWells.forEach((well, index) => {\n const coords = well?.topHole?.coordinates;\n\n if (coords && isValidCoordinates(coords)) {\n const isSubjectWell = subjectWell?.id === well.id;\n const isOffsetWell = offsetWellIds.includes(well.id) && !isSubjectWell;\n const color = isSubjectWell\n ? OFFSET_WELL_COLOR\n : get(formationColors, well.formation, '#BDBDBD');\n const opacity = isOffsetWell ? 0.7 : 0.3;\n\n features.push({\n type: 'Feature',\n id: index,\n geometry: { type: 'Point', coordinates: toLngLat(coords) },\n properties: {\n color,\n opacity: isSubjectWell ? 1 : opacity,\n isSubjectWell,\n isOffsetWell,\n isActive: well.id === activeWellId && !isActiveWellIsSubjectWell,\n order: index,\n },\n });\n wellByFeatureIdRef.current.set(index, { well, coords, isOffsetWell, isSubjectWell });\n if (isSubjectWell) {\n subjectFeatureIdRef.current = index;\n }\n wellsBounds.extend(toLngLat(coords));\n }\n });\n wellsBoundsRef.current = features.length ? wellsBounds : null;\n\n const map = mapRef.current;\n if (!map || !isMapReady) {\n return undefined;\n }\n\n map.getSource(WELLS_SOURCE_ID).setData({ type: 'FeatureCollection', features });\n map.setFilter(WELLS_HOVER_LAYER_ID, NO_HOVER_FILTER);\n hoveredFeatureIdRef.current = null;\n\n const handleMouseMove = e => {\n const feature = e.features?.[0];\n if (!feature || hoveredFeatureIdRef.current === feature.id) {\n return;\n }\n const entry = wellByFeatureIdRef.current.get(feature.id);\n if (!entry) {\n return;\n }\n\n hoveredFeatureIdRef.current = feature.id;\n map.getCanvas().style.cursor = 'pointer';\n\n // Highlight\n map.setFilter(WELLS_HOVER_LAYER_ID, ['==', ['id'], feature.id]);\n showTooltip(entry.well, entry.isOffsetWell, entry.isSubjectWell, entry.coords);\n if (entry.isSubjectWell) {\n setIsSubjectWellHovered(true);\n }\n };\n\n const handleMouseLeave = e => {\n // NOTE: Leaflet cleared hover on leaving the ENLARGED highlight marker, so keep the\n // hover while the cursor is still over the hover halo (or another well marker)\n if (\n e?.point &&\n map.queryRenderedFeatures(e.point, { layers: [WELLS_LAYER_ID, WELLS_HOVER_LAYER_ID] })\n .length\n ) {\n return;\n }\n const wasSubjectWell =\n hoveredFeatureIdRef.current !== null &&\n hoveredFeatureIdRef.current === subjectFeatureIdRef.current;\n hoveredFeatureIdRef.current = null;\n map.getCanvas().style.cursor = '';\n map.setFilter(WELLS_HOVER_LAYER_ID, NO_HOVER_FILTER);\n popupRef.current?.remove();\n if (wasSubjectWell) {\n setIsSubjectWellHovered(false);\n }\n };\n\n const handleClick = e => {\n if (isViewOnly) return;\n const entry = wellByFeatureIdRef.current.get(e.features?.[0]?.id);\n if (!entry) {\n return;\n }\n handleChangeOffsetWell(entry.well, !entry.isOffsetWell);\n };\n\n map.on('mousemove', WELLS_LAYER_ID, handleMouseMove);\n map.on('mouseleave', WELLS_LAYER_ID, handleMouseLeave);\n map.on('mouseleave', WELLS_HOVER_LAYER_ID, handleMouseLeave);\n map.on('click', WELLS_LAYER_ID, handleClick);\n\n setTimeout(() => {\n if (radius < MAX_RADIUS && mapRef.current && radiusBoundsRef.current && wells !== prevWells) {\n mapRef.current.fitBounds(radiusBoundsRef.current, { padding: 5 });\n }\n }, 500);\n\n return () => {\n map.off('mousemove', WELLS_LAYER_ID, handleMouseMove);\n map.off('mouseleave', WELLS_LAYER_ID, handleMouseLeave);\n map.off('mouseleave', WELLS_HOVER_LAYER_ID, handleMouseLeave);\n map.off('click', WELLS_LAYER_ID, handleClick);\n };\n }, [subjectWell, wells, offsetWellIds, activeWellId, isMapReady]);\n\n // NOTE: Subject Well Icon\n\n useEffect(() => {\n const map = mapRef.current;\n\n if (subjectIconRef.current) {\n subjectIconRef.current.remove();\n subjectIconRef.current = null;\n }\n\n if (!map || !subjectWellCoords) return;\n\n const isHighlighted = isSubjectWellHovered || isActiveWellIsSubjectWell;\n const icon = document.createElement('img');\n icon.src = isHighlighted ? SubjectHighlightWellIcon : SubjectWellIcon;\n const [iconWidth, iconHeight] = isHighlighted ? [70, 20] : [62, 12];\n const [anchorX, anchorY] = isHighlighted ? [35, 29] : [31, 25];\n icon.width = iconWidth;\n icon.height = iconHeight;\n\n icon.addEventListener('mouseover', () => {\n setIsSubjectWellHovered(true);\n\n // Highlight\n if (subjectFeatureIdRef.current !== null && map.getLayer(WELLS_HOVER_LAYER_ID)) {\n hoveredFeatureIdRef.current = subjectFeatureIdRef.current;\n map.setFilter(WELLS_HOVER_LAYER_ID, ['==', ['id'], subjectFeatureIdRef.current]);\n }\n showTooltip(subjectWell, false, true, subjectWellCoords);\n });\n\n icon.addEventListener('mouseout', () => {\n hoveredFeatureIdRef.current = null;\n if (map.getLayer(WELLS_HOVER_LAYER_ID)) {\n map.setFilter(WELLS_HOVER_LAYER_ID, NO_HOVER_FILTER);\n }\n popupRef.current?.remove();\n setIsSubjectWellHovered(false);\n });\n\n subjectIconRef.current = new mapboxgl.Marker({\n element: icon,\n anchor: 'center',\n // NOTE: Leaflet anchored the icon at [anchorX, anchorY] from its top-left corner\n offset: [iconWidth / 2 - anchorX, iconHeight / 2 - anchorY],\n })\n .setLngLat(toLngLat(subjectWellCoords))\n .addTo(map);\n }, [isSubjectWellHovered, subjectWellCoords, radius, subjectWell, isActiveWellIsSubjectWell]);\n\n // NOTE: Map Update\n useEffect(() => {\n if (radius > MAX_RADIUS) {\n mapRef.current?.setZoom(1);\n return;\n }\n setTimeout(() => {\n if (subjectWell) {\n if (mapRef.current && radiusBoundsRef.current && radius) {\n mapRef.current.fitBounds(radiusBoundsRef.current, { padding: 5 });\n }\n } else if (mapRef.current && wellsBoundsRef.current) {\n mapRef.current.fitBounds(wellsBoundsRef.current);\n }\n if (subjectWellCoords && mapRef.current) {\n mapRef.current.easeTo({ center: toLngLat(subjectWellCoords), duration: 700 });\n }\n }, 500);\n }, [radius, subjectWell, subjectWellCoords]);\n\n const handleZoomIn = () => {\n mapRef.current?.setZoom(zoom + 1);\n };\n\n const handleZoomOut = () => {\n if (zoom > 1) {\n mapRef.current?.setZoom(zoom - 1);\n }\n };\n\n return (\n <div className={classNames(styles.mapView, classes.root)}>\n <div\n className={classNames(styles.mapMain, classes.map)}\n ref={containerRef}\n onDoubleClick={handleZoomIn}\n >\n <div className={styles.zoomGroup}>\n <Tooltip title={zoom < ZOOM_MAX_VALUE ? 'Zoom in' : ''} placement=\"left\">\n <div\n className={classNames(styles.zoomButton, {\n [styles.zoomDisabled]: zoom === ZOOM_MAX_VALUE,\n })}\n onClick={handleZoomIn}\n >\n <ZoomInIcon className={styles.zoomInOutIcon} />\n </div>\n </Tooltip>\n <Tooltip title={zoom > ZOOM_MIN_VALUE ? 'Zoom out' : ''} placement=\"left\">\n <div\n className={classNames(styles.zoomButton, {\n [styles.zoomDisabled]: zoom === ZOOM_MIN_VALUE,\n })}\n onClick={handleZoomOut}\n >\n <ZoomOutIcon className={styles.zoomInOutIcon} />\n </div>\n </Tooltip>\n </div>\n </div>\n </div>\n );\n};\n\nexport default OffsetWellMap;\n"],"names":["isValidCoordinates","mapbox","DEFAULT_COORDS","EMPTY_FEATURE_COLLECTION","type","features","NO_HOVER_FILTER","toLngLat","_ref","_ref2","_slicedToArray","lat","makeCirclePolygon","_ref3","radiusMeters","_ref4","lng","points","degreesLng","Math","cos","PI","degreesLat","ring","i","theta","push","sin","coordinates","_ref7","isViewOnly","_ref7$subjectWell","subjectWell","wells","offsetWellIds","radius","handleChanageOffsetWell","_ref7$handleChangeOff","handleChangeOffsetWell","activeWellId","_ref7$isClickable","isClickable","_ref7$classes","classes","subjectWellCoords","useMemo","get","formationColors","getAllFormations","containerRef","useRef","mapRef","popupRef","radiusBoundsRef","wellsBoundsRef","subjectIconRef","wellByFeatureIdRef","Map","subjectFeatureIdRef","hoveredFeatureIdRef","tooltipRootRef","useState","_useState2","_useState","isSubjectWellHovered","setIsSubjectWellHovered","isActiveWellIsSubjectWell","id","prevWells","usePreviousWells","_useState4","_useState3","isMapReady","setIsMapReady","_useState6","_useState5","zoom","setZoom","useEffect","IS_MAPBOX_ENABLED","map","mapboxgl","container","current","style","center","maxZoom","attributionControl","scrollZoom","doubleClickZoom","on","round","getZoom","addSource","data","addLayer","source","paint","filter","layout","_tooltipRootRef$curre","unmount","remove","_ref5","_ref6","getSource","setData","properties","geometry","showTooltip","well","isOffsetWell","isSubjectWell","coords","_tooltipRootRef$curre2","popUpContainer","document","createElement","popUpContent","WellTooltip","color","formation","createAdaptiveRoot","render","_jsx","_Fragment","children","Popup","closeButton","offset","setLngLat","setDOMContent","addTo","setPaintProperty","_popupRef$current","offsetWells","unSelectedWells","forEach","includes","sortedWells","wellsBounds","LngLatBounds","clear","index","_well$topHole","topHole","opacity","isActive","order","set","extend","length","setFilter","handleMouseMove","e","_e$features","feature","entry","getCanvas","cursor","handleMouseLeave","_popupRef$current2","point","queryRenderedFeatures","layers","wasSubjectWell","handleClick","_e$features2","_e$features2$","setTimeout","fitBounds","padding","off","isHighlighted","icon","src","_ref8","_ref9","iconWidth","iconHeight","_ref10","_ref11","anchorX","anchorY","width","height","addEventListener","getLayer","_popupRef$current3","Marker","element","anchor","_mapRef$current","easeTo","duration","handleZoomIn","_mapRef$current2","className","classNames","styles","mapView","root","jsx","mapMain","ref","onDoubleClick","_jsxs","jsxs","zoomGroup","Tooltip","title","placement","zoomButton","_defineProperty","zoomDisabled","onClick","ZoomInIcon","zoomInOutIcon","_mapRef$current3","ZoomOutIcon"],"mappings":"mvBAoBQA,EAAuBC,EAAMA,OAA7BD,mBACFE,EAAiB,CAAC,WAAY,WAmB9BC,EAA2B,CAAEC,KAAM,oBAAqBC,SAAU,IAClEC,EAAkB,CAAC,KAAM,CAAC,OAAQ,GAGlCC,EAAW,SAAHC,GAAA,IAAAC,EAAAC,EAAAA,QAAAF,EAAA,GAAKG,EAAGF,EAAA,GAAK,MAAM,CAANA,EAAA,GAAYE,EAAI,EAGrCC,EAAoB,SAAHC,EAAgBC,GAIrC,IAJmE,IAAAC,EAAAL,EAAAA,QAAAG,EAAA,GAAzCF,EAAGI,EAAA,GAAEC,EAAGD,EAAA,GAAiBE,yDAAS,GACtDC,EAAaJ,GAAgB,OAASK,KAAKC,IAAKT,EAAMQ,KAAKE,GAA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AUlF,SAAA,CAC/BF,MAACqF,UAAO,CAACC,MAAOtI,GAtdH,GAsd2B,UAAY,GAAIuI,UAAU,OAAMrF,SACtEF,EAAA8E,IAAA,MAAA,CACEL,UAAWC,EAAU,QAACC,EAAOa,WAAUC,EAAA,QAAA,GACpCd,EAAOe,aAzdD,KAydgB1I,KAEzB2I,QAASpB,GAAarE,SAEtBF,MAAC4F,MAAU,CAACnB,UAAWE,EAAOkB,oBAGlC7F,MAACqF,UAAO,CAACC,MAAOtI,GA/dH,EA+d2B,WAAa,GAAIuI,UAAU,OAAMrF,SACvEF,EAAA8E,IAAA,MAAA,CACEL,UAAWC,EAAU,QAACC,EAAOa,WAAUC,EAAA,QAAA,GACpCd,EAAOe,aAleD,IAkegB1I,KAEzB2I,QA7BU,WACN,IAAAG,EAAV9I,GAAO,IACT,QAAAzB,EAAAA,EAAOgC,eAAP,IAAAuI,GAAAA,EAAgB7I,QAAQD,GAAO,KA2BAkD,SAEvBF,MAAC+F,SAAW,CAACtB,UAAWE,EAAOkB,0BAO7C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),u=require("
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),u=require("prop-types"),n=require("lodash"),i=require("@material-ui/core/styles"),o=require("./Map.css.js"),a=require("../../../../utils/index.js"),l=require("../../../../utils/createAdaptiveRoot.js"),s=require("../../../../config/theme/index.js");require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/regenerator"),require("highcharts"),require("highcharts/highcharts-more"),require("highcharts/modules/solid-gauge"),require("highcharts/modules/heatmap"),require("highcharts/modules/boost"),require("highcharts/modules/exporting"),require("highcharts/modules/xrange"),require("highcharts/modules/dumbbell"),require("highcharts/modules/pattern-fill"),require("highcharts/modules/annotations"),require("highcharts-multicolor-series"),require("dompurify");var c=require("../../../../config/mapbox/index.js");require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("@babel/runtime/helpers/toArray"),require("@babel/runtime/helpers/toConsumableArray"),require("../../../../clients/subscriptions/constants.js"),require("../../../../clients/subscriptions.v1.js"),require("../../../../clients/subscriptions/subscriptions-client.factory.js"),require("../../../../config/extendNative.js"),require("../../../../config/mapboxGl/index.js"),require("mapbox-gl/dist/mapbox-gl.css");var d=require("react/jsx-runtime"),f=require("mapbox-gl");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=p(e),h=p(r),b=p(u),g=p(f);function v(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);r&&(u=u.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,u)}return t}function y(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?v(Object(t),!0).forEach((function(r){m.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var q=a.mapbox.isValidCoordinates,j=["#FF00FF","#F5BD80","#FF0000","#0080FF","#FF8000","#58ACFA","#FA58F4","#40FF00","#4B8A08","#40FF00","#D8F781"],F=[29.749907,-95.358421],x={type:"FeatureCollection",features:[]},w=function(e){var r=h.default(e,2),t=r[0];return[r[1],t]};function O(e){var r=e.subjectWell,u=e.wells,a=e.offsetWells,f=e.radius,p=e.subjectWellMarkerSize,b=e.wellMarkerSize,v=e.popUpFormatter,O=e.coordsDataPath,P=t.useRef(null),M=t.useRef(null),C=t.useRef(null),S=t.useRef(null),D=t.useRef(null),N=t.useRef(null),B=t.useRef(null),R=t.useRef(),k=t.useState(!1),E=h.default(k,2),I=E[0],A=E[1],L=t.useMemo((function(){return u.filter((function(e){return!r||r.id!==e.id}))}),[r,u]),W=t.useMemo((function(){return r&&n.get(r,O)}),[r,O]),T=t.useMemo((function(){var e=[],t=!1;L.forEach((function(u){"Null"===u.formation?t=!0:r&&r.formation===u.formation||e.includes(u.formation)||e.push(u.formation)}));var u=r?[r.formation].concat(n.sortBy(e)):n.sortBy(e);t&&!u.includes("Null")&&u.push("Null");var i=u.reduce((function(e,r,t){return y(y({},e),{},m.default({},r,j[t%j.length]))}),{});return[u,i]}),[r,L]),z=h.default(T,2),U=z[0],_=z[1];return t.useEffect((function(){if(c.IS_MAPBOX_ENABLED){M.current=new g.default.Map({container:P.current,style:"mapbox://styles/mapbox/dark-v9",center:w(F),zoom:1,attributionControl:!1,scrollZoom:!1}),M.current.addControl(new g.default.NavigationControl({showCompass:!1}),"bottom-right"),M.current.on("load",(function(){M.current.addSource("radius-circle",{type:"geojson",data:x}),M.current.addLayer({id:"radius-circle",type:"fill",source:"radius-circle",paint:{"fill-color":"#03BCD4","fill-opacity":.2}}),M.current.addSource("wells",{type:"geojson",data:x}),M.current.addLayer({id:"wells",type:"circle",source:"wells",paint:{"circle-radius":["get","radius"],"circle-color":["get","color"],"circle-opacity":["get","opacity"]}}),A(!0)}));var e=M.current;return function(){var r;null===(r=N.current)||void 0===r||r.unmount(),N.current=null,B.current=null,e.remove(),M.current=null,C.current=null,S.current=null}}}),[]),t.useEffect((function(){if(M.current&&I){if(!W)return M.current.getSource("radius-circle").setData(x),void(C.current=null);var e=function(e,r){for(var t=h.default(e,2),u=t[0],n=t[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:64,o=[],a=r/(111320*Math.cos(u*Math.PI/180)),l=r/110574,s=0;s<=i;s+=1){var c=s/i*(2*Math.PI);o.push([n+a*Math.cos(c),u+l*Math.sin(c)])}return o}(W,1609.34*f);M.current.getSource("radius-circle").setData({type:"Feature",geometry:{type:"Polygon",coordinates:[e]}}),C.current=e.reduce((function(e,r){return e.extend(r)}),new g.default.LngLatBounds)}}),[f,W,I]),t.useEffect((function(){var e;if(M.current&&I){var o=R.current;R.current=u,null===(e=D.current)||void 0===e||e.remove();var c=a.map((function(e){return e.id})),f=[],m={},h=new g.default.LngLatBounds;u.forEach((function(e){var t=n.get(e,O);if(t&&q(t)){var u=r&&r.id===e.id,i=c.includes(e.id),o=u?p:b,a=u||i?"#00FFFF":_[e.formation],l=u||i?1:.3;m[e.id]=e,h.extend(w(t)),f.push({type:"Feature",geometry:{type:"Point",coordinates:w(t)},properties:{wellId:e.id,radius:o,color:a,opacity:l}})}})),M.current.getSource("wells").setData({type:"FeatureCollection",features:f}),S.current=f.length?h:null;var y=M.current,j=null,F=function(e){y.getCanvas().style.cursor="pointer";var r=m[e.features[0].properties.wellId];if(r&&r.id!==j&&(j=r.id,v)){var u=t.createElement(v,{well:r,color:_[r.formation]});B.current||(B.current=document.createElement("div"),N.current=l.createAdaptiveRoot(B.current)),N.current.render(d.jsx(i.MuiThemeProvider,{theme:s.darkTheme,children:u})),D.current||(D.current=new g.default.Popup({closeButton:!1,maxWidth:"none"})),D.current.setLngLat(w(n.get(r,O))).setDOMContent(B.current).addTo(y)}},x=function(){j=null,y.getCanvas().style.cursor=""};return y.on("mousemove","wells",F),y.on("mouseleave","wells",x),setTimeout((function(){M.current&&C.current&&u!==o&&M.current.fitBounds(C.current,{padding:5})}),500),function(){y.off("mousemove","wells",F),y.off("mouseleave","wells",x)}}}),[r,u,a,_,I]),t.useEffect((function(){setTimeout((function(){r?M.current&&C.current&&M.current.fitBounds(C.current,{padding:5}):M.current&&S.current&&M.current.fitBounds(S.current)}),500)}),[f,r,I]),d.jsxs("div",{className:o.map,children:[d.jsx("div",{className:o.mapMain,ref:P}),d.jsxs("div",{className:o.mapFooter,children:[a&&d.jsxs("div",{className:o.mapFooterItem,children:[d.jsx("div",{className:o.mapFooterItemSquare,style:{backgroundColor:"#00FFFF"}}),d.jsx("div",{className:o.mapFooterItemLabel,children:"Selected Offset Wells"})]}),U.map((function(e){return d.jsxs("div",{className:o.mapFooterItem,children:[d.jsx("div",{className:o.mapFooterItemSquare,style:{backgroundColor:_[e]}}),d.jsx("div",{className:o.mapFooterItemLabel,children:e})]},e)}))]})]})}O.propTypes={subjectWell:b.default.shape({id:b.default.number,formation:b.default.string}),wells:b.default.arrayOf(b.default.shape({})).isRequired,offsetWells:b.default.arrayOf(b.default.shape({})),radius:b.default.number.isRequired,subjectWellMarkerSize:b.default.number,wellMarkerSize:b.default.number,popUpFormatter:b.default.func,coordsDataPath:b.default.string},O.defaultProps={subjectWell:null,subjectWellMarkerSize:10,wellMarkerSize:5,popUpFormatter:null,coordsDataPath:"settings.top_hole.coordinates",offsetWells:null};var P=t.memo(O);module.exports=P;
|
|
2
2
|
//# sourceMappingURL=Map.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Map.js","sources":["../../../../../../src/components/OffsetWellPickerV2/components/Map/Map.js"],"sourcesContent":["import { createElement, memo, useRef, useEffect, useMemo, useState } from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { get, sortBy } from 'lodash';\nimport { MuiThemeProvider } from '@material-ui/core/styles';\n\nimport styles from './Map.css';\n\nimport { mapbox } from '~/utils';\nimport { theme } from '~/config';\nimport mapboxgl from '~/config/mapboxGl';\nimport { IS_MAPBOX_ENABLED } from '~/config/mapbox';\nimport 'mapbox-gl/dist/mapbox-gl.css';\n\nconst { isValidCoordinates } = mapbox;\n\nconst RADIUS_CIRCLE_COLOR = '#03BCD4';\nconst METERS_IN_MILE = 1609.34;\nconst DEFAULT_SUBJECT_WELL_MARKER_SIZE = 10;\nconst DEFAULT_WELL_MARKER_SIZE = 5;\nconst OFFSET_WELL_COLOR = '#00FFFF';\nconst COLORS = [\n '#FF00FF',\n '#F5BD80',\n '#FF0000',\n '#0080FF',\n '#FF8000',\n '#58ACFA',\n '#FA58F4',\n '#40FF00',\n '#4B8A08',\n '#40FF00',\n '#D8F781',\n];\n\nconst DEFAULT_COORDS = [29.749907, -95.358421]; // TX coordinates\n\nconst RADIUS_CIRCLE_ID = 'radius-circle';\nconst WELLS_ID = 'wells';\nconst EMPTY_FEATURE_COLLECTION = { type: 'FeatureCollection', features: [] };\n\nconst toLngLat = ([lat, lng]) => [lng, lat];\n\n// NOTE: mapbox-gl has no geographic-radius circle primitive, so approximate it with a polygon\nconst makeCirclePolygon = ([lat, lng], radiusMeters, points = 64) => {\n const ring = [];\n const distanceX = radiusMeters / (111320 * Math.cos((lat * Math.PI) / 180));\n const distanceY = radiusMeters / 110574;\n for (let i = 0; i <= points; i += 1) {\n const theta = (i / points) * (2 * Math.PI);\n ring.push([lng + distanceX * Math.cos(theta), lat + distanceY * Math.sin(theta)]);\n }\n return ring;\n};\n\n// eslint-disable-next-line no-unused-vars\nfunction WellsMap({\n subjectWell,\n wells,\n offsetWells,\n radius,\n subjectWellMarkerSize,\n wellMarkerSize,\n popUpFormatter,\n coordsDataPath,\n}) {\n const mapContainerRef = useRef(null);\n const mapRef = useRef(null);\n const radiusCircleBoundsRef = useRef(null);\n const markersBoundsRef = useRef(null);\n const popupRef = useRef(null);\n const prevWellsRef = useRef();\n const [isMapReady, setIsMapReady] = useState(false);\n\n const restWells = useMemo(() => {\n return wells.filter(well => !subjectWell || subjectWell.id !== well.id);\n }, [subjectWell, wells]);\n\n const subjectWellCoords = useMemo(() => {\n return subjectWell && get(subjectWell, coordsDataPath);\n }, [subjectWell, coordsDataPath]);\n\n // NOTE: Get well marker colors according to its target formation\n const [formations, colorDict] = useMemo(() => {\n // NOTE: Determine well marker colors\n const restFormations = [];\n let hasNullFormation = false;\n\n restWells.forEach(well => {\n if (well.formation === 'Null') {\n hasNullFormation = true;\n } else if (\n (!subjectWell || subjectWell.formation !== well.formation) &&\n !restFormations.includes(well.formation)\n ) {\n restFormations.push(well.formation);\n }\n });\n\n const sortedFormations = subjectWell\n ? [subjectWell.formation].concat(sortBy(restFormations))\n : sortBy(restFormations);\n\n if (hasNullFormation && !sortedFormations.includes('Null')) {\n sortedFormations.push('Null');\n }\n\n const colors = sortedFormations.reduce(\n (result, item, idx) => ({\n ...result,\n [item]: COLORS[idx % COLORS.length],\n }),\n {}\n );\n\n return [sortedFormations, colors];\n }, [subjectWell, restWells]);\n\n // NOTE: Initialize map\n useEffect(() => {\n if (!IS_MAPBOX_ENABLED) return undefined;\n\n mapRef.current = new mapboxgl.Map({\n container: mapContainerRef.current,\n style: 'mapbox://styles/mapbox/dark-v9',\n center: toLngLat(DEFAULT_COORDS),\n zoom: 1,\n attributionControl: false,\n scrollZoom: false,\n });\n\n mapRef.current.addControl(\n new mapboxgl.NavigationControl({ showCompass: false }),\n 'bottom-right'\n );\n\n // NOTE: Sources/layers can only be added once the style has loaded.\n // The radius circle layer is added first so well markers render above it (was bringToBack)\n mapRef.current.on('load', () => {\n mapRef.current.addSource(RADIUS_CIRCLE_ID, {\n type: 'geojson',\n data: EMPTY_FEATURE_COLLECTION,\n });\n mapRef.current.addLayer({\n id: RADIUS_CIRCLE_ID,\n type: 'fill',\n source: RADIUS_CIRCLE_ID,\n paint: {\n 'fill-color': RADIUS_CIRCLE_COLOR,\n 'fill-opacity': 0.2,\n },\n });\n\n mapRef.current.addSource(WELLS_ID, { type: 'geojson', data: EMPTY_FEATURE_COLLECTION });\n mapRef.current.addLayer({\n id: WELLS_ID,\n type: 'circle',\n source: WELLS_ID,\n paint: {\n 'circle-radius': ['get', 'radius'],\n 'circle-color': ['get', 'color'],\n 'circle-opacity': ['get', 'opacity'],\n },\n });\n\n setIsMapReady(true);\n });\n\n const map = mapRef.current;\n return () => {\n map.remove();\n mapRef.current = null;\n radiusCircleBoundsRef.current = null;\n markersBoundsRef.current = null;\n };\n }, []);\n\n // NOTE: Radius circle\n useEffect(() => {\n if (!mapRef.current || !isMapReady) {\n return;\n }\n\n if (!subjectWellCoords) {\n mapRef.current.getSource(RADIUS_CIRCLE_ID).setData(EMPTY_FEATURE_COLLECTION);\n radiusCircleBoundsRef.current = null;\n return;\n }\n\n const ring = makeCirclePolygon(subjectWellCoords, radius * METERS_IN_MILE);\n mapRef.current.getSource(RADIUS_CIRCLE_ID).setData({\n type: 'Feature',\n geometry: { type: 'Polygon', coordinates: [ring] },\n });\n radiusCircleBoundsRef.current = ring.reduce(\n (bounds, coord) => bounds.extend(coord),\n new mapboxgl.LngLatBounds()\n );\n }, [radius, subjectWellCoords, isMapReady]);\n\n // NOTE: Well markers\n useEffect(() => {\n if (!mapRef.current || !isMapReady) {\n return undefined;\n }\n\n const prevWells = prevWellsRef.current;\n prevWellsRef.current = wells;\n\n popupRef.current?.remove();\n\n const offsetWellIds = offsetWells.map(well => well.id);\n\n const features = [];\n const wellsById = {};\n const bounds = new mapboxgl.LngLatBounds();\n wells.forEach(well => {\n const coords = get(well, coordsDataPath);\n\n if (coords && isValidCoordinates(coords)) {\n const isWellSubject = subjectWell && subjectWell.id === well.id;\n const isWellOffset = offsetWellIds.includes(well.id);\n const r = isWellSubject ? subjectWellMarkerSize : wellMarkerSize;\n const color = isWellSubject || isWellOffset ? OFFSET_WELL_COLOR : colorDict[well.formation];\n const opacity = isWellSubject || isWellOffset ? 1 : 0.3;\n\n wellsById[well.id] = well;\n bounds.extend(toLngLat(coords));\n features.push({\n type: 'Feature',\n geometry: { type: 'Point', coordinates: toLngLat(coords) },\n properties: { wellId: well.id, radius: r, color, opacity },\n });\n }\n });\n\n mapRef.current.getSource(WELLS_ID).setData({ type: 'FeatureCollection', features });\n markersBoundsRef.current = features.length ? bounds : null;\n\n const map = mapRef.current;\n let hoveredWellId = null;\n\n const handleMouseMove = e => {\n map.getCanvas().style.cursor = 'pointer';\n\n const well = wellsById[e.features[0].properties.wellId];\n if (!well || well.id === hoveredWellId) {\n return;\n }\n hoveredWellId = well.id;\n\n if (popUpFormatter) {\n // Container to put React generated content in.\n const popUpContainer = document.createElement('div');\n const popUpContent = createElement(popUpFormatter, {\n well,\n color: colorDict[well.formation],\n });\n // NOTE: Custom popup may have buttons\n ReactDOM.render(\n <MuiThemeProvider theme={theme.darkTheme}>{popUpContent}</MuiThemeProvider>,\n popUpContainer\n );\n\n if (!popupRef.current) {\n popupRef.current = new mapboxgl.Popup({ closeButton: false, maxWidth: 'none' });\n }\n popupRef.current\n .setLngLat(toLngLat(get(well, coordsDataPath)))\n .setDOMContent(popUpContainer)\n .addTo(map);\n }\n };\n\n const handleMouseLeave = () => {\n hoveredWellId = null;\n map.getCanvas().style.cursor = '';\n };\n\n map.on('mousemove', WELLS_ID, handleMouseMove);\n map.on('mouseleave', WELLS_ID, handleMouseLeave);\n\n setTimeout(() => {\n if (mapRef.current && radiusCircleBoundsRef.current && wells !== prevWells) {\n mapRef.current.fitBounds(radiusCircleBoundsRef.current, { padding: 5 });\n }\n }, 500);\n\n return () => {\n map.off('mousemove', WELLS_ID, handleMouseMove);\n map.off('mouseleave', WELLS_ID, handleMouseLeave);\n };\n }, [subjectWell, wells, offsetWells, colorDict, isMapReady]);\n\n useEffect(() => {\n setTimeout(() => {\n if (subjectWell) {\n if (mapRef.current && radiusCircleBoundsRef.current) {\n mapRef.current.fitBounds(radiusCircleBoundsRef.current, {\n padding: 5,\n });\n }\n } else if (mapRef.current && markersBoundsRef.current) {\n mapRef.current.fitBounds(markersBoundsRef.current);\n }\n }, 500);\n }, [radius, subjectWell, isMapReady]);\n\n return (\n <div className={styles.map}>\n <div className={styles.mapMain} ref={mapContainerRef} />\n\n <div className={styles.mapFooter}>\n {offsetWells && (\n <div className={styles.mapFooterItem}>\n <div\n className={styles.mapFooterItemSquare}\n style={{ backgroundColor: OFFSET_WELL_COLOR }}\n />\n <div className={styles.mapFooterItemLabel}>Selected Offset Wells</div>\n </div>\n )}\n\n {formations.map(item => (\n <div className={styles.mapFooterItem} key={item}>\n <div\n className={styles.mapFooterItemSquare}\n style={{ backgroundColor: colorDict[item] }}\n />\n <div className={styles.mapFooterItemLabel}>{item}</div>\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nWellsMap.propTypes = {\n subjectWell: PropTypes.shape({\n id: PropTypes.number,\n formation: PropTypes.string,\n }),\n wells: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n offsetWells: PropTypes.arrayOf(PropTypes.shape({})),\n radius: PropTypes.number.isRequired,\n subjectWellMarkerSize: PropTypes.number,\n wellMarkerSize: PropTypes.number,\n popUpFormatter: PropTypes.func,\n coordsDataPath: PropTypes.string,\n};\n\nWellsMap.defaultProps = {\n subjectWell: null,\n subjectWellMarkerSize: DEFAULT_SUBJECT_WELL_MARKER_SIZE,\n wellMarkerSize: DEFAULT_WELL_MARKER_SIZE,\n popUpFormatter: null,\n coordsDataPath: 'settings.top_hole.coordinates',\n offsetWells: null,\n};\n\nexport default memo(WellsMap);\n"],"names":["isValidCoordinates","mapbox","COLORS","DEFAULT_COORDS","EMPTY_FEATURE_COLLECTION","type","features","toLngLat","_ref","_ref2","_slicedToArray","lat","WellsMap","_ref5","subjectWell","wells","offsetWells","radius","subjectWellMarkerSize","wellMarkerSize","popUpFormatter","coordsDataPath","mapContainerRef","useRef","mapRef","radiusCircleBoundsRef","markersBoundsRef","popupRef","prevWellsRef","useState","_useState2","_useState","isMapReady","setIsMapReady","restWells","useMemo","filter","well","id","subjectWellCoords","get","restFormations","hasNullFormation","forEach","formation","includes","push","sortedFormations","concat","sortBy","colors","reduce","result","item","idx","length","_useMemo2","_useMemo","formations","colorDict","useEffect","IS_MAPBOX_ENABLED","current","mapboxgl","Map","container","style","center","zoom","attributionControl","scrollZoom","addControl","NavigationControl","showCompass","on","addSource","data","addLayer","source","paint","map","remove","getSource","setData","ring","_ref3","radiusMeters","_ref4","lng","points","distanceX","Math","cos","PI","distanceY","i","theta","sin","makeCirclePolygon","geometry","coordinates","bounds","coord","extend","LngLatBounds","_popupRef$current","prevWells","offsetWellIds","wellsById","coords","isWellSubject","isWellOffset","r","color","opacity","properties","wellId","hoveredWellId","handleMouseMove","e","getCanvas","cursor","popUpContainer","document","createElement","popUpContent","ReactDOM","render","_jsx","jsx","MuiThemeProvider","theme","darkTheme","children","Popup","closeButton","maxWidth","setLngLat","setDOMContent","addTo","handleMouseLeave","setTimeout","fitBounds","padding","off","_jsxs","className","styles","mapMain","ref","jsxs","mapFooter","mapFooterItem","mapFooterItemSquare","backgroundColor","mapFooterItemLabel","propTypes","PropTypes","shape","number","string","arrayOf","isRequired","func","defaultProps","memo"],"mappings":"44EAcA,IAAQA,EAAuBC,EAAMA,OAA7BD,mBAOFE,EAAS,CACb,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAGIC,EAAiB,CAAC,WAAY,WAI9BC,EAA2B,CAAEC,KAAM,oBAAqBC,SAAU,IAElEC,EAAW,SAAHC,GAAA,IAAAC,EAAAC,EAAAA,QAAAF,EAAA,GAAKG,EAAGF,EAAA,GAAK,MAAM,CAANA,EAAA,GAAYE,EAAI,EAe3C,SAASC,EASNC,GAAA,IARDC,IAAAA,YACAC,IAAAA,MACAC,IAAAA,YACAC,IAAAA,OACAC,IAAAA,sBACAC,IAAAA,eACAC,IAAAA,eACAC,IAAAA,eAEMC,EAAkBC,SAAO,MACzBC,EAASD,SAAO,MAChBE,EAAwBF,SAAO,MAC/BG,EAAmBH,SAAO,MAC1BI,EAAWJ,SAAO,MAClBK,EAAeL,EAAAA,SACeM,EAAAA,EAAQA,UAAC,GAAMC,EAAApB,EAAAA,QAAAqB,EAAA,GAA5CC,EAAUF,EAAA,GAAEG,EAAaH,EAAA,GAE1BI,EAAYC,EAAAA,SAAQ,WACxB,OAAOpB,EAAMqB,QAAO,SAAAC,GAAI,OAAKvB,GAAeA,EAAYwB,KAAOD,EAAKC,KACtE,GAAG,CAACxB,EAAaC,IAEXwB,EAAoBJ,EAAAA,SAAQ,WAChC,OAAOrB,GAAe0B,EAAAA,IAAI1B,EAAaO,EACzC,GAAG,CAACP,EAAaO,IAGec,EAAAA,EAAAA,SAAQ,WAEtC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eAAgB,gCAChBL,YAAa,MAGf,IAAeqJ,EAAAA,EAAAA,KAAKzJ"}
|
|
1
|
+
{"version":3,"file":"Map.js","sources":["../../../../../../src/components/OffsetWellPickerV2/components/Map/Map.js"],"sourcesContent":["import { createElement, memo, useRef, useEffect, useMemo, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { get, sortBy } from 'lodash';\nimport { MuiThemeProvider } from '@material-ui/core/styles';\n\nimport styles from './Map.css';\n\nimport { mapbox } from '~/utils';\nimport { createAdaptiveRoot } from '~/utils/createAdaptiveRoot';\nimport { theme } from '~/config';\nimport mapboxgl from '~/config/mapboxGl';\nimport { IS_MAPBOX_ENABLED } from '~/config/mapbox';\nimport 'mapbox-gl/dist/mapbox-gl.css';\n\nconst { isValidCoordinates } = mapbox;\n\nconst RADIUS_CIRCLE_COLOR = '#03BCD4';\nconst METERS_IN_MILE = 1609.34;\nconst DEFAULT_SUBJECT_WELL_MARKER_SIZE = 10;\nconst DEFAULT_WELL_MARKER_SIZE = 5;\nconst OFFSET_WELL_COLOR = '#00FFFF';\nconst COLORS = [\n '#FF00FF',\n '#F5BD80',\n '#FF0000',\n '#0080FF',\n '#FF8000',\n '#58ACFA',\n '#FA58F4',\n '#40FF00',\n '#4B8A08',\n '#40FF00',\n '#D8F781',\n];\n\nconst DEFAULT_COORDS = [29.749907, -95.358421]; // TX coordinates\n\nconst RADIUS_CIRCLE_ID = 'radius-circle';\nconst WELLS_ID = 'wells';\nconst EMPTY_FEATURE_COLLECTION = { type: 'FeatureCollection', features: [] };\n\nconst toLngLat = ([lat, lng]) => [lng, lat];\n\n// NOTE: mapbox-gl has no geographic-radius circle primitive, so approximate it with a polygon\nconst makeCirclePolygon = ([lat, lng], radiusMeters, points = 64) => {\n const ring = [];\n const distanceX = radiusMeters / (111320 * Math.cos((lat * Math.PI) / 180));\n const distanceY = radiusMeters / 110574;\n for (let i = 0; i <= points; i += 1) {\n const theta = (i / points) * (2 * Math.PI);\n ring.push([lng + distanceX * Math.cos(theta), lat + distanceY * Math.sin(theta)]);\n }\n return ring;\n};\n\n// eslint-disable-next-line no-unused-vars\nfunction WellsMap({\n subjectWell,\n wells,\n offsetWells,\n radius,\n subjectWellMarkerSize,\n wellMarkerSize,\n popUpFormatter,\n coordsDataPath,\n}) {\n const mapContainerRef = useRef(null);\n const mapRef = useRef(null);\n const radiusCircleBoundsRef = useRef(null);\n const markersBoundsRef = useRef(null);\n const popupRef = useRef(null);\n const tooltipRootRef = useRef(null);\n const tooltipContainerRef = useRef(null);\n const prevWellsRef = useRef();\n const [isMapReady, setIsMapReady] = useState(false);\n\n const restWells = useMemo(() => {\n return wells.filter(well => !subjectWell || subjectWell.id !== well.id);\n }, [subjectWell, wells]);\n\n const subjectWellCoords = useMemo(() => {\n return subjectWell && get(subjectWell, coordsDataPath);\n }, [subjectWell, coordsDataPath]);\n\n // NOTE: Get well marker colors according to its target formation\n const [formations, colorDict] = useMemo(() => {\n // NOTE: Determine well marker colors\n const restFormations = [];\n let hasNullFormation = false;\n\n restWells.forEach(well => {\n if (well.formation === 'Null') {\n hasNullFormation = true;\n } else if (\n (!subjectWell || subjectWell.formation !== well.formation) &&\n !restFormations.includes(well.formation)\n ) {\n restFormations.push(well.formation);\n }\n });\n\n const sortedFormations = subjectWell\n ? [subjectWell.formation].concat(sortBy(restFormations))\n : sortBy(restFormations);\n\n if (hasNullFormation && !sortedFormations.includes('Null')) {\n sortedFormations.push('Null');\n }\n\n const colors = sortedFormations.reduce(\n (result, item, idx) => ({\n ...result,\n [item]: COLORS[idx % COLORS.length],\n }),\n {}\n );\n\n return [sortedFormations, colors];\n }, [subjectWell, restWells]);\n\n // NOTE: Initialize map\n useEffect(() => {\n if (!IS_MAPBOX_ENABLED) return undefined;\n\n mapRef.current = new mapboxgl.Map({\n container: mapContainerRef.current,\n style: 'mapbox://styles/mapbox/dark-v9',\n center: toLngLat(DEFAULT_COORDS),\n zoom: 1,\n attributionControl: false,\n scrollZoom: false,\n });\n\n mapRef.current.addControl(\n new mapboxgl.NavigationControl({ showCompass: false }),\n 'bottom-right'\n );\n\n // NOTE: Sources/layers can only be added once the style has loaded.\n // The radius circle layer is added first so well markers render above it (was bringToBack)\n mapRef.current.on('load', () => {\n mapRef.current.addSource(RADIUS_CIRCLE_ID, {\n type: 'geojson',\n data: EMPTY_FEATURE_COLLECTION,\n });\n mapRef.current.addLayer({\n id: RADIUS_CIRCLE_ID,\n type: 'fill',\n source: RADIUS_CIRCLE_ID,\n paint: {\n 'fill-color': RADIUS_CIRCLE_COLOR,\n 'fill-opacity': 0.2,\n },\n });\n\n mapRef.current.addSource(WELLS_ID, { type: 'geojson', data: EMPTY_FEATURE_COLLECTION });\n mapRef.current.addLayer({\n id: WELLS_ID,\n type: 'circle',\n source: WELLS_ID,\n paint: {\n 'circle-radius': ['get', 'radius'],\n 'circle-color': ['get', 'color'],\n 'circle-opacity': ['get', 'opacity'],\n },\n });\n\n setIsMapReady(true);\n });\n\n const map = mapRef.current;\n return () => {\n tooltipRootRef.current?.unmount();\n tooltipRootRef.current = null;\n tooltipContainerRef.current = null;\n\n map.remove();\n mapRef.current = null;\n radiusCircleBoundsRef.current = null;\n markersBoundsRef.current = null;\n };\n }, []);\n\n // NOTE: Radius circle\n useEffect(() => {\n if (!mapRef.current || !isMapReady) {\n return;\n }\n\n if (!subjectWellCoords) {\n mapRef.current.getSource(RADIUS_CIRCLE_ID).setData(EMPTY_FEATURE_COLLECTION);\n radiusCircleBoundsRef.current = null;\n return;\n }\n\n const ring = makeCirclePolygon(subjectWellCoords, radius * METERS_IN_MILE);\n mapRef.current.getSource(RADIUS_CIRCLE_ID).setData({\n type: 'Feature',\n geometry: { type: 'Polygon', coordinates: [ring] },\n });\n radiusCircleBoundsRef.current = ring.reduce(\n (bounds, coord) => bounds.extend(coord),\n new mapboxgl.LngLatBounds()\n );\n }, [radius, subjectWellCoords, isMapReady]);\n\n // NOTE: Well markers\n useEffect(() => {\n if (!mapRef.current || !isMapReady) {\n return undefined;\n }\n\n const prevWells = prevWellsRef.current;\n prevWellsRef.current = wells;\n\n popupRef.current?.remove();\n\n const offsetWellIds = offsetWells.map(well => well.id);\n\n const features = [];\n const wellsById = {};\n const bounds = new mapboxgl.LngLatBounds();\n wells.forEach(well => {\n const coords = get(well, coordsDataPath);\n\n if (coords && isValidCoordinates(coords)) {\n const isWellSubject = subjectWell && subjectWell.id === well.id;\n const isWellOffset = offsetWellIds.includes(well.id);\n const r = isWellSubject ? subjectWellMarkerSize : wellMarkerSize;\n const color = isWellSubject || isWellOffset ? OFFSET_WELL_COLOR : colorDict[well.formation];\n const opacity = isWellSubject || isWellOffset ? 1 : 0.3;\n\n wellsById[well.id] = well;\n bounds.extend(toLngLat(coords));\n features.push({\n type: 'Feature',\n geometry: { type: 'Point', coordinates: toLngLat(coords) },\n properties: { wellId: well.id, radius: r, color, opacity },\n });\n }\n });\n\n mapRef.current.getSource(WELLS_ID).setData({ type: 'FeatureCollection', features });\n markersBoundsRef.current = features.length ? bounds : null;\n\n const map = mapRef.current;\n let hoveredWellId = null;\n\n const handleMouseMove = e => {\n map.getCanvas().style.cursor = 'pointer';\n\n const well = wellsById[e.features[0].properties.wellId];\n if (!well || well.id === hoveredWellId) {\n return;\n }\n hoveredWellId = well.id;\n\n if (popUpFormatter) {\n const popUpContent = createElement(popUpFormatter, {\n well,\n color: colorDict[well.formation],\n });\n // NOTE: Custom popup may have buttons. Reuse a single container/root and update its content.\n if (!tooltipContainerRef.current) {\n tooltipContainerRef.current = document.createElement('div');\n tooltipRootRef.current = createAdaptiveRoot(tooltipContainerRef.current);\n }\n tooltipRootRef.current.render(\n <MuiThemeProvider theme={theme.darkTheme}>{popUpContent}</MuiThemeProvider>\n );\n\n if (!popupRef.current) {\n popupRef.current = new mapboxgl.Popup({ closeButton: false, maxWidth: 'none' });\n }\n popupRef.current\n .setLngLat(toLngLat(get(well, coordsDataPath)))\n .setDOMContent(tooltipContainerRef.current)\n .addTo(map);\n }\n };\n\n const handleMouseLeave = () => {\n hoveredWellId = null;\n map.getCanvas().style.cursor = '';\n };\n\n map.on('mousemove', WELLS_ID, handleMouseMove);\n map.on('mouseleave', WELLS_ID, handleMouseLeave);\n\n setTimeout(() => {\n if (mapRef.current && radiusCircleBoundsRef.current && wells !== prevWells) {\n mapRef.current.fitBounds(radiusCircleBoundsRef.current, { padding: 5 });\n }\n }, 500);\n\n return () => {\n map.off('mousemove', WELLS_ID, handleMouseMove);\n map.off('mouseleave', WELLS_ID, handleMouseLeave);\n };\n }, [subjectWell, wells, offsetWells, colorDict, isMapReady]);\n\n useEffect(() => {\n setTimeout(() => {\n if (subjectWell) {\n if (mapRef.current && radiusCircleBoundsRef.current) {\n mapRef.current.fitBounds(radiusCircleBoundsRef.current, {\n padding: 5,\n });\n }\n } else if (mapRef.current && markersBoundsRef.current) {\n mapRef.current.fitBounds(markersBoundsRef.current);\n }\n }, 500);\n }, [radius, subjectWell, isMapReady]);\n\n return (\n <div className={styles.map}>\n <div className={styles.mapMain} ref={mapContainerRef} />\n\n <div className={styles.mapFooter}>\n {offsetWells && (\n <div className={styles.mapFooterItem}>\n <div\n className={styles.mapFooterItemSquare}\n style={{ backgroundColor: OFFSET_WELL_COLOR }}\n />\n <div className={styles.mapFooterItemLabel}>Selected Offset Wells</div>\n </div>\n )}\n\n {formations.map(item => (\n <div className={styles.mapFooterItem} key={item}>\n <div\n className={styles.mapFooterItemSquare}\n style={{ backgroundColor: colorDict[item] }}\n />\n <div className={styles.mapFooterItemLabel}>{item}</div>\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nWellsMap.propTypes = {\n subjectWell: PropTypes.shape({\n id: PropTypes.number,\n formation: PropTypes.string,\n }),\n wells: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n offsetWells: PropTypes.arrayOf(PropTypes.shape({})),\n radius: PropTypes.number.isRequired,\n subjectWellMarkerSize: PropTypes.number,\n wellMarkerSize: PropTypes.number,\n popUpFormatter: PropTypes.func,\n coordsDataPath: PropTypes.string,\n};\n\nWellsMap.defaultProps = {\n subjectWell: null,\n subjectWellMarkerSize: DEFAULT_SUBJECT_WELL_MARKER_SIZE,\n wellMarkerSize: DEFAULT_WELL_MARKER_SIZE,\n popUpFormatter: null,\n coordsDataPath: 'settings.top_hole.coordinates',\n offsetWells: null,\n};\n\nexport default memo(WellsMap);\n"],"names":["isValidCoordinates","mapbox","COLORS","DEFAULT_COORDS","EMPTY_FEATURE_COLLECTION","type","features","toLngLat","_ref","_ref2","_slicedToArray","lat","WellsMap","_ref5","subjectWell","wells","offsetWells","radius","subjectWellMarkerSize","wellMarkerSize","popUpFormatter","coordsDataPath","mapContainerRef","useRef","mapRef","radiusCircleBoundsRef","markersBoundsRef","popupRef","tooltipRootRef","tooltipContainerRef","prevWellsRef","useState","_useState2","_useState","isMapReady","setIsMapReady","restWells","useMemo","filter","well","id","subjectWellCoords","get","restFormations","hasNullFormation","forEach","formation","includes","push","sortedFormations","concat","sortBy","colors","reduce","result","item","idx","length","_useMemo2","_useMemo","formations","colorDict","useEffect","IS_MAPBOX_ENABLED","current","mapboxgl","Map","container","style","center","zoom","attributionControl","scrollZoom","addControl","NavigationControl","showCompass","on","addSource","data","addLayer","source","paint","map","_tooltipRootRef$curre","unmount","remove","getSource","setData","ring","_ref3","radiusMeters","_ref4","lng","points","distanceX","Math","cos","PI","distanceY","i","theta","sin","makeCirclePolygon","geometry","coordinates","bounds","coord","extend","LngLatBounds","_popupRef$current","prevWells","offsetWellIds","wellsById","coords","isWellSubject","isWellOffset","r","color","opacity","properties","wellId","hoveredWellId","handleMouseMove","e","getCanvas","cursor","popUpContent","createElement","document","createAdaptiveRoot","render","_jsx","MuiThemeProvider","theme","darkTheme","children","Popup","closeButton","maxWidth","setLngLat","setDOMContent","addTo","handleMouseLeave","setTimeout","fitBounds","padding","off","_jsxs","className","styles","jsx","mapMain","ref","jsxs","mapFooter","mapFooterItem","mapFooterItemSquare","backgroundColor","mapFooterItemLabel","propTypes","PropTypes","shape","number","string","arrayOf","isRequired","func","defaultProps","memo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gB,gCAChBL,YAAa,MAGf,IAAewJ,EAAAA,EAAAA,KAAK5J"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/slicedToArray"),r=require("react"),t=require("
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/slicedToArray"),r=require("react"),t=require("prop-types"),u=require("lodash"),n=require("./Map.css.js"),o=require("../../../../../../utils/index.js"),l=require("../../../../../../utils/createAdaptiveRoot.js");require("../../../../../../config/mapboxGl/index.js");var a=require("../../../../../../config/mapbox/index.js");require("mapbox-gl/dist/mapbox-gl.css");var c=require("react/jsx-runtime"),i=require("mapbox-gl");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=s(e),f=s(t),p=s(i),m=o.mapbox.isValidCoordinates,v=[29.749907,-95.358421],g={type:"FeatureCollection",features:[]},y=function(e){var r=d.default(e,2),t=r[0];return[r[1],t]};function h(e){var t=e.open,o=e.subjectWell,i=e.wells,s=e.offsetWells,f=e.radius,h=e.formationColors,w=e.popUpFormatter,b=e.coordsDataPath,x=e.onAddOffsetWell,q=e.onDeleteOffsetWell,D=r.useRef(null),B=r.useRef(),R=r.useRef(null),j=r.useRef(null),C=r.useRef(null),F=r.useRef(null),M=r.useRef(null),W=r.useRef(),E=r.useState(!1),P=d.default(E,2),L=P[0],O=P[1],A=r.useMemo((function(){return o&&u.get(o,b)}),[o,b]);return r.useEffect((function(){a.IS_MAPBOX_ENABLED&&t&&!B.current&&(B.current=new p.default.Map({container:D.current,style:"mapbox://styles/mapbox/dark-v9",center:y(v),zoom:1,attributionControl:!1,scrollZoom:!1}),B.current.addControl(new p.default.NavigationControl({showCompass:!1}),"bottom-right"),B.current.on("load",(function(){B.current.addSource("radius-circle",{type:"geojson",data:g}),B.current.addLayer({id:"radius-circle",type:"fill",source:"radius-circle",paint:{"fill-color":"#03BCD4","fill-opacity":.2}}),B.current.addSource("wells",{type:"geojson",data:g}),B.current.addLayer({id:"wells",type:"circle",source:"wells",layout:{"circle-sort-key":["get","sortKey"]},paint:{"circle-radius":["get","radius"],"circle-color":["get","color"],"circle-opacity":["get","opacity"]}}),O(!0)})))}),[t]),r.useEffect((function(){return function(){var e;null===(e=F.current)||void 0===e||e.unmount(),F.current=null,M.current=null,B.current&&(B.current.remove(),B.current=null,R.current=null,j.current=null)}}),[]),r.useEffect((function(){if(B.current&&L&&t){if(!A)return B.current.getSource("radius-circle").setData(g),void(R.current=null);var e=function(e,r){for(var t=d.default(e,2),u=t[0],n=t[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:64,l=[],a=r/(111320*Math.cos(u*Math.PI/180)),c=r/110574,i=0;i<=o;i+=1){var s=i/o*(2*Math.PI);l.push([n+a*Math.cos(s),u+c*Math.sin(s)])}return l}(A,1609.34*f);B.current.getSource("radius-circle").setData({type:"Feature",geometry:{type:"Polygon",coordinates:[e]}}),R.current=e.reduce((function(e,r){return e.extend(r)}),new p.default.LngLatBounds)}}),[f,A,t,L]),r.useEffect((function(){if(B.current&&L&&t){var e=W.current;W.current=i;var n=s.map((function(e){return e.id})),a=u.sortBy(i,(function(e){return n.includes(e.id)})),d=[],f={},v=new p.default.LngLatBounds;a.forEach((function(e){var r=u.get(e,b);if(r&&m(r)){var t=o&&o.id===e.id,l=n.includes(e.id),a=t?10:5,c=t||l?"#00FFFF":u.get(h,e.formation,"#BDBDBD"),i=t||l?1:.3;f[e.id]=e,v.extend(y(r)),d.push({type:"Feature",geometry:{type:"Point",coordinates:y(r)},properties:{wellId:e.id,radius:a,color:c,opacity:i,sortKey:l?1:0}})}})),B.current.getSource("wells").setData({type:"FeatureCollection",features:d}),j.current=d.length?v:null;var g=B.current,D=null,E=function(e){g.getCanvas().style.cursor="pointer";var t=f[e.features[0].properties.wellId];if(t&&t.id!==D&&(D=t.id,w)){var n=r.createElement(w,{well:t,color:u.get(h,t.formation,"#BDBDBD")});M.current||(M.current=document.createElement("div"),F.current=l.createAdaptiveRoot(M.current)),F.current.render(c.jsx(c.Fragment,{children:n})),C.current||(C.current=new p.default.Popup({closeButton:!1,maxWidth:"none"})),C.current.setLngLat(y(u.get(t,b))).setDOMContent(M.current).addTo(g)}},P=function(){var e;D=null,g.getCanvas().style.cursor="",null===(e=C.current)||void 0===e||e.remove()},O=function(e){var r=e.features[0].properties.wellId,t=o&&o.id===r;n.includes(r)&&!t?q(r):x(r)};return g.on("mousemove","wells",E),g.on("mouseleave","wells",P),g.on("click","wells",O),setTimeout((function(){B.current&&R.current&&i!==e&&B.current.fitBounds(R.current,{padding:5})}),500),function(){g.off("mousemove","wells",E),g.off("mouseleave","wells",P),g.off("click","wells",O)}}}),[o,i,s,t,L]),r.useEffect((function(){t&&setTimeout((function(){o?B.current&&R.current&&B.current.fitBounds(R.current,{padding:5}):B.current&&j.current&&B.current.fitBounds(j.current)}),500)}),[f,o,t,L]),c.jsx("div",{className:n.map,children:c.jsx("div",{className:n.mapMain,ref:D})})}h.propTypes={open:f.default.bool.isRequired,subjectWell:f.default.shape({id:f.default.number,formation:f.default.string}),wells:f.default.arrayOf(f.default.shape({})).isRequired,offsetWells:f.default.arrayOf(f.default.shape({})),radius:f.default.number.isRequired,formationColors:f.default.shape({}).isRequired,popUpFormatter:f.default.func,coordsDataPath:f.default.string,onAddOffsetWell:f.default.func.isRequired,onDeleteOffsetWell:f.default.func.isRequired},h.defaultProps={subjectWell:null,popUpFormatter:null,coordsDataPath:"settings.top_hole.coordinates",offsetWells:null};var w=r.memo(h);module.exports=w;
|
|
2
2
|
//# sourceMappingURL=Map.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Map.js","sources":["../../../../../../../../src/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js"],"sourcesContent":["import { createElement, memo, useRef, useEffect, useMemo, useState } from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { get, sortBy } from 'lodash';\n\nimport styles from './Map.css';\n\nimport { mapbox } from '~/utils';\nimport mapboxgl from '~/config/mapboxGl';\nimport { IS_MAPBOX_ENABLED } from '~/config/mapbox';\nimport 'mapbox-gl/dist/mapbox-gl.css';\n\nconst { isValidCoordinates } = mapbox;\n\nconst DEFAULT_COORDS = [29.749907, -95.358421]; // TX coordinates\nconst RADIUS_CIRCLE_COLOR = '#03BCD4';\nconst METERS_IN_MILE = 1609.34;\nconst DEFAULT_SUBJECT_WELL_MARKER_SIZE = 10;\nconst DEFAULT_WELL_MARKER_SIZE = 5;\nconst OFFSET_WELL_COLOR = '#00FFFF';\n\nconst RADIUS_CIRCLE_ID = 'radius-circle';\nconst WELLS_ID = 'wells';\nconst EMPTY_FEATURE_COLLECTION = { type: 'FeatureCollection', features: [] };\n\nconst toLngLat = ([lat, lng]) => [lng, lat];\n\n// NOTE: mapbox-gl has no geographic-radius circle primitive, so approximate it with a polygon\nconst makeCirclePolygon = ([lat, lng], radiusMeters, points = 64) => {\n const ring = [];\n const distanceX = radiusMeters / (111320 * Math.cos((lat * Math.PI) / 180));\n const distanceY = radiusMeters / 110574;\n for (let i = 0; i <= points; i += 1) {\n const theta = (i / points) * (2 * Math.PI);\n ring.push([lng + distanceX * Math.cos(theta), lat + distanceY * Math.sin(theta)]);\n }\n return ring;\n};\n\n// eslint-disable-next-line no-unused-vars\nfunction WellsMap({\n open,\n subjectWell,\n wells,\n offsetWells,\n radius,\n formationColors,\n popUpFormatter,\n coordsDataPath,\n onAddOffsetWell,\n onDeleteOffsetWell,\n}) {\n const mapContainerRef = useRef(null);\n const mapRef = useRef();\n const radiusCircleBoundsRef = useRef(null);\n const markersBoundsRef = useRef(null);\n const popupRef = useRef(null);\n const prevWellsRef = useRef();\n const [isMapReady, setIsMapReady] = useState(false);\n\n const subjectWellCoords = useMemo(() => {\n return subjectWell && get(subjectWell, coordsDataPath);\n }, [subjectWell, coordsDataPath]);\n\n // NOTE: Initialize map\n useEffect(() => {\n if (!IS_MAPBOX_ENABLED || !open || mapRef.current) return;\n\n mapRef.current = new mapboxgl.Map({\n container: mapContainerRef.current,\n style: 'mapbox://styles/mapbox/dark-v9',\n center: toLngLat(DEFAULT_COORDS),\n zoom: 1,\n attributionControl: false,\n scrollZoom: false,\n });\n\n mapRef.current.addControl(\n new mapboxgl.NavigationControl({ showCompass: false }),\n 'bottom-right'\n );\n\n // NOTE: Sources/layers can only be added once the style has loaded.\n // The radius circle layer is added first so well markers render above it (was bringToBack)\n mapRef.current.on('load', () => {\n mapRef.current.addSource(RADIUS_CIRCLE_ID, {\n type: 'geojson',\n data: EMPTY_FEATURE_COLLECTION,\n });\n mapRef.current.addLayer({\n id: RADIUS_CIRCLE_ID,\n type: 'fill',\n source: RADIUS_CIRCLE_ID,\n paint: {\n 'fill-color': RADIUS_CIRCLE_COLOR,\n 'fill-opacity': 0.2,\n },\n });\n\n mapRef.current.addSource(WELLS_ID, { type: 'geojson', data: EMPTY_FEATURE_COLLECTION });\n mapRef.current.addLayer({\n id: WELLS_ID,\n type: 'circle',\n source: WELLS_ID,\n layout: {\n 'circle-sort-key': ['get', 'sortKey'],\n },\n paint: {\n 'circle-radius': ['get', 'radius'],\n 'circle-color': ['get', 'color'],\n 'circle-opacity': ['get', 'opacity'],\n },\n });\n\n setIsMapReady(true);\n });\n }, [open]);\n\n useEffect(\n () => () => {\n if (mapRef.current) {\n mapRef.current.remove();\n mapRef.current = null;\n radiusCircleBoundsRef.current = null;\n markersBoundsRef.current = null;\n }\n },\n []\n );\n\n // NOTE: Radius circle\n useEffect(() => {\n if (!mapRef.current || !isMapReady || !open) {\n return;\n }\n\n if (!subjectWellCoords) {\n mapRef.current.getSource(RADIUS_CIRCLE_ID).setData(EMPTY_FEATURE_COLLECTION);\n radiusCircleBoundsRef.current = null;\n return;\n }\n\n const ring = makeCirclePolygon(subjectWellCoords, radius * METERS_IN_MILE);\n mapRef.current.getSource(RADIUS_CIRCLE_ID).setData({\n type: 'Feature',\n geometry: { type: 'Polygon', coordinates: [ring] },\n });\n radiusCircleBoundsRef.current = ring.reduce(\n (bounds, coord) => bounds.extend(coord),\n new mapboxgl.LngLatBounds()\n );\n }, [radius, subjectWellCoords, open, isMapReady]);\n\n // NOTE: Well markers\n useEffect(() => {\n if (!mapRef.current || !isMapReady || !open) {\n return undefined;\n }\n\n const prevWells = prevWellsRef.current;\n prevWellsRef.current = wells;\n\n const offsetWellIds = offsetWells.map(well => well.id);\n const sortedWells = sortBy(wells, well => offsetWellIds.includes(well.id));\n\n const features = [];\n const wellsById = {};\n const bounds = new mapboxgl.LngLatBounds();\n sortedWells.forEach(well => {\n const coords = get(well, coordsDataPath);\n\n if (coords && isValidCoordinates(coords)) {\n const isWellSubject = subjectWell && subjectWell.id === well.id;\n const isWellOffset = offsetWellIds.includes(well.id);\n const r = isWellSubject ? DEFAULT_SUBJECT_WELL_MARKER_SIZE : DEFAULT_WELL_MARKER_SIZE;\n const color =\n isWellSubject || isWellOffset\n ? OFFSET_WELL_COLOR\n : get(formationColors, well.formation, '#BDBDBD');\n const opacity = isWellSubject || isWellOffset ? 1 : 0.3;\n\n wellsById[well.id] = well;\n bounds.extend(toLngLat(coords));\n features.push({\n type: 'Feature',\n geometry: { type: 'Point', coordinates: toLngLat(coords) },\n // NOTE: sortKey keeps offset wells rendered on top (was sortedWells insertion order)\n properties: { wellId: well.id, radius: r, color, opacity, sortKey: isWellOffset ? 1 : 0 },\n });\n }\n });\n\n mapRef.current.getSource(WELLS_ID).setData({ type: 'FeatureCollection', features });\n markersBoundsRef.current = features.length ? bounds : null;\n\n const map = mapRef.current;\n let hoveredWellId = null;\n\n const handleMouseMove = e => {\n map.getCanvas().style.cursor = 'pointer';\n\n const well = wellsById[e.features[0].properties.wellId];\n if (!well || well.id === hoveredWellId) {\n return;\n }\n hoveredWellId = well.id;\n\n if (popUpFormatter) {\n // Container to put React generated content in.\n const popUpContainer = document.createElement('div');\n const popUpContent = createElement(popUpFormatter, {\n well,\n color: get(formationColors, well.formation, '#BDBDBD'),\n });\n // NOTE: Custom popup may have buttons\n ReactDOM.render(<>{popUpContent}</>, popUpContainer);\n\n if (!popupRef.current) {\n popupRef.current = new mapboxgl.Popup({ closeButton: false, maxWidth: 'none' });\n }\n popupRef.current\n .setLngLat(toLngLat(get(well, coordsDataPath)))\n .setDOMContent(popUpContainer)\n .addTo(map);\n }\n };\n\n const handleMouseLeave = () => {\n hoveredWellId = null;\n map.getCanvas().style.cursor = '';\n popupRef.current?.remove();\n };\n\n const handleClick = e => {\n const { wellId } = e.features[0].properties;\n const isWellSubject = subjectWell && subjectWell.id === wellId;\n const isWellOffset = offsetWellIds.includes(wellId);\n\n if (isWellOffset && !isWellSubject) {\n onDeleteOffsetWell(wellId);\n } else {\n onAddOffsetWell(wellId);\n }\n };\n\n map.on('mousemove', WELLS_ID, handleMouseMove);\n map.on('mouseleave', WELLS_ID, handleMouseLeave);\n map.on('click', WELLS_ID, handleClick);\n\n setTimeout(() => {\n if (mapRef.current && radiusCircleBoundsRef.current && wells !== prevWells) {\n mapRef.current.fitBounds(radiusCircleBoundsRef.current, { padding: 5 });\n }\n }, 500);\n\n return () => {\n map.off('mousemove', WELLS_ID, handleMouseMove);\n map.off('mouseleave', WELLS_ID, handleMouseLeave);\n map.off('click', WELLS_ID, handleClick);\n };\n }, [subjectWell, wells, offsetWells, open, isMapReady]);\n\n useEffect(() => {\n if (!open) return;\n\n setTimeout(() => {\n if (subjectWell) {\n if (mapRef.current && radiusCircleBoundsRef.current) {\n mapRef.current.fitBounds(radiusCircleBoundsRef.current, {\n padding: 5,\n });\n }\n } else if (mapRef.current && markersBoundsRef.current) {\n mapRef.current.fitBounds(markersBoundsRef.current);\n }\n }, 500);\n }, [radius, subjectWell, open, isMapReady]);\n\n return (\n <div className={styles.map}>\n <div className={styles.mapMain} ref={mapContainerRef} />\n </div>\n );\n}\n\nWellsMap.propTypes = {\n open: PropTypes.bool.isRequired,\n subjectWell: PropTypes.shape({\n id: PropTypes.number,\n formation: PropTypes.string,\n }),\n wells: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n offsetWells: PropTypes.arrayOf(PropTypes.shape({})),\n radius: PropTypes.number.isRequired,\n formationColors: PropTypes.shape({}).isRequired,\n popUpFormatter: PropTypes.func,\n coordsDataPath: PropTypes.string,\n onAddOffsetWell: PropTypes.func.isRequired,\n onDeleteOffsetWell: PropTypes.func.isRequired,\n};\n\nWellsMap.defaultProps = {\n subjectWell: null,\n popUpFormatter: null,\n coordsDataPath: 'settings.top_hole.coordinates',\n offsetWells: null,\n};\n\nexport default memo(WellsMap);\n"],"names":["isValidCoordinates","mapbox","DEFAULT_COORDS","EMPTY_FEATURE_COLLECTION","type","features","toLngLat","_ref","_ref2","_slicedToArray","lat","WellsMap","_ref5","open","subjectWell","wells","offsetWells","radius","formationColors","popUpFormatter","coordsDataPath","onAddOffsetWell","onDeleteOffsetWell","mapContainerRef","useRef","mapRef","radiusCircleBoundsRef","markersBoundsRef","popupRef","prevWellsRef","useState","_useState2","_useState","isMapReady","setIsMapReady","subjectWellCoords","useMemo","get","useEffect","IS_MAPBOX_ENABLED","current","mapboxgl","Map","container","style","center","zoom","attributionControl","scrollZoom","addControl","NavigationControl","showCompass","on","addSource","data","addLayer","id","source","paint","layout","remove","getSource","setData","ring","_ref3","radiusMeters","_ref4","lng","points","distanceX","Math","cos","PI","distanceY","i","theta","push","sin","makeCirclePolygon","geometry","coordinates","reduce","bounds","coord","extend","LngLatBounds","prevWells","offsetWellIds","map","well","sortedWells","sortBy","includes","wellsById","forEach","coords","isWellSubject","isWellOffset","r","color","formation","opacity","properties","wellId","sortKey","length","hoveredWellId","handleMouseMove","e","getCanvas","cursor","popUpContainer","document","createElement","popUpContent","ReactDOM","render","_jsx","jsx","_Fragment","children","Popup","closeButton","maxWidth","setLngLat","setDOMContent","addTo","handleMouseLeave","_popupRef$current","handleClick","setTimeout","fitBounds","padding","off","className","styles","mapMain","ref","propTypes","PropTypes","bool","isRequired","shape","number","string","arrayOf","func","defaultProps","memo"],"mappings":"2hBAYQA,EAAuBC,EAAMA,OAA7BD,mBAEFE,EAAiB,CAAC,WAA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../../../../../../../../src/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js"],"sourcesContent":["import { createElement, memo, useRef, useEffect, useMemo, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { get, sortBy } from 'lodash';\n\nimport styles from './Map.css';\n\nimport { mapbox } from '~/utils';\nimport { createAdaptiveRoot } from '~/utils/createAdaptiveRoot';\nimport mapboxgl from '~/config/mapboxGl';\nimport { IS_MAPBOX_ENABLED } from '~/config/mapbox';\nimport 'mapbox-gl/dist/mapbox-gl.css';\n\nconst { isValidCoordinates } = mapbox;\n\nconst DEFAULT_COORDS = [29.749907, -95.358421]; // TX coordinates\nconst RADIUS_CIRCLE_COLOR = '#03BCD4';\nconst METERS_IN_MILE = 1609.34;\nconst DEFAULT_SUBJECT_WELL_MARKER_SIZE = 10;\nconst DEFAULT_WELL_MARKER_SIZE = 5;\nconst OFFSET_WELL_COLOR = '#00FFFF';\n\nconst RADIUS_CIRCLE_ID = 'radius-circle';\nconst WELLS_ID = 'wells';\nconst EMPTY_FEATURE_COLLECTION = { type: 'FeatureCollection', features: [] };\n\nconst toLngLat = ([lat, lng]) => [lng, lat];\n\n// NOTE: mapbox-gl has no geographic-radius circle primitive, so approximate it with a polygon\nconst makeCirclePolygon = ([lat, lng], radiusMeters, points = 64) => {\n const ring = [];\n const distanceX = radiusMeters / (111320 * Math.cos((lat * Math.PI) / 180));\n const distanceY = radiusMeters / 110574;\n for (let i = 0; i <= points; i += 1) {\n const theta = (i / points) * (2 * Math.PI);\n ring.push([lng + distanceX * Math.cos(theta), lat + distanceY * Math.sin(theta)]);\n }\n return ring;\n};\n\n// eslint-disable-next-line no-unused-vars\nfunction WellsMap({\n open,\n subjectWell,\n wells,\n offsetWells,\n radius,\n formationColors,\n popUpFormatter,\n coordsDataPath,\n onAddOffsetWell,\n onDeleteOffsetWell,\n}) {\n const mapContainerRef = useRef(null);\n const mapRef = useRef();\n const radiusCircleBoundsRef = useRef(null);\n const markersBoundsRef = useRef(null);\n const popupRef = useRef(null);\n const tooltipRootRef = useRef(null);\n const tooltipContainerRef = useRef(null);\n const prevWellsRef = useRef();\n const [isMapReady, setIsMapReady] = useState(false);\n\n const subjectWellCoords = useMemo(() => {\n return subjectWell && get(subjectWell, coordsDataPath);\n }, [subjectWell, coordsDataPath]);\n\n // NOTE: Initialize map\n useEffect(() => {\n if (!IS_MAPBOX_ENABLED || !open || mapRef.current) return;\n\n mapRef.current = new mapboxgl.Map({\n container: mapContainerRef.current,\n style: 'mapbox://styles/mapbox/dark-v9',\n center: toLngLat(DEFAULT_COORDS),\n zoom: 1,\n attributionControl: false,\n scrollZoom: false,\n });\n\n mapRef.current.addControl(\n new mapboxgl.NavigationControl({ showCompass: false }),\n 'bottom-right'\n );\n\n // NOTE: Sources/layers can only be added once the style has loaded.\n // The radius circle layer is added first so well markers render above it (was bringToBack)\n mapRef.current.on('load', () => {\n mapRef.current.addSource(RADIUS_CIRCLE_ID, {\n type: 'geojson',\n data: EMPTY_FEATURE_COLLECTION,\n });\n mapRef.current.addLayer({\n id: RADIUS_CIRCLE_ID,\n type: 'fill',\n source: RADIUS_CIRCLE_ID,\n paint: {\n 'fill-color': RADIUS_CIRCLE_COLOR,\n 'fill-opacity': 0.2,\n },\n });\n\n mapRef.current.addSource(WELLS_ID, { type: 'geojson', data: EMPTY_FEATURE_COLLECTION });\n mapRef.current.addLayer({\n id: WELLS_ID,\n type: 'circle',\n source: WELLS_ID,\n layout: {\n 'circle-sort-key': ['get', 'sortKey'],\n },\n paint: {\n 'circle-radius': ['get', 'radius'],\n 'circle-color': ['get', 'color'],\n 'circle-opacity': ['get', 'opacity'],\n },\n });\n\n setIsMapReady(true);\n });\n }, [open]);\n\n useEffect(\n () => () => {\n tooltipRootRef.current?.unmount();\n tooltipRootRef.current = null;\n tooltipContainerRef.current = null;\n\n if (mapRef.current) {\n mapRef.current.remove();\n mapRef.current = null;\n radiusCircleBoundsRef.current = null;\n markersBoundsRef.current = null;\n }\n },\n []\n );\n\n // NOTE: Radius circle\n useEffect(() => {\n if (!mapRef.current || !isMapReady || !open) {\n return;\n }\n\n if (!subjectWellCoords) {\n mapRef.current.getSource(RADIUS_CIRCLE_ID).setData(EMPTY_FEATURE_COLLECTION);\n radiusCircleBoundsRef.current = null;\n return;\n }\n\n const ring = makeCirclePolygon(subjectWellCoords, radius * METERS_IN_MILE);\n mapRef.current.getSource(RADIUS_CIRCLE_ID).setData({\n type: 'Feature',\n geometry: { type: 'Polygon', coordinates: [ring] },\n });\n radiusCircleBoundsRef.current = ring.reduce(\n (bounds, coord) => bounds.extend(coord),\n new mapboxgl.LngLatBounds()\n );\n }, [radius, subjectWellCoords, open, isMapReady]);\n\n // NOTE: Well markers\n useEffect(() => {\n if (!mapRef.current || !isMapReady || !open) {\n return undefined;\n }\n\n const prevWells = prevWellsRef.current;\n prevWellsRef.current = wells;\n\n const offsetWellIds = offsetWells.map(well => well.id);\n const sortedWells = sortBy(wells, well => offsetWellIds.includes(well.id));\n\n const features = [];\n const wellsById = {};\n const bounds = new mapboxgl.LngLatBounds();\n sortedWells.forEach(well => {\n const coords = get(well, coordsDataPath);\n\n if (coords && isValidCoordinates(coords)) {\n const isWellSubject = subjectWell && subjectWell.id === well.id;\n const isWellOffset = offsetWellIds.includes(well.id);\n const r = isWellSubject ? DEFAULT_SUBJECT_WELL_MARKER_SIZE : DEFAULT_WELL_MARKER_SIZE;\n const color =\n isWellSubject || isWellOffset\n ? OFFSET_WELL_COLOR\n : get(formationColors, well.formation, '#BDBDBD');\n const opacity = isWellSubject || isWellOffset ? 1 : 0.3;\n\n wellsById[well.id] = well;\n bounds.extend(toLngLat(coords));\n features.push({\n type: 'Feature',\n geometry: { type: 'Point', coordinates: toLngLat(coords) },\n // NOTE: sortKey keeps offset wells rendered on top (was sortedWells insertion order)\n properties: { wellId: well.id, radius: r, color, opacity, sortKey: isWellOffset ? 1 : 0 },\n });\n }\n });\n\n mapRef.current.getSource(WELLS_ID).setData({ type: 'FeatureCollection', features });\n markersBoundsRef.current = features.length ? bounds : null;\n\n const map = mapRef.current;\n let hoveredWellId = null;\n\n const handleMouseMove = e => {\n map.getCanvas().style.cursor = 'pointer';\n\n const well = wellsById[e.features[0].properties.wellId];\n if (!well || well.id === hoveredWellId) {\n return;\n }\n hoveredWellId = well.id;\n\n if (popUpFormatter) {\n const popUpContent = createElement(popUpFormatter, {\n well,\n color: get(formationColors, well.formation, '#BDBDBD'),\n });\n // NOTE: Custom popup may have buttons. Reuse a single container/root and update its content.\n if (!tooltipContainerRef.current) {\n tooltipContainerRef.current = document.createElement('div');\n tooltipRootRef.current = createAdaptiveRoot(tooltipContainerRef.current);\n }\n tooltipRootRef.current.render(<>{popUpContent}</>);\n\n if (!popupRef.current) {\n popupRef.current = new mapboxgl.Popup({ closeButton: false, maxWidth: 'none' });\n }\n popupRef.current\n .setLngLat(toLngLat(get(well, coordsDataPath)))\n .setDOMContent(tooltipContainerRef.current)\n .addTo(map);\n }\n };\n\n const handleMouseLeave = () => {\n hoveredWellId = null;\n map.getCanvas().style.cursor = '';\n popupRef.current?.remove();\n };\n\n const handleClick = e => {\n const { wellId } = e.features[0].properties;\n const isWellSubject = subjectWell && subjectWell.id === wellId;\n const isWellOffset = offsetWellIds.includes(wellId);\n\n if (isWellOffset && !isWellSubject) {\n onDeleteOffsetWell(wellId);\n } else {\n onAddOffsetWell(wellId);\n }\n };\n\n map.on('mousemove', WELLS_ID, handleMouseMove);\n map.on('mouseleave', WELLS_ID, handleMouseLeave);\n map.on('click', WELLS_ID, handleClick);\n\n setTimeout(() => {\n if (mapRef.current && radiusCircleBoundsRef.current && wells !== prevWells) {\n mapRef.current.fitBounds(radiusCircleBoundsRef.current, { padding: 5 });\n }\n }, 500);\n\n return () => {\n map.off('mousemove', WELLS_ID, handleMouseMove);\n map.off('mouseleave', WELLS_ID, handleMouseLeave);\n map.off('click', WELLS_ID, handleClick);\n };\n }, [subjectWell, wells, offsetWells, open, isMapReady]);\n\n useEffect(() => {\n if (!open) return;\n\n setTimeout(() => {\n if (subjectWell) {\n if (mapRef.current && radiusCircleBoundsRef.current) {\n mapRef.current.fitBounds(radiusCircleBoundsRef.current, {\n padding: 5,\n });\n }\n } else if (mapRef.current && markersBoundsRef.current) {\n mapRef.current.fitBounds(markersBoundsRef.current);\n }\n }, 500);\n }, [radius, subjectWell, open, isMapReady]);\n\n return (\n <div className={styles.map}>\n <div className={styles.mapMain} ref={mapContainerRef} />\n </div>\n );\n}\n\nWellsMap.propTypes = {\n open: PropTypes.bool.isRequired,\n subjectWell: PropTypes.shape({\n id: PropTypes.number,\n formation: PropTypes.string,\n }),\n wells: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n offsetWells: PropTypes.arrayOf(PropTypes.shape({})),\n radius: PropTypes.number.isRequired,\n formationColors: PropTypes.shape({}).isRequired,\n popUpFormatter: PropTypes.func,\n coordsDataPath: PropTypes.string,\n onAddOffsetWell: PropTypes.func.isRequired,\n onDeleteOffsetWell: PropTypes.func.isRequired,\n};\n\nWellsMap.defaultProps = {\n subjectWell: null,\n popUpFormatter: null,\n coordsDataPath: 'settings.top_hole.coordinates',\n offsetWells: null,\n};\n\nexport default memo(WellsMap);\n"],"names":["isValidCoordinates","mapbox","DEFAULT_COORDS","EMPTY_FEATURE_COLLECTION","type","features","toLngLat","_ref","_ref2","_slicedToArray","lat","WellsMap","_ref5","open","subjectWell","wells","offsetWells","radius","formationColors","popUpFormatter","coordsDataPath","onAddOffsetWell","onDeleteOffsetWell","mapContainerRef","useRef","mapRef","radiusCircleBoundsRef","markersBoundsRef","popupRef","tooltipRootRef","tooltipContainerRef","prevWellsRef","useState","_useState2","_useState","isMapReady","setIsMapReady","subjectWellCoords","useMemo","get","useEffect","IS_MAPBOX_ENABLED","current","mapboxgl","Map","container","style","center","zoom","attributionControl","scrollZoom","addControl","NavigationControl","showCompass","on","addSource","data","addLayer","id","source","paint","layout","_tooltipRootRef$curre","unmount","remove","getSource","setData","ring","_ref3","radiusMeters","_ref4","lng","points","distanceX","Math","cos","PI","distanceY","i","theta","push","sin","makeCirclePolygon","geometry","coordinates","reduce","bounds","coord","extend","LngLatBounds","prevWells","offsetWellIds","map","well","sortedWells","sortBy","includes","wellsById","forEach","coords","isWellSubject","isWellOffset","r","color","formation","opacity","properties","wellId","sortKey","length","hoveredWellId","handleMouseMove","e","getCanvas","cursor","popUpContent","createElement","document","createAdaptiveRoot","render","_jsx","_Fragment","children","Popup","closeButton","maxWidth","setLngLat","setDOMContent","addTo","handleMouseLeave","_popupRef$current","handleClick","setTimeout","fitBounds","padding","off","className","styles","jsx","mapMain","ref","propTypes","PropTypes","bool","isRequired","shape","number","string","arrayOf","func","defaultProps","memo"],"mappings":"wjBAYQA,EAAuBC,EAAMA,OAA7BD,mBAEFE,EAAiB,CAAC,WAAY,WAS9BC,EAA2B,CAAEC,KAAM,oBAAqBC,SAAU,IAElEC,EAAW,SAAHC,GAAA,IAAAC,EAAAC,EAAAA,QAAAF,EAAA,GAAKG,EAAGF,EAAA,GAAK,MAAM,CAANA,EAAA,GAAYE,EAAI,EAe3C,SAASC,EAWNC,GAAA,IAVDC,IAAAA,KACAC,IAAAA,YACAC,IAAAA,MACAC,IAAAA,YACAC,IAAAA,OACAC,IAAAA,gBACAC,IAAAA,eACAC,IAAAA,eACAC,IAAAA,gBACAC,IAAAA,mBAEMC,EAAkBC,SAAO,MACzBC,EAASD,EAAAA,SACTE,EAAwBF,SAAO,MAC/BG,EAAmBH,SAAO,MAC1BI,EAAWJ,SAAO,MAClBK,EAAiBL,SAAO,MACxBM,EAAsBN,SAAO,MAC7BO,EAAeP,EAAAA,SACeQ,EAAAA,EAAQA,UAAC,GAAMC,EAAAxB,EAAAA,QAAAyB,EAAA,GAA5CC,EAAUF,EAAA,GAAEG,EAAaH,EAAA,GAE1BI,EAAoBC,EAAAA,SAAQ,WAChC,OAAOxB,GAAeyB,EAAAA,IAAIzB,EAAaM,EACzC,GAAG,CAACN,EAAaM,IA8NjB,OA3NAoB,EAAAA,WAAU,WACHC,EAAAA,mB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CAAKgB,UAAWC,EAAO7C,IAAI8B,SACzBF,EAAAkB,IAAA,MAAA,CAAKF,UAAWC,EAAOE,QAASC,IAAKrH,KAG3C,CAEAZ,EAASkI,UAAY,CACnBhI,KAAMiI,EAAAA,QAAUC,KAAKC,WACrBlI,YAAagI,EAAS,QAACG,MAAM,CAC3BvF,GAAIoF,EAAS,QAACI,OACd1C,UAAWsC,EAAS,QAACK,SAEvBpI,MAAO+H,EAAS,QAACM,QAAQN,EAAAA,QAAUG,MAAM,CAAA,IAAKD,WAC9ChI,YAAa8H,EAAS,QAACM,QAAQN,EAAS,QAACG,MAAM,CAAE,IACjDhI,OAAQ6H,EAAAA,QAAUI,OAAOF,WACzB9H,gBAAiB4H,EAAS,QAACG,MAAM,CAAA,GAAID,WACrC7H,eAAgB2H,EAAS,QAACO,KAC1BjI,eAAgB0H,EAAS,QAACK,OAC1B9H,gBAAiByH,EAAAA,QAAUO,KAAKL,WAChC1H,mBAAoBwH,EAAAA,QAAUO,KAAKL,YAGrCrI,EAAS2I,aAAe,CACtBxI,YAAa,KACbK,eAAgB,KAChBC,eAAgB,gCAChBJ,YAAa,MAGf,IAAeuI,EAAAA,EAAAA,KAAK5I"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardKey.js","sources":["../../../../../../../../../../../src/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/components/KeyboardKey/KeyboardKey.tsx"],"sourcesContent":["import { FC, memo,
|
|
1
|
+
{"version":3,"file":"KeyboardKey.js","sources":["../../../../../../../../../../../src/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/components/KeyboardKey/KeyboardKey.tsx"],"sourcesContent":["import { FC, memo, PropsWithChildren } from 'react';\n\nimport styles from './KeyboardKey.module.css';\n\nconst KeyboardKeyComponent: FC<PropsWithChildren> = ({ children }) => {\n return <span className={styles.keyboardKey}>{children}</span>;\n};\n\nexport const KeyboardKey = memo(KeyboardKeyComponent);\n\nKeyboardKey.displayName = 'KeyboardKey';\n"],"names":["KeyboardKey","memo","_ref","children","_jsx","className","styles","keyboardKey","displayName"],"mappings":"mKAQaA,EAAcC,EAAIA,MAJqB,SAAkBC,GAAA,IAAfC,IAAAA,SACrD,OAAOC,EAAAA,IAAA,OAAA,CAAMC,UAAWC,EAAOC,YAAYJ,SAAEA,GAC/C,IAIAH,EAAYQ,YAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),i=require("react-dom"),u=require("lodash"),n=require("@material-ui/core/styles"),s=require("../components/FiltersToggler.js"),o=require("../utils.js"),l=require("../constants.js"),a=require("../../../config/theme/index.js");require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/regenerator"),require("highcharts"),require("highcharts/highcharts-more"),require("highcharts/modules/solid-gauge"),require("highcharts/modules/heatmap"),require("highcharts/modules/boost"),require("highcharts/modules/exporting"),require("highcharts/modules/xrange"),require("highcharts/modules/dumbbell"),require("highcharts/modules/pattern-fill"),require("highcharts/modules/annotations"),require("highcharts-multicolor-series"),require("dompurify"),require("../../../config/mapbox/index.js"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("@babel/runtime/helpers/toArray"),require("@babel/runtime/helpers/toConsumableArray"),require("../../../clients/subscriptions/constants.js"),require("../../../clients/subscriptions.v1.js"),require("../../../clients/subscriptions/subscriptions-client.factory.js"),require("../../../config/extendNative.js");var c=require("react/jsx-runtime");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),i=require("react-dom"),u=require("lodash"),n=require("@material-ui/core/styles"),s=require("../components/FiltersToggler.js"),o=require("../utils.js"),l=require("../constants.js"),a=require("../../../config/theme/index.js");require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/regenerator"),require("highcharts"),require("highcharts/highcharts-more"),require("highcharts/modules/solid-gauge"),require("highcharts/modules/heatmap"),require("highcharts/modules/boost"),require("highcharts/modules/exporting"),require("highcharts/modules/xrange"),require("highcharts/modules/dumbbell"),require("highcharts/modules/pattern-fill"),require("highcharts/modules/annotations"),require("highcharts-multicolor-series"),require("dompurify"),require("../../../config/mapbox/index.js"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("@babel/runtime/helpers/toArray"),require("@babel/runtime/helpers/toConsumableArray"),require("../../../clients/subscriptions/constants.js"),require("../../../clients/subscriptions.v1.js"),require("../../../clients/subscriptions/subscriptions-client.factory.js"),require("../../../config/extendNative.js");var c=require("../../../utils/createAdaptiveRoot.js"),d=require("react/jsx-runtime");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=h(e),p=h(r);function b(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function m(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?b(Object(t),!0).forEach((function(r){f.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}exports.useAppFilterTogglerWidth=function(){var e=t.useState(null),r=p.default(e,2),u=r[0],o=r[1];return t.useEffect((function(){var e=document.createElement("div");e.style.position="absolute",e.style.visibility="hidden",document.body.appendChild(e);var r=c.createAdaptiveRoot(e);i.flushSync((function(){r.render(d.jsx(n.MuiThemeProvider,{theme:a.darkTheme,children:d.jsx(s,{})}))}));var t=e.getBoundingClientRect();r.unmount(),e.remove(),o(t.width)}),[]),u},exports.useComonentsWidth=function(e){var r=t.useRef(),i=t.useState(null),n=p.default(i,2),s=n[0],o=n[1],l=t.useRef({}),a=e.filter((function(e){return!!e})),c=d.jsx("div",{ref:r,style:{position:"absolute",width:0,height:0,overflow:"hidden"},children:a.map((function(e,r){return d.jsx("div",{"data-key":null==e?void 0:e.key,style:{position:"absolute"},children:e},r)}))});return t.useEffect((function(){var e;if(!u.isEqual(a,l.current)){var t=Array.from(null===(e=r.current)||void 0===e?void 0:e.childNodes).reduce((function(e,r){var t,i=null==r||null===(t=r.getAttribute)||void 0===t?void 0:t.call(r,"data-key"),u=null==r?void 0:r.getBoundingClientRect().width;return m(m({},e),{},f.default({},i,u))}),{});Object.values(t).length===a.length&&(u.isEqual(s,t)||o(t)),l.current=a}})),{componentsWidth:s,hiddenElements:c}},exports.useFilterLayout=function(e,r,i,u){var n=t.useState(null),s=p.default(n,2),a=s[0],c=s[1];return t.useEffect((function(){if(u&&r){var t=o.getStartComponent(e),n=o.getMiddleComponent(e),s=o.getEndComponents(e),a=t&&n&&!s,d=t&&!n&&s,h=t&&n&&s;if(t&&!n&&!s){var f=r[t.key];if(f<=u)return void c(l.LARGE_SIZE_LAYOUT);if(f<=u/2)return void c(l.MEDIUM_SIZE_LAYOUT)}else if(a||d){var p=r[t.key],b=a?r[n.key]:r[s.key];if(p+b<=u)return void c(l.LARGE_SIZE_LAYOUT);if(i+b<=u)return void c(l.MEDIUM_SIZE_LAYOUT)}else if(h){var m=r[t.key],v=r[n.key],g=r[s.key];if(m+v+g<=u)return void c(l.LARGE_SIZE_LAYOUT);if(i+v+g<=u)return void c(l.MEDIUM_SIZE_LAYOUT);if(i+g<=u)return void c(l.SMALL_SIZE_LAYOUT)}c(l.SMALL_SIZE_LAYOUT)}}),[r,u]),a};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/PinnableFilters/effects/index.js"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\nimport
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/PinnableFilters/effects/index.js"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\nimport { flushSync } from 'react-dom';\nimport { isEqual } from 'lodash';\nimport { MuiThemeProvider } from '@material-ui/core/styles';\n\nimport FiltersToggler from '../components/FiltersToggler';\nimport { getEndComponents, getMiddleComponent, getStartComponent } from '../utils';\nimport { LARGE_SIZE_LAYOUT, MEDIUM_SIZE_LAYOUT, SMALL_SIZE_LAYOUT } from '../constants';\n\nimport { theme } from '~/config';\nimport { createAdaptiveRoot } from '~/utils/createAdaptiveRoot';\n\n// NOTE: Determine layout according to the width of elements\nexport function useFilterLayout(components, componentsWidth, appFilterTogglerWidth, appWidth) {\n const [layout, setLayout] = useState(null);\n\n useEffect(() => {\n if (!appWidth || !componentsWidth) {\n return;\n }\n\n const filtersComponent = getStartComponent(components);\n const goalComponent = getMiddleComponent(components);\n const switchComponent = getEndComponents(components);\n\n const hasFiltersOnly = filtersComponent && !goalComponent && !switchComponent;\n const hasFiltersAndGoals = filtersComponent && goalComponent && !switchComponent;\n const hasFiltersAndSwitch = filtersComponent && !goalComponent && switchComponent;\n const hasAll = filtersComponent && goalComponent && switchComponent;\n\n if (hasFiltersOnly) {\n const filtersWidth = componentsWidth[filtersComponent.key];\n\n if (filtersWidth <= appWidth) {\n setLayout(LARGE_SIZE_LAYOUT);\n return;\n }\n\n if (filtersWidth <= appWidth / 2) {\n setLayout(MEDIUM_SIZE_LAYOUT);\n return;\n }\n } else if (hasFiltersAndGoals || hasFiltersAndSwitch) {\n const startWidth = componentsWidth[filtersComponent.key];\n const endWidth = hasFiltersAndGoals\n ? componentsWidth[goalComponent.key]\n : componentsWidth[switchComponent.key];\n\n if (startWidth + endWidth <= appWidth) {\n setLayout(LARGE_SIZE_LAYOUT);\n return;\n }\n\n if (appFilterTogglerWidth + endWidth <= appWidth) {\n setLayout(MEDIUM_SIZE_LAYOUT);\n return;\n }\n } else if (hasAll) {\n const startWidth = componentsWidth[filtersComponent.key];\n const middleWidth = componentsWidth[goalComponent.key];\n const endWidth = componentsWidth[switchComponent.key];\n\n if (startWidth + middleWidth + endWidth <= appWidth) {\n setLayout(LARGE_SIZE_LAYOUT);\n return;\n }\n\n if (appFilterTogglerWidth + middleWidth + endWidth <= appWidth) {\n setLayout(MEDIUM_SIZE_LAYOUT);\n return;\n }\n\n if (appFilterTogglerWidth + endWidth <= appWidth) {\n setLayout(SMALL_SIZE_LAYOUT);\n return;\n }\n }\n\n setLayout(SMALL_SIZE_LAYOUT);\n }, [componentsWidth, appWidth]);\n\n return layout;\n}\n\n// NOTE: Calculate the width of child components here\nexport function useComonentsWidth(components) {\n // const widthRef = useRef({});\n const hiddenElementsRef = useRef();\n const [widthDict, setWidthDict] = useState(null);\n const prevComponentsRef = useRef({});\n\n const validComponents = components.filter(component => !!component);\n const hiddenElements = (\n <div\n ref={hiddenElementsRef}\n style={{ position: 'absolute', width: 0, height: 0, overflow: 'hidden' }}\n >\n {validComponents.map((component, index) => {\n return (\n // eslint-disable-next-line react/no-array-index-key\n <div key={index} data-key={component?.key} style={{ position: 'absolute' }}>\n {component}\n </div>\n );\n })}\n </div>\n );\n\n // NOTE: Calcualte width of each components\n useEffect(() => {\n // NOTE: Don't calcuate width again\n if (isEqual(validComponents, prevComponentsRef.current)) {\n return;\n }\n\n const nodesArray = Array.from(hiddenElementsRef.current?.childNodes);\n const sizeMap = nodesArray.reduce((acc, node) => {\n const key = node?.getAttribute?.('data-key');\n const value = node?.getBoundingClientRect().width;\n\n return {\n ...acc,\n [key]: value,\n };\n }, {});\n\n if (Object.values(sizeMap).length === validComponents.length) {\n if (!isEqual(widthDict, sizeMap)) {\n setWidthDict(sizeMap);\n }\n }\n\n prevComponentsRef.current = validComponents;\n });\n\n return { componentsWidth: widthDict, hiddenElements };\n}\n\n// NOTE: Calculate the width of Toggler Component\nexport function useAppFilterTogglerWidth() {\n const [width, setWidth] = useState(null);\n\n useEffect(() => {\n const element = document.createElement('div');\n element.style.position = 'absolute';\n element.style.visibility = 'hidden';\n document.body.appendChild(element);\n\n const root = createAdaptiveRoot(element);\n flushSync(() => {\n root.render(\n <MuiThemeProvider theme={theme.darkTheme}>\n <FiltersToggler />\n </MuiThemeProvider>\n );\n });\n const dims = element.getBoundingClientRect();\n root.unmount();\n element.remove();\n setWidth(dims.width);\n }, []);\n\n return width;\n}\n"],"names":["useState","_useState6","_slicedToArray","_useState5","width","setWidth","useEffect","element","document","createElement","style","position","visibility","body","appendChild","root","createAdaptiveRoot","flushSync","render","_jsx","jsx","MuiThemeProvider","theme","darkTheme","children","FiltersToggler","dims","getBoundingClientRect","unmount","remove","components","hiddenElementsRef","useRef","_useState4","_useState3","widthDict","setWidthDict","prevComponentsRef","validComponents","filter","component","hiddenElements","ref","height","overflow","map","index","key","_hiddenElementsRef$cu","isEqual","current","sizeMap","Array","from","childNodes","reduce","acc","node","_node$getAttribute","getAttribute","call","value","_objectSpread","_defineProperty","Object","values","length","componentsWidth","appFilterTogglerWidth","appWidth","_useState2","_useState","layout","setLayout","filtersComponent","getStartComponent","goalComponent","getMiddleComponent","switchComponent","getEndComponents","hasFiltersAndGoals","hasFiltersAndSwitch","hasAll","filtersWidth","LARGE_SIZE_LAYOUT","MEDIUM_SIZE_LAYOUT","startWidth","endWidth","middleWidth","SMALL_SIZE_LAYOUT"],"mappings":"m4EA2IO,WACL,IAA0BA,EAAAA,EAAQA,SAAC,MAAKC,EAAAC,EAAAA,QAAAC,EAAA,GAAjCC,EAAKH,EAAA,GAAEI,EAAQJ,EAAA,GAsBtB,OApBAK,EA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