@corva/ui 0.56.0-9 → 0.57.0-0

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 (185) hide show
  1. package/README.md +26 -3
  2. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  3. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  4. package/cjs-bundle/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
  5. package/cjs-bundle/components/AppVersionsSelect/effects/index.js +1 -1
  6. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  7. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  8. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  9. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  10. package/cjs-bundle/components/DevCenter/AppHeader/AppHeader.css.js +1 -1
  11. package/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  12. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  13. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  14. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  15. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
  16. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  17. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.js +1 -0
  18. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  19. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
  20. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  21. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  22. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  23. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  24. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  25. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  26. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  27. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  28. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  29. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  30. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  31. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  32. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  33. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  34. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  35. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  36. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  37. package/cjs-bundle/components/EmptyView/EmptyAppView/EmptyAppView.js +1 -1
  38. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  39. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  40. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  41. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  42. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  43. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  44. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  45. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  46. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  47. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  48. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  49. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  50. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  51. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  52. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  53. package/cjs-bundle/components/OffsetWellPickerV4/effects/useAdvancedWells.js +1 -1
  54. package/cjs-bundle/components/StatusBadge/components/DQAccordionDetailsContent.js +1 -0
  55. package/cjs-bundle/components/StatusBadge/components/DQAlertTooltip.js +1 -0
  56. package/cjs-bundle/components/StatusBadge/components/DQSuccessContent.js +1 -1
  57. package/cjs-bundle/components/StatusBadge/components/DQUnvalidatedContent.js +1 -1
  58. package/cjs-bundle/components/StatusBadge/components/ReportIssueModal.js +1 -1
  59. package/cjs-bundle/components/StatusBadge/index.js +1 -1
  60. package/cjs-bundle/components/StatusBadge/styles.js +1 -0
  61. package/cjs-bundle/components/Table/TableCell/TableCell.js +1 -1
  62. package/cjs-bundle/components/Tooltip/MuiTooltipDcWrapper.js +1 -1
  63. package/cjs-bundle/components/Tooltip/ScrollableTooltip.js +1 -1
  64. package/cjs-bundle/components/Tooltip/Tooltip.js +1 -1
  65. package/cjs-bundle/components/index.js +1 -1
  66. package/components/AddComment/Popover.js +1 -1
  67. package/components/AddComment/components/Content.js +1 -1
  68. package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
  69. package/components/AppVersionsSelect/__tests__/AppVersionsSelect.test.d.ts +2 -0
  70. package/components/AppVersionsSelect/__tests__/AppVersionsSelect.test.d.ts.map +1 -0
  71. package/components/AppVersionsSelect/__tests__/usePackages.test.d.ts +2 -0
  72. package/components/AppVersionsSelect/__tests__/usePackages.test.d.ts.map +1 -0
  73. package/components/AppVersionsSelect/effects/index.d.ts.map +1 -1
  74. package/components/AppVersionsSelect/effects/index.js +1 -1
  75. package/components/BICOffsetPickerDialog/index.js +1 -1
  76. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  77. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  78. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  79. package/components/DevCenter/AppHeader/AppHeader.css.js +1 -1
  80. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts +1 -3
  81. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
  82. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  83. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  84. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.d.ts +1 -0
  85. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.d.ts.map +1 -1
  86. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  87. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts +1 -0
  88. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts.map +1 -1
  89. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  90. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
  91. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.d.ts +9 -7
  92. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.d.ts.map +1 -1
  93. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  94. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/__tests__/DevCenterAppView.test.d.ts +2 -0
  95. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/__tests__/DevCenterAppView.test.d.ts.map +1 -0
  96. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.d.ts +8 -0
  97. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.d.ts.map +1 -0
  98. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.js +1 -0
  99. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/index.d.ts +1 -1
  100. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/index.d.ts.map +1 -1
  101. package/components/DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.d.ts.map +1 -1
  102. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  103. package/components/DevCenter/DevCenterAppContainer/components/__tests__/AppSettingsDialog.test.d.ts +2 -0
  104. package/components/DevCenter/DevCenterAppContainer/components/__tests__/AppSettingsDialog.test.d.ts.map +1 -0
  105. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
  106. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  107. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  108. package/components/DocumentViewer/DocumentViewer.js +1 -1
  109. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  110. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  111. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  112. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  113. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  114. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  115. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  116. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  117. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  118. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  119. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  120. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  121. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  122. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  123. package/components/EmptyView/EmptyAppView/EmptyAppView.d.ts +10 -2
  124. package/components/EmptyView/EmptyAppView/EmptyAppView.d.ts.map +1 -1
  125. package/components/EmptyView/EmptyAppView/EmptyAppView.js +1 -1
  126. package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  127. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  128. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  129. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  130. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  131. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  132. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  133. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  134. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  135. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  136. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  137. package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  138. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  139. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  140. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  141. package/components/OffsetWellPickerV4/effects/useAdvancedWells.d.ts.map +1 -1
  142. package/components/OffsetWellPickerV4/effects/useAdvancedWells.js +1 -1
  143. package/components/StatusBadge/components/DQAccordionDetailsContent.d.ts +9 -0
  144. package/components/StatusBadge/components/DQAccordionDetailsContent.d.ts.map +1 -0
  145. package/components/StatusBadge/components/DQAccordionDetailsContent.js +1 -0
  146. package/components/StatusBadge/components/DQAlertTooltip.d.ts +13 -0
  147. package/components/StatusBadge/components/DQAlertTooltip.d.ts.map +1 -0
  148. package/components/StatusBadge/components/DQAlertTooltip.js +1 -0
  149. package/components/StatusBadge/components/DQAlertsTooltip.d.ts +1 -1
  150. package/components/StatusBadge/components/DQAlertsTooltip.d.ts.map +1 -1
  151. package/components/StatusBadge/components/DQSuccessContent.d.ts.map +1 -1
  152. package/components/StatusBadge/components/DQSuccessContent.js +1 -1
  153. package/components/StatusBadge/components/DQUnvalidatedContent.d.ts +3 -2
  154. package/components/StatusBadge/components/DQUnvalidatedContent.d.ts.map +1 -1
  155. package/components/StatusBadge/components/DQUnvalidatedContent.js +1 -1
  156. package/components/StatusBadge/components/ReportIssueModal.d.ts.map +1 -1
  157. package/components/StatusBadge/components/ReportIssueModal.js +1 -1
  158. package/components/StatusBadge/constants.d.ts +8 -4
  159. package/components/StatusBadge/constants.d.ts.map +1 -1
  160. package/components/StatusBadge/index.d.ts +3 -2
  161. package/components/StatusBadge/index.d.ts.map +1 -1
  162. package/components/StatusBadge/index.js +1 -1
  163. package/components/StatusBadge/styles.d.ts +6 -0
  164. package/components/StatusBadge/styles.d.ts.map +1 -0
  165. package/components/StatusBadge/styles.js +1 -0
  166. package/components/Table/TableCell/TableCell.d.ts.map +1 -1
  167. package/components/Table/TableCell/TableCell.js +1 -1
  168. package/components/Tooltip/MuiTooltipDcWrapper.d.ts +3 -27
  169. package/components/Tooltip/MuiTooltipDcWrapper.d.ts.map +1 -1
  170. package/components/Tooltip/MuiTooltipDcWrapper.js +1 -1
  171. package/components/Tooltip/ScrollableTooltip.d.ts +13 -8
  172. package/components/Tooltip/ScrollableTooltip.d.ts.map +1 -1
  173. package/components/Tooltip/ScrollableTooltip.js +1 -1
  174. package/components/Tooltip/Tooltip.d.ts +7 -1
  175. package/components/Tooltip/Tooltip.d.ts.map +1 -1
  176. package/components/Tooltip/Tooltip.js +1 -1
  177. package/components/Tooltip/index.d.ts +2 -2
  178. package/components/Tooltip/index.d.ts.map +1 -1
  179. package/package.json +1 -1
  180. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js +0 -1
  181. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.d.ts +0 -11
  182. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.d.ts.map +0 -1
  183. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js +0 -1
  184. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/index.d.ts +0 -2
  185. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/index.d.ts.map +0 -1
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import{memo as r,useState as i,useRef as o,useEffect as n,useMemo as s,useCallback as a,Fragment as p}from"react";import l from"classnames";import m from"prop-types";import{Table as d,TableHead as c,TableBody as u,TableRow as j,TableCell as C}from"@material-ui/core";import{jsxs as f,jsx as h}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../Modal/CorvaModal.js";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import b from"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"lodash";import"slate";import"../../../ParameterCharts/ParameterCharts.js";import"../../../ParameterCharts/AddEditTrack.js";import"../../../ChartActionsList/ChartActionsList.js";import"../../../CopyToClipboard/CopyToClipboard.js";import"../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../AssetEditor/SingleAssetEditor.js";import"../../../SettingEditors/ColorEditor/index.js";import"../../../SettingEditors/DropdownEditor/index.js";import"../../../SettingEditors/RadioEditor/index.js";import"../../../SwitchControl/index.js";import"../../../ColorPicker/ColorPicker.js";import"../../../Chart/components/ChartButton.js";import"../../../Chart/components/ChartButtons.js";import"../../../Chart/components/ChartWrapper.js";import"../../../Chart/components/AxisDropdown.js";import"../../../Chart/components/buttons/DragToZoomButton.js";import"../../../Chart/components/buttons/ZoomInButton.js";import"../../../Chart/components/buttons/ZoomOutButton.js";import"../../../Chart/components/buttons/PanButton.js";import"../../../Chart/components/buttons/ResetZoomButton.js";import"../../../Chart/components/buttons/HideAxesButton.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.js";import"../../../AdvancedSlider/AdvancedSlider.js";import"../../../Breadcrumbs/index.js";import"../../../VirtualizedTable/index.js";import"../../../EmptyView/EmptyView.js";import"../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../Button/index.js";import"../../../ContextMenuItem/index.js";import"../../../FolderMenuItem/index.js";import"../../../EditableItem/EditableItem/index.js";import"../../../EditableItem/EditableItemWithBadge/index.js";import"../../../Checkbox/index.js";import"../../../FolderMenuItemWithLinks/index.js";import"../../../IconButton/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import"../../../Select/index.js";import"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../GradientManager/configuration/constants.js";import"../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../GradientManager/GradientSelect.styles.js";import"../../../GradientPicker/GradientPicker.js";import"../../../GradientManager/GradientManager.styles.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/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/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"../../../Toaster/Toaster.js";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../Template/TemplateSharingDialog/index.js";import"../../../MenuItem/index.js";import"../../../PadModeSelect/PadModeSelect.js";import"../../../PinnableFilters/PinnableFilters.js";import"../../../HeaderLayout/HeaderLayout.js";import"../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../PadOffsetsPicker/StagesSelector.js";import"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../Tooltip/ScrollableTooltip.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.js";import"../../../SearchInput/index.js";import"../../../FeedItem/FeedItem.js";import"../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../PostInput/PostInput.js";import"../../../KeyboardDateTimePicker.js";import"../../../AddComment/Popover.js";import"../../../AddComment/Popup.js";import"../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../StageDesignVActual/ComparisonHeader.js";import"../../../StageDesignVActual/ComparisonRow.js";import"../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../EmbeddedApp/EmbeddedApp.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../Autocomplete/Autocomplete.js";import"../../../DocumentViewer/DocumentViewer.js";import"../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../Search/Search.js";import"../../../Search/components/Listbox.js";import"../../../Search/components/Paper.js";import"../../../Search/components/RecentSearches.js";import"../../../Search/components/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import"../../../StatusBadge/index.js";import"../../../Attachment/index.js";import"../../../EmojiIconButton.js";import"../../../FileUploadIconButton.js";import"../../../FilePreview/index.js";import"../../../FailedFileUploading.js";import"../../../UserMention/index.js";import"../../../CommentsInfo/index.js";import"../../../CommentInput/index.js";import"../../../Comment/index.js";import"../../../CommentLoader.js";import"../../../AssetNameLabel/AssetStatusBadge.js";import{AdvancedSearch as v}from"./AdvancedSearch/AdvancedSearch.js";import A from"./OffsetWellsTableHead.js";import g from"./OffsetWellsTableRow.js";import{METRICS_LIST as D,EXPANED_WELLNAME_WIDTH as S,TableColumns as y,ViewType as x,ROW_HEIGHT as T}from"../../constants.js";import P from"./OffsetWellsTable.module.css.js";import{getIsImperial as I}from"../../utils/unitSystem.js";function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function W(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?w(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var O=function(r){var m,w=r.open,O=r.isTableLoading,E=r.companyId,B=r.subjectWellId,R=r.sortBy,L=r.setSortBy,M=r.sortDirection,k=r.setSortDirection,F=r.columnsWithDict,N=r.wells,q=r.metricsKeys,V=r.setMetricsKeys,H=r.handleChanageOffsetWell,G=r.handleChangeAllOffsetWells,K=r.handleAddRemoveAssets,U=r.isWellNameExpand,Z=r.setIsWellNameExpand,z=r.isHscrollMoved,J=r.onHideAdvancedSearch,Q=r.isViewOnly,X=r.isLastWell,Y=r.contentRef,$=r.isLimitedOffsetwells,_=r.maxOffsetwellNumber,ee=r.wellSections,te=r.setActiveWellId,re=r.viewType,ie=r.isWDUser,oe=i([]),ne=e(oe,2),se=ne[0],ae=ne[1],pe=i(null),le=e(pe,2),me=le[0],de=le[1],ce=i(0),ue=e(ce,2),je=ue[0],Ce=ue[1],fe=i(0),he=e(fe,2),be=he[0],ve=he[1],Ae=o(),ge=o(),De=o();n((function(){if(!me)return ae(N),void ve(0);var t=function(e,t,r,i){var o,n=e.findIndex((function(e){return t===e.id})),s=r.findIndex((function(e){return t===e.id}));-1===s&&(s=r.length);var a=Math.round(((null===(o=i.current)||void 0===o?void 0:o.clientHeight)-145)/T+1),p=s-n;Math.abs(p)>a&&(s=n+a*Math.sign(p));var l=s-n;return[n,s,l,200*(.4*Math.abs(l)+2),Math.min(n,s),(Math.abs(l)+1)*T]}(se,me,N,Y),r=e(t,6),i=r[0],o=r[1],n=r[2],s=r[3],a=r[4],p=r[5];if(De.current=s,o===i)ae(N);else{Ce(a),ve(p);var l=function(e,t,r,i){return e.map((function(e,o){var n=r<o&&o<=i||i<=o&&o<r;return o===r?W(W({},e),{},{moveTo:t}):n?W(W({},e),{},{moveTo:r<i?-1:1,delayTime:Math.abs(o-r)}):e}))}(se,n,i,o);ae(l),setTimeout((function(){ae(N),ve(0),de(null)}),s)}}),[N]);var Se=s((function(){var e=se.filter((function(e){return e.checked}));return[e,se.length!==e.length&&e.length&&!$,e.length===se.length||$]}),[se,$]),ye=e(Se,3),xe=ye[0],Te=ye[1],Pe=ye[2],Ie=s((function(){return I()}),[]),we=s((function(){return(q||[]).reduce((function(e,t){return e.concat(D.filter((function(e){return e.key===t})))}),[])}),[q]),We=s((function(){return U?S-58:y[0].width[q.length]-58}),[U,null==q?void 0:q.length]);n((function(){if(re!==x.mobile&&Ae.current&&ge.current){var e=Ae.current.querySelector(".".concat(P.wellNameFixed));z?e.classList.remove(P.noShadow):e.classList.add(P.noShadow);var t=ge.current.querySelectorAll(".".concat(P.wellNameFixed));z?t.forEach((function(e){return e.classList.remove(P.noShadow)})):t.forEach((function(e){return e.classList.add(P.noShadow)}))}}),[z,ge.current,Ae.current,se]);var Oe=a((function(e,t){L(e),k(t)}),[]),Ee=a((function(e){V(e)}),[]),Be=a((function(e,t){V((function(r){return r.map((function(r){return r===e?t:r}))}))}),[]);return F&&se?f("div",{className:P.offsetWellsTable,children:[h("div",{className:P.stickyTable,children:h(d,{"aria-label":"ows table head",innerRef:Ae,children:h(c,{children:h(A,{open:w,columnsWithDict:F,metricsKeys:q,sortBy:R,sortDirection:M,indeterminate:Te,isAllWellsSelected:Pe,onChangeSort:Oe,onChangeMetricsKeys:Ee,onUpdateMetricsKey:Be,isWellNameExpand:U,setIsWellNameExpand:Z,handleChangeAllOffsetWells:G,wellNameStyle:P.wellNameFixed,isViewOnly:Q,isImperial:Ie,contentRef:Y,viewType:re})})})}),!Q&&h("div",{className:P.searchCell,children:h(v,{companyId:E,subjectWellId:B,wells:se,onChange:K,selectedWellIds:xe.map((function(e){return e.id})),onHideAdvancedSearch:J,width:null===(m=Y.current)||void 0===m?void 0:m.getBoundingClientRect().width})}),h(d,{"aria-label":"ows table body",innerRef:ge,className:P.bodyTable,children:f(u,{children:[h(j,{children:h(C,{className:l(P.topShadow,t({},P.viewOnlyShadow,Q))})}),se.map((function(e,t){return f(p,{children:[h(j,{children:me&&be>0&&t===je&&h(C,{style:{height:be}})}),h(g,{columnsWithDict:F,subjectWellId:B,data:e,metricsKeys:q,metricsColumns:we,handleChanageOffsetWell:H,isWellNameExpand:U,wellNameStyle:P.wellNameFixed,wellNameWidth:We,isViewOnly:Q,isImperial:Ie,isLimitedOffsetwells:$,maxOffsetwellNumber:_,wellSections:ee,setActiveWellId:te,viewType:re,newCheckedWellId:null!=e&&e.moveTo?me:0,setNewCheckedWellId:de,index:null!=e&&e.moveTo?t:0,flyDuration:null!=e&&e.moveTo?De.current:0,isWDUser:ie})]},e.id)})),!X&&h(j,{children:h(C,{className:P.loadingCell,children:h("span",{children:"Loading..."})})}),h(j,{children:h(C,{className:P.bottomShadow})})]})}),O&&h(b,{fullscreen:!1,className:P.loadingContainer})]}):null};O.propTypes={open:m.bool.isRequired,isTableLoading:m.bool.isRequired,companyId:m.number.isRequired,subjectWellId:m.number.isRequired,sortBy:m.string.isRequired,setSortBy:m.func.isRequired,sortDirection:m.string.isRequired,setSortDirection:m.func.isRequired,columnsWithDict:m.arrayOf(m.shape({})).isRequired,wells:m.arrayOf(m.shape({})).isRequired,metricsKeys:m.arrayOf(m.string).isRequired,setMetricsKeys:m.func.isRequired,handleChanageOffsetWell:m.func.isRequired,handleChangeAllOffsetWells:m.func.isRequired,handleAddRemoveAssets:m.func.isRequired,setIsWellNameExpand:m.func.isRequired,isWellNameExpand:m.bool.isRequired,isHscrollMoved:m.bool.isRequired,onHideAdvancedSearch:m.func.isRequired,isViewOnly:m.bool.isRequired,isLastWell:m.bool.isRequired,isLimitedOffsetwells:m.bool.isRequired,maxOffsetwellNumber:m.number.isRequired,contentRef:m.shape().isRequired,wellSections:m.arrayOf(m.shape({})).isRequired,setActiveWellId:m.func.isRequired,viewType:m.string.isRequired,isWDUser:m.bool.isRequired};var E=r(O);export{E as default};
1
+ import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import{memo as r,useState as i,useRef as o,useEffect as n,useMemo as s,useCallback as a,Fragment as p}from"react";import l from"classnames";import m from"prop-types";import{Table as d,TableHead as c,TableBody as u,TableRow as j,TableCell as C}from"@material-ui/core";import{jsxs as f,jsx as h}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../Modal/CorvaModal.js";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import b from"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"lodash";import"slate";import"../../../ParameterCharts/ParameterCharts.js";import"../../../ParameterCharts/AddEditTrack.js";import"../../../ChartActionsList/ChartActionsList.js";import"../../../CopyToClipboard/CopyToClipboard.js";import"../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../AssetEditor/SingleAssetEditor.js";import"../../../SettingEditors/ColorEditor/index.js";import"../../../SettingEditors/DropdownEditor/index.js";import"../../../SettingEditors/RadioEditor/index.js";import"../../../SwitchControl/index.js";import"../../../ColorPicker/ColorPicker.js";import"../../../Chart/components/ChartButton.js";import"../../../Chart/components/ChartButtons.js";import"../../../Chart/components/ChartWrapper.js";import"../../../Chart/components/AxisDropdown.js";import"../../../Chart/components/buttons/DragToZoomButton.js";import"../../../Chart/components/buttons/ZoomInButton.js";import"../../../Chart/components/buttons/ZoomOutButton.js";import"../../../Chart/components/buttons/PanButton.js";import"../../../Chart/components/buttons/ResetZoomButton.js";import"../../../Chart/components/buttons/HideAxesButton.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.js";import"../../../AdvancedSlider/AdvancedSlider.js";import"../../../Breadcrumbs/index.js";import"../../../VirtualizedTable/index.js";import"../../../EmptyView/EmptyView.js";import"../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../Button/index.js";import"../../../ContextMenuItem/index.js";import"../../../FolderMenuItem/index.js";import"../../../EditableItem/EditableItem/index.js";import"../../../EditableItem/EditableItemWithBadge/index.js";import"../../../Checkbox/index.js";import"../../../FolderMenuItemWithLinks/index.js";import"../../../IconButton/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import"../../../Select/index.js";import"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../GradientManager/configuration/constants.js";import"../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../GradientManager/GradientSelect.styles.js";import"../../../GradientPicker/GradientPicker.js";import"../../../GradientManager/GradientManager.styles.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/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/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"../../../Toaster/Toaster.js";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../Template/TemplateSharingDialog/index.js";import"../../../MenuItem/index.js";import"../../../PadModeSelect/PadModeSelect.js";import"../../../PinnableFilters/PinnableFilters.js";import"../../../HeaderLayout/HeaderLayout.js";import"../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../PadOffsetsPicker/StagesSelector.js";import"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/ScrollableTooltip.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.js";import"../../../SearchInput/index.js";import"../../../FeedItem/FeedItem.js";import"../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../PostInput/PostInput.js";import"../../../KeyboardDateTimePicker.js";import"../../../AddComment/Popover.js";import"../../../AddComment/Popup.js";import"../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../StageDesignVActual/ComparisonHeader.js";import"../../../StageDesignVActual/ComparisonRow.js";import"../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../EmbeddedApp/EmbeddedApp.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../Autocomplete/Autocomplete.js";import"../../../DocumentViewer/DocumentViewer.js";import"../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../Search/Search.js";import"../../../Search/components/Listbox.js";import"../../../Search/components/Paper.js";import"../../../Search/components/RecentSearches.js";import"../../../Search/components/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import"../../../StatusBadge/index.js";import"../../../Attachment/index.js";import"../../../EmojiIconButton.js";import"../../../FileUploadIconButton.js";import"../../../FilePreview/index.js";import"../../../FailedFileUploading.js";import"../../../UserMention/index.js";import"../../../CommentsInfo/index.js";import"../../../CommentInput/index.js";import"../../../Comment/index.js";import"../../../CommentLoader.js";import"../../../AssetNameLabel/AssetStatusBadge.js";import{AdvancedSearch as v}from"./AdvancedSearch/AdvancedSearch.js";import A from"./OffsetWellsTableHead.js";import g from"./OffsetWellsTableRow.js";import{METRICS_LIST as D,EXPANED_WELLNAME_WIDTH as S,TableColumns as y,ViewType as x,ROW_HEIGHT as P}from"../../constants.js";import T from"./OffsetWellsTable.module.css.js";import{getIsImperial as I}from"../../utils/unitSystem.js";function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function W(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?w(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var O=function(r){var m,w=r.open,O=r.isTableLoading,E=r.companyId,B=r.subjectWellId,R=r.sortBy,L=r.setSortBy,M=r.sortDirection,k=r.setSortDirection,F=r.columnsWithDict,N=r.wells,q=r.metricsKeys,V=r.setMetricsKeys,H=r.handleChanageOffsetWell,G=r.handleChangeAllOffsetWells,K=r.handleAddRemoveAssets,U=r.isWellNameExpand,Z=r.setIsWellNameExpand,z=r.isHscrollMoved,J=r.onHideAdvancedSearch,Q=r.isViewOnly,X=r.isLastWell,Y=r.contentRef,$=r.isLimitedOffsetwells,_=r.maxOffsetwellNumber,ee=r.wellSections,te=r.setActiveWellId,re=r.viewType,ie=r.isWDUser,oe=i([]),ne=e(oe,2),se=ne[0],ae=ne[1],pe=i(null),le=e(pe,2),me=le[0],de=le[1],ce=i(0),ue=e(ce,2),je=ue[0],Ce=ue[1],fe=i(0),he=e(fe,2),be=he[0],ve=he[1],Ae=o(),ge=o(),De=o();n((function(){if(!me)return ae(N),void ve(0);var t=function(e,t,r,i){var o,n=e.findIndex((function(e){return t===e.id})),s=r.findIndex((function(e){return t===e.id}));-1===s&&(s=r.length);var a=Math.round(((null===(o=i.current)||void 0===o?void 0:o.clientHeight)-145)/P+1),p=s-n;Math.abs(p)>a&&(s=n+a*Math.sign(p));var l=s-n;return[n,s,l,200*(.4*Math.abs(l)+2),Math.min(n,s),(Math.abs(l)+1)*P]}(se,me,N,Y),r=e(t,6),i=r[0],o=r[1],n=r[2],s=r[3],a=r[4],p=r[5];if(De.current=s,o===i)ae(N);else{Ce(a),ve(p);var l=function(e,t,r,i){return e.map((function(e,o){var n=r<o&&o<=i||i<=o&&o<r;return o===r?W(W({},e),{},{moveTo:t}):n?W(W({},e),{},{moveTo:r<i?-1:1,delayTime:Math.abs(o-r)}):e}))}(se,n,i,o);ae(l),setTimeout((function(){ae(N),ve(0),de(null)}),s)}}),[N]);var Se=s((function(){var e=se.filter((function(e){return e.checked}));return[e,se.length!==e.length&&e.length&&!$,e.length===se.length||$]}),[se,$]),ye=e(Se,3),xe=ye[0],Pe=ye[1],Te=ye[2],Ie=s((function(){return I()}),[]),we=s((function(){return(q||[]).reduce((function(e,t){return e.concat(D.filter((function(e){return e.key===t})))}),[])}),[q]),We=s((function(){return U?S-58:y[0].width[q.length]-58}),[U,null==q?void 0:q.length]);n((function(){if(re!==x.mobile&&Ae.current&&ge.current){var e=Ae.current.querySelector(".".concat(T.wellNameFixed));z?e.classList.remove(T.noShadow):e.classList.add(T.noShadow);var t=ge.current.querySelectorAll(".".concat(T.wellNameFixed));z?t.forEach((function(e){return e.classList.remove(T.noShadow)})):t.forEach((function(e){return e.classList.add(T.noShadow)}))}}),[z,ge.current,Ae.current,se]);var Oe=a((function(e,t){L(e),k(t)}),[]),Ee=a((function(e){V(e)}),[]),Be=a((function(e,t){V((function(r){return r.map((function(r){return r===e?t:r}))}))}),[]);return F&&se?f("div",{className:T.offsetWellsTable,children:[h("div",{className:T.stickyTable,children:h(d,{"aria-label":"ows table head",innerRef:Ae,children:h(c,{children:h(A,{open:w,columnsWithDict:F,metricsKeys:q,sortBy:R,sortDirection:M,indeterminate:Pe,isAllWellsSelected:Te,onChangeSort:Oe,onChangeMetricsKeys:Ee,onUpdateMetricsKey:Be,isWellNameExpand:U,setIsWellNameExpand:Z,handleChangeAllOffsetWells:G,wellNameStyle:T.wellNameFixed,isViewOnly:Q,isImperial:Ie,contentRef:Y,viewType:re})})})}),!Q&&h("div",{className:T.searchCell,children:h(v,{companyId:E,subjectWellId:B,wells:se,onChange:K,selectedWellIds:xe.map((function(e){return e.id})),onHideAdvancedSearch:J,width:null===(m=Y.current)||void 0===m?void 0:m.getBoundingClientRect().width})}),h(d,{"aria-label":"ows table body",innerRef:ge,className:T.bodyTable,children:f(u,{children:[h(j,{children:h(C,{className:l(T.topShadow,t({},T.viewOnlyShadow,Q))})}),se.map((function(e,t){return f(p,{children:[h(j,{children:me&&be>0&&t===je&&h(C,{style:{height:be}})}),h(g,{columnsWithDict:F,subjectWellId:B,data:e,metricsKeys:q,metricsColumns:we,handleChanageOffsetWell:H,isWellNameExpand:U,wellNameStyle:T.wellNameFixed,wellNameWidth:We,isViewOnly:Q,isImperial:Ie,isLimitedOffsetwells:$,maxOffsetwellNumber:_,wellSections:ee,setActiveWellId:te,viewType:re,newCheckedWellId:null!=e&&e.moveTo?me:0,setNewCheckedWellId:de,index:null!=e&&e.moveTo?t:0,flyDuration:null!=e&&e.moveTo?De.current:0,isWDUser:ie})]},e.id)})),!X&&h(j,{children:h(C,{className:T.loadingCell,children:h("span",{children:"Loading..."})})}),h(j,{children:h(C,{className:T.bottomShadow})})]})}),O&&h(b,{fullscreen:!1,className:T.loadingContainer})]}):null};O.propTypes={open:m.bool.isRequired,isTableLoading:m.bool.isRequired,companyId:m.number.isRequired,subjectWellId:m.number.isRequired,sortBy:m.string.isRequired,setSortBy:m.func.isRequired,sortDirection:m.string.isRequired,setSortDirection:m.func.isRequired,columnsWithDict:m.arrayOf(m.shape({})).isRequired,wells:m.arrayOf(m.shape({})).isRequired,metricsKeys:m.arrayOf(m.string).isRequired,setMetricsKeys:m.func.isRequired,handleChanageOffsetWell:m.func.isRequired,handleChangeAllOffsetWells:m.func.isRequired,handleAddRemoveAssets:m.func.isRequired,setIsWellNameExpand:m.func.isRequired,isWellNameExpand:m.bool.isRequired,isHscrollMoved:m.bool.isRequired,onHideAdvancedSearch:m.func.isRequired,isViewOnly:m.bool.isRequired,isLastWell:m.bool.isRequired,isLimitedOffsetwells:m.bool.isRequired,maxOffsetwellNumber:m.number.isRequired,contentRef:m.shape().isRequired,wellSections:m.arrayOf(m.shape({})).isRequired,setActiveWellId:m.func.isRequired,viewType:m.string.isRequired,isWDUser:m.bool.isRequired};var E=r(O);export{E as default};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"classnames";import r from"prop-types";import{isEmpty as o}from"lodash";import{Sort as i,FilterList as s,Close as n}from"@material-ui/icons";import{jsxs as p,jsx as m}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../Modal/CorvaModal.js";import"react";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../ParameterCharts/ParameterCharts.js";import"../../../ParameterCharts/AddEditTrack.js";import"../../../ChartActionsList/ChartActionsList.js";import"../../../CopyToClipboard/CopyToClipboard.js";import"../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../AssetEditor/SingleAssetEditor.js";import"../../../SettingEditors/ColorEditor/index.js";import"../../../SettingEditors/DropdownEditor/index.js";import"../../../SettingEditors/RadioEditor/index.js";import a from"../../../SwitchControl/index.js";import"../../../ColorPicker/ColorPicker.js";import"../../../Chart/components/ChartButton.js";import"../../../Chart/components/ChartButtons.js";import"../../../Chart/components/ChartWrapper.js";import"../../../Chart/components/AxisDropdown.js";import"../../../Chart/components/buttons/DragToZoomButton.js";import"../../../Chart/components/buttons/ZoomInButton.js";import"../../../Chart/components/buttons/ZoomOutButton.js";import"../../../Chart/components/buttons/PanButton.js";import"../../../Chart/components/buttons/ResetZoomButton.js";import"../../../Chart/components/buttons/HideAxesButton.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.js";import"../../../AdvancedSlider/AdvancedSlider.js";import"../../../Breadcrumbs/index.js";import"../../../VirtualizedTable/index.js";import"../../../EmptyView/EmptyView.js";import"../../../EmptyView/EmptyAppView/EmptyAppView.js";import l from"../../../Button/index.js";import"../../../ContextMenuItem/index.js";import"../../../FolderMenuItem/index.js";import"../../../EditableItem/EditableItem/index.js";import"../../../EditableItem/EditableItemWithBadge/index.js";import"../../../Checkbox/index.js";import"../../../FolderMenuItemWithLinks/index.js";import"../../../IconButton/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import"../../../Select/index.js";import"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.js";import"@material-ui/core";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../GradientManager/configuration/constants.js";import"../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../GradientManager/GradientSelect.styles.js";import"../../../GradientPicker/GradientPicker.js";import"../../../GradientManager/GradientManager.styles.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/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/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"../../../Toaster/Toaster.js";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../Template/TemplateSharingDialog/index.js";import"../../../MenuItem/index.js";import"../../../PadModeSelect/PadModeSelect.js";import"../../../PinnableFilters/PinnableFilters.js";import"../../../HeaderLayout/HeaderLayout.js";import"../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../PadOffsetsPicker/StagesSelector.js";import"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../Tooltip/ScrollableTooltip.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.js";import"../../../SearchInput/index.js";import"../../../FeedItem/FeedItem.js";import"../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../PostInput/PostInput.js";import"../../../KeyboardDateTimePicker.js";import"../../../AddComment/Popover.js";import"../../../AddComment/Popup.js";import"../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../StageDesignVActual/ComparisonHeader.js";import"../../../StageDesignVActual/ComparisonRow.js";import"../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../EmbeddedApp/EmbeddedApp.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../Autocomplete/Autocomplete.js";import"../../../DocumentViewer/DocumentViewer.js";import"../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../Search/Search.js";import"../../../Search/components/Listbox.js";import"../../../Search/components/Paper.js";import"../../../Search/components/RecentSearches.js";import"../../../Search/components/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import"../../../StatusBadge/index.js";import"../../../Attachment/index.js";import"../../../EmojiIconButton.js";import"../../../FileUploadIconButton.js";import"../../../FilePreview/index.js";import"../../../FailedFileUploading.js";import"../../../UserMention/index.js";import"../../../CommentsInfo/index.js";import"../../../CommentInput/index.js";import"../../../Comment/index.js";import"../../../CommentLoader.js";import"../../../AssetNameLabel/AssetStatusBadge.js";import{ViewType as d}from"../../constants.js";import j from"./Toolbar.module.css.js";var c=function(r){var c,C=r.isViewOnly,u=r.viewType,A=r.filters,D=r.setFilters,b=r.isFilterExpanded,g=r.setIsFilterExpanded,v=r.isMapHidden,f=r.setIsMapHidden;return p("div",{className:t(j.controlGroup,(c={},e(c,j.controlGroupSmall,u===d.small),e(c,j.controlGroupMobile,u===d.mobile),c)),children:[p(l,{"data-testid":"".concat("Toolbar","_filters"),startIcon:m(b?i:s,{}),classes:{root:j.filterButton},onClick:function(){return g((function(e){return!e}))},disabled:C,children:["Filters",!o(A)&&p("div",{className:j.clearWrapper,onClick:function(e){e.stopPropagation(),D({})},children:[m(n,{className:j.clearIcon}),m("span",{className:j.clearLabel,children:"Clear"})]})]}),m(a,{"data-testid":"".concat("Toolbar","_map"),rightLabel:"Map",color:"primary",checked:!v,onChange:function(e){return f(!e.target.checked)}})]})};c.propTypes={isViewOnly:r.bool.isRequired,viewType:r.string.isRequired,filters:r.shape({}).isRequired,setFilters:r.func.isRequired,isFilterExpanded:r.bool.isRequired,setIsFilterExpanded:r.func.isRequired,isMapHidden:r.bool.isRequired,setIsMapHidden:r.func.isRequired};export{c as Toolbar};
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"classnames";import r from"prop-types";import{isEmpty as o}from"lodash";import{Sort as i,FilterList as s,Close as n}from"@material-ui/icons";import{jsxs as p,jsx as m}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../Modal/CorvaModal.js";import"react";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../ParameterCharts/ParameterCharts.js";import"../../../ParameterCharts/AddEditTrack.js";import"../../../ChartActionsList/ChartActionsList.js";import"../../../CopyToClipboard/CopyToClipboard.js";import"../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../AssetEditor/SingleAssetEditor.js";import"../../../SettingEditors/ColorEditor/index.js";import"../../../SettingEditors/DropdownEditor/index.js";import"../../../SettingEditors/RadioEditor/index.js";import a from"../../../SwitchControl/index.js";import"../../../ColorPicker/ColorPicker.js";import"../../../Chart/components/ChartButton.js";import"../../../Chart/components/ChartButtons.js";import"../../../Chart/components/ChartWrapper.js";import"../../../Chart/components/AxisDropdown.js";import"../../../Chart/components/buttons/DragToZoomButton.js";import"../../../Chart/components/buttons/ZoomInButton.js";import"../../../Chart/components/buttons/ZoomOutButton.js";import"../../../Chart/components/buttons/PanButton.js";import"../../../Chart/components/buttons/ResetZoomButton.js";import"../../../Chart/components/buttons/HideAxesButton.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.js";import"../../../AdvancedSlider/AdvancedSlider.js";import"../../../Breadcrumbs/index.js";import"../../../VirtualizedTable/index.js";import"../../../EmptyView/EmptyView.js";import"../../../EmptyView/EmptyAppView/EmptyAppView.js";import l from"../../../Button/index.js";import"../../../ContextMenuItem/index.js";import"../../../FolderMenuItem/index.js";import"../../../EditableItem/EditableItem/index.js";import"../../../EditableItem/EditableItemWithBadge/index.js";import"../../../Checkbox/index.js";import"../../../FolderMenuItemWithLinks/index.js";import"../../../IconButton/index.js";import"../../../TextField/index.js";import"../../../Chip/index.js";import"../../../Counter/index.js";import"../../../AnchorsList/AnchorsList.js";import"../../../Select/index.js";import"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.js";import"@material-ui/core";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../GradientManager/configuration/constants.js";import"../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../GradientManager/GradientSelect.styles.js";import"../../../GradientPicker/GradientPicker.js";import"../../../GradientManager/GradientManager.styles.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/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/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"../../../Toaster/Toaster.js";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../Template/TemplateSharingDialog/index.js";import"../../../MenuItem/index.js";import"../../../PadModeSelect/PadModeSelect.js";import"../../../PinnableFilters/PinnableFilters.js";import"../../../HeaderLayout/HeaderLayout.js";import"../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../PadOffsetsPicker/StagesSelector.js";import"../../../Table/TableToolbar/TableToolbar.js";import"../../../Table/TableContainer/TableContainer.js";import"../../../Table/TableCell/TableCell.js";import"../../../Tooltip/ScrollableTooltip.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.js";import"../../../SearchInput/index.js";import"../../../FeedItem/FeedItem.js";import"../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../PostInput/PostInput.js";import"../../../KeyboardDateTimePicker.js";import"../../../AddComment/Popover.js";import"../../../AddComment/Popup.js";import"../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../StageDesignVActual/ComparisonHeader.js";import"../../../StageDesignVActual/ComparisonRow.js";import"../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../EmbeddedApp/EmbeddedApp.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../Autocomplete/Autocomplete.js";import"../../../DocumentViewer/DocumentViewer.js";import"../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../Search/Search.js";import"../../../Search/components/Listbox.js";import"../../../Search/components/Paper.js";import"../../../Search/components/RecentSearches.js";import"../../../Search/components/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import"../../../StatusBadge/index.js";import"../../../Attachment/index.js";import"../../../EmojiIconButton.js";import"../../../FileUploadIconButton.js";import"../../../FilePreview/index.js";import"../../../FailedFileUploading.js";import"../../../UserMention/index.js";import"../../../CommentsInfo/index.js";import"../../../CommentInput/index.js";import"../../../Comment/index.js";import"../../../CommentLoader.js";import"../../../AssetNameLabel/AssetStatusBadge.js";import{ViewType as d}from"../../constants.js";import j from"./Toolbar.module.css.js";var c=function(r){var c,C=r.isViewOnly,u=r.viewType,A=r.filters,b=r.setFilters,D=r.isFilterExpanded,g=r.setIsFilterExpanded,v=r.isMapHidden,f=r.setIsMapHidden;return p("div",{className:t(j.controlGroup,(c={},e(c,j.controlGroupSmall,u===d.small),e(c,j.controlGroupMobile,u===d.mobile),c)),children:[p(l,{"data-testid":"".concat("Toolbar","_filters"),startIcon:m(D?i:s,{}),classes:{root:j.filterButton},onClick:function(){return g((function(e){return!e}))},disabled:C,children:["Filters",!o(A)&&p("div",{className:j.clearWrapper,onClick:function(e){e.stopPropagation(),b({})},children:[m(n,{className:j.clearIcon}),m("span",{className:j.clearLabel,children:"Clear"})]})]}),m(a,{"data-testid":"".concat("Toolbar","_map"),rightLabel:"Map",color:"primary",checked:!v,onChange:function(e){return f(!e.target.checked)}})]})};c.propTypes={isViewOnly:r.bool.isRequired,viewType:r.string.isRequired,filters:r.shape({}).isRequired,setFilters:r.func.isRequired,isFilterExpanded:r.bool.isRequired,setIsFilterExpanded:r.func.isRequired,isMapHidden:r.bool.isRequired,setIsMapHidden:r.func.isRequired};export{c as Toolbar};
@@ -1 +1 @@
1
- {"version":3,"file":"useAdvancedWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useAdvancedWells.js"],"names":[],"mappings":"AAQA,yJAsHC"}
1
+ {"version":3,"file":"useAdvancedWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/effects/useAdvancedWells.js"],"names":[],"mappings":"AAUA,yJAwHC"}
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import e from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import{useState as o,useRef as i,useEffect as u}from"react";import{get as a}from"lodash";import{mapbox as c}from"../../../utils/index.js";import{fetchMetricsData as s}from"../utils/apiCalls.js";import{ALL_SECTION_KEY as f,ColumnType as p}from"../constants.js";function l(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}var b=c.getAssetV2Coordinates,d=c.getDistanceByCoordinates;function h(c,l,h,v,y,O){var j=o(null),w=e(j,2),x=w[0],g=w[1],P=o(null),k=e(P,2),E=k[0],F=k[1],D=o(null),C=e(D,2),S=C[0],A=C[1],H=i({});function T(){return T=t(n.mark((function r(){var e,o,i;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=l.find((function(r){return r.id===y})),(o=e&&b(e,"topHole"))||F(l),r.next=5,Promise.all(l.map(function(){var r=t(n.mark((function r(t){var e,i;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,b(t,"topHole");case 3:if(!(e=r.sent)){r.next=13;break}return r.t0=parseFloat,r.next=8,d(o,e);case 8:return r.t1=r.sent,i=(0,r.t0)(r.t1),r.abrupt("return",m(m({},t),{},{distance:parseFloat(i.toFixed(2))}));case 13:return r.abrupt("return",t);case 14:r.next=19;break;case 16:return r.prev=16,r.t2=r.catch(0),r.abrupt("return",t);case 19:case"end":return r.stop()}}),r,null,[[0,16]])})));return function(t){return r.apply(this,arguments)}}()));case 5:i=r.sent,F(i);case 7:case"end":return r.stop()}}),r)}))),T.apply(this,arguments)}function B(r){return G.apply(this,arguments)}function G(){return(G=t(n.mark((function r(t){var e,o,i;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s(c,t,O);case 2:e=r.sent,o={},t.forEach((function(r){var t={},n=e.filter((function(t){return a(t,"asset_id")===r}));O.forEach((function(r){var e=n.find((function(t){return a(t,"data.key")===r})),o=a(e,"data.value");t[r]=Number.isFinite(o)?parseFloat(o.toFixed(2)):null})),o[r]=t})),H.current=m(m({},H.current),o),i=[],S.forEach((function(r){i.push(m(m({},r),H.current[r.id]))})),g(i);case 9:case"end":return r.stop()}}),r)})))).apply(this,arguments)}return u((function(){l&&function(){T.apply(this,arguments)}()}),[l,y]),u((function(){var t,e;E&&h&&v&&(t=h.filter((function(r){return r.value!==f})),e=E.map((function(e){var n=t.filter((function(r){return(v[r.value]||[]).includes(e.id)})).map((function(r){return r.label}));return n.length>0?m(m({},e),{},r({},p.wellSection,n)):e})),A(e))}),[E,h,v]),u((function(){if(S){var r=[];S.forEach((function(t){H.current[t.id]||r.push(t.id)})),B(r)}}),[S]),u((function(){x&&B(x.map((function(r){return r.id})))}),[O]),x}export{h as useAdvancedWells};
1
+ import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import e from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import{useState as o,useRef as u,useEffect as i}from"react";import{groupBy as a,get as c}from"lodash";import{mapbox as s}from"../../../utils/index.js";import{fetchMetricsData as p}from"../utils/apiCalls.js";import{ALL_SECTION_KEY as f,ColumnType as l}from"../constants.js";function m(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}var d=s.getAssetV2Coordinates,v=s.getDistanceByCoordinates,h=function(r){return Number.isFinite(r)?parseFloat(r.toFixed(2)):null};function y(s,m,y,O,j,w){var x=o(null),g=e(x,2),P=g[0],k=g[1],F=o(null),D=e(F,2),E=D[0],C=D[1],S=o(null),A=e(S,2),H=A[0],T=A[1],B=u({});function G(){return G=t(n.mark((function r(){var e,o,u;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=m.find((function(r){return r.id===j})),(o=e&&d(e,"topHole"))||C(m),r.next=5,Promise.all(m.map(function(){var r=t(n.mark((function r(t){var e,u;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,d(t,"topHole");case 3:if(!(e=r.sent)){r.next=13;break}return r.t0=parseFloat,r.next=8,v(o,e);case 8:return r.t1=r.sent,u=(0,r.t0)(r.t1),r.abrupt("return",b(b({},t),{},{distance:parseFloat(u.toFixed(2))}));case 13:return r.abrupt("return",t);case 14:r.next=19;break;case 16:return r.prev=16,r.t2=r.catch(0),r.abrupt("return",t);case 19:case"end":return r.stop()}}),r,null,[[0,16]])})));return function(t){return r.apply(this,arguments)}}()));case 5:u=r.sent,C(u);case 7:case"end":return r.stop()}}),r)}))),G.apply(this,arguments)}function N(r){return V.apply(this,arguments)}function V(){return(V=t(n.mark((function t(e){var o,u,i,f;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p(s,e,w);case 2:o=t.sent,u={},i=a(o,"asset_id"),e.forEach((function(t){var e,n=null===(e=i[t])||void 0===e?void 0:e.reduce((function(t,e){var n=c(e,"data.value"),o=c(e,"data.key");return b(b({},t),{},r({},o,h(n)))}),{});u[t]=n})),B.current=b(b({},B.current),u),f=[],H.forEach((function(r){f.push(b(b({},r),B.current[r.id]))})),k(f);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return i((function(){m&&function(){G.apply(this,arguments)}()}),[m,j]),i((function(){var t,e;E&&y&&O&&(t=y.filter((function(r){return r.value!==f})),e=E.map((function(e){var n=t.filter((function(r){return(O[r.value]||[]).includes(e.id)})).map((function(r){return r.label}));return n.length>0?b(b({},e),{},r({},l.wellSection,n)):e})),T(e))}),[E,y,O]),i((function(){if(H){var r=[];H.forEach((function(t){B.current[t.id]||r.push(t.id)})),N(r)}}),[H]),i((function(){P&&N(P.map((function(r){return r.id})))}),[w]),P}export{y as useAdvancedWells};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { AssetItem } from '~/components/StatusBadge/constants';
3
+ declare type DQAccordionDetailsContentProps = {
4
+ anchorEl: HTMLAnchorElement;
5
+ assets: AssetItem[];
6
+ };
7
+ export declare const DQAccordionDetailsContent: ({ assets, anchorEl }: DQAccordionDetailsContentProps) => JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=DQAccordionDetailsContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DQAccordionDetailsContent.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQAccordionDetailsContent.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAgD,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAG7G,aAAK,8BAA8B,GAAG;IACpC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB,CAAC;AAUF,eAAO,MAAM,yBAAyB,yBAA0B,8BAA8B,KAAG,WA6ChG,CAAC"}
@@ -0,0 +1 @@
1
+ import{__assign as s}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as e,jsxs as a,Fragment as r}from"react/jsx-runtime";import i from"classnames";import{useDQUnvalidatedContentStyles as l}from"../styles.js";import{ALERT_ICONS as t,ALERT_STATES as n}from"../constants.js";import{DQAlertTooltip as m}from"./DQAlertTooltip.js";var o=function(o){var c=o.assets,d=o.anchorEl,u=l({});return e("div",s({className:u.assetTable},{children:c.map((function(l){var o=l.id,c=l.name,v=l.issuesNum,N=l.missingNum,h=l.isResolved,p=l.alert,f=function(s){return{alert:p,alertsNum:s===n.issue?v:N,alertState:s===n.issue?n.issue:n.missing,isMissingData:N>0,isIssueData:v>0}},j=f(n.issue),C=f(n.missing),g=t.Resolved;return a("div",s({className:u.assetWrapper},{children:[e("div",s({className:i(u.assetName,u.assetCell)},{children:c})),h?e("div",s({className:u.assetCell},{children:e("div",s({className:u.errorContainer},{children:e(g,{className:i(u.Resolved,u.alertIcon)})}))})):a(r,{children:[v>0&&e("div",s({className:u.assetCell},{children:e(m,s({anchorEl:d},j))})),N>0&&e("div",s({className:u.assetCell},{children:e(m,s({anchorEl:d},C))}))]})]}),o)}))}))};export{o as DQAccordionDetailsContent};
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { Alert, AlertState } from '~/components/StatusBadge/constants';
3
+ declare type DQAlertTooltipProps = {
4
+ alertsNum: number;
5
+ alertState: AlertState;
6
+ isMissingData: boolean;
7
+ isIssueData: boolean;
8
+ anchorEl: HTMLAnchorElement;
9
+ alert: Alert;
10
+ };
11
+ export declare const DQAlertTooltip: ({ alert, alertsNum, alertState, isMissingData, isIssueData, anchorEl }: DQAlertTooltipProps) => JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=DQAlertTooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DQAlertTooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQAlertTooltip.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,KAAK,EAAE,UAAU,EAA6B,MAAM,oCAAoC,CAAC;AAIjG,aAAK,mBAAmB,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,cAAc,2EAA4E,mBAAmB,KAAG,WAuB5H,CAAC"}
@@ -0,0 +1 @@
1
+ import{__assign as s}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r,jsxs as e}from"react/jsx-runtime";import i from"classnames";import{ALERT_STATES as a,ALERT_ICONS as t}from"../constants.js";import{DQAlertsTooltip as o}from"./DQAlertsTooltip.js";import{useDQUnvalidatedContentStyles as n}from"../styles.js";var l=function(l){var m,c=l.alert,p=l.alertsNum,d=l.alertState,f=l.isMissingData,h=l.isIssueData,u=l.anchorEl,N=n({}),g=t[d];return r(o,s({alert:f?s(s({},c),{state:a.missing}):c,anchorEl:u,alertIcon:r(g,{className:i(N[f?a.missing:d],N.alertIcon)}),isTooltipVisible:p>0},{children:e("div",s({className:i(N.errorContainer,(m={},m[N.missingContainer]=h&&d===a.missing,m))},{children:[r(g,{className:i(N[d],N.alertIcon)}),e("div",{children:[e("span",s({className:i(N[d],N.errorText)},{children:[d,": "]})),r("span",s({className:N.errorNum},{children:p}))]})]}))}))};export{l as DQAlertTooltip};
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
2
2
  import { Alert } from '../constants';
3
3
  declare type DQCountryCheckTooltipProps = {
4
4
  alert: Alert;
5
- anchorEl: ReactElement<any, any>;
5
+ anchorEl: HTMLAnchorElement;
6
6
  alertIcon: ReactElement;
7
7
  children: ReactElement<any, any>;
8
8
  isTooltipVisible: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"DQAlertsTooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQAlertsTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAMrC,OAAO,EAAE,KAAK,EAAqC,MAAM,cAAc,CAAC;AA6HxE,aAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACjC,SAAS,EAAE,YAAY,CAAC;IACxB,QAAQ,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACjC,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,eAAe,+DAAgE,0BAA0B,KAAG,WA6CxH,CAAC"}
1
+ {"version":3,"file":"DQAlertsTooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQAlertsTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAMrC,OAAO,EAAE,KAAK,EAAqC,MAAM,cAAc,CAAC;AA6HxE,aAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,SAAS,EAAE,YAAY,CAAC;IACxB,QAAQ,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACjC,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,eAAe,+DAAgE,0BAA0B,KAAG,WA6CxH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DQSuccessContent.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQSuccessContent.tsx"],"names":[],"mappings":";AAwBA,eAAO,MAAM,gBAAgB;aAA4B,MAAM,IAAI;MAAK,WAqBvE,CAAC"}
1
+ {"version":3,"file":"DQSuccessContent.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQSuccessContent.tsx"],"names":[],"mappings":";AA2BA,eAAO,MAAM,gBAAgB;aAA4B,MAAM,IAAI;MAAK,WAqBvE,CAAC"}
@@ -1 +1 @@
1
- import{__assign as t}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as i,jsx as e}from"react/jsx-runtime";import{makeStyles as o,Typography as n}from"@material-ui/core";import r from"../../Button/index.js";var a=o((function(t){return{container:{display:"flex",flexDirection:"column",padding:12},title:{fontWeight:500,fontSize:"16px",lineHeight:"19px",marginBottom:4},subtitle:{color:t.palette.primary.text7,fontSize:"12px",lineHeight:"14px",marginBottom:4},button:{alignSelf:"end"}}})),l=function(o){var l=o.onClick,s=a();return i("div",t({className:s.container},{children:[e(n,t({className:s.title},{children:"No Data Quality Issues"})),e(n,t({className:s.subtitle},{children:"If you have found any issues, inform us."})),e(r,t({color:"primary",className:s.button,onClick:l,variation:"secondary"},{children:"report dq issue"}))]}))};export{l as DQSuccessContent};
1
+ import{__assign as t}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as i,jsx as e}from"react/jsx-runtime";import{makeStyles as o,Typography as n}from"@material-ui/core";import r from"../../Button/index.js";var a=o((function(t){return{container:{display:"flex",flexDirection:"column",padding:12},title:{fontWeight:500,fontSize:"16px",lineHeight:"19px",marginBottom:4},subtitle:{color:t.palette.primary.text7,fontSize:"12px",lineHeight:"14px",marginBottom:4},button:{alignSelf:"end",marginTop:8}}})),l=function(o){var l=o.onClick,s=a();return i("div",t({className:s.container},{children:[e(n,t({className:s.title},{children:"No Data Quality Issues"})),e(n,t({className:s.subtitle},{children:"If you have found any issues, inform us."})),e(r,t({color:"primary",className:s.button,onClick:l,variation:"secondary"},{children:"report dq issue"}))]}))};export{l as DQSuccessContent};
@@ -1,8 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { AssetData } from '~/components/StatusBadge/constants';
3
3
  declare type DQUnvalidatedContentProps = {
4
- assetsData?: AssetData[];
4
+ assetsData?: AssetData;
5
+ maxHeight?: number;
5
6
  };
