@corva/ui 0.52.0-9 → 0.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/Chip/index.d.ts +1 -0
- package/components/Chip/index.d.ts.map +1 -1
- package/components/Comment/CommentIcon/index.d.ts +1 -0
- package/components/Comment/CommentIcon/index.d.ts.map +1 -1
- package/components/Counter/index.d.ts +1 -0
- package/components/Counter/index.d.ts.map +1 -1
- package/components/DatePicker/index.d.ts +1 -0
- package/components/DatePicker/index.d.ts.map +1 -1
- package/components/DateTimePicker/index.d.ts +1 -0
- package/components/DateTimePicker/index.d.ts.map +1 -1
- package/components/DevCenter/AppHeader/AppHeader.d.ts.map +1 -1
- package/components/DevCenter/AppHeader/AppHeader.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts +1 -0
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.d.ts +1 -0
- package/components/DevCenter/AppSideBar/AppSideBar.d.ts.map +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/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.d.ts +30 -13
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.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/EditableItem/EditableItem/index.d.ts +1 -0
- package/components/EditableItem/EditableItem/index.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js +1 -1
- package/components/FilesLoader/FilesLoader.d.ts +8 -1
- package/components/FilesLoader/FilesLoader.d.ts.map +1 -1
- package/components/FilesLoader/FilesLoader.js +1 -1
- package/components/IconButton/index.d.ts +1 -0
- package/components/IconButton/index.d.ts.map +1 -1
- package/components/LoadingIndicator/FullScreenLoadingIndicator.d.ts +1 -0
- package/components/LoadingIndicator/FullScreenLoadingIndicator.d.ts.map +1 -1
- package/components/LoadingIndicator/InlineLoadingIndicator.d.ts +1 -0
- package/components/LoadingIndicator/InlineLoadingIndicator.d.ts.map +1 -1
- package/components/LoadingIndicator/Loader.d.ts +1 -0
- package/components/LoadingIndicator/Loader.d.ts.map +1 -1
- package/components/LoadingIndicator/LoadingIndicator.d.ts +1 -0
- package/components/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
- package/components/Modal/CorvaModal.d.ts +1 -0
- package/components/Modal/CorvaModal.d.ts.map +1 -1
- package/components/Modal/DcCorvaModal.d.ts +1 -0
- package/components/Modal/DcCorvaModal.d.ts.map +1 -1
- package/components/Modal/Modal.d.ts +1 -0
- package/components/Modal/Modal.d.ts.map +1 -1
- package/components/OffsetWellButton/OffsetWellButton.d.ts +5 -1
- package/components/OffsetWellButton/OffsetWellButton.d.ts.map +1 -1
- package/components/OffsetWellButton/OffsetWellButton.js +1 -1
- package/components/OffsetWellChips/Chip.d.ts +1 -0
- package/components/OffsetWellChips/Chip.d.ts.map +1 -1
- package/components/OffsetWellChips/ChipsContainer.d.ts +1 -0
- package/components/OffsetWellChips/ChipsContainer.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/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.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.module.css.js +1 -1
- package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.d.ts +1 -5
- package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js +1 -1
- package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.module.css.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.d.ts +3 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.d.ts +3 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.module.css.js +1 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/components/OffsetWellPickerV4/constants.d.ts +1 -1
- package/components/OffsetWellPickerV4/constants.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/constants.js +1 -1
- package/components/Popover/Popover.d.ts.map +1 -1
- package/components/Popover/Popover.js +1 -1
- package/components/RangeSlider/RangeSlider.d.ts +1 -0
- package/components/RangeSlider/RangeSlider.d.ts.map +1 -1
- package/components/ResizableTable/ResizableTable.d.ts +1 -0
- package/components/ResizableTable/ResizableTable.d.ts.map +1 -1
- package/components/ResizableTable/ResizableTableCell.d.ts +1 -0
- package/components/ResizableTable/ResizableTableCell.d.ts.map +1 -1
- package/components/ResizableTable/ResizableTableHeaderCell.d.ts +1 -0
- package/components/ResizableTable/ResizableTableHeaderCell.d.ts.map +1 -1
- package/components/Search/Search.d.ts +1 -0
- package/components/Search/Search.d.ts.map +1 -1
- package/components/Select/index.d.ts +1 -0
- package/components/Select/index.d.ts.map +1 -1
- package/components/SettingEditors/RadioEditor/index.d.ts +1 -0
- package/components/SettingEditors/RadioEditor/index.d.ts.map +1 -1
- package/components/Stepper/Step.d.ts +1 -0
- package/components/Stepper/Step.d.ts.map +1 -1
- package/components/Stepper/Stepper.d.ts +1 -0
- package/components/Stepper/Stepper.d.ts.map +1 -1
- package/components/Stepper/StepsWrapper.d.ts +1 -0
- package/components/Stepper/StepsWrapper.d.ts.map +1 -1
- package/components/TextLink/index.d.ts +1 -0
- package/components/TextLink/index.d.ts.map +1 -1
- package/components/Tooltip/MuiTooltipDcWrapper.d.ts.map +1 -1
- package/components/Tooltip/MuiTooltipDcWrapper.js +1 -1
- package/components/VirtualizedTable/VirtualizedTable.d.ts.map +1 -1
- package/components/VirtualizedTable/VirtualizedTable.js +1 -1
- package/effects/useDelayedDcFullscreenElemOpen.d.ts +6 -4
- package/effects/useDelayedDcFullscreenElemOpen.d.ts.map +1 -1
- package/effects/useDelayedDcFullscreenElemOpen.js +1 -1
- package/ext-esm/tslib/tslib.es6.js +1 -1
- package/package.json +3 -3
- package/permissions/constants/abilities.d.ts +1 -0
- package/permissions/constants/abilities.js +1 -1
- package/permissions/constants/index.d.ts +1 -0
- package/permissions/constants/index.d.ts.map +1 -1
- package/permissions/constants/index.js +1 -1
- package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.js +0 -1
- package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.module.css.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{memo as e}from"react";import{isEmpty as t}from"lodash";import o from"prop-types";import{Grid as r}from"@material-ui/core";import{isMobileDetected as i}from"../../../../../utils/mobileDetect.js";import{jsxs as n,jsx as s}from"react/jsx-runtime";import"../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";import"@babel/runtime/helpers/slicedToArray";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../ImagesGrid/index.js";import"../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../DevCenter/SideBar/SideBar.js";import"../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../DevCenter/AppContext.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Typography.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../CopyToClipboard/CopyToClipboard.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../Chart/components/ChartButton.js";import"../../../../Chart/components/ChartButtons.js";import"../../../../Chart/components/ChartWrapper.js";import"../../../../Chart/components/AxisDropdown.js";import"../../../../Chart/components/buttons/DragToZoomButton.js";import"../../../../Chart/components/buttons/ZoomInButton.js";import"../../../../Chart/components/buttons/ZoomOutButton.js";import"../../../../Chart/components/buttons/PanButton.js";import"../../../../Chart/components/buttons/ResetZoomButton.js";import"../../../../Chart/components/buttons/HideAxesButton.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../AdvancedSlider/AdvancedSlider.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/EmptyView.js";import"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../Button/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../CustomSelect/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../ResizableTable/ResizableTable.js";import"../../../BHASchematic.js";import"../../../BHATable/index.js";import p from"../../../BHAComponentIcon.js";import"../../../BHAComponentDetail/index.js";import"../../../BHATileIcon.js";import"../../../BHATile/BHATile.js";import"../../../BHAList/BHAList.js";import"../../BHAComponentsTable.js";import"../../../../Casing/CasingTable/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTileIcon.js";import"../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../Casing/CasingTile/CasingTile.js";import"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../../clients/jsonApi/index.js";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import{COMPONENT_MATERIALS as m}from"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../OffsetWellPickerV3/index.js";import"../../../../OffsetWellChips/Chip.js";import"../../../../OffsetWellChips/ChipsContainer.js";import"../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.js";import"../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../../Toaster/Toaster.js";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"../../../../Table/TableContainer/TableContainer.js";import"../../../../Table/TableCell/TableCell.js";import"../../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";import"../../../../FilesLoader/Icons/FileIcon.js";import"../../../../SearchInput/index.js";import"../../../../FeedItem/FeedItem.js";import"../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../../PostInput/PostInput.js";import"../../../../KeyboardDateTimePicker.js";import"../../../../AddComment/Popover.js";import"../../../../AddComment/Popup.js";import"../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../StageDesignVActual/ComparisonRow.js";import"../../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../../EmbeddedApp/EmbeddedApp.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../../Autocomplete/Autocomplete.js";import"../../../../DocumentViewer/DocumentViewer.js";import"../../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../../Search/Search.js";import"../../../../Search/components/Listbox.js";import"../../../../Search/components/Paper.js";import"../../../../Search/components/RecentSearches.js";import"../../../../Search/components/InputAdornmentLeft.js";import"../../../../Search/components/Groups.js";import{useStyles as a}from"../sharedStyles.js";import{CancelButton as l}from"../shared/CancelButton.js";import"../shared/ExpandCollapseButton.js";import"../shared/FormatedNumber.js";import{InputText as d}from"../shared/InputText.js";import"../shared/MoreButton.js";import{SaveButton as j}from"../shared/SaveButton.js";import{SelectField as c}from"../shared/SelectField.js";import"../shared/StaticField.js";import{SharedEditorElements as C}from"../shared/SharedEditorElements.js";import"../shared/ConfirmationPopup.js";import{CONTAINER_XS as u}from"../constants.js";function A(e){var o=e.component,A=e.error,h=e.onChange,b=e.onCancel,v=e.onSave,D=e.columns,g=a({isMobile:i}),f=i?u/2:u/D,S=function(e){return A&&A[e]};return n(r,{container:!0,spacing:0,className:g.editorContainer,children:[!i&&s(r,{item:!0,className:g.editorComponentSize,children:s(p,{component:o})}),s(r,{item:!0,className:g.eidtorContentContainer,children:n(r,{container:!0,spacing:2,children:[s(C,{component:o,getError:S,onChange:h}),s(d,{type:"name",label:"Name",value:o.name,error:S("name"),xs:f,onChangeField:h}),s(d,{type:"weight",label:"T.Weight",unit:"mass",value:o.weight,error:S("weight"),disabled:!0,xs:f,onChangeField:h}),s(d,{type:"connection_type",label:"Connection Type",value:o.connection_type,error:S("connection_type"),xs:f,onChangeField:h}),s(c,{type:"material",options:m,label:"Material",value:o.material,error:S("material"),xs:f,onChangeField:h})]})}),!i&&n(r,{item:!0,className:g.eidtorActionGroup,children:[s(l,{handleCancel:b}),s(j,{handleSave:v,disabled:!t(A)})]})]})}A.propTypes={component:o.shape({name:o.string,weight:o.number,connection_type:o.string,material:o.string}).isRequired,error:o.shape({}),onChange:o.func.isRequired,onCancel:o.func.isRequired,onSave:o.func.isRequired,columns:o.number.isRequired},A.defaultProps={error:null};var h=e(A);export{h as default};
|
|
1
|
+
import{memo as e}from"react";import{isEmpty as t}from"lodash";import o from"prop-types";import{Grid as r}from"@material-ui/core";import{isMobileDetected as i}from"../../../../../utils/mobileDetect.js";import{jsxs as n,jsx as s}from"react/jsx-runtime";import"../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";import"uuid";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../ImagesGrid/index.js";import"../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../DevCenter/SideBar/SideBar.js";import"../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../DevCenter/AppContext.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Typography.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../CopyToClipboard/CopyToClipboard.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../Chart/components/ChartButton.js";import"../../../../Chart/components/ChartButtons.js";import"../../../../Chart/components/ChartWrapper.js";import"../../../../Chart/components/AxisDropdown.js";import"../../../../Chart/components/buttons/DragToZoomButton.js";import"../../../../Chart/components/buttons/ZoomInButton.js";import"../../../../Chart/components/buttons/ZoomOutButton.js";import"../../../../Chart/components/buttons/PanButton.js";import"../../../../Chart/components/buttons/ResetZoomButton.js";import"../../../../Chart/components/buttons/HideAxesButton.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../AdvancedSlider/AdvancedSlider.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/EmptyView.js";import"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../Button/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../CustomSelect/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../ResizableTable/ResizableTable.js";import"../../../BHASchematic.js";import"../../../BHATable/index.js";import p from"../../../BHAComponentIcon.js";import"../../../BHAComponentDetail/index.js";import"../../../BHATileIcon.js";import"../../../BHATile/BHATile.js";import"../../../BHAList/BHAList.js";import"../../BHAComponentsTable.js";import"../../../../Casing/CasingTable/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTileIcon.js";import"../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../Casing/CasingTile/CasingTile.js";import"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../../clients/jsonApi/index.js";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import{COMPONENT_MATERIALS as m}from"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../OffsetWellPickerV3/index.js";import"../../../../OffsetWellChips/Chip.js";import"../../../../OffsetWellChips/ChipsContainer.js";import"../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.js";import"../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"../../../../Toaster/Toaster.js";import"../../../../ConfirmationDialog.js";import"../../../../TextLink/index.js";import"../../../../Avatar/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../MenuItem/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../../PadOffsetsPicker/StagesSelector.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../Table/TableContainer/TableContainer.js";import"../../../../Table/TableCell/TableCell.js";import"../../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";import"../../../../FilesLoader/Icons/FileIcon.js";import"../../../../SearchInput/index.js";import"../../../../FeedItem/FeedItem.js";import"../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../../PostInput/PostInput.js";import"../../../../KeyboardDateTimePicker.js";import"../../../../AddComment/Popover.js";import"../../../../AddComment/Popup.js";import"../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../StageDesignVActual/ComparisonRow.js";import"../../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../../EmbeddedApp/EmbeddedApp.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../../Autocomplete/Autocomplete.js";import"../../../../DocumentViewer/DocumentViewer.js";import"../../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../../Search/Search.js";import"../../../../Search/components/Listbox.js";import"../../../../Search/components/Paper.js";import"../../../../Search/components/RecentSearches.js";import"../../../../Search/components/InputAdornmentLeft.js";import"../../../../Search/components/Groups.js";import{useStyles as a}from"../sharedStyles.js";import{CancelButton as l}from"../shared/CancelButton.js";import"../shared/ExpandCollapseButton.js";import"../shared/FormatedNumber.js";import{InputText as d}from"../shared/InputText.js";import"../shared/MoreButton.js";import{SaveButton as j}from"../shared/SaveButton.js";import{SelectField as c}from"../shared/SelectField.js";import"../shared/StaticField.js";import{SharedEditorElements as C}from"../shared/SharedEditorElements.js";import"../shared/ConfirmationPopup.js";import{CONTAINER_XS as u}from"../constants.js";function A(e){var o=e.component,A=e.error,h=e.onChange,b=e.onCancel,v=e.onSave,D=e.columns,g=a({isMobile:i}),f=i?u/2:u/D,S=function(e){return A&&A[e]};return n(r,{container:!0,spacing:0,className:g.editorContainer,children:[!i&&s(r,{item:!0,className:g.editorComponentSize,children:s(p,{component:o})}),s(r,{item:!0,className:g.eidtorContentContainer,children:n(r,{container:!0,spacing:2,children:[s(C,{component:o,getError:S,onChange:h}),s(d,{type:"name",label:"Name",value:o.name,error:S("name"),xs:f,onChangeField:h}),s(d,{type:"weight",label:"T.Weight",unit:"mass",value:o.weight,error:S("weight"),disabled:!0,xs:f,onChangeField:h}),s(d,{type:"connection_type",label:"Connection Type",value:o.connection_type,error:S("connection_type"),xs:f,onChangeField:h}),s(c,{type:"material",options:m,label:"Material",value:o.material,error:S("material"),xs:f,onChangeField:h})]})}),!i&&n(r,{item:!0,className:g.eidtorActionGroup,children:[s(l,{handleCancel:b}),s(j,{handleSave:v,disabled:!t(A)})]})]})}A.propTypes={component:o.shape({name:o.string,weight:o.number,connection_type:o.string,material:o.string}).isRequired,error:o.shape({}),onChange:o.func.isRequired,onCancel:o.func.isRequired,onSave:o.func.isRequired,columns:o.number.isRequired},A.defaultProps={error:null};var h=e(A);export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{memo as e}from"react";import{isEmpty as t}from"lodash";import o from"prop-types";import{Grid as r}from"@material-ui/core";import{isMobileDetected as i}from"../../../../../utils/mobileDetect.js";import{jsxs as n,jsx as s}from"react/jsx-runtime";import"../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";import"@babel/runtime/helpers/slicedToArray";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../ImagesGrid/index.js";import"../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../DevCenter/SideBar/SideBar.js";import"../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../DevCenter/AppContext.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Typography.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../CopyToClipboard/CopyToClipboard.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../Chart/components/ChartButton.js";import"../../../../Chart/components/ChartButtons.js";import"../../../../Chart/components/ChartWrapper.js";import"../../../../Chart/components/AxisDropdown.js";import"../../../../Chart/components/buttons/DragToZoomButton.js";import"../../../../Chart/components/buttons/ZoomInButton.js";import"../../../../Chart/components/buttons/ZoomOutButton.js";import"../../../../Chart/components/buttons/PanButton.js";import"../../../../Chart/components/buttons/ResetZoomButton.js";import"../../../../Chart/components/buttons/HideAxesButton.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../AdvancedSlider/AdvancedSlider.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/EmptyView.js";import"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../Button/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../CustomSelect/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../ResizableTable/ResizableTable.js";import"../../../BHASchematic.js";import"../../../BHATable/index.js";import p from"../../../BHAComponentIcon.js";import"../../../BHAComponentDetail/index.js";import"../../../BHATileIcon.js";import"../../../BHATile/BHATile.js";import"../../../BHAList/BHAList.js";import"../../BHAComponentsTable.js";import"../../../../Casing/CasingTable/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTileIcon.js";import"../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../Casing/CasingTile/CasingTile.js";import"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../../clients/jsonApi/index.js";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import{COMPONENT_MATERIALS as a}from"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../OffsetWellPickerV3/index.js";import"../../../../OffsetWellChips/Chip.js";import"../../../../OffsetWellChips/ChipsContainer.js";import"../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.js";import"../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import"../../../../Toaster/Toaster.js";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"../../../../Table/TableContainer/TableContainer.js";import"../../../../Table/TableCell/TableCell.js";import"../../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";import"../../../../FilesLoader/Icons/FileIcon.js";import"../../../../SearchInput/index.js";import"../../../../FeedItem/FeedItem.js";import"../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../../PostInput/PostInput.js";import"../../../../KeyboardDateTimePicker.js";import"../../../../AddComment/Popover.js";import"../../../../AddComment/Popup.js";import"../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../StageDesignVActual/ComparisonRow.js";import"../../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../../EmbeddedApp/EmbeddedApp.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../../Autocomplete/Autocomplete.js";import"../../../../DocumentViewer/DocumentViewer.js";import"../../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../../Search/Search.js";import"../../../../Search/components/Listbox.js";import"../../../../Search/components/Paper.js";import"../../../../Search/components/RecentSearches.js";import"../../../../Search/components/InputAdornmentLeft.js";import"../../../../Search/components/Groups.js";import{CONTAINER_XS as m,UR_ACTIVATION_LOGIC_TYPES as l,UR_ACTIVATION_LOGIC_KEYS as d}from"../constants.js";import{useStyles as c}from"../sharedStyles.js";import{CancelButton as j}from"../shared/CancelButton.js";import"../shared/ExpandCollapseButton.js";import"../shared/FormatedNumber.js";import{InputText as C}from"../shared/InputText.js";import"../shared/MoreButton.js";import{SaveButton as u}from"../shared/SaveButton.js";import{SelectField as h}from"../shared/SelectField.js";import"../shared/StaticField.js";import{SharedEditorElements as b}from"../shared/SharedEditorElements.js";import"../shared/ConfirmationPopup.js";function g(e){var o=e.component,g=e.error,A=e.onChange,v=e.onCancel,f=e.onSave,D=e.columns,x=c({isMobile:i}),S=i?m/2:m/D,P=function(e){return g&&g[e]};return n(r,{container:!0,spacing:0,className:x.editorContainer,children:[!i&&s(r,{item:!0,className:x.editorComponentSize,children:s(p,{component:o})}),s(r,{item:!0,className:x.eidtorContentContainer,children:n(r,{container:!0,spacing:2,children:[s(b,{component:o,getError:P,onChange:A}),s(C,{type:"name",label:"Name",value:o.name,error:P("name"),xs:S,onChangeField:A}),s(C,{type:"weight",label:"T.Weight",unit:"mass",value:o.weight,error:P("weight"),disabled:!0,xs:S,onChangeField:A}),s(C,{type:"connection_type",label:"Connection Type",value:o.connection_type,error:P("connection_type"),xs:S,onChangeField:A}),s(h,{type:"material",options:a,label:"Material",value:o.material,error:P("material"),xs:S,onChangeField:A}),s(r,{item:!0,xs:m,children:s("span",{className:x.additionalTitle,children:"Under Reamer Configuration"})}),s(C,{type:"ur_opened_od",label:"Max OD (Opened)",unit:"shortLength",value:o.ur_opened_od,error:P("ur_opened_od"),xs:S,onChangeField:A}),s(C,{type:"gauge_length",label:"Gauge Length",unit:"shortLength",value:o.gauge_length,error:P("gauge_length"),xs:S,onChangeField:A}),s(C,{type:"no_of_blades",label:"# of Blades",value:o.no_of_blades,error:P("no_of_blades"),xs:S,onChangeField:A}),s(C,{type:"blade_width",label:"Blade Width",unit:"shortLength",value:o.blade_width,error:P("blade_width"),xs:S,onChangeField:A}),s(C,{type:"ur_to_bit",label:"Reamer to Bit Distance",unit:"length",value:o.ur_to_bit,error:P("ur_to_bit"),xs:S,onChangeField:A}),s(C,{type:"flow_rate",label:"Flow Rate",unit:"volumeFlowRate",value:o.flow_rate,error:P("flow_rate"),xs:S,onChangeField:A}),s(C,{type:"tfa",label:"TFA",value:o.tfa,error:P("tfa"),xs:S,onChangeField:A}),s(h,{type:"activation_logic",options:l,label:"Activation Logic",value:o.activation_logic,error:P("activation_logic"),xs:S,onChangeField:A}),o.activation_logic===d.DEPTH_ACTIVATION&&s(C,{type:"ur_opened_depth",label:"Activation Depth",unit:"length",value:o.ur_opened_depth,error:P("ur_opened_depth"),xs:S,onChangeField:function(e,t){return A(e,+t)}})]})}),!i&&n(r,{item:!0,className:x.eidtorActionGroup,children:[s(j,{handleCancel:v}),s(u,{handleSave:f,disabled:!t(g)})]})]})}g.propTypes={component:o.shape({name:o.string,weight:o.number,connection_type:o.string,material:o.string,ur_opened_od:o.number,gauge_length:o.number,no_of_blades:o.number,blade_width:o.number,ur_to_bit:o.number,flow_rate:o.number,tfa:o.number,activation_logic:o.string,ur_opened_depth:o.number}).isRequired,error:o.shape({}),onChange:o.func.isRequired,onCancel:o.func.isRequired,onSave:o.func.isRequired,columns:o.number.isRequired},g.defaultProps={error:null};var A=e(g);export{A as default};
|
|
1
|
+
import{memo as e}from"react";import{isEmpty as t}from"lodash";import o from"prop-types";import{Grid as r}from"@material-ui/core";import{isMobileDetected as i}from"../../../../../utils/mobileDetect.js";import{jsxs as n,jsx as s}from"react/jsx-runtime";import"../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";import"uuid";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../ImagesGrid/index.js";import"../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../DevCenter/SideBar/SideBar.js";import"../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../DevCenter/AppContext.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Typography.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../CopyToClipboard/CopyToClipboard.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../Chart/components/ChartButton.js";import"../../../../Chart/components/ChartButtons.js";import"../../../../Chart/components/ChartWrapper.js";import"../../../../Chart/components/AxisDropdown.js";import"../../../../Chart/components/buttons/DragToZoomButton.js";import"../../../../Chart/components/buttons/ZoomInButton.js";import"../../../../Chart/components/buttons/ZoomOutButton.js";import"../../../../Chart/components/buttons/PanButton.js";import"../../../../Chart/components/buttons/ResetZoomButton.js";import"../../../../Chart/components/buttons/HideAxesButton.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../AdvancedSlider/AdvancedSlider.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/EmptyView.js";import"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../Button/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../IconButton/index.js";import"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../CustomSelect/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../ResizableTable/ResizableTable.js";import"../../../BHASchematic.js";import"../../../BHATable/index.js";import p from"../../../BHAComponentIcon.js";import"../../../BHAComponentDetail/index.js";import"../../../BHATileIcon.js";import"../../../BHATile/BHATile.js";import"../../../BHAList/BHAList.js";import"../../BHAComponentsTable.js";import"../../../../Casing/CasingTable/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTileIcon.js";import"../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../Casing/CasingTile/CasingTile.js";import"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../../clients/jsonApi/index.js";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import{COMPONENT_MATERIALS as a}from"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../OffsetWellPickerV3/index.js";import"../../../../OffsetWellChips/Chip.js";import"../../../../OffsetWellChips/ChipsContainer.js";import"../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.js";import"../../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"../../../../Toaster/Toaster.js";import"../../../../ConfirmationDialog.js";import"../../../../TextLink/index.js";import"../../../../Avatar/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../MenuItem/index.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../../PadOffsetsPicker/StagesSelector.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../Table/TableContainer/TableContainer.js";import"../../../../Table/TableCell/TableCell.js";import"../../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";import"../../../../FilesLoader/Icons/FileIcon.js";import"../../../../SearchInput/index.js";import"../../../../FeedItem/FeedItem.js";import"../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../../PostInput/PostInput.js";import"../../../../KeyboardDateTimePicker.js";import"../../../../AddComment/Popover.js";import"../../../../AddComment/Popup.js";import"../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../StageDesignVActual/ComparisonRow.js";import"../../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../../EmbeddedApp/EmbeddedApp.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../../Autocomplete/Autocomplete.js";import"../../../../DocumentViewer/DocumentViewer.js";import"../../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../../Search/Search.js";import"../../../../Search/components/Listbox.js";import"../../../../Search/components/Paper.js";import"../../../../Search/components/RecentSearches.js";import"../../../../Search/components/InputAdornmentLeft.js";import"../../../../Search/components/Groups.js";import{CONTAINER_XS as m,UR_ACTIVATION_LOGIC_TYPES as l,UR_ACTIVATION_LOGIC_KEYS as d}from"../constants.js";import{useStyles as c}from"../sharedStyles.js";import{CancelButton as j}from"../shared/CancelButton.js";import"../shared/ExpandCollapseButton.js";import"../shared/FormatedNumber.js";import{InputText as C}from"../shared/InputText.js";import"../shared/MoreButton.js";import{SaveButton as u}from"../shared/SaveButton.js";import{SelectField as h}from"../shared/SelectField.js";import"../shared/StaticField.js";import{SharedEditorElements as b}from"../shared/SharedEditorElements.js";import"../shared/ConfirmationPopup.js";function g(e){var o=e.component,g=e.error,A=e.onChange,v=e.onCancel,f=e.onSave,D=e.columns,x=c({isMobile:i}),S=i?m/2:m/D,P=function(e){return g&&g[e]};return n(r,{container:!0,spacing:0,className:x.editorContainer,children:[!i&&s(r,{item:!0,className:x.editorComponentSize,children:s(p,{component:o})}),s(r,{item:!0,className:x.eidtorContentContainer,children:n(r,{container:!0,spacing:2,children:[s(b,{component:o,getError:P,onChange:A}),s(C,{type:"name",label:"Name",value:o.name,error:P("name"),xs:S,onChangeField:A}),s(C,{type:"weight",label:"T.Weight",unit:"mass",value:o.weight,error:P("weight"),disabled:!0,xs:S,onChangeField:A}),s(C,{type:"connection_type",label:"Connection Type",value:o.connection_type,error:P("connection_type"),xs:S,onChangeField:A}),s(h,{type:"material",options:a,label:"Material",value:o.material,error:P("material"),xs:S,onChangeField:A}),s(r,{item:!0,xs:m,children:s("span",{className:x.additionalTitle,children:"Under Reamer Configuration"})}),s(C,{type:"ur_opened_od",label:"Max OD (Opened)",unit:"shortLength",value:o.ur_opened_od,error:P("ur_opened_od"),xs:S,onChangeField:A}),s(C,{type:"gauge_length",label:"Gauge Length",unit:"shortLength",value:o.gauge_length,error:P("gauge_length"),xs:S,onChangeField:A}),s(C,{type:"no_of_blades",label:"# of Blades",value:o.no_of_blades,error:P("no_of_blades"),xs:S,onChangeField:A}),s(C,{type:"blade_width",label:"Blade Width",unit:"shortLength",value:o.blade_width,error:P("blade_width"),xs:S,onChangeField:A}),s(C,{type:"ur_to_bit",label:"Reamer to Bit Distance",unit:"length",value:o.ur_to_bit,error:P("ur_to_bit"),xs:S,onChangeField:A}),s(C,{type:"flow_rate",label:"Flow Rate",unit:"volumeFlowRate",value:o.flow_rate,error:P("flow_rate"),xs:S,onChangeField:A}),s(C,{type:"tfa",label:"TFA",value:o.tfa,error:P("tfa"),xs:S,onChangeField:A}),s(h,{type:"activation_logic",options:l,label:"Activation Logic",value:o.activation_logic,error:P("activation_logic"),xs:S,onChangeField:A}),o.activation_logic===d.DEPTH_ACTIVATION&&s(C,{type:"ur_opened_depth",label:"Activation Depth",unit:"length",value:o.ur_opened_depth,error:P("ur_opened_depth"),xs:S,onChangeField:function(e,t){return A(e,+t)}})]})}),!i&&n(r,{item:!0,className:x.eidtorActionGroup,children:[s(j,{handleCancel:v}),s(u,{handleSave:f,disabled:!t(g)})]})]})}g.propTypes={component:o.shape({name:o.string,weight:o.number,connection_type:o.string,material:o.string,ur_opened_od:o.number,gauge_length:o.number,no_of_blades:o.number,blade_width:o.number,ur_to_bit:o.number,flow_rate:o.number,tfa:o.number,activation_logic:o.string,ur_opened_depth:o.number}).isRequired,error:o.shape({}),onChange:o.func.isRequired,onCancel:o.func.isRequired,onSave:o.func.isRequired,columns:o.number.isRequired},g.defaultProps={error:null};var A=e(g);export{A as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/EditableItem/EditableItem/index.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAsGnC,aAAK,iBAAiB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE5E,QAAA,MAAM,YAAY;2HASf,iBAAiB,GAAG,WAAW;;;;;;;;;;;;;;;;;;;CAkIjC,CAAC;AAEF,QAAA,MAAM,qBAAqB;;;;;;;;;CAS1B,CAAC;AAaF,eAAe,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/EditableItem/EditableItem/index.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAsGnC,aAAK,iBAAiB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE5E,QAAA,MAAM,YAAY;2HASf,iBAAiB,GAAG,WAAW;;;;;;;;;;;;;;;;;;;CAkIjC,CAAC;AAEF,QAAA,MAAM,qBAAqB;;;;;;;;;CAS1B,CAAC;AAaF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Info.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Info.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js"],"names":[],"mappings":";AA2BA;;;;gBAiEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{shape as e,string as a}from"prop-types";import{makeStyles as t,Grid as i,Typography as n}from"@material-ui/core";import{getBhaBitSize as l,getBhaDepthIn as r}from"../../../../../utils/bha.js";import{getUnitDisplay as o}from"../../../../../utils/convert.js";import{jsxs as d,jsx as c}from"react/jsx-runtime";var s=t((function(e){return{planUnit:{color:e.palette.grey[400],marginLeft:5},planText:{color:e.palette.grey[400]},pointValue:{display:"flex"},columnWithMargin:{marginRight:40}}})),m=function(e){var a,t,m=e.feedItem,p=e.bitComponent,u=e.pageName,h=s(),
|
|
1
|
+
import{shape as e,string as a}from"prop-types";import{makeStyles as t,Grid as i,Typography as n}from"@material-ui/core";import{getBhaBitSize as l,getBhaDepthIn as r}from"../../../../../utils/bha.js";import{getUnitDisplay as o}from"../../../../../utils/convert.js";import{jsxs as d,jsx as c}from"react/jsx-runtime";var s=t((function(e){return{labelGrid:{marginRight:11},planUnit:{color:e.palette.grey[400],marginLeft:5,fontSize:12},planText:{color:e.palette.grey[400]},pointValue:{display:"flex",alignItems:"center"},columnWithMargin:{marginRight:40}}})),m=function(e){var a,t,m=e.feedItem,p=e.bitComponent,u=e.pageName,h=s(),b=null===(a=m.context)||void 0===a||null===(t=a.bha)||void 0===t?void 0:t.data,v=null==b?void 0:b.components,f=null==b?void 0:b.start_depth,y=l(v),g=r(f),N=(null==p?void 0:p.make)||"-",x=(null==p?void 0:p.model)||"-";return d(i,{container:!0,spacing:16,justify:"flex-start",children:[d(i,{item:!0,className:h.labelGrid,children:[c(n,{variant:"body2",className:h.planText,children:"Bit Size:"}),c(n,{variant:"body2",className:h.planText,children:"Depth In:"})]}),d(i,{item:!0,className:h.columnWithMargin,children:[c(n,{variant:"body2",className:h.pointValue,children:y}),d(n,{variant:"body2","data-testid":"".concat(u,"_bitSize"),className:h.pointValue,children:[g,d(n,{variant:"body2",component:"span",className:h.planUnit,children:["(",o("length"),")"]})]})]}),d(i,{item:!0,className:h.labelGrid,children:[c(n,{variant:"body2",className:h.planText,children:"Bit Maker:"}),c(n,{variant:"body2",className:h.planText,children:"Bit Model:"})]}),d(i,{item:!0,children:[c(n,{variant:"body2","data-testid":"".concat(u,"_bitMaker"),className:h.pointValue,children:N}),c(n,{variant:"body2","data-testid":"".concat(u,"_bitModel"),className:h.pointValue,children:x})]})]})};m.propTypes={feedItem:e().isRequired,bitComponent:e().isRequired,pageName:a.isRequired};export{m as default};
|
package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActualPointInfo.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ActualPointInfo.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js"],"names":[],"mappings":";AAkCA;;gBA0FC"}
|
package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{shape as a}from"prop-types";import{makeStyles as t,Grid as
|
|
1
|
+
import{shape as a}from"prop-types";import{makeStyles as t,Grid as e,Typography as n}from"@material-ui/core";import{convertValue as i,getUnitDisplay as l}from"../../../../../utils/convert.js";import{jsxs as r,jsx as c}from"react/jsx-runtime";var o="surveyStationActivity",s=t((function(a){return{labelGrid:{marginRight:7},planText:{color:a.palette.grey[400]},planUnit:{fontSize:12,color:a.palette.grey[400],marginLeft:5},pointValue:{display:"flex",alignItems:"center"},columnWithMargin:{marginRight:40},actualPointContainer:{display:"flex",flexGrow:1}}})),d=function(a){return a&&"number"==typeof a?a.toFixed(2):"-"},m=function(a){var t,m,p=a.feedItem,h=s(),u=(null===(t=p.context)||void 0===t||null===(m=t.survey_station)||void 0===m?void 0:m.data)||{},v=u.measured_depth,y=u.inclination,b=u.azimuth,f=u.tvd,N=u.vertical_section,g=u.dls,x=i(v,"length","ft"),V=i(f,"length","ft"),T=i(N,"length","ft"),_=i(g,"anglePerLength","dp100f");return r(e,{spacing:16,justify:"flex-start",className:h.actualPointContainer,children:[r(e,{item:!0,className:h.labelGrid,children:[c(n,{variant:"body2",className:h.planText,children:"Survey at:"}),c(n,{variant:"body2",className:h.planText,children:"Inc:"}),c(n,{variant:"body2",className:h.planText,children:"Azi:"})]}),r(e,{item:!0,className:h.columnWithMargin,children:[r(n,{variant:"body2","data-testid":"".concat(o,"_lastSurvey"),className:h.pointValue,children:[d(x),r(n,{variant:"body2",component:"span",className:h.planUnit,children:["(",l("length"),")"]})]}),r(n,{variant:"body2","data-testid":"".concat(o,"_inclination"),className:h.pointValue,children:[d(y),c(n,{variant:"body2",component:"span",className:h.planUnit,children:"°"})]}),r(n,{variant:"body2","data-testid":"".concat(o,"_azimuth"),className:h.pointValue,children:[d(b),c(n,{variant:"body2",component:"span",className:h.planUnit,children:"°"})]})]}),r(e,{item:!0,className:h.labelGrid,children:[c(n,{variant:"body2",className:h.planText,children:"TVD:"}),c(n,{variant:"body2",className:h.planText,children:"VS:"}),c(n,{variant:"body2",className:h.planText,children:"DLS:"})]}),r(e,{item:!0,children:[r(n,{variant:"body2","data-testid":"".concat(o,"_TVD"),className:h.pointValue,children:[d(V),r(n,{variant:"body2",component:"span",className:h.planUnit,children:["(",l("length"),")"]})]}),r(n,{variant:"body2","data-testid":"".concat(o,"_VS"),className:h.pointValue,children:[d(T),r(n,{variant:"body2",component:"span",className:h.planUnit,children:["(",l("length"),")"]})]}),r(n,{variant:"body2","data-testid":"".concat(o,"_DLS"),className:h.pointValue,children:[d(_),c(n,{variant:"body2",component:"span",className:h.planUnit,children:l("anglePerLength")})]})]})]})};m.propTypes={feedItem:a({context:a({survey_station:a({data:a().isRequired}).isRequired}).isRequired}).isRequired};export{m as default};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import PropTypes from 'prop-types';
|
|
2
3
|
interface FilesLoaderProps extends PropTypes.InferProps<typeof filesLoaderPropTypes> {
|
|
3
4
|
}
|
|
4
|
-
declare function FilesLoader({ size, unit, name, sizeBytes, handleCancel, onReload, onDelete, loadedBytes, error, errorText, formatError, importButtonType, isLoadingAnimation, }: FilesLoaderProps): JSX.Element;
|
|
5
|
+
declare function FilesLoader({ size, unit, name, customUnitName, sizeBytes, handleCancel, onReload, onDelete, loadedBytes, error, errorText, formatError, importButtonType, isLoadingAnimation, showActions, }: FilesLoaderProps): JSX.Element;
|
|
5
6
|
declare namespace FilesLoader {
|
|
6
7
|
var propTypes: {
|
|
7
8
|
size: PropTypes.Requireable<string>;
|
|
8
9
|
unit: PropTypes.Requireable<string>;
|
|
10
|
+
customUnitName: PropTypes.Requireable<string>;
|
|
9
11
|
onDelete: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
12
|
onReload: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
13
|
handleCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -17,6 +19,7 @@ declare namespace FilesLoader {
|
|
|
17
19
|
importButtonType: PropTypes.Requireable<string>;
|
|
18
20
|
loadedBytes: PropTypes.Validator<number>;
|
|
19
21
|
isLoadingAnimation: PropTypes.Requireable<boolean>;
|
|
22
|
+
showActions: PropTypes.Requireable<boolean>;
|
|
20
23
|
};
|
|
21
24
|
var defaultProps: {
|
|
22
25
|
size: string;
|
|
@@ -24,6 +27,7 @@ declare namespace FilesLoader {
|
|
|
24
27
|
onDelete: any;
|
|
25
28
|
onReload: any;
|
|
26
29
|
name: string;
|
|
30
|
+
customUnitName: string;
|
|
27
31
|
sizeBytes: number;
|
|
28
32
|
error: any;
|
|
29
33
|
errorText: string;
|
|
@@ -31,11 +35,13 @@ declare namespace FilesLoader {
|
|
|
31
35
|
importButtonType: string;
|
|
32
36
|
handleCancel: any;
|
|
33
37
|
isLoadingAnimation: boolean;
|
|
38
|
+
showActions: boolean;
|
|
34
39
|
};
|
|
35
40
|
}
|
|
36
41
|
declare const filesLoaderPropTypes: {
|
|
37
42
|
size: PropTypes.Requireable<string>;
|
|
38
43
|
unit: PropTypes.Requireable<string>;
|
|
44
|
+
customUnitName: PropTypes.Requireable<string>;
|
|
39
45
|
onDelete: PropTypes.Requireable<(...args: any[]) => any>;
|
|
40
46
|
onReload: PropTypes.Requireable<(...args: any[]) => any>;
|
|
41
47
|
handleCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -47,6 +53,7 @@ declare const filesLoaderPropTypes: {
|
|
|
47
53
|
importButtonType: PropTypes.Requireable<string>;
|
|
48
54
|
loadedBytes: PropTypes.Validator<number>;
|
|
49
55
|
isLoadingAnimation: PropTypes.Requireable<boolean>;
|
|
56
|
+
showActions: PropTypes.Requireable<boolean>;
|
|
50
57
|
};
|
|
51
58
|
export default FilesLoader;
|
|
52
59
|
//# sourceMappingURL=FilesLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilesLoader.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoader/FilesLoader.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"FilesLoader.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoader/FilesLoader.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAqDnC,UAAU,gBAAiB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC;CAAG;AAOvF,iBAAS,WAAW,CAAC,EACnB,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,cAAc,EACd,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,KAAK,EACL,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,GACZ,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAuMhC;kBAvNQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyNpB,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;CAgBzB,CAAC;AAoBF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as o,jsx as r,Fragment as n}from"react/jsx-runtime";import{useState as t,useEffect as i,useMemo as a}from"react";import l from"prop-types";import s from"classnames";import{Typography as c,LinearProgress as d}from"@material-ui/core";import{Close as m,Delete as
|
|
1
|
+
import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as o,jsx as r,Fragment as n}from"react/jsx-runtime";import{useState as t,useEffect as i,useMemo as a}from"react";import l from"prop-types";import s from"classnames";import{Typography as c,LinearProgress as d}from"@material-ui/core";import{Close as m,Delete as u}from"@material-ui/icons";import f from"../IconButton/index.js";import p from"../Button/index.js";import h from"./Icons/IconWarning.js";import g from"./Icons/IconSuccess.js";import v from"./Icons/IconRefresh.js";import z from"./Icons/FileIcon.js";import N from"./Icons/UploadIcon.js";import{useStyles as B}from"./useStyles.js";function I(l){var I,S,y,w,C,b,L,j=l.size,M=l.unit,P=l.name,T=l.customUnitName,x=l.sizeBytes,k=l.handleCancel,A=l.onReload,E=l.onDelete,U=l.loadedBytes,R=l.error,D=l.errorText,O=l.formatError,W=l.importButtonType,F=l.isLoadingAnimation,q=l.showActions,K=B(),_=t({}),G=_[0],H=_[1],J=t(0),Q=J[0],V=J[1],X=t(!0),Y=X[0],Z=X[1],$="large"===j;i((function(){H(function(e,o,r){return"time"===o?{downloaded:0,unit:"min",convertedSize:e}:"custom"===o?{downloaded:0,unit:r,convertedSize:e}:e>=Math.pow(10,6)?{downloaded:0,unit:"MB",convertedSize:Math.floor(e/Math.pow(10,5))/10}:e>=Math.pow(10,3)?{downloaded:0,unit:"KB",convertedSize:Math.floor(e/Math.pow(10,2))/10}:{downloaded:0,unit:"B",convertedSize:Math.floor(10*e)/10}}(x,M,T))}),[x,M]),i((function(){if(U&&x){var o=Math.round(U/x*100);H((function(r){return e(e({},r),{downloaded:Math.floor(r.convertedSize*o/10)/10})})),V(o)}}),[U,x]),i((function(){var e;return E&&Q>=100&&(Z(!0),e=setTimeout((function(){Z(!1)}),5e3)),function(){return e&&clearTimeout(e)}}),[Q]),i((function(){R&&(V(0),H((function(o){return e(e({},o),{downloaded:0})})))}),[R]);var ee=a((function(){var e,o;return[s(K.iconButton,((e={})[K.iconButtonLarge]=$,e)),s(K.actionIcon,((o={})[K.actionIconLarge]=$,o))]}),[$]),oe=ee[0],re=ee[1];return o("div",e({className:K.fileStateWrapper},{children:[r("div",e({className:K.fileIconContainer},{children:r(z,{name:P,style:{fontSize:$?48:32}})})),o("div",e({className:K.fileState},{children:[o("div",e({className:K.fileStateProgress},{children:[r("div",e({className:K.fileNameWrapper},{children:r(c,e({className:s(K.fileName,(I={},I[K.fileNameLarge]=$,I))},{children:P.length>7?o(n,{children:[r("span",e({className:K.firstPart},{children:P.slice(0,P.length-7)})),r("span",{children:P.slice(-7)})]}):P}))})),!F&&r(d,{className:K.progressBar,variant:"determinate",value:Q,classes:{colorPrimary:s(K.progressBackground,(S={},S[K.progressBarError]=R,S)),barColorPrimary:s(K.progressBarColor,(y={},y[K.progressBarError]=R,y))}}),o("div",e({className:K.loaderProgressContainer},{children:[!F&&r(c,e({className:s(K.fileSize,(w={},w[K.fileSizeLarge]=$,w)),component:"span"},{children:"".concat(G.downloaded," of ").concat(G.convertedSize," ").concat(G.unit)})),o("div",e({className:s(K.progressStatus,(C={},C[K.fileSizeLarge]=$,C))},{children:[R&&o(c,e({component:"div",className:K.errorContainer},{children:[r(h,{size:j}),r(c,e({component:"span",className:s(K.errorText,(b={},b[K.fileSizeLarge]=$,b))},{children:O?"Upload Error. Unacceptable file format.":"Upload Error".concat(D&&". ".concat(D))}))]})),!R&&!F&&"".concat(Q," %")]}))]}))]})),q&&o("div",e({className:K.fileActions},{children:[Q<100&&!R&&r(n,{children:F?r("div",{className:s(K.loadingIcon,(L={},L[K.loadingLargeIcon]=$,L)),style:{backgroundImage:"url(".concat("/static/media/c7e056a4353978b8b0393473f0d750ae.svg",")")}}):r(f,e({tooltipProps:{title:"Cancel"},className:oe,onClick:function(){k(P),V(0),H((function(o){return e(e({},o),{downloaded:0})}))}},{children:r(m,{classes:{root:re}})}))}),100===Q&&!R&&(!Y&&E?r(f,e({variant:"contained",tooltipProps:{title:"Delete"},className:oe,onClick:E},{children:r(u,{classes:{root:re}})})):r(g,{size:j,style:{marginLeft:12}})),A&&R&&r(n,{children:O?r(n,{children:"default"===W?r(p,e({size:$?"medium":"small",variation:"primary",startIcon:r(N,{}),onClick:A},{children:"Import"})):r(f,e({tooltipProps:{title:"Import File"},className:oe,onClick:A},{children:r(N,{style:{fontSize:$?24:16}})}))}):r(f,e({tooltipProps:{title:"Reload"},className:oe,onClick:A},{children:r(v,{style:{fontSize:$?24:16}})}))})]}))]}))]}))}var S={size:l.oneOf(["small","large"]),unit:l.oneOf(["size","time","custom"]),customUnitName:l.string,onDelete:l.func,onReload:l.func,handleCancel:l.func,name:l.string,sizeBytes:l.number,error:l.bool,errorText:l.string,formatError:l.bool,importButtonType:l.oneOf(["default","icon"]),loadedBytes:l.number.isRequired,isLoadingAnimation:l.bool,showActions:l.bool};I.propTypes=S,I.defaultProps={size:"small",unit:"size",onDelete:null,onReload:null,name:"",customUnitName:"",sizeBytes:1,error:null,errorText:"",formatError:!1,importButtonType:"default",handleCancel:null,isLoadingAnimation:!1,showActions:!0};export{I as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import PropTypes from 'prop-types';
|
|
2
3
|
import { IconButtonProps as MuiIconButtonProps } from '@material-ui/core';
|
|
3
4
|
interface IconButtonProps extends Omit<MuiIconButtonProps, 'size' | 'variant' | 'classes'>, PropTypes.InferProps<typeof iconButtonPropTypes> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAkE,eAAe,IAAI,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAiE1I,UAAU,eAAgB,SACxB,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC,EACxD,SAAS,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC;IAChD,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACnC;AAED,QAAA,MAAM,UAAU;gDAAsE,eAAe,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsClH,CAAC;AAEF,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;CAaxB,CAAC;AAaF,eAAe,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAkE,eAAe,IAAI,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAiE1I,UAAU,eAAgB,SACxB,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC,EACxD,SAAS,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC;IAChD,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACnC;AAED,QAAA,MAAM,UAAU;gDAAsE,eAAe,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsClH,CAAC;AAEF,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;CAaxB,CAAC;AAaF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullScreenLoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/FullScreenLoadingIndicator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAmC,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAG3F,QAAA,MAAM,0BAA0B;YAAW,+BAA+B,GAAG,WAAW;;;;;;;;;;;CAYvF,CAAC;AAUF,eAAe,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"FullScreenLoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/FullScreenLoadingIndicator.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAmC,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAG3F,QAAA,MAAM,0BAA0B;YAAW,+BAA+B,GAAG,WAAW;;;;;;;;;;;CAYvF,CAAC;AAUF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineLoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/InlineLoadingIndicator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAmC,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAGvF,QAAA,MAAM,sBAAsB;YAAW,2BAA2B,GAAG,WAAW;;;;;;;;;;;CAQ/E,CAAC;AAUF,eAAe,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"InlineLoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/InlineLoadingIndicator.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAmC,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAGvF,QAAA,MAAM,sBAAsB;YAAW,2BAA2B,GAAG,WAAW;;;;;;;;;;;CAQ/E,CAAC;AAUF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,WAAW,EAAE,MAAM,SAAS,CAAC;AAIvD,eAAO,MAAM,WAAW,2DAA2D,CAAC;AACpF,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC,QAAA,MAAM,MAAM;YAAW,WAAW,GAAG,WAAW;;;;;;;;;CAY/C,CAAC;AASF,eAAe,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/Loader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAmB,WAAW,EAAE,MAAM,SAAS,CAAC;AAIvD,eAAO,MAAM,WAAW,2DAA2D,CAAC;AACpF,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC,QAAA,MAAM,MAAM;YAAW,WAAW,GAAG,WAAW;;;;;;;;;CAY/C,CAAC;AASF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/LoadingIndicator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI3E,QAAA,MAAM,gBAAgB;+BAA8B,qBAAqB,GAAG,WAAW;;;;;;;;;;;;;;;CACS,CAAC;AAcjG,eAAe,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"LoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/LoadingIndicator.tsx"],"names":[],"mappings":";AAEA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI3E,QAAA,MAAM,gBAAgB;+BAA8B,qBAAqB,GAAG,WAAW;;;;;;;;;;;;;;;CACS,CAAC;AAcjG,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ModalProps } from "~/components/Modal/types";
|
|
2
3
|
export declare function CorvaModal({ title, children, actions, open, isCloseIconHidden, onClose, isNative, isMobile, stickyFooter, contentContainerClassName, contentClassName, stickyFooterClassName, modalTitleClassName, size, type, rootClassName, actionsClassName, ...otherProps }: ModalProps): JSX.Element;
|
|
3
4
|
export declare namespace CorvaModal {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CorvaModal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/CorvaModal.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAkB,UAAU,EAAE,MAAM,0BAA0B,CAAC;AA4DtE,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,iBAAiB,EACjB,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,yBAAyB,EACzB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,IAAI,EACJ,IAAI,EACJ,aAAa,EACb,gBAAgB,EAChB,GAAG,UAAU,EACd,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAiG1B;yBApHe,UAAU"}
|
|
1
|
+
{"version":3,"file":"CorvaModal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/CorvaModal.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAkB,UAAU,EAAE,MAAM,0BAA0B,CAAC;AA4DtE,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,iBAAiB,EACjB,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,yBAAyB,EACzB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,IAAI,EACJ,IAAI,EACJ,aAAa,EACb,gBAAgB,EAChB,GAAG,UAAU,EACd,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAiG1B;yBApHe,UAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DcCorvaModal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/DcCorvaModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAQvF"}
|
|
1
|
+
{"version":3,"file":"DcCorvaModal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/DcCorvaModal.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAQvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAO5D"}
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAO5D"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import PropTypes from 'prop-types';
|
|
2
3
|
declare type OffsetWellButtonProps = PropTypes.InferProps<typeof offsetWellButtonPropTypes>;
|
|
3
4
|
declare const OffsetWellButton: {
|
|
4
|
-
({ onClick, wells, disabled, expanded, onExpand }: OffsetWellButtonProps): JSX.Element;
|
|
5
|
+
({ onClick, wells, disabled, expanded, onExpand, offsetWellsLimited, }: OffsetWellButtonProps): JSX.Element;
|
|
5
6
|
propTypes: {
|
|
6
7
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
7
8
|
wells: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -11,12 +12,14 @@ declare const OffsetWellButton: {
|
|
|
11
12
|
disabled: PropTypes.Requireable<boolean>;
|
|
12
13
|
onExpand: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
14
|
expanded: PropTypes.Requireable<boolean>;
|
|
15
|
+
offsetWellsLimited: PropTypes.Requireable<boolean>;
|
|
14
16
|
};
|
|
15
17
|
defaultProps: {
|
|
16
18
|
onExpand: any;
|
|
17
19
|
expanded: boolean;
|
|
18
20
|
wells: any[];
|
|
19
21
|
disabled: boolean;
|
|
22
|
+
offsetWellsLimited: boolean;
|
|
20
23
|
};
|
|
21
24
|
};
|
|
22
25
|
declare const offsetWellButtonPropTypes: {
|
|
@@ -28,6 +31,7 @@ declare const offsetWellButtonPropTypes: {
|
|
|
28
31
|
disabled: PropTypes.Requireable<boolean>;
|
|
29
32
|
onExpand: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
33
|
expanded: PropTypes.Requireable<boolean>;
|
|
34
|
+
offsetWellsLimited: PropTypes.Requireable<boolean>;
|
|
31
35
|
};
|
|
32
36
|
export default OffsetWellButton;
|
|
33
37
|
//# sourceMappingURL=OffsetWellButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OffsetWellButton.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellButton/OffsetWellButton.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"OffsetWellButton.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellButton/OffsetWellButton.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAyDnC,aAAK,qBAAqB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEpF,QAAA,MAAM,gBAAgB;4EAOnB,qBAAqB,GAAG,WAAW;;;;;;;;;;;;;;;;;;;CA4ErC,CAAC;AAEF,QAAA,MAAM,yBAAyB;;;;;;;;;;CAY9B,CAAC;AAYF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as o,jsx as t}from"react/jsx-runtime";import{useState as
|
|
1
|
+
import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as o,jsx as t}from"react/jsx-runtime";import{useState as i}from"react";import n from"prop-types";import r from"classnames";import{makeStyles as a,Typography as l,Tooltip as s}from"@material-ui/core";import{Edit as c,Info as d,ExpandLess as p,ExpandMore as f}from"@material-ui/icons";import m from"../IconButton/index.js";var u=a((function(e){var o=e.palette;return{disabled:{opacity:.4,pointerEvents:"none"},offsetContainer:{cursor:"pointer",display:"flex",whiteSpace:"nowrap",flexWrap:"nowrap",alignItems:"center",width:"fit-content"},hoveredContainer:{backgroundColor:"rgba(3, 188, 212, 0.16)"},offsetText:{color:o.primary.text6,fontSize:12,paddingRight:4,"&:hover":{color:o.primary.contrastText}},buttons:{display:"flex",alignItems:"center"},isActive:{color:o.primary.contrastText},primaryIcon:{"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.16)"}},infoIcon:{marginRight:"8px",fontSize:"20px",color:o.info.light},infoTooltip:{maxWidth:"264px"}}})),x=function(n){var a=n.onClick,x=n.wells,h=n.disabled,b=n.expanded,g=n.onExpand,v=n.offsetWellsLimited,y=i(!1),C=y[0],w=y[1],I=u(),W=x.length,T=!(!W||!g),k=o("div",e({className:r(I.offsetContainer,h&&I.disabled),onClick:a,onMouseMove:function(e){var o=e.target,t=o.parentNode;o.getAttribute("data-icon")||t.getAttribute("data-icon")?w(!1):w(!0)},onMouseLeave:function(){w(!1)}},{children:[o(l,e({className:r(I.offsetText,C&&I.isActive)},{children:["Offset Wells (",W,")"]})),t(m,e({className:r(I.primaryIcon,C&&I.hoveredContainer),color:"primary",size:"medium"},{children:t(c,{})}))]}));return o("div",e({className:I.buttons},{children:[v&&t(s,e({title:"Offset wells list wasn't populated completely due to technical limitations of the app.",classes:{tooltip:I.infoTooltip}},{children:t(d,{className:I.infoIcon})})),t(s,e({title:"Edit Offset Wells",placement:"bottom"},{children:k})),T&&t(m,e({tooltipProps:{title:b?"Collapse Offset Wells":"Expand Offset Wells"},onClick:function(e){e.stopPropagation(),g()},color:"default",size:"medium","data-icon":"expandIcon"},{children:t(b?p:f,{"data-icon":"expandIcon"})}))]}))},h={onClick:n.func.isRequired,wells:n.arrayOf(n.shape({id:n.number,title:n.string})),disabled:n.bool,onExpand:n.func,expanded:n.bool,offsetWellsLimited:n.bool};x.propTypes=h,x.defaultProps={onExpand:null,expanded:!1,wells:[],disabled:!1,offsetWellsLimited:!1};export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/Chip.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA2B,SAAS,EAAE,MAAM,SAAS,CAAC;AAwC7D,QAAA,MAAM,cAAc;kEAAiE,SAAS,GAAG,WAAW;;;;;;;;;;;;;;;;CA2C3G,CAAC;AAWF,eAAe,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/Chip.tsx"],"names":[],"mappings":";AAGA,OAAO,EAA2B,SAAS,EAAE,MAAM,SAAS,CAAC;AAwC7D,QAAA,MAAM,cAAc;kEAAiE,SAAS,GAAG,WAAW;;;;;;;;;;;;;;;;CA2C3G,CAAC;AAWF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChipsContainer.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/ChipsContainer.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAU9C,QAAA,MAAM,eAAe;0BAAyB,mBAAmB,GAAG,WAAW;;;;;;;;;;CAiB9E,CAAC;AAcF,eAAe,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"ChipsContainer.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/ChipsContainer.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAU9C,QAAA,MAAM,eAAe;0BAAyB,mBAAmB,GAAG,WAAW;;;;;;;;;;CAiB9E,CAAC;AAcF,eAAe,eAAe,CAAC"}
|