@corva/ui 3.80.0-5 → 3.80.0-6

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 (41) hide show
  1. package/cjs-bundle/components/Chart/effects/useChartModifier.js +1 -1
  2. package/cjs-bundle/components/Chart/effects/useChartModifier.js.map +1 -1
  3. package/cjs-bundle/config/highcharts/highcharts.js +1 -1
  4. package/cjs-bundle/config/highcharts/highcharts.js.map +1 -1
  5. package/cjs-bundle/config/initGlobalDependencies.js +1 -1
  6. package/cjs-bundle/config/initGlobalDependencies.js.map +1 -1
  7. package/components/Chart/effects/useChartModifier.d.ts.map +1 -1
  8. package/components/Chart/effects/useChartModifier.js +1 -1
  9. package/components/Chart/effects/useChartModifier.js.map +1 -1
  10. package/components/Drillstring/BHAComponentDetail/constants.d.ts +2 -2
  11. package/config/highcharts/highcharts.d.ts +1 -3
  12. package/config/highcharts/highcharts.d.ts.map +1 -1
  13. package/config/highcharts/highcharts.js +1 -1
  14. package/config/highcharts/highcharts.js.map +1 -1
  15. package/config/highcharts/index.d.ts +0 -1
  16. package/config/highcharts/index.d.ts.map +1 -1
  17. package/config/initGlobalDependencies.d.ts +1 -1
  18. package/config/initGlobalDependencies.d.ts.map +1 -1
  19. package/config/initGlobalDependencies.js +1 -1
  20. package/config/initGlobalDependencies.js.map +1 -1
  21. package/mcp-server/server.mjs +1 -1
  22. package/package.json +1 -3
  23. package/tsconfig.tsbuildinfo +1 -1
  24. package/cjs-bundle/config/highcharts/constants.js +0 -2
  25. package/cjs-bundle/config/highcharts/constants.js.map +0 -1
  26. package/cjs-bundle/config/highcharts/getHighchartsV10.js +0 -2
  27. package/cjs-bundle/config/highcharts/getHighchartsV10.js.map +0 -1
  28. package/cjs-bundle/config/highcharts/getHighchartsV8.js +0 -2
  29. package/cjs-bundle/config/highcharts/getHighchartsV8.js.map +0 -1
  30. package/config/highcharts/constants.d.ts +0 -3
  31. package/config/highcharts/constants.d.ts.map +0 -1
  32. package/config/highcharts/constants.js +0 -2
  33. package/config/highcharts/constants.js.map +0 -1
  34. package/config/highcharts/getHighchartsV10.d.ts +0 -24
  35. package/config/highcharts/getHighchartsV10.d.ts.map +0 -1
  36. package/config/highcharts/getHighchartsV10.js +0 -2
  37. package/config/highcharts/getHighchartsV10.js.map +0 -1
  38. package/config/highcharts/getHighchartsV8.d.ts +0 -24
  39. package/config/highcharts/getHighchartsV8.d.ts.map +0 -1
  40. package/config/highcharts/getHighchartsV8.js +0 -2
  41. package/config/highcharts/getHighchartsV8.js.map +0 -1