6
- export declare const DQUnvalidatedContent: ({ assetsData }: DQUnvalidatedContentProps) => JSX.Element;
7
+ export declare const DQUnvalidatedContent: ({ assetsData, maxHeight }: DQUnvalidatedContentProps) => JSX.Element;
7
8
  export {};
8
9
  //# sourceMappingURL=DQUnvalidatedContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DQUnvalidatedContent.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQUnvalidatedContent.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAA6B,MAAM,oCAAoC,CAAC;AAyD1F,aAAK,yBAAyB,GAAG;IAC/B,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;CAC1B,CAAA;AAED,eAAO,MAAM,oBAAoB,mBAAoB,yBAAyB,KAAG,WAwEhF,CAAC"}
1
+ {"version":3,"file":"DQUnvalidatedContent.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQUnvalidatedContent.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAK/D,aAAK,yBAAyB,GAAG;IAC/B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAA;AAED,eAAO,MAAM,oBAAoB,8BAA+B,yBAAyB,KAAG,WAwC3F,CAAC"}
@@ -1 +1 @@
1
- import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as a,jsx as s,Fragment as i}from"react/jsx-runtime";import{useRef as r}from"react";import t from"classnames";import{makeStyles as l,Typography as n}from"@material-ui/core";import{ALERT_STATES as o,ALERT_ICONS as c}from"../constants.js";import{DQAlertsTooltip as d}from"./DQAlertsTooltip.js";var m=l((function(e){return{alertIcon:{width:16,height:16},assetWrapper:{display:"table-row"},assetTable:{display:"table",marginTop:8},assetCell:{display:"table-cell",padding:"5px 0",verticalAlign:"middle"},assetName:{fontSize:"12px",lineHeight:"16px",width:89},container:{padding:12},headerText:{lineHeight:"19px",fontSize:"16px",fontWeight:500},subheaderText:{lineHeight:"14px",fontSize:"12px",fontWeight:400,color:e.palette.primary.text7,marginTop:4},Issue:{color:"#ffa500"},Missing:{color:e.palette.error.main},Resolved:{color:e.palette.success.bright},errorContainer:{display:"flex",alignItems:"center",marginLeft:8},errorText:{marginLeft:4,fontSize:"14px",lineHeight:"20px"},errorNum:{fontSize:"16px",lineHeight:"22px",marginLeft:4}}})),p=function(l){var p=l.assetsData,u=r(null),h=m(),f=function(i){var r=i.alert,l=i.alertsNum,n=i.alertState,m=i.isMissingData,p=c[n];return s(d,e({alert:m?e(e({},r),{state:o.missing}):r,anchorEl:u.current,alertIcon:s(p,{className:t(h[m?o.missing:n],h.alertIcon)}),isTooltipVisible:l>0},{children:a("div",e({className:h.errorContainer},{children:[s(p,{className:t(h[n],h.alertIcon)}),a("div",{children:[a("span",e({className:t(h[n],h.errorText)},{children:[n,": "]})),s("span",e({className:h.errorNum},{children:l}))]})]}))}))};return a("div",e({className:h.container,ref:u},{children:[a("div",{children:[s(n,e({className:h.headerText,"data-testid":"Status_badge__DQ_unvalidated_content"},{children:"Data Quality"})),s(n,e({className:h.subheaderText},{children:"Fusion real-time data quality rules for app data"}))]}),s("div",e({className:h.assetTable},{children:null==p?void 0:p.map((function(r){var l=r.id,n=r.name,d=r.issuesNum,m=r.missingNum,p=r.isResolved,u=r.alert,g=function(e){return{alert:u,alertsNum:e===o.issue?d:m,alertState:e===o.issue?o.issue:o.missing,isMissingData:m>0}},N=g(o.issue),v=g(o.missing),x=c.Resolved;return a("div",e({className:h.assetWrapper},{children:[s("div",e({className:t(h.assetName,h.assetCell)},{children:n})),p?s("div",e({className:h.assetCell},{children:s("div",e({className:h.errorContainer},{children:s(x,{className:t(h.Resolved,h.alertIcon)})}))})):a(i,{children:[s("div",e({className:h.assetCell},{children:d>0&&f(N)})),s("div",e({className:h.assetCell},{children:m>0&&f(v)}))]})]}),l)}))}))]}))};export{p as DQUnvalidatedContent};
1
+ import{__assign as a}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as e}from"react/jsx-runtime";import{useRef as t}from"react";import i from"classnames";import{Typography as s,Accordion as o,AccordionSummary as c,AccordionDetails as n}from"@material-ui/core";import m from"@material-ui/icons/ExpandMore";import{truncateString as l}from"../../Search/utils/truncate.js";import{useDQUnvalidatedContentStyles as d}from"../styles.js";import{DQAccordionDetailsContent as u}from"./DQAccordionDetailsContent.js";var h=function(h){var p=h.assetsData,f=h.maxHeight,v=t(null),x=d({maxHeight:f});return r("div",a({className:x.container,ref:v},{children:[r("div",{children:[e(s,a({className:x.headerText,"data-testid":"Status_badge__DQ_unvalidated_content"},{children:"Data Quality"})),e(s,a({className:x.subheaderText},{children:"Fusion real-time data quality rules for app data"}))]}),e("div",a({className:x.relative},{children:e("div",a({className:x.accordionsWrapper},{children:Object.keys(p).map((function(t){var s=p[t];return r(o,a({className:x.accordion,defaultExpanded:!0},{children:[e(c,a({className:i("large","stretched"),expandIcon:e(m,{})},{children:l(t,{maxChars:40,charsNumFromStart:18,charsNumFromEnd:17})})),e(n,{children:e(u,{anchorEl:null==v?void 0:v.current,assets:s})})]}),t)}))}))}))]}))};export{h as DQUnvalidatedContent};
@@ -1 +1 @@
1
- {"version":3,"file":"ReportIssueModal.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/ReportIssueModal.tsx"],"names":[],"mappings":";AAoBA,aAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAA;AAED,eAAO,MAAM,gBAAgB,8BAA+B,qBAAqB,KAAG,WAsCnF,CAAC"}
1
+ {"version":3,"file":"ReportIssueModal.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/ReportIssueModal.tsx"],"names":[],"mappings":";AAuBA,aAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAA;AAED,eAAO,MAAM,gBAAgB,8BAA+B,qBAAqB,KAAG,WAuCnF,CAAC"}
@@ -1 +1 @@
1
- import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useState as o}from"react";import{makeStyles as n,TextField as a}from"@material-ui/core";import l from"../../Modal/Modal.js";import c from"../../Button/index.js";var m=n((function(e){return{container:{width:472,color:e.palette.primary.text6,display:"flex",flexDirection:"column",gap:8},helpText:{fontSize:16,lineHeight:"22px"},clearAllButton:{margin:"0 16px 0 auto"}}})),s=function(n){var s=n.open,u=n.onSave,p=n.onClose,d=m(),f=o(""),h=f[0],x=f[1];return r(l,e({open:s,onClose:p,title:"Report Data Quality Issue",actions:t(i,{children:[r(c,e({color:"primary",className:d.clearAllButton,onClick:p},{children:"Cancel"})),r(c,e({onClick:function(){return u(h)},variation:"primary"},{children:"Save"}))]})},{children:t("div",e({className:d.container},{children:[r("div",e({className:d.helpText},{children:"All issues are submitted to the Corva’s 24/7 Fusion data quality team for immediate review and remediation."})),r(a,{multiline:!0,rows:1,rowsMax:4,label:"Error Description",onChange:function(e){return x(e.target.value)}})]}))}))};export{s as ReportIssueModal};
1
+ import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as r,Fragment as i}from"react/jsx-runtime";import{useState as o}from"react";import{makeStyles as a,TextField as n}from"@material-ui/core";import l from"../../Modal/Modal.js";import m from"../../Button/index.js";var s=a((function(e){return{container:{width:472,color:e.palette.primary.text6,display:"flex",flexDirection:"column",gap:8},helpText:{fontSize:16,lineHeight:"22px"},clearAllButton:{margin:"0 16px 0 auto"},textField:{"& .MuiInput-formControl":{marginTop:8}}}})),c=function(a){var c=a.open,u=a.onSave,d=a.onClose,p=s(),f=o(""),x=f[0],h=f[1];return t(l,e({open:c,onClose:d,title:"Report Data Quality Issue",actions:r(i,{children:[t(m,e({color:"primary",className:p.clearAllButton,onClick:d},{children:"Cancel"})),t(m,e({disabled:!x,onClick:function(){return u(x)},variation:"primary"},{children:"Save"}))]})},{children:r("div",e({className:p.container},{children:[t("div",e({className:p.helpText},{children:"All issues are submitted to the Corva’s 24/7 Fusion data quality team for immediate review and remediation."})),t(n,{className:p.textField,multiline:!0,rows:1,rowsMax:4,label:"Error Description",onChange:function(e){return h(e.target.value)}})]}))}))};export{c as ReportIssueModal};
@@ -5,14 +5,17 @@ export declare const ALERT_ICONS: {
5
5
  Issue: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
6
6
  Resolved: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
7
7
  };
