@corva/ui 0.76.0-rc.1 → 0.76.0-rc.2

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.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../convert.js"),i=require("../metrics/utils.js"),t={cumulative_tortuosity:{label:"Cumulative Tortuosity",key:"cumulative_tortuosity",isMetricGoal:!0},drilled_feet_rotary_percentage:{label:"Rotary %",key:"drilled_feet_rotary_percentage",convertToShow:i.convertPercentageMetrics,convertToSave:i.convertPercentageToSave,unitType:"percent",unit:"%",isMetricGoal:!0},drilled_feet_slide_percentage:{label:"Slide %",key:"drilled_feet_slide_percentage",convertToShow:i.convertPercentageMetrics,convertToSave:i.convertPercentageToSave,unitType:"percent",unit:"%",isMetricGoal:!0},feet_per_day:{label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",unit:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isMetricGoal:!0},on_bottom_percentage:{label:"On Bottom %",key:"on_bottom_percentage",convertToShow:i.convertPercentageMetrics,convertToSave:i.convertPercentageToSave,unitType:"percent",unit:"%",isMetricGoal:!0},npt:{label:"NPT",key:"npt",unitType:"time",unit:"h",isMetricGoal:!0},pumps_on_to_bottom_average:{label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",unitType:"time",unit:"s",isMetricGoal:!0},spud_to_landing_point:{label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",unit:"h",isMetricGoal:!0},spud_to_rig_release_time:{label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",unit:"h",isMetricGoal:!0},spud_to_target:{label:"Spud to Target",key:"spud_to_target",unitType:"time",unit:"h",isMetricGoal:!0},spud_to_total_depth_time:{label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",unit:"h",isMetricGoal:!0},cost_per_ft:{label:"Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_ft",convertToShow:i.convertCostToShow,convertToSave:i.convertCostToSave,isMetricGoal:!0},cost_per_lat_ft:{label:"Lateral Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_lat_ft",convertToShow:i.convertCostToShow,convertToSave:i.convertCostToSave,isMetricGoal:!0},gross_tripping_in_speed_total:{label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},gross_tripping_out_speed_total:{label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},tripping_in_connection_time:{label:"Tripping in (Connection)",key:"tripping_in_connection_time",unitType:"time",unit:"min",isMetricGoal:!0},tripping_in_running_time:{label:"Tripping in (Running)",key:"tripping_in_running_time",unitType:"time",unit:"min",isMetricGoal:!0},trip_gross_tripping_in_speed_cased:{label:"Cased Hole Tripping In Speed (With Connections)",key:"trip_gross_tripping_in_speed_cased",unitType:"velocity",unit:"ft/h",isMetricGoal:!1},trip_gross_tripping_in_speed_open:{label:"Open Hole Tripping In Speed (With Connections)",key:"trip_gross_tripping_in_speed_open",unitType:"velocity",unit:"ft/h",isMetricGoal:!1},trip_tripping_in_time_cased:{label:"Cased Hole Tripping In Time",key:"trip_tripping_in_time_cased",unitType:"time",unit:"min",isMetricGoal:!1},trip_tripping_in_time_open:{label:"Open Hole Tripping In Time",key:"trip_tripping_in_time_open",unitType:"time",unit:"min",isMetricGoal:!1},trip_gross_tripping_in_time_cased:{label:"Cased Hole Tripping In Time (With Connections)",key:"trip_gross_tripping_in_time_cased",unitType:"time",unit:"min",isMetricGoal:!1},trip_gross_tripping_in_time_open:{label:"Open Hole Tripping In Time (With Connections)",key:"trip_gross_tripping_in_time_open",unitType:"time",unit:"min",isMetricGoal:!1},gross_tripping_out_speed_cased:{label:"Cased Hole Tripping Out Speed (With Connections)",key:"gross_tripping_out_speed_cased",unitType:"velocity",unit:"ft/h",isMetricGoal:!1},gross_tripping_out_speed_open:{label:"Open Hole Tripping Out Speed (With Connections)",key:"gross_tripping_out_speed_open",unitType:"velocity",unit:"ft/h",isMetricGoal:!1},gross_tripping_out_time_cased:{label:"Cased Hole Tripping Out Time (With Connections)",key:"gross_tripping_out_time_cased",unitType:"time",unit:"min",isMetricGoal:!1},gross_tripping_out_time_open:{label:"Open Hole Tripping Out Time (With Connections)",key:"gross_tripping_out_time_open",unitType:"time",unit:"min",isMetricGoal:!1},tripping_out_time_cased:{label:"Cased Hole Tripping Out Time",key:"tripping_out_time_cased",unitType:"time",unit:"min",isMetricGoal:!1},tripping_out_time_open:{label:"Open Hole Tripping Out Time",key:"tripping_out_time_open",unitType:"time",unit:"min",isMetricGoal:!1},tripping_in_speed:{label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},tripping_in_speed_cased:{label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},tripping_in_speed_open:{label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},tripping_out_connection_time:{label:"Tripping out (Connection)",key:"tripping_out_connection_time",unitType:"time",unit:"min",isMetricGoal:!1},tripping_out_running_time:{label:"Tripping out (Running)",key:"tripping_out_running_time",unitType:"time",unit:"min",isMetricGoal:!1},tripping_out_speed:{label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},tripping_out_speed_cased:{label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},tripping_out_speed_open:{label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},gross_tripping_in_speed_cased:{label:"Cased Hole Tripping In Speed (With Connections)",key:"gross_tripping_in_speed_cased",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},gross_tripping_in_speed_open:{label:"Open Hole Tripping In Speed (With Connections)",key:"gross_tripping_in_speed_open",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},gross_tripping_in_time_cased:{label:"Cased Hole Tripping In Time (With Connections)",key:"gross_tripping_in_time_cased",unitType:"time",unit:"min",isMetricGoal:!0},gross_tripping_in_time_open:{label:"Open Hole Tripping In Time (With Connections)",key:"gross_tripping_in_time_open",unitType:"time",unit:"min",isMetricGoal:!0},slips_to_slips_average:{label:"Casing Slips to Slips",key:"slips_to_slips_average",unitType:"time",unit:"s",isMetricGoal:!0},tripping_in_time_cased:{label:"Cased Hole Tripping In Time",key:"tripping_in_time_cased",unitType:"time",unit:"min",isMetricGoal:!1},tripping_in_time_open:{label:"Open Hole Tripping In Time",key:"tripping_in_time_open",unitType:"time",unit:"min",isMetricGoal:!1},casing_tripping_in_speed_cased:{label:"Cased Hole Tripping In Speed",key:"casing_tripping_in_speed_cased",unitType:"velocity",unit:"ft/h",isMetricGoal:!1},casing_tripping_in_speed_open:{label:"Open Hole Tripping In Speed",key:"casing_tripping_in_speed_open",unitType:"velocity",unit:"ft/h",isMetricGoal:!1},bottom_to_slips_average:{label:"Bottom to Slips Time",key:"bottom_to_slips_average",unitType:"time",unit:"s",isMetricGoal:!0},drilling_connection_average:{label:"Slips to Slips Time",key:"drilling_connection_average",unitType:"time",unit:"s",isMetricGoal:!0},slips_to_bottom_average:{label:"Slips to Bottom Time",key:"slips_to_bottom_average",unitType:"time",unit:"s",isMetricGoal:!0},weight_to_weight_average:{label:"Weight to Weight Time",key:"weight_to_weight_average",unitType:"time",unit:"s",isMetricGoal:!0},rop:{label:"On-Bottom ROP",key:"rop",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},rop_gross:{label:"Gross ROP",key:"rop_gross",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},rop_rotary:{label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},rop_slide:{label:"Slide ROP",key:"rop_slide",unitType:"velocity",unit:"ft/h",isMetricGoal:!0}};exports.GoalsConfig=t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./goalsConfig.js"),o=require("./utils.js");exports.GoalsConfig=e.GoalsConfig,exports.convertGoalValue=o.convertGoalValue,exports.getGoalsConfig=o.getGoalsConfig,exports.getGoalsUnitDisplay=o.getGoalsUnitDisplay;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lodash"),r=require("../convert.js"),n=require("./goalsConfig.js");exports.convertGoalValue=function(t,o,i){if(void 0===i&&(i="TO_SHOW"),!n.GoalsConfig[o])return t;var u=n.GoalsConfig[o],a=u.unitType,s=u.unit,l=u.convertToShow,f=u.convertToSave;if(!s&&!l&&!f)return t;if("TO_SHOW"===i){if(""===t)return t;var g=l?l(t):r.convertValue(+t,a,s,null,16),c=e.round(g,2);return String(c)}return"TO_SAVE"===i?t?String(f?f(t):r.convertValue(+t,a,r.getUnitPreference(a),s,16)):"":void 0},exports.getGoalsConfig=function(){return n.GoalsConfig},exports.getGoalsUnitDisplay=function(e){if(!n.GoalsConfig[e])return"";var t=n.GoalsConfig[e],o=t.unit,i=t.unitType,u=t.formatUnitDisplay;return i||u?u?u(r.getUnitPreference(i)):"percent"===i?o:r.getUnitDisplay(i):""};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("./StageDesignVActualUtils.js"),r=require("./alerts.js"),s=require("./audio.js"),o=require("./casing/index.js"),i=require("./chartSeries.js"),n=require("./completion.js"),a=require("./components.js"),p=require("./convert.js"),u=require("./csvExport.js"),c=require("./devcenter.js"),l=require("./drillstring/index.js"),x=require("./DrillstringUtils.js"),g=require("./FluidCheckUtils.js"),f=require("./formatting.js"),j=require("./ga.js"),m=require("./goals.js"),d=require("./lasParser.js"),q=require("./main.js"),y=require("./mapUnits.js"),U=require("./mapbox.js"),b=require("./metrics/index.js"),v=require("./mobileDetect.js"),h=require("./nativeMessages.js"),S=require("./notifications.js"),D=require("./feed.js"),O=require("./permissions.js"),w=require("./reports.js"),T=require("./time.js"),P=require("./torqueAndHookloadUtils.js"),N=require("./accuracy.js"),C=require("./notificationToasts.js"),I=require("./devcenterToasts.js"),A=require("./convertKeys.js"),B=require("./dashboardReports.js"),E=require("./apps.js"),k=require("./themeVariables.js"),H=require("./env.js"),K=require("./fileExtension.js"),F=require("./jsonaDataFormatter.js"),L=require("./bha.js"),M=require("./localStorage.js"),V=require("./sharedDCStore.js"),_=require("../components/UserMention/utils/index.js"),W=require("./resolveWellHubSlug.js"),J=require("./delayedHighcharts.js"),R=require("./delay.js");function z(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function G(e){return Object.freeze({__proto__:null,default:e})}var Q=z(e),X=G(d),Y=G(q),Z=G(y),$=G(O);function ee(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}var te={get:function(e,t){var r=e[t];return"function"==typeof r?function(){for(var t=arguments.length,s=new Array(t),o=0;o<t;o++)s[o]=arguments[o];return r.apply(e,s.map((function(e){return e.toJS?e.toJS():e})))}:r}};function re(e){return new Proxy(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach((function(t){Q.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),te)}var se=p.convertArray,oe=p.convertValue,ie=p.getAllUnitTypes,ne=p.getDefaultImperialUnit,ae=p.getDefaultUnits,pe=p.getUnitDescription,ue=p.getUnitDisplay,ce=p.getUnitPlural,le=p.getUnitPreference,xe=p.getUnitsByType,ge=p.getUnitSingular,fe=p.getUnitSystem,je=p.updateUserUnits,me=p.getUserUnits,de=p.subscribeForUserUnitsUpdates,qe=p.convertImmutables,ye=p.convertImmutablesByBatch,Ue=p.getUniqueUnitsByType,be=re(U),ve=re(a);exports.StageDesignVActualUtils=t,exports.alerts=r,exports.audio=s,exports.casing=o,exports.chartSeries=i,exports.completion=n,exports.convert=p,exports.csvExport=u,exports.devcenter=c,exports.drillstring=l,exports.drillstringUtils=x,exports.fluidCheckUtils=g,exports.formatting=f,exports.ga=j,exports.goals=m,exports.lasParser=X,exports.main=Y,exports.mapUnits=Z,exports.metricsUtils=b,exports.mobileDetect=v,exports.nativeMessages=h,exports.notifications=S,exports.feed=D,exports.permissions=$,exports.reports=w,exports.time=T,exports.torqueAndHookloadUtils=P,exports.accuracy=N,exports.createNotification=C.createNotification,exports.removeNotification=C.removeNotification,exports.showErrorNotification=C.showErrorNotification,exports.showInfoNotification=C.showInfoNotification,exports.showNeutralNotification=C.showNeutralNotification,exports.showSuccessNotification=C.showSuccessNotification,exports.showWarningNotification=C.showWarningNotification,exports.showToast=I.showToast,exports.convertKeysToCamelCase=A.convertKeysToCamelCase,exports.convertKeysToSnakeCase=A.convertKeysToSnakeCase,exports.getConvertKeys=A.getConvertKeys,exports.dashboardReports=B,exports.apps=E,exports.themeVariables=k,exports.env=H,exports.fileExtension=K,exports.jsonaDataFormatter=F.jsonaDataFormatter,exports.bha=L,exports.getLocalStorageItem=M.getLocalStorageItem,exports.updateLocalStorageItem=M.updateLocalStorageItem,exports.sharedDCStore=V.sharedDCStore,exports.formatMentionText=_.formatMentionText,exports.isSuggestionsListOpened=_.isSuggestionsListOpened,exports.resolveWellHubSlug=W,exports.enableHighchartsDelayedTooltip=J.enableHighchartsDelayedTooltip,exports.delay=R.delay,exports.components=ve,exports.convertArray=se,exports.convertImmutables=qe,exports.convertImmutablesByBatch=ye,exports.convertValue=oe,exports.getAllUnitTypes=ie,exports.getDefaultImperialUnit=ne,exports.getDefaultUnits=ae,exports.getUniqueUnitsByType=Ue,exports.getUnitDescription=pe,exports.getUnitDisplay=ue,exports.getUnitPlural=ce,exports.getUnitPreference=le,exports.getUnitSingular=ge,exports.getUnitSystem=fe,exports.getUnitsByType=xe,exports.getUserUnits=me,exports.mapbox=be,exports.subscribeForUserUnitsUpdates=de,exports.updateUserUnits=je;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("./StageDesignVActualUtils.js"),r=require("./alerts.js"),s=require("./audio.js"),o=require("./casing/index.js"),i=require("./chartSeries.js"),n=require("./completion.js"),a=require("./components.js"),p=require("./convert.js"),u=require("./csvExport.js"),c=require("./devcenter.js"),l=require("./drillstring/index.js"),x=require("./DrillstringUtils.js"),g=require("./FluidCheckUtils.js"),f=require("./formatting.js"),j=require("./ga.js"),m=require("./goals.js"),d=require("./goalsConfig/index.js"),q=require("./lasParser.js"),y=require("./main.js"),U=require("./mapUnits.js"),b=require("./mapbox.js"),v=require("./metrics/index.js"),h=require("./mobileDetect.js"),S=require("./nativeMessages.js"),D=require("./notifications.js"),O=require("./feed.js"),w=require("./permissions.js"),T=require("./reports.js"),P=require("./time.js"),N=require("./torqueAndHookloadUtils.js"),C=require("./accuracy.js"),I=require("./notificationToasts.js"),A=require("./devcenterToasts.js"),B=require("./convertKeys.js"),E=require("./dashboardReports.js"),k=require("./apps.js"),H=require("./themeVariables.js"),K=require("./env.js"),F=require("./fileExtension.js"),L=require("./jsonaDataFormatter.js"),M=require("./bha.js"),V=require("./localStorage.js"),_=require("./sharedDCStore.js"),W=require("../components/UserMention/utils/index.js"),J=require("./resolveWellHubSlug.js"),R=require("./delayedHighcharts.js"),z=require("./delay.js");function G(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function Q(e){return Object.freeze({__proto__:null,default:e})}var X=G(e),Y=Q(q),Z=Q(y),$=Q(U),ee=Q(w);function te(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}var re={get:function(e,t){var r=e[t];return"function"==typeof r?function(){for(var t=arguments.length,s=new Array(t),o=0;o<t;o++)s[o]=arguments[o];return r.apply(e,s.map((function(e){return e.toJS?e.toJS():e})))}:r}};function se(e){return new Proxy(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?te(Object(r),!0).forEach((function(t){X.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),re)}var oe=p.convertArray,ie=p.convertValue,ne=p.getAllUnitTypes,ae=p.getDefaultImperialUnit,pe=p.getDefaultUnits,ue=p.getUnitDescription,ce=p.getUnitDisplay,le=p.getUnitPlural,xe=p.getUnitPreference,ge=p.getUnitsByType,fe=p.getUnitSingular,je=p.getUnitSystem,me=p.updateUserUnits,de=p.getUserUnits,qe=p.subscribeForUserUnitsUpdates,ye=p.convertImmutables,Ue=p.convertImmutablesByBatch,be=p.getUniqueUnitsByType,ve=se(b),he=se(a);exports.StageDesignVActualUtils=t,exports.alerts=r,exports.audio=s,exports.casing=o,exports.chartSeries=i,exports.completion=n,exports.convert=p,exports.csvExport=u,exports.devcenter=c,exports.drillstring=l,exports.drillstringUtils=x,exports.fluidCheckUtils=g,exports.formatting=f,exports.ga=j,exports.goals=m,exports.goalsConfig=d,exports.lasParser=Y,exports.main=Z,exports.mapUnits=$,exports.metricsUtils=v,exports.mobileDetect=h,exports.nativeMessages=S,exports.notifications=D,exports.feed=O,exports.permissions=ee,exports.reports=T,exports.time=P,exports.torqueAndHookloadUtils=N,exports.accuracy=C,exports.createNotification=I.createNotification,exports.removeNotification=I.removeNotification,exports.showErrorNotification=I.showErrorNotification,exports.showInfoNotification=I.showInfoNotification,exports.showNeutralNotification=I.showNeutralNotification,exports.showSuccessNotification=I.showSuccessNotification,exports.showWarningNotification=I.showWarningNotification,exports.showToast=A.showToast,exports.convertKeysToCamelCase=B.convertKeysToCamelCase,exports.convertKeysToSnakeCase=B.convertKeysToSnakeCase,exports.getConvertKeys=B.getConvertKeys,exports.dashboardReports=E,exports.apps=k,exports.themeVariables=H,exports.env=K,exports.fileExtension=F,exports.jsonaDataFormatter=L.jsonaDataFormatter,exports.bha=M,exports.getLocalStorageItem=V.getLocalStorageItem,exports.updateLocalStorageItem=V.updateLocalStorageItem,exports.sharedDCStore=_.sharedDCStore,exports.formatMentionText=W.formatMentionText,exports.isSuggestionsListOpened=W.isSuggestionsListOpened,exports.resolveWellHubSlug=J,exports.enableHighchartsDelayedTooltip=R.enableHighchartsDelayedTooltip,exports.delay=z.delay,exports.components=he,exports.convertArray=oe,exports.convertImmutables=ye,exports.convertImmutablesByBatch=Ue,exports.convertValue=ie,exports.getAllUnitTypes=ne,exports.getDefaultImperialUnit=ae,exports.getDefaultUnits=pe,exports.getUniqueUnitsByType=be,exports.getUnitDescription=ue,exports.getUnitDisplay=ce,exports.getUnitPlural=le,exports.getUnitPreference=xe,exports.getUnitSingular=fe,exports.getUnitSystem=je,exports.getUnitsByType=ge,exports.getUserUnits=de,exports.mapbox=ve,exports.subscribeForUserUnitsUpdates=qe,exports.updateUserUnits=me;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../convert.js"),t=require("./utils.js"),i={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},n={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:t.convertPercentageMetrics},o={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},p={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},_={label:"Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")}},r={label:"Lateral Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_lat_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")}};exports.bha_count={label:"Total BHA's",key:"bha_count"},exports.bottom_to_slips_average={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time"},exports.build_rate={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.circulating_time={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h"},exports.cost_per_ft=_,exports.cost_per_lat_ft=r,exports.cumulative_tortuosity={label:"Cumulative Tortuosity",key:"cumulative_tortuosity"},exports.drilled_feet_rotary={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0},exports.drilled_feet_rotary_percentage=i,exports.drilled_feet_slide={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft"},exports.drilled_feet_slide_percentage=n,exports.drilling_connection_average={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s"},exports.drilling_percentage=o,exports.drilling_time_rotary={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},exports.drilling_time_slide={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},exports.feet_per_day={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0},exports.gross_time={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},exports.gross_tripping_in_speed={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_cased={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_open={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_total={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_time_cased={label:"Cased Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_cased",unitType:"time",from:"min"},exports.gross_tripping_in_time_open={label:"Open Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_open",unitType:"time",from:"min"},exports.gross_tripping_out_speed_total={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h"},exports.hole_depth={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft"},exports.hole_depth_change={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0},exports.npt={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h"},exports.on_bottom_percentage=p,exports.on_bottom_time={label:"On Bottom Time",key:"on_bottom_time",to:"h"},exports.pumps_on_to_bottom_average={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time"},exports.rop={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_gross={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_rotary={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_slide={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.slips_to_bottom_average={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time"},exports.slips_to_slips={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time"},exports.slips_to_slips_count={label:"Casing Stand Count",key:"slips_to_slips_count"},exports.spud_to_landing_point={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d"},exports.spud_to_rig_release_time={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d"},exports.spud_to_target={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d"},exports.spud_to_total_depth_time={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d"},exports.tripping_connection_count={label:"Tripping Connection Count",key:"tripping_connection_count"},exports.tripping_in_connection_time={label:"Tripping in (Connection)",key:"tripping_in_connection_time",unitType:"time",from:"min"},exports.tripping_in_connection_time_cased={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_running_time={label:"Tripping in (Running)",key:"tripping_in_running_time",unitType:"time",from:"min"},exports.tripping_in_speed={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_speed_cased={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_speed_open={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_time={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_cased={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_open={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_with_connection={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},exports.tripping_in_time_with_connection_open={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},exports.tripping_out_connection_time={label:"Tripping out (Connection)",key:"tripping_out_connection_time",unitType:"time",from:"min"},exports.tripping_out_running_time={label:"Tripping out (Running)",key:"tripping_out_running_time",unitType:"time",from:"min"},exports.tripping_out_speed={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_out_speed_cased={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_out_speed_open={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.turn_rate={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.weight_to_weight_average={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time"},exports.weight_to_weight_count={label:"Drilling Stand Count",key:"weight_to_weight_count"},exports.wellgoals_casing_tripping_in_speed_cased={label:"Cased Hole Tripping In Speed",key:"wellgoals_casing_tripping_in_speed_cased",unitType:"velocity",from:"ft/h"},exports.wellgoals_casing_tripping_in_speed_open={label:"Open Hole Tripping In Speed",key:"wellgoals_casing_tripping_in_speed_open",unitType:"velocity",from:"ft/h"},exports.wellgoals_casing_tripping_in_time_cased={label:"Cased Hole Tripping In Time",key:"wellgoals_casing_tripping_in_time_cased",unitType:"time",from:"min"},exports.wellgoals_casing_tripping_in_time_open={label:"Open Hole Tripping In Time",key:"wellgoals_casing_tripping_in_time_open",unitType:"time",from:"min"},exports.wellgoals_tripping_in_speed_with_connection_cased={label:"Cased Hole Tripping In Speed (With Connections)",key:"wellgoals_tripping_in_speed_with_connection_cased",unitType:"velocity",from:"ft/h"},exports.wellgoals_tripping_in_speed_with_connection_open={label:"Open Hole Tripping In Speed (With Connections)",key:"wellgoals_tripping_in_speed_with_connection_open",unitType:"velocity",from:"ft/h"},exports.wellgoals_tripping_in_time_cased={label:"Cased Hole Tripping In Time",key:"wellgoals_tripping_in_time_cased",unitType:"time",from:"min"},exports.wellgoals_tripping_in_time_open={label:"Open Hole Tripping In Time",key:"wellgoals_tripping_in_time_open",unitType:"time",from:"min"},exports.wellgoals_tripping_in_time_with_connections_cased={label:"Cased Hole Tripping In Time (With Connections)",key:"wellgoals_tripping_in_time_with_connections_cased",unitType:"time",from:"min"},exports.wellgoals_tripping_in_time_with_connections_open={label:"Open Hole Tripping In Time (With Connections)",key:"wellgoals_tripping_in_time_with_connections_open",unitType:"time",from:"min"},exports.wellgoals_tripping_out_speed_with_connections_cased={label:"Cased Hole Tripping Out Speed (With Connections)",key:"wellgoals_tripping_out_speed_with_connections_cased",unitType:"velocity",from:"ft/h"},exports.wellgoals_tripping_out_speed_with_connections_open={label:"Open Hole Tripping Out Speed (With Connections)",key:"wellgoals_tripping_out_speed_with_connections_open",unitType:"velocity",from:"ft/h"},exports.wellgoals_tripping_out_time_with_connections_cased={label:"Cased Hole Tripping Out Time (With Connections)",key:"wellgoals_tripping_out_time_with_connections_cased",unitType:"time",from:"min"},exports.wellgoals_tripping_out_time_with_connections_open={label:"Open Hole Tripping Out Time (With Connections)",key:"wellgoals_tripping_out_time_with_connections_open",unitType:"time",from:"min"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../convert.js"),t=require("./utils.js"),i={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},o={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:t.convertPercentageMetrics},n={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},p={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},r={label:"Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")}},s={label:"Lateral Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_lat_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")}};exports.bha_count={label:"Total BHA's",key:"bha_count"},exports.bottom_to_slips_average={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time"},exports.build_rate={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.circulating_time={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h"},exports.cost_per_ft=r,exports.cost_per_lat_ft=s,exports.cumulative_tortuosity={label:"Cumulative Tortuosity",key:"cumulative_tortuosity"},exports.drilled_feet_rotary={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0},exports.drilled_feet_rotary_percentage=i,exports.drilled_feet_slide={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft"},exports.drilled_feet_slide_percentage=o,exports.drilling_connection_average={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s"},exports.drilling_percentage=n,exports.drilling_time_rotary={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},exports.drilling_time_slide={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},exports.feet_per_day={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0},exports.gross_time={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},exports.gross_tripping_in_speed={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_cased={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_open={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_total={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_time_cased={label:"Cased Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_cased",unitType:"time",from:"min"},exports.gross_tripping_in_time_open={label:"Open Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_open",unitType:"time",from:"min"},exports.gross_tripping_out_speed_total={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h"},exports.hole_depth={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft"},exports.hole_depth_change={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0},exports.npt={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h"},exports.on_bottom_percentage=p,exports.on_bottom_time={label:"On Bottom Time",key:"on_bottom_time",to:"h"},exports.pumps_on_to_bottom_average={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time"},exports.rop={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_gross={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_rotary={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_slide={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.slips_to_bottom_average={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time"},exports.slips_to_slips={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time"},exports.slips_to_slips_count={label:"Casing Stand Count",key:"slips_to_slips_count"},exports.spud_to_landing_point={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d"},exports.spud_to_rig_release_time={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d"},exports.spud_to_target={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d"},exports.spud_to_total_depth_time={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d"},exports.tripping_connection_count={label:"Tripping Connection Count",key:"tripping_connection_count"},exports.tripping_in_connection_time={label:"Tripping in (Connection)",key:"tripping_in_connection_time",unitType:"time",from:"min"},exports.tripping_in_connection_time_cased={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_running_time={label:"Tripping in (Running)",key:"tripping_in_running_time",unitType:"time",from:"min"},exports.tripping_in_speed={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_speed_cased={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_speed_open={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_time={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_cased={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_open={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_with_connection={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},exports.tripping_in_time_with_connection_open={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},exports.tripping_out_speed={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_out_speed_cased={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_out_speed_open={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.turn_rate={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.weight_to_weight_average={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time"},exports.weight_to_weight_count={label:"Drilling Stand Count",key:"weight_to_weight_count"};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lodash"),t=require("../convert.js");exports.convertPercentageMetrics=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.precision,n=void 0===i?2:i,o=100*t;return e.round(o>100&&o<101.5?100:o,n)},exports.getConvertedMetricValue=function(r,i){if(!Number.isFinite(r)||!i)return null;var n=i.unitType,o=i.from,u=i.to,a=i.customConvert,v=i.precision,s=void 0===v?2:v,c=i.allowNegativeValue,l=void 0!==c&&c;if(a)return a(r,i);var d=n?t.convertValue(r,n,o,u,s):r;return d=e.round(d,s),d=l?d:Math.max(d,0)},exports.getMetricUnitDisplay=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.formatUnitDisplay,n=void 0===i?e.identity:i,o=r.to,u=r.unitType;return o||u?n(o||t.getUnitDisplay(u)):""};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lodash"),t=require("../convert.js");exports.convertCostToSave=function(e){return e*t.convertValue(1,"length","ft")},exports.convertCostToShow=function(e){return e/t.convertValue(1,"length","ft")},exports.convertPercentageMetrics=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.precision,o=void 0===n?2:n,i=100*t;return e.round(i>100&&i<101.5?100:i,o)},exports.convertPercentageToSave=function(e){return Number(e)/100},exports.getConvertedMetricValue=function(r,n){if(!Number.isFinite(r)||!n)return null;var o=n.unitType,i=n.from,u=n.to,v=n.customConvert,a=n.precision,c=void 0===a?2:a,s=n.allowNegativeValue,l=void 0!==s&&s;if(v)return v(r,n);var p=o?t.convertValue(r,o,i,u,c):r;return p=e.round(p,c),p=l?p:Math.max(p,0)},exports.getMetricUnitDisplay=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.formatUnitDisplay,o=void 0===n?e.identity:n,i=r.to,u=r.unitType;return i||u?o(i||t.getUnitDisplay(u)):""};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.76.0-rc.1",
3
+ "version": "0.76.0-rc.2",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=utils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../../../src/utils/goalsConfig/__tests__/utils.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export declare type GoalConfig = {
2
+ label: string;
3
+ key: string;
4
+ unitType?: string;
5
+ unit?: string;
6
+ formatUnitDisplay?: (unit: string) => string;
7
+ convertToShow?: (value: string | number) => number;
8
+ convertToSave?: (value: string | number) => number;
9
+ isMetricGoal: boolean;
10
+ };
11
+ export declare const GoalsConfig: Record<string, GoalConfig>;
12
+ //# sourceMappingURL=goalsConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"goalsConfig.d.ts","sourceRoot":"","sources":["../../../src/utils/goalsConfig/goalsConfig.ts"],"names":[],"mappings":"AA2BA,oBAAY,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC7C,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,CAAC;IACnD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,CAAC;IACnD,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CA6YlD,CAAC"}
@@ -0,0 +1 @@
1
+ import{getUnitDescription as i,getUnitPreference as e}from"../convert.js";import{convertPercentageMetrics as t,convertPercentageToSave as n,convertCostToShow as p,convertCostToSave as o}from"../metrics/utils.js";var _={cumulative_tortuosity:{label:"Cumulative Tortuosity",key:"cumulative_tortuosity",isMetricGoal:!0},drilled_feet_rotary_percentage:{label:"Rotary %",key:"drilled_feet_rotary_percentage",convertToShow:t,convertToSave:n,unitType:"percent",unit:"%",isMetricGoal:!0},drilled_feet_slide_percentage:{label:"Slide %",key:"drilled_feet_slide_percentage",convertToShow:t,convertToSave:n,unitType:"percent",unit:"%",isMetricGoal:!0},feet_per_day:{label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",unit:"ft",formatUnitDisplay:function(i){return"".concat(i,"/day")},isMetricGoal:!0},on_bottom_percentage:{label:"On Bottom %",key:"on_bottom_percentage",convertToShow:t,convertToSave:n,unitType:"percent",unit:"%",isMetricGoal:!0},npt:{label:"NPT",key:"npt",unitType:"time",unit:"h",isMetricGoal:!0},pumps_on_to_bottom_average:{label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",unitType:"time",unit:"s",isMetricGoal:!0},spud_to_landing_point:{label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",unit:"h",isMetricGoal:!0},spud_to_rig_release_time:{label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",unit:"h",isMetricGoal:!0},spud_to_target:{label:"Spud to Target",key:"spud_to_target",unitType:"time",unit:"h",isMetricGoal:!0},spud_to_total_depth_time:{label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",unit:"h",isMetricGoal:!0},cost_per_ft:{label:"Cost/".concat(i(e("length")).singular),key:"cost_per_ft",convertToShow:p,convertToSave:o,isMetricGoal:!0},cost_per_lat_ft:{label:"Lateral Cost/".concat(i(e("length")).singular),key:"cost_per_lat_ft",convertToShow:p,convertToSave:o,isMetricGoal:!0},gross_tripping_in_speed_total:{label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},gross_tripping_out_speed_total:{label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},tripping_in_connection_time:{label:"Tripping in (Connection)",key:"tripping_in_connection_time",unitType:"time",unit:"min",isMetricGoal:!0},tripping_in_running_time:{label:"Tripping in (Running)",key:"tripping_in_running_time",unitType:"time",unit:"min",isMetricGoal:!0},trip_gross_tripping_in_speed_cased:{label:"Cased Hole Tripping In Speed (With Connections)",key:"trip_gross_tripping_in_speed_cased",unitType:"velocity",unit:"ft/h",isMetricGoal:!1},trip_gross_tripping_in_speed_open:{label:"Open Hole Tripping In Speed (With Connections)",key:"trip_gross_tripping_in_speed_open",unitType:"velocity",unit:"ft/h",isMetricGoal:!1},trip_tripping_in_time_cased:{label:"Cased Hole Tripping In Time",key:"trip_tripping_in_time_cased",unitType:"time",unit:"min",isMetricGoal:!1},trip_tripping_in_time_open:{label:"Open Hole Tripping In Time",key:"trip_tripping_in_time_open",unitType:"time",unit:"min",isMetricGoal:!1},trip_gross_tripping_in_time_cased:{label:"Cased Hole Tripping In Time (With Connections)",key:"trip_gross_tripping_in_time_cased",unitType:"time",unit:"min",isMetricGoal:!1},trip_gross_tripping_in_time_open:{label:"Open Hole Tripping In Time (With Connections)",key:"trip_gross_tripping_in_time_open",unitType:"time",unit:"min",isMetricGoal:!1},gross_tripping_out_speed_cased:{label:"Cased Hole Tripping Out Speed (With Connections)",key:"gross_tripping_out_speed_cased",unitType:"velocity",unit:"ft/h",isMetricGoal:!1},gross_tripping_out_speed_open:{label:"Open Hole Tripping Out Speed (With Connections)",key:"gross_tripping_out_speed_open",unitType:"velocity",unit:"ft/h",isMetricGoal:!1},gross_tripping_out_time_cased:{label:"Cased Hole Tripping Out Time (With Connections)",key:"gross_tripping_out_time_cased",unitType:"time",unit:"min",isMetricGoal:!1},gross_tripping_out_time_open:{label:"Open Hole Tripping Out Time (With Connections)",key:"gross_tripping_out_time_open",unitType:"time",unit:"min",isMetricGoal:!1},tripping_out_time_cased:{label:"Cased Hole Tripping Out Time",key:"tripping_out_time_cased",unitType:"time",unit:"min",isMetricGoal:!1},tripping_out_time_open:{label:"Open Hole Tripping Out Time",key:"tripping_out_time_open",unitType:"time",unit:"min",isMetricGoal:!1},tripping_in_speed:{label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},tripping_in_speed_cased:{label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},tripping_in_speed_open:{label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},tripping_out_connection_time:{label:"Tripping out (Connection)",key:"tripping_out_connection_time",unitType:"time",unit:"min",isMetricGoal:!1},tripping_out_running_time:{label:"Tripping out (Running)",key:"tripping_out_running_time",unitType:"time",unit:"min",isMetricGoal:!1},tripping_out_speed:{label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},tripping_out_speed_cased:{label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},tripping_out_speed_open:{label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},gross_tripping_in_speed_cased:{label:"Cased Hole Tripping In Speed (With Connections)",key:"gross_tripping_in_speed_cased",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},gross_tripping_in_speed_open:{label:"Open Hole Tripping In Speed (With Connections)",key:"gross_tripping_in_speed_open",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},gross_tripping_in_time_cased:{label:"Cased Hole Tripping In Time (With Connections)",key:"gross_tripping_in_time_cased",unitType:"time",unit:"min",isMetricGoal:!0},gross_tripping_in_time_open:{label:"Open Hole Tripping In Time (With Connections)",key:"gross_tripping_in_time_open",unitType:"time",unit:"min",isMetricGoal:!0},slips_to_slips_average:{label:"Casing Slips to Slips",key:"slips_to_slips_average",unitType:"time",unit:"s",isMetricGoal:!0},tripping_in_time_cased:{label:"Cased Hole Tripping In Time",key:"tripping_in_time_cased",unitType:"time",unit:"min",isMetricGoal:!1},tripping_in_time_open:{label:"Open Hole Tripping In Time",key:"tripping_in_time_open",unitType:"time",unit:"min",isMetricGoal:!1},casing_tripping_in_speed_cased:{label:"Cased Hole Tripping In Speed",key:"casing_tripping_in_speed_cased",unitType:"velocity",unit:"ft/h",isMetricGoal:!1},casing_tripping_in_speed_open:{label:"Open Hole Tripping In Speed",key:"casing_tripping_in_speed_open",unitType:"velocity",unit:"ft/h",isMetricGoal:!1},bottom_to_slips_average:{label:"Bottom to Slips Time",key:"bottom_to_slips_average",unitType:"time",unit:"s",isMetricGoal:!0},drilling_connection_average:{label:"Slips to Slips Time",key:"drilling_connection_average",unitType:"time",unit:"s",isMetricGoal:!0},slips_to_bottom_average:{label:"Slips to Bottom Time",key:"slips_to_bottom_average",unitType:"time",unit:"s",isMetricGoal:!0},weight_to_weight_average:{label:"Weight to Weight Time",key:"weight_to_weight_average",unitType:"time",unit:"s",isMetricGoal:!0},rop:{label:"On-Bottom ROP",key:"rop",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},rop_gross:{label:"Gross ROP",key:"rop_gross",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},rop_rotary:{label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",unit:"ft/h",isMetricGoal:!0},rop_slide:{label:"Slide ROP",key:"rop_slide",unitType:"velocity",unit:"ft/h",isMetricGoal:!0}};export{_ as GoalsConfig};
@@ -0,0 +1,4 @@
1
+ export { GoalsConfig } from './goalsConfig';
2
+ export type { GoalConfig } from './goalsConfig';
3
+ export { convertGoalValue, getGoalsConfig, getGoalsUnitDisplay } from './utils';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/goalsConfig/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ export{GoalsConfig}from"./goalsConfig.js";export{convertGoalValue,getGoalsConfig,getGoalsUnitDisplay}from"./utils.js";
@@ -0,0 +1,10 @@
1
+ import { GoalConfig } from './goalsConfig';
2
+ declare type ConversionWay = 'TO_SHOW' | 'TO_SAVE';
3
+ /**
4
+ * Goals-config specific unit display
5
+ */
6
+ export declare const getGoalsUnitDisplay: (goalKey: string) => string;
7
+ export declare const convertGoalValue: (goalValue: string, goalKey: string, conversionWay?: ConversionWay) => string;
8
+ export declare const getGoalsConfig: () => Record<string, GoalConfig>;
9
+ export {};
10
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/goalsConfig/utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAe,MAAM,eAAe,CAAC;AAExD,aAAK,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,mBAAmB,YAAa,MAAM,WAYlD,CAAC;AAEF,eAAO,MAAM,gBAAgB,cAChB,MAAM,WACR,MAAM,kBACA,aAAa,WA6B7B,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,OAAO,MAAM,EAAE,UAAU,CAAgB,CAAC"}
@@ -0,0 +1 @@
1
+ import{round as r}from"lodash";import{getUnitPreference as n,getUnitDisplay as t,convertValue as i}from"../convert.js";import{GoalsConfig as o}from"./goalsConfig.js";var e=function(r){if(!o[r])return"";var i=o[r],e=i.unit,u=i.unitType,f=i.formatUnitDisplay;return u||f?f?f(n(u)):"percent"===u?e:t(u):""},u=function(t,e,u){if(void 0===u&&(u="TO_SHOW"),!o[e])return t;var f=o[e],v=f.unitType,a=f.unit,p=f.convertToShow,c=f.convertToSave;if(!a&&!p&&!c)return t;if("TO_SHOW"===u){if(""===t)return t;var m=p?p(t):i(+t,v,a,null,16),S=r(m,2);return String(S)}return"TO_SAVE"===u?t?String(c?c(t):i(+t,v,n(v),a,16)):"":void 0},f=function(){return o};export{u as convertGoalValue,f as getGoalsConfig,e as getGoalsUnitDisplay};
package/utils/index.d.ts CHANGED
@@ -58,6 +58,7 @@ export const getUnitSystem: () => string;
58
58
  export const getUnitsByType: (type: string) => any[];
59
59
  export const getUserUnits: typeof convert.getUserUnits;
60
60
  import * as goals from "./goals";
61
+ import * as goalsConfig from "./goalsConfig";
61
62
  import { jsonaDataFormatter } from "./jsonaDataFormatter";
62
63
  import * as lasParser from "./lasParser";
63
64
  import * as main from "./main";
@@ -88,5 +89,5 @@ export const updateUserUnits: ({ userUnits, companyUnits, companyCustomUnitSyste
88
89
  companyUnits: Record<string, string>;
89
90
  }) => void;
90
91
  import { isSuggestionsListOpened } from "../components/UserMention/utils";
91
- export { StageDesignVActualUtils, accuracy, alerts, apps, audio, bha, casing, chartSeries, enableHighchartsDelayedTooltip, completion, convert, convertKeysToCamelCase, convertKeysToSnakeCase, createNotification, csvExport, dashboardReports, devcenter, drillstring, drillstringUtils, env, feed, fileExtension, fluidCheckUtils, formatting, ga, formatMentionText, getConvertKeys, getLocalStorageItem, goals, jsonaDataFormatter, lasParser, main, mapUnits, metricsUtils, mobileDetect, nativeMessages, notifications, permissions, removeNotification, reports, resolveWellHubSlug, sharedDCStore, showErrorNotification, showInfoNotification, showNeutralNotification, showSuccessNotification, showToast, showWarningNotification, themeVariables, time, torqueAndHookloadUtils, updateLocalStorageItem, isSuggestionsListOpened };
92
+ export { StageDesignVActualUtils, accuracy, alerts, apps, audio, bha, casing, chartSeries, enableHighchartsDelayedTooltip, completion, convert, convertKeysToCamelCase, convertKeysToSnakeCase, createNotification, csvExport, dashboardReports, devcenter, drillstring, drillstringUtils, env, feed, fileExtension, fluidCheckUtils, formatting, ga, formatMentionText, getConvertKeys, getLocalStorageItem, goals, goalsConfig, jsonaDataFormatter, lasParser, main, mapUnits, metricsUtils, mobileDetect, nativeMessages, notifications, permissions, removeNotification, reports, resolveWellHubSlug, sharedDCStore, showErrorNotification, showInfoNotification, showNeutralNotification, showSuccessNotification, showToast, showWarningNotification, themeVariables, time, torqueAndHookloadUtils, updateLocalStorageItem, isSuggestionsListOpened };
92
93
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":";;;;;;;;;;;AA6FA,6BAAuE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AADvE,yBAA+D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":";;;;;;;;;;;AA8FA,6BAAuE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AADvE,yBAA+D"}
package/utils/index.js CHANGED
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import*as r from"./StageDesignVActualUtils.js";export{r as StageDesignVActualUtils};import*as o from"./alerts.js";export{o as alerts};import*as e from"./audio.js";export{e as audio};import*as s from"./casing/index.js";export{s as casing};import*as a from"./chartSeries.js";export{a as chartSeries};import*as i from"./completion.js";export{i as completion};import*as p from"./components.js";import{convertArray as n,convertValue as m,getAllUnitTypes as f,getDefaultImperialUnit as c,getDefaultUnits as l,getUnitDescription as j,getUnitDisplay as x,getUnitPlural as u,getUnitPreference as g,getUnitsByType as y,getUnitSingular as d,getUnitSystem as b,updateUserUnits as U,getUserUnits as v,subscribeForUserUnitsUpdates as h,convertImmutables as O,convertImmutablesByBatch as S,getUniqueUnitsByType as D}from"./convert.js";import*as w from"./convert.js";export{w as convert};import*as P from"./csvExport.js";export{P as csvExport};import*as T from"./devcenter.js";export{T as devcenter};import*as C from"./drillstring/index.js";export{C as drillstring};import*as N from"./DrillstringUtils.js";export{N as drillstringUtils};import*as I from"./FluidCheckUtils.js";export{I as fluidCheckUtils};import*as k from"./formatting.js";export{k as formatting};import*as A from"./ga.js";export{A as ga};import*as E from"./goals.js";export{E as goals};import*as H from"./lasParser.js";export{H as lasParser};import*as B from"./main.js";export{B as main};import*as F from"./mapUnits.js";export{F as mapUnits};import*as K from"./mapbox.js";import*as L from"./metrics/index.js";export{L as metricsUtils};import*as M from"./mobileDetect.js";export{M as mobileDetect};import*as V from"./nativeMessages.js";export{V as nativeMessages};import*as W from"./notifications.js";export{W as notifications};import*as q from"./feed.js";export{q as feed};import*as J from"./permissions.js";export{J as permissions};import*as R from"./reports.js";export{R as reports};import*as z from"./time.js";export{z as time};import*as G from"./torqueAndHookloadUtils.js";export{G as torqueAndHookloadUtils};import*as Q from"./accuracy.js";export{Q as accuracy};export{createNotification,removeNotification,showErrorNotification,showInfoNotification,showNeutralNotification,showSuccessNotification,showWarningNotification}from"./notificationToasts.js";export{showToast}from"./devcenterToasts.js";export{convertKeysToCamelCase,convertKeysToSnakeCase,getConvertKeys}from"./convertKeys.js";import*as X from"./dashboardReports.js";export{X as dashboardReports};import*as Y from"./apps.js";export{Y as apps};import*as Z from"./themeVariables.js";export{Z as themeVariables};import*as $ from"./env.js";export{$ as env};import*as _ from"./fileExtension.js";export{_ as fileExtension};export{jsonaDataFormatter}from"./jsonaDataFormatter.js";import*as tt from"./bha.js";export{tt as bha};export{getLocalStorageItem,updateLocalStorageItem}from"./localStorage.js";export{sharedDCStore}from"./sharedDCStore.js";export{formatMentionText,isSuggestionsListOpened}from"../components/UserMention/utils/index.js";export{default as resolveWellHubSlug}from"./resolveWellHubSlug.js";export{enableHighchartsDelayedTooltip}from"./delayedHighcharts.js";export{delay}from"./delay.js";function rt(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,e)}return o}var ot={get:function(t,r){var o=t[r];return"function"==typeof o?function(){for(var r=arguments.length,e=new Array(r),s=0;s<r;s++)e[s]=arguments[s];return o.apply(t,e.map((function(t){return t.toJS?t.toJS():t})))}:o}};function et(r){return new Proxy(function(r){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?rt(Object(e),!0).forEach((function(o){t(r,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):rt(Object(e)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}))}return r}({},r),ot)}var st=n,at=m,it=f,pt=c,nt=l,mt=j,ft=x,ct=u,lt=g,jt=y,xt=d,ut=b,gt=U,yt=v,dt=h,bt=O,Ut=S,vt=D,ht=et(K),Ot=et(p);export{Ot as components,st as convertArray,bt as convertImmutables,Ut as convertImmutablesByBatch,at as convertValue,it as getAllUnitTypes,pt as getDefaultImperialUnit,nt as getDefaultUnits,vt as getUniqueUnitsByType,mt as getUnitDescription,ft as getUnitDisplay,ct as getUnitPlural,lt as getUnitPreference,xt as getUnitSingular,ut as getUnitSystem,jt as getUnitsByType,yt as getUserUnits,ht as mapbox,dt as subscribeForUserUnitsUpdates,gt as updateUserUnits};
1
+ import t from"@babel/runtime/helpers/defineProperty";import*as r from"./StageDesignVActualUtils.js";export{r as StageDesignVActualUtils};import*as o from"./alerts.js";export{o as alerts};import*as e from"./audio.js";export{e as audio};import*as s from"./casing/index.js";export{s as casing};import*as a from"./chartSeries.js";export{a as chartSeries};import*as i from"./completion.js";export{i as completion};import*as p from"./components.js";import{convertArray as n,convertValue as m,getAllUnitTypes as f,getDefaultImperialUnit as c,getDefaultUnits as l,getUnitDescription as j,getUnitDisplay as x,getUnitPlural as g,getUnitPreference as u,getUnitsByType as y,getUnitSingular as d,getUnitSystem as b,updateUserUnits as U,getUserUnits as v,subscribeForUserUnitsUpdates as h,convertImmutables as O,convertImmutablesByBatch as S,getUniqueUnitsByType as D}from"./convert.js";import*as w from"./convert.js";export{w as convert};import*as P from"./csvExport.js";export{P as csvExport};import*as C from"./devcenter.js";export{C as devcenter};import*as T from"./drillstring/index.js";export{T as drillstring};import*as N from"./DrillstringUtils.js";export{N as drillstringUtils};import*as I from"./FluidCheckUtils.js";export{I as fluidCheckUtils};import*as k from"./formatting.js";export{k as formatting};import*as A from"./ga.js";export{A as ga};import*as E from"./goals.js";export{E as goals};import*as H from"./goalsConfig/index.js";export{H as goalsConfig};import*as B from"./lasParser.js";export{B as lasParser};import*as F from"./main.js";export{F as main};import*as K from"./mapUnits.js";export{K as mapUnits};import*as L from"./mapbox.js";import*as M from"./metrics/index.js";export{M as metricsUtils};import*as V from"./mobileDetect.js";export{V as mobileDetect};import*as W from"./nativeMessages.js";export{W as nativeMessages};import*as q from"./notifications.js";export{q as notifications};import*as J from"./feed.js";export{J as feed};import*as R from"./permissions.js";export{R as permissions};import*as z from"./reports.js";export{z as reports};import*as G from"./time.js";export{G as time};import*as Q from"./torqueAndHookloadUtils.js";export{Q as torqueAndHookloadUtils};import*as X from"./accuracy.js";export{X as accuracy};export{createNotification,removeNotification,showErrorNotification,showInfoNotification,showNeutralNotification,showSuccessNotification,showWarningNotification}from"./notificationToasts.js";export{showToast}from"./devcenterToasts.js";export{convertKeysToCamelCase,convertKeysToSnakeCase,getConvertKeys}from"./convertKeys.js";import*as Y from"./dashboardReports.js";export{Y as dashboardReports};import*as Z from"./apps.js";export{Z as apps};import*as $ from"./themeVariables.js";export{$ as themeVariables};import*as _ from"./env.js";export{_ as env};import*as tt from"./fileExtension.js";export{tt as fileExtension};export{jsonaDataFormatter}from"./jsonaDataFormatter.js";import*as rt from"./bha.js";export{rt as bha};export{getLocalStorageItem,updateLocalStorageItem}from"./localStorage.js";export{sharedDCStore}from"./sharedDCStore.js";export{formatMentionText,isSuggestionsListOpened}from"../components/UserMention/utils/index.js";export{default as resolveWellHubSlug}from"./resolveWellHubSlug.js";export{enableHighchartsDelayedTooltip}from"./delayedHighcharts.js";export{delay}from"./delay.js";function ot(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,e)}return o}var et={get:function(t,r){var o=t[r];return"function"==typeof o?function(){for(var r=arguments.length,e=new Array(r),s=0;s<r;s++)e[s]=arguments[s];return o.apply(t,e.map((function(t){return t.toJS?t.toJS():t})))}:o}};function st(r){return new Proxy(function(r){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?ot(Object(e),!0).forEach((function(o){t(r,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):ot(Object(e)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}))}return r}({},r),et)}var at=n,it=m,pt=f,nt=c,mt=l,ft=j,ct=x,lt=g,jt=u,xt=y,gt=d,ut=b,yt=U,dt=v,bt=h,Ut=O,vt=S,ht=D,Ot=st(L),St=st(p);export{St as components,at as convertArray,Ut as convertImmutables,vt as convertImmutablesByBatch,it as convertValue,pt as getAllUnitTypes,nt as getDefaultImperialUnit,mt as getDefaultUnits,ht as getUniqueUnitsByType,ft as getUnitDescription,ct as getUnitDisplay,lt as getUnitPlural,jt as getUnitPreference,gt as getUnitSingular,ut as getUnitSystem,xt as getUnitsByType,dt as getUserUnits,Ot as mapbox,bt as subscribeForUserUnitsUpdates,yt as updateUserUnits};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=utils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../../../src/utils/metrics/__tests__/utils.test.js"],"names":[],"mappings":""}
@@ -625,165 +625,5 @@ export namespace tripping_in_running_time {
625
625
  const from_44: string;
626
626
  export { from_44 as from };
627
627
  }
