@corva/ui 0.52.0-10 → 0.52.0-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Info.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Info.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js"],"names":[],"mappings":";AA2BA;;;;gBAiEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{shape as e,string as a}from"prop-types";import{makeStyles as t,Grid as i,Typography as n}from"@material-ui/core";import{getBhaBitSize as l,getBhaDepthIn as r}from"../../../../../utils/bha.js";import{getUnitDisplay as o}from"../../../../../utils/convert.js";import{jsxs as d,jsx as c}from"react/jsx-runtime";var s=t((function(e){return{planUnit:{color:e.palette.grey[400],marginLeft:5},planText:{color:e.palette.grey[400]},pointValue:{display:"flex"},columnWithMargin:{marginRight:40}}})),m=function(e){var a,t,m=e.feedItem,p=e.bitComponent,u=e.pageName,h=s(),
|
|
1
|
+
import{shape as e,string as a}from"prop-types";import{makeStyles as t,Grid as i,Typography as n}from"@material-ui/core";import{getBhaBitSize as l,getBhaDepthIn as r}from"../../../../../utils/bha.js";import{getUnitDisplay as o}from"../../../../../utils/convert.js";import{jsxs as d,jsx as c}from"react/jsx-runtime";var s=t((function(e){return{labelGrid:{marginRight:11},planUnit:{color:e.palette.grey[400],marginLeft:5,fontSize:12},planText:{color:e.palette.grey[400]},pointValue:{display:"flex",alignItems:"center"},columnWithMargin:{marginRight:40}}})),m=function(e){var a,t,m=e.feedItem,p=e.bitComponent,u=e.pageName,h=s(),b=null===(a=m.context)||void 0===a||null===(t=a.bha)||void 0===t?void 0:t.data,v=null==b?void 0:b.components,f=null==b?void 0:b.start_depth,y=l(v),g=r(f),N=(null==p?void 0:p.make)||"-",x=(null==p?void 0:p.model)||"-";return d(i,{container:!0,spacing:16,justify:"flex-start",children:[d(i,{item:!0,className:h.labelGrid,children:[c(n,{variant:"body2",className:h.planText,children:"Bit Size:"}),c(n,{variant:"body2",className:h.planText,children:"Depth In:"})]}),d(i,{item:!0,className:h.columnWithMargin,children:[c(n,{variant:"body2",className:h.pointValue,children:y}),d(n,{variant:"body2","data-testid":"".concat(u,"_bitSize"),className:h.pointValue,children:[g,d(n,{variant:"body2",component:"span",className:h.planUnit,children:["(",o("length"),")"]})]})]}),d(i,{item:!0,className:h.labelGrid,children:[c(n,{variant:"body2",className:h.planText,children:"Bit Maker:"}),c(n,{variant:"body2",className:h.planText,children:"Bit Model:"})]}),d(i,{item:!0,children:[c(n,{variant:"body2","data-testid":"".concat(u,"_bitMaker"),className:h.pointValue,children:N}),c(n,{variant:"body2","data-testid":"".concat(u,"_bitModel"),className:h.pointValue,children:x})]})]})};m.propTypes={feedItem:e().isRequired,bitComponent:e().isRequired,pageName:a.isRequired};export{m as default};
|
package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActualPointInfo.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ActualPointInfo.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js"],"names":[],"mappings":";AAkCA;;gBA0FC"}
|
package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{shape as a}from"prop-types";import{makeStyles as t,Grid as
|
|
1
|
+
import{shape as a}from"prop-types";import{makeStyles as t,Grid as e,Typography as n}from"@material-ui/core";import{convertValue as i,getUnitDisplay as l}from"../../../../../utils/convert.js";import{jsxs as r,jsx as c}from"react/jsx-runtime";var o="surveyStationActivity",s=t((function(a){return{labelGrid:{marginRight:7},planText:{color:a.palette.grey[400]},planUnit:{fontSize:12,color:a.palette.grey[400],marginLeft:5},pointValue:{display:"flex",alignItems:"center"},columnWithMargin:{marginRight:40},actualPointContainer:{display:"flex",flexGrow:1}}})),d=function(a){return a&&"number"==typeof a?a.toFixed(2):"-"},m=function(a){var t,m,p=a.feedItem,h=s(),u=(null===(t=p.context)||void 0===t||null===(m=t.survey_station)||void 0===m?void 0:m.data)||{},v=u.measured_depth,y=u.inclination,b=u.azimuth,f=u.tvd,N=u.vertical_section,g=u.dls,x=i(v,"length","ft"),V=i(f,"length","ft"),T=i(N,"length","ft"),_=i(g,"anglePerLength","dp100f");return r(e,{spacing:16,justify:"flex-start",className:h.actualPointContainer,children:[r(e,{item:!0,className:h.labelGrid,children:[c(n,{variant:"body2",className:h.planText,children:"Survey at:"}),c(n,{variant:"body2",className:h.planText,children:"Inc:"}),c(n,{variant:"body2",className:h.planText,children:"Azi:"})]}),r(e,{item:!0,className:h.columnWithMargin,children:[r(n,{variant:"body2","data-testid":"".concat(o,"_lastSurvey"),className:h.pointValue,children:[d(x),r(n,{variant:"body2",component:"span",className:h.planUnit,children:["(",l("length"),")"]})]}),r(n,{variant:"body2","data-testid":"".concat(o,"_inclination"),className:h.pointValue,children:[d(y),c(n,{variant:"body2",component:"span",className:h.planUnit,children:"°"})]}),r(n,{variant:"body2","data-testid":"".concat(o,"_azimuth"),className:h.pointValue,children:[d(b),c(n,{variant:"body2",component:"span",className:h.planUnit,children:"°"})]})]}),r(e,{item:!0,className:h.labelGrid,children:[c(n,{variant:"body2",className:h.planText,children:"TVD:"}),c(n,{variant:"body2",className:h.planText,children:"VS:"}),c(n,{variant:"body2",className:h.planText,children:"DLS:"})]}),r(e,{item:!0,children:[r(n,{variant:"body2","data-testid":"".concat(o,"_TVD"),className:h.pointValue,children:[d(V),r(n,{variant:"body2",component:"span",className:h.planUnit,children:["(",l("length"),")"]})]}),r(n,{variant:"body2","data-testid":"".concat(o,"_VS"),className:h.pointValue,children:[d(T),r(n,{variant:"body2",component:"span",className:h.planUnit,children:["(",l("length"),")"]})]}),r(n,{variant:"body2","data-testid":"".concat(o,"_DLS"),className:h.pointValue,children:[d(_),c(n,{variant:"body2",component:"span",className:h.planUnit,children:l("anglePerLength")})]})]})]})};m.propTypes={feedItem:a({context:a({survey_station:a({data:a().isRequired}).isRequired}).isRequired}).isRequired};export{m as default};
|