@corva/ui 0.56.0-6 → 0.56.0-8

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.
Files changed (45) hide show
  1. package/CLI/hocs/constants.d.ts.map +1 -1
  2. package/CLI/hocs/utils.d.ts +0 -3
  3. package/CLI/hocs/utils.d.ts.map +1 -1
  4. package/CLI/hocs/utils.js +1 -1
  5. package/cjs-bundle/CLI/hocs/utils.js +1 -1
  6. package/cjs-bundle/components/Chart/components/ChartWrapper.js +1 -1
  7. package/cjs-bundle/components/Chart/effects/useChartModifier.js +1 -1
  8. package/cjs-bundle/components/DevCenter/AppHeader/AppHeader.js +1 -1
  9. package/cjs-bundle/components/StatusBadge/components/ReportIssueModal.js +1 -1
  10. package/cjs-bundle/constants/index.js +1 -1
  11. package/cjs-bundle/constants/localStorageKeys.js +1 -0
  12. package/cjs-bundle/utils/reports.js +1 -1
  13. package/clients/api/httpMessages.d.ts.map +1 -1
  14. package/clients/jsonApi/methods.d.ts.map +1 -1
  15. package/components/AssetEditor/utils/index.d.ts.map +1 -1
  16. package/components/Chart/components/ChartWrapper.d.ts +2 -1
  17. package/components/Chart/components/ChartWrapper.d.ts.map +1 -1
  18. package/components/Chart/components/ChartWrapper.js +1 -1
  19. package/components/Chart/effects/useChartModifier.d.ts +2 -1
  20. package/components/Chart/effects/useChartModifier.d.ts.map +1 -1
  21. package/components/Chart/effects/useChartModifier.js +1 -1
  22. package/components/ChartActionsList/ChartActionsList.d.ts +1 -1
  23. package/components/DevCenter/AppHeader/AppHeader.js +1 -1
  24. package/components/StatusBadge/components/ReportIssueModal.d.ts.map +1 -1
  25. package/components/StatusBadge/components/ReportIssueModal.js +1 -1
  26. package/components/UserCardPopover.d.ts +2 -2
  27. package/constants/featureFlags.d.ts.map +1 -1
  28. package/constants/index.d.ts +2 -1
  29. package/constants/index.js +1 -1
  30. package/constants/localStorageKeys.d.ts +3 -0
  31. package/constants/localStorageKeys.d.ts.map +1 -0
  32. package/constants/localStorageKeys.js +1 -0
  33. package/constants/timezone.d.ts.map +1 -1
  34. package/effects/__tests__/useDevCenterApp.test.d.ts +2 -0
  35. package/effects/__tests__/useDevCenterApp.test.d.ts.map +1 -0
  36. package/effects/useDevCenterApp.d.ts +2 -2
  37. package/package.json +1 -1
  38. package/utils/audio.d.ts.map +1 -1
  39. package/utils/chartSeries.d.ts.map +1 -1
  40. package/utils/devcenter.d.ts +1 -1
  41. package/utils/devcenter.d.ts.map +1 -1
  42. package/utils/reports.d.ts +1 -0
  43. package/utils/reports.d.ts.map +1 -1
  44. package/utils/reports.js +1 -1
  45. package/utils/rollbar.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/CLI/hocs/constants.js"],"names":[],"mappings":"AAAA,sDAAuD;AACvD,kEAAmE"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/CLI/hocs/constants.js"],"names":[],"mappings":"AAGA,sDAAuD;AACvD,kEAAmE"}
@@ -1,5 +1,2 @@
1
- export function getLocalAppData(appKey: any): any;
2
- export function updateLocalAppData(appKey: any, newData: any): void;
3
1
  export const isPDFReportView: any;
