@corva/ui 3.67.0-3 → 3.67.0-5

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 (132) hide show
  1. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
  2. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
  3. package/cjs-bundle/components/PinnableFilters/effects/index.js +1 -1
  4. package/cjs-bundle/components/PinnableFilters/effects/index.js.map +1 -1
  5. package/cjs-bundle/componentsV2/DatePicker/DatePicker.js +1 -1
  6. package/cjs-bundle/componentsV2/DatePicker/Input/Input.js +1 -1
  7. package/cjs-bundle/config/highcharts/getHighchartsV10.js +1 -1
  8. package/cjs-bundle/config/highcharts/getHighchartsV10.js.map +1 -1
  9. package/cjs-bundle/config/highcharts/getHighchartsV8.js +1 -1
  10. package/cjs-bundle/config/highcharts/getHighchartsV8.js.map +1 -1
  11. package/cjs-bundle/config/highcharts/highcharts.js +1 -1
  12. package/cjs-bundle/config/highcharts/highcharts.js.map +1 -1
  13. package/cjs-bundle/utils/charts/Styles.scss.js +2 -0
  14. package/cjs-bundle/utils/charts/Styles.scss.js.map +1 -0
  15. package/cjs-bundle/utils/charts/constants.js +1 -1
  16. package/cjs-bundle/utils/charts/getSeriesGoalLine.js +2 -0
  17. package/cjs-bundle/utils/charts/getSeriesGoalLine.js.map +1 -0
  18. package/cjs-bundle/utils/charts/getSeriesWithUnit.js +2 -0
  19. package/cjs-bundle/utils/charts/getSeriesWithUnit.js.map +1 -0
  20. package/cjs-bundle/utils/charts/getTooltip.js +2 -0
  21. package/cjs-bundle/utils/charts/getTooltip.js.map +1 -0
  22. package/cjs-bundle/utils/charts/getXAxis.js +2 -0
  23. package/cjs-bundle/utils/charts/getXAxis.js.map +1 -0
  24. package/cjs-bundle/utils/charts/{getChartVerticalAxis.js → getXDrillStringLine.js} +2 -2
  25. package/cjs-bundle/utils/charts/getXDrillStringLine.js.map +1 -0
  26. package/cjs-bundle/utils/charts/getXGoalLine.js +2 -0
  27. package/cjs-bundle/utils/charts/getXGoalLine.js.map +1 -0
  28. package/cjs-bundle/utils/charts/getYAxis.js +2 -0
  29. package/cjs-bundle/utils/charts/getYAxis.js.map +1 -0
  30. package/cjs-bundle/utils/charts/{getChartHorizontalAxis.js → getYDrillStringLine.js} +2 -2
  31. package/cjs-bundle/utils/charts/getYDrillStringLine.js.map +1 -0
  32. package/cjs-bundle/utils/charts/getYGoalLine.js +2 -0
  33. package/cjs-bundle/utils/charts/getYGoalLine.js.map +1 -0
  34. package/cjs-bundle/utils/charts/icons.js +2 -0
  35. package/cjs-bundle/utils/charts/icons.js.map +1 -0
  36. package/cjs-bundle/utils/charts/index.js +2 -0
  37. package/cjs-bundle/utils/charts/index.js.map +1 -0
  38. package/cjs-bundle/utils/index.js +1 -1
  39. package/cjs-bundle/utils/index.js.map +1 -1
  40. package/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
  41. package/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
  42. package/components/PinnableFilters/effects/index.js +1 -1
  43. package/components/PinnableFilters/effects/index.js.map +1 -1
  44. package/componentsV2/ChartCommonUtilities.stories.d.ts +11 -0
  45. package/componentsV2/ChartCommonUtilities.stories.d.ts.map +1 -0
  46. package/componentsV2/DatePicker/DatePicker.d.ts +1 -0
  47. package/componentsV2/DatePicker/DatePicker.d.ts.map +1 -1
  48. package/componentsV2/DatePicker/DatePicker.js +1 -1
  49. package/componentsV2/DatePicker/Input/Input.d.ts +1 -0
  50. package/componentsV2/DatePicker/Input/Input.d.ts.map +1 -1
  51. package/componentsV2/DatePicker/Input/Input.js +1 -1
  52. package/config/highcharts/getHighchartsV10.d.ts +2 -0
  53. package/config/highcharts/getHighchartsV10.d.ts.map +1 -1
  54. package/config/highcharts/getHighchartsV10.js +1 -1
  55. package/config/highcharts/getHighchartsV10.js.map +1 -1
  56. package/config/highcharts/getHighchartsV8.d.ts +2 -0
  57. package/config/highcharts/getHighchartsV8.d.ts.map +1 -1
  58. package/config/highcharts/getHighchartsV8.js +1 -1
  59. package/config/highcharts/getHighchartsV8.js.map +1 -1
  60. package/config/highcharts/highcharts.d.ts.map +1 -1
  61. package/config/highcharts/highcharts.js +1 -1
  62. package/config/highcharts/highcharts.js.map +1 -1
  63. package/mcp-server/server.mjs +4775 -7453
  64. package/package.json +1 -1
  65. package/storyBookHelpers/utils.d.ts +1 -0
  66. package/storyBookHelpers/utils.d.ts.map +1 -1
  67. package/tsconfig.tsbuildinfo +1 -1
  68. package/types/shared/index.d.ts +1 -0
  69. package/types/shared/index.d.ts.map +1 -1
  70. package/utils/charts/Styles.scss.js +2 -0
  71. package/utils/charts/Styles.scss.js.map +1 -0
  72. package/utils/charts/constants.d.ts +29 -4
  73. package/utils/charts/constants.d.ts.map +1 -1
  74. package/utils/charts/constants.js +1 -1
  75. package/utils/charts/getSeriesGoalLine.d.ts +27 -0
  76. package/utils/charts/getSeriesGoalLine.d.ts.map +1 -0
  77. package/utils/charts/getSeriesGoalLine.js +2 -0
  78. package/utils/charts/getSeriesGoalLine.js.map +1 -0
  79. package/utils/charts/getSeriesWithUnit.d.ts +3 -0
  80. package/utils/charts/getSeriesWithUnit.d.ts.map +1 -0
  81. package/utils/charts/getSeriesWithUnit.js +2 -0
  82. package/utils/charts/getSeriesWithUnit.js.map +1 -0
  83. package/utils/charts/getTooltip.d.ts +10 -0
  84. package/utils/charts/getTooltip.d.ts.map +1 -0
  85. package/utils/charts/getTooltip.js +2 -0
  86. package/utils/charts/getTooltip.js.map +1 -0
  87. package/utils/charts/getXAxis.d.ts +4 -0
  88. package/utils/charts/getXAxis.d.ts.map +1 -0
  89. package/utils/charts/getXAxis.js +2 -0
  90. package/utils/charts/getXAxis.js.map +1 -0
  91. package/utils/charts/getXDrillStringLine.d.ts +11 -0
  92. package/utils/charts/getXDrillStringLine.d.ts.map +1 -0
  93. package/utils/charts/getXDrillStringLine.js +2 -0
  94. package/utils/charts/getXDrillStringLine.js.map +1 -0
  95. package/utils/charts/getXGoalLine.d.ts +12 -0
  96. package/utils/charts/getXGoalLine.d.ts.map +1 -0
  97. package/utils/charts/getXGoalLine.js +2 -0
  98. package/utils/charts/getXGoalLine.js.map +1 -0
  99. package/utils/charts/getYAxis.d.ts +4 -0
  100. package/utils/charts/getYAxis.d.ts.map +1 -0
  101. package/utils/charts/getYAxis.js +2 -0
  102. package/utils/charts/getYAxis.js.map +1 -0
  103. package/utils/charts/getYDrillStringLine.d.ts +11 -0
  104. package/utils/charts/getYDrillStringLine.d.ts.map +1 -0
  105. package/utils/charts/getYDrillStringLine.js +2 -0
  106. package/utils/charts/getYDrillStringLine.js.map +1 -0
  107. package/utils/charts/getYGoalLine.d.ts +12 -0
  108. package/utils/charts/getYGoalLine.d.ts.map +1 -0
  109. package/utils/charts/getYGoalLine.js +2 -0
  110. package/utils/charts/getYGoalLine.js.map +1 -0
  111. package/utils/charts/icons.d.ts +4 -0
  112. package/utils/charts/icons.d.ts.map +1 -0
  113. package/utils/charts/icons.js +2 -0
  114. package/utils/charts/icons.js.map +1 -0
  115. package/utils/charts/index.d.ts +9 -2
  116. package/utils/charts/index.d.ts.map +1 -1
  117. package/utils/charts/index.js +2 -0
  118. package/utils/charts/index.js.map +1 -0
  119. package/utils/index.d.ts +48 -67
  120. package/utils/index.d.ts.map +1 -1
  121. package/utils/index.js +1 -1
  122. package/utils/index.js.map +1 -1
  123. package/cjs-bundle/utils/charts/getChartHorizontalAxis.js.map +0 -1
  124. package/cjs-bundle/utils/charts/getChartVerticalAxis.js.map +0 -1
  125. package/utils/charts/getChartHorizontalAxis.d.ts +0 -4
  126. package/utils/charts/getChartHorizontalAxis.d.ts.map +0 -1
  127. package/utils/charts/getChartHorizontalAxis.js +0 -2
  128. package/utils/charts/getChartHorizontalAxis.js.map +0 -1
  129. package/utils/charts/getChartVerticalAxis.d.ts +0 -25
  130. package/utils/charts/getChartVerticalAxis.d.ts.map +0 -1
  131. package/utils/charts/getChartVerticalAxis.js +0 -2
  132. package/utils/charts/getChartVerticalAxis.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("../components/UserMention/utils/index.js"),r=require("./StageDesignVActualUtils.js"),s=require("./alerts.js"),o=require("./audio.js"),i=require("./casing/index.js"),n=require("./chartSeries.js"),a=require("./completion.js"),p=require("./components.js"),l=require("./convert.js"),u=require("./csvExport.js"),c=require("./devcenter.js"),x=require("./drillstring/index.js"),g=require("./DrillstringUtils.js"),d=require("./FluidCheckUtils.js"),j=require("./formatting.js"),f=require("./ga.js"),y=require("./goals.js"),q=require("./goalsConfig/index.js"),m=require("./lasParser.js"),U=require("./main.js"),h=require("./mapUnits.js"),v=require("./mapbox.js"),b=require("./metrics/index.js"),S=require("./mobileDetect.js"),A=require("./nativeMessages.js"),I=require("./notifications.js"),D=require("./feed.js"),w=require("./permissions.js"),B=require("./reports.js"),C=require("./time.js"),O=require("./torqueAndHookloadUtils.js"),P=require("./accuracy.js"),T=require("./notificationToasts.js"),F=require("./devcenterToasts.js"),N=require("./convertKeys.js"),H=require("./dashboardReports.js"),V=require("./apps.js"),E=require("./themeVariables.js"),W=require("./env.js"),k=require("./fileExtension.js"),K=require("./jsonaDataFormatter.js"),z=require("./bha.js"),L=require("./localStorage.js"),M=require("./sharedDCStore.js"),R=require("./resolveWellHubSlug.js"),J=require("./delayedHighcharts.js"),_=require("./formatFileSize.js"),G=require("./delay.js"),Q=require("./charts/getChartHorizontalAxis.js"),X=require("./charts/getChartVerticalAxis.js"),Y=require("./downloadBlob.js"),Z=require("./getSingleAsset.js");function $(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var ee=$(e);function te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}var re={get:function(e,t){var r=e[t];return"function"==typeof r?function(){for(var t=arguments.length,s=new Array(t),o=0;o<t;o++)s[o]=arguments[o];return r.apply(e,s.map((function(e){return e.toJS?e.toJS():e})))}:r}};function se(e){return new Proxy(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?te(Object(r),!0).forEach((function(t){ee.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),re)}var oe=l.convertArray,ie=l.convertValue,ne=l.getAllUnitTypes,ae=l.getDefaultImperialUnit,pe=l.getDefaultUnits,le=l.getUnitDescription,ue=l.getUnitDisplay,ce=l.getUnitPlural,xe=l.getUnitPreference,ge=l.getUnitsByType,de=l.getUnitSingular,je=l.getUnitSystem,fe=l.updateUserUnits,ye=l.getUserUnits,qe=l.subscribeForUserUnitsUpdates,me=l.convertImmutables,Ue=l.convertImmutablesByBatch,he=l.getUniqueUnitsByType,ve=se(v),be=se(p);exports.formatMentionText=t.formatMentionText,exports.isSuggestionsListOpened=t.isSuggestionsListOpened,exports.StageDesignVActualUtils=r,exports.alerts=s,exports.audio=o,exports.casing=i,exports.chartSeries=n,exports.completion=a,exports.convert=l,exports.csvExport=u,exports.devcenter=c,exports.drillstring=x,exports.drillstringUtils=g,exports.fluidCheckUtils=d,exports.formatting=j,exports.ga=f,exports.goals=y,exports.goalsConfig=q,exports.lasParser=m,exports.main=U,exports.mapUnits=h,exports.metricsUtils=b,exports.mobileDetect=S,exports.nativeMessages=A,exports.notifications=I,exports.feed=D,exports.permissions=w,exports.reports=B,exports.time=C,exports.torqueAndHookloadUtils=O,exports.accuracy=P,exports.createNotification=T.createNotification,exports.removeNotification=T.removeNotification,exports.showErrorNotification=T.showErrorNotification,exports.showInfoNotification=T.showInfoNotification,exports.showNeutralNotification=T.showNeutralNotification,exports.showSuccessNotification=T.showSuccessNotification,exports.showWarningNotification=T.showWarningNotification,exports.showToast=F.showToast,exports.convertKeysToCamelCase=N.convertKeysToCamelCase,exports.convertKeysToSnakeCase=N.convertKeysToSnakeCase,exports.getConvertKeys=N.getConvertKeys,exports.dashboardReports=H,exports.apps=V,exports.themeVariables=E,exports.env=W,exports.fileExtension=k,exports.jsonaDataFormatter=K.jsonaDataFormatter,exports.bha=z,exports.getLocalStorageItem=L.getLocalStorageItem,exports.updateLocalStorageItem=L.updateLocalStorageItem,exports.sharedDCStore=M.sharedDCStore,exports.resolveWellHubSlug=R,exports.enableHighchartsDelayedTooltip=J.enableHighchartsDelayedTooltip,exports.formatFileSize=_.formatFileSize,exports.delay=G.delay,exports.getChartHorizontalAxis=Q.getChartHorizontalAxis,exports.getChartVerticalAxis=X.getChartVerticalAxis,exports.downloadBlob=Y.downloadBlob,exports.getAssetByFracFleetId=Z.getAssetByFracFleetId,exports.getAssetByInterventionUnitId=Z.getAssetByInterventionUnitId,exports.getAssetByPadId=Z.getAssetByPadId,exports.getAssetByRigId=Z.getAssetByRigId,exports.getAssetByWellIdForInterventionUnit=Z.getAssetByWellIdForInterventionUnit,exports.getAssetByWellIdForRig=Z.getAssetByWellIdForRig,exports.components=be,exports.convertArray=oe,exports.convertImmutables=me,exports.convertImmutablesByBatch=Ue,exports.convertValue=ie,exports.getAllUnitTypes=ne,exports.getDefaultImperialUnit=ae,exports.getDefaultUnits=pe,exports.getUniqueUnitsByType=he,exports.getUnitDescription=le,exports.getUnitDisplay=ue,exports.getUnitPlural=ce,exports.getUnitPreference=xe,exports.getUnitSingular=de,exports.getUnitSystem=je,exports.getUnitsByType=ge,exports.getUserUnits=ye,exports.mapbox=ve,exports.subscribeForUserUnitsUpdates=qe,exports.updateUserUnits=fe;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/typeof"),r=require("../components/UserMention/utils/index.js"),s=require("./StageDesignVActualUtils.js"),o=require("./alerts.js"),i=require("./audio.js"),n=require("./casing/index.js"),a=require("./chartSeries.js"),p=require("./completion.js"),l=require("./components.js"),u=require("./convert.js"),c=require("./csvExport.js"),x=require("./devcenter.js"),g=require("./drillstring/index.js"),d=require("./DrillstringUtils.js"),j=require("./FluidCheckUtils.js"),f=require("./formatting.js"),y=require("./ga.js"),q=require("./goals.js"),m=require("./goalsConfig/index.js"),U=require("./lasParser.js"),b=require("./main.js"),h=require("./mapUnits.js"),v=require("./mapbox.js"),S=require("./metrics/index.js"),A=require("./mobileDetect.js"),I=require("./nativeMessages.js"),D=require("./notifications.js"),w=require("./feed.js"),B=require("./permissions.js"),O=require("./reports.js"),P=require("./time.js"),T=require("./torqueAndHookloadUtils.js"),C=require("./accuracy.js"),F=require("./notificationToasts.js"),N=require("./devcenterToasts.js"),E=require("./convertKeys.js"),H=require("./dashboardReports.js"),W=require("./apps.js"),k=require("./themeVariables.js"),K=require("./env.js"),V=require("./fileExtension.js"),L=require("./jsonaDataFormatter.js"),M=require("./bha.js"),R=require("./localStorage.js"),z=require("./sharedDCStore.js"),J=require("./resolveWellHubSlug.js"),X=require("./delayedHighcharts.js"),Y=require("./formatFileSize.js"),_=require("./charts/index.js"),G=require("./delay.js"),Q=require("./downloadBlob.js"),Z=require("./getSingleAsset.js"),$=require("./charts/getXAxis.js"),ee=require("./charts/getYAxis.js");function te(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var re=te(e),se=te(t);function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}var ie={get:function(e,t){var r=e[t];return"function"==typeof r?function(){for(var t=arguments.length,s=new Array(t),o=0;o<t;o++)s[o]=arguments[o];return r.apply(e,s.map((function(e){return"object"===se.default(e)&&e&&"toJS"in e&&"function"==typeof e.toJS?e.toJS():e})))}:r}};function ne(e){return new Proxy(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(r),!0).forEach((function(t){re.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),ie)}var ae=u.convertArray,pe=u.convertValue,le=u.getAllUnitTypes,ue=u.getDefaultImperialUnit,ce=u.getDefaultUnits,xe=u.getUnitDescription,ge=u.getUnitDisplay,de=u.getUnitPlural,je=u.getUnitPreference,fe=u.getUnitsByType,ye=u.getUnitSingular,qe=u.getUnitSystem,me=u.updateUserUnits,Ue=u.getUserUnits,be=u.subscribeForUserUnitsUpdates,he=u.convertImmutables,ve=u.convertImmutablesByBatch,Se=u.getUniqueUnitsByType,Ae=ne(v),Ie=ne(l),De=$.getXAxis,we=ee.getYAxis;exports.formatMentionText=r.formatMentionText,exports.isSuggestionsListOpened=r.isSuggestionsListOpened,exports.StageDesignVActualUtils=s,exports.alerts=o,exports.audio=i,exports.casing=n,exports.chartSeries=a,exports.completion=p,exports.convert=u,exports.csvExport=c,exports.devcenter=x,exports.drillstring=g,exports.drillstringUtils=d,exports.fluidCheckUtils=j,exports.formatting=f,exports.ga=y,exports.goals=q,exports.goalsConfig=m,exports.lasParser=U,exports.main=b,exports.mapUnits=h,exports.metricsUtils=S,exports.mobileDetect=A,exports.nativeMessages=I,exports.notifications=D,exports.feed=w,exports.permissions=B,exports.reports=O,exports.time=P,exports.torqueAndHookloadUtils=T,exports.accuracy=C,exports.createNotification=F.createNotification,exports.removeNotification=F.removeNotification,exports.showErrorNotification=F.showErrorNotification,exports.showInfoNotification=F.showInfoNotification,exports.showNeutralNotification=F.showNeutralNotification,exports.showSuccessNotification=F.showSuccessNotification,exports.showWarningNotification=F.showWarningNotification,exports.showToast=N.showToast,exports.convertKeysToCamelCase=E.convertKeysToCamelCase,exports.convertKeysToSnakeCase=E.convertKeysToSnakeCase,exports.getConvertKeys=E.getConvertKeys,exports.dashboardReports=H,exports.apps=W,exports.themeVariables=k,exports.env=K,exports.fileExtension=V,exports.jsonaDataFormatter=L.jsonaDataFormatter,exports.bha=M,exports.getLocalStorageItem=R.getLocalStorageItem,exports.updateLocalStorageItem=R.updateLocalStorageItem,exports.sharedDCStore=z.sharedDCStore,exports.resolveWellHubSlug=J,exports.enableHighchartsDelayedTooltip=X.enableHighchartsDelayedTooltip,exports.formatFileSize=Y.formatFileSize,exports.chart=_,exports.delay=G.delay,exports.downloadBlob=Q.downloadBlob,exports.getAssetByFracFleetId=Z.getAssetByFracFleetId,exports.getAssetByInterventionUnitId=Z.getAssetByInterventionUnitId,exports.getAssetByPadId=Z.getAssetByPadId,exports.getAssetByRigId=Z.getAssetByRigId,exports.getAssetByWellIdForInterventionUnit=Z.getAssetByWellIdForInterventionUnit,exports.getAssetByWellIdForRig=Z.getAssetByWellIdForRig,exports.components=Ie,exports.convertArray=ae,exports.convertImmutables=he,exports.convertImmutablesByBatch=ve,exports.convertValue=pe,exports.getAllUnitTypes=le,exports.getChartHorizontalAxis=De,exports.getChartVerticalAxis=we,exports.getDefaultImperialUnit=ue,exports.getDefaultUnits=ce,exports.getUniqueUnitsByType=Se,exports.getUnitDescription=xe,exports.getUnitDisplay=ge,exports.getUnitPlural=de,exports.getUnitPreference=je,exports.getUnitSingular=ye,exports.getUnitSystem=qe,exports.getUnitsByType=fe,exports.getUserUnits=Ue,exports.mapbox=Ae,exports.subscribeForUserUnitsUpdates=be,exports.updateUserUnits=me;
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/utils/index.js"],"sourcesContent":["import { formatMentionText, isSuggestionsListOpened } from '../components/UserMention/utils';\n\nimport * as StageDesignVActualUtils from './StageDesignVActualUtils';\nimport * as alerts from './alerts';\nimport * as audio from './audio';\nimport * as casing from './casing';\nimport * as chartSeries from './chartSeries';\nimport * as completion from './completion';\nimport * as componentsFormerImmutable from './components';\nimport * as convert from './convert';\nimport * as csvExport from './csvExport';\nimport * as devcenter from './devcenter';\nimport * as drillstring from './drillstring';\nimport * as drillstringUtils from './DrillstringUtils';\nimport * as fluidCheckUtils from './FluidCheckUtils';\nimport * as formatting from './formatting';\nimport * as ga from './ga';\nimport * as goals from './goals';\nimport * as goalsConfig from './goalsConfig';\nimport * as lasParser from './lasParser';\nimport * as main from './main';\nimport * as mapUnits from './mapUnits';\nimport * as mapboxFormerImmutable from './mapbox';\nimport * as metricsUtils from './metrics';\nimport * as mobileDetect from './mobileDetect';\nimport * as nativeMessages from './nativeMessages';\nimport * as notifications from './notifications';\nimport * as feed from './feed';\nimport * as permissions from './permissions';\nimport * as reports from './reports';\nimport * as time from './time';\nimport * as torqueAndHookloadUtils from './torqueAndHookloadUtils';\nimport * as accuracy from './accuracy';\nimport {\n createNotification,\n removeNotification,\n showErrorNotification,\n showInfoNotification,\n showNeutralNotification,\n showSuccessNotification,\n showWarningNotification,\n} from './notificationToasts';\nimport { showToast } from './devcenterToasts';\nimport { convertKeysToCamelCase, convertKeysToSnakeCase, getConvertKeys } from './convertKeys';\nimport * as dashboardReports from './dashboardReports';\nimport * as apps from './apps';\nimport * as themeVariables from './themeVariables';\nimport * as env from './env';\nimport * as fileExtension from './fileExtension';\nimport { jsonaDataFormatter } from './jsonaDataFormatter';\nimport * as bha from './bha';\nimport { getLocalStorageItem, updateLocalStorageItem } from './localStorage';\nimport { sharedDCStore } from './sharedDCStore';\nimport resolveWellHubSlug from './resolveWellHubSlug';\nimport { enableHighchartsDelayedTooltip } from './delayedHighcharts';\nimport { formatFileSize } from './formatFileSize';\n\nconst backwardCompatibleHandler = {\n get(target, propKey) {\n const original = target[propKey];\n return typeof original === 'function'\n ? (...props) =>\n original.apply(\n target,\n props.map(prop => (prop.toJS ? prop.toJS() : prop))\n )\n : original;\n },\n};\n\nfunction getBackwardCompatibility(module) {\n return new Proxy({ ...module }, backwardCompatibleHandler);\n}\n\nconst {\n convertArray,\n convertValue,\n getAllUnitTypes,\n getDefaultImperialUnit,\n getDefaultUnits,\n getUnitDescription,\n getUnitDisplay,\n getUnitPlural,\n getUnitPreference,\n getUnitsByType,\n getUnitSingular,\n getUnitSystem,\n updateUserUnits,\n getUserUnits,\n subscribeForUserUnitsUpdates,\n convertImmutables,\n convertImmutablesByBatch,\n getUniqueUnitsByType,\n} = convert;\n\nconst mapbox = getBackwardCompatibility(mapboxFormerImmutable);\nconst components = getBackwardCompatibility(componentsFormerImmutable);\n\nexport {\n StageDesignVActualUtils,\n accuracy,\n alerts,\n apps,\n audio,\n bha,\n casing,\n chartSeries,\n enableHighchartsDelayedTooltip,\n completion,\n components,\n convert,\n convertArray,\n convertImmutables,\n convertImmutablesByBatch,\n convertKeysToCamelCase,\n convertKeysToSnakeCase,\n convertValue,\n createNotification,\n csvExport,\n dashboardReports,\n devcenter,\n drillstring,\n drillstringUtils,\n env,\n feed,\n fileExtension,\n fluidCheckUtils,\n formatting,\n ga,\n formatMentionText,\n getAllUnitTypes,\n getConvertKeys,\n getDefaultImperialUnit,\n getDefaultUnits,\n getLocalStorageItem,\n getUniqueUnitsByType,\n getUnitDescription,\n getUnitDisplay,\n getUnitPlural,\n getUnitPreference,\n getUnitSingular,\n getUnitSystem,\n getUnitsByType,\n getUserUnits,\n goals,\n goalsConfig,\n jsonaDataFormatter,\n lasParser,\n main,\n mapUnits,\n mapbox,\n metricsUtils,\n mobileDetect,\n nativeMessages,\n notifications,\n permissions,\n removeNotification,\n reports,\n resolveWellHubSlug,\n sharedDCStore,\n showErrorNotification,\n showInfoNotification,\n showNeutralNotification,\n showSuccessNotification,\n showToast,\n showWarningNotification,\n subscribeForUserUnitsUpdates,\n themeVariables,\n time,\n torqueAndHookloadUtils,\n updateLocalStorageItem,\n updateUserUnits,\n isSuggestionsListOpened,\n formatFileSize,\n};\n\nexport * from './delay';\nexport * from './charts';\nexport * from './downloadBlob';\nexport * from './getSingleAsset';\n"],"names":["backwardCompatibleHandler","get","target","propKey","original","_len","arguments","length","props","Array","_key","apply","map","prop","toJS","getBackwardCompatibility","module","Proxy","_objectSpread","convertArray","convert","convertValue","getAllUnitTypes","getDefaultImperialUnit","getDefaultUnits","getUnitDescription","getUnitDisplay","getUnitPlural","getUnitPreference","getUnitsByType","getUnitSingular","getUnitSystem","updateUserUnits","getUserUnits","subscribeForUserUnitsUpdates","convertImmutables","convertImmutablesByBatch","getUniqueUnitsByType","mapbox","mapboxFormerImmutable","components","componentsFormerImmutable"],"mappings":"ggEAyDA,IAAMA,GAA4B,CAChCC,IAAIC,SAAAA,EAAQC,GACV,IAAMC,EAAWF,EAAOC,GACxB,MAA2B,mBAAbC,EACV,WAAA,IAAA,IAAAC,EAAAC,UAAAC,OAAIC,EAAK,IAAAC,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL,EAAAK,IAALF,EAAKE,GAAAJ,UAAAI,GAAA,OACPN,EAASO,MACPT,EACAM,EAAMI,KAAI,SAAAC,GAAI,OAAKA,EAAKC,KAAOD,EAAKC,OAASD,CAAK,IACnD,EACHT,CACN,GAGF,SAASW,GAAyBC,GAChC,OAAO,IAAIC,gXAAKC,CAAA,CAAA,EAAMF,GAAUhB,GAClC,CAEA,IACEmB,GAkBEC,EAAAA,aAjBFC,GAiBED,EAAAA,aAhBFE,GAgBEF,EAAAA,gBAfFG,GAeEH,EAAAA,uBAdFI,GAcEJ,EAAAA,gBAbFK,GAaEL,EAAAA,mBAZFM,GAYEN,EAAAA,eAXFO,GAWEP,EAAAA,cAVFQ,GAUER,EAAAA,kBATFS,GASET,EAAAA,eARFU,GAQEV,EAAAA,gBAPFW,GAOEX,EAAAA,cANFY,GAMEZ,EAAAA,gBALFa,GAKEb,EAAAA,aAJFc,GAIEd,EAAAA,6BAHFe,GAGEf,EAAAA,kBAFFgB,GAEEhB,EAAAA,yBADFiB,GACEjB,EADkBiB,qBAGhBC,GAASvB,GAAyBwB,GAClCC,GAAazB,GAAyB0B"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{memo as t,useRef as o,useMemo as i,useEffect as n,createElement as s}from"react";import c from"react-dom";import a from"prop-types";import l from"mapbox.js";import{get as u,sortBy as m}from"lodash";import{MuiThemeProvider as p}from"@material-ui/core/styles";import{usePrevious as h}from"../../effects/index.js";import d from"./Map.css.js";import{mapbox as f}from"../../../../utils/index.js";import{darkTheme as b}from"../../../../config/theme/index.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/typeof";import"@babel/runtime/regenerator";import"highcharts-v8";import"highcharts-v8/highcharts-more";import"highcharts-v8/modules/solid-gauge";import"highcharts-v8/modules/heatmap";import"highcharts-v8/modules/boost";import"highcharts-v8/modules/exporting";import"highcharts-v8/modules/xrange";import"highcharts-v8/modules/dumbbell";import"highcharts-v8/modules/pattern-fill";import"highcharts-multicolor-series-v8";import"highcharts";import"highcharts/highcharts-more";import"highcharts/modules/solid-gauge";import"highcharts/modules/heatmap";import"highcharts/modules/boost";import"highcharts/modules/exporting";import"highcharts/modules/xrange";import"highcharts/modules/dumbbell";import"highcharts/modules/pattern-fill";import"highcharts-multicolor-series";import"dompurify";import"../../../../config/mapbox/index.js";import"../../../../clients/subscriptions/constants.js";import"../../../../clients/subscriptions.v1.js";import"../../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../../config/extendNative.js";import{jsx as g,jsxs as v}from"react/jsx-runtime";function F(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 y(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?F(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):F(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var j=f.isValidCoordinates,O=["#FF00FF","#F5BD80","#FF0000","#0080FF","#FF8000","#58ACFA","#FA58F4","#40FF00","#4B8A08","#40FF00","#D8F781"],x=[29.749907,-95.358421];function k(t){var a=t.subjectWell,f=t.wells,F=t.offsetWells,k=t.radius,N=t.subjectWellMarkerSize,P=t.wellMarkerSize,w=t.popUpFormatter,B=t.coordsDataPath,S=o(null),T=o(null),W=o(null),C=h(f),D=i((function(){return f.filter((function(r){return!a||a.id!==r.id}))}),[a,f]),M=i((function(){return a&&u(a,B)}),[a,B]),z=i((function(){var e=[],t=!1;D.forEach((function(r){"Null"===r.formation?t=!0:a&&a.formation===r.formation||e.includes(r.formation)||e.push(r.formation)}));var o=a?[a.formation].concat(m(e)):m(e);t&&!o.includes("Null")&&o.push("Null");var i=o.reduce((function(e,t,o){return y(y({},e),{},r({},t,O[o%O.length]))}),{});return[o,i]}),[a,D]),L=e(z,2),E=L[0],I=L[1];return n((function(){S.current=l.mapbox.map(S.current,null,{attributionControl:!1,scrollWheelZoom:!1,zoomControl:!1}).setView(x,1),l.control.zoom({position:"bottomright"}).addTo(S.current),l.mapbox.styleLayer("mapbox://styles/mapbox/dark-v9").addTo(S.current);var r=S.current;return function(){r.off("layerremove"),r.remove(),S.current=null,T.current=null,W.current=null}}),[]),n((function(){S.current&&(T.current&&S.current.removeLayer(T.current),M?(T.current=l.circle(M,1609.34*k,{stroke:!1,fill:!0,fillOpacity:.2,fillColor:"#03BCD4",className:"circle_500"}),T.current.addTo(S.current)):T.current=null)}),[k,M]),n((function(){if(S.current){S.current.closePopup(),W.current&&W.current.removeFrom(S.current);var r=F.map((function(r){return r.id})),e=[];f.forEach((function(t){var o=u(t,B);if(o&&j(o)){var i=a&&a.id===t.id,n=r.includes(t.id),m=i?N:P,h=i||n?"#00FFFF":I[t.formation],d=i||n?1:.3,f=l.circleMarker(o,{radius:m,stroke:!1,fill:!0,fillOpacity:d,fillColor:h,className:"circle_500"});f.addEventListener("mouseover",(function(){if(w){var r=document.createElement("div"),e=s(w,{well:t,color:I[t.formation]});c.render(g(p,{theme:b,children:e}),r),l.popup().setLatLng(o).setContent(r).openOn(S.current)}})),e.push(f)}})),e.length&&(W.current=l.featureGroup(e),W.current.addTo(S.current)),setTimeout((function(){T.current&&T.current.bringToBack(),S.current&&T.current&&f!==C&&S.current.fitBounds(T.current.getBounds(),{padding:[5,5]})}),500)}}),[a,f,F,I]),n((function(){setTimeout((function(){T.current&&T.current.bringToBack(),a?S.current&&T.current&&S.current.fitBounds(T.current.getBounds(),{padding:[5,5]}):S.current&&W.current&&S.current.fitBounds(W.current.getBounds())}),500)}),[k,a]),v("div",{className:d.map,children:[g("div",{className:d.mapMain,ref:S}),v("div",{className:d.mapFooter,children:[F&&v("div",{className:d.mapFooterItem,children:[g("div",{className:d.mapFooterItemSquare,style:{backgroundColor:"#00FFFF"}}),g("div",{className:d.mapFooterItemLabel,children:"Selected Offset Wells"})]}),E.map((function(r){return v("div",{className:d.mapFooterItem,children:[g("div",{className:d.mapFooterItemSquare,style:{backgroundColor:I[r]}}),g("div",{className:d.mapFooterItemLabel,children:r})]},r)}))]})]})}k.propTypes={subjectWell:a.shape({id:a.number,formation:a.string}),wells:a.arrayOf(a.shape({})).isRequired,offsetWells:a.arrayOf(a.shape({})),radius:a.number.isRequired,subjectWellMarkerSize:a.number,wellMarkerSize:a.number,popUpFormatter:a.func,coordsDataPath:a.string},k.defaultProps={subjectWell:null,subjectWellMarkerSize:10,wellMarkerSize:5,popUpFormatter:null,coordsDataPath:"settings.top_hole.coordinates",offsetWells:null};var N=t(k);export{N as default};
1
+ import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{memo as t,useRef as o,useMemo as i,useEffect as n,createElement as s}from"react";import a from"react-dom";import c from"prop-types";import l from"mapbox.js";import{get as u,sortBy as m}from"lodash";import{MuiThemeProvider as p}from"@material-ui/core/styles";import{usePrevious as h}from"../../effects/index.js";import d from"./Map.css.js";import{mapbox as f}from"../../../../utils/index.js";import{darkTheme as g}from"../../../../config/theme/index.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/typeof";import"@babel/runtime/regenerator";import"highcharts-v8";import"highcharts-v8/highcharts-more";import"highcharts-v8/modules/solid-gauge";import"highcharts-v8/modules/heatmap";import"highcharts-v8/modules/boost";import"highcharts-v8/modules/exporting";import"highcharts-v8/modules/xrange";import"highcharts-v8/modules/dumbbell";import"highcharts-v8/modules/pattern-fill";import"highcharts-v8/modules/annotations";import"highcharts-multicolor-series-v8";import"highcharts";import"highcharts/highcharts-more";import"highcharts/modules/solid-gauge";import"highcharts/modules/heatmap";import"highcharts/modules/boost";import"highcharts/modules/exporting";import"highcharts/modules/xrange";import"highcharts/modules/dumbbell";import"highcharts/modules/pattern-fill";import"highcharts/modules/annotations";import"highcharts-multicolor-series";import"dompurify";import"../../../../config/mapbox/index.js";import"../../../../clients/subscriptions/constants.js";import"../../../../clients/subscriptions.v1.js";import"../../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../../config/extendNative.js";import{jsx as b,jsxs as v}from"react/jsx-runtime";function F(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 y(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?F(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):F(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var j=f.isValidCoordinates,O=["#FF00FF","#F5BD80","#FF0000","#0080FF","#FF8000","#58ACFA","#FA58F4","#40FF00","#4B8A08","#40FF00","#D8F781"],x=[29.749907,-95.358421];function k(t){var c=t.subjectWell,f=t.wells,F=t.offsetWells,k=t.radius,N=t.subjectWellMarkerSize,P=t.wellMarkerSize,w=t.popUpFormatter,B=t.coordsDataPath,S=o(null),T=o(null),W=o(null),C=h(f),D=i((function(){return f.filter((function(r){return!c||c.id!==r.id}))}),[c,f]),M=i((function(){return c&&u(c,B)}),[c,B]),z=i((function(){var e=[],t=!1;D.forEach((function(r){"Null"===r.formation?t=!0:c&&c.formation===r.formation||e.includes(r.formation)||e.push(r.formation)}));var o=c?[c.formation].concat(m(e)):m(e);t&&!o.includes("Null")&&o.push("Null");var i=o.reduce((function(e,t,o){return y(y({},e),{},r({},t,O[o%O.length]))}),{});return[o,i]}),[c,D]),L=e(z,2),E=L[0],I=L[1];return n((function(){S.current=l.mapbox.map(S.current,null,{attributionControl:!1,scrollWheelZoom:!1,zoomControl:!1}).setView(x,1),l.control.zoom({position:"bottomright"}).addTo(S.current),l.mapbox.styleLayer("mapbox://styles/mapbox/dark-v9").addTo(S.current);var r=S.current;return function(){r.off("layerremove"),r.remove(),S.current=null,T.current=null,W.current=null}}),[]),n((function(){S.current&&(T.current&&S.current.removeLayer(T.current),M?(T.current=l.circle(M,1609.34*k,{stroke:!1,fill:!0,fillOpacity:.2,fillColor:"#03BCD4",className:"circle_500"}),T.current.addTo(S.current)):T.current=null)}),[k,M]),n((function(){if(S.current){S.current.closePopup(),W.current&&W.current.removeFrom(S.current);var r=F.map((function(r){return r.id})),e=[];f.forEach((function(t){var o=u(t,B);if(o&&j(o)){var i=c&&c.id===t.id,n=r.includes(t.id),m=i?N:P,h=i||n?"#00FFFF":I[t.formation],d=i||n?1:.3,f=l.circleMarker(o,{radius:m,stroke:!1,fill:!0,fillOpacity:d,fillColor:h,className:"circle_500"});f.addEventListener("mouseover",(function(){if(w){var r=document.createElement("div"),e=s(w,{well:t,color:I[t.formation]});a.render(b(p,{theme:g,children:e}),r),l.popup().setLatLng(o).setContent(r).openOn(S.current)}})),e.push(f)}})),e.length&&(W.current=l.featureGroup(e),W.current.addTo(S.current)),setTimeout((function(){T.current&&T.current.bringToBack(),S.current&&T.current&&f!==C&&S.current.fitBounds(T.current.getBounds(),{padding:[5,5]})}),500)}}),[c,f,F,I]),n((function(){setTimeout((function(){T.current&&T.current.bringToBack(),c?S.current&&T.current&&S.current.fitBounds(T.current.getBounds(),{padding:[5,5]}):S.current&&W.current&&S.current.fitBounds(W.current.getBounds())}),500)}),[k,c]),v("div",{className:d.map,children:[b("div",{className:d.mapMain,ref:S}),v("div",{className:d.mapFooter,children:[F&&v("div",{className:d.mapFooterItem,children:[b("div",{className:d.mapFooterItemSquare,style:{backgroundColor:"#00FFFF"}}),b("div",{className:d.mapFooterItemLabel,children:"Selected Offset Wells"})]}),E.map((function(r){return v("div",{className:d.mapFooterItem,children:[b("div",{className:d.mapFooterItemSquare,style:{backgroundColor:I[r]}}),b("div",{className:d.mapFooterItemLabel,children:r})]},r)}))]})]})}k.propTypes={subjectWell:c.shape({id:c.number,formation:c.string}),wells:c.arrayOf(c.shape({})).isRequired,offsetWells:c.arrayOf(c.shape({})),radius:c.number.isRequired,subjectWellMarkerSize:c.number,wellMarkerSize:c.number,popUpFormatter:c.func,coordsDataPath:c.string},k.defaultProps={subjectWell:null,subjectWellMarkerSize:10,wellMarkerSize:5,popUpFormatter:null,coordsDataPath:"settings.top_hole.coordinates",offsetWells:null};var N=t(k);export{N as default};
2
2
  //# sourceMappingURL=Map.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Map.js","sources":["../../../../../src/components/OffsetWellPickerV2/components/Map/Map.js"],"sourcesContent":["import { createElement, memo, useRef, useEffect, useMemo } from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport L from 'mapbox.js';\nimport { get, sortBy } from 'lodash';\nimport { MuiThemeProvider } from '@material-ui/core/styles';\n\nimport { usePrevious } from '../../effects';\n\nimport styles from './Map.css';\n\nimport { mapbox } from '~/utils';\nimport { theme } from '~/config';\n\nconst { isValidCoordinates } = mapbox;\n\nconst RADIUS_CIRCLE_COLOR = '#03BCD4';\nconst METERS_IN_MILE = 1609.34;\nconst DEFAULT_SUBJECT_WELL_MARKER_SIZE = 10;\nconst DEFAULT_WELL_MARKER_SIZE = 5;\nconst OFFSET_WELL_COLOR = '#00FFFF';\nconst COLORS = [\n '#FF00FF',\n '#F5BD80',\n '#FF0000',\n '#0080FF',\n '#FF8000',\n '#58ACFA',\n '#FA58F4',\n '#40FF00',\n '#4B8A08',\n '#40FF00',\n '#D8F781',\n];\n\nconst DEFAULT_COORDS = [29.749907, -95.358421]; // TX coordinates\n\n// eslint-disable-next-line no-unused-vars\nfunction WellsMap({\n subjectWell,\n wells,\n offsetWells,\n radius,\n subjectWellMarkerSize,\n wellMarkerSize,\n popUpFormatter,\n coordsDataPath,\n}) {\n const mapContainerRef = useRef(null);\n const radiusCircleRef = useRef(null);\n const markersGroupRef = useRef(null);\n\n const prevWells = usePrevious(wells);\n\n const restWells = useMemo(() => {\n return wells.filter(well => !subjectWell || subjectWell.id !== well.id);\n }, [subjectWell, wells]);\n\n const subjectWellCoords = useMemo(() => {\n return subjectWell && get(subjectWell, coordsDataPath);\n }, [subjectWell, coordsDataPath]);\n\n // NOTE: Get well marker colors according to its target formation\n const [formations, colorDict] = useMemo(() => {\n // NOTE: Determine well marker colors\n const restFormations = [];\n let hasNullFormation = false;\n\n restWells.forEach(well => {\n if (well.formation === 'Null') {\n hasNullFormation = true;\n } else if (\n (!subjectWell || subjectWell.formation !== well.formation) &&\n !restFormations.includes(well.formation)\n ) {\n restFormations.push(well.formation);\n }\n });\n\n const sortedFormations = subjectWell\n ? [subjectWell.formation].concat(sortBy(restFormations))\n : sortBy(restFormations);\n\n if (hasNullFormation && !sortedFormations.includes('Null')) {\n sortedFormations.push('Null');\n }\n\n const colors = sortedFormations.reduce(\n (result, item, idx) => ({\n ...result,\n [item]: COLORS[idx % COLORS.length],\n }),\n {}\n );\n\n return [sortedFormations, colors];\n }, [subjectWell, restWells]);\n\n // NOTE: Initialize map\n useEffect(() => {\n mapContainerRef.current = L.mapbox\n .map(mapContainerRef.current, null, {\n attributionControl: false,\n scrollWheelZoom: false,\n zoomControl: false,\n })\n .setView(DEFAULT_COORDS, 1);\n\n L.control\n .zoom({\n position: 'bottomright',\n })\n .addTo(mapContainerRef.current);\n L.mapbox.styleLayer('mapbox://styles/mapbox/dark-v9').addTo(mapContainerRef.current);\n\n // NOTE: React nulls the DOM ref before deferred effect cleanup runs, so keep the map in a local\n const map = mapContainerRef.current;\n return () => {\n // NOTE: mapbox.js defers _updateMapFeedbackLink on layerremove; after remove() it crashes on the deleted control container\n map.off('layerremove');\n map.remove();\n mapContainerRef.current = null;\n radiusCircleRef.current = null;\n markersGroupRef.current = null;\n };\n }, []);\n\n // NOTE: Radius circle\n useEffect(() => {\n if (!mapContainerRef.current) {\n return;\n }\n\n // NOTE: Clean up\n if (radiusCircleRef.current) {\n mapContainerRef.current.removeLayer(radiusCircleRef.current);\n }\n\n if (!subjectWellCoords) {\n radiusCircleRef.current = null;\n return;\n }\n\n radiusCircleRef.current = L.circle(subjectWellCoords, radius * METERS_IN_MILE, {\n stroke: false,\n fill: true,\n fillOpacity: 0.2,\n fillColor: RADIUS_CIRCLE_COLOR,\n className: 'circle_500',\n });\n\n radiusCircleRef.current.addTo(mapContainerRef.current);\n }, [radius, subjectWellCoords]);\n\n // NOTE: Well markers\n useEffect(() => {\n if (!mapContainerRef.current) {\n return;\n }\n\n mapContainerRef.current.closePopup();\n\n // NOTE: Clean up\n if (markersGroupRef.current) {\n markersGroupRef.current.removeFrom(mapContainerRef.current);\n }\n\n const offsetWellIds = offsetWells.map(well => well.id);\n\n const markers = [];\n wells.forEach(well => {\n const coords = get(well, coordsDataPath);\n\n if (coords && isValidCoordinates(coords)) {\n const isWellSubject = subjectWell && subjectWell.id === well.id;\n const isWellOffset = offsetWellIds.includes(well.id);\n const r = isWellSubject ? subjectWellMarkerSize : wellMarkerSize;\n const color = isWellSubject || isWellOffset ? OFFSET_WELL_COLOR : colorDict[well.formation];\n const opacity = isWellSubject || isWellOffset ? 1 : 0.3;\n\n const newMarker = L.circleMarker(coords, {\n radius: r,\n stroke: false,\n fill: true,\n fillOpacity: opacity,\n fillColor: color,\n className: 'circle_500',\n });\n\n newMarker.addEventListener('mouseover', () => {\n if (popUpFormatter) {\n // Container to put React generated content in.\n const popUpContainer = document.createElement('div');\n const popUpContent = createElement(popUpFormatter, {\n well,\n color: colorDict[well.formation],\n });\n // NOTE: Custom popup may have buttons\n ReactDOM.render(\n <MuiThemeProvider theme={theme.darkTheme}>{popUpContent}</MuiThemeProvider>,\n popUpContainer\n );\n\n L.popup().setLatLng(coords).setContent(popUpContainer).openOn(mapContainerRef.current);\n }\n });\n\n markers.push(newMarker);\n }\n });\n\n if (markers.length) {\n markersGroupRef.current = L.featureGroup(markers);\n markersGroupRef.current.addTo(mapContainerRef.current);\n }\n\n setTimeout(() => {\n if (radiusCircleRef.current) {\n radiusCircleRef.current.bringToBack();\n }\n\n if (mapContainerRef.current && radiusCircleRef.current && wells !== prevWells) {\n mapContainerRef.current.fitBounds(radiusCircleRef.current.getBounds(), { padding: [5, 5] });\n }\n }, 500);\n }, [subjectWell, wells, offsetWells, colorDict]);\n\n useEffect(() => {\n setTimeout(() => {\n if (radiusCircleRef.current) {\n radiusCircleRef.current.bringToBack();\n }\n if (subjectWell) {\n if (mapContainerRef.current && radiusCircleRef.current) {\n mapContainerRef.current.fitBounds(radiusCircleRef.current.getBounds(), {\n padding: [5, 5],\n });\n }\n } else if (mapContainerRef.current && markersGroupRef.current) {\n mapContainerRef.current.fitBounds(markersGroupRef.current.getBounds());\n }\n }, 500);\n }, [radius, subjectWell]);\n\n return (\n <div className={styles.map}>\n <div className={styles.mapMain} ref={mapContainerRef} />\n\n <div className={styles.mapFooter}>\n {offsetWells && (\n <div className={styles.mapFooterItem}>\n <div\n className={styles.mapFooterItemSquare}\n style={{ backgroundColor: OFFSET_WELL_COLOR }}\n />\n <div className={styles.mapFooterItemLabel}>Selected Offset Wells</div>\n </div>\n )}\n\n {formations.map(item => (\n <div className={styles.mapFooterItem} key={item}>\n <div\n className={styles.mapFooterItemSquare}\n style={{ backgroundColor: colorDict[item] }}\n />\n <div className={styles.mapFooterItemLabel}>{item}</div>\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nWellsMap.propTypes = {\n subjectWell: PropTypes.shape({\n id: PropTypes.number,\n formation: PropTypes.string,\n }),\n wells: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n offsetWells: PropTypes.arrayOf(PropTypes.shape({})),\n radius: PropTypes.number.isRequired,\n subjectWellMarkerSize: PropTypes.number,\n wellMarkerSize: PropTypes.number,\n popUpFormatter: PropTypes.func,\n coordsDataPath: PropTypes.string,\n};\n\nWellsMap.defaultProps = {\n subjectWell: null,\n subjectWellMarkerSize: DEFAULT_SUBJECT_WELL_MARKER_SIZE,\n wellMarkerSize: DEFAULT_WELL_MARKER_SIZE,\n popUpFormatter: null,\n coordsDataPath: 'settings.top_hole.coordinates',\n offsetWells: null,\n};\n\nexport default memo(WellsMap);\n"],"names":["isValidCoordinates","mapbox","COLORS","DEFAULT_COORDS","WellsMap","_ref","subjectWell","wells","offsetWells","radius","subjectWellMarkerSize","wellMarkerSize","popUpFormatter","coordsDataPath","mapContainerRef","useRef","radiusCircleRef","markersGroupRef","prevWells","usePrevious","restWells","useMemo","filter","well","id","subjectWellCoords","get","restFormations","hasNullFormation","forEach","formation","includes","push","sortedFormations","concat","sortBy","colors","reduce","result","item","idx","length","_useMemo2","_slicedToArray","_useMemo","formations","colorDict","useEffect","current","L","map","attributionControl","scrollWheelZoom","zoomControl","setView","control","zoom","position","addTo","styleLayer","off","remove","removeLayer","circle","stroke","fill","fillOpacity","fillColor","className","closePopup","removeFrom","offsetWellIds","markers","coords","isWellSubject","isWellOffset","r","color","opacity","newMarker","circleMarker","addEventListener","popUpContainer","document","createElement","popUpContent","ReactDOM","render","_jsx","MuiThemeProvider","theme","children","popup","setLatLng","setContent","openOn","featureGroup","setTimeout","bringToBack","fitBounds","getBounds","padding","_jsxs","styles","mapMain","ref","mapFooter","mapFooterItem","mapFooterItemSquare","style","backgroundColor","mapFooterItemLabel","propTypes","PropTypes","shape","number","string","arrayOf","isRequired","func","defaultProps","memo"],"mappings":"wwEAcA,IAAQA,EAAuBC,EAAvBD,mBAOFE,EAAS,CACb,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAGIC,EAAiB,CAAC,WAAY,WAGpC,SAASC,EASNC,GAAA,IARDC,IAAAA,YACAC,IAAAA,MACAC,IAAAA,YACAC,IAAAA,OACAC,IAAAA,sBACAC,IAAAA,eACAC,IAAAA,eACAC,IAAAA,eAEMC,EAAkBC,EAAO,MACzBC,EAAkBD,EAAO,MACzBE,EAAkBF,EAAO,MAEzBG,EAAYC,EAAYZ,GAExBa,EAAYC,GAAQ,WACxB,OAAOd,EAAMe,QAAO,SAAAC,GAAI,OAAKjB,GAAeA,EAAYkB,KAAOD,EAAKC,KACtE,GAAG,CAAClB,EAAaC,IAEXkB,EAAoBJ,GAAQ,WAChC,OAAOf,GAAeoB,EAAIpB,EAAaO,EACzC,GAAG,CAACP,EAAaO,IAGeQ,EAAAA,GAAQ,WAEtC,IAAMM,EAAiB,GACnBC,GAAmB,EAEvBR,EAAUS,SAAQ,SAAAN,GACO,SAAnBA,EAAKO,UACPF,GAAmB,EAEjBtB,GAAeA,EAAYwB,YAAcP,EAAKO,WAC/CH,EAAeI,SAASR,EAAKO,YAE9BH,EAAeK,KAAKT,EAAKO,UAE7B,IAEA,IAAMG,EAAmB3B,EACrB,CAACA,EAAYwB,WAAWI,OAAOC,EAAOR,IACtCQ,EAAOR,GAEPC,IAAqBK,EAAiBF,SAAS,SACjDE,EAAiBD,KAAK,QAGxB,IAAMI,EAASH,EAAiBI,QAC9B,SAACC,EAAQC,EAAMC,GAAG,OACbF,EAAAA,EAAAA,CAAAA,EAAAA,GACFC,CAAAA,EAAAA,EAAAA,CAAAA,EAAAA,EAAOrC,E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,KACbI,sBA/QuC,GAgRvCC,eA/Q+B,EAgR/BC,eAAgB,KAChBC,eAAgB,gCAChBL,YAAa,MAGf,IAAeiH,EAAAA,EAAKrH"}
1
+ {"version":3,"file":"Map.js","sources":["../../../../../src/components/OffsetWellPickerV2/components/Map/Map.js"],"sourcesContent":["import { createElement, memo, useRef, useEffect, useMemo } from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport L from 'mapbox.js';\nimport { get, sortBy } from 'lodash';\nimport { MuiThemeProvider } from '@material-ui/core/styles';\n\nimport { usePrevious } from '../../effects';\n\nimport styles from './Map.css';\n\nimport { mapbox } from '~/utils';\nimport { theme } from '~/config';\n\nconst { isValidCoordinates } = mapbox;\n\nconst RADIUS_CIRCLE_COLOR = '#03BCD4';\nconst METERS_IN_MILE = 1609.34;\nconst DEFAULT_SUBJECT_WELL_MARKER_SIZE = 10;\nconst DEFAULT_WELL_MARKER_SIZE = 5;\nconst OFFSET_WELL_COLOR = '#00FFFF';\nconst COLORS = [\n '#FF00FF',\n '#F5BD80',\n '#FF0000',\n '#0080FF',\n '#FF8000',\n '#58ACFA',\n '#FA58F4',\n '#40FF00',\n '#4B8A08',\n '#40FF00',\n '#D8F781',\n];\n\nconst DEFAULT_COORDS = [29.749907, -95.358421]; // TX coordinates\n\n// eslint-disable-next-line no-unused-vars\nfunction WellsMap({\n subjectWell,\n wells,\n offsetWells,\n radius,\n subjectWellMarkerSize,\n wellMarkerSize,\n popUpFormatter,\n coordsDataPath,\n}) {\n const mapContainerRef = useRef(null);\n const radiusCircleRef = useRef(null);\n const markersGroupRef = useRef(null);\n\n const prevWells = usePrevious(wells);\n\n const restWells = useMemo(() => {\n return wells.filter(well => !subjectWell || subjectWell.id !== well.id);\n }, [subjectWell, wells]);\n\n const subjectWellCoords = useMemo(() => {\n return subjectWell && get(subjectWell, coordsDataPath);\n }, [subjectWell, coordsDataPath]);\n\n // NOTE: Get well marker colors according to its target formation\n const [formations, colorDict] = useMemo(() => {\n // NOTE: Determine well marker colors\n const restFormations = [];\n let hasNullFormation = false;\n\n restWells.forEach(well => {\n if (well.formation === 'Null') {\n hasNullFormation = true;\n } else if (\n (!subjectWell || subjectWell.formation !== well.formation) &&\n !restFormations.includes(well.formation)\n ) {\n restFormations.push(well.formation);\n }\n });\n\n const sortedFormations = subjectWell\n ? [subjectWell.formation].concat(sortBy(restFormations))\n : sortBy(restFormations);\n\n if (hasNullFormation && !sortedFormations.includes('Null')) {\n sortedFormations.push('Null');\n }\n\n const colors = sortedFormations.reduce(\n (result, item, idx) => ({\n ...result,\n [item]: COLORS[idx % COLORS.length],\n }),\n {}\n );\n\n return [sortedFormations, colors];\n }, [subjectWell, restWells]);\n\n // NOTE: Initialize map\n useEffect(() => {\n mapContainerRef.current = L.mapbox\n .map(mapContainerRef.current, null, {\n attributionControl: false,\n scrollWheelZoom: false,\n zoomControl: false,\n })\n .setView(DEFAULT_COORDS, 1);\n\n L.control\n .zoom({\n position: 'bottomright',\n })\n .addTo(mapContainerRef.current);\n L.mapbox.styleLayer('mapbox://styles/mapbox/dark-v9').addTo(mapContainerRef.current);\n\n // NOTE: React nulls the DOM ref before deferred effect cleanup runs, so keep the map in a local\n const map = mapContainerRef.current;\n return () => {\n // NOTE: mapbox.js defers _updateMapFeedbackLink on layerremove; after remove() it crashes on the deleted control container\n map.off('layerremove');\n map.remove();\n mapContainerRef.current = null;\n radiusCircleRef.current = null;\n markersGroupRef.current = null;\n };\n }, []);\n\n // NOTE: Radius circle\n useEffect(() => {\n if (!mapContainerRef.current) {\n return;\n }\n\n // NOTE: Clean up\n if (radiusCircleRef.current) {\n mapContainerRef.current.removeLayer(radiusCircleRef.current);\n }\n\n if (!subjectWellCoords) {\n radiusCircleRef.current = null;\n return;\n }\n\n radiusCircleRef.current = L.circle(subjectWellCoords, radius * METERS_IN_MILE, {\n stroke: false,\n fill: true,\n fillOpacity: 0.2,\n fillColor: RADIUS_CIRCLE_COLOR,\n className: 'circle_500',\n });\n\n radiusCircleRef.current.addTo(mapContainerRef.current);\n }, [radius, subjectWellCoords]);\n\n // NOTE: Well markers\n useEffect(() => {\n if (!mapContainerRef.current) {\n return;\n }\n\n mapContainerRef.current.closePopup();\n\n // NOTE: Clean up\n if (markersGroupRef.current) {\n markersGroupRef.current.removeFrom(mapContainerRef.current);\n }\n\n const offsetWellIds = offsetWells.map(well => well.id);\n\n const markers = [];\n wells.forEach(well => {\n const coords = get(well, coordsDataPath);\n\n if (coords && isValidCoordinates(coords)) {\n const isWellSubject = subjectWell && subjectWell.id === well.id;\n const isWellOffset = offsetWellIds.includes(well.id);\n const r = isWellSubject ? subjectWellMarkerSize : wellMarkerSize;\n const color = isWellSubject || isWellOffset ? OFFSET_WELL_COLOR : colorDict[well.formation];\n const opacity = isWellSubject || isWellOffset ? 1 : 0.3;\n\n const newMarker = L.circleMarker(coords, {\n radius: r,\n stroke: false,\n fill: true,\n fillOpacity: opacity,\n fillColor: color,\n className: 'circle_500',\n });\n\n newMarker.addEventListener('mouseover', () => {\n if (popUpFormatter) {\n // Container to put React generated content in.\n const popUpContainer = document.createElement('div');\n const popUpContent = createElement(popUpFormatter, {\n well,\n color: colorDict[well.formation],\n });\n // NOTE: Custom popup may have buttons\n ReactDOM.render(\n <MuiThemeProvider theme={theme.darkTheme}>{popUpContent}</MuiThemeProvider>,\n popUpContainer\n );\n\n L.popup().setLatLng(coords).setContent(popUpContainer).openOn(mapContainerRef.current);\n }\n });\n\n markers.push(newMarker);\n }\n });\n\n if (markers.length) {\n markersGroupRef.current = L.featureGroup(markers);\n markersGroupRef.current.addTo(mapContainerRef.current);\n }\n\n setTimeout(() => {\n if (radiusCircleRef.current) {\n radiusCircleRef.current.bringToBack();\n }\n\n if (mapContainerRef.current && radiusCircleRef.current && wells !== prevWells) {\n mapContainerRef.current.fitBounds(radiusCircleRef.current.getBounds(), { padding: [5, 5] });\n }\n }, 500);\n }, [subjectWell, wells, offsetWells, colorDict]);\n\n useEffect(() => {\n setTimeout(() => {\n if (radiusCircleRef.current) {\n radiusCircleRef.current.bringToBack();\n }\n if (subjectWell) {\n if (mapContainerRef.current && radiusCircleRef.current) {\n mapContainerRef.current.fitBounds(radiusCircleRef.current.getBounds(), {\n padding: [5, 5],\n });\n }\n } else if (mapContainerRef.current && markersGroupRef.current) {\n mapContainerRef.current.fitBounds(markersGroupRef.current.getBounds());\n }\n }, 500);\n }, [radius, subjectWell]);\n\n return (\n <div className={styles.map}>\n <div className={styles.mapMain} ref={mapContainerRef} />\n\n <div className={styles.mapFooter}>\n {offsetWells && (\n <div className={styles.mapFooterItem}>\n <div\n className={styles.mapFooterItemSquare}\n style={{ backgroundColor: OFFSET_WELL_COLOR }}\n />\n <div className={styles.mapFooterItemLabel}>Selected Offset Wells</div>\n </div>\n )}\n\n {formations.map(item => (\n <div className={styles.mapFooterItem} key={item}>\n <div\n className={styles.mapFooterItemSquare}\n style={{ backgroundColor: colorDict[item] }}\n />\n <div className={styles.mapFooterItemLabel}>{item}</div>\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nWellsMap.propTypes = {\n subjectWell: PropTypes.shape({\n id: PropTypes.number,\n formation: PropTypes.string,\n }),\n wells: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n offsetWells: PropTypes.arrayOf(PropTypes.shape({})),\n radius: PropTypes.number.isRequired,\n subjectWellMarkerSize: PropTypes.number,\n wellMarkerSize: PropTypes.number,\n popUpFormatter: PropTypes.func,\n coordsDataPath: PropTypes.string,\n};\n\nWellsMap.defaultProps = {\n subjectWell: null,\n subjectWellMarkerSize: DEFAULT_SUBJECT_WELL_MARKER_SIZE,\n wellMarkerSize: DEFAULT_WELL_MARKER_SIZE,\n popUpFormatter: null,\n coordsDataPath: 'settings.top_hole.coordinates',\n offsetWells: null,\n};\n\nexport default memo(WellsMap);\n"],"names":["isValidCoordinates","mapbox","COLORS","DEFAULT_COORDS","WellsMap","_ref","subjectWell","wells","offsetWells","radius","subjectWellMarkerSize","wellMarkerSize","popUpFormatter","coordsDataPath","mapContainerRef","useRef","radiusCircleRef","markersGroupRef","prevWells","usePrevious","restWells","useMemo","filter","well","id","subjectWellCoords","get","restFormations","hasNullFormation","forEach","formation","includes","push","sortedFormations","concat","sortBy","colors","reduce","result","item","idx","length","_useMemo2","_slicedToArray","_useMemo","formations","colorDict","useEffect","current","L","map","attributionControl","scrollWheelZoom","zoomControl","setView","control","zoom","position","addTo","styleLayer","off","remove","removeLayer","circle","stroke","fill","fillOpacity","fillColor","className","closePopup","removeFrom","offsetWellIds","markers","coords","isWellSubject","isWellOffset","r","color","opacity","newMarker","circleMarker","addEventListener","popUpContainer","document","createElement","popUpContent","ReactDOM","render","_jsx","MuiThemeProvider","theme","children","popup","setLatLng","setContent","openOn","featureGroup","setTimeout","bringToBack","fitBounds","getBounds","padding","_jsxs","styles","mapMain","ref","mapFooter","mapFooterItem","mapFooterItemSquare","style","backgroundColor","mapFooterItemLabel","propTypes","PropTypes","shape","number","string","arrayOf","isRequired","func","defaultProps","memo"],"mappings":"y1EAcA,IAAQA,EAAuBC,EAAvBD,mBAOFE,EAAS,CACb,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAGIC,EAAiB,CAAC,WAAY,WAGpC,SAASC,EASNC,GAAA,IARDC,IAAAA,YACAC,IAAAA,MACAC,IAAAA,YACAC,IAAAA,OACAC,IAAAA,sBACAC,IAAAA,eACAC,IAAAA,eACAC,IAAAA,eAEMC,EAAkBC,EAAO,MACzBC,EAAkBD,EAAO,MACzBE,EAAkBF,EAAO,MAEzBG,EAAYC,EAAYZ,GAExBa,EAAYC,GAAQ,WACxB,OAAOd,EAAMe,QAAO,SAAAC,GAAI,OAAKjB,GAAeA,EAAYkB,KAAOD,EAAKC,KACtE,GAAG,CAAClB,EAAaC,IAEXkB,EAAoBJ,GAAQ,WAChC,OAAOf,GAAeoB,EAAIpB,EAAaO,EACzC,GAAG,CAACP,EAAaO,IAGeQ,EAAAA,GAAQ,WAEtC,IAAMM,EAAiB,GACnBC,GAA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AAA,CAAKpB,UAAWmC,EAAOQ,mBAAmBpB,SAAEpD,MALHA,EAMrC,SAKhB,CAEAnC,EAAS4G,UAAY,CACnB1G,YAAa2G,EAAUC,MAAM,CAC3B1F,GAAIyF,EAAUE,OACdrF,UAAWmF,EAAUG,SAEvB7G,MAAO0G,EAAUI,QAAQJ,EAAUC,MAAM,CAAA,IAAKI,WAC9C9G,YAAayG,EAAUI,QAAQJ,EAAUC,MAAM,CAAE,IACjDzG,OAAQwG,EAAUE,OAAOG,WACzB5G,sBAAuBuG,EAAUE,OACjCxG,eAAgBsG,EAAUE,OAC1BvG,eAAgBqG,EAAUM,KAC1B1G,eAAgBoG,EAAUG,QAG5BhH,EAASoH,aAAe,CACtBlH,YAAa,KACbI,sBA/QuC,GAgRvCC,eA/Q+B,EAgR/BC,eAAgB,KAChBC,eAAgB,gCAChBL,YAAa,MAGf,IAAeiH,EAAAA,EAAKrH"}
@@ -1,2 +1,2 @@
1
- import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as e,useEffect as i,useRef as o}from"react";import n from"react-dom";import{isEqual as s}from"lodash";import{MuiThemeProvider as l}from"@material-ui/core/styles";import m from"../components/FiltersToggler.js";import{getStartComponent as h,getMiddleComponent as c,getEndComponents as u}from"../utils.js";import{LARGE_SIZE_LAYOUT as a,MEDIUM_SIZE_LAYOUT as p,SMALL_SIZE_LAYOUT as d}from"../constants.js";import{darkTheme as f}from"../../../config/theme/index.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/typeof";import"@babel/runtime/regenerator";import"highcharts-v8";import"highcharts-v8/highcharts-more";import"highcharts-v8/modules/solid-gauge";import"highcharts-v8/modules/heatmap";import"highcharts-v8/modules/boost";import"highcharts-v8/modules/exporting";import"highcharts-v8/modules/xrange";import"highcharts-v8/modules/dumbbell";import"highcharts-v8/modules/pattern-fill";import"highcharts-multicolor-series-v8";import"highcharts";import"highcharts/highcharts-more";import"highcharts/modules/solid-gauge";import"highcharts/modules/heatmap";import"highcharts/modules/boost";import"highcharts/modules/exporting";import"highcharts/modules/xrange";import"highcharts/modules/dumbbell";import"highcharts/modules/pattern-fill";import"highcharts-multicolor-series";import"dompurify";import"../../../config/mapbox/index.js";import"../../../clients/subscriptions/constants.js";import"../../../clients/subscriptions.v1.js";import"../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../config/extendNative.js";import{jsx as g}from"react/jsx-runtime";function v(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,i)}return e}function b(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?v(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):v(Object(i)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))}))}return t}function y(r,o,n,s){var l=e(null),m=t(l,2),f=m[0],g=m[1];return i((function(){if(s&&o){var t=h(r),e=c(r),i=u(r),l=t&&e&&!i,m=t&&!e&&i,f=t&&e&&i;if(t&&!e&&!i){var v=o[t.key];if(v<=s)return void g(a);if(v<=s/2)return void g(p)}else if(l||m){var b=o[t.key],y=l?o[e.key]:o[i.key];if(b+y<=s)return void g(a);if(n+y<=s)return void g(p)}else if(f){var j=o[t.key],O=o[e.key],k=o[i.key];if(j+O+k<=s)return void g(a);if(n+O+k<=s)return void g(p);if(n+k<=s)return void g(d)}g(d)}}),[o,s]),f}function j(n){var l=o(),m=e(null),h=t(m,2),c=h[0],u=h[1],a=o({}),p=n.filter((function(r){return!!r})),d=g("div",{ref:l,style:{position:"absolute",width:0,height:0,overflow:"hidden"},children:p.map((function(r,t){return g("div",{"data-key":null==r?void 0:r.key,style:{position:"absolute"},children:r},t)}))});return i((function(){var t;if(!s(p,a.current)){var e=Array.from(null===(t=l.current)||void 0===t?void 0:t.childNodes).reduce((function(t,e){var i,o=null==e||null===(i=e.getAttribute)||void 0===i?void 0:i.call(e,"data-key"),n=null==e?void 0:e.getBoundingClientRect().width;return b(b({},t),{},r({},o,n))}),{});Object.values(e).length===p.length&&(s(c,e)||u(e)),a.current=p}})),{componentsWidth:c,hiddenElements:d}}function O(){var r=e(null),o=t(r,2),s=o[0],h=o[1];return i((function(){var r=document.createElement("div");r.style.position="absolute",r.style.visibility="hidden",document.body.appendChild(r),n.render(g(l,{theme:f,children:g(m,{})}),r,(function(){var t=r.getBoundingClientRect();r.remove(),h(t.width)}))}),[]),s}export{O as useAppFilterTogglerWidth,j as useComonentsWidth,y as useFilterLayout};
1
+ import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/slicedToArray";import{useState as e,useEffect as i,useRef as o}from"react";import n from"react-dom";import{isEqual as s}from"lodash";import{MuiThemeProvider as h}from"@material-ui/core/styles";import m from"../components/FiltersToggler.js";import{getStartComponent as l,getMiddleComponent as c,getEndComponents as a}from"../utils.js";import{LARGE_SIZE_LAYOUT as u,MEDIUM_SIZE_LAYOUT as p,SMALL_SIZE_LAYOUT as d}from"../constants.js";import{darkTheme as f}from"../../../config/theme/index.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/typeof";import"@babel/runtime/regenerator";import"highcharts-v8";import"highcharts-v8/highcharts-more";import"highcharts-v8/modules/solid-gauge";import"highcharts-v8/modules/heatmap";import"highcharts-v8/modules/boost";import"highcharts-v8/modules/exporting";import"highcharts-v8/modules/xrange";import"highcharts-v8/modules/dumbbell";import"highcharts-v8/modules/pattern-fill";import"highcharts-v8/modules/annotations";import"highcharts-multicolor-series-v8";import"highcharts";import"highcharts/highcharts-more";import"highcharts/modules/solid-gauge";import"highcharts/modules/heatmap";import"highcharts/modules/boost";import"highcharts/modules/exporting";import"highcharts/modules/xrange";import"highcharts/modules/dumbbell";import"highcharts/modules/pattern-fill";import"highcharts/modules/annotations";import"highcharts-multicolor-series";import"dompurify";import"../../../config/mapbox/index.js";import"../../../clients/subscriptions/constants.js";import"../../../clients/subscriptions.v1.js";import"../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../config/extendNative.js";import{jsx as g}from"react/jsx-runtime";function v(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,i)}return e}function b(r){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?v(Object(i),!0).forEach((function(e){t(r,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):v(Object(i)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(i,t))}))}return r}function y(t,o,n,s){var h=e(null),m=r(h,2),f=m[0],g=m[1];return i((function(){if(s&&o){var r=l(t),e=c(t),i=a(t),h=r&&e&&!i,m=r&&!e&&i,f=r&&e&&i;if(r&&!e&&!i){var v=o[r.key];if(v<=s)return void g(u);if(v<=s/2)return void g(p)}else if(h||m){var b=o[r.key],y=h?o[e.key]:o[i.key];if(b+y<=s)return void g(u);if(n+y<=s)return void g(p)}else if(f){var j=o[r.key],O=o[e.key],k=o[i.key];if(j+O+k<=s)return void g(u);if(n+O+k<=s)return void g(p);if(n+k<=s)return void g(d)}g(d)}}),[o,s]),f}function j(n){var h=o(),m=e(null),l=r(m,2),c=l[0],a=l[1],u=o({}),p=n.filter((function(t){return!!t})),d=g("div",{ref:h,style:{position:"absolute",width:0,height:0,overflow:"hidden"},children:p.map((function(t,r){return g("div",{"data-key":null==t?void 0:t.key,style:{position:"absolute"},children:t},r)}))});return i((function(){var r;if(!s(p,u.current)){var e=Array.from(null===(r=h.current)||void 0===r?void 0:r.childNodes).reduce((function(r,e){var i,o=null==e||null===(i=e.getAttribute)||void 0===i?void 0:i.call(e,"data-key"),n=null==e?void 0:e.getBoundingClientRect().width;return b(b({},r),{},t({},o,n))}),{});Object.values(e).length===p.length&&(s(c,e)||a(e)),u.current=p}})),{componentsWidth:c,hiddenElements:d}}function O(){var t=e(null),o=r(t,2),s=o[0],l=o[1];return i((function(){var t=document.createElement("div");t.style.position="absolute",t.style.visibility="hidden",document.body.appendChild(t),n.render(g(h,{theme:f,children:g(m,{})}),t,(function(){var r=t.getBoundingClientRect();t.remove(),l(r.width)}))}),[]),s}export{O as useAppFilterTogglerWidth,j as useComonentsWidth,y as useFilterLayout};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/PinnableFilters/effects/index.js"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\nimport ReactDOM from 'react-dom';\nimport { isEqual } from 'lodash';\nimport { MuiThemeProvider } from '@material-ui/core/styles';\n\nimport FiltersToggler from '../components/FiltersToggler';\nimport { getEndComponents, getMiddleComponent, getStartComponent } from '../utils';\nimport { LARGE_SIZE_LAYOUT, MEDIUM_SIZE_LAYOUT, SMALL_SIZE_LAYOUT } from '../constants';\n\nimport { theme } from '~/config';\n\n// NOTE: Determine layout according to the width of elements\nexport function useFilterLayout(components, componentsWidth, appFilterTogglerWidth, appWidth) {\n const [layout, setLayout] = useState(null);\n\n useEffect(() => {\n if (!appWidth || !componentsWidth) {\n return;\n }\n\n const filtersComponent = getStartComponent(components);\n const goalComponent = getMiddleComponent(components);\n const switchComponent = getEndComponents(components);\n\n const hasFiltersOnly = filtersComponent && !goalComponent && !switchComponent;\n const hasFiltersAndGoals = filtersComponent && goalComponent && !switchComponent;\n const hasFiltersAndSwitch = filtersComponent && !goalComponent && switchComponent;\n const hasAll = filtersComponent && goalComponent && switchComponent;\n\n if (hasFiltersOnly) {\n const filtersWidth = componentsWidth[filtersComponent.key];\n\n if (filtersWidth <= appWidth) {\n setLayout(LARGE_SIZE_LAYOUT);\n return;\n }\n\n if (filtersWidth <= appWidth / 2) {\n setLayout(MEDIUM_SIZE_LAYOUT);\n return;\n }\n } else if (hasFiltersAndGoals || hasFiltersAndSwitch) {\n const startWidth = componentsWidth[filtersComponent.key];\n const endWidth = hasFiltersAndGoals\n ? componentsWidth[goalComponent.key]\n : componentsWidth[switchComponent.key];\n\n if (startWidth + endWidth <= appWidth) {\n setLayout(LARGE_SIZE_LAYOUT);\n return;\n }\n\n if (appFilterTogglerWidth + endWidth <= appWidth) {\n setLayout(MEDIUM_SIZE_LAYOUT);\n return;\n }\n } else if (hasAll) {\n const startWidth = componentsWidth[filtersComponent.key];\n const middleWidth = componentsWidth[goalComponent.key];\n const endWidth = componentsWidth[switchComponent.key];\n\n if (startWidth + middleWidth + endWidth <= appWidth) {\n setLayout(LARGE_SIZE_LAYOUT);\n return;\n }\n\n if (appFilterTogglerWidth + middleWidth + endWidth <= appWidth) {\n setLayout(MEDIUM_SIZE_LAYOUT);\n return;\n }\n\n if (appFilterTogglerWidth + endWidth <= appWidth) {\n setLayout(SMALL_SIZE_LAYOUT);\n return;\n }\n }\n\n setLayout(SMALL_SIZE_LAYOUT);\n }, [componentsWidth, appWidth]);\n\n return layout;\n}\n\n// NOTE: Calculate the width of child components here\nexport function useComonentsWidth(components) {\n // const widthRef = useRef({});\n const hiddenElementsRef = useRef();\n const [widthDict, setWidthDict] = useState(null);\n const prevComponentsRef = useRef({});\n\n const validComponents = components.filter(component => !!component);\n const hiddenElements = (\n <div\n ref={hiddenElementsRef}\n style={{ position: 'absolute', width: 0, height: 0, overflow: 'hidden' }}\n >\n {validComponents.map((component, index) => {\n return (\n // eslint-disable-next-line react/no-array-index-key\n <div key={index} data-key={component?.key} style={{ position: 'absolute' }}>\n {component}\n </div>\n );\n })}\n </div>\n );\n\n // NOTE: Calcualte width of each components\n useEffect(() => {\n // NOTE: Don't calcuate width again\n if (isEqual(validComponents, prevComponentsRef.current)) {\n return;\n }\n\n const nodesArray = Array.from(hiddenElementsRef.current?.childNodes);\n const sizeMap = nodesArray.reduce((acc, node) => {\n const key = node?.getAttribute?.('data-key');\n const value = node?.getBoundingClientRect().width;\n\n return {\n ...acc,\n [key]: value,\n };\n }, {});\n\n if (Object.values(sizeMap).length === validComponents.length) {\n if (!isEqual(widthDict, sizeMap)) {\n setWidthDict(sizeMap);\n }\n }\n\n prevComponentsRef.current = validComponents;\n });\n\n return { componentsWidth: widthDict, hiddenElements };\n}\n\n// NOTE: Calculate the width of Toggler Component\nexport function useAppFilterTogglerWidth() {\n const [width, setWidth] = useState(null);\n\n useEffect(() => {\n const element = document.createElement('div');\n element.style.position = 'absolute';\n element.style.visibility = 'hidden';\n document.body.appendChild(element);\n\n ReactDOM.render(\n <MuiThemeProvider theme={theme.darkTheme}>\n <FiltersToggler />\n </MuiThemeProvider>,\n element,\n () => {\n const dims = element.getBoundingClientRect();\n element.remove();\n setWidth(dims.width);\n }\n );\n }, []);\n\n return width;\n}\n"],"names":["useFilterLayout","components","componentsWidth","appFilterTogglerWidth","appWidth","useState","_useState2","_slicedToArray","_useState","layout","setLayout","useEffect","filtersComponent","getStartComponent","goalComponent","getMiddleComponent","switchComponent","getEndComponents","hasFiltersAndGoals","hasFiltersAndSwitch","hasAll","filtersWidth","key","LARGE_SIZE_LAYOUT","MEDIUM_SIZE_LAYOUT","startWidth","endWidth","middleWidth","SMALL_SIZE_LAYOUT","useComonentsWidth","hiddenElementsRef","useRef","_useState4","_useState3","widthDict","setWidthDict","prevComponentsRef","validComponents","filter","component","hiddenElements","_jsx","ref","style","position","width","height","overflow","children","map","index","_hiddenElementsRef$cu","isEqual","current","sizeMap","Array","from","childNodes","reduce","acc","node","_node$getAttribute","getAttribute","call","value","getBoundingClientRect","_objectSpread","_defineProperty","Object","values","length","useAppFilterTogglerWidth","_useState6","_useState5","setWidth","element","document","createElement","visibility","body","appendChild","ReactDOM","render","MuiThemeProvider","theme","FiltersToggler","dims","remove"],"mappings":"gwEAYO,SAASA,EAAgBC,EAAYC,EAAiBC,EAAuBC,GAClF,IAA4BC,EAAAA,EAAS,MAAKC,EAAAC,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,EAASC,OACPzC,EAAC0C,EAAgB,CAACC,MAAOA,EAAgBpC,SACvCP,EAAC4C,EAAc,MAEjBV,GACA,WACE,IAAMW,EAAOX,EAAQV,wBACrBU,EAAQY,SACRb,EAASY,EAAKzC,MAChB,GAEH,GAAE,IAEIA,CACT"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/PinnableFilters/effects/index.js"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\nimport ReactDOM from 'react-dom';\nimport { isEqual } from 'lodash';\nimport { MuiThemeProvider } from '@material-ui/core/styles';\n\nimport FiltersToggler from '../components/FiltersToggler';\nimport { getEndComponents, getMiddleComponent, getStartComponent } from '../utils';\nimport { LARGE_SIZE_LAYOUT, MEDIUM_SIZE_LAYOUT, SMALL_SIZE_LAYOUT } from '../constants';\n\nimport { theme } from '~/config';\n\n// NOTE: Determine layout according to the width of elements\nexport function useFilterLayout(components, componentsWidth, appFilterTogglerWidth, appWidth) {\n const [layout, setLayout] = useState(null);\n\n useEffect(() => {\n if (!appWidth || !componentsWidth) {\n return;\n }\n\n const filtersComponent = getStartComponent(components);\n const goalComponent = getMiddleComponent(components);\n const switchComponent = getEndComponents(components);\n\n const hasFiltersOnly = filtersComponent && !goalComponent && !switchComponent;\n const hasFiltersAndGoals = filtersComponent && goalComponent && !switchComponent;\n const hasFiltersAndSwitch = filtersComponent && !goalComponent && switchComponent;\n const hasAll = filtersComponent && goalComponent && switchComponent;\n\n if (hasFiltersOnly) {\n const filtersWidth = componentsWidth[filtersComponent.key];\n\n if (filtersWidth <= appWidth) {\n setLayout(LARGE_SIZE_LAYOUT);\n return;\n }\n\n if (filtersWidth <= appWidth / 2) {\n setLayout(MEDIUM_SIZE_LAYOUT);\n return;\n }\n } else if (hasFiltersAndGoals || hasFiltersAndSwitch) {\n const startWidth = componentsWidth[filtersComponent.key];\n const endWidth = hasFiltersAndGoals\n ? componentsWidth[goalComponent.key]\n : componentsWidth[switchComponent.key];\n\n if (startWidth + endWidth <= appWidth) {\n setLayout(LARGE_SIZE_LAYOUT);\n return;\n }\n\n if (appFilterTogglerWidth + endWidth <= appWidth) {\n setLayout(MEDIUM_SIZE_LAYOUT);\n return;\n }\n } else if (hasAll) {\n const startWidth = componentsWidth[filtersComponent.key];\n const middleWidth = componentsWidth[goalComponent.key];\n const endWidth = componentsWidth[switchComponent.key];\n\n if (startWidth + middleWidth + endWidth <= appWidth) {\n setLayout(LARGE_SIZE_LAYOUT);\n return;\n }\n\n if (appFilterTogglerWidth + middleWidth + endWidth <= appWidth) {\n setLayout(MEDIUM_SIZE_LAYOUT);\n return;\n }\n\n if (appFilterTogglerWidth + endWidth <= appWidth) {\n setLayout(SMALL_SIZE_LAYOUT);\n return;\n }\n }\n\n setLayout(SMALL_SIZE_LAYOUT);\n }, [componentsWidth, appWidth]);\n\n return layout;\n}\n\n// NOTE: Calculate the width of child components here\nexport function useComonentsWidth(components) {\n // const widthRef = useRef({});\n const hiddenElementsRef = useRef();\n const [widthDict, setWidthDict] = useState(null);\n const prevComponentsRef = useRef({});\n\n const validComponents = components.filter(component => !!component);\n const hiddenElements = (\n <div\n ref={hiddenElementsRef}\n style={{ position: 'absolute', width: 0, height: 0, overflow: 'hidden' }}\n >\n {validComponents.map((component, index) => {\n return (\n // eslint-disable-next-line react/no-array-index-key\n <div key={index} data-key={component?.key} style={{ position: 'absolute' }}>\n {component}\n </div>\n );\n })}\n </div>\n );\n\n // NOTE: Calcualte width of each components\n useEffect(() => {\n // NOTE: Don't calcuate width again\n if (isEqual(validComponents, prevComponentsRef.current)) {\n return;\n }\n\n const nodesArray = Array.from(hiddenElementsRef.current?.childNodes);\n const sizeMap = nodesArray.reduce((acc, node) => {\n const key = node?.getAttribute?.('data-key');\n const value = node?.getBoundingClientRect().width;\n\n return {\n ...acc,\n [key]: value,\n };\n }, {});\n\n if (Object.values(sizeMap).length === validComponents.length) {\n if (!isEqual(widthDict, sizeMap)) {\n setWidthDict(sizeMap);\n }\n }\n\n prevComponentsRef.current = validComponents;\n });\n\n return { componentsWidth: widthDict, hiddenElements };\n}\n\n// NOTE: Calculate the width of Toggler Component\nexport function useAppFilterTogglerWidth() {\n const [width, setWidth] = useState(null);\n\n useEffect(() => {\n const element = document.createElement('div');\n element.style.position = 'absolute';\n element.style.visibility = 'hidden';\n document.body.appendChild(element);\n\n ReactDOM.render(\n <MuiThemeProvider theme={theme.darkTheme}>\n <FiltersToggler />\n </MuiThemeProvider>,\n element,\n () => {\n const dims = element.getBoundingClientRect();\n element.remove();\n setWidth(dims.width);\n }\n );\n }, []);\n\n return width;\n}\n"],"names":["useFilterLayout","components","componentsWidth","appFilterTogglerWidth","appWidth","useState","_useState2","_slicedToArray","_useState","layout","setLayout","useEffect","filtersComponent","getStartComponent","goalComponent","getMiddleComponent","switchComponent","getEndComponents","hasFiltersAndGoals","hasFiltersAndSwitch","hasAll","filtersWidth","key","LARGE_SIZE_LAYOUT","MEDIUM_SIZE_LAYOUT","startWidth","endWidth","middleWidth","SMALL_SIZE_LAYOUT","useComonentsWidth","hiddenElementsRef","useRef","_useState4","_useState3","widthDict","setWidthDict","prevComponentsRef","validComponents","filter","component","hiddenElements","_jsx","ref","style","position","width","height","overflow","children","map","index","_hiddenElementsRef$cu","isEqual","current","sizeMap","Array","from","childNodes","reduce","acc","node","_node$getAttribute","getAttribute","call","value","getBoundingClientRect","_objectSpread","_defineProperty","Object","values","length","useAppFilterTogglerWidth","_useState6","_useState5","setWidth","element","document","createElement","visibility","body","appendChild","ReactDOM","render","MuiThemeProvider","theme","FiltersToggler","dims","remove"],"mappings":"i1EAYO,SAASA,EAAgBC,EAAYC,EAAiBC,EAAuBC,GAClF,IAA4BC,EAAAA,EAAS,MAAKC,EAAAC,EAAAC,EAAA,GAAnCC,EAAMH,EAAA,GAAEI,EAASJ,EAAA,GAmExB,OAjEAK,GAAU,WACR,GAAKP,GAAaF,EAAlB,CAIA,IAAMU,EAAmBC,EAAkBZ,GACrCa,EAAgBC,EAAmBd,GACnCe,EAAkBC,EAAiBhB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@@ -0,0 +1,11 @@
1
+ import { Meta } from '@storybook/react';
2
+ declare const meta: Meta<object>;
3
+ export default meta;
4
+ export declare const Axes: () => JSX.Element;
5
+ export declare const MultipleAxes: () => JSX.Element;
6
+ export declare const GoalTrendLines: () => JSX.Element;
7
+ export declare const ArbitraryGoalTrendLines: () => JSX.Element;
8
+ export declare const DrillStringLines: () => JSX.Element;
9
+ export declare const Tooltip: () => JSX.Element;
10
+ export declare const CustomTooltips: () => JSX.Element;
11
+ //# sourceMappingURL=ChartCommonUtilities.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChartCommonUtilities.stories.d.ts","sourceRoot":"","sources":["../../src/componentsV2/ChartCommonUtilities.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAgBxC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,MAAM,CAGtB,CAAC;AAmBF,eAAe,IAAI,CAAC;AA0CpB,eAAO,MAAM,IAAI,mBAgChB,CAAC;AAOF,eAAO,MAAM,YAAY,mBAwExB,CAAC;AAKF,eAAO,MAAM,cAAc,mBA6D1B,CAAC;AAeF,eAAO,MAAM,uBAAuB,mBA0CnC,CAAC;AAWF,eAAO,MAAM,gBAAgB,mBAyB5B,CAAC;AAMF,eAAO,MAAM,OAAO,mBA0CnB,CAAC;AAOF,eAAO,MAAM,cAAc,mBAwC1B,CAAC"}
@@ -43,6 +43,7 @@ type DatePickerBaseProps<IsRange extends boolean | undefined = false> = {
43
43
  * If `true` - disables user input
44
44
  */
45
45
  readOnly?: boolean;
46
+ clearable?: boolean;
46
47
  /**
47
48
  * Controls if the field should keep/gain focus after "Clear" button is clicked
48
49
  */
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAqD,MAAM,OAAO,CAAC;A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AAG,SAAS,GAAG,KAAK,EAAE,KAAK,EAAE,mBAAmB,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC;IACjG,QAAQ,EAAE,OAAO,gBAAgB,CAAC;IAClC,IAAI,EAAE,OAAO,YAAY,CAAC;CAC3B,CAAC;AAOF,eAAO,MAAM,cAAc,EAAyB,sBAAsB,CAAC"}
@@ -1,2 +1,2 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/slicedToArray";import{jsxs as t,Fragment as a,jsx as n}from"react/jsx-runtime";import{useRef as i,useState as o,useCallback as l,useMemo as s,useEffect as m}from"react";import c from"moment";import{Popover as u}from"../Popover/Popover.js";import{CalendarControls as d}from"./CalendarControls/CalendarControls.js";import{TimePicker as f}from"./TimePicker/TimePicker.js";import{Input as v}from"./Input/Input.js";import{applyOffsetSeconds as p,getMinDate as D,getMaxDate as y}from"./utils.js";import{CalendarGrid as b}from"./CalendarGrid/CalendarGrid.js";import h from"./DatePicker.scss.js";function g(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function O(r){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?g(Object(a),!0).forEach((function(t){e(r,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}))}return r}var T=function(e){var r=e.value,t=e.minDate,a=e.maxDate,n=(Array.isArray(r)?r[0]:r)||new Date;return t&&n.getTime()<t.getTime()?t:a&&n.getTime()>a.getTime()?a:n},j=function(e){var g=e.label,O=e.value,j=e.maxDate,C=e.minDate,P=e.className,N=e.testId,x=e.onChange,w=e.readOnly,A=e.type,E=void 0===A?"date":A,k=e.range,G=e.getTileClassName,I=e.getTileDisabled,S=e.placeholder,z=e.format,H=e.focusOnClear,V=void 0===H||H,q=e.labelPlacement,B=void 0===q?"top":q,F=e.size,J=void 0===F?"small":F,K=e.elementsClassNames,L=e.isNext,M=i(null),Q=i(null),R=o(!1),U=r(R,2),W=U[0],X=U[1],Y=o(T({maxDate:j,minDate:C,value:O})),Z=r(Y,2),$=Z[0],_=Z[1],ee=o(),re=r(ee,2),te=re[0],ae=re[1],ne=o("startDate"),ie=r(ne,2),oe=ie[0],le=ie[1],se=o(),me=r(se,2),ce=me[0],ue=me[1],de=o(),fe=r(de,2),ve=fe[0],pe=fe[1],De="dateTime"===E&&!!k,ye=o(),be=r(ye,2),he=be[0],ge=be[1],Oe=l((function(){ae(void 0),le("startDate"),ue(void 0),pe(void 0)}),[]),Te=l((function(){return X(!0)}),[]),je=l((function(){Oe(),X(!1)}),[Oe]),Ce=s((function(){return k?void 0:te||O}),[k,te,O]),Pe=s((function(){return!De||"startTime"!==oe&&"endTime"!==oe?Ce&&!Array.isArray(Ce)?Ce:void 0:ve||ce}),[De,oe,Ce,ve,ce]),Ne=l((function(e,r){var t;"startDate"===r||"startTime"===r?(le("startTime"),ue(e),pe(void 0)):"endDate"!==r&&"endTime"!==r||(le("endTime"),pe(e)),null===(t=Q.current)||void 0===t||t.flash()}),[]),xe=l((function(e,r,t,a){if("endDate"===t){var n=c(e).endOf("month"===a?"month":"day").toDate(),i=D(n,r),o=y(n,r);return i&&o?[i,o]:void 0}"startDate"===t&&(ue(e),pe(void 0),le("endDate"))}),[]),we=l((function(e){if(Array.isArray(e)||!e)throw new Error("Value is array or `null`, but should not be");if(De)Ne(e,oe);else if("dateTime"===E){var r;ae(e),null===(r=Q.current)||void 0===r||r.flash()}else if(k){var t=xe(e,ce,oe,E);t&&(null==x||x(t),je())}else!k&&e&&(null==x||x(e),je())}),[De,E,k,Ne,oe,xe,ce,x,je]),Ae=l((function(e){if(De){if("startTime"===oe)le("endDate"),ue((function(r){return r&&p(r,e)}));else if("endTime"===oe&&ve&&ce){var r=p(ve,e);null==x||x(ce<r?[ce,r]:[r,ce]),je()}}else if(Ce&&!Array.isArray(Ce)){var t=p(Ce,e);null==x||x(t),je()}}),[De,Ce,oe,ve,ce,x,je]);return m((function(){if(W){var e=Array.isArray(O);_(T({maxDate:j,minDate:C,value:O})),k&&e&&O[0]&&O[1]&&(ue(O[0]),pe(O[1]),le("startDate"))}}),[W,O,C,j,k]),t(a,{children:[n(v,{open:Te,isOpen:W,className:P,testId:N,value:O,label:g,placeholder:S,ref:M,format:z,range:k,type:E,setValue:x,readOnly:w,focusOnClear:V,labelPlacement:B,size:J,elementsClassNames:K,isNext:L}),$&&t(u,{anchorEl:M.current,onClose:je,open:W,className:h.popover,children:[t("div",{children:[n(d,{date:$,setDate:_,minDate:C,maxDate:j,view:"month"===E?"year":"month",className:h.controls}),n(b,{onChange:we,activeStartDate:$,view:"month"===E?"year":"month",maxDate:j,minDate:C,tileDisabled:I,selected:Ce,rangeStartDate:ce,rangeEndDate:ve,rangeHoveredDate:"endDate"===oe?he:void 0,setHoveredDate:ge,getTileClassName:G,className:h.grid})]}),"dateTime"===E&&n(f,{value:Pe,onChange:Ae,ref:Q})]})]})},C=function(e){return j(O(O({},e),{},{isNext:!1}))};C.Controls=d,C.Grid=b;var P=C,N=function(e){return j(O(O({},e),{},{isNext:!0}))};N.Controls=d,N.Grid=b;var x=N;export{P as DatePicker,x as DatePickerNext,T as getActiveStartDate};
1
+ import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/slicedToArray";import{jsxs as t,Fragment as a,jsx as n}from"react/jsx-runtime";import{useRef as i,useState as o,useCallback as l,useMemo as s,useEffect as m}from"react";import c from"moment";import{Popover as u}from"../Popover/Popover.js";import{CalendarControls as d}from"./CalendarControls/CalendarControls.js";import{TimePicker as f}from"./TimePicker/TimePicker.js";import{Input as v}from"./Input/Input.js";import{applyOffsetSeconds as p,getMinDate as D,getMaxDate as y}from"./utils.js";import{CalendarGrid as b}from"./CalendarGrid/CalendarGrid.js";import h from"./DatePicker.scss.js";function g(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function O(r){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?g(Object(a),!0).forEach((function(t){e(r,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}))}return r}var T=function(e){var r=e.value,t=e.minDate,a=e.maxDate,n=(Array.isArray(r)?r[0]:r)||new Date;return t&&n.getTime()<t.getTime()?t:a&&n.getTime()>a.getTime()?a:n},j=function(e){var g=e.label,O=e.value,j=e.maxDate,C=e.minDate,P=e.className,N=e.testId,x=e.onChange,w=e.readOnly,A=e.type,E=void 0===A?"date":A,k=e.range,G=e.getTileClassName,I=e.getTileDisabled,S=e.placeholder,z=e.format,H=e.focusOnClear,V=void 0===H||H,q=e.labelPlacement,B=void 0===q?"top":q,F=e.size,J=void 0===F?"small":F,K=e.elementsClassNames,L=e.isNext,M=e.clearable,Q=void 0===M||M,R=i(null),U=i(null),W=o(!1),X=r(W,2),Y=X[0],Z=X[1],$=o(T({maxDate:j,minDate:C,value:O})),_=r($,2),ee=_[0],re=_[1],te=o(),ae=r(te,2),ne=ae[0],ie=ae[1],oe=o("startDate"),le=r(oe,2),se=le[0],me=le[1],ce=o(),ue=r(ce,2),de=ue[0],fe=ue[1],ve=o(),pe=r(ve,2),De=pe[0],ye=pe[1],be="dateTime"===E&&!!k,he=o(),ge=r(he,2),Oe=ge[0],Te=ge[1],je=l((function(){ie(void 0),me("startDate"),fe(void 0),ye(void 0)}),[]),Ce=l((function(){return Z(!0)}),[]),Pe=l((function(){je(),Z(!1)}),[je]),Ne=s((function(){return k?void 0:ne||O}),[k,ne,O]),xe=s((function(){return!be||"startTime"!==se&&"endTime"!==se?Ne&&!Array.isArray(Ne)?Ne:void 0:De||de}),[be,se,Ne,De,de]),we=l((function(e,r){var t;"startDate"===r||"startTime"===r?(me("startTime"),fe(e),ye(void 0)):"endDate"!==r&&"endTime"!==r||(me("endTime"),ye(e)),null===(t=U.current)||void 0===t||t.flash()}),[]),Ae=l((function(e,r,t,a){if("endDate"===t){var n=c(e).endOf("month"===a?"month":"day").toDate(),i=D(n,r),o=y(n,r);return i&&o?[i,o]:void 0}"startDate"===t&&(fe(e),ye(void 0),me("endDate"))}),[]),Ee=l((function(e){if(Array.isArray(e)||!e)throw new Error("Value is array or `null`, but should not be");if(be)we(e,se);else if("dateTime"===E){var r;ie(e),null===(r=U.current)||void 0===r||r.flash()}else if(k){var t=Ae(e,de,se,E);t&&(null==x||x(t),Pe())}else!k&&e&&(null==x||x(e),Pe())}),[be,E,k,we,se,Ae,de,x,Pe]),ke=l((function(e){if(be){if("startTime"===se)me("endDate"),fe((function(r){return r&&p(r,e)}));else if("endTime"===se&&De&&de){var r=p(De,e);null==x||x(de<r?[de,r]:[r,de]),Pe()}}else if(Ne&&!Array.isArray(Ne)){var t=p(Ne,e);null==x||x(t),Pe()}}),[be,Ne,se,De,de,x,Pe]);return m((function(){if(Y){var e=Array.isArray(O);re(T({maxDate:j,minDate:C,value:O})),k&&e&&O[0]&&O[1]&&(fe(O[0]),ye(O[1]),me("startDate"))}}),[Y,O,C,j,k]),t(a,{children:[n(v,{open:Ce,isOpen:Y,className:P,testId:N,value:O,label:g,placeholder:S,ref:R,format:z,range:k,type:E,setValue:x,readOnly:w,focusOnClear:V,labelPlacement:B,size:J,elementsClassNames:K,isNext:L,clearable:Q}),ee&&t(u,{anchorEl:R.current,onClose:Pe,open:Y,className:h.popover,children:[t("div",{children:[n(d,{date:ee,setDate:re,minDate:C,maxDate:j,view:"month"===E?"year":"month",className:h.controls}),n(b,{onChange:Ee,activeStartDate:ee,view:"month"===E?"year":"month",maxDate:j,minDate:C,tileDisabled:I,selected:Ne,rangeStartDate:de,rangeEndDate:De,rangeHoveredDate:"endDate"===se?Oe:void 0,setHoveredDate:Te,getTileClassName:G,className:h.grid})]}),"dateTime"===E&&n(f,{value:xe,onChange:ke,ref:U})]})]})},C=function(e){return j(O(O({},e),{},{isNext:!1}))};C.Controls=d,C.Grid=b;var P=C,N=function(e){return j(O(O({},e),{},{isNext:!0}))};N.Controls=d,N.Grid=b;var x=N;export{P as DatePicker,x as DatePickerNext,T as getActiveStartDate};
2
2
  //# sourceMappingURL=DatePicker.js.map
@@ -15,6 +15,7 @@ export type InputProps = {
15
15
  labelPlacement?: TextInputNextProps['labelPlacement'];
16
16
  size?: TextInputNextProps['size'];
17
17
  elementsClassNames?: TextInputNextProps['elementsClassNames'];
18
+ clearable?: TextInputNextProps['clearable'];
18
19
  className?: string;
19
20
  testId?: string;
20
21
  isOpen: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/DatePicker/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAyB,MAAM,OAAO,CAAC;AAGrE,OAAO,EAAiB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAExE,OAAO,EAEL,cAAc,EAKf,MAAM,UAAU,CAAC;AAIlB,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,SAAS,KAAK,IAAI,CAAC;IAC5D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,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gBAAgB,CAAC,CAAC;IACtD,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAClC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;IAC9D,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAE5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAcF,eAAO,MAAM,KAAK,uGAwHjB,CAAC"}
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/helpers/toConsumableArray";import{jsx as c}from"react/jsx-runtime";import{forwardRef as n,useState as i,useCallback as t}from"react";import r from"moment";import{TextInputNext as m}from"../../TextInputNext/TextInputNext.js";import{TextInput as e}from"../../TextInput/TextInput.js";import{getMinDate as u,getMaxDate as p,FallbackInputFormats as l,getDefaultFormat as a}from"../utils.js";import{CalendarThreeIcon as I}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/SearchOne.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import"../../../icons/customIcons/icons/Pad.js";import"../../../icons/customIcons/icons/DrilloutUnit.js";import"../../../icons/customIcons/icons/FracFleet.js";import"../../../icons/customIcons/icons/Global.js";import"../../../icons/customIcons/icons/Program.js";import"../../../icons/customIcons/icons/Rig.js";import"../../../icons/customIcons/icons/Well.js";import"../../../icons/customIcons/icons/Gap.js";import"../../../icons/customIcons/icons/Pin.js";import"../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../icons/customIcons/icons/AttentionFilled.js";import"../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../icons/customIcons/icons/Archive.js";import"../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../icons/customIcons/icons/Unarchive.js";import"../../../icons/customIcons/icons/Archived.js";import"../../../icons/customIcons/icons/InterventionUnit.js";import"../../../icons/customIcons/icons/CloudDelete.js";import"../../../icons/customIcons/icons/Lasso.js";import"../../../icons/customIcons/icons/Radius.js";import"../../../icons/customIcons/icons/ErrorOps.js";import"../../../icons/customIcons/icons/DataTypeOps.js";import"../../../icons/customIcons/icons/FalsePositiveOps.js";import"../../../icons/customIcons/icons/CalibrationOps.js";import"../../../icons/customIcons/icons/CriticalOps.js";import"../../../icons/customIcons/icons/Company.js";import"../../../icons/customIcons/icons/ArchiveOne.js";import"../../../icons/customIcons/icons/ParseBotFusion.js";import"../../../icons/customIcons/icons/Connect.js";import"../../../icons/customIcons/icons/PuzzleOne.js";import"../../../icons/customIcons/icons/Feed.js";import"../../../icons/customIcons/icons/Prompt.js";import"../../../icons/customIcons/icons/Companies.js";import"../../../icons/customIcons/icons/ClipboardAi.js";import"../../../icons/customIcons/icons/Key.js";import"../../../icons/customIcons/icons/AtSignCrossed.js";import"../../../icons/customIcons/icons/MappingManual.js";import"../../../icons/customIcons/icons/Mapping.js";import"../../../icons/customIcons/icons/Metrics.js";import"../../../icons/customIcons/icons/Drops.js";import"../../../icons/customIcons/icons/ClipboardSearch.js";import"../../../icons/customIcons/icons/Template.js";import"../../../icons/customIcons/icons/ClipboardMetrics.js";import"../../../icons/customIcons/icons/ClipboardBuilder.js";import"../../../icons/customIcons/icons/UnitConversion.js";import"../../../icons/customIcons/icons/NPT.js";import"../../../icons/customIcons/icons/GuidedFrac.js";var j=function(o,s){return(Array.isArray(o)?o:[o]).filter((function(o){return!!o})).map((function(o){return r(o).format(s)})).join(" - ")},d=function(o,c,n){var i=r(o,[c].concat(s(l[n]||[])),!0);return i.isValid()?i.toDate():void 0},f=n((function(s,n){var r=s.value,l=s.label,f=s.open,C=s.className,h=s.testId,b=s.format,v=s.placeholder,O=s.range,F=s.readOnly,x=s.type,A=s.setValue,y=s.focusOnClear,P=s.labelPlacement,g=s.size,N=s.elementsClassNames,k=s.isNext,M=s.isOpen,T=b||a(x,O),D=i(j(r,T)),R=o(D,2),S=R[0],z=R[1],B=i(r),E=o(B,2),G=E[0],U=E[1];G!==r&&(z(j(r,T)),U(r));var L=t((function(o){if(""===o.trim())return null==A||A(void 0),void z("");if(z(o),O){var s=o.split(/[-–—]/).map((function(o){return d(o.trim(),T,x)})).filter((function(o){return!!o}));if(2===s.length){var c=u(s[0],s[1]),n=p(s[0],s[1]);c&&n&&(null==A||A([c,n]))}}else{var i=d(o,T,x);i&&(null==A||A(i))}}),[T,O,A,x]),q=t((function(){z(j(r,T))}),[r,T]),V=t((function(){null==A||A(void 0),z("")}),[A]);return k?c(m,{value:S,inputContainerRef:n,label:l,onFocus:f,onBlur:q,className:C,testId:h,suffix:c(I,{}),placeholder:v,onChange:L,readOnly:F,clearable:!0,focusOnClear:y,labelPlacement:P,size:g,elementsClassNames:N}):c(e,{value:S,ref:n,label:l,onFocus:f,onBlur:q,forceLabelShrink:M,className:C,testId:h,suffix:c(I,{}),placeholder:v,onChange:L,readOnly:F,onClear:V,focusOnClear:y})}));export{f as Input};
1
+ import o from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/helpers/toConsumableArray";import{jsx as c}from"react/jsx-runtime";import{forwardRef as n,useState as i,useCallback as t}from"react";import r from"moment";import{TextInputNext as m}from"../../TextInputNext/TextInputNext.js";import{TextInput as e}from"../../TextInput/TextInput.js";import{getMinDate as u,getMaxDate as p,FallbackInputFormats as l,getDefaultFormat as a}from"../utils.js";import{CalendarThreeIcon as I}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/SearchOne.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import"../../../icons/customIcons/icons/Pad.js";import"../../../icons/customIcons/icons/DrilloutUnit.js";import"../../../icons/customIcons/icons/FracFleet.js";import"../../../icons/customIcons/icons/Global.js";import"../../../icons/customIcons/icons/Program.js";import"../../../icons/customIcons/icons/Rig.js";import"../../../icons/customIcons/icons/Well.js";import"../../../icons/customIcons/icons/Gap.js";import"../../../icons/customIcons/icons/Pin.js";import"../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../icons/customIcons/icons/AttentionFilled.js";import"../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../icons/customIcons/icons/Archive.js";import"../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../icons/customIcons/icons/Unarchive.js";import"../../../icons/customIcons/icons/Archived.js";import"../../../icons/customIcons/icons/InterventionUnit.js";import"../../../icons/customIcons/icons/CloudDelete.js";import"../../../icons/customIcons/icons/Lasso.js";import"../../../icons/customIcons/icons/Radius.js";import"../../../icons/customIcons/icons/ErrorOps.js";import"../../../icons/customIcons/icons/DataTypeOps.js";import"../../../icons/customIcons/icons/FalsePositiveOps.js";import"../../../icons/customIcons/icons/CalibrationOps.js";import"../../../icons/customIcons/icons/CriticalOps.js";import"../../../icons/customIcons/icons/Company.js";import"../../../icons/customIcons/icons/ArchiveOne.js";import"../../../icons/customIcons/icons/ParseBotFusion.js";import"../../../icons/customIcons/icons/Connect.js";import"../../../icons/customIcons/icons/PuzzleOne.js";import"../../../icons/customIcons/icons/Feed.js";import"../../../icons/customIcons/icons/Prompt.js";import"../../../icons/customIcons/icons/Companies.js";import"../../../icons/customIcons/icons/ClipboardAi.js";import"../../../icons/customIcons/icons/Key.js";import"../../../icons/customIcons/icons/AtSignCrossed.js";import"../../../icons/customIcons/icons/MappingManual.js";import"../../../icons/customIcons/icons/Mapping.js";import"../../../icons/customIcons/icons/Metrics.js";import"../../../icons/customIcons/icons/Drops.js";import"../../../icons/customIcons/icons/ClipboardSearch.js";import"../../../icons/customIcons/icons/Template.js";import"../../../icons/customIcons/icons/ClipboardMetrics.js";import"../../../icons/customIcons/icons/ClipboardBuilder.js";import"../../../icons/customIcons/icons/UnitConversion.js";import"../../../icons/customIcons/icons/NPT.js";import"../../../icons/customIcons/icons/GuidedFrac.js";var j=function(o,s){return(Array.isArray(o)?o:[o]).filter((function(o){return!!o})).map((function(o){return r(o).format(s)})).join(" - ")},d=function(o,c,n){var i=r(o,[c].concat(s(l[n]||[])),!0);return i.isValid()?i.toDate():void 0},f=n((function(s,n){var r=s.value,l=s.label,f=s.open,C=s.className,h=s.testId,b=s.format,v=s.placeholder,O=s.range,F=s.readOnly,x=s.type,A=s.setValue,y=s.focusOnClear,P=s.labelPlacement,g=s.size,N=s.elementsClassNames,k=s.isNext,M=s.isOpen,T=s.clearable,D=b||a(x,O),R=i(j(r,D)),S=o(R,2),z=S[0],B=S[1],E=i(r),G=o(E,2),U=G[0],L=G[1];U!==r&&(B(j(r,D)),L(r));var q=t((function(o){if(""===o.trim())return null==A||A(void 0),void B("");if(B(o),O){var s=o.split(/[-–—]/).map((function(o){return d(o.trim(),D,x)})).filter((function(o){return!!o}));if(2===s.length){var c=u(s[0],s[1]),n=p(s[0],s[1]);c&&n&&(null==A||A([c,n]))}}else{var i=d(o,D,x);i&&(null==A||A(i))}}),[D,O,A,x]),V=t((function(){B(j(r,D))}),[r,D]),W=t((function(){null==A||A(void 0),B("")}),[A]);return k?c(m,{value:z,inputContainerRef:n,label:l,onFocus:f,onBlur:V,className:C,testId:h,suffix:c(I,{}),placeholder:v,onChange:q,readOnly:F,clearable:T,focusOnClear:y,labelPlacement:P,size:g,elementsClassNames:N}):c(e,{value:z,ref:n,label:l,onFocus:f,onBlur:V,forceLabelShrink:M,className:C,testId:h,suffix:c(I,{}),placeholder:v,onChange:q,readOnly:F,onClear:T?W:void 0,focusOnClear:y})}));export{f as Input};
2
2
  //# sourceMappingURL=Input.js.map
@@ -8,6 +8,7 @@ export function getHighchartsV10(): {
8
8
  addXrange: typeof addXrange;
9
9
  addDumbbell: typeof addDumbbell;
10
10
  addPatternFill: typeof addPatternFill;
11
+ addAnnotations: typeof addAnnotations;
11
12
  HighchartsMulticolorSeries: any;
12
13
  };
13
14
  import Highcharts from 'highcharts';
@@ -19,4 +20,5 @@ import addExporting from 'highcharts/modules/exporting';
19
20
  import addXrange from 'highcharts/modules/xrange';
20
21
  import addDumbbell from 'highcharts/modules/dumbbell';
21
22
  import addPatternFill from 'highcharts/modules/pattern-fill';
23
+ import addAnnotations from 'highcharts/modules/annotations';
22
24
  //# sourceMappingURL=getHighchartsV10.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getHighchartsV10.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/getHighchartsV10.js"],"names":[],"mappings":"AAaA;;;;;;;;;;;EAaC;uBAxBsB,YAAY;2BACR,4BAA4B;0BAC7B,gCAAgC;uBACnC,4BAA4B;qBAC9B,0BAA0B;yBACtB,8BAA8B;sBACjC,2BAA2B;wBACzB,6BAA6B;2BAC1B,iCAAiC"}
1
+ {"version":3,"file":"getHighchartsV10.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/getHighchartsV10.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;;EAcC;uBA1BsB,YAAY;2BACR,4BAA4B;0BAC7B,gCAAgC;uBACnC,4BAA4B;qBAC9B,0BAA0B;yBACtB,8BAA8B;sBACjC,2BAA2B;wBACzB,6BAA6B;2BAC1B,iCAAiC;2BACjC,gCAAgC"}
@@ -1,2 +1,2 @@
1
- import r from"highcharts";import o from"highcharts/highcharts-more";import h from"highcharts/modules/solid-gauge";import t from"highcharts/modules/heatmap";import i from"highcharts/modules/boost";import m from"highcharts/modules/exporting";import a from"highcharts/modules/xrange";import s from"highcharts/modules/dumbbell";import e from"highcharts/modules/pattern-fill";import d from"highcharts-multicolor-series";function g(){return{Highcharts:r,highchartsMore:o,addSolidGauge:h,addHeatmap:t,addBoost:i,addExporting:m,addXrange:a,addDumbbell:s,addPatternFill:e,HighchartsMulticolorSeries:d}}export{g as getHighchartsV10};
1
+ import r from"highcharts";import o from"highcharts/highcharts-more";import t from"highcharts/modules/solid-gauge";import h from"highcharts/modules/heatmap";import i from"highcharts/modules/boost";import a from"highcharts/modules/exporting";import m from"highcharts/modules/xrange";import s from"highcharts/modules/dumbbell";import d from"highcharts/modules/pattern-fill";import e from"highcharts/modules/annotations";import g from"highcharts-multicolor-series";function l(){return{Highcharts:r,highchartsMore:o,addSolidGauge:t,addHeatmap:h,addBoost:i,addExporting:a,addXrange:m,addDumbbell:s,addPatternFill:d,addAnnotations:e,HighchartsMulticolorSeries:g}}export{l as getHighchartsV10};
2
2
  //# sourceMappingURL=getHighchartsV10.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getHighchartsV10.js","sources":["../../../src/config/highcharts/getHighchartsV10.js"],"sourcesContent":["// [HIGHCHARTS-10-MIGRATION-TAG]: Find and delete/clean all places like this once the migration ends\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 HighchartsMulticolorSeries from 'highcharts-multicolor-series';\n\nexport function getHighchartsV10() {\n return {\n Highcharts,\n highchartsMore,\n addSolidGauge,\n addHeatmap,\n addBoost,\n addExporting,\n addXrange,\n addDumbbell,\n addPatternFill,\n HighchartsMulticolorSeries,\n };\n}\n"],"names":["getHighchartsV10","Highcharts","highchartsMore","addSolidGauge","addHeatmap","addBoost","addExporting","addXrange","addDumbbell","addPatternFill","HighchartsMulticolorSeries"],"mappings":"+ZAaO,SAASA,IACd,MAAO,CACLC,WAAAA,EACAC,eAAAA,EACAC,cAAAA,EACAC,WAAAA,EACAC,SAAAA,EACAC,aAAAA,EACAC,UAAAA,EACAC,YAAAA,EACAC,eAAAA,EACAC,2BAAAA,EAEJ"}
1
+ {"version":3,"file":"getHighchartsV10.js","sources":["../../../src/config/highcharts/getHighchartsV10.js"],"sourcesContent":["// [HIGHCHARTS-10-MIGRATION-TAG]: Find and delete/clean all places like this once the migration ends\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';\n\nexport function getHighchartsV10() {\n return {\n Highcharts,\n highchartsMore,\n addSolidGauge,\n addHeatmap,\n addBoost,\n addExporting,\n addXrange,\n addDumbbell,\n addPatternFill,\n addAnnotations,\n HighchartsMulticolorSeries,\n };\n}\n"],"names":["getHighchartsV10","Highcharts","highchartsMore","addSolidGauge","addHeatmap","addBoost","addExporting","addXrange","addDumbbell","addPatternFill","addAnnotations","HighchartsMulticolorSeries"],"mappings":"6cAcO,SAASA,IACd,MAAO,CACLC,WAAAA,EACAC,eAAAA,EACAC,cAAAA,EACAC,WAAAA,EACAC,SAAAA,EACAC,aAAAA,EACAC,UAAAA,EACAC,YAAAA,EACAC,eAAAA,EACAC,eAAAA,EACAC,2BAAAA,EAEJ"}
@@ -8,6 +8,7 @@ export function getHighchartsV8(): {
8
8
  addXrange: typeof addXrange;
9
9
  addDumbbell: typeof addDumbbell;
10
10
  addPatternFill: typeof addPatternFill;
11
+ addAnnotations: typeof addAnnotations;
11
12
  HighchartsMulticolorSeries: any;
12
13
  };
13
14
  import Highcharts from 'highcharts-v8';
@@ -19,4 +20,5 @@ import addExporting from 'highcharts-v8/modules/exporting';
19
20
  import addXrange from 'highcharts-v8/modules/xrange';
20
21
  import addDumbbell from 'highcharts-v8/modules/dumbbell';
21
22
  import addPatternFill from 'highcharts-v8/modules/pattern-fill';
23
+ import addAnnotations from 'highcharts-v8/modules/annotations';
22
24
  //# sourceMappingURL=getHighchartsV8.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getHighchartsV8.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/getHighchartsV8.js"],"names":[],"mappings":"AAaA;;;;;;;;;;;EAaC;uBAxBsB,eAAe;2BACX,+BAA+B;0BAChC,mCAAmC;uBACtC,+BAA+B;qBACjC,6BAA6B;yBACzB,iCAAiC;sBACpC,8BAA8B;wBAC5B,gCAAgC;2BAC7B,oCAAoC"}
1
+ {"version":3,"file":"getHighchartsV8.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/getHighchartsV8.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;;EAcC;uBA1BsB,eAAe;2BACX,+BAA+B;0BAChC,mCAAmC;uBACtC,+BAA+B;qBACjC,6BAA6B;yBACzB,iCAAiC;sBACpC,8BAA8B;wBAC5B,gCAAgC;2BAC7B,oCAAoC;2BACpC,mCAAmC"}
@@ -1,2 +1,2 @@
1
- import r from"highcharts-v8";import o from"highcharts-v8/highcharts-more";import h from"highcharts-v8/modules/solid-gauge";import t from"highcharts-v8/modules/heatmap";import i from"highcharts-v8/modules/boost";import m from"highcharts-v8/modules/exporting";import a from"highcharts-v8/modules/xrange";import s from"highcharts-v8/modules/dumbbell";import e from"highcharts-v8/modules/pattern-fill";import d from"highcharts-multicolor-series-v8";function g(){return{Highcharts:r,highchartsMore:o,addSolidGauge:h,addHeatmap:t,addBoost:i,addExporting:m,addXrange:a,addDumbbell:s,addPatternFill:e,HighchartsMulticolorSeries:d}}export{g as getHighchartsV8};
1
+ import r from"highcharts-v8";import o from"highcharts-v8/highcharts-more";import t from"highcharts-v8/modules/solid-gauge";import h from"highcharts-v8/modules/heatmap";import i from"highcharts-v8/modules/boost";import a from"highcharts-v8/modules/exporting";import m from"highcharts-v8/modules/xrange";import s from"highcharts-v8/modules/dumbbell";import d from"highcharts-v8/modules/pattern-fill";import e from"highcharts-v8/modules/annotations";import g from"highcharts-multicolor-series-v8";function l(){return{Highcharts:r,highchartsMore:o,addSolidGauge:t,addHeatmap:h,addBoost:i,addExporting:a,addXrange:m,addDumbbell:s,addPatternFill:d,addAnnotations:e,HighchartsMulticolorSeries:g}}export{l as getHighchartsV8};
2
2
  //# sourceMappingURL=getHighchartsV8.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getHighchartsV8.js","sources":["../../../src/config/highcharts/getHighchartsV8.js"],"sourcesContent":["// [HIGHCHARTS-10-MIGRATION-TAG]: Find and delete/clean all places like this once the migration ends\n\nimport Highcharts from 'highcharts-v8';\nimport highchartsMore from 'highcharts-v8/highcharts-more';\nimport addSolidGauge from 'highcharts-v8/modules/solid-gauge';\nimport addHeatmap from 'highcharts-v8/modules/heatmap';\nimport addBoost from 'highcharts-v8/modules/boost';\nimport addExporting from 'highcharts-v8/modules/exporting';\nimport addXrange from 'highcharts-v8/modules/xrange';\nimport addDumbbell from 'highcharts-v8/modules/dumbbell';\nimport addPatternFill from 'highcharts-v8/modules/pattern-fill';\nimport HighchartsMulticolorSeries from 'highcharts-multicolor-series-v8';\n\nexport function getHighchartsV8() {\n return {\n Highcharts,\n highchartsMore,\n addSolidGauge,\n addHeatmap,\n addBoost,\n addExporting,\n addXrange,\n addDumbbell,\n addPatternFill,\n HighchartsMulticolorSeries,\n };\n}\n"],"names":["getHighchartsV8","Highcharts","highchartsMore","addSolidGauge","addHeatmap","addBoost","addExporting","addXrange","addDumbbell","addPatternFill","HighchartsMulticolorSeries"],"mappings":"6bAaO,SAASA,IACd,MAAO,CACLC,WAAAA,EACAC,eAAAA,EACAC,cAAAA,EACAC,WAAAA,EACAC,SAAAA,EACAC,aAAAA,EACAC,UAAAA,EACAC,YAAAA,EACAC,eAAAA,EACAC,2BAAAA,EAEJ"}
1
+ {"version":3,"file":"getHighchartsV8.js","sources":["../../../src/config/highcharts/getHighchartsV8.js"],"sourcesContent":["// [HIGHCHARTS-10-MIGRATION-TAG]: Find and delete/clean all places like this once the migration ends\n\nimport Highcharts from 'highcharts-v8';\nimport highchartsMore from 'highcharts-v8/highcharts-more';\nimport addSolidGauge from 'highcharts-v8/modules/solid-gauge';\nimport addHeatmap from 'highcharts-v8/modules/heatmap';\nimport addBoost from 'highcharts-v8/modules/boost';\nimport addExporting from 'highcharts-v8/modules/exporting';\nimport addXrange from 'highcharts-v8/modules/xrange';\nimport addDumbbell from 'highcharts-v8/modules/dumbbell';\nimport addPatternFill from 'highcharts-v8/modules/pattern-fill';\nimport addAnnotations from 'highcharts-v8/modules/annotations';\nimport HighchartsMulticolorSeries from 'highcharts-multicolor-series-v8';\n\nexport function getHighchartsV8() {\n return {\n Highcharts,\n highchartsMore,\n addSolidGauge,\n addHeatmap,\n addBoost,\n addExporting,\n addXrange,\n addDumbbell,\n addPatternFill,\n addAnnotations,\n HighchartsMulticolorSeries,\n };\n}\n"],"names":["getHighchartsV8","Highcharts","highchartsMore","addSolidGauge","addHeatmap","addBoost","addExporting","addXrange","addDumbbell","addPatternFill","addAnnotations","HighchartsMulticolorSeries"],"mappings":"8eAcO,SAASA,IACd,MAAO,CACLC,WAAAA,EACAC,eAAAA,EACAC,cAAAA,EACAC,WAAAA,EACAC,SAAAA,EACAC,aAAAA,EACAC,UAAAA,EACAC,YAAAA,EACAC,eAAAA,EACAC,eAAAA,EACAC,2BAAAA,EAEJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"highcharts.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/highcharts.js"],"names":[],"mappings":"AAiCA;;kBAwEC"}
1
+ {"version":3,"file":"highcharts.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/highcharts.js"],"names":[],"mappings":"AAiCA;;kBA+EC"}
@@ -1,2 +1,2 @@
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{HIGHCHARTS_V8_VERSION as i,HIGHCHARTS_V10_VERSION as n}from"./constants.js";import a from"./highcharts-contour.js";import{getHighchartsV8 as s}from"./getHighchartsV8.js";import{getHighchartsV10 as c}from"./getHighchartsV10.js";import h from"dompurify";var p=function r(o){return"string"==typeof o?h.sanitize(o):("object"===e(o)&&null!==o&&Object.entries(o).forEach((function(i){var n=t(i,2),a=n[0],s=n[1];"string"==typeof s?o[a]=h.sanitize(o[a]):Array.isArray(s)?s.forEach((function(t,e){o[a][e]=r(t)})):"object"===e(s)&&(o[a]=r(s))})),o)};function l(){return d.apply(this,arguments)}function d(){return d=r(o.mark((function r(){var t,e,h,l,d,f,m,u,g,b,v,y,j,w,H,A,T=arguments;return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=T.length>0&&void 0!==T[0]?T[0]:{},e=t.version,l=(h=void 0===e?n:e)===i?s:c,[i,n].includes(h)){r.next=4;break}throw new Error("Invalid highcharts version: ".concat(h));case 4:d=l(),f=d.Highcharts,m=d.highchartsMore,u=d.HighchartsMulticolorSeries,g=d.addSolidGauge,b=d.addHeatmap,v=d.addBoost,y=d.addExporting,j=d.addXrange,w=d.addDumbbell,H=d.addPatternFill,window.Highcharts=f,f.AST&&(f.AST.bypassHTMLFiltering=!0),u(f),m(f),g(f),b(f),v(f),y(f),j(f),w(f),H(f),a(f),A=f.chart,f.chart=function(r){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length,o=new Array(e>2?e-2:0),i=2;i<e;i++)o[i-2]=arguments[i];return A.apply(void 0,[r,p(t)].concat(o))},f.setOptions({plotOptions:{series:{states:{inactive:{enabled:!1}}}}});case 20:case"end":return r.stop()}}),r)}))),d.apply(this,arguments)}export{l 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{HIGHCHARTS_V8_VERSION as i,HIGHCHARTS_V10_VERSION as a}from"./constants.js";import n from"./highcharts-contour.js";import{getHighchartsV8 as s}from"./getHighchartsV8.js";import{getHighchartsV10 as c}from"./getHighchartsV10.js";import l from"dompurify";var h=function r(o){return"string"==typeof o?l.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]=l.sanitize(o[n]):Array.isArray(s)?s.forEach((function(t,e){o[n][e]=r(t)})):"object"===e(s)&&(o[n]=r(s))})),o)};function p(){return u.apply(this,arguments)}function u(){return u=r(o.mark((function r(){var t,e,l,p,u,d,f,m,g,b,v,y,A,w,T,j,H,S=arguments;return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=S.length>0&&void 0!==S[0]?S[0]:{},e=t.version,p=(l=void 0===e?a:e)===i?s:c,[i,a].includes(l)){r.next=4;break}throw new Error("Invalid highcharts version: ".concat(l));case 4:u=p(),d=u.Highcharts,f=u.highchartsMore,m=u.HighchartsMulticolorSeries,g=u.addSolidGauge,b=u.addHeatmap,v=u.addBoost,y=u.addExporting,A=u.addXrange,w=u.addDumbbell,T=u.addPatternFill,j=u.addAnnotations,window.Highcharts=d,d.AST&&(d.AST.bypassHTMLFiltering=!0,d.AST.allowedAttributes.push("viewBox"),d.AST.allowedAttributes.push("fill-rule"),d.AST.allowedAttributes.push("clip-rule")),m(d),f(d),g(d),b(d),v(d),y(d),A(d),w(d),T(d),n(d),j(d),H=d.chart,d.chart=function(r){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length,o=new Array(e>2?e-2:0),i=2;i<e;i++)o[i-2]=arguments[i];return H.apply(void 0,[r,h(t)].concat(o))},d.setOptions({plotOptions:{series:{states:{inactive:{enabled:!1}}}}});case 21:case"end":return r.stop()}}),r)}))),u.apply(this,arguments)}export{p 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 { getHighchartsV8 } from './getHighchartsV8';\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\nexport async function initHighcharts({ version = HIGHCHARTS_V10_VERSION } = {}) {\n const highchartsGetter = version === HIGHCHARTS_V8_VERSION ? getHighchartsV8 : getHighchartsV10;\n\n if (![HIGHCHARTS_V8_VERSION, HIGHCHARTS_V10_VERSION].includes(version)) {\n throw new Error(`Invalid highcharts version: ${version}`);\n }\n\n const {\n Highcharts,\n highchartsMore,\n HighchartsMulticolorSeries,\n addSolidGauge,\n addHeatmap,\n addBoost,\n addExporting,\n addXrange,\n addDumbbell,\n addPatternFill,\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\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\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 */\n Highcharts.setOptions({\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","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","originalChartFn","_args","wrap","_context","prev","next","length","undefined","HIGHCHARTS_V10_VERSION","HIGHCHARTS_V8_VERSION","getHighchartsV8","getHighchartsV10","includes","Error","window","AST","bypassHTMLFiltering","addContour","chart","container","options","_len","restParams","_key","setOptions","plotOptions","series","states","inactive","enabled","stop"],"mappings":"qcAYA,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,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M,EAAaN,GACbO,EAAUP,GACVQ,EAAYR,GACZS,EAAeT,GACf2B,EAAW3B,GAILU,EAAkBV,EAAW4B,MACnC5B,EAAW4B,MAAQ,SAAUC,GAAuB,IAAiB,IAA7BC,EAAUxC,UAAA0B,OAAA,QAAAC,IAAA3B,UAAA,GAAAA,UAAA,GAAA,CAAA,EAAEyC,EAAAzC,UAAA0B,OAAKgB,EAAU,IAAAlD,MAAAiD,EAAA,EAAAA,EAAA,EAAA,GAAAE,EAAA,EAAAA,EAAAF,EAAAE,IAAVD,EAAUC,EAAA,GAAA3C,UAAA2C,GACjE,OAAOvB,EAAgBmB,WAAAA,EAAAA,CAAAA,EAAW5D,EAAiB6D,IAAaE,OAAAA,KAUlEhC,EAAWkC,WAAW,CACpBC,YAAa,CACXC,OAAQ,CACNC,OAAQ,CACNC,SAAU,CACRC,SAAS,QAKhB,KAAA,GAAA,IAAA,MAAA,OAAA1B,EAAA2B,OAAA,GAAA9C,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\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 { getHighchartsV8 } from './getHighchartsV8';\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\nexport async function initHighcharts({ version = HIGHCHARTS_V10_VERSION } = {}) {\n const highchartsGetter = version === HIGHCHARTS_V8_VERSION ? getHighchartsV8 : getHighchartsV10;\n\n if (![HIGHCHARTS_V8_VERSION, HIGHCHARTS_V10_VERSION].includes(version)) {\n throw new Error(`Invalid highcharts version: ${version}`);\n }\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 */\n Highcharts.setOptions({\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","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_V10_VERSION","HIGHCHARTS_V8_VERSION","getHighchartsV8","getHighchartsV10","includes","Error","window","AST","bypassHTMLFiltering","allowedAttributes","push","addContour","chart","container","options","_len","restParams","_key","setOptions","plotOptions","series","states","inactive","enabled","stop"],"mappings":"qcAYA,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,EAAi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