@corva/ui 0.23.0-6 → 0.24.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{debounce as t,identity as r}from"lodash";import n from"@babel/runtime/helpers/slicedToArray";import{jsxs as o,jsx as i}from"react/jsx-runtime";import{withStyles as a,List as l,FormControl as s,InputLabel as p,FormHelperText as u,Typography as c,TextField as d,InputAdornment as f,Chip as m}from"@material-ui/core";import{forwardRef as b,useState as g,useEffect as h,useMemo as y}from"react";import O from"@babel/runtime/helpers/objectWithoutProperties";import x from"prop-types";import{Search as v}from"@material-ui/icons";import T from"../TruncatedText/index.js";import{PER_PAGE as I,SCROLL_THRESHOLD as j}from"./constants.js";import{useAssetAutoCompleteSelectData as P}from"./effects/index.js";import{Autocomplete as A}from"@material-ui/lab";function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?C(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var M="DC_SingleAssetEditorAutocomplete",w={paddingLeft:"16px",height:36,listStyleType:"none",display:"flex",alignItems:"center"},L=function(e){var t=e.text;return i("li",{style:w,children:i(c,{variant:"body2",color:"textSecondary",children:void 0===t?"Loading...":t})},"loading")},D=b((function(e,t){var r=e.children,n=e.loading,a=e.hasMore,s=O(e,["children","loading","hasMore"]);return o(l,S(S({},s),{},{ref:t,role:"listbox",children:[r,(a||n)&&i(L,{})]}))})),N=function(e){var a=e["data-testid"],l=e.appKey,c=e.assetType,b=e.classes,O=e.companyId,x=e.currentValue,C=e.disabled,w=e.errorText,N=e.isMultiple,R=e.isNullable,V=e.label,E=e.onChange,K=e.parentAssetId,_=e.parentAssetType,k=g(N?[]:null),q=n(k,2),z=q[0],H=q[1],B=g(""),W=n(B,2),F=W[0],G=W[1],J=g(""),Q=n(J,2),U=Q[0],X=Q[1],Y=g(!1),Z=n(Y,2),$=Z[0],ee=Z[1],te=g(1),re=n(te,2),ne=re[0],oe=re[1],ie=g(!0),ae=n(ie,2),le=ae[0],se=ae[1];h((function(){H(N?[]:null),oe(1),ee(!1)}),[c]);var pe=P({appKey:l,assetType:c,companyId:O,currentValue:x,isMultiple:N,parentAssetId:K,parentAssetType:_,scrollPage:ne,searchText:F,setCurrentOption:H}),ue=pe.assets,ce=pe.loading;h((function(){var e=ue.length>=I*ne;se(e)}),[ue,ne]);var de=y((function(){return t((function(e){oe(1),G(e)}),200)}),[]),fe=y((function(){return t((function(){return oe((function(e){return e+1}))}),250)}),[]),me={root:b.root,inputRoot:b.inputRoot,popupIndicator:b.popupIndicator,option:b.option,noOptions:b.noOptions,listbox:b.listbox};return o(s,{disabled:C,error:!!w,className:b.formControl,children:[!R&&i(p,{shrink:!0,children:V}),i(A,S({disabled:C,blurOnSelect:!0,classes:me,clearOnBlur:!0,clearOnEscape:!0,"data-testid":a,disableClearable:!0,filterOptions:r,getOptionLabel:function(e){return null==e?void 0:e.name},getOptionSelected:function(e,t){return e&&t&&e.id===t.id},inputValue:$?U:(null==z?void 0:z.name)||"",ListboxComponent:D,ListboxProps:{onScroll:function(e){if(le&&!ce){var t=e.currentTarget;t.scrollTop+t.clientHeight>t.scrollHeight-j&&fe()}},loading:ce,hasMore:le},options:ue,onChange:function(e,t){H(t),E(N?t.map((function(e){return e.id})):null==t?void 0:t.id)},onClose:function(){X(""),G(""),ee(!1),oe(1)},onInputChange:function(e,t,r){"input"===r?(X(t),ee(!0),de(t)):G("")},noOptionsText:i(L,{text:ce?"Loading...":"No options"}),renderInput:function(e){return i(d,S(S({},e),{},{variant:"standard",placeholder:"Search for asset..."},!N&&{InputProps:S(S({},e.InputProps),{},{startAdornment:i(f,{children:i(v,{className:b.searchIcon})})})}))},renderOption:function(e){var t=e.id,r=e.name;return i(T,{"data-testid":"".concat(M,"_option_").concat(r,"MenuItem"),children:N&&x.includes(t)?"".concat(r," (already selected)"):r},t)},value:z,multiple:N},N&&{renderTags:function(e,t){return e.map((function(e,r){return i(m,S({label:null==e?void 0:e.name},t({index:r})),e.id)}))},getOptionDisabled:function(e){return x.includes(e.id)}})),i(u,{children:w})]})};N.defaultProps={label:"Choose An Asset",currentValue:void 0,isNullable:!1,parentAssetId:void 0,parentAssetType:void 0,companyId:void 0,errorText:"","data-testid":"".concat(M,"_autoComplete"),disabled:!1,isMultiple:!1,appKey:null},N.propTypes={label:x.string,currentValue:x.oneOfType([x.number,x.arrayOf(x.number)]),isNullable:x.bool,onChange:x.func.isRequired,classes:x.shape({}).isRequired,parentAssetId:x.number,parentAssetType:x.string,companyId:x.number,assetType:x.string.isRequired,errorText:x.string,"data-testid":x.string,disabled:x.bool,isMultiple:x.bool,appKey:x.string};var R=a((function(e){return{formControl:{},listbox:{maxHeight:350},root:{fontSize:16},inputRoot:{paddingTop:16,padding:"8px 0",paddingBottom:0,width:350,fontSize:16},popupIndicator:{display:"none"},option:{paddingLeft:"16px !important",height:36,"&[aria-disabled=true]":{color:e.palette.primary.text9,opacity:1,backgroundColor:"unset"}},noOptions:{padding:0},searchIcon:{fontSize:"20px !important"}}}))(N);export default R;
1
+ import e from"@babel/runtime/helpers/defineProperty";import{debounce as t,identity as r}from"lodash";import n from"@babel/runtime/helpers/slicedToArray";import{jsxs as o,jsx as i}from"react/jsx-runtime";import{withStyles as a,List as l,FormControl as s,InputLabel as p,FormHelperText as u,Typography as c,TextField as d,InputAdornment as f,Chip as m}from"@material-ui/core";import{forwardRef as b,useState as g,useEffect as h,useMemo as y}from"react";import O from"@babel/runtime/helpers/objectWithoutProperties";import x from"prop-types";import{Search as v}from"@material-ui/icons";import T from"../TruncatedText/index.js";import{PER_PAGE as I,SCROLL_THRESHOLD as j}from"./constants.js";import{useAssetAutoCompleteSelectData as P}from"./effects/index.js";import{Autocomplete as A}from"@material-ui/lab";function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?C(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var M="DC_SingleAssetEditorAutocomplete",w={paddingLeft:"16px",height:36,listStyleType:"none",display:"flex",alignItems:"center"},L=function(e){var t=e.text;return i("li",{style:w,children:i(c,{variant:"body2",color:"textSecondary",children:void 0===t?"Loading...":t})},"loading")},D=b((function(e,t){var r=e.children,n=e.loading,a=e.hasMore,s=O(e,["children","loading","hasMore"]);return o(l,S(S({},s),{},{ref:t,role:"listbox",children:[r,(a||n)&&i(L,{})]}))})),N=function(e){var a=e["data-testid"],l=e.appKey,c=e.assetType,b=e.classes,O=e.companyId,x=e.currentValue,C=e.disabled,w=e.errorText,N=e.isMultiple,R=e.isNullable,V=e.label,E=e.onChange,K=e.parentAssetId,_=e.parentAssetType,k=g(N?[]:null),q=n(k,2),z=q[0],H=q[1],B=g(""),W=n(B,2),F=W[0],G=W[1],J=g(""),Q=n(J,2),U=Q[0],X=Q[1],Y=g(!1),Z=n(Y,2),$=Z[0],ee=Z[1],te=g(1),re=n(te,2),ne=re[0],oe=re[1],ie=g(!0),ae=n(ie,2),le=ae[0],se=ae[1];h((function(){H(N?[]:null),oe(1),ee(!1)}),[c]);var pe=P({appKey:l,assetType:c,companyId:O,currentValue:x,isMultiple:N,parentAssetId:K,parentAssetType:_,scrollPage:ne,searchText:F,setCurrentOption:H}),ue=pe.assets,ce=pe.loading;h((function(){var e=ue.length>=I*ne;se(e)}),[ue,ne]);var de=y((function(){return t((function(e){oe(1),G(e)}),200)}),[]),fe=y((function(){return t((function(){return oe((function(e){return e+1}))}),250)}),[]),me={root:b.root,inputRoot:b.inputRoot,popupIndicator:b.popupIndicator,option:b.option,noOptions:b.noOptions,listbox:b.listbox};return o(s,{disabled:C,error:!!w,className:b.formControl,children:[!R&&i(p,{shrink:!0,children:V}),i(A,S({disabled:C,blurOnSelect:!0,classes:me,clearOnBlur:!0,clearOnEscape:!0,"data-testid":a,disableClearable:!0,filterOptions:r,getOptionLabel:function(e){return null==e?void 0:e.name},getOptionSelected:function(e,t){return e&&t&&e.id===t.id},inputValue:$?U:(null==z?void 0:z.name)||"",ListboxComponent:D,ListboxProps:{onScroll:function(e){if(le&&!ce){var t=e.currentTarget;t.scrollTop+t.clientHeight>t.scrollHeight-j&&fe()}},loading:ce,hasMore:le},options:ue,onChange:function(e,t){H(t),E(N?t.map((function(e){return e.id})):null==t?void 0:t.id,t)},onClose:function(){X(""),G(""),ee(!1),oe(1)},onInputChange:function(e,t,r){"input"===r?(X(t),ee(!0),de(t)):G("")},noOptionsText:i(L,{text:ce?"Loading...":"No options"}),renderInput:function(e){return i(d,S(S({},e),{},{variant:"standard",placeholder:"Search for asset..."},!N&&{InputProps:S(S({},e.InputProps),{},{startAdornment:i(f,{children:i(v,{className:b.searchIcon})})})}))},renderOption:function(e){var t=e.id,r=e.name;return i(T,{"data-testid":"".concat(M,"_option_").concat(r,"MenuItem"),children:N&&x.includes(t)?"".concat(r," (already selected)"):r},t)},value:z,multiple:N},N&&{renderTags:function(e,t){return e.map((function(e,r){return i(m,S({label:null==e?void 0:e.name},t({index:r})),e.id)}))},getOptionDisabled:function(e){return x.includes(e.id)}})),i(u,{children:w})]})};N.defaultProps={label:"Choose An Asset",currentValue:void 0,isNullable:!1,parentAssetId:void 0,parentAssetType:void 0,companyId:void 0,errorText:"","data-testid":"".concat(M,"_autoComplete"),disabled:!1,isMultiple:!1,appKey:null},N.propTypes={label:x.string,currentValue:x.oneOfType([x.number,x.arrayOf(x.number)]),isNullable:x.bool,onChange:x.func.isRequired,classes:x.shape({}).isRequired,parentAssetId:x.number,parentAssetType:x.string,companyId:x.number,assetType:x.string.isRequired,errorText:x.string,"data-testid":x.string,disabled:x.bool,isMultiple:x.bool,appKey:x.string};var R=a((function(e){return{formControl:{},listbox:{maxHeight:350},root:{fontSize:16},inputRoot:{paddingTop:16,padding:"8px 0",paddingBottom:0,width:350,fontSize:16},popupIndicator:{display:"none"},option:{paddingLeft:"16px !important",height:36,"&[aria-disabled=true]":{color:e.palette.primary.text9,opacity:1,backgroundColor:"unset"}},noOptions:{padding:0},searchIcon:{fontSize:"20px !important"}}}))(N);export default R;
@@ -1 +1 @@
1
- import o from'../../ext-esm/style-inject/dist/style-inject.es.js';o(".Modal_modalWrapper__1Irj5{display:flex;width:100%;height:100%}.Modal_modalContainer__1ntEL{outline:none;max-width:80%;max-height:80%;background-color:#3b3b3b;margin:auto;border-radius:4px;display:flex;flex-direction:column}.Modal_modalStaticFooter__3__80{overflow-y:scroll;padding-bottom:0}.Modal_modalMobile__3Q0mr{border-radius:0;max-width:100%;max-height:100%;min-width:100%;min-height:100%;padding:0}.Modal_modalTitle__3EmG3{font-size:20px;color:#fff;padding:40px 40px 16px}.Modal_modalTitleWithClose__1KEFF{display:flex;justify-content:space-between}.Modal_modalMobile__3Q0mr .Modal_modalTitle__3EmG3{font-size:18px;display:flex;align-items:center;justify-content:center;min-height:65px;border-bottom:1px solid #414141}.Modal_modalActions__1pnLy{margin-top:auto;display:flex;align-items:center;padding:32px 40px 40px}.Modal_modalActionsSticky__2ppfp{background:#3b3b3b;padding:8px 40px;box-shadow:0 -8px 10px rgba(0,0,0,.14)}.Modal_modalMobile__3Q0mr .Modal_modalActions__1pnLy{min-height:68px;box-shadow:0 -2px 8px rgba(0,0,0,.2);padding:0 32px}.Modal_modalContent__30BgY{overflow-y:auto;padding:0 40px}.Modal_modalMobile__3Q0mr .Modal_modalContent__30BgY{padding:28px 32px}");export default{modalWrapper:"Modal_modalWrapper__1Irj5",modalContainer:"Modal_modalContainer__1ntEL",modalStaticFooter:"Modal_modalStaticFooter__3__80",modalMobile:"Modal_modalMobile__3Q0mr",modalTitle:"Modal_modalTitle__3EmG3",modalTitleWithClose:"Modal_modalTitleWithClose__1KEFF",modalActions:"Modal_modalActions__1pnLy",modalActionsSticky:"Modal_modalActionsSticky__2ppfp",modalContent:"Modal_modalContent__30BgY"};
1
+ import o from'../../ext-esm/style-inject/dist/style-inject.es.js';o(".Modal_small__W_lAm{width:416px}.Modal_medium__1bbOT{width:552px}.Modal_large__3W3z5{width:768px}.Modal_extraLarge__2hv5g{width:80%;height:80%;max-width:1152px}.Modal_modalWrapper__1Irj5{display:flex;width:100%;height:100%}.Modal_modalContainer__1ntEL{outline:none;max-width:80%;max-height:80%;background-color:#3b3b3b;margin:auto;border-radius:4px;display:flex;flex-direction:column}.Modal_modalStaticFooter__3__80{overflow-y:scroll;padding-bottom:0}.Modal_modalMobile__3Q0mr{border-radius:0;max-width:100%;max-height:100%;min-width:100%;min-height:100%;padding:0}.Modal_modalTitle__3EmG3{font-size:20px;color:#fff;padding:40px 40px 16px}.Modal_modalTitleWithClose__1KEFF{display:flex;justify-content:space-between}.Modal_modalMobile__3Q0mr .Modal_modalTitle__3EmG3{font-size:18px;display:flex;align-items:center;justify-content:center;min-height:65px;border-bottom:1px solid #414141}.Modal_modalActions__1pnLy{margin-top:auto;display:flex;align-items:center;padding:32px 40px 40px}.Modal_modalActionsSticky__2ppfp{background:#3b3b3b;padding:8px 40px;box-shadow:0 -8px 10px rgba(0,0,0,.14)}.Modal_modalMobile__3Q0mr .Modal_modalActions__1pnLy{min-height:68px;box-shadow:0 -2px 8px rgba(0,0,0,.2);padding:0 32px}.Modal_modalContent__30BgY{overflow-y:auto;padding:0 40px}.Modal_modalMobile__3Q0mr .Modal_modalContent__30BgY{padding:28px 32px}");export default{small:"Modal_small__W_lAm",medium:"Modal_medium__1bbOT",large:"Modal_large__3W3z5",extraLarge:"Modal_extraLarge__2hv5g",modalWrapper:"Modal_modalWrapper__1Irj5",modalContainer:"Modal_modalContainer__1ntEL",modalStaticFooter:"Modal_modalStaticFooter__3__80",modalMobile:"Modal_modalMobile__3Q0mr",modalTitle:"Modal_modalTitle__3EmG3",modalTitleWithClose:"Modal_modalTitleWithClose__1KEFF",modalActions:"Modal_modalActions__1pnLy",modalActionsSticky:"Modal_modalActionsSticky__2ppfp",modalContent:"Modal_modalContent__30BgY"};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{noop as o}from"lodash";import{isNativeDetected as t,isMobileDetected as r}from"../../utils/mobileDetect.js";import{jsx as i,jsxs as n}from"react/jsx-runtime";import{withStyles as s,IconButton as l,Modal as a}from"@material-ui/core";import c from"@babel/runtime/helpers/objectWithoutProperties";import m from"prop-types";import p from"classnames";import{Close as d,CloseRounded as f}from"@material-ui/icons";import u from"./Modal.css.js";function b(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);o&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),t.push.apply(t,r)}return t}function C(o){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){e(o,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))}))}return o}var y=s({root:{position:"absolute",left:"10px",color:"#9E9E9E"}})(l),h=s((function(e){return{root:{color:e.palette.primary.text6,"&:hover":{color:"white",cursor:"pointer"}}}}))(d);function N(e){var o=e.title,t=e.children,r=e.actions,s=e.open,l=e.isCloseIconHidden,m=e.onClose,d=e.isNative,b=e.isMobile,N=e.stickyFooter,O=e.contentContainerClassName,v=e.contentClassName,j=e.stickyFooterClassName,g=c(e,["title","children","actions","open","isCloseIconHidden","onClose","isNative","isMobile","stickyFooter","contentContainerClassName","contentClassName","stickyFooterClassName"]),k=d||b;return i(a,C(C({open:s,onClose:m,className:p("c-modal",u.modalWrapper)},g),{},{children:n("div",{className:p(u.modalContainer,k&&u.modalMobile,N&&u.modalStaticFooter,O),children:[o&&n("div",{className:p(u.modalTitle,!k&&!l&&u.modalTitleWithClose),children:[k&&i(y,{onClick:m,children:i(f,{})}),o,!k&&!l&&i(h,{onClick:m})]}),t&&i("div",{className:p(u.modalContent,v),children:t}),!N&&r&&i("div",{className:u.modalActions,children:r}),N&&r&&i("div",{className:p(u.modalActionsSticky,j),children:r})]})}))}N.propTypes={title:m.oneOfType([m.string,m.node]),children:m.oneOfType([m.string,m.node]),actions:m.oneOfType([m.string,m.node,m.array]),stickyFooter:m.bool,open:m.bool.isRequired,onClose:m.func,isNative:m.bool,isMobile:m.bool,isCloseIconHidden:m.bool,contentClassName:m.string,contentContainerClassName:m.string,stickyFooterClassName:m.string},N.defaultProps={title:"",children:null,actions:"",stickyFooter:!1,onClose:o,isNative:t,isMobile:r,isCloseIconHidden:!1,contentClassName:null,contentContainerClassName:null,stickyFooterClassName:null};export default N;
1
+ import e from"@babel/runtime/helpers/defineProperty";import{noop as o}from"lodash";import{isNativeDetected as t,isMobileDetected as i}from"../../utils/mobileDetect.js";import{jsx as r,jsxs as n}from"react/jsx-runtime";import{withStyles as s,IconButton as l,makeStyles as a,Modal as c,Tooltip as m}from"@material-ui/core";import p from"@babel/runtime/helpers/objectWithoutProperties";import d from"prop-types";import u from"classnames";import{Close as b,CloseRounded as f}from"@material-ui/icons";import C from"./Modal.css.js";function y(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);o&&(i=i.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),t.push.apply(t,i)}return t}function h(o){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?y(Object(i),!0).forEach((function(t){e(o,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))}))}return o}var N=s({root:{position:"absolute",left:"10px",color:"#9E9E9E"}})(l),O=s((function(e){return{root:{color:e.palette.primary.text6,"&:hover":{color:"white",cursor:"pointer"}}}}))(b),v=a({closeTooltip:{marginTop:8}});function g(o){var t=o.title,i=o.children,s=o.actions,a=o.open,d=o.isCloseIconHidden,b=o.onClose,y=o.isNative,g=o.isMobile,j=o.stickyFooter,k=o.contentContainerClassName,P=o.contentClassName,F=o.stickyFooterClassName,T=o.size,w=p(o,["title","children","actions","open","isCloseIconHidden","onClose","isNative","isMobile","stickyFooter","contentContainerClassName","contentClassName","stickyFooterClassName","size"]),M=y||g,D=v();return r(c,h(h({open:a,onClose:b,className:u(e({"c-modal":!0},C.modalWrapper,!0))},w),{},{children:n("div",{className:u(C[T],C.modalContainer,M&&C.modalMobile,j&&C.modalStaticFooter,k),children:[t&&n("div",{className:u(C.modalTitle,!M&&!d&&C.modalTitleWithClose),children:[M&&r(N,{onClick:b,children:r(f,{})}),t,!M&&!d&&r(m,{title:"Close",classes:{tooltip:D.closeTooltip},placement:"bottom",children:r(l,{onClick:b,children:r(O,{})})})]}),i&&r("div",{className:u(C.modalContent,P),children:i}),!j&&s&&r("div",{className:C.modalActions,children:s}),j&&s&&r("div",{className:u(C.modalActionsSticky,F),children:s})]})}))}g.propTypes={title:d.oneOfType([d.string,d.node]),children:d.oneOfType([d.string,d.node]),actions:d.oneOfType([d.string,d.node,d.array]),stickyFooter:d.bool,open:d.bool.isRequired,onClose:d.func,isNative:d.bool,isMobile:d.bool,isCloseIconHidden:d.bool,contentClassName:d.string,contentContainerClassName:d.string,stickyFooterClassName:d.string,size:d.string},g.defaultProps={title:"",children:null,actions:"",stickyFooter:!1,onClose:o,isNative:t,isMobile:i,isCloseIconHidden:!1,contentClassName:null,contentContainerClassName:null,stickyFooterClassName:null,size:null};export default g;
@@ -1 +1 @@
1
- import{get as a}from"lodash";var t="/static/media/00540440635d868542f0b1e6c01b459b.svg",e="/static/media/b0b1d748a61692cd1bc2a6b41bb4d862.svg",o="/static/media/8a08caefcbafbcdaa3f0af1afe23f54b.svg",i="/static/media/5324a810000956e377669ef1d862660f.svg",r="/static/media/ca6fe854cf3b94ac7018b5447e9b8c6b.svg",n="/static/media/c0a8ba7272d80b8721250551f86252f0.svg",d="/static/media/66973b6752d85d049d02440a64c83816.svg",c={PREVIOUS_24H_STAGE_COUNT:{key:"PREVIOUS_24H_STAGE_COUNT",label:"Previous 24h Stages",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hStageCount:e?a(e.filter((function(a){return"stage_count"===a.key})),["0","split"]):0}}},PREVIOUS_24H_PUMPING_HOURS:{key:"PREVIOUS_24H_PUMPING_HOURS",label:"Previous 24h Pumping",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hPumpingHours:e?a(e.filter((function(a){return"pumping_hours"===a.key})),["0","split"]):0}}},HOLE_DEPTH:{key:"HOLE_DEPTH",label:"Hole Depth",dataSource:[{provider:"corva",collection:"wits",fields:["data.hole_depth"]}],dataGetter:function(t){return{holeDepth:a(t,["corva#wits","data","hole_depth"])}}},BIT_HOLE_DEPTH:{key:"BIT_HOLE_DEPTH",label:"Bit/Hole Depth",dataSource:[{provider:"corva",collection:"wits",fields:["data.bit_depth"]},{provider:"corva",collection:"wits",fields:["data.hole_depth"]}],dataGetter:function(t){return{bitDepth:a(t,["corva#wits","data","bit_depth"]),holeDepth:a(t,["corva#wits","data","hole_depth"])}}},LAST_ACTIVE:{key:"LAST_ACTIVE",label:"Last Active",dataSource:[{provider:"corva",collection:"wits",fields:["timestamp"]}],dataGetter:function(t){return{timestamp:a(t,["corva#wits","timestamp"])}}},PHASE:{key:"PHASE",label:"Phase",dataSource:[{provider:"corva",collection:"data-well-sections-phases",fields:["data.phase_name"]}],dataGetter:function(t){return{phaseName:a(t,["corva#data-well-sections-phases","data","phase_name"])}}},CURRENT_ACTIVITY:{key:"CURRENT_ACTIVITY",label:"Current Activity",dataSource:[{provider:"corva",collection:"wits",fields:["data.state"]}],dataGetter:function(t){return{activityName:a(t,["corva#wits","data","state"])}}},HOLE_SECTION:{key:"HOLE_SECTION",label:"Hole Section",icon:"/static/media/0ba421f68bdeed555d761342b1a1b045.svg",dataSource:[{provider:"corva",collection:"data-well-sections",fields:["data.name"]}],dataGetter:function(t){return{sectionName:a(t,["corva#data-well-sections","data","name"])}}},BHA:{key:"BHA",label:"BHA",icon:t,dataSource:[{provider:"corva",collection:"data-drillstring",fields:["timestamp","data.id","data.components.family","data.components.material","data.components.stabilizer","data.components.bit_type","data.setting_timestamp"]}],dataGetter:function(t){return{components:a(t,["corva#data-drillstring","data","components"]),bhaId:a(t,["corva#data-drillstring","data","id"])}}},BHA_COUNT:{key:"BHA_COUNT",label:"# of Total BHAs",icon:t,dataSource:[{provider:"corva",collection:"data-drillstring",fields:["data.id"]}],dataGetter:function(t){return{count:a(t,["corva#data-drillstring","data","id"])}}},CASING:{key:"CASING",label:"Casing",icon:e,dataSource:[{provider:"corva",collection:"data-casing",fields:["timestamp","data.outer_diameter","data.setting_timestamp"]}],dataGetter:function(t){return{outerDiameter:a(t,["corva#data-casing","data","outer_diameter"]),settingTimestamp:a(t,["corva#data-casing","data","setting_timestamp"])}}},STRING_DESIGN:{key:"STRING_DESIGN",label:"String Design",icon:e},TOTAL_COST:{key:"TOTAL_COST",label:"Total Cost",icon:"/static/media/ad2f90b277877ab4b461a002a885d501.svg"},MUD:{key:"MUD",label:"Mud",icon:o,dataSource:[{provider:"corva",collection:"data-mud",fields:["data.mud_density","data.mud_type"]}],dataGetter:function(t){return{mudDensity:a(t,["corva#data-mud","data","mud_density"]),mudType:a(t,["corva#data-mud","data","mud_type"])}}},TARGET_FORMATION:{key:"TARGET_FORMATION",label:"Target Formation",icon:i},DIVERGENCE:{key:"DIVERGENCE",label:"Divergence From Plan",icon:"/static/media/905e8af2a0d8a649a153959a561b87b7.svg",dataSource:[{provider:"corva",collection:"directional-accuracy",fields:["data.horizontal_plane.distance","data.horizontal_plane.ahead","data.horizontal_plane.right"]}],dataGetter:function(t){return{distance:a(t,["corva#directional-accuracy","data","horizontal_plane","distance"]),ahead:a(t,["corva#directional-accuracy","data","horizontal_plane","ahead"]),right:a(t,["corva#directional-accuracy","data","horizontal_plane","right"])}}},NPT:{key:"NPT",label:"NPT",icon:r,dataSource:[{provider:"corva",collection:"data-npt-events",fields:["data.type","data.start_time","data.end_time"]}],dataGetter:function(t){return{nptType:a(t,["corva#data-npt-events","data","type"]),startTime:a(t,["corva#data-npt-events","data","start_time"]),endTime:a(t,["corva#data-npt-events","data","end_time"])}}},OPERATIONS_SUMMARY:{key:"OPERATIONS_SUMMARY",label:"Operations Summary",icon:"/static/media/e8baca5bdb92a559a66ca0e4f444c8ac.svg",dataSource:[{provider:"corva",collection:"data-operation-summaries",fields:["data"]}],dataGetter:function(t){return{dateTime:a(t,["corva#data-operation-summaries","data","date_time"]),summary:a(t,["corva#data-operation-summaries","data","summary"])}}},ALERT:{key:"ALERT",label:"Alerts",icon:n,dataSource:[{collection:"alert"}],dataGetter:function(t){return{decisionPath:a(t,["alert","decision_path"])}}},ANNOTATION:{key:"ANNOTATION",label:"Comments",icon:d,dataSource:[{collection:"app_annotation"}],dataGetter:function(t){return{firstName:a(t,["app_annotation","user","first_name"]),lastName:a(t,["app_annotation","user","last_name"]),profilePhoto:a(t,["app_annotation","user","profile_photo"]),content:a(t,["app_annotation","context","app_annotation","body"])}}},DRILLING_PERIOD:{key:"DRILLING_PERIOD",label:"Drilling Period",dataSource:[],dataGetter:function(t){return{start:a(t,["asset","stats","drilling","start"]),end:a(t,["asset","stats","drilling","end"])}}}},l={PREVIOUS_24H_STAGE_COUNT:{key:"COMPLETION_PREVIOUS_24H_STAGE_COUNT",label:"Previous 24h Stages",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hStageCount:e?a(e.filter((function(a){return"stage_count"===a.key})),["0","split"]):0}}},PREVIOUS_24H_PUMPING_HOURS:{key:"COMPLETION_PREVIOUS_24H_PUMPING_HOURS",label:"Previous 24h Pumping",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hPumpingHours:e?a(e.filter((function(a){return"pumping_hours"===a.key})),["0","split"]):0}}},LAST_ACTIVE:{key:"COMPLETION_LAST_ACTIVE",label:"Last Active",dataSource:[{provider:"corva",collection:"completion-wits",fields:["timestamp"]},{provider:"corva",collection:"wireline-wits",fields:["timestamp"]}],dataGetter:function(t){var e=a(t,["corva#completion-wits","timestamp"]),o=a(t,["corva#wireline-wits","timestamp"]),i=null;return e&&o?i=e>o?e:o:e?i=e:o&&(i=o),{timestamp:i}}},CURRENT_ACTIVITY:{key:"COMPLETION_CURRENT_ACTIVITY",label:"Current Activity",dataSource:[{provider:"corva",collection:"completion-wits",fields:["timestamp"]},{provider:"corva",collection:"wireline-wits",fields:["timestamp"]}],dataGetter:function(t){var e=a(t,["corva#completion-wits","timestamp"]),o=a(t,["corva#wireline-wits","timestamp"]),i="";return e&&o?i=e>o?"frac":"wireline":e?i="frac":o&&(i="wireline"),{activityName:i}}},STAGE:{key:"COMPLETION_STAGE",label:"Stage",dataSource:[{provider:"corva",collection:"completion-wits",fields:["stage_number"]},{provider:"corva",collection:"completion-data-stages",fields:["data.stage_number"]}],dataGetter:function(t){return{planned:a(t,["corva#completion-data-stages","data","stage_number"]),actual:a(t,["corva#completion-wits","stage_number"])}}},PROPPANTS:{key:"COMPLETION_PROPPANTS",label:"Proppant Type",icon:"/static/media/c36bd155405be845b8331c1a878a117e.svg",dataSource:[{provider:"corva",collection:"completion-data-actual-stages",fields:["data.proppants"]}],dataGetter:function(t){return{proppants:a(t,["corva#completion-data-actual-stages","data","proppants"])||[]}}},FLUIDS:{key:"COMPLETION_FLUIDS",label:"Fluid Type",icon:"/static/media/c114aecc412f5d59429823554dd71245.svg",dataSource:[{provider:"corva",collection:"completion-data-actual-stages",fields:["data.fluids"]}],dataGetter:function(t){return{fluids:a(t,["corva#completion-data-actual-stages","data","fluids"])||[]}}},TARGET_FORMATION:{key:"COMPLETION_TARGET_FORMATION",label:"Target Formation",icon:i},NPT:{key:"COMPLETION_NPT",label:"NPT",icon:r,dataSource:[{provider:"corva",collection:"completion-data-npt-events",fields:["data.type","data.start_time","data.end_time"]}],dataGetter:function(t){return{nptType:a(t,["corva#completion-data-npt-events","data","type"]),startTime:a(t,["corva#completion-data-npt-events","data","start_time"]),endTime:a(t,["corva#completion-data-npt-events","data","end_time"])}}},PLUGS_DRILLED_COUNT:{key:"PLUGS_DRILLED_COUNT",label:"Plugs drilled",dataSource:[{provider:"corva",collection:"completion-data-plugs",fields:["data"]}],dataGetter:function(t){return{plugsDrilledCount:(a(t,["corva#completion-data-plugs"])||[]).length}}},OPERATIONS_SUMMARY:{key:"COMPLETION_OPERATIONS_SUMMARY",label:"Operations Summary",icon:"/static/media/e8baca5bdb92a559a66ca0e4f444c8ac.svg",dataSource:[{provider:"corva",collection:"completion-data-operation-summaries",fields:["data"]}],dataGetter:function(t){return{dateTime:a(t,["corva#completion-data-operation-summaries","data","date_time"]),summary:a(t,["corva#completion-data-operation-summaries","data","summary"])}}},ALERT:{key:"COMPLETION_ALERT",label:"Alerts",icon:n,dataSource:[{collection:"alert"}],dataGetter:function(t){return{decisionPath:a(t,["alert","decision_path"])}}},ANNOTATION:{key:"COMPLETION_ANNOTATION",label:"Comments",icon:d,dataSource:[{collection:"app_annotation"}],dataGetter:function(t){return{firstName:a(t,["app_annotation","user","first_name"]),lastName:a(t,["app_annotation","user","last_name"]),profilePhoto:a(t,["app_annotation","user","profile_photo"]),content:a(t,["app_annotation","context","app_annotation","body"])}}},COMPLETION_PERIOD:{key:"COMPLETION_PERIOD",label:"Completion Period",dataSource:[],dataGetter:function(t){return{start:a(t,["asset","stats","completion","start"]),end:a(t,["asset","stats","completion","end"])}}},TOTAL_FRAC_TIME:{key:"TOTAL_FRAC_TIME",label:"Total Frac Time",dataSource:[]},TOTAL_WIRELINE_TIME:{key:"TOTAL_WIRELINE_TIME",label:"Total Wireline Time",dataSource:[]},STAGES_DESIGN:{key:"STAGES_DESIGN",label:"Stages Design vs Actual",dataSource:[{collection:"completion-data-stages"}],dataGetter:function(t){return{totalNumberOfStages:a(t,["completion-data-stages","data","stage_number"])}}}},s={MUD:{key:"DRILLOUT_MUD",label:"MUD",icon:o,dataSource:[{provider:"corva",collection:"drillout-data-mud",fields:["data.mud_density","data.mud_type"]}],dataGetter:function(t){return{mudDensity:a(t,["corva#drillout-data-mud","data","mud_density"]),mudType:a(t,["corva#drillout-data-mud","data","mud_type"])}}},BHA:{key:"DRILLOUT_BHA",label:"BHA",icon:t,dataSource:[{provider:"corva",collection:"drillout-data-drillstring",fields:["timestamp","data.id","data.components.family","data.components.material","data.components.stabilizer","data.components.bit_type","data.setting_timestamp"]}],dataGetter:function(t){return{components:a(t,["corva#drillout-data-drillstring","data","components"]),bhaId:a(t,["corva#drillout-data-drillstring","data","id"])}}}};export{l as COMPLETION_WELL_SUMMARY,c as DRILLING_WELL_SUMMARY,s as DRILLOUT_WELL_SUMMARY};
1
+ import{get as a}from"lodash";var t="/static/media/00540440635d868542f0b1e6c01b459b.svg",e="/static/media/b0b1d748a61692cd1bc2a6b41bb4d862.svg",o="/static/media/8a08caefcbafbcdaa3f0af1afe23f54b.svg",i="/static/media/5324a810000956e377669ef1d862660f.svg",r="/static/media/ca6fe854cf3b94ac7018b5447e9b8c6b.svg",n="/static/media/c0a8ba7272d80b8721250551f86252f0.svg",d="/static/media/66973b6752d85d049d02440a64c83816.svg",c={PREVIOUS_24H_STAGE_COUNT:{key:"PREVIOUS_24H_STAGE_COUNT",label:"Previous 24h Stages",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hStageCount:e?a(e.filter((function(a){return"stage_count"===a.key})),["0","split"]):0}}},PREVIOUS_24H_PUMPING_HOURS:{key:"PREVIOUS_24H_PUMPING_HOURS",label:"Previous 24h Pumping",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hPumpingHours:e?a(e.filter((function(a){return"pumping_hours"===a.key})),["0","split"]):0}}},HOLE_DEPTH:{key:"HOLE_DEPTH",label:"Hole Depth",dataSource:[{provider:"corva",collection:"wits",fields:["data.hole_depth"]}],dataGetter:function(t){return{holeDepth:a(t,["corva#wits","data","hole_depth"])}}},BIT_HOLE_DEPTH:{key:"BIT_HOLE_DEPTH",label:"Bit/Hole Depth",dataSource:[{provider:"corva",collection:"wits",fields:["data.bit_depth"]},{provider:"corva",collection:"wits",fields:["data.hole_depth"]}],dataGetter:function(t){return{bitDepth:a(t,["corva#wits","data","bit_depth"]),holeDepth:a(t,["corva#wits","data","hole_depth"])}}},LAST_ACTIVE:{key:"LAST_ACTIVE",label:"Last Active",dataSource:[{provider:"corva",collection:"wits",fields:["timestamp"]}],dataGetter:function(t){return{timestamp:a(t,["corva#wits","timestamp"])}}},PHASE:{key:"PHASE",label:"Phase",dataSource:[{provider:"corva",collection:"data-well-sections-phases",fields:["data.phase_name"]}],dataGetter:function(t){return{phaseName:a(t,["corva#data-well-sections-phases","data","phase_name"])}}},CURRENT_ACTIVITY:{key:"CURRENT_ACTIVITY",label:"Current Activity",dataSource:[{provider:"corva",collection:"wits",fields:["data.state"]}],dataGetter:function(t){return{activityName:a(t,["corva#wits","data","state"])}}},HOLE_SECTION:{key:"HOLE_SECTION",label:"Hole Section",icon:"/static/media/0ba421f68bdeed555d761342b1a1b045.svg",dataSource:[{provider:"corva",collection:"data-well-sections",fields:["data.name"]}],dataGetter:function(t){return{sectionName:a(t,["corva#data-well-sections","data","name"])}}},BHA:{key:"BHA",label:"BHA",icon:t,dataSource:[{provider:"corva",collection:"data-drillstring",fields:["timestamp","data.id","data.components.family","data.components.material","data.components.stabilizer","data.components.bit_type","data.setting_timestamp"]}],dataGetter:function(t){return{components:a(t,["corva#data-drillstring","data","components"]),bhaId:a(t,["corva#data-drillstring","data","id"])}}},BHA_COUNT:{key:"BHA_COUNT",label:"# of Total BHAs",icon:t,dataSource:[{provider:"corva",collection:"data-drillstring",fields:["data.id"]}],dataGetter:function(t){return{count:a(t,["corva#data-drillstring","data","id"])}}},CASING:{key:"CASING",label:"Casing",icon:e,dataSource:[{provider:"corva",collection:"data-casing",fields:["timestamp","data.outer_diameter","data.setting_timestamp"]}],dataGetter:function(t){return{outerDiameter:a(t,["corva#data-casing","data","outer_diameter"]),settingTimestamp:a(t,["corva#data-casing","data","setting_timestamp"])}}},STRING_DESIGN:{key:"STRING_DESIGN",label:"String Design",icon:e},TOTAL_COST:{key:"TOTAL_COST",label:"Total Cost",icon:"/static/media/ad2f90b277877ab4b461a002a885d501.svg"},MUD:{key:"MUD",label:"Mud",icon:o,dataSource:[{provider:"corva",collection:"data-mud",fields:["data.mud_density","data.mud_type"]}],dataGetter:function(t){return{mudDensity:a(t,["corva#data-mud","data","mud_density"]),mudType:a(t,["corva#data-mud","data","mud_type"])}}},TARGET_FORMATION:{key:"TARGET_FORMATION",label:"Target Formation",icon:i},DIVERGENCE:{key:"DIVERGENCE",label:"Divergence From Plan",icon:"/static/media/905e8af2a0d8a649a153959a561b87b7.svg",dataSource:[{provider:"corva",collection:"directional-accuracy",fields:["data.horizontal_plane.distance","data.horizontal_plane.ahead","data.horizontal_plane.right"]}],dataGetter:function(t){return{distance:a(t,["corva#directional-accuracy","data","horizontal_plane","distance"]),ahead:a(t,["corva#directional-accuracy","data","horizontal_plane","ahead"]),right:a(t,["corva#directional-accuracy","data","horizontal_plane","right"])}}},NPT:{key:"NPT",label:"NPT",icon:r,dataSource:[{provider:"corva",collection:"data-npt-events",fields:["data.type","data.start_time","data.end_time"]}],dataGetter:function(t){return{nptType:a(t,["corva#data-npt-events","data","type"]),startTime:a(t,["corva#data-npt-events","data","start_time"]),endTime:a(t,["corva#data-npt-events","data","end_time"])}}},OPERATIONS_SUMMARY:{key:"OPERATIONS_SUMMARY",label:"Operations Summary",icon:"/static/media/e8baca5bdb92a559a66ca0e4f444c8ac.svg",dataSource:[{provider:"corva",collection:"data-operation-summaries",fields:["data"]}],dataGetter:function(t){return{dateTime:a(t,["corva#data-operation-summaries","data","date_time"]),summary:a(t,["corva#data-operation-summaries","data","summary"])}}},ALERT:{key:"ALERT",label:"Alerts",icon:n,dataSource:[{collection:"alert"}],dataGetter:function(t){return{decisionPath:a(t,["alert","decision_path"])}}},ANNOTATION:{key:"ANNOTATION",label:"Comments",icon:d,dataSource:[{collection:"app_annotation"}],dataGetter:function(t){return{firstName:a(t,["app_annotation","user","first_name"]),lastName:a(t,["app_annotation","user","last_name"]),profilePhoto:a(t,["app_annotation","user","profile_photo"]),content:a(t,["app_annotation","context","app_annotation","body"])}}},DRILLING_PERIOD:{key:"DRILLING_PERIOD",label:"Drilling Period",dataSource:[],dataGetter:function(t){return{start:a(t,["asset","stats","drilling","start"]),end:a(t,["asset","stats","drilling","end"])}}}},l={PREVIOUS_24H_STAGE_COUNT:{key:"COMPLETION_PREVIOUS_24H_STAGE_COUNT",label:"Previous 24h Stages",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hStageCount:e?a(e.filter((function(a){return"stage_count"===a.key})),["0","split"]):0}}},PREVIOUS_24H_PUMPING_HOURS:{key:"COMPLETION_PREVIOUS_24H_PUMPING_HOURS",label:"Previous 24h Pumping",dataGetter:function(t){var e=a(t,["corva#completion-metrics","data","metrics"]);return{previous24hPumpingHours:e?a(e.filter((function(a){return"pumping_hours"===a.key})),["0","split"]):0}}},LAST_ACTIVE:{key:"COMPLETION_LAST_ACTIVE",label:"Last Active",dataSource:[{provider:"corva",collection:"completion-wits",fields:["timestamp"]},{provider:"corva",collection:"wireline-wits",fields:["timestamp"]}],dataGetter:function(t){var e=a(t,["corva#completion-wits","timestamp"]),o=a(t,["corva#wireline-wits","timestamp"]),i=null;return e&&o?i=e>o?e:o:e?i=e:o&&(i=o),{timestamp:i}}},CURRENT_ACTIVITY:{key:"COMPLETION_CURRENT_ACTIVITY",label:"Current Activity",dataSource:[{provider:"corva",collection:"completion-wits",fields:["timestamp"]},{provider:"corva",collection:"wireline-wits",fields:["timestamp"]}],dataGetter:function(t){var e=a(t,["corva#completion-wits","timestamp"]),o=a(t,["corva#wireline-wits","timestamp"]),i="";return e&&o?i=e>o?"frac":"wireline":e?i="frac":o&&(i="wireline"),{activityName:i}}},STAGE:{key:"COMPLETION_STAGE",label:"Stage",dataSource:[{provider:"corva",collection:"completion-wits",fields:["stage_number"]},{provider:"corva",collection:"completion-data-stages",fields:["data.stage_number"]}],dataGetter:function(t){return{planned:a(t,["corva#completion-data-stages","data","stage_number"]),actual:a(t,["corva#completion-wits","stage_number"])}}},PROPPANTS:{key:"COMPLETION_PROPPANTS",label:"Proppant Type",icon:"/static/media/c36bd155405be845b8331c1a878a117e.svg",dataSource:[{provider:"corva",collection:"completion-data-actual-stages",fields:["data.proppants"]}],dataGetter:function(t){return{proppants:a(t,["corva#completion-data-actual-stages","data","proppants"])||[]}}},FLUIDS:{key:"COMPLETION_FLUIDS",label:"Fluid Type",icon:"/static/media/c114aecc412f5d59429823554dd71245.svg",dataSource:[{provider:"corva",collection:"completion-data-actual-stages",fields:["data.fluids"]}],dataGetter:function(t){return{fluids:a(t,["corva#completion-data-actual-stages","data","fluids"])||[]}}},TARGET_FORMATION:{key:"COMPLETION_TARGET_FORMATION",label:"Target Formation",icon:i},NPT:{key:"COMPLETION_NPT",label:"NPT",icon:r,dataSource:[{provider:"corva",collection:"completion-data-npt-events",fields:["data.type","data.start_time","data.end_time"]}],dataGetter:function(t){return{nptType:a(t,["corva#completion-data-npt-events","data","type"]),startTime:a(t,["corva#completion-data-npt-events","data","start_time"]),endTime:a(t,["corva#completion-data-npt-events","data","end_time"])}}},PLUGS_DRILLED_COUNT:{key:"PLUGS_DRILLED_COUNT",label:"Plugs drilled",dataSource:[{provider:"corva",collection:"completion-data-plugs",fields:["data"]}],dataGetter:function(t){return{plugsDrilledCount:(a(t,["corva#completion-data-plugs"])||[]).length}}},OPERATIONS_SUMMARY:{key:"COMPLETION_OPERATIONS_SUMMARY",label:"Operations Summary",icon:"/static/media/e8baca5bdb92a559a66ca0e4f444c8ac.svg",dataSource:[{provider:"corva",collection:"completion-data-operation-summaries",fields:["data"]}],dataGetter:function(t){return{dateTime:a(t,["corva#completion-data-operation-summaries","data","date_time"]),summary:a(t,["corva#completion-data-operation-summaries","data","summary"])}}},ALERT:{key:"COMPLETION_ALERT",label:"Alerts",icon:n,dataSource:[{collection:"alert"}],dataGetter:function(t){return{decisionPath:a(t,["alert","decision_path"])}}},ANNOTATION:{key:"COMPLETION_ANNOTATION",label:"Comments",icon:d,dataSource:[{collection:"app_annotation"}],dataGetter:function(t){return{firstName:a(t,["app_annotation","user","first_name"]),lastName:a(t,["app_annotation","user","last_name"]),profilePhoto:a(t,["app_annotation","user","profile_photo"]),content:a(t,["app_annotation","context","app_annotation","body"])}}},COMPLETION_PERIOD:{key:"COMPLETION_PERIOD",label:"Completion Period",dataSource:[],dataGetter:function(t){return{start:a(t,["asset","stats","completion","start"]),end:a(t,["asset","stats","completion","end"])}}},TOTAL_FRAC_TIME:{key:"TOTAL_FRAC_TIME",label:"Total Frac Time",dataSource:[]},TOTAL_WIRELINE_TIME:{key:"TOTAL_WIRELINE_TIME",label:"Total Wireline Time",dataSource:[]},STAGES_DESIGN:{key:"STAGES_DESIGN",label:"Stages Design vs Actual",dataSource:[{collection:"completion-data-stages"}],dataGetter:function(t){return{totalNumberOfStages:a(t,["completion-data-stages","data","stage_number"])}}}},s={MUD:{key:"DRILLOUT_MUD",label:"Mud",icon:o,dataSource:[{provider:"corva",collection:"drillout-data-mud",fields:["data.mud_density","data.mud_type"]}],dataGetter:function(t){return{mudDensity:a(t,["corva#drillout-data-mud","data","mud_density"]),mudType:a(t,["corva#drillout-data-mud","data","mud_type"])}}},BHA:{key:"DRILLOUT_BHA",label:"BHA",icon:t,dataSource:[{provider:"corva",collection:"drillout-data-drillstring",fields:["timestamp","data.id","data.components.family","data.components.material","data.components.stabilizer","data.components.bit_type","data.setting_timestamp"]}],dataGetter:function(t){return{components:a(t,["corva#drillout-data-drillstring","data","components"]),bhaId:a(t,["corva#drillout-data-drillstring","data","id"])}}}};export{l as COMPLETION_WELL_SUMMARY,c as DRILLING_WELL_SUMMARY,s as DRILLOUT_WELL_SUMMARY};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.23.0-6",
3
+ "version": "0.24.0-0",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"