@corva/ui 3.80.0-1 → 3.80.0-11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (682) hide show
  1. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  2. package/cjs-bundle/components/AddComment/Popover.js.map +1 -1
  3. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  4. package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
  5. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  6. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js.map +1 -1
  7. package/cjs-bundle/components/Annotations/components/AnnotationsList/index.js +1 -1
  8. package/cjs-bundle/components/Annotations/components/AnnotationsList/index.js.map +1 -1
  9. package/cjs-bundle/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
  10. package/cjs-bundle/components/AppVersionsSelect/AppVersionsSelect.js.map +1 -1
  11. package/cjs-bundle/components/AssetsMultipleSelector/AssetsMultipleSelector.js +1 -1
  12. package/cjs-bundle/components/AssetsMultipleSelector/AssetsMultipleSelector.js.map +1 -1
  13. package/cjs-bundle/components/Attachment/index.js +1 -1
  14. package/cjs-bundle/components/Attachment/index.js.map +1 -1
  15. package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
  16. package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.js.map +1 -1
  17. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
  18. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/index.js.map +1 -1
  19. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  20. package/cjs-bundle/components/BICOffsetPickerDialog/index.js.map +1 -1
  21. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  22. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  23. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  24. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  25. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  26. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  27. package/cjs-bundle/components/Chart/effects/useChartModifier.js +1 -1
  28. package/cjs-bundle/components/Chart/effects/useChartModifier.js.map +1 -1
  29. package/cjs-bundle/components/CollapsableSidebar.js +1 -1
  30. package/cjs-bundle/components/CollapsableSidebar.js.map +1 -1
  31. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  32. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  33. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  34. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  35. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
  36. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js.map +1 -1
  37. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js +1 -1
  38. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js.map +1 -1
  39. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js +1 -1
  40. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js.map +1 -1
  41. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js +1 -1
  42. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js.map +1 -1
  43. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js +1 -1
  44. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js.map +1 -1
  45. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  46. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js.map +1 -1
  47. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  48. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
  49. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  50. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  51. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  52. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  53. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  54. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  55. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  56. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  57. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  58. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  59. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  60. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  61. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  62. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  63. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  64. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  65. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  66. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  67. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  68. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  69. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  70. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  71. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  72. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  73. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  74. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  75. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  76. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  77. package/cjs-bundle/components/EmojiIconButton.js +1 -1
  78. package/cjs-bundle/components/EmojiIconButton.js.map +1 -1
  79. package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
  80. package/cjs-bundle/components/FeedItem/FeedItem.js.map +1 -1
  81. package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -1
  82. package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js.map +1 -1
  83. package/cjs-bundle/components/FilesLoaderV2/utils.js +1 -1
  84. package/cjs-bundle/components/FilesLoaderV2/utils.js.map +1 -1
  85. package/cjs-bundle/components/GradientManager/GradientManager.js +1 -1
  86. package/cjs-bundle/components/GradientManager/GradientManager.js.map +1 -1
  87. package/cjs-bundle/components/GradientManager/GradientSelect.js +1 -1
  88. package/cjs-bundle/components/GradientManager/GradientSelect.js.map +1 -1
  89. package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js +1 -1
  90. package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js.map +1 -1
  91. package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  92. package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js.map +1 -1
  93. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  94. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  95. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
  96. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
  97. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  98. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  99. package/cjs-bundle/components/OffsetWellPickerV2/constants.js +1 -1
  100. package/cjs-bundle/components/OffsetWellPickerV2/constants.js.map +1 -1
  101. package/cjs-bundle/components/OffsetWellPickerV2/effects/index.js +1 -1
  102. package/cjs-bundle/components/OffsetWellPickerV2/effects/index.js.map +1 -1
  103. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
  104. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js.map +1 -1
  105. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  106. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  107. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js +1 -1
  108. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js.map +1 -1
  109. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js +1 -1
  110. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js.map +1 -1
  111. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  112. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  113. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  114. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  115. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  116. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  117. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  118. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  119. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  120. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  121. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  122. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  123. package/cjs-bundle/components/OffsetWellPickerV3/index.js +1 -1
  124. package/cjs-bundle/components/OffsetWellPickerV3/index.js.map +1 -1
  125. package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
  126. package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
  127. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
  128. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js.map +1 -1
  129. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js +1 -1
  130. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js.map +1 -1
  131. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  132. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  133. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  134. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  135. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
  136. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js.map +1 -1
  137. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
  138. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js.map +1 -1
  139. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +1 -1
  140. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js.map +1 -1
  141. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
  142. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js.map +1 -1
  143. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  144. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js.map +1 -1
  145. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js +1 -1
  146. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js.map +1 -1
  147. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js +1 -1
  148. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js.map +1 -1
  149. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapTooltipState.js +1 -1
  150. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapTooltipState.js.map +1 -1
  151. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useOffsetWellMapState.js +1 -1
  152. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useOffsetWellMapState.js.map +1 -1
  153. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSelectionToolOrchestration.js +1 -1
  154. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSelectionToolOrchestration.js.map +1 -1
  155. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/utils/well-markers-utils.js +1 -1
  156. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/utils/well-markers-utils.js.map +1 -1
  157. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  158. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  159. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js +1 -1
  160. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js.map +1 -1
  161. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js +1 -1
  162. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js.map +1 -1
  163. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js +1 -1
  164. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js.map +1 -1
  165. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
  166. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js.map +1 -1
  167. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  168. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js.map +1 -1
  169. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js +1 -1
  170. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js.map +1 -1
  171. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js +1 -1
  172. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js.map +1 -1
  173. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js +1 -1
  174. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js.map +1 -1
  175. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js +1 -1
  176. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js.map +1 -1
  177. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js +1 -1
  178. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js.map +1 -1
  179. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js +1 -1
  180. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js.map +1 -1
  181. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricCell/MetricCell.js +1 -1
  182. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricCell/MetricCell.js.map +1 -1
  183. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js +1 -1
  184. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js.map +1 -1
  185. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js +1 -1
  186. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js.map +1 -1
  187. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js +1 -1
  188. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js.map +1 -1
  189. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js +1 -1
  190. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js.map +1 -1
  191. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/hooks/useAdvancedSearchHandler.js +1 -1
  192. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/hooks/useAdvancedSearchHandler.js.map +1 -1
  193. package/cjs-bundle/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
  194. package/cjs-bundle/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js.map +1 -1
  195. package/cjs-bundle/components/OffsetWellPickerV5/constants.js +1 -1
  196. package/cjs-bundle/components/OffsetWellPickerV5/constants.js.map +1 -1
  197. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useCompanyMetricKey.js +1 -1
  198. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useCompanyMetricKey.js.map +1 -1
  199. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
  200. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js.map +1 -1
  201. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/wellTransformations.js +1 -1
  202. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/wellTransformations.js.map +1 -1
  203. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAutoSyncOffsetWells.js +1 -1
  204. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAutoSyncOffsetWells.js.map +1 -1
  205. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useCompanySelectorPermission.js +1 -1
  206. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useCompanySelectorPermission.js.map +1 -1
  207. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useIsAdmin.js +1 -1
  208. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useIsAdmin.js.map +1 -1
  209. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useLimitNotification.js +1 -1
  210. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useLimitNotification.js.map +1 -1
  211. package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.js +1 -1
  212. package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.js.map +1 -1
  213. package/cjs-bundle/components/OffsetWellPickerV5/utils/getCoordinatedWells.js +1 -1
  214. package/cjs-bundle/components/OffsetWellPickerV5/utils/getCoordinatedWells.js.map +1 -1
  215. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  216. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  217. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  218. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  219. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  220. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js.map +1 -1
  221. package/cjs-bundle/components/StatusBadge/api.js +1 -1
  222. package/cjs-bundle/components/StatusBadge/api.js.map +1 -1
  223. package/cjs-bundle/components/StatusBadge/components/DQAlertsTooltip.js +1 -1
  224. package/cjs-bundle/components/StatusBadge/components/DQAlertsTooltip.js.map +1 -1
  225. package/cjs-bundle/components/UserMention/index.js +1 -1
  226. package/cjs-bundle/components/UserMention/index.js.map +1 -1
  227. package/cjs-bundle/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
  228. package/cjs-bundle/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js.map +1 -1
  229. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqPopover.js +1 -1
  230. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqPopover.js.map +1 -1
  231. package/cjs-bundle/componentsV2/AppHeader/AppAssets/utils.js +1 -1
  232. package/cjs-bundle/componentsV2/AppHeader/AppAssets/utils.js.map +1 -1
  233. package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  234. package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.js.map +1 -1
  235. package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  236. package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.js.map +1 -1
  237. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js +1 -1
  238. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js.map +1 -1
  239. package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
  240. package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js.map +1 -1
  241. package/cjs-bundle/componentsV2/AppPanel/AppPanelDisplay.js +1 -1
  242. package/cjs-bundle/componentsV2/AppPanel/AppPanelDisplay.js.map +1 -1
  243. package/cjs-bundle/componentsV2/ColorPicker/ColorPicker.constants.js +2 -0
  244. package/cjs-bundle/componentsV2/ColorPicker/ColorPicker.constants.js.map +1 -0
  245. package/cjs-bundle/componentsV2/ColorPicker/ColorPicker.js +1 -1
  246. package/cjs-bundle/componentsV2/ColorPicker/ColorPicker.js.map +1 -1
  247. package/cjs-bundle/componentsV2/ColorPicker/Swatches/Swatches.js +1 -1
  248. package/cjs-bundle/componentsV2/ColorPicker/Swatches/Swatches.js.map +1 -1
  249. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  250. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
  251. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/hooks/useNonActivePads.js +1 -1
  252. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/hooks/useNonActivePads.js.map +1 -1
  253. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/hooks/usePadsByRadius.js +1 -1
  254. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/hooks/usePadsByRadius.js.map +1 -1
  255. package/cjs-bundle/componentsV2/FilesDropzone/utils.js +1 -1
  256. package/cjs-bundle/componentsV2/FilesDropzone/utils.js.map +1 -1
  257. package/cjs-bundle/componentsV2/FilesLoader/utils.js +1 -1
  258. package/cjs-bundle/componentsV2/FilesLoader/utils.js.map +1 -1
  259. package/cjs-bundle/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
  260. package/cjs-bundle/componentsV2/PadModeSelect/PadModeSelect.js.map +1 -1
  261. package/cjs-bundle/componentsV2/Popover/Popover.js +1 -1
  262. package/cjs-bundle/componentsV2/Popover/Popover.js.map +1 -1
  263. package/cjs-bundle/componentsV2/TemplatesControl/PublishModal/PublishModal.js +1 -1
  264. package/cjs-bundle/componentsV2/TemplatesControl/PublishModal/PublishModal.js.map +1 -1
  265. package/cjs-bundle/componentsV2/TemplatesControl/ShareModal/ShareModal.js +1 -1
  266. package/cjs-bundle/componentsV2/TemplatesControl/ShareModal/ShareModal.js.map +1 -1
  267. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useCopyTemplate.js +1 -1
  268. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useCopyTemplate.js.map +1 -1
  269. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useCreateTemplate.js +1 -1
  270. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useCreateTemplate.js.map +1 -1
  271. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useDeleteFolder.js +1 -1
  272. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useDeleteFolder.js.map +1 -1
  273. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useDeleteTemplate.js +1 -1
  274. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useDeleteTemplate.js.map +1 -1
  275. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useExportTemplate.js +1 -1
  276. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useExportTemplate.js.map +1 -1
  277. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useImportTemplate.js +1 -1
  278. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useImportTemplate.js.map +1 -1
  279. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useInitialize.js +1 -1
  280. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useInitialize.js.map +1 -1
  281. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useMoveToFolder.js +1 -1
  282. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useMoveToFolder.js.map +1 -1
  283. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/usePublishTemplate.js +1 -1
  284. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/usePublishTemplate.js.map +1 -1
  285. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useRevertToOriginal.js +1 -1
  286. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useRevertToOriginal.js.map +1 -1
  287. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useShareTemplate.js +1 -1
  288. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useShareTemplate.js.map +1 -1
  289. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useUnfollowTemplate.js +1 -1
  290. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useUnfollowTemplate.js.map +1 -1
  291. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useUpdateFolderName.js +1 -1
  292. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useUpdateFolderName.js.map +1 -1
  293. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useUpdateTemplateName.js +1 -1
  294. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/useUpdateTemplateName.js.map +1 -1
  295. package/cjs-bundle/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
  296. package/cjs-bundle/componentsV2/TemplatesControl/Toggle/Toggle.js.map +1 -1
  297. package/cjs-bundle/componentsV2/TextInputBase/TextInputBase.js +1 -1
  298. package/cjs-bundle/componentsV2/TextInputBase/TextInputBase.js.map +1 -1
  299. package/cjs-bundle/componentsV2/TextInputNext/TextInputNext.js +1 -1
  300. package/cjs-bundle/componentsV2/TextInputNext/TextInputNext.js.map +1 -1
  301. package/cjs-bundle/componentsV2/index.js +1 -1
  302. package/cjs-bundle/config/highcharts/highcharts.js +1 -1
  303. package/cjs-bundle/config/highcharts/highcharts.js.map +1 -1
  304. package/cjs-bundle/config/initGlobalDependencies.js +1 -1
  305. package/cjs-bundle/config/initGlobalDependencies.js.map +1 -1
  306. package/cjs-bundle/effects/useGlobalOffsetWellsSync.js +1 -1
  307. package/cjs-bundle/effects/useGlobalOffsetWellsSync.js.map +1 -1
  308. package/cjs-bundle/effects/useSharedDCStore.js +1 -1
  309. package/cjs-bundle/effects/useSharedDCStore.js.map +1 -1
  310. package/cjs-bundle/permissions/useProvidePermissions.js +1 -1
  311. package/cjs-bundle/permissions/useProvidePermissions.js.map +1 -1
  312. package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  313. package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js.map +1 -1
  314. package/cjs-bundle/utils/apps.js +1 -1
  315. package/cjs-bundle/utils/apps.js.map +1 -1
  316. package/cjs-bundle/utils/resolveWellHubSlug.js +1 -1
  317. package/cjs-bundle/utils/resolveWellHubSlug.js.map +1 -1
  318. package/cjs-bundle/utils/shareRecentRequest.js +2 -0
  319. package/cjs-bundle/utils/shareRecentRequest.js.map +1 -0
  320. package/components/AddComment/Popover.js +1 -1
  321. package/components/AddComment/Popover.js.map +1 -1
  322. package/components/AddComment/components/Content.js +1 -1
  323. package/components/AddComment/components/Content.js.map +1 -1
  324. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  325. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js.map +1 -1
  326. package/components/Annotations/components/AnnotationsList/index.js +1 -1
  327. package/components/Annotations/components/AnnotationsList/index.js.map +1 -1
  328. package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
  329. package/components/AppVersionsSelect/AppVersionsSelect.js.map +1 -1
  330. package/components/AssetsMultipleSelector/AssetsMultipleSelector.js +1 -1
  331. package/components/AssetsMultipleSelector/AssetsMultipleSelector.js.map +1 -1
  332. package/components/Attachment/index.js +1 -1
  333. package/components/Attachment/index.js.map +1 -1
  334. package/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
  335. package/components/BICOffsetPickerDialog/components/Map/Map.js.map +1 -1
  336. package/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
  337. package/components/BICOffsetPickerDialog/components/WellSection/index.js.map +1 -1
  338. package/components/BICOffsetPickerDialog/index.js +1 -1
  339. package/components/BICOffsetPickerDialog/index.js.map +1 -1
  340. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  341. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  342. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  343. package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  344. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  345. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  346. package/components/Chart/effects/useChartModifier.d.ts.map +1 -1
  347. package/components/Chart/effects/useChartModifier.js +1 -1
  348. package/components/Chart/effects/useChartModifier.js.map +1 -1
  349. package/components/CollapsableSidebar.js +1 -1
  350. package/components/CollapsableSidebar.js.map +1 -1
  351. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  352. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  353. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  354. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  355. package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
  356. package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js.map +1 -1
  357. package/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js +1 -1
  358. package/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js.map +1 -1
  359. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js +1 -1
  360. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js.map +1 -1
  361. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js +1 -1
  362. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js.map +1 -1
  363. package/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js +1 -1
  364. package/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js.map +1 -1
  365. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  366. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js.map +1 -1
  367. package/components/DocumentViewer/DocumentViewer.js +1 -1
  368. package/components/DocumentViewer/DocumentViewer.js.map +1 -1
  369. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  370. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  371. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  372. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  373. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  374. package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  375. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  376. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  377. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  378. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  379. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  380. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  381. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  382. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  383. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  384. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  385. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  386. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  387. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  388. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  389. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  390. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  391. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  392. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  393. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  394. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  395. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  396. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  397. package/components/EmojiIconButton.d.ts.map +1 -1
  398. package/components/EmojiIconButton.js +1 -1
  399. package/components/EmojiIconButton.js.map +1 -1
  400. package/components/FeedItem/FeedItem.js +1 -1
  401. package/components/FeedItem/FeedItem.js.map +1 -1
  402. package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -1
  403. package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js.map +1 -1
  404. package/components/FilesLoaderV2/utils.js +1 -1
  405. package/components/FilesLoaderV2/utils.js.map +1 -1
  406. package/components/GradientManager/GradientManager.js +1 -1
  407. package/components/GradientManager/GradientManager.js.map +1 -1
  408. package/components/GradientManager/GradientSelect.js +1 -1
  409. package/components/GradientManager/GradientSelect.js.map +1 -1
  410. package/components/OffsetWellMap/OffsetWellMap.js +1 -1
  411. package/components/OffsetWellMap/OffsetWellMap.js.map +1 -1
  412. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  413. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js.map +1 -1
  414. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  415. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  416. package/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
  417. package/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
  418. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  419. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  420. package/components/OffsetWellPickerV2/constants.js +1 -1
  421. package/components/OffsetWellPickerV2/constants.js.map +1 -1
  422. package/components/OffsetWellPickerV2/effects/index.js +1 -1
  423. package/components/OffsetWellPickerV2/effects/index.js.map +1 -1
  424. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
  425. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js.map +1 -1
  426. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  427. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  428. package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js +1 -1
  429. package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js.map +1 -1
  430. package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js +1 -1
  431. package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js.map +1 -1
  432. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  433. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  434. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  435. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  436. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  437. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  438. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  439. package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  440. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  441. package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  442. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  443. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  444. package/components/OffsetWellPickerV3/index.js +1 -1
  445. package/components/OffsetWellPickerV3/index.js.map +1 -1
  446. package/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
  447. package/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
  448. package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
  449. package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js.map +1 -1
  450. package/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js +1 -1
  451. package/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js.map +1 -1
  452. package/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  453. package/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  454. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  455. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  456. package/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
  457. package/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js.map +1 -1
  458. package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
  459. package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js.map +1 -1
  460. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +1 -1
  461. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js.map +1 -1
  462. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
  463. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js.map +1 -1
  464. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  465. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js.map +1 -1
  466. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js +1 -1
  467. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js.map +1 -1
  468. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js +1 -1
  469. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js.map +1 -1
  470. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapTooltipState.js +1 -1
  471. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapTooltipState.js.map +1 -1
  472. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useOffsetWellMapState.js +1 -1
  473. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useOffsetWellMapState.js.map +1 -1
  474. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSelectionToolOrchestration.js +1 -1
  475. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSelectionToolOrchestration.js.map +1 -1
  476. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/utils/well-markers-utils.js +1 -1
  477. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/utils/well-markers-utils.js.map +1 -1
  478. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  479. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  480. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js +1 -1
  481. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js.map +1 -1
  482. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js +1 -1
  483. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js.map +1 -1
  484. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js +1 -1
  485. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js.map +1 -1
  486. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
  487. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js.map +1 -1
  488. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  489. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js.map +1 -1
  490. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js +1 -1
  491. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js.map +1 -1
  492. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js +1 -1
  493. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js.map +1 -1
  494. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js +1 -1
  495. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js.map +1 -1
  496. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js +1 -1
  497. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js.map +1 -1
  498. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js +1 -1
  499. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js.map +1 -1
  500. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js +1 -1
  501. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js.map +1 -1
  502. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricCell/MetricCell.js +1 -1
  503. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricCell/MetricCell.js.map +1 -1
  504. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js +1 -1
  505. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js.map +1 -1
  506. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js +1 -1
  507. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js.map +1 -1
  508. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js +1 -1
  509. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js.map +1 -1
  510. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js +1 -1
  511. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js.map +1 -1
  512. package/components/OffsetWellPickerV5/components/OffsetWellsTable/hooks/useAdvancedSearchHandler.js +1 -1
  513. package/components/OffsetWellPickerV5/components/OffsetWellsTable/hooks/useAdvancedSearchHandler.js.map +1 -1
  514. package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
  515. package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js.map +1 -1
  516. package/components/OffsetWellPickerV5/constants.js +1 -1
  517. package/components/OffsetWellPickerV5/constants.js.map +1 -1
  518. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useCompanyMetricKey.js +1 -1
  519. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useCompanyMetricKey.js.map +1 -1
  520. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
  521. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js.map +1 -1
  522. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/wellTransformations.js +1 -1
  523. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/wellTransformations.js.map +1 -1
  524. package/components/OffsetWellPickerV5/hooks/useAutoSyncOffsetWells.js +1 -1
  525. package/components/OffsetWellPickerV5/hooks/useAutoSyncOffsetWells.js.map +1 -1
  526. package/components/OffsetWellPickerV5/hooks/useCompanySelectorPermission.js +1 -1
  527. package/components/OffsetWellPickerV5/hooks/useCompanySelectorPermission.js.map +1 -1
  528. package/components/OffsetWellPickerV5/hooks/useIsAdmin.js +1 -1
  529. package/components/OffsetWellPickerV5/hooks/useIsAdmin.js.map +1 -1
  530. package/components/OffsetWellPickerV5/hooks/useLimitNotification.js +1 -1
  531. package/components/OffsetWellPickerV5/hooks/useLimitNotification.js.map +1 -1
  532. package/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.js +1 -1
  533. package/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.js.map +1 -1
  534. package/components/OffsetWellPickerV5/utils/getCoordinatedWells.js +1 -1
  535. package/components/OffsetWellPickerV5/utils/getCoordinatedWells.js.map +1 -1
  536. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  537. package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  538. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  539. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  540. package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  541. package/components/RealTimeValuesSidebar/SidebarFooter.js.map +1 -1
  542. package/components/StatusBadge/api.d.ts.map +1 -1
  543. package/components/StatusBadge/api.js +1 -1
  544. package/components/StatusBadge/api.js.map +1 -1
  545. package/components/StatusBadge/components/DQAlertsTooltip.js +1 -1
  546. package/components/StatusBadge/components/DQAlertsTooltip.js.map +1 -1
  547. package/components/UserMention/index.js +1 -1
  548. package/components/UserMention/index.js.map +1 -1
  549. package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
  550. package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js.map +1 -1
  551. package/componentsV2/AppFooter/DqPopover/DqPopover.js +1 -1
  552. package/componentsV2/AppFooter/DqPopover/DqPopover.js.map +1 -1
  553. package/componentsV2/AppHeader/AppAssets/utils.js +1 -1
  554. package/componentsV2/AppHeader/AppAssets/utils.js.map +1 -1
  555. package/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  556. package/componentsV2/AppHeader/V3/Actions/Actions.js.map +1 -1
  557. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  558. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.js.map +1 -1
  559. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js +1 -1
  560. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js.map +1 -1
  561. package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
  562. package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js.map +1 -1
  563. package/componentsV2/AppPanel/AppPanelDisplay.js +1 -1
  564. package/componentsV2/AppPanel/AppPanelDisplay.js.map +1 -1
  565. package/componentsV2/ColorPicker/ColorPicker.constants.d.ts +7 -0
  566. package/componentsV2/ColorPicker/ColorPicker.constants.d.ts.map +1 -0
  567. package/componentsV2/ColorPicker/ColorPicker.constants.js +2 -0
  568. package/componentsV2/ColorPicker/ColorPicker.constants.js.map +1 -0
  569. package/componentsV2/ColorPicker/ColorPicker.d.ts.map +1 -1
  570. package/componentsV2/ColorPicker/ColorPicker.js +1 -1
  571. package/componentsV2/ColorPicker/ColorPicker.js.map +1 -1
  572. package/componentsV2/ColorPicker/Swatches/Swatches.d.ts.map +1 -1
  573. package/componentsV2/ColorPicker/Swatches/Swatches.js +1 -1
  574. package/componentsV2/ColorPicker/Swatches/Swatches.js.map +1 -1
  575. package/componentsV2/ColorPicker/index.d.ts +1 -0
  576. package/componentsV2/ColorPicker/index.d.ts.map +1 -1
  577. package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  578. package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
  579. package/componentsV2/CompletionsOffsetWellPicker/hooks/useNonActivePads.js +1 -1
  580. package/componentsV2/CompletionsOffsetWellPicker/hooks/useNonActivePads.js.map +1 -1
  581. package/componentsV2/CompletionsOffsetWellPicker/hooks/usePadsByRadius.js +1 -1
  582. package/componentsV2/CompletionsOffsetWellPicker/hooks/usePadsByRadius.js.map +1 -1
  583. package/componentsV2/FilesDropzone/utils.js +1 -1
  584. package/componentsV2/FilesDropzone/utils.js.map +1 -1
  585. package/componentsV2/FilesLoader/utils.js +1 -1
  586. package/componentsV2/FilesLoader/utils.js.map +1 -1
  587. package/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
  588. package/componentsV2/PadModeSelect/PadModeSelect.js.map +1 -1
  589. package/componentsV2/Popover/Popover.d.ts +1 -0
  590. package/componentsV2/Popover/Popover.d.ts.map +1 -1
  591. package/componentsV2/Popover/Popover.js +1 -1
  592. package/componentsV2/Popover/Popover.js.map +1 -1
  593. package/componentsV2/TemplatesControl/PublishModal/PublishModal.js +1 -1
  594. package/componentsV2/TemplatesControl/PublishModal/PublishModal.js.map +1 -1
  595. package/componentsV2/TemplatesControl/ShareModal/ShareModal.js +1 -1
  596. package/componentsV2/TemplatesControl/ShareModal/ShareModal.js.map +1 -1
  597. package/componentsV2/TemplatesControl/Store/hooks/useCopyTemplate.js +1 -1
  598. package/componentsV2/TemplatesControl/Store/hooks/useCopyTemplate.js.map +1 -1
  599. package/componentsV2/TemplatesControl/Store/hooks/useCreateTemplate.js +1 -1
  600. package/componentsV2/TemplatesControl/Store/hooks/useCreateTemplate.js.map +1 -1
  601. package/componentsV2/TemplatesControl/Store/hooks/useDeleteFolder.js +1 -1
  602. package/componentsV2/TemplatesControl/Store/hooks/useDeleteFolder.js.map +1 -1
  603. package/componentsV2/TemplatesControl/Store/hooks/useDeleteTemplate.js +1 -1
  604. package/componentsV2/TemplatesControl/Store/hooks/useDeleteTemplate.js.map +1 -1
  605. package/componentsV2/TemplatesControl/Store/hooks/useExportTemplate.js +1 -1
  606. package/componentsV2/TemplatesControl/Store/hooks/useExportTemplate.js.map +1 -1
  607. package/componentsV2/TemplatesControl/Store/hooks/useImportTemplate.js +1 -1
  608. package/componentsV2/TemplatesControl/Store/hooks/useImportTemplate.js.map +1 -1
  609. package/componentsV2/TemplatesControl/Store/hooks/useInitialize.js +1 -1
  610. package/componentsV2/TemplatesControl/Store/hooks/useInitialize.js.map +1 -1
  611. package/componentsV2/TemplatesControl/Store/hooks/useMoveToFolder.js +1 -1
  612. package/componentsV2/TemplatesControl/Store/hooks/useMoveToFolder.js.map +1 -1
  613. package/componentsV2/TemplatesControl/Store/hooks/usePublishTemplate.js +1 -1
  614. package/componentsV2/TemplatesControl/Store/hooks/usePublishTemplate.js.map +1 -1
  615. package/componentsV2/TemplatesControl/Store/hooks/useRevertToOriginal.js +1 -1
  616. package/componentsV2/TemplatesControl/Store/hooks/useRevertToOriginal.js.map +1 -1
  617. package/componentsV2/TemplatesControl/Store/hooks/useShareTemplate.js +1 -1
  618. package/componentsV2/TemplatesControl/Store/hooks/useShareTemplate.js.map +1 -1
  619. package/componentsV2/TemplatesControl/Store/hooks/useUnfollowTemplate.js +1 -1
  620. package/componentsV2/TemplatesControl/Store/hooks/useUnfollowTemplate.js.map +1 -1
  621. package/componentsV2/TemplatesControl/Store/hooks/useUpdateFolderName.js +1 -1
  622. package/componentsV2/TemplatesControl/Store/hooks/useUpdateFolderName.js.map +1 -1
  623. package/componentsV2/TemplatesControl/Store/hooks/useUpdateTemplateName.js +1 -1
  624. package/componentsV2/TemplatesControl/Store/hooks/useUpdateTemplateName.js.map +1 -1
  625. package/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
  626. package/componentsV2/TemplatesControl/Toggle/Toggle.js.map +1 -1
  627. package/componentsV2/TextInputBase/TextInputBase.js +1 -1
  628. package/componentsV2/TextInputBase/TextInputBase.js.map +1 -1
  629. package/componentsV2/TextInputNext/TextInputNext.js +1 -1
  630. package/componentsV2/TextInputNext/TextInputNext.js.map +1 -1
  631. package/componentsV2/index.js +1 -1
  632. package/config/highcharts/highcharts.d.ts +1 -3
  633. package/config/highcharts/highcharts.d.ts.map +1 -1
  634. package/config/highcharts/highcharts.js +1 -1
  635. package/config/highcharts/highcharts.js.map +1 -1
  636. package/config/highcharts/index.d.ts +0 -1
  637. package/config/highcharts/index.d.ts.map +1 -1
  638. package/config/initGlobalDependencies.d.ts +1 -1
  639. package/config/initGlobalDependencies.d.ts.map +1 -1
  640. package/config/initGlobalDependencies.js +1 -1
  641. package/config/initGlobalDependencies.js.map +1 -1
  642. package/effects/useGlobalOffsetWellsSync.js +1 -1
  643. package/effects/useGlobalOffsetWellsSync.js.map +1 -1
  644. package/effects/useSharedDCStore.js +1 -1
  645. package/effects/useSharedDCStore.js.map +1 -1
  646. package/mcp-server/server.mjs +241 -52
  647. package/package.json +1 -3
  648. package/permissions/useProvidePermissions.d.ts.map +1 -1
  649. package/permissions/useProvidePermissions.js +1 -1
  650. package/permissions/useProvidePermissions.js.map +1 -1
  651. package/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  652. package/testing/AppTestWrapper/AppTestWrapper.js.map +1 -1
  653. package/tsconfig.tsbuildinfo +1 -1
  654. package/utils/__tests__/resolveWellHubSlug.test.d.ts +2 -0
  655. package/utils/__tests__/resolveWellHubSlug.test.d.ts.map +1 -0
  656. package/utils/apps.js +1 -1
  657. package/utils/apps.js.map +1 -1
  658. package/utils/resolveWellHubSlug.d.ts.map +1 -1
  659. package/utils/resolveWellHubSlug.js +1 -1
  660. package/utils/resolveWellHubSlug.js.map +1 -1
  661. package/utils/shareRecentRequest.d.ts +7 -0
  662. package/utils/shareRecentRequest.d.ts.map +1 -0
  663. package/utils/shareRecentRequest.js +2 -0
  664. package/utils/shareRecentRequest.js.map +1 -0
  665. package/cjs-bundle/config/highcharts/constants.js +0 -2
  666. package/cjs-bundle/config/highcharts/constants.js.map +0 -1
  667. package/cjs-bundle/config/highcharts/getHighchartsV10.js +0 -2
  668. package/cjs-bundle/config/highcharts/getHighchartsV10.js.map +0 -1
  669. package/cjs-bundle/config/highcharts/getHighchartsV8.js +0 -2
  670. package/cjs-bundle/config/highcharts/getHighchartsV8.js.map +0 -1
  671. package/config/highcharts/constants.d.ts +0 -3
  672. package/config/highcharts/constants.d.ts.map +0 -1
  673. package/config/highcharts/constants.js +0 -2
  674. package/config/highcharts/constants.js.map +0 -1
  675. package/config/highcharts/getHighchartsV10.d.ts +0 -24
  676. package/config/highcharts/getHighchartsV10.d.ts.map +0 -1
  677. package/config/highcharts/getHighchartsV10.js +0 -2
  678. package/config/highcharts/getHighchartsV10.js.map +0 -1
  679. package/config/highcharts/getHighchartsV8.d.ts +0 -24
  680. package/config/highcharts/getHighchartsV8.d.ts.map +0 -1
  681. package/config/highcharts/getHighchartsV8.js +0 -2
  682. package/config/highcharts/getHighchartsV8.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{forwardRef as t,useState as i,useRef as n,useCallback as e,useMemo as c,Fragment as r}from"react";import m from"classnames";import{Button as p}from"../../Button/Button.js";import{storeApi as a}from"../Store/Store.js";import"../Store/utils.js";import{Menu as u}from"../../Menu/Menu.js";import{Text as l}from"../../Text/Text.js";import{useTemplateActions as j}from"../templateMenuItems/index.js";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/appPackages.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import{CORVA_COMPANY_ID as d}from"../../../constants/corvaCompanyId.js";import"lodash";import"../../../components/GradientManager/configuration/constants.js";import{ToggleDisplayDefault as I}from"../ToggleDisplayDefault/ToggleDisplayDefault.js";import{ButtonIcon as h}from"../../ButtonIcon/ButtonIcon.js";import{Skeleton as f}from"../../Skeleton/Skeleton.js";import{UnsavedChangesBadge as b}from"../UnsavedChangesBadge/UnsavedChangesBadge.js";import C from"./Toggle.scss.js";import"querystring";import"../../../clients/subscriptions/subscriptions-client.factory.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../clients/jsonApi/index.js";import"query-string";import"../../../components/UserMention/utils/index.js";import"../../../utils/convert.js";import"moment";import"../../../utils/casing/validation.js";import"lodash/mean";import"../../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"../../../utils/drillstring/conversion.js";import"lodash/set";import"lodash/cloneDeep";import"@babel/runtime/helpers/toConsumableArray";import"lodash/isNumber";import"lodash/has";import"../../../utils/ga.js";import"../../../utils/goalsConfig/goalsConfig.js";import"../../../utils/lasParser.js";import"../../../utils/main.js";import"../../../utils/metrics/metricsConfig.js";import"../../../utils/mobileDetect.js";import"../../../utils/feed.js";import"../../../utils/reports.js";import"moment-timezone";import"@babel/runtime/helpers/typeof";import"../../../utils/dashboardReports.js";import"../../../utils/env.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../../utils/jsonaDataFormatter.js";import"../../../utils/bha.js";import"jsona";import"@babel/runtime/helpers/objectWithoutProperties";import"../../../utils/charts/Styles.scss.js";import"../../../utils/getSingleAsset.js";import"uuid";import"../../../components/StatusBadge/constants.js";import"lodash/unset";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import"../../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../AppCommonsProvider/AppCommonsProvider.js";import{useAppCommons as v}from"../../AppCommonsProvider/AppCommonsContext.js";import"../../AppPanel/AppPanelsContext.js";import{useCombineRefs as g}from"../../../effects/useCombineRefs.js";import{DownIcon as O}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/DragOne.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/InfoRounded.js";import"../../../icons/customIcons/icons/FlameFilled.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/PinOne.js";import"../../../icons/customIcons/icons/PinOneCrossed.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";import{jsx as y,jsxs as P,Fragment as M}from"react/jsx-runtime";function T(o,s){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),t.push.apply(t,i)}return t}function S(s){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?T(Object(i),!0).forEach((function(t){o(s,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var A=function(o,s){return o.shared?"Shared":o.isPreset?"Corva":o.published?(null==s?void 0:s.company_id)!==d?null==s?void 0:s.company_name:"Company":"Your Own"},D=t((function(o,s){var t=o.testId,i=o.className,n=o.disabled,e=o.templateIcon,c=o.onMouseLeave,r=o.onMouseEnter,a=o.onClick,u=o.children,l=o.isPopoverOpen;return y(p,{disabled:n,size:"small",className:m(C.button,i),type:"chartColored",testId:t,onClick:a,prefix:e,onMouseEnter:r,onMouseLeave:c,suffix:y(O,{className:m(C.chevron,l&&C.chevronOpen)}),ref:s,children:u||y(I,{})})})),F=t((function(o,s){var t=o.testId,i=o.className,n=o.disabled,e=o.templateIcon,c=o.onMouseLeave,r=o.onMouseEnter,p=o.onClick,u=a.useSelectedTemplate,l=a.useHasUnsavedChanges,j=a.useIsInitialized,d=u(),I=l(null==d?void 0:d.id),v=j();return y(h,{disabled:n,size:"small",className:m(C.buttonIcon,i),testId:t,onClick:p,onMouseEnter:r,onMouseLeave:c,ref:s,children:v?P("div",{className:C.buttonIconInner,children:[e,I&&y(b,{className:C.unsavedChangesUltraCompact,size:16})]}):y(f,{type:"circle",width:20,height:20})})})),x=["CopyTemplate","PublishTemplate","RevertTemplate","RemoveTemplate"],k=t((function(t,m){var p=t.testId,d=t.className,I=t.disabled,h=t.children,f=t.layout,O=void 0===f?"full":f,T=a.useOpenPopover,k=a.useIsPopoverOpen,N=a.useSelectedTemplate,E=a.useIsInitialized,z=a.useTemplateIcon,U=a.useTemplateIconColor,w=a.useHasUnsavedChanges,B=T(),R=k(),L=N(),G=E(),q=U(L),H=z(L),W=w(null==L?void 0:L.id),Y=v().currentUser,_=i(!1),K=s(_,2),Z=K[0],J=K[1],Q=n(),V=n(),X=n(null),$=e((function(){clearTimeout(Q.current),clearTimeout(V.current)}),[]),oo=e((function(){$(),J(!0)}),[$]),so=e((function(){$(),Q.current=setTimeout((function(){$(),J(!0)}),300)}),[$]),to=e((function(){$(),V.current=setTimeout((function(){J(!1)}),500)}),[$]),io=g(m,X),no=j(L),eo=c((function(){return no.reduce((function(s,t){return S(S({},s),{},o({},t.id,t))}),{})}),[no]);return P(M,{children:[y("full"===O?D:F,{disabled:I,className:d,testId:p,ref:io,onClick:B,templateIcon:G&&L?y(H,{color:q,size:20}):void 0,isPopoverOpen:R,onMouseEnter:so,onMouseLeave:to,children:h}),L&&!I&&P(u,{open:Z&&!R,anchorEl:X.current,backdrop:!1,onMouseEnter:oo,onMouseLeave:to,className:C.menu,children:[P("div",{className:C.menuHeader,children:[P(l,{size:12,tagName:"div",children:[W&&P(M,{children:[y(b,{})," Modifying"," "]}),A(L,Y)," Template"]}),y(l,{size:12,color:"T6",className:C.menuSubTitle,children:"Your template updates according to your changes"})]}),x.map((function(o,s){var t=(eo[o]||{}).Component;return t?P(r,{children:[s>0&&y(u.Divider,{}),y(t,{template:L})]},o):null}))]})]})}));export{k as Toggle};
1
+ import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{forwardRef as t,useState as i,useRef as n,useCallback as e,useMemo as c,Fragment as r}from"react";import m from"classnames";import{Button as p}from"../../Button/Button.js";import{storeApi as a}from"../Store/Store.js";import"../Store/utils.js";import{Menu as u}from"../../Menu/Menu.js";import{Text as l}from"../../Text/Text.js";import{useTemplateActions as j}from"../templateMenuItems/index.js";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/appPackages.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import{CORVA_COMPANY_ID as d}from"../../../constants/corvaCompanyId.js";import"lodash";import"../../../components/GradientManager/configuration/constants.js";import{ToggleDisplayDefault as I}from"../ToggleDisplayDefault/ToggleDisplayDefault.js";import{ButtonIcon as h}from"../../ButtonIcon/ButtonIcon.js";import{Skeleton as f}from"../../Skeleton/Skeleton.js";import{UnsavedChangesBadge as b}from"../UnsavedChangesBadge/UnsavedChangesBadge.js";import C from"./Toggle.scss.js";import"querystring";import"../../../clients/subscriptions/subscriptions-client.factory.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../clients/jsonApi/index.js";import"query-string";import"../../../components/UserMention/utils/index.js";import"../../../utils/convert.js";import"moment";import"../../../utils/casing/validation.js";import"lodash/mean";import"../../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"../../../utils/drillstring/conversion.js";import"lodash/set";import"lodash/cloneDeep";import"@babel/runtime/helpers/toConsumableArray";import"lodash/isNumber";import"lodash/has";import"../../../utils/ga.js";import"../../../utils/goalsConfig/goalsConfig.js";import"../../../utils/lasParser.js";import"../../../utils/main.js";import"../../../utils/metrics/metricsConfig.js";import"../../../utils/mobileDetect.js";import"../../../utils/feed.js";import"../../../utils/reports.js";import"moment-timezone";import"@babel/runtime/helpers/typeof";import"../../../utils/dashboardReports.js";import"../../../utils/env.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../../utils/jsonaDataFormatter.js";import"../../../utils/bha.js";import"jsona";import"../../../utils/shareRecentRequest.js";import"@babel/runtime/helpers/objectWithoutProperties";import"../../../utils/charts/Styles.scss.js";import"../../../utils/getSingleAsset.js";import"uuid";import"../../../components/StatusBadge/constants.js";import"lodash/unset";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import"../../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../AppCommonsProvider/AppCommonsProvider.js";import{useAppCommons as v}from"../../AppCommonsProvider/AppCommonsContext.js";import"../../AppPanel/AppPanelsContext.js";import{useCombineRefs as g}from"../../../effects/useCombineRefs.js";import{DownIcon as O}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/DragOne.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/InfoRounded.js";import"../../../icons/customIcons/icons/FlameFilled.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/PinOne.js";import"../../../icons/customIcons/icons/PinOneCrossed.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";import{jsx as y,jsxs as P,Fragment as M}from"react/jsx-runtime";function T(o,s){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),t.push.apply(t,i)}return t}function S(s){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?T(Object(i),!0).forEach((function(t){o(s,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var A=function(o,s){return o.shared?"Shared":o.isPreset?"Corva":o.published?(null==s?void 0:s.company_id)!==d?null==s?void 0:s.company_name:"Company":"Your Own"},D=t((function(o,s){var t=o.testId,i=o.className,n=o.disabled,e=o.templateIcon,c=o.onMouseLeave,r=o.onMouseEnter,a=o.onClick,u=o.children,l=o.isPopoverOpen;return y(p,{disabled:n,size:"small",className:m(C.button,i),type:"chartColored",testId:t,onClick:a,prefix:e,onMouseEnter:r,onMouseLeave:c,suffix:y(O,{className:m(C.chevron,l&&C.chevronOpen)}),ref:s,children:u||y(I,{})})})),F=t((function(o,s){var t=o.testId,i=o.className,n=o.disabled,e=o.templateIcon,c=o.onMouseLeave,r=o.onMouseEnter,p=o.onClick,u=a.useSelectedTemplate,l=a.useHasUnsavedChanges,j=a.useIsInitialized,d=u(),I=l(null==d?void 0:d.id),v=j();return y(h,{disabled:n,size:"small",className:m(C.buttonIcon,i),testId:t,onClick:p,onMouseEnter:r,onMouseLeave:c,ref:s,children:v?P("div",{className:C.buttonIconInner,children:[e,I&&y(b,{className:C.unsavedChangesUltraCompact,size:16})]}):y(f,{type:"circle",width:20,height:20})})})),x=["CopyTemplate","PublishTemplate","RevertTemplate","RemoveTemplate"],k=t((function(t,m){var p=t.testId,d=t.className,I=t.disabled,h=t.children,f=t.layout,O=void 0===f?"full":f,T=a.useOpenPopover,k=a.useIsPopoverOpen,N=a.useSelectedTemplate,E=a.useIsInitialized,R=a.useTemplateIcon,z=a.useTemplateIconColor,U=a.useHasUnsavedChanges,w=T(),B=k(),L=N(),G=E(),q=z(L),H=R(L),W=U(null==L?void 0:L.id),Y=v().currentUser,_=i(!1),K=s(_,2),Z=K[0],J=K[1],Q=n(),V=n(),X=n(null),$=e((function(){clearTimeout(Q.current),clearTimeout(V.current)}),[]),oo=e((function(){$(),J(!0)}),[$]),so=e((function(){$(),Q.current=setTimeout((function(){$(),J(!0)}),300)}),[$]),to=e((function(){$(),V.current=setTimeout((function(){J(!1)}),500)}),[$]),io=g(m,X),no=j(L),eo=c((function(){return no.reduce((function(s,t){return S(S({},s),{},o({},t.id,t))}),{})}),[no]);return P(M,{children:[y("full"===O?D:F,{disabled:I,className:d,testId:p,ref:io,onClick:w,templateIcon:G&&L?y(H,{color:q,size:20}):void 0,isPopoverOpen:B,onMouseEnter:so,onMouseLeave:to,children:h}),L&&!I&&P(u,{open:Z&&!B,anchorEl:X.current,backdrop:!1,onMouseEnter:oo,onMouseLeave:to,className:C.menu,children:[P("div",{className:C.menuHeader,children:[P(l,{size:12,tagName:"div",children:[W&&P(M,{children:[y(b,{})," Modifying"," "]}),A(L,Y)," Template"]}),y(l,{size:12,color:"T6",className:C.menuSubTitle,children:"Your template updates according to your changes"})]}),x.map((function(o,s){var t=(eo[o]||{}).Component;return t?P(r,{children:[s>0&&y(u.Divider,{}),y(t,{template:L})]},o):null}))]})]})}));export{k as Toggle};
2
2
  //# sourceMappingURL=Toggle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toggle.js","sources":["../../../../src/componentsV2/TemplatesControl/Toggle/Toggle.tsx"],"sourcesContent":["import {\n forwardRef,\n Fragment,\n MouseEventHandler,\n ReactNode,\n useCallback,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport classNames from 'classnames';\n\nimport { Button } from '../../Button';\nimport { storeApi } from '../Store';\nimport { Menu } from '../../Menu';\nimport { Text } from '../../Text';\nimport { useTemplateActions } from '../templateMenuItems';\nimport { CORVA_COMPANY_ID } from '../../../constants';\nimport { User } from '../../../types';\nimport { Template } from '../types';\nimport { ToggleDisplayDefault } from '../ToggleDisplayDefault';\nimport { ButtonIcon } from '../../ButtonIcon';\nimport { Skeleton } from '../../Skeleton';\nimport { UnsavedChangesBadge } from '../UnsavedChangesBadge';\n\nimport styles from './Toggle.scss';\n\nimport { useAppCommons, useCombineRefs } from '~/effects';\nimport { DownIcon } from '~/icons';\n\nconst getTemplateDisplayType = (template: Template, currentUser?: User) => {\n if (template.shared) {\n return 'Shared';\n }\n\n if (template.isPreset) {\n return 'Corva';\n }\n\n if (template.published) {\n return currentUser?.company_id !== CORVA_COMPANY_ID ? currentUser?.company_name : 'Company';\n }\n\n return 'Your Own';\n};\n\ntype ButtonComponentProps = {\n // eslint-disable-next-line react/no-unused-prop-types\n children?: ReactNode;\n disabled?: boolean;\n className?: string;\n testId?: string;\n templateIcon?: ReactNode;\n onClick?: MouseEventHandler;\n onMouseEnter?: MouseEventHandler;\n onMouseLeave?: MouseEventHandler;\n // eslint-disable-next-line react/no-unused-prop-types\n isPopoverOpen?: boolean;\n};\n\nconst ButtonFull = forwardRef<HTMLButtonElement, ButtonComponentProps>(\n (\n {\n testId,\n className,\n disabled,\n templateIcon,\n onMouseLeave,\n onMouseEnter,\n onClick,\n children,\n isPopoverOpen,\n },\n ref\n ) => (\n <Button\n disabled={disabled}\n size=\"small\"\n className={classNames(styles.button, className)}\n type=\"chartColored\"\n testId={testId}\n onClick={onClick}\n prefix={templateIcon}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n suffix={\n <DownIcon className={classNames(styles.chevron, isPopoverOpen && styles.chevronOpen)} />\n }\n ref={ref}\n >\n {children || <ToggleDisplayDefault />}\n </Button>\n )\n);\n\nconst ButtonUltraCompact = forwardRef<HTMLButtonElement, ButtonComponentProps>(\n ({ testId, className, disabled, templateIcon, onMouseLeave, onMouseEnter, onClick }, ref) => {\n const { useSelectedTemplate, useHasUnsavedChanges, useIsInitialized } = storeApi;\n const selectedTemplate = useSelectedTemplate();\n const hasUnsavedChanges = useHasUnsavedChanges(selectedTemplate?.id);\n const isInitialized = useIsInitialized();\n\n return (\n <ButtonIcon\n disabled={disabled}\n size=\"small\"\n className={classNames(styles.buttonIcon, className)}\n testId={testId}\n onClick={onClick}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n ref={ref}\n >\n {isInitialized ? (\n <div className={styles.buttonIconInner}>\n {templateIcon}\n {hasUnsavedChanges && (\n <UnsavedChangesBadge className={styles.unsavedChangesUltraCompact} size={16} />\n )}\n </div>\n ) : (\n <Skeleton type=\"circle\" width={20} height={20} />\n )}\n </ButtonIcon>\n );\n }\n);\n\nexport type ToggleProps = {\n children?: ReactNode;\n disabled?: boolean;\n className?: string;\n testId?: string;\n layout?: 'full' | 'ultraCompact';\n};\n\ntype TemplateActionItem = ReturnType<typeof useTemplateActions>[number];\n\nconst menuItemsToShow: TemplateActionItem['id'][] = [\n 'CopyTemplate',\n 'PublishTemplate',\n 'RevertTemplate',\n 'RemoveTemplate',\n];\n\nexport const Toggle = forwardRef<HTMLButtonElement, ToggleProps>(\n ({ testId, className, disabled, children, layout = 'full' }, ref) => {\n const {\n useOpenPopover,\n useIsPopoverOpen,\n useSelectedTemplate,\n useIsInitialized,\n useTemplateIcon,\n useTemplateIconColor,\n useHasUnsavedChanges,\n } = storeApi;\n const openPopover = useOpenPopover();\n const isPopoverOpen = useIsPopoverOpen();\n const selectedTemplate = useSelectedTemplate();\n const isInitialized = useIsInitialized();\n const iconColor = useTemplateIconColor(selectedTemplate);\n const IconComponent = useTemplateIcon(selectedTemplate);\n const hasUnsavedChanges = useHasUnsavedChanges(selectedTemplate?.id);\n const { currentUser } = useAppCommons();\n\n const [isMenuOpen, setIsMenuOpen] = useState(false);\n const openTimerRef = useRef<NodeJS.Timeout>();\n const closeTimerRef = useRef<NodeJS.Timeout>();\n const toggleRef = useRef<HTMLButtonElement>(null);\n\n const clearTimeouts = useCallback(() => {\n clearTimeout(openTimerRef.current);\n clearTimeout(closeTimerRef.current);\n }, []);\n\n const onMenuMouseEnter = useCallback(() => {\n clearTimeouts();\n setIsMenuOpen(true);\n }, [clearTimeouts]);\n\n const onButtonMouseEnter = useCallback(() => {\n clearTimeouts();\n\n openTimerRef.current = setTimeout(() => {\n clearTimeouts();\n setIsMenuOpen(true);\n }, 300);\n }, [clearTimeouts]);\n\n const onMouseLeave = useCallback(() => {\n clearTimeouts();\n closeTimerRef.current = setTimeout(() => {\n setIsMenuOpen(false);\n }, 500);\n }, [clearTimeouts]);\n\n const buttonRef = useCombineRefs(ref, toggleRef);\n\n const menuItems = useTemplateActions(selectedTemplate);\n\n const menuItemsMap = useMemo(\n () =>\n menuItems.reduce<Partial<Record<TemplateActionItem['id'], TemplateActionItem>>>(\n (acc, item) => ({ ...acc, [item.id]: item }),\n {}\n ),\n [menuItems]\n );\n\n const ButtonComponent = layout === 'full' ? ButtonFull : ButtonUltraCompact;\n\n return (\n <>\n <ButtonComponent\n disabled={disabled}\n className={className}\n testId={testId}\n ref={buttonRef}\n onClick={openPopover}\n templateIcon={\n isInitialized && selectedTemplate ? (\n <IconComponent color={iconColor} size={20} />\n ) : undefined\n }\n isPopoverOpen={isPopoverOpen}\n onMouseEnter={onButtonMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n {children}\n </ButtonComponent>\n\n {selectedTemplate && !disabled && (\n <Menu\n open={isMenuOpen && !isPopoverOpen}\n anchorEl={toggleRef.current}\n backdrop={false}\n onMouseEnter={onMenuMouseEnter}\n onMouseLeave={onMouseLeave}\n className={styles.menu}\n >\n <div className={styles.menuHeader}>\n <Text size={12} tagName=\"div\">\n {hasUnsavedChanges && (\n <>\n <UnsavedChangesBadge /> Modifying{' '}\n </>\n )}\n {getTemplateDisplayType(selectedTemplate, currentUser)} Template\n </Text>\n <Text size={12} color=\"T6\" className={styles.menuSubTitle}>\n Your template updates according to your changes\n </Text>\n </div>\n\n {menuItemsToShow.map((key, index) => {\n const { Component } = menuItemsMap[key] || {};\n if (!Component) {\n return null;\n }\n\n return (\n <Fragment key={key}>\n {index > 0 && <Menu.Divider />}\n <Component template={selectedTemplate} />\n </Fragment>\n );\n })}\n </Menu>\n )}\n </>\n );\n }\n);\n"],"names":["getTemplateDisplayType","template","currentUser","shared","isPreset","published","company_id","CORVA_COMPANY_ID","company_name","ButtonFull","forwardRef","ref","testId","className","disabled","templateIcon","onMouseLeave","onMouseEnter","onClick","children","isPopoverOpen","_jsx","Button","size","classNames","styles","button","type","prefix","suffix","DownIcon","chevron","chevronOpen","ToggleDisplayDefault","ButtonUltraCompact","_ref2","useSelectedTemplate","storeApi","useHasUnsavedChanges","useIsInitialized","selectedTemplate","hasUnsavedChanges","id","isInitialized","ButtonIcon","buttonIcon","_jsxs","buttonIconInner","UnsavedChangesBadge","unsavedChangesUltraCompact","Skeleton","width","height","menuItemsToShow","Toggle","_ref3","_ref3$layout","layout","useOpenPopover","useIsPopoverOpen","useTemplateIcon","useTemplateIconColor","openPopover","iconColor","IconComponent","useAppCommons","useState","_useState2","_slicedToArray","_useState","isMenuOpen","setIsMenuOpen","openTimerRef","useRef","closeTimerRef","toggleRef","clearTimeouts","useCallback","clearTimeout","current","onMenuMouseEnter","onButtonMouseEnter","setTimeout","buttonRef","useCombineRefs","menuItems","useTemplateActions","menuItemsMap","useMemo","reduce","acc","item","_objectSpread","_Fragment","color","undefined","Menu","open","anchorEl","backdrop","menu","menuHeader","Text","tagName","menuSubTitle","map","key","index","Component","Fragment","Divider"],"mappings":"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"}
1
+ {"version":3,"file":"Toggle.js","sources":["../../../../src/componentsV2/TemplatesControl/Toggle/Toggle.tsx"],"sourcesContent":["import {\n forwardRef,\n Fragment,\n MouseEventHandler,\n ReactNode,\n useCallback,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport classNames from 'classnames';\n\nimport { Button } from '../../Button';\nimport { storeApi } from '../Store';\nimport { Menu } from '../../Menu';\nimport { Text } from '../../Text';\nimport { useTemplateActions } from '../templateMenuItems';\nimport { CORVA_COMPANY_ID } from '../../../constants';\nimport { User } from '../../../types';\nimport { Template } from '../types';\nimport { ToggleDisplayDefault } from '../ToggleDisplayDefault';\nimport { ButtonIcon } from '../../ButtonIcon';\nimport { Skeleton } from '../../Skeleton';\nimport { UnsavedChangesBadge } from '../UnsavedChangesBadge';\n\nimport styles from './Toggle.scss';\n\nimport { useAppCommons, useCombineRefs } from '~/effects';\nimport { DownIcon } from '~/icons';\n\nconst getTemplateDisplayType = (template: Template, currentUser?: User) => {\n if (template.shared) {\n return 'Shared';\n }\n\n if (template.isPreset) {\n return 'Corva';\n }\n\n if (template.published) {\n return currentUser?.company_id !== CORVA_COMPANY_ID ? currentUser?.company_name : 'Company';\n }\n\n return 'Your Own';\n};\n\ntype ButtonComponentProps = {\n // eslint-disable-next-line react/no-unused-prop-types\n children?: ReactNode;\n disabled?: boolean;\n className?: string;\n testId?: string;\n templateIcon?: ReactNode;\n onClick?: MouseEventHandler;\n onMouseEnter?: MouseEventHandler;\n onMouseLeave?: MouseEventHandler;\n // eslint-disable-next-line react/no-unused-prop-types\n isPopoverOpen?: boolean;\n};\n\nconst ButtonFull = forwardRef<HTMLButtonElement, ButtonComponentProps>(\n (\n {\n testId,\n className,\n disabled,\n templateIcon,\n onMouseLeave,\n onMouseEnter,\n onClick,\n children,\n isPopoverOpen,\n },\n ref\n ) => (\n <Button\n disabled={disabled}\n size=\"small\"\n className={classNames(styles.button, className)}\n type=\"chartColored\"\n testId={testId}\n onClick={onClick}\n prefix={templateIcon}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n suffix={\n <DownIcon className={classNames(styles.chevron, isPopoverOpen && styles.chevronOpen)} />\n }\n ref={ref}\n >\n {children || <ToggleDisplayDefault />}\n </Button>\n )\n);\n\nconst ButtonUltraCompact = forwardRef<HTMLButtonElement, ButtonComponentProps>(\n ({ testId, className, disabled, templateIcon, onMouseLeave, onMouseEnter, onClick }, ref) => {\n const { useSelectedTemplate, useHasUnsavedChanges, useIsInitialized } = storeApi;\n const selectedTemplate = useSelectedTemplate();\n const hasUnsavedChanges = useHasUnsavedChanges(selectedTemplate?.id);\n const isInitialized = useIsInitialized();\n\n return (\n <ButtonIcon\n disabled={disabled}\n size=\"small\"\n className={classNames(styles.buttonIcon, className)}\n testId={testId}\n onClick={onClick}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n ref={ref}\n >\n {isInitialized ? (\n <div className={styles.buttonIconInner}>\n {templateIcon}\n {hasUnsavedChanges && (\n <UnsavedChangesBadge className={styles.unsavedChangesUltraCompact} size={16} />\n )}\n </div>\n ) : (\n <Skeleton type=\"circle\" width={20} height={20} />\n )}\n </ButtonIcon>\n );\n }\n);\n\nexport type ToggleProps = {\n children?: ReactNode;\n disabled?: boolean;\n className?: string;\n testId?: string;\n layout?: 'full' | 'ultraCompact';\n};\n\ntype TemplateActionItem = ReturnType<typeof useTemplateActions>[number];\n\nconst menuItemsToShow: TemplateActionItem['id'][] = [\n 'CopyTemplate',\n 'PublishTemplate',\n 'RevertTemplate',\n 'RemoveTemplate',\n];\n\nexport const Toggle = forwardRef<HTMLButtonElement, ToggleProps>(\n ({ testId, className, disabled, children, layout = 'full' }, ref) => {\n const {\n useOpenPopover,\n useIsPopoverOpen,\n useSelectedTemplate,\n useIsInitialized,\n useTemplateIcon,\n useTemplateIconColor,\n useHasUnsavedChanges,\n } = storeApi;\n const openPopover = useOpenPopover();\n const isPopoverOpen = useIsPopoverOpen();\n const selectedTemplate = useSelectedTemplate();\n const isInitialized = useIsInitialized();\n const iconColor = useTemplateIconColor(selectedTemplate);\n const IconComponent = useTemplateIcon(selectedTemplate);\n const hasUnsavedChanges = useHasUnsavedChanges(selectedTemplate?.id);\n const { currentUser } = useAppCommons();\n\n const [isMenuOpen, setIsMenuOpen] = useState(false);\n const openTimerRef = useRef<NodeJS.Timeout>();\n const closeTimerRef = useRef<NodeJS.Timeout>();\n const toggleRef = useRef<HTMLButtonElement>(null);\n\n const clearTimeouts = useCallback(() => {\n clearTimeout(openTimerRef.current);\n clearTimeout(closeTimerRef.current);\n }, []);\n\n const onMenuMouseEnter = useCallback(() => {\n clearTimeouts();\n setIsMenuOpen(true);\n }, [clearTimeouts]);\n\n const onButtonMouseEnter = useCallback(() => {\n clearTimeouts();\n\n openTimerRef.current = setTimeout(() => {\n clearTimeouts();\n setIsMenuOpen(true);\n }, 300);\n }, [clearTimeouts]);\n\n const onMouseLeave = useCallback(() => {\n clearTimeouts();\n closeTimerRef.current = setTimeout(() => {\n setIsMenuOpen(false);\n }, 500);\n }, [clearTimeouts]);\n\n const buttonRef = useCombineRefs(ref, toggleRef);\n\n const menuItems = useTemplateActions(selectedTemplate);\n\n const menuItemsMap = useMemo(\n () =>\n menuItems.reduce<Partial<Record<TemplateActionItem['id'], TemplateActionItem>>>(\n (acc, item) => ({ ...acc, [item.id]: item }),\n {}\n ),\n [menuItems]\n );\n\n const ButtonComponent = layout === 'full' ? ButtonFull : ButtonUltraCompact;\n\n return (\n <>\n <ButtonComponent\n disabled={disabled}\n className={className}\n testId={testId}\n ref={buttonRef}\n onClick={openPopover}\n templateIcon={\n isInitialized && selectedTemplate ? (\n <IconComponent color={iconColor} size={20} />\n ) : undefined\n }\n isPopoverOpen={isPopoverOpen}\n onMouseEnter={onButtonMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n {children}\n </ButtonComponent>\n\n {selectedTemplate && !disabled && (\n <Menu\n open={isMenuOpen && !isPopoverOpen}\n anchorEl={toggleRef.current}\n backdrop={false}\n onMouseEnter={onMenuMouseEnter}\n onMouseLeave={onMouseLeave}\n className={styles.menu}\n >\n <div className={styles.menuHeader}>\n <Text size={12} tagName=\"div\">\n {hasUnsavedChanges && (\n <>\n <UnsavedChangesBadge /> Modifying{' '}\n </>\n )}\n {getTemplateDisplayType(selectedTemplate, currentUser)} Template\n </Text>\n <Text size={12} color=\"T6\" className={styles.menuSubTitle}>\n Your template updates according to your changes\n </Text>\n </div>\n\n {menuItemsToShow.map((key, index) => {\n const { Component } = menuItemsMap[key] || {};\n if (!Component) {\n return null;\n }\n\n return (\n <Fragment key={key}>\n {index > 0 && <Menu.Divider />}\n <Component template={selectedTemplate} />\n </Fragment>\n );\n })}\n </Menu>\n )}\n </>\n );\n }\n);\n"],"names":["getTemplateDisplayType","template","currentUser","shared","isPreset","published","company_id","CORVA_COMPANY_ID","company_name","ButtonFull","forwardRef","ref","testId","className","disabled","templateIcon","onMouseLeave","onMouseEnter","onClick","children","isPopoverOpen","_jsx","Button","size","classNames","styles","button","type","prefix","suffix","DownIcon","chevron","chevronOpen","ToggleDisplayDefault","ButtonUltraCompact","_ref2","useSelectedTemplate","storeApi","useHasUnsavedChanges","useIsInitialized","selectedTemplate","hasUnsavedChanges","id","isInitialized","ButtonIcon","buttonIcon","_jsxs","buttonIconInner","UnsavedChangesBadge","unsavedChangesUltraCompact","Skeleton","width","height","menuItemsToShow","Toggle","_ref3","_ref3$layout","layout","useOpenPopover","useIsPopoverOpen","useTemplateIcon","useTemplateIconColor","openPopover","iconColor","IconComponent","useAppCommons","useState","_useState2","_slicedToArray","_useState","isMenuOpen","setIsMenuOpen","openTimerRef","useRef","closeTimerRef","toggleRef","clearTimeouts","useCallback","clearTimeout","current","onMenuMouseEnter","onButtonMouseEnter","setTimeout","buttonRef","useCombineRefs","menuItems","useTemplateActions","menuItemsMap","useMemo","reduce","acc","item","_objectSpread","_Fragment","color","undefined","Menu","open","anchorEl","backdrop","menu","menuHeader","Text","tagName","menuSubTitle","map","key","index","Component","Fragment","Divider"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import s from"classnames";import{useRef as i,useCallback as t}from"react";import{Text as n}from"../Text/Text.js";import{LoaderCircular as c}from"../LoaderCircular/LoaderCircular.js";import{Tooltip as r}from"../Tooltip/Tooltip.js";import{CloseSmallIcon as e}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.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/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.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/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.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";import"./components/Styles.scss.js";import{jsx as m,jsxs as p,Fragment as a}from"react/jsx-runtime";import{Label as l}from"./components/Label.js";import u from"./TextInputBase.scss.js";import"@babel/runtime/helpers/slicedToArray";import"querystring";import"lodash";import"../../clients/subscriptions/subscriptions-client.factory.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../clients/jsonApi/index.js";import"query-string";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../../components/GradientManager/configuration/constants.js";import"../../components/UserMention/utils/index.js";import"../../utils/convert.js";import"moment";import"../../utils/casing/validation.js";import"lodash/mean";import"../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"../../utils/drillstring/conversion.js";import"lodash/set";import"lodash/cloneDeep";import"@babel/runtime/helpers/toConsumableArray";import"lodash/isNumber";import"lodash/has";import"../../utils/ga.js";import"../../utils/goalsConfig/goalsConfig.js";import"../../utils/lasParser.js";import"../../utils/main.js";import"../../utils/metrics/metricsConfig.js";import"../../utils/mobileDetect.js";import"../../utils/feed.js";import"../../utils/reports.js";import"moment-timezone";import"@babel/runtime/helpers/typeof";import"../../utils/dashboardReports.js";import"../../utils/env.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../utils/jsonaDataFormatter.js";import"../../utils/bha.js";import"jsona";import"@babel/runtime/helpers/objectWithoutProperties";import"../../utils/charts/Styles.scss.js";import"../../utils/getSingleAsset.js";import"uuid";import"../../components/StatusBadge/constants.js";import"lodash/unset";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../AppCommonsProvider/AppCommonsProvider.js";import"../AppCommonsProvider/AppCommonsContext.js";import"../AppPanel/AppPanelsContext.js";import{useCombineRefs as j}from"../../effects/useCombineRefs.js";function d(o,s){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);s&&(t=t.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),i.push.apply(i,t)}return i}function I(s){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};i%2?d(Object(t),!0).forEach((function(i){o(s,i,t[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(t,o))}))}return s}var b={small:u.small,medium:u.medium,large:u.large},f={top:"",start:u.labelStart,end:u.labelEnd},h=function(o){var d=o.testId,h=o.className,v=o.label,C=o.rootTagName,g=void 0===C?"label":C,O=o.clearable,y=o.focusOnClear,P=void 0===y||y,x=o.prefix,F=o.suffix,A=o.placeholder,D=o.size,S=void 0===D?"small":D,N=o.value,T=void 0===N?"":N,R=o.readOnly,k=o.labelPlacement,w=void 0===k?"top":k,M=o.inputRef,B=o.disabled,z=o.autoFocus,E=o.message,U=o.onFocus,G=o.onBlur,L=o.onKeyUp,K=o.onKeyDown,q=o.status,W=o.onChange,X=o.elementsClassNames,Z=o.inputContainerRef,H=o.component,J=o.componentProps,Q=o.rootRef,V=o.testIds,Y=i(),$=j(M,Y),_="loading"===q?m(c,{size:"xs"}):void 0,oo=t((function(o){var s,i;(o.stopPropagation(),o.preventDefault(),P)?null===(s=Y.current)||void 0===s||s.focus():null===(i=Y.current)||void 0===i||i.blur();null==W||W("","clear")}),[W,P]),so=t((function(o){return null==W?void 0:W(o.target.value||"","change",o)}),[W]),io=O&&String(T).length>0?m(r,{title:"Clear",children:m("button",{className:u.clearButton,onClick:oo,tabIndex:-1,"data-testid":null==V?void 0:V.clearButton,children:m(e,{size:16})})}):void 0,to=_||F||io?p(a,{children:[_,io,F]}):void 0;return p(g,{ref:Q,className:s(u.root,b[S],"error"===q&&u.error,B&&u.disabled,h),"data-testid":d,children:[p("div",{className:f[w],children:[v&&m(n,{size:12,color:"T6",className:s(u.label,"top"!==w&&u.labelAside,"top"!==w&&"small"===S&&u.labelSpecialXs,null==X?void 0:X.label),testId:null==V?void 0:V.label,children:"string"==typeof v?m(l,{children:v}):v}),p("div",{className:s(u.inputContainer,null==X?void 0:X.inputContainer),ref:Z,children:[x&&m("div",{className:s(u.affix,null==X?void 0:X.prefix),"data-testid":null==V?void 0:V.prefix,children:x}),m(H,I({ref:$,className:s(u.input,null==X?void 0:X.input),"data-testid":null==V?void 0:V.input,placeholder:A,value:String(T),readOnly:R,onChange:so,disabled:B,onFocus:U,onBlur:G,onKeyUp:L,onKeyDown:K,autoFocus:z},J)),to&&m("div",{className:s(u.affix,null==X?void 0:X.suffix),"data-testid":null==V?void 0:V.suffix,children:to})]})]}),E&&m(n,{size:12,color:"T6",tagName:"div",className:s(u.message,null==X?void 0:X.message),testId:null==V?void 0:V.message,children:E})]})};export{b as SizeToClassMap,h as TextInputBase};
1
+ import o from"@babel/runtime/helpers/defineProperty";import s from"classnames";import{useRef as i,useCallback as t}from"react";import{Text as n}from"../Text/Text.js";import{LoaderCircular as c}from"../LoaderCircular/LoaderCircular.js";import{Tooltip as e}from"../Tooltip/Tooltip.js";import{CloseSmallIcon as r}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.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/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.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/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.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";import"./components/Styles.scss.js";import{jsx as m,jsxs as p,Fragment as a}from"react/jsx-runtime";import{Label as l}from"./components/Label.js";import u from"./TextInputBase.scss.js";import"@babel/runtime/helpers/slicedToArray";import"querystring";import"lodash";import"../../clients/subscriptions/subscriptions-client.factory.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../clients/jsonApi/index.js";import"query-string";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../../components/GradientManager/configuration/constants.js";import"../../components/UserMention/utils/index.js";import"../../utils/convert.js";import"moment";import"../../utils/casing/validation.js";import"lodash/mean";import"../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"../../utils/drillstring/conversion.js";import"lodash/set";import"lodash/cloneDeep";import"@babel/runtime/helpers/toConsumableArray";import"lodash/isNumber";import"lodash/has";import"../../utils/ga.js";import"../../utils/goalsConfig/goalsConfig.js";import"../../utils/lasParser.js";import"../../utils/main.js";import"../../utils/metrics/metricsConfig.js";import"../../utils/mobileDetect.js";import"../../utils/feed.js";import"../../utils/reports.js";import"moment-timezone";import"@babel/runtime/helpers/typeof";import"../../utils/dashboardReports.js";import"../../utils/env.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../utils/jsonaDataFormatter.js";import"../../utils/bha.js";import"jsona";import"../../utils/shareRecentRequest.js";import"@babel/runtime/helpers/objectWithoutProperties";import"../../utils/charts/Styles.scss.js";import"../../utils/getSingleAsset.js";import"uuid";import"../../components/StatusBadge/constants.js";import"lodash/unset";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../AppCommonsProvider/AppCommonsProvider.js";import"../AppCommonsProvider/AppCommonsContext.js";import"../AppPanel/AppPanelsContext.js";import{useCombineRefs as j}from"../../effects/useCombineRefs.js";function d(o,s){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);s&&(t=t.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),i.push.apply(i,t)}return i}function I(s){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};i%2?d(Object(t),!0).forEach((function(i){o(s,i,t[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(t,o))}))}return s}var b={small:u.small,medium:u.medium,large:u.large},f={top:"",start:u.labelStart,end:u.labelEnd},h=function(o){var d=o.testId,h=o.className,v=o.label,C=o.rootTagName,g=void 0===C?"label":C,O=o.clearable,y=o.focusOnClear,P=void 0===y||y,x=o.prefix,F=o.suffix,A=o.placeholder,D=o.size,S=void 0===D?"small":D,N=o.value,T=void 0===N?"":N,R=o.readOnly,k=o.labelPlacement,w=void 0===k?"top":k,M=o.inputRef,B=o.disabled,z=o.autoFocus,E=o.message,U=o.onFocus,G=o.onBlur,L=o.onKeyUp,q=o.onKeyDown,K=o.status,W=o.onChange,X=o.elementsClassNames,Z=o.inputContainerRef,H=o.component,J=o.componentProps,Q=o.rootRef,V=o.testIds,Y=i(),$=j(M,Y),_="loading"===K?m(c,{size:"xs"}):void 0,oo=t((function(o){var s,i;(o.stopPropagation(),o.preventDefault(),P)?null===(s=Y.current)||void 0===s||s.focus():null===(i=Y.current)||void 0===i||i.blur();null==W||W("","clear")}),[W,P]),so=t((function(o){return null==W?void 0:W(o.target.value||"","change",o)}),[W]),io=O&&String(T).length>0?m(e,{title:"Clear",children:m("button",{className:u.clearButton,onClick:oo,tabIndex:-1,"data-testid":null==V?void 0:V.clearButton,children:m(r,{size:16})})}):void 0,to=_||F||io?p(a,{children:[_,io,F]}):void 0;return p(g,{ref:Q,className:s(u.root,b[S],"error"===K&&u.error,B&&u.disabled,h),"data-testid":d,children:[p("div",{className:f[w],children:[v&&m(n,{size:12,color:"T6",className:s(u.label,"top"!==w&&u.labelAside,"top"!==w&&"small"===S&&u.labelSpecialXs,null==X?void 0:X.label),testId:null==V?void 0:V.label,children:"string"==typeof v?m(l,{children:v}):v}),p("div",{className:s(u.inputContainer,null==X?void 0:X.inputContainer),ref:Z,children:[x&&m("div",{className:s(u.affix,null==X?void 0:X.prefix),"data-testid":null==V?void 0:V.prefix,children:x}),m(H,I({ref:$,className:s(u.input,null==X?void 0:X.input),"data-testid":null==V?void 0:V.input,placeholder:A,value:String(T),readOnly:R,onChange:so,disabled:B,onFocus:U,onBlur:G,onKeyUp:L,onKeyDown:q,autoFocus:z},J)),to&&m("div",{className:s(u.affix,null==X?void 0:X.suffix),"data-testid":null==V?void 0:V.suffix,children:to})]})]}),E&&m(n,{size:12,color:"T6",tagName:"div",className:s(u.message,null==X?void 0:X.message),testId:null==V?void 0:V.message,children:E})]})};export{b as SizeToClassMap,h as TextInputBase};
2
2
  //# sourceMappingURL=TextInputBase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInputBase.js","sources":["../../../src/componentsV2/TextInputBase/TextInputBase.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport {\n ChangeEvent,\n ChangeEventHandler,\n FocusEventHandler,\n forwardRef,\n KeyboardEventHandler,\n MouseEventHandler,\n MutableRefObject,\n ReactNode,\n Ref,\n RefCallback,\n useCallback,\n useRef,\n} from 'react';\n\nimport { Text } from '../Text';\nimport { LoaderCircular } from '../LoaderCircular';\n\nimport { Label } from './components';\n\nimport styles from './TextInputBase.scss';\nimport { CloseSmallIcon } from '../../icons';\nimport { Tooltip } from '../Tooltip';\nimport { useCombineRefs } from '../../effects';\n\ntype ComponentProvidedProps<FieldElement extends HTMLElement> = Partial<{\n className: string;\n 'data-testid': string;\n placeholder: string;\n value: string;\n readOnly: boolean;\n onChange: ChangeEventHandler<FieldElement>;\n disabled: boolean;\n autoFocus: boolean;\n onFocus: FocusEventHandler<FieldElement>;\n onBlur: FocusEventHandler<FieldElement>;\n onKeyUp: KeyboardEventHandler<FieldElement>;\n onKeyDown: KeyboardEventHandler<FieldElement>;\n}>;\n\nexport type ComponentProvidedPropNames = keyof ComponentProvidedProps<never>;\n\ntype EmptyObject = Record<string, never>;\n\nexport type TextInputBaseComponentProps<\n FieldElement extends HTMLElement,\n ComponentProps extends object = EmptyObject\n> = ComponentProvidedProps<FieldElement> & ComponentProps;\n\nexport type TextInputBaseProps<\n FieldElement extends HTMLElement,\n ComponentProps extends object = EmptyObject\n> = {\n label?: ReactNode;\n value?: string | number;\n size?: 'small' | 'medium' | 'large';\n labelPlacement?: 'top' | 'start' | 'end';\n /**\n * HTML tag of the root element. Use `div` when `prefix`/`suffix` contain interactive\n * controls — nested interactive elements inside a `label` are invalid for assistive tech\n */\n rootTagName?: 'label' | 'div';\n disabled?: boolean;\n\n status?: 'error' | 'loading';\n message?: ReactNode;\n onFocus?: FocusEventHandler<FieldElement>;\n onBlur?: FocusEventHandler<FieldElement>;\n onKeyDown?: KeyboardEventHandler<FieldElement>;\n onKeyUp?: KeyboardEventHandler<FieldElement>;\n placeholder?: string;\n prefix?: ReactNode;\n suffix?: ReactNode;\n /**\n * Ref to an underlying input element\n */\n inputRef?: RefCallback<FieldElement | null> | MutableRefObject<FieldElement | null> | null;\n /**\n * Ref to a container that contains input and its affixes\n * Useful for positioning of popovers\n */\n inputContainerRef?:\n | RefCallback<HTMLDivElement | null>\n | MutableRefObject<HTMLDivElement | null>\n | null;\n readOnly?: boolean;\n /**\n * If `true` will focus on the field on render. Useful for modals, but may be detrimental to a11y\n */\n autoFocus?: boolean;\n\n elementsClassNames?: Partial<{\n label: string;\n input: string;\n inputContainer: string;\n prefix: string;\n suffix: string;\n message: string;\n }>;\n\n onChange?: (\n value: string,\n changeReason: 'change' | 'clear',\n event?: ChangeEvent<FieldElement>\n ) => void;\n clearable?: boolean;\n /**\n * Controls if the field should keep/gain focus after \"Clear\" button is clicked\n */\n focusOnClear?: boolean;\n\n className?: string;\n testId?: string;\n\n /**\n * ⚠️⚠️⚠️ PRIVATE API. If you see it in docs you're doing something wrong\n */\n component: ReturnType<\n typeof forwardRef<FieldElement, TextInputBaseComponentProps<FieldElement, ComponentProps>>\n >;\n /**\n * ⚠️⚠️⚠️ PRIVATE API. If you see it in docs you're doing something wrong\n */\n componentProps?: ComponentProps;\n /**\n * ⚠️⚠️⚠️ PRIVATE API. If you see it in docs you're doing something wrong\n */\n testIds?: Partial<{\n input: string;\n label: string;\n prefix: string;\n suffix: string;\n clearButton: string;\n message: string;\n }>;\n};\n\nexport const SizeToClassMap: Record<Required<TextInputBaseProps<never, never>>['size'], string> = {\n small: styles.small,\n medium: styles.medium,\n large: styles.large,\n};\n\nconst LabelPlacementToClassMap: Record<\n Required<TextInputBaseProps<never, never>>['labelPlacement'],\n string\n> = {\n top: '',\n start: styles.labelStart,\n end: styles.labelEnd,\n};\n\nexport const TextInputBase = <\n FieldElement extends HTMLElement,\n ComponentProps extends object = EmptyObject\n>({\n testId,\n className,\n label,\n rootTagName = 'label',\n clearable,\n focusOnClear = true,\n prefix,\n suffix,\n placeholder,\n size = 'small',\n value = '',\n readOnly,\n labelPlacement = 'top',\n inputRef,\n disabled,\n autoFocus,\n message,\n onFocus,\n onBlur,\n onKeyUp,\n onKeyDown,\n status,\n onChange,\n elementsClassNames,\n inputContainerRef,\n component: Component,\n componentProps,\n rootRef,\n testIds,\n}: TextInputBaseProps<FieldElement, ComponentProps> & { rootRef: Ref<HTMLElement> }) => {\n const ownInputRef = useRef<FieldElement>();\n const actualInputRef = useCombineRefs(inputRef, ownInputRef);\n const loadingIndicator = status === 'loading' ? <LoaderCircular size=\"xs\" /> : undefined;\n const onClearHandler = useCallback<MouseEventHandler>(\n event => {\n event.stopPropagation();\n event.preventDefault();\n\n if (focusOnClear) {\n ownInputRef.current?.focus();\n } else {\n ownInputRef.current?.blur();\n }\n\n onChange?.('', 'clear');\n },\n [onChange, focusOnClear]\n );\n const onChangeHandler = useCallback<ChangeEventHandler<FieldElement>>(\n event => onChange?.((event.target as unknown as HTMLInputElement).value || '', 'change', event),\n [onChange]\n );\n\n const clearButton =\n !!clearable && String(value).length > 0 ? (\n <Tooltip title=\"Clear\">\n <button\n className={styles.clearButton}\n onClick={onClearHandler}\n tabIndex={-1}\n data-testid={testIds?.clearButton}\n >\n <CloseSmallIcon size={16} />\n </button>\n </Tooltip>\n ) : undefined;\n\n const actualSuffix =\n loadingIndicator || suffix || clearButton ? (\n <>\n {loadingIndicator}\n {clearButton}\n {suffix}\n </>\n ) : undefined;\n\n const RootElement = rootTagName;\n\n return (\n <RootElement\n ref={rootRef as never}\n className={classNames(\n styles.root,\n SizeToClassMap[size],\n status === 'error' && styles.error,\n disabled && styles.disabled,\n className\n )}\n data-testid={testId}\n >\n <div className={LabelPlacementToClassMap[labelPlacement]}>\n {label && (\n <Text\n size={12}\n color=\"T6\"\n className={classNames(\n styles.label,\n labelPlacement !== 'top' && styles.labelAside,\n labelPlacement !== 'top' && size === 'small' && styles.labelSpecialXs,\n elementsClassNames?.label\n )}\n testId={testIds?.label}\n >\n {typeof label === 'string' ? <Label>{label}</Label> : label}\n </Text>\n )}\n\n <div\n className={classNames(styles.inputContainer, elementsClassNames?.inputContainer)}\n ref={inputContainerRef}\n >\n {prefix && (\n <div\n className={classNames(styles.affix, elementsClassNames?.prefix)}\n data-testid={testIds?.prefix}\n >\n {prefix}\n </div>\n )}\n {/* @ts-expect-error TS can't properly calculate component's props here for some reason */}\n <Component\n ref={actualInputRef}\n className={classNames(styles.input, elementsClassNames?.input)}\n data-testid={testIds?.input}\n placeholder={placeholder}\n value={String(value)}\n readOnly={readOnly}\n onChange={onChangeHandler}\n disabled={disabled}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n autoFocus={autoFocus}\n {...componentProps}\n />\n {actualSuffix && (\n <div\n className={classNames(styles.affix, elementsClassNames?.suffix)}\n data-testid={testIds?.suffix}\n >\n {actualSuffix}\n </div>\n )}\n </div>\n </div>\n {message && (\n <Text\n size={12}\n color=\"T6\"\n tagName=\"div\"\n className={classNames(styles.message, elementsClassNames?.message)}\n testId={testIds?.message}\n >\n {message}\n </Text>\n )}\n </RootElement>\n );\n};\n"],"names":["SizeToClassMap","small","styles","medium","large","LabelPlacementToClassMap","top","start","labelStart","end","labelEnd","TextInputBase","_ref","testId","className","label","_ref$rootTagName","rootTagName","clearable","_ref$focusOnClear","focusOnClear","prefix","suffix","placeholder","_ref$size","size","_ref$value","value","readOnly","_ref$labelPlacement","labelPlacement","inputRef","disabled","autoFocus","message","onFocus","onBlur","onKeyUp","onKeyDown","status","onChange","elementsClassNames","inputContainerRef","Component","component","componentProps","rootRef","testIds","ownInputRef","useRef","actualInputRef","useCombineRefs","loadingIndicator","_jsx","LoaderCircular","undefined","onClearHandler","useCallback","event","_ownInputRef$current","_ownInputRef$current2","stopPropagation","preventDefault","current","focus","blur","onChangeHandler","target","clearButton","String","length","Tooltip","title","children","onClick","tabIndex","CloseSmallIcon","actualSuffix","_jsxs","_Fragment","ref","classNames","root","error","Text","color","labelAside","labelSpecialXs","Label","inputContainer","affix","_objectSpread","input","tagName"],"mappings":"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"}
1
+ {"version":3,"file":"TextInputBase.js","sources":["../../../src/componentsV2/TextInputBase/TextInputBase.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport {\n ChangeEvent,\n ChangeEventHandler,\n FocusEventHandler,\n forwardRef,\n KeyboardEventHandler,\n MouseEventHandler,\n MutableRefObject,\n ReactNode,\n Ref,\n RefCallback,\n useCallback,\n useRef,\n} from 'react';\n\nimport { Text } from '../Text';\nimport { LoaderCircular } from '../LoaderCircular';\n\nimport { Label } from './components';\n\nimport styles from './TextInputBase.scss';\nimport { CloseSmallIcon } from '../../icons';\nimport { Tooltip } from '../Tooltip';\nimport { useCombineRefs } from '../../effects';\n\ntype ComponentProvidedProps<FieldElement extends HTMLElement> = Partial<{\n className: string;\n 'data-testid': string;\n placeholder: string;\n value: string;\n readOnly: boolean;\n onChange: ChangeEventHandler<FieldElement>;\n disabled: boolean;\n autoFocus: boolean;\n onFocus: FocusEventHandler<FieldElement>;\n onBlur: FocusEventHandler<FieldElement>;\n onKeyUp: KeyboardEventHandler<FieldElement>;\n onKeyDown: KeyboardEventHandler<FieldElement>;\n}>;\n\nexport type ComponentProvidedPropNames = keyof ComponentProvidedProps<never>;\n\ntype EmptyObject = Record<string, never>;\n\nexport type TextInputBaseComponentProps<\n FieldElement extends HTMLElement,\n ComponentProps extends object = EmptyObject\n> = ComponentProvidedProps<FieldElement> & ComponentProps;\n\nexport type TextInputBaseProps<\n FieldElement extends HTMLElement,\n ComponentProps extends object = EmptyObject\n> = {\n label?: ReactNode;\n value?: string | number;\n size?: 'small' | 'medium' | 'large';\n labelPlacement?: 'top' | 'start' | 'end';\n /**\n * HTML tag of the root element. Use `div` when `prefix`/`suffix` contain interactive\n * controls — nested interactive elements inside a `label` are invalid for assistive tech\n */\n rootTagName?: 'label' | 'div';\n disabled?: boolean;\n\n status?: 'error' | 'loading';\n message?: ReactNode;\n onFocus?: FocusEventHandler<FieldElement>;\n onBlur?: FocusEventHandler<FieldElement>;\n onKeyDown?: KeyboardEventHandler<FieldElement>;\n onKeyUp?: KeyboardEventHandler<FieldElement>;\n placeholder?: string;\n prefix?: ReactNode;\n suffix?: ReactNode;\n /**\n * Ref to an underlying input element\n */\n inputRef?: RefCallback<FieldElement | null> | MutableRefObject<FieldElement | null> | null;\n /**\n * Ref to a container that contains input and its affixes\n * Useful for positioning of popovers\n */\n inputContainerRef?:\n | RefCallback<HTMLDivElement | null>\n | MutableRefObject<HTMLDivElement | null>\n | null;\n readOnly?: boolean;\n /**\n * If `true` will focus on the field on render. Useful for modals, but may be detrimental to a11y\n */\n autoFocus?: boolean;\n\n elementsClassNames?: Partial<{\n label: string;\n input: string;\n inputContainer: string;\n prefix: string;\n suffix: string;\n message: string;\n }>;\n\n onChange?: (\n value: string,\n changeReason: 'change' | 'clear',\n event?: ChangeEvent<FieldElement>\n ) => void;\n clearable?: boolean;\n /**\n * Controls if the field should keep/gain focus after \"Clear\" button is clicked\n */\n focusOnClear?: boolean;\n\n className?: string;\n testId?: string;\n\n /**\n * ⚠️⚠️⚠️ PRIVATE API. If you see it in docs you're doing something wrong\n */\n component: ReturnType<\n typeof forwardRef<FieldElement, TextInputBaseComponentProps<FieldElement, ComponentProps>>\n >;\n /**\n * ⚠️⚠️⚠️ PRIVATE API. If you see it in docs you're doing something wrong\n */\n componentProps?: ComponentProps;\n /**\n * ⚠️⚠️⚠️ PRIVATE API. If you see it in docs you're doing something wrong\n */\n testIds?: Partial<{\n input: string;\n label: string;\n prefix: string;\n suffix: string;\n clearButton: string;\n message: string;\n }>;\n};\n\nexport const SizeToClassMap: Record<Required<TextInputBaseProps<never, never>>['size'], string> = {\n small: styles.small,\n medium: styles.medium,\n large: styles.large,\n};\n\nconst LabelPlacementToClassMap: Record<\n Required<TextInputBaseProps<never, never>>['labelPlacement'],\n string\n> = {\n top: '',\n start: styles.labelStart,\n end: styles.labelEnd,\n};\n\nexport const TextInputBase = <\n FieldElement extends HTMLElement,\n ComponentProps extends object = EmptyObject\n>({\n testId,\n className,\n label,\n rootTagName = 'label',\n clearable,\n focusOnClear = true,\n prefix,\n suffix,\n placeholder,\n size = 'small',\n value = '',\n readOnly,\n labelPlacement = 'top',\n inputRef,\n disabled,\n autoFocus,\n message,\n onFocus,\n onBlur,\n onKeyUp,\n onKeyDown,\n status,\n onChange,\n elementsClassNames,\n inputContainerRef,\n component: Component,\n componentProps,\n rootRef,\n testIds,\n}: TextInputBaseProps<FieldElement, ComponentProps> & { rootRef: Ref<HTMLElement> }) => {\n const ownInputRef = useRef<FieldElement>();\n const actualInputRef = useCombineRefs(inputRef, ownInputRef);\n const loadingIndicator = status === 'loading' ? <LoaderCircular size=\"xs\" /> : undefined;\n const onClearHandler = useCallback<MouseEventHandler>(\n event => {\n event.stopPropagation();\n event.preventDefault();\n\n if (focusOnClear) {\n ownInputRef.current?.focus();\n } else {\n ownInputRef.current?.blur();\n }\n\n onChange?.('', 'clear');\n },\n [onChange, focusOnClear]\n );\n const onChangeHandler = useCallback<ChangeEventHandler<FieldElement>>(\n event => onChange?.((event.target as unknown as HTMLInputElement).value || '', 'change', event),\n [onChange]\n );\n\n const clearButton =\n !!clearable && String(value).length > 0 ? (\n <Tooltip title=\"Clear\">\n <button\n className={styles.clearButton}\n onClick={onClearHandler}\n tabIndex={-1}\n data-testid={testIds?.clearButton}\n >\n <CloseSmallIcon size={16} />\n </button>\n </Tooltip>\n ) : undefined;\n\n const actualSuffix =\n loadingIndicator || suffix || clearButton ? (\n <>\n {loadingIndicator}\n {clearButton}\n {suffix}\n </>\n ) : undefined;\n\n const RootElement = rootTagName;\n\n return (\n <RootElement\n ref={rootRef as never}\n className={classNames(\n styles.root,\n SizeToClassMap[size],\n status === 'error' && styles.error,\n disabled && styles.disabled,\n className\n )}\n data-testid={testId}\n >\n <div className={LabelPlacementToClassMap[labelPlacement]}>\n {label && (\n <Text\n size={12}\n color=\"T6\"\n className={classNames(\n styles.label,\n labelPlacement !== 'top' && styles.labelAside,\n labelPlacement !== 'top' && size === 'small' && styles.labelSpecialXs,\n elementsClassNames?.label\n )}\n testId={testIds?.label}\n >\n {typeof label === 'string' ? <Label>{label}</Label> : label}\n </Text>\n )}\n\n <div\n className={classNames(styles.inputContainer, elementsClassNames?.inputContainer)}\n ref={inputContainerRef}\n >\n {prefix && (\n <div\n className={classNames(styles.affix, elementsClassNames?.prefix)}\n data-testid={testIds?.prefix}\n >\n {prefix}\n </div>\n )}\n {/* @ts-expect-error TS can't properly calculate component's props here for some reason */}\n <Component\n ref={actualInputRef}\n className={classNames(styles.input, elementsClassNames?.input)}\n data-testid={testIds?.input}\n placeholder={placeholder}\n value={String(value)}\n readOnly={readOnly}\n onChange={onChangeHandler}\n disabled={disabled}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n autoFocus={autoFocus}\n {...componentProps}\n />\n {actualSuffix && (\n <div\n className={classNames(styles.affix, elementsClassNames?.suffix)}\n data-testid={testIds?.suffix}\n >\n {actualSuffix}\n </div>\n )}\n </div>\n </div>\n {message && (\n <Text\n size={12}\n color=\"T6\"\n tagName=\"div\"\n className={classNames(styles.message, elementsClassNames?.message)}\n testId={testIds?.message}\n >\n {message}\n </Text>\n )}\n </RootElement>\n );\n};\n"],"names":["SizeToClassMap","small","styles","medium","large","LabelPlacementToClassMap","top","start","labelStart","end","labelEnd","TextInputBase","_ref","testId","className","label","_ref$rootTagName","rootTagName","clearable","_ref$focusOnClear","focusOnClear","prefix","suffix","placeholder","_ref$size","size","_ref$value","value","readOnly","_ref$labelPlacement","labelPlacement","inputRef","disabled","autoFocus","message","onFocus","onBlur","onKeyUp","onKeyDown","status","onChange","elementsClassNames","inputContainerRef","Component","component","componentProps","rootRef","testIds","ownInputRef","useRef","actualInputRef","useCombineRefs","loadingIndicator","_jsx","LoaderCircular","undefined","onClearHandler","useCallback","event","_ownInputRef$current","_ownInputRef$current2","stopPropagation","preventDefault","current","focus","blur","onChangeHandler","target","clearButton","String","length","Tooltip","title","children","onClick","tabIndex","CloseSmallIcon","actualSuffix","_jsxs","_Fragment","ref","classNames","root","error","Text","color","labelAside","labelSpecialXs","Label","inputContainer","affix","_objectSpread","input","tagName"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/objectWithoutProperties";import s from"@babel/runtime/helpers/defineProperty";import t from"classnames";import{forwardRef as n,useRef as i,useMemo as c,useCallback as e}from"react";import"@babel/runtime/helpers/slicedToArray";import"querystring";import"lodash";import"../../clients/subscriptions/subscriptions-client.factory.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../clients/jsonApi/index.js";import"query-string";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../../components/GradientManager/configuration/constants.js";import"../../components/UserMention/utils/index.js";import"../../utils/convert.js";import"moment";import"../../utils/casing/validation.js";import"lodash/mean";import"../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"../../utils/drillstring/conversion.js";import"lodash/set";import"lodash/cloneDeep";import"@babel/runtime/helpers/toConsumableArray";import"lodash/isNumber";import"lodash/has";import"../../utils/ga.js";import"../../utils/goalsConfig/goalsConfig.js";import"../../utils/lasParser.js";import"../../utils/main.js";import"../../utils/metrics/metricsConfig.js";import"../../utils/mobileDetect.js";import"../../utils/feed.js";import"../../utils/reports.js";import"moment-timezone";import"@babel/runtime/helpers/typeof";import"../../utils/dashboardReports.js";import"../../utils/env.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../utils/jsonaDataFormatter.js";import"../../utils/bha.js";import"jsona";import"../../utils/charts/Styles.scss.js";import"../../utils/getSingleAsset.js";import"uuid";import"../../components/StatusBadge/constants.js";import"lodash/unset";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../AppCommonsProvider/AppCommonsProvider.js";import"../AppCommonsProvider/AppCommonsContext.js";import"../AppPanel/AppPanelsContext.js";import{useCombineRefs as r}from"../../effects/useCombineRefs.js";import{TextInputTestIds as m}from"./TextInputNext.constants.js";import{InfoIcon as p}from"../TextInputBase/components/InfoIcon.js";import{Label as u}from"../TextInputBase/components/Label.js";import{MessageWithIcon as a}from"../TextInputBase/components/MessageWithIcon.js";import{RequiredIndicator as l}from"../TextInputBase/components/RequiredIndicator.js";import{Unit as j}from"../TextInputBase/components/Unit.js";import I from"./TextInputNext.scss.js";import{UpOneIcon as d,DownOneIcon as f}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.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/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.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/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.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";import{TextInputBase as b}from"../TextInputBase/TextInputBase.js";import{jsx as h,jsxs as C,Fragment as g}from"react/jsx-runtime";var v=["value","htmlAttributes","inputType","inputMode","elementsClassNames","inputRef","suffix","onChange"];function x(o,s){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);s&&(n=n.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),t.push.apply(t,n)}return t}function O(o){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){s(o,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(n,s))}))}return o}var P=n((function(o,s){return h("input",O(O({},o),{},{ref:s}))})),y={input:m.Input,label:m.Label,prefix:m.Prefix,suffix:m.Suffix,clearButton:m.ClearButton,message:m.Message},A=n((function(s,n){var p=s.value,u=s.htmlAttributes,a=s.inputType,l=s.inputMode,j=s.elementsClassNames,x=s.inputRef,A=s.suffix,S=s.onChange,B=o(s,v),D=i(null),F=r(x,D),T=c((function(){return O(O({},u),{},{type:a,inputMode:l})}),[u,a,l]),M=e((function(o,s){o.stopPropagation(),o.preventDefault(),D.current&&("stepUp"===s?D.current.stepUp():D.current.stepDown(),D.current.dispatchEvent(new Event("change",{bubbles:!0})))}),[]),R=e((function(o){return M(o,"stepUp")}),[M]),w=e((function(o){return M(o,"stepDown")}),[M]),N="number"===a?C("div",{className:null==j?void 0:j.numberStepButtons,children:[h("button",{tabIndex:-1,onClick:R,className:t(I.numberStepButton,I.up),"data-testid":m.StepUpButton,children:h(d,{theme:"filled",size:14,className:I.numberStepButtonIcon})}),h("button",{tabIndex:-1,onClick:w,className:t(I.numberStepButton,I.down),"data-testid":m.StepDownButton,children:h(f,{theme:"filled",size:14,className:I.numberStepButtonIcon})})]}):void 0,k=A||N?C(g,{children:[A,N]}):void 0;return h(b,O(O({},B),{},{value:p,rootRef:n,suffix:k,inputRef:F,onChange:S,component:P,componentProps:T,elementsClassNames:j,testIds:y}))}));A.InfoIcon=p,A.MessageWithIcon=a,A.RequiredIndicator=l,A.Unit=j,A.Label=u;var S=A;export{S as TextInputNext};
1
+ import o from"@babel/runtime/helpers/objectWithoutProperties";import s from"@babel/runtime/helpers/defineProperty";import t from"classnames";import{forwardRef as n,useRef as i,useMemo as c,useCallback as e}from"react";import"@babel/runtime/helpers/slicedToArray";import"querystring";import"lodash";import"../../clients/subscriptions/subscriptions-client.factory.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../clients/jsonApi/index.js";import"query-string";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../../components/GradientManager/configuration/constants.js";import"../../components/UserMention/utils/index.js";import"../../utils/convert.js";import"moment";import"../../utils/casing/validation.js";import"lodash/mean";import"../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"../../utils/drillstring/conversion.js";import"lodash/set";import"lodash/cloneDeep";import"@babel/runtime/helpers/toConsumableArray";import"lodash/isNumber";import"lodash/has";import"../../utils/ga.js";import"../../utils/goalsConfig/goalsConfig.js";import"../../utils/lasParser.js";import"../../utils/main.js";import"../../utils/metrics/metricsConfig.js";import"../../utils/mobileDetect.js";import"../../utils/feed.js";import"../../utils/reports.js";import"moment-timezone";import"@babel/runtime/helpers/typeof";import"../../utils/dashboardReports.js";import"../../utils/env.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../utils/jsonaDataFormatter.js";import"../../utils/bha.js";import"jsona";import"../../utils/shareRecentRequest.js";import"../../utils/charts/Styles.scss.js";import"../../utils/getSingleAsset.js";import"uuid";import"../../components/StatusBadge/constants.js";import"lodash/unset";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../AppCommonsProvider/AppCommonsProvider.js";import"../AppCommonsProvider/AppCommonsContext.js";import"../AppPanel/AppPanelsContext.js";import{useCombineRefs as r}from"../../effects/useCombineRefs.js";import{TextInputTestIds as m}from"./TextInputNext.constants.js";import{InfoIcon as p}from"../TextInputBase/components/InfoIcon.js";import{Label as u}from"../TextInputBase/components/Label.js";import{MessageWithIcon as a}from"../TextInputBase/components/MessageWithIcon.js";import{RequiredIndicator as l}from"../TextInputBase/components/RequiredIndicator.js";import{Unit as j}from"../TextInputBase/components/Unit.js";import I from"./TextInputNext.scss.js";import{UpOneIcon as d,DownOneIcon as f}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.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/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.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/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.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";import{TextInputBase as b}from"../TextInputBase/TextInputBase.js";import{jsx as h,jsxs as C,Fragment as g}from"react/jsx-runtime";var v=["value","htmlAttributes","inputType","inputMode","elementsClassNames","inputRef","suffix","onChange"];function x(o,s){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);s&&(n=n.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),t.push.apply(t,n)}return t}function O(o){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){s(o,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(n,s))}))}return o}var P=n((function(o,s){return h("input",O(O({},o),{},{ref:s}))})),y={input:m.Input,label:m.Label,prefix:m.Prefix,suffix:m.Suffix,clearButton:m.ClearButton,message:m.Message},A=n((function(s,n){var p=s.value,u=s.htmlAttributes,a=s.inputType,l=s.inputMode,j=s.elementsClassNames,x=s.inputRef,A=s.suffix,S=s.onChange,B=o(s,v),D=i(null),F=r(x,D),T=c((function(){return O(O({},u),{},{type:a,inputMode:l})}),[u,a,l]),M=e((function(o,s){o.stopPropagation(),o.preventDefault(),D.current&&("stepUp"===s?D.current.stepUp():D.current.stepDown(),D.current.dispatchEvent(new Event("change",{bubbles:!0})))}),[]),R=e((function(o){return M(o,"stepUp")}),[M]),w=e((function(o){return M(o,"stepDown")}),[M]),N="number"===a?C("div",{className:null==j?void 0:j.numberStepButtons,children:[h("button",{tabIndex:-1,onClick:R,className:t(I.numberStepButton,I.up),"data-testid":m.StepUpButton,children:h(d,{theme:"filled",size:14,className:I.numberStepButtonIcon})}),h("button",{tabIndex:-1,onClick:w,className:t(I.numberStepButton,I.down),"data-testid":m.StepDownButton,children:h(f,{theme:"filled",size:14,className:I.numberStepButtonIcon})})]}):void 0,k=A||N?C(g,{children:[A,N]}):void 0;return h(b,O(O({},B),{},{value:p,rootRef:n,suffix:k,inputRef:F,onChange:S,component:P,componentProps:T,elementsClassNames:j,testIds:y}))}));A.InfoIcon=p,A.MessageWithIcon=a,A.RequiredIndicator=l,A.Unit=j,A.Label=u;var S=A;export{S as TextInputNext};
2
2
  //# sourceMappingURL=TextInputNext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInputNext.js","sources":["../../../src/componentsV2/TextInputNext/TextInputNext.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport {\n ChangeEvent,\n forwardRef,\n HTMLAttributes,\n InputHTMLAttributes,\n MouseEvent,\n MouseEventHandler,\n useCallback,\n useMemo,\n useRef,\n} from 'react';\nimport { useCombineRefs } from '../../effects';\n\nimport { TextInputTestIds } from './TextInputNext.constants';\nimport {\n InfoIcon,\n Label,\n MessageWithIcon,\n RequiredIndicator,\n Unit,\n} from '../TextInputBase/components';\n\nimport styles from './TextInputNext.scss';\n\nimport { DownOneIcon, UpOneIcon } from '~/icons';\nimport { ComponentProvidedPropNames, TextInputBase, TextInputBaseProps } from '../TextInputBase';\n\ntype AdditionalFieldProps = Omit<\n Partial<InputHTMLAttributes<HTMLInputElement>>,\n ComponentProvidedPropNames\n>;\n\ntype BaseProps = TextInputBaseProps<HTMLInputElement, AdditionalFieldProps>;\n\nconst Input: BaseProps['component'] = forwardRef((props, ref) => <input {...props} ref={ref} />);\n\nconst testIds = {\n input: TextInputTestIds.Input,\n label: TextInputTestIds.Label,\n prefix: TextInputTestIds.Prefix,\n suffix: TextInputTestIds.Suffix,\n clearButton: TextInputTestIds.ClearButton,\n message: TextInputTestIds.Message,\n};\n\nexport type TextInputChangeReason = 'clear' | 'change';\n\nexport type TextInputNextProps = Omit<\n BaseProps,\n 'component' | 'componentProps' | 'elementsClassNames' | 'onChange' | 'testIds'\n> & {\n /**\n * Underlying `input`'s element `type` attribute\n */\n inputType?: 'text' | 'email' | 'password' | 'number' | 'phone' | 'url' | 'search';\n /**\n * Input mode that hints at the type of data that might be entered by the user while editing the element or its contents. This allows a browser to display an appropriate virtual keyboard.\n */\n inputMode?: HTMLAttributes<HTMLInputElement>['inputMode'];\n /**\n * Escape hatch to provide arbitrary html attributes to `input`\n */\n htmlAttributes?: Omit<\n Partial<InputHTMLAttributes<HTMLInputElement>>,\n ComponentProvidedPropNames | 'type' | 'inputMode'\n >;\n\n /**\n * An escape hatch to tweak styling of internal elements\n */\n elementsClassNames?: BaseProps['elementsClassNames'] & {\n numberStepButtons?: string;\n };\n\n /**\n * Change handler. `TextInputChangeReason` utility type is provided\n * @param value\n * @param changeReason\n * @param event is not present when input is cleared via clear button\n */\n onChange?: (\n value: string,\n changeReason: TextInputChangeReason,\n event?: ChangeEvent<HTMLInputElement>\n ) => void;\n};\n\nconst TextInputNextBase = forwardRef<HTMLElement, TextInputNextProps>(\n (\n {\n value,\n htmlAttributes,\n inputType,\n inputMode,\n elementsClassNames,\n inputRef,\n suffix,\n onChange,\n ...restProps\n },\n ref\n ) => {\n const ownInputRef = useRef<HTMLInputElement | null>(null);\n const actualInputRef = useCombineRefs(inputRef, ownInputRef);\n\n const componentProps = useMemo<AdditionalFieldProps>(\n () => ({ ...htmlAttributes, type: inputType, inputMode }),\n [htmlAttributes, inputType, inputMode]\n );\n\n const onNumberStepHandler = useCallback(\n (event: MouseEvent, direction: 'stepUp' | 'stepDown') => {\n event.stopPropagation();\n event.preventDefault();\n\n if (ownInputRef.current) {\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepUp\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepDown\n // Do same things as built-in arrows, but don't trigger `change` event to be picked up by React\n if (direction === 'stepUp') {\n ownInputRef.current.stepUp();\n } else {\n ownInputRef.current.stepDown();\n }\n\n ownInputRef.current.dispatchEvent(new Event('change', { bubbles: true }));\n }\n },\n []\n );\n\n const onNumberStepUpHandler = useCallback<MouseEventHandler>(\n event => onNumberStepHandler(event, 'stepUp'),\n [onNumberStepHandler]\n );\n\n const onNumberStepDownHandler = useCallback<MouseEventHandler>(\n event => onNumberStepHandler(event, 'stepDown'),\n [onNumberStepHandler]\n );\n\n const numberControls =\n inputType === 'number' ? (\n <div className={elementsClassNames?.numberStepButtons}>\n <button\n tabIndex={-1}\n onClick={onNumberStepUpHandler}\n className={classNames(styles.numberStepButton, styles.up)}\n data-testid={TextInputTestIds.StepUpButton}\n >\n <UpOneIcon theme=\"filled\" size={14} className={styles.numberStepButtonIcon} />\n </button>\n <button\n tabIndex={-1}\n onClick={onNumberStepDownHandler}\n className={classNames(styles.numberStepButton, styles.down)}\n data-testid={TextInputTestIds.StepDownButton}\n >\n <DownOneIcon theme=\"filled\" size={14} className={styles.numberStepButtonIcon} />\n </button>\n </div>\n ) : undefined;\n\n const actualSuffix =\n suffix || numberControls ? (\n <>\n {suffix}\n {numberControls}\n </>\n ) : undefined;\n\n return (\n <TextInputBase\n {...restProps}\n value={value}\n rootRef={ref}\n suffix={actualSuffix}\n inputRef={actualInputRef}\n onChange={onChange}\n component={Input}\n componentProps={componentProps}\n elementsClassNames={elementsClassNames}\n testIds={testIds}\n />\n );\n }\n);\n\ntype TextInputNextType = typeof TextInputNextBase & {\n InfoIcon: typeof InfoIcon;\n MessageWithIcon: typeof MessageWithIcon;\n RequiredIndicator: typeof RequiredIndicator;\n Unit: typeof Unit;\n Label: typeof Label;\n};\n\n(TextInputNextBase as TextInputNextType).InfoIcon = InfoIcon;\n(TextInputNextBase as TextInputNextType).MessageWithIcon = MessageWithIcon;\n(TextInputNextBase as TextInputNextType).RequiredIndicator = RequiredIndicator;\n(TextInputNextBase as TextInputNextType).Unit = Unit;\n(TextInputNextBase as TextInputNextType).Label = Label;\n\nexport const TextInputNext = TextInputNextBase as TextInputNextType;\n"],"names":["Input","forwardRef","props","ref","_jsx","testIds","input","TextInputTestIds","label","Label","prefix","Prefix","suffix","Suffix","clearButton","ClearButton","message","Message","TextInputNextBase","_ref","value","htmlAttributes","inputType","inputMode","elementsClassNames","inputRef","onChange","restProps","_objectWithoutProperties","_excluded","ownInputRef","useRef","actualInputRef","useCombineRefs","componentProps","useMemo","_objectSpread","type","onNumberStepHandler","useCallback","event","direction","stopPropagation","preventDefault","current","stepUp","stepDown","dispatchEvent","Event","bubbles","onNumberStepUpHandler","onNumberStepDownHandler","numberControls","_jsxs","className","numberStepButtons","children","tabIndex","onClick","classNames","styles","numberStepButton","up","StepUpButton","UpOneIcon","theme","size","numberStepButtonIcon","down","StepDownButton","DownOneIcon","undefined","actualSuffix","_Fragment","TextInputBase","rootRef","component","InfoIcon","MessageWithIcon","RequiredIndicator","Unit","TextInputNext"],"mappings":"0sPAmCA,IAAMA,EAAgCC,GAAW,SAACC,EAAOC,GAAG,OAAKC,iBAAWF,GAAK,GAAA,CAAEC,IAAKA,IAAO,IAEzFE,EAAU,CACdC,MAAOC,EAAiBP,MACxBQ,MAAOD,EAAiBE,MACxBC,OAAQH,EAAiBI,OACzBC,OAAQL,EAAiBM,OACzBC,YAAaP,EAAiBQ,YAC9BC,QAAST,EAAiBU,SA6CtBC,EAAoBjB,GACxB,SAAAkB,EAYEhB,GACG,IAXDiB,IAAAA,MACAC,IAAAA,eACAC,IAAAA,UACAC,IAAAA,UACAC,IAAAA,mBACAC,IAAAA,SACAb,IAAAA,OACAc,IAAAA,SACGC,EAASC,EAAAT,EAAAU,GAIRC,EAAcC,EAAgC,MAC9CC,EAAiBC,EAAeR,EAAUK,GAE1CI,EAAiBC,GACrB,WAAA,OAAAC,EAAAA,EAAA,CAAA,EAAYf,GAAc,CAAA,EAAA,CAAEgB,KAAMf,EAAWC,UAAAA,GAAY,GACzD,CAACF,EAAgBC,EAAWC,IAGxBe,EAAsBC,GAC1B,SAACC,EAAmBC,GAClBD,EAAME,kBACNF,EAAMG,iBAEFb,EAAYc,UAII,WAAdH,EACFX,EAAYc,QAAQC,SAEpBf,EAAYc,QAAQE,WAGtBhB,EAAYc,QAAQG,cAAc,IAAIC,MAAM,SAAU,CAAEC,SAAS,KAEpE,GACD,IAGIC,EAAwBX,GAC5B,SAAAC,GAAK,OAAIF,EAAoBE,EAAO,YACpC,CAACF,IAGGa,EAA0BZ,GAC9B,SAAAC,GAAK,OAAIF,EAAoBE,EAAO,cACpC,CAACF,IAGGc,EACU,WAAd9B,EACE+B,EAAA,MAAA,CAAKC,UAAW9B,aAAAA,EAAAA,EAAoB+B,kBAAkBC,SACpD,CAAApD,EAAA,SAAA,CACEqD,UAAW,EACXC,QAASR,EACTI,UAAWK,EAAWC,EAAOC,iBAAkBD,EAAOE,IACtD,cAAavD,EAAiBwD,aAAaP,SAE3CpD,EAAC4D,EAAS,CAACC,MAAM,SAASC,KAAM,GAAIZ,UAAWM,EAAOO,yBAExD/D,EAAA,SAAA,CACEqD,UAAW,EACXC,QAASP,EACTG,UAAWK,EAAWC,EAAOC,iBAAkBD,EAAOQ,MACtD,cAAa7D,EAAiB8D,eAAeb,SAE7CpD,EAACkE,EAAW,CAACL,MAAM,SAASC,KAAM,GAAIZ,UAAWM,EAAOO,iCAG1DI,EAEAC,EACJ5D,GAAUwC,EACRC,EAAAoB,EAAA,CAAAjB,SACG5C,CAAAA,EACAwC,UAEDmB,EAEN,OACEnE,EAACsE,EAAatC,EAAAA,EAAA,GACRT,GAAS,GAAA,CACbP,MAAOA,EACPuD,QAASxE,EACTS,OAAQ4D,EACR/C,SAAUO,EACVN,SAAUA,EACVkD,UAAW5E,EACXkC,eAAgBA,EAChBV,mBAAoBA,EACpBnB,QAASA,IAGf,IAWDa,EAAwC2D,SAAWA,EACnD3D,EAAwC4D,gBAAkBA,EAC1D5D,EAAwC6D,kBAAoBA,EAC5D7D,EAAwC8D,KAAOA,EAC/C9D,EAAwCT,MAAQA,EAE1C,IAAMwE,EAAgB/D"}
