@corva/ui 0.52.0-1 → 0.52.0-11
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/Avatar/index.js +1 -1
- package/components/Button/index.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.d.ts +3 -1
- package/components/Casing/CasingTableV2/components/Component.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/SortableComponent.js +1 -1
- package/components/Chip/index.js +1 -1
- package/components/ColorPicker/ColorPicker.js +1 -1
- package/components/ColorPickerPalette/ColorPickerPalette.js +1 -1
- package/components/Comment/CommentIcon/index.d.ts.map +1 -1
- package/components/Comment/CommentIcon/index.js +1 -1
- package/components/Counter/index.js +1 -1
- package/components/DatePicker/index.js +1 -1
- package/components/DateTimePicker/index.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.d.ts +5 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.d.ts +2 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.d.ts +3 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/SortableComponent.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/sharedStyles.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/sharedStyles.js +1 -1
- package/components/EditableItem/EditableItem/index.js +1 -1
- package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.d.ts.map +1 -1
- package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js +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/DvDCommentFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/DvDCommentFeedItem.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.js +1 -1
- package/components/IconButton/index.d.ts +1 -1
- package/components/IconButton/index.d.ts.map +1 -1
- package/components/IconButton/index.js +1 -1
- package/components/LoadingIndicator/FullScreenLoadingIndicator.js +1 -1
- package/components/LoadingIndicator/InlineLoadingIndicator.js +1 -1
- package/components/LoadingIndicator/LoadingIndicator.js +1 -1
- package/components/LoadingIndicator/types.js +1 -1
- package/components/Modal/CorvaModal.js +1 -1
- package/components/Modal/DcCorvaModal.js +1 -1
- package/components/Modal/Modal.js +1 -1
- package/components/OffsetWellButton/OffsetWellButton.js +1 -1
- package/components/OffsetWellChips/Chip.js +1 -1
- package/components/OffsetWellChips/ChipsContainer.js +1 -1
- package/components/OffsetWellMap/OffsetWellMap.d.ts +5 -1
- package/components/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
- package/components/OffsetWellMap/OffsetWellMap.js +1 -1
- package/components/OffsetWellMap/WellTooltip.d.ts +2 -1
- package/components/OffsetWellMap/WellTooltip.d.ts.map +1 -1
- package/components/OffsetWellMap/WellTooltip.js +1 -1
- package/components/OffsetWellPickerV2/constants.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js +1 -1
- package/components/OffsetWellPickerV4/constants.js +1 -1
- package/components/RangeSlider/RangeSlider.js +1 -1
- package/components/ResizableTable/ResizableTable.js +1 -1
- package/components/ResizableTable/ResizableTableCell.js +1 -1
- package/components/ResizableTable/ResizableTableHeaderCell.js +1 -1
- package/components/Search/Search.js +1 -1
- package/components/Select/index.js +1 -1
- package/components/SettingEditors/ColorEditor/index.js +1 -1
- package/components/SettingEditors/RadioEditor/index.js +1 -1
- package/components/Stepper/Step.js +1 -1
- package/components/Stepper/Stepper.js +1 -1
- package/components/Stepper/StepsWrapper.js +1 -1
- package/components/SwitchControl/index.js +1 -1
- package/components/Tabs/Tabs.js +1 -1
- package/components/TextLink/index.js +1 -1
- package/components/VirtualizedTable/VirtualizedTable.js +1 -1
- package/constants/assetTypes.js +1 -1
- package/constants/goals.js +1 -1
- package/{_virtual/_tslib.js → ext-esm/tslib/tslib.es6.js} +0 -0
- package/package.json +2 -2
- 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/utils/index.d.ts +1 -2
- package/utils/index.d.ts.map +1 -1
- package/utils/index.js +1 -1
- package/utils/recaptcha.d.ts +0 -3
- package/utils/recaptcha.d.ts.map +0 -1
- package/utils/recaptcha.js +0 -1
package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{IconButton as t,Icon as o}from"@material-ui/core";import i from"./PriorityMenus.css.js";import{jsx as
|
|
1
|
+
import{IconButton as t,Icon as o}from"@material-ui/core";import i from"./PriorityMenus.css.js";import{jsx as e}from"react/jsx-runtime";function r(r){var n=r.menuItems,c=r.devCenterRouter,l=r.isMobileView;return n.map((function(r){return e(t,{"data-testid":"".concat("PriorityMenus","_item_").concat(r.title),classes:{root:i.iconButton},tooltipProps:{title:!l&&"Menu"},onClick:function(){var t;null===(t=r.onClick)||void 0===t||t.call(r),r.to&&c.push(r.to)},children:e(o,{className:i.icon,children:r.icon})},r.title)}))}export{r as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import("react").MemoExoticComponent<typeof Component>;
|
|
2
2
|
export default _default;
|
|
3
|
-
declare function Component({ isMobile, viewColumnsPerRow, editColumnsPerRow, component, validate, isDraft, onCancel, onDelete, onSave, onChangeEditing, onAutocompleteApplied, }: {
|
|
3
|
+
declare function Component({ isMobile, viewColumnsPerRow, editColumnsPerRow, component, validate, isDraft, onCancel, onDelete, onSave, onChangeEditing, onAutocompleteApplied, isDragComponent }: {
|
|
4
4
|
isMobile: any;
|
|
5
5
|
viewColumnsPerRow: any;
|
|
6
6
|
editColumnsPerRow: any;
|
|
@@ -12,6 +12,7 @@ declare function Component({ isMobile, viewColumnsPerRow, editColumnsPerRow, com
|
|
|
12
12
|
onSave: any;
|
|
13
13
|
onChangeEditing: any;
|
|
14
14
|
onAutocompleteApplied: any;
|
|
15
|
+
isDragComponent: any;
|
|
15
16
|
}): JSX.Element;
|
|
16
17
|
declare namespace Component {
|
|
17
18
|
namespace propTypes {
|
|
@@ -33,6 +34,7 @@ declare namespace Component {
|
|
|
33
34
|
const viewColumnsPerRow: PropTypes.Validator<number>;
|
|
34
35
|
const editColumnsPerRow: PropTypes.Validator<number>;
|
|
35
36
|
const onAutocompleteApplied: PropTypes.Requireable<(...args: any[]) => any>;
|
|
37
|
+
const isDragComponent: PropTypes.Validator<boolean>;
|
|
36
38
|
}
|
|
37
39
|
namespace defaultProps {
|
|
38
40
|
const isDraft_1: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drillstring/BHAComponentsTable/components/Component.js"],"names":[],"mappings":";;AAsCA
|
|
1
|
+
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drillstring/BHAComponentsTable/components/Component.js"],"names":[],"mappings":";;AAsCA;;;;;;;;;;;;;gBAmVC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/objectWithoutProperties";import t from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/slicedToArray";import{memo as r,useState as i,useEffect as n}from"react";import s from"classnames";import{omit as p,isEmpty as m,map as a}from"lodash";import l from"prop-types";import{Grid as d,Menu as c,MenuItem as u}from"@material-ui/core";import"../../../../utils/index.js";import{COMPONENT_FAMILIES as j}from"../../../../constants/drillstring.js";import{jsxs as C,jsx as f,Fragment as b}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"../../../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"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 h 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"../../../../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"./shared/CancelButton.js";import{ExpandCollapseButton as v}from"./shared/ExpandCollapseButton.js";import{FormatedNumber as g}from"./shared/FormatedNumber.js";import"./shared/InputText.js";import{MoreButton as A}from"./shared/MoreButton.js";import"./shared/SaveButton.js";import"./shared/SelectField.js";import{StaticField as D}from"./shared/StaticField.js";import"./shared/SharedEditorElements.js";import{ConfirmationPopup as x}from"./shared/ConfirmationPopup.js";import{useStyles as P}from"./sharedStyles.js";import{calculateComponent as S}from"./utils/calculation.js";import y from"./Agitator/Browser.js";import E from"./Agitator/Editor.js";import B from"./Bit/Browser.js";import T from"./Bit/Editor.js";import w from"./DrillCollar/Browser.js";import I from"./DrillCollar/Editor.js";import O from"./DrillPipe/Browser.js";import k from"./DrillPipe/Editor.js";import L from"./Jar/Browser.js";import F from"./Jar/Editor.js";import M from"./Lwd/Browser.js";import W from"./Lwd/Editor.js";import _ from"./Mwd/Browser.js";import V from"./Mwd/Editor.js";import R from"./Pdm/Browser.js";import N from"./Pdm/Editor.js";import H from"./Rss/Browser.js";import z from"./Rss/Editor.js";import q from"./Stabilizer/Browser.js";import U from"./Stabilizer/Editor.js";import Z from"./Sub/Browser.js";import G from"./Sub/Editor.js";import Y from"./Ur/Browser.js";import J from"./Ur/Editor.js";import K from"./EditComponentDialog.js";import{showErrorNotification as Q}from"../../../../utils/notificationToasts.js";var X=["is_editing"];function $(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function ee(e){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?$(Object(r),!0).forEach((function(o){t(e,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function te(e){var t;return(null===(t=j.drilling.find((function(t){return t.type===e})))||void 0===t?void 0:t.name)||"—"}function oe(r){var l,j=r.isMobile,$=r.viewColumnsPerRow,oe=r.editColumnsPerRow,re=r.component,ie=r.validate,ne=r.isDraft,se=r.onCancel,pe=r.onDelete,me=r.onSave,ae=r.onChangeEditing,le=r.onAutocompleteApplied,de=i(null),ce=o(de,2),ue=ce[0],je=ce[1],Ce=i(!1),fe=o(Ce,2),be=fe[0],he=fe[1],ve=i(!1),ge=o(ve,2),Ae=ge[0],De=ge[1],xe=i(re),Pe=o(xe,2),Se=Pe[0],ye=Pe[1],Ee=i(null),Be=o(Ee,2),Te=Be[0],we=Be[1],Ie=i(!1),Oe=o(Ie,2),ke=Oe[0],Le=Oe[1],Fe=P({isMobile:j,isEditing:Se.is_editing});n((function(){ae&&ae(Se.is_editing)}),[Se.is_editing]);var Me=function(){we(null),ne?se():ye(re)},We=function(e,t){var o=S(Se,e,t),r=ie(o,ne);ye(o),we(r?r.components[Se.id]:null)},_e=function(e){le&&le(!0),ye((function(t){return ee(ee({},t),e)}))},Ve=function(){var e=ie(Se,ne);if(e){we(e.components[Se.id]);var t=ee(ee({},p(e,["general","components","specificErrors"])),e.general);t&&!m(t)&&a(t,(function(e){Q(e)}))}else we(null),he(!0)},Re=function(){he(!1),Le(!1),Se.is_editing;var t=e(Se,X);ye(t),me(p(t,["is_expanded"]),ne)},Ne=s(Fe.cell,Fe.ratioWidth,t({},Fe.focusedFontsize,Se.is_editing||Se.is_expanded));if(Se.is_editing&&!ke){var He=Se.family,ze={component:Se,isDraft:ne,error:Te,onChange:We,onUseSuggestion:_e,onCancel:Me,onSave:j?Re:Ve,columns:oe};if(!j)return C("div",{className:Fe.component,children:[("dp"===He||"hwdp"===He)&&f(k,ee({},ze)),"agitator"===He&&f(E,ee({},ze)),"bit"===He&&f(T,ee({},ze)),"dc"===He&&f(I,ee({},ze)),"jar"===He&&f(F,ee({},ze)),"lwd"===He&&f(W,ee({},ze)),"mwd"===He&&f(V,ee({},ze)),"pdm"===He&&f(N,ee({},ze)),"rss"===He&&f(z,ee({},ze)),"stabilizer"===He&&f(U,ee({},ze)),"sub"===He&&f(G,ee({},ze)),"ur"===He&&f(J,ee({},ze)),be&&f(x,{title:"Save Changes?",text:"You will not be able to recover it.",okText:"Save",handleClose:function(){return he(!1)},handleOk:Re})]});Le(!0)}return C("div",{className:s(Fe.component,(l={},t(l,Fe.componentMobile,j),t(l,Fe.componentExpandedMobile,j&&Se.is_expanded),t(l,Fe.componentActive,Boolean(ue)),l)),children:[C("div",{className:s(Fe.row,t({},Fe.rowExpanded,j&&Se.is_expanded)),children:[f("div",{className:s(Fe.cell,t({},Fe.componentMobileCell,j)),children:f(h,{component:Se})}),f("div",{className:Ne,children:te(Se.family)}),!j&&C(b,{children:[f("div",{className:Ne,children:f(g,{value:"bit"===Se.family?Se.size:Se.outer_diameter})}),f("div",{className:Ne,children:f(g,{value:Se.inner_diameter})}),f("div",{className:Ne,children:f(g,{value:Se.linear_weight})}),f("div",{className:Ne,children:f(g,{value:Se.length,format:"0.0"})})]}),C("div",{className:s(Fe.cell,Fe.actionCell),children:[f(v,{isExpanded:Se.is_expanded,classes:Fe,handleExpandCollapse:function(){ye((function(e){return e.is_expanded?ee(ee({},e),{},{is_expanded:!1}):ee(ee({},e),{},{is_expanded:!0})}))}}),f(A,{classes:Fe,handleOpenActionMenu:function(e){je(e.currentTarget)}})]})]}),Se.is_expanded&&C(b,{children:[j&&C(d,{container:!0,spacing:2,style:{padding:"8px 4px 16px"},children:[f(D,{label:"bit"===Se.family?"Bit Size":"OD",unit:"shortLength",value:"bit"===Se.family?Se.size:Se.outer_diameter}),"bit"!==Se.family&&f(D,{label:"ID",unit:"shortLength",value:re.inner_diameter}),"bit"!==Se.family&&f(D,{label:"Linear Weight",unit:"massPerLength",value:re.linear_weight,format:"0.0"}),f(D,{label:"Length",unit:"length",value:re.length,format:"0.0"})]}),("dp"===Se.family||"hwdp"===Se.family)&&f(O,{component:Se,columns:$}),"agitator"===Se.family&&f(y,{component:Se,columns:$}),"bit"===Se.family&&f(B,{component:Se,columns:$}),"dc"===Se.family&&f(w,{component:Se,columns:$}),"jar"===Se.family&&f(L,{component:Se,columns:$}),"lwd"===Se.family&&f(M,{component:Se,columns:$}),"mwd"===Se.family&&f(_,{component:Se,columns:$}),"pdm"===Se.family&&f(R,{component:Se,columns:$}),"rss"===Se.family&&f(H,{component:Se,columns:$}),"stabilizer"===Se.family&&f(q,{component:Se,columns:$}),"sub"===Se.family&&f(Z,{component:Se,columns:$}),"ur"===Se.family&&f(Y,{component:Se,columns:$})]}),C(c,{anchorEl:ue,keepMounted:!0,open:Boolean(ue),getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:function(){je(null)},children:[f(u,{onClick:function(){je(null),ye((function(e){return ee(ee({},e),{},{is_editing:!0})}))},className:Fe.menuItem,children:"Edit"}),"bit"!==Se.family&&f(u,{onClick:function(){je(null),De(!0)},className:Fe.menuItem,children:"Delete"})]}),Ae&&f(x,{title:"Delete Component?",text:"You will not be able to recover it.",okText:"Delete",handleClose:function(){return De(!1)},handleOk:function(){pe(re)}}),ke&&f(K,{component:Se,isDraft:ne,error:Te,onChange:We,onUseSuggestion:_e,onCancel:Me,onSave:Ve,onClose:function(){Me(),Le(!1)}}),j&&be&&f(x,{title:"Save Changes?",text:"You will not be able to recover it.",okText:"Save",handleClose:function(){return he(!1)},handleOk:Re})]})}oe.propTypes={isMobile:l.bool.isRequired,component:l.shape({family:l.string,size:l.number,outer_diameter:l.number,inner_diameter:l.number,linear_weight:l.number,length:l.number}).isRequired,isDraft:l.bool,validate:l.func.isRequired,onCancel:l.func,onDelete:l.func,onSave:l.func.isRequired,onChangeEditing:l.func,viewColumnsPerRow:l.number.isRequired,editColumnsPerRow:l.number.isRequired,onAutocompleteApplied:l.func},oe.defaultProps={isDraft:!1,onCancel:null,onDelete:null,onChangeEditing:void 0,onAutocompleteApplied:void 0};var re=r(oe);export{re as default};
|
|
1
|
+
import e from"@babel/runtime/helpers/objectWithoutProperties";import t from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/slicedToArray";import{memo as r,useState as i,useEffect as n}from"react";import s from"classnames";import{omit as p,isEmpty as m,map as a}from"lodash";import l from"prop-types";import{Grid as d,Menu as c,MenuItem as u}from"@material-ui/core";import"../../../../utils/index.js";import{COMPONENT_FAMILIES as j}from"../../../../constants/drillstring.js";import{jsxs as C,jsx as f,Fragment as b}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"../../../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"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 h 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"../../../../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"./shared/CancelButton.js";import{ExpandCollapseButton as v}from"./shared/ExpandCollapseButton.js";import{FormatedNumber as g}from"./shared/FormatedNumber.js";import"./shared/InputText.js";import{MoreButton as A}from"./shared/MoreButton.js";import"./shared/SaveButton.js";import"./shared/SelectField.js";import{StaticField as D}from"./shared/StaticField.js";import"./shared/SharedEditorElements.js";import{ConfirmationPopup as x}from"./shared/ConfirmationPopup.js";import{useStyles as P}from"./sharedStyles.js";import{calculateComponent as S}from"./utils/calculation.js";import y from"./Agitator/Browser.js";import E from"./Agitator/Editor.js";import B from"./Bit/Browser.js";import T from"./Bit/Editor.js";import w from"./DrillCollar/Browser.js";import I from"./DrillCollar/Editor.js";import O from"./DrillPipe/Browser.js";import k from"./DrillPipe/Editor.js";import L from"./Jar/Browser.js";import F from"./Jar/Editor.js";import M from"./Lwd/Browser.js";import W from"./Lwd/Editor.js";import _ from"./Mwd/Browser.js";import R from"./Mwd/Editor.js";import V from"./Pdm/Browser.js";import N from"./Pdm/Editor.js";import H from"./Rss/Browser.js";import z from"./Rss/Editor.js";import q from"./Stabilizer/Browser.js";import U from"./Stabilizer/Editor.js";import Z from"./Sub/Browser.js";import G from"./Sub/Editor.js";import Y from"./Ur/Browser.js";import J from"./Ur/Editor.js";import K from"./EditComponentDialog.js";import{showErrorNotification as Q}from"../../../../utils/notificationToasts.js";var X=["is_editing"];function $(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function ee(e){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?$(Object(r),!0).forEach((function(o){t(e,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function te(e){var t;return(null===(t=j.drilling.find((function(t){return t.type===e})))||void 0===t?void 0:t.name)||"—"}function oe(r){var l,j=r.isMobile,$=r.viewColumnsPerRow,oe=r.editColumnsPerRow,re=r.component,ie=r.validate,ne=r.isDraft,se=r.onCancel,pe=r.onDelete,me=r.onSave,ae=r.onChangeEditing,le=r.onAutocompleteApplied,de=r.isDragComponent,ce=i(null),ue=o(ce,2),je=ue[0],Ce=ue[1],fe=i(!1),be=o(fe,2),he=be[0],ve=be[1],ge=i(!1),Ae=o(ge,2),De=Ae[0],xe=Ae[1],Pe=i(re),Se=o(Pe,2),ye=Se[0],Ee=Se[1],Be=i(null),Te=o(Be,2),we=Te[0],Ie=Te[1],Oe=i(!1),ke=o(Oe,2),Le=ke[0],Fe=ke[1],Me=P({isMobile:j,isEditing:ye.is_editing,isDragComponent:de});n((function(){ae&&ae(ye.is_editing)}),[ye.is_editing]);var We=function(){Ie(null),ne?se():Ee(re)},_e=function(e,t){var o=S(ye,e,t),r=ie(o,ne);Ee(o),Ie(r?r.components[ye.id]:null)},Re=function(e){le&&le(!0),Ee((function(t){return ee(ee({},t),e)}))},Ve=function(){var e=ie(ye,ne);if(e){Ie(e.components[ye.id]);var t=ee(ee({},p(e,["general","components","specificErrors"])),e.general);t&&!m(t)&&a(t,(function(e){Q(e)}))}else Ie(null),ve(!0)},Ne=function(){ve(!1),Fe(!1),ye.is_editing;var t=e(ye,X);Ee(t),me(p(t,["is_expanded"]),ne)},He=s(Me.cell,Me.ratioWidth,t({},Me.focusedFontsize,ye.is_editing||ye.is_expanded));if(ye.is_editing&&!Le){var ze=ye.family,qe={component:ye,isDraft:ne,error:we,onChange:_e,onUseSuggestion:Re,onCancel:We,onSave:j?Ne:Ve,columns:oe};if(!j)return C("div",{className:Me.component,children:[("dp"===ze||"hwdp"===ze)&&f(k,ee({},qe)),"agitator"===ze&&f(E,ee({},qe)),"bit"===ze&&f(T,ee({},qe)),"dc"===ze&&f(I,ee({},qe)),"jar"===ze&&f(F,ee({},qe)),"lwd"===ze&&f(W,ee({},qe)),"mwd"===ze&&f(R,ee({},qe)),"pdm"===ze&&f(N,ee({},qe)),"rss"===ze&&f(z,ee({},qe)),"stabilizer"===ze&&f(U,ee({},qe)),"sub"===ze&&f(G,ee({},qe)),"ur"===ze&&f(J,ee({},qe)),he&&f(x,{title:"Save Changes?",text:"You will not be able to recover it.",okText:"Save",handleClose:function(){return ve(!1)},handleOk:Ne})]});Fe(!0)}return C("div",{className:s(Me.component,(l={},t(l,Me.componentMobile,j),t(l,Me.componentExpandedMobile,j&&ye.is_expanded),t(l,Me.componentActive,Boolean(je)),l)),children:[C("div",{className:s(Me.row,t({},Me.rowExpanded,j&&ye.is_expanded)),children:[f("div",{className:s(Me.cell,t({},Me.componentMobileCell,j)),children:f(h,{component:ye})}),f("div",{className:He,children:te(ye.family)}),!j&&C(b,{children:[f("div",{className:He,children:f(g,{value:"bit"===ye.family?ye.size:ye.outer_diameter})}),f("div",{className:He,children:f(g,{value:ye.inner_diameter})}),f("div",{className:He,children:f(g,{value:ye.linear_weight})}),f("div",{className:He,children:f(g,{value:ye.length,format:"0.0"})})]}),C("div",{className:s(Me.cell,Me.actionCell),children:[f(v,{isExpanded:ye.is_expanded,classes:Me,handleExpandCollapse:function(){Ee((function(e){return e.is_expanded?ee(ee({},e),{},{is_expanded:!1}):ee(ee({},e),{},{is_expanded:!0})}))}}),f(A,{classes:Me,handleOpenActionMenu:function(e){Ce(e.currentTarget)}})]})]}),ye.is_expanded&&C(b,{children:[j&&C(d,{container:!0,spacing:2,style:{padding:"8px 4px 16px"},children:[f(D,{label:"bit"===ye.family?"Bit Size":"OD",unit:"shortLength",value:"bit"===ye.family?ye.size:ye.outer_diameter}),"bit"!==ye.family&&f(D,{label:"ID",unit:"shortLength",value:re.inner_diameter}),"bit"!==ye.family&&f(D,{label:"Linear Weight",unit:"massPerLength",value:re.linear_weight,format:"0.0"}),f(D,{label:"Length",unit:"length",value:re.length,format:"0.0"})]}),("dp"===ye.family||"hwdp"===ye.family)&&f(O,{component:ye,columns:$}),"agitator"===ye.family&&f(y,{component:ye,columns:$}),"bit"===ye.family&&f(B,{component:ye,columns:$}),"dc"===ye.family&&f(w,{component:ye,columns:$}),"jar"===ye.family&&f(L,{component:ye,columns:$}),"lwd"===ye.family&&f(M,{component:ye,columns:$}),"mwd"===ye.family&&f(_,{component:ye,columns:$}),"pdm"===ye.family&&f(V,{component:ye,columns:$}),"rss"===ye.family&&f(H,{component:ye,columns:$}),"stabilizer"===ye.family&&f(q,{component:ye,columns:$}),"sub"===ye.family&&f(Z,{component:ye,columns:$}),"ur"===ye.family&&f(Y,{component:ye,columns:$})]}),C(c,{anchorEl:je,keepMounted:!0,open:Boolean(je),getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:function(){Ce(null)},children:[f(u,{onClick:function(){Ce(null),Ee((function(e){return ee(ee({},e),{},{is_editing:!0})}))},className:Me.menuItem,children:"Edit"}),"bit"!==ye.family&&f(u,{onClick:function(){Ce(null),xe(!0)},className:Me.menuItem,children:"Delete"})]}),De&&f(x,{title:"Delete Component?",text:"You will not be able to recover it.",okText:"Delete",handleClose:function(){return xe(!1)},handleOk:function(){pe(re)}}),Le&&f(K,{component:ye,isDraft:ne,error:we,onChange:_e,onUseSuggestion:Re,onCancel:We,onSave:Ve,onClose:function(){We(),Fe(!1)}}),j&&he&&f(x,{title:"Save Changes?",text:"You will not be able to recover it.",okText:"Save",handleClose:function(){return ve(!1)},handleOk:Ne})]})}oe.propTypes={isMobile:l.bool.isRequired,component:l.shape({family:l.string,size:l.number,outer_diameter:l.number,inner_diameter:l.number,linear_weight:l.number,length:l.number}).isRequired,isDraft:l.bool,validate:l.func.isRequired,onCancel:l.func,onDelete:l.func,onSave:l.func.isRequired,onChangeEditing:l.func,viewColumnsPerRow:l.number.isRequired,editColumnsPerRow:l.number.isRequired,onAutocompleteApplied:l.func,isDragComponent:l.bool.isRequired},oe.defaultProps={isDraft:!1,onCancel:null,onDelete:null,onChangeEditing:void 0,onAutocompleteApplied:void 0};var re=r(oe);export{re as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useState as r,memo as i}from"react";import t from"prop-types";import n from"classnames";import{sortableHandle as a,SortableElement as l}from"react-sortable-hoc";import{makeStyles as p,Tooltip as s,IconButton as d}from"@material-ui/core";import
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useState as r,memo as i}from"react";import t from"prop-types";import n from"classnames";import{sortableHandle as a,SortableElement as l}from"react-sortable-hoc";import{makeStyles as p,Tooltip as s,IconButton as d}from"@material-ui/core";import m from"@material-ui/icons/DragIndicator";import{BHA_FAMILY as u}from"../../../../constants/bha.js";import c from"./Component.js";import{jsx as b,jsxs as f}from"react/jsx-runtime";var g=p((function(o){return{sortableComponent:{position:"relative","&:hover":{"& $dragIndicatorButton":{display:"block"}},zIndex:"99999999 !important",background:function(e){return e.isSortable&&o.palette.background.b5},boxShadow:function(o){return o.isSortable&&"0px 0px 6px rgba(0, 0, 0, 0.5)"}},topComponent:{marginTop:"16px"},bottomComponent:{marginBottom:"8px"},dragInidicationHidden:{"&:hover":{"& $dragIndicatorButton":{display:"none"}}},dragIndicatorWrapper:{position:"absolute",left:function(o){return o.isMobile?"8px":0},top:function(o){return o.isMobile?"20px":"8px"}},dragIndicatorButton:{display:function(o){return o.isMobile?"block":"none"},padding:"8px",background:function(e){return e.isMobile?"none":o.palette.background.b9},"&:hover":{background:o.palette.background.b7,"& $dragIndicatorIcon":{color:o.palette.primary.text1}}},dragIndicatorIcon:{cursor:"pointer",color:o.palette.primary.text6,fontSize:"16px"}}})),C=a((function(o){var e=o.isMobile,r=g({isMobile:e});return b("div",{className:r.dragIndicatorWrapper,children:b(s,{title:e?"":"Click & Drag to reorder",children:b(d,{className:r.dragIndicatorButton,children:b(m,{className:r.dragIndicatorIcon})})})})})),v=l((function(i){var t,a=i.isActualBha,l=i.component,p=i.isTopComponent,s=i.isLastCompnent,d=i.isSortable,m=i.sortableIndex,v=i.validate,R=i.onDelete,x=i.onSave,I=i.isMobile,h=i.viewColumnsPerRow,q=i.editColumnsPerRow,M=i.onAutocompleteApplied,w=g({isMobile:I,isSortable:d}),y=r(!1),A=e(y,2),S=A[0],k=A[1];return f("div",{className:n(w.sortableComponent,(t={},o(t,w.topComponent,!I&&p),o(t,w.bottomComponent,!I&&s),o(t,w.dragInidicationHidden,!d&&-1!==m),t)),children:[l.family!==u.bit&&!S&&b(C,{isMobile:I}),b(c,{isMobile:I,isActualBha:a,viewColumnsPerRow:h,editColumnsPerRow:q,component:l,validate:v,onSave:x,onDelete:R,onChangeEditing:k,onAutocompleteApplied:M,isDragComponent:-1!==m})]})}));v.propTypes={isActualBha:t.bool.isRequired,isMobile:t.bool.isRequired,component:t.shape({}).isRequired,isTopComponent:t.bool.isRequired,isLastCompnent:t.bool.isRequired,isSortable:t.bool.isRequired,sortableIndex:t.number.isRequired,validate:t.func.isRequired,onDelete:t.func.isRequired,onSave:t.func.isRequired,viewColumnsPerRow:t.number.isRequired,editColumnsPerRow:t.number.isRequired,onAutocompleteApplied:t.func.isRequired};var R=i(v);export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedStyles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drillstring/BHAComponentsTable/components/sharedStyles.js"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"sharedStyles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Drillstring/BHAComponentsTable/components/sharedStyles.js"],"names":[],"mappings":"AAEA,qpBAiKI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyles as t}from"@material-ui/core";var e=t((function(t){return{component:{display:"flex",flexDirection:"column",width:"100%","&:hover":{background:function(t){
|
|
1
|
+
import{makeStyles as t}from"@material-ui/core";var e=t((function(t){return{component:{display:"flex",flexDirection:"column",width:"100%","&:hover":{background:function(t){var e=t.isEditing,i=t.isDragComponent;return!e&&!i&&"rgba(255, 255, 255, 0.03)"}},padding:0},componentActive:{background:function(t){return!t.isEditing&&"rgba(255, 255, 255, 0.03)"},"& $moreButton":{color:t.palette.primary.text1,backgroundColor:"rgba(255, 255, 255, 0.08)"}},componentMobile:{height:"72px",marginBottom:"8px",padding:"0px 12px",borderRadius:"4px",justifyContent:"center",backgroundColor:t.palette.background.b7},componentExpandedMobile:{height:"fit-content",paddingBottom:"16px"},detailedView:{padding:"24px 80px 16px 40px"},detailedViewMobile:{padding:"0px 4px"},editorContainer:{padding:"16px 0"},editorComponentSize:{width:"40px"},eidtorContentContainer:{width:function(t){return t.isMobile?"100%":"calc(100% - 120px)"}},eidtorActionGroup:{width:"80px",textAlign:"right"},eidtorNozzleView:{padding:0,paddingLeft:"8px"},editorHeaderCell:{maxWidth:"20%",flexBasis:"20%"},editorGap:{width:"100%",height:"8px"},row:{display:"flex"},rowExpanded:{marginTop:"12px",marginBottom:"8px"},cell:function(e){var i=e.isMobile;return{display:"flex",alignItems:"center",fontSize:i?"14px":"13px",fontWeight:400,color:t.palette.primary.text1,paddingBottom:i?0:1}},ratioWidth:{width:"calc((100% - 120px) / 5)",paddingLeft:"8px"},actionCell:{display:"flex",width:"80px",minWidth:"80px",justifyContent:"flex-end",alignItems:"center",flex:1},actionButton:{padding:"8px",color:t.palette.primary.text6,"&:hover":{color:t.palette.primary.text1}},actionIcon:{fontSize:"16px"},moreButton:{},componentMobileCell:{marginLeft:"36px"},cellInnerMobile:{display:"flex",flexDirection:"row",justifyContent:"space-between"},cellLabel:function(e){var i=e.isMobile;return{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:t.palette.primary.text6,fontSize:i?"13px":"12px",fontWeight:500,letterSpacing:"0.4px",lineHeight:i?"14px":"17px"}},cellValue:function(e){var i=e.isMobile;return{marginTop:i?0:5,paddingLeft:i&&"12px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:i?"13px":"16px",fontWeight:400,color:t.palette.primary.text1,lineHeight:i?"14px":"22px"}},largeFontSize:{fontSize:"16px"},inputLabel:{width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},subGroup:{width:"100%"},subTitle:function(t){var e=t.isMobile;return{fontSize:"14px",fontWeight:e?600:700,marginLeft:e?"4px":"40px",marginTop:e&&"16px",marginBottom:e&&"16px"}},subTitleEditing:{marginLeft:"8px !important"},additionalTitle:function(t){return{fontSize:"14px",fontWeight:t.isMobile?600:700}},addButton:{padding:"8px",margin:"8px 12px"},addIcon:{fontSize:"20px"}}}));export{e as useStyles};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from
|
|
1
|
+
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as o,jsx as i}from"react/jsx-runtime";import{useState as t,useEffect as n}from"react";import r from"prop-types";import a from"classnames";import{makeStyles as l,ClickAwayListener as c,TextField as s,Tooltip as d,InputAdornment as m}from"@material-ui/core";import p from"@material-ui/icons/Edit";import u from"@material-ui/icons/Close";import f from"@material-ui/icons/Done";var g=l((function(e){return{editableItem:{width:"100%",height:36,position:"relative",backgroundColor:e.palette.background.b8,"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.07)"},"&:hover svg":{visibility:"visible"}},editableItemActive:{backgroundColor:"rgba(3, 188, 212, 0.15) !important"},value:{color:e.palette.primary.text6,fontSize:"0.875rem",height:"100%",letterSpacing:".13132px",lineHeight:"36px",overflow:"hidden",paddingLeft:48,textOverflow:"ellipsis",whiteSpace:"nowrap",width:"calc(100% - 32px)",userSelect:"none"},textField:{width:"100%"},inputRoot:{height:36,paddingLeft:48,fontSize:"0.875rem"},inputDisabled:{backgroundColor:"unset",paddingRight:16,"&::before":{display:"none"},pointerEvents:"none"},icon:{boxSizing:"content-box",cursor:"pointer",color:e.palette.primary.text6,padding:7,fontSize:"1rem","&:hover":{color:"#FFFFFF",backgroundColor:"rgba(51, 51, 51, 0.9)",borderRadius:"50%"},"&:target":{backgroundColor:e.palette.background.b9}},iconPrimary:{color:e.palette.primary.main},iconPrimaryDisabled:{color:e.palette.primary.main,opacity:.4,cursor:"default",pointerEvents:"none"},iconClose:{fill:"".concat(e.palette.primary.text6," !important"),"&:hover":{fill:"#FFFFFF !important"}},iconEdit:{position:"absolute",right:4,top:3,visibility:"hidden"},inputAdornment:{marginTop:1,marginRight:4}}})),b=function(r){var l,b=r.className,v=r.isEditable,h=r.isEditing,y=r.onClick,C=r.onClickAway,k=r.onCancel,E=r.onSave,F=r.value,x=t(F),w=x[0],P=x[1],S=t(h),N=S[0],A=S[1],R=g(),z=function(e){e.stopPropagation(),w.length&&w!==F&&E(w).then((function(){return A(!1)}))};n((function(){var e=function(e){"Escape"===e.key||"Esc"===e.key?(P(F),A(!1),C()):"Enter"===e.key&&z(e)};return N&&document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[N,F,w]);var D=function(e){e.stopPropagation(),P(F),A(!1),k()};n((function(){P(F)}),[F]);var I=a(R.editableItem,((l={})[R.editableItemActive]=N,l),b);return o("div",e({className:I,onClick:y},{children:[!N&&i("div",e({className:R.value},{children:w})),N&&i(c,e({onClickAway:function(){P(F),A(!1),C()}},{children:i(s,{autoFocus:!0,type:"text",value:w,onChange:function(e){e.stopPropagation(),P(e.target.value)},placeholder:"Page Name...",className:R.textField,InputProps:{classes:{root:R.inputRoot},endAdornment:N?i(m,e({position:"end"},{children:o("span",e({className:R.inputAdornment},{children:[i(d,e({title:"Cancel",placement:"bottom-end"},{children:i(u,{className:a(R.icon,R.iconClose),onClick:D,fontSize:"small"})})),i(d,e({title:"Save",placement:"bottom-end"},{children:i(f,{color:w===F?"disabled":"primary",onClick:z,fontSize:"small",disabled:w===F,classes:{root:R.icon,colorPrimary:R.iconPrimary,colorDisabled:R.iconPrimaryDisabled}})}))]}))})):null}})})),v&&!N&&i(d,e({title:"Rename Page",placement:"bottom-end"},{children:i(p,{className:a(R.icon,R.iconEdit),onClick:function(e){e.stopPropagation(),A(!0)},fontSize:"small"})}))]}))},v={className:r.string,isEditable:r.bool,isEditing:r.bool,onClick:r.func,onSave:r.func.isRequired,onClickAway:r.func,onCancel:r.func,value:r.string.isRequired};b.propTypes=v,b.defaultProps={className:"",isEditable:!0,isEditing:!1,onClick:function(){},onClickAway:function(){},onCancel:function(){}};export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DvdCommentEdit.d.ts","sourceRoot":"","sources":["../../../../../src/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DvdCommentEdit.d.ts","sourceRoot":"","sources":["../../../../../src/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js"],"names":[],"mappings":";AAgFA;;;;;;;;;;;;;;;;;;gBA+IC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useRef as o,useState as
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useRef as o,useState as n}from"react";import r from"moment";import{debounce as i}from"lodash";import a from"classnames";import{makeStyles as c,Grid as s,Typography as l}from"@material-ui/core";import{getUnitDisplay as m}from"../../../../utils/index.js";import p from"../../../Modal/Modal.js";import d from"../../../PostInput/PostInput.js";import u from"../../../IconButton/index.js";import{Regular14 as h}from"../../../Typography.js";import f from"../../../Icons/SendIcon.js";import{isSuggestionsListOpened as g}from"../../../UserMention/utils/index.js";import{jsxs as b,jsx as y}from"react/jsx-runtime";function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function x(t){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?v(Object(n),!0).forEach((function(o){e(t,o,n[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var N=c((function(e){return{postInput:{paddingBottom:8},filePreviewWrapper:{width:"100%",marginLeft:0,maxHeight:251},modal:{maxWidth:450,width:"100vw"},actionsAdornment:{flex:1},info:{marginTop:16},text:{color:e.palette.primary.text6},value:{color:"#fff"},inputMain:{marginBottom:0,fontSize:"11px",color:e.palette.primary.text8},inputHelper:{display:"flex",paddingRight:5},cancelText:{cursor:"pointer"},highlightedLabel:{color:e.palette.primary.main},modalActions:{paddingTop:16},actions:{height:36},sendRow:{display:"flex"},sendIcon:{"&.Mui-disabled":{cursor:"not-allowed!important"}}}})),w={suggestions:{list:{background:"#414141"},item:{color:"white",height:30,"&focused":{backgroundColor:"rgba(255, 255, 255, 0.08)"}}}};function j(e){var c,v=e.feedItem.context.dvd_comment,j=v.body,O=v.attachment,P=v.data,C=v.data,I=C.bitDepth,D=C.holeDepth,B=C.cost,M=C.timestamp,S=e.onClose,H=e.onSave,T=e.userCompanyId,k=N(),A=o(),E=n({body:j,attachment:O}),L=t(E,2),W=L[0],F=L[1],R=i(F,300),K=function(){H({context:{dvd_comment:x(x({},W),{},{data:P})}})};return b(p,{open:!0,onClose:S,title:"Edit Comment",contentClassName:k.modal,actionsClassName:k.modalActions,actions:b(s,{container:!0,direction:"row",justify:"space-between",alignItems:"center",className:k.actions,children:[y(s,{item:!0,children:y(l,{variant:"caption",className:a(k.inputMain,k.cancelText,k.highlightedLabel),component:"div",gutterBottom:!0,onClick:S,children:"Cancel"})}),b(s,{item:!0,direction:"row",alignItems:"center",className:k.sendRow,children:[b(l,{variant:"caption",className:a(k.inputMain,k.inputHelper),component:"div",gutterBottom:!0,children:["Press ",y(l,{variant:"caption",color:"primary",className:a(k.inputMain,k.highlightedLabel),children:"Enter"})," to send"]}),y(u,{onClick:K,className:k.sendIcon,disabled:!W||!W.body&&!W.attachment,children:y(f,{})})]})]}),ref:A,children:[y(d,{initialValue:{body:j,attachment:O},userCompanyId:T,onChange:R,filePreviewWrapperClass:k.filePreviewWrapper,className:k.postInput,onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||g()||(e.preventDefault(),K())},mentionStyle:w,suggestionsPortalHost:A.current,allowSuggestionsAboveCursor:!0}),b("div",{className:k.info,children:[M&&b(h,{className:k.text,gutterBottom:!0,children:["Time:"," ",y("span",{className:k.value,children:r(M).format("MM/DD/YY, HH:mm")})," "]}),Number.isFinite(B)&&b(h,{className:k.text,gutterBottom:!0,children:["Cost: ",b("span",{className:k.value,children:[" ",(c=B,c.toString().replace(/\B(?=(\d{3})+(?!\d))/g," "))]})," ",y("span",{className:k.currency,children:"$"})]}),Number.isFinite(I)&&b(h,{className:k.text,gutterBottom:!0,children:["Bit Depth: ",y("span",{className:k.value,children:"".concat(I," ").concat(m("length"))})]}),Number.isFinite(D)&&b(h,{className:k.text,gutterBottom:!0,children:["Hole Depth: ",y("span",{className:k.value,children:"".concat(D," ").concat(m("length"))})]})]})]})}export{j as default};
|
|
@@ -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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DvDCommentFeedItem.d.ts","sourceRoot":"","sources":["../../../../src/components/FeedItem/feedItemTypes/DvDCommentFeedItem.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DvDCommentFeedItem.d.ts","sourceRoot":"","sources":["../../../../src/components/FeedItem/feedItemTypes/DvDCommentFeedItem.js"],"names":[],"mappings":";AAiCA;;;;;;;;;;;;;;;;gBAgEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyles as t,Typography as e}from"@material-ui/core";import a from"moment";import{
|
|
1
|
+
import{makeStyles as t,Typography as e}from"@material-ui/core";import a from"moment";import{getUnitDisplay as i}from"../../../utils/index.js";import{isNativeDetected as n}from"../../../utils/mobileDetect.js";import{formatMentionText as o}from"../../UserMention/utils/index.js";import r from"../../Attachment/index.js";import{jsxs as c,jsx as m}from"react/jsx-runtime";var l=t((function(t){return{text:{color:t.palette.primary.text6},value:{color:"#fff"},attachment:{paddingTop:10,width:300},infoField:{color:t.palette.primary.text6,"& span":{color:"#fff"}}}})),d="DvDCommentFeedItem";var s=function(t){var s,p=t.feedItem,h=p.context.dvd_comment,f=h.body,u=h.attachment,D=void 0===u?{}:u,v=h.data,x=v.timestamp,N=v.bitDepth,g=v.holeDepth,F=v.cost,_=p.mentioned_users,b=l();return c("div",{className:b.wrapper,children:[f&&m(e,{"data-testid":"".concat(d,"_message"),variant:"body1",gutterBottom:!0,children:o(f,_,n)}),x&&c(e,{className:b.infoField,children:["Time:"," ",m("span",{"data-testid":"".concat(d,"_time"),children:a.unix(x).format("MM.DD.YYYY, HH:mm")})]}),(g||0===g)&&c(e,{className:b.infoField,children:["Hole Depth:",m("span",{"data-testid":"".concat(d,"_holeDepth"),children:"".concat(g," ").concat(i("length"))})]}),(N||0===N)&&c(e,{className:b.infoField,children:["Bit Depth:",m("span",{"data-testid":"".concat(d,"_bitDepth"),children:"".concat(N," ").concat(i("length"))})]}),F&&Number.isFinite(F)&&c(e,{className:b.infoField,children:["Cost: ",c("span",{"data-testid":"".concat(d,"_cost"),children:[(s=F,s.toString().replace(/\B(?=(\d{3})+(?!\d))/g," "))," $"]})]}),D&&D.url&&m("div",{className:b.attachment,children:m(r,{small:!0,attachmentUrl:D.url,fileName:D.name,displayName:D.name})})]})};export{s 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 +1 @@
|
|
|
1
|
-
import{__assign as e}from
|
|
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 f}from"@material-ui/icons";import u 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,y,S,C,b,w,L,j=l.size,M=l.unit,P=l.name,T=l.sizeBytes,x=l.handleCancel,k=l.onReload,E=l.onDelete,R=l.loadedBytes,A=l.error,D=l.errorText,U=l.formatError,O=l.importButtonType,W=l.isLoadingAnimation,F=B(),q=t({}),K=q[0],_=q[1],G=t(0),H=G[0],J=G[1],Q=t(!0),V=Q[0],X=Q[1],Y="large"===j;i((function(){_(function(e,o){return"time"===o?{downloaded:0,unit:"min",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}}(T,M))}),[T,M]),i((function(){if(R&&T){var o=Math.round(R/T*100);_((function(r){return e(e({},r),{downloaded:Math.floor(r.convertedSize*o/10)/10})})),J(o)}}),[R,T]),i((function(){var e;return E&&H>=100&&(X(!0),e=setTimeout((function(){X(!1)}),5e3)),function(){return e&&clearTimeout(e)}}),[H]),i((function(){A&&(J(0),_((function(o){return e(e({},o),{downloaded:0})})))}),[A]);var Z=a((function(){var e,o;return[s(F.iconButton,((e={})[F.iconButtonLarge]=Y,e)),s(F.actionIcon,((o={})[F.actionIconLarge]=Y,o))]}),[Y]),$=Z[0],ee=Z[1];return o("div",e({className:F.fileStateWrapper},{children:[r("div",e({className:F.fileIconContainer},{children:r(z,{name:P,style:{fontSize:Y?48:32}})})),o("div",e({className:F.fileState},{children:[o("div",e({className:F.fileStateProgress},{children:[r("div",e({className:F.fileNameWrapper},{children:r(c,e({className:s(F.fileName,(I={},I[F.fileNameLarge]=Y,I))},{children:P.length>7?o(n,{children:[r("span",e({className:F.firstPart},{children:P.slice(0,P.length-7)})),r("span",{children:P.slice(-7)})]}):P}))})),!W&&r(d,{className:F.progressBar,variant:"determinate",value:H,classes:{colorPrimary:s(F.progressBackground,(y={},y[F.progressBarError]=A,y)),barColorPrimary:s(F.progressBarColor,(S={},S[F.progressBarError]=A,S))}}),o("div",e({className:F.loaderProgressContainer},{children:[!W&&r(c,e({className:s(F.fileSize,(C={},C[F.fileSizeLarge]=Y,C)),component:"span"},{children:"".concat(K.downloaded," of ").concat(K.convertedSize," ").concat(K.unit)})),o("div",e({className:s(F.progressStatus,(b={},b[F.fileSizeLarge]=Y,b))},{children:[A&&o(c,e({component:"div",className:F.errorContainer},{children:[r(h,{size:j}),r(c,e({component:"span",className:s(F.errorText,(w={},w[F.fileSizeLarge]=Y,w))},{children:U?"Upload Error. Unacceptable file format.":"Upload Error".concat(D&&". ".concat(D))}))]})),!A&&!W&&"".concat(H," %")]}))]}))]})),o("div",e({className:F.fileActions},{children:[H<100&&!A&&r(n,{children:W?r("div",{className:s(F.loadingIcon,(L={},L[F.loadingLargeIcon]=Y,L)),style:{backgroundImage:"url(".concat("/static/media/c7e056a4353978b8b0393473f0d750ae.svg",")")}}):r(u,e({tooltipProps:{title:"Cancel"},className:$,onClick:function(){x(P),J(0),_((function(o){return e(e({},o),{downloaded:0})}))}},{children:r(m,{classes:{root:ee}})}))}),100===H&&!A&&(!V&&E?r(u,e({variant:"contained",tooltipProps:{title:"Delete"},className:$,onClick:E},{children:r(f,{classes:{root:ee}})})):r(g,{size:j,style:{marginLeft:12}})),k&&A&&r(n,{children:U?r(n,{children:"default"===O?r(p,e({size:Y?"medium":"small",variation:"primary",startIcon:r(N,{}),onClick:k},{children:"Import"})):r(u,e({tooltipProps:{title:"Import File"},className:$,onClick:k},{children:r(N,{style:{fontSize:Y?24:16}})}))}):r(u,e({tooltipProps:{title:"Reload"},className:$,onClick:k},{children:r(v,{style:{fontSize:Y?24:16}})}))})]}))]}))]}))}var y={size:l.oneOf(["small","large"]),unit:l.oneOf(["size","time"]),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};I.propTypes=y,I.defaultProps={size:"small",unit:"size",onDelete:null,onReload:null,name:"",sizeBytes:1,error:null,errorText:"",formatError:!1,importButtonType:"default",handleCancel:null,isLoadingAnimation:!1};export{I as default};
|
|
@@ -5,7 +5,7 @@ interface IconButtonProps extends Omit<MuiIconButtonProps, 'size' | 'variant' |
|
|
|
5
5
|
variant?: 'contained' | 'default';
|
|
6
6
|
}
|
|
7
7
|
declare const IconButton: {
|
|
8
|
-
({ tooltipProps, ...otherProps }: IconButtonProps): JSX.Element;
|
|
8
|
+
({ tooltipProps, isActive, ...otherProps }: IconButtonProps): JSX.Element;
|
|
9
9
|
propTypes: {
|
|
10
10
|
isActive: PropTypes.Requireable<boolean>;
|
|
11
11
|
size: PropTypes.Requireable<string>;
|
|
@@ -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;
|
|
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
|
-
import{__rest as o,__assign as t}from
|
|
1
|
+
import{__rest as o,__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import i from"prop-types";import a from"classnames";import{makeStyles as e,Tooltip as l,IconButton as n}from"@material-ui/core";import{useState as s}from"react";var c=e((function(o){return{root:{color:o.palette.primary.text6,padding:6,"&:hover":{color:"#FFFFFF",backgroundColor:o.palette.background.b7,"&.MuiIconButton-colorPrimary":{color:o.palette.primary.main}},"&:active":{color:"#FFFFFF","&.MuiIconButton-colorPrimary":{color:o.palette.primary.main}},"&.Mui-disabled":{pointerEvents:"all",opacity:.4,color:"#FFFFFF","&.MuiIconButton-colorPrimary":{color:o.palette.primary.main}},"& .MuiSvgIcon-root":{color:"inherit",fontSize:"inherit"}},colorPrimary:{color:o.palette.primary.main},sizeSmall:{fontSize:16,padding:7},sizeLarge:{"&.MuiButtonBase-root":{padding:8}},contained:{backgroundColor:o.palette.background.b9},containedDisabled:{"&.MuiButtonBase-root":{backgroundColor:o.palette.background.b9}},tooltip:{top:"-10px !important"},active:{"&.MuiButtonBase-root":{color:o.palette.primary.text1,backgroundColor:o.palette.background.b9,"&.MuiIconButton-colorPrimary":{color:o.palette.primary.main}}}}})),d=function(i){var e,d,p,m,u=i.tooltipProps,b=void 0===u?{title:void 0}:u,g=i.isActive,v=o(i,["tooltipProps","isActive"]),y=v.size,f=v.variant,F=v.classes,P=void 0===F?{}:F,z=v["data-testid"],B=c(),M=s(!1),k=M[0],S=M[1],I=t(t({},P),{root:a(P.root,B.root,(e={},e[B.sizeLarge]="large"===y,e[B.contained]="contained"===f,e)),disabled:a(P.disabled,(d={},d[B.containedDisabled]="contained"===f,d)),colorPrimary:a(P.colorPrimary,B.colorPrimary),sizeSmall:a(P.sizeSmall,B.sizeSmall)});return b.title?r(l,t({open:k},b,{children:r(n,t({"data-testid":z,classes:I,className:a((p={},p[B.active]=g,p)),onMouseOver:function(){return S(!0)},onMouseOut:function(){return S(!1)}},v))})):r(n,t({"data-testid":z,classes:I,className:a((m={},m[B.active]=g,m))},v))},p={isActive:i.bool,size:i.oneOf(["small","medium","large"]),variant:i.oneOf(["default","contained"]),tooltipProps:i.shape({title:i.string}),classes:i.shape({root:i.string,disabled:i.string,colorPrimary:i.string,sizeSmall:i.string}),disabled:i.bool,"data-testid":i.string};d.propTypes=p,d.defaultProps={isActive:!1,size:"medium",variant:"default",tooltipProps:{title:void 0},disabled:!1,"data-testid":"IconButton"};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import i from"classnames";import r from"./Loader.js";import{screenLoadingIndicatorPropTypes as a}from"./types.js";import o from"./LoadingIndicator.css.js";var m=function(a){var m=a.white,t=a.size,p=a.className;return e("div",s({className:i(o.appLoading,p)},{children:e("div",s({className:o.appLoadingGrid},{children:e("div",s({className:o.appLoadingInner},{children:e(r,{white:m,size:t})}))}))}))};m.propTypes=a,m.defaultProps={white:!0,size:80,className:""};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import r from"classnames";import i from"./Loader.js";import{screenLoadingIndicatorPropTypes as o}from"./types.js";import t from"./LoadingIndicator.css.js";var a=function(o){var a=o.white,m=o.size,p=o.className;return e("div",s({className:r(t.appLoadingInline,p)},{children:e(i,{white:a,size:m})}))};a.propTypes=o,a.defaultProps={white:!0,size:80,className:""};export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as r,__assign as e}from
|
|
1
|
+
import{__rest as r,__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as o}from"react/jsx-runtime";import s from"./FullScreenLoadingIndicator.js";import t from"./InlineLoadingIndicator.js";import{loadingIndicatorPropTypes as i}from"./types.js";import{LOADER_DEFAULT_SIZE as l,LOADER_HREF as m}from"./Loader.js";var n=function(i){var l=i.fullscreen,m=r(i,["fullscreen"]);return o(l?s:t,e({},m))};n.propTypes=i,n.defaultProps={fullscreen:!0,white:!0,size:l,className:""},n.LOADER_HREF=m,n.LOADER_DEFAULT_SIZE=l;export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import e from"prop-types";var s={white:e.bool,size:e.number},r=o(o({},s),{className:e.string}),l=o(o({},r),{fullscreen:e.bool});export{s as loaderPropTypes,l as loadingIndicatorPropTypes,r as screenLoadingIndicatorPropTypes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as e}from
|
|
1
|
+
import{__rest as o,__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i}from"react/jsx-runtime";import{useState as l}from"react";import s from"classnames";import{noop as a}from"lodash";import{withStyles as n,IconButton as r,makeStyles as c,Modal as m,Tooltip as d}from"@material-ui/core";import{Close as p,CloseRounded as C}from"@material-ui/icons";import{isMobileDetected as h,isNativeDetected as u}from"../../utils/mobileDetect.js";import N from"./CorvaModal.css.js";import{modalPropTypes as f}from"./types.js";var b,v="filters",T="settings",g=((b={})[v]="Filters",b[T]="Settings",b),y=n({root:{position:"absolute",right:28,top:24,color:"#9E9E9E",fontSize:"14px",paddingTop:8,width:14,height:14,"&.MuiIconButton-root":{padding:0},"& svg":{transform:"scale(1.8)",width:14,height:14}}})(r),M=n((function(o){return{root:{color:o.palette.primary.text6,"&:hover":{color:"white",cursor:"pointer"}}}}))(p),k=c((function(o){return{closeTooltip:{marginTop:8},closeButton:{padding:"4px 6px",width:"36px",height:"36px","&:hover":{backgroundColor:o.palette.background.b7}}}}));function x(a){var n,c,p=a.title,h=a.children,u=a.actions,f=a.open,b=a.isCloseIconHidden,T=a.onClose,x=a.isNative,F=a.isMobile,w=a.stickyFooter,S=a.contentContainerClassName,j=a.contentClassName,H=a.stickyFooterClassName,z=a.modalTitleClassName,A=a.size,I=a.type,B=a.rootClassName,E=a.actionsClassName,W=o(a,["title","children","actions","open","isCloseIconHidden","onClose","isNative","isMobile","stickyFooter","contentContainerClassName","contentClassName","stickyFooterClassName","modalTitleClassName","size","type","rootClassName","actionsClassName"]),D=l(0),P=D[0],_=D[1],q=window.innerHeight,G=P>=Math.floor(80*q/100),J=x||F,K=k();return t(m,e({open:f,onClose:T,className:s((n={"c-modal":!J},n[N.modalWrapper]=!0,n[B]=!0,n[N[I]]=J&&I,n))},W,{children:i("div",e({ref:function(o){return _(null==o?void 0:o.clientHeight)},className:s((c={},c[N[A]]=!J,c[N.modalContainer]=!J,c[N.modalMobileContainer]=!J,c[N.modalStaticFooter]=!J&&w&&G,c[S]=!0,c[N.modalMobileContainer]=J,c[N.modalMobileStaticFooter]=J,c))},{children:[J&&i("div",e({className:s(N.modalMobileTitle,I===v&&N.filtersTitle)},{children:[t(y,e({onClick:T},{children:t(C,{})})),t("div",e({className:N.modalMobileTitleText},{children:p||g[I]}))]})),!J&&p&&i("div",e({className:s(N.modalTitle,!b&&N.modalTitleWithClose,z)},{children:[t("div",e({className:N.modalTitleText},{children:p})),!b&&t(d,e({title:"Close",classes:{tooltip:K.closeTooltip},placement:"bottom"},{children:t(r,e({onClick:T,classes:{root:K.closeButton}},{children:t(M,{})}))}))]})),h&&t("div",e({className:s(!J&&N.modalContent,J&&N.modalMobileContent,j)},{children:h})),u&&t("div",e({className:s(J&&N.modalMobileActions,!w&&N.modalActions,w&&N.modalActionsSticky,w&&G&&N.modalActionsStickyShadow,w&&H,E)},{children:u}))]}))}))}x.propTypes=f,x.defaultProps={actions:"",actionsClassName:null,children:null,contentClassName:null,contentContainerClassName:null,isCloseIconHidden:!1,isMobile:h,isNative:u,modalTitleClassName:"",onClose:a,stickyFooter:!1,stickyFooterClassName:null,title:"",size:null,type:"",rootClassName:null};export{x as CorvaModal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as r}from
|
|
1
|
+
import{__rest as e,__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as o}from"react/jsx-runtime";import{useDelayedDcFullscreenElemOpen as n}from"../../effects/useDelayedDcFullscreenElemOpen.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import{IsInsideDcFullscreenElemProvider as s}from"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import{CorvaModal as t}from"./CorvaModal.js";function i(i){var l=i.open,m=e(i,["open"]),p=n({isOpen:l}).delayedIsOpen;return o(s,{children:o(t,r({open:p},m))})}export{i as DcCorvaModal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from
|
|
1
|
+
import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as n}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{useIsInsideDcFullscreenElem as o}from"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import{useIsInsideDcApp as r}from"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import{CorvaModal as t}from"./CorvaModal.js";import{DcCorvaModal as p}from"./DcCorvaModal.js";function s(s){var i=r(),C=o();return n(i&&!C?p:t,e({},s))}export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from
|
|
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 r}from"react";import n from"prop-types";import i from"classnames";import{makeStyles as a,Typography as l,Tooltip as s}from"@material-ui/core";import{Edit as d,ExpandLess as c,ExpandMore as p}from"@material-ui/icons";import f from"../IconButton/index.js";var m=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"},isActive:{color:o.primary.contrastText},primaryIcon:{"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.16)"}}}})),u=function(n){var a=n.onClick,u=n.wells,x=n.disabled,b=n.expanded,h=n.onExpand,v=r(!1),g=v[0],y=v[1],C=m(),w=u.length,k=!(!w||!h),E=o("div",e({className:i(C.offsetContainer,x&&C.disabled),onClick:a,onMouseMove:function(e){var o=e.target,t=o.parentNode;o.getAttribute("data-icon")||t.getAttribute("data-icon")?y(!1):y(!0)},onMouseLeave:function(){y(!1)}},{children:[o(l,e({className:i(C.offsetText,g&&C.isActive)},{children:["Offset Wells (",w,")"]})),t(f,e({className:i(C.primaryIcon,g&&C.hoveredContainer),color:"primary",size:"medium"},{children:t(d,{})}))]}));return o("div",e({className:C.buttons},{children:[t(s,e({title:"Edit Offset Wells",placement:"bottom"},{children:E})),k&&t(f,e({tooltipProps:{title:b?"Collapse Offset Wells":"Expand Offset Wells"},onClick:function(e){e.stopPropagation(),h()},color:"default",size:"medium","data-icon":"expandIcon"},{children:t(b?c:p,{"data-icon":"expandIcon"})}))]}))},x={onClick:n.func.isRequired,wells:n.arrayOf(n.shape({id:n.number,title:n.string})),disabled:n.bool,onExpand:n.func,expanded:n.bool};u.propTypes=x,u.defaultProps={onExpand:null,expanded:!1,wells:[],disabled:!1};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as r}from
|
|
1
|
+
import{__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useState as i}from"react";import{makeStyles as e,Tooltip as a,Chip as l}from"@material-ui/core";import n from"./components/OffsetWellTruncatedText.js";import{offsetWellChipPropTypes as m}from"./types.js";import c from"../../utils/main.js";import s from"./icons/SubjectIcon.js";var p=e((function(r){return{chipRoot:{position:"relative",height:30,padding:"7px 12px",fontSize:12,color:r.palette.primary.text6,margin:4,"&:hover":{cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.1)",color:r.palette.primary.contrastText}},root:{width:"100%",display:"flex",alignItems:"center"},label:{padding:0},mark:{display:"block",marginRight:4,width:8,height:8,borderRadius:8,backgroundColor:function(r){return r.markColor}},subject:{display:"flex",marginRight:4}}})),d=function(e){var m=e.title,d=e.onClick,u=e.markColor,f=e.isSubject,h=e.rigName,g=e.maxWidth,b=i(null),x=b[0],k=b[1],C=p({markColor:u||"#".concat(c.getColorFromString(m))}),j=!!x,y=h?"".concat(m," | ").concat(h):m,v=t("div",r({className:C.root},{children:[o("span",f?r({className:C.subject},{children:o(s,{})}):{className:C.mark}),o(n,r({onTruncate:function(r){k(r)},truncatedText:x,maxWidth:g},{children:m}))]}));return o(a,r({title:j?y:h},{children:o(l,{"data-not-migrated-MuiChip":!0,variant:"outlined",size:"medium",label:v,classes:{root:C.chipRoot,label:C.label},onClick:d})}))};d.propTypes=m,d.defaultProps={onClick:null,markColor:null,maxWidth:200,rigName:null};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as r}from
|
|
1
|
+
import{__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i}from"react/jsx-runtime";import{makeStyles as e}from"@material-ui/core";import t from"prop-types";import o from"./Chip.js";var a=e((function(){return{container:{display:"flex",flexWrap:"wrap",padding:"8px 0"}}})),m=function(e){var t=e.wells,m=e.maxWidth,s=a();return i("div",r({className:s.container},{children:t.map((function(r){var e=r.id,t=r.title,a=r.isSubject,s=r.markColor,l=r.rigName;return i(o,{maxWidth:m,title:t,isSubject:a,markColor:s,rigName:l},e)}))}))};m.propTypes={wells:t.arrayOf(t.shape({title:t.string,id:t.number,rigName:t.string,isSubject:t.bool,markColor:t.string})).isRequired};export{m as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default OffsetWellMap;
|
|
2
|
-
declare function OffsetWellMap({ isViewOnly, subjectWell, wells, offsetWellIds, radius, handleChanageOffsetWell, activeWellId, }: {
|
|
2
|
+
declare function OffsetWellMap({ isViewOnly, subjectWell, wells, offsetWellIds, radius, handleChanageOffsetWell, activeWellId, isClickable, }: {
|
|
3
3
|
isViewOnly: any;
|
|
4
4
|
subjectWell: any;
|
|
5
5
|
wells: any;
|
|
@@ -7,6 +7,7 @@ declare function OffsetWellMap({ isViewOnly, subjectWell, wells, offsetWellIds,
|
|
|
7
7
|
radius: any;
|
|
8
8
|
handleChanageOffsetWell: any;
|
|
9
9
|
activeWellId: any;
|
|
10
|
+
isClickable: any;
|
|
10
11
|
}): JSX.Element;
|
|
11
12
|
declare namespace OffsetWellMap {
|
|
12
13
|
namespace propTypes {
|
|
@@ -20,10 +21,13 @@ declare namespace OffsetWellMap {
|
|
|
20
21
|
const radius: PropTypes.Validator<number>;
|
|
21
22
|
const handleChanageOffsetWell: PropTypes.Validator<(...args: any[]) => any>;
|
|
22
23
|
const activeWellId: PropTypes.Validator<number>;
|
|
24
|
+
const isClickable: PropTypes.Requireable<boolean>;
|
|
23
25
|
}
|
|
24
26
|
namespace defaultProps {
|
|
25
27
|
const subjectWell_1: any;
|
|
26
28
|
export { subjectWell_1 as subjectWell };
|
|
29
|
+
const isClickable_1: boolean;
|
|
30
|
+
export { isClickable_1 as isClickable };
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
33
|
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OffsetWellMap.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/OffsetWellMap.js"],"names":[],"mappings":";AA+BA
|
|
1
|
+
{"version":3,"file":"OffsetWellMap.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/OffsetWellMap.js"],"names":[],"mappings":";AA+BA;;;;;;;;;gBAoXC"}
|