@corva/ui 0.75.0-10 → 0.75.0-12
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/cjs-bundle/components/AssetEditorV2/effects/index.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/cjs-bundle/components/CopyToClipboard/CopyToClipboard.js +1 -1
- package/cjs-bundle/components/DatePicker/index.js +1 -1
- package/cjs-bundle/components/DateTimePicker/index.js +1 -1
- package/cjs-bundle/components/OffsetWellButton/OffsetWellButton.js +1 -1
- package/cjs-bundle/config/theme/dateTimePickerThemeOverrides.js +1 -1
- package/components/AssetEditorV2/effects/index.d.ts.map +1 -1
- package/components/AssetEditorV2/effects/index.js +1 -1
- package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/components/CopyToClipboard/CopyToClipboard.d.ts +3 -3
- package/components/CopyToClipboard/CopyToClipboard.d.ts.map +1 -1
- package/components/CopyToClipboard/CopyToClipboard.js +1 -1
- package/components/DatePicker/index.js +1 -1
- package/components/DateTimePicker/index.js +1 -1
- package/components/OffsetWellButton/OffsetWellButton.d.ts +4 -1
- package/components/OffsetWellButton/OffsetWellButton.d.ts.map +1 -1
- package/components/OffsetWellButton/OffsetWellButton.js +1 -1
- package/config/theme/dateTimePickerThemeOverrides.d.ts +3 -0
- package/config/theme/dateTimePickerThemeOverrides.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/asyncToGenerator"),s=require("@babel/runtime/helpers/slicedToArray"),n=require("@babel/runtime/regenerator"),a=require("react"),u=require("lodash");require("uuid"),require("lodash/set"),require("lodash/get"),require("lodash/unset"),require("moment");var i=require("../../../clients/jsonApi/index.js");require("../../../clients/subscriptions.js"),require("../../../clients/api/apiCore.js"),require("../../../clients/constants.js");var o=require("../../../utils/jsonaDataFormatter.js");require("../../../constants/goals.js"),require("../../../constants/segment.js"),require("../../../constants/alerts.js"),require("../../../constants/apps.js"),require("../../../constants/drillstring.js"),require("../../../constants/completion.js"),require("../../../constants/appPackages.js"),require("../../../constants/notifications.js"),require("../../../constants/feed.js"),require("../../../constants/bha.js");var c=require("../../../constants/assetTypes.js");require("../../../utils/env.js"),require("../../GradientManager/configuration/constants.js");var l=require("../utils/index.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=p(e),f=p(t),y=p(r),q=p(s),j=p(n);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){f.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}exports.usePrimaryAssetSelectData=function(e){var t,r=e.appKey,s=e.assetType,n=e.company,p=e.groups,f=e.isRequiredAssetId,m=e.parentAssetId,v=e.parentAssetType,g=e.searchText,h=e.assetFields,A=e.currentValue,O=e.setCurrentOption,P=e.onActiveAssetIdChange,S=a.useState([]),I=q.default(S,2),T=I[0],x=I[1],E=a.useState(!1),_=q.default(E,2),w=_[0],D=_[1],R=a.useRef(null),k=(t=y.default(j.default.mark((function e(t){var a,p,y,q,S,I,T,E;return j.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=(null==t?void 0:t.type)||s,D(!0),p={per_page:1e4},v&&m&&(p[v]=m),n&&"all"!==n&&(p.company=n),g&&(p.search=g),r&&(p.app_key=r),R.current=n,y=a===c.ASSET_TYPES.pad.type?[].concat(d.default(h),["pad.active","pad.parent_frac_fleet_id","pad.current"]):h,q=i.mapAssetGetRequest(a)(b(b({},l.getRequestOptions(a,y)),p)),e.next=13,q;case 13:S=e.sent,I=o.jsonaDataFormatter.deserialize(S),T=I.map((function(e){return l.formatAsset({asset:e,group:null==t?void 0:t.name,isRequiredAssetId:f,isPrimaryAsset:!0})})).sort(l.sortAsset),R.current===n&&x((function(e){return[].concat(d.default(e),d.default(T))})),A&&a===s&&(E=T.find((function(e){return A===e.id||e.assetId&&A===e.assetId})),u.isEmpty(E)||O(E),a===c.ASSET_TYPES.rig.type&&P(null==E?void 0:E.activeWellId)),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),console.error(e.t0);case 23:return e.prev=23,D(!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[0,20,23,26]])}))),function(e){return t.apply(this,arguments)});return a.useEffect((function(){n&&x([])}),[n]),a.useEffect((function(){p?p.forEach((function(e){k(e)})):k()}),[s,v,m,n,r,null==p?void 0:p.length]),{assets:T,loading:w}},exports.useSecondaryAssetSelectData=function(e){var t=e.appKey,r=e.assetType,s=e.assetId,n=e.company,u=e.parentAssetType,c=e.parentAssetId,p=e.queryParams,d=e.assetFields,m=e.activeWellId,v=e.isRequiredAssetId,g=a.useState([]),h=q.default(g,2),A=h[0],O=h[1],P=a.useState(!0),S=q.default(P,2),I=S[0],T=S[1];return a.useEffect((function(){function e(){return(e=y.default(j.default.mark((function e(){var s,a;return j.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.mapAssetGetRequest(r)(b(b(b({},l.getRequestOptions(r,d)),{},f.default({per_page:1e4,company:"all"!==n?n:null},u,c),t&&{app_key:t}),p));case 2:s=e.sent,a=o.jsonaDataFormatter.deserialize(s),O(a.map((function(e){return l.formatAsset({asset:e,activeWellId:m,isRequiredAssetId:v})})).sort(l.sortAsset)),T(!1);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}T(!0),function(){e.apply(this,arguments)}()}),[r,s,u,c,t,m,n]),{assets:A,loading:I}};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/asyncToGenerator"),s=require("@babel/runtime/helpers/slicedToArray"),n=require("@babel/runtime/regenerator"),a=require("react"),u=require("lodash");require("uuid"),require("lodash/set"),require("lodash/get"),require("lodash/unset"),require("moment");var i=require("../../../clients/jsonApi/index.js");require("../../../clients/subscriptions.js"),require("../../../clients/api/apiCore.js"),require("../../../clients/constants.js");var o=require("../../../utils/jsonaDataFormatter.js");require("../../../constants/goals.js"),require("../../../constants/segment.js"),require("../../../constants/alerts.js"),require("../../../constants/apps.js"),require("../../../constants/drillstring.js"),require("../../../constants/completion.js"),require("../../../constants/appPackages.js"),require("../../../constants/notifications.js"),require("../../../constants/feed.js"),require("../../../constants/bha.js");var c=require("../../../constants/assetTypes.js");require("../../../utils/env.js"),require("../../GradientManager/configuration/constants.js");var l=require("../utils/index.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=p(e),f=p(t),y=p(r),q=p(s),j=p(n);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){f.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}exports.usePrimaryAssetSelectData=function(e){var t,r=e.appKey,s=e.assetType,n=e.company,p=e.groups,f=e.isRequiredAssetId,m=e.parentAssetId,v=e.parentAssetType,g=e.searchText,h=e.assetFields,A=e.currentValue,O=e.setCurrentOption,P=e.onActiveAssetIdChange,S=a.useState([]),I=q.default(S,2),T=I[0],x=I[1],E=a.useState(!1),_=q.default(E,2),w=_[0],D=_[1],R=a.useRef(null),k=(t=y.default(j.default.mark((function e(t){var a,p,y,q,S,I,T,E;return j.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=(null==t?void 0:t.type)||s,D(!0),p={per_page:1e4},v&&m&&(p[v]=m),n&&"all"!==n&&(p.company=n),g&&(p.search=g),r&&(p.app_key=r),R.current=n,y=a===c.ASSET_TYPES.pad.type?[].concat(d.default(h),["pad.active","pad.parent_frac_fleet_id","pad.current"]):h,q=i.mapAssetGetRequest(a)(b(b({},l.getRequestOptions(a,y)),p)),e.next=13,q;case 13:S=e.sent,I=o.jsonaDataFormatter.deserialize(S),T=I.map((function(e){return l.formatAsset({asset:e,group:null==t?void 0:t.name,isRequiredAssetId:f,isPrimaryAsset:!0})})).filter(Boolean).sort(l.sortAsset),R.current===n&&x((function(e){return[].concat(d.default(e),d.default(T))})),A&&a===s&&(E=T.find((function(e){return A===e.id||e.assetId&&A===e.assetId})),u.isEmpty(E)||O(E),a===c.ASSET_TYPES.rig.type&&P(null==E?void 0:E.activeWellId)),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),console.error(e.t0);case 23:return e.prev=23,D(!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[0,20,23,26]])}))),function(e){return t.apply(this,arguments)});return a.useEffect((function(){n&&x([])}),[n]),a.useEffect((function(){p?p.forEach((function(e){k(e)})):k()}),[s,v,m,n,r,null==p?void 0:p.length]),{assets:T,loading:w}},exports.useSecondaryAssetSelectData=function(e){var t=e.appKey,r=e.assetType,s=e.assetId,n=e.company,u=e.parentAssetType,c=e.parentAssetId,p=e.queryParams,d=e.assetFields,m=e.activeWellId,v=e.isRequiredAssetId,g=a.useState([]),h=q.default(g,2),A=h[0],O=h[1],P=a.useState(!0),S=q.default(P,2),I=S[0],T=S[1];return a.useEffect((function(){function e(){return(e=y.default(j.default.mark((function e(){var s,a;return j.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.mapAssetGetRequest(r)(b(b(b({},l.getRequestOptions(r,d)),{},f.default({per_page:1e4,company:"all"!==n?n:null},u,c),t&&{app_key:t}),p));case 2:s=e.sent,a=o.jsonaDataFormatter.deserialize(s),O(a.map((function(e){return l.formatAsset({asset:e,activeWellId:m,isRequiredAssetId:v})})).sort(l.sortAsset)),T(!1);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}T(!0),function(){e.apply(this,arguments)}()}),[r,s,u,c,t,m,n]),{assets:A,loading:I}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),r=require("classnames"),
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),r=require("classnames"),n=require("@material-ui/core"),o=require("../../../../icons/index.js"),a=require("../ChartButton.js"),i=require("../../ChartWrapperContext.js"),u=require("react/jsx-runtime");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=c(e),l=c(r),d=n.makeStyles((function(e){var t=e.palette;return{container:{display:"flex",marginRight:4,"&:hover $button":{background:"red !important"}},lineChartButton:{borderTopRightRadius:0,borderBottomRightRadius:0,marginBottom:0,"&:active":{background:t.background.b7}},barChartButton:{borderTopLeftRadius:0,borderBottomLeftRadius:0,marginBottom:0,"&:active":{background:t.background.b7}},hoveredContainer:{background:t.background.b7}}})),h="spline",b="bar",m=function(e){var r=e.className,n=e.onClick,c=t.useContext(i),m=c.chartType,p=c.handleChartTypeChange,C=t.useState(!1),f=s.default(C,2),g=f[0],v=f[1],k=d();return u.jsxs("div",{className:l.default(k.container,r),onMouseEnter:function(){v(!0)},onMouseLeave:function(){v(!1)},children:[u.jsx(a,{className:l.default(k.lineChartButton,g&&k.hoveredContainer),tooltipProps:{title:"Line Chart",placement:"bottom"},isActive:m===h,onClick:function(){p(h),n(h)},children:u.jsx(o.LineChartIcon,{})}),u.jsx(a,{className:l.default(k.barChartButton,g&&k.hoveredContainer),tooltipProps:{title:"Bar Chart",placement:"bottom"},isActive:m===b,onClick:function(){p(b),n(b)},children:u.jsx(o.HistogramIcon,{})})]})};m.defaultProps={onClick:function(){},isHidden:!1},module.exports=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),r=require("classnames"),o=require("prop-types"),a=require("@material-ui/core"),i=require("../../icons/index.js"),l=require("../../utils/main.js"),n=require("react/jsx-runtime");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=s(e),u=s(r),c=s(o),d=a.makeStyles((function(e){return{iconWrapper:{color:e.palette.primary.text6,cursor:"pointer",paddingLeft:4,display:"flex",alignItems:"center","&:hover":{color:e.palette.primary.contrastText}},tooltip:{color:e.palette.primary.text6,backgroundColor:"rgba(20, 20, 20, 0.5)"}}})),f=function(e){var r=e.children,o=e.classes,i=e.dataTestId,s=e.IconComponent,c=e.tooltipProps,f=t.useState(!1),m=p.default(f,2),y=m[0],g=m[1],x=d();return t.useEffect((function(){var e=setTimeout((function(){g(!1)}),c.delay);return function(){return clearTimeout(e)}}),[y]),n.jsx(a.Tooltip,{classes:{tooltip:u.default(x.tooltip,o.tooltip),popper:u.default(x.tooltipPopper,o.tooltipPopper)},title:c.title,open:y,disableFocusListener:!0,disableHoverListener:!0,placement:c.placement,children:n.jsx("span",{className:u.default(x.iconWrapper,o.iconWrapper),onClick:function(){g(!0),l.copyToClipboard(r)},children:n.jsx(s,{className:o.icon,"data-testid":i})})})};f.propTypes={children:c.default.string.isRequired,dataTestId:c.default.string,IconComponent:c.default.shape({}),tooltipProps:c.default.shape({title:c.default.string,placement:c.default.string,delay:c.default.number}),classes:c.default.shape({root:c.default.string,icon:c.default.string,iconWrapper:c.default.string,tooltip:c.default.string,tooltipPopper:c.default.string})},f.defaultProps={dataTestId:null,IconComponent:function(){return n.jsx(i.CopyIcon,{size:16})},tooltipProps:{title:"Copied",placement:"bottom",delay:1500},classes:{}},module.exports=f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),o=require("classnames"),a=require("prop-types"),t=require("@material-ui/pickers"),s=require("@material-ui/core"),i=require("moment"),n=require("../../constants/dateTimeFormat.js"),u=require("../../icons/index.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=l(o),c=l(a),m=l(i),d=s.makeStyles((function(e){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:e.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:e.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:
|
|
1
|
+
"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),o=require("classnames"),a=require("prop-types"),t=require("@material-ui/pickers"),s=require("@material-ui/core"),i=require("moment"),n=require("../../constants/dateTimeFormat.js"),u=require("../../icons/index.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=l(o),c=l(a),m=l(i),d=s.makeStyles((function(e){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:e.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:e.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:4},"& .MuiIconButton-root svg":{fill:"transparent !important"}},paper:{marginTop:8}}})),f=function(o){var a=o.className,s=o.PopoverProps,i=e.__rest(o,["className","PopoverProps"]),l=d();return r.jsx(t.KeyboardDatePicker,e.__assign({disableToolbar:!0,variant:"inline",keyboardIcon:r.jsx(u.CalendarIcon,{}),rightArrowIcon:r.jsx(u.RightIcon,{}),leftArrowIcon:r.jsx(u.LeftIcon,{}),format:n.DATE_FORMAT,placeholder:m.default().format(n.DATE_FORMAT),refuse:/[^(\w|\d)]+/gi},i,{PopoverProps:e.__assign({className:p.default(l.paper,s.className)},s),className:p.default(l.dateTimePickerInput,a)}))};f.propTypes={PopoverProps:c.default.shape({className:c.default.string}),className:c.default.string},f.defaultProps={PopoverProps:{},className:""},module.exports=f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),o=require("classnames"),t=require("prop-types"),a=require("moment"),s=require("@material-ui/pickers"),i=require("@material-ui/core"),n=require("../../icons/index.js"),u=require("../../constants/dateTimeFormat.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=c(o),p=c(t),l=c(a),d=i.makeStyles((function(e){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:e.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:e.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:
|
|
1
|
+
"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),o=require("classnames"),t=require("prop-types"),a=require("moment"),s=require("@material-ui/pickers"),i=require("@material-ui/core"),n=require("../../icons/index.js"),u=require("../../constants/dateTimeFormat.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=c(o),p=c(t),l=c(a),d=i.makeStyles((function(e){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:e.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:e.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:4},"& .MuiIconButton-root svg":{fill:"transparent !important"}},paper:{marginTop:8}}}));function f(o){var t=o.className,a=o.PopoverProps,i=o.format,u=e.__rest(o,["className","PopoverProps","format"]),c=d();return r.jsx(s.KeyboardDateTimePicker,e.__assign({dateRangeIcon:r.jsx(n.CalendarIcon,{size:24}),timeIcon:r.jsx(n.TimeIcon,{size:24}),rightArrowIcon:r.jsx(n.RightIcon,{}),leftArrowIcon:r.jsx(n.LeftIcon,{}),keyboardIcon:r.jsx(n.CalendarIcon,{}),format:i,refuse:/[^(\w|\d)]+/gi,placeholder:l.default().format(i)},u,{PopoverProps:e.__assign({className:c.paper},a),className:m.default(c.dateTimePickerInput,t)}))}f.propTypes={className:p.default.string,PopoverProps:p.default.shape({className:p.default.string}),format:p.default.string},f.defaultProps={className:"",PopoverProps:{},format:u.DATE_TIME_FORMAT},module.exports=f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),o=require("react"),i=require("prop-types"),a=require("classnames"),n=require("@material-ui/core"),
|
|
1
|
+
"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),o=require("react"),i=require("prop-types"),a=require("classnames"),n=require("@material-ui/core"),l=require("@material-ui/icons"),s=require("../IconButton/index.js"),r=require("../../icons/index.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=d(i),p=d(a),u=n.makeStyles((function(e){var t=e.palette;return{disabled:{opacity:.4,pointerEvents:"none"},offsetContainer:{cursor:"pointer",display:"flex",whiteSpace:"nowrap",flexWrap:"nowrap",alignItems:"center",width:"fit-content"},hoveredContainer:{backgroundColor:"rgba(3, 188, 212, 0.16)"},offsetText:{color:t.primary.text6,fontSize:12,paddingRight:4,"&:hover":{color:t.primary.contrastText}},buttons:{display:"flex",alignItems:"center"},isActive:{color:t.primary.contrastText},primaryIcon:{"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.16)"}},infoIcon:{marginRight:"8px",fontSize:"20px",color:t.info.light},infoTooltip:{maxWidth:"264px"}}})),f=function(i){var a=i.onClick,d=i.wells,c=i.label,f=i.disabled,x=i.expanded,m=i.onExpand,b=i.offsetWellsLimited,g=i.isTooltipDisabled,h=o.useState(!1),y=h[0],j=h[1],v=u(),_=d.length,I=!(!_||!m),T=t.jsxs("div",e.__assign({className:p.default(v.offsetContainer,f&&v.disabled),onClick:a,onMouseMove:function(e){var t=e.target,o=t.parentNode;t.getAttribute("data-icon")||o.getAttribute("data-icon")?j(!1):j(!0)},onMouseLeave:function(){j(!1)}},{children:[t.jsxs(n.Typography,e.__assign({className:p.default(v.offsetText,y&&v.isActive)},{children:[c," (",_,")"]})),t.jsx(s,e.__assign({className:p.default(v.primaryIcon,y&&v.hoveredContainer),color:"primary",size:"medium"},{children:t.jsx(r.WriteIcon,{size:24})}))]}));return t.jsxs("div",e.__assign({className:v.buttons},{children:[b&&t.jsx(n.Tooltip,e.__assign({title:"".concat(c," list wasn't populated completely due to technical limitations of the app."),classes:{tooltip:v.infoTooltip}},{children:t.jsx(l.Info,{className:v.infoIcon})})),t.jsx(n.Tooltip,e.__assign({title:"Edit ".concat(c),placement:"bottom"},{children:T})),I&&t.jsx(s,e.__assign({tooltipProps:!g&&{title:x?"Collapse ".concat(c):"Expand ".concat(c)},onClick:function(e){e.stopPropagation(),m()},color:"default",size:"medium","data-icon":"expandIcon"},{children:x?t.jsx(r.UpIcon,{"data-icon":"expandIcon"}):t.jsx(r.DownIcon,{"data-icon":"expandIcon"})}))]}))},x={onClick:c.default.func.isRequired,wells:c.default.arrayOf(c.default.shape({id:c.default.number,title:c.default.string})),label:c.default.string,disabled:c.default.bool,onExpand:c.default.func,expanded:c.default.bool,offsetWellsLimited:c.default.bool,isTooltipDisabled:c.default.bool};f.propTypes=x,f.defaultProps={onExpand:null,expanded:!1,wells:[],disabled:!1,offsetWellsLimited:!1,isTooltipDisabled:!1,label:"Offset Wells"},module.exports=f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("./palette.mjs.js"),r=i.primary,t=i.background,o={MuiPickerDTToolbar:{toolbar:{backgroundColor:t.b7,marginBottom:"-10px","& .MuiGrid-justify-xs-center .MuiGrid-grid-xs-6":{marginLeft:"12px"},"& .MuiButton-root":{height:"unset",color:r.text6},"& .MuiPickersToolbarText-toolbarTxt":{color:r.text6},"& .MuiPickersToolbarText-toolbarBtnSelected":{color:r.contrastText},"& h3.MuiPickersToolbarText-toolbarTxt":{fontSize:"44px",marginBottom:"-12px"},"& h4.MuiPickersToolbarText-toolbarTxt":{marginBottom:"-6px",minWidth:"120px",textAlign:"left"},"& h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:"-8px",fontSize:"18px"},"& .MuiGrid-grid-xs-5 h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:"2px"},"& .MuiGrid-grid-xs-1:last-child":{marginBottom:"-16px"},"& .MuiGrid-grid-xs-1:last-child h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:0},"& .MuiGrid-grid-xs-6":{marginLeft:"24px"}}},MuiPickersCalendarHeader:{switchHeader:{"& .MuiPickersCalendarHeader-transitionContainer p":{marginLeft:"-12px"},"& .MuiPickersCalendarHeader-iconButton:first-child":{marginLeft:"12px"},"& .MuiPickersCalendarHeader-iconButton:last-child":{marginRight:"12px"}}},MuiPickersBasePicker:{container:{"& .MuiPaper-elevation1":{boxShadow:"none"},"& .MuiTabs-indicator":{width:"160px !important",height:3}},pickerView:{"& .MuiPickersCalendar-transitionContainer":{marginLeft:"-6px",minHeight:"212px"},"& .MuiPickersClock-clock":{backgroundColor:t.b7},"& .MuiPickersClockPointer-pointer":{width:"1px"},"& .MuiPickersClockNumber-clockNumber":{color:r.contrastText,fontSize:"18px"}}},MuiPickerDTTabs:{tabs:{backgroundColor:t.b7,"& .MuiTab-textColorInherit.Mui-selected":{color:r.main},"& .MuiTab-textColorInherit":{color:r.text6},"& .MuiTabs-flexContainer":{"& .MuiTabs-indicator":{width:"160px !important"}}}},MuiPickersDay:{day:{color:r.contrastText,"&:hover":{backgroundColor:r.text9},fontSize:14},daySelected:{backgroundColor:r.main}}};exports.dateTimePickerThemeOverrides=o;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("./palette.mjs.js"),r=i.primary,t=i.background,o={MuiPickerDTToolbar:{toolbar:{backgroundColor:t.b7,marginBottom:"-10px","& .MuiGrid-justify-xs-center .MuiGrid-grid-xs-6":{marginLeft:"12px"},"& .MuiButton-root":{height:"unset",color:r.text6},"& .MuiPickersToolbarText-toolbarTxt":{color:r.text6},"& .MuiPickersToolbarText-toolbarBtnSelected":{color:r.contrastText},"& h3.MuiPickersToolbarText-toolbarTxt":{fontSize:"44px",marginBottom:"-12px"},"& h4.MuiPickersToolbarText-toolbarTxt":{marginBottom:"-6px",minWidth:"120px",textAlign:"left"},"& h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:"-8px",fontSize:"18px"},"& .MuiGrid-grid-xs-5 h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:"2px"},"& .MuiGrid-grid-xs-1:last-child":{marginBottom:"-16px"},"& .MuiGrid-grid-xs-1:last-child h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:0},"& .MuiGrid-grid-xs-6":{marginLeft:"24px"}}},MuiPickersCalendarHeader:{switchHeader:{"& .MuiPickersCalendarHeader-iconButton":{padding:8},"& .MuiPickersCalendarHeader-transitionContainer p":{marginLeft:"-12px"},"& .MuiPickersCalendarHeader-iconButton:first-child":{marginLeft:"12px"},"& .MuiPickersCalendarHeader-iconButton:last-child":{marginRight:"12px"}}},MuiPickersBasePicker:{container:{"& .MuiPaper-elevation1":{boxShadow:"none"},"& .MuiTabs-indicator":{width:"160px !important",height:3}},pickerView:{"& .MuiPickersCalendar-transitionContainer":{marginLeft:"-6px",minHeight:"212px"},"& .MuiPickersClock-clock":{backgroundColor:t.b7},"& .MuiPickersClockPointer-pointer":{width:"1px"},"& .MuiPickersClockNumber-clockNumber":{color:r.contrastText,fontSize:"18px"}}},MuiPickerDTTabs:{tabs:{backgroundColor:t.b7,"& .MuiTab-textColorInherit.Mui-selected":{color:r.main},"& .MuiTab-textColorInherit":{color:r.text6},"& .MuiTabs-flexContainer":{"& .MuiTabs-indicator":{width:"160px !important"}}}},MuiPickersDay:{day:{color:r.contrastText,"&:hover":{backgroundColor:r.text9},fontSize:14},daySelected:{backgroundColor:r.main}}};exports.dateTimePickerThemeOverrides=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/effects/index.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;EAuCC;AAED;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/effects/index.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;EAuCC;AAED;;;;;;;;;;;;;;;;EAwFC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/toConsumableArray";import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/regenerator";import{useState as o,useEffect as a,useRef as i}from"react";import{isEmpty as p}from"lodash";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import{mapAssetGetRequest as c}from"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import{jsonaDataFormatter as u}from"../../../utils/jsonaDataFormatter.js";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/appPackages.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import{ASSET_TYPES as l}from"../../../constants/assetTypes.js";import"../../../utils/env.js";import"../../GradientManager/configuration/constants.js";import{formatAsset as m,sortAsset as f,getRequestOptions as d}from"../utils/index.js";function y(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 j(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?y(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t){var i=t.appKey,p=t.assetType,l=t.assetId,y=t.company,b=t.parentAssetType,h=t.parentAssetId,g=t.queryParams,v=t.assetFields,O=t.activeWellId,A=t.isRequiredAssetId,I=o([]),P=n(I,2),w=P[0],x=P[1],T=o(!0),k=n(T,2),_=k[0],q=k[1];return a((function(){function t(){return(t=r(s.mark((function t(){var r,n;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c(p)(j(j(j({},d(p,v)),{},e({per_page:1e4,company:"all"!==y?y:null},b,h),i&&{app_key:i}),g));case 2:r=t.sent,n=u.deserialize(r),x(n.map((function(t){return m({asset:t,activeWellId:O,isRequiredAssetId:A})})).sort(f)),q(!1);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}q(!0),function(){t.apply(this,arguments)}()}),[p,l,b,h,i,O,y]),{assets:w,loading:_}}function h(e){var y,b=e.appKey,h=e.assetType,g=e.company,v=e.groups,O=e.isRequiredAssetId,A=e.parentAssetId,I=e.parentAssetType,P=e.searchText,w=e.assetFields,x=e.currentValue,T=e.setCurrentOption,k=e.onActiveAssetIdChange,_=o([]),q=n(_,2),D=q[0],C=q[1],R=o(!1),E=n(R,2),F=E[0],W=E[1],z=i(null),G=(y=r(s.mark((function e(r){var n,o,a,i,y,v,_,q;return s.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=(null==r?void 0:r.type)||h,W(!0),o={per_page:1e4},I&&A&&(o[I]=A),g&&"all"!==g&&(o.company=g),P&&(o.search=P),b&&(o.app_key=b),z.current=g,a=n===l.pad.type?[].concat(t(w),["pad.active","pad.parent_frac_fleet_id","pad.current"]):w,i=c(n)(j(j({},d(n,a)),o)),e.next=13,i;case 13:y=e.sent,v=u.deserialize(y),_=v.map((function(t){return m({asset:t,group:null==r?void 0:r.name,isRequiredAssetId:O,isPrimaryAsset:!0})})).sort(f),z.current===g&&C((function(e){return[].concat(t(e),t(_))})),x&&n===h&&(q=_.find((function(t){return x===t.id||t.assetId&&x===t.assetId})),p(q)||T(q),n===l.rig.type&&k(null==q?void 0:q.activeWellId)),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),console.error(e.t0);case 23:return e.prev=23,W(!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[0,20,23,26]])}))),function(t){return y.apply(this,arguments)});return a((function(){g&&C([])}),[g]),a((function(){v?v.forEach((function(t){G(t)})):G()}),[h,I,A,g,b,null==v?void 0:v.length]),{assets:D,loading:F}}export{h as usePrimaryAssetSelectData,b as useSecondaryAssetSelectData};
|
|
1
|
+
import t from"@babel/runtime/helpers/toConsumableArray";import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/regenerator";import{useState as o,useEffect as a,useRef as i}from"react";import{isEmpty as p}from"lodash";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import{mapAssetGetRequest as c}from"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import{jsonaDataFormatter as u}from"../../../utils/jsonaDataFormatter.js";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/appPackages.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import{ASSET_TYPES as l}from"../../../constants/assetTypes.js";import"../../../utils/env.js";import"../../GradientManager/configuration/constants.js";import{formatAsset as m,sortAsset as f,getRequestOptions as d}from"../utils/index.js";function y(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 j(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?y(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t){var i=t.appKey,p=t.assetType,l=t.assetId,y=t.company,b=t.parentAssetType,h=t.parentAssetId,g=t.queryParams,v=t.assetFields,O=t.activeWellId,A=t.isRequiredAssetId,I=o([]),P=n(I,2),w=P[0],x=P[1],T=o(!0),k=n(T,2),_=k[0],q=k[1];return a((function(){function t(){return(t=r(s.mark((function t(){var r,n;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c(p)(j(j(j({},d(p,v)),{},e({per_page:1e4,company:"all"!==y?y:null},b,h),i&&{app_key:i}),g));case 2:r=t.sent,n=u.deserialize(r),x(n.map((function(t){return m({asset:t,activeWellId:O,isRequiredAssetId:A})})).sort(f)),q(!1);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}q(!0),function(){t.apply(this,arguments)}()}),[p,l,b,h,i,O,y]),{assets:w,loading:_}}function h(e){var y,b=e.appKey,h=e.assetType,g=e.company,v=e.groups,O=e.isRequiredAssetId,A=e.parentAssetId,I=e.parentAssetType,P=e.searchText,w=e.assetFields,x=e.currentValue,T=e.setCurrentOption,k=e.onActiveAssetIdChange,_=o([]),q=n(_,2),D=q[0],C=q[1],R=o(!1),E=n(R,2),F=E[0],W=E[1],z=i(null),G=(y=r(s.mark((function e(r){var n,o,a,i,y,v,_,q;return s.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=(null==r?void 0:r.type)||h,W(!0),o={per_page:1e4},I&&A&&(o[I]=A),g&&"all"!==g&&(o.company=g),P&&(o.search=P),b&&(o.app_key=b),z.current=g,a=n===l.pad.type?[].concat(t(w),["pad.active","pad.parent_frac_fleet_id","pad.current"]):w,i=c(n)(j(j({},d(n,a)),o)),e.next=13,i;case 13:y=e.sent,v=u.deserialize(y),_=v.map((function(t){return m({asset:t,group:null==r?void 0:r.name,isRequiredAssetId:O,isPrimaryAsset:!0})})).filter(Boolean).sort(f),z.current===g&&C((function(e){return[].concat(t(e),t(_))})),x&&n===h&&(q=_.find((function(t){return x===t.id||t.assetId&&x===t.assetId})),p(q)||T(q),n===l.rig.type&&k(null==q?void 0:q.activeWellId)),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),console.error(e.t0);case 23:return e.prev=23,W(!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[0,20,23,26]])}))),function(t){return y.apply(this,arguments)});return a((function(){g&&C([])}),[g]),a((function(){v?v.forEach((function(t){G(t)})):G()}),[h,I,A,g,b,null==v?void 0:v.length]),{assets:D,loading:F}}export{h as usePrimaryAssetSelectData,b as useSecondaryAssetSelectData};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/slicedToArray";import{useContext as r,useState as o}from"react";import e from"classnames";import{makeStyles as n}from"@material-ui/core";import{LineChartIcon as a,
|
|
1
|
+
import t from"@babel/runtime/helpers/slicedToArray";import{useContext as r,useState as o}from"react";import e from"classnames";import{makeStyles as n}from"@material-ui/core";import{LineChartIcon as a,HistogramIcon as i}from"../../../../icons/index.js";import c from"../ChartButton.js";import m from"../../ChartWrapperContext.js";import{jsxs as s,jsx as u}from"react/jsx-runtime";var d=n((function(t){var r=t.palette;return{container:{display:"flex",marginRight:4,"&:hover $button":{background:"red !important"}},lineChartButton:{borderTopRightRadius:0,borderBottomRightRadius:0,marginBottom:0,"&:active":{background:r.background.b7}},barChartButton:{borderTopLeftRadius:0,borderBottomLeftRadius:0,marginBottom:0,"&:active":{background:r.background.b7}},hoveredContainer:{background:r.background.b7}}})),l="spline",p="bar",h=function(n){var h=n.className,b=n.onClick,f=r(m),C=f.chartType,g=f.handleChartTypeChange,v=o(!1),k=t(v,2),B=k[0],R=k[1],x=d();return s("div",{className:e(x.container,h),onMouseEnter:function(){R(!0)},onMouseLeave:function(){R(!1)},children:[u(c,{className:e(x.lineChartButton,B&&x.hoveredContainer),tooltipProps:{title:"Line Chart",placement:"bottom"},isActive:C===l,onClick:function(){g(l),b(l)},children:u(a,{})}),u(c,{className:e(x.barChartButton,B&&x.hoveredContainer),tooltipProps:{title:"Bar Chart",placement:"bottom"},isActive:C===p,onClick:function(){g(p),b(p)},children:u(i,{})})]})};h.defaultProps={onClick:function(){},isHidden:!1};export{h as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default CopyToClipboard;
|
|
2
|
-
declare function CopyToClipboard({
|
|
3
|
-
|
|
2
|
+
declare function CopyToClipboard({ children, classes, dataTestId, IconComponent, tooltipProps }: {
|
|
3
|
+
children: any;
|
|
4
4
|
classes: any;
|
|
5
5
|
dataTestId: any;
|
|
6
6
|
IconComponent: any;
|
|
@@ -8,7 +8,7 @@ declare function CopyToClipboard({ label, classes, dataTestId, IconComponent, to
|
|
|
8
8
|
}): JSX.Element;
|
|
9
9
|
declare namespace CopyToClipboard {
|
|
10
10
|
namespace propTypes {
|
|
11
|
-
const
|
|
11
|
+
const children: PropTypes.Validator<string>;
|
|
12
12
|
const dataTestId: PropTypes.Requireable<string>;
|
|
13
13
|
const IconComponent: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
14
14
|
const tooltipProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopyToClipboard.d.ts","sourceRoot":"","sources":["../../../src/components/CopyToClipboard/CopyToClipboard.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CopyToClipboard.d.ts","sourceRoot":"","sources":["../../../src/components/CopyToClipboard/CopyToClipboard.js"],"names":[],"mappings":";AAwBA;;;;;;gBAqCC;;;;;;;;;;;;;;;;;;;;;;QAsBgB,+CAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/slicedToArray";import{useState as o,useEffect as e}from"react";import r from"classnames";import i from"prop-types";import{makeStyles as
|
|
1
|
+
import t from"@babel/runtime/helpers/slicedToArray";import{useState as o,useEffect as e}from"react";import r from"classnames";import i from"prop-types";import{makeStyles as p,Tooltip as n}from"@material-ui/core";import{CopyIcon as a}from"../../icons/index.js";import s from"../../utils/main.js";import{jsx as l}from"react/jsx-runtime";var c=p((function(t){return{iconWrapper:{color:t.palette.primary.text6,cursor:"pointer",paddingLeft:4,display:"flex",alignItems:"center","&:hover":{color:t.palette.primary.contrastText}},tooltip:{color:t.palette.primary.text6,backgroundColor:"rgba(20, 20, 20, 0.5)"}}})),m=function(i){var p=i.children,a=i.classes,m=i.dataTestId,d=i.IconComponent,u=i.tooltipProps,f=o(!1),g=t(f,2),y=g[0],b=g[1],h=c();return e((function(){var t=setTimeout((function(){b(!1)}),u.delay);return function(){return clearTimeout(t)}}),[y]),l(n,{classes:{tooltip:r(h.tooltip,a.tooltip),popper:r(h.tooltipPopper,a.tooltipPopper)},title:u.title,open:y,disableFocusListener:!0,disableHoverListener:!0,placement:u.placement,children:l("span",{className:r(h.iconWrapper,a.iconWrapper),onClick:function(){b(!0),s.copyToClipboard(p)},children:l(d,{className:a.icon,"data-testid":m})})})};m.propTypes={children:i.string.isRequired,dataTestId:i.string,IconComponent:i.shape({}),tooltipProps:i.shape({title:i.string,placement:i.string,delay:i.number}),classes:i.shape({root:i.string,icon:i.string,iconWrapper:i.string,tooltip:i.string,tooltipPopper:i.string})},m.defaultProps={dataTestId:null,IconComponent:function(){return l(a,{size:16})},tooltipProps:{title:"Copied",placement:"bottom",delay:1500},classes:{}};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t}from"react/jsx-runtime";import e from"classnames";import a from"prop-types";import{KeyboardDatePicker as i}from"@material-ui/pickers";import{makeStyles as s}from"@material-ui/core";import m from"moment";import{DATE_FORMAT as p}from"../../constants/dateTimeFormat.js";import{CalendarIcon as n,RightIcon as c,LeftIcon as l}from"../../icons/index.js";var u=s((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:
|
|
1
|
+
import{__rest as o,__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t}from"react/jsx-runtime";import e from"classnames";import a from"prop-types";import{KeyboardDatePicker as i}from"@material-ui/pickers";import{makeStyles as s}from"@material-ui/core";import m from"moment";import{DATE_FORMAT as p}from"../../constants/dateTimeFormat.js";import{CalendarIcon as n,RightIcon as c,LeftIcon as l}from"../../icons/index.js";var u=s((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:4},"& .MuiIconButton-root svg":{fill:"transparent !important"}},paper:{marginTop:8}}})),f=function(a){var s=a.className,f=a.PopoverProps,d=o(a,["className","PopoverProps"]),P=u();return t(i,r({disableToolbar:!0,variant:"inline",keyboardIcon:t(n,{}),rightArrowIcon:t(c,{}),leftArrowIcon:t(l,{}),format:p,placeholder:m().format(p),refuse:/[^(\w|\d)]+/gi},d,{PopoverProps:r({className:e(P.paper,f.className)},f),className:e(P.dateTimePickerInput,s)}))};f.propTypes={PopoverProps:a.shape({className:a.string}),className:a.string},f.defaultProps={PopoverProps:{},className:""};export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t}from"react/jsx-runtime";import e from"classnames";import a from"prop-types";import i from"moment";import{KeyboardDateTimePicker as m}from"@material-ui/pickers";import{makeStyles as s}from"@material-ui/core";import{CalendarIcon as p,TimeIcon as n,RightIcon as c,LeftIcon as u}from"../../icons/index.js";import{DATE_TIME_FORMAT as l}from"../../constants/dateTimeFormat.js";var f=s((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:
|
|
1
|
+
import{__rest as o,__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t}from"react/jsx-runtime";import e from"classnames";import a from"prop-types";import i from"moment";import{KeyboardDateTimePicker as m}from"@material-ui/pickers";import{makeStyles as s}from"@material-ui/core";import{CalendarIcon as p,TimeIcon as n,RightIcon as c,LeftIcon as u}from"../../icons/index.js";import{DATE_TIME_FORMAT as l}from"../../constants/dateTimeFormat.js";var f=s((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:4},"& .MuiIconButton-root svg":{fill:"transparent !important"}},paper:{marginTop:8}}}));function d(a){var s=a.className,l=a.PopoverProps,d=a.format,P=o(a,["className","PopoverProps","format"]),g=f();return t(m,r({dateRangeIcon:t(p,{size:24}),timeIcon:t(n,{size:24}),rightArrowIcon:t(c,{}),leftArrowIcon:t(u,{}),keyboardIcon:t(p,{}),format:d,refuse:/[^(\w|\d)]+/gi,placeholder:i().format(d)},P,{PopoverProps:r({className:g.paper},l),className:e(g.dateTimePickerInput,s)}))}d.propTypes={className:a.string,PopoverProps:a.shape({className:a.string}),format:a.string},d.defaultProps={className:"",PopoverProps:{},format:l};export{d as default};
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
declare type OffsetWellButtonProps = PropTypes.InferProps<typeof offsetWellButtonPropTypes>;
|
|
4
4
|
declare const OffsetWellButton: {
|
|
5
|
-
({ onClick, wells, disabled, expanded, onExpand, offsetWellsLimited, isTooltipDisabled, }: OffsetWellButtonProps): JSX.Element;
|
|
5
|
+
({ onClick, wells, label, disabled, expanded, onExpand, offsetWellsLimited, isTooltipDisabled, }: OffsetWellButtonProps): JSX.Element;
|
|
6
6
|
propTypes: {
|
|
7
7
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
8
8
|
wells: PropTypes.Requireable<PropTypes.InferProps<{
|
|
9
9
|
id: PropTypes.Requireable<number>;
|
|
10
10
|
title: PropTypes.Requireable<string>;
|
|
11
11
|
}>[]>;
|
|
12
|
+
label: PropTypes.Requireable<string>;
|
|
12
13
|
disabled: PropTypes.Requireable<boolean>;
|
|
13
14
|
onExpand: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
15
|
expanded: PropTypes.Requireable<boolean>;
|
|
@@ -22,6 +23,7 @@ declare const OffsetWellButton: {
|
|
|
22
23
|
disabled: boolean;
|
|
23
24
|
offsetWellsLimited: boolean;
|
|
24
25
|
isTooltipDisabled: boolean;
|
|
26
|
+
label: string;
|
|
25
27
|
};
|
|
26
28
|
};
|
|
27
29
|
declare const offsetWellButtonPropTypes: {
|
|
@@ -30,6 +32,7 @@ declare const offsetWellButtonPropTypes: {
|
|
|
30
32
|
id: PropTypes.Requireable<number>;
|
|
31
33
|
title: PropTypes.Requireable<string>;
|
|
32
34
|
}>[]>;
|
|
35
|
+
label: PropTypes.Requireable<string>;
|
|
33
36
|
disabled: PropTypes.Requireable<boolean>;
|
|
34
37
|
onExpand: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
38
|
expanded: PropTypes.Requireable<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OffsetWellButton.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellButton/OffsetWellButton.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAqDnC,aAAK,qBAAqB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEpF,QAAA,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"OffsetWellButton.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellButton/OffsetWellButton.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAqDnC,aAAK,qBAAqB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEpF,QAAA,MAAM,gBAAgB;sGASnB,qBAAqB,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;CA4ErC,CAAC;AAEF,QAAA,MAAM,yBAAyB;;;;;;;;;;;;CAc9B,CAAC;AAcF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as i}from"react";import n from"prop-types";import a from"classnames";import{makeStyles as r,Typography as l,Tooltip as s}from"@material-ui/core";import{Info as c}from"@material-ui/icons";import d from"../IconButton/index.js";import{WriteIcon as p,UpIcon as m,DownIcon as f}from"../../icons/index.js";var u=r((function(o){var e=o.palette;return{disabled:{opacity:.4,pointerEvents:"none"},offsetContainer:{cursor:"pointer",display:"flex",whiteSpace:"nowrap",flexWrap:"nowrap",alignItems:"center",width:"fit-content"},hoveredContainer:{backgroundColor:"rgba(3, 188, 212, 0.16)"},offsetText:{color:e.primary.text6,fontSize:12,paddingRight:4,"&:hover":{color:e.primary.contrastText}},buttons:{display:"flex",alignItems:"center"},isActive:{color:e.primary.contrastText},primaryIcon:{"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.16)"}},infoIcon:{marginRight:"8px",fontSize:"20px",color:e.info.light},infoTooltip:{maxWidth:"264px"}}})),b=function(n){var r=n.onClick,b=n.wells,x=n.label,h=n.disabled,g=n.expanded,v=n.onExpand,y=n.offsetWellsLimited,C=n.isTooltipDisabled,T=i(!1),I=T[0],w=T[1],k=u(),E=b.length,N=!(!E||!v),W=e("div",o({className:a(k.offsetContainer,h&&k.disabled),onClick:r,onMouseMove:function(o){var e=o.target,t=e.parentNode;e.getAttribute("data-icon")||t.getAttribute("data-icon")?w(!1):w(!0)},onMouseLeave:function(){w(!1)}},{children:[e(l,o({className:a(k.offsetText,I&&k.isActive)},{children:[x," (",E,")"]})),t(d,o({className:a(k.primaryIcon,I&&k.hoveredContainer),color:"primary",size:"medium"},{children:t(p,{size:24})}))]}));return e("div",o({className:k.buttons},{children:[y&&t(s,o({title:"".concat(x," list wasn't populated completely due to technical limitations of the app."),classes:{tooltip:k.infoTooltip}},{children:t(c,{className:k.infoIcon})})),t(s,o({title:"Edit ".concat(x),placement:"bottom"},{children:W})),N&&t(d,o({tooltipProps:!C&&{title:g?"Collapse ".concat(x):"Expand ".concat(x)},onClick:function(o){o.stopPropagation(),v()},color:"default",size:"medium","data-icon":"expandIcon"},{children:t(g?m:f,{"data-icon":"expandIcon"})}))]}))},x={onClick:n.func.isRequired,wells:n.arrayOf(n.shape({id:n.number,title:n.string})),label:n.string,disabled:n.bool,onExpand:n.func,expanded:n.bool,offsetWellsLimited:n.bool,isTooltipDisabled:n.bool};b.propTypes=x,b.defaultProps={onExpand:null,expanded:!1,wells:[],disabled:!1,offsetWellsLimited:!1,isTooltipDisabled:!1,label:"Offset Wells"};export{b as default};
|
|
@@ -45,6 +45,9 @@ export namespace dateTimePickerThemeOverrides {
|
|
|
45
45
|
}
|
|
46
46
|
namespace MuiPickersCalendarHeader {
|
|
47
47
|
const switchHeader: {
|
|
48
|
+
'& .MuiPickersCalendarHeader-iconButton': {
|
|
49
|
+
padding: number;
|
|
50
|
+
};
|
|
48
51
|
'& .MuiPickersCalendarHeader-transitionContainer p': {
|
|
49
52
|
marginLeft: string;
|
|
50
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import i from"./palette.mjs.js";var r=i.primary,o=i.background,t={MuiPickerDTToolbar:{toolbar:{backgroundColor:o.b7,marginBottom:"-10px","& .MuiGrid-justify-xs-center .MuiGrid-grid-xs-6":{marginLeft:"12px"},"& .MuiButton-root":{height:"unset",color:r.text6},"& .MuiPickersToolbarText-toolbarTxt":{color:r.text6},"& .MuiPickersToolbarText-toolbarBtnSelected":{color:r.contrastText},"& h3.MuiPickersToolbarText-toolbarTxt":{fontSize:"44px",marginBottom:"-12px"},"& h4.MuiPickersToolbarText-toolbarTxt":{marginBottom:"-6px",minWidth:"120px",textAlign:"left"},"& h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:"-8px",fontSize:"18px"},"& .MuiGrid-grid-xs-5 h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:"2px"},"& .MuiGrid-grid-xs-1:last-child":{marginBottom:"-16px"},"& .MuiGrid-grid-xs-1:last-child h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:0},"& .MuiGrid-grid-xs-6":{marginLeft:"24px"}}},MuiPickersCalendarHeader:{switchHeader:{"& .MuiPickersCalendarHeader-transitionContainer p":{marginLeft:"-12px"},"& .MuiPickersCalendarHeader-iconButton:first-child":{marginLeft:"12px"},"& .MuiPickersCalendarHeader-iconButton:last-child":{marginRight:"12px"}}},MuiPickersBasePicker:{container:{"& .MuiPaper-elevation1":{boxShadow:"none"},"& .MuiTabs-indicator":{width:"160px !important",height:3}},pickerView:{"& .MuiPickersCalendar-transitionContainer":{marginLeft:"-6px",minHeight:"212px"},"& .MuiPickersClock-clock":{backgroundColor:o.b7},"& .MuiPickersClockPointer-pointer":{width:"1px"},"& .MuiPickersClockNumber-clockNumber":{color:r.contrastText,fontSize:"18px"}}},MuiPickerDTTabs:{tabs:{backgroundColor:o.b7,"& .MuiTab-textColorInherit.Mui-selected":{color:r.main},"& .MuiTab-textColorInherit":{color:r.text6},"& .MuiTabs-flexContainer":{"& .MuiTabs-indicator":{width:"160px !important"}}}},MuiPickersDay:{day:{color:r.contrastText,"&:hover":{backgroundColor:r.text9},fontSize:14},daySelected:{backgroundColor:r.main}}};export{t as dateTimePickerThemeOverrides};
|
|
1
|
+
import i from"./palette.mjs.js";var r=i.primary,o=i.background,t={MuiPickerDTToolbar:{toolbar:{backgroundColor:o.b7,marginBottom:"-10px","& .MuiGrid-justify-xs-center .MuiGrid-grid-xs-6":{marginLeft:"12px"},"& .MuiButton-root":{height:"unset",color:r.text6},"& .MuiPickersToolbarText-toolbarTxt":{color:r.text6},"& .MuiPickersToolbarText-toolbarBtnSelected":{color:r.contrastText},"& h3.MuiPickersToolbarText-toolbarTxt":{fontSize:"44px",marginBottom:"-12px"},"& h4.MuiPickersToolbarText-toolbarTxt":{marginBottom:"-6px",minWidth:"120px",textAlign:"left"},"& h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:"-8px",fontSize:"18px"},"& .MuiGrid-grid-xs-5 h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:"2px"},"& .MuiGrid-grid-xs-1:last-child":{marginBottom:"-16px"},"& .MuiGrid-grid-xs-1:last-child h6.MuiPickersToolbarText-toolbarTxt":{marginBottom:0},"& .MuiGrid-grid-xs-6":{marginLeft:"24px"}}},MuiPickersCalendarHeader:{switchHeader:{"& .MuiPickersCalendarHeader-iconButton":{padding:8},"& .MuiPickersCalendarHeader-transitionContainer p":{marginLeft:"-12px"},"& .MuiPickersCalendarHeader-iconButton:first-child":{marginLeft:"12px"},"& .MuiPickersCalendarHeader-iconButton:last-child":{marginRight:"12px"}}},MuiPickersBasePicker:{container:{"& .MuiPaper-elevation1":{boxShadow:"none"},"& .MuiTabs-indicator":{width:"160px !important",height:3}},pickerView:{"& .MuiPickersCalendar-transitionContainer":{marginLeft:"-6px",minHeight:"212px"},"& .MuiPickersClock-clock":{backgroundColor:o.b7},"& .MuiPickersClockPointer-pointer":{width:"1px"},"& .MuiPickersClockNumber-clockNumber":{color:r.contrastText,fontSize:"18px"}}},MuiPickerDTTabs:{tabs:{backgroundColor:o.b7,"& .MuiTab-textColorInherit.Mui-selected":{color:r.main},"& .MuiTab-textColorInherit":{color:r.text6},"& .MuiTabs-flexContainer":{"& .MuiTabs-indicator":{width:"160px !important"}}}},MuiPickersDay:{day:{color:r.contrastText,"&:hover":{backgroundColor:r.text9},fontSize:14},daySelected:{backgroundColor:r.main}}};export{t as dateTimePickerThemeOverrides};
|