628
- export namespace tripping_out_connection_time {
629
- const label_59: string;
630
- export { label_59 as label };
631
- const key_59: string;
632
- export { key_59 as key };
633
- const unitType_45: string;
634
- export { unitType_45 as unitType };
635
- const from_45: string;
636
- export { from_45 as from };
637
- }
638
- export namespace tripping_out_running_time {
639
- const label_60: string;
640
- export { label_60 as label };
641
- const key_60: string;
642
- export { key_60 as key };
643
- const unitType_46: string;
644
- export { unitType_46 as unitType };
645
- const from_46: string;
646
- export { from_46 as from };
647
- }
648
- export namespace wellgoals_tripping_in_speed_with_connection_cased {
649
- const label_61: string;
650
- export { label_61 as label };
651
- const key_61: string;
652
- export { key_61 as key };
653
- const unitType_47: string;
654
- export { unitType_47 as unitType };
655
- const from_47: string;
656
- export { from_47 as from };
657
- }
658
- export namespace wellgoals_tripping_in_speed_with_connection_open {
659
- const label_62: string;
660
- export { label_62 as label };
661
- const key_62: string;
662
- export { key_62 as key };
663
- const unitType_48: string;
664
- export { unitType_48 as unitType };
665
- const from_48: string;
666
- export { from_48 as from };
667
- }
668
- export namespace wellgoals_tripping_in_time_cased {
669
- const label_63: string;
670
- export { label_63 as label };
671
- const key_63: string;
672
- export { key_63 as key };
673
- const unitType_49: string;
674
- export { unitType_49 as unitType };
675
- const from_49: string;
676
- export { from_49 as from };
677
- }
678
- export namespace wellgoals_tripping_in_time_open {
679
- const label_64: string;
680
- export { label_64 as label };
681
- const key_64: string;
682
- export { key_64 as key };
683
- const unitType_50: string;
684
- export { unitType_50 as unitType };
685
- const from_50: string;
686
- export { from_50 as from };
687
- }
688
- export namespace wellgoals_tripping_in_time_with_connections_cased {
689
- const label_65: string;
690
- export { label_65 as label };
691
- const key_65: string;
692
- export { key_65 as key };
693
- const unitType_51: string;
694
- export { unitType_51 as unitType };
695
- const from_51: string;
696
- export { from_51 as from };
697
- }
698
- export namespace wellgoals_tripping_in_time_with_connections_open {
699
- const label_66: string;
700
- export { label_66 as label };
701
- const key_66: string;
702
- export { key_66 as key };
703
- const unitType_52: string;
704
- export { unitType_52 as unitType };
705
- const from_52: string;
706
- export { from_52 as from };
707
- }
708
- export namespace wellgoals_tripping_out_speed_with_connections_cased {
709
- const label_67: string;
710
- export { label_67 as label };
711
- const key_67: string;
712
- export { key_67 as key };
713
- const unitType_53: string;
714
- export { unitType_53 as unitType };
715
- const from_53: string;
716
- export { from_53 as from };
717
- }
718
- export namespace wellgoals_tripping_out_speed_with_connections_open {
719
- const label_68: string;
720
- export { label_68 as label };
721
- const key_68: string;
722
- export { key_68 as key };
723
- const unitType_54: string;
724
- export { unitType_54 as unitType };
725
- const from_54: string;
726
- export { from_54 as from };
727
- }
728
- export namespace wellgoals_tripping_out_time_with_connections_cased {
729
- const label_69: string;
730
- export { label_69 as label };
731
- const key_69: string;
732
- export { key_69 as key };
733
- const unitType_55: string;
734
- export { unitType_55 as unitType };
735
- const from_55: string;
736
- export { from_55 as from };
737
- }
738
- export namespace wellgoals_tripping_out_time_with_connections_open {
739
- const label_70: string;
740
- export { label_70 as label };
741
- const key_70: string;
742
- export { key_70 as key };
743
- const unitType_56: string;
744
- export { unitType_56 as unitType };
745
- const from_56: string;
746
- export { from_56 as from };
747
- }
748
- export namespace wellgoals_casing_tripping_in_time_cased {
749
- const label_71: string;
750
- export { label_71 as label };
751
- const key_71: string;
752
- export { key_71 as key };
753
- const unitType_57: string;
754
- export { unitType_57 as unitType };
755
- const from_57: string;
756
- export { from_57 as from };
757
- }
758
- export namespace wellgoals_casing_tripping_in_time_open {
759
- const label_72: string;
760
- export { label_72 as label };
761
- const key_72: string;
762
- export { key_72 as key };
763
- const unitType_58: string;
764
- export { unitType_58 as unitType };
765
- const from_58: string;
766
- export { from_58 as from };
767
- }
768
- export namespace wellgoals_casing_tripping_in_speed_cased {
769
- const label_73: string;
770
- export { label_73 as label };
771
- const key_73: string;
772
- export { key_73 as key };
773
- const unitType_59: string;
774
- export { unitType_59 as unitType };
775
- const from_59: string;
776
- export { from_59 as from };
777
- }
778
- export namespace wellgoals_casing_tripping_in_speed_open {
779
- const label_74: string;
780
- export { label_74 as label };
781
- const key_74: string;
782
- export { key_74 as key };
783
- const unitType_60: string;
784
- export { unitType_60 as unitType };
785
- const from_60: string;
786
- export { from_60 as from };
787
- }
788
628
  import { convertPercentageMetrics } from "./utils";