1
+ {"version":3,"file":"TextInputNext.js","sources":["../../../src/componentsV2/TextInputNext/TextInputNext.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport {\n ChangeEvent,\n forwardRef,\n HTMLAttributes,\n InputHTMLAttributes,\n MouseEvent,\n MouseEventHandler,\n useCallback,\n useMemo,\n useRef,\n} from 'react';\nimport { useCombineRefs } from '../../effects';\n\nimport { TextInputTestIds } from './TextInputNext.constants';\nimport {\n InfoIcon,\n Label,\n MessageWithIcon,\n RequiredIndicator,\n Unit,\n} from '../TextInputBase/components';\n\nimport styles from './TextInputNext.scss';\n\nimport { DownOneIcon, UpOneIcon } from '~/icons';\nimport { ComponentProvidedPropNames, TextInputBase, TextInputBaseProps } from '../TextInputBase';\n\ntype AdditionalFieldProps = Omit<\n Partial<InputHTMLAttributes<HTMLInputElement>>,\n ComponentProvidedPropNames\n>;\n\ntype BaseProps = TextInputBaseProps<HTMLInputElement, AdditionalFieldProps>;\n\nconst Input: BaseProps['component'] = forwardRef((props, ref) => <input {...props} ref={ref} />);\n\nconst testIds = {\n input: TextInputTestIds.Input,\n label: TextInputTestIds.Label,\n prefix: TextInputTestIds.Prefix,\n suffix: TextInputTestIds.Suffix,\n clearButton: TextInputTestIds.ClearButton,\n message: TextInputTestIds.Message,\n};\n\nexport type TextInputChangeReason = 'clear' | 'change';\n\nexport type TextInputNextProps = Omit<\n BaseProps,\n 'component' | 'componentProps' | 'elementsClassNames' | 'onChange' | 'testIds'\n> & {\n /**\n * Underlying `input`'s element `type` attribute\n */\n inputType?: 'text' | 'email' | 'password' | 'number' | 'phone' | 'url' | 'search';\n /**\n * Input mode that hints at the type of data that might be entered by the user while editing the element or its contents. This allows a browser to display an appropriate virtual keyboard.\n */\n inputMode?: HTMLAttributes<HTMLInputElement>['inputMode'];\n /**\n * Escape hatch to provide arbitrary html attributes to `input`\n */\n htmlAttributes?: Omit<\n Partial<InputHTMLAttributes<HTMLInputElement>>,\n ComponentProvidedPropNames | 'type' | 'inputMode'\n >;\n\n /**\n * An escape hatch to tweak styling of internal elements\n */\n elementsClassNames?: BaseProps['elementsClassNames'] & {\n numberStepButtons?: string;\n };\n\n /**\n * Change handler. `TextInputChangeReason` utility type is provided\n * @param value\n * @param changeReason\n * @param event is not present when input is cleared via clear button\n */\n onChange?: (\n value: string,\n changeReason: TextInputChangeReason,\n event?: ChangeEvent<HTMLInputElement>\n ) => void;\n};\n\nconst TextInputNextBase = forwardRef<HTMLElement, TextInputNextProps>(\n (\n {\n value,\n htmlAttributes,\n inputType,\n inputMode,\n elementsClassNames,\n inputRef,\n suffix,\n onChange,\n ...restProps\n },\n ref\n ) => {\n const ownInputRef = useRef<HTMLInputElement | null>(null);\n const actualInputRef = useCombineRefs(inputRef, ownInputRef);\n\n const componentProps = useMemo<AdditionalFieldProps>(\n () => ({ ...htmlAttributes, type: inputType, inputMode }),\n [htmlAttributes, inputType, inputMode]\n );\n\n const onNumberStepHandler = useCallback(\n (event: MouseEvent, direction: 'stepUp' | 'stepDown') => {\n event.stopPropagation();\n event.preventDefault();\n\n if (ownInputRef.current) {\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepUp\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepDown\n // Do same things as built-in arrows, but don't trigger `change` event to be picked up by React\n if (direction === 'stepUp') {\n ownInputRef.current.stepUp();\n } else {\n ownInputRef.current.stepDown();\n }\n\n ownInputRef.current.dispatchEvent(new Event('change', { bubbles: true }));\n }\n },\n []\n );\n\n const onNumberStepUpHandler = useCallback<MouseEventHandler>(\n event => onNumberStepHandler(event, 'stepUp'),\n [onNumberStepHandler]\n );\n\n const onNumberStepDownHandler = useCallback<MouseEventHandler>(\n event => onNumberStepHandler(event, 'stepDown'),\n [onNumberStepHandler]\n );\n\n const numberControls =\n inputType === 'number' ? (\n <div className={elementsClassNames?.numberStepButtons}>\n <button\n tabIndex={-1}\n onClick={onNumberStepUpHandler}\n className={classNames(styles.numberStepButton, styles.up)}\n data-testid={TextInputTestIds.StepUpButton}\n >\n <UpOneIcon theme=\"filled\" size={14} className={styles.numberStepButtonIcon} />\n </button>\n <button\n tabIndex={-1}\n onClick={onNumberStepDownHandler}\n className={classNames(styles.numberStepButton, styles.down)}\n data-testid={TextInputTestIds.StepDownButton}\n >\n <DownOneIcon theme=\"filled\" size={14} className={styles.numberStepButtonIcon} />\n </button>\n </div>\n ) : undefined;\n\n const actualSuffix =\n suffix || numberControls ? (\n <>\n {suffix}\n {numberControls}\n </>\n ) : undefined;\n\n return (\n <TextInputBase\n {...restProps}\n value={value}\n rootRef={ref}\n suffix={actualSuffix}\n inputRef={actualInputRef}\n onChange={onChange}\n component={Input}\n componentProps={componentProps}\n elementsClassNames={elementsClassNames}\n testIds={testIds}\n />\n );\n }\n);\n\ntype TextInputNextType = typeof TextInputNextBase & {\n InfoIcon: typeof InfoIcon;\n MessageWithIcon: typeof MessageWithIcon;\n RequiredIndicator: typeof RequiredIndicator;\n Unit: typeof Unit;\n Label: typeof Label;\n};\n\n(TextInputNextBase as TextInputNextType).InfoIcon = InfoIcon;\n(TextInputNextBase as TextInputNextType).MessageWithIcon = MessageWithIcon;\n(TextInputNextBase as TextInputNextType).RequiredIndicator = RequiredIndicator;\n(TextInputNextBase as TextInputNextType).Unit = Unit;\n(TextInputNextBase as TextInputNextType).Label = Label;\n\nexport const TextInputNext = TextInputNextBase as TextInputNextType;\n"],"names":["Input","forwardRef","props","ref","_jsx","testIds","input","TextInputTestIds","label","Label","prefix","Prefix","suffix","Suffix","clearButton","ClearButton","message","Message","TextInputNextBase","_ref","value","htmlAttributes","inputType","inputMode","elementsClassNames","inputRef","onChange","restProps","_objectWithoutProperties","_excluded","ownInputRef","useRef","actualInputRef","useCombineRefs","componentProps","useMemo","_objectSpread","type","onNumberStepHandler","useCallback","event","direction","stopPropagation","preventDefault","current","stepUp","stepDown","dispatchEvent","Event","bubbles","onNumberStepUpHandler","onNumberStepDownHandler","numberControls","_jsxs","className","numberStepButtons","children","tabIndex","onClick","classNames","styles","numberStepButton","up","StepUpButton","UpOneIcon","theme","size","numberStepButtonIcon","down","StepDownButton","DownOneIcon","undefined","actualSuffix","_Fragment","TextInputBase","rootRef","component","InfoIcon","MessageWithIcon","RequiredIndicator","Unit","TextInputNext"],"mappings":"ovPAmCA,IAAMA,EAAgCC,GAAW,SAACC,EAAOC,GAAG,OAAKC,iBAAWF,GAAK,GAAA,CAAEC,IAAKA,IAAO,IAEzFE,EAAU,CACdC,MAAOC,EAAiBP,MACxBQ,MAAOD,EAAiBE,MACxBC,OAAQH,EAAiBI,OACzBC,OAAQL,EAAiBM,OACzBC,YAAaP,EAAiBQ,YAC9BC,QAAST,EAAiBU,SA6CtBC,EAAoBjB,GACxB,SAAAkB,EAYEhB,GACG,IAXDiB,IAAAA,MACAC,IAAAA,eACAC,IAAAA,UACAC,IAAAA,UACAC,IAAAA,mBACAC,IAAAA,SACAb,IAAAA,OACAc,IAAAA,SACGC,EAASC,EAAAT,EAAAU,GAIRC,EAAcC,EAAgC,MAC9CC,EAAiBC,EAAeR,EAAUK,GAE1CI,EAAiBC,GACrB,WAAA,OAAAC,EAAAA,EAAA,CAAA,EAAYf,GAAc,CAAA,EAAA,CAAEgB,KAAMf,EAAWC,UAAAA,GAAY,GACzD,CAACF,EAAgBC,EAAWC,IAGxBe,EAAsBC,GAC1B,SAACC,EAAmBC,GAClBD,EAAME,kBACNF,EAAMG,iBAEFb,EAAYc,UAII,WAAdH,EACFX,EAAYc,QAAQC,SAEpBf,EAAYc,QAAQE,WAGtBhB,EAAYc,QAAQG,cAAc,IAAIC,MAAM,SAAU,CAAEC,SAAS,KAEpE,GACD,IAGIC,EAAwBX,GAC5B,SAAAC,GAAK,OAAIF,EAAoBE,EAAO,YACpC,CAACF,IAGGa,EAA0BZ,GAC9B,SAAAC,GAAK,OAAIF,EAAoBE,EAAO,cACpC,CAACF,IAGGc,EACU,WAAd9B,EACE+B,EAAA,MAAA,CAAKC,UAAW9B,aAAAA,EAAAA,EAAoB+B,kBAAkBC,SACpD,CAAApD,EAAA,SAAA,CACEqD,UAAW,EACXC,QAASR,EACTI,UAAWK,EAAWC,EAAOC,iBAAkBD,EAAOE,IACtD,cAAavD,EAAiBwD,aAAaP,SAE3CpD,EAAC4D,EAAS,CAACC,MAAM,SAASC,KAAM,GAAIZ,UAAWM,EAAOO,yBAExD/D,EAAA,SAAA,CACEqD,UAAW,EACXC,QAASP,EACTG,UAAWK,EAAWC,EAAOC,iBAAkBD,EAAOQ,MACtD,cAAa7D,EAAiB8D,eAAeb,SAE7CpD,EAACkE,EAAW,CAACL,MAAM,SAASC,KAAM,GAAIZ,UAAWM,EAAOO,iCAG1DI,EAEAC,EACJ5D,GAAUwC,EACRC,EAAAoB,EAAA,CAAAjB,SACG5C,CAAAA,EACAwC,UAEDmB,EAEN,OACEnE,EAACsE,EAAatC,EAAAA,EAAA,GACRT,GAAS,GAAA,CACbP,MAAOA,EACPuD,QAASxE,EACTS,OAAQ4D,EACR/C,SAAUO,EACVN,SAAUA,EACVkD,UAAW5E,EACXkC,eAAgBA,EAChBV,mBAAoBA,EACpBnB,QAASA,IAGf,IAWDa,EAAwC2D,SAAWA,EACnD3D,EAAwC4D,gBAAkBA,EAC1D5D,EAAwC6D,kBAAoBA,EAC5D7D,EAAwC8D,KAAOA,EAC/C9D,EAAwCT,MAAQA,EAE1C,IAAMwE,EAAgB/D"}
@@ -1,2 +1,2 @@
1
- export{Text}from"./Text/Text.js";export{Grid}from"./Grid/Grid.js";export{Cell}from"./Grid/Cell.js";export{Header}from"./Header/Header.js";export{Button}from"./Button/Button.js";export{ButtonIcon}from"./ButtonIcon/ButtonIcon.js";export{Tooltip}from"./Tooltip/Tooltip.js";export{Popover}from"./Popover/Popover.js";export{PopoverPanel,PopoverPanelBase}from"./PopoverPanel/PopoverPanel.js";export{Radio}from"./Radio/Radio.js";export{RadioGroup}from"./RadioGroup/RadioGroup.js";export{Checkbox}from"./Checkbox/Checkbox.js";export{CheckboxGroup}from"./CheckboxGroup/CheckboxGroup.js";export{TextInput}from"./TextInput/TextInput.js";export{TextInputNext}from"./TextInputNext/TextInputNext.js";export{TextArea}from"./TextArea/TextArea.js";export{Label}from"./Label/Label.js";export{TextEndTruncated}from"./TextEndTruncated/TextEndTruncated.js";export{TextMiddleTruncated}from"./TextMiddleTruncated/TextMiddleTruncated.js";export{TextMiddleTruncatedTestIds}from"./TextMiddleTruncated/TextMiddleTruncated.constants.js";export{TextLink}from"./TextLink/TextLink.js";export{LoaderCircular}from"./LoaderCircular/LoaderCircular.js";export{Chip}from"./Chip/Chip.js";export{ChipAlert}from"./ChipAlert/ChipAlert.js";export{ChipIndicator}from"./ChipIndicator/ChipIndicator.js";export{Avatar}from"./Avatar/Avatar.js";export{AvatarGroup}from"./AvatarGroup/AvatarGroup.js";export{ToggleButtons}from"./ToggleButtons/ToggleButtons.js";export{Paper}from"./Paper/Paper.js";export{ModalWindow}from"./ModalWindow/ModalWindow.js";export{Modal}from"./Modal/Modal.js";export{Menu}from"./Menu/Menu.js";export{Hint}from"./Hint/Hint.js";export{Counter}from"./Counter/Counter.js";export{BadgeCounter}from"./BadgeCounter/BadgeCounter.js";export{TemplatesControl}from"./TemplatesControl/TemplatesControl.js";export{getTemplatesControlStoreApi}from"./TemplatesControl/Store/Store.js";import"./TemplatesControl/Store/utils.js";export{BadgeDot}from"./BadgeDot/BadgeDot.js";export{LoaderLinear}from"./LoaderLinear/LoaderLinear.js";export{LoaderLogo}from"./LoaderLogo/LoaderLogo.js";export{Switch}from"./Switch/Switch.js";export{Tabs}from"./Tabs/Tabs.js";export{EmptyState}from"./EmptyState/EmptyState.js";export{FileIcon}from"./FileIcon/FileIcon.js";export{Tag}from"./Tag/Tag.js";export{FilesDropzone}from"./FilesDropzone/FilesDropzone.js";export{FilesLoader}from"./FilesLoader/FilesLoader.js";export{FilesProcessor}from"./FilesProcessor/FilesProcessor.js";export{Skeleton}from"./Skeleton/Skeleton.js";export{CopyToClipboard}from"./CopyToClipboard/CopyToClipboard.js";export{Stepper}from"./Stepper/Stepper.js";export{ButtonLive}from"./ButtonLive/ButtonLive.js";export{ButtonText}from"./ButtonText/ButtonText.js";export{IndicatorLive}from"./IndicatorLive/IndicatorLive.js";export{Accordion}from"./Accordion/Accordion.js";export{Breadcrumbs}from"./Breadcrumbs/Breadcrumbs.js";export{BadgeComment}from"./BadgeComment/BadgeComment.js";export{AppContainer}from"./AppContainer/AppContainer.js";export{AppContainerTestIds}from"./AppContainer/AppContainer.constants.js";export{AppFooter}from"./AppFooter/AppFooter.js";export{AppHeader}from"./AppHeader/AppHeader.js";export{AppHeaderTestIds}from"./AppHeader/AppHeader.constants.js";export{OffsetWellsButton}from"./OffsetWellsButton/OffsetWellsButton.js";export{PadModeSelect}from"./PadModeSelect/PadModeSelect.js";export{PadModeSelectTestIds}from"./PadModeSelect/PadModeSelect.constants.js";export{ChartAxisExtreme}from"./ChartAxisExtreme/ChartAxisExtreme.js";export{Popper}from"./Popper/Popper.js";export{Autocomplete,AutocompleteNext}from"./Autocomplete/Autocomplete.js";export{Select}from"./Select/Select.js";export{UniversalLink}from"./UniversalLink/UniversalLink.js";export{AppSettingsDivider}from"./AppSettingsDivider/AppSettingsDivider.js";export{WellArchivedMessage,WellArchivedMessageBase}from"./WellArchivedMessage/WellArchivedMessage.js";export{DatePicker,DatePickerNext,getActiveStartDate}from"./DatePicker/DatePicker.js";export{DragHandle}from"./DragHandle/DragHandle.js";export{CompletionsOffsetWellPicker}from"./CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";export{Slider}from"./Slider/Slider.js";export{SliderAdvanced}from"./SliderAdvanced/SliderAdvanced.js";export{ColorPicker}from"./ColorPicker/ColorPicker.js";export{AppPanel}from"./AppPanel/AppPanel.js";export{ChartHelper}from"./ChartHelper/ChartHelper.js";export{Hotkey}from"./Hotkey/Hotkey.js";export{HideInNativeApp}from"./HideInNativeApp/index.js";export{InterventionEventSelector}from"./InterventionEventSelector/InterventionEventSelector.js";export{interventionUnitEventsQueryKeys,useInterventionUnitEvents}from"./InterventionEventSelector/useInterventionUnitEvents.js";export{ALL_EVENTS_LABEL,getEventChipLabel}from"./InterventionEventSelector/utils.js";
1
+ export{Text}from"./Text/Text.js";export{Grid}from"./Grid/Grid.js";export{Cell}from"./Grid/Cell.js";export{Header}from"./Header/Header.js";export{Button}from"./Button/Button.js";export{ButtonIcon}from"./ButtonIcon/ButtonIcon.js";export{Tooltip}from"./Tooltip/Tooltip.js";export{Popover}from"./Popover/Popover.js";export{PopoverPanel,PopoverPanelBase}from"./PopoverPanel/PopoverPanel.js";export{Radio}from"./Radio/Radio.js";export{RadioGroup}from"./RadioGroup/RadioGroup.js";export{Checkbox}from"./Checkbox/Checkbox.js";export{CheckboxGroup}from"./CheckboxGroup/CheckboxGroup.js";export{TextInput}from"./TextInput/TextInput.js";export{TextInputNext}from"./TextInputNext/TextInputNext.js";export{TextArea}from"./TextArea/TextArea.js";export{Label}from"./Label/Label.js";export{TextEndTruncated}from"./TextEndTruncated/TextEndTruncated.js";export{TextMiddleTruncated}from"./TextMiddleTruncated/TextMiddleTruncated.js";export{TextMiddleTruncatedTestIds}from"./TextMiddleTruncated/TextMiddleTruncated.constants.js";export{TextLink}from"./TextLink/TextLink.js";export{LoaderCircular}from"./LoaderCircular/LoaderCircular.js";export{Chip}from"./Chip/Chip.js";export{ChipAlert}from"./ChipAlert/ChipAlert.js";export{ChipIndicator}from"./ChipIndicator/ChipIndicator.js";export{Avatar}from"./Avatar/Avatar.js";export{AvatarGroup}from"./AvatarGroup/AvatarGroup.js";export{ToggleButtons}from"./ToggleButtons/ToggleButtons.js";export{Paper}from"./Paper/Paper.js";export{ModalWindow}from"./ModalWindow/ModalWindow.js";export{Modal}from"./Modal/Modal.js";export{Menu}from"./Menu/Menu.js";export{Hint}from"./Hint/Hint.js";export{Counter}from"./Counter/Counter.js";export{BadgeCounter}from"./BadgeCounter/BadgeCounter.js";export{TemplatesControl}from"./TemplatesControl/TemplatesControl.js";export{getTemplatesControlStoreApi}from"./TemplatesControl/Store/Store.js";import"./TemplatesControl/Store/utils.js";export{BadgeDot}from"./BadgeDot/BadgeDot.js";export{LoaderLinear}from"./LoaderLinear/LoaderLinear.js";export{LoaderLogo}from"./LoaderLogo/LoaderLogo.js";export{Switch}from"./Switch/Switch.js";export{Tabs}from"./Tabs/Tabs.js";export{EmptyState}from"./EmptyState/EmptyState.js";export{FileIcon}from"./FileIcon/FileIcon.js";export{Tag}from"./Tag/Tag.js";export{FilesDropzone}from"./FilesDropzone/FilesDropzone.js";export{FilesLoader}from"./FilesLoader/FilesLoader.js";export{FilesProcessor}from"./FilesProcessor/FilesProcessor.js";export{Skeleton}from"./Skeleton/Skeleton.js";export{CopyToClipboard}from"./CopyToClipboard/CopyToClipboard.js";export{Stepper}from"./Stepper/Stepper.js";export{ButtonLive}from"./ButtonLive/ButtonLive.js";export{ButtonText}from"./ButtonText/ButtonText.js";export{IndicatorLive}from"./IndicatorLive/IndicatorLive.js";export{Accordion}from"./Accordion/Accordion.js";export{Breadcrumbs}from"./Breadcrumbs/Breadcrumbs.js";export{BadgeComment}from"./BadgeComment/BadgeComment.js";export{AppContainer}from"./AppContainer/AppContainer.js";export{AppContainerTestIds}from"./AppContainer/AppContainer.constants.js";export{AppFooter}from"./AppFooter/AppFooter.js";export{AppHeader}from"./AppHeader/AppHeader.js";export{AppHeaderTestIds}from"./AppHeader/AppHeader.constants.js";export{OffsetWellsButton}from"./OffsetWellsButton/OffsetWellsButton.js";export{PadModeSelect}from"./PadModeSelect/PadModeSelect.js";export{PadModeSelectTestIds}from"./PadModeSelect/PadModeSelect.constants.js";export{ChartAxisExtreme}from"./ChartAxisExtreme/ChartAxisExtreme.js";export{Popper}from"./Popper/Popper.js";export{Autocomplete,AutocompleteNext}from"./Autocomplete/Autocomplete.js";export{Select}from"./Select/Select.js";export{UniversalLink}from"./UniversalLink/UniversalLink.js";export{AppSettingsDivider}from"./AppSettingsDivider/AppSettingsDivider.js";export{WellArchivedMessage,WellArchivedMessageBase}from"./WellArchivedMessage/WellArchivedMessage.js";export{DatePicker,DatePickerNext,getActiveStartDate}from"./DatePicker/DatePicker.js";export{DragHandle}from"./DragHandle/DragHandle.js";export{CompletionsOffsetWellPicker}from"./CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";export{Slider}from"./Slider/Slider.js";export{SliderAdvanced}from"./SliderAdvanced/SliderAdvanced.js";export{ColorPicker}from"./ColorPicker/ColorPicker.js";export{ColorPickerTestIds}from"./ColorPicker/ColorPicker.constants.js";export{AppPanel}from"./AppPanel/AppPanel.js";export{ChartHelper}from"./ChartHelper/ChartHelper.js";export{Hotkey}from"./Hotkey/Hotkey.js";export{HideInNativeApp}from"./HideInNativeApp/index.js";export{InterventionEventSelector}from"./InterventionEventSelector/InterventionEventSelector.js";export{interventionUnitEventsQueryKeys,useInterventionUnitEvents}from"./InterventionEventSelector/useInterventionUnitEvents.js";export{ALL_EVENTS_LABEL,getEventChipLabel}from"./InterventionEventSelector/utils.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,2 @@
1
- export declare function initHighcharts({ version }?: {
2
- version?: string | undefined;
3
- }): Promise<void>;
1
+ export declare function initHighcharts(): Promise<void>;
4
2
  //# sourceMappingURL=highcharts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"highcharts.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/highcharts.js"],"names":[],"mappings":"AAiDA,wBAAsB,cAAc,CAAC,EAAE,OAAgC,EAAE;;CAAK,iBA0F7E"}
