@corva/ui 0.33.0-2 → 0.33.0-22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLI/components/App/App.js +1 -1
- package/CLI/hocs/withAppDataProviderHOC.js +1 -1
- package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.js +1 -1
- package/CLI/hocs/withReactRouterHOC.js +1 -1
- package/CLI/screens/OAuthCallbackScreen/index.js +1 -1
- package/clients/api/apiCore.js +1 -1
- package/clients/jsonApi/index.js +1 -1
- package/clients/utils.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/components/AssetNameLabel/PrimaryAssetNameLabel.js +1 -0
- package/components/AssetNameLabel/SecondaryAssetNameLabel.js +1 -0
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/utils/apiCalls.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Breadcrumbs/index.js +1 -1
- package/components/CollapsableSidebar.js +1 -1
- package/components/Comment/index.js +1 -1
- package/components/CommentInput/index.js +1 -1
- package/components/CommentLoader.js +1 -1
- package/components/ConfirmationDialog.js +1 -1
- package/components/CustomSelect/index.js +1 -0
- package/components/DevCenter/AppHeader/AppHeaderNew.css.js +1 -1
- package/components/DevCenter/AppHeader/AppHeaderNew.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/ArticleIcon.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/ArticleItemContent.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/HelpContentCaption.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/HelpContentItem.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/HelpContentList.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/HelpContentTimestamp.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/ItemContent.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/SearchInput.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/VideoItemContent.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/effects/useHelpContents.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/shapes/index.js +1 -0
- 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/EmbeddedApp/DevCenterEmbeddedApp.js +1 -0
- package/components/EmbeddedApp/EmbeddedApp.js +1 -0
- package/components/EmbeddedApp/components/AppInfo.js +1 -0
- package/components/EmbeddedApp/styles.css.js +1 -0
- package/components/EmojiIconButton.js +1 -1
- package/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/components/FeedItem/FeedItem.js +1 -1
- package/components/FeedItem/components/Actions.js +1 -1
- package/components/FeedItem/components/Comments.js +1 -1
- package/components/FeedItem/components/Content.js +1 -1
- package/components/FeedItem/components/FeedComments.js +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/api.js +1 -0
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +1 -0
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js +1 -0
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.js +1 -0
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js +1 -0
- package/components/FilePreview/index.js +1 -1
- package/components/FileUploadIconButton.js +1 -1
- package/components/GoogleDocsViewer/index.js +1 -1
- package/components/InfiniteList/index.js +1 -1
- package/components/Modal/Modal.css.js +1 -1
- package/components/Notifications/NotificationsContainer.js +1 -1
- package/components/Notifications/components/Toast.js +1 -1
- package/components/Notifications/components/styles.js +1 -1
- package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SingleSelect.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/index.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV2/effects/index.js +1 -1
- package/components/PadModeSelect/PadModeSelect.js +1 -1
- package/components/PadOffsetsPicker/PadOffsetsPicker.js +1 -1
- package/components/PostPreviewDialog/index.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/Template/TemplateSharingDialog/ChipSelector.js +1 -1
- package/components/index.js +1 -1
- package/constants/bha.js +1 -0
- package/constants/helpCenter.js +1 -0
- package/constants/index.js +1 -1
- package/constants/sizes.js +1 -0
- package/constants/subscriptions.js +1 -0
- package/constants/video.js +1 -0
- package/effects/useSubscriptions.js +1 -1
- package/package.json +1 -1
- package/permissions/withPermissionsHOC.js +1 -1
- package/utils/accuracy.js +1 -0
- package/utils/index.js +1 -1
- package/utils/jsonaDataFormatter.js +1 -0
- package/utils/user.js +1 -1
- package/utils/video.js +1 -0
- package/utils/AccuracyUtils.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{isEmpty as t,get as n}from"lodash";import r from"@babel/runtime/helpers/toConsumableArray";import{jsxs as
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{isEmpty as t,get as n}from"lodash";import r from"@babel/runtime/helpers/toConsumableArray";import a from"jsona";import{jsxs as i,jsx as s}from"react/jsx-runtime";import{makeStyles as c,Fab as l,Dialog as o,DialogTitle as d,DialogContent as u,FormControl as p,InputLabel as f,Select as m,MenuItem as h,Checkbox as S,ListItemText as g,DialogActions as E,Button as b}from"@material-ui/core";import{useMemo as I,useEffect as _}from"react";import{getPads as C}from"../../clients/jsonApi/index.js";import D from"prop-types";import{Add as O}from"@material-ui/icons";import P from"use-tiny-state-machine";function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?y(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var W=new a,w=c({fabSmallBtn:{width:24,height:24,minHeight:24,margin:"0 6px 0 1px"},fabSmallBtnIcon:{width:20,height:20},dialogPaper:{width:"75%",maxWidth:420}});var L={id:"requests",initial:"idle",context:{padsData:[],wellsData:[],lastStage:[],error:null,companyId:0},states:{idle:{on:{FETCH_PADS:{target:"pending",action:function(e){var r=e.dispatch,a=e.context;C({fields:["pad.name","pad.wells"],sort:"name",per_page:1e3,company:a.companyId}).then((function(e){return W.deserialize(e)})).then((function(e){return e.filter((function(e){return!t(n(e,"wells"))}))})).then((function(e){return r("PADS_REQUEST_SUCCESS",e)})).catch((function(e){return r("FAILURE",e)}))}}}},pending:{on:{PADS_REQUEST_SUCCESS:{target:"success",beforeStateChange:function(e,t){return(0,e.updateContext)((function(e){return v(v({},e),{},{padsData:t})}))}},FAILURE:{target:"failure",beforeStateChange:function(e,t){throw new Error(t.message)}}}},success:{on:{FETCH_WELLS:{target:"success",action:function(e,t){(0,e.dispatch)("WELLS_REQUEST_SUCCESS",t.reduce((function(e,t){return e.concat(t.wells)}),[]))}},WELLS_REQUEST_SUCCESS:{target:"success",beforeStateChange:function(e,t){return(0,e.updateContext)((function(e){return v(v({},e),{},{wellsData:t})}))}}}}}},x={id:"dialog",initial:"closed",context:{selectedPadIds:[],selectedWellIds:[]},states:{closed:{on:{OPEN_DIALOG:{target:"open",beforeStateChange:function(e,n){var a=e.updateContext,i=n.currentWellIds,s=n.padsData,c=[];return t(i)||s.forEach((function(e){e.wells.forEach((function(t){i.includes(t.asset_id)&&!c.includes(e.id)&&c.push(e.id)}))})),a((function(e){return v(v({},e),{},{selectedPadIds:[].concat(c),selectedWellIds:r(i)})}))}}}},open:{on:{CLOSE_DIALOG:{target:"closed",beforeStateChange:function(e){return(0,e.updateContext)((function(e){return v(v({},e),{},{selectedPadIds:[],selectedWellIds:[]})}))}},SET_PAD_ID:{target:"open",beforeStateChange:function(e,n){var r=e.updateContext,a=n.selectedPadIds,i=n.currentWellIds,s=n.padsData,c=[];return t(i)||s.forEach((function(e){e.wells.forEach((function(t){a.includes(e.id)&&i.includes(t.asset_id)&&c.push(t.asset_id)}))})),r((function(e){return v(v({},e),{},{selectedPadIds:a,selectedWellIds:[].concat(c)})}))}},SET_WELL_ID:{target:"open",beforeStateChange:function(e,t){return(0,e.updateContext)((function(e){return v(v({},e),{},{selectedWellIds:t})}))}}}}}},j=function(e){var n=e.onSave,r=e.currentOffsetSetting,a=e.assets,c=e.companyId,C=w(),D=P(L),y=D.state,v=D.dispatch,W=D.context,j=P(x),A=j.state,T=j.dispatch,k=j.context,R=I((function(){return t(r)&&!t(a)?a.map((function(e){return e.asset_id})):r.map((function(e){return e.selectedWellId}))}),[r,a]),U=function(){return T("CLOSE_DIALOG")},F=k.selectedPadIds,q=k.selectedWellIds;_((function(){W.companyId=c,v("FETCH_PADS")}),[]),_((function(){if(!t(F)){var e=W.padsData.filter((function(e){return F.includes(e.id)}));v("FETCH_WELLS",e)}}),[F]);var N=new Set(a.map((function(e){return Number(e.asset_id)})));return i("div",{children:[s(l,{size:"small",color:"primary",classes:{sizeSmall:C.fabSmallBtn},onClick:function(){return T("OPEN_DIALOG",{currentWellIds:R,padsData:W.padsData})},disabled:"success"!==y,children:s(O,{className:C.fabSmallBtnIcon})}),"success"===y&&i(o,{open:"open"===A,onBackdropClick:U,classes:{paper:C.dialogPaper},children:[s(d,{children:"Offset Wells"}),i(u,{children:[i(p,{margin:"normal",fullWidth:!0,required:!0,children:[s(f,{htmlFor:"pad-select",shrink:!t(F),children:"Pad"}),s(m,{multiple:!0,inputProps:{name:"pads",id:"pad-select"},value:F,onChange:function(e){return T("SET_PAD_ID",{selectedPadIds:e.target.value,currentWellIds:R,padsData:W.padsData})},renderValue:function(e){return"".concat(e.length," selected")},children:W.padsData.map((function(e){return i(h,{value:e.id,children:[s(S,{checked:F.includes(e.id)}),s(g,{primary:e.name})]},e.id)}))})]}),i(p,{margin:"normal",disabled:t(F),fullWidth:!0,required:!0,children:[s(f,{htmlFor:"wells",shrink:!t(q),children:"Well"}),s(m,{multiple:!0,inputProps:{name:"wells",id:"well-select"},value:q,onChange:function(e){return T("SET_WELL_ID",e.target.value)},renderValue:function(e){return"".concat(e.length," selected")},children:W.wellsData.map((function(e){var t=N.has(e.asset_id);return i(h,{value:e.asset_id,disabled:t,children:[s(S,{checked:q.includes(e.asset_id)}),s(g,{primary:e.name})]},e.id)}))})]})]}),i(E,{children:[s(b,{onClick:U,children:"Cancel"}),s(b,{variant:"contained",color:"primary",disabled:t(q),onClick:function(){var e=W.wellsData.filter((function(e){return q.includes(e.asset_id)})).map((function(e){var t=r.find((function(t){return t.selectedWellId===Number(e.asset_id)}));return t||{selectedWellId:Number(e.asset_id),selectedWellName:e.name,selectedWellStatus:e.status,selectedStages:[],stages:{}}}));U(),n(e)},children:"Save"})]})]})]})};j.propTypes={currentOffsetSetting:D.arrayOf(D.shape({})).isRequired,onSave:D.func.isRequired,companyId:D.string.isRequired,assets:D.arrayOf(D.shape({})).isRequired};export default j;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import i from"@material-ui/core/colors/grey";import{isNativeDetected as o}from"../../utils/mobileDetect.js";import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import i from"@material-ui/core/colors/grey";import{isNativeDetected as o}from"../../utils/mobileDetect.js";import{getIsImage as l}from"../../utils/fileExtension.js";import{jsx as r,jsxs as a}from"react/jsx-runtime";import{Dialog as n}from"@material-ui/core";import{createRef as s,PureComponent as c}from"react";import p from"@babel/runtime/helpers/createClass";import d from"prop-types";import{withStyles as m}from"@material-ui/core/styles";import f from"@babel/runtime/helpers/assertThisInitialized";import h from"@babel/runtime/helpers/inherits";import u from"@babel/runtime/helpers/possibleConstructorReturn";import g from"@babel/runtime/helpers/getPrototypeOf";import U from"@material-ui/core/Button";import y from"@material-ui/core/Typography";import F from"../UserMention/index.js";import v from"../EmojiIconButton.js";import N from"@material-ui/core/Paper";import S from"@material-ui/core/DialogActions";import b from"@material-ui/core/DialogContent";import D from"@material-ui/core/DialogTitle";import C from"@material-ui/core/Input";import E from"@material-ui/core/RootRef";import P from"@material-ui/icons/Delete";import R from"../FileTypeIcon.js";import x from"../FailedFileUploading.js";import B from"./styles.css.js";import w from"../FileUploadIconButton.js";function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,o=g(e);if(t){var l=g(this).constructor;i=Reflect.construct(o,arguments,l)}else i=o.apply(this,arguments);return u(this,i)}}var j="PostPreviewDialog",k=i[200],T=i[300],z=i[400],A=function(e){return a(N,{className:e.classes.messageWrapper,children:[r(C,{"data-testid":"".concat(j,"_messageInput"),inputRef:e.inputEl,inputComponent:F,inputProps:{onChange:e.handleMessageChange,companyId:e.companyId,suggestionsPortalHost:e.rootRef.current},placeholder:"Add a message about the file...",fullWidth:!0,disableUnderline:!0,multiline:!0,rows:"3",className:e.classes.textFieldRoot,value:e.comment,onKeyDown:e.handleKeyDown}),a("div",{className:B.cPostPreviewDialogMessageAdditionalFieldsWrapper,children:[r("div",{children:e.additionalFields}),a("div",{className:B.cPostPreviewDialogMessageActionFields,children:[!e.fileUrl&&r(w,{htmlColor:i[400],openPreviewDialogOnUpload:!1,disableRipple:!0,onFinish:e.handleFileUpload,onError:e.handleFileUploadingError,inputId:"preview-dialog-file-upload"}),r(v,{handleSelectEmoji:e.handleSelectEmoji,emojiIconClassName:e.classes.additionalActionButton,htmlColor:i[400],disableRipple:!0})]})]})]})},M=function(e){var t=l(e.fileName);return a("div",t?{children:[a("div",{className:B.cPostPreviewDialogFileName,children:[r(y,{"data-testid":"".concat(j,"_fileName"),variant:"subtitle2",noWrap:!0,gutterBottom:!0,children:e.fileName}),r(P,{"data-testid":"".concat(j,"_deleteButton"),color:"action",onClick:e.handleFileDelete,className:e.classes.deleteButton})]}),r("div",{className:B.cPostPreviewDialogFileImageFileWrapper,style:{backgroundColor:k,border:"1px solid ".concat(T)},children:r("img",{"data-testid":"".concat(j,"_previewImage"),className:B.cPostPreviewDialogFileImage,src:e.fileUrl,alt:"Uploaded file"})})]}:{className:B.cPostPreviewDialogFileDownload,style:{backgroundColor:k,border:"1px solid ".concat(z)},children:[r(R,{fileName:e.fileName}),a("div",{className:B.cPostPreviewDialogFileDownloadText,children:[r(y,{"data-testid":"".concat(j,"_fileName"),variant:"subtitle2",noWrap:!0,children:e.fileName}),r(P,{"data-testid":"".concat(j,"_deleteButton"),color:"action",onClick:e.handleFileDelete,className:e.classes.deleteButton})]})]})},W=function(i){h(d,c);var l=I(d);function d(i){var o;return t(this,d),o=l.call(this,i),e(f(o),"focusOnInput",(function(){return o.inputEl.current.focus()})),e(f(o),"handleKeyDown",(function(e){"Enter"===e.key&&o.handleShare()})),e(f(o),"handleMessageChange",(function(e){return o.setState({comment:e})})),e(f(o),"handleSelectEmoji",(function(e){return o.setState((function(t){var i=t.comment;return{comment:"".concat(i).concat(e.native)}}))})),e(f(o),"handleShare",(function(){o.props.handleShare(o.state.comment,o.state.fileUrl,o.state.fileSize)})),e(f(o),"handleFileDelete",(function(){o.setState({fileUrl:"",fileSize:null,fileName:""})})),e(f(o),"handleFileUpload",(function(e,t,i){o.setState({fileUrl:e,fileName:t,fileSize:i,fileUploadingError:null})})),e(f(o),"handleFileUploadingError",(function(e){o.setState({fileUrl:null,fileName:null,fileSize:null,fileUploadingError:e})})),o.state={comment:i.message,fileUrl:i.fileUrl,fileSize:i.fileSize,fileName:i.fileName,fileUploadingError:null},o.inputEl=s(),o.rootRef=s(),o}return p(d,[{key:"componentDidUpdate",value:function(e){!e.open&&this.props.open&&!this.state.comment&&this.props.message&&this.setState({comment:this.props.message}),this.props.fileUrl===e.fileUrl&&this.props.fileSize===e.fileSize&&this.props.fileName===e.fileName||this.setState({fileUrl:this.props.fileUrl,fileSize:this.props.fileSize,fileName:this.props.fileName})}},{key:"render",value:function(){return r(E,{rootRef:this.rootRef,children:a(n,{fullScreen:o,open:this.props.open,onClose:this.props.handleClose,onBackdropClick:this.props.handleClose,onEntered:this.focusOnInput,children:[r(D,{children:this.props.title}),a(b,{classes:{root:!o&&this.props.classes.dialogContentRoot},children:[r(A,{inputEl:this.inputEl,comment:this.state.comment,handleMessageChange:this.handleMessageChange,handleKeyDown:this.handleKeyDown,handleFileUpload:this.handleFileUpload,handleSelectEmoji:this.handleSelectEmoji,handleFileUploadingError:this.handleFileUploadingError,additionalFields:this.props.additionalFields,fileUrl:this.state.fileUrl,classes:this.props.classes,companyId:this.props.companyId,rootRef:this.rootRef}),this.state.fileUploadingError&&r(x,{errorMessage:this.state.fileUploadingError,className:this.props.classes.fileUploadingError}),this.state.fileUrl&&r(M,{fileName:this.state.fileName,fileUrl:this.state.fileUrl,handleFileDelete:this.handleFileDelete,handleFileUploadingError:this.handleFileUploadingError,classes:this.props.classes})]}),a(S,{className:this.props.classes.dialogActions,children:[r(U,{"data-testid":"".concat(j,"_cancelButton"),color:"primary",onClick:this.props.handleClose,children:this.props.cancelButtonText}),r(U,{"data-testid":"".concat(j,"_okButton"),color:"primary",variant:"contained",disabled:!this.state.fileUrl&&!this.state.comment||!this.props.requiredFields.every(Boolean),onClick:this.handleShare,children:this.props.okButtonText})]})]})})}}]),d}();W.propTypes={title:d.string,open:d.bool.isRequired,fileUrl:d.string,fileName:d.string,fileSize:d.number,handleShare:d.func.isRequired,handleClose:d.func.isRequired,classes:d.shape({}).isRequired,additionalFields:d.arrayOf(d.node),requiredFields:d.arrayOf(d.string),message:d.string,companyId:d.number,okButtonText:d.string,cancelButtonText:d.string},W.defaultProps={title:"Share a file",fileUrl:"",fileName:"",fileSize:null,additionalFields:[],requiredFields:[],message:"",companyId:null,okButtonText:"Post",cancelButtonText:"Cancel"};var _=m((function(e){return{dialogContentRoot:{minWidth:500},textFieldRoot:{marginBottom:20},textInput:{paddingTop:2},messageWrapper:{padding:"18.5px 14px",border:"solid 1px ".concat(e.palette.primary.main),boxShadow:"none"},dialogActions:{padding:"24px 24px",margin:0},deleteButton:{color:"#DADADA",cursor:"pointer"},fileUploadingError:{marginTop:10}}}))(W);export default _;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/toConsumableArray";import n from"@babel/runtime/helpers/slicedToArray";import{jsxs as l,jsx as o}from"react/jsx-runtime";import{Table as t,TableHead as i,TableRow as p,TableCell as c,TableBody as u}from"@material-ui/core";import d from"@babel/runtime/helpers/objectWithoutProperties";import a from"prop-types";import s from"./ResizableTableHeaderCell.js";import m from"./ResizableTableCell.js";function b(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);e&&(l=l.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.push.apply(n,l)}return n}function f(e){for(var n=1;n<arguments.length;n++){var l=null!=arguments[n]?arguments[n]:{};n%2?b(Object(l),!0).forEach((function(n){r(e,n,l[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):b(Object(l)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(l,r))}))}return e}var h=function(r){var a,b,h,y,v,O=r.children,j=d(r,["children"]),P=n(O,2),g=P[0],w=P[1],k=null==w||null===(a=w.props)||void 0===a?void 0:a.children,A=null==g||null===(b=g.props)||void 0===b||null===(h=b.children)||void 0===h||null===(y=h.props)||void 0===y||null===(v=y.children)||void 0===v?void 0:v.reduce((function(r,n){return Array.isArray(n)?r.push.apply(r,e(n)):r.push(n),r}),[]);return l(t,f(f({},j),{},{children:[o(i,{children:o(p,{children:null==A?void 0:A.map((function(r,e){var n;return r?e===A.length-1?o(c,f(f({},r.props),{},{children:null===(n=r.props)||void 0===n?void 0:n.children}),r.key||e):o(s,{cellName:"cell".concat(e),children:r},r.key||e):null}))})}),o(u,{children:null==k?void 0:k.map((function(r){var e,n;return o(p,{children:null==r||null===(e=r.props)||void 0===e||null===(n=e.children)||void 0===n?void 0:n.map((function(r,e){return r&&o(m,{children:r},r.key||e)}))},r.key)}))})]}))};h.propTypes={children:a.node.isRequired};export default h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{jsx as r}from"react/jsx-runtime";import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{jsx as r}from"react/jsx-runtime";import t from"prop-types";function n(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function i(e){var t,n,i=e.children;return i?r(i.type,o(o({},i.props),{},{children:r("div",{children:null!==(t=null==i||null===(n=i.props)||void 0===n?void 0:n.children)&&void 0!==t?t:null})})):null}i.propTypes={children:t.node.isRequired};export default i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/slicedToArray";import{jsx as t,jsxs as
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/slicedToArray";import{jsx as t,jsxs as o}from"react/jsx-runtime";import{TableCell as n}from"@material-ui/core";import{useState as i,useEffect as l}from"react";import a from"prop-types";import c from"classnames";import{makeStyles as u}from"@material-ui/core/styles";import p from"react-draggable";function s(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function d(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var m=u((function(e){return{resizableColumnHeader:{display:"flex",paddingRight:0,justifyContent:"space-between"},tableResizer:{width:6,borderRadius:10,opacity:.7,cursor:"col-resize",marginRight:-19,marginTop:-16,marginBottom:-16},hovered:{backgroundColor:e.palette.primary.main}}}));function f(e){var a,u,s=e.children,f=e.cellName,b=m(),y=i(!1),h=r(y,2),g=h[0],v=h[1],O=i(),j=r(O,2),w=j[0],P=j[1];if(l((function(){var e;P(null===(e=document.getElementById(f))||void 0===e?void 0:e.offsetWidth)})),!s)return null;return t(n,d(d({width:w,id:f},s.props),{},{children:o("div",{className:b.resizableColumnHeader,children:[t("div",{children:null!==(a=null==s||null===(u=s.props)||void 0===u?void 0:u.children)&&void 0!==a?a:null}),t(p,{axis:"x",onDrag:function(e,r){var t=r.deltaX;r.x,r.lastX;!function(e){P(w+e)}(t)},position:{x:0},zIndex:999,onStart:function(){P(w),v(!0)},onStop:function(){v(!1)},children:t("div",{className:c(b.tableResizer,g&&b.hovered),onMouseEnter:function(){return v(!0)},onMouseLeave:function(){return v(!1)}})})]})}))}f.propTypes={children:a.node.isRequired,cellName:a.string.isRequired};export default f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import{get as e,isEmpty as r}from"lodash";import n from"@babel/runtime/helpers/classCallCheck";import
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import{get as e,isEmpty as r}from"lodash";import n from"@babel/runtime/helpers/classCallCheck";import{jsx as i,jsxs as s}from"react/jsx-runtime";import{Chip as o,TextField as a,FormControl as l,FormHelperText as c,List as p,ListItem as m,ListItemText as u,withStyles as d}from"@material-ui/core";import{PureComponent as f}from"react";import h from"@babel/runtime/helpers/createClass";import I from"prop-types";import b from"classnames";import g from"@babel/runtime/helpers/assertThisInitialized";import y from"@babel/runtime/helpers/inherits";import v from"@babel/runtime/helpers/possibleConstructorReturn";import w from"@babel/runtime/helpers/getPrototypeOf";import{Autocomplete as O}from"@material-ui/lab";import"./ChipSelector.css.js";function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?R(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=w(t);if(e){var i=w(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}var C=new RegExp("^new.*$"),N=function(d){y(v,f);var I=x(v);function v(r){var s;return n(this,v),s=I.call(this,r),t(g(s),"formatItem",(function(t){return{text:s.props.chipFormatter(t),id:e(t,"id"),persistent:e(t,"persistent",!1)}})),t(g(s),"handleChange",(function(t,e){var r=s.formattedSelectedItems,n=new Set(r.map((function(t){return t.id}))),i=new Set(e.map((function(t){return t.id}))),o=e.filter((function(t){return!n.has(t.id)})),a=r.filter((function(t){return!i.has(t.id)&&!t.persistent})).map((function(t){return t.id}));o.forEach(s.handleRequestAdd),a.forEach(s.handleRequestDelete)})),t(g(s),"handleRequestAdd",(function(t){var r=t.id,n=t.text;s.props.allowAddNewItems?s.itemWithSameNameExists(n)?s.setState({isError:!0}):s.props.onAddNew({id:"new".concat(n),name:n}):s.listedItems.find((function(t){return e(t,"id")===r}))?s.props.onAdd(r):s.setState({isError:!0})})),t(g(s),"handleRequestDelete",(function(t){s.props.allowAddNewItems&&C.test(t)?s.props.onRemoveNew(t):s.props.onRemove(t)})),t(g(s),"handleUpdateInput",(function(){s.state.isError&&s.setState({isError:!1})})),t(g(s),"getOptionLabel",(function(t){return t.text})),t(g(s),"renderTags",(function(t,e){return t.map((function(t,r){return i(o,S(S({"data-not-migrated-MuiChip":!0,label:s.getOptionLabel(t)},e({index:r})),{},{onDelete:t.persistent?null:function(){return s.handleRequestDelete(t.id)}}))}))})),t(g(s),"renderInput",(function(t){return i(a,S(S({},t),{},{variant:"standard",placeholder:s.props.hintText}))})),t(g(s),"itemWithSameNameExists",(function(t){return s.props.items.concat(s.props.newItems).map(s.formatItem).find((function(r){return e(r,"text")===t}))})),s.state={isError:!1},s}return h(v,[{key:"componentDidUpdate",value:function(t){var e=t.selectedItems;this.props.selectedItems!==e&&this.setState({isError:!1})}},{key:"render",value:function(){var t=this.state.isError?this.props.errorText:"",e=this.props.classes;return s("div",{children:[s(l,{className:e.formControl,error:!!t,fullWidth:!0,children:[i(O,{"data-testid":"generic_chipInput",multiple:!0,fullWidth:!0,id:"chip-selector",classes:{inputRoot:e.inputRoot},value:this.formattedSelectedItems,onChange:this.handleChange,onInputChange:this.handleUpdateInput,options:this.formattedListedItems,getOptionLabel:this.getOptionLabel,renderInput:this.renderInput,renderTags:this.renderTags}),i(c,{children:t})]}),i("div",{className:"c-chip-select-component__list-title",children:i("em",{children:this.props.listTitle})}),i(p,{className:b(this.props.listClasses,this.props.classes.listStyle),children:r(this.listedItems)?i("div",{className:"c-chip-select-component__empty-list",children:i("p",{"data-testid":"".concat("chipSelector","_emptyLabel"),children:"List is empty"})}):this.itemList})]})}},{key:"itemList",get:function(){var t=this;return this.listedItems.map((function(r){return i(m,{"data-testid":"".concat("chipSelector","_item_").concat(t.props.listItemFormatter(r)),button:!0,divider:!0,onClick:function(){return t.props.onAdd(e(r,"id"))},children:i(u,{children:t.props.listItemFormatter(r)})},e(r,"id"))}))}},{key:"listedItems",get:function(){var t=this;return this.props.items.filter((function(r){return!t.props.selectedItems.has(e(r,"id"))}))}},{key:"selectedItems",get:function(){var t=this;return this.props.items.filter((function(r){return t.props.selectedItems.has(e(r,"id"))})).concat(this.props.allowAddNewItems?this.props.newItems:[])}},{key:"formattedSelectedItems",get:function(){return this.selectedItems.map(this.formatItem)}},{key:"formattedListedItems",get:function(){return this.listedItems.map(this.formatItem)}}]),v}();N.propTypes={items:I.arrayOf(I.shape({})).isRequired,selectedItems:I.shape([]).isRequired,newItems:I.arrayOf(I.shape({})),onAdd:I.func.isRequired,onRemove:I.func.isRequired,allowAddNewItems:I.bool,onAddNew:I.func,onRemoveNew:I.func,chipFormatter:I.func,listItemFormatter:I.func,classes:I.string,listClasses:I.string,hintText:I.string,errorText:I.string,listTitle:I.string},N.defaultProps={allowAddNewItems:!1,chipFormatter:function(t){return t.toString()},listItemFormatter:function(t){return t.toString()},classes:"c-chip-select-component__container",listClasses:"c-chip-select-component__list",hintText:null,errorText:"You can not add not existing item",listTitle:"All items",onAddNew:null,onRemoveNew:null,newItems:null};var A=d({listStyle:{borderColor:"grey",overflow:"auto"},formControl:{marginBottom:8},inputRoot:{paddingBottom:"8px !important"}})(N);export default A;
|
package/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"@babel/runtime/helpers/defineProperty";import"../constants/segment.js";import"react/jsx-runtime";import"react";export{default as Modal}from"./Modal/index.js";export{default as IconMenu}from"./IconMenu/index.js";export{default as StyledMenuItem}from"./StyledMenuItem/index.js";export{default as LoadingIndicator}from"./LoadingIndicator/LoadingIndicator.js";import"./DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"./DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";export{Tooltip}from"./Tooltip/Tooltip.js";export{default as Avatar}from"./Avatar/index.js";export{AnnotationsProvider,useAnnotationsDispatch,useAnnotationsState}from"./Annotations/AnnotationsContext.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";export{UniversalLink}from"./DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";export{withUniversalLocationHOC}from"./DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";export{default as IconButton}from"./IconButton/index.js";export{default as ConfirmationDialog}from"./ConfirmationDialog.js";export{default as AnnotationsList}from"./Annotations/components/AnnotationsList/index.js";export{default as LastAnnotation}from"./Annotations/components/LastAnnotation/index.js";export{default as PadModeSelect}from"./PadModeSelect/PadModeSelect.js";export{default as AppHeaderNew}from"./DevCenter/AppHeader/AppHeaderNew.js";export{default as AppHeader}from"./DevCenter/AppHeader/AppHeader.js";export{default as AppSideBar}from"./DevCenter/AppSideBar/AppSideBar.js";export{default as AppContext}from"./DevCenter/AppContext.js";export{default as AppsDataProvider}from"./DevCenter/AppsDataProvider/AppsDataProvider.js";import"./DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";export{default as EmptyAppView}from"./EmptyView/EmptyAppView/EmptyAppView.js";export{default as ErrorBoundary}from"./ErrorBoundary/ErrorBoundary.js";import*as e from"./Typography.js";export{e as Typography};import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";export{default as DisabledSettingsMessage}from"./DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";export{Element,Leaf}from"./SlateFormattedText/RenderElements.js";export{slateFormattingTextUtils}from"./SlateFormattedText/utils.js";export{default as SlateFormattedText}from"./SlateFormattedText/SlateFormattedText.js";export{default as AppSettingsDialog}from"./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"./EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"./DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js";import"./DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";export{default as DevCenterAppContainer}from"./DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";export{default as NavigationBar}from"./DevCenter/NavigationBar/NavigationBar.js";export{default as SideBar}from"./DevCenter/SideBar/SideBar.js";export{default as AppSettingsPopover}from"./DevCenter/AppSettingsPopover/AppSettingsPopover.js";export{DevCenterIsolatedAppPage}from"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";export{DevCenterIsolatedApp}from"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";export{AppsGridDragHandle}from"./DevCenter/IsolatedDevCenterAppContainer/AppsGridDragHandle.js";export{default as TruncatedText}from"./TruncatedText/index.js";export{default as SingleAssetEditor}from"./AssetEditor/SingleAssetEditor.js";export{default as AssetEditorAutocomplete,default as SingleAssetEditorAutocomplete}from"./AssetEditor/AssetEditorAutocomplete.js";export{default as AppSettingsAssetEditor}from"./AssetEditor/index.js";export{default as AppVersionsSelect}from"./AppVersionsSelect/AppVersionsSelect.js";export{default as CollapsableSidebar}from"./CollapsableSidebar.js";export{default as DateTimePicker}from"./DateTimePicker/index.js";export{default as DatePicker}from"./DatePicker/index.js";export{default as PaletteChromePicker}from"./ColorPicker/PaletteChromePicker/PaletteChromePicker.js";export{default as ColorPicker}from"./ColorPicker/ColorPicker.js";export{default as AddEditTrack}from"./ParameterCharts/AddEditTrack.js";export{default as ParameterCharts}from"./ParameterCharts/ParameterCharts.js";export{default as ChartActionsList}from"./ChartActionsList/ChartActionsList.js";export{default as ColorEditor}from"./SettingEditors/ColorEditor/index.js";export{default as StyledDropdownEditor}from"./SettingEditors/DropdownEditor/index.js";export{default as RadioEditor}from"./SettingEditors/RadioEditor/index.js";export{default as SwitchControl}from"./SwitchControl/index.js";export{default as RangeSlider}from"./RangeSlider/RangeSlider.js";import*as t from"./Login/index.js";export{t as Login};export{default as Breadcrumbs}from"./Breadcrumbs/index.js";export{default as VirtualizedTable}from"./VirtualizedTable/index.js";export{default as EmptyView}from"./EmptyView/EmptyView.js";export{default as Button}from"./Button/index.js";export{default as MenuItem}from"./MenuItem/index.js";export{default as ContextMenuItem}from"./ContextMenuItem/index.js";export{default as FolderMenuItem}from"./FolderMenuItem/index.js";export{default as EditableItem}from"./EditableItem/EditableItem/index.js";export{default as EditableItemWithBadge}from"./EditableItem/EditableItemWithBadge/index.js";export{default as Checkbox}from"./Checkbox/index.js";export{default as FolderMenuItemWithLinks}from"./FolderMenuItemWithLinks/index.js";export{default as TextField}from"./TextField/index.js";export{default as Chip}from"./Chip/index.js";export{default as Counter}from"./Counter/index.js";export{default as AnchorsList}from"./AnchorsList/AnchorsList.js";export{default as Select}from"./Select/index.js";export{default as Tabs}from"./Tabs/Tabs.js";export{default as Tab}from"./Tabs/Tab.js";export{default as ResizableTable}from"./ResizableTable/ResizableTable.js";export{default as BHASchematic}from"./Drillstring/BHASchematic.js";export{default as BHAComponentIcon}from"./Drillstring/BHAComponentIcon.js";export{default as BHATable}from"./Drillstring/BHATable/index.js";export{default as BHAComponentDetail}from"./Drillstring/BHAComponentDetail/index.js";export{default as CasingComponentIcon}from"./Casing/CasingComponentIcon.js";export{default as CasingTable}from"./Casing/CasingTable/index.js";import*as o from"./WellSummary/index.js";export{o as WellSummary};export{default as BICOffsetPickerDialog}from"./BICOffsetPickerDialog/index.js";export{default as OffsetWellPickerV2}from"./OffsetWellPickerV2/OffsetWellPickerDialog.js";export{default as Notifications}from"./Notifications/Notifications.js";export{default as NotificationsContainer}from"./Notifications/NotificationsContainer.js";export{default as TextLink}from"./TextLink/index.js";export{default as TemplatePopover}from"./Template/TemplatePopover/index.js";export{default as PinnableFilters}from"./PinnableFilters/PinnableFilters.js";export{default as HeaderLayout}from"./HeaderLayout/HeaderLayout.js";import*as r from"./PadOffsetsPicker/index.js";export{r as PadOffsetsPicker};export{default as TableSortLabel}from"./Table/TableSortLabel/TableSortLabel.js";export{default as TableToolbar}from"./Table/TableToolbar/TableToolbar.js";export{default as PriceInput}from"./PriceInput/PriceInput.js";export{default as LabelsCounter}from"./LabelsCounter/LabelsCounter.js";export{default as Step}from"./Stepper/Step.js";export{default as StepsWrapper}from"./Stepper/StepsWrapper.js";export{default as Stepper}from"./Stepper/Stepper.js";export{default as CommentIcon}from"./Comment/CommentIcon/index.js";export{default as FilesLoader}from"./FilesLoader/FilesLoader.js";export{default as SearchInput}from"./SearchInput/index.js";export{default as ComparisonHeader}from"./StageDesignVActual/ComparisonHeader.js";export{default as ComparisonBar}from"./StageDesignVActual/ComparisonBar/ComparisonBar.js";export{default as ComparisonRow}from"./StageDesignVActual/ComparisonRow.js";export{default as ElementsComparison}from"./StageDesignVActual/ElementsComparison/ElementsComparison.js";export{default as FeedItem}from"./FeedItem/FeedItem.js";export{default as KeyboardDateTimePicker}from"./KeyboardDateTimePicker.js";export{default as PostInput}from"./PostInput/PostInput.js";export{FeedItemEditProvider,useFeedItemEditProvider}from"./FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";export{default as AddCommentPopover}from"./AddComment/Popover.js";export{default as AddCommentPopup}from"./AddComment/Popup.js";
|
|
1
|
+
import"@babel/runtime/helpers/defineProperty";import"../constants/segment.js";import"react/jsx-runtime";import"react";export{default as Modal}from"./Modal/index.js";export{default as IconMenu}from"./IconMenu/index.js";export{default as StyledMenuItem}from"./StyledMenuItem/index.js";export{default as LoadingIndicator}from"./LoadingIndicator/LoadingIndicator.js";import"./DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"./DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";export{Tooltip}from"./Tooltip/Tooltip.js";export{default as Avatar}from"./Avatar/index.js";export{AnnotationsProvider,useAnnotationsDispatch,useAnnotationsState}from"./Annotations/AnnotationsContext.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";export{UniversalLink}from"./DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";export{withUniversalLocationHOC}from"./DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";export{default as IconButton}from"./IconButton/index.js";export{default as ConfirmationDialog}from"./ConfirmationDialog.js";export{default as AnnotationsList}from"./Annotations/components/AnnotationsList/index.js";export{default as LastAnnotation}from"./Annotations/components/LastAnnotation/index.js";export{default as PadModeSelect}from"./PadModeSelect/PadModeSelect.js";export{default as AppHeaderNew}from"./DevCenter/AppHeader/AppHeaderNew.js";export{default as AppHeader}from"./DevCenter/AppHeader/AppHeader.js";export{default as AppSideBar}from"./DevCenter/AppSideBar/AppSideBar.js";export{default as AppContext}from"./DevCenter/AppContext.js";export{default as AppsDataProvider}from"./DevCenter/AppsDataProvider/AppsDataProvider.js";import"./DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";export{default as EmptyAppView}from"./EmptyView/EmptyAppView/EmptyAppView.js";export{default as ErrorBoundary}from"./ErrorBoundary/ErrorBoundary.js";import*as e from"./Typography.js";export{e as Typography};import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";export{default as DisabledSettingsMessage}from"./DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";export{Element,Leaf}from"./SlateFormattedText/RenderElements.js";export{slateFormattingTextUtils}from"./SlateFormattedText/utils.js";export{default as SlateFormattedText}from"./SlateFormattedText/SlateFormattedText.js";export{default as AppSettingsDialog}from"./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"./EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"./DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js";import"./DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";export{default as DevCenterAppContainer}from"./DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";export{default as NavigationBar}from"./DevCenter/NavigationBar/NavigationBar.js";export{default as SideBar}from"./DevCenter/SideBar/SideBar.js";export{default as AppSettingsPopover}from"./DevCenter/AppSettingsPopover/AppSettingsPopover.js";export{DevCenterIsolatedAppPage}from"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";export{DevCenterIsolatedApp}from"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";export{AppsGridDragHandle}from"./DevCenter/IsolatedDevCenterAppContainer/AppsGridDragHandle.js";export{default as TruncatedText}from"./TruncatedText/index.js";export{default as SingleAssetEditor}from"./AssetEditor/SingleAssetEditor.js";export{default as AssetEditorAutocomplete,default as SingleAssetEditorAutocomplete}from"./AssetEditor/AssetEditorAutocomplete.js";export{default as AppSettingsAssetEditor}from"./AssetEditor/index.js";export{default as AppVersionsSelect}from"./AppVersionsSelect/AppVersionsSelect.js";export{default as CollapsableSidebar}from"./CollapsableSidebar.js";export{default as DateTimePicker}from"./DateTimePicker/index.js";export{default as DatePicker}from"./DatePicker/index.js";export{default as PaletteChromePicker}from"./ColorPicker/PaletteChromePicker/PaletteChromePicker.js";export{default as ColorPicker}from"./ColorPicker/ColorPicker.js";export{default as AddEditTrack}from"./ParameterCharts/AddEditTrack.js";export{default as ParameterCharts}from"./ParameterCharts/ParameterCharts.js";export{default as ChartActionsList}from"./ChartActionsList/ChartActionsList.js";export{default as ColorEditor}from"./SettingEditors/ColorEditor/index.js";export{default as StyledDropdownEditor}from"./SettingEditors/DropdownEditor/index.js";export{default as RadioEditor}from"./SettingEditors/RadioEditor/index.js";export{default as SwitchControl}from"./SwitchControl/index.js";export{default as RangeSlider}from"./RangeSlider/RangeSlider.js";import*as t from"./Login/index.js";export{t as Login};export{default as Breadcrumbs}from"./Breadcrumbs/index.js";export{default as VirtualizedTable}from"./VirtualizedTable/index.js";export{default as EmptyView}from"./EmptyView/EmptyView.js";export{default as Button}from"./Button/index.js";export{default as MenuItem}from"./MenuItem/index.js";export{default as ContextMenuItem}from"./ContextMenuItem/index.js";export{default as FolderMenuItem}from"./FolderMenuItem/index.js";export{default as EditableItem}from"./EditableItem/EditableItem/index.js";export{default as EditableItemWithBadge}from"./EditableItem/EditableItemWithBadge/index.js";export{default as Checkbox}from"./Checkbox/index.js";export{default as FolderMenuItemWithLinks}from"./FolderMenuItemWithLinks/index.js";export{default as TextField}from"./TextField/index.js";export{default as Chip}from"./Chip/index.js";export{default as Counter}from"./Counter/index.js";export{default as AnchorsList}from"./AnchorsList/AnchorsList.js";export{default as Select}from"./Select/index.js";export{default as CustomSelect}from"./CustomSelect/index.js";export{default as Tabs}from"./Tabs/Tabs.js";export{default as Tab}from"./Tabs/Tab.js";export{default as ResizableTable}from"./ResizableTable/ResizableTable.js";export{default as BHASchematic}from"./Drillstring/BHASchematic.js";export{default as BHAComponentIcon}from"./Drillstring/BHAComponentIcon.js";export{default as BHATable}from"./Drillstring/BHATable/index.js";export{default as BHAComponentDetail}from"./Drillstring/BHAComponentDetail/index.js";export{default as CasingComponentIcon}from"./Casing/CasingComponentIcon.js";export{default as CasingTable}from"./Casing/CasingTable/index.js";import*as o from"./WellSummary/index.js";export{o as WellSummary};export{default as BICOffsetPickerDialog}from"./BICOffsetPickerDialog/index.js";export{default as OffsetWellPickerV2}from"./OffsetWellPickerV2/OffsetWellPickerDialog.js";export{default as Notifications}from"./Notifications/Notifications.js";export{default as NotificationsContainer}from"./Notifications/NotificationsContainer.js";export{default as TextLink}from"./TextLink/index.js";export{default as TemplatePopover}from"./Template/TemplatePopover/index.js";export{default as PinnableFilters}from"./PinnableFilters/PinnableFilters.js";export{default as HeaderLayout}from"./HeaderLayout/HeaderLayout.js";import*as r from"./PadOffsetsPicker/index.js";export{r as PadOffsetsPicker};export{default as TableSortLabel}from"./Table/TableSortLabel/TableSortLabel.js";export{default as TableToolbar}from"./Table/TableToolbar/TableToolbar.js";export{default as PriceInput}from"./PriceInput/PriceInput.js";export{default as LabelsCounter}from"./LabelsCounter/LabelsCounter.js";export{default as Step}from"./Stepper/Step.js";export{default as StepsWrapper}from"./Stepper/StepsWrapper.js";export{default as Stepper}from"./Stepper/Stepper.js";export{default as CommentIcon}from"./Comment/CommentIcon/index.js";export{default as FilesLoader}from"./FilesLoader/FilesLoader.js";export{default as SearchInput}from"./SearchInput/index.js";export{default as ComparisonHeader}from"./StageDesignVActual/ComparisonHeader.js";export{default as ComparisonBar}from"./StageDesignVActual/ComparisonBar/ComparisonBar.js";export{default as ComparisonRow}from"./StageDesignVActual/ComparisonRow.js";export{default as ElementsComparison}from"./StageDesignVActual/ElementsComparison/ElementsComparison.js";export{default as FeedItem}from"./FeedItem/FeedItem.js";export{default as KeyboardDateTimePicker}from"./KeyboardDateTimePicker.js";export{default as PostInput}from"./PostInput/PostInput.js";export{FeedItemEditProvider,useFeedItemEditProvider}from"./FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";export{default as AddCommentPopover}from"./AddComment/Popover.js";export{default as AddCommentPopup}from"./AddComment/Popup.js";export{default as DevCenterEmbeddedApp}from"./EmbeddedApp/DevCenterEmbeddedApp.js";export{default as EmbeddedApp}from"./EmbeddedApp/EmbeddedApp.js";
|
package/constants/bha.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Map as e,List as t}from"immutable";var l={metrics:{provider:"corva",collection:"metrics"},wellSections:{provider:"corva",collection:"data.well-sections"},survey:{provider:"corva",collection:"data.actual_survey"},drillstring:{provider:"corva",collection:"data.drillstring"},offsetWells:{provider:"corva",collection:"data.offset_wells"}},o=[{label:"Rotary ROP",key:"rop_rotary_percentiles",from:"ft/h",unitType:"velocity"},{label:"Distance Drilled",key:"distance",unitType:"length"},{label:"Rotary Distance",key:"rotaryFootage",unitType:"length"},{label:"Slide Distance",key:"slideFootage",unitType:"length"},{label:"Slide",key:"slidePercent",toUnit:function(){return"%"}},{label:"MSE",key:"mse_percentiles",from:"psi",unitType:"msePressure"},{label:"Slide ROP",key:"rop_slide_percentiles",from:"ft/h",unitType:"velocity"},{label:"Diff Pressure",key:"diff_pressure_percentiles",from:"psi",unitType:"pressure"},{label:"WOB",key:"wob_percentiles",from:"klbf",unitType:"force"},{label:"Flow in",key:"flow_in_percentiles",from:"gal/min",unitType:"volumeFlowRate"},{label:"Rotary RPM",key:"rpm_percentiles",from:"ft/h",unitType:"velocity",toUnit:function(){return"rpm"}},{label:"Est Cost/foot",key:"cost"},{label:"On-Bottom",key:"onBottomPercent",toUnit:function(){return"%"}},{label:"Turn Rate",key:"turnRate",from:"dp100f",unitType:"anglePerLength"},{label:"Bit RPM",key:"bit_rpm_percentiles",toUnit:function(){return"rpm"}},{label:"Build Rate",key:"buildRate",from:"dp100f",unitType:"anglePerLength"},{label:"On-Bottom ROP",key:"netROP",from:"ft/h",unitType:"velocity"}],i=e({rigName:-1,assetName:-1,bhaId:-1,depthIn:-1,depthOut:-1,holeSize:-1,distance:-1,rotaryFootage:-1,slideFootage:-1,ropRotary:0,ropSlide:-1,mse:-1,cost:-1,onBottomPercent:-1,slidePercent:-1,turnRate:-1,buildRate:-1,wob:-1,diffPressure:-1,flowIn:-1,rotaryRPM:-1,bitRPM:-1,netROP:-1,driller:-1,onBottomTime:-1,totalTime:-1,hwdpLength:-1,bitMake:-1,tfa:-1,rpg:-1,model:-1,motorSize:-1,motorBend:-1,bitToBend:-1,motorConfig:-1,bhaInfo:-1}),r=5e4,a=180,n={all:{title:"All Wells",status:"all"},completed:{title:"Completed Wells",status:"complete"},active:{title:"Active Wells",status:"active"}},s=e({basins:t(),targetFormations:t(),rigs:t(),holeSizes:t(),sectionNames:t()}),d={whiskerCount:3,savedCompanyId:3,filterSetting:e({allFilters:s,activeFilters:s}),savedRadius:10,savedWellName:"All Wells",savedConventional:"all",savedValueRange:e({incRange:e({minInc:0,maxInc:180}),depthRange:e({minDepth:0,maxDepth:5e4})}),savedWellSelectionInfo:e({savedWellStatus:n.completed.status,savedWellIds:t()}),savedDeselectedIds:e(),savedWhiskerOption:e({"whisker-chart-0":o[0].key,"whisker-chart-1":o[1].key,"whisker-chart-2":o[2].key,"whisker-chart-3":o[3].key}),kpiSettings:e({rigName:!0,assetName:!0,bhaId:!0,depthIn:!0,depthOut:!0,holeSize:!0,distance:!0,rotaryFootage:!1,slideFootage:!1,ropRotary:!0,ropSlide:!0,netROP:!1,onBottomPercent:!0,totalTime:!0,onBottomTime:!0,slidePercent:!0,turnRate:!1,buildRate:!1,wob:!1,diffPressure:!1,flowIn:!1,rotaryRPM:!1,bitRPM:!1,cost:!0,mse:!0,bitMake:!1,model:!0,tfa:!0,motorMfr:!1,motorSize:!0,motorBend:!0,rpg:!1,bitToBend:!1,motorConfig:!0,hwdpLength:!1,driller:!0,bhaInfo:!0})};export{l as COLLECTIONS,i as DEFAULT_HEADER_CLICK_COUNT,d as DEFAULT_SETTINGS,r as MAX_DEPTH_LIMIT,a as MAX_INC_LIMIT,n as WELL_STATUS,o as WHISKER_OPTIONS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={video:"video",thumb:"thumb",file:"file,"};export{e as ATTACMENT_METADATA_TYPE};
|
package/constants/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as r from"./completion.js";export{r as completion};import*as o from"./alerts.js";export{o as alerts};export{DEV_CENTER_CLI_APP_ID}from"./devcenter.js";import*as
|
|
1
|
+
import*as r from"./completion.js";export{r as completion};import*as o from"./alerts.js";export{o as alerts};export{DEV_CENTER_CLI_APP_ID}from"./devcenter.js";import*as t from"./goals.js";export{t as goals};export{ASSET_TYPES}from"./assetTypes.js";import*as s from"./segment.js";export{s as segment};import*as p from"./apps.js";export{p as apps};import*as e from"./drillstring.js";export{e as drillstring};import*as m from"./appPackages.js";export{m as appPackages};import*as i from"./notifications.js";export{i as notifications};import*as a from"./feed.js";export{a as feed};import*as f from"./helpCenter.js";export{f as helpCenter};import*as j from"./video.js";export{j as video};export{COMPLETION_WELL_SUMMARY,DRILLING_WELL_SUMMARY,DRILLOUT_WELL_SUMMARY}from"./wellSummary.js";export{RIG_ACTIVITY_COLORS}from"./rigActivity.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var L={SMALL:"SMALL",MEDIUM:"MEDIUM",LARGE:"LARGE",XLARGE:"XLARGE"};export{L as Size};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r={isRequired:!0,allowEmpty:!1,subscribeOnly:!1,subscribeToLatestOnly:!1,subscribeOnlyForInitialData:!1,alwaysSubscribe:!1,preventWarningsDisplay:!1,preventErrorsDisplay:!1};export{r as DEFAULT_SUBSCRIPTION_META};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o={YOUTUBE:"youtube",CUSTOM:"custom"};export{o as VIDEO_SOURCES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import{castArray as t,differenceBy as e,omit as n,merge as u,concat as a,mapValues as i}from"lodash";import o from"@babel/runtime/helpers/slicedToArray";import c from"@babel/runtime/regenerator";import s from"@babel/runtime/helpers/asyncToGenerator";import{useState as p,useRef as f,useMemo as l,useEffect as m}from"react";import{parse as b}from"querystring";import d from"uuid/v1";import{
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import{castArray as t,differenceBy as e,omit as n,merge as u,concat as a,mapValues as i}from"lodash";import o from"@babel/runtime/helpers/slicedToArray";import c from"@babel/runtime/regenerator";import s from"@babel/runtime/helpers/asyncToGenerator";import{useState as p,useRef as f,useMemo as l,useEffect as m}from"react";import{parse as b}from"querystring";import d from"uuid/v1";import{getAppKeyFromStackTrace as y}from"../clients/utils.js";import{getAppStorage as v,getDataAppStorage as h,getDataAppStorageAggregate as O}from"../clients/jsonApi/index.js";import{getSubscriptionId as w}from"../clients/subscriptions.js";function g(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function I(r,t,e){var n=w(r,t);return j(j({},r),{},{hookId:t,subId:n,appInstanceId:n,app_key:e})}function k(r,t){return x.apply(this,arguments)}function x(){return(x=s(c.mark((function r(t,e){var n,u,a;return c.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.timeQuery,u=e.appKey,a=t.map(function(){var r=s(c.mark((function r(t){var e,a,i,o,s,p,f,l,m;return c.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e=t.provider,a=t.collection,i=t.assetId,o=t.subscribeOnly,s=t.params,!o){r.next=3;break}return r.abrupt("return",null);case 3:return p=s.query,f=n?"{timestamp#lte#".concat(n.timestamp.$lte):"",l=p&&f?"AND":"",m="".concat(p).concat(l).concat(f),r.prev=7,r.next=10,v(e,a,i,j(j(j({},s),m?{query:m}:{}),{},{appKey:u}));case 10:return r.abrupt("return",r.sent);case 13:return r.prev=13,r.t0=r.catch(7),r.abrupt("return",[]);case 16:case"end":return r.stop()}}),r,null,[[7,13]])})));return function(t){return r.apply(this,arguments)}}()),r.abrupt("return",Promise.all(a));case 3:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function P(r,t){return E.apply(this,arguments)}function E(){return(E=s(c.mark((function r(t,e){var n,a,o;return c.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.timeQuery,a=e.appKey,o=t.map(function(){var r=s(c.mark((function r(t){var e,o,s,p,f,l,m,b,d,y,v,w;return c.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e=t.provider,o=t.collection,s=t.assetId,p=t.subscribeOnly,f=t.params,l=void 0===f?{}:f,!p){r.next=3;break}return r.abrupt("return",null);case 3:if(!l.aggregate){r.next=5;break}return r.abrupt("return",O(e,o,j({},i(l.aggregate,JSON.stringify))));case 5:return m=JSON.stringify(u({asset_id:s},l.query,n)),b=l.limit,d=void 0===b?1:b,y=l.sort,v=void 0===y?'{"timestamp": 1}':y,r.prev=7,w=j(j({},l),{},{limit:d,sort:v,query:m,appKey:a}),r.next=11,h(e,o,w);case 11:return r.abrupt("return",r.sent);case 14:return r.prev=14,r.t0=r.catch(7),r.abrupt("return",[]);case 17:case"end":return r.stop()}}),r,null,[[7,14]])})));return function(t){return r.apply(this,arguments)}}()),r.abrupt("return",Promise.all(o));case 3:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function D(u){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=i.timestamp,s=i.isOldApiUsed,v=p({}),h=o(v,2),O=h[0],w=h[1],g=f();g.current||(g.current=d());var x=window[Symbol.for("socket")],E=x.subscribe,D=x.unsubscribe,S=x.socket,q=l((function(){return y()}),[]),A=f([]),K=t(u).map((function(r){return I(r,g.current,q)})),N=K.map((function(r){return r.subId})).join(),Q=l((function(){if(c)return{timestamp:{$lte:c}};var r=b(window.location.search).time;return r?{timestamp:{$lte:new Date(r)/1e3}}:null}),[window.location.search,c]);return m((function(){var t=function(t){t.hookId===g.current&&w((function(e){var n=t.data;return t.subId in e&&!t.subscribeOnly&&(n=a(e[t.subId],t.data)),t.params&&t.params.limit&&(n=n.slice(-t.params.limit)),j(j({},e),{},r({},t.subId,n))}))};return S&&S.on("data",t),function(){return S&&S.off("data",t)}}),[]),m((function(){A.current.forEach(D),A.current=[]}),[Q]),m((function(){var r=A.current,t=e(K,r,"subId"),u=e(r,K,"subId");t.forEach((function(r){Q&&!r.alwaysSubscribe||E(r)})),u.forEach(D),A.current=K,(s?k:P)(t,{timeQuery:Q,appKey:q,isOldApiUsed:s}).then((function(r){return w((function(e){var a=n(e,u.map((function(r){return r.subId})));return t.forEach((function(t,e){null!==r[e]&&(a[t.subId]=r[e])})),a}))}))}),[N,Q]),m((function(){return function(){return A.current.forEach(D)}}),[]),l((function(){return K.map((function(r){var t=r.subId;return{loading:!(t in O),data:O[t]}}))}),[O,N])}export default D;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{some as o}from"lodash";import"@babel/runtime/helpers/toConsumableArray";import"../constants/completion.js";import"../constants/alerts.js";import"@babel/runtime/helpers/slicedToArray";import"../constants/goals.js";import"../constants/segment.js";import"../constants/apps.js";import"../constants/drillstring.js";import"../constants/notifications.js";import"../constants/feed.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../utils/index.js";import{jsx as t}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../clients/jsonApi/index.js";import"../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../components/Modal/index.js";import"../components/IconMenu/index.js";import"../components/StyledMenuItem/index.js";import n from"../components/LoadingIndicator/LoadingIndicator.js";import"../components/DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../components/DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../components/Tooltip/MuiTooltipDcWrapper.js";import"../components/Avatar/index.js";import"../components/Annotations/AnnotationsContext.js";import"../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../components/IconButton/index.js";import"../components/ConfirmationDialog.js";import"../components/Annotations/components/AnnotationsList/index.js";import"../components/Annotations/components/LastAnnotation/index.js";import"../components/PadModeSelect/PadModeSelect.js";import"../components/DevCenter/AppHeader/AppHeaderNew.js";import"../components/DevCenter/AppHeader/AppHeader.js";import"../components/DevCenter/AppSideBar/AppSideBar.js";import"../components/DevCenter/AppContext.js";import"../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../components/EmptyView/EmptyAppView/EmptyAppView.js";import"../components/ErrorBoundary/ErrorBoundary.js";import"../components/Typography.js";import"../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../components/DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../components/SlateFormattedText/RenderElements.js";import"../components/SlateFormattedText/SlateFormattedText.js";import"../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../components/EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js";import"../components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../components/DevCenter/NavigationBar/NavigationBar.js";import"../components/DevCenter/SideBar/SideBar.js";import"../components/DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import r from"./usePermissions.js";import"../components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../components/DevCenter/IsolatedDevCenterAppContainer/AppsGridDragHandle.js";import"../components/TruncatedText/index.js";import"../components/AssetEditor/SingleAssetEditor.js";import"../components/AssetEditor/AssetEditorAutocomplete.js";import"../components/AssetEditor/index.js";import"../components/AppVersionsSelect/AppVersionsSelect.js";import"../components/CollapsableSidebar.js";import"../components/DateTimePicker/index.js";import"../components/DatePicker/index.js";import"../components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../components/ColorPicker/ColorPicker.js";import"../components/ParameterCharts/AddEditTrack.js";import"../components/ParameterCharts/ParameterCharts.js";import"../components/ChartActionsList/ChartActionsList.js";import"../components/SettingEditors/ColorEditor/index.js";import"../components/SettingEditors/DropdownEditor/index.js";import"../components/SettingEditors/RadioEditor/index.js";import"../components/SwitchControl/index.js";import"../components/RangeSlider/RangeSlider.js";import"../components/Login/components/Login.js";import"../components/Login/components/PasswordField.js";import"../components/Login/components/Chip.js";import"../components/Login/components/StepFooter.js";import"../components/Login/components/StepContent.js";import"../components/Login/components/StepHeader.js";import"../components/Login/components/Step.js";import"../components/Login/components/OrDivider.js";import"../components/Login/components/HiddenEmailField.js";import"../components/Login/components/EmailField.js";import"../components/Breadcrumbs/index.js";import"../components/VirtualizedTable/index.js";import"../components/EmptyView/EmptyView.js";import"../components/Button/index.js";import"../components/MenuItem/index.js";import"../components/ContextMenuItem/index.js";import"../components/FolderMenuItem/index.js";import"../components/EditableItem/EditableItem/index.js";import"../components/EditableItem/EditableItemWithBadge/index.js";import"../components/Checkbox/index.js";import"../components/FolderMenuItemWithLinks/index.js";import"../components/TextField/index.js";import"../components/Chip/index.js";import"../components/Counter/index.js";import"../components/AnchorsList/AnchorsList.js";import"../components/Select/index.js";import"../components/Tabs/Tabs.js";import"../components/Tabs/Tab.js";import"../components/ResizableTable/ResizableTable.js";import"../components/Drillstring/BHASchematic.js";import"../components/Drillstring/BHAComponentIcon.js";import"../components/Drillstring/BHATable/index.js";import"../components/Drillstring/BHAComponentDetail/index.js";import"../components/Casing/CasingComponentIcon.js";import"../components/Casing/CasingTable/index.js";import"../components/WellSummary/WellSummaryItemLabel.js";import"../components/WellSummary/WellSummaryItemTitle.js";import"../components/WellSummary/WellSummaryItemValue.js";import"../components/WellSummary/ActivitySummaryChart.js";import"../components/WellSummary/FracWirelineTimeChart.js";import"../components/BICOffsetPickerDialog/index.js";import"../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../components/Notifications/Notifications.js";import"../components/TextLink/index.js";import"../components/Template/TemplatePopover/index.js";import"../components/PinnableFilters/PinnableFilters.js";import"../components/HeaderLayout/HeaderLayout.js";import"../components/PadOffsetsPicker/PadOffsetsPicker.js";import"../components/PadOffsetsPicker/OffsetAssetChip.js";import"../components/PadOffsetsPicker/OffsetAssetsListExpander.js";import"../components/PadOffsetsPicker/StagesSelector.js";import"../components/Table/TableToolbar/TableToolbar.js";import"../components/PriceInput/PriceInput.js";import"../components/LabelsCounter/LabelsCounter.js";import"../components/Stepper/Step.js";import"../components/Stepper/StepsWrapper.js";import"../components/Stepper/Stepper.js";import"../components/Comment/CommentIcon/index.js";import"../components/FilesLoader/FilesLoader.js";import"../components/SearchInput/index.js";import"../components/StageDesignVActual/ComparisonHeader.js";import"../components/StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../components/StageDesignVActual/ComparisonRow.js";import"../components/StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../components/FeedItem/FeedItem.js";import"../components/KeyboardDateTimePicker.js";import"../components/PostInput/PostInput.js";import"../components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../components/AddComment/Popover.js";import"../components/AddComment/Popup.js";function s(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),t.push.apply(t,n)}return t}function p(o){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){e(o,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(n,e))}))}return o}var i=t(n,{}),m=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(s){return function(m){var c=n.loader,a=void 0===c?i:c,l=n.skipLoading,d=void 0!==l&&l,j=Object.keys(e),C=r(j.map((function(o){var t=e[o];return"function"==typeof t?t(m):t})));if(!d&&o(C,"loading"))return a;var u=j.reduce((function(e,o,t){return e[o]=C[t].active,e}),{});return t(s,p(p({},m),u))}}};export{m as withPermissionsHOC};
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{some as o}from"lodash";import"@babel/runtime/helpers/toConsumableArray";import"../constants/completion.js";import"../constants/alerts.js";import"@babel/runtime/helpers/slicedToArray";import"../constants/goals.js";import"../constants/segment.js";import"../constants/apps.js";import"../constants/drillstring.js";import"../constants/notifications.js";import"../constants/feed.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../utils/index.js";import{jsx as t}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../clients/jsonApi/index.js";import"../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../components/Modal/index.js";import"../components/IconMenu/index.js";import"../components/StyledMenuItem/index.js";import n from"../components/LoadingIndicator/LoadingIndicator.js";import"../components/DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../components/DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../components/Tooltip/MuiTooltipDcWrapper.js";import"../components/Avatar/index.js";import"../components/Annotations/AnnotationsContext.js";import"../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../components/IconButton/index.js";import"../components/ConfirmationDialog.js";import"../components/Annotations/components/AnnotationsList/index.js";import"../components/Annotations/components/LastAnnotation/index.js";import"../components/PadModeSelect/PadModeSelect.js";import"../components/DevCenter/AppHeader/AppHeaderNew.js";import"../components/DevCenter/AppHeader/AppHeader.js";import"../components/DevCenter/AppSideBar/AppSideBar.js";import"../components/DevCenter/AppContext.js";import"../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../components/EmptyView/EmptyAppView/EmptyAppView.js";import"../components/ErrorBoundary/ErrorBoundary.js";import"../components/Typography.js";import"../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../components/DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../components/SlateFormattedText/RenderElements.js";import"../components/SlateFormattedText/SlateFormattedText.js";import"../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../components/EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js";import"../components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../components/DevCenter/NavigationBar/NavigationBar.js";import"../components/DevCenter/SideBar/SideBar.js";import"../components/DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import r from"./usePermissions.js";import"../components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../components/DevCenter/IsolatedDevCenterAppContainer/AppsGridDragHandle.js";import"../components/TruncatedText/index.js";import"../components/AssetEditor/SingleAssetEditor.js";import"../components/AssetEditor/AssetEditorAutocomplete.js";import"../components/AssetEditor/index.js";import"../components/AppVersionsSelect/AppVersionsSelect.js";import"../components/CollapsableSidebar.js";import"../components/DateTimePicker/index.js";import"../components/DatePicker/index.js";import"../components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../components/ColorPicker/ColorPicker.js";import"../components/ParameterCharts/AddEditTrack.js";import"../components/ParameterCharts/ParameterCharts.js";import"../components/ChartActionsList/ChartActionsList.js";import"../components/SettingEditors/ColorEditor/index.js";import"../components/SettingEditors/DropdownEditor/index.js";import"../components/SettingEditors/RadioEditor/index.js";import"../components/SwitchControl/index.js";import"../components/RangeSlider/RangeSlider.js";import"../components/Login/components/Login.js";import"../components/Login/components/PasswordField.js";import"../components/Login/components/Chip.js";import"../components/Login/components/StepFooter.js";import"../components/Login/components/StepContent.js";import"../components/Login/components/StepHeader.js";import"../components/Login/components/Step.js";import"../components/Login/components/OrDivider.js";import"../components/Login/components/HiddenEmailField.js";import"../components/Login/components/EmailField.js";import"../components/Breadcrumbs/index.js";import"../components/VirtualizedTable/index.js";import"../components/EmptyView/EmptyView.js";import"../components/Button/index.js";import"../components/MenuItem/index.js";import"../components/ContextMenuItem/index.js";import"../components/FolderMenuItem/index.js";import"../components/EditableItem/EditableItem/index.js";import"../components/EditableItem/EditableItemWithBadge/index.js";import"../components/Checkbox/index.js";import"../components/FolderMenuItemWithLinks/index.js";import"../components/TextField/index.js";import"../components/Chip/index.js";import"../components/Counter/index.js";import"../components/AnchorsList/AnchorsList.js";import"../components/Select/index.js";import"../components/CustomSelect/index.js";import"../components/Tabs/Tabs.js";import"../components/Tabs/Tab.js";import"../components/ResizableTable/ResizableTable.js";import"../components/Drillstring/BHASchematic.js";import"../components/Drillstring/BHAComponentIcon.js";import"../components/Drillstring/BHATable/index.js";import"../components/Drillstring/BHAComponentDetail/index.js";import"../components/Casing/CasingComponentIcon.js";import"../components/Casing/CasingTable/index.js";import"../components/WellSummary/WellSummaryItemLabel.js";import"../components/WellSummary/WellSummaryItemTitle.js";import"../components/WellSummary/WellSummaryItemValue.js";import"../components/WellSummary/ActivitySummaryChart.js";import"../components/WellSummary/FracWirelineTimeChart.js";import"../components/BICOffsetPickerDialog/index.js";import"../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../components/Notifications/Notifications.js";import"../components/TextLink/index.js";import"../components/Template/TemplatePopover/index.js";import"../components/PinnableFilters/PinnableFilters.js";import"../components/HeaderLayout/HeaderLayout.js";import"../components/PadOffsetsPicker/PadOffsetsPicker.js";import"../components/PadOffsetsPicker/OffsetAssetChip.js";import"../components/PadOffsetsPicker/OffsetAssetsListExpander.js";import"../components/PadOffsetsPicker/StagesSelector.js";import"../components/Table/TableToolbar/TableToolbar.js";import"../components/PriceInput/PriceInput.js";import"../components/LabelsCounter/LabelsCounter.js";import"../components/Stepper/Step.js";import"../components/Stepper/StepsWrapper.js";import"../components/Stepper/Stepper.js";import"../components/Comment/CommentIcon/index.js";import"../components/FilesLoader/FilesLoader.js";import"../components/SearchInput/index.js";import"../components/StageDesignVActual/ComparisonHeader.js";import"../components/StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../components/StageDesignVActual/ComparisonRow.js";import"../components/StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../components/FeedItem/FeedItem.js";import"../components/KeyboardDateTimePicker.js";import"../components/PostInput/PostInput.js";import"../components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../components/AddComment/Popover.js";import"../components/AddComment/Popup.js";import"../components/EmbeddedApp/DevCenterEmbeddedApp.js";import"../components/EmbeddedApp/EmbeddedApp.js";function p(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),t.push.apply(t,n)}return t}function s(o){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){e(o,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(n,e))}))}return o}var i=t(n,{}),m=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(p){return function(m){var c=n.loader,a=void 0===c?i:c,d=n.skipLoading,l=void 0!==d&&d,j=Object.keys(e),C=r(j.map((function(o){var t=e[o];return"function"==typeof t?t(m):t})));if(!l&&o(C,"loading"))return a;var u=j.reduce((function(e,o,t){return e[o]=C[t].active,e}),{});return t(p,s(s({},m),u))}}};export{m as withPermissionsHOC};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{COLOR as e}from"../constants/accuracy.js";function r(e,r,t){return e>=r?"high":e>=t?"moderate":"low"}function t(e){var r=e.indexOf(", Updated Target");return-1!==r?e.slice(0,r):e}function n(t,n,a,o){var c;t&&(c=n&&a?r(t.distance_to_plan,n,a):t.severity);switch(c){case"low":return e.green;case"moderate":return o?e.orange:e.yellow;case"high":return e.red;default:return e.white}}export{n as getColorBySeverity,r as getSeverity,t as purifyPlanName};
|
package/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import{convertArray as t,convertValue as o,getAllUnitTypes as e,getDefaultImperialUnit as s,getDefaultUnits as i,getUnitDescription as a,getUnitDisplay as p,getUnitPlural as
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import{convertArray as t,convertValue as o,getAllUnitTypes as e,getDefaultImperialUnit as s,getDefaultUnits as i,getUnitDescription as a,getUnitDisplay as p,getUnitPlural as m,getUnitPreference as n,getUnitsByType as f,getUnitSingular as c,getUnitSystem as l,updateUserUnits as j,getUserUnits as x,subscribeForUserUnitsUpdates as u,convertImmutables as g,convertImmutablesByBatch as y,getUniqueUnitsByType as U}from"./convert.js";import*as b from"./convert.js";export{b as convert};import*as v from"./StageDesignVActualUtils.js";export{v as StageDesignVActualUtils};import*as d from"./alerts.js";export{d as alerts};import*as O from"./audio.js";export{O as audio};import*as h from"./casing/index.js";export{h as casing};import*as P from"./chartSeries.js";export{P as chartSeries};import*as D from"./completion.js";export{D as completion};import*as w from"./components.js";import*as S from"./csvExport.js";export{S as csvExport};import*as C from"./metrics/index.js";export{C as metricsUtils};import*as N from"./devcenter.js";export{N as devcenter};import*as T from"./drillstring/index.js";export{T as drillstring};import*as k from"./DrillstringUtils.js";export{k as drillstringUtils};import*as A from"./FluidCheckUtils.js";export{A as fluidCheckUtils};import*as E from"./formatting.js";export{E as formatting};import*as B from"./reports.js";export{B as reports};import*as F from"./ga.js";export{F as ga};import*as I from"./goals.js";export{I as goals};import*as K from"./lasParser.js";export{K as lasParser};import*as q from"./loadable.js";export{q as loadable};import*as V from"./main.js";export{V as main};import*as J from"./mapUnits.js";export{J as mapUnits};import*as H from"./mapbox.js";import*as M from"./mobileDetect.js";export{M as mobileDetect};import*as R from"./nativeMessages.js";export{R as nativeMessages};import*as W from"./notifications.js";export{W as notifications};import*as z from"./permissions.js";export{z as permissions};import*as G from"./rollbar.js";export{G as rollbar};import*as L from"./sqlParser.js";export{L as sqlParser};import*as Q from"./time.js";export{Q as time};import*as X from"./torqueAndHookloadUtils.js";export{X as torqueAndHookloadUtils};import*as Y from"./accuracy.js";export{Y as accuracy};export{createNotification,removeNotification,showErrorNotification,showInfoNotification,showSuccessNotification,showWarningNotification}from"./notificationToasts.js";export{convertKeysToCamelCase,convertKeysToSnakeCase,getConvertKeys}from"./convertKeys.js";import*as Z from"./dashboardReports.js";export{Z as dashboardReports};import*as $ from"./apps.js";export{$ as apps};import*as _ from"./themeVariables.js";export{_ as themeVariables};import*as rr from"./env.js";export{rr as env};import*as tr from"./fileExtension.js";export{tr as fileExtension};export{jsonaDataFormatter}from"./jsonaDataFormatter.js";import*as or from"./video.js";export{or as video};function er(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.push.apply(o,e)}return o}var sr={get:function(r,t){var o=r[t];return"function"==typeof o?function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return o.apply(r,e.map((function(r){return r.toJS?r.toJS():r})))}:o}};function ir(t){return new Proxy(function(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?er(Object(e),!0).forEach((function(o){r(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):er(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},t),sr)}var ar=t,pr=o,mr=e,nr=s,fr=i,cr=a,lr=p,jr=m,xr=n,ur=f,gr=c,yr=l,Ur=j,br=x,vr=u,dr=g,Or=y,hr=U,Pr=ir(H),Dr=ir(w);export{Dr as components,ar as convertArray,dr as convertImmutables,Or as convertImmutablesByBatch,pr as convertValue,mr as getAllUnitTypes,nr as getDefaultImperialUnit,fr as getDefaultUnits,hr as getUniqueUnitsByType,cr as getUnitDescription,lr as getUnitDisplay,jr as getUnitPlural,xr as getUnitPreference,gr as getUnitSingular,yr as getUnitSystem,ur as getUnitsByType,br as getUserUnits,Pr as mapbox,vr as subscribeForUserUnitsUpdates,Ur as updateUserUnits};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r,{SwitchCaseJsonMapper as e}from"jsona";var o=new r({jsonPropertiesMapper:new e({switchChar:"_"})});export{o as jsonaDataFormatter};
|
package/utils/user.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{get as r}from"lodash";var o=function(r){return!!r&&
|
|
1
|
+
import{get as r}from"lodash";var o=function(r){return!!r&&"developeradmin"===r.role},e=function(o){return!!o&&("admin"===o.role&&"corva"===r(o,["company","provider"]))};export{e as isUserCorvaAdmin,o as isUserDeveloperAdmin};
|
package/utils/video.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{VIDEO_SOURCES as o}from"../constants/video.js";var t=/(http:|https:|)\/\/(www.)?(youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(&\S+)?/,e=function(e){var c=(e||"").match(t);return{source:c&&c[3].includes("youtu")?o.YOUTUBE:o.CUSTOM,id:c&&c[6]}};export{e as getVideoSourceAndIdByUrl};
|
package/utils/AccuracyUtils.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import r from"@babel/runtime/helpers/createClass";import{COLOR as t}from"../constants/accuracy.js";var a=function(){function a(){e(this,a)}return r(a,[{key:"getColorBySeverity",value:function(e,r,a,n){var i;if(e)if(r&&a){var l=e.get("distance_to_plan");i=this.getSeverity(l,r,a)}else i=e.get("severity");switch(i){case"low":return t.green;case"moderate":return n?t.orange:t.yellow;case"high":return t.red;default:return t.white}}},{key:"getSeverity",value:function(e,r,t){return e>=r?"high":e>=t?"moderate":"low"}},{key:"purifyPlanName",value:function(e){var r=e.indexOf(", Updated Target");return-1!==r?e.slice(0,r):e}}]),a}();export default a;
|