@@ -1,2 +1,2 @@
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"),n=require("../formations.js");function i(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var s=i(r);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 c(r){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?a(Object(t),!0).forEach((function(e){s.default(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}var u=function(r,e,t){var o,n,i;return(null===(o=window.Highcharts)||void 0===o||null===(n=o.version)||void 0===n?void 0:n.startsWith("10"))?{zooming:{type:t||!e?"none":r.zoomType,panning:{enabled:!e,type:(null===(i=r.panning)||void 0===i?void 0:i.type)||"xy"},panKey:""}}:{zoomType:t||!e?"none":r.zoomType}},l=e.makeStyles({axisGrab:{cursor:"grab"},axisCrosshair:{cursor:"crosshair"}});exports.useChartModifier=function(r){var e=r.chart,i=r.chartOptions,s=r.isZoomEnabled,a=r.isMinHeightChart,p=r.handleChartSelection,f=r.onZoomChangeCallback,h=r.isAxesCoordinatesShown,d=l();o.useEffect((function(){if(!t.isEmpty(e)){var r={zIndex:1,color:"#ffffff",dashStyle:"dash"};e.plotBackground.element.style.cursor=a||!s?"grab":"crosshair",e.series.forEach((function(r){var e;return null==r||null===(e=r.group)||void 0===e?void 0:e.css({cursor:a||!s?"grab":"crosshair"})})),e.update({chart:c(c({},i),{},{plotBackgroundColor:"transparent"},u(i,s,a)),xAxis:{crosshair:h?r:null,className:s?d.axisCrosshair:d.axisGrab,events:{afterSetExtremes:function(r){var t,o;"zoom"!==r.trigger&&"navigator"!==r.trigger||p(),null!==(t=e.xAxis)&&void 0!==t&&null!==(o=t[0].userOptions.plotLines)&&void 0!==o&&o.length&&n.updateAxisStyles({chart:e}),f(r)}}},yAxis:{crosshair:h?r:null,className:s?d.axisCrosshair:d.axisGrab,events:{afterSetExtremes:function(r){"zoom"!==r.trigger&&"navigator"!==r.trigger||p(),f(r)}}},plotOptions:{series:{cursor:a||!s?"grab":"crosshair"}}})}}),[s,p,h])};
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,p=r.onZoomChangeCallback,f=r.isAxesCoordinatesShown,g=u();o.useEffect((function(){var r;if(!t.isEmpty(e)){var o={zIndex:1,color:"#ffffff",dashStyle:"dash"};e.plotBackground.element.style.cursor=n||!i?"grab":"crosshair",e.series.forEach((function(r){var e;return null==r||null===(e=r.group)||void 0===e?void 0:e.css({cursor:n||!i?"grab":"crosshair"})})),e.update({chart:c(c({},a),{},{plotBackgroundColor:"transparent",zooming:{type:n||!i?"none":a.zoomType,panning:{enabled:!i,type:(null===(r=a.panning)||void 0===r?void 0:r.type)||"xy"},panKey:""}}),xAxis:{crosshair:f?o:null,className:i?g.axisCrosshair:g.axisGrab,events:{afterSetExtremes:function(r){var t,o;"zoom"!==r.trigger&&"navigator"!==r.trigger||l(),null!==(t=e.xAxis)&&void 0!==t&&null!==(o=t[0].userOptions.plotLines)&&void 0!==o&&o.length&&s.updateAxisStyles({chart:e}),p(r)}}},yAxis:{crosshair:f?o:null,className:i?g.axisCrosshair:g.axisGrab,events:{afterSetExtremes:function(r){"zoom"!==r.trigger&&"navigator"!==r.trigger||l(),p(r)}}},plotOptions:{series:{cursor:n||!i?"grab":"crosshair"}}})}}),[i,l,f])};
2
2
  //# sourceMappingURL=useChartModifier.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useChartModifier.js","sources":["../../../../../src/components/Chart/effects/useChartModifier.js"],"sourcesContent":["import { makeStyles } from '@material-ui/core';\nimport { isEmpty } from 'lodash';\nimport { useEffect } from 'react';\n\nimport { updateAxisStyles } from '../formations';\n\n// [HIGHCHARTS-10-MIGRATION-TAG]: Find and delete/clean all places like this once the migration to v10 ends\n// Helper function to get chart configuration based on Highcharts version\n// This ensures compatibility with both Highcharts v8 and v10\nconst getChartVersionSpecificConfig = (chartOptions, isZoomEnabled, isMinHeightChart) => {\n const isV10 = window.Highcharts?.version?.startsWith('10');\n\n if (isV10) {\n // Highcharts v10 format\n return {\n zooming: {\n type: isMinHeightChart || !isZoomEnabled ? 'none' : chartOptions.zoomType,\n panning: {\n enabled: !isZoomEnabled,\n type: chartOptions.panning?.type || 'xy',\n },\n panKey: '',\n },\n };\n } else {\n // Highcharts v8 format (backward compatibility)\n return {\n zoomType: isMinHeightChart || !isZoomEnabled ? 'none' : chartOptions.zoomType,\n };\n }\n};\n\nconst useStyles = makeStyles({\n axisGrab: {\n cursor: 'grab',\n },\n axisCrosshair: {\n cursor: 'crosshair',\n },\n});\n\nexport const useChartModifier = ({\n chart,\n chartOptions,\n isZoomEnabled,\n isMinHeightChart,\n handleChartSelection,\n onZoomChangeCallback,\n isAxesCoordinatesShown,\n}) => {\n const classes = useStyles();\n\n useEffect(() => {\n if (isEmpty(chart)) {\n return;\n }\n\n const crosshairConfig = {\n zIndex: 1,\n color: '#ffffff',\n dashStyle: 'dash',\n };\n // eslint-disable-next-line no-param-reassign\n chart.plotBackground.element.style.cursor =\n isMinHeightChart || !isZoomEnabled ? 'grab' : 'crosshair';\n\n chart.series.forEach(seriesItem =>\n seriesItem?.group?.css({\n cursor: isMinHeightChart || !isZoomEnabled ? 'grab' : 'crosshair',\n })\n );\n\n chart.update({\n chart: {\n ...chartOptions,\n plotBackgroundColor: 'transparent',\n ...getChartVersionSpecificConfig(chartOptions, isZoomEnabled, isMinHeightChart),\n },\n xAxis: {\n crosshair: isAxesCoordinatesShown ? crosshairConfig : null,\n className: isZoomEnabled ? classes.axisCrosshair : classes.axisGrab,\n events: {\n afterSetExtremes(e) {\n if (e.trigger === 'zoom' || e.trigger === 'navigator') {\n handleChartSelection();\n }\n if (chart.xAxis?.[0].userOptions.plotLines?.length) {\n updateAxisStyles({ chart });\n }\n onZoomChangeCallback(e);\n },\n },\n },\n yAxis: {\n crosshair: isAxesCoordinatesShown ? crosshairConfig : null,\n className: isZoomEnabled ? classes.axisCrosshair : classes.axisGrab,\n events: {\n afterSetExtremes(e) {\n if (e.trigger === 'zoom' || e.trigger === 'navigator') {\n handleChartSelection();\n }\n onZoomChangeCallback(e);\n },\n },\n },\n plotOptions: {\n series: {\n cursor: isMinHeightChart || !isZoomEnabled ? 'grab' : 'crosshair',\n },\n },\n });\n }, [isZoomEnabled, handleChartSelection, isAxesCoordinatesShown]);\n};\n"],"names":["getChartVersionSpecificConfig","chartOptions","isZoomEnabled","isMinHeightChart","_window$Highcharts","_window$Highcharts$ve","_chartOptions$panning","window","Highcharts","version","startsWith","zooming","type","zoomType","panning","enabled","panKey","useStyles","makeStyles","axisGrab","cursor","axisCrosshair","_ref","chart","handleChartSelection","onZoomChangeCallback","isAxesCoordinatesShown","classes","useEffect","isEmpty","crosshairConfig","zIndex","color","dashStyle","plotBackground","element","style","series","forEach","seriesItem","_seriesItem$group","group","css","update","plotBackgroundColor","xAxis","crosshair","className","events","afterSetExtremes","e","_chart$xAxis","_chart$xAxis$0$userOp","trigger","userOptions","plotLines","length","updateAxisStyles","yAxis","plotOptions"],"mappings":"y3BASA,IAAMA,EAAgC,SAACC,EAAcC,EAAeC,GAAqB,IAAAC,EAAAC,EAG5EC,EAAX,OAF+B,QAApBF,EAAGG,OAAOC,kBAAU,IAAAJ,GAAjB,QAAiBC,EAAjBD,EAAmBK,eAAnB,IAAAJ,OAAiB,EAAjBA,EAA4BK,WAAW,OAI5C,CACLC,QAAS,CACPC,KAAMT,IAAqBD,EAAgB,OAASD,EAAaY,SACjEC,QAAS,CACPC,SAAUb,EACVU,MAAM,UAAAX,EAAaa,eAAb,IAAAR,OAAA,EAAAA,EAAsBM,OAAQ,MAEtCI,OAAQ,KAKL,CACLH,SAAUV,IAAqBD,EAAgB,OAASD,EAAaY,SAG3E,EAEMI,EAAYC,EAAAA,WAAW,CAC3BC,SAAU,CACRC,OAAQ,QAEVC,cAAe,CACbD,OAAQ,wCAIoB,SAQ1BE,GAAA,IAPJC,IAAAA,MACAtB,IAAAA,aACAC,IAAAA,cACAC,IAAAA,iBACAqB,IAAAA,qBACAC,IAAAA,qB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effects/useChartModifier.js"],"sourcesContent":["import { makeStyles } from '@material-ui/core';\nimport { isEmpty } from 'lodash';\nimport { useEffect } from 'react';\n\nimport { updateAxisStyles } from '../formations';\n\nconst useStyles = makeStyles({\n axisGrab: {\n cursor: 'grab',\n },\n axisCrosshair: {\n cursor: 'crosshair',\n },\n});\n\nexport const useChartModifier = ({\n chart,\n chartOptions,\n isZoomEnabled,\n isMinHeightChart,\n handleChartSelection,\n onZoomChangeCallback,\n isAxesCoordinatesShown,\n}) => {\n const classes = useStyles();\n\n useEffect(() => {\n if (isEmpty(chart)) {\n return;\n }\n\n const crosshairConfig = {\n zIndex: 1,\n color: '#ffffff',\n dashStyle: 'dash',\n };\n // eslint-disable-next-line no-param-reassign\n chart.plotBackground.element.style.cursor =\n isMinHeightChart || !isZoomEnabled ? 'grab' : 'crosshair';\n\n chart.series.forEach(seriesItem =>\n seriesItem?.group?.css({\n cursor: isMinHeightChart || !isZoomEnabled ? 'grab' : 'crosshair',\n })\n );\n\n chart.update({\n chart: {\n ...chartOptions,\n plotBackgroundColor: 'transparent',\n zooming: {\n type: isMinHeightChart || !isZoomEnabled ? 'none' : chartOptions.zoomType,\n panning: {\n enabled: !isZoomEnabled,\n type: chartOptions.panning?.type || 'xy',\n },\n panKey: '',\n },\n },\n xAxis: {\n crosshair: isAxesCoordinatesShown ? crosshairConfig : null,\n className: isZoomEnabled ? classes.axisCrosshair : classes.axisGrab,\n events: {\n afterSetExtremes(e) {\n if (e.trigger === 'zoom' || e.trigger === 'navigator') {\n handleChartSelection();\n }\n if (chart.xAxis?.[0].userOptions.plotLines?.length) {\n updateAxisStyles({ chart });\n }\n onZoomChangeCallback(e);\n },\n },\n },\n yAxis: {\n crosshair: isAxesCoordinatesShown ? crosshairConfig : null,\n className: isZoomEnabled ? classes.axisCrosshair : classes.axisGrab,\n events: {\n afterSetExtremes(e) {\n if (e.trigger === 'zoom' || e.trigger === 'navigator') {\n handleChartSelection();\n }\n onZoomChangeCallback(e);\n },\n },\n },\n plotOptions: {\n series: {\n cursor: isMinHeightChart || !isZoomEnabled ? 'grab' : 'crosshair',\n },\n },\n });\n }, [isZoomEnabled, handleChartSelection, isAxesCoordinatesShown]);\n};\n"],"names":["useStyles","makeStyles","axisGrab","cursor","axisCrosshair","_ref","chart","chartOptions","isZoomEnabled","isMinHeightChart","handleChartSelection","onZoomChangeCallback","isAxesCoordinatesShown","classes","useEffect","_chartOptions$panning","isEmpty","crosshairConfig","zIndex","color","dashStyle","plotBackground","element","style","series","forEach","seriesItem","_seriesItem$group","group","css","update","plotBackgroundColor","zooming","type","zoomType","panning","enabled","panKey","xAxis","crosshair","className","events","afterSetExtremes","e","_chart$xAxis","_chart$xAxis$0$userOp","trigger","userOptions","plotLines","length","updateAxisStyles","yAxis","plotOptions"],"mappings":"y3BAMA,IAAMA,EAAYC,EAAAA,WAAW,CAC3BC,SAAU,CACRC,OAAQ,QAEVC,cAAe,CACbD,OAAQ,wCAIoB,SAQ1BE,GAAA,IAPJC,IAAAA,MACAC,IAAAA,aACAC,IAAAA,cACAC,IAAAA,iBACAC,IAAAA,qBACAC,IAAAA,qBACAC,IAAAA,uBAEMC,EAAUb,IAEhBc,EAAAA,WAAU,WAAM,IAAAC,EACd,IAAIC,EAAAA,QAAQV,GAAZ,CAIA,IAAMW,EAAkB,CACtBC,OAAQ,EACRC,MAAO,UACPC,UAAW,QAGbd,EAAMe,eAAeC,QAAQC,MAAMpB,OACjCM,IAAqBD,EAAgB,OAAS,YAEhDF,EAAMkB,OAAOC,SAAQ,SAAAC,GAAU,IAAAC,EAAA,OAC7BD,SAAiB,QAAjBA,EAAAA,EAAYE,aAAK,IAAAD,OAAjBD,EAAAC,EAAmBE,IAAI,CACrB1B,OAAQM,IAAqBD,EAAgB,OAAS,iBAI1DF,EAAMwB,OAAO,CACXxB,aACKC,GAAY,CAAA,EAAA,CACfwB,oBAAqB,cACrBC,QAAS,CACPC,KAAMxB,IAAqBD,EAAgB,OAASD,EAAa2B,SACjEC,QAAS,CACPC,SAAU5B,EACVyB,MAAM,UAAA1B,EAAa4B,eAAb,IAAApB,OAAA,EAAAA,EAAsBkB,OAAQ,MAEtCI,OAAQ,MAGZC,MAAO,CACLC,UAAW3B,EAAyBK,EAAkB,KACtDuB,UAAWhC,EAAgBK,EAAQT,cAAgBS,EAAQX,SAC3DuC,OAAQ,CACNC,iBAAgB,SAACC,GAAG,IAAAC,EAAAC,EACA,SAAdF,EAAEG,SAAoC,cAAdH,EAAEG,SAC5BpC,IAEa,QAAfkC,EAAItC,EAAMgC,aAAK,IAAAM,GAAX,QAAWC,EAAXD,EAAc,GAAGG,YAAYC,iBAA7B,IAAAH,GAAAA,EAAwCI,QAC1CC,mBAAiB,CAAE5C,MAAAA,IAErBK,EAAqBgC,EACvB,IAGJQ,MAAO,CACLZ,UAAW3B,EAAyBK,EAAkB,KACtDuB,UAAWhC,EAAgBK,EAAQT,cAAgBS,EAAQX,SAC3DuC,OAAQ,CACNC,iBAAgB,SAACC,GACG,SAAdA,EAAEG,SAAoC,cAAdH,EAAEG,SAC5BpC,IAEFC,EAAqBgC,EACvB,IAGJS,YAAa,CACX5B,OAAQ,CACNrB,OAAQM,IAAqBD,EAAgB,OAAS,eA3D5D,CA+DD,GAAE,CAACA,EAAeE,EAAsBE,GAC3C"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/helpers/slicedToArray"),r=require("@babel/runtime/helpers/typeof"),a=require("@babel/runtime/regenerator"),n=require("./constants.js"),i=require("./highcharts-contour.js"),o=require("./getHighchartsV10.js"),s=require("dompurify");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=u(e),c=u(t),d=u(r),h=u(a),f=u(s),p=function e(t){return"string"==typeof t?f.default.sanitize(t):("object"===d.default(t)&&null!==t&&Object.entries(t).forEach((function(r){var a=c.default(r,2),n=a[0],i=a[1];"string"==typeof i?t[n]=f.default.sanitize(t[n]):Array.isArray(i)?i.forEach((function(r,a){t[n][a]=e(r)})):"object"===d.default(i)&&(t[n]=e(i))})),t)},g=function(){var e,t=document.createElement("canvas").getContext("webgl"),r=null==t?void 0:t.createShader(t.VERTEX_SHADER);if(!r)return!1;t.shaderSource(r,"void main(){gl_Position=vec4(0.0,0.0,0.0,1.0);}"),t.compileShader(r);var a=!!t.getShaderParameter(r,t.COMPILE_STATUS);return t.deleteShader(r),null===(e=t.getExtension("WEBGL_lose_context"))||void 0===e||e.loseContext(),a};function b(){return b=l.default(h.default.mark((function e(){var t,r,a,s,u,l,c,d,f,b,v,H,S,A,y,E,T,_=arguments;return h.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=_.length>0&&void 0!==_[0]?_[0]:{},r=t.version,a=void 0===r?n.HIGHCHARTS_V10_VERSION:r,[n.HIGHCHARTS_V8_VERSION,n.HIGHCHARTS_V10_VERSION].includes(a)){e.next=3;break}throw new Error("Invalid highcharts version: ".concat(a));case 3:if(a!==n.HIGHCHARTS_V8_VERSION){e.next=9;break}return e.next=6,Promise.resolve().then((function(){return require("./getHighchartsV8.js")}));case 6:e.t0=e.sent.getHighchartsV8,e.next=10;break;case 9:e.t0=o.getHighchartsV10;case 10:s=e.t0,u=s(),l=u.Highcharts,c=u.highchartsMore,d=u.HighchartsMulticolorSeries,f=u.addSolidGauge,b=u.addHeatmap,v=u.addBoost,H=u.addExporting,S=u.addXrange,A=u.addDumbbell,y=u.addPatternFill,E=u.addAnnotations,window.Highcharts=l,l.AST&&(l.AST.bypassHTMLFiltering=!0,l.AST.allowedAttributes.push("viewBox"),l.AST.allowedAttributes.push("fill-rule"),l.AST.allowedAttributes.push("clip-rule")),d(l),c(l),f(l),b(l),v(l),H(l),S(l),A(l),y(l),i(l),E(l),T=l.chart,l.chart=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length,a=new Array(r>2?r-2:0),n=2;n<r;n++)a[n-2]=arguments[n];return T.apply(void 0,[e,p(t)].concat(a))},l.setOptions({boost:{enabled:g()},plotOptions:{series:{states:{inactive:{enabled:!1}}}}});case 28:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}exports.initHighcharts=function(){return b.apply(this,arguments)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/helpers/slicedToArray"),r=require("@babel/runtime/helpers/typeof"),a=require("@babel/runtime/regenerator"),u=require("highcharts"),l=require("highcharts/highcharts-more"),i=require("highcharts/modules/solid-gauge"),n=require("highcharts/modules/heatmap"),o=require("highcharts/modules/boost"),s=require("highcharts/modules/exporting"),d=require("highcharts/modules/xrange"),h=require("highcharts/modules/dumbbell"),f=require("highcharts/modules/pattern-fill"),c=require("highcharts/modules/annotations"),p=require("highcharts-multicolor-series"),g=require("dompurify"),b=require("./highcharts-contour.js");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v=m(e),q=m(t),y=m(r),A=m(a),S=m(u),w=m(l),x=m(i),T=m(n),E=m(o),_=m(s),j=m(d),O=m(h),H=m(f),P=m(c),C=m(p),L=m(g),M=function e(t){return"string"==typeof t?L.default.sanitize(t):("object"===y.default(t)&&null!==t&&Object.entries(t).forEach((function(r){var a=q.default(r,2),u=a[0],l=a[1];"string"==typeof l?t[u]=L.default.sanitize(t[u]):Array.isArray(l)?l.forEach((function(r,a){t[u][a]=e(r)})):"object"===y.default(l)&&(t[u]=e(l))})),t)},z=function(){var e,t=document.createElement("canvas").getContext("webgl"),r=null==t?void 0:t.createShader(t.VERTEX_SHADER);if(!r)return!1;t.shaderSource(r,"void main(){gl_Position=vec4(0.0,0.0,0.0,1.0);}"),t.compileShader(r);var a=!!t.getShaderParameter(r,t.COMPILE_STATUS);return t.deleteShader(r),null===(e=t.getExtension("WEBGL_lose_context"))||void 0===e||e.loseContext(),a};function B(){return B=v.default(A.default.mark((function e(){var t;return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:window.Highcharts=S.default,S.default.AST.bypassHTMLFiltering=!0,S.default.AST.allowedAttributes.push("viewBox"),S.default.AST.allowedAttributes.push("fill-rule"),S.default.AST.allowedAttributes.push("clip-rule"),C.default(S.default),w.default(S.default),x.default(S.default),T.default(S.default),E.default(S.default),_.default(S.default),j.default(S.default),O.default(S.default),H.default(S.default),b(S.default),P.default(S.default),t=S.default.chart,S.default.chart=function(e){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length,u=new Array(a>2?a-2:0),l=2;l<a;l++)u[l-2]=arguments[l];return t.apply(void 0,[e,M(r)].concat(u))},S.default.setOptions({boost:{enabled:z()},plotOptions:{series:{states:{inactive:{enabled:!1}}}}});case 19:case"end":return e.stop()}}),e)}))),B.apply(this,arguments)}exports.initHighcharts=function(){return B.apply(this,arguments)};