789
629
  //# sourceMappingURL=metricsConfig.d.ts.map
@@ -1 +1 @@
1
- import{getUnitDescription as e,getUnitPreference as i,convertValue as t}from"../convert.js";import{convertPercentageMetrics as n}from"./utils.js";var o={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft"},l={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0},p={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0},r={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft"},_={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:n,isBiggestBest:!0},s={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:n},a={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:n,isBiggestBest:!0},g={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0},m={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0},y={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0},u={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0},c={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0},T={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},d={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},f={label:"On Bottom Time",key:"on_bottom_time",to:"h"},h={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:n,isBiggestBest:!0},b={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s"},k={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time"},C={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time"},B={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time"},v={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time"},w={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},H={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},S={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},O={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},I={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},D={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},R={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},W={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},P={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},E={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},G={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},L={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},N={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time"},j={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h"},V={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h"},x={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h"},A={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h"},U={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h"},q={label:"Cost/".concat(e(i("length")).singular),key:"cost_per_ft",customConvert:function(e){return e/t(1,"length","ft")}},z={label:"Lateral Cost/".concat(e(i("length")).singular),key:"cost_per_lat_ft",customConvert:function(e){return e/t(1,"length","ft")}},F={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h"},J={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h"},K={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d"},M={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d"},Q={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d"},X={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d"},Y={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},Z={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},$={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},ee={label:"Cumulative Tortuosity",key:"cumulative_tortuosity"},ie={label:"Drilling Stand Count",key:"weight_to_weight_count"},te={label:"Tripping Connection Count",key:"tripping_connection_count"},ne={label:"Casing Stand Count",key:"slips_to_slips_count"},oe={label:"Total BHA's",key:"bha_count"},le={label:"Cased Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_cased",unitType:"time",from:"min"},pe={label:"Open Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_open",unitType:"time",from:"min"},re={label:"Tripping in (Connection)",key:"tripping_in_connection_time",unitType:"time",from:"min"},_e={label:"Tripping in (Running)",key:"tripping_in_running_time",unitType:"time",from:"min"},se={label:"Tripping out (Connection)",key:"tripping_out_connection_time",unitType:"time",from:"min"},ae={label:"Tripping out (Running)",key:"tripping_out_running_time",unitType:"time",from:"min"},ge={label:"Cased Hole Tripping In Speed (With Connections)",key:"wellgoals_tripping_in_speed_with_connection_cased",unitType:"velocity",from:"ft/h"},me={label:"Open Hole Tripping In Speed (With Connections)",key:"wellgoals_tripping_in_speed_with_connection_open",unitType:"velocity",from:"ft/h"},ye={label:"Cased Hole Tripping In Time",key:"wellgoals_tripping_in_time_cased",unitType:"time",from:"min"},ue={label:"Open Hole Tripping In Time",key:"wellgoals_tripping_in_time_open",unitType:"time",from:"min"},ce={label:"Cased Hole Tripping In Time (With Connections)",key:"wellgoals_tripping_in_time_with_connections_cased",unitType:"time",from:"min"},Te={label:"Open Hole Tripping In Time (With Connections)",key:"wellgoals_tripping_in_time_with_connections_open",unitType:"time",from:"min"},de={label:"Cased Hole Tripping Out Speed (With Connections)",key:"wellgoals_tripping_out_speed_with_connections_cased",unitType:"velocity",from:"ft/h"},fe={label:"Open Hole Tripping Out Speed (With Connections)",key:"wellgoals_tripping_out_speed_with_connections_open",unitType:"velocity",from:"ft/h"},he={label:"Cased Hole Tripping Out Time (With Connections)",key:"wellgoals_tripping_out_time_with_connections_cased",unitType:"time",from:"min"},be={label:"Open Hole Tripping Out Time (With Connections)",key:"wellgoals_tripping_out_time_with_connections_open",unitType:"time",from:"min"},ke={label:"Cased Hole Tripping In Time",key:"wellgoals_casing_tripping_in_time_cased",unitType:"time",from:"min"},Ce={label:"Open Hole Tripping In Time",key:"wellgoals_casing_tripping_in_time_open",unitType:"time",from:"min"},Be={label:"Cased Hole Tripping In Speed",key:"wellgoals_casing_tripping_in_speed_cased",unitType:"velocity",from:"ft/h"},ve={label:"Open Hole Tripping In Speed",key:"wellgoals_casing_tripping_in_speed_open",unitType:"velocity",from:"ft/h"};export{oe as bha_count,C as bottom_to_slips_average,$ as build_rate,J as circulating_time,q as cost_per_ft,z as cost_per_lat_ft,ee as cumulative_tortuosity,p as drilled_feet_rotary,_ as drilled_feet_rotary_percentage,r as drilled_feet_slide,s as drilled_feet_slide_percentage,b as drilling_connection_average,a as drilling_percentage,T as drilling_time_rotary,d as drilling_time_slide,c as feet_per_day,Y as gross_time,x as gross_tripping_in_speed,j as gross_tripping_in_speed_cased,V as gross_tripping_in_speed_open,A as gross_tripping_in_speed_total,le as gross_tripping_in_time_cased,pe as gross_tripping_in_time_open,U as gross_tripping_out_speed_total,o as hole_depth,l as hole_depth_change,F as npt,h as on_bottom_percentage,f as on_bottom_time,v as pumps_on_to_bottom_average,g as rop,u as rop_gross,m as rop_rotary,y as rop_slide,B as slips_to_bottom_average,N as slips_to_slips,ne as slips_to_slips_count,X as spud_to_landing_point,K as spud_to_rig_release_time,M as spud_to_target,Q as spud_to_total_depth_time,te as tripping_connection_count,re as tripping_in_connection_time,E as tripping_in_connection_time_cased,_e as tripping_in_running_time,w as tripping_in_speed,S as tripping_in_speed_cased,I as tripping_in_speed_open,P as tripping_in_time,R as tripping_in_time_cased,W as tripping_in_time_open,L as tripping_in_time_with_connection,G as tripping_in_time_with_connection_open,se as tripping_out_connection_time,ae as tripping_out_running_time,H as tripping_out_speed,O as tripping_out_speed_cased,D as tripping_out_speed_open,Z as turn_rate,k as weight_to_weight_average,ie as weight_to_weight_count,Be as wellgoals_casing_tripping_in_speed_cased,ve as wellgoals_casing_tripping_in_speed_open,ke as wellgoals_casing_tripping_in_time_cased,Ce as wellgoals_casing_tripping_in_time_open,ge as wellgoals_tripping_in_speed_with_connection_cased,me as wellgoals_tripping_in_speed_with_connection_open,ye as wellgoals_tripping_in_time_cased,ue as wellgoals_tripping_in_time_open,ce as wellgoals_tripping_in_time_with_connections_cased,Te as wellgoals_tripping_in_time_with_connections_open,de as wellgoals_tripping_out_speed_with_connections_cased,fe as wellgoals_tripping_out_speed_with_connections_open,he as wellgoals_tripping_out_time_with_connections_cased,be as wellgoals_tripping_out_time_with_connections_open};
1
+ import{getUnitDescription as e,getUnitPreference as t,convertValue as i}from"../convert.js";import{convertPercentageMetrics as n}from"./utils.js";var o={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft"},l={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0},p={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0},r={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft"},s={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:n,isBiggestBest:!0},a={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:n},g={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:n,isBiggestBest:!0},_={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0},m={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0},y={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0},u={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0},c={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0},d={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},T={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},f={label:"On Bottom Time",key:"on_bottom_time",to:"h"},b={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:n,isBiggestBest:!0},h={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s"},k={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time"},B={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time"},v={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time"},C={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time"},S={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},H={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},O={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},D={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},I={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},w={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},R={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},P={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},E={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},G={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},L={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},N={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},j={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time"},V={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h"},W={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h"},x={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h"},A={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h"},U={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h"},q={label:"Cost/".concat(e(t("length")).singular),key:"cost_per_ft",customConvert:function(e){return e/i(1,"length","ft")}},z={label:"Lateral Cost/".concat(e(t("length")).singular),key:"cost_per_lat_ft",customConvert:function(e){return e/i(1,"length","ft")}},F={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h"},J={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h"},K={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d"},M={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d"},Q={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d"},X={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d"},Y={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},Z={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},$={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},ee={label:"Cumulative Tortuosity",key:"cumulative_tortuosity"},te={label:"Drilling Stand Count",key:"weight_to_weight_count"},ie={label:"Tripping Connection Count",key:"tripping_connection_count"},ne={label:"Casing Stand Count",key:"slips_to_slips_count"},oe={label:"Total BHA's",key:"bha_count"},le={label:"Cased Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_cased",unitType:"time",from:"min"},pe={label:"Open Hole Tripping In Time (with connection)",key:"gross_tripping_in_time_open",unitType:"time",from:"min"},re={label:"Tripping in (Connection)",key:"tripping_in_connection_time",unitType:"time",from:"min"},se={label:"Tripping in (Running)",key:"tripping_in_running_time",unitType:"time",from:"min"};export{oe as bha_count,B as bottom_to_slips_average,$ as build_rate,J as circulating_time,q as cost_per_ft,z as cost_per_lat_ft,ee as cumulative_tortuosity,p as drilled_feet_rotary,s as drilled_feet_rotary_percentage,r as drilled_feet_slide,a as drilled_feet_slide_percentage,h as drilling_connection_average,g as drilling_percentage,d as drilling_time_rotary,T as drilling_time_slide,c as feet_per_day,Y as gross_time,x as gross_tripping_in_speed,V as gross_tripping_in_speed_cased,W as gross_tripping_in_speed_open,A as gross_tripping_in_speed_total,le as gross_tripping_in_time_cased,pe as gross_tripping_in_time_open,U as gross_tripping_out_speed_total,o as hole_depth,l as hole_depth_change,F as npt,b as on_bottom_percentage,f as on_bottom_time,C as pumps_on_to_bottom_average,_ as rop,u as rop_gross,m as rop_rotary,y as rop_slide,v as slips_to_bottom_average,j as slips_to_slips,ne as slips_to_slips_count,X as spud_to_landing_point,K as spud_to_rig_release_time,M as spud_to_target,Q as spud_to_total_depth_time,ie as tripping_connection_count,re as tripping_in_connection_time,G as tripping_in_connection_time_cased,se as tripping_in_running_time,S as tripping_in_speed,O as tripping_in_speed_cased,I as tripping_in_speed_open,E as tripping_in_time,R as tripping_in_time_cased,P as tripping_in_time_open,N as tripping_in_time_with_connection,L as tripping_in_time_with_connection_open,H as tripping_out_speed,D as tripping_out_speed_cased,w as tripping_out_speed_open,Z as turn_rate,k as weight_to_weight_average,te as weight_to_weight_count};
@@ -27,4 +27,22 @@ export function getConvertedMetricValue(metricApiValue: number, metricConfig: an
27
27
  * @returns {Number}
28
28
  */
29
29
  export function convertPercentageMetrics(value: number, { precision }?: any): number;
30
+ /**
31
+ * Converts value from percents to absolute value
32
+ * @param {Number} value
33
+ * @returns {Number}
34
+ */
35
+ export function convertPercentageToSave(value: number): number;
36
+ /**
37
+ * Converts cost value to show on the UI
38
+ * @param {Number} value
39
+ * @returns {Number}
40
+ */
41
+ export function convertCostToShow(value: number): number;
42
+ /**
43
+ * Converts cost value to save
44
+ * @param {Number} value
45
+ * @returns {Number}
46
+ */
47
+ export function convertCostToSave(value: number): number;
30
48
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/metrics/utils.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,0FAIC;AAED;;;;;;;;;;;;GAYG;AACH,2FAyBC;AAED;;;;;GAKG;AACH,qFAGC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/metrics/utils.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,0FAIC;AAED;;;;;;;;;;;;GAYG;AACH,2FAyBC;AAED;;;;;GAKG;AACH,qFAGC;AAED;;;;GAIG;AACH,+DAEC;AAED;;;;GAIG;AACH,yDAEC;AAED;;;;GAIG;AACH,yDAEC"}
@@ -1 +1 @@
1
- import{round as r,identity as i}from"lodash";import{getUnitDisplay as o,convertValue as t}from"../convert.js";function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.formatUnitDisplay,n=void 0===t?i:t,e=r.to,u=r.unitType;return e||u?n(e||o(u)):""}function e(i,o){if(!Number.isFinite(i)||!o)return null;var n=o.unitType,e=o.from,u=o.to,v=o.customConvert,a=o.precision,f=void 0===a?2:a,l=o.allowNegativeValue,m=void 0!==l&&l;if(v)return v(i,o);var p=n?t(i,n,e,u,f):i;return p=r(p,f),p=m?p:Math.max(p,0)}function u(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=o.precision,n=void 0===t?2:t,e=100*i;return r(e>100&&e<101.5?100:e,n)}export{u as convertPercentageMetrics,e as getConvertedMetricValue,n as getMetricUnitDisplay};
1
+ import{round as t,identity as n}from"lodash";import{getUnitDisplay as r,convertValue as i}from"../convert.js";function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.formatUnitDisplay,o=void 0===i?n:i,e=t.to,u=t.unitType;return e||u?o(e||r(u)):""}function e(n,r){if(!Number.isFinite(n)||!r)return null;var o=r.unitType,e=r.from,u=r.to,f=r.customConvert,v=r.precision,a=void 0===v?2:v,l=r.allowNegativeValue,c=void 0!==l&&l;if(f)return f(n,r);var m=o?i(n,o,e,u,a):n;return m=t(m,a),m=c?m:Math.max(m,0)}function u(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.precision,o=void 0===i?2:i,e=100*n;return t(e>100&&e<101.5?100:e,o)}function f(t){return Number(t)/100}function v(t){return t/i(1,"length","ft")}function a(t){return t*i(1,"length","ft")}export{a as convertCostToSave,v as convertCostToShow,u as convertPercentageMetrics,f as convertPercentageToSave,e as getConvertedMetricValue,o as getMetricUnitDisplay};