@corva/ui 0.44.0-0 → 0.44.0-10
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/CLI/hocs/utils.js +1 -1
- package/assets/c7e056a4353978b8b0393473f0d750ae.svg +3 -0
- package/assets/e5c1ddb75e4cd7410ae9ad034dfc61dd.svg +6 -0
- package/cjs/index.js +5 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/components/AssetNameLabel/PrimaryAssetNameLabel.js +1 -1
- package/components/AssetNameLabel/styles.css.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Breadcrumbs/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/CollapsableSidebar.js +1 -1
- package/components/DevCenter/AppHeader/AppHeader.css.js +1 -1
- package/components/DevCenter/AppsDataProvider/effects/dataResolvers.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/utils.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/FeedItem/FeedItem.js +1 -1
- package/components/FeedItem/components/FeedComments.js +1 -1
- package/components/FilesLoader/FilesLoader.js +1 -1
- package/components/FilesLoader/Icons/CSVFileIcon.js +1 -1
- package/components/FilesLoader/Icons/DocFileIcon.js +1 -1
- package/components/FilesLoader/Icons/EDMFileIcon.js +1 -0
- package/components/FilesLoader/Icons/ExelFileIcon.js +1 -1
- package/components/FilesLoader/Icons/FileIcon.js +1 -1
- package/components/FilesLoader/Icons/IconRefresh.js +1 -0
- package/components/FilesLoader/Icons/IconSuccess.js +1 -1
- package/components/FilesLoader/Icons/IconWarning.js +1 -1
- package/components/FilesLoader/Icons/ImageFileIcon.js +1 -1
- package/components/FilesLoader/Icons/PdfFileIcon.js +1 -1
- package/components/FilesLoader/Icons/UnknownFileIcon.js +1 -1
- package/components/FilesLoader/Icons/UploadIcon.js +1 -0
- package/components/FilesLoader/useStyles.js +1 -1
- package/components/ImageViewer/index.js +1 -1
- package/components/Modal/CorvaModal.css.js +1 -1
- package/components/Modal/CorvaModal.js +1 -1
- package/components/Modal/Modal.js +1 -1
- package/components/OffsetWellButton/OffsetWellButton.js +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/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/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/OffsetWellPickerV4.module.css.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/RadiusInput.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.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/OffsetWellsTable/OffsetWellsTable.module.css.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.module.css.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
- package/components/OffsetWellPickerV4/constants.js +1 -1
- package/components/OffsetWellPickerV4/effects/useRadiusWells.js +1 -1
- package/components/OffsetWellPickerV4/effects/useSortedWells.js +1 -1
- package/components/OffsetWellPickerV4/utils/unitSystem.js +1 -0
- package/components/Popover/Popover.js +1 -1
- package/components/Popper/Popper.js +1 -1
- package/components/RangeSlider/Input.css.js +1 -1
- package/components/RangeSlider/RangeSlider.css.js +1 -1
- package/components/RangeSlider/RangeSlider.js +1 -1
- package/components/RangeSlider/strategies/horizontal.js +1 -1
- package/components/RangeSlider/strategies/vertical.js +1 -1
- package/components/Search/Search.js +1 -1
- package/components/Search/components/Groups.js +1 -0
- package/components/Search/components/Listbox.js +1 -1
- package/components/Search/components/Paper.js +1 -1
- package/components/Search/components/RecentSearches.js +1 -1
- package/components/Search/styles.js +1 -0
- package/components/Stepper/Step.css.js +1 -1
- package/components/TextLink/index.js +1 -1
- package/components/index.js +1 -1
- package/config/theme/tooltipOverrides.js +1 -1
- package/effects/useDelayedDcFullscreenElemOpen.js +1 -1
- package/package.json +6 -2
- package/utils/feed.js +1 -1
- package/CLI/assets/DevCenterLogo.js +0 -1
- package/CLI/components/App/App.css.js +0 -1
- package/CLI/components/App/App.js +0 -1
- package/CLI/components/App/components/AppBar/AppBar.js +0 -1
- package/CLI/constants/index.js +0 -1
- package/CLI/context/auth.js +0 -1
- package/CLI/hocs/effects/useProvideAuth.js +0 -1
- package/CLI/hocs/withAppDataProviderHOC.js +0 -1
- package/CLI/hocs/withCLIAppSettingsHOC.js +0 -1
- package/CLI/hocs/withCorvaMagicHOC.js +0 -1
- package/CLI/hocs/withDevCenterRouterHOC.js +0 -1
- package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.css.js +0 -1
- package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.global.css.js +0 -1
- package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.js +0 -1
- package/CLI/hocs/withPDFLayoutHOC.js +0 -1
- package/CLI/hocs/withReactRouterHOC.js +0 -1
- package/CLI/index.js +0 -1
- package/CLI/screens/LoginScreen/LoginScreen.css.js +0 -1
- package/CLI/screens/LoginScreen/LoginScreen.js +0 -1
- package/CLI/screens/LoginScreen/components/Auth.js +0 -1
- package/CLI/screens/LoginScreen/components/AuthStep.js +0 -1
- package/CLI/screens/LoginScreen/components/EmailStep.js +0 -1
- package/CLI/screens/LoginScreen/components/IconLogo.js +0 -1
- package/CLI/screens/LoginScreen/components/SSOButton.js +0 -1
- package/CLI/screens/OAuthCallbackScreen/index.js +0 -1
- package/_virtual/_commonjsHelpers.js +0 -1
- package/_virtual/arrayLikeToArray.js +0 -1
- package/_virtual/arrayWithHoles.js +0 -1
- package/_virtual/arrayWithoutHoles.js +0 -1
- package/_virtual/iterableToArray.js +0 -1
- package/_virtual/iterableToArrayLimit.js +0 -1
- package/_virtual/nonIterableRest.js +0 -1
- package/_virtual/nonIterableSpread.js +0 -1
- package/_virtual/regeneratorRuntime.js +0 -1
- package/_virtual/typeof.js +0 -1
- package/_virtual/unsupportedIterableToArray.js +0 -1
- package/assets/2d1e493e7f3afb84f4a5c8aded37a718.svg +0 -3
- package/assets/319d9b9a39d511547cf55d1336a8eca4.svg +0 -1
- package/assets/55de612562c712e3a9d6ea86000e18c7.svg +0 -9
- package/assets/67f05495a7dbbee777bb0c7974f4588a.jpg +0 -0
- package/assets/b1dce244ca65e361a28be5801cf93d73.svg +0 -3
- package/assets/fb9a5d3233e9e3e310d6d297e6ddcc55.svg +0 -3
- package/cjs/devcenter/webpack/DevServerEntryPoint.js +0 -1
- package/cjs/devcenter/webpack/DevServerIsolatedAppEntryPoint.js +0 -1
- package/cjs/devcenter/webpack/constants.js +0 -1
- package/cjs/devcenter/webpack/index.js +0 -1
- package/cjs/devcenter/webpack/plugins/checkCorvaUIVersion.js +0 -1
- package/cjs/devcenter/webpack/public/DevCenterIsolatedAppPage.html +0 -28
- package/cjs/devcenter/webpack/public/favicon.ico +0 -0
- package/cjs/devcenter/webpack/public/index.html +0 -28
- package/cjs/devcenter/webpack/utils/middlewares.js +0 -1
- package/cjs/devcenter/webpack/utils/serializeDotEnv.js +0 -1
- package/cjs/devcenter/webpack/validators/dependencies.js +0 -1
- package/cjs/devcenter/webpack/validators/index.js +0 -1
- package/cjs/devcenter/webpack/webpack.config.common.js +0 -1
- package/cjs/devcenter/webpack/webpack.config.dev.js +0 -1
- package/cjs/devcenter/webpack/webpack.config.prod.js +0 -1
- package/clients/auth0/index.js +0 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/AppsGridDragHandle.js +0 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/AppsGridDragHandle.scss.js +0 -1
- package/components/FilesLoader/Icons/IconCancel.js +0 -1
- package/components/GridLockButton/index.js +0 -1
- package/components/Login/components/Chip.js +0 -1
- package/components/Login/components/EmailField.js +0 -1
- package/components/Login/components/HiddenEmailField.js +0 -1
- package/components/Login/components/Login.global.css.js +0 -1
- package/components/Login/components/Login.js +0 -1
- package/components/Login/components/LogoIcon.js +0 -1
- package/components/Login/components/OrDivider.js +0 -1
- package/components/Login/components/PasswordField.js +0 -1
- package/components/Login/components/Step.js +0 -1
- package/components/Login/components/StepContent.js +0 -1
- package/components/Login/components/StepFooter.js +0 -1
- package/components/Login/components/StepHeader.js +0 -1
- package/components/Login/index.js +0 -1
- package/components/OffsetWellPickerV4/WarningIcon.js +0 -1
- package/components/OffsetWellPickerV4/effects/useAddedWellsByManual.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/arrayLikeToArray.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/arrayWithHoles.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/arrayWithoutHoles.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/asyncToGenerator.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/defineProperty.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/iterableToArray.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/iterableToArrayLimit.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/nonIterableRest.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/nonIterableSpread.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/regeneratorRuntime.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/slicedToArray.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/taggedTemplateLiteral.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/toConsumableArray.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/typeof.js +0 -1
- package/ext-cjs/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -1
- package/ext-cjs/@babel/runtime/regenerator/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"prop-types";import{makeStyles as r,FormControl as t,Tooltip as i,Typography as n,MenuItem as o}from"@material-ui/core";import{getUnitDisplay as a}from"../../../../utils/index.js";import l from"../../../Select/index.js";import{METRICS_LIST as p}from"../../constants.js";import{jsx as c}from"react/jsx-runtime";var u=r((function(e){return{metricsForm:{width:"calc(100% - 32px)","& .MuiInputBase-root":{"&:hover $primaryText":{color:e.palette.primary.text1},"&:hover $primaryIcon":{color:e.palette.primary.text1},"&:focused $primaryIcon":{color:e.palette.primary.main}}},metricsSelect:{"&:before":{borderBottom:"none !important"},"&:after":{borderBottom:"none !important"}},primaryText:{fontWeight:500,fontSize:"12px",lineHeight:"14px",letterSpacing:"0.4px",color:e.palette.primary.text7,overflow:"hidden",textOverflow:"ellipsis"},primaryIcon:{color:e.palette.primary.text6},metricsMenuPaper:{backgroundColor:e.palette.background.b9,maxHeight:"calc(100% - 300px)",top:"150px !important"},valueLabel:{display:"-webkit-box",alignItems:"center",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflowWrap:"break-word",fontWeight:500,fontSize:"12px",lineHeight:"14px",letterSpacing:"0.4px",overflow:"hidden",whiteSpace:"normal"
|
|
1
|
+
import e from"prop-types";import{makeStyles as r,FormControl as t,Tooltip as i,Typography as n,MenuItem as o}from"@material-ui/core";import{getUnitDisplay as a}from"../../../../utils/index.js";import l from"../../../Select/index.js";import{METRICS_LIST as p}from"../../constants.js";import{jsx as c}from"react/jsx-runtime";var u=r((function(e){return{metricsForm:{width:"calc(100% - 32px)","& .MuiInputBase-root":{"&:hover $primaryText":{color:e.palette.primary.text1},"&:hover $primaryIcon":{color:e.palette.primary.text1},"&:focused $primaryIcon":{color:e.palette.primary.main}}},metricsSelect:{"&:before":{borderBottom:"none !important"},"&:after":{borderBottom:"none !important"}},primaryText:{fontWeight:500,fontSize:"12px",lineHeight:"14px",letterSpacing:"0.4px",color:e.palette.primary.text7,overflow:"hidden",textOverflow:"ellipsis"},primaryIcon:{color:e.palette.primary.text6},metricsMenuPaper:{backgroundColor:e.palette.background.b9,maxHeight:"calc(100% - 300px)",top:"150px !important"},valueLabel:{display:"-webkit-box",alignItems:"center",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflowWrap:"break-word",fontWeight:500,fontSize:"12px",lineHeight:"14px",letterSpacing:"0.4px",overflow:"hidden",whiteSpace:"normal"}}}));function m(e){var r=p.find((function(r){return r.key===e}));if(!r)return"";var t=r.unitType?" (".concat(a(r.unitType),")"):"";return r.label+t}var s=function(e){var r=e.isTooltipVisible,a=e.currentValue,s=e.onChange,f=e.setIsMenuOpen,d=u();return c(t,{className:d.metricsForm,children:c(l,{className:d.metricsSelect,classes:{select:d.primaryText,icon:d.primaryIcon},MenuProps:{paper:d.metricsMenuPaper},value:a,renderValue:function(e){return c(i,{title:r?m(e):"",children:c(n,{className:d.valueLabel,children:m(e)})})},onOpen:function(){return f(!0)},onClose:function(){return f(!1)},onChange:function(e){return s(e.target.value)},children:p.map((function(e){return c(o,{value:e.key,children:e.label},e.key)}))})})};s.propTypes={isTooltipVisible:e.bool.isRequired,currentValue:e.string.isRequired,onChange:e.func.isRequired,setIsMenuOpen:e.func.isRequired};export{s as MetricsSelect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/slicedToArray";import{useState as t,useEffect as o}from"react";import{isEqual as r}from"lodash";import i from"prop-types";import{makeStyles as n,Menu as s,MenuItem as p,Checkbox as m}from"@material-ui/core";import a from"@material-ui/icons/Settings";import"@babel/runtime/helpers/defineProperty";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsxs as l,Fragment as d,jsx as c}from"react/jsx-runtime";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"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../LoadingIndicator/LoadingIndicator.js";import"../../../../constants/segment.js";import"../../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.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"@babel/runtime/helpers/objectWithoutProperties";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"classnames";import"../../../Icons/AnnotationIcon.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../../clients/jsonApi/index.js";import"../../../../clients/subscriptions.js";import"../../../../constants/goals.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"../../../../utils/index.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../DevCenter/AppContext.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/AppsGridDragHandle.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.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"../../../SwitchControl/index.js";import"../../../ColorPicker/ColorPicker.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.js";import"../../../GridLockButton/index.js";import"../../../Login/components/Login.js";import"../../../Login/components/PasswordField.js";import"../../../Login/components/Chip.js";import"../../../Login/components/StepFooter.js";import"../../../Login/components/StepContent.js";import"../../../Login/components/StepHeader.js";import"../../../Login/components/Step.js";import"../../../Login/components/OrDivider.js";import"../../../Login/components/HiddenEmailField.js";import"../../../Login/components/EmailField.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 j from"../../../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"../../../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"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/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"../../../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"../../../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{METRICS_LIST as C,MAX_METRICS_COUNT as u}from"../../constants.js";var A=n({checkBox:{color:"grey",padding:"5px",marginRight:"4px"}}),g=function(i){var n=i.metricsKeys,g=i.onChange,D=A(),v=t([]),b=e(v,2),P=b[0],x=b[1],S=t(null),h=e(S,2),f=h[0],I=h[1];o((function(){x(n||[])}),[n]);return l(d,{children:[c(j,{size:"small",tooltipProps:{title:"Select Metrics"},onClick:function(e){I(e.currentTarget)},children:c(a,{})}),l(s,{id:"simple-menu",anchorEl:f,getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:{maxHeight:"300px",backgroundColor:"#414141"}},keepMounted:!0,open:Boolean(f),onClose:function(){I(null),r(P,n)||g(P)},children:[c(p,{disabled:!0,value:"",children:c("em",{children:"Up to 3 Metrics"})}),C.map((function(e){return l(p,{disabled:P.length===u&&!P.includes(e.key),onClick:function(){return t=e.key,void(P.includes(t)?x(P.filter((function(e){return e!==t}))):x(P.concat(t)));var t},children:[c(m,{checked:P.includes(e.key),className:D.checkBox}),e.label]},e.key)}))]})]})};g.propTypes={metricsKeys:i.arrayOf(i.string).isRequired,onChange:i.func.isRequired};export{g as MetricsSettingMenu};
|
|
1
|
+
import e from"@babel/runtime/helpers/slicedToArray";import{useState as t,useEffect as r}from"react";import{isEqual as i}from"lodash";import o from"prop-types";import{makeStyles as n,Menu as s,MenuItem as p,Checkbox as m}from"@material-ui/core";import a from"@material-ui/icons/Settings";import"@babel/runtime/helpers/defineProperty";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsxs as l,Fragment as c,jsx as d}from"react/jsx-runtime";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"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../LoadingIndicator/LoadingIndicator.js";import"../../../../constants/segment.js";import"../../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.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"@babel/runtime/helpers/objectWithoutProperties";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"classnames";import"../../../Icons/AnnotationIcon.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../../clients/jsonApi/index.js";import"../../../../clients/subscriptions.js";import"../../../../constants/goals.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"../../../../utils/index.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../DevCenter/AppContext.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.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"../../../SwitchControl/index.js";import"../../../ColorPicker/ColorPicker.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.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 j from"../../../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"../../../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"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/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"../../../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"../../../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{METRICS_LIST as C,MAX_METRICS_COUNT as u}from"../../constants.js";var A=n((function(e){return{checkBox:{color:"grey",padding:"0px",marginRight:"10px"},paper:{transform:"translate(-40px, 4px) scale(1, 1) !important",maxHeight:"calc(80% - 80px)",backgroundColor:e.palette.background.b9},titleItem:{position:"sticky",top:"0px",zIndex:9,marginBottom:"-8px",display:"flex",alignItems:"center",height:"40px",paddingLeft:"16px",background:e.palette.background.b9},titleLabel:{fontStyle:"italic",fontWeight:400,fontSize:"12px",lineHeight:"14px",letterSpacing:"0.4px",color:"#999999"},menuList:{paddingTop:"0px !important"},menuItem:{height:"54px !important"}}})),g=function(o){var n=o.metricsKeys,g=o.onChange,D=o.contentRef,v=A(),x=t([]),b=e(x,2),f=b[0],h=b[1],S=t(null),P=e(S,2),I=P[0],y=P[1];r((function(){h(n||[])}),[n]);return l(c,{children:[d(j,{size:"small",tooltipProps:{title:"Select Metrics"},onClick:function(e){y(e.currentTarget)},children:d(a,{})}),l(s,{id:"simple-menu",anchorEl:D.current,getContentAnchorEl:null,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"right"},classes:{paper:v.paper,list:v.menuList},keepMounted:!0,open:Boolean(I),onClose:function(){y(null),i(f,n)||g(f)},children:[d("div",{className:v.titleItem,children:d("span",{className:v.titleLabel,children:"Up to 3 Metrics"})}),C.map((function(e){return l(p,{className:v.menuItem,disabled:f.length===u&&!f.includes(e.key),onClick:function(){return t=e.key,void(f.includes(t)?h(f.filter((function(e){return e!==t}))):h(f.concat(t)));var t},children:[d(m,{checked:f.includes(e.key),className:v.checkBox}),e.label]},e.key)}))]})]})};g.propTypes={metricsKeys:o.arrayOf(o.string).isRequired,onChange:o.func.isRequired,contentRef:o.shape({current:o.instanceOf(Element)}).isRequired};export{g as MetricsSettingMenu};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{memo as r,useRef as i,useMemo as o,useEffect as n,useCallback as s}from"react";import p from"classnames";import m from"prop-types";import{Table as a,TableHead as l,TableBody as d,TableRow as c,TableCell as j}from"@material-ui/core";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsx as u,jsxs as C,Fragment as A}from"react/jsx-runtime";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"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import f from"../../../LoadingIndicator/LoadingIndicator.js";import"../../../../constants/segment.js";import"../../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.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"@babel/runtime/helpers/objectWithoutProperties";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"lodash";import"../../../Icons/AnnotationIcon.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../../clients/jsonApi/index.js";import"../../../../clients/subscriptions.js";import"../../../../constants/goals.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"../../../../utils/index.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../DevCenter/AppContext.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/AppsGridDragHandle.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.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"../../../SwitchControl/index.js";import"../../../ColorPicker/ColorPicker.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.js";import"../../../GridLockButton/index.js";import"../../../Login/components/Login.js";import"../../../Login/components/PasswordField.js";import"../../../Login/components/Chip.js";import"../../../Login/components/StepFooter.js";import"../../../Login/components/StepContent.js";import"../../../Login/components/StepHeader.js";import"../../../Login/components/Step.js";import"../../../Login/components/OrDivider.js";import"../../../Login/components/HiddenEmailField.js";import"../../../Login/components/EmailField.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"../../../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"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/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"../../../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"../../../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{AdvancedSearch as h}from"./AdvancedSearch/AdvancedSearch.js";import D from"./OffsetWellsTableHead.js";import g from"./OffsetWellsTableRow.js";import{METRICS_LIST as v,EXPANED_WELLNAME_WIDTH as S,TableColumns as b}from"../../constants.js";import x from"./OffsetWellsTable.module.css.js";var y=function(r){var m=r.isTableLoading,y=r.companyId,P=r.subjectWellId,I=r.sortBy,E=r.setSortBy,T=r.sortDirection,W=r.setSortDirection,L=r.columnsWithDict,w=r.wells,B=r.metricsKeys,R=r.setMetricsKeys,O=r.handleChanageOffsetWell,F=r.handleChangeAllOffsetWells,k=r.handleAddRemoveAssets,V=r.isWellNameExpand,H=r.setIsWellNameExpand,M=r.isHscrollMoved,N=r.onHideAdvancedSearch,q=r.isViewOnly,K=r.isLastWell,z=i(),G=i(),U=o((function(){var e=w.filter((function(e){return e.checked}));return[e,w.length!==e.length&&e.length,e.length===w.length]}),[w]),J=t(U,3),Q=J[0],X=J[1],Y=J[2],Z=o((function(){return(B||[]).reduce((function(e,t){return e.concat(v.filter((function(e){return e.key===t})))}),[])}),[B]),$=o((function(){return V?S-58:b[0].width[B.length]-58}),[V,null==B?void 0:B.length]);n((function(){var e=z.current.querySelector(".".concat(x.wellNameFixed));M?e.classList.remove(x.noShadow):e.classList.add(x.noShadow);var t=G.current.querySelectorAll(".".concat(x.wellNameFixed));M?t.forEach((function(e){return e.classList.remove(x.noShadow)})):t.forEach((function(e){return e.classList.add(x.noShadow)}))}),[M,G.current,z.current,w]);var _=s((function(e,t){E(e),W(t)}),[]),ee=s((function(e){R(e)}),[]),te=s((function(e,t){R((function(r){return r.map((function(r){return r===e?t:r}))}))}),[]);return m?u(f,{fullscreen:!1}):L&&w?C(A,{children:[u("div",{className:x.stickyTable,children:C(a,{"aria-label":"ows table head",innerRef:z,children:[u(l,{children:u(D,{columnsWithDict:L,metricsKeys:B,sortBy:I,sortDirection:T,indeterminate:X,isAllWellsSelected:Y,onChangeSort:_,onChangeMetricsKeys:ee,onUpdateMetricsKey:te,isWellNameExpand:V,setIsWellNameExpand:H,handleChangeAllOffsetWells:F,wellNameStyle:x.wellNameFixed,isViewOnly:q})}),!q&&u(d,{children:u(c,{children:u(j,{className:x.searchCell,children:u(h,{companyId:y,wells:w,onChange:k,selectedWellIds:Q.map((function(e){return e.id})),onHideAdvancedSearch:N})})})})]})}),u(a,{"aria-label":"ows table body",innerRef:G,children:C(d,{children:[u(c,{children:u(j,{className:p(x.topShadow,e({},x.viewOnlyShadow,q))})}),w.map((function(e){return u(g,{columnsWithDict:L,subjectWellId:P,data:e,metricsKeys:B,metricsColumns:Z,handleChanageOffsetWell:O,isWellNameExpand:V,wellNameStyle:x.wellNameFixed,wellNameWidth:$,isViewOnly:q},e.id)})),!K&&u(c,{children:u(j,{className:x.loadingCell,children:u("span",{children:"Loading..."})})}),u(c,{children:u(j,{className:x.bottomShadow})})]})})]}):null};y.propTypes={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};var P=r(y);export{P as default};
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{memo as r,useRef as i,useMemo as o,useEffect as s,useCallback as n}from"react";import p from"classnames";import a from"prop-types";import{Table as l,TableHead as m,TableBody as d,TableRow as c,TableCell as u}from"@material-ui/core";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsx as j,jsxs as C,Fragment as f}from"react/jsx-runtime";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"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import A from"../../../LoadingIndicator/LoadingIndicator.js";import"../../../../constants/segment.js";import"../../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.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"@babel/runtime/helpers/objectWithoutProperties";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"lodash";import"../../../Icons/AnnotationIcon.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../../clients/jsonApi/index.js";import"../../../../clients/subscriptions.js";import"../../../../constants/goals.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"../../../../utils/index.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../DevCenter/AppContext.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.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"../../../SwitchControl/index.js";import"../../../ColorPicker/ColorPicker.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.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"../../../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"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/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"../../../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"../../../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{AdvancedSearch as h}from"./AdvancedSearch/AdvancedSearch.js";import b from"./OffsetWellsTableHead.js";import D from"./OffsetWellsTableRow.js";import{METRICS_LIST as v,EXPANED_WELLNAME_WIDTH as g,TableColumns as S,ROW_HEIGHT as y}from"../../constants.js";import x from"./OffsetWellsTable.module.css.js";import{getIsImperial as P}from"../../utils/unitSystem.js";var I=function(r){var a=r.open,I=r.isTableLoading,T=r.companyId,E=r.subjectWellId,W=r.sortBy,R=r.setSortBy,w=r.sortDirection,O=r.setSortDirection,B=r.columnsWithDict,L=r.wells,k=r.metricsKeys,q=r.setMetricsKeys,H=r.handleChanageOffsetWell,V=r.handleChangeAllOffsetWells,F=r.handleAddRemoveAssets,N=r.isWellNameExpand,M=r.setIsWellNameExpand,K=r.isHscrollMoved,z=r.onHideAdvancedSearch,U=r.isViewOnly,G=r.isLastWell,J=r.contentRef,Q=r.isHintPopperOpen,X=r.setIsHintPopperOpen,Y=r.isLimitedOffsetwells,Z=r.containerRef,$=r.tableTop,_=i(),ee=i(),te=o((function(){var e=L.filter((function(e){return e.checked}));return[e,L.length!==e.length&&e.length&&!Y,e.length===L.length||Y]}),[L,Y]),re=t(te,3),ie=re[0],oe=re[1],se=re[2],ne=o((function(){return P()}),[]),pe=o((function(){return(k||[]).reduce((function(e,t){return e.concat(v.filter((function(e){return e.key===t})))}),[])}),[k]),ae=o((function(){return N?g-58:S[0].width[k.length]-58}),[N,null==k?void 0:k.length]),le=o((function(){return ie.length*y}),[ie]);s((function(){var e=_.current.querySelector(".".concat(x.wellNameFixed));K?e.classList.remove(x.noShadow):e.classList.add(x.noShadow);var t=ee.current.querySelectorAll(".".concat(x.wellNameFixed));K?t.forEach((function(e){return e.classList.remove(x.noShadow)})):t.forEach((function(e){return e.classList.add(x.noShadow)}))}),[K,ee.current,_.current,L]);var me=n((function(e,t){R(e),O(t)}),[]),de=n((function(e){q(e)}),[]),ce=n((function(e,t){q((function(r){return r.map((function(r){return r===e?t:r}))}))}),[]);return I?j(A,{fullscreen:!1}):B&&L?C(f,{children:[j("div",{className:x.stickyTable,children:C(l,{"aria-label":"ows table head",innerRef:_,children:[j(m,{children:j(b,{open:a,columnsWithDict:B,metricsKeys:k,sortBy:W,sortDirection:w,indeterminate:oe,isAllWellsSelected:se,onChangeSort:me,onChangeMetricsKeys:de,onUpdateMetricsKey:ce,isWellNameExpand:N,setIsWellNameExpand:M,handleChangeAllOffsetWells:V,wellNameStyle:x.wellNameFixed,isViewOnly:U,isImperial:ne,contentRef:J,isHintPopperOpen:Q,setIsHintPopperOpen:X})}),!U&&j(d,{children:j(c,{children:j(u,{className:x.searchCell,children:j(h,{companyId:T,wells:L,onChange:F,selectedWellIds:ie.map((function(e){return e.id})),onHideAdvancedSearch:z})})})})]})}),j(l,{"aria-label":"ows table body",innerRef:ee,className:x.bodyTable,children:C(d,{children:[j(c,{children:j(u,{className:p(x.topShadow,e({},x.viewOnlyShadow,U))})}),L.map((function(e){return j(D,{columnsWithDict:B,subjectWellId:E,data:e,metricsKeys:k,metricsColumns:pe,handleChanageOffsetWell:H,isWellNameExpand:N,wellNameStyle:x.wellNameFixed,wellNameWidth:ae,isViewOnly:U,isImperial:ne,isLimitedOffsetwells:Y,flyTo:le,containerRef:Z,tableTop:$},e.id)})),!G&&j(c,{children:j(u,{className:x.loadingCell,children:j("span",{children:"Loading..."})})}),j(c,{children:j(u,{className:x.bottomShadow})})]})})]}):null};I.propTypes={open:a.bool.isRequired,isTableLoading:a.bool.isRequired,companyId:a.number.isRequired,subjectWellId:a.number.isRequired,sortBy:a.string.isRequired,setSortBy:a.func.isRequired,sortDirection:a.string.isRequired,setSortDirection:a.func.isRequired,columnsWithDict:a.arrayOf(a.shape({})).isRequired,wells:a.arrayOf(a.shape({})).isRequired,metricsKeys:a.arrayOf(a.string).isRequired,setMetricsKeys:a.func.isRequired,handleChanageOffsetWell:a.func.isRequired,handleChangeAllOffsetWells:a.func.isRequired,handleAddRemoveAssets:a.func.isRequired,setIsWellNameExpand:a.func.isRequired,isWellNameExpand:a.bool.isRequired,isHscrollMoved:a.bool.isRequired,onHideAdvancedSearch:a.func.isRequired,isViewOnly:a.bool.isRequired,isLastWell:a.bool.isRequired,isHintPopperOpen:a.bool.isRequired,setIsHintPopperOpen:a.func.isRequired,isLimitedOffsetwells:a.bool.isRequired,contentRef:a.shape().isRequired,containerRef:a.shape().isRequired,tableTop:a.number.isRequired};var T=r(I);export{T as default};
|
package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var
|
|
1
|
+
import e from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var o={stickyTable:"OffsetWellsTable-module_stickyTable__LZCzy",searchCell:"OffsetWellsTable-module_searchCell__3IW23",bodyTable:"OffsetWellsTable-module_bodyTable__djKsG",bodyGrid:"OffsetWellsTable-module_bodyGrid__Ss17M",loadingCell:"OffsetWellsTable-module_loadingCell__rBu7-",topShadow:"OffsetWellsTable-module_topShadow__MPc8N",viewOnlyShadow:"OffsetWellsTable-module_viewOnlyShadow__DOW-4",bottomShadow:"OffsetWellsTable-module_bottomShadow__jxM6E",wellNameFixed:"OffsetWellsTable-module_wellNameFixed__tKtuD",noShadow:"OffsetWellsTable-module_noShadow__Ssp7E"};e('.OffsetWellsTable-module_stickyTable__LZCzy{background-color:var(--palette-background-b-9);position:sticky;top:0;z-index:9}.OffsetWellsTable-module_searchCell__3IW23{background-color:var(--palette-background-b-9);border-bottom:none!important;height:40px!important;padding:0!important}.OffsetWellsTable-module_bodyTable__djKsG{position:relative}.OffsetWellsTable-module_bodyGrid__Ss17M{margin-top:12px!important;overflow:hidden!important}.OffsetWellsTable-module_bodyGrid__Ss17M::-webkit-scrollbar-corner{background:transparent}.OffsetWellsTable-module_loadingCell__rBu7-{border-bottom:none!important;color:var(--palette-primary-text-8)!important;font-size:12px!important;height:16px!important;padding:0!important;text-align:center!important}.OffsetWellsTable-module_topShadow__MPc8N{background-image:linear-gradient(0deg,rgba(65,65,65,0),#414141);border-bottom:none!important;height:16px!important;padding:0!important;position:sticky;top:93px;width:100%;z-index:999}.OffsetWellsTable-module_viewOnlyShadow__DOW-4{top:49px}.OffsetWellsTable-module_bottomShadow__jxM6E{border-bottom:none!important;bottom:0;height:0!important;padding:0!important;position:sticky;width:100%;z-index:999}.OffsetWellsTable-module_bottomShadow__jxM6E:after{background-image:linear-gradient(180deg,rgba(65,65,65,0),#414141);bottom:0;content:" ";height:16px!important;position:absolute;width:100%}.OffsetWellsTable-module_wellNameFixed__tKtuD{box-shadow:4px 0 6px -3px #191919!important}.OffsetWellsTable-module_noShadow__Ssp7E{box-shadow:none!important}');export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import{memo as i,useState as
|
|
1
|
+
import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import{memo as i,useState as n}from"react";import l from"classnames";import s from"prop-types";import{SortDirection as a}from"react-virtualized";import{withStyles as o,Tooltip as c,TableRow as d,TableCell as p,ClickAwayListener as u,Button as m,Checkbox as h,TableSortLabel as f}from"@material-ui/core";import{ArrowForwardIos as y}from"@material-ui/icons";import{MetricsSettingMenu as b}from"./MetricsSettingMenu.js";import{MetricsSelect as C}from"./MetricsSelect.js";import{EXPANED_WELLNAME_WIDTH as g,ColumnType as v}from"../../constants.js";import O from"./OffsetWellsTableHead.module.css.js";import{jsxs as w,jsx as N}from"react/jsx-runtime";var R=["title"];function S(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 q(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?S(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):S(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var W=function(e){var t=e.title,i=r(e,R);return N(c,{placement:"top-end",title:t,children:N(f,q({},i))})},j=o((function(e){return{tooltip:{width:"332px",maxWidth:"332px",height:"125px",padding:"16px",backgroundColor:e.palette.info.dark,borderRadius:"10px"},arrow:{color:e.palette.info.dark}}}))(c);function k(e,t){var r=e.find((function(e){return e.key===t}));return(null==r?void 0:r.width)||0}var D=function(r){var i=r.open,s=r.columnsWithDict,o=r.metricsKeys,f=r.sortBy,R=r.sortDirection,S=r.indeterminate,q=r.isAllWellsSelected,D=r.onChangeSort,E=r.onChangeMetricsKeys,x=r.onUpdateMetricsKey,P=r.isWellNameExpand,A=r.setIsWellNameExpand,I=r.handleChangeAllOffsetWells,M=r.wellNameStyle,K=r.isViewOnly,L=r.isImperial,H=r.contentRef,T=r.isHintPopperOpen,V=r.setIsHintPopperOpen,B=n(!1),z=e(B,2),U=z[0],G=z[1],F=function(e){D(e,e===f&&R===a.ASC?a.DESC:a.ASC)};return w(d,{className:O.tableRow,children:[w(p,{className:l(O.headCell,O.wellNameCell,M),style:{width:P?g:k(s,v.name)},children:[w("div",{className:O.nameWrapper,children:[!K&&i&&N(u,{onClickAway:function(){return V(!1)},children:N(j,{open:T,interactive:!0,placement:"top-start",title:w("div",{className:O.popperContent,children:["Selected Offsets are automatically moved to the top of the list!",N("div",{className:O.popperButtonWrapper,children:N(m,{classes:{root:O.popperButton},onClick:function(){return V(!1)},children:"Got It"})})]}),arrow:"top",children:N(h,{size:"medium",onChange:function(e){return I(e.target.checked)},checked:q,indeterminate:S})})}),N(W,{title:"Sort",active:f===v.name,direction:f===v.name&&R===a.DESC?"desc":"asc",classes:{root:l(O.headerLabel,t({},O.cellDataViewOnly,K))},onClick:function(){return F(v.name)},children:"Well Name"})]}),N(c,{title:P?"Collapse":"Expand",children:N(y,{className:l(O.wellNameExpandIcon,t({},O.wellNameCollapsed,!P)),onClick:function(){return A(!P)}})})]}),N(p,{className:O.headCell,style:{width:k(s,v.status)}}),N(p,{className:O.headCell,style:{width:k(s,v.rig)},children:N("div",{className:O.nameWrapper,children:N(W,{title:"Sort",active:f===v.rig,direction:f===v.rig&&R===a.DESC?"desc":"asc",classes:{root:O.headerLabel},onClick:function(){return F(v.rig)},children:"Rig"})})}),N(p,{className:O.headCell,style:{width:k(s,v.distance)},children:N("div",{className:O.nameWrapper,children:N(W,{title:"Sort",active:f===v.distance,direction:f===v.distance&&R===a.DESC?"desc":"asc",classes:{root:O.headerLabel},onClick:function(){return F(v.distance)},children:"Distance (".concat(L?"miles":"km",")")})})}),N(p,{className:O.headCell,style:{width:k(s,v.lastActive)},children:N("div",{className:O.nameWrapper,children:N(W,{title:"Sort",active:f===v.lastActive,direction:f===v.lastActive&&R===a.DESC?"desc":"asc",classes:{root:O.headerLabel},onClick:function(){return F(v.lastActive)},children:"Last Active"})})}),o.map((function(e){return N(p,{className:O.headCell,style:{width:k(s,e)},children:N(W,{title:U?"":"Sort",active:f===e,direction:f===e&&R===a.DESC?"desc":"asc",classes:{root:O.headerLabel},onClick:function(){return F(e)},children:N(C,{isTooltipVisible:o.length>1,currentValue:e,onChange:function(t){return x(e,t)},setIsMenuOpen:G})})},e)})),N(p,{className:O.headCell,style:{width:k(s,v.wellSection)},children:N("div",{className:O.settingsHeader,children:N(b,{metricsKeys:o,onChange:E,contentRef:H})})})]})};D.propTypes={open:s.bool.isRequired,columnsWithDict:s.arrayOf(s.shape({key:s.string,label:s.string,type:s.string,width:s.number})).isRequired,metricsKeys:s.arrayOf(s.string).isRequired,sortBy:s.string.isRequired,sortDirection:s.string.isRequired,indeterminate:s.bool.isRequired,isAllWellsSelected:s.bool.isRequired,style:s.shape({}).isRequired,onChangeSort:s.func.isRequired,onChangeMetricsKeys:s.func.isRequired,onUpdateMetricsKey:s.func.isRequired,isWellNameExpand:s.bool.isRequired,setIsWellNameExpand:s.func.isRequired,handleChangeAllOffsetWells:s.func.isRequired,wellNameStyle:s.string.isRequired,isViewOnly:s.bool.isRequired,isImperial:s.bool.isRequired,isHintPopperOpen:s.bool.isRequired,setIsHintPopperOpen:s.func.isRequired,contentRef:s.shape({current:s.instanceOf(Element)}).isRequired};var E=i(D);export{E as default};
|
package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.module.css.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var l={tableRow:"OffsetWellsTableHead-module_tableRow__Gvgyt",headCell:"OffsetWellsTableHead-module_headCell__hMcRS",wellNameCell:"OffsetWellsTableHead-module_wellNameCell__yllCT",cellDataViewOnly:"OffsetWellsTableHead-module_cellDataViewOnly__dIoPu",nameWrapper:"OffsetWellsTableHead-module_nameWrapper__04GFY",headerLabel:"OffsetWellsTableHead-module_headerLabel__mOgMy",wellNameExpandIcon:"OffsetWellsTableHead-module_wellNameExpandIcon__-7Ioi",hiddenExpandIcon:"OffsetWellsTableHead-module_hiddenExpandIcon__W8MtT",wellNameCollapsed:"OffsetWellsTableHead-module_wellNameCollapsed__rVOqN",settingsHeader:"OffsetWellsTableHead-module_settingsHeader__2bsE7"};e(".OffsetWellsTableHead-module_tableRow__Gvgyt{display:flex!important;flex-direction:row!important}.OffsetWellsTableHead-module_headCell__hMcRS{align-items:center!important;background:var(--palette-background-b-9)!important;display:flex!important;height:48px!important;padding:0 12px 0 0!important}.OffsetWellsTableHead-module_wellNameCell__yllCT{align-items:center;display:flex!important;justify-content:space-between;left:0;position:sticky;z-index:9}.OffsetWellsTableHead-module_cellDataViewOnly__dIoPu{padding-left:12px!important}.OffsetWellsTableHead-module_nameWrapper__04GFY{align-items:center;display:flex}.OffsetWellsTableHead-module_headerLabel__mOgMy{color:var(--palette-primary-text-7)!important;display:flex!important;font-size:12px;font-weight:500;justify-content:flex-start!important;letter-spacing:.4px;line-height:14px;user-select:none;width:100%}.OffsetWellsTableHead-module_headerLabel__mOgMy:hover{color:var(--palette-primary-text-1)!important}.OffsetWellsTableHead-module_wellNameExpandIcon__-7Ioi{color:var(--palette-primary-text-6)!important;cursor:pointer;font-size:10px!important;transform:rotate(180deg)}.OffsetWellsTableHead-module_wellNameExpandIcon__-7Ioi:hover{color:var(--palette-primary-text-1)!important}.OffsetWellsTableHead-module_hiddenExpandIcon__W8MtT{display:none!important}.OffsetWellsTableHead-module_wellNameCollapsed__rVOqN{transform:rotate(0deg)}.OffsetWellsTableHead-module_settingsHeader__2bsE7{align-items:center;display:flex;flex:1;justify-content:space-between}");export{l as default};
|
|
1
|
+
import e from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var l={tableRow:"OffsetWellsTableHead-module_tableRow__Gvgyt",headCell:"OffsetWellsTableHead-module_headCell__hMcRS",wellNameCell:"OffsetWellsTableHead-module_wellNameCell__yllCT",cellDataViewOnly:"OffsetWellsTableHead-module_cellDataViewOnly__dIoPu",nameWrapper:"OffsetWellsTableHead-module_nameWrapper__04GFY",headerLabel:"OffsetWellsTableHead-module_headerLabel__mOgMy",wellNameExpandIcon:"OffsetWellsTableHead-module_wellNameExpandIcon__-7Ioi",hiddenExpandIcon:"OffsetWellsTableHead-module_hiddenExpandIcon__W8MtT",wellNameCollapsed:"OffsetWellsTableHead-module_wellNameCollapsed__rVOqN",settingsHeader:"OffsetWellsTableHead-module_settingsHeader__2bsE7",popperContent:"OffsetWellsTableHead-module_popperContent__Y5aQg",popperButtonWrapper:"OffsetWellsTableHead-module_popperButtonWrapper__LO3RD",popperButton:"OffsetWellsTableHead-module_popperButton__pdIMG"};e(".OffsetWellsTableHead-module_tableRow__Gvgyt{display:flex!important;flex-direction:row!important}.OffsetWellsTableHead-module_headCell__hMcRS{align-items:center!important;background:var(--palette-background-b-9)!important;display:flex!important;height:48px!important;padding:0 12px 0 0!important}.OffsetWellsTableHead-module_wellNameCell__yllCT{align-items:center;display:flex!important;justify-content:space-between;left:0;position:sticky;z-index:9}.OffsetWellsTableHead-module_cellDataViewOnly__dIoPu{padding-left:12px!important}.OffsetWellsTableHead-module_nameWrapper__04GFY{align-items:center;display:flex}.OffsetWellsTableHead-module_headerLabel__mOgMy{color:var(--palette-primary-text-7)!important;display:flex!important;font-size:12px;font-weight:500;justify-content:flex-start!important;letter-spacing:.4px;line-height:14px;user-select:none;width:100%}.OffsetWellsTableHead-module_headerLabel__mOgMy:hover{color:var(--palette-primary-text-1)!important}.OffsetWellsTableHead-module_wellNameExpandIcon__-7Ioi{color:var(--palette-primary-text-6)!important;cursor:pointer;font-size:10px!important;transform:rotate(180deg)}.OffsetWellsTableHead-module_wellNameExpandIcon__-7Ioi:hover{color:var(--palette-primary-text-1)!important}.OffsetWellsTableHead-module_hiddenExpandIcon__W8MtT{display:none!important}.OffsetWellsTableHead-module_wellNameCollapsed__rVOqN{transform:rotate(0deg)}.OffsetWellsTableHead-module_settingsHeader__2bsE7{align-items:center;display:flex;flex:1;justify-content:space-between}.OffsetWellsTableHead-module_popperContent__Y5aQg{display:flex;flex-direction:column;font-size:18px!important;gap:8px;line-height:24px!important}.OffsetWellsTableHead-module_popperButtonWrapper__LO3RD{display:flex;justify-content:flex-end}.OffsetWellsTableHead-module_popperButton__pdIMG{background:hsla(0,0%,100%,.24)!important;color:#fff!important;padding:4px!important;width:71px!important}.OffsetWellsTableHead-module_popperButton__pdIMG:hover{background:hsla(0,0%,100%,.08)!important}");export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{memo as
|
|
1
|
+
import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import{memo as r,useRef as i,useState as l,useCallback as n,useEffect as s}from"react";import a from"prop-types";import{startCase as o,get as c}from"lodash";import u from"classnames";import d from"moment";import{TableRow as m,TableCell as f,Checkbox as y,Tooltip as h,Typography as p}from"@material-ui/core";import{convertValue as b}from"../../../../utils/index.js";import{ColumnType as v,ROW_HEIGHT as N,EXPANED_WELLNAME_WIDTH as w,StatusOptions as g}from"../../constants.js";import{SubjectWellMark as R}from"./SubjectWellMark.js";import C from"./OffsetWellsTableRow.module.css.js";import{jsxs as W,jsx as q}from"react/jsx-runtime";function T(e,t,r){var i=t.find((function(e){return e.key===r})),l=c(e,i.key);return"undefined"===l?"loading...":Number.isFinite(l)||l?i.unitType?b(l,i.unitType,i.from,i.to):l:"—"}function k(e,t){var r=c(e,v.distance);return Number.isFinite(r)?t?r:b(r,"length","mi","km"):"—"}function O(e,t){var r=e.find((function(e){return e.key===t}));return(null==r?void 0:r.width)||0}var x=function(r){var a,c,b=r.columnsWithDict,x=r.data,j=r.subjectWellId,D=r.metricsKeys,M=r.metricsColumns,I=r.handleChanageOffsetWell,S=r.isWellNameExpand,A=r.wellNameStyle,Y=r.wellNameWidth,z=r.isViewOnly,E=r.isImperial,F=r.isLimitedOffsetwells,L=r.flyTo,V=r.containerRef,K=r.tableTop,P=j===x.id,H=t({},C.subjectWellRow,P),B=i(),G=i(),J=l(!1),Q=e(J,2),U=Q[0],X=Q[1],Z=i(),$=!1,_=x[v.name]||"—",ee=_;if(!S&&2*Y<8*_.length){var te=function(e){var t=document.createElement("span");document.body.appendChild(t),t.style.font="Roboto",t.style.fontSize="14px",t.style.letterSpacing="0.01071em",t.style.height="auto",t.style.width="auto",t.style.position="absolute",t.innerHTML=e;var r=Math.ceil(t.clientWidth);return document.body.removeChild(t),r}(_);if(te>2*Y){var re=2*Y/(te/_.length);ee="".concat(_.substring(0,re/2-2),"\n... ").concat(_.substring(_.length-re/2+6)),$=!0}}var ie=n((function(e,t){var r=t-e+16;B.current.style.position="absolute",B.current.style.top="".concat(e,"px"),B.current.style.zIndex=3,B.current.style.transition="transform ".concat(800,"ms ease"),B.current.style.transform="translateY(".concat(r,"px)")}),[]),le=n((function(){B.current.style.position="unset",B.current.style.zIndex=1,B.current.style.transition="none",B.current.style.transform="none"}),[]);s((function(){le(),X(!1),G.current&&(clearTimeout(G.current),G.current=null),Z.current=L}),[L]);var ne=n((function(e){if(!G.current){var t=B.current.offsetTop,r=L;e?Math.abs(r-t)>=7*N&&(V.current.scrollTo(0,r+K-2*N),t=r+K+7*N):r=t+7*N,X(!0),ie(t,r),G.current=setTimeout((function(){return I(x,e)}),800)}}),[x,L,K]);return W(m,{className:C.bodyRow,innerRef:B,children:[W(f,{className:u(C.bodyCell,C.wellNameCell,A,H),style:{width:S?w:O(b,v.name)},children:[P&&q(R,{className:C.subjectWellMark}),!P&&q(y,{size:"medium",checked:U&&Z.current===L?!x.checked:x.checked,disabled:z||F&&!x.checked,onChange:function(e){return ne(e.target.checked)}}),q(h,{title:$?_:"",children:q(p,{variant:"body2",className:u(C.wellNameCursor,(a={},t(a,C.cellDataViewOnly,P),t(a,C.wellNamePreWrap,$),a)),children:$?ee:_})})]}),q(f,{className:u(C.bodyCell,H),style:{width:O(b,v.status)},children:!P&&q(h,{title:o(x[v.status]),children:q("div",{className:C.status,style:{background:null===(c=g.find((function(e){return e.value===x[v.status]})))||void 0===c?void 0:c.color}})})}),q(f,{className:u(C.bodyCell,H),style:{width:O(b,v.rig)},children:q(p,{variant:"body2",className:C.cellData,children:x[v.rig]&&"Null"!==x[v.rig]?x[v.rig]:"—"})}),q(f,{className:u(C.bodyCell,H),style:{width:O(b,v.distance)},children:q(p,{variant:"body2",className:C.cellData,children:k(x,E)})}),q(f,{className:u(C.bodyCell,H),style:{width:O(b,v.lastActive)},children:q(p,{variant:"body2",className:C.cellData,children:x[v.lastActive]&&Number.isFinite(x[v.lastActive])?d.unix(x[v.lastActive]).format("MM/DD/YYYY"):"—"})}),D.map((function(e){return q(f,{className:u(C.bodyCell,H),style:{width:O(b,e)},children:q(p,{variant:"body2",className:C.cellData,children:T(x,M,e)})},e)})),q(f,{className:u(C.bodyCell,C.lastCell,H),style:{width:O(b,v.wellSection)}})]})};x.propTypes={columnsWithDict:a.arrayOf(a.shape({})).isRequired,data:a.shape({id:a.number,checked:a.bool,name:a.string,status:a.string}).isRequired,subjectWellId:a.number.isRequired,metricsKeys:a.arrayOf(a.string).isRequired,metricsColumns:a.arrayOf(a.shape({})).isRequired,handleChanageOffsetWell:a.func.isRequired,isWellNameExpand:a.bool.isRequired,wellNameStyle:a.string.isRequired,wellNameWidth:a.number.isRequired,isViewOnly:a.bool.isRequired,isImperial:a.bool.isRequired,isLimitedOffsetwells:a.bool.isRequired,flyTo:a.number.isRequired,containerRef:a.shape({current:a.instanceOf(Element)}).isRequired,tableTop:a.number.isRequired};var j=r(x);export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/toConsumableArray";import{sortBy as t}from"lodash";import"../../utils/index.js";import*as a from"../../utils/metrics/metricsConfig.js";var l="all",i="All",r="Entire Well",o=450,s=50,n=
|
|
1
|
+
import e from"@babel/runtime/helpers/toConsumableArray";import{sortBy as t}from"lodash";import"../../utils/index.js";import*as a from"../../utils/metrics/metricsConfig.js";var l="all",i="All",r="Entire Well",o=450,s=50,n=60,p=a,_={status:"status",rig:"rigName",program:"programName",basin:"basin",county:"county",area:"area",formation:"formation",stringDesign:"stringDesign",radius:"radius",period:"period",sideTracks:"sideTracks",timeRangeFrom:"timeRangeFrom",timeRangeTo:"timeRangeTo"},c=[{value:_.rig,label:"Rig"},{value:_.program,label:"Program"},{value:_.basin,label:"Basin"},{value:_.county,label:"County"},{value:_.area,label:"Area"},{value:_.formation,label:"Target Formation"},{value:_.stringDesign,label:"String Design"}],d={unknown:"unknown",idle:"idle",active:"active",paused:"paused",complete:"complete"},u=[{value:d.unknown,color:"#9E9E9E"},{value:d.idle,color:"#BDBDBD"},{value:d.active,color:"#95F126"},{value:d.paused,color:"#FFF350"},{value:d.complete,color:"#2196F3"}],m={name:"name",status:"status",rig:"rigName",distance:"distance",lastActive:"lastActive",metrics:"metrics",wellSection:"wellSection"},g=[{type:m.name,label:"Well Name",key:m.name,width:[340,310,285,203]},{type:m.status,label:"",key:m.status,width:[66,40,40,40]},{type:m.rig,label:"Rig",key:m.rig,width:[220,164,162,103]},{type:m.distance,label:"Distance",key:m.distance,width:[174,140,103,103]},{type:m.lastActive,label:"Last Active",key:m.lastActive,width:[180,126,108,108]},{type:m.metrics,label:"",key:"",width:[0,200,141,141]},{type:m.wellSection,label:"Well Section",key:m.wellSection,width:[40,40,40,40]}],v=[{value:"all",label:"All"},{value:"last12h",label:"Last 12 hrs"},{value:"last24h",label:"Last 24 hrs"},{value:"last7d",label:"Last 7 days"},{value:"lastMonth",label:"Last Month"},{value:"custom",label:"Сustom"}],b=3,y=t([p.weight_to_weight_average,p.bottom_to_slips_average,p.drilling_connection_average,p.slips_to_bottom_average,p.hole_depth,p.hole_depth_change,p.drilled_feet_rotary,p.drilled_feet_slide,p.rop_gross,p.rop,p.rop_rotary,p.rop_slide,p.drilled_feet_rotary_percentage,p.drilled_feet_slide_percentage,p.on_bottom_percentage,p.on_bottom_time,p.cost_per_ft,p.cost_per_lat_ft,p.feet_per_day,p.tripping_in_speed_cased,p.tripping_in_speed_open,p.tripping_in_speed,p.tripping_out_speed_cased,p.tripping_out_speed_open,p.tripping_out_speed].concat(e("production"!==process.env.REACT_APP_ENVIRONMENT?[p.npt,p.circulating_time,p.spud_to_rig_release_time,p.spud_to_total_depth_time]:[])),"label"),h=y.map((function(e){return e.key}));export{l as ALL_SECTION_KEY,i as ALL_SECTION_LABEL,m as ColumnType,r as ENTIRE_WELL_LABEL,o as EXPANED_WELLNAME_WIDTH,c as FilterOptions,_ as FilterType,b as MAX_METRICS_COUNT,h as METRICS_KEYS,y as METRICS_LIST,v as OBJECTIVE_PERIOD_LIST,s as ROWS_PER_PAGE,n as ROW_HEIGHT,u as StatusOptions,g as TableColumns,d as WellStatus};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useEffect as
|
|
1
|
+
import{useRef as r,useEffect as t}from"react";import{sortBy as n}from"lodash";function c(c,e,i,o){var a=r(-1);t((function(){if(e&&(-1===a.current&&(a.current=c),c&&a.current!==c)){a.current=c;var r=[];if(e.forEach((function(t){t.distance<=c&&r.push(t)})),o&&o<r.length){var t=n(r,"distance");i(t.slice(0,o))}else i(r)}}),[c,e])}export{c as useRadiusWells};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useState as t,useEffect as n}from"react";import{orderBy as o,isEmpty as i}from"lodash";import{SortDirection as c}from"react-virtualized";import{ColumnType as u}from"../constants.js";function f(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function a(r,f,a,l,s){var
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useState as t,useEffect as n}from"react";import{orderBy as o,isEmpty as i}from"lodash";import{SortDirection as c}from"react-virtualized";import{ColumnType as u}from"../constants.js";function f(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function a(r,f,a,l,s){var m=t(u.distance),b=e(m,2),d=b[0],O=b[1],y=t(c.ASC),j=e(y,2),h=j[0],P=j[1],v=t(null),g=e(v,2),w=g[0],D=g[1];return n((function(){if(f&&!s){var e=a.map((function(r){return r.id})),t=a.filter((function(e){return e.id!==(null==r?void 0:r.id)})),n=f.filter((function(r){return!e.includes(r.id)})),c=o(n,[function(r){return r[d]}],[h.toLowerCase()]),u=(i(r)?[]:[r]).concat(t).concat(c).map((function(r){return a.find((function(e){return e.id===r.id}))?p(p({},r),{},{checked:!0}):p(p({},r),{},{checked:!1})}));D(u),l(!1)}}),[f,d,h,r,a,s]),[d,O,h,P,w]}export{a as useSortedWells};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getUnitDescription as t,getUnitPreference as e}from"../../../utils/index.js";function i(){return"imperial"===t(e("length")).system}export{i as getIsImperial};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{Popover as r}from"@material-ui/core";import{useDelayedDcFullscreenElemOpen as o}from"../../effects/useDelayedDcFullscreenElemOpen.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsx as i}from"react/jsx-runtime";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"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../LoadingIndicator/LoadingIndicator.js";import"../../constants/segment.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import{useIsInsideDcFullscreenElem as n,IsInsideDcFullscreenElemProvider as s}from"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../Modal/CorvaModal.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/slicedToArray";import"react";import"classnames";import"lodash";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"../../constants/goals.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"../../utils/index.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{Popover as r}from"@material-ui/core";import{useDelayedDcFullscreenElemOpen as o}from"../../effects/useDelayedDcFullscreenElemOpen.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsx as i}from"react/jsx-runtime";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"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../LoadingIndicator/LoadingIndicator.js";import"../../constants/segment.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import{useIsInsideDcFullscreenElem as n,IsInsideDcFullscreenElemProvider as s}from"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../Modal/CorvaModal.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/slicedToArray";import"react";import"classnames";import"lodash";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"../../constants/goals.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"../../utils/index.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../Typography.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.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"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../RangeSlider/RangeSlider.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"../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/OffsetWellPickerV4.js";import"../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/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{useIsInsideDcApp as p}from"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.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"../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"../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js";var m=["children","open"];function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function l(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?a(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function j(e){var n=e.children,p=e.open,a=t(e,m),j=o({isOpen:p}).delayedIsOpen;return i(r,l(l({},a),{},{open:j,transitionDuration:0,children:i(s,{children:n})}))}function d(e){var t=p(),o=n();return i(t&&!o?j:r,l({},e))}export{d as Popover};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{Popper as r}from"@material-ui/core";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsx as o}from"react/jsx-runtime";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"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../LoadingIndicator/LoadingIndicator.js";import"../../constants/segment.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import{useIsInsideDcFullscreenElem as i,IsInsideDcFullscreenElemProvider as n}from"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../Modal/CorvaModal.js";import{useDelayedDcFullscreenElemOpen as s}from"../../effects/useDelayedDcFullscreenElemOpen.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/slicedToArray";import"react";import"classnames";import"lodash";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"../../constants/goals.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"../../utils/index.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{Popper as r}from"@material-ui/core";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsx as o}from"react/jsx-runtime";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"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../LoadingIndicator/LoadingIndicator.js";import"../../constants/segment.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import{useIsInsideDcFullscreenElem as i,IsInsideDcFullscreenElemProvider as n}from"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../Modal/CorvaModal.js";import{useDelayedDcFullscreenElemOpen as s}from"../../effects/useDelayedDcFullscreenElemOpen.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/slicedToArray";import"react";import"classnames";import"lodash";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"../../constants/goals.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"../../utils/index.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../Typography.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.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"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../RangeSlider/RangeSlider.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"../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/OffsetWellPickerV4.js";import"../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/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{useIsInsideDcApp as p}from"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.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"../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"../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js";var m=["children","open"];function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function l(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?a(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function j(e){var i=e.children,p=e.open,a=t(e,m),j=s({isOpen:p}).delayedIsOpen;return o(r,l(l({},a),{},{open:j,children:o(n,{children:i})}))}function d(e){var t=p(),n=i();return o(t&&!n?j:r,l({},e))}export{d as Popper};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from'./../../ext-esm/style-inject/dist/style-inject.es.js';var e={rangeSliderInput:"Input_rangeSliderInput__uoNkK",rotated:"Input_rotated__GBHlR"};t(".Input_rangeSliderInput__uoNkK{background:var(--palette-background-b-6);border:none;border:1px solid var(--palette-primary-text-6);border-radius:4px;color:var(--palette-primary-text-6);display:block;font-size:14px;font-weight:500;height:24px;line-height:24px;margin:0 0 0 auto;min-width:40px;outline:none;padding:2px 4px;text-align:center}.Input_rangeSliderInput__uoNkK:focus{border:1px solid var(--palette-primary-main);color:var(--palette-primary-contrast-text)}.Input_rotated__GBHlR{transform:rotate(180deg)}");export{e as default};
|
|
1
|
+
import t from'./../../ext-esm/style-inject/dist/style-inject.es.js';var e={rangeSliderInput:"Input_rangeSliderInput__uoNkK",rotated:"Input_rotated__GBHlR"};t(".Input_rangeSliderInput__uoNkK{background:var(--palette-background-b-6);border:none;border:1px solid var(--palette-primary-text-6);border-radius:4px;color:var(--palette-primary-text-6);cursor:default;display:block;font-size:14px;font-weight:500;height:24px;line-height:24px;margin:0 0 0 auto;min-width:40px;outline:none;padding:2px 4px;text-align:center}.Input_rangeSliderInput__uoNkK:focus{background-color:var(--palette-background-b-7)}.Input_rangeSliderInput__uoNkK:focus,.Input_rangeSliderInput__uoNkK:hover{border:1px solid var(--palette-primary-main);color:var(--palette-primary-contrast-text)}.Input_rotated__GBHlR{transform:rotate(180deg)}");export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'./../../ext-esm/style-inject/dist/style-inject.es.js';var r={rangeSliderHorizontal:"RangeSlider_rangeSliderHorizontal__SAdDE",rangeSliderVertical:"RangeSlider_rangeSliderVertical__k8ac-",rangeSliderRail:"RangeSlider_rangeSliderRail__ufDMI",rangeSliderRailHorizontal:"RangeSlider_rangeSliderRailHorizontal__rLPtT",rotatedVerticalRange:"RangeSlider_rotatedVerticalRange__-oEIw",rangeSliderRailVertical:"RangeSlider_rangeSliderRailVertical__4zKzk",rangeSliderBar:"RangeSlider_rangeSliderBar__Kj3LC",rangeSliderBarHorizontal:"RangeSlider_rangeSliderBarHorizontal__is0F7",rangeSliderBarVertical:"RangeSlider_rangeSliderBarVertical__2DexQ",rangeSliderBarView:"RangeSlider_rangeSliderBarView__6dNQB",rangeSliderBarViewHorizontal:"RangeSlider_rangeSliderBarViewHorizontal__6pRPw",rangeSliderBarViewVertical:"RangeSlider_rangeSliderBarViewVertical__W2QnY",rangeSliderThumb:"RangeSlider_rangeSliderThumb__KMaq0",rangeSliderLabel:"RangeSlider_rangeSliderLabel__3-qO8",rangeSliderInputDivider:"RangeSlider_rangeSliderInputDivider__PcwIK",rangeSliderCompactInputs:"RangeSlider_rangeSliderCompactInputs__ukFLL",disabled:"RangeSlider_disabled__8eBEv"};e(
|
|
1
|
+
import e from'./../../ext-esm/style-inject/dist/style-inject.es.js';var r={rangeSliderHorizontal:"RangeSlider_rangeSliderHorizontal__SAdDE",rangeSliderVertical:"RangeSlider_rangeSliderVertical__k8ac-",rangeSliderRail:"RangeSlider_rangeSliderRail__ufDMI",rangeSliderRailHorizontal:"RangeSlider_rangeSliderRailHorizontal__rLPtT",rotatedVerticalRange:"RangeSlider_rotatedVerticalRange__-oEIw",rangeSliderRailVertical:"RangeSlider_rangeSliderRailVertical__4zKzk",rangeSliderBar:"RangeSlider_rangeSliderBar__Kj3LC",rangeSliderBarHorizontal:"RangeSlider_rangeSliderBarHorizontal__is0F7",rangeSliderBarVertical:"RangeSlider_rangeSliderBarVertical__2DexQ",rangeSliderBarView:"RangeSlider_rangeSliderBarView__6dNQB",rangeSliderBarViewHorizontal:"RangeSlider_rangeSliderBarViewHorizontal__6pRPw",rangeSliderBarViewVertical:"RangeSlider_rangeSliderBarViewVertical__W2QnY",rangeSliderThumb:"RangeSlider_rangeSliderThumb__KMaq0",rangeSliderLabel:"RangeSlider_rangeSliderLabel__3-qO8",rangeSliderInputDivider:"RangeSlider_rangeSliderInputDivider__PcwIK",rangeSliderCompactInputs:"RangeSlider_rangeSliderCompactInputs__ukFLL",disabled:"RangeSlider_disabled__8eBEv"};e('.RangeSlider_rangeSliderHorizontal__SAdDE{align-items:center;display:flex;padding:30px 0 12px;position:relative}.RangeSlider_rangeSliderVertical__k8ac-{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;padding:0 30px}.RangeSlider_rangeSliderRail__ufDMI{background-color:rgba(99,239,255,.24);border-radius:1px;height:3px;position:relative}.RangeSlider_rangeSliderRail__ufDMI:after,.RangeSlider_rangeSliderRail__ufDMI:before{background:#63efff;border-radius:1px;content:"";height:3px;position:absolute;width:2px}.RangeSlider_rangeSliderRail__ufDMI:before{left:0;top:0}.RangeSlider_rangeSliderRail__ufDMI:after{right:0;top:0}.RangeSlider_rangeSliderRailHorizontal__rLPtT{margin:0 6px;width:100%}.RangeSlider_rotatedVerticalRange__-oEIw{transform:rotate(180deg)}.RangeSlider_rangeSliderVertical__k8ac- .RangeSlider_rangeSliderRail__ufDMI{width:3px}.RangeSlider_rangeSliderVertical__k8ac- .RangeSlider_rangeSliderRail__ufDMI:after,.RangeSlider_rangeSliderVertical__k8ac- .RangeSlider_rangeSliderRail__ufDMI:before{height:2px;width:3px}.RangeSlider_rangeSliderVertical__k8ac- .RangeSlider_rangeSliderRail__ufDMI:after{bottom:0!important;top:unset}.RangeSlider_rangeSliderRailVertical__4zKzk{height:100%;margin:6px 0;width:2px}.RangeSlider_rangeSliderBar__Kj3LC{position:absolute;z-index:1}.RangeSlider_rangeSliderBarHorizontal__is0F7{height:12px;margin:1px 0 0;transform:translateY(-50%)}.RangeSlider_rangeSliderBarVertical__2DexQ{height:100%;margin:1px 0 0;width:12px}.RangeSlider_rangeSliderBarView__6dNQB{background:var(--palette-primary-main);border-radius:1px}.RangeSlider_rangeSliderBarViewHorizontal__6pRPw{height:3px;margin:5px 0 0}.RangeSlider_rangeSliderBarViewVertical__W2QnY{height:100%;width:3px}.RangeSlider_rangeSliderBar__Kj3LC:hover>.RangeSlider_rangeSliderBarView__6dNQB{box-shadow:0 0 0 2px rgba(3,188,212,.2)}.RangeSlider_rangeSliderThumb__KMaq0{align-items:center;display:flex;height:25px;justify-content:center;position:absolute;transform:translate(-50%,-50%);width:25px;z-index:1}.RangeSlider_rangeSliderLabel__3-qO8{background:var(--palette-primary-main);border-radius:9px;height:9px;position:relative;transition:box-shadow .3s;width:9px}.RangeSlider_rangeSliderThumb__KMaq0:hover>.RangeSlider_rangeSliderLabel__3-qO8{box-shadow:0 0 0 8px rgba(3,188,212,.2)}.RangeSlider_rangeSliderInputDivider__PcwIK{background:var(--palette-background-b-9);color:#fff;font-size:10px;font-weight:500}.RangeSlider_rangeSliderCompactInputs__ukFLL{align-items:center;background:var(--palette-background-b-9);border-radius:4px;display:flex;justify-content:center;position:absolute;transform:translate(-50%,-50%)}.RangeSlider_disabled__8eBEv{opacity:.4}');export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/slicedToArray";import{useState as
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/slicedToArray";import{useState as t,useRef as r,useEffect as o}from"react";import i from"classnames";import{round as a,throttle as u}from"lodash";import l from"prop-types";import s from"./RangeSlider.css.js";import{horizontalStrategy as c}from"./strategies/horizontal.js";import{verticalStrategy as m}from"./strategies/vertical.js";import{calculatePercentForValue as f,updateFromValue as d,updateToValue as p,calculateValueFromPercent as g}from"./utils.js";import O from"./inputs/FromInput.js";import R from"./inputs/ToInput.js";import{RangeSliderControl as v,RangeSliderOrientation as b}from"./constants.js";import{jsxs as S,jsx as h}from"react/jsx-runtime";function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function T(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){e(n,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}var B=function(l){var y,B,I,M,j=l.min,C=l.max,N=l.from,w=l.to,A=l.minRange,P=l.disabled,F=l.onChange,V=l.orientation,L=l.precision,x=l.isSingleRange,E=l.isWithoutInput,z=t(null),D=n(z,2),H=D[0],U=D[1],_=t(null),W=n(_,2),q=W[0],X=W[1],Y=t(null),Z=n(Y,2),k=Z[0],G=Z[1],J=t(v.FROM),K=n(J,2),Q=K[0],$=K[1],ee=t(null),ne=n(ee,2),te=ne[0],re=ne[1],oe=t({}),ie=n(oe,2),ae=ie[0],ue=ie[1],le=t({from:!1,bar:!1,to:!1}),se=n(le,2),ce=se[0],me=se[1],fe=r(null),de=r(null),pe=r(null),ge=r(null),Oe=r(null),Re=V===b.HORIZONTAL,ve=V===b.VERTICAL,be=x&&E;o((function(){V===b.HORIZONTAL&&G(c),V===b.VERTICAL&&G(m)}),[V]),o((function(){x&&F({from:0,to:w})}),[x]),o((function(){if(k){var n,t=a(N,L),r=a(w,L),o=a(j,L),i=a(C,L),u=f(t,o,i),l=f(r,o,i);ue((e(n={},v.FROM,k.getThumbStyles(u,Q===v.FROM)),e(n,v.TO,k.getThumbStyles(l,Q===v.TO)),e(n,v.BAR,k.getBarStyles(u,l)),e(n,v.FROM_INPUT,k.getInputStyles(te===v.FROM||te===v.BAR||ce.from)),e(n,v.TO_INPUT,k.getInputStyles(te===v.TO||te===v.BAR||ce.to)),n)),U(t.toString()),X(r.toString())}}),[k,j,C,N,w,te,ce]);var Se=function(e){var n=k.getCoordinates(e,fe.current.getBoundingClientRect()),t=f(n.new,n.min,n.max),r=a(g(t,j,C),L);if(r!==N){var o=d(r,N,w,j,A);F(o)}},he=function(e){var n=ve&&x?k.getRotatedCoordinates(e,fe.current.getBoundingClientRect()):k.getCoordinates(e,fe.current.getBoundingClientRect()),t=f(n.new,n.min,n.max),r=a(g(t,j,C),L);if(r!==w){var o=p(r,N,w,C,A);F(o)}},ye=function(e,n){var t=k.getBarCoordinates(e,n,fe.current.getBoundingClientRect()),r=f(t.new,t.min,t.max),o=a(g(r,j,C),L),i=a(w+(o-N),L);if(o<j){var u=j-o;o=j,i=a(i+u,L)}if(i>C){var l=i-C;i=C,o=a(o-l,L)}o!==N&&i!==w&&o>=j&&i<=C&&F({from:o,to:i})},Te=function(n){n!==v.BAR?me(T(T({},ce),{},e({},n,!0))):me({from:!0,bar:!0,to:!0})},Be=function(n){n!==v.BAR?me(T(T({},ce),{},e({},n,!1))):me({from:!1,bar:!1,to:!1})},Ie=function(e,n){if(!(x&&e===v.BAR||P)){n.stopPropagation(),$(e),re(e);var t=n.clientX,r=n.clientY,o=n.target.getBoundingClientRect(),i=o.x,a=o.y,l=u((function(n){!function(e){return e===v.FROM?Se:e===v.TO?he:ye}(e)(n,{clientX:t,clientY:r,x:i,y:a})}),4);document.addEventListener("mousemove",l),document.addEventListener("mouseup",(function e(){re(null),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",e)}))}},Me=function(e,n){var t=n.target.value;Number.isNaN(t)||function(e){return e===v.FROM?U:X}(e)(t)},je=function(e,n){var t=n.target.value,r=a(t,L);if(e===v.FROM){var o=d(r,N,w,j,A);F(o)}if(e===v.TO){var i=p(r,N,w,C,A);F(i)}};return S("div",{className:i((y={},e(y,s.disabled,P),e(y,s.rangeSliderHorizontal,Re),e(y,s.rangeSliderVertical,ve),e(y,s.rotatedVerticalRange,ve&&x),y)),children:[!x&&h(O,{compStyles:ae[v.FROM_INPUT],isVerticalOrientation:ve,max:C,disabled:P,precision:L,fromInputRef:ge,from:N,fromInputValue:H,onInputChange:Me,validateInputChange:je}),S("div",{className:i(s.rangeSliderRail,(B={},e(B,s.rangeSliderRailHorizontal,Re),e(B,s.rangeSliderRailVertical,ve),B)),ref:fe,children:[!x&&h("div",{ref:de,className:s.rangeSliderThumb,style:ae[v.FROM],onMouseDown:function(e){return Ie(v.FROM,e)},onMouseEnter:function(){Te(v.FROM)},onMouseLeave:function(){Be(v.FROM)},children:h("div",{className:s.rangeSliderLabel})}),h("div",{className:i(s.rangeSliderBar,(I={},e(I,s.rangeSliderBarHorizontal,Re),e(I,s.rangeSliderBarVertical,ve),I)),style:ae[v.BAR],onMouseDown:function(e){return Ie(v.BAR,e)},onMouseEnter:function(){Te(v.BAR)},onMouseLeave:function(){Be(v.BAR)},children:h("div",{className:i(s.rangeSliderBarView,(M={},e(M,s.rangeSliderBarViewHorizontal,Re),e(M,s.rangeSliderBarViewVertical,ve),M))})}),h("div",{ref:pe,className:s.rangeSliderThumb,style:ae[v.TO],onMouseDown:function(e){return Ie(v.TO,e)},onMouseEnter:function(){Te(v.TO)},onMouseLeave:function(){Be(v.TO)},children:h("div",{className:s.rangeSliderLabel})})]}),!be&&h(R,{compStyles:ae[v.TO_INPUT],disabled:P,isVerticalOrientation:ve,rotated:ve&&x,max:C,precision:L,toInputRef:Oe,to:w,toInputValue:q,onInputChange:Me,validateInputChange:je})]})};B.propTypes={min:l.number,max:l.number,from:l.number.isRequired,to:l.number.isRequired,orientation:l.oneOf(["horizontal","vertical"]),precision:l.number,minRange:l.number,onChange:l.func,isSingleRange:l.bool,isWithoutInput:l.bool},B.defaultProps={min:0,max:100,orientation:"horizontal",precision:0,minRange:0,onChange:function(){},isSingleRange:!1,isWithoutInput:!1};export{B as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t={getCoordinates:function(t,n){return{new:t.clientX,min:n.x,max:n.x+n.width}},getBarCoordinates:function(t,n,e){var r=n.clientX-n.x;return{new:t.clientX-r,min:e.x,max:e.x+e.width}},getThumbStyles:function(t,n){return{top:"
|
|
1
|
+
var t={getCoordinates:function(t,n){return{new:t.clientX,min:n.x,max:n.x+n.width}},getBarCoordinates:function(t,n,e){var r=n.clientX-n.x;return{new:t.clientX-r,min:e.x,max:e.x+e.width}},getThumbStyles:function(t,n){return{top:"50%",left:"calc(".concat(t,t<50?"% + 3px)":"% - 3px)"),zIndex:n?10:2}},getBarStyles:function(t,n){return{left:"".concat(t,"%"),width:"".concat(n-t,"%")}},getInputStyles:function(t){return t?{border:"1px solid #03BCD4",color:"#ffffff",backgroundColor:"#333333"}:{}}};export{t as horizontalStrategy};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t={getCoordinates:function(t,n){return{new:t.clientY,min:n.y,max:n.y+n.height}},getRotatedCoordinates:function(t,n){return{new:n.y+n.height-t.clientY+n.y,min:n.y,max:n.y+n.height}},getBarCoordinates:function(t,n,e){var o=n.clientY-n.y;return{new:t.clientY-o,min:e.y,max:e.y+e.height}},getThumbStyles:function(t,n){return{left:"
|
|
1
|
+
var t={getCoordinates:function(t,n){return{new:t.clientY,min:n.y,max:n.y+n.height}},getRotatedCoordinates:function(t,n){return{new:n.y+n.height-t.clientY+n.y,min:n.y,max:n.y+n.height}},getBarCoordinates:function(t,n,e){var o=n.clientY-n.y;return{new:t.clientY-o,min:e.y,max:e.y+e.height}},getThumbStyles:function(t,n){return{left:"50%",top:"calc(".concat(t,t<50?"% + 3px)":"% - 3px)"),zIndex:n?10:2}},getBarStyles:function(t,n){return{top:"".concat(t,"%"),height:"".concat(n-t,"%")}},getInputStyles:function(t){return t?{border:"1px solid #03BCD4",color:"#ffffff",backgroundColor:"#333333"}:{}}};export{t as verticalStrategy};
|