4
- export function getAppCoordinates(manifest: any): any;
5
2
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/CLI/hocs/utils.js"],"names":[],"mappings":"AAIA,kDAEC;AAED,oEAGC;AAED,kCAEE;AAEK,sDAUN"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/CLI/hocs/utils.js"],"names":[],"mappings":"AAKA,kCAEE"}
package/CLI/hocs/utils.js CHANGED
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import"../../constants/apps.js";import{LOCAL_STORAGE_PDF_REPORT_VIEW_KEY as e}from"./constants.js";var t=JSON.parse(localStorage.getItem(e)||"false");export{t as isPDFReportView};
1
+ import{LOCAL_STORAGE_PDF_REPORT_VIEW_KEY as t}from"./constants.js";var a=JSON.parse(localStorage.getItem(t)||"false");export{a as isPDFReportView};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("@babel/runtime/helpers/defineProperty"),require("../../constants/apps.js");var e=require("./constants.js"),r=JSON.parse(localStorage.getItem(e.LOCAL_STORAGE_PDF_REPORT_VIEW_KEY)||"false");exports.isPDFReportView=r;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./constants.js"),t=JSON.parse(localStorage.getItem(e.LOCAL_STORAGE_PDF_REPORT_VIEW_KEY)||"false");exports.isPDFReportView=t;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/slicedToArray"),t=require("@material-ui/core"),o=require("lodash"),n=require("react"),i=require("../ChartWrapperContext.js"),a=require("../constants.js"),l=require("../effects/useZoom.js"),c=require("../effects/useChartModifier.js"),u=require("./AxisOverlay.js"),s=require("react/jsx-runtime");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=h(e),f=h(r);function m(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function v(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?m(Object(t),!0).forEach((function(r){d.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var C=t.makeStyles({container:{width:"100%",height:"100%",position:"relative"}}),b=function(e){var r,t,h,d,m,b,p,g=e.children,j=e.chartRef,y=e.isAxesCoordinatesShown,O=e.onCustomizeScaleClick,S=e.onZoomChangeCallback,Z=C(),E=n.useState({}),q=f.default(E,2),x=q[0],P=q[1],w=l.useZoom({chart:null===(r=j.current)||void 0===r?void 0:r.chart}),k=w.zoomStatus,z=w.zoomConfig,A=w.handleZoomEvent,H=w.handleResetZoom,M=w.isZoomEnabled,D=w.handleIsZoomEnabledChange,I=w.debouncedChartSelection;n.useEffect((function(){var e,r,t;o.isEmpty(null===(e=j.current)||void 0===e?void 0:e.chart)||P({marginBottom:null===(r=j.current)||void 0===r||null===(t=r.chart)||void 0===t?void 0:t.marginBottom})}),[]);var R=(null===(t=j.current)||void 0===t||null===(h=t.chart)||void 0===h||null===(d=h.plotBox)||void 0===d?void 0:d.height)<=a.MIN_CHART_HEIGHT;c.useChartModifier({chart:null===(m=j.current)||void 0===m?void 0:m.chart,isZoomEnabled:M,isMinHeightChart:R,onZoomChangeCallback:S,handleChartSelection:I,isAxesCoordinatesShown:y});var B={chart:null===(b=j.current)||void 0===b?void 0:b.chart,zoomConfig:z,chartStyles:x,zoomStatus:k,isZoomEnabled:M,setChartStyles:P,handleResetZoom:H,handleZoomEvent:A,isMinHeightChart:R,handleChartSelection:I,handleChangeChartStyles:function(e){P((function(r){return v(v({},r),e)}))},handleIsZoomEnabledChange:D};return s.jsx("div",{className:Z.container,children:s.jsxs(i.Provider,{value:B,children:[g,O&&(null===(p=j.current)||void 0===p?void 0:p.chart.axes.map((function(e){return s.jsx(u,v({onCustomizeScaleClick:O},e),e.coll)})))]})})};b.defaultProps={onZoomChangeCallback:function(){}},module.exports=b;
1
+ "use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/slicedToArray"),t=require("@material-ui/core"),o=require("lodash"),n=require("react"),i=require("../ChartWrapperContext.js"),a=require("../constants.js"),l=require("../effects/useZoom.js"),c=require("../effects/useChartModifier.js"),u=require("./AxisOverlay.js"),s=require("react/jsx-runtime");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=h(e),m=h(r);function f(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function v(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?f(Object(t),!0).forEach((function(r){d.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var p=t.makeStyles({container:{width:"100%",height:"100%",position:"relative"}}),b={zoomType:"xy",panning:{enabled:!0,type:"xy"}},C=function(e){var r,t,h,d,f,C,y,g=e.children,j=e.chartRef,O=e.isAxesCoordinatesShown,S=e.onCustomizeScaleClick,Z=e.onZoomChangeCallback,x=e.chartOptions,E=p(),q=n.useState({}),P=m.default(q,2),w=P[0],k=P[1],z=l.useZoom({chart:null===(r=j.current)||void 0===r?void 0:r.chart}),A=z.zoomStatus,H=z.zoomConfig,M=z.handleZoomEvent,D=z.handleResetZoom,I=z.isZoomEnabled,R=z.handleIsZoomEnabledChange,T=z.debouncedChartSelection;n.useEffect((function(){var e,r,t;o.isEmpty(null===(e=j.current)||void 0===e?void 0:e.chart)||k({marginBottom:null===(r=j.current)||void 0===r||null===(t=r.chart)||void 0===t?void 0:t.marginBottom})}),[]);var B=(null===(t=j.current)||void 0===t||null===(h=t.chart)||void 0===h||null===(d=h.plotBox)||void 0===d?void 0:d.height)<=a.MIN_CHART_HEIGHT;c.useChartModifier({chart:null===(f=j.current)||void 0===f?void 0:f.chart,chartOptions:o.merge({},b,x),isZoomEnabled:I,isMinHeightChart:B,onZoomChangeCallback:Z,handleChartSelection:T,isAxesCoordinatesShown:O});var N={chart:null===(C=j.current)||void 0===C?void 0:C.chart,zoomConfig:H,chartStyles:w,zoomStatus:A,isZoomEnabled:I,setChartStyles:k,handleResetZoom:D,handleZoomEvent:M,isMinHeightChart:B,handleChartSelection:T,handleChangeChartStyles:function(e){k((function(r){return v(v({},r),e)}))},handleIsZoomEnabledChange:R};return s.jsx("div",{className:E.container,children:s.jsxs(i.Provider,{value:N,children:[g,S&&(null===(y=j.current)||void 0===y?void 0:y.chart.axes.map((function(e){return s.jsx(u,v({onCustomizeScaleClick:S},e),e.coll)})))]})})};C.defaultProps={onZoomChangeCallback:function(){}},module.exports=C;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("@material-ui/core"),e=require("lodash"),s=require("react"),a=require("../formations.js"),o=r.makeStyles({axisGrab:{cursor:"grab"},axisCrosshair:{cursor:"crosshair"}});exports.useChartModifier=function(r){var t=r.chart,i=r.isZoomEnabled,n=r.isMinHeightChart,l=r.handleChartSelection,c=r.onZoomChangeCallback,u=r.isAxesCoordinatesShown,h=o();s.useEffect((function(){var r;if(!e.isEmpty(t)){var s={zIndex:1,color:"#ffffff",dashStyle:"dash"};t.plotBackground.element.style.cursor=i?"crosshair":"grab",t.update({chart:{plotBackgroundColor:"transparent",zoomType:n||!i?"none":t.userOptions.chart.zoomType,panning:{enabled:!0,type:null===(r=t.userOptions.chart.panning)||void 0===r?void 0:r.type}},xAxis:{crosshair:u?s:null,className:i?h.axisCrosshair:h.axisGrab,events:{afterSetExtremes:function(r){var e;"zoom"!==r.trigger&&"navigator"!==r.trigger||l(),null!==(e=t.xAxis[0].userOptions.plotLines)&&void 0!==e&&e.length&&a.updateAxisStyles({chart:t}),c(r)}}},yAxis:{crosshair:u?s:null,className:i?h.axisCrosshair:h.axisGrab,events:{afterSetExtremes:function(r){"zoom"!==r.trigger&&"navigator"!==r.trigger||l(),c(r)}}},plotOptions:{series:{cursor:n||!i?"grab":"crosshair"}}})}}),[i,l,u])};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("@babel/runtime/helpers/defineProperty"),e=require("@material-ui/core"),t=require("lodash"),o=require("react"),s=require("../formations.js");function a(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var i=a(r);function n(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function c(r){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?n(Object(t),!0).forEach((function(e){i.default(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}var u=e.makeStyles({axisGrab:{cursor:"grab"},axisCrosshair:{cursor:"crosshair"}});exports.useChartModifier=function(r){var e=r.chart,a=r.chartOptions,i=r.isZoomEnabled,n=r.isMinHeightChart,l=r.handleChartSelection,f=r.onZoomChangeCallback,p=r.isAxesCoordinatesShown,h=u();o.useEffect((function(){if(!t.isEmpty(e)){var r={zIndex:1,color:"#ffffff",dashStyle:"dash"};e.plotBackground.element.style.cursor=i?"crosshair":"grab",e.update({chart:c(c({},a),{},{plotBackgroundColor:"transparent",zoomType:n||!i?"none":a.zoomType}),xAxis:{crosshair:p?r:null,className:i?h.axisCrosshair:h.axisGrab,events:{afterSetExtremes:function(r){var t;"zoom"!==r.trigger&&"navigator"!==r.trigger||l(),null!==(t=e.xAxis[0].userOptions.plotLines)&&void 0!==t&&t.length&&s.updateAxisStyles({chart:e}),f(r)}}},yAxis:{crosshair:p?r:null,className:i?h.axisCrosshair:h.axisGrab,events:{afterSetExtremes:function(r){"zoom"!==r.trigger&&"navigator"!==r.trigger||l(),f(r)}}},plotOptions:{series:{cursor:n||!i?"grab":"crosshair"}}})}}),[i,l,p])};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/slicedToArray"),a=require("react"),s=require("lodash"),n=require("prop-types"),r=require("classnames"),i=require("@material-ui/core");require("../../Annotations/components/AnnotationsList/index.js");var l=require("../../Annotations/components/LastAnnotation/index.js");require("../../Annotations/AnnotationsContext.js");var d=require("../../../constants/segment.js"),o=require("../../../constants/devcenter.js");require("../../../constants/goals.js"),require("../../../constants/alerts.js"),require("../../../constants/apps.js"),require("../../../constants/drillstring.js"),require("../../../constants/completion.js"),require("../../../constants/notifications.js"),require("../../../constants/feed.js"),require("../../../constants/bha.js"),require("../../GradientManager/configuration/constants.js");var u=require("../../../utils/devcenter.js"),p=require("./VersionBadge.js"),c=require("./PadMode.js"),f=require("./utils.js"),m=require("../../AssetNameLabel/SecondaryAssetNameLabel.js"),g=require("../../AssetNameLabel/AssetNameLabel.js"),j=require("./PadIcon.js"),A=require("./AppHeader.css.js"),h=require("./AppHeaderStyles.js"),b=require("react/jsx-runtime");function v(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var y=v(e),S=v(t),x=v(n),L=v(r);function q(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function N(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?q(Object(a),!0).forEach((function(t){y.default(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):q(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var _="DevCenter_AppHeader",P=function(e){return"/assets/".concat(null==e?void 0:e.asset_id)};function O(e){var t,n,r,v,y=e.app,x=e.appLastAnnotation,q=e.appSettings,O=e.badge,I=e.children,w=e.classes,E=e.coordinates,M=e.currentUser,C=e.fracFleet,T=e.isMaximized,D=e.logoSrc,W=e.onSettingChange,k=e.openAnnotationsList,F=e.primaryAssetStatusBadge,H=e.rig,R=e.showLastAnnotation,B=e.updateCurrentDashboardAppLastAnnotation,U=e.well,V=e.wells,G=a.useState(!1),z=S.default(G,2),Y=z[0],Z=z[1],J=a.useRef(null),K=null==E?void 0:E.pixelWidth;a.useEffect((function(){var e,t;Z((null===(e=J.current)||void 0===e?void 0:e.scrollWidth)>(null===(t=J.current)||void 0===t?void 0:t.offsetWidth))}),[null===(t=J.current)||void 0===t?void 0:t.offsetWidth,K]);var Q=f.getAppDimension(K),X=u.getAppName(y),$=null==y||null===(n=y.package)||void 0===n||null===(r=n.manifest)||void 0===r||null===(v=r.application)||void 0===v?void 0:v.subtitle,ee=u.getAppSegment(y),te=ee===d.SEGMENTS.COMPLETION,ae=function(e){var t,a=e.appSettings,s=void 0===a?{}:a,n=e.well,r=e.rig,i=e.fracFleet,l=e.segment,o=l===d.SEGMENTS.DRILLING,u=l===d.SEGMENTS.COMPLETION,p=s.wellId,c=s.rigId,f=s.fracFleetId,m=s.padId,g=null==i||null===(t=i.pad_frac_fleets.find((function(e){return e.pad.id===(m||i.current_pad_id)})))||void 0===t?void 0:t.pad,j=o?p&&(null==n?void 0:n.name):null==g?void 0:g.name,A=null!=i&&i.current_pad_id?"/assets/types/pad/".concat(null==i?void 0:i.current_pad_id):null,h=o?null==r?void 0:r.name:null==i?void 0:i.name,b=!!(p||c||f),v=!1,y=o?h&&P(n):A;return u&&!b&&null!=n&&n.id&&null!=n&&n.name&&(v=!0,b=!0,y=P(n),h=n.name),{isPrimaryAssetStatusVisible:v,isPrimaryNameVisible:b,primaryAssetLink:y,primaryAssetName:h,secondaryAssetLink:o?P(n):"/assets/types/pad/".concat(m||(null==i?void 0:i.current_pad_id)),secondaryAssetName:j}}({appSettings:null==y?void 0:y.settings,well:U,rig:H,fracFleet:C,segment:ee}),se=ae.isPrimaryAssetStatusVisible,ne=ae.isPrimaryNameVisible,re=ae.primaryAssetLink,ie=ae.primaryAssetName,le=ae.secondaryAssetLink,de=ae.secondaryAssetName,oe=[f.APP_LAYOUT_SIZES.MEDIUM,f.APP_LAYOUT_SIZES.SMALL].includes(Q),ue=y&&y.id===o.DEV_CENTER_CLI_APP_ID,pe={fracFleet:C,wells:V,well:U,onSettingChange:W,appSettings:q},ce=h.useStyles({isMobileSize:oe});return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:ce.appHeaderWrapper,children:[b.jsxs("div",{className:L.default(ce.appHeaderContainer,w.appHeader),children:[b.jsxs("div",{className:ce.titleBlock,children:[b.jsxs("div",{className:w.appHeaderTitleWrapper,ref:J,children:[b.jsxs("div",{className:ce.titleWrapper,children:[D&&b.jsxs(b.Fragment,{children:[b.jsx("img",{className:ce.logo,src:D,alt:"company logo"}),b.jsx("div",{className:ce.separateLine})]}),b.jsx(i.Tooltip,{title:Y?X:"",placement:"bottom",children:b.jsx("h6",{"data-testid":"".concat(_,"_name"),className:ce.title,children:X})}),b.jsx(p.VersionBadge,{appPackage:null==y?void 0:y.package})]}),O]}),(!oe||D)&&$&&b.jsx("h6",{"data-testid":"".concat(_,"_subtitle"),className:ce.subtitle,children:$})]}),y&&E&&b.jsxs("div",{className:L.default(A.controlsContainer,T&&A.appMaximized),children:[te&&!oe&&b.jsx(c,N({},pe)),I,b.jsxs("div",{className:A.assetLabels,children:[de&&b.jsx(m.SecondaryAssetNameLabel,{assetName:de,coordinatesPixelWidth:K,dataTestId:"".concat(_,"_secondaryAsset"),href:!ue&&le,icon:b.jsx(j.PadIcon,{}),isColored:!te||y.settings.padId&&y.settings.padId!==C.current_pad_id}),ne&&b.jsx(g.AssetNameLabel,{assetName:ie,coordinatesPixelWidth:K,dataTestId:"".concat(_,"_primaryAsset"),href:!ue&&(re||"/feed"),statusBadge:se&&F})]})]}),R&&x&&b.jsx(l,{annotation:x,appId:s.get(y,["app","id"]),currentUser:M,dashboardAppId:y.id,openAnnotationsList:k,updateCurrentDashboardAppLastAnnotation:B})]}),oe&&$&&!D&&b.jsx("h6",{"data-testid":"".concat(_,"_subtitle"),className:ce.subtitle,children:$})]}),te&&oe&&b.jsx("div",{className:A.padModeSelect,children:b.jsx(c,N({},pe))})]})}O.propTypes={app:x.default.object.isRequired,badge:x.default.node,classes:x.default.shape({appHeader:x.default.string,appHeaderTitleWrapper:x.default.string}),showLastAnnotation:x.default.bool,currentUser:x.default.shape({}),appLastAnnotation:x.default.shape({}),updateCurrentDashboardAppLastAnnotation:x.default.func,openAnnotationsList:x.default.func,rig:x.default.shape({name:x.default.string,asset_id:x.default.number}),well:x.default.shape({name:x.default.string,asset_id:x.default.number}),fracFleet:x.default.shape({name:x.default.string,current_pad_id:x.default.number,pad_frac_fleets:x.default.arrayOf(x.default.shape({pad:x.default.shape({id:x.default.number.isRequired}).isRequired})).isRequired}),wells:x.default.arrayOf(x.default.shape({})),coordinates:x.default.shape({pixelWidth:x.default.number.isRequired}),isMaximized:x.default.bool,appSettings:x.default.shape({}),onSettingChange:x.default.func,children:x.default.arrayOf(x.default.node),logoSrc:x.default.string,primaryAssetStatusBadge:x.default.node},O.defaultProps={appLastAnnotation:null,appSettings:null,badge:null,children:null,classes:{},coordinates:void 0,currentUser:void 0,fracFleet:null,isMaximized:!1,logoSrc:null,onSettingChange:void 0,openAnnotationsList:void 0,rig:null,showLastAnnotation:!0,updateCurrentDashboardAppLastAnnotation:function(){},well:null,wells:null,primaryAssetStatusBadge:null},exports.PAGE_NAME=_,exports.default=O;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/slicedToArray"),a=require("react"),s=require("lodash"),n=require("prop-types"),r=require("classnames"),i=require("@material-ui/core");require("../../Annotations/components/AnnotationsList/index.js");var l=require("../../Annotations/components/LastAnnotation/index.js");require("../../Annotations/AnnotationsContext.js");var d=require("../../../constants/segment.js"),o=require("../../../constants/devcenter.js");require("../../../constants/goals.js"),require("../../../constants/alerts.js"),require("../../../constants/apps.js"),require("../../../constants/drillstring.js"),require("../../../constants/completion.js"),require("../../../constants/notifications.js"),require("../../../constants/feed.js"),require("../../../constants/bha.js"),require("../../GradientManager/configuration/constants.js");var u=require("../../../utils/devcenter.js"),p=require("./VersionBadge.js"),c=require("./PadMode.js"),f=require("./utils.js"),m=require("../../AssetNameLabel/SecondaryAssetNameLabel.js"),g=require("../../AssetNameLabel/AssetNameLabel.js"),j=require("./PadIcon.js"),A=require("./AppHeader.css.js"),h=require("./AppHeaderStyles.js"),b=require("react/jsx-runtime");function v(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var y=v(e),S=v(t),x=v(n),L=v(r);function q(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function N(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?q(Object(a),!0).forEach((function(t){y.default(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):q(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var _="DevCenter_AppHeader",P=function(e){return"/assets/".concat(null==e?void 0:e.asset_id)};function O(e){var t,n,r,v,y=e.app,x=e.appLastAnnotation,q=e.appSettings,O=e.badge,I=e.children,w=e.classes,E=e.coordinates,M=e.currentUser,C=e.fracFleet,T=e.isMaximized,D=e.logoSrc,W=e.onSettingChange,k=e.openAnnotationsList,F=e.primaryAssetStatusBadge,H=e.rig,R=e.showLastAnnotation,B=e.updateCurrentDashboardAppLastAnnotation,U=e.well,V=e.wells,G=a.useState(!1),z=S.default(G,2),Y=z[0],Z=z[1],J=a.useRef(null),K=null==E?void 0:E.pixelWidth;a.useEffect((function(){var e,t;Z((null===(e=J.current)||void 0===e?void 0:e.scrollWidth)>(null===(t=J.current)||void 0===t?void 0:t.offsetWidth))}),[null===(t=J.current)||void 0===t?void 0:t.offsetWidth,K]);var Q=f.getAppDimension(K),X=u.getAppName(y),$=null==y||null===(n=y.package)||void 0===n||null===(r=n.manifest)||void 0===r||null===(v=r.application)||void 0===v?void 0:v.subtitle,ee=u.getAppSegment(y),te=ee===d.SEGMENTS.COMPLETION,ae=function(e){var t,a=e.appSettings,s=void 0===a?{}:a,n=e.well,r=e.rig,i=e.fracFleet,l=e.segment,o=l===d.SEGMENTS.DRILLING,u=l===d.SEGMENTS.COMPLETION,p=s.wellId,c=s.rigId,f=s.fracFleetId,m=s.padId,g=null==i||null===(t=i.pad_frac_fleets.find((function(e){return e.pad.id===(m||i.current_pad_id)})))||void 0===t?void 0:t.pad,j=o?p&&(null==n?void 0:n.name):null==g?void 0:g.name,A=null!=i&&i.current_pad_id?"/assets/types/pad/".concat(null==i?void 0:i.current_pad_id):null,h=o?null==r?void 0:r.name:null==i?void 0:i.name,b=!!(p||c||f),v=!1,y=o?h&&P(n):A;return u&&!b&&null!=n&&n.id&&null!=n&&n.name&&(v=!0,b=!0,y=P(n),h=n.name),{isPrimaryAssetStatusVisible:v,isPrimaryNameVisible:b,primaryAssetLink:y,primaryAssetName:h,secondaryAssetLink:o?P(n):"/assets/types/pad/".concat(m||(null==i?void 0:i.current_pad_id)),secondaryAssetName:j}}({appSettings:null==y?void 0:y.settings,well:U,rig:H,fracFleet:C,segment:ee}),se=ae.isPrimaryAssetStatusVisible,ne=ae.isPrimaryNameVisible,re=ae.primaryAssetLink,ie=ae.primaryAssetName,le=ae.secondaryAssetLink,de=ae.secondaryAssetName,oe=[f.APP_LAYOUT_SIZES.MEDIUM,f.APP_LAYOUT_SIZES.SMALL].includes(Q),ue=y&&y.id===o.DEV_CENTER_CLI_APP_ID,pe={fracFleet:C,wells:V,well:U,onSettingChange:W,appSettings:q},ce=h.useStyles({isMobileSize:oe});return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:ce.appHeaderWrapper,children:[b.jsxs("div",{className:L.default(ce.appHeaderContainer,w.appHeader),children:[b.jsxs("div",{className:ce.titleBlock,children:[b.jsxs("div",{className:w.appHeaderTitleWrapper,ref:J,children:[b.jsxs("div",{className:ce.titleWrapper,children:[D&&b.jsxs(b.Fragment,{children:[b.jsx("img",{className:ce.logo,src:D,alt:"company logo"}),b.jsx("div",{className:ce.separateLine})]}),b.jsx(i.Tooltip,{title:Y?X:"",placement:"bottom",children:b.jsx("h6",{"data-testid":"".concat(_,"_name"),className:ce.title,children:X})}),b.jsx(p.VersionBadge,{appPackage:null==y?void 0:y.package})]}),O]}),(!oe||D)&&$&&b.jsx("h6",{"data-testid":"".concat(_,"_subtitle"),className:ce.subtitle,children:$})]}),y&&E&&b.jsxs("div",{className:L.default(A.controlsContainer,T&&A.appMaximized),children:[te&&!oe&&b.jsx(c,N({},pe)),I,b.jsxs("div",{className:A.assetLabels,children:[de&&b.jsx(m.SecondaryAssetNameLabel,{assetName:de,coordinatesPixelWidth:K,dataTestId:"".concat(_,"_secondaryAsset"),href:!ue&&le,icon:te&&b.jsx(j.PadIcon,{}),isColored:!te||y.settings.padId&&y.settings.padId!==C.current_pad_id}),ne&&b.jsx(g.AssetNameLabel,{assetName:ie,coordinatesPixelWidth:K,dataTestId:"".concat(_,"_primaryAsset"),href:!ue&&(re||"/feed"),statusBadge:se&&F})]})]}),R&&x&&b.jsx(l,{annotation:x,appId:s.get(y,["app","id"]),currentUser:M,dashboardAppId:y.id,openAnnotationsList:k,updateCurrentDashboardAppLastAnnotation:B})]}),oe&&$&&!D&&b.jsx("h6",{"data-testid":"".concat(_,"_subtitle"),className:ce.subtitle,children:$})]}),te&&oe&&b.jsx("div",{className:A.padModeSelect,children:b.jsx(c,N({},pe))})]})}O.propTypes={app:x.default.object.isRequired,badge:x.default.node,classes:x.default.shape({appHeader:x.default.string,appHeaderTitleWrapper:x.default.string}),showLastAnnotation:x.default.bool,currentUser:x.default.shape({}),appLastAnnotation:x.default.shape({}),updateCurrentDashboardAppLastAnnotation:x.default.func,openAnnotationsList:x.default.func,rig:x.default.shape({name:x.default.string,asset_id:x.default.number}),well:x.default.shape({name:x.default.string,asset_id:x.default.number}),fracFleet:x.default.shape({name:x.default.string,current_pad_id:x.default.number,pad_frac_fleets:x.default.arrayOf(x.default.shape({pad:x.default.shape({id:x.default.number.isRequired}).isRequired})).isRequired}),wells:x.default.arrayOf(x.default.shape({})),coordinates:x.default.shape({pixelWidth:x.default.number.isRequired}),isMaximized:x.default.bool,appSettings:x.default.shape({}),onSettingChange:x.default.func,children:x.default.arrayOf(x.default.node),logoSrc:x.default.string,primaryAssetStatusBadge:x.default.node},O.defaultProps={appLastAnnotation:null,appSettings:null,badge:null,children:null,classes:{},coordinates:void 0,currentUser:void 0,fracFleet:null,isMaximized:!1,logoSrc:null,onSettingChange:void 0,openAnnotationsList:void 0,rig:null,showLastAnnotation:!0,updateCurrentDashboardAppLastAnnotation:function(){},well:null,wells:null,primaryAssetStatusBadge:null},exports.PAGE_NAME=_,exports.default=O;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),i=require("react"),t=require("@material-ui/core"),a=require("../../Modal/Modal.js"),n=require("../../Button/index.js"),s=t.makeStyles((function(e){return{container:{width:472,color:e.palette.primary.text6,display:"flex",flexDirection:"column",gap:8},helpText:{fontSize:16,lineHeight:"22px"},clearAllButton:{margin:"0 16px 0 auto"}}}));exports.ReportIssueModal=function(o){var l=o.open,u=o.onSave,c=o.onClose,d=s(),x=i.useState(""),m=x[0],p=x[1];return r.jsx(a,e.__assign({open:l,onClose:c,title:"Report Data Quality Issue",actions:r.jsxs(r.Fragment,{children:[r.jsx(n,e.__assign({variation:"primary",onClick:function(){return u(m)}},{children:"Cancel"})),r.jsx(n,e.__assign({variation:"primary"},{children:"Save"}))]})},{children:r.jsxs("div",e.__assign({className:d.container},{children:[r.jsx("div",e.__assign({className:d.helpText},{children:"All issues are submitted to the Corva’s 24/7 Fusion data quality team for immediate review and remediation."})),r.jsx(t.TextField,{multiline:!0,rows:1,rowsMax:4,label:"Error Description",onChange:function(e){return p(e.target.value)}})]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),i=require("react"),t=require("@material-ui/core"),a=require("../../Modal/Modal.js"),n=require("../../Button/index.js"),s=t.makeStyles((function(e){return{container:{width:472,color:e.palette.primary.text6,display:"flex",flexDirection:"column",gap:8},helpText:{fontSize:16,lineHeight:"22px"},clearAllButton:{margin:"0 16px 0 auto"}}}));exports.ReportIssueModal=function(l){var o=l.open,u=l.onSave,c=l.onClose,d=s(),x=i.useState(""),m=x[0],p=x[1];return r.jsx(a,e.__assign({open:o,onClose:c,title:"Report Data Quality Issue",actions:r.jsxs(r.Fragment,{children:[r.jsx(n,e.__assign({color:"primary",className:d.clearAllButton,onClick:c},{children:"Cancel"})),r.jsx(n,e.__assign({onClick:function(){return u(m)},variation:"primary"},{children:"Save"}))]})},{children:r.jsxs("div",e.__assign({className:d.container},{children:[r.jsx("div",e.__assign({className:d.helpText},{children:"All issues are submitted to the Corva’s 24/7 Fusion data quality team for immediate review and remediation."})),r.jsx(t.TextField,{multiline:!0,rows:1,rowsMax:4,label:"Error Description",onChange:function(e){return p(e.target.value)}})]}))}))};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./devcenter.js"),r=require("./goals.js"),s=require("./segment.js"),t=require("./alerts.js"),i=require("./apps.js"),o=require("./casing.js"),p=require("./drillstring.js"),_=require("./completion.js"),L=require("./appPackages.js"),n=require("./notifications.js"),a=require("./feed.js"),u=require("./bha.js"),x=require("./assetTypes.js"),E=require("./wellSummary.js"),I=require("./rigActivity.js"),S=require("./componentsSettings.js");exports.DEV_CENTER_CLI_APP_ID=e.DEV_CENTER_CLI_APP_ID,exports.goals=r,exports.segment=s,exports.alerts=t,exports.apps=i,exports.casing=o,exports.drillstring=p,exports.completion=_,exports.appPackages=L,exports.notifications=n,exports.feed=a,exports.bha=u,exports.ASSET_TYPES=x.ASSET_TYPES,exports.COMPLETION_WELL_SUMMARY=E.COMPLETION_WELL_SUMMARY,exports.DRILLING_WELL_SUMMARY=E.DRILLING_WELL_SUMMARY,exports.DRILLOUT_WELL_SUMMARY=E.DRILLOUT_WELL_SUMMARY,exports.RIG_ACTIVITY_COLORS=I.RIG_ACTIVITY_COLORS,exports.componentsSettings=S.componentsSettings;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./devcenter.js"),r=require("./goals.js"),s=require("./segment.js"),t=require("./alerts.js"),o=require("./apps.js"),i=require("./casing.js"),p=require("./drillstring.js"),_=require("./completion.js"),a=require("./appPackages.js"),L=require("./notifications.js"),n=require("./feed.js"),u=require("./bha.js"),x=require("./assetTypes.js"),S=require("./wellSummary.js"),j=require("./rigActivity.js"),l=require("./componentsSettings.js"),E=require("./localStorageKeys.js");exports.DEV_CENTER_CLI_APP_ID=e.DEV_CENTER_CLI_APP_ID,exports.goals=r,exports.segment=s,exports.alerts=t,exports.apps=o,exports.casing=i,exports.drillstring=p,exports.completion=_,exports.appPackages=a,exports.notifications=L,exports.feed=n,exports.bha=u,exports.ASSET_TYPES=x.ASSET_TYPES,exports.COMPLETION_WELL_SUMMARY=S.COMPLETION_WELL_SUMMARY,exports.DRILLING_WELL_SUMMARY=S.DRILLING_WELL_SUMMARY,exports.DRILLOUT_WELL_SUMMARY=S.DRILLOUT_WELL_SUMMARY,exports.RIG_ACTIVITY_COLORS=j.RIG_ACTIVITY_COLORS,exports.componentsSettings=l.componentsSettings,exports.localStorageKeys=E;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.LOCAL_STORAGE_APP_THEME_KEY="APP_THEME",exports.LOCAL_STORAGE_PDF_REPORT_VIEW_KEY="PDF_REPORT_VIEW";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=window.location.pathname.startsWith("/reports/");exports.isReportsPage=e;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../constants/localStorageKeys.js"),t=window.location.pathname.startsWith("/reports/"),s=JSON.parse(localStorage.getItem(e.LOCAL_STORAGE_PDF_REPORT_VIEW_KEY)||"false");exports.isPDFReportView=s,exports.isReportsPage=t;
@@ -1 +1 @@
1
- {"version":3,"file":"httpMessages.d.ts","sourceRoot":"","sources":["../../../src/clients/api/httpMessages.js"],"names":[],"mappings":"AAMA;;;;;EAQE"}
1
+ {"version":3,"file":"httpMessages.d.ts","sourceRoot":"","sources":["../../../src/clients/api/httpMessages.js"],"names":[],"mappings":"AAKA;;;;;EAQE"}
@@ -1 +1 @@
1
- {"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../../src/clients/jsonApi/methods.js"],"names":[],"mappings":"AAUO,8CANI,MAAM,QACN,MAAM,GAAC,MAAM,WACb,MAAM,EAAE,GACN,YAAU,CAiCtB"}
1
+ {"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../../src/clients/jsonApi/methods.js"],"names":[],"mappings":"AASO,8CALI,MAAM,QACN,MAAM,GAAC,MAAM,WACb,MAAM,EAAE,GACN,YAAU,CAgCtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditor/utils/index.js"],"names":[],"mappings":"AACO,yDAUN"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditor/utils/index.js"],"names":[],"mappings":"AAAO,yDAUN"}
@@ -1,10 +1,11 @@
1
1
  export default ChartWrapper;
2
- declare function ChartWrapper({ children, chartRef, isAxesCoordinatesShown, onCustomizeScaleClick, onZoomChangeCallback, }: {
2
+ declare function ChartWrapper({ children, chartRef, isAxesCoordinatesShown, onCustomizeScaleClick, onZoomChangeCallback, chartOptions, }: {
3
3
  children: any;
4
4
  chartRef: any;
5
5
  isAxesCoordinatesShown: any;
6
6
  onCustomizeScaleClick: any;
7
7
  onZoomChangeCallback: any;
8
+ chartOptions: any;
8
9
  }): JSX.Element;
9
10
  declare namespace ChartWrapper {
10
11
  namespace defaultProps {
@@ -1 +1 @@
1
- {"version":3,"file":"ChartWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/ChartWrapper.js"],"names":[],"mappings":";AAgBA;;;;;;gBAqEC;;;QAGuB,sCAAQ"}
1
+ {"version":3,"file":"ChartWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/ChartWrapper.js"],"names":[],"mappings":";AAwBA;;;;;;;gBAuEC;;;QAGuB,sCAAQ"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/slicedToArray";import{makeStyles as r}from"@material-ui/core";import{isEmpty as t}from"lodash";import{useState as n,useEffect as i}from"react";import a from"../ChartWrapperContext.js";import{MIN_CHART_HEIGHT as l}from"../constants.js";import{useZoom as c}from"../effects/useZoom.js";import{useChartModifier as s}from"../effects/useChartModifier.js";import h from"./AxisOverlay.js";import{jsx as m,jsxs as u}from"react/jsx-runtime";function d(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);o&&(t=t.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,t)}return r}function f(o){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?d(Object(t),!0).forEach((function(r){e(o,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(t,e))}))}return o}var p=r({container:{width:"100%",height:"100%",position:"relative"}}),v=function(e){var r,d,v,b,C,g,O,j=e.children,y=e.chartRef,S=e.isAxesCoordinatesShown,Z=e.onCustomizeScaleClick,P=e.onZoomChangeCallback,w=p(),E=n({}),x=o(E,2),k=x[0],z=x[1],A=c({chart:null===(r=y.current)||void 0===r?void 0:r.chart}),D=A.zoomStatus,B=A.zoomConfig,M=A.handleZoomEvent,R=A.handleResetZoom,H=A.isZoomEnabled,I=A.handleIsZoomEnabledChange,N=A.debouncedChartSelection;i((function(){var e,o,r;t(null===(e=y.current)||void 0===e?void 0:e.chart)||z({marginBottom:null===(o=y.current)||void 0===o||null===(r=o.chart)||void 0===r?void 0:r.marginBottom})}),[]);var T=(null===(d=y.current)||void 0===d||null===(v=d.chart)||void 0===v||null===(b=v.plotBox)||void 0===b?void 0:b.height)<=l;s({chart:null===(C=y.current)||void 0===C?void 0:C.chart,isZoomEnabled:H,isMinHeightChart:T,onZoomChangeCallback:P,handleChartSelection:N,isAxesCoordinatesShown:S});var W={chart:null===(g=y.current)||void 0===g?void 0:g.chart,zoomConfig:B,chartStyles:k,zoomStatus:D,isZoomEnabled:H,setChartStyles:z,handleResetZoom:R,handleZoomEvent:M,isMinHeightChart:T,handleChartSelection:N,handleChangeChartStyles:function(e){z((function(o){return f(f({},o),e)}))},handleIsZoomEnabledChange:I};return m("div",{className:w.container,children:u(a.Provider,{value:W,children:[j,Z&&(null===(O=y.current)||void 0===O?void 0:O.chart.axes.map((function(e){return m(h,f({onCustomizeScaleClick:Z},e),e.coll)})))]})})};v.defaultProps={onZoomChangeCallback:function(){}};export{v as default};
1
+ import e from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/slicedToArray";import{makeStyles as t}from"@material-ui/core";import{isEmpty as r,merge as n}from"lodash";import{useState as i,useEffect as a}from"react";import l from"../ChartWrapperContext.js";import{MIN_CHART_HEIGHT as c}from"../constants.js";import{useZoom as s}from"../effects/useZoom.js";import{useChartModifier as h}from"../effects/useChartModifier.js";import m from"./AxisOverlay.js";import{jsx as u,jsxs as d}from"react/jsx-runtime";function p(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);o&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),t.push.apply(t,r)}return t}function f(o){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){e(o,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))}))}return o}var v=t({container:{width:"100%",height:"100%",position:"relative"}}),b={zoomType:"xy",panning:{enabled:!0,type:"xy"}},C=function(e){var t,p,C,g,y,O,j,S=e.children,Z=e.chartRef,P=e.isAxesCoordinatesShown,x=e.onCustomizeScaleClick,w=e.onZoomChangeCallback,E=e.chartOptions,z=v(),k=i({}),A=o(k,2),D=A[0],B=A[1],M=s({chart:null===(t=Z.current)||void 0===t?void 0:t.chart}),R=M.zoomStatus,H=M.zoomConfig,I=M.handleZoomEvent,T=M.handleResetZoom,N=M.isZoomEnabled,W=M.handleIsZoomEnabledChange,q=M.debouncedChartSelection;a((function(){var e,o,t;r(null===(e=Z.current)||void 0===e?void 0:e.chart)||B({marginBottom:null===(o=Z.current)||void 0===o||null===(t=o.chart)||void 0===t?void 0:t.marginBottom})}),[]);var F=(null===(p=Z.current)||void 0===p||null===(C=p.chart)||void 0===C||null===(g=C.plotBox)||void 0===g?void 0:g.height)<=c;h({chart:null===(y=Z.current)||void 0===y?void 0:y.chart,chartOptions:n({},b,E),isZoomEnabled:N,isMinHeightChart:F,onZoomChangeCallback:w,handleChartSelection:q,isAxesCoordinatesShown:P});var G={chart:null===(O=Z.current)||void 0===O?void 0:O.chart,zoomConfig:H,chartStyles:D,zoomStatus:R,isZoomEnabled:N,setChartStyles:B,handleResetZoom:T,handleZoomEvent:I,isMinHeightChart:F,handleChartSelection:q,handleChangeChartStyles:function(e){B((function(o){return f(f({},o),e)}))},handleIsZoomEnabledChange:W};return u("div",{className:z.container,children:d(l.Provider,{value:G,children:[S,x&&(null===(j=Z.current)||void 0===j?void 0:j.chart.axes.map((function(e){return u(m,f({onCustomizeScaleClick:x},e),e.coll)})))]})})};C.defaultProps={onZoomChangeCallback:function(){}};export{C as default};
@@ -1,5 +1,6 @@
1
- export function useChartModifier({ chart, isZoomEnabled, isMinHeightChart, handleChartSelection, onZoomChangeCallback, isAxesCoordinatesShown, }: {
1
+ export function useChartModifier({ chart, chartOptions, isZoomEnabled, isMinHeightChart, handleChartSelection, onZoomChangeCallback, isAxesCoordinatesShown, }: {
2
2
  chart: any;
3
+ chartOptions: any;
3
4
  isZoomEnabled: any;
4
5
  isMinHeightChart: any;
5
6
  handleChartSelection: any;
@@ -1 +1 @@
1
- {"version":3,"file":"useChartModifier.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/effects/useChartModifier.js"],"names":[],"mappings":"AAcO;;;;;;;SAkEN"}
1
+ {"version":3,"file":"useChartModifier.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/effects/useChartModifier.js"],"names":[],"mappings":"AAcO;;;;;;;;SAgEN"}
@@ -1 +1 @@
1
- import{makeStyles as r}from"@material-ui/core";import{isEmpty as o}from"lodash";import{useEffect as a}from"react";import{updateAxisStyles as s}from"../formations.js";var i=r({axisGrab:{cursor:"grab"},axisCrosshair:{cursor:"crosshair"}}),t=function(r){var t=r.chart,e=r.isZoomEnabled,n=r.isMinHeightChart,l=r.handleChartSelection,c=r.onZoomChangeCallback,h=r.isAxesCoordinatesShown,m=i();a((function(){var r;if(!o(t)){var a={zIndex:1,color:"#ffffff",dashStyle:"dash"};t.plotBackground.element.style.cursor=e?"crosshair":"grab",t.update({chart:{plotBackgroundColor:"transparent",zoomType:n||!e?"none":t.userOptions.chart.zoomType,panning:{enabled:!0,type:null===(r=t.userOptions.chart.panning)||void 0===r?void 0:r.type}},xAxis:{crosshair:h?a:null,className:e?m.axisCrosshair:m.axisGrab,events:{afterSetExtremes:function(r){var o;"zoom"!==r.trigger&&"navigator"!==r.trigger||l(),null!==(o=t.xAxis[0].userOptions.plotLines)&&void 0!==o&&o.length&&s({chart:t}),c(r)}}},yAxis:{crosshair:h?a:null,className:e?m.axisCrosshair:m.axisGrab,events:{afterSetExtremes:function(r){"zoom"!==r.trigger&&"navigator"!==r.trigger||l(),c(r)}}},plotOptions:{series:{cursor:n||!e?"grab":"crosshair"}}})}}),[e,l,h])};export{t as useChartModifier};
1
+ import r from"@babel/runtime/helpers/defineProperty";import{makeStyles as e}from"@material-ui/core";import{isEmpty as t}from"lodash";import{useEffect as o}from"react";import{updateAxisStyles as s}from"../formations.js";function a(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function i(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var n=e({axisGrab:{cursor:"grab"},axisCrosshair:{cursor:"crosshair"}}),c=function(r){var e=r.chart,a=r.chartOptions,c=r.isZoomEnabled,l=r.isMinHeightChart,p=r.handleChartSelection,f=r.onZoomChangeCallback,u=r.isAxesCoordinatesShown,h=n();o((function(){if(!t(e)){var r={zIndex:1,color:"#ffffff",dashStyle:"dash"};e.plotBackground.element.style.cursor=c?"crosshair":"grab",e.update({chart:i(i({},a),{},{plotBackgroundColor:"transparent",zoomType:l||!c?"none":a.zoomType}),xAxis:{crosshair:u?r:null,className:c?h.axisCrosshair:h.axisGrab,events:{afterSetExtremes:function(r){var t;"zoom"!==r.trigger&&"navigator"!==r.trigger||p(),null!==(t=e.xAxis[0].userOptions.plotLines)&&void 0!==t&&t.length&&s({chart:e}),f(r)}}},yAxis:{crosshair:u?r:null,className:c?h.axisCrosshair:h.axisGrab,events:{afterSetExtremes:function(r){"zoom"!==r.trigger&&"navigator"!==r.trigger||p(),f(r)}}},plotOptions:{series:{cursor:l||!c?"grab":"crosshair"}}})}}),[c,p,u])};export{c as useChartModifier};
@@ -12,7 +12,7 @@ declare const _default: import("react").ComponentType<Pick<Pick<{
12
12
  left: PropTypes.Validator<number>;
13
13
  right: PropTypes.Validator<number>;
14
14
  classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{}>>>;
15
- }>, "min" | "max" | "left" | "classes" | "onChange" | "right">, "min" | "max" | "left" | "onChange" | "right"> & import("@material-ui/core").StyledComponentProps<"input">>;
15
+ }>, "min" | "right" | "max" | "left" | "classes" | "onChange">, "min" | "right" | "max" | "left" | "onChange"> & import("@material-ui/core").StyledComponentProps<"input">>;
16
16
  export default _default;
17
17
  import PropTypes from "prop-types";
18
18
  //# sourceMappingURL=ChartActionsList.d.ts.map
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as a,useRef as n,useEffect as s}from"react";import{get as r}from"lodash";import i from"prop-types";import o from"classnames";import{Tooltip as l}from"@material-ui/core";import"../../Annotations/components/AnnotationsList/index.js";import p from"../../Annotations/components/LastAnnotation/index.js";import"../../Annotations/AnnotationsContext.js";import{SEGMENTS as d}from"../../../constants/segment.js";import{DEV_CENTER_CLI_APP_ID as c}from"../../../constants/devcenter.js";import"../../../constants/goals.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../GradientManager/configuration/constants.js";import{getAppName as m,getAppSegment as u}from"../../../utils/devcenter.js";import{VersionBadge as f}from"./VersionBadge.js";import g from"./PadMode.js";import{APP_LAYOUT_SIZES as h,getAppDimension as b}from"./utils.js";import{SecondaryAssetNameLabel as A}from"../../AssetNameLabel/SecondaryAssetNameLabel.js";import{AssetNameLabel as v}from"../../AssetNameLabel/AssetNameLabel.js";import{PadIcon as y}from"./PadIcon.js";import j from"./AppHeader.css.js";import{useStyles as L}from"./AppHeaderStyles.js";import{jsxs as N,Fragment as S,jsx as _}from"react/jsx-runtime";function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function P(t){for(var a=1;a<arguments.length;a++){var n=null!=arguments[a]?arguments[a]:{};a%2?O(Object(n),!0).forEach((function(a){e(t,a,n[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var w="DevCenter_AppHeader",I=function(e){return"/assets/".concat(null==e?void 0:e.asset_id)};function C(e){var i,O,C,x,M=e.app,D=e.appLastAnnotation,W=e.appSettings,k=e.badge,H=e.children,T=e.classes,F=e.coordinates,B=e.currentUser,R=e.fracFleet,q=e.isMaximized,z=e.logoSrc,E=e.onSettingChange,U=e.openAnnotationsList,V=e.primaryAssetStatusBadge,G=e.rig,J=e.showLastAnnotation,K=e.updateCurrentDashboardAppLastAnnotation,Q=e.well,X=e.wells,Y=a(!1),Z=t(Y,2),$=Z[0],ee=Z[1],te=n(null),ae=null==F?void 0:F.pixelWidth;s((function(){var e,t;ee((null===(e=te.current)||void 0===e?void 0:e.scrollWidth)>(null===(t=te.current)||void 0===t?void 0:t.offsetWidth))}),[null===(i=te.current)||void 0===i?void 0:i.offsetWidth,ae]);var ne=b(ae),se=m(M),re=null==M||null===(O=M.package)||void 0===O||null===(C=O.manifest)||void 0===C||null===(x=C.application)||void 0===x?void 0:x.subtitle,ie=u(M),oe=ie===d.COMPLETION,le=function(e){var t,a=e.appSettings,n=void 0===a?{}:a,s=e.well,r=e.rig,i=e.fracFleet,o=e.segment,l=o===d.DRILLING,p=o===d.COMPLETION,c=n.wellId,m=n.rigId,u=n.fracFleetId,f=n.padId,g=null==i||null===(t=i.pad_frac_fleets.find((function(e){return e.pad.id===(f||i.current_pad_id)})))||void 0===t?void 0:t.pad,h=l?c&&(null==s?void 0:s.name):null==g?void 0:g.name,b=null!=i&&i.current_pad_id?"/assets/types/pad/".concat(null==i?void 0:i.current_pad_id):null,A=l?null==r?void 0:r.name:null==i?void 0:i.name,v=!!(c||m||u),y=!1,j=l?A&&I(s):b;return p&&!v&&null!=s&&s.id&&null!=s&&s.name&&(y=!0,v=!0,j=I(s),A=s.name),{isPrimaryAssetStatusVisible:y,isPrimaryNameVisible:v,primaryAssetLink:j,primaryAssetName:A,secondaryAssetLink:l?I(s):"/assets/types/pad/".concat(f||(null==i?void 0:i.current_pad_id)),secondaryAssetName:h}}({appSettings:null==M?void 0:M.settings,well:Q,rig:G,fracFleet:R,segment:ie}),pe=le.isPrimaryAssetStatusVisible,de=le.isPrimaryNameVisible,ce=le.primaryAssetLink,me=le.primaryAssetName,ue=le.secondaryAssetLink,fe=le.secondaryAssetName,ge=[h.MEDIUM,h.SMALL].includes(ne),he=M&&M.id===c,be={fracFleet:R,wells:X,well:Q,onSettingChange:E,appSettings:W},Ae=L({isMobileSize:ge});return N(S,{children:[N("div",{className:Ae.appHeaderWrapper,children:[N("div",{className:o(Ae.appHeaderContainer,T.appHeader),children:[N("div",{className:Ae.titleBlock,children:[N("div",{className:T.appHeaderTitleWrapper,ref:te,children:[N("div",{className:Ae.titleWrapper,children:[z&&N(S,{children:[_("img",{className:Ae.logo,src:z,alt:"company logo"}),_("div",{className:Ae.separateLine})]}),_(l,{title:$?se:"",placement:"bottom",children:_("h6",{"data-testid":"".concat(w,"_name"),className:Ae.title,children:se})}),_(f,{appPackage:null==M?void 0:M.package})]}),k]}),(!ge||z)&&re&&_("h6",{"data-testid":"".concat(w,"_subtitle"),className:Ae.subtitle,children:re})]}),M&&F&&N("div",{className:o(j.controlsContainer,q&&j.appMaximized),children:[oe&&!ge&&_(g,P({},be)),H,N("div",{className:j.assetLabels,children:[fe&&_(A,{assetName:fe,coordinatesPixelWidth:ae,dataTestId:"".concat(w,"_secondaryAsset"),href:!he&&ue,icon:_(y,{}),isColored:!oe||M.settings.padId&&M.settings.padId!==R.current_pad_id}),de&&_(v,{assetName:me,coordinatesPixelWidth:ae,dataTestId:"".concat(w,"_primaryAsset"),href:!he&&(ce||"/feed"),statusBadge:pe&&V})]})]}),J&&D&&_(p,{annotation:D,appId:r(M,["app","id"]),currentUser:B,dashboardAppId:M.id,openAnnotationsList:U,updateCurrentDashboardAppLastAnnotation:K})]}),ge&&re&&!z&&_("h6",{"data-testid":"".concat(w,"_subtitle"),className:Ae.subtitle,children:re})]}),oe&&ge&&_("div",{className:j.padModeSelect,children:_(g,P({},be))})]})}C.propTypes={app:i.object.isRequired,badge:i.node,classes:i.shape({appHeader:i.string,appHeaderTitleWrapper:i.string}),showLastAnnotation:i.bool,currentUser:i.shape({}),appLastAnnotation:i.shape({}),updateCurrentDashboardAppLastAnnotation:i.func,openAnnotationsList:i.func,rig:i.shape({name:i.string,asset_id:i.number}),well:i.shape({name:i.string,asset_id:i.number}),fracFleet:i.shape({name:i.string,current_pad_id:i.number,pad_frac_fleets:i.arrayOf(i.shape({pad:i.shape({id:i.number.isRequired}).isRequired})).isRequired}),wells:i.arrayOf(i.shape({})),coordinates:i.shape({pixelWidth:i.number.isRequired}),isMaximized:i.bool,appSettings:i.shape({}),onSettingChange:i.func,children:i.arrayOf(i.node),logoSrc:i.string,primaryAssetStatusBadge:i.node},C.defaultProps={appLastAnnotation:null,appSettings:null,badge:null,children:null,classes:{},coordinates:void 0,currentUser:void 0,fracFleet:null,isMaximized:!1,logoSrc:null,onSettingChange:void 0,openAnnotationsList:void 0,rig:null,showLastAnnotation:!0,updateCurrentDashboardAppLastAnnotation:function(){},well:null,wells:null,primaryAssetStatusBadge:null};export{w as PAGE_NAME,C as default};
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as a,useRef as n,useEffect as s}from"react";import{get as r}from"lodash";import i from"prop-types";import o from"classnames";import{Tooltip as l}from"@material-ui/core";import"../../Annotations/components/AnnotationsList/index.js";import p from"../../Annotations/components/LastAnnotation/index.js";import"../../Annotations/AnnotationsContext.js";import{SEGMENTS as d}from"../../../constants/segment.js";import{DEV_CENTER_CLI_APP_ID as c}from"../../../constants/devcenter.js";import"../../../constants/goals.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../GradientManager/configuration/constants.js";import{getAppName as m,getAppSegment as u}from"../../../utils/devcenter.js";import{VersionBadge as f}from"./VersionBadge.js";import g from"./PadMode.js";import{APP_LAYOUT_SIZES as h,getAppDimension as b}from"./utils.js";import{SecondaryAssetNameLabel as A}from"../../AssetNameLabel/SecondaryAssetNameLabel.js";import{AssetNameLabel as v}from"../../AssetNameLabel/AssetNameLabel.js";import{PadIcon as y}from"./PadIcon.js";import j from"./AppHeader.css.js";import{useStyles as L}from"./AppHeaderStyles.js";import{jsxs as N,Fragment as S,jsx as _}from"react/jsx-runtime";function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function P(t){for(var a=1;a<arguments.length;a++){var n=null!=arguments[a]?arguments[a]:{};a%2?O(Object(n),!0).forEach((function(a){e(t,a,n[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var w="DevCenter_AppHeader",I=function(e){return"/assets/".concat(null==e?void 0:e.asset_id)};function C(e){var i,O,C,x,M=e.app,D=e.appLastAnnotation,W=e.appSettings,k=e.badge,H=e.children,T=e.classes,F=e.coordinates,B=e.currentUser,R=e.fracFleet,q=e.isMaximized,z=e.logoSrc,E=e.onSettingChange,U=e.openAnnotationsList,V=e.primaryAssetStatusBadge,G=e.rig,J=e.showLastAnnotation,K=e.updateCurrentDashboardAppLastAnnotation,Q=e.well,X=e.wells,Y=a(!1),Z=t(Y,2),$=Z[0],ee=Z[1],te=n(null),ae=null==F?void 0:F.pixelWidth;s((function(){var e,t;ee((null===(e=te.current)||void 0===e?void 0:e.scrollWidth)>(null===(t=te.current)||void 0===t?void 0:t.offsetWidth))}),[null===(i=te.current)||void 0===i?void 0:i.offsetWidth,ae]);var ne=b(ae),se=m(M),re=null==M||null===(O=M.package)||void 0===O||null===(C=O.manifest)||void 0===C||null===(x=C.application)||void 0===x?void 0:x.subtitle,ie=u(M),oe=ie===d.COMPLETION,le=function(e){var t,a=e.appSettings,n=void 0===a?{}:a,s=e.well,r=e.rig,i=e.fracFleet,o=e.segment,l=o===d.DRILLING,p=o===d.COMPLETION,c=n.wellId,m=n.rigId,u=n.fracFleetId,f=n.padId,g=null==i||null===(t=i.pad_frac_fleets.find((function(e){return e.pad.id===(f||i.current_pad_id)})))||void 0===t?void 0:t.pad,h=l?c&&(null==s?void 0:s.name):null==g?void 0:g.name,b=null!=i&&i.current_pad_id?"/assets/types/pad/".concat(null==i?void 0:i.current_pad_id):null,A=l?null==r?void 0:r.name:null==i?void 0:i.name,v=!!(c||m||u),y=!1,j=l?A&&I(s):b;return p&&!v&&null!=s&&s.id&&null!=s&&s.name&&(y=!0,v=!0,j=I(s),A=s.name),{isPrimaryAssetStatusVisible:y,isPrimaryNameVisible:v,primaryAssetLink:j,primaryAssetName:A,secondaryAssetLink:l?I(s):"/assets/types/pad/".concat(f||(null==i?void 0:i.current_pad_id)),secondaryAssetName:h}}({appSettings:null==M?void 0:M.settings,well:Q,rig:G,fracFleet:R,segment:ie}),pe=le.isPrimaryAssetStatusVisible,de=le.isPrimaryNameVisible,ce=le.primaryAssetLink,me=le.primaryAssetName,ue=le.secondaryAssetLink,fe=le.secondaryAssetName,ge=[h.MEDIUM,h.SMALL].includes(ne),he=M&&M.id===c,be={fracFleet:R,wells:X,well:Q,onSettingChange:E,appSettings:W},Ae=L({isMobileSize:ge});return N(S,{children:[N("div",{className:Ae.appHeaderWrapper,children:[N("div",{className:o(Ae.appHeaderContainer,T.appHeader),children:[N("div",{className:Ae.titleBlock,children:[N("div",{className:T.appHeaderTitleWrapper,ref:te,children:[N("div",{className:Ae.titleWrapper,children:[z&&N(S,{children:[_("img",{className:Ae.logo,src:z,alt:"company logo"}),_("div",{className:Ae.separateLine})]}),_(l,{title:$?se:"",placement:"bottom",children:_("h6",{"data-testid":"".concat(w,"_name"),className:Ae.title,children:se})}),_(f,{appPackage:null==M?void 0:M.package})]}),k]}),(!ge||z)&&re&&_("h6",{"data-testid":"".concat(w,"_subtitle"),className:Ae.subtitle,children:re})]}),M&&F&&N("div",{className:o(j.controlsContainer,q&&j.appMaximized),children:[oe&&!ge&&_(g,P({},be)),H,N("div",{className:j.assetLabels,children:[fe&&_(A,{assetName:fe,coordinatesPixelWidth:ae,dataTestId:"".concat(w,"_secondaryAsset"),href:!he&&ue,icon:oe&&_(y,{}),isColored:!oe||M.settings.padId&&M.settings.padId!==R.current_pad_id}),de&&_(v,{assetName:me,coordinatesPixelWidth:ae,dataTestId:"".concat(w,"_primaryAsset"),href:!he&&(ce||"/feed"),statusBadge:pe&&V})]})]}),J&&D&&_(p,{annotation:D,appId:r(M,["app","id"]),currentUser:B,dashboardAppId:M.id,openAnnotationsList:U,updateCurrentDashboardAppLastAnnotation:K})]}),ge&&re&&!z&&_("h6",{"data-testid":"".concat(w,"_subtitle"),className:Ae.subtitle,children:re})]}),oe&&ge&&_("div",{className:j.padModeSelect,children:_(g,P({},be))})]})}C.propTypes={app:i.object.isRequired,badge:i.node,classes:i.shape({appHeader:i.string,appHeaderTitleWrapper:i.string}),showLastAnnotation:i.bool,currentUser:i.shape({}),appLastAnnotation:i.shape({}),updateCurrentDashboardAppLastAnnotation:i.func,openAnnotationsList:i.func,rig:i.shape({name:i.string,asset_id:i.number}),well:i.shape({name:i.string,asset_id:i.number}),fracFleet:i.shape({name:i.string,current_pad_id:i.number,pad_frac_fleets:i.arrayOf(i.shape({pad:i.shape({id:i.number.isRequired}).isRequired})).isRequired}),wells:i.arrayOf(i.shape({})),coordinates:i.shape({pixelWidth:i.number.isRequired}),isMaximized:i.bool,appSettings:i.shape({}),onSettingChange:i.func,children:i.arrayOf(i.node),logoSrc:i.string,primaryAssetStatusBadge:i.node},C.defaultProps={appLastAnnotation:null,appSettings:null,badge:null,children:null,classes:{},coordinates:void 0,currentUser:void 0,fracFleet:null,isMaximized:!1,logoSrc:null,onSettingChange:void 0,openAnnotationsList:void 0,rig:null,showLastAnnotation:!0,updateCurrentDashboardAppLastAnnotation:function(){},well:null,wells:null,primaryAssetStatusBadge:null};export{w as PAGE_NAME,C as default};
@@ -1 +1 @@
1
- {"version":3,"file":"ReportIssueModal.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/ReportIssueModal.tsx"],"names":[],"mappings":";AAoBA,aAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAA;AAED,eAAO,MAAM,gBAAgB,8BAA+B,qBAAqB,KAAG,WAkCnF,CAAC"}
1
+ {"version":3,"file":"ReportIssueModal.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/ReportIssueModal.tsx"],"names":[],"mappings":";AAoBA,aAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAA;AAED,eAAO,MAAM,gBAAgB,8BAA+B,qBAAqB,KAAG,WAsCnF,CAAC"}
@@ -1 +1 @@
1
- import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useState as o}from"react";import{makeStyles as n,TextField as a}from"@material-ui/core";import l from"../../Modal/Modal.js";import m from"../../Button/index.js";var s=n((function(e){return{container:{width:472,color:e.palette.primary.text6,display:"flex",flexDirection:"column",gap:8},helpText:{fontSize:16,lineHeight:"22px"},clearAllButton:{margin:"0 16px 0 auto"}}})),c=function(n){var c=n.open,u=n.onSave,p=n.onClose,d=s(),f=o(""),h=f[0],v=f[1];return r(l,e({open:c,onClose:p,title:"Report Data Quality Issue",actions:t(i,{children:[r(m,e({variation:"primary",onClick:function(){return u(h)}},{children:"Cancel"})),r(m,e({variation:"primary"},{children:"Save"}))]})},{children:t("div",e({className:d.container},{children:[r("div",e({className:d.helpText},{children:"All issues are submitted to the Corva’s 24/7 Fusion data quality team for immediate review and remediation."})),r(a,{multiline:!0,rows:1,rowsMax:4,label:"Error Description",onChange:function(e){return v(e.target.value)}})]}))}))};export{c as ReportIssueModal};
1
+ import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useState as o}from"react";import{makeStyles as n,TextField as a}from"@material-ui/core";import l from"../../Modal/Modal.js";import c from"../../Button/index.js";var m=n((function(e){return{container:{width:472,color:e.palette.primary.text6,display:"flex",flexDirection:"column",gap:8},helpText:{fontSize:16,lineHeight:"22px"},clearAllButton:{margin:"0 16px 0 auto"}}})),s=function(n){var s=n.open,u=n.onSave,p=n.onClose,d=m(),f=o(""),h=f[0],x=f[1];return r(l,e({open:s,onClose:p,title:"Report Data Quality Issue",actions:t(i,{children:[r(c,e({color:"primary",className:d.clearAllButton,onClick:p},{children:"Cancel"})),r(c,e({onClick:function(){return u(h)},variation:"primary"},{children:"Save"}))]})},{children:t("div",e({className:d.container},{children:[r("div",e({className:d.helpText},{children:"All issues are submitted to the Corva’s 24/7 Fusion data quality team for immediate review and remediation."})),r(a,{multiline:!0,rows:1,rowsMax:4,label:"Error Description",onChange:function(e){return x(e.target.value)}})]}))}))};export{s as ReportIssueModal};
@@ -7,10 +7,10 @@ declare const _default: import("react").ComponentType<Pick<Pick<PropTypes.InferP
7
7
  popoverPaper: PropTypes.Validator<string>;
8
8
  childrenWrapper: PropTypes.Validator<string>;
9
9
  }>>>;
10
- }>, "children" | "user" | "classes"> & {
10
+ }>, "user" | "children" | "classes"> & {
11
11
  wrapperStyle?: PropTypes.InferProps<{}>;
12
12
  currentUser?: PropTypes.InferProps<{}>;
13
- } & {}, "children" | "user" | "wrapperStyle" | "currentUser"> & import("@material-ui/core").StyledComponentProps<"popoverPaper" | "childrenWrapper">>;
13
+ } & {}, "user" | "children" | "wrapperStyle" | "currentUser"> & import("@material-ui/core").StyledComponentProps<"popoverPaper" | "childrenWrapper">>;
14
14
  export default _default;
15
15
  import PropTypes from "prop-types";
16
16
  //# sourceMappingURL=UserCardPopover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"featureFlags.d.ts","sourceRoot":"","sources":["../../src/constants/featureFlags.js"],"names":[],"mappings":"AACA,kCAAmC"}
1
+ {"version":3,"file":"featureFlags.d.ts","sourceRoot":"","sources":["../../src/constants/featureFlags.js"],"names":[],"mappings":"AAAA,kCAAmC"}
@@ -16,5 +16,6 @@ import * as appPackages from "./appPackages";
16
16
  import * as notifications from "./notifications";
17
17
  import * as bha from "./bha";
18
18
  import { componentsSettings } from "./componentsSettings";
19
- export { DEV_CENTER_CLI_APP_ID, drillstring, casing, goals, segment, alerts, feed, ASSET_TYPES, apps, DRILLING_WELL_SUMMARY, COMPLETION_WELL_SUMMARY, DRILLOUT_WELL_SUMMARY, RIG_ACTIVITY_COLORS, completion, appPackages, notifications, bha, componentsSettings };
19
+ import * as localStorageKeys from "./localStorageKeys";
20
+ export { DEV_CENTER_CLI_APP_ID, drillstring, casing, goals, segment, alerts, feed, ASSET_TYPES, apps, DRILLING_WELL_SUMMARY, COMPLETION_WELL_SUMMARY, DRILLOUT_WELL_SUMMARY, RIG_ACTIVITY_COLORS, completion, appPackages, notifications, bha, componentsSettings, localStorageKeys };
20
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export{DEV_CENTER_CLI_APP_ID}from"./devcenter.js";import*as o from"./goals.js";export{o as goals};import*as r from"./segment.js";export{r as segment};import*as t from"./alerts.js";export{t as alerts};import*as s from"./apps.js";export{s as apps};import*as p from"./casing.js";export{p as casing};import*as e from"./drillstring.js";export{e as drillstring};import*as m from"./completion.js";export{m as completion};import*as i from"./appPackages.js";export{i as appPackages};import*as a from"./notifications.js";export{a as notifications};import*as f from"./feed.js";export{f as feed};import*as j from"./bha.js";export{j as bha};export{ASSET_TYPES}from"./assetTypes.js";export{COMPLETION_WELL_SUMMARY,DRILLING_WELL_SUMMARY,DRILLOUT_WELL_SUMMARY}from"./wellSummary.js";export{RIG_ACTIVITY_COLORS}from"./rigActivity.js";export{componentsSettings}from"./componentsSettings.js";
1
+ export{DEV_CENTER_CLI_APP_ID}from"./devcenter.js";import*as o from"./goals.js";export{o as goals};import*as r from"./segment.js";export{r as segment};import*as t from"./alerts.js";export{t as alerts};import*as s from"./apps.js";export{s as apps};import*as p from"./casing.js";export{p as casing};import*as e from"./drillstring.js";export{e as drillstring};import*as m from"./completion.js";export{m as completion};import*as a from"./appPackages.js";export{a as appPackages};import*as i from"./notifications.js";export{i as notifications};import*as f from"./feed.js";export{f as feed};import*as j from"./bha.js";export{j as bha};export{ASSET_TYPES}from"./assetTypes.js";export{COMPLETION_WELL_SUMMARY,DRILLING_WELL_SUMMARY,DRILLOUT_WELL_SUMMARY}from"./wellSummary.js";export{RIG_ACTIVITY_COLORS}from"./rigActivity.js";export{componentsSettings}from"./componentsSettings.js";import*as x from"./localStorageKeys.js";export{x as localStorageKeys};
@@ -0,0 +1,3 @@
1
+ export const LOCAL_STORAGE_APP_THEME_KEY: "APP_THEME";
2
+ export const LOCAL_STORAGE_PDF_REPORT_VIEW_KEY: "PDF_REPORT_VIEW";
3
+ //# sourceMappingURL=localStorageKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localStorageKeys.d.ts","sourceRoot":"","sources":["../../src/constants/localStorageKeys.js"],"names":[],"mappings":"AAAA,sDAAuD;AACvD,kEAAmE"}
@@ -0,0 +1 @@
1
+ var E="APP_THEME",P="PDF_REPORT_VIEW";export{E as LOCAL_STORAGE_APP_THEME_KEY,P as LOCAL_STORAGE_PDF_REPORT_VIEW_KEY};
@@ -1 +1 @@
1
- {"version":3,"file":"timezone.d.ts","sourceRoot":"","sources":["../../src/constants/timezone.js"],"names":[],"mappings":"AACA,8DAA+D"}
1
+ {"version":3,"file":"timezone.d.ts","sourceRoot":"","sources":["../../src/constants/timezone.js"],"names":[],"mappings":"AAAA,8DAA+D"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useDevCenterApp.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDevCenterApp.test.d.ts","sourceRoot":"","sources":["../../../src/effects/__tests__/useDevCenterApp.test.js"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- export default useCorvaApp;
2
- declare function useCorvaApp({ CLIAppComponent, CLIAppSettings, app, version }: {
1
+ export default useDevCenterApp;
2
+ declare function useDevCenterApp({ CLIAppComponent, CLIAppSettings, app, version }: {
3
3
  CLIAppComponent: any;
4
4
  CLIAppSettings: any;
5
5
  app: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.56.0-6",
3
+ "version": "0.56.0-8",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -1 +1 @@
1
- {"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../src/utils/audio.js"],"names":[],"mappings":"AAIA,kFAEC"}
1
+ {"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../src/utils/audio.js"],"names":[],"mappings":"AAGA,kFAEC"}
@@ -1 +1 @@
1
- {"version":3,"file":"chartSeries.d.ts","sourceRoot":"","sources":["../../src/utils/chartSeries.js"],"names":[],"mappings":"AAoBA,yDA2BC"}
1
+ {"version":3,"file":"chartSeries.d.ts","sourceRoot":"","sources":["../../src/utils/chartSeries.js"],"names":[],"mappings":"AAmBA,yDA2BC"}
@@ -10,7 +10,7 @@ export function getAppIdentifier({ appKey, version, isLocalDebugMode }: {
10
10
  version: any;
11
11
  isLocalDebugMode: any;
12
12
  }): any;
13
- export function isAppMaximized(query: any, appId?: any): boolean;
13
+ export function isAppMaximized(query: any, appId?: number): boolean;
14
14
  export function getTimestampFromQuery(query: any): number;
15
15
  export function getAppName(app: any): any;
16
16
  export function isDevCenterApp(app: any): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"devcenter.d.ts","sourceRoot":"","sources":["../../src/utils/devcenter.js"],"names":[],"mappings":"AAWA;;;;;;EAiBC;AAzBM;;;;QAIN;AACM,iEACuB;AAqBvB,0DAC4D;AAE5D,0CAA6E;AAE7E,kDAAoF;AAEpF,6CACkE"}
1
+ {"version":3,"file":"devcenter.d.ts","sourceRoot":"","sources":["../../src/utils/devcenter.js"],"names":[],"mappings":"AAWA;;;;;;EAiBC;AAzBM;;;;QAIN;AACM,oEACuB;AAqBvB,0DAC4D;AAE5D,0CAA6E;AAE7E,kDAAoF;AAEpF,6CACkE"}
@@ -1,2 +1,3 @@
1
1
  export const isReportsPage: boolean;
2
+ export const isPDFReportView: any;
2
3
  //# sourceMappingURL=reports.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../src/utils/reports.js"],"names":[],"mappings":"AAIA,oCAA8E"}
1
+ {"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../src/utils/reports.js"],"names":[],"mappings":"AAKA,oCAA8E;AAE9E,kCAEE"}
package/utils/reports.js CHANGED
@@ -1 +1 @@
1
- var t=window.location.pathname.startsWith("/reports/");export{t as isReportsPage};
1
+ import{LOCAL_STORAGE_PDF_REPORT_VIEW_KEY as t}from"../constants/localStorageKeys.js";var a=window.location.pathname.startsWith("/reports/"),o=JSON.parse(localStorage.getItem(t)||"false");export{o as isPDFReportView,a as isReportsPage};
@@ -1 +1 @@
1
- {"version":3,"file":"rollbar.d.ts","sourceRoot":"","sources":["../../src/utils/rollbar.js"],"names":[],"mappings":"AACA,iDAYC"}
1
+ {"version":3,"file":"rollbar.d.ts","sourceRoot":"","sources":["../../src/utils/rollbar.js"],"names":[],"mappings":"AAAA,iDAYC"}