@corva/ui 0.99.0-10 → 0.99.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/Drillstring/BHATileIcon.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaSchematic.js +1 -1
- package/components/Drillstring/BHATileIcon.d.ts.map +1 -1
- package/components/Drillstring/BHATileIcon.js +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaSchematic.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaSchematic.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("prop-types"),t=require("@material-ui/core"),i=require("react/jsx-runtime");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=a(e),s="/static/media/7dcfb5193fd2f60e28374f31ee0a26bf.svg",d={bit:"Bit",other:"Non Magnetic",pdm:"PDM",rss:"Rotary Steerables",stabilizer:"Stabilizer"};function
|
|
1
|
+
"use strict";var e=require("prop-types"),t=require("@material-ui/core"),i=require("react/jsx-runtime");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=a(e),s="/static/media/7dcfb5193fd2f60e28374f31ee0a26bf.svg",d={bit:"Bit",other:"Non Magnetic",pdm:"PDM",rss:"Rotary Steerables",stabilizer:"Stabilizer"},c=t.makeStyles({iconWrapper:{width:function(e){return e.width},height:function(e){return e.height}},tileIcon:{width:"100%",height:"100%"}});function n(e){var a,r=e.component,n=e.width,f=e.height,l=r.family,o=(r.material,c({width:n,height:f}));return a="bit"===l?"/static/media/50e73f59728296f6d5a248384d53193a.svg":"pdm"===l?"/static/media/d8f7c4b371a4666ca44cae9ec3058c26.svg":"rss"===l?"/static/media/bf34c472868f0f04afd2523062f9f363.svg":"stabilizer"===l?"/static/media/3f3100ae49e552599e0bbd9b60eb783d.svg":s,i.jsx(t.Tooltip,{title:d[l]||d.other,placement:"bottom",children:i.jsx("div",{className:o.iconWrapper,children:i.jsx("img",{src:a,className:o.tileIcon,alt:l})})})}n.propTypes={width:r.default.string.isRequired,height:r.default.number.isRequired,component:r.default.shape({family:r.default.string,material:r.default.string,bit_type:r.default.string}).isRequired},module.exports=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var i=require("prop-types"),e=require("@material-ui/core"),l=require("../../../../Drillstring/BhaIndicator/BhaIndicator.js"),r=require("../../../../Drillstring/BHASchematic.js"),t=require("../../../../Drillstring/DrillstringDetail/DrillstringDetail.js"),a=require("../../../../../utils/convert.js"),n=require("../../../../../utils/bha.js"),s=require("react/jsx-runtime"),o=e.makeStyles({wrapper:{width:200,cursor:"pointer",marginTop:-52,marginBottom:-52},bhaDetail:{maxWidth:1500,maxHeight:"80%"}}),d=function(i){var d,g,D,u,
|
|
1
|
+
"use strict";var i=require("prop-types"),e=require("@material-ui/core"),l=require("../../../../Drillstring/BhaIndicator/BhaIndicator.js"),r=require("../../../../Drillstring/BHASchematic.js"),t=require("../../../../Drillstring/DrillstringDetail/DrillstringDetail.js"),a=require("../../../../../utils/convert.js"),n=require("../../../../../utils/bha.js"),s=require("react/jsx-runtime"),o=e.makeStyles({wrapper:{width:200,cursor:"pointer",marginTop:-52,marginBottom:-52},bhaDetail:{maxWidth:1500,maxHeight:"80%"}}),d=function(i){var d,g,D,h,u,c=i.feedItem,p=i.drillStringData,m=i.handleShowDrillstringDetailDialog,x=i.isShowDrillstringDetailDialog,j=i.handleHideDrillstringDetailDialog,q=o(),v=null===(d=c.well)||void 0===d?void 0:d.id,S=null===(g=c.context)||void 0===g||null===(D=g.bha)||void 0===D||null===(h=D.data)||void 0===h?void 0:h.id,f=n.getBHAInformation(v,S,p),w=n.calculateBHALengthMax(p),H=null===(u=f.data)||void 0===u?void 0:u.components,B=H&&n.getBHASchematic(H);return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:q.wrapper,onClick:m,children:B&&s.jsx(r,{containerHeight:160,schematic:B,bhaLengthMax:w},v)}),s.jsx(l,{align:"left"}),s.jsx(e.Dialog,{classes:{paperScrollPaper:q.bhaDetail},open:x,onClose:j,scroll:"paper",children:s.jsx(e.DialogContent,{children:s.jsx(t,{drillStringInfo:f,unit:a.getUnitDisplay("length"),onDone:j})})})]})};d.propTypes={feedItem:i.shape().isRequired,drillStringData:i.shape().isRequired,isShowDrillstringDetailDialog:i.bool.isRequired,handleShowDrillstringDetailDialog:i.func.isRequired,handleHideDrillstringDetailDialog:i.func.isRequired},module.exports=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BHATileIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Drillstring/BHATileIcon.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"BHATileIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Drillstring/BHATileIcon.js"],"names":[],"mappings":";AA4BA;;;;gBA0BC;;;;;;;;;;;;sBAtDqB,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"prop-types";import{Tooltip as
|
|
1
|
+
import t from"prop-types";import{makeStyles as e,Tooltip as i}from"@material-ui/core";import{jsx as r}from"react/jsx-runtime";var a="/static/media/7dcfb5193fd2f60e28374f31ee0a26bf.svg",s={bit:"Bit",other:"Non Magnetic",pdm:"PDM",rss:"Rotary Steerables",stabilizer:"Stabilizer"},c=e({iconWrapper:{width:function(t){return t.width},height:function(t){return t.height}},tileIcon:{width:"100%",height:"100%"}});function d(t){var e,d=t.component,n=t.width,m=t.height,o=d.family,f=(d.material,c({width:n,height:m}));return e="bit"===o?"/static/media/50e73f59728296f6d5a248384d53193a.svg":"pdm"===o?"/static/media/d8f7c4b371a4666ca44cae9ec3058c26.svg":"rss"===o?"/static/media/bf34c472868f0f04afd2523062f9f363.svg":"stabilizer"===o?"/static/media/3f3100ae49e552599e0bbd9b60eb783d.svg":a,r(i,{title:s[o]||s.other,placement:"bottom",children:r("div",{className:f.iconWrapper,children:r("img",{src:e,className:f.tileIcon,alt:o})})})}d.propTypes={width:t.string.isRequired,height:t.number.isRequired,component:t.shape({family:t.string,material:t.string,bit_type:t.string}).isRequired};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BhaSchematic.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaSchematic.js"],"names":[],"mappings":";AAsBA;;;;;;
|
|
1
|
+
{"version":3,"file":"BhaSchematic.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaSchematic.js"],"names":[],"mappings":";AAsBA;;;;;;gBAkDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{shape as i,bool as r,func as l}from"prop-types";import{makeStyles as e,Dialog as t,DialogContent as a}from"@material-ui/core";import o from"../../../../Drillstring/BhaIndicator/BhaIndicator.js";import n from"../../../../Drillstring/BHASchematic.js";import s from"../../../../Drillstring/DrillstringDetail/DrillstringDetail.js";import{getUnitDisplay as d}from"../../../../../utils/convert.js";import{getBHAInformation as D,calculateBHALengthMax as m,getBHASchematic as p}from"../../../../../utils/bha.js";import{jsxs as g,Fragment as h,jsx as c}from"react/jsx-runtime";var u=e({wrapper:{width:200,cursor:"pointer",marginTop:-52,marginBottom:-52},bhaDetail:{maxWidth:1500,maxHeight:"80%"}}),f=function(i){var r,l,e,f,v,S=i.feedItem,w=i.drillStringData,j=i.handleShowDrillstringDetailDialog,x=i.isShowDrillstringDetailDialog,b=i.handleHideDrillstringDetailDialog,q=u(),
|
|
1
|
+
import{shape as i,bool as r,func as l}from"prop-types";import{makeStyles as e,Dialog as t,DialogContent as a}from"@material-ui/core";import o from"../../../../Drillstring/BhaIndicator/BhaIndicator.js";import n from"../../../../Drillstring/BHASchematic.js";import s from"../../../../Drillstring/DrillstringDetail/DrillstringDetail.js";import{getUnitDisplay as d}from"../../../../../utils/convert.js";import{getBHAInformation as D,calculateBHALengthMax as m,getBHASchematic as p}from"../../../../../utils/bha.js";import{jsxs as g,Fragment as h,jsx as c}from"react/jsx-runtime";var u=e({wrapper:{width:200,cursor:"pointer",marginTop:-52,marginBottom:-52},bhaDetail:{maxWidth:1500,maxHeight:"80%"}}),f=function(i){var r,l,e,f,v,S=i.feedItem,w=i.drillStringData,j=i.handleShowDrillstringDetailDialog,x=i.isShowDrillstringDetailDialog,b=i.handleHideDrillstringDetailDialog,q=u(),H=null===(r=S.well)||void 0===r?void 0:r.id,I=null===(l=S.context)||void 0===l||null===(e=l.bha)||void 0===e||null===(f=e.data)||void 0===f?void 0:f.id,R=D(H,I,w),B=m(w),y=null===(v=R.data)||void 0===v?void 0:v.components,C=y&&p(y);return g(h,{children:[c("div",{className:q.wrapper,onClick:j,children:C&&c(n,{containerHeight:160,schematic:C,bhaLengthMax:B},H)}),c(o,{align:"left"}),c(t,{classes:{paperScrollPaper:q.bhaDetail},open:x,onClose:b,scroll:"paper",children:c(a,{children:c(s,{drillStringInfo:R,unit:d("length"),onDone:b})})})]})};f.propTypes={feedItem:i().isRequired,drillStringData:i().isRequired,isShowDrillstringDetailDialog:r.isRequired,handleShowDrillstringDetailDialog:l.isRequired,handleHideDrillstringDetailDialog:l.isRequired};export{f as default};
|