@corva/ui 0.54.0-7 → 0.54.0-9
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/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/AdvancedSlider/AdvancedSlider.d.ts +19 -1
- package/components/AdvancedSlider/AdvancedSlider.d.ts.map +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/components/AssetNameLabel/PrimaryAssetNameLabel.d.ts +18 -1
- package/components/AssetNameLabel/SecondaryAssetNameLabel.d.ts +19 -1
- package/components/AssetNameLabel/index.d.ts +26 -1
- package/components/Attachment/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.d.ts +18 -1
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.d.ts.map +1 -1
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
- package/components/DevCenter/AppHeader/AppHeader.js +1 -1
- package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/sharedStyles.d.ts +1 -1
- package/components/GradientManager/GradientList.d.ts +31 -0
- package/components/GradientManager/GradientList.d.ts.map +1 -0
- package/components/GradientManager/GradientList.js +1 -0
- package/components/GradientManager/GradientManager.d.ts +4 -0
- package/components/GradientManager/GradientManager.d.ts.map +1 -0
- package/components/GradientManager/GradientManager.js +1 -0
- package/components/GradientManager/GradientManager.stories.d.ts +21 -0
- package/components/GradientManager/GradientManager.stories.d.ts.map +1 -0
- package/components/GradientManager/GradientManager.styles.d.ts +2 -0
- package/components/GradientManager/GradientManager.styles.d.ts.map +1 -0
- package/components/GradientManager/GradientManager.styles.js +1 -0
- package/components/GradientManager/GradientManagerProps.d.ts +86 -0
- package/components/GradientManager/GradientManagerProps.d.ts.map +1 -0
- package/components/GradientManager/GradientPreview/GradientPreview.d.ts +8 -0
- package/components/GradientManager/GradientPreview/GradientPreview.d.ts.map +1 -0
- package/components/GradientManager/GradientPreview/GradientPreview.js +1 -0
- package/components/GradientManager/GradientSelect.d.ts +13 -0
- package/components/GradientManager/GradientSelect.d.ts.map +1 -0
- package/components/GradientManager/GradientSelect.js +1 -0
- package/components/GradientManager/GradientSelect.styles.d.ts +2 -0
- package/components/GradientManager/GradientSelect.styles.d.ts.map +1 -0
- package/components/GradientManager/GradientSelect.styles.js +1 -0
- package/components/GradientManager/__tests__/GradientManager.test.d.ts +2 -0
- package/components/GradientManager/__tests__/GradientManager.test.d.ts.map +1 -0
- package/components/GradientManager/__tests__/pageHelpers.d.ts +20 -0
- package/components/GradientManager/__tests__/pageHelpers.d.ts.map +1 -0
- package/components/GradientManager/__tests__/testData.d.ts +20 -0
- package/components/GradientManager/__tests__/testData.d.ts.map +1 -0
- package/components/GradientManager/configuration/constants.d.ts +10 -0
- package/components/GradientManager/configuration/constants.d.ts.map +1 -0
- package/components/GradientManager/configuration/constants.js +1 -0
- package/components/GradientManager/index.d.ts +2 -0
- package/components/GradientManager/index.d.ts.map +1 -0
- package/components/GradientPicker/GradientPicker.d.ts +4 -0
- package/components/GradientPicker/GradientPicker.d.ts.map +1 -0
- package/components/GradientPicker/GradientPicker.js +1 -0
- package/components/GradientPicker/GradientPicker.stories.d.ts +35 -0
- package/components/GradientPicker/GradientPicker.stories.d.ts.map +1 -0
- package/components/GradientPicker/GradientPicker.styles.d.ts +2 -0
- package/components/GradientPicker/GradientPicker.styles.d.ts.map +1 -0
- package/components/GradientPicker/GradientPicker.styles.js +1 -0
- package/components/GradientPicker/GradientPicker.utils.d.ts +9 -0
- package/components/GradientPicker/GradientPicker.utils.d.ts.map +1 -0
- package/components/GradientPicker/GradientPicker.utils.js +1 -0
- package/components/GradientPicker/GradientPickerProps.d.ts +16 -0
- package/components/GradientPicker/GradientPickerProps.d.ts.map +1 -0
- package/components/GradientPicker/__tests__/GradientPicker.test.d.ts +2 -0
- package/components/GradientPicker/__tests__/GradientPicker.test.d.ts.map +1 -0
- package/components/GradientPicker/__tests__/pageHelpers.d.ts +8 -0
- package/components/GradientPicker/__tests__/pageHelpers.d.ts.map +1 -0
- package/components/GradientPicker/__tests__/testData.d.ts +19 -0
- package/components/GradientPicker/__tests__/testData.d.ts.map +1 -0
- package/components/GradientPicker/index.d.ts +2 -0
- package/components/GradientPicker/index.d.ts.map +1 -0
- package/components/ImagesGrid/index.d.ts +18 -1
- package/components/ImagesGrid/index.d.ts.map +1 -1
- package/components/Modal/CorvaModal.d.ts +5 -20
- package/components/Modal/CorvaModal.d.ts.map +1 -1
- package/components/Modal/CorvaModal.js +1 -1
- package/components/Modal/types.d.ts +20 -22
- package/components/Modal/types.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV2/effects/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/components/OffsetWellPickerV4/effects/useCompanyMetricKey.js +1 -1
- package/components/WellSummary/WellSummaryItemValue.js +1 -1
- package/components/WellSummary/effects/useWellSummaryData.js +1 -1
- package/components/index.d.ts +3 -1
- package/components/index.js +1 -1
- package/components/shared/__tests__/createTestHook.d.ts +2 -0
- package/components/shared/__tests__/createTestHook.d.ts.map +1 -0
- package/components/shared/__tests__/useThrottledCallback.test.d.ts +2 -0
- package/components/shared/__tests__/useThrottledCallback.test.d.ts.map +1 -0
- package/components/shared/useThrottledCallback.d.ts +15 -0
- package/components/shared/useThrottledCallback.d.ts.map +1 -0
- package/components/shared/useThrottledCallback.js +1 -0
- package/constants/componentsSettings.d.ts +5 -0
- package/constants/componentsSettings.d.ts.map +1 -0
- package/constants/componentsSettings.js +1 -0
- package/constants/index.d.ts +2 -1
- package/constants/index.js +1 -1
- package/constants/wellSummary.d.ts +1 -1
- package/package.json +3 -1
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -0
- package/types/shared/CustomGradient.d.ts +7 -0
- package/types/shared/CustomGradient.d.ts.map +1 -0
- package/types/shared/GradientFillStop.d.ts +11 -0
- package/types/shared/GradientFillStop.d.ts.map +1 -0
- package/types/shared/index.d.ts +3 -0
- package/types/shared/index.d.ts.map +1 -0
- package/utils/devcenter.js +1 -1
- package/components/Modal/types.js +0 -1
- package/types.d.ts +0 -142
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import{memo as r,useState as i,useRef as o,useEffect as n,useMemo as s,useCallback as a,Fragment as p}from"react";import l from"classnames";import m from"prop-types";import{Table as d,TableHead as c,TableBody as u,TableRow as j,TableCell as C}from"@material-ui/core";import{jsxs as f,jsx as h}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../Modal/CorvaModal.js";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../ImagesGrid/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import b from"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"lodash";import"slate";import"../../../ParameterCharts/ParameterCharts.js";import"../../../ParameterCharts/AddEditTrack.js";import"../../../ChartActionsList/ChartActionsList.js";import"../../../CopyToClipboard/CopyToClipboard.js";import"../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../AssetEditor/SingleAssetEditor.js";import"../../../SettingEditors/ColorEditor/index.js";import"../../../SettingEditors/DropdownEditor/index.js";import"../../../SettingEditors/RadioEditor/index.js";import"../../../SwitchControl/index.js";import"../../../ColorPicker/ColorPicker.js";import"../../../Chart/components/ChartButton.js";import"../../../Chart/components/ChartButtons.js";import"../../../Chart/components/ChartWrapper.js";import"../../../Chart/components/AxisDropdown.js";import"../../../Chart/components/buttons/DragToZoomButton.js";import"../../../Chart/components/buttons/ZoomInButton.js";import"../../../Chart/components/buttons/ZoomOutButton.js";import"../../../Chart/components/buttons/PanButton.js";import"../../../Chart/components/buttons/ResetZoomButton.js";import"../../../Chart/components/buttons/HideAxesButton.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.js";import"../../../AdvancedSlider/AdvancedSlider.js";import"../../../Breadcrumbs/index.js";import"../../../VirtualizedTable/index.js";import"../../../EmptyView/EmptyView.js";import"../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../Button/index.js";import"../../../ContextMenuItem/index.js";import"../../../FolderMenuItem/index.js";import"../../../EditableItem/EditableItem/index.js";import"../../../EditableItem/EditableItemWithBadge/index.js";import"../../../Checkbox/index.js";import"../../../FolderMenuItemWithLinks/index.js";import"../../../IconButton/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import"../../../Select/index.js";import"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/index.js";import"../../../../constants/goals.js";import"../../../../constants/segment.js";import"../../../../constants/alerts.js";import"../../../../constants/apps.js";import"../../../../constants/drillstring.js";import"../../../../constants/completion.js";import"../../../../constants/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"../../../Toaster/Toaster.js";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../Template/TemplateSharingDialog/index.js";import"../../../MenuItem/index.js";import"../../../PadModeSelect/PadModeSelect.js";import"../../../PinnableFilters/PinnableFilters.js";import"../../../HeaderLayout/HeaderLayout.js";import"../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../PadOffsetsPicker/StagesSelector.js";import"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.js";import"../../../SearchInput/index.js";import"../../../FeedItem/FeedItem.js";import"../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../PostInput/PostInput.js";import"../../../KeyboardDateTimePicker.js";import"../../../AddComment/Popover.js";import"../../../AddComment/Popup.js";import"../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../StageDesignVActual/ComparisonHeader.js";import"../../../StageDesignVActual/ComparisonRow.js";import"../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../EmbeddedApp/EmbeddedApp.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../Autocomplete/Autocomplete.js";import"../../../DocumentViewer/DocumentViewer.js";import"../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../Search/Search.js";import"../../../Search/components/Listbox.js";import"../../../Search/components/Paper.js";import"../../../Search/components/RecentSearches.js";import"../../../Search/components/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import"../../../StatusBadge/index.js";import"../../../Attachment/index.js";import"../../../EmojiIconButton.js";import"../../../FileUploadIconButton.js";import"../../../FilePreview/index.js";import"../../../FailedFileUploading.js";import"../../../UserMention/index.js";import"../../../CommentsInfo/index.js";import"../../../CommentInput/index.js";import"../../../Comment/index.js";import"../../../CommentLoader.js";import{AdvancedSearch as v}from"./AdvancedSearch/AdvancedSearch.js";import A from"./OffsetWellsTableHead.js";import g from"./OffsetWellsTableRow.js";import{METRICS_LIST as D,EXPANED_WELLNAME_WIDTH as S,TableColumns as y,ViewType as x,ROW_HEIGHT as T}from"../../constants.js";import I from"./OffsetWellsTable.module.css.js";import{getIsImperial as P}from"../../utils/unitSystem.js";function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function W(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?w(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var O=function(r){var m,w=r.open,O=r.isTableLoading,E=r.companyId,B=r.subjectWellId,R=r.sortBy,L=r.setSortBy,F=r.sortDirection,M=r.setSortDirection,k=r.columnsWithDict,N=r.wells,q=r.metricsKeys,V=r.setMetricsKeys,H=r.handleChanageOffsetWell,K=r.handleChangeAllOffsetWells,U=r.handleAddRemoveAssets,Z=r.isWellNameExpand,z=r.setIsWellNameExpand,G=r.isHscrollMoved,J=r.onHideAdvancedSearch,Q=r.isViewOnly,X=r.isLastWell,Y=r.contentRef,$=r.isLimitedOffsetwells,_=r.maxOffsetwellNumber,ee=r.wellSections,te=r.setActiveWellId,re=r.viewType,ie=r.isWDUser,oe=i([]),ne=e(oe,2),se=ne[0],ae=ne[1],pe=i(null),le=e(pe,2),me=le[0],de=le[1],ce=i(0),ue=e(ce,2),je=ue[0],Ce=ue[1],fe=i(0),he=e(fe,2),be=he[0],ve=he[1],Ae=o(),ge=o(),De=o();n((function(){if(!me)return ae(N),void ve(0);var t=function(e,t,r,i){var o,n=e.findIndex((function(e){return t===e.id})),s=r.findIndex((function(e){return t===e.id}));-1===s&&(s=r.length);var a=Math.round(((null===(o=i.current)||void 0===o?void 0:o.clientHeight)-145)/T+1),p=s-n;Math.abs(p)>a&&(s=n+a*Math.sign(p));var l=s-n;return[n,s,l,200*(.4*Math.abs(l)+2),Math.min(n,s),(Math.abs(l)+1)*T]}(se,me,N,Y),r=e(t,6),i=r[0],o=r[1],n=r[2],s=r[3],a=r[4],p=r[5];if(De.current=s,o===i)ae(N);else{Ce(a),ve(p);var l=function(e,t,r,i){return e.map((function(e,o){var n=r<o&&o<=i||i<=o&&o<r;return o===r?W(W({},e),{},{moveTo:t}):n?W(W({},e),{},{moveTo:r<i?-1:1,delayTime:Math.abs(o-r)}):e}))}(se,n,i,o);ae(l),setTimeout((function(){ae(N),ve(0),de(null)}),s)}}),[N]);var Se=s((function(){var e=se.filter((function(e){return e.checked}));return[e,se.length!==e.length&&e.length&&!$,e.length===se.length||$]}),[se,$]),ye=e(Se,3),xe=ye[0],Te=ye[1],Ie=ye[2],Pe=s((function(){return P()}),[]),we=s((function(){return(q||[]).reduce((function(e,t){return e.concat(D.filter((function(e){return e.key===t})))}),[])}),[q]),We=s((function(){return Z?S-58:y[0].width[q.length]-58}),[Z,null==q?void 0:q.length]);n((function(){if(re!==x.mobile&&Ae.current&&ge.current){var e=Ae.current.querySelector(".".concat(I.wellNameFixed));G?e.classList.remove(I.noShadow):e.classList.add(I.noShadow);var t=ge.current.querySelectorAll(".".concat(I.wellNameFixed));G?t.forEach((function(e){return e.classList.remove(I.noShadow)})):t.forEach((function(e){return e.classList.add(I.noShadow)}))}}),[G,ge.current,Ae.current,se]);var Oe=a((function(e,t){L(e),M(t)}),[]),Ee=a((function(e){V(e)}),[]),Be=a((function(e,t){V((function(r){return r.map((function(r){return r===e?t:r}))}))}),[]);return k&&se?f("div",{className:I.offsetWellsTable,children:[h("div",{className:I.stickyTable,children:h(d,{"aria-label":"ows table head",innerRef:Ae,children:h(c,{children:h(A,{open:w,columnsWithDict:k,metricsKeys:q,sortBy:R,sortDirection:F,indeterminate:Te,isAllWellsSelected:Ie,onChangeSort:Oe,onChangeMetricsKeys:Ee,onUpdateMetricsKey:Be,isWellNameExpand:Z,setIsWellNameExpand:z,handleChangeAllOffsetWells:K,wellNameStyle:I.wellNameFixed,isViewOnly:Q,isImperial:Pe,contentRef:Y,viewType:re})})})}),!Q&&h("div",{className:I.searchCell,children:h(v,{companyId:E,subjectWellId:B,wells:se,onChange:U,selectedWellIds:xe.map((function(e){return e.id})),onHideAdvancedSearch:J,width:null===(m=Y.current)||void 0===m?void 0:m.getBoundingClientRect().width})}),h(d,{"aria-label":"ows table body",innerRef:ge,className:I.bodyTable,children:f(u,{children:[h(j,{children:h(C,{className:l(I.topShadow,t({},I.viewOnlyShadow,Q))})}),se.map((function(e,t){return f(p,{children:[h(j,{children:me&&be>0&&t===je&&h(C,{style:{height:be}})}),h(g,{columnsWithDict:k,subjectWellId:B,data:e,metricsKeys:q,metricsColumns:we,handleChanageOffsetWell:H,isWellNameExpand:Z,wellNameStyle:I.wellNameFixed,wellNameWidth:We,isViewOnly:Q,isImperial:Pe,isLimitedOffsetwells:$,maxOffsetwellNumber:_,wellSections:ee,setActiveWellId:te,viewType:re,newCheckedWellId:null!=e&&e.moveTo?me:0,setNewCheckedWellId:de,index:null!=e&&e.moveTo?t:0,flyDuration:null!=e&&e.moveTo?De.current:0,isWDUser:ie})]},e.id)})),!X&&h(j,{children:h(C,{className:I.loadingCell,children:h("span",{children:"Loading..."})})}),h(j,{children:h(C,{className:I.bottomShadow})})]})}),O&&h(b,{fullscreen:!1,className:I.loadingContainer})]}):null};O.propTypes={open:m.bool.isRequired,isTableLoading:m.bool.isRequired,companyId:m.number.isRequired,subjectWellId:m.number.isRequired,sortBy:m.string.isRequired,setSortBy:m.func.isRequired,sortDirection:m.string.isRequired,setSortDirection:m.func.isRequired,columnsWithDict:m.arrayOf(m.shape({})).isRequired,wells:m.arrayOf(m.shape({})).isRequired,metricsKeys:m.arrayOf(m.string).isRequired,setMetricsKeys:m.func.isRequired,handleChanageOffsetWell:m.func.isRequired,handleChangeAllOffsetWells:m.func.isRequired,handleAddRemoveAssets:m.func.isRequired,setIsWellNameExpand:m.func.isRequired,isWellNameExpand:m.bool.isRequired,isHscrollMoved:m.bool.isRequired,onHideAdvancedSearch:m.func.isRequired,isViewOnly:m.bool.isRequired,isLastWell:m.bool.isRequired,isLimitedOffsetwells:m.bool.isRequired,maxOffsetwellNumber:m.number.isRequired,contentRef:m.shape().isRequired,wellSections:m.arrayOf(m.shape({})).isRequired,setActiveWellId:m.func.isRequired,viewType:m.string.isRequired,isWDUser:m.bool.isRequired};var E=r(O);export{E as default};
|
|
1
|
+
import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import{memo as r,useState as i,useRef as o,useEffect as n,useMemo as s,useCallback as a,Fragment as p}from"react";import l from"classnames";import m from"prop-types";import{Table as d,TableHead as c,TableBody as u,TableRow as j,TableCell as C}from"@material-ui/core";import{jsxs as f,jsx as h}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../Modal/CorvaModal.js";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../ImagesGrid/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import b from"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"lodash";import"slate";import"../../../ParameterCharts/ParameterCharts.js";import"../../../ParameterCharts/AddEditTrack.js";import"../../../ChartActionsList/ChartActionsList.js";import"../../../CopyToClipboard/CopyToClipboard.js";import"../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../AssetEditor/SingleAssetEditor.js";import"../../../SettingEditors/ColorEditor/index.js";import"../../../SettingEditors/DropdownEditor/index.js";import"../../../SettingEditors/RadioEditor/index.js";import"../../../SwitchControl/index.js";import"../../../ColorPicker/ColorPicker.js";import"../../../Chart/components/ChartButton.js";import"../../../Chart/components/ChartButtons.js";import"../../../Chart/components/ChartWrapper.js";import"../../../Chart/components/AxisDropdown.js";import"../../../Chart/components/buttons/DragToZoomButton.js";import"../../../Chart/components/buttons/ZoomInButton.js";import"../../../Chart/components/buttons/ZoomOutButton.js";import"../../../Chart/components/buttons/PanButton.js";import"../../../Chart/components/buttons/ResetZoomButton.js";import"../../../Chart/components/buttons/HideAxesButton.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.js";import"../../../AdvancedSlider/AdvancedSlider.js";import"../../../Breadcrumbs/index.js";import"../../../VirtualizedTable/index.js";import"../../../EmptyView/EmptyView.js";import"../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../Button/index.js";import"../../../ContextMenuItem/index.js";import"../../../FolderMenuItem/index.js";import"../../../EditableItem/EditableItem/index.js";import"../../../EditableItem/EditableItemWithBadge/index.js";import"../../../Checkbox/index.js";import"../../../FolderMenuItemWithLinks/index.js";import"../../../IconButton/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import"../../../Select/index.js";import"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../GradientManager/configuration/constants.js";import"../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../GradientManager/GradientSelect.styles.js";import"../../../GradientPicker/GradientPicker.js";import"../../../GradientManager/GradientManager.styles.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/index.js";import"../../../../constants/goals.js";import"../../../../constants/segment.js";import"../../../../constants/alerts.js";import"../../../../constants/apps.js";import"../../../../constants/drillstring.js";import"../../../../constants/completion.js";import"../../../../constants/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"../../../Toaster/Toaster.js";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../Template/TemplateSharingDialog/index.js";import"../../../MenuItem/index.js";import"../../../PadModeSelect/PadModeSelect.js";import"../../../PinnableFilters/PinnableFilters.js";import"../../../HeaderLayout/HeaderLayout.js";import"../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../PadOffsetsPicker/StagesSelector.js";import"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.js";import"../../../SearchInput/index.js";import"../../../FeedItem/FeedItem.js";import"../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../PostInput/PostInput.js";import"../../../KeyboardDateTimePicker.js";import"../../../AddComment/Popover.js";import"../../../AddComment/Popup.js";import"../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../StageDesignVActual/ComparisonHeader.js";import"../../../StageDesignVActual/ComparisonRow.js";import"../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../EmbeddedApp/EmbeddedApp.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../Autocomplete/Autocomplete.js";import"../../../DocumentViewer/DocumentViewer.js";import"../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../Search/Search.js";import"../../../Search/components/Listbox.js";import"../../../Search/components/Paper.js";import"../../../Search/components/RecentSearches.js";import"../../../Search/components/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import"../../../StatusBadge/index.js";import"../../../Attachment/index.js";import"../../../EmojiIconButton.js";import"../../../FileUploadIconButton.js";import"../../../FilePreview/index.js";import"../../../FailedFileUploading.js";import"../../../UserMention/index.js";import"../../../CommentsInfo/index.js";import"../../../CommentInput/index.js";import"../../../Comment/index.js";import"../../../CommentLoader.js";import{AdvancedSearch as v}from"./AdvancedSearch/AdvancedSearch.js";import A from"./OffsetWellsTableHead.js";import g from"./OffsetWellsTableRow.js";import{METRICS_LIST as D,EXPANED_WELLNAME_WIDTH as S,TableColumns as y,ViewType as x,ROW_HEIGHT as P}from"../../constants.js";import T from"./OffsetWellsTable.module.css.js";import{getIsImperial as I}from"../../utils/unitSystem.js";function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function W(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?w(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var O=function(r){var m,w=r.open,O=r.isTableLoading,E=r.companyId,B=r.subjectWellId,R=r.sortBy,L=r.setSortBy,M=r.sortDirection,k=r.setSortDirection,F=r.columnsWithDict,N=r.wells,q=r.metricsKeys,V=r.setMetricsKeys,H=r.handleChanageOffsetWell,G=r.handleChangeAllOffsetWells,K=r.handleAddRemoveAssets,U=r.isWellNameExpand,Z=r.setIsWellNameExpand,z=r.isHscrollMoved,J=r.onHideAdvancedSearch,Q=r.isViewOnly,X=r.isLastWell,Y=r.contentRef,$=r.isLimitedOffsetwells,_=r.maxOffsetwellNumber,ee=r.wellSections,te=r.setActiveWellId,re=r.viewType,ie=r.isWDUser,oe=i([]),ne=e(oe,2),se=ne[0],ae=ne[1],pe=i(null),le=e(pe,2),me=le[0],de=le[1],ce=i(0),ue=e(ce,2),je=ue[0],Ce=ue[1],fe=i(0),he=e(fe,2),be=he[0],ve=he[1],Ae=o(),ge=o(),De=o();n((function(){if(!me)return ae(N),void ve(0);var t=function(e,t,r,i){var o,n=e.findIndex((function(e){return t===e.id})),s=r.findIndex((function(e){return t===e.id}));-1===s&&(s=r.length);var a=Math.round(((null===(o=i.current)||void 0===o?void 0:o.clientHeight)-145)/P+1),p=s-n;Math.abs(p)>a&&(s=n+a*Math.sign(p));var l=s-n;return[n,s,l,200*(.4*Math.abs(l)+2),Math.min(n,s),(Math.abs(l)+1)*P]}(se,me,N,Y),r=e(t,6),i=r[0],o=r[1],n=r[2],s=r[3],a=r[4],p=r[5];if(De.current=s,o===i)ae(N);else{Ce(a),ve(p);var l=function(e,t,r,i){return e.map((function(e,o){var n=r<o&&o<=i||i<=o&&o<r;return o===r?W(W({},e),{},{moveTo:t}):n?W(W({},e),{},{moveTo:r<i?-1:1,delayTime:Math.abs(o-r)}):e}))}(se,n,i,o);ae(l),setTimeout((function(){ae(N),ve(0),de(null)}),s)}}),[N]);var Se=s((function(){var e=se.filter((function(e){return e.checked}));return[e,se.length!==e.length&&e.length&&!$,e.length===se.length||$]}),[se,$]),ye=e(Se,3),xe=ye[0],Pe=ye[1],Te=ye[2],Ie=s((function(){return I()}),[]),we=s((function(){return(q||[]).reduce((function(e,t){return e.concat(D.filter((function(e){return e.key===t})))}),[])}),[q]),We=s((function(){return U?S-58:y[0].width[q.length]-58}),[U,null==q?void 0:q.length]);n((function(){if(re!==x.mobile&&Ae.current&&ge.current){var e=Ae.current.querySelector(".".concat(T.wellNameFixed));z?e.classList.remove(T.noShadow):e.classList.add(T.noShadow);var t=ge.current.querySelectorAll(".".concat(T.wellNameFixed));z?t.forEach((function(e){return e.classList.remove(T.noShadow)})):t.forEach((function(e){return e.classList.add(T.noShadow)}))}}),[z,ge.current,Ae.current,se]);var Oe=a((function(e,t){L(e),k(t)}),[]),Ee=a((function(e){V(e)}),[]),Be=a((function(e,t){V((function(r){return r.map((function(r){return r===e?t:r}))}))}),[]);return F&&se?f("div",{className:T.offsetWellsTable,children:[h("div",{className:T.stickyTable,children:h(d,{"aria-label":"ows table head",innerRef:Ae,children:h(c,{children:h(A,{open:w,columnsWithDict:F,metricsKeys:q,sortBy:R,sortDirection:M,indeterminate:Pe,isAllWellsSelected:Te,onChangeSort:Oe,onChangeMetricsKeys:Ee,onUpdateMetricsKey:Be,isWellNameExpand:U,setIsWellNameExpand:Z,handleChangeAllOffsetWells:G,wellNameStyle:T.wellNameFixed,isViewOnly:Q,isImperial:Ie,contentRef:Y,viewType:re})})})}),!Q&&h("div",{className:T.searchCell,children:h(v,{companyId:E,subjectWellId:B,wells:se,onChange:K,selectedWellIds:xe.map((function(e){return e.id})),onHideAdvancedSearch:J,width:null===(m=Y.current)||void 0===m?void 0:m.getBoundingClientRect().width})}),h(d,{"aria-label":"ows table body",innerRef:ge,className:T.bodyTable,children:f(u,{children:[h(j,{children:h(C,{className:l(T.topShadow,t({},T.viewOnlyShadow,Q))})}),se.map((function(e,t){return f(p,{children:[h(j,{children:me&&be>0&&t===je&&h(C,{style:{height:be}})}),h(g,{columnsWithDict:F,subjectWellId:B,data:e,metricsKeys:q,metricsColumns:we,handleChanageOffsetWell:H,isWellNameExpand:U,wellNameStyle:T.wellNameFixed,wellNameWidth:We,isViewOnly:Q,isImperial:Ie,isLimitedOffsetwells:$,maxOffsetwellNumber:_,wellSections:ee,setActiveWellId:te,viewType:re,newCheckedWellId:null!=e&&e.moveTo?me:0,setNewCheckedWellId:de,index:null!=e&&e.moveTo?t:0,flyDuration:null!=e&&e.moveTo?De.current:0,isWDUser:ie})]},e.id)})),!X&&h(j,{children:h(C,{className:T.loadingCell,children:h("span",{children:"Loading..."})})}),h(j,{children:h(C,{className:T.bottomShadow})})]})}),O&&h(b,{fullscreen:!1,className:T.loadingContainer})]}):null};O.propTypes={open:m.bool.isRequired,isTableLoading:m.bool.isRequired,companyId:m.number.isRequired,subjectWellId:m.number.isRequired,sortBy:m.string.isRequired,setSortBy:m.func.isRequired,sortDirection:m.string.isRequired,setSortDirection:m.func.isRequired,columnsWithDict:m.arrayOf(m.shape({})).isRequired,wells:m.arrayOf(m.shape({})).isRequired,metricsKeys:m.arrayOf(m.string).isRequired,setMetricsKeys:m.func.isRequired,handleChanageOffsetWell:m.func.isRequired,handleChangeAllOffsetWells:m.func.isRequired,handleAddRemoveAssets:m.func.isRequired,setIsWellNameExpand:m.func.isRequired,isWellNameExpand:m.bool.isRequired,isHscrollMoved:m.bool.isRequired,onHideAdvancedSearch:m.func.isRequired,isViewOnly:m.bool.isRequired,isLastWell:m.bool.isRequired,isLimitedOffsetwells:m.bool.isRequired,maxOffsetwellNumber:m.number.isRequired,contentRef:m.shape().isRequired,wellSections:m.arrayOf(m.shape({})).isRequired,setActiveWellId:m.func.isRequired,viewType:m.string.isRequired,isWDUser:m.bool.isRequired};var E=r(O);export{E as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"classnames";import r from"prop-types";import{isEmpty as o}from"lodash";import{Sort as i,FilterList as s,Close as n}from"@material-ui/icons";import{jsxs as p,jsx as m}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../Modal/CorvaModal.js";import"react";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../ImagesGrid/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../ParameterCharts/ParameterCharts.js";import"../../../ParameterCharts/AddEditTrack.js";import"../../../ChartActionsList/ChartActionsList.js";import"../../../CopyToClipboard/CopyToClipboard.js";import"../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../AssetEditor/SingleAssetEditor.js";import"../../../SettingEditors/ColorEditor/index.js";import"../../../SettingEditors/DropdownEditor/index.js";import"../../../SettingEditors/RadioEditor/index.js";import a from"../../../SwitchControl/index.js";import"../../../ColorPicker/ColorPicker.js";import"../../../Chart/components/ChartButton.js";import"../../../Chart/components/ChartButtons.js";import"../../../Chart/components/ChartWrapper.js";import"../../../Chart/components/AxisDropdown.js";import"../../../Chart/components/buttons/DragToZoomButton.js";import"../../../Chart/components/buttons/ZoomInButton.js";import"../../../Chart/components/buttons/ZoomOutButton.js";import"../../../Chart/components/buttons/PanButton.js";import"../../../Chart/components/buttons/ResetZoomButton.js";import"../../../Chart/components/buttons/HideAxesButton.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.js";import"../../../AdvancedSlider/AdvancedSlider.js";import"../../../Breadcrumbs/index.js";import"../../../VirtualizedTable/index.js";import"../../../EmptyView/EmptyView.js";import"../../../EmptyView/EmptyAppView/EmptyAppView.js";import l from"../../../Button/index.js";import"../../../ContextMenuItem/index.js";import"../../../FolderMenuItem/index.js";import"../../../EditableItem/EditableItem/index.js";import"../../../EditableItem/EditableItemWithBadge/index.js";import"../../../Checkbox/index.js";import"../../../FolderMenuItemWithLinks/index.js";import"../../../IconButton/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import"../../../Select/index.js";import"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/index.js";import"../../../../constants/goals.js";import"../../../../constants/segment.js";import"../../../../constants/alerts.js";import"../../../../constants/apps.js";import"../../../../constants/drillstring.js";import"../../../../constants/completion.js";import"../../../../constants/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"../../../Toaster/Toaster.js";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../Template/TemplateSharingDialog/index.js";import"../../../MenuItem/index.js";import"../../../PadModeSelect/PadModeSelect.js";import"../../../PinnableFilters/PinnableFilters.js";import"../../../HeaderLayout/HeaderLayout.js";import"../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../PadOffsetsPicker/StagesSelector.js";import"@material-ui/core";import"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.js";import"../../../SearchInput/index.js";import"../../../FeedItem/FeedItem.js";import"../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../PostInput/PostInput.js";import"../../../KeyboardDateTimePicker.js";import"../../../AddComment/Popover.js";import"../../../AddComment/Popup.js";import"../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../StageDesignVActual/ComparisonHeader.js";import"../../../StageDesignVActual/ComparisonRow.js";import"../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../EmbeddedApp/EmbeddedApp.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../Autocomplete/Autocomplete.js";import"../../../DocumentViewer/DocumentViewer.js";import"../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../Search/Search.js";import"../../../Search/components/Listbox.js";import"../../../Search/components/Paper.js";import"../../../Search/components/RecentSearches.js";import"../../../Search/components/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import"../../../StatusBadge/index.js";import"../../../Attachment/index.js";import"../../../EmojiIconButton.js";import"../../../FileUploadIconButton.js";import"../../../FilePreview/index.js";import"../../../FailedFileUploading.js";import"../../../UserMention/index.js";import"../../../CommentsInfo/index.js";import"../../../CommentInput/index.js";import"../../../Comment/index.js";import"../../../CommentLoader.js";import{ViewType as d}from"../../constants.js";import j from"./Toolbar.module.css.js";var c=function(r){var c,C=r.isViewOnly,u=r.viewType,A=r.filters,D=r.setFilters,b=r.isFilterExpanded,v=r.setIsFilterExpanded,g=r.isMapHidden,x=r.setIsMapHidden;return p("div",{className:t(j.controlGroup,(c={},e(c,j.controlGroupSmall,u===d.small),e(c,j.controlGroupMobile,u===d.mobile),c)),children:[p(l,{"data-testid":"".concat("Toolbar","_filters"),startIcon:m(b?i:s,{}),classes:{root:j.filterButton},onClick:function(){return v((function(e){return!e}))},disabled:C,children:["Filters",!o(A)&&p("div",{className:j.clearWrapper,onClick:function(e){e.stopPropagation(),D({})},children:[m(n,{className:j.clearIcon}),m("span",{className:j.clearLabel,children:"Clear"})]})]}),m(a,{"data-testid":"".concat("Toolbar","_map"),rightLabel:"Map",color:"primary",checked:!g,onChange:function(e){return x(!e.target.checked)}})]})};c.propTypes={isViewOnly:r.bool.isRequired,viewType:r.string.isRequired,filters:r.shape({}).isRequired,setFilters:r.func.isRequired,isFilterExpanded:r.bool.isRequired,setIsFilterExpanded:r.func.isRequired,isMapHidden:r.bool.isRequired,setIsMapHidden:r.func.isRequired};export{c as Toolbar};
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"classnames";import r from"prop-types";import{isEmpty as o}from"lodash";import{Sort as i,FilterList as s,Close as n}from"@material-ui/icons";import{jsxs as p,jsx as m}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../Modal/CorvaModal.js";import"react";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../ImagesGrid/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../ParameterCharts/ParameterCharts.js";import"../../../ParameterCharts/AddEditTrack.js";import"../../../ChartActionsList/ChartActionsList.js";import"../../../CopyToClipboard/CopyToClipboard.js";import"../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../AssetEditor/SingleAssetEditor.js";import"../../../SettingEditors/ColorEditor/index.js";import"../../../SettingEditors/DropdownEditor/index.js";import"../../../SettingEditors/RadioEditor/index.js";import a from"../../../SwitchControl/index.js";import"../../../ColorPicker/ColorPicker.js";import"../../../Chart/components/ChartButton.js";import"../../../Chart/components/ChartButtons.js";import"../../../Chart/components/ChartWrapper.js";import"../../../Chart/components/AxisDropdown.js";import"../../../Chart/components/buttons/DragToZoomButton.js";import"../../../Chart/components/buttons/ZoomInButton.js";import"../../../Chart/components/buttons/ZoomOutButton.js";import"../../../Chart/components/buttons/PanButton.js";import"../../../Chart/components/buttons/ResetZoomButton.js";import"../../../Chart/components/buttons/HideAxesButton.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.js";import"../../../AdvancedSlider/AdvancedSlider.js";import"../../../Breadcrumbs/index.js";import"../../../VirtualizedTable/index.js";import"../../../EmptyView/EmptyView.js";import"../../../EmptyView/EmptyAppView/EmptyAppView.js";import l from"../../../Button/index.js";import"../../../ContextMenuItem/index.js";import"../../../FolderMenuItem/index.js";import"../../../EditableItem/EditableItem/index.js";import"../../../EditableItem/EditableItemWithBadge/index.js";import"../../../Checkbox/index.js";import"../../../FolderMenuItemWithLinks/index.js";import"../../../IconButton/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import"../../../Select/index.js";import"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.js";import"@material-ui/core";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../GradientManager/configuration/constants.js";import"../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../GradientManager/GradientSelect.styles.js";import"../../../GradientPicker/GradientPicker.js";import"../../../GradientManager/GradientManager.styles.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/index.js";import"../../../../constants/goals.js";import"../../../../constants/segment.js";import"../../../../constants/alerts.js";import"../../../../constants/apps.js";import"../../../../constants/drillstring.js";import"../../../../constants/completion.js";import"../../../../constants/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"../../../Toaster/Toaster.js";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../Template/TemplateSharingDialog/index.js";import"../../../MenuItem/index.js";import"../../../PadModeSelect/PadModeSelect.js";import"../../../PinnableFilters/PinnableFilters.js";import"../../../HeaderLayout/HeaderLayout.js";import"../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../PadOffsetsPicker/StagesSelector.js";import"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.js";import"../../../SearchInput/index.js";import"../../../FeedItem/FeedItem.js";import"../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../PostInput/PostInput.js";import"../../../KeyboardDateTimePicker.js";import"../../../AddComment/Popover.js";import"../../../AddComment/Popup.js";import"../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../StageDesignVActual/ComparisonHeader.js";import"../../../StageDesignVActual/ComparisonRow.js";import"../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../EmbeddedApp/EmbeddedApp.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../Autocomplete/Autocomplete.js";import"../../../DocumentViewer/DocumentViewer.js";import"../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../Search/Search.js";import"../../../Search/components/Listbox.js";import"../../../Search/components/Paper.js";import"../../../Search/components/RecentSearches.js";import"../../../Search/components/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import"../../../StatusBadge/index.js";import"../../../Attachment/index.js";import"../../../EmojiIconButton.js";import"../../../FileUploadIconButton.js";import"../../../FilePreview/index.js";import"../../../FailedFileUploading.js";import"../../../UserMention/index.js";import"../../../CommentsInfo/index.js";import"../../../CommentInput/index.js";import"../../../Comment/index.js";import"../../../CommentLoader.js";import{ViewType as d}from"../../constants.js";import j from"./Toolbar.module.css.js";var c=function(r){var c,C=r.isViewOnly,u=r.viewType,A=r.filters,D=r.setFilters,b=r.isFilterExpanded,g=r.setIsFilterExpanded,v=r.isMapHidden,x=r.setIsMapHidden;return p("div",{className:t(j.controlGroup,(c={},e(c,j.controlGroupSmall,u===d.small),e(c,j.controlGroupMobile,u===d.mobile),c)),children:[p(l,{"data-testid":"".concat("Toolbar","_filters"),startIcon:m(b?i:s,{}),classes:{root:j.filterButton},onClick:function(){return g((function(e){return!e}))},disabled:C,children:["Filters",!o(A)&&p("div",{className:j.clearWrapper,onClick:function(e){e.stopPropagation(),D({})},children:[m(n,{className:j.clearIcon}),m("span",{className:j.clearLabel,children:"Clear"})]})]}),m(a,{"data-testid":"".concat("Toolbar","_map"),rightLabel:"Map",color:"primary",checked:!v,onChange:function(e){return x(!e.target.checked)}})]})};c.propTypes={isViewOnly:r.bool.isRequired,viewType:r.string.isRequired,filters:r.shape({}).isRequired,setFilters:r.func.isRequired,isFilterExpanded:r.bool.isRequired,setIsFilterExpanded:r.func.isRequired,isMapHidden:r.bool.isRequired,setIsMapHidden:r.func.isRequired};export{c as Toolbar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/slicedToArray";import
|
|
1
|
+
import t from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import{useState as s,useEffect as o}from"react";import"../../../utils/index.js";import{BENCHMARK_METRIC_GOAL as i}from"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"lodash";import"../../GradientManager/configuration/constants.js";import{fetchCompanyGoals as a}from"../utils/apiCalls.js";import{getCompanyGoalSetting as e}from"../../../utils/goals.js";function p(p,m){var c=s(null),l=r(c,2),u=l[0],f=l[1];return o((function(){function r(){return(r=t(n.mark((function t(){var r,s;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a(p);case 2:r=t.sent,s=e(r,i),f(s?[s]:[]);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}m?f(m):p&&function(){r.apply(this,arguments)}()}),[p,m]),[u,f]}export{p as useCompanyMetricKey};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import a from"prop-types";import{makeStyles as t,Typography as r}from"@material-ui/core";import{upperFirst as i}from"lodash";import n from"moment";import s from"classnames";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import{DRILLING_WELL_SUMMARY as l,COMPLETION_WELL_SUMMARY as c,DRILLOUT_WELL_SUMMARY as o}from"../../constants/wellSummary.js";import m from"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../utils/drillstring/conversion.js";import{getBHASchematic as d}from"../../utils/drillstring/schematic.js";import{convertValue as p,getUnitDisplay as u}from"../../utils/convert.js";import h from"../../utils/main.js";import{orDash as f}from"../../utils/formatting.js";import{jsxs as g,jsx as y,Fragment as v}from"react/jsx-runtime";var N="/static/media/6684df900ff63f28b07f9c505fb7a66e.svg",k=t({value:{fontSize:"14px",fontWeight:500},valueSuffix:{color:"#9E9E9E"},hasLeftMargin:{marginLeft:4},bhaRoot:{display:"flex",alignItems:"center"},bhaIdRoot:{backgroundColor:"#2196F3",borderRadius:"50%",marginRight:"8px",display:"flex",alignItems:"center",justifyContent:"center"},realBhaRoot:{width:"16px",height:"16px"},bhaIdLabel:{fontWeight:500,fontSize:"12px"},dummyBhaIdLabel:{paddingLeft:"4px",paddingRight:"4px"},bhaActiveIndicator:{fontSize:"12px",padding:"4px",fontWeight:500},nptRoot:{display:"flex",alignItems:"center"},rectIndicator:{width:"8px",height:"8px",backgroundColor:"#D32F2F",borderRadius:"2px",marginRight:"8px"},stageActual:{fontSize:"16px"},stagePercent:{color:"#9E9E9E",marginLeft:"4px"},fluidProppantType:{color:"#9E9E9E"},valueWrapper:{display:"flex",alignItems:"center"},rightImg:{marginRight:"4px"},centerImg:{marginLeft:"4px",marginRight:"4px"},rotate:{transform:"rotate(180deg)"},profileRoot:{display:"flex",alignItems:"flex-start"},profile:{width:"20px",height:"20px",borderRadius:"50%",fontSize:"10px",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"8px",backgroundSize:"20px 20px",backgroundRepeat:"no-repeat",backgroundPosition:"center"},plugsIcon:{marginLeft:-8}});function b(a){var t=a.item,b=a.summaryData,I=k();if(!b)return null;if(t.key===l.HOLE_DEPTH.key){var T=t.dataGetter(b).holeDepth;return Number.isFinite(T)?g("div",{className:I.valueWrapper,children:[y("img",{src:N,alt:"hole_depth",className:I.centerImg}),g("span",{className:s(I.value,I.hasLeftMargin),children:[Math.floor(T),"’"]})]}):"-"}if(t.key===l.BIT_HOLE_DEPTH.key){var A=t.dataGetter(b),x=A.bitDepth,R=A.holeDepth;return[x,R].every(Number.isFinite)?g("div",{className:I.valueWrapper,children:[y("img",{src:"/static/media/fa2667bad3591deb178e99b521571578.svg",alt:"bit_depth",className:I.rightImg}),g("span",{className:I.value,children:[Math.floor(x),"’ / "]}),y("img",{src:N,alt:"hole_depth",className:I.centerImg}),g("span",{className:I.value,children:[Math.floor(R),"’"]})]}):"-"}if(t.key===l.DIVERGENCE.key){var E=t.dataGetter(b),D=E.distance,S=E.ahead,
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import a from"prop-types";import{makeStyles as t,Typography as r}from"@material-ui/core";import{upperFirst as i}from"lodash";import n from"moment";import s from"classnames";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import{DRILLING_WELL_SUMMARY as l,COMPLETION_WELL_SUMMARY as c,DRILLOUT_WELL_SUMMARY as o}from"../../constants/wellSummary.js";import"../GradientManager/configuration/constants.js";import m from"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../utils/drillstring/conversion.js";import{getBHASchematic as d}from"../../utils/drillstring/schematic.js";import{convertValue as p,getUnitDisplay as u}from"../../utils/convert.js";import h from"../../utils/main.js";import{orDash as f}from"../../utils/formatting.js";import{jsxs as g,jsx as y,Fragment as v}from"react/jsx-runtime";var N="/static/media/6684df900ff63f28b07f9c505fb7a66e.svg",k=t({value:{fontSize:"14px",fontWeight:500},valueSuffix:{color:"#9E9E9E"},hasLeftMargin:{marginLeft:4},bhaRoot:{display:"flex",alignItems:"center"},bhaIdRoot:{backgroundColor:"#2196F3",borderRadius:"50%",marginRight:"8px",display:"flex",alignItems:"center",justifyContent:"center"},realBhaRoot:{width:"16px",height:"16px"},bhaIdLabel:{fontWeight:500,fontSize:"12px"},dummyBhaIdLabel:{paddingLeft:"4px",paddingRight:"4px"},bhaActiveIndicator:{fontSize:"12px",padding:"4px",fontWeight:500},nptRoot:{display:"flex",alignItems:"center"},rectIndicator:{width:"8px",height:"8px",backgroundColor:"#D32F2F",borderRadius:"2px",marginRight:"8px"},stageActual:{fontSize:"16px"},stagePercent:{color:"#9E9E9E",marginLeft:"4px"},fluidProppantType:{color:"#9E9E9E"},valueWrapper:{display:"flex",alignItems:"center"},rightImg:{marginRight:"4px"},centerImg:{marginLeft:"4px",marginRight:"4px"},rotate:{transform:"rotate(180deg)"},profileRoot:{display:"flex",alignItems:"flex-start"},profile:{width:"20px",height:"20px",borderRadius:"50%",fontSize:"10px",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"8px",backgroundSize:"20px 20px",backgroundRepeat:"no-repeat",backgroundPosition:"center"},plugsIcon:{marginLeft:-8}});function b(a){var t=a.item,b=a.summaryData,I=k();if(!b)return null;if(t.key===l.HOLE_DEPTH.key){var T=t.dataGetter(b).holeDepth;return Number.isFinite(T)?g("div",{className:I.valueWrapper,children:[y("img",{src:N,alt:"hole_depth",className:I.centerImg}),g("span",{className:s(I.value,I.hasLeftMargin),children:[Math.floor(T),"’"]})]}):"-"}if(t.key===l.BIT_HOLE_DEPTH.key){var A=t.dataGetter(b),x=A.bitDepth,R=A.holeDepth;return[x,R].every(Number.isFinite)?g("div",{className:I.valueWrapper,children:[y("img",{src:"/static/media/fa2667bad3591deb178e99b521571578.svg",alt:"bit_depth",className:I.rightImg}),g("span",{className:I.value,children:[Math.floor(x),"’ / "]}),y("img",{src:N,alt:"hole_depth",className:I.centerImg}),g("span",{className:I.value,children:[Math.floor(R),"’"]})]}):"-"}if(t.key===l.DIVERGENCE.key){var E=t.dataGetter(b),D=E.distance,S=E.ahead,G=E.right;return[D,S,G].every(Number.isFinite)?g("div",{className:I.valueWrapper,children:[y("span",{className:I.value,children:"".concat(p(D,"length","ft")," ").concat(u("length"))}),y("img",{src:"/static/media/53cecdbd86f03352bda956fca25b537d.svg",alt:"up_arrow",className:s(I.centerImg,e({},I.rotate,S<0))}),y("span",{className:I.value,children:"".concat(Math.abs(p(S,"length","ft"))," ").concat(u("length")," ").concat(S>0?"Ahead":"Behind")}),y("img",{src:"/static/media/d32edb0ff9a69145d2c7917855263251.svg",alt:"left_arrow",className:s(I.centerImg,e({},I.rotate,G>0))}),y("span",{className:I.value,children:"".concat(Math.abs(p(G,"length","ft"))," ").concat(u("length")," ").concat(G>0?"Right":"Left")})]}):"-"}if(t.key===l.LAST_ACTIVE.key||t.key===c.LAST_ACTIVE.key){var L=t.dataGetter(b).timestamp;return y(r,{className:I.value,children:L?n.unix(L).format("MM/DD/YYYY HH:mm"):"-"})}if(t.key===l.CURRENT_ACTIVITY.key||t.key===c.CURRENT_ACTIVITY.key){var j=t.dataGetter(b).activityName;return y(r,{className:I.value,children:f(i(j||"-"))})}if(t.key===l.PHASE.key){var H=t.dataGetter(b).phaseName;return y(r,{className:I.value,children:f(H)})}if(t.key===l.HOLE_SECTION.key){var C=t.dataGetter(b).sectionName;return y(r,{className:I.value,children:f(C)})}if([l.MUD.key,o.MUD.key].includes(t.key)){var _=t.dataGetter(b),B=_.mudType,M=_.mudDensity;return y(r,{className:I.value,children:B||M?g(v,{children:[B&&"".concat(B,", "),M&&"".concat(p(M,"density","ppg")," ").concat(u("density"))]}):"-"})}if(t.key===l.NPT.key||t.key===c.NPT.key){var P=t.dataGetter(b),O=P.nptType,Y=P.startTime,F=P.endTime;return O&&Y&&F?g("div",{className:I.nptRoot,children:[y("div",{className:I.rectIndicator}),g(r,{className:I.value,children:[i(O),": ",((F-Y)/3600).fixFloat(1)," hr"]})]}):"-"}if(t.key===l.OPERATIONS_SUMMARY.key||t.key===c.OPERATIONS_SUMMARY.key){var U=t.dataGetter(b),W=U.dateTime,w=U.summary;return g(r,{className:I.value,children:[W?n.unix(W).format("MM/DD/YYYY HH:mm"):"-",y("br",{}),w]})}if(t.key===c.STAGE.key){var V=t.dataGetter(b),z=V.planned,q=V.actual;return q&&z?g(r,{className:I.value,children:[y("span",{className:I.stageActual,children:q}),y("span",{children:"/"}),y("span",{children:z}),g("span",{className:I.stagePercent,children:["Stg ",Math.floor(q/z*100)," %"]})]}):"-"}if(t.key===c.FLUIDS.key){var J=t.dataGetter(b).fluids;return y("div",{children:0===J.length?"-":J.map((function(e){var a=e.type,t=e.amount,i=e.unit;return g(r,{className:I.value,children:[g("span",{className:I.fluidProppantType,children:[a," - "]}),y("span",{children:"".concat(p(t,"oil",i)," ").concat(u("oil"))})]},"".concat(a,"_").concat(t))}))})}if(t.key===c.PROPPANTS.key){var K=t.dataGetter(b).proppants;return y("div",{children:0===K.length?"-":K.map((function(e){var a=e.type,t=e.amount,i=e.unit;return g(r,{className:I.value,children:[g("span",{className:I.fluidProppantType,children:[a," - "]}),y("span",{children:"".concat(p(t,"mass",i)," ").concat(u("mass"))})]},"".concat(a,"_").concat(t))}))})}if(t.key===l.ALERT.key||t.key===c.ALERT.key){var Q=t.dataGetter(b).decisionPath;return y(r,{className:I.value,children:f(Q)})}if(t.key===l.ANNOTATION.key||t.key===c.ANNOTATION.key){var X=t.dataGetter(b),Z=X.firstName,$=X.lastName,ee=X.profilePhoto,ae=X.content,te="".concat(Z," ").concat($),re="".concat((Z||"").charAt(0)).concat(($||"").charAt(0));return ae?g("div",{className:I.profileRoot,children:[y("div",{className:I.profile,style:{backgroundColor:"#".concat(h.getColorFromString(te)),backgroundImage:"url(".concat(ee,")")},children:ee?null:re}),y(r,{className:I.value,children:ae})]}):"-"}if([l.BHA.key,o.BHA.key].includes(t.key)){var ie=o.BHA.key===t.key,ne=t.dataGetter(b),se=ne.bhaId,le=ne.components,ce=se&&String(se)||"-",oe=se&&d(le||[],ie)||[];return g("div",{className:I.bhaRoot,children:[y("div",{className:s(I.bhaIdRoot,e({},I.realBhaRoot,!ce.includes("."))),children:y(r,{className:s(I.bhaIdLabel,e({},I.dummyBhaIdLabel,ce.includes("."))),children:ce})}),y(m,{schematic:oe,containerHeight:20,containerWidth:120})]})}if(t.key===l.CASING.key){var me=t.dataGetter(b).outerDiameter;return me?y(r,{className:I.value,children:"".concat(p(me,"shortLength")," ").concat(u("shortLength"))}):null}if(t.key===l.BHA_COUNT.key){var de=t.dataGetter(b).count;return y(r,{className:I.value,children:f(de)})}if(t.key===c.STAGES_DESIGN.key){var pe=t.dataGetter(b).totalNumberOfStages;return Number.isFinite(pe)?g(r,{className:I.value,children:["-/",pe," ",y("span",{className:I.valueSuffix,children:"Stg"})]}):"-"}if(t.key===c.PLUGS_DRILLED_COUNT.key){var ue=t.dataGetter(b).plugsDrilledCount;return Number.isFinite(ue)?g("div",{className:I.valueWrapper,children:[y("img",{src:"/static/media/b0c8b3ba66c35ef3128cc93c5c538060.svg",alt:"drillout",className:I.plugsIcon}),y("span",{className:s(I.value,I.hasLeftMargin),children:ue})]}):"-"}if("development"===process.env.NODE_ENV)throw new Error("".concat(t.key," wasn't handled in WellSummaryItemValue. Returning null"));return null}b.propTypes={item:a.shape({key:a.string,label:a.string,icon:a.node,dataGetter:a.func}).isRequired,summaryData:a.shape({}).isRequired};export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/regenerator";import{useState as a,useEffect as s}from"react";import{get as c,sortBy as i,omit as o}from"lodash";import{getAppStorage as u}from"../../../clients/jsonApi/index.js";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import{DRILLING_WELL_SUMMARY as p,COMPLETION_WELL_SUMMARY as l,DRILLOUT_WELL_SUMMARY as f}from"../../../constants/wellSummary.js";import{RIG_ACTIVITY_COLORS as m}from"../../../constants/rigActivity.js";function
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/regenerator";import{useState as a,useEffect as s}from"react";import{get as c,sortBy as i,omit as o}from"lodash";import{getAppStorage as u}from"../../../clients/jsonApi/index.js";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import{DRILLING_WELL_SUMMARY as p,COMPLETION_WELL_SUMMARY as l,DRILLOUT_WELL_SUMMARY as f}from"../../../constants/wellSummary.js";import{RIG_ACTIVITY_COLORS as m}from"../../../constants/rigActivity.js";import"../../GradientManager/configuration/constants.js";function d(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function h(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){t(r,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}function v(t){return b.apply(this,arguments)}function b(){return b=e(n.mark((function t(r){var a,s;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(r.map(function(){var t=e(n.mark((function t(r){var e;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,u("corva","activities.summary-continuous",r,{fields:["data.activities","data.start_timestamp","data.end_timestamp"].join(","),limit:1,query:"{timestamp#lte#".concat(Math.floor(Date.now()/1e3),"}"),sort:"{timestamp:-1}"});case 3:return e=t.sent,t.abrupt("return",(c(e,"0.data.activities")||[]).map((function(t){return h(h({},t),{},{duration:(t.day||0)+(t.night||0),color:m[t.name]})})));case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:return t.abrupt("return",[]);case 11:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(r){return t.apply(this,arguments)}}()));case 2:return a=t.sent,s={},a.forEach((function(t,e){s[r[e]]=t})),t.abrupt("return",s);case 6:case"end":return t.stop()}}),t)}))),b.apply(this,arguments)}function y(t,r,e,n){return g.apply(this,arguments)}function g(){return(g=e(n.mark((function t(r,e,a,s){var p,l;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,u("corva",e,r,{aggregate:JSON.stringify([{$match:{asset_id:r,timestamp:{$lte:a,$gte:a-86400}}},{$project:{_id:-1,stage_number:1,data:1,timestamp:1}},{$group:{_id:"$stage_number",timestamp:{$first:"$timestamp"},stage_number:{$last:"$stage_number"},first_data:{$first:"$data"},last_data:{$last:"$data"}}}])});case 3:return p=t.sent,l=0,i(p,"timestamp").forEach((function(t,r){if(0===r){var e=o(c(t,"first_data"),s),n=o(c(t,"last_data"),s);Object.keys(n).forEach((function(t){l+=n[t]-(e[t]||0)}))}else{var a=o(c(t,"last_data"),s);Object.keys(a).forEach((function(t){l+=a[t]}))}})),t.abrupt("return",l);case 9:t.prev=9,t.t0=t.catch(0),console.error(t.t0);case 12:return t.abrupt("return",0);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))).apply(this,arguments)}function j(t){return w.apply(this,arguments)}function w(){return w=e(n.mark((function t(a){var s,i;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(a.map(function(){var t=e(n.mark((function t(e){var a,s,i,o,p,l,f,m,d,h,v;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=Promise,t.next=4,u("corva","completion.wits",e,{limit:1,fields:"timestamp"});case 4:return t.t1=t.sent,t.next=7,u("corva","wireline.wits",e,{limit:1,fields:"timestamp"});case 7:return t.t2=t.sent,t.t3=[t.t1,t.t2],t.next=11,t.t0.all.call(t.t0,t.t3);case 11:if(a=t.sent,s=r(a,2),i=s[0],o=s[1],p=c(i,"0.timestamp"),l=c(o,"0.timestamp"),f=null,p&&l?f=p>l?p:l:p?f=p:l&&(f=l),f){t.next=21;break}return t.abrupt("return",[]);case 21:return t.next=23,Promise.all([y(e,"completion.activity.summary-stage",f,["activities"]),y(e,"wireline.activity.summary-stage",f,["durations"])]);case 23:return m=t.sent,d=r(m,2),h=d[0],v=d[1],t.abrupt("return",[{name:"frac",duration:h,color:"#7177FF"},{name:"wireline",duration:v,color:"#FF9C00"}]);case 30:t.prev=30,t.t4=t.catch(0),console.error(t.t4);case 33:return t.abrupt("return",[]);case 34:case"end":return t.stop()}}),t,null,[[0,30]])})));return function(r){return t.apply(this,arguments)}}()));case 2:return s=t.sent,i={},s.forEach((function(t,r){i[a[r]]=t})),t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)}))),w.apply(this,arguments)}function x(t,c){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=a(!0),m=r(o,2),d=m[0],b=m[1],y=a({}),g=r(y,2),w=g[0],x=g[1],O=a(!0),_=r(O,2),$=_[0],k=_[1],P=a({}),E=r(P,2),S=E[0],D=E[1],F="drilling"===c;return s((function(){function r(){return(r=e(n.mark((function r(){var e,a,s,c,o,m,d;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=(i||Object.values(F?p:h(h({},l),f))).filter((function(t){return t.dataSource&&t.dataSource.length})),a=[],e.forEach((function(t){t.dataSource.forEach((function(t){var r=t.provider,e=t.collection,n=t.fields;r&&e&&n&&n.length?n.forEach((function(t){return a.push("".concat(r,"#").concat(e,".").concat(t))})):e&&a.push(e)}))})),a.push("well_id"),r.prev=4,s={asset_id:{$in:t}},c=a.reduce((function(t,r){return t[r]=1,t}),{asset_id:1}),o={aggregate:JSON.stringify([{$match:s},{$project:c}])},r.next=10,u("corva","well_cache",null,o);case 10:m=r.sent,d={},m.forEach((function(t){var r=t.asset_id;d[r]=t})),x(d),r.next=19;break;case 16:r.prev=16,r.t0=r.catch(4),console.error(r.t0);case 19:b(!1);case 20:case"end":return r.stop()}}),r,null,[[4,16]])})))).apply(this,arguments)}function a(){return(a=e(n.mark((function r(){var e;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,"drilling"!==c){r.next=7;break}return r.next=4,v(t);case 4:r.t0=r.sent,r.next=10;break;case 7:return r.next=9,j(t);case 9:r.t0=r.sent;case 10:e=r.t0,D(e),r.next=17;break;case 14:r.prev=14,r.t1=r.catch(0),console.error(r.t1);case 17:k(!1);case 18:case"end":return r.stop()}}),r,null,[[0,14]])})))).apply(this,arguments)}b(!0),k(!0),function(){r.apply(this,arguments)}(),function(){a.apply(this,arguments)}()}),[]),[d||$,w,S]}export{x as useWellSummaryData};
|
package/components/index.d.ts
CHANGED
|
@@ -82,6 +82,8 @@ import { FilesLoader } from "./FilesLoader";
|
|
|
82
82
|
import FailedFileUploading from "./FailedFileUploading";
|
|
83
83
|
import FolderMenuItem from "./FolderMenuItem";
|
|
84
84
|
import FolderMenuItemWithLinks from "./FolderMenuItemWithLinks";
|
|
85
|
+
import { GradientManager } from "./GradientManager/GradientManager";
|
|
86
|
+
import { GradientPicker } from "./GradientPicker/GradientPicker";
|
|
85
87
|
import HeaderLayout from "./HeaderLayout";
|
|
86
88
|
import * as HelpCenter from "./HelpCenter";
|
|
87
89
|
import { HideAxesButton } from "./Chart/components/buttons";
|
|
@@ -160,5 +162,5 @@ import { ZoomInButton } from "./Chart/components/buttons";
|
|
|
160
162
|
import { ZoomOutButton } from "./Chart/components/buttons";
|
|
161
163
|
import ColorPickerPalette from "./ColorPickerPalette";
|
|
162
164
|
import UserMention from "./UserMention";
|
|
163
|
-
export { AddCommentPopover, AddCommentPopup, AddEditTrack, AnchorsList, AnnotationsList, AnnotationsProvider, AppContext, AppHeader, AppSettingsAssetEditor, AppSettingsDialog, AppSettingsPopover, AppFilterPanelLayout, AppSideBar, AppVersionsSelect, AppVersionsSelectView, AppsDataProvider, AssetEditorAutocomplete as SingleAssetEditorAutocomplete, AssetEditorAutocomplete, Attachment, Autocomplete, Avatar, AxisDropdown, BHAComponentDetail, BHAComponentIcon, BHAComponentsTable, BHAList, BHASchematic, BHATable, BHATile, BHATileIcon, BICOffsetPickerDialog, Breadcrumbs, Button, CasingComponentIcon, CasingTable, CasingTableV2, CasingTile, CasingTileIcon, ChartActionsList, ChartButtons, ChartWrapper, Checkbox, Chip, CollapsableSidebar, ColorEditor, ColorPicker, CommentIcon, ComparisonBar, ComparisonHeader, ComparisonRow, CopyToClipboard, Comment, CommentInput, CommentLoader, CommentsInfo, ConfirmationDialog, ContextMenuItem, Counter, CustomSelect, DatePicker, DateTimePicker, DevCenterAppContainer, DevCenterEmbeddedApp, DevCenterIsolatedApp, DevCenterIsolatedAppPage, DisabledSettingsMessage, DocumentViewer, DragToZoomButton, EditableItem, EditableItemWithBadge, Element, ElementsComparison, EmbeddedApp, EmojiIconButton, EmptyAppView, EmptyView, ErrorBoundary, FeedItem, FeedItemEditProvider, FileIcon, FilePreview, FileUploadIconButton, FilesLoader, FailedFileUploading, FolderMenuItem, FolderMenuItemWithLinks, HeaderLayout, HelpCenter, HideAxesButton, IconButton, IconMenu, KeyboardDateTimePicker, LabelsCounter, LastAnnotation, Leaf, LoadingIndicator, MenuItem, Modal, NavigationBar, Notifications, NotificationsContainer, ToastContainer, OffsetWellButton, OffsetWellPickerV2, OffsetWellPickerV3, OffsetWellChip, OffsetWellChipsContainer, OffsetWellPickerV4, OffsetWellMap, PadModeSelect, PadOffsetsPicker, PaletteChromePicker, PanButton, ParameterCharts, PinnableFilters, PostInput, Popover, Popper, PriceInput, RadioEditor, RangeSlider, AdvancedSlider, ImagesGrid, RecentSearches, ResetZoomButton, ResizableTable, Search, SearchInput, Select, SideBar, SingleAssetEditor, SlateFormattedText, StatusBadge, Step, Stepper, StepsWrapper, StyledDropdownEditor, StyledMenuItem, SwitchControl, Tab, TableSortLabel, TableToolbar, TableContainer, TableCell, Tabs, TemplatePopover, TemplateSharingDialog, TextField, TextLink, Tooltip, TruncatedText, Typography, UniversalLink, VirtualizedTable, WellSummary, slateFormattingTextUtils, useAnnotationsDispatch, useAnnotationsState, useFeedItemEditProvider, withUniversalLocationHOC, ZoomInButton, ZoomOutButton, ColorPickerPalette, UserMention };
|
|
165
|
+
export { AddCommentPopover, AddCommentPopup, AddEditTrack, AnchorsList, AnnotationsList, AnnotationsProvider, AppContext, AppHeader, AppSettingsAssetEditor, AppSettingsDialog, AppSettingsPopover, AppFilterPanelLayout, AppSideBar, AppVersionsSelect, AppVersionsSelectView, AppsDataProvider, AssetEditorAutocomplete as SingleAssetEditorAutocomplete, AssetEditorAutocomplete, Attachment, Autocomplete, Avatar, AxisDropdown, BHAComponentDetail, BHAComponentIcon, BHAComponentsTable, BHAList, BHASchematic, BHATable, BHATile, BHATileIcon, BICOffsetPickerDialog, Breadcrumbs, Button, CasingComponentIcon, CasingTable, CasingTableV2, CasingTile, CasingTileIcon, ChartActionsList, ChartButtons, ChartWrapper, Checkbox, Chip, CollapsableSidebar, ColorEditor, ColorPicker, CommentIcon, ComparisonBar, ComparisonHeader, ComparisonRow, CopyToClipboard, Comment, CommentInput, CommentLoader, CommentsInfo, ConfirmationDialog, ContextMenuItem, Counter, CustomSelect, DatePicker, DateTimePicker, DevCenterAppContainer, DevCenterEmbeddedApp, DevCenterIsolatedApp, DevCenterIsolatedAppPage, DisabledSettingsMessage, DocumentViewer, DragToZoomButton, EditableItem, EditableItemWithBadge, Element, ElementsComparison, EmbeddedApp, EmojiIconButton, EmptyAppView, EmptyView, ErrorBoundary, FeedItem, FeedItemEditProvider, FileIcon, FilePreview, FileUploadIconButton, FilesLoader, FailedFileUploading, FolderMenuItem, FolderMenuItemWithLinks, GradientManager, GradientPicker, HeaderLayout, HelpCenter, HideAxesButton, IconButton, IconMenu, KeyboardDateTimePicker, LabelsCounter, LastAnnotation, Leaf, LoadingIndicator, MenuItem, Modal, NavigationBar, Notifications, NotificationsContainer, ToastContainer, OffsetWellButton, OffsetWellPickerV2, OffsetWellPickerV3, OffsetWellChip, OffsetWellChipsContainer, OffsetWellPickerV4, OffsetWellMap, PadModeSelect, PadOffsetsPicker, PaletteChromePicker, PanButton, ParameterCharts, PinnableFilters, PostInput, Popover, Popper, PriceInput, RadioEditor, RangeSlider, AdvancedSlider, ImagesGrid, RecentSearches, ResetZoomButton, ResizableTable, Search, SearchInput, Select, SideBar, SingleAssetEditor, SlateFormattedText, StatusBadge, Step, Stepper, StepsWrapper, StyledDropdownEditor, StyledMenuItem, SwitchControl, Tab, TableSortLabel, TableToolbar, TableContainer, TableCell, Tabs, TemplatePopover, TemplateSharingDialog, TextField, TextLink, Tooltip, TruncatedText, Typography, UniversalLink, VirtualizedTable, WellSummary, slateFormattingTextUtils, useAnnotationsDispatch, useAnnotationsState, useFeedItemEditProvider, withUniversalLocationHOC, ZoomInButton, ZoomOutButton, ColorPickerPalette, UserMention };
|
|
164
166
|
//# sourceMappingURL=index.d.ts.map
|
package/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{default as Modal}from"./Modal/Modal.js";export{default as IconMenu}from"./IconMenu/index.js";export{default as StyledMenuItem}from"./StyledMenuItem/index.js";export{default as ImagesGrid}from"./ImagesGrid/index.js";export{default as AppHeader}from"./DevCenter/AppHeader/AppHeader.js";export{default as AppSideBar}from"./DevCenter/AppSideBar/AppSideBar.js";export{default as AppsDataProvider}from"./DevCenter/AppsDataProvider/AppsDataProvider.js";export{default as DevCenterAppContainer}from"./DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";export{default as NavigationBar}from"./DevCenter/NavigationBar/NavigationBar.js";export{default as SideBar}from"./DevCenter/SideBar/SideBar.js";export{default as AppSettingsPopover}from"./DevCenter/AppSettingsPopover/AppSettingsPopover.js";export{AppFilterPanelLayout}from"./DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";export{UniversalLink}from"./DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react";export{withUniversalLocationHOC}from"./DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";export{DevCenterIsolatedAppPage}from"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";export{DevCenterIsolatedApp}from"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";export{default as AppContext}from"./DevCenter/AppContext.js";export{default as AppSettingsAssetEditor}from"./AssetEditor/index.js";export{default as AppVersionsSelect,AppVersionsSelectView}from"./AppVersionsSelect/AppVersionsSelect.js";export{default as LoadingIndicator}from"./LoadingIndicator/LoadingIndicator.js";import*as e from"./Typography.js";export{e as Typography};export{default as CollapsableSidebar}from"./CollapsableSidebar.js";export{default as DateTimePicker}from"./DateTimePicker/index.js";export{default as DatePicker}from"./DatePicker/index.js";export{default as ErrorBoundary}from"./ErrorBoundary/ErrorBoundary.js";import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";export{default as AnnotationsList}from"./Annotations/components/AnnotationsList/index.js";export{default as LastAnnotation}from"./Annotations/components/LastAnnotation/index.js";export{AnnotationsProvider,useAnnotationsDispatch,useAnnotationsState}from"./Annotations/AnnotationsContext.js";export{default as SlateFormattedText}from"./SlateFormattedText/SlateFormattedText.js";export{Element,Leaf}from"./SlateFormattedText/RenderElements.js";export{slateFormattingTextUtils}from"./SlateFormattedText/utils.js";export{default as ParameterCharts}from"./ParameterCharts/ParameterCharts.js";export{default as AddEditTrack}from"./ParameterCharts/AddEditTrack.js";export{default as ChartActionsList}from"./ChartActionsList/ChartActionsList.js";export{default as CopyToClipboard}from"./CopyToClipboard/CopyToClipboard.js";export{default as AssetEditorAutocomplete,default as SingleAssetEditorAutocomplete}from"./AssetEditor/AssetEditorAutocomplete.js";export{default as SingleAssetEditor}from"./AssetEditor/SingleAssetEditor.js";export{default as ColorEditor}from"./SettingEditors/ColorEditor/index.js";export{default as StyledDropdownEditor}from"./SettingEditors/DropdownEditor/index.js";export{default as RadioEditor}from"./SettingEditors/RadioEditor/index.js";export{default as SwitchControl}from"./SwitchControl/index.js";export{default as ColorPicker}from"./ColorPicker/ColorPicker.js";import"./Chart/components/ChartButton.js";export{default as ChartButtons}from"./Chart/components/ChartButtons.js";export{default as ChartWrapper}from"./Chart/components/ChartWrapper.js";export{default as AxisDropdown}from"./Chart/components/AxisDropdown.js";export{default as DragToZoomButton}from"./Chart/components/buttons/DragToZoomButton.js";export{default as ZoomInButton}from"./Chart/components/buttons/ZoomInButton.js";export{default as ZoomOutButton}from"./Chart/components/buttons/ZoomOutButton.js";export{default as PanButton}from"./Chart/components/buttons/PanButton.js";export{default as ResetZoomButton}from"./Chart/components/buttons/ResetZoomButton.js";export{default as HideAxesButton}from"./Chart/components/buttons/HideAxesButton.js";export{default as PaletteChromePicker}from"./ColorPicker/PaletteChromePicker/PaletteChromePicker.js";export{default as TruncatedText}from"./TruncatedText/index.js";export{default as RangeSlider}from"./RangeSlider/RangeSlider.js";export{default as AdvancedSlider}from"./AdvancedSlider/AdvancedSlider.js";export{default as AppSettingsDialog}from"./DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";export{default as Breadcrumbs}from"./Breadcrumbs/index.js";export{default as VirtualizedTable}from"./VirtualizedTable/index.js";export{default as EmptyView}from"./EmptyView/EmptyView.js";export{default as EmptyAppView}from"./EmptyView/EmptyAppView/EmptyAppView.js";export{default as Button}from"./Button/index.js";export{default as ContextMenuItem}from"./ContextMenuItem/index.js";export{default as FolderMenuItem}from"./FolderMenuItem/index.js";export{default as EditableItem}from"./EditableItem/EditableItem/index.js";export{default as EditableItemWithBadge}from"./EditableItem/EditableItemWithBadge/index.js";export{default as Checkbox}from"./Checkbox/index.js";export{default as FolderMenuItemWithLinks}from"./FolderMenuItemWithLinks/index.js";export{default as IconButton}from"./IconButton/index.js";export{default as TextField}from"./TextField/index.js";export{default as Chip}from"./Chip/index.js";export{default as Counter}from"./Counter/index.js";export{default as AnchorsList}from"./AnchorsList/AnchorsList.js";export{default as Select}from"./Select/index.js";export{default as CustomSelect}from"./CustomSelect/index.js";export{default as Tabs}from"./Tabs/Tabs.js";export{default as Tab}from"./Tabs/Tab.js";export{default as ResizableTable}from"./ResizableTable/ResizableTable.js";export{default as BHASchematic}from"./Drillstring/BHASchematic.js";export{default as BHATable}from"./Drillstring/BHATable/index.js";export{default as BHAComponentIcon}from"./Drillstring/BHAComponentIcon.js";export{default as BHAComponentDetail}from"./Drillstring/BHAComponentDetail/index.js";export{default as BHATileIcon}from"./Drillstring/BHATileIcon.js";export{default as BHATile}from"./Drillstring/BHATile/BHATile.js";export{default as BHAList}from"./Drillstring/BHAList/BHAList.js";export{default as BHAComponentsTable}from"./Drillstring/BHAComponentsTable/BHAComponentsTable.js";export{default as CasingTable}from"./Casing/CasingTable/index.js";export{default as CasingComponentIcon}from"./Casing/CasingComponentIcon.js";export{default as CasingTileIcon}from"./Casing/CasingTileIcon.js";export{default as CasingTableV2}from"./Casing/CasingTableV2/CasingTableV2.js";export{default as CasingTile}from"./Casing/CasingTile/CasingTile.js";export{default as DisabledSettingsMessage}from"./DisabledSettingsMessage/DisabledSettingsMessage.js";import*as t from"./WellSummary/index.js";export{t as WellSummary};export{default as BICOffsetPickerDialog}from"./BICOffsetPickerDialog/index.js";export{default as OffsetWellButton}from"./OffsetWellButton/OffsetWellButton.js";export{default as OffsetWellPickerV2}from"./OffsetWellPickerV2/OffsetWellPickerDialog.js";export{default as OffsetWellPickerV3}from"./OffsetWellPickerV3/index.js";export{default as OffsetWellChip}from"./OffsetWellChips/Chip.js";export{default as OffsetWellChipsContainer}from"./OffsetWellChips/ChipsContainer.js";export{default as OffsetWellPickerV4}from"./OffsetWellPickerV4/OffsetWellPickerV4.js";export{default as OffsetWellMap}from"./OffsetWellMap/OffsetWellMap.js";export{default as Notifications}from"./Notifications/Notifications.js";export{default as NotificationsContainer}from"./Notifications/NotificationsContainer.js";import"./Toaster/Toaster.js";export{default as ToastContainer}from"./Toaster/ToastContainer.js";export{default as ConfirmationDialog}from"./ConfirmationDialog.js";export{default as TextLink}from"./TextLink/index.js";export{default as Avatar}from"./Avatar/index.js";export{default as TemplatePopover}from"./Template/TemplatePopover/index.js";export{default as TemplateSharingDialog}from"./Template/TemplateSharingDialog/index.js";export{default as MenuItem}from"./MenuItem/index.js";export{default as PadModeSelect}from"./PadModeSelect/PadModeSelect.js";export{default as PinnableFilters}from"./PinnableFilters/PinnableFilters.js";export{default as HeaderLayout}from"./HeaderLayout/HeaderLayout.js";import*as o from"./PadOffsetsPicker/index.js";export{o as PadOffsetsPicker};export{default as TableSortLabel}from"./Table/TableSortLabel/TableSortLabel.js";export{default as TableToolbar}from"./Table/TableToolbar/TableToolbar.js";export{TableContainer}from"./Table/TableContainer/TableContainer.js";export{TableCell}from"./Table/TableCell/TableCell.js";export{Tooltip}from"./Tooltip/Tooltip.js";export{default as PriceInput}from"./PriceInput/PriceInput.js";export{default as LabelsCounter}from"./LabelsCounter/LabelsCounter.js";export{default as Step}from"./Stepper/Step.js";export{default as StepsWrapper}from"./Stepper/StepsWrapper.js";export{default as Stepper}from"./Stepper/Stepper.js";export{default as CommentIcon}from"./Comment/CommentIcon/index.js";export{default as FilesLoader}from"./FilesLoader/FilesLoader.js";export{default as FileIcon}from"./FilesLoader/Icons/FileIcon.js";export{default as SearchInput}from"./SearchInput/index.js";export{default as FeedItem}from"./FeedItem/FeedItem.js";export{FeedItemEditProvider,useFeedItemEditProvider}from"./FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";export{default as PostInput}from"./PostInput/PostInput.js";export{default as KeyboardDateTimePicker}from"./KeyboardDateTimePicker.js";export{default as AddCommentPopover}from"./AddComment/Popover.js";export{default as AddCommentPopup}from"./AddComment/Popup.js";export{default as ComparisonBar}from"./StageDesignVActual/ComparisonBar/ComparisonBar.js";export{default as ElementsComparison}from"./StageDesignVActual/ElementsComparison/ElementsComparison.js";export{default as ComparisonHeader}from"./StageDesignVActual/ComparisonHeader.js";export{default as ComparisonRow}from"./StageDesignVActual/ComparisonRow.js";export{default as DevCenterEmbeddedApp}from"./EmbeddedApp/DevCenterEmbeddedApp.js";export{default as EmbeddedApp}from"./EmbeddedApp/EmbeddedApp.js";import*as r from"./HelpCenter/index.js";export{r as HelpCenter};export{default as Autocomplete}from"./Autocomplete/Autocomplete.js";export{default as DocumentViewer}from"./DocumentViewer/DocumentViewer.js";export{Popover}from"./Popover/Popover.js";export{Popper}from"./Popper/Popper.js";export{default as ColorPickerPalette}from"./ColorPickerPalette/ColorPickerPalette.js";export{default as Search}from"./Search/Search.js";import"./Search/components/Listbox.js";import"./Search/components/Paper.js";export{default as RecentSearches}from"./Search/components/RecentSearches.js";import"./Search/components/InputAdornmentLeft.js";import"./Search/components/Groups.js";export{StatusBadge}from"./StatusBadge/index.js";export{default as Attachment}from"./Attachment/index.js";export{default as EmojiIconButton}from"./EmojiIconButton.js";export{default as FileUploadIconButton}from"./FileUploadIconButton.js";export{default as FilePreview}from"./FilePreview/index.js";export{default as FailedFileUploading}from"./FailedFileUploading.js";export{default as UserMention}from"./UserMention/index.js";export{default as CommentsInfo}from"./CommentsInfo/index.js";export{default as CommentInput}from"./CommentInput/index.js";export{default as Comment}from"./Comment/index.js";export{default as CommentLoader}from"./CommentLoader.js";
|
|
1
|
+
export{default as Modal}from"./Modal/Modal.js";export{default as IconMenu}from"./IconMenu/index.js";export{default as StyledMenuItem}from"./StyledMenuItem/index.js";export{default as ImagesGrid}from"./ImagesGrid/index.js";export{default as AppHeader}from"./DevCenter/AppHeader/AppHeader.js";export{default as AppSideBar}from"./DevCenter/AppSideBar/AppSideBar.js";export{default as AppsDataProvider}from"./DevCenter/AppsDataProvider/AppsDataProvider.js";export{default as DevCenterAppContainer}from"./DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";export{default as NavigationBar}from"./DevCenter/NavigationBar/NavigationBar.js";export{default as SideBar}from"./DevCenter/SideBar/SideBar.js";export{default as AppSettingsPopover}from"./DevCenter/AppSettingsPopover/AppSettingsPopover.js";export{AppFilterPanelLayout}from"./DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";export{UniversalLink}from"./DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react";export{withUniversalLocationHOC}from"./DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";export{DevCenterIsolatedAppPage}from"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";export{DevCenterIsolatedApp}from"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";export{default as AppContext}from"./DevCenter/AppContext.js";export{default as AppSettingsAssetEditor}from"./AssetEditor/index.js";export{default as AppVersionsSelect,AppVersionsSelectView}from"./AppVersionsSelect/AppVersionsSelect.js";export{default as LoadingIndicator}from"./LoadingIndicator/LoadingIndicator.js";import*as e from"./Typography.js";export{e as Typography};export{default as CollapsableSidebar}from"./CollapsableSidebar.js";export{default as DateTimePicker}from"./DateTimePicker/index.js";export{default as DatePicker}from"./DatePicker/index.js";export{default as ErrorBoundary}from"./ErrorBoundary/ErrorBoundary.js";import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";export{default as AnnotationsList}from"./Annotations/components/AnnotationsList/index.js";export{default as LastAnnotation}from"./Annotations/components/LastAnnotation/index.js";export{AnnotationsProvider,useAnnotationsDispatch,useAnnotationsState}from"./Annotations/AnnotationsContext.js";export{default as SlateFormattedText}from"./SlateFormattedText/SlateFormattedText.js";export{Element,Leaf}from"./SlateFormattedText/RenderElements.js";export{slateFormattingTextUtils}from"./SlateFormattedText/utils.js";export{default as ParameterCharts}from"./ParameterCharts/ParameterCharts.js";export{default as AddEditTrack}from"./ParameterCharts/AddEditTrack.js";export{default as ChartActionsList}from"./ChartActionsList/ChartActionsList.js";export{default as CopyToClipboard}from"./CopyToClipboard/CopyToClipboard.js";export{default as AssetEditorAutocomplete,default as SingleAssetEditorAutocomplete}from"./AssetEditor/AssetEditorAutocomplete.js";export{default as SingleAssetEditor}from"./AssetEditor/SingleAssetEditor.js";export{default as ColorEditor}from"./SettingEditors/ColorEditor/index.js";export{default as StyledDropdownEditor}from"./SettingEditors/DropdownEditor/index.js";export{default as RadioEditor}from"./SettingEditors/RadioEditor/index.js";export{default as SwitchControl}from"./SwitchControl/index.js";export{default as ColorPicker}from"./ColorPicker/ColorPicker.js";import"./Chart/components/ChartButton.js";export{default as ChartButtons}from"./Chart/components/ChartButtons.js";export{default as ChartWrapper}from"./Chart/components/ChartWrapper.js";export{default as AxisDropdown}from"./Chart/components/AxisDropdown.js";export{default as DragToZoomButton}from"./Chart/components/buttons/DragToZoomButton.js";export{default as ZoomInButton}from"./Chart/components/buttons/ZoomInButton.js";export{default as ZoomOutButton}from"./Chart/components/buttons/ZoomOutButton.js";export{default as PanButton}from"./Chart/components/buttons/PanButton.js";export{default as ResetZoomButton}from"./Chart/components/buttons/ResetZoomButton.js";export{default as HideAxesButton}from"./Chart/components/buttons/HideAxesButton.js";export{default as PaletteChromePicker}from"./ColorPicker/PaletteChromePicker/PaletteChromePicker.js";export{default as TruncatedText}from"./TruncatedText/index.js";export{default as RangeSlider}from"./RangeSlider/RangeSlider.js";export{default as AdvancedSlider}from"./AdvancedSlider/AdvancedSlider.js";export{default as AppSettingsDialog}from"./DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";export{default as Breadcrumbs}from"./Breadcrumbs/index.js";export{default as VirtualizedTable}from"./VirtualizedTable/index.js";export{default as EmptyView}from"./EmptyView/EmptyView.js";export{default as EmptyAppView}from"./EmptyView/EmptyAppView/EmptyAppView.js";export{default as Button}from"./Button/index.js";export{default as ContextMenuItem}from"./ContextMenuItem/index.js";export{default as FolderMenuItem}from"./FolderMenuItem/index.js";export{default as EditableItem}from"./EditableItem/EditableItem/index.js";export{default as EditableItemWithBadge}from"./EditableItem/EditableItemWithBadge/index.js";export{default as Checkbox}from"./Checkbox/index.js";export{default as FolderMenuItemWithLinks}from"./FolderMenuItemWithLinks/index.js";export{default as IconButton}from"./IconButton/index.js";export{default as TextField}from"./TextField/index.js";export{default as Chip}from"./Chip/index.js";export{default as Counter}from"./Counter/index.js";export{default as AnchorsList}from"./AnchorsList/AnchorsList.js";export{default as Select}from"./Select/index.js";export{default as CustomSelect}from"./CustomSelect/index.js";export{default as Tabs}from"./Tabs/Tabs.js";export{default as Tab}from"./Tabs/Tab.js";export{default as ResizableTable}from"./ResizableTable/ResizableTable.js";export{GradientManager}from"./GradientManager/GradientManager.js";export{GradientPicker}from"./GradientPicker/GradientPicker.js";export{default as BHASchematic}from"./Drillstring/BHASchematic.js";export{default as BHATable}from"./Drillstring/BHATable/index.js";export{default as BHAComponentIcon}from"./Drillstring/BHAComponentIcon.js";export{default as BHAComponentDetail}from"./Drillstring/BHAComponentDetail/index.js";export{default as BHATileIcon}from"./Drillstring/BHATileIcon.js";export{default as BHATile}from"./Drillstring/BHATile/BHATile.js";export{default as BHAList}from"./Drillstring/BHAList/BHAList.js";export{default as BHAComponentsTable}from"./Drillstring/BHAComponentsTable/BHAComponentsTable.js";export{default as CasingTable}from"./Casing/CasingTable/index.js";export{default as CasingComponentIcon}from"./Casing/CasingComponentIcon.js";export{default as CasingTileIcon}from"./Casing/CasingTileIcon.js";export{default as CasingTableV2}from"./Casing/CasingTableV2/CasingTableV2.js";export{default as CasingTile}from"./Casing/CasingTile/CasingTile.js";export{default as DisabledSettingsMessage}from"./DisabledSettingsMessage/DisabledSettingsMessage.js";import*as t from"./WellSummary/index.js";export{t as WellSummary};export{default as BICOffsetPickerDialog}from"./BICOffsetPickerDialog/index.js";export{default as OffsetWellButton}from"./OffsetWellButton/OffsetWellButton.js";export{default as OffsetWellPickerV2}from"./OffsetWellPickerV2/OffsetWellPickerDialog.js";export{default as OffsetWellPickerV3}from"./OffsetWellPickerV3/index.js";export{default as OffsetWellChip}from"./OffsetWellChips/Chip.js";export{default as OffsetWellChipsContainer}from"./OffsetWellChips/ChipsContainer.js";export{default as OffsetWellPickerV4}from"./OffsetWellPickerV4/OffsetWellPickerV4.js";export{default as OffsetWellMap}from"./OffsetWellMap/OffsetWellMap.js";export{default as Notifications}from"./Notifications/Notifications.js";export{default as NotificationsContainer}from"./Notifications/NotificationsContainer.js";import"./Toaster/Toaster.js";export{default as ToastContainer}from"./Toaster/ToastContainer.js";export{default as ConfirmationDialog}from"./ConfirmationDialog.js";export{default as TextLink}from"./TextLink/index.js";export{default as Avatar}from"./Avatar/index.js";export{default as TemplatePopover}from"./Template/TemplatePopover/index.js";export{default as TemplateSharingDialog}from"./Template/TemplateSharingDialog/index.js";export{default as MenuItem}from"./MenuItem/index.js";export{default as PadModeSelect}from"./PadModeSelect/PadModeSelect.js";export{default as PinnableFilters}from"./PinnableFilters/PinnableFilters.js";export{default as HeaderLayout}from"./HeaderLayout/HeaderLayout.js";import*as o from"./PadOffsetsPicker/index.js";export{o as PadOffsetsPicker};export{default as TableSortLabel}from"./Table/TableSortLabel/TableSortLabel.js";export{default as TableToolbar}from"./Table/TableToolbar/TableToolbar.js";export{TableContainer}from"./Table/TableContainer/TableContainer.js";export{TableCell}from"./Table/TableCell/TableCell.js";export{Tooltip}from"./Tooltip/Tooltip.js";export{default as PriceInput}from"./PriceInput/PriceInput.js";export{default as LabelsCounter}from"./LabelsCounter/LabelsCounter.js";export{default as Step}from"./Stepper/Step.js";export{default as StepsWrapper}from"./Stepper/StepsWrapper.js";export{default as Stepper}from"./Stepper/Stepper.js";export{default as CommentIcon}from"./Comment/CommentIcon/index.js";export{default as FilesLoader}from"./FilesLoader/FilesLoader.js";export{default as FileIcon}from"./FilesLoader/Icons/FileIcon.js";export{default as SearchInput}from"./SearchInput/index.js";export{default as FeedItem}from"./FeedItem/FeedItem.js";export{FeedItemEditProvider,useFeedItemEditProvider}from"./FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";export{default as PostInput}from"./PostInput/PostInput.js";export{default as KeyboardDateTimePicker}from"./KeyboardDateTimePicker.js";export{default as AddCommentPopover}from"./AddComment/Popover.js";export{default as AddCommentPopup}from"./AddComment/Popup.js";export{default as ComparisonBar}from"./StageDesignVActual/ComparisonBar/ComparisonBar.js";export{default as ElementsComparison}from"./StageDesignVActual/ElementsComparison/ElementsComparison.js";export{default as ComparisonHeader}from"./StageDesignVActual/ComparisonHeader.js";export{default as ComparisonRow}from"./StageDesignVActual/ComparisonRow.js";export{default as DevCenterEmbeddedApp}from"./EmbeddedApp/DevCenterEmbeddedApp.js";export{default as EmbeddedApp}from"./EmbeddedApp/EmbeddedApp.js";import*as r from"./HelpCenter/index.js";export{r as HelpCenter};export{default as Autocomplete}from"./Autocomplete/Autocomplete.js";export{default as DocumentViewer}from"./DocumentViewer/DocumentViewer.js";export{Popover}from"./Popover/Popover.js";export{Popper}from"./Popper/Popper.js";export{default as ColorPickerPalette}from"./ColorPickerPalette/ColorPickerPalette.js";export{default as Search}from"./Search/Search.js";import"./Search/components/Listbox.js";import"./Search/components/Paper.js";export{default as RecentSearches}from"./Search/components/RecentSearches.js";import"./Search/components/InputAdornmentLeft.js";import"./Search/components/Groups.js";export{StatusBadge}from"./StatusBadge/index.js";export{default as Attachment}from"./Attachment/index.js";export{default as EmojiIconButton}from"./EmojiIconButton.js";export{default as FileUploadIconButton}from"./FileUploadIconButton.js";export{default as FilePreview}from"./FilePreview/index.js";export{default as FailedFileUploading}from"./FailedFileUploading.js";export{default as UserMention}from"./UserMention/index.js";export{default as CommentsInfo}from"./CommentsInfo/index.js";export{default as CommentInput}from"./CommentInput/index.js";export{default as Comment}from"./Comment/index.js";export{default as CommentLoader}from"./CommentLoader.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTestHook.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/__tests__/createTestHook.tsx"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,IAAI,EAAE,CAAC,cASrD,WAAW,CAAC,CAAC,mBAShC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThrottledCallback.test.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/__tests__/useThrottledCallback.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accepts a callback function (usually an event handler) that triggers some
|
|
3
|
+
* heavy rerendering and causes react to choke with render tasks.
|
|
4
|
+
*
|
|
5
|
+
* Ensures that only one task to run the callback is scheduled.
|
|
6
|
+
* The latest version of the callback will be called with the latest params
|
|
7
|
+
*
|
|
8
|
+
* It is a good idea to wrap onMouseMove handlers as well as onMouseUp to prevent
|
|
9
|
+
* mouseUp handler called before the last mouse move
|
|
10
|
+
*
|
|
11
|
+
* @param callback
|
|
12
|
+
* @param delayMs delay in milliseconds
|
|
13
|
+
*/
|
|
14
|
+
export declare const useThrottledCallback: (callback: (...params: any[]) => void, delayMs?: number) => (...params: any[]) => void;
|
|
15
|
+
//# sourceMappingURL=useThrottledCallback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThrottledCallback.d.ts","sourceRoot":"","sources":["../../../src/components/shared/useThrottledCallback.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB,yBAA0B,GAAG,EAAE,KAAK,IAAI,mCAS/B,GAAG,EAAE,SAqB9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useRef as r,useMemo as n,useEffect as t}from"react";var u=function(r,n){return Number.isFinite(n)?{timeout:setTimeout(r,n)}:{raf:requestAnimationFrame(r)}},e=function(e,i){void 0===i&&(i=0);var o=r(null),c=r([]),a=r(e);a.current=e;var f=n((function(){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];c.current=r,o.current||(o.current=u((function(){a.current.apply(a,c.current),o.current=null}),i))}}),[]);return t((function(){return function(){return(null==(r=o.current)?void 0:r.timeout)&&clearTimeout(r.timeout),void((null==r?void 0:r.raf)&&cancelAnimationFrame(r.raf));var r}}),[]),f};export{e as useThrottledCallback};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentsSettings.d.ts","sourceRoot":"","sources":["../../src/constants/componentsSettings.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEFAULT_GRADIENTS as n}from"../components/GradientManager/configuration/constants.js";var o={DEFAULT_GRADIENTS:n};export{o as componentsSettings};
|
package/constants/index.d.ts
CHANGED
|
@@ -15,5 +15,6 @@ import * as completion from "./completion";
|
|
|
15
15
|
import * as appPackages from "./appPackages";
|
|
16
16
|
import * as notifications from "./notifications";
|
|
17
17
|
import * as bha from "./bha";
|
|
18
|
-
|
|
18
|
+
import { componentsSettings } from "./componentsSettings";
|
|
19
|
+
export { DEV_CENTER_CLI_APP_ID, drillstring, casing, goals, segment, alerts, feed, ASSET_TYPES, apps, DRILLING_WELL_SUMMARY, COMPLETION_WELL_SUMMARY, DRILLOUT_WELL_SUMMARY, RIG_ACTIVITY_COLORS, completion, appPackages, notifications, bha, componentsSettings };
|
|
19
20
|
//# sourceMappingURL=index.d.ts.map
|
package/constants/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DEV_CENTER_CLI_APP_ID}from"./devcenter.js";import*as
|
|
1
|
+
export{DEV_CENTER_CLI_APP_ID}from"./devcenter.js";import*as o from"./goals.js";export{o as goals};import*as r from"./segment.js";export{r as segment};import*as t from"./alerts.js";export{t as alerts};import*as s from"./apps.js";export{s as apps};import*as p from"./casing.js";export{p as casing};import*as e from"./drillstring.js";export{e as drillstring};import*as m from"./completion.js";export{m as completion};import*as i from"./appPackages.js";export{i as appPackages};import*as a from"./notifications.js";export{a as notifications};import*as f from"./feed.js";export{f as feed};import*as j from"./bha.js";export{j as bha};export{ASSET_TYPES}from"./assetTypes.js";export{COMPLETION_WELL_SUMMARY,DRILLING_WELL_SUMMARY,DRILLOUT_WELL_SUMMARY}from"./wellSummary.js";export{RIG_ACTIVITY_COLORS}from"./rigActivity.js";export{componentsSettings}from"./componentsSettings.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corva/ui",
|
|
3
|
-
"version": "0.54.0-
|
|
3
|
+
"version": "0.54.0-9",
|
|
4
4
|
"description": "Shared components/utils for Corva ui projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"corva-ui"
|
|
@@ -148,6 +148,7 @@
|
|
|
148
148
|
"re-resizable": "4.11.0",
|
|
149
149
|
"react": "17.0.1",
|
|
150
150
|
"react-color": "2.18.1",
|
|
151
|
+
"react-cursor-position": "3.0.3",
|
|
151
152
|
"react-dom": "17.0.1",
|
|
152
153
|
"react-draggable": "4.2.0",
|
|
153
154
|
"react-grid-layout": "0.18.3",
|
|
@@ -173,6 +174,7 @@
|
|
|
173
174
|
"style-loader": "1.0.0",
|
|
174
175
|
"svg-url-loader": "6.0.0",
|
|
175
176
|
"terser-webpack-plugin": "4.2.3",
|
|
177
|
+
"tinygradient": "1.1.5",
|
|
176
178
|
"use-tiny-state-machine": "^0.0.2",
|
|
177
179
|
"uuid": "3.4.0",
|
|
178
180
|
"validate-color": "^2.2.1",
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomGradient.d.ts","sourceRoot":"","sources":["../../../src/types/shared/CustomGradient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,oBAAY,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,gBAAgB,EAAE,CAAC;CACnC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare type GradientFillStop = {
|
|
2
|
+
/**
|
|
3
|
+
* Position in percents. Can be fractional.
|
|
4
|
+
*/
|
|
5
|
+
pos: number;
|
|
6
|
+
/**
|
|
7
|
+
* Color for the stop. Named colors should also work but please avoid them.
|
|
8
|
+
*/
|
|
9
|
+
color: string;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=GradientFillStop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GradientFillStop.d.ts","sourceRoot":"","sources":["../../../src/types/shared/GradientFillStop.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB,GAAG;IAC7B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
|
package/utils/devcenter.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DEV_CENTER_CLI_APP_ID as n}from"../constants/devcenter.js";import"../constants/goals.js";import{SEGMENTS as t}from"../constants/segment.js";import"../constants/alerts.js";import"../constants/apps.js";import"../constants/drillstring.js";import"../constants/completion.js";import"../constants/notifications.js";import"../constants/feed.js";import"../constants/bha.js";import"lodash";var o=function(n){var t=n.appKey,o=n.version,i=n.isLocalDebugMode;if(!t)return"";var a=t.replace(/\./g,"_");return i?a:"".concat(a,"-").concat(o)},i=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return o===+(null==t?void 0:t.maximizeDC)};function a(n){var t,o;return{push:function(t){"string"==typeof t?n.push(t):n.push({pathname:t.pathname,query:t.query})},location:{pathname:null==n||null===(t=n.location)||void 0===t?void 0:t.pathname,query:null==n||null===(o=n.location)||void 0===o?void 0:o.query}}}var r=function(n){return n?+(n.split("#")[2]||"").replace("}",""):void 0},l=function(n){var t,o;return null!==(t=null==n||null===(o=n.package)||void 0===o?void 0:o.manifest.application.name)&&void 0!==t?t:n.name},
|
|
1
|
+
import{DEV_CENTER_CLI_APP_ID as n}from"../constants/devcenter.js";import"../constants/goals.js";import{SEGMENTS as t}from"../constants/segment.js";import"../constants/alerts.js";import"../constants/apps.js";import"../constants/drillstring.js";import"../constants/completion.js";import"../constants/notifications.js";import"../constants/feed.js";import"../constants/bha.js";import"lodash";import"../components/GradientManager/configuration/constants.js";var o=function(n){var t=n.appKey,o=n.version,i=n.isLocalDebugMode;if(!t)return"";var a=t.replace(/\./g,"_");return i?a:"".concat(a,"-").concat(o)},i=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return o===+(null==t?void 0:t.maximizeDC)};function a(n){var t,o;return{push:function(t){"string"==typeof t?n.push(t):n.push({pathname:t.pathname,query:t.query})},location:{pathname:null==n||null===(t=n.location)||void 0===t?void 0:t.pathname,query:null==n||null===(o=n.location)||void 0===o?void 0:o.query}}}var r=function(n){return n?+(n.split("#")[2]||"").replace("}",""):void 0},l=function(n){var t,o;return null!==(t=null==n||null===(o=n.package)||void 0===o?void 0:o.manifest.application.name)&&void 0!==t?t:n.name},s=function(n){var t;return"dev_center"===((null==n?void 0:n.platform)||(null==n||null===(t=n.app)||void 0===t?void 0:t.platform))},e=function(n){var o,i,a,r,l;return null!==(o=null==n||null===(i=n.package)||void 0===i||null===(a=i.manifest)||void 0===a||null===(r=a.application)||void 0===r||null===(l=r.segments)||void 0===l?void 0:l[0])&&void 0!==o?o:t.DRILLING};export{a as createDevCenterRouter,o as getAppIdentifier,l as getAppName,e as getAppSegment,r as getTimestampFromQuery,i as isAppMaximized,s as isDevCenterApp};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import o from"prop-types";var e={title:o.oneOfType([o.string,o.node]),children:o.oneOfType([o.string,o.node]),actions:o.oneOfType([o.string,o.node,o.array]),actionsClassName:o.string,contentClassName:o.string,contentContainerClassName:o.string,isCloseIconHidden:o.bool,isMobile:o.bool,isNative:o.bool,modalTitleClassName:o.string,onClose:o.func,open:o.bool.isRequired,rootClassName:o.string,size:o.string,stickyFooter:o.bool,stickyFooterClassName:o.string,type:o.string};export{e as modalPropTypes};
|