2
2
  //# sourceMappingURL=highcharts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"highcharts.js","sources":["../../../../src/config/highcharts/highcharts.js"],"sourcesContent":["/* eslint-disable */\n// TODO: all the plugins should be checked, legacy code\n\n// [HIGHCHARTS-10-MIGRATION-TAG]: Find and delete/clean all places like this once the migration ends\nimport { HIGHCHARTS_V10_VERSION, HIGHCHARTS_V8_VERSION } from './constants';\n\nimport addContour from './highcharts-contour';\nimport { getHighchartsV10 } from './getHighchartsV10';\n\nimport DOMPurify from 'dompurify';\n\nconst stripHTMLRecurse = o => {\n if (typeof o === 'string') {\n return DOMPurify.sanitize(o);\n }\n\n if (typeof o === 'object' && o !== null)\n Object.entries(o).forEach(([key, value]) => {\n if (typeof value === 'string') {\n o[key] = DOMPurify.sanitize(o[key]);\n } else if (Array.isArray(value)) {\n value.forEach((item, i) => {\n o[key][i] = stripHTMLRecurse(item);\n });\n } else if (typeof value === 'object') {\n o[key] = stripHTMLRecurse(value);\n }\n });\n\n return o;\n};\n\n// Highcharts' own hasWebGLSupport() only proves a context can be created, which the\n// drivers that fail here can do. Compiling one shader is what separates them.\nconst isBoostSupported = () => {\n const gl = document.createElement('canvas').getContext('webgl');\n const shader = gl?.createShader(gl.VERTEX_SHADER);\n if (!shader) return false;\n\n gl.shaderSource(shader, 'void main(){gl_Position=vec4(0.0,0.0,0.0,1.0);}');\n gl.compileShader(shader);\n const isCompiled = !!gl.getShaderParameter(shader, gl.COMPILE_STATUS);\n\n gl.deleteShader(shader);\n gl.getExtension('WEBGL_lose_context')?.loseContext();\n\n return isCompiled;\n};\n\nexport async function initHighcharts({ version = HIGHCHARTS_V10_VERSION } = {}) {\n if (![HIGHCHARTS_V8_VERSION, HIGHCHARTS_V10_VERSION].includes(version)) {\n throw new Error(`Invalid highcharts version: ${version}`);\n }\n\n const highchartsGetter =\n version === HIGHCHARTS_V8_VERSION\n ? (await import('./getHighchartsV8')).getHighchartsV8\n : getHighchartsV10;\n\n const {\n Highcharts,\n highchartsMore,\n HighchartsMulticolorSeries,\n addSolidGauge,\n addHeatmap,\n addBoost,\n addExporting,\n addXrange,\n addDumbbell,\n addPatternFill,\n addAnnotations,\n } = highchartsGetter();\n\n /**\n * NOTE: Highchart has a bug for pie chart in v8.1.2\n * issue link: https://github.com/highcharts/highcharts/issues/13710\n * workaround:\n * import Highcharts from 'highcharts';\n * window.Highcharts = Highcharts;\n */\n window.Highcharts = Highcharts;\n\n // NOTE: Temporary disable HTML filtering for duration of migration to v10, as this is the main breaking change in v10, should be removed after migration\n if (Highcharts.AST) {\n Highcharts.AST.bypassHTMLFiltering = true;\n\n // Adding needed custom attributes for some SVG icons\n Highcharts.AST.allowedAttributes.push('viewBox');\n Highcharts.AST.allowedAttributes.push('fill-rule');\n Highcharts.AST.allowedAttributes.push('clip-rule');\n }\n\n HighchartsMulticolorSeries(Highcharts);\n // NOTE: Highcharts patching. It should be done in one place before any chart in rendered\n // in order to avoid conflicts\n highchartsMore(Highcharts);\n addSolidGauge(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/angular-gauges\n addHeatmap(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/heatmap\n addBoost(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addExporting(Highcharts); // https://www.highcharts.com/docs/export-module/export-module-overview\n addXrange(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addDumbbell(Highcharts);\n addPatternFill(Highcharts);\n addContour(Highcharts);\n addAnnotations(Highcharts);\n\n // fix security issue for Highcharts 8\n // https://github.com/highcharts/highcharts/security/advisories/GHSA-8j65-4pcq-xq95\n const originalChartFn = Highcharts.chart;\n Highcharts.chart = function (container, options = {}, ...restParams) {\n return originalChartFn(container, stripHTMLRecurse(options), ...restParams);\n };\n\n /**\n * Adjust default highcharts effects globally for better use in our apps\n *\n * 1. Stop animation for inactive series\n * ref: https://api.highcharts.com/highcharts/plotOptions.series.states.inactive.enabled\n *\n * 2. Keep boost off where its shaders will not compile. boost.enabled defaults to\n * true once addBoost has run, and on such drivers boost carries on with a null\n * program and throws out of getAttribLocation mid-render, taking the chart with\n * it. Charts keep GPU acceleration everywhere the driver works.\n *\n */\n Highcharts.setOptions({\n boost: {\n enabled: isBoostSupported(),\n },\n plotOptions: {\n series: {\n states: {\n inactive: {\n enabled: false,\n },\n },\n },\n },\n });\n}\n"],"names":["stripHTMLRecurse","o","DOMPurify","sanitize","_typeof","Object","entries","forEach","_ref","_ref2","_slicedToArray","key","value","Array","isArray","item","i","isBoostSupported","_gl$getExtension","gl","document","createElement","getContext","shader","createShader","VERTEX_SHADER","shaderSource","compileShader","isCompiled","getShaderParameter","COMPILE_STATUS","deleteShader","getExtension","loseContext","_initHighcharts","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_ref3","_ref3$version","version","highchartsGetter","_highchartsGetter","Highcharts","highchartsMore","HighchartsMulticolorSeries","addSolidGauge","addHeatmap","addBoost","addExporting","addXrange","addDumbbell","addPatternFill","addAnnotations","originalChartFn","_args","arguments","wrap","_context","prev","next","length","undefined","HIGHCHARTS_V10_VERSION","HIGHCHARTS_V8_VERSION","includes","Error","Promise","resolve","then","require","t0","sent","getHighchartsV8","getHighchartsV10","window","AST","bypassHTMLFiltering","allowedAttributes","push","addContour","chart","container","options","_len","restParams","_key","setOptions","boost","enabled","plotOptions","series","states","inactive","stop","apply","this"],"mappings":"4eAWMA,EAAmB,SAAnBA,EAAmBC,GACvB,MAAiB,iBAANA,EACFC,EAAS,QAACC,SAASF,IAGX,WAAbG,UAAOH,IAAwB,OAANA,GAC3BI,OAAOC,QAAQL,GAAGM,SAAQ,SAAkBC,GAAA,IAAAC,EAAAC,EAAAA,QAAAF,EAAA,GAAhBG,EAAGF,EAAA,GAAEG,EAAKH,EAAA,GACf,iBAAVG,EACTX,EAAEU,GAAOT,EAAS,QAACC,SAASF,EAAEU,IACrBE,MAAMC,QAAQF,GACvBA,EAAML,SAAQ,SAACQ,EAAMC,GACnBf,EAAEU,GAAKK,GAAKhB,EAAiBe,EAC/B,IAC0B,WAAjBX,EAAA,QAAOQ,KAChBX,EAAEU,GAAOX,EAAiBY,GAE9B,IAEKX,EACT,EAIMgB,EAAmB,WAAM,IAAAC,EACvBC,EAAKC,SAASC,cAAc,UAAUC,WAAW,SACjDC,EAASJ,aAAE,EAAFA,EAAIK,aAAaL,EAAGM,eACnC,IAAKF,EAAQ,OAAO,EAEpBJ,EAAGO,aAAaH,EAAQ,mDACxBJ,EAAGQ,cAAcJ,GACjB,IAAMK,IAAeT,EAAGU,mBAAmBN,EAAQJ,EAAGW,gBAKtD,OAHAX,EAAGY,aAAaR,GACqB,QAArCJ,EAAAA,EAAGa,aAAa,6BAAqB,IAAAd,GAArCA,EAAuCe,cAEhCL,CACT,EA4FC,SAAAM,IAAA,OAAAA,EA1FMC,EAAAA,QAAAC,EAAAA,QAAAC,MAAA,SAAAC,IAAA,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,UAAA,OAAArB,UAAAsB,MAAA,SAA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X,EAAWsC,MACnCtC,EAAWsC,MAAQ,SAAUC,GAAuB,IAAiB,IAA7BC,EAAU3B,UAAAK,OAAA,QAAAC,IAAAN,UAAA,GAAAA,UAAA,GAAA,CAAA,EAAE4B,EAAA5B,UAAAK,OAAKwB,EAAU,IAAAzE,MAAAwE,EAAA,EAAAA,EAAA,EAAA,GAAAE,EAAA,EAAAA,EAAAF,EAAAE,IAAVD,EAAUC,EAAA,GAAA9B,UAAA8B,GACjE,OAAOhC,EAAgB4B,WAAAA,EAAAA,CAAAA,EAAWnF,EAAiBoF,IAAaE,OAAAA,KAelE1C,EAAW4C,WAAW,CACpBC,MAAO,CACLC,QAASzE,KAEX0E,YAAa,CACXC,OAAQ,CACNC,OAAQ,CACNC,SAAU,CACRJ,SAAS,QAKhB,KAAA,GAAA,IAAA,MAAA,OAAA/B,EAAAoC,OAAA,GAAAzD,EACJ,KAAAJ,EAAA8D,MAAAC,KAAAxC,UAAA,wBA1FD,WAAoC,OAAAvB,EAAA8D,MAAAC,KAAAxC,UAAA"}