1
+ {"version":3,"file":"highcharts.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/highcharts.js"],"names":[],"mappings":"AAwDA,wBAAsB,cAAc,kBA2DnC"}
@@ -1,2 +1,2 @@
1
- import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/typeof";import o from"@babel/runtime/regenerator";import{HIGHCHARTS_V8_VERSION as n,HIGHCHARTS_V10_VERSION as a}from"./constants.js";import i from"./highcharts-contour.js";import{getHighchartsV10 as s}from"./getHighchartsV10.js";import c from"dompurify";var l=function e(o){return"string"==typeof o?c.sanitize(o):("object"===r(o)&&null!==o&&Object.entries(o).forEach((function(n){var a=t(n,2),i=a[0],s=a[1];"string"==typeof s?o[i]=c.sanitize(o[i]):Array.isArray(s)?s.forEach((function(t,r){o[i][r]=e(t)})):"object"===r(s)&&(o[i]=e(s))})),o)},h=function(){var e,t=document.createElement("canvas").getContext("webgl"),r=null==t?void 0:t.createShader(t.VERTEX_SHADER);if(!r)return!1;t.shaderSource(r,"void main(){gl_Position=vec4(0.0,0.0,0.0,1.0);}"),t.compileShader(r);var o=!!t.getShaderParameter(r,t.COMPILE_STATUS);return t.deleteShader(r),null===(e=t.getExtension("WEBGL_lose_context"))||void 0===e||e.loseContext(),o};function d(){return u.apply(this,arguments)}function u(){return u=e(o.mark((function e(){var t,r,c,d,u,p,m,f,g,b,v,A,S,y,w,x,E,T=arguments;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=T.length>0&&void 0!==T[0]?T[0]:{},r=t.version,[n,a].includes(c=void 0===r?a:r)){e.next=3;break}throw new Error("Invalid highcharts version: ".concat(c));case 3:if(c!==n){e.next=9;break}return e.next=6,import("./getHighchartsV8.js");case 6:e.t0=e.sent.getHighchartsV8,e.next=10;break;case 9:e.t0=s;case 10:d=e.t0,u=d(),p=u.Highcharts,m=u.highchartsMore,f=u.HighchartsMulticolorSeries,g=u.addSolidGauge,b=u.addHeatmap,v=u.addBoost,A=u.addExporting,S=u.addXrange,y=u.addDumbbell,w=u.addPatternFill,x=u.addAnnotations,window.Highcharts=p,p.AST&&(p.AST.bypassHTMLFiltering=!0,p.AST.allowedAttributes.push("viewBox"),p.AST.allowedAttributes.push("fill-rule"),p.AST.allowedAttributes.push("clip-rule")),f(p),m(p),g(p),b(p),v(p),A(p),S(p),y(p),w(p),i(p),x(p),E=p.chart,p.chart=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length,o=new Array(r>2?r-2:0),n=2;n<r;n++)o[n-2]=arguments[n];return E.apply(void 0,[e,l(t)].concat(o))},p.setOptions({boost:{enabled:h()},plotOptions:{series:{states:{inactive:{enabled:!1}}}}});case 28:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}export{d as initHighcharts};
1
+ import r from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/helpers/typeof";import o from"@babel/runtime/regenerator";import i from"highcharts";import a from"highcharts/highcharts-more";import n from"highcharts/modules/solid-gauge";import s from"highcharts/modules/heatmap";import h from"highcharts/modules/boost";import m from"highcharts/modules/exporting";import l from"highcharts/modules/xrange";import c from"highcharts/modules/dumbbell";import u from"highcharts/modules/pattern-fill";import p from"highcharts/modules/annotations";import f from"highcharts-multicolor-series";import d from"dompurify";import g from"./highcharts-contour.js";var b=function r(o){return"string"==typeof o?d.sanitize(o):("object"===e(o)&&null!==o&&Object.entries(o).forEach((function(i){var a=t(i,2),n=a[0],s=a[1];"string"==typeof s?o[n]=d.sanitize(o[n]):Array.isArray(s)?s.forEach((function(t,e){o[n][e]=r(t)})):"object"===e(s)&&(o[n]=r(s))})),o)},v=function(){var r,t=document.createElement("canvas").getContext("webgl"),e=null==t?void 0:t.createShader(t.VERTEX_SHADER);if(!e)return!1;t.shaderSource(e,"void main(){gl_Position=vec4(0.0,0.0,0.0,1.0);}"),t.compileShader(e);var o=!!t.getShaderParameter(e,t.COMPILE_STATUS);return t.deleteShader(e),null===(r=t.getExtension("WEBGL_lose_context"))||void 0===r||r.loseContext(),o};function y(){return A.apply(this,arguments)}function A(){return A=r(o.mark((function r(){var t;return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:window.Highcharts=i,i.AST.bypassHTMLFiltering=!0,i.AST.allowedAttributes.push("viewBox"),i.AST.allowedAttributes.push("fill-rule"),i.AST.allowedAttributes.push("clip-rule"),f(i),a(i),n(i),s(i),h(i),m(i),l(i),c(i),u(i),g(i),p(i),t=i.chart,i.chart=function(r){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];return t.apply(void 0,[r,b(e)].concat(i))},i.setOptions({boost:{enabled:v()},plotOptions:{series:{states:{inactive:{enabled:!1}}}}});case 19:case"end":return r.stop()}}),r)}))),A.apply(this,arguments)}export{y as initHighcharts};
2
2
  //# sourceMappingURL=highcharts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"highcharts.js","sources":["../../../src/config/highcharts/highcharts.js"],"sourcesContent":["/* eslint-disable */\n// TODO: all the plugins should be checked, legacy code\n\n// [HIGHCHARTS-10-MIGRATION-TAG]: Find and delete/clean all places like this once the migration ends\nimport { HIGHCHARTS_V10_VERSION, HIGHCHARTS_V8_VERSION } from './constants';\n\nimport addContour from './highcharts-contour';\nimport { getHighchartsV10 } from './getHighchartsV10';\n\nimport DOMPurify from 'dompurify';\n\nconst stripHTMLRecurse = o => {\n if (typeof o === 'string') {\n return DOMPurify.sanitize(o);\n }\n\n if (typeof o === 'object' && o !== null)\n Object.entries(o).forEach(([key, value]) => {\n if (typeof value === 'string') {\n o[key] = DOMPurify.sanitize(o[key]);\n } else if (Array.isArray(value)) {\n value.forEach((item, i) => {\n o[key][i] = stripHTMLRecurse(item);\n });\n } else if (typeof value === 'object') {\n o[key] = stripHTMLRecurse(value);\n }\n });\n\n return o;\n};\n\n// Highcharts' own hasWebGLSupport() only proves a context can be created, which the\n// drivers that fail here can do. Compiling one shader is what separates them.\nconst isBoostSupported = () => {\n const gl = document.createElement('canvas').getContext('webgl');\n const shader = gl?.createShader(gl.VERTEX_SHADER);\n if (!shader) return false;\n\n gl.shaderSource(shader, 'void main(){gl_Position=vec4(0.0,0.0,0.0,1.0);}');\n gl.compileShader(shader);\n const isCompiled = !!gl.getShaderParameter(shader, gl.COMPILE_STATUS);\n\n gl.deleteShader(shader);\n gl.getExtension('WEBGL_lose_context')?.loseContext();\n\n return isCompiled;\n};\n\nexport async function initHighcharts({ version = HIGHCHARTS_V10_VERSION } = {}) {\n if (![HIGHCHARTS_V8_VERSION, HIGHCHARTS_V10_VERSION].includes(version)) {\n throw new Error(`Invalid highcharts version: ${version}`);\n }\n\n const highchartsGetter =\n version === HIGHCHARTS_V8_VERSION\n ? (await import('./getHighchartsV8')).getHighchartsV8\n : getHighchartsV10;\n\n const {\n Highcharts,\n highchartsMore,\n HighchartsMulticolorSeries,\n addSolidGauge,\n addHeatmap,\n addBoost,\n addExporting,\n addXrange,\n addDumbbell,\n addPatternFill,\n addAnnotations,\n } = highchartsGetter();\n\n /**\n * NOTE: Highchart has a bug for pie chart in v8.1.2\n * issue link: https://github.com/highcharts/highcharts/issues/13710\n * workaround:\n * import Highcharts from 'highcharts';\n * window.Highcharts = Highcharts;\n */\n window.Highcharts = Highcharts;\n\n // NOTE: Temporary disable HTML filtering for duration of migration to v10, as this is the main breaking change in v10, should be removed after migration\n if (Highcharts.AST) {\n Highcharts.AST.bypassHTMLFiltering = true;\n\n // Adding needed custom attributes for some SVG icons\n Highcharts.AST.allowedAttributes.push('viewBox');\n Highcharts.AST.allowedAttributes.push('fill-rule');\n Highcharts.AST.allowedAttributes.push('clip-rule');\n }\n\n HighchartsMulticolorSeries(Highcharts);\n // NOTE: Highcharts patching. It should be done in one place before any chart in rendered\n // in order to avoid conflicts\n highchartsMore(Highcharts);\n addSolidGauge(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/angular-gauges\n addHeatmap(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/heatmap\n addBoost(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addExporting(Highcharts); // https://www.highcharts.com/docs/export-module/export-module-overview\n addXrange(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addDumbbell(Highcharts);\n addPatternFill(Highcharts);\n addContour(Highcharts);\n addAnnotations(Highcharts);\n\n // fix security issue for Highcharts 8\n // https://github.com/highcharts/highcharts/security/advisories/GHSA-8j65-4pcq-xq95\n const originalChartFn = Highcharts.chart;\n Highcharts.chart = function (container, options = {}, ...restParams) {\n return originalChartFn(container, stripHTMLRecurse(options), ...restParams);\n };\n\n /**\n * Adjust default highcharts effects globally for better use in our apps\n *\n * 1. Stop animation for inactive series\n * ref: https://api.highcharts.com/highcharts/plotOptions.series.states.inactive.enabled\n *\n * 2. Keep boost off where its shaders will not compile. boost.enabled defaults to\n * true once addBoost has run, and on such drivers boost carries on with a null\n * program and throws out of getAttribLocation mid-render, taking the chart with\n * it. Charts keep GPU acceleration everywhere the driver works.\n *\n */\n Highcharts.setOptions({\n boost: {\n enabled: isBoostSupported(),\n },\n plotOptions: {\n series: {\n states: {\n inactive: {\n enabled: false,\n },\n },\n },\n },\n });\n}\n"],"names":["stripHTMLRecurse","o","DOMPurify","sanitize","_typeof","Object","entries","forEach","_ref","_ref2","_slicedToArray","key","value","Array","isArray","item","i","isBoostSupported","_gl$getExtension","gl","document","createElement","getContext","shader","createShader","VERTEX_SHADER","shaderSource","compileShader","isCompiled","getShaderParameter","COMPILE_STATUS","deleteShader","getExtension","loseContext","initHighcharts","_initHighcharts","apply","this","arguments","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_ref3","_ref3$version","version","highchartsGetter","_highchartsGetter","Highcharts","highchartsMore","HighchartsMulticolorSeries","addSolidGauge","addHeatmap","addBoost","addExporting","addXrange","addDumbbell","addPatternFill","addAnnotations","originalChartFn","_args","wrap","_context","prev","next","length","undefined","HIGHCHARTS_V8_VERSION","HIGHCHARTS_V10_VERSION","includes","Error","import","t0","sent","getHighchartsV8","getHighchartsV10","window","AST","bypassHTMLFiltering","allowedAttributes","push","addContour","chart","container","options","_len","restParams","_key","setOptions","boost","enabled","plotOptions","series","states","inactive","stop"],"mappings":"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"}