8
+ declare type Issue = 'Issue';
9
+ declare type Missing = 'Missing';
10
+ export declare type AlertState = Issue | Missing;
8
11
  export declare const ALERT_STATES: {
9
- missing: string;
10
- issue: string;
12
+ issue: Issue;
13
+ missing: Missing;
11
14
  };
12
15
  export declare type Alert = {
13
16
  name: string;
14
17
  category: string;
15
- state: string;
18
+ state: AlertState;
16
19
  status: string;
17
20
  isThrottled: boolean;
18
21
  message: string;
@@ -20,7 +23,7 @@ export declare type Alert = {
20
23
  statusUpdatedAt: number;
21
24
  lastCheckedAt: number;
22
25
  };
23
- export declare type AssetData = {
26
+ export declare type AssetItem = {
24
27
  name: string;
25
28
  id: number;
26
29
  issuesNum: number;
@@ -28,6 +31,7 @@ export declare type AssetData = {
28
31
  isResolved?: boolean;
29
32
  alert: Alert;
30
33
  };
34
+ export declare type AssetData = Record<string, AssetItem[]>;
31
35
  declare type BadgeIconStatuses = {
32
36
  success: 'success';
33
37
  warning: 'warning';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC,oBAAY,eAAe,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAE9D,eAAO,MAAM,WAAW;;;;CAIvB,CAAC;AAEF,eAAO,MAAM,YAAY;;;CAGxB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,aAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,iBAIjC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;CAIvB,CAAC;AAEF,eAAO,MAAM,OAAO,kEAAkE,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC,oBAAY,eAAe,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAE9D,eAAO,MAAM,WAAW;;;;CAIvB,CAAC;AAEF,aAAK,KAAK,GAAG,OAAO,CAAC;AACrB,aAAK,OAAO,GAAG,SAAS,CAAC;AAEzB,oBAAY,UAAU,GAAG,KAAK,GAAG,OAAO,CAAC;AAEzC,eAAO,MAAM,YAAY,EAAE;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAG1D,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,UAAU,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,oBAAY,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAEpD,aAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,iBAIjC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;CAIvB,CAAC;AAEF,eAAO,MAAM,OAAO,kEAAkE,CAAC"}
@@ -1,14 +1,15 @@
1
1
  /// <reference types="react" />
2
2
  import { AssetData } from './constants';
3
3
  declare type StatusBadgeProps = {
4
- assetsData?: AssetData[];
4
+ assetsData?: AssetData;
5
5
  appWidth: number;
6
6
  className?: string;
7
+ DQIssueTooltipMaxHeight?: number;
7
8
  iconType?: 'error' | 'success';
8
9
  lastTimestamp: number;
9
10
  onReportErrorClick?: (description: string) => void;
10
11
  warningData?: Record<string, any>;
11
12
  };
12
- export declare const StatusBadge: ({ assetsData, appWidth, iconType, className, lastTimestamp, onReportErrorClick, warningData, }: StatusBadgeProps) => JSX.Element;
13
+ export declare const StatusBadge: ({ assetsData, appWidth, DQIssueTooltipMaxHeight, iconType, className, lastTimestamp, onReportErrorClick, warningData, }: StatusBadgeProps) => JSX.Element;
13
14
  export {};
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAIL,SAAS,EACV,MAAM,aAAa,CAAC;AA2ErB,aAAK,gBAAgB,GAAG;IACtB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,WAAW,mGAQrB,gBAAgB,KAAG,WA0ErB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAIL,SAAS,EACV,MAAM,aAAa,CAAC;AA+ErB,aAAK,gBAAgB,GAAG;IACtB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,WAAW,4HASrB,gBAAgB,KAAG,WA2ErB,CAAC"}
@@ -1 +1 @@
1
- import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e,jsxs as o,Fragment as n}from"react/jsx-runtime";import{useState as a}from"react";import r from"moment";import i from"classnames";import{makeStyles as s,Typography as c}from"@material-ui/core";import{Tooltip as p}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import{WARNING as l,BADGE_ICON_STATUSES as m,MAX_MOBILE_WIDTH as d}from"./constants.js";import{DQStatusIcon as g}from"./components/DQStatusIcon.js";import{DQUnvalidatedContent as u}from"./components/DQUnvalidatedContent.js";import{DQSuccessContent as f}from"./components/DQSuccessContent.js";import{ReportIssueModal as x}from"./components/ReportIssueModal.js";var h=s((function(t){return{statusBadgeWrapper:{backgroundColor:t.palette.background.b4,display:"flex",height:30},statusBadgeContent:{display:"flex",padding:function(t){var e=t.isSuccessTypeIcon,o=t.isErrorTypeIcon;return"12px 0 2px ".concat(e||o?6:2,"px")},whiteSpace:"nowrap",width:"calc(100% - 140px)"},text:{fontSize:"10px",lineHeight:"12px",alignSelf:"center"},timestamp:{color:t.palette.primary.text6,marginLeft:function(t){return t.isIconExist&&4}},warningMessage:{color:t.palette.primary.text1,marginLeft:4,textOverflow:"ellipsis",overflow:"hidden",fontSize:"12px"},badgeIconWarning:{marginLeft:8},popper:{"& .MuiTooltip-tooltip":{maxWidth:455,padding:4,fontSize:12,boxShadow:"0px 0px 4px 2px rgb(0 0 0 / 12%)",fontWeight:400,lineHeight:"16px",letterSpacing:"0.4px",backgroundColor:t.palette.background.b9}},DQIconWrapper:{display:"flex",alignItems:"center",alignSelf:"center",justifyContent:"center",height:24,width:24,borderRadius:12,"&:hover":{backgroundColor:function(t){var e=t.isErrorTypeIcon,o=t.isSuccessTypeIcon;return e?"rgba(244, 67, 54, 0.1)":o?"rgba(117, 219, 41, 0.2)":"transparent"}}}}})),b=function(s){var b,v=s.assetsData,S=void 0===v?[]:v,y=s.appWidth,I=s.iconType,T=s.className,w=s.lastTimestamp,_=s.onReportErrorClick,C=s.warningData,D=a(!1),j=D[0],W=D[1],N=null==C?void 0:C.message,k=I==m.error,Q=I==m.success,E=y<d,M=h({isIconExist:!!I,isSuccessTypeIcon:Q,isErrorTypeIcon:k});k&&(b=e(u,{assetsData:S})),Q&&(b=e(f,{onClick:function(){return W(!0)}}));return o("div",t({"data-testid":"Status_badge",className:i(M.statusBadgeWrapper,T)},{children:[o("div",t({className:M.statusBadgeContent},{children:[I&&e(p,t({interactive:k||Q,PopperProps:k&&{className:M.popper},placement:"top-start",title:b},{children:e("div",t({className:M.DQIconWrapper,"data-testid":"".concat("Status_badge","__DQ_icon_").concat(I)},{children:e(g,{color:I,iconType:I})}))})),o(c,t({className:i(M.text,M.timestamp),variant:"body1"},{children:["Last Update: ",r.unix(w).format("M/D/YYYY h:mm a")]})),C&&o(n,{children:[e(p,t({placement:"top",title:N?"".concat(l,". ").concat(N):l},{children:e("div",t({"data-testid":"".concat("Status_badge","__DQ_icon_warning")},{children:e(g,{className:M.badgeIconWarning,color:m.warning,iconType:m.warning})}))})),!E&&e(c,t({className:i(M.text,M.warningMessage),variant:"body1"},{children:N?"".concat(l,". ").concat(N):l}))]})]})),Q&&e(x,{open:j,onSave:function(t){_(t),W(!1)},onClose:function(){return W(!1)}})]}))};export{b as StatusBadge};
1
+ import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e,jsxs as o,Fragment as n}from"react/jsx-runtime";import{useState as a}from"react";import r from"moment";import i from"classnames";import{makeStyles as s,Typography as c}from"@material-ui/core";import{Tooltip as p}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import{WARNING as l,BADGE_ICON_STATUSES as m,MAX_MOBILE_WIDTH as d}from"./constants.js";import{DQStatusIcon as g}from"./components/DQStatusIcon.js";import{DQUnvalidatedContent as u}from"./components/DQUnvalidatedContent.js";import{DQSuccessContent as f}from"./components/DQSuccessContent.js";import{ReportIssueModal as x}from"./components/ReportIssueModal.js";var h=s((function(t){return{statusBadgeWrapper:{backgroundColor:t.palette.background.b4,display:"flex",height:30},statusBadgeContent:{display:"flex",padding:function(t){var e=t.isSuccessTypeIcon,o=t.isErrorTypeIcon;return"12px 0 2px ".concat(e||o?6:2,"px")},whiteSpace:"nowrap",width:"calc(100% - 140px)"},text:{fontSize:"10px",lineHeight:"12px",alignSelf:"center"},timestamp:{color:t.palette.primary.text6,marginLeft:function(t){return t.isIconExist&&4}},warningMessage:{color:t.palette.primary.text1,marginLeft:4,textOverflow:"ellipsis",overflow:"hidden",fontSize:"12px"},badgeIconWarning:{marginLeft:8},popper:{"& .MuiTooltip-tooltip":{position:"absolute",bottom:0,width:"max-content",transformOrigin:"center top",maxWidth:"none",padding:4,fontSize:12,boxShadow:"0px 0px 4px 2px rgb(0 0 0 / 12%)",fontWeight:400,lineHeight:"16px",letterSpacing:"0.4px",backgroundColor:t.palette.background.b9}},DQIconWrapper:{display:"flex",alignItems:"center",alignSelf:"center",justifyContent:"center",height:24,width:24,borderRadius:12,"&:hover":{backgroundColor:function(t){var e=t.isErrorTypeIcon,o=t.isSuccessTypeIcon;return e?"rgba(244, 67, 54, 0.1)":o?"rgba(117, 219, 41, 0.2)":"transparent"}}}}})),b=function(s){var b,v=s.assetsData,y=void 0===v?{}:v,S=s.appWidth,I=s.DQIssueTooltipMaxHeight,T=s.iconType,w=s.className,D=s.lastTimestamp,_=s.onReportErrorClick,C=s.warningData,j=a(!1),W=j[0],N=j[1],Q=null==C?void 0:C.message,k=T==m.error,E=T==m.success,M=S<d,B=h({isIconExist:!!T,isSuccessTypeIcon:E,isErrorTypeIcon:k});k&&(b=e(u,{assetsData:y,maxHeight:I})),E&&(b=e(f,{onClick:function(){return N(!0)}}));return o("div",t({"data-testid":"Status_badge",className:i(B.statusBadgeWrapper,w)},{children:[o("div",t({className:B.statusBadgeContent},{children:[T&&e(p,t({leaveDelay:200,interactive:k||E,PopperProps:{className:B.popper},placement:"top-start",title:b},{children:e("div",t({className:B.DQIconWrapper,"data-testid":"".concat("Status_badge","__DQ_icon_").concat(T)},{children:e(g,{color:T,iconType:T})}))})),o(c,t({className:i(B.text,B.timestamp),variant:"body1"},{children:["Last Update: ",r.unix(D).format("M/D/YYYY h:mm a")]})),C&&o(n,{children:[e(p,t({placement:"top",title:Q?"".concat(l,". ").concat(Q):l},{children:e("div",t({"data-testid":"".concat("Status_badge","__DQ_icon_warning")},{children:e(g,{className:B.badgeIconWarning,color:m.warning,iconType:m.warning})}))})),!M&&e(c,t({className:i(B.text,B.warningMessage),variant:"body1"},{children:Q?"".concat(l,". ").concat(Q):l}))]})]})),E&&e(x,{open:W,onSave:function(t){_(t),N(!1)},onClose:function(){return N(!1)}})]}))};export{b as StatusBadge};
@@ -0,0 +1,6 @@
1
+ declare type DQUnvalidatedContentStyleProps = {
2
+ maxHeight?: number;
3
+ };
4
+ export declare const useDQUnvalidatedContentStyles: (props: DQUnvalidatedContentStyleProps) => import("@material-ui/styles").ClassNameMap<string>;
5
+ export {};
6
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/styles.ts"],"names":[],"mappings":"AAEA,aAAK,8BAA8B,GAAG;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,6BAA6B,+FAqFvC,CAAC"}
@@ -0,0 +1 @@
1
+ import{makeStyles as e}from"@material-ui/core";var t=e((function(e){return{alertIcon:{width:16,height:16},assetWrapper:{display:"table-row"},assetTable:{display:"table"},assetCell:{display:"table-cell",padding:"5px 0",verticalAlign:"middle",width:111},assetName:{fontSize:"12px",width:89},container:{padding:"12px 0 4px 12px"},headerText:{lineHeight:"19px",fontSize:"16px",fontWeight:500},subheaderText:{lineHeight:"14px",fontSize:"12px",fontWeight:400,marginRight:16,color:e.palette.primary.text7,marginTop:4},Issue:{color:"#ffa500"},Missing:{color:e.palette.error.main},Resolved:{color:e.palette.success.bright},errorContainer:{display:"flex",alignItems:"center",marginLeft:8,height:22},missingContainer:{marginLeft:0},errorText:{marginLeft:4,fontSize:"14px"},errorNum:{fontSize:"16px",marginLeft:4},accordion:{"&:not(:first-child)":{marginTop:"16px !important"},marginTop:"8px !important",color:e.palette.primary.contrastText,"& .MuiAccordionSummary-content":{fontWeight:"400 !important"}},accordionsWrapper:{maxHeight:function(e){var t=e.maxHeight;return t},overflowY:"auto",paddingRight:16,"&::before, &::after":{content:'""',width:"100%",height:16,position:"absolute",zIndex:1},"&::before":{background:"linear-gradient(180deg, ".concat(e.palette.background.b9," 18.23%, rgba(59, 59, 59, 0) 100%)"),opacity:.8,top:0},"&::after":{background:"linear-gradient(0deg, ".concat(e.palette.background.b9," 18.23%, rgba(59, 59, 59, 0) 100%)"),opacity:.8,bottom:0}},relative:{position:"relative",padding:"8px 0"}}}));export{t as useDQUnvalidatedContentStyles};
@@ -1 +1 @@
1
- {"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableCell/TableCell.js"],"names":[],"mappings":"AAoCO;;;;;;;;;;;;gBAoEN"}
1
+ {"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableCell/TableCell.js"],"names":[],"mappings":"AAqCO;;;;;;;;;;;;gBAoEN"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/objectWithoutProperties";import{useState as l}from"react";import{makeStyles as o,TableCell as i}from"@material-ui/core";import{KeyboardArrowLeft as n,KeyboardArrowRight as a}from"@material-ui/icons";import c from"classnames";import s from"../../IconButton/index.js";import{Tooltip as p}from"../../Tooltip/Tooltip.js";import"../../Tooltip/ScrollableTooltip.js";import{jsxs as m,jsx as d}from"react/jsx-runtime";var u=["isExpanded","setIsExpanded","tooltipTitle","collapsibleHeader","collapsibleBody","maxCellWidth","maxCharsNumberFromStart","maxCharsNumberFromEnd","cellWidth","children"];function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function f(t){for(var r=1;r<arguments.length;r++){var l=null!=arguments[r]?arguments[r]:{};r%2?b(Object(l),!0).forEach((function(r){e(t,r,l[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):b(Object(l)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(l,e))}))}return t}var h=o((function(e){return{stickyCell:{position:"sticky",left:0,zIndex:2,background:e.palette.background.b6},stickyEmptyCell:{position:"sticky",right:0,zIndex:2},collapseHeader:{width:function(e){var t=e.isExpanded,r=e.maxCellWidth,l=e.cellWidth;return t?r:l}},tableCellWrapper:{display:"flex",alignItems:"center",justifyContent:"space-between"},iconButton:{padding:0,fontSize:16,"&:hover":{backgroundColor:"transparent"}}}})),y=function(e){var o,b=e.isExpanded,y=e.setIsExpanded,C=e.tooltipTitle,x=e.collapsibleHeader,g=e.collapsibleBody,j=e.maxCellWidth,O=e.maxCharsNumberFromStart,E=e.maxCharsNumberFromEnd,k=e.cellWidth,v=e.children,P=r(e,u),W=P.stickyCell&&!P.emptyCell,w=h({isExpanded:b,cellWidth:k,maxCellWidth:j}),N=l(!1),T=t(N,2),I=T[0],S=T[1];return m(i,f(f({},P),{},{className:c(x&&w.collapseHeader,W&&w.stickyCell,P.emptyCell&&w.stickyEmptyCell,W&&"stickyCell",P.emptyCell&&"stickyEmptyCell",P.className),children:[x&&m("div",{className:w.tableCellWrapper,children:[v,d(s,{className:w.iconButton,onClick:function(){S(!1),y(!b)},tooltipProps:{title:b?"Collapse":"Expand",open:I,disableHoverListener:!0,onMouseEnter:function(){return S(!0)},onMouseLeave:function(){return S(!1)}},children:d(b?n:a,{})})]}),g&&d(p,{title:!b&&C,children:d("div",{children:b?v:(o=C,o.length>O+E?"".concat(o.substring(0,O)," ... ").concat(o.substring(o.length-E)):o)})}),!x&&!g&&v]}))};export{y as TableCell};
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/objectWithoutProperties";import{useState as l}from"react";import{makeStyles as o,TableCell as i}from"@material-ui/core";import{KeyboardArrowLeft as n,KeyboardArrowRight as a}from"@material-ui/icons";import c from"classnames";import s from"../../IconButton/index.js";import{Tooltip as p}from"../../Tooltip/Tooltip.js";import"../../Tooltip/ScrollableTooltip.js";import{jsxs as m,jsx as d}from"react/jsx-runtime";var u=["isExpanded","setIsExpanded","tooltipTitle","collapsibleHeader","collapsibleBody","maxCellWidth","maxCharsNumberFromStart","maxCharsNumberFromEnd","cellWidth","children"];function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function h(t){for(var r=1;r<arguments.length;r++){var l=null!=arguments[r]?arguments[r]:{};r%2?b(Object(l),!0).forEach((function(r){e(t,r,l[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):b(Object(l)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(l,e))}))}return t}var f=o((function(e){return{stickyCell:{position:"sticky",left:0,zIndex:2,background:e.palette.background.b6},stickyEmptyCell:{position:"sticky",right:0,zIndex:2},collapseHeader:{width:function(e){var t=e.isExpanded,r=e.maxCellWidth,l=e.cellWidth;return t?r:l}},tableCellWrapper:{display:"flex",alignItems:"center",justifyContent:"space-between",width:function(e){var t=e.isExpanded,r=e.maxCellWidth,l=e.cellWidth;return t?r:l}},iconButton:{padding:0,fontSize:16,"&:hover":{backgroundColor:"transparent"}}}})),y=function(e){var o,b=e.isExpanded,y=e.setIsExpanded,C=e.tooltipTitle,x=e.collapsibleHeader,g=e.collapsibleBody,j=e.maxCellWidth,O=e.maxCharsNumberFromStart,E=e.maxCharsNumberFromEnd,k=e.cellWidth,v=e.children,W=r(e,u),P=W.stickyCell&&!W.emptyCell,w=f({isExpanded:b,cellWidth:k,maxCellWidth:j}),N=l(!1),T=t(N,2),I=T[0],S=T[1];return m(i,h(h({},W),{},{className:c(x&&w.collapseHeader,P&&w.stickyCell,W.emptyCell&&w.stickyEmptyCell,P&&"stickyCell",W.emptyCell&&"stickyEmptyCell",W.className),children:[x&&m("div",{className:w.tableCellWrapper,children:[v,d(s,{className:w.iconButton,onClick:function(){S(!1),y(!b)},tooltipProps:{title:b?"Collapse":"Expand",open:I,disableHoverListener:!0,onMouseEnter:function(){return S(!0)},onMouseLeave:function(){return S(!1)}},children:d(b?n:a,{})})]}),g&&d(p,{title:!b&&C,children:d("div",{children:b?v:(o=C,o.length>O+E?"".concat(o.substring(0,O)," ... ").concat(o.substring(o.length-E)):o)})}),!x&&!g&&v]}))};export{y as TableCell};
@@ -1,3 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { TooltipProps } from '@material-ui/core';
1
3
  /**
2
4
  * This is just a wrapper around MUI Tooltip component. It's only purpose it to call
3
5
  * setIsFullscreenModalMode function (https://www.notion.so/corva/Dev-Center-apps-fullscreen-modals-924d8de0cb334c2eb6530081934d50b5)
@@ -5,31 +7,5 @@
5
7
  * This component should be used only inside of DC apps.
6
8
  * In other cases, regular MUI tooltip should be the choice.
7
9
  */
8
- export function MuiTooltipDcWrapper({ onOpen: onOpenProp, onClose: onCloseProp, open: openProp, title: titleProp, TransitionProps, ...otherMuiTooltipProps }: {
9
- [x: string]: any;
10
- onOpen: any;
11
- onClose: any;
12
- open: any;
13
- title: any;
14
- TransitionProps: any;
15
- }): JSX.Element;
16
- export namespace MuiTooltipDcWrapper {
17
- namespace defaultProps {
18
- function onOpen(): void;
19
- function onClose(): void;
20
- const open: any;
21
- const TransitionProps: {};
22
- }
23
- namespace propTypes {
24
- const onOpen_1: PropTypes.Requireable<(...args: any[]) => any>;
25
- export { onOpen_1 as onOpen };
26
- const onClose_1: PropTypes.Requireable<(...args: any[]) => any>;
27
- export { onClose_1 as onClose };
28
- const open_1: PropTypes.Requireable<boolean>;
29
- export { open_1 as open };
30
- const TransitionProps_1: PropTypes.Requireable<PropTypes.InferProps<{}>>;
31
- export { TransitionProps_1 as TransitionProps };
32
- }
33
- }
34
- import PropTypes from "prop-types";
10
+ export declare function MuiTooltipDcWrapper({ onOpen: onOpenProp, onClose: onCloseProp, open: openProp, title: titleProp, TransitionProps, ...otherMuiTooltipProps }: TooltipProps): JSX.Element;
35
11
  //# sourceMappingURL=MuiTooltipDcWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MuiTooltipDcWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/MuiTooltipDcWrapper.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH;;;;;;;gBAyEC;;;QAGS,wBAAQ;QACP,yBAAQ"}
1
+ {"version":3,"file":"MuiTooltipDcWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/MuiTooltipDcWrapper.tsx"],"names":[],"mappings":";AACA,OAAO,EAAW,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAa1D;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EAAE,UAAiB,EACzB,OAAO,EAAE,WAAkB,EAC3B,IAAI,EAAE,QAAe,EACrB,KAAK,EAAE,SAAS,EAChB,eAAoB,EACpB,GAAG,oBAAoB,EACxB,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CAkE5B"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/helpers/objectWithoutProperties";import{useState as n,useEffect as t}from"react";import i from"prop-types";import{Tooltip as p}from"@material-ui/core";import{v4 as s}from"uuid";import{useDcFullscreenElemsCoordinator as c}from"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import{IsInsideDcFullscreenElemProvider as l}from"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import{jsx as u}from"react/jsx-runtime";var f=["onOpen","onClose","open","title","TransitionProps"];function m(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),o.push.apply(o,n)}return o}function a(r){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?m(Object(n),!0).forEach((function(o){e(r,o,n[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}))}return r}function O(e){var i=e.onOpen,m=e.onClose,O=e.open,d=e.title,b=e.TransitionProps,P=o(e,f),y=n(!1),j=r(y,2),C=j[0],v=j[1],D=c(),h=D.requestOpen,g=D.requestClose,I=n((function(){return s()})),T=r(I,1)[0],w="boolean"==typeof O;return t((function(){O?h({setIsOpened:v,id:T}):g({setIsOpened:v,id:T})}),[O]),t((function(){return function(){g({setIsOpened:v,id:T})}}),[]),u(p,a(a({},P),{},{open:C,onOpen:function(e){i(e),w||h({setIsOpened:v,id:T})},onClose:function(e){m(e),w||g({setIsOpened:v,id:T})},TransitionProps:a(a({},b),{},{timeout:0}),title:u(l,{children:d})}))}O.defaultProps={onOpen:function(){},onClose:function(){},open:null,TransitionProps:{}},O.propTypes={onOpen:i.func,onClose:i.func,open:i.bool,TransitionProps:i.shape({})};export{O as MuiTooltipDcWrapper};
1
+ import{__rest as e,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as n}from"react/jsx-runtime";import{useState as r,useEffect as t}from"react";import{Tooltip as i}from"@material-ui/core";import{v4 as s}from"uuid";import{noop as p}from"lodash";import{useDcFullscreenElemsCoordinator as l}from"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import{IsInsideDcFullscreenElemProvider as d}from"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";function m(m){var u=m.onOpen,c=void 0===u?p:u,f=m.onClose,a=void 0===f?p:f,v=m.open,C=void 0===v?null:v,O=m.title,D=m.TransitionProps,I=void 0===D?{}:D,P=e(m,["onOpen","onClose","open","title","TransitionProps"]),j=r(!1),E=j[0],F=j[1],b=l(),T=b.requestOpen,h=b.requestClose,q=r((function(){return s()}))[0],x="boolean"==typeof C;return t((function(){C?T({setIsOpened:F,id:q}):h({setIsOpened:F,id:q})}),[C]),t((function(){return function(){h({setIsOpened:F,id:q})}}),[]),n(i,o({},P,{open:E,onOpen:function(e){c(e),x||T({setIsOpened:F,id:q})},onClose:function(e){a(e),x||h({setIsOpened:F,id:q})},TransitionProps:o(o({},I),{timeout:0}),title:n(d,{children:O})}))}export{m as MuiTooltipDcWrapper};
@@ -1,9 +1,14 @@
1
- export function ScrollableTooltip({ body, bodyWrapperClassName, bodyClassName, popperClassName, title, ...props }: {
2
- [x: string]: any;
3
- body: any;
4
- bodyWrapperClassName: any;
5
- bodyClassName: any;
6
- popperClassName: any;
7
- title?: string;
8
- }): JSX.Element;
1
+ import { TooltipProps } from '@material-ui/core';
2
+ import { ReactNode } from 'react';
3
+ interface ScrollableTooltip extends Omit<TooltipProps, 'classes' | 'title'> {
4
+ classes?: TooltipProps['classes'];
5
+ popperClassName?: string;
6
+ staticTitle?: ReactNode;
7
+ staticTitleHeight?: number;
8
+ title: ReactNode;
9
+ titleClassName?: string;
10
+ titleWrapperClassName?: string;
11
+ }
12
+ export declare const ScrollableTooltip: ({ classes: classesProp, popperClassName, staticTitle, staticTitleHeight, title, titleClassName, titleWrapperClassName, ...props }: ScrollableTooltip) => JSX.Element;
13
+ export {};
9
14
  //# sourceMappingURL=ScrollableTooltip.d.ts.map