1
+ {"version":3,"file":"highcharts.js","sources":["../../../../src/config/highcharts/highcharts.js"],"sourcesContent":["/* eslint-disable */\n// TODO: all the plugins should be checked, legacy code\n\nimport Highcharts from 'highcharts';\nimport highchartsMore from 'highcharts/highcharts-more';\nimport addSolidGauge from 'highcharts/modules/solid-gauge';\nimport addHeatmap from 'highcharts/modules/heatmap';\nimport addBoost from 'highcharts/modules/boost';\nimport addExporting from 'highcharts/modules/exporting';\nimport addXrange from 'highcharts/modules/xrange';\nimport addDumbbell from 'highcharts/modules/dumbbell';\nimport addPatternFill from 'highcharts/modules/pattern-fill';\nimport addAnnotations from 'highcharts/modules/annotations';\nimport HighchartsMulticolorSeries from 'highcharts-multicolor-series';\nimport DOMPurify from 'dompurify';\n\nimport addContour from './highcharts-contour';\n\nconst stripHTMLRecurse = o => {\n if (typeof o === 'string') {\n return DOMPurify.sanitize(o);\n }\n\n if (typeof o === 'object' && o !== null)\n Object.entries(o).forEach(([key, value]) => {\n if (typeof value === 'string') {\n o[key] = DOMPurify.sanitize(o[key]);\n } else if (Array.isArray(value)) {\n value.forEach((item, i) => {\n o[key][i] = stripHTMLRecurse(item);\n });\n } else if (typeof value === 'object') {\n o[key] = stripHTMLRecurse(value);\n }\n });\n\n return o;\n};\n\n// Highcharts' own hasWebGLSupport() only proves a context can be created, which the\n// drivers that fail here can do. Compiling one shader is what separates them.\nconst isBoostSupported = () => {\n const gl = document.createElement('canvas').getContext('webgl');\n const shader = gl?.createShader(gl.VERTEX_SHADER);\n if (!shader) return false;\n\n gl.shaderSource(shader, 'void main(){gl_Position=vec4(0.0,0.0,0.0,1.0);}');\n gl.compileShader(shader);\n const isCompiled = !!gl.getShaderParameter(shader, gl.COMPILE_STATUS);\n\n gl.deleteShader(shader);\n gl.getExtension('WEBGL_lose_context')?.loseContext();\n\n return isCompiled;\n};\n\nexport async function initHighcharts() {\n // Dev Center apps and the highcharts modules read the global, not the module import.\n window.Highcharts = Highcharts;\n\n // NOTE: Temporary disable HTML filtering for duration of migration to v10, as this is the main breaking change in v10, should be removed after migration\n Highcharts.AST.bypassHTMLFiltering = true;\n\n // Adding needed custom attributes for some SVG icons\n Highcharts.AST.allowedAttributes.push('viewBox');\n Highcharts.AST.allowedAttributes.push('fill-rule');\n Highcharts.AST.allowedAttributes.push('clip-rule');\n\n HighchartsMulticolorSeries(Highcharts);\n // NOTE: Highcharts patching. It should be done in one place before any chart in rendered\n // in order to avoid conflicts\n highchartsMore(Highcharts);\n addSolidGauge(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/angular-gauges\n addHeatmap(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/heatmap\n addBoost(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addExporting(Highcharts); // https://www.highcharts.com/docs/export-module/export-module-overview\n addXrange(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addDumbbell(Highcharts);\n addPatternFill(Highcharts);\n addContour(Highcharts);\n addAnnotations(Highcharts);\n\n // https://github.com/highcharts/highcharts/security/advisories/GHSA-8j65-4pcq-xq95\n const originalChartFn = Highcharts.chart;\n Highcharts.chart = function (container, options = {}, ...restParams) {\n return originalChartFn(container, stripHTMLRecurse(options), ...restParams);\n };\n\n /**\n * Adjust default highcharts effects globally for better use in our apps\n *\n * 1. Stop animation for inactive series\n * ref: https://api.highcharts.com/highcharts/plotOptions.series.states.inactive.enabled\n *\n * 2. Keep boost off where its shaders will not compile. boost.enabled defaults to\n * true once addBoost has run, and on such drivers boost carries on with a null\n * program and throws out of getAttribLocation mid-render, taking the chart with\n * it. Charts keep GPU acceleration everywhere the driver works.\n *\n */\n Highcharts.setOptions({\n boost: {\n enabled: isBoostSupported(),\n },\n plotOptions: {\n series: {\n states: {\n inactive: {\n enabled: false,\n },\n },\n },\n },\n });\n}\n"],"names":["stripHTMLRecurse","o","DOMPurify","sanitize","_typeof","Object","entries","forEach","_ref","_ref2","_slicedToArray","key","value","Array","isArray","item","i","isBoostSupported","_gl$getExtension","gl","document","createElement","getContext","shader","createShader","VERTEX_SHADER","shaderSource","compileShader","isCompiled","getShaderParameter","COMPILE_STATUS","deleteShader","getExtension","loseContext","_initHighcharts","_asyncToGenerator","_regeneratorRuntime","mark","_callee","originalChartFn","wrap","_context","prev","next","window","Highcharts","AST","bypassHTMLFiltering","allowedAttributes","push","HighchartsMulticolorSeries","highchartsMore","addSolidGauge","addHeatmap","addBoost","addExporting","addXrange","addDumbbell","addPatternFill","addContour","addAnnotations","chart","container","options","arguments","length","undefined","_len","restParams","_key","setOptions","boost","enabled","plotOptions","series","states","inactive","stop","apply","this"],"mappings":"i7BAkBMA,EAAmB,SAAnBA,EAAmBC,GACvB,MAAiB,iBAANA,EACFC,EAAS,QAACC,SAASF,IAGX,WAAbG,UAAOH,IAAwB,OAANA,GAC3BI,OAAOC,QAAQL,GAAGM,SAAQ,SAAkBC,GAAA,IAAAC,EAAAC,EAAAA,QAAAF,EAAA,GAAhBG,EAAGF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U,SACzBc,EAAWd,EAAU,SACrBe,EAAc,QAACf,EAAU,SAGnBN,EAAkBM,EAAU,QAACgB,MACnChB,UAAWgB,MAAQ,SAAUC,GAAuB,IAAiB,IAA7BC,EAAUC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAA,CAAA,EAAEG,EAAAH,UAAAC,OAAKG,EAAU,IAAAvD,MAAAsD,EAAA,EAAAA,EAAA,EAAA,GAAAE,EAAA,EAAAA,EAAAF,EAAAE,IAAVD,EAAUC,EAAA,GAAAL,UAAAK,GACjE,OAAO9B,EAAgBuB,WAAAA,EAAAA,CAAAA,EAAW9D,EAAiB+D,IAAaK,OAAAA,KAelEvB,EAAAA,QAAWyB,WAAW,CACpBC,MAAO,CACLC,QAASvD,KAEXwD,YAAa,CACXC,OAAQ,CACNC,OAAQ,CACNC,SAAU,CACRJ,SAAS,QAKhB,KAAA,GAAA,IAAA,MAAA,OAAA/B,EAAAoC,OAAA,GAAAvC,EACJ,KAAAJ,EAAA4C,MAAAC,KAAAf,UAAA,wBA1DD,WAAoC,OAAA9B,EAAA4C,MAAAC,KAAAf,UAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./highcharts/highcharts.js"),i=require("../clients/subscriptions.js");require("./extendNative.js"),exports.initGlobalDependencies=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.highchartsVersion,s=e.initHighcharts({version:t});return i.initializeSocketClient(),s};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./highcharts/highcharts.js"),i=require("../clients/subscriptions.js");require("./extendNative.js"),exports.initGlobalDependencies=function(){var t=e.initHighcharts();return i.initializeSocketClient(),t};
2
2
  //# sourceMappingURL=initGlobalDependencies.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"initGlobalDependencies.js","sources":["../../../src/config/initGlobalDependencies.js"],"sourcesContent":["import { initHighcharts } from '~/config/highcharts';\nimport { initializeSocketClient } from '~/clients/subscriptions';\nimport './extendNative.js';\n\n// [HIGHCHARTS-10-MIGRATION-TAG]: Find and delete/clean all places like this once the migration ends\nexport function initGlobalDependencies({ highchartsVersion } = {}) {\n const highchartsReady = initHighcharts({ version: highchartsVersion });\n\n initializeSocketClient();\n\n return highchartsReady;\n}\n"],"names":["_ref","arguments","length","undefined","highchartsVersion","highchartsReady","initHighcharts","version","initializeSocketClient"],"mappings":"qNAKO,WAA4D,IAAAA,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAJ,CAAE,EAAxBG,IAAAA,kBACjCC,EAAkBC,EAAAA,eAAe,CAAEC,QAASH,IAIlD,OAFAI,EAAAA,yBAEOH,CACT"}