1
+ {"version":3,"file":"highcharts.js","sources":["../../../src/config/highcharts/highcharts.js"],"sourcesContent":["/* eslint-disable */\n// TODO: all the plugins should be checked, legacy code\n\nimport Highcharts from 'highcharts';\nimport highchartsMore from 'highcharts/highcharts-more';\nimport addSolidGauge from 'highcharts/modules/solid-gauge';\nimport addHeatmap from 'highcharts/modules/heatmap';\nimport addBoost from 'highcharts/modules/boost';\nimport addExporting from 'highcharts/modules/exporting';\nimport addXrange from 'highcharts/modules/xrange';\nimport addDumbbell from 'highcharts/modules/dumbbell';\nimport addPatternFill from 'highcharts/modules/pattern-fill';\nimport addAnnotations from 'highcharts/modules/annotations';\nimport HighchartsMulticolorSeries from 'highcharts-multicolor-series';\nimport DOMPurify from 'dompurify';\n\nimport addContour from './highcharts-contour';\n\nconst stripHTMLRecurse = o => {\n if (typeof o === 'string') {\n return DOMPurify.sanitize(o);\n }\n\n if (typeof o === 'object' && o !== null)\n Object.entries(o).forEach(([key, value]) => {\n if (typeof value === 'string') {\n o[key] = DOMPurify.sanitize(o[key]);\n } else if (Array.isArray(value)) {\n value.forEach((item, i) => {\n o[key][i] = stripHTMLRecurse(item);\n });\n } else if (typeof value === 'object') {\n o[key] = stripHTMLRecurse(value);\n }\n });\n\n return o;\n};\n\n// Highcharts' own hasWebGLSupport() only proves a context can be created, which the\n// drivers that fail here can do. Compiling one shader is what separates them.\nconst isBoostSupported = () => {\n const gl = document.createElement('canvas').getContext('webgl');\n const shader = gl?.createShader(gl.VERTEX_SHADER);\n if (!shader) return false;\n\n gl.shaderSource(shader, 'void main(){gl_Position=vec4(0.0,0.0,0.0,1.0);}');\n gl.compileShader(shader);\n const isCompiled = !!gl.getShaderParameter(shader, gl.COMPILE_STATUS);\n\n gl.deleteShader(shader);\n gl.getExtension('WEBGL_lose_context')?.loseContext();\n\n return isCompiled;\n};\n\nexport async function initHighcharts() {\n // Dev Center apps and the highcharts modules read the global, not the module import.\n window.Highcharts = Highcharts;\n\n // Dev Center apps put raw HTML into labels and tooltips; options are sanitized through DOMPurify\n // in the Highcharts.chart wrapper below instead of the AST allow-list.\n Highcharts.AST.bypassHTMLFiltering = true;\n\n // Adding needed custom attributes for some SVG icons\n Highcharts.AST.allowedAttributes.push('viewBox');\n Highcharts.AST.allowedAttributes.push('fill-rule');\n Highcharts.AST.allowedAttributes.push('clip-rule');\n\n HighchartsMulticolorSeries(Highcharts);\n // NOTE: Highcharts patching. It should be done in one place before any chart in rendered\n // in order to avoid conflicts\n highchartsMore(Highcharts);\n addSolidGauge(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/angular-gauges\n addHeatmap(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/heatmap\n addBoost(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addExporting(Highcharts); // https://www.highcharts.com/docs/export-module/export-module-overview\n addXrange(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addDumbbell(Highcharts);\n addPatternFill(Highcharts);\n addContour(Highcharts);\n addAnnotations(Highcharts);\n\n // https://github.com/highcharts/highcharts/security/advisories/GHSA-8j65-4pcq-xq95\n const originalChartFn = Highcharts.chart;\n Highcharts.chart = function (container, options = {}, ...restParams) {\n return originalChartFn(container, stripHTMLRecurse(options), ...restParams);\n };\n\n /**\n * Adjust default highcharts effects globally for better use in our apps\n *\n * 1. Stop animation for inactive series\n * ref: https://api.highcharts.com/highcharts/plotOptions.series.states.inactive.enabled\n *\n * 2. Keep boost off where its shaders will not compile. boost.enabled defaults to\n * true once addBoost has run, and on such drivers boost carries on with a null\n * program and throws out of getAttribLocation mid-render, taking the chart with\n * it. Charts keep GPU acceleration everywhere the driver works.\n *\n */\n Highcharts.setOptions({\n boost: {\n enabled: isBoostSupported(),\n },\n plotOptions: {\n series: {\n states: {\n inactive: {\n enabled: false,\n },\n },\n },\n },\n });\n}\n"],"names":["stripHTMLRecurse","o","DOMPurify","sanitize","_typeof","Object","entries","forEach","_ref","_ref2","_slicedToArray","key","value","Array","isArray","item","i","isBoostSupported","_gl$getExtension","gl","document","createElement","getContext","shader","createShader","VERTEX_SHADER","shaderSource","compileShader","isCompiled","getShaderParameter","COMPILE_STATUS","deleteShader","getExtension","loseContext","initHighcharts","_initHighcharts","apply","this","arguments","_asyncToGenerator","_regeneratorRuntime","mark","_callee","originalChartFn","wrap","_context","prev","next","window","Highcharts","AST","bypassHTMLFiltering","allowedAttributes","push","HighchartsMulticolorSeries","highchartsMore","addSolidGauge","addHeatmap","addBoost","addExporting","addXrange","addDumbbell","addPatternFill","addContour","addAnnotations","chart","container","options","length","undefined","_len","restParams","_key","setOptions","boost","enabled","plotOptions","series","states","inactive","stop"],"mappings":"+sBAkBA,IAAMA,EAAmB,SAAnBA,EAAmBC,GACvB,MAAiB,iBAANA,EACFC,EAAUC,SAASF,IAGX,WAAbG,EAAOH,IAAwB,OAANA,GAC3BI,OAAOC,QAAQL,GAAGM,SAAQ,SAAkBC,GAAA,IAAAC,EAAAC,EAAAF,EAAA,GAAhBG,EAAGF,EAAA,GAAEG,EAAKH,EAAA,GACf,iBAAVG,EACTX,EAAEU,GAAOT,EAAUC,SAASF,EAAEU,IACrBE,MAAMC,QAAQF,GACvBA,EAAML,SAAQ,SAACQ,EAAMC,GACnBf,EAAEU,GAAKK,GAAKhB,EAAiBe,EAC/B,IAC0B,WAAjBX,EAAOQ,KAChBX,EAAEU,GAAOX,EAAiBY,GAE9B,IAEKX,EACT,EAIMgB,EAAmB,WAAM,IAAAC,EACvBC,EAAKC,SAASC,cAAc,UAAUC,WAAW,SACjDC,EAASJ,aAAE,EAAFA,EAAIK,aAAaL,EAAGM,eACnC,IAAKF,EAAQ,OAAO,EAEpBJ,EAAGO,aAAaH,EAAQ,mDACxBJ,EAAGQ,cAAcJ,GACjB,IAAMK,IAAeT,EAAGU,mBAAmBN,EAAQJ,EAAGW,gBAKtD,OAHAX,EAAGY,aAAaR,GACqB,QAArCJ,EAAAA,EAAGa,aAAa,6BAAqB,IAAAd,GAArCA,EAAuCe,cAEhCL,CACT,EAEA,SAAsBM,IAAc,OAAAC,EAAAC,MAAAC,KAAAC,UAAA,CA2DnC,SAAAH,IAAA,OAAAA,EA3DMI,EAAAC,EAAAC,MAAA,SAAAC,IAAA,IAAAC,EAAA,OAAAH,EAAAI,MAAA,SAAAC,GAAA,OAAA,OAAAA,EAAAC,KAAAD,EAAAE,MAAA,KAAA,EAELC,OAAOC,WAAaA,EAIpBA,EAAWC,IAAIC,qBAAsB,EAGrCF,EAAWC,IAAIE,kBAAkBC,KAAK,WACtCJ,EAAWC,IAAIE,kBAAkBC,KAAK,aACtCJ,EAAWC,IAAIE,kBAAkBC,KAAK,aAEtCC,EAA2BL,GAG3BM,EAAeN,GACfO,EAAcP,GACdQ,EAAWR,GACXS,EAAST,GACTU,EAAaV,GACbW,EAAUX,GACVY,EAAYZ,GACZa,EAAeb,GACfc,EAAWd,GACXe,EAAef,GAGTN,EAAkBM,EAAWgB,MACnChB,EAAWgB,MAAQ,SAAUC,GAAuB,IAAiB,IAA7BC,EAAU7B,UAAA8B,OAAA,QAAAC,IAAA/B,UAAA,GAAAA,UAAA,GAAA,CAAA,EAAEgC,EAAAhC,UAAA8B,OAAKG,EAAU,IAAA1D,MAAAyD,EAAA,EAAAA,EAAA,EAAA,GAAAE,EAAA,EAAAA,EAAAF,EAAAE,IAAVD,EAAUC,EAAA,GAAAlC,UAAAkC,GACjE,OAAO7B,EAAgBuB,WAAAA,EAAAA,CAAAA,EAAWlE,EAAiBmE,IAAaI,OAAAA,KAelEtB,EAAWwB,WAAW,CACpBC,MAAO,CACLC,QAAS1D,KAEX2D,YAAa,CACXC,OAAQ,CACNC,OAAQ,CACNC,SAAU,CACRJ,SAAS,QAKhB,KAAA,GAAA,IAAA,MAAA,OAAA9B,EAAAmC,OAAA,GAAAtC,EACJ,KAAAP,EAAAC,MAAAC,KAAAC,UAAA"}
@@ -1,3 +1,2 @@
1
1
  export { initHighcharts } from './highcharts';
