@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.
@@ -1 +1 @@
1
- {"version":3,"file":"Info.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js"],"names":[],"mappings":";AAsBA;;;;gBAiEC"}
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(),v=null===(a=m.context)||void 0===a||null===(t=a.bha)||void 0===t?void 0:t.data,b=null==v?void 0:v.components,y=null==v?void 0:v.start_depth,f=l(b),N=r(y),g=(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,children:[c(n,{variant:"body1",className:h.planText,children:"Bit Size:"}),c(n,{variant:"body1",className:h.planText,children:"Depth In:"})]}),d(i,{item:!0,className:h.columnWithMargin,children:[c(n,{variant:"body2",className:h.pointValue,children:f}),d(n,{variant:"body2","data-testid":"".concat(u,"_bitSize"),className:h.pointValue,children:[N,d(n,{variant:"body2",component:"span",className:h.planUnit,children:["(",o("length"),")"]})]})]}),d(i,{item:!0,children:[c(n,{variant:"body1",className:h.planText,children:"Bit Maker:"}),c(n,{variant:"body1",className:h.planText,children:"Bit Model:"})]}),d(i,{item:!0,children:[c(n,{variant:"body2","data-testid":"".concat(u,"_bitMaker"),className:h.pointValue,children:g}),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};
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};
@@ -1 +1 @@
1
- {"version":3,"file":"ActualPointInfo.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js"],"names":[],"mappings":";AA4BA;;gBA0FC"}
1
+ {"version":3,"file":"ActualPointInfo.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js"],"names":[],"mappings":";AAkCA;;gBA0FC"}
@@ -1 +1 @@
1
- import{shape as a}from"prop-types";import{makeStyles as t,Grid as n,Typography as e}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{planText:{color:a.palette.grey[400]},planUnit:{color:a.palette.grey[400],marginLeft:5},pointValue:{display:"flex"},columnWithMargin:{marginRight:40},actualPointContainer:{width:400}}})),d=function(a){return a&&"number"==typeof a?a.toFixed(2):"-"},p=function(a){var t,p,m=a.feedItem,h=s(),u=(null===(t=m.context)||void 0===t||null===(p=t.survey_station)||void 0===p?void 0:p.data)||{},v=u.measured_depth,y=u.inclination,N=u.azimuth,b=u.tvd,f=u.vertical_section,g=u.dls,x=i(v,"length","ft"),V=i(b,"length","ft"),T=i(f,"length","ft"),_=i(g,"anglePerLength","dp100f");return r(n,{spacing:8,justify:"flex-start",container:!0,className:h.actualPointContainer,children:[r(n,{item:!0,children:[c(e,{variant:"body1",className:h.planText,children:"Survey at:"}),c(e,{variant:"body1",className:h.planText,children:"Inc:"}),c(e,{variant:"body1",className:h.planText,children:"Azi:"})]}),r(n,{item:!0,className:h.columnWithMargin,children:[r(e,{variant:"body2","data-testid":"".concat(o,"_lastSurvey"),className:h.pointValue,children:[d(x),r(e,{variant:"body2",component:"span",className:h.planUnit,children:["(",l("length"),")"]})]}),r(e,{variant:"body2","data-testid":"".concat(o,"_inclination"),className:h.pointValue,children:[d(y),c(e,{variant:"body2",component:"span",className:h.planUnit,children:"°"})]}),r(e,{variant:"body2","data-testid":"".concat(o,"_azimuth"),className:h.pointValue,children:[d(N),c(e,{variant:"body2",component:"span",className:h.planUnit,children:"°"})]})]}),r(n,{item:!0,children:[c(e,{variant:"body1",className:h.planText,children:"TVD:"}),c(e,{variant:"body1",className:h.planText,children:"VS:"}),c(e,{variant:"body1",className:h.planText,children:"DLS:"})]}),r(n,{item:!0,children:[r(e,{variant:"body2","data-testid":"".concat(o,"_TVD"),className:h.pointValue,children:[d(V),r(e,{variant:"body2",component:"span",className:h.planUnit,children:["(",l("length"),")"]})]}),r(e,{variant:"body2","data-testid":"".concat(o,"_VS"),className:h.pointValue,children:[d(T),r(e,{variant:"body2",component:"span",className:h.planUnit,children:["(",l("length"),")"]})]}),r(e,{variant:"body2","data-testid":"".concat(o,"_DLS"),className:h.pointValue,children:[d(_),c(e,{variant:"body2",component:"span",className:h.planUnit,children:l("anglePerLength")})]})]})]})};p.propTypes={feedItem:a({context:a({survey_station:a({data:a().isRequired}).isRequired}).isRequired}).isRequired};export{p as default};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.52.0-10",
3
+ "version": "0.52.0-11",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"