1
+ {"version":3,"file":"initGlobalDependencies.js","sources":["../../../src/config/initGlobalDependencies.js"],"sourcesContent":["import { initHighcharts } from '~/config/highcharts';\nimport { initializeSocketClient } from '~/clients/subscriptions';\nimport './extendNative.js';\n\nexport function initGlobalDependencies() {\n const highchartsReady = initHighcharts();\n\n initializeSocketClient();\n\n return highchartsReady;\n}\n"],"names":["highchartsReady","initHighcharts","initializeSocketClient"],"mappings":"qNAIO,WACL,IAAMA,EAAkBC,EAAAA,iBAIxB,OAFAC,EAAAA,yBAEOF,CACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"useChartModifier.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/effects/useChartModifier.js"],"names":[],"mappings":"AAyCA,eAAO,MAAM,gBAAgB;;;;;;;;UAuE5B,CAAC"}
1
+ {"version":3,"file":"useChartModifier.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/effects/useChartModifier.js"],"names":[],"mappings":"AAeA,eAAO,MAAM,gBAAgB;;;;;;;;UA8E5B,CAAC"}
@@ -1,2 +1,2 @@
1
- import r from"@babel/runtime/helpers/defineProperty";import{makeStyles as e}from"@material-ui/core";import{isEmpty as o}from"lodash";import{useEffect as t}from"react";import{updateAxisStyles as n}from"../formations.js";function i(r,e){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.push.apply(o,t)}return o}function s(e){for(var o=1;o<arguments.length;o++){var t=null!=arguments[o]?arguments[o]:{};o%2?i(Object(t),!0).forEach((function(o){r(e,o,t[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var a=function(r,e,o){var t,n,i;return(null===(t=window.Highcharts)||void 0===t||null===(n=t.version)||void 0===n?void 0:n.startsWith("10"))?{zooming:{type:o||!e?"none":r.zoomType,panning:{enabled:!e,type:(null===(i=r.panning)||void 0===i?void 0:i.type)||"xy"},panKey:""}}:{zoomType:o||!e?"none":r.zoomType}},c=e({axisGrab:{cursor:"grab"},axisCrosshair:{cursor:"crosshair"}}),l=function(r){var e=r.chart,i=r.chartOptions,l=r.isZoomEnabled,p=r.isMinHeightChart,u=r.handleChartSelection,f=r.onZoomChangeCallback,h=r.isAxesCoordinatesShown,g=c();t((function(){if(!o(e)){var r={zIndex:1,color:"#ffffff",dashStyle:"dash"};e.plotBackground.element.style.cursor=p||!l?"grab":"crosshair",e.series.forEach((function(r){var e;return null==r||null===(e=r.group)||void 0===e?void 0:e.css({cursor:p||!l?"grab":"crosshair"})})),e.update({chart:s(s({},i),{},{plotBackgroundColor:"transparent"},a(i,l,p)),xAxis:{crosshair:h?r:null,className:l?g.axisCrosshair:g.axisGrab,events:{afterSetExtremes:function(r){var o,t;"zoom"!==r.trigger&&"navigator"!==r.trigger||u(),null!==(o=e.xAxis)&&void 0!==o&&null!==(t=o[0].userOptions.plotLines)&&void 0!==t&&t.length&&n({chart:e}),f(r)}}},yAxis:{crosshair:h?r:null,className:l?g.axisCrosshair:g.axisGrab,events:{afterSetExtremes:function(r){"zoom"!==r.trigger&&"navigator"!==r.trigger||u(),f(r)}}},plotOptions:{series:{cursor:p||!l?"grab":"crosshair"}}})}}),[l,u,h])};export{l as useChartModifier};
1
+ import r from"@babel/runtime/helpers/defineProperty";import{makeStyles as e}from"@material-ui/core";import{isEmpty as o}from"lodash";import{useEffect as t}from"react";import{updateAxisStyles as n}from"../formations.js";function a(r,e){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.push.apply(o,t)}return o}function i(e){for(var o=1;o<arguments.length;o++){var t=null!=arguments[o]?arguments[o]:{};o%2?a(Object(t),!0).forEach((function(o){r(e,o,t[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var s=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,u=r.onZoomChangeCallback,f=r.isAxesCoordinatesShown,g=s();t((function(){var r;if(!o(e)){var t={zIndex:1,color:"#ffffff",dashStyle:"dash"};e.plotBackground.element.style.cursor=l||!c?"grab":"crosshair",e.series.forEach((function(r){var e;return null==r||null===(e=r.group)||void 0===e?void 0:e.css({cursor:l||!c?"grab":"crosshair"})})),e.update({chart:i(i({},a),{},{plotBackgroundColor:"transparent",zooming:{type:l||!c?"none":a.zoomType,panning:{enabled:!c,type:(null===(r=a.panning)||void 0===r?void 0:r.type)||"xy"},panKey:""}}),xAxis:{crosshair:f?t:null,className:c?g.axisCrosshair:g.axisGrab,events:{afterSetExtremes:function(r){var o,t;"zoom"!==r.trigger&&"navigator"!==r.trigger||p(),null!==(o=e.xAxis)&&void 0!==o&&null!==(t=o[0].userOptions.plotLines)&&void 0!==t&&t.length&&n({chart:e}),u(r)}}},yAxis:{crosshair:f?t:null,className:c?g.axisCrosshair:g.axisGrab,events:{afterSetExtremes:function(r){"zoom"!==r.trigger&&"navigator"!==r.trigger||p(),u(r)}}},plotOptions:{series:{cursor:l||!c?"grab":"crosshair"}}})}}),[c,p,f])};export{c as useChartModifier};
2
2
  //# sourceMappingURL=useChartModifier.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useChartModifier.js","sources":["../../../../src/components/Chart/effects/useChartModifier.js"],"sourcesContent":["import { makeStyles } from '@material-ui/core';\nimport { isEmpty } from 'lodash';\nimport { useEffect } from 'react';\n\nimport { updateAxisStyles } from '../formations';\n\n// [HIGHCHARTS-10-MIGRATION-TAG]: Find and delete/clean all places like this once the migration to v10 ends\n// Helper function to get chart configuration based on Highcharts version\n// This ensures compatibility with both Highcharts v8 and v10\nconst getChartVersionSpecificConfig = (chartOptions, isZoomEnabled, isMinHeightChart) => {\n const isV10 = window.Highcharts?.version?.startsWith('10');\n\n if (isV10) {\n // Highcharts v10 format\n return {\n zooming: {\n type: isMinHeightChart || !isZoomEnabled ? 'none' : chartOptions.zoomType,\n panning: {\n enabled: !isZoomEnabled,\n type: chartOptions.panning?.type || 'xy',\n },\n panKey: '',\n },\n };\n } else {\n // Highcharts v8 format (backward compatibility)\n return {\n zoomType: isMinHeightChart || !isZoomEnabled ? 'none' : chartOptions.zoomType,\n };\n }\n};\n\nconst useStyles = makeStyles({\n axisGrab: {\n cursor: 'grab',\n },\n axisCrosshair: {\n cursor: 'crosshair',\n },\n});\n\nexport const useChartModifier = ({\n chart,\n chartOptions,\n isZoomEnabled,\n isMinHeightChart,\n handleChartSelection,\n onZoomChangeCallback,\n isAxesCoordinatesShown,\n}) => {\n const classes = useStyles();\n\n useEffect(() => {\n if (isEmpty(chart)) {\n return;\n }\n\n const crosshairConfig = {\n zIndex: 1,\n color: '#ffffff',\n dashStyle: 'dash',\n };\n // eslint-disable-next-line no-param-reassign\n chart.plotBackground.element.style.cursor =\n isMinHeightChart || !isZoomEnabled ? 'grab' : 'crosshair';\n\n chart.series.forEach(seriesItem =>\n seriesItem?.group?.css({\n cursor: isMinHeightChart || !isZoomEnabled ? 'grab' : 'crosshair',\n })\n );\n\n chart.update({\n chart: {\n ...chartOptions,\n plotBackgroundColor: 'transparent',\n ...getChartVersionSpecificConfig(chartOptions, isZoomEnabled, isMinHeightChart),\n },\n xAxis: {\n crosshair: isAxesCoordinatesShown ? crosshairConfig : null,\n className: isZoomEnabled ? classes.axisCrosshair : classes.axisGrab,\n events: {\n afterSetExtremes(e) {\n if (e.trigger === 'zoom' || e.trigger === 'navigator') {\n handleChartSelection();\n }\n if (chart.xAxis?.[0].userOptions.plotLines?.length) {\n updateAxisStyles({ chart });\n }\n onZoomChangeCallback(e);\n },\n },\n },\n yAxis: {\n crosshair: isAxesCoordinatesShown ? crosshairConfig : null,\n className: isZoomEnabled ? classes.axisCrosshair : classes.axisGrab,\n events: {\n afterSetExtremes(e) {\n if (e.trigger === 'zoom' || e.trigger === 'navigator') {\n handleChartSelection();\n }\n onZoomChangeCallback(e);\n },\n },\n },\n plotOptions: {\n series: {\n cursor: isMinHeightChart || !isZoomEnabled ? 'grab' : 'crosshair',\n },\n },\n });\n }, [isZoomEnabled, handleChartSelection, isAxesCoordinatesShown]);\n};\n"],"names":["getChartVersionSpecificConfig","chartOptions","isZoomEnabled","isMinHeightChart","_window$Highcharts","_window$Highcharts$ve","_chartOptions$panning","window","Highcharts","version","startsWith","zooming","type","zoomType","panning","enabled","panKey","useStyles","makeStyles","axisGrab","cursor","axisCrosshair","useChartModifier","_ref","chart","handleChartSelection","onZoomChangeCallback","isAxesCoordinatesShown","classes","useEffect","isEmpty","crosshairConfig","zIndex","color","dashStyle","plotBackground","element","style","series","forEach","seriesItem","_seriesItem$group","group","css","update","plotBackgroundColor","xAxis","crosshair","className","events","afterSetExtremes","e","_chart$xAxis","_chart$xAxis$0$userOp","trigger","userOptions","plotLines","length","updateAxisStyles","yAxis","plotOptions"],"mappings":"0xBASA,IAAMA,EAAgC,SA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AAdF,EAAEG,SAAoC,cAAdH,EAAEG,SAC5B7B,IAEa,QAAf2B,EAAI5B,EAAMsB,aAAK,IAAAM,GAAX,QAAWC,EAAXD,EAAc,GAAGG,YAAYC,iBAA7B,IAAAH,GAAAA,EAAwCI,QAC1CC,EAAiB,CAAElC,MAAAA,IAErBE,EAAqByB,EACvB,IAGJQ,MAAO,CACLZ,UAAWpB,EAAyBI,EAAkB,KACtDiB,UAAW9C,EAAgB0B,EAAQP,cAAgBO,EAAQT,SAC3D8B,OAAQ,CACNC,iBAAgB,SAACC,GACG,SAAdA,EAAEG,SAAoC,cAAdH,EAAEG,SAC5B7B,IAEFC,EAAqByB,EACvB,IAGJS,YAAa,CACXtB,OAAQ,CACNlB,OAAQjB,IAAqBD,EAAgB,OAAS,eApD5D,CAwDD,GAAE,CAACA,EAAeuB,EAAsBE,GAC3C"}
1
+ {"version":3,"file":"useChartModifier.js","sources":["../../../../src/components/Chart/effects/useChartModifier.js"],"sourcesContent":["import { makeStyles } from '@material-ui/core';\nimport { isEmpty } from 'lodash';\nimport { useEffect } from 'react';\n\nimport { updateAxisStyles } from '../formations';\n\nconst useStyles = makeStyles({\n axisGrab: {\n cursor: 'grab',\n },\n axisCrosshair: {\n cursor: 'crosshair',\n },\n});\n\nexport const useChartModifier = ({\n chart,\n chartOptions,\n isZoomEnabled,\n isMinHeightChart,\n handleChartSelection,\n onZoomChangeCallback,\n isAxesCoordinatesShown,\n}) => {\n const classes = useStyles();\n\n useEffect(() => {\n if (isEmpty(chart)) {\n return;\n }\n\n const crosshairConfig = {\n zIndex: 1,\n color: '#ffffff',\n dashStyle: 'dash',\n };\n // eslint-disable-next-line no-param-reassign\n chart.plotBackground.element.style.cursor =\n isMinHeightChart || !isZoomEnabled ? 'grab' : 'crosshair';\n\n chart.series.forEach(seriesItem =>\n seriesItem?.group?.css({\n cursor: isMinHeightChart || !isZoomEnabled ? 'grab' : 'crosshair',\n })\n );\n\n chart.update({\n chart: {\n ...chartOptions,\n plotBackgroundColor: 'transparent',\n zooming: {\n type: isMinHeightChart || !isZoomEnabled ? 'none' : chartOptions.zoomType,\n panning: {\n enabled: !isZoomEnabled,\n type: chartOptions.panning?.type || 'xy',\n },\n panKey: '',\n },\n },\n xAxis: {\n crosshair: isAxesCoordinatesShown ? crosshairConfig : null,\n className: isZoomEnabled ? classes.axisCrosshair : classes.axisGrab,\n events: {\n afterSetExtremes(e) {\n if (e.trigger === 'zoom' || e.trigger === 'navigator') {\n handleChartSelection();\n }\n if (chart.xAxis?.[0].userOptions.plotLines?.length) {\n updateAxisStyles({ chart });\n }\n onZoomChangeCallback(e);\n },\n },\n },\n yAxis: {\n crosshair: isAxesCoordinatesShown ? crosshairConfig : null,\n className: isZoomEnabled ? classes.axisCrosshair : classes.axisGrab,\n events: {\n afterSetExtremes(e) {\n if (e.trigger === 'zoom' || e.trigger === 'navigator') {\n handleChartSelection();\n }\n onZoomChangeCallback(e);\n },\n },\n },\n plotOptions: {\n series: {\n cursor: isMinHeightChart || !isZoomEnabled ? 'grab' : 'crosshair',\n },\n },\n });\n }, [isZoomEnabled, handleChartSelection, isAxesCoordinatesShown]);\n};\n"],"names":["useStyles","makeStyles","axisGrab","cursor","axisCrosshair","useChartModifier","_ref","chart","chartOptions","isZoomEnabled","isMinHeightChart","handleChartSelection","onZoomChangeCallback","isAxesCoordinatesShown","classes","useEffect","_chartOptions$panning","isEmpty","crosshairConfig","zIndex","color","dashStyle","plotBackground","element","style","series","forEach","seriesItem","_seriesItem$group","group","css","update","plotBackgroundColor","zooming","type","zoomType","panning","enabled","panKey","xAxis","crosshair","className","events","afterSetExtremes","e","_chart$xAxis","_chart$xAxis$0$userOp","trigger","userOptions","plotLines","length","updateAxisStyles","yAxis","plotOptions"],"mappings":"0xBAMA,IAAMA,EAAYC,EAAW,CAC3BC,SAAU,CACRC,OAAQ,QAEVC,cAAe,CACbD,OAAQ,eAICE,EAAmB,SAQ1BC,GAAA,IAPJC,IAAAA,MACAC,IAAAA,aACAC,IAAA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EFC,EAAqBgC,EACvB,IAGJS,YAAa,CACX5B,OAAQ,CACNtB,OAAQO,IAAqBD,EAAgB,OAAS,eA3D5D,CA+DD,GAAE,CAACA,EAAeE,EAAsBE,GAC3C"}
@@ -106,10 +106,10 @@ export declare const BHA_COMPONENT_TYPES: ({
106
106
  })[];
107
107
  })[];
108
108
  export declare const BHA_GENERAL_FIELD_TYPES: ({
109
+ unit?: undefined;
109
110
  name: string;
110
111
  label: string;
111
112
  cond?: undefined;
112
- unit?: undefined;
113
113
  col_size?: undefined;
114
114
  family?: undefined;
115
115
  } | {
@@ -134,8 +134,8 @@ export declare const BHA_GENERAL_FIELD_TYPES: ({
134
134
  col_size: number;
135
135
  family?: undefined;
136
136
  } | {
137
- cond?: undefined;
138
137
  unit?: undefined;
138
+ cond?: undefined;
139
139
  name: string;
140
140
  label: string;
141
141
  col_size: number;
@@ -1,4 +1,2 @@
1
- export declare function initHighcharts({ version }?: {
2
- version?: string | undefined;
3
- }): Promise<void>;
1
+ export declare function initHighcharts(): Promise<void>;
4
2
  //# sourceMappingURL=highcharts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"highcharts.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/highcharts.js"],"names":[],"mappings":"AAiDA,wBAAsB,cAAc,CAAC,EAAE,OAAgC,EAAE;;CAAK,iBA0F7E"}
1
+ {"version":3,"file":"highcharts.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/highcharts.js"],"names":[],"mappings":"AAwDA,wBAAsB,cAAc,kBA0DnC"}
@@ -1,2 +1,2 @@
1
- import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/typeof";import o from"@babel/runtime/regenerator";import{HIGHCHARTS_V8_VERSION as n,HIGHCHARTS_V10_VERSION as a}from"./constants.js";import i from"./highcharts-contour.js";import{getHighchartsV10 as s}from"./getHighchartsV10.js";import c from"dompurify";var l=function e(o){return"string"==typeof o?c.sanitize(o):("object"===r(o)&&null!==o&&Object.entries(o).forEach((function(n){var a=t(n,2),i=a[0],s=a[1];"string"==typeof s?o[i]=c.sanitize(o[i]):Array.isArray(s)?s.forEach((function(t,r){o[i][r]=e(t)})):"object"===r(s)&&(o[i]=e(s))})),o)},h=function(){var e,t=document.createElement("canvas").getContext("webgl"),r=null==t?void 0:t.createShader(t.VERTEX_SHADER);if(!r)return!1;t.shaderSource(r,"void main(){gl_Position=vec4(0.0,0.0,0.0,1.0);}"),t.compileShader(r);var o=!!t.getShaderParameter(r,t.COMPILE_STATUS);return t.deleteShader(r),null===(e=t.getExtension("WEBGL_lose_context"))||void 0===e||e.loseContext(),o};function d(){return u.apply(this,arguments)}function u(){return u=e(o.mark((function e(){var t,r,c,d,u,p,m,f,g,b,v,A,S,y,w,x,E,T=arguments;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=T.length>0&&void 0!==T[0]?T[0]:{},r=t.version,[n,a].includes(c=void 0===r?a:r)){e.next=3;break}throw new Error("Invalid highcharts version: ".concat(c));case 3:if(c!==n){e.next=9;break}return e.next=6,import("./getHighchartsV8.js");case 6:e.t0=e.sent.getHighchartsV8,e.next=10;break;case 9:e.t0=s;case 10:d=e.t0,u=d(),p=u.Highcharts,m=u.highchartsMore,f=u.HighchartsMulticolorSeries,g=u.addSolidGauge,b=u.addHeatmap,v=u.addBoost,A=u.addExporting,S=u.addXrange,y=u.addDumbbell,w=u.addPatternFill,x=u.addAnnotations,window.Highcharts=p,p.AST&&(p.AST.bypassHTMLFiltering=!0,p.AST.allowedAttributes.push("viewBox"),p.AST.allowedAttributes.push("fill-rule"),p.AST.allowedAttributes.push("clip-rule")),f(p),m(p),g(p),b(p),v(p),A(p),S(p),y(p),w(p),i(p),x(p),E=p.chart,p.chart=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length,o=new Array(r>2?r-2:0),n=2;n<r;n++)o[n-2]=arguments[n];return E.apply(void 0,[e,l(t)].concat(o))},p.setOptions({boost:{enabled:h()},plotOptions:{series:{states:{inactive:{enabled:!1}}}}});case 28:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}export{d as initHighcharts};
1
+ import r from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/helpers/typeof";import o from"@babel/runtime/regenerator";import i from"highcharts";import a from"highcharts/highcharts-more";import n from"highcharts/modules/solid-gauge";import s from"highcharts/modules/heatmap";import h from"highcharts/modules/boost";import m from"highcharts/modules/exporting";import l from"highcharts/modules/xrange";import c from"highcharts/modules/dumbbell";import u from"highcharts/modules/pattern-fill";import p from"highcharts/modules/annotations";import f from"highcharts-multicolor-series";import d from"dompurify";import g from"./highcharts-contour.js";var b=function r(o){return"string"==typeof o?d.sanitize(o):("object"===e(o)&&null!==o&&Object.entries(o).forEach((function(i){var a=t(i,2),n=a[0],s=a[1];"string"==typeof s?o[n]=d.sanitize(o[n]):Array.isArray(s)?s.forEach((function(t,e){o[n][e]=r(t)})):"object"===e(s)&&(o[n]=r(s))})),o)},v=function(){var r,t=document.createElement("canvas").getContext("webgl"),e=null==t?void 0:t.createShader(t.VERTEX_SHADER);if(!e)return!1;t.shaderSource(e,"void main(){gl_Position=vec4(0.0,0.0,0.0,1.0);}"),t.compileShader(e);var o=!!t.getShaderParameter(e,t.COMPILE_STATUS);return t.deleteShader(e),null===(r=t.getExtension("WEBGL_lose_context"))||void 0===r||r.loseContext(),o};function y(){return A.apply(this,arguments)}function A(){return A=r(o.mark((function r(){var t;return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:window.Highcharts=i,i.AST.bypassHTMLFiltering=!0,i.AST.allowedAttributes.push("viewBox"),i.AST.allowedAttributes.push("fill-rule"),i.AST.allowedAttributes.push("clip-rule"),f(i),a(i),n(i),s(i),h(i),m(i),l(i),c(i),u(i),g(i),p(i),t=i.chart,i.chart=function(r){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];return t.apply(void 0,[r,b(e)].concat(i))},i.setOptions({boost:{enabled:v()},plotOptions:{series:{states:{inactive:{enabled:!1}}}}});case 19:case"end":return r.stop()}}),r)}))),A.apply(this,arguments)}export{y as initHighcharts};
2
2
  //# sourceMappingURL=highcharts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"highcharts.js","sources":["../../../src/config/highcharts/highcharts.js"],"sourcesContent":["/* eslint-disable */\n// TODO: all the plugins should be checked, legacy code\n\n// [HIGHCHARTS-10-MIGRATION-TAG]: Find and delete/clean all places like this once the migration ends\nimport { HIGHCHARTS_V10_VERSION, HIGHCHARTS_V8_VERSION } from './constants';\n\nimport addContour from './highcharts-contour';\nimport { getHighchartsV10 } from './getHighchartsV10';\n\nimport DOMPurify from 'dompurify';\n\nconst stripHTMLRecurse = o => {\n if (typeof o === 'string') {\n return DOMPurify.sanitize(o);\n }\n\n if (typeof o === 'object' && o !== null)\n Object.entries(o).forEach(([key, value]) => {\n if (typeof value === 'string') {\n o[key] = DOMPurify.sanitize(o[key]);\n } else if (Array.isArray(value)) {\n value.forEach((item, i) => {\n o[key][i] = stripHTMLRecurse(item);\n });\n } else if (typeof value === 'object') {\n o[key] = stripHTMLRecurse(value);\n }\n });\n\n return o;\n};\n\n// Highcharts' own hasWebGLSupport() only proves a context can be created, which the\n// drivers that fail here can do. Compiling one shader is what separates them.\nconst isBoostSupported = () => {\n const gl = document.createElement('canvas').getContext('webgl');\n const shader = gl?.createShader(gl.VERTEX_SHADER);\n if (!shader) return false;\n\n gl.shaderSource(shader, 'void main(){gl_Position=vec4(0.0,0.0,0.0,1.0);}');\n gl.compileShader(shader);\n const isCompiled = !!gl.getShaderParameter(shader, gl.COMPILE_STATUS);\n\n gl.deleteShader(shader);\n gl.getExtension('WEBGL_lose_context')?.loseContext();\n\n return isCompiled;\n};\n\nexport async function initHighcharts({ version = HIGHCHARTS_V10_VERSION } = {}) {\n if (![HIGHCHARTS_V8_VERSION, HIGHCHARTS_V10_VERSION].includes(version)) {\n throw new Error(`Invalid highcharts version: ${version}`);\n }\n\n const highchartsGetter =\n version === HIGHCHARTS_V8_VERSION\n ? (await import('./getHighchartsV8')).getHighchartsV8\n : getHighchartsV10;\n\n const {\n Highcharts,\n highchartsMore,\n HighchartsMulticolorSeries,\n addSolidGauge,\n addHeatmap,\n addBoost,\n addExporting,\n addXrange,\n addDumbbell,\n addPatternFill,\n addAnnotations,\n } = highchartsGetter();\n\n /**\n * NOTE: Highchart has a bug for pie chart in v8.1.2\n * issue link: https://github.com/highcharts/highcharts/issues/13710\n * workaround:\n * import Highcharts from 'highcharts';\n * window.Highcharts = Highcharts;\n */\n window.Highcharts = Highcharts;\n\n // NOTE: Temporary disable HTML filtering for duration of migration to v10, as this is the main breaking change in v10, should be removed after migration\n if (Highcharts.AST) {\n Highcharts.AST.bypassHTMLFiltering = true;\n\n // Adding needed custom attributes for some SVG icons\n Highcharts.AST.allowedAttributes.push('viewBox');\n Highcharts.AST.allowedAttributes.push('fill-rule');\n Highcharts.AST.allowedAttributes.push('clip-rule');\n }\n\n HighchartsMulticolorSeries(Highcharts);\n // NOTE: Highcharts patching. It should be done in one place before any chart in rendered\n // in order to avoid conflicts\n highchartsMore(Highcharts);\n addSolidGauge(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/angular-gauges\n addHeatmap(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/heatmap\n addBoost(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addExporting(Highcharts); // https://www.highcharts.com/docs/export-module/export-module-overview\n addXrange(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addDumbbell(Highcharts);\n addPatternFill(Highcharts);\n addContour(Highcharts);\n addAnnotations(Highcharts);\n\n // fix security issue for Highcharts 8\n // https://github.com/highcharts/highcharts/security/advisories/GHSA-8j65-4pcq-xq95\n const originalChartFn = Highcharts.chart;\n Highcharts.chart = function (container, options = {}, ...restParams) {\n return originalChartFn(container, stripHTMLRecurse(options), ...restParams);\n };\n\n /**\n * Adjust default highcharts effects globally for better use in our apps\n *\n * 1. Stop animation for inactive series\n * ref: https://api.highcharts.com/highcharts/plotOptions.series.states.inactive.enabled\n *\n * 2. Keep boost off where its shaders will not compile. boost.enabled defaults to\n * true once addBoost has run, and on such drivers boost carries on with a null\n * program and throws out of getAttribLocation mid-render, taking the chart with\n * it. Charts keep GPU acceleration everywhere the driver works.\n *\n */\n Highcharts.setOptions({\n boost: {\n enabled: isBoostSupported(),\n },\n plotOptions: {\n series: {\n states: {\n inactive: {\n enabled: false,\n },\n },\n },\n },\n });\n}\n"],"names":["stripHTMLRecurse","o","DOMPurify","sanitize","_typeof","Object","entries","forEach","_ref","_ref2","_slicedToArray","key","value","Array","isArray","item","i","isBoostSupported","_gl$getExtension","gl","document","createElement","getContext","shader","createShader","VERTEX_SHADER","shaderSource","compileShader","isCompiled","getShaderParameter","COMPILE_STATUS","deleteShader","getExtension","loseContext","initHighcharts","_initHighcharts","apply","this","arguments","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_ref3","_ref3$version","version","highchartsGetter","_highchartsGetter","Highcharts","highchartsMore","HighchartsMulticolorSeries","addSolidGauge","addHeatmap","addBoost","addExporting","addXrange","addDumbbell","addPatternFill","addAnnotations","originalChartFn","_args","wrap","_context","prev","next","length","undefined","HIGHCHARTS_V8_VERSION","HIGHCHARTS_V10_VERSION","includes","Error","import","t0","sent","getHighchartsV8","getHighchartsV10","window","AST","bypassHTMLFiltering","allowedAttributes","push","addContour","chart","container","options","_len","restParams","_key","setOptions","boost","enabled","plotOptions","series","states","inactive","stop"],"mappings":"8YAWA,IAAMA,EAAmB,SAAnBA,EAAmBC,GACvB,MAAiB,iBAANA,EACFC,EAAUC,SAASF,IAGX,WAAbG,EAAOH,IAAwB,OAANA,GAC3BI,OAAOC,QAAQL,GAAGM,SAAQ,SAAkBC,GAAA,IAAAC,EAAAC,EAAAF,EAAA,GAAhBG,EA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C,MAAO,CACLC,QAASzE,KAEX0E,YAAa,CACXC,OAAQ,CACNC,OAAQ,CACNC,SAAU,CACRJ,SAAS,QAKhB,KAAA,GAAA,IAAA,MAAA,OAAA5B,EAAAiC,OAAA,GAAArD,EACJ,KAAAP,EAAAC,MAAAC,KAAAC,UAAA"}
1
+ {"version":3,"file":"highcharts.js","sources":["../../../src/config/highcharts/highcharts.js"],"sourcesContent":["/* eslint-disable */\n// TODO: all the plugins should be checked, legacy code\n\nimport Highcharts from 'highcharts';\nimport highchartsMore from 'highcharts/highcharts-more';\nimport addSolidGauge from 'highcharts/modules/solid-gauge';\nimport addHeatmap from 'highcharts/modules/heatmap';\nimport addBoost from 'highcharts/modules/boost';\nimport addExporting from 'highcharts/modules/exporting';\nimport addXrange from 'highcharts/modules/xrange';\nimport addDumbbell from 'highcharts/modules/dumbbell';\nimport addPatternFill from 'highcharts/modules/pattern-fill';\nimport addAnnotations from 'highcharts/modules/annotations';\nimport HighchartsMulticolorSeries from 'highcharts-multicolor-series';\nimport DOMPurify from 'dompurify';\n\nimport addContour from './highcharts-contour';\n\nconst stripHTMLRecurse = o => {\n if (typeof o === 'string') {\n return DOMPurify.sanitize(o);\n }\n\n if (typeof o === 'object' && o !== null)\n Object.entries(o).forEach(([key, value]) => {\n if (typeof value === 'string') {\n o[key] = DOMPurify.sanitize(o[key]);\n } else if (Array.isArray(value)) {\n value.forEach((item, i) => {\n o[key][i] = stripHTMLRecurse(item);\n });\n } else if (typeof value === 'object') {\n o[key] = stripHTMLRecurse(value);\n }\n });\n\n return o;\n};\n\n// Highcharts' own hasWebGLSupport() only proves a context can be created, which the\n// drivers that fail here can do. Compiling one shader is what separates them.\nconst isBoostSupported = () => {\n const gl = document.createElement('canvas').getContext('webgl');\n const shader = gl?.createShader(gl.VERTEX_SHADER);\n if (!shader) return false;\n\n gl.shaderSource(shader, 'void main(){gl_Position=vec4(0.0,0.0,0.0,1.0);}');\n gl.compileShader(shader);\n const isCompiled = !!gl.getShaderParameter(shader, gl.COMPILE_STATUS);\n\n gl.deleteShader(shader);\n gl.getExtension('WEBGL_lose_context')?.loseContext();\n\n return isCompiled;\n};\n\nexport async function initHighcharts() {\n // Dev Center apps and the highcharts modules read the global, not the module import.\n window.Highcharts = Highcharts;\n\n // NOTE: Temporary disable HTML filtering for duration of migration to v10, as this is the main breaking change in v10, should be removed after migration\n Highcharts.AST.bypassHTMLFiltering = true;\n\n // Adding needed custom attributes for some SVG icons\n Highcharts.AST.allowedAttributes.push('viewBox');\n Highcharts.AST.allowedAttributes.push('fill-rule');\n Highcharts.AST.allowedAttributes.push('clip-rule');\n\n HighchartsMulticolorSeries(Highcharts);\n // NOTE: Highcharts patching. It should be done in one place before any chart in rendered\n // in order to avoid conflicts\n highchartsMore(Highcharts);\n addSolidGauge(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/angular-gauges\n addHeatmap(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/heatmap\n addBoost(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addExporting(Highcharts); // https://www.highcharts.com/docs/export-module/export-module-overview\n addXrange(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addDumbbell(Highcharts);\n addPatternFill(Highcharts);\n addContour(Highcharts);\n addAnnotations(Highcharts);\n\n // https://github.com/highcharts/highcharts/security/advisories/GHSA-8j65-4pcq-xq95\n const originalChartFn = Highcharts.chart;\n Highcharts.chart = function (container, options = {}, ...restParams) {\n return originalChartFn(container, stripHTMLRecurse(options), ...restParams);\n };\n\n /**\n * Adjust default highcharts effects globally for better use in our apps\n *\n * 1. Stop animation for inactive series\n * ref: https://api.highcharts.com/highcharts/plotOptions.series.states.inactive.enabled\n *\n * 2. Keep boost off where its shaders will not compile. boost.enabled defaults to\n * true once addBoost has run, and on such drivers boost carries on with a null\n * program and throws out of getAttribLocation mid-render, taking the chart with\n * it. Charts keep GPU acceleration everywhere the driver works.\n *\n */\n Highcharts.setOptions({\n boost: {\n enabled: isBoostSupported(),\n },\n plotOptions: {\n series: {\n states: {\n inactive: {\n enabled: false,\n },\n },\n },\n },\n });\n}\n"],"names":["stripHTMLRecurse","o","DOMPurify","sanitize","_typeof","Object","entries","forEach","_ref","_ref2","_slicedToArray","key","value","Array","isArray","item","i","isBoostSupported","_gl$getExtension","gl","document","createElement","getContext","shader","createShader","VERTEX_SHADER","shaderSource","compileShader","isCompiled","getShaderParameter","COMPILE_STATUS","deleteShader","getExtension","loseContext","initHighcharts","_initHighcharts","apply","this","arguments","_asyncToGenerator","_regeneratorRuntime","mark","_callee","originalChartFn","wrap","_context","prev","next","window","Highcharts","AST","bypassHTMLFiltering","allowedAttributes","push","HighchartsMulticolorSeries","highchartsMore","addSolidGauge","addHeatmap","addBoost","addExporting","addXrange","addDumbbell","addPatternFill","addContour","addAnnotations","chart","container","options","length","undefined","_len","restParams","_key","setOptions","boost","enabled","plotOptions","series","states","inactive","stop"],"mappings":"+sBAkBA,IAAMA,EAAmB,SAAnBA,EAAmBC,GACvB,MAAiB,iBAANA,EACFC,EAAUC,SAASF,IAGX,WAAbG,EAAOH,IAAwB,OAANA,GAC3BI,OAAOC,QAAQL,GAAGM,SAAQ,SAAkBC,GAAA,IAAAC,EAAAC,EAAAF,EAAA,GAAhBG,EAAGF,EAAA,GAAEG,EAAKH,EAAA,GACf,iBAAVG,EACTX,EAAEU,GAAOT,EAAUC,SAASF,EAAEU,IACrBE,MAAMC,QAAQF,GACvBA,EAAML,SAAQ,SAACQ,EAAMC,GACnBf,EAAEU,GAAKK,GAAKhB,EAAiBe,EAC/B,IAC0B,WAAjBX,EAAOQ,KAChBX,EAAEU,GAAOX,EAAiBY,GAE9B,IAEKX,EACT,EAIMgB,EAAmB,WAAM,IAAAC,EACvBC,EAAKC,SAASC,cAAc,UAAUC,WAAW,SACjDC,EAASJ,aAAE,EAAFA,EAAIK,aAAaL,EAAGM,eACnC,IAAKF,EAAQ,OAAO,EAEpBJ,EAAGO,aAAaH,EAAQ,mDACxBJ,EAAGQ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MAAA,OAAA9B,EAAAmC,OAAA,GAAAtC,EACJ,KAAAP,EAAAC,MAAAC,KAAAC,UAAA"}
@@ -1,3 +1,2 @@
1
1
  export { initHighcharts } from './highcharts';
2
- export { HIGHCHARTS_V10_VERSION, HIGHCHARTS_V8_VERSION } from './constants';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import './extendNative.js';
2
- export declare function initGlobalDependencies({ highchartsVersion }?: {}): Promise<void>;
2
+ export declare function initGlobalDependencies(): Promise<void>;
3
3
  //# sourceMappingURL=initGlobalDependencies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initGlobalDependencies.d.ts","sourceRoot":"","sources":["../../src/config/initGlobalDependencies.js"],"names":[],"mappings":"AAEA,OAAO,mBAAmB,CAAC;AAG3B,wBAAgB,sBAAsB,CAAC,EAAE,iBAAiB,EAAE,KAAK,iBAMhE"}
1
+ {"version":3,"file":"initGlobalDependencies.d.ts","sourceRoot":"","sources":["../../src/config/initGlobalDependencies.js"],"names":[],"mappings":"AAEA,OAAO,mBAAmB,CAAC;AAE3B,wBAAgB,sBAAsB,kBAMrC"}
@@ -1,2 +1,2 @@
1
- import{initHighcharts as r}from"./highcharts/highcharts.js";import{initializeSocketClient as i}from"../clients/subscriptions.js";import"./extendNative.js";function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=t.highchartsVersion,o=r({version:s});return i(),o}export{t as initGlobalDependencies};
1
+ import{initHighcharts as r}from"./highcharts/highcharts.js";import{initializeSocketClient as t}from"../clients/subscriptions.js";import"./extendNative.js";function i(){var i=r();return t(),i}export{i as initGlobalDependencies};
2
2
  //# sourceMappingURL=initGlobalDependencies.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"initGlobalDependencies.js","sources":["../../src/config/initGlobalDependencies.js"],"sourcesContent":["import { initHighcharts } from '~/config/highcharts';\nimport { initializeSocketClient } from '~/clients/subscriptions';\nimport './extendNative.js';\n\n// [HIGHCHARTS-10-MIGRATION-TAG]: Find and delete/clean all places like this once the migration ends\nexport function initGlobalDependencies({ highchartsVersion } = {}) {\n const highchartsReady = initHighcharts({ version: highchartsVersion });\n\n initializeSocketClient();\n\n return highchartsReady;\n}\n"],"names":["initGlobalDependencies","_ref","arguments","length","undefined","highchartsVersion","highchartsReady","initHighcharts","version","initializeSocketClient"],"mappings":"2JAKO,SAASA,IAAmD,IAAAC,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAJ,CAAE,EAAxBG,IAAAA,kBACjCC,EAAkBC,EAAe,CAAEC,QAASH,IAIlD,OAFAI,IAEOH,CACT"}
1
+ {"version":3,"file":"initGlobalDependencies.js","sources":["../../src/config/initGlobalDependencies.js"],"sourcesContent":["import { initHighcharts } from '~/config/highcharts';\nimport { initializeSocketClient } from '~/clients/subscriptions';\nimport './extendNative.js';\n\nexport function initGlobalDependencies() {\n const highchartsReady = initHighcharts();\n\n initializeSocketClient();\n\n return highchartsReady;\n}\n"],"names":["initGlobalDependencies","highchartsReady","initHighcharts","initializeSocketClient"],"mappings":"2JAIO,SAASA,IACd,IAAMC,EAAkBC,IAIxB,OAFAC,IAEOF,CACT"}
@@ -249,7 +249,7 @@ const validateDsn = dsn => {
249
249
 
250
250
  const MCP_SERVER_VERSION = '1.10.0';
251
251
 
252
- var version = "3.80.0-5";
252
+ var version = "3.80.0-6";
253
253
 
254
254
  const CORVA_UI_VERSION = version;
255
255
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "3.80.0-5",
3
+ "version": "3.80.0-6",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Shared components/utils for Corva ui projects",
6
6
  "repository": {
@@ -171,9 +171,7 @@
171
171
  "geolib": "^3.3.4",
172
172
  "highcharts": "10.3.3",
173
173
  "highcharts-multicolor-series": "2.4.1",
174
- "highcharts-multicolor-series-v8": "npm:highcharts-multicolor-series@2.2.7",
175
174
  "highcharts-react-official": "2.2.2",
176
- "highcharts-v8": "npm:highcharts@8.1.2",
177
175
  "html2canvas": "1.0.0-alpha.12",
178
176
  "image-extensions": "1.1.0",
179
177
  "jscpd": "^3.4.5",