2
- export { HIGHCHARTS_V10_VERSION, HIGHCHARTS_V8_VERSION } from './constants';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import './extendNative.js';
2
- export declare function initGlobalDependencies({ highchartsVersion }?: {}): Promise<void>;
2
+ export declare function initGlobalDependencies(): Promise<void>;
3
3
  //# sourceMappingURL=initGlobalDependencies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initGlobalDependencies.d.ts","sourceRoot":"","sources":["../../src/config/initGlobalDependencies.js"],"names":[],"mappings":"AAEA,OAAO,mBAAmB,CAAC;AAG3B,wBAAgB,sBAAsB,CAAC,EAAE,iBAAiB,EAAE,KAAK,iBAMhE"}
1
+ {"version":3,"file":"initGlobalDependencies.d.ts","sourceRoot":"","sources":["../../src/config/initGlobalDependencies.js"],"names":[],"mappings":"AAEA,OAAO,mBAAmB,CAAC;AAE3B,wBAAgB,sBAAsB,kBAMrC"}
@@ -1,2 +1,2 @@
1
- import{initHighcharts as r}from"./highcharts/highcharts.js";import{initializeSocketClient as i}from"../clients/subscriptions.js";import"./extendNative.js";function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=t.highchartsVersion,o=r({version:s});return i(),o}export{t as initGlobalDependencies};
1
+ import{initHighcharts as r}from"./highcharts/highcharts.js";import{initializeSocketClient as t}from"../clients/subscriptions.js";import"./extendNative.js";function i(){var i=r();return t(),i}export{i as initGlobalDependencies};
2
2
  //# sourceMappingURL=initGlobalDependencies.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"initGlobalDependencies.js","sources":["../../src/config/initGlobalDependencies.js"],"sourcesContent":["import { initHighcharts } from '~/config/highcharts';\nimport { initializeSocketClient } from '~/clients/subscriptions';\nimport './extendNative.js';\n\n// [HIGHCHARTS-10-MIGRATION-TAG]: Find and delete/clean all places like this once the migration ends\nexport function initGlobalDependencies({ highchartsVersion } = {}) {\n const highchartsReady = initHighcharts({ version: highchartsVersion });\n\n initializeSocketClient();\n\n return highchartsReady;\n}\n"],"names":["initGlobalDependencies","_ref","arguments","length","undefined","highchartsVersion","highchartsReady","initHighcharts","version","initializeSocketClient"],"mappings":"2JAKO,SAASA,IAAmD,IAAAC,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAJ,CAAE,EAAxBG,IAAAA,kBACjCC,EAAkBC,EAAe,CAAEC,QAASH,IAIlD,OAFAI,IAEOH,CACT"}
1
+ {"version":3,"file":"initGlobalDependencies.js","sources":["../../src/config/initGlobalDependencies.js"],"sourcesContent":["import { initHighcharts } from '~/config/highcharts';\nimport { initializeSocketClient } from '~/clients/subscriptions';\nimport './extendNative.js';\n\nexport function initGlobalDependencies() {\n const highchartsReady = initHighcharts();\n\n initializeSocketClient();\n\n return highchartsReady;\n}\n"],"names":["initGlobalDependencies","highchartsReady","initHighcharts","initializeSocketClient"],"mappings":"2JAIO,SAASA,IACd,IAAMC,EAAkBC,IAIxB,OAFAC,IAEOF,CACT"}