@corva/ui 3.49.0-7 → 3.49.0-9

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 (378) hide show
  1. package/cjs-bundle/components/AppIcon/AppIcon.js +1 -1
  2. package/cjs-bundle/components/Button/components/Button/index.js +1 -1
  3. package/cjs-bundle/components/ColorPicker/ColorPicketUtils.js +1 -1
  4. package/cjs-bundle/components/OffsetWellPickerV5/api/shared/constants.js +1 -1
  5. package/cjs-bundle/components/PadModeSelect/PadModeSelect.js +1 -1
  6. package/cjs-bundle/components/PadModeSelect/effects/useWellStreamActivityTypeSubscription.js +1 -1
  7. package/cjs-bundle/components/StatusBadge/utils.js +1 -1
  8. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqPopover.js +1 -1
  9. package/cjs-bundle/componentsV2/AppHeader/AppHeader.constants.js +1 -1
  10. package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  11. package/cjs-bundle/effects/useOutsideClick.js +1 -1
  12. package/cjs-bundle/effects/useWellnessAlerts.js +1 -1
  13. package/cjs-bundle/icons/WithCustomSize.js +1 -1
  14. package/clients/api/apiCore.d.ts +2 -2
  15. package/clients/api/apiCore.d.ts.map +1 -1
  16. package/components/AppIcon/AppIcon.d.ts.map +1 -1
  17. package/components/AppIcon/AppIcon.js +1 -1
  18. package/components/Button/components/Button/index.d.ts.map +1 -1
  19. package/components/Button/components/Button/index.js +1 -1
  20. package/components/ColorPicker/ColorPicker.d.ts +15 -6
  21. package/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  22. package/components/ColorPicker/ColorPicketUtils.js +1 -1
  23. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts +1 -1
  24. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
  25. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.d.ts +22 -15
  26. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.d.ts.map +1 -1
  27. package/components/DevCenter/IsolatedDevCenterAppContainer/utils/dashboardCapturing.d.ts +1 -1
  28. package/components/DevCenter/IsolatedDevCenterAppContainer/utils/dashboardCapturing.d.ts.map +1 -1
  29. package/components/FeedItem/components/CompletionDateTimestamp.d.ts +7 -1
  30. package/components/FeedItem/components/CompletionDateTimestamp.d.ts.map +1 -1
  31. package/components/GradientManager/GradientList.d.ts +3 -3
  32. package/components/GradientManager/GradientList.d.ts.map +1 -1
  33. package/components/GradientManager/GradientSelect.d.ts +2 -1
  34. package/components/GradientManager/GradientSelect.d.ts.map +1 -1
  35. package/components/GradientManager/__tests__/pageHelpers.d.ts +2 -2
  36. package/components/GradientManager/__tests__/pageHelpers.d.ts.map +1 -1
  37. package/components/GradientPicker/GradientPicker.utils.d.ts +11 -8
  38. package/components/GradientPicker/GradientPicker.utils.d.ts.map +1 -1
  39. package/components/GradientPicker/__tests__/pageHelpers.d.ts +1 -1
  40. package/components/OffsetWellPickerV4/utils/apiCalls.d.ts +10 -6
  41. package/components/OffsetWellPickerV4/utils/apiCalls.d.ts.map +1 -1
  42. package/components/OffsetWellPickerV5/api/bic/resyncIdasWells.d.ts +1 -1
  43. package/components/OffsetWellPickerV5/api/bic/resyncIdasWells.d.ts.map +1 -1
  44. package/components/OffsetWellPickerV5/api/shared/constants.d.ts +2 -2
  45. package/components/OffsetWellPickerV5/api/shared/constants.js +1 -1
  46. package/components/PadModeSelect/PadModeSelect.js +1 -1
  47. package/components/PadModeSelect/WellStreamActivityStatus.d.ts +8 -1
  48. package/components/PadModeSelect/WellStreamActivityStatus.d.ts.map +1 -1
  49. package/components/PadModeSelect/effects/useWellStreamActivityTypeSubscription.d.ts.map +1 -1
  50. package/components/PadModeSelect/effects/useWellStreamActivityTypeSubscription.js +1 -1
  51. package/components/PadModeSelect/types.d.ts +24 -2
  52. package/components/PadModeSelect/types.d.ts.map +1 -1
  53. package/components/PadModeSelect/utils/initialDataFetcher.d.ts +13 -1
  54. package/components/PadModeSelect/utils/initialDataFetcher.d.ts.map +1 -1
  55. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.d.ts.map +1 -1
  56. package/components/PadOffsetsPickerV2/useOffsetPickerActions.d.ts.map +1 -1
  57. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.d.ts +2 -1
  58. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.d.ts.map +1 -1
  59. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.d.ts.map +1 -1
  60. package/components/RealTimeValuesSidebar/types.d.ts +6 -6
  61. package/components/RealTimeValuesSidebar/types.d.ts.map +1 -1
  62. package/components/ResizableTable/ResizableTableHeaderCell.d.ts +7 -8
  63. package/components/ResizableTable/ResizableTableHeaderCell.d.ts.map +1 -1
  64. package/components/Search/utils/getFormattedOptions.d.ts +7 -1
  65. package/components/Search/utils/getFormattedOptions.d.ts.map +1 -1
  66. package/components/StatusBadge/constants.d.ts +1 -1
  67. package/components/StatusBadge/types.d.ts +52 -12
  68. package/components/StatusBadge/types.d.ts.map +1 -1
  69. package/components/StatusBadge/utils.d.ts +37 -10
  70. package/components/StatusBadge/utils.d.ts.map +1 -1
  71. package/components/StatusBadge/utils.js +1 -1
  72. package/components/shared/useThrottledCallback.d.ts.map +1 -1
  73. package/componentsV2/AppFooter/DqPopover/DqPopover.d.ts +3 -9
  74. package/componentsV2/AppFooter/DqPopover/DqPopover.d.ts.map +1 -1
  75. package/componentsV2/AppFooter/DqPopover/DqPopover.js +1 -1
  76. package/componentsV2/AppFooter/DqPopover/types.d.ts +1 -1
  77. package/componentsV2/AppHeader/AppHeader.constants.d.ts +4 -2
  78. package/componentsV2/AppHeader/AppHeader.constants.d.ts.map +1 -1
  79. package/componentsV2/AppHeader/AppHeader.constants.js +1 -1
  80. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.d.ts.map +1 -1
  81. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  82. package/componentsV2/TemplatesControl/Store/Store.d.ts +2 -2
  83. package/componentsV2/TemplatesControl/Store/Store.d.ts.map +1 -1
  84. package/componentsV2/TemplatesControl/Store/utils.d.ts.map +1 -1
  85. package/effects/subscriptions/useSubscriptions.v1.d.ts +1 -1
  86. package/effects/subscriptions/useSubscriptions.v1.d.ts.map +1 -1
  87. package/effects/useOutsideClick.d.ts.map +1 -1
  88. package/effects/useOutsideClick.js +1 -1
  89. package/effects/useWellnessAlerts.d.ts +36 -10
  90. package/effects/useWellnessAlerts.d.ts.map +1 -1
  91. package/effects/useWellnessAlerts.js +1 -1
  92. package/icons/WithCustomSize.d.ts +3 -1
  93. package/icons/WithCustomSize.d.ts.map +1 -1
  94. package/icons/WithCustomSize.js +1 -1
  95. package/mcp-server/server.mjs +2 -2
  96. package/package.json +9 -2
  97. package/permissions/constants/index.d.ts +28 -28
  98. package/permissions/constants/index.d.ts.map +1 -1
  99. package/permissions/utils.d.ts +7 -7
  100. package/permissions/utils.d.ts.map +1 -1
  101. package/tsconfig.tsbuildinfo +1 -1
  102. package/utils/bha.d.ts +1 -1
  103. package/utils/bha.d.ts.map +1 -1
  104. package/utils/convert.d.ts +2 -2
  105. package/utils/convert.d.ts.map +1 -1
  106. package/utils/index.d.ts +2 -2
  107. package/utils/main.d.ts +2 -2
  108. package/utils/main.d.ts.map +1 -1
  109. package/utils/mapUnits.d.ts +1 -1
  110. package/utils/mapUnits.d.ts.map +1 -1
  111. package/utils/metrics/utils.d.ts +12 -2
  112. package/utils/metrics/utils.d.ts.map +1 -1
  113. package/components/AdvancedSlider/AdvancedSlider.stories.d.ts +0 -12
  114. package/components/AdvancedSlider/AdvancedSlider.stories.d.ts.map +0 -1
  115. package/components/AssetsMultipleSelector/AssetsMultipleSelector.stories.d.ts +0 -52
  116. package/components/AssetsMultipleSelector/AssetsMultipleSelector.stories.d.ts.map +0 -1
  117. package/components/Autocomplete/Autocomplete.stories.d.ts +0 -13
  118. package/components/Autocomplete/Autocomplete.stories.d.ts.map +0 -1
  119. package/components/Avatar/Avatar.stories.d.ts +0 -19
  120. package/components/Avatar/Avatar.stories.d.ts.map +0 -1
  121. package/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -8
  122. package/components/Breadcrumbs/Breadcrumbs.stories.d.ts.map +0 -1
  123. package/components/Button/Button.stories.d.ts +0 -11
  124. package/components/Button/Button.stories.d.ts.map +0 -1
  125. package/components/Checkbox/Checkbox.stories.d.ts +0 -10
  126. package/components/Checkbox/Checkbox.stories.d.ts.map +0 -1
  127. package/components/Chip/Chip.stories.d.ts +0 -9
  128. package/components/Chip/Chip.stories.d.ts.map +0 -1
  129. package/components/ColorPicker/ColorPicker.stories.d.ts +0 -8
  130. package/components/ColorPicker/ColorPicker.stories.d.ts.map +0 -1
  131. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.stories.d.ts +0 -9
  132. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.stories.d.ts.map +0 -1
  133. package/components/ColorPickerPalette/ColorPickerPalette.stories.d.ts +0 -8
  134. package/components/ColorPickerPalette/ColorPickerPalette.stories.d.ts.map +0 -1
  135. package/components/Comment/CommentIcon/CommentIcon.stories.d.ts +0 -8
  136. package/components/Comment/CommentIcon/CommentIcon.stories.d.ts.map +0 -1
  137. package/components/ContextMenuItem/ContextMenuItem.stories.d.ts +0 -10
  138. package/components/ContextMenuItem/ContextMenuItem.stories.d.ts.map +0 -1
  139. package/components/CopyToClipboard/CopyToClipboard.stories.d.ts +0 -8
  140. package/components/CopyToClipboard/CopyToClipboard.stories.d.ts.map +0 -1
  141. package/components/Counter/Counter.stories.d.ts +0 -10
  142. package/components/Counter/Counter.stories.d.ts.map +0 -1
  143. package/components/DatePicker/DatePicker.stories.d.ts +0 -8
  144. package/components/DatePicker/DatePicker.stories.d.ts.map +0 -1
  145. package/components/DateTimePicker/DateTimePicker.stories.d.ts +0 -8
  146. package/components/DateTimePicker/DateTimePicker.stories.d.ts.map +0 -1
  147. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.stories.d.ts +0 -9
  148. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.stories.d.ts.map +0 -1
  149. package/components/DevCenter/AppHeader/AppHeader.stories.d.ts +0 -15
  150. package/components/DevCenter/AppHeader/AppHeader.stories.d.ts.map +0 -1
  151. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.stories.d.ts +0 -8
  152. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.stories.d.ts.map +0 -1
  153. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.stories.d.ts +0 -10
  154. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.stories.d.ts.map +0 -1
  155. package/components/EChartsWrapper/ECharts.stories.d.ts +0 -21
  156. package/components/EChartsWrapper/ECharts.stories.d.ts.map +0 -1
  157. package/components/EmptyState/EmptyState.stories.d.ts +0 -11
  158. package/components/EmptyState/EmptyState.stories.d.ts.map +0 -1
  159. package/components/EmptyView/EmptyAppView/EmptyAppView.stories.d.ts +0 -11
  160. package/components/EmptyView/EmptyAppView/EmptyAppView.stories.d.ts.map +0 -1
  161. package/components/EmptyView/EmptyView.stories.d.ts +0 -8
  162. package/components/EmptyView/EmptyView.stories.d.ts.map +0 -1
  163. package/components/FileIcon/FileIcon.stories.d.ts +0 -9
  164. package/components/FileIcon/FileIcon.stories.d.ts.map +0 -1
  165. package/components/FilesDropzone/FilesDropzone.stories.d.ts +0 -8
  166. package/components/FilesDropzone/FilesDropzone.stories.d.ts.map +0 -1
  167. package/components/FilesLoader/FilesLoader.stories.d.ts +0 -8
  168. package/components/FilesLoader/FilesLoader.stories.d.ts.map +0 -1
  169. package/components/FilesLoaderV2/FilesLoaderV2.stories.d.ts +0 -8
  170. package/components/FilesLoaderV2/FilesLoaderV2.stories.d.ts.map +0 -1
  171. package/components/FilesProcessor/FilesProcessor.stories.d.ts +0 -8
  172. package/components/FilesProcessor/FilesProcessor.stories.d.ts.map +0 -1
  173. package/components/Formula/Formula.stories.d.ts +0 -8
  174. package/components/Formula/Formula.stories.d.ts.map +0 -1
  175. package/components/GradientManager/GradientManager.stories.d.ts +0 -8
  176. package/components/GradientManager/GradientManager.stories.d.ts.map +0 -1
  177. package/components/GradientManager/GradientManagerWithStorage/GradientManagerWithStorage.stories.d.ts +0 -8
  178. package/components/GradientManager/GradientManagerWithStorage/GradientManagerWithStorage.stories.d.ts.map +0 -1
  179. package/components/GradientPicker/GradientPicker.stories.d.ts +0 -8
  180. package/components/GradientPicker/GradientPicker.stories.d.ts.map +0 -1
  181. package/components/Hint/Hint.stories.d.ts +0 -10
  182. package/components/Hint/Hint.stories.d.ts.map +0 -1
  183. package/components/IconButton/IconButton.stories.d.ts +0 -11
  184. package/components/IconButton/IconButton.stories.d.ts.map +0 -1
  185. package/components/LoadingIndicator/LoadingIndicator.stories.d.ts +0 -9
  186. package/components/LoadingIndicator/LoadingIndicator.stories.d.ts.map +0 -1
  187. package/components/MenuItem/MenuItem.stories.d.ts +0 -10
  188. package/components/MenuItem/MenuItem.stories.d.ts.map +0 -1
  189. package/components/MiddleTruncatedText/MiddleTruncatedText.stories.d.ts +0 -9
  190. package/components/MiddleTruncatedText/MiddleTruncatedText.stories.d.ts.map +0 -1
  191. package/components/Modal/Modal.stories.d.ts +0 -11
  192. package/components/Modal/Modal.stories.d.ts.map +0 -1
  193. package/components/NewDocumentViewer/NewDocumentViewer.stories.d.ts +0 -8
  194. package/components/NewDocumentViewer/NewDocumentViewer.stories.d.ts.map +0 -1
  195. package/components/Notifications/Notifications.stories.d.ts +0 -10
  196. package/components/Notifications/Notifications.stories.d.ts.map +0 -1
  197. package/components/Popover/Popover.stories.d.ts +0 -8
  198. package/components/Popover/Popover.stories.d.ts.map +0 -1
  199. package/components/Popper/Popper.stories.d.ts +0 -8
  200. package/components/Popper/Popper.stories.d.ts.map +0 -1
  201. package/components/RangeSlider/RangeSlider.stories.d.ts +0 -11
  202. package/components/RangeSlider/RangeSlider.stories.d.ts.map +0 -1
  203. package/components/Search/Search.stories.d.ts +0 -10
  204. package/components/Search/Search.stories.d.ts.map +0 -1
  205. package/components/Search/components/RecentSearches.stories.d.ts +0 -9
  206. package/components/Search/components/RecentSearches.stories.d.ts.map +0 -1
  207. package/components/Select/Select.stories.d.ts +0 -10
  208. package/components/Select/Select.stories.d.ts.map +0 -1
  209. package/components/SettingEditors/ColorEditor/ColorEditor.stories.d.ts +0 -9
  210. package/components/SettingEditors/ColorEditor/ColorEditor.stories.d.ts.map +0 -1
  211. package/components/SettingEditors/RadioEditor/RadioEditor.stories.d.ts +0 -8
  212. package/components/SettingEditors/RadioEditor/RadioEditor.stories.d.ts.map +0 -1
  213. package/components/Stepper/Stepper.stories.d.ts +0 -10
  214. package/components/Stepper/Stepper.stories.d.ts.map +0 -1
  215. package/components/SwitchControl/SwitchControl.stories.d.ts +0 -8
  216. package/components/SwitchControl/SwitchControl.stories.d.ts.map +0 -1
  217. package/components/Table/Table.stories.d.ts +0 -11
  218. package/components/Table/Table.stories.d.ts.map +0 -1
  219. package/components/Table/TableCell/TableCell.stories.d.ts +0 -9
  220. package/components/Table/TableCell/TableCell.stories.d.ts.map +0 -1
  221. package/components/Table/TablePagination/TablePagination.stories.d.ts +0 -9
  222. package/components/Table/TablePagination/TablePagination.stories.d.ts.map +0 -1
  223. package/components/Table/TableSortLabel/TableSortLabel.stories.d.ts +0 -8
  224. package/components/Table/TableSortLabel/TableSortLabel.stories.d.ts.map +0 -1
  225. package/components/Table/TableToolbar/TableToolbar.stories.d.ts +0 -10
  226. package/components/Table/TableToolbar/TableToolbar.stories.d.ts.map +0 -1
  227. package/components/Tabs/Tabs.stories.d.ts +0 -11
  228. package/components/Tabs/Tabs.stories.d.ts.map +0 -1
  229. package/components/TextField/TextField.stories.d.ts +0 -12
  230. package/components/TextField/TextField.stories.d.ts.map +0 -1
  231. package/components/TextLink/TextLink.stories.d.ts +0 -9
  232. package/components/TextLink/TextLink.stories.d.ts.map +0 -1
  233. package/components/Toaster/Toaster.stories.d.ts +0 -8
  234. package/components/Toaster/Toaster.stories.d.ts.map +0 -1
  235. package/components/Tooltip/Tooltip.stories.d.ts +0 -11
  236. package/components/Tooltip/Tooltip.stories.d.ts.map +0 -1
  237. package/components/TruncatedText/TruncatedText.stories.d.ts +0 -9
  238. package/components/TruncatedText/TruncatedText.stories.d.ts.map +0 -1
  239. package/components/Typography.stories.d.ts +0 -8
  240. package/components/Typography.stories.d.ts.map +0 -1
  241. package/components/VirtualizedTable/VirtualizedTable.stories.d.ts +0 -9
  242. package/components/VirtualizedTable/VirtualizedTable.stories.d.ts.map +0 -1
  243. package/componentsV2/Accordion/Accordion.stories.d.ts +0 -13
  244. package/componentsV2/Accordion/Accordion.stories.d.ts.map +0 -1
  245. package/componentsV2/AppContainer/AppContainer.stories.d.ts +0 -10
  246. package/componentsV2/AppContainer/AppContainer.stories.d.ts.map +0 -1
  247. package/componentsV2/AppFooter/AppFooter.stories.d.ts +0 -11
  248. package/componentsV2/AppFooter/AppFooter.stories.d.ts.map +0 -1
  249. package/componentsV2/AppHeader/AppHeader.stories.d.ts +0 -16
  250. package/componentsV2/AppHeader/AppHeader.stories.d.ts.map +0 -1
  251. package/componentsV2/AppHeader/V3/AppHeaderV3.stories.d.ts +0 -22
  252. package/componentsV2/AppHeader/V3/AppHeaderV3.stories.d.ts.map +0 -1
  253. package/componentsV2/AppSettingsDivider/AppSettingsDivider.stories.d.ts +0 -8
  254. package/componentsV2/AppSettingsDivider/AppSettingsDivider.stories.d.ts.map +0 -1
  255. package/componentsV2/Autocomplete/Autocomplete.stories.d.ts +0 -29
  256. package/componentsV2/Autocomplete/Autocomplete.stories.d.ts.map +0 -1
  257. package/componentsV2/Avatar/Avatar.stories.d.ts +0 -11
  258. package/componentsV2/Avatar/Avatar.stories.d.ts.map +0 -1
  259. package/componentsV2/AvatarGroup/AvatarGroup.stories.d.ts +0 -10
  260. package/componentsV2/AvatarGroup/AvatarGroup.stories.d.ts.map +0 -1
  261. package/componentsV2/BadgeComment/BadgeComment.stories.d.ts +0 -8
  262. package/componentsV2/BadgeComment/BadgeComment.stories.d.ts.map +0 -1
  263. package/componentsV2/BadgeCounter/BadgeCounter.stories.d.ts +0 -10
  264. package/componentsV2/BadgeCounter/BadgeCounter.stories.d.ts.map +0 -1
  265. package/componentsV2/BadgeDot/BadgeDot.stories.d.ts +0 -10
  266. package/componentsV2/BadgeDot/BadgeDot.stories.d.ts.map +0 -1
  267. package/componentsV2/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -8
  268. package/componentsV2/Breadcrumbs/Breadcrumbs.stories.d.ts.map +0 -1
  269. package/componentsV2/Button/Button.stories.d.ts +0 -13
  270. package/componentsV2/Button/Button.stories.d.ts.map +0 -1
  271. package/componentsV2/ButtonIcon/ButtonIcon.stories.d.ts +0 -10
  272. package/componentsV2/ButtonIcon/ButtonIcon.stories.d.ts.map +0 -1
  273. package/componentsV2/ButtonLive/ButtonLive.stories.d.ts +0 -11
  274. package/componentsV2/ButtonLive/ButtonLive.stories.d.ts.map +0 -1
  275. package/componentsV2/ButtonText/ButtonText.stories.d.ts +0 -11
  276. package/componentsV2/ButtonText/ButtonText.stories.d.ts.map +0 -1
  277. package/componentsV2/Checkbox/Checkbox.stories.d.ts +0 -12
  278. package/componentsV2/Checkbox/Checkbox.stories.d.ts.map +0 -1
  279. package/componentsV2/CheckboxGroup/CheckboxGroup.stories.d.ts +0 -12
  280. package/componentsV2/CheckboxGroup/CheckboxGroup.stories.d.ts.map +0 -1
  281. package/componentsV2/Chip/Chip.stories.d.ts +0 -16
  282. package/componentsV2/Chip/Chip.stories.d.ts.map +0 -1
  283. package/componentsV2/ChipAlert/ChipAlert.stories.d.ts +0 -10
  284. package/componentsV2/ChipAlert/ChipAlert.stories.d.ts.map +0 -1
  285. package/componentsV2/ChipIndicator/ChipIndicator.stories.d.ts +0 -11
  286. package/componentsV2/ChipIndicator/ChipIndicator.stories.d.ts.map +0 -1
  287. package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.stories.d.ts +0 -10
  288. package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.stories.d.ts.map +0 -1
  289. package/componentsV2/CopyToClipboard/CopyToClipboard.stories.d.ts +0 -10
  290. package/componentsV2/CopyToClipboard/CopyToClipboard.stories.d.ts.map +0 -1
  291. package/componentsV2/Counter/Counter.stories.d.ts +0 -13
  292. package/componentsV2/Counter/Counter.stories.d.ts.map +0 -1
  293. package/componentsV2/DatePicker/DatePicker.stories.d.ts +0 -15
  294. package/componentsV2/DatePicker/DatePicker.stories.d.ts.map +0 -1
  295. package/componentsV2/DragHandle/DragHandle.stories.d.ts +0 -9
  296. package/componentsV2/DragHandle/DragHandle.stories.d.ts.map +0 -1
  297. package/componentsV2/EmptyState/EmptyState.stories.d.ts +0 -10
  298. package/componentsV2/EmptyState/EmptyState.stories.d.ts.map +0 -1
  299. package/componentsV2/FileIcon/FileIcon.stories.d.ts +0 -9
  300. package/componentsV2/FileIcon/FileIcon.stories.d.ts.map +0 -1
  301. package/componentsV2/FilesDropzone/FilesDropzone.stories.d.ts +0 -8
  302. package/componentsV2/FilesDropzone/FilesDropzone.stories.d.ts.map +0 -1
  303. package/componentsV2/FilesLoader/FilesLoader.stories.d.ts +0 -12
  304. package/componentsV2/FilesLoader/FilesLoader.stories.d.ts.map +0 -1
  305. package/componentsV2/FilesProcessor/FilesProcessor.stories.d.ts +0 -10
  306. package/componentsV2/FilesProcessor/FilesProcessor.stories.d.ts.map +0 -1
  307. package/componentsV2/Grid/Grid.stories.d.ts +0 -13
  308. package/componentsV2/Grid/Grid.stories.d.ts.map +0 -1
  309. package/componentsV2/Header/Header.stories.d.ts +0 -8
  310. package/componentsV2/Header/Header.stories.d.ts.map +0 -1
  311. package/componentsV2/Hint/Hint.stories.d.ts +0 -11
  312. package/componentsV2/Hint/Hint.stories.d.ts.map +0 -1
  313. package/componentsV2/IndicatorLive/IndicatorLive.stories.d.ts +0 -12
  314. package/componentsV2/IndicatorLive/IndicatorLive.stories.d.ts.map +0 -1
  315. package/componentsV2/Label/Label.stories.d.ts +0 -14
  316. package/componentsV2/Label/Label.stories.d.ts.map +0 -1
  317. package/componentsV2/LoaderCircular/LoaderCircular.stories.d.ts +0 -10
  318. package/componentsV2/LoaderCircular/LoaderCircular.stories.d.ts.map +0 -1
  319. package/componentsV2/LoaderLinear/LoaderLinear.stories.d.ts +0 -11
  320. package/componentsV2/LoaderLinear/LoaderLinear.stories.d.ts.map +0 -1
  321. package/componentsV2/LoaderLogo/LoaderLogo.stories.d.ts +0 -9
  322. package/componentsV2/LoaderLogo/LoaderLogo.stories.d.ts.map +0 -1
  323. package/componentsV2/Menu/Menu.stories.d.ts +0 -18
  324. package/componentsV2/Menu/Menu.stories.d.ts.map +0 -1
  325. package/componentsV2/Modal/Modal.stories.d.ts +0 -14
  326. package/componentsV2/Modal/Modal.stories.d.ts.map +0 -1
  327. package/componentsV2/ModalWindow/ModalWindow.stories.d.ts +0 -8
  328. package/componentsV2/ModalWindow/ModalWindow.stories.d.ts.map +0 -1
  329. package/componentsV2/OffsetWellsButton/OffsetWellsButton.stories.d.ts +0 -15
  330. package/componentsV2/OffsetWellsButton/OffsetWellsButton.stories.d.ts.map +0 -1
  331. package/componentsV2/PadModeSelect/PadModeSelect.stories.d.ts +0 -8
  332. package/componentsV2/PadModeSelect/PadModeSelect.stories.d.ts.map +0 -1
  333. package/componentsV2/Paper/Paper.stories.d.ts +0 -9
  334. package/componentsV2/Paper/Paper.stories.d.ts.map +0 -1
  335. package/componentsV2/Popover/Popover.stories.d.ts +0 -12
  336. package/componentsV2/Popover/Popover.stories.d.ts.map +0 -1
  337. package/componentsV2/Popper/Popper.stories.d.ts +0 -8
  338. package/componentsV2/Popper/Popper.stories.d.ts.map +0 -1
  339. package/componentsV2/Radio/Radio.stories.d.ts +0 -11
  340. package/componentsV2/Radio/Radio.stories.d.ts.map +0 -1
  341. package/componentsV2/RadioGroup/RadioGroup.stories.d.ts +0 -12
  342. package/componentsV2/RadioGroup/RadioGroup.stories.d.ts.map +0 -1
  343. package/componentsV2/Skeleton/Skeleton.stories.d.ts +0 -11
  344. package/componentsV2/Skeleton/Skeleton.stories.d.ts.map +0 -1
  345. package/componentsV2/Slider/Slider.stories.d.ts +0 -15
  346. package/componentsV2/Slider/Slider.stories.d.ts.map +0 -1
  347. package/componentsV2/Stepper/Stepper.stories.d.ts +0 -14
  348. package/componentsV2/Stepper/Stepper.stories.d.ts.map +0 -1
  349. package/componentsV2/Switch/Switch.stories.d.ts +0 -12
  350. package/componentsV2/Switch/Switch.stories.d.ts.map +0 -1
  351. package/componentsV2/Tabs/Tabs.stories.d.ts +0 -14
  352. package/componentsV2/Tabs/Tabs.stories.d.ts.map +0 -1
  353. package/componentsV2/Tag/Tag.stories.d.ts +0 -12
  354. package/componentsV2/Tag/Tag.stories.d.ts.map +0 -1
  355. package/componentsV2/TemplatesControl/TemplatesControl.stories.d.ts +0 -19
  356. package/componentsV2/TemplatesControl/TemplatesControl.stories.d.ts.map +0 -1
  357. package/componentsV2/Text/Text.stories.d.ts +0 -11
  358. package/componentsV2/Text/Text.stories.d.ts.map +0 -1
  359. package/componentsV2/TextEndTruncated/TextEndTruncated.stories.d.ts +0 -11
  360. package/componentsV2/TextEndTruncated/TextEndTruncated.stories.d.ts.map +0 -1
  361. package/componentsV2/TextInput/TextInput.stories.d.ts +0 -16
  362. package/componentsV2/TextInput/TextInput.stories.d.ts.map +0 -1
  363. package/componentsV2/TextLink/TextLink.stories.d.ts +0 -11
  364. package/componentsV2/TextLink/TextLink.stories.d.ts.map +0 -1
  365. package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.stories.d.ts +0 -10
  366. package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.stories.d.ts.map +0 -1
  367. package/componentsV2/ToggleButtons/ToggleButtons.stories.d.ts +0 -13
  368. package/componentsV2/ToggleButtons/ToggleButtons.stories.d.ts.map +0 -1
  369. package/componentsV2/Tooltip/Tooltip.stories.d.ts +0 -12
  370. package/componentsV2/Tooltip/Tooltip.stories.d.ts.map +0 -1
  371. package/componentsV2/UniversalLink/UniversalLink.stories.d.ts +0 -8
  372. package/componentsV2/UniversalLink/UniversalLink.stories.d.ts.map +0 -1
  373. package/componentsV2/WellArchivedMessage/WellArchivedMessage.stories.d.ts +0 -10
  374. package/componentsV2/WellArchivedMessage/WellArchivedMessage.stories.d.ts.map +0 -1
  375. package/icons/IconPark.stories.d.ts +0 -6
  376. package/icons/IconPark.stories.d.ts.map +0 -1
  377. package/storyBookHelpers/template/Template.stories.d.ts +0 -8
  378. package/storyBookHelpers/template/Template.stories.d.ts.map +0 -1
@@ -1,9 +1,12 @@
1
- export declare function calcGradientStyle(stops: any): string;
2
- export declare const getStopText: (position: any, { fromValue, toValue }: {
3
- fromValue: any;
4
- toValue: any;
5
- }) => any;
6
- export declare const getRangeStep: (range: any) => number;
7
- export declare const roundToStep: (value: number, step: number) => any;
8
- export declare const reasonableRealValue: (value: any) => any;
1
+ export declare function calcGradientStyle(stops: {
2
+ color: string;
3
+ pos: number;
4
+ }[]): string;
5
+ export declare const getStopText: (position: number, { fromValue, toValue }: {
6
+ fromValue: number;
7
+ toValue: number;
8
+ }) => string;
9
+ export declare const getRangeStep: (range: number) => number;
10
+ export declare const roundToStep: (value: number, step: number) => number;
11
+ export declare const reasonableRealValue: (value: number) => number;
9
12
  //# sourceMappingURL=GradientPicker.utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GradientPicker.utils.d.ts","sourceRoot":"","sources":["../../../src/components/GradientPicker/GradientPicker.utils.ts"],"names":[],"mappings":"AAGA,wBAAgB,iBAAiB,CAAC,KAAK,KAAA,UAOtC;AAED,eAAO,MAAM,WAAW,GAAI,aAAQ,EAAE;;;CAAqB,QAkB1D,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAK,WAajC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,MAAM,MAAM,QAEtD,CAAC;AAIF,eAAO,MAAM,mBAAmB,GAAG,UAAK,QAOvC,CAAC"}
1
+ {"version":3,"file":"GradientPicker.utils.d.ts","sourceRoot":"","sources":["../../../src/components/GradientPicker/GradientPicker.utils.ts"],"names":[],"mappings":"AAGA,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,EAAE,UAOxE;AAED,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,EAAE,wBAAwB;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,WAkB3G,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,WAazC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,MAAM,MAAM,WAEtD,CAAC;AAIF,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,WAOhD,CAAC"}
@@ -2,7 +2,7 @@ export declare const page: {
2
2
  deleteStopBtn(): HTMLElement;
3
3
  getStops(): HTMLDivElement[];
4
4
  getStopValues(): {
5
- color: any;
5
+ color: string;
6
6
  pos: number;
7
7
  }[];
8
8
  clickStop(stopIndex: number): void;
@@ -1,12 +1,16 @@
1
1
  import { Well } from '~/types';
2
2
  export declare function fetchCompanies(): Promise<any[]>;
3
- export declare function resyncIdasWells(currentUser: any, assetId: any): Promise<any>;
3
+ export declare function resyncIdasWells(currentUser: {
4
+ id: number;
5
+ first_name: string;
6
+ last_name: string;
7
+ }, assetId: number): Promise<import("~/clients/jsonApi").TaskResult>;
4
8
  export declare function fetchWells(companyIds: number[] | null, onPage: (wells: Well[], isEnd: boolean) => void, isCancelled: () => boolean): Promise<void>;
5
- export declare function fetchOffsetWellSelections(assetId: any): Promise<any>;
6
- export declare function fetchWellhubWells(assetId: any): Promise<any>;
7
- export declare function fetchCompanyGoals(companyId: any): Promise<any>;
9
+ export declare function fetchOffsetWellSelections(assetId: number): Promise<any>;
10
+ export declare function fetchWellhubWells(assetId: number): Promise<any>;
11
+ export declare function fetchCompanyGoals(companyId: number): Promise<any>;
8
12
  export declare function fetchCompanyIdsByWellIds(wellIds: number[]): Promise<number[]>;
9
13
  export declare function fetchWellsByIds(wellIds: number[]): Promise<Well[]>;
10
- export declare function fetchMetricsData(companyId: any, wellIds: any, metricsKeys: any): Promise<any[]>;
11
- export declare function fetchAllAssets(searchKey: any, assetType: any, page: number, company: any): Promise<any>;
14
+ export declare function fetchMetricsData(companyId: number, wellIds: number[], metricsKeys: string[]): Promise<any[]>;
15
+ export declare function fetchAllAssets(searchKey: string, assetType: string, page: number, company: number): Promise<any>;
12
16
  //# sourceMappingURL=apiCalls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apiCalls.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV4/utils/apiCalls.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAO/B,wBAAsB,cAAc,mBASnC;AAED,wBAAsB,eAAe,CAAC,WAAW,KAAA,EAAE,OAAO,KAAA,gBAqBzD;AAED,wBAAsB,UAAU,CAC9B,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,EAC3B,MAAM,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,EAC/C,WAAW,EAAE,MAAM,OAAO,GACzB,OAAO,CAAC,IAAI,CAAC,CAaf;AAoED,wBAAsB,yBAAyB,CAAC,OAAO,KAAA,gBAKtD;AAED,wBAAsB,iBAAiB,CAAC,OAAO,KAAA,gBAS9C;AAED,wBAAsB,iBAAiB,CAAC,SAAS,KAAA,gBAShD;AAGD,wBAAsB,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAmBnF;AAED,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAA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AsFjG;AAiED,wBAAsB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,QAAI,EAAE,OAAO,EAAE,MAAM,gBAgBnG"}
@@ -1,2 +1,2 @@
1
- export declare const resyncIdasWells: (currentUser: any, assetId: any) => Promise<any>;
1
+ export declare const resyncIdasWells: (currentUser: any, assetId: any) => Promise<import("~/clients/jsonApi").TaskResult>;
2
2
  //# sourceMappingURL=resyncIdasWells.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resyncIdasWells.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/api/bic/resyncIdasWells.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,GAAU,aAAa,GAAG,EAAE,SAAS,GAAG,iBAsBnE,CAAC"}
1
+ {"version":3,"file":"resyncIdasWells.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/api/bic/resyncIdasWells.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,GAAU,aAAa,GAAG,EAAE,SAAS,GAAG,oDAsBnE,CAAC"}
@@ -1,5 +1,5 @@
1
- export declare const CHUNK_SIZE = 1000;
2
- export declare const ID_CHUNK_SIZE = 100;
1
+ export declare const CHUNK_SIZE = 2000;
2
+ export declare const ID_CHUNK_SIZE = 400;
3
3
  export declare const MAX_WELL_NUMBER = 1000;
4
4
  export declare const ASSET_FIELDS: string[];
5
5
  //# sourceMappingURL=constants.d.ts.map
@@ -1,2 +1,2 @@
1
- var s=1e3,t=100,a=1e3,e=["asset.name","asset.company_id","asset.parent_asset_id","asset.parent_asset_name","asset.status","asset.stats","asset.target_formation","asset.string_design","asset.root_asset_name","asset.basin","asset.county","asset.area","asset.visibility","asset.top_hole","asset.settings","asset.last_active_at"];export{e as ASSET_FIELDS,s as CHUNK_SIZE,t as ID_CHUNK_SIZE,a as MAX_WELL_NUMBER};
1
+ var s=2e3,t=400,a=1e3,e=["asset.name","asset.company_id","asset.parent_asset_id","asset.parent_asset_name","asset.status","asset.stats","asset.target_formation","asset.string_design","asset.root_asset_name","asset.basin","asset.county","asset.area","asset.visibility","asset.top_hole","asset.settings","asset.last_active_at"];export{e as ASSET_FIELDS,s as CHUNK_SIZE,t as ID_CHUNK_SIZE,a as MAX_WELL_NUMBER};
2
2
  //# sourceMappingURL=constants.js.map
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/slicedToArray";import{jsxs as s,Fragment as e,jsx as t}from"react/jsx-runtime";import{useState as i,useRef as n,useEffect as c}from"react";import{isEmpty as r,first as m}from"lodash";import{makeStyles as a,useTheme as l,FormControl as u,Select as p,MenuItem as d,Tooltip as I}from"@material-ui/core";import f from"classnames";import j from"./WellStreamActivityStatus.js";import h from"./FracModeLabel.js";import{AssetStatus as v}from"./types.js";import{useWellStreamActivityTypeSubscription as S}from"./effects/useWellStreamActivityTypeSubscription.js";import{useMenuItems as g}from"./effects/useMenuItems.js";import{parseMenuItemKey as b}from"./utils/selectMenuKey.js";import{getSelectValue as F,getActiveAsset as C}from"./utils/resolveCurrentConfig.js";import{COMPLETION_MODES as x}from"../../constants/completion.js";import A from"../MiddleTruncate/MiddleTruncate.js";import{PadMode as M}from"../../types/shared/Completions.js";import{InfoIcon as y}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";var L=a((function(o){return{selectFormControl:{maxWidth:"320px",padding:"5px 8px",marginLeft:"auto"},padSelect:{fontSize:"14px","&:before":{borderBottom:0},"&:after":{borderBottom:0},"& .MuiSelect-root":{alignItems:"center",display:"flex"}},simulFracPadMenu:{"&.MuiList-padding":{paddingTop:16}},menuItem:{display:"flex",justifyContent:"space-between","&.subGroupItem":{paddingLeft:24}},menuItemName:{textOverflow:"ellipsis",overflow:"hidden",width:"100%",fontSize:12,lineHeight:"16px"},activeAsset:{fontSize:12,lineHeight:"16px",minWidth:78,display:"flex",alignItems:"center"},simulFracMessage:{maxWidth:230,display:"flex",alignItems:"center",gap:8,padding:"0 16px",fontSize:12,lineHeight:1.35,color:o.palette.primary.text6,pointerEvents:"none"}}})),P=function(e){var n=e.name,c=e.statusBadge,r=L(),m=i(),a=o(m,2),l=a[0],u=a[1];return t(I,{title:l&&l!==n?n:"",children:s("div",{className:r.activeAsset,children:[t(A,{onTruncate:function(o){u(o)},truncatedText:l,maxWidth:130,children:n}),c]})})},W=function(a){var I=a.completionAppType,A=a.padModeSetting,W=void 0===A?{mode:M.custom}:A,w=a.assets,O=void 0===w?[]:w,T=a.fracFleetLines,k=void 0===T?[]:T,N=a.disableActiveWellsInPadSelect,z=a.enableSimulFracInPadSelect,D=a.onChange,G=a.formControlClassName,R=a.activeAssetComponent,B=void 0===R?P:R,E=i(!1),H=o(E,2),U=H[0],q=H[1],K=n(),Z=L(),_=l(),J=F({fracFleetLines:k,padModeSetting:W,enableSimulFracInPadSelect:z}),Q=g({completionAppType:I,assets:O,fracFleetLines:k,enableSimulFracInPadSelect:z}),V=function(o){var s=b(o),e=s.mode,t=s.assetId,i={mode:e};e===M.custom?(i.mode=M.custom,i.selectedAssets=[parseInt(t,10)]):e===M.padLine&&(i.selectedLine=t),D(i)},X=function(o){return W.mode===M.custom&&+m(W.selectedAssets)==+o||U},Y=Q.find((function(o){return o.key===J})),$=S({currentWellId:K.current,isStatusShown:!0,withSubscription:!0}),oo=C({assets:O,padModeSetting:W,completionAppType:I});c((function(){null!=Y&&Y.assetId?K.current=null==Y?void 0:Y.assetId:K.current=void 0}),[null==Y?void 0:Y.assetId]);var so=oo&&oo.status===v.active;return oo||W.mode===M.padLine?s(e,{children:[W.mode===M.pad&&t(B,{name:oo.name,statusBadge:so&&t(j,{isStatusShown:!0,currentWellId:oo.asset_id,subData:r($)?void 0:$})}),t(u,{classes:{root:f(Z.selectFormControl,G)},children:J&&s(p,{value:J,onChange:function(o){return V(o.target.value)},inputProps:{name:"padModeSelect",id:"pad-mode-select"},className:Z.padSelect,onClose:function(){return q(!1)},onOpen:function(){return q(!0)},MenuProps:{classes:{list:Z.simulFracPadMenu},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},children:[t(h,{fracFleetLines:k}),Q.map((function(o){var e=o.key,i=o.label,n=o.assetId,c=o.wellId,r=o.status,m=o.isSubItem,a=o.isDisabled,l=X(c)&&r===v.active;return s(d,{value:e,className:f(Z.menuItem,m&&"subGroupItem"),disabled:N&&r!==v.active&&e!==x.pad&&(m||a),children:[t("span",{className:Z.menuItemName,children:i}),l&&t(j,{isStatusShown:X(c),currentWellId:n,subData:K.current===n?$:void 0})]},e)})),!z&&k.length>0&&s("div",{className:Z.simulFracMessage,children:[t(y,{size:16,fill:_.palette.info.main}),"Analytics apps show all wells in Pad Mode for Simulfracs"]})]})})]}):null};export{W as default};
1
+ import o from"@babel/runtime/helpers/slicedToArray";import{jsxs as s,Fragment as e,jsx as t}from"react/jsx-runtime";import{useState as i,useRef as n,useEffect as c}from"react";import{isEmpty as r,first as m}from"lodash";import{makeStyles as a,useTheme as l,FormControl as u,Select as p,MenuItem as d,Tooltip as I}from"@material-ui/core";import f from"classnames";import j from"./WellStreamActivityStatus.js";import h from"./FracModeLabel.js";import{AssetStatus as v}from"./types.js";import{useWellStreamActivityTypeSubscription as S}from"./effects/useWellStreamActivityTypeSubscription.js";import{useMenuItems as g}from"./effects/useMenuItems.js";import{parseMenuItemKey as b}from"./utils/selectMenuKey.js";import{getSelectValue as F,getActiveAsset as C}from"./utils/resolveCurrentConfig.js";import{COMPLETION_MODES as x}from"../../constants/completion.js";import A from"../MiddleTruncate/MiddleTruncate.js";import{PadMode as M}from"../../types/shared/Completions.js";import{InfoIcon as y}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";var L=a((function(o){return{selectFormControl:{maxWidth:"320px",padding:"5px 8px",marginLeft:"auto"},padSelect:{fontSize:"14px","&:before":{borderBottom:0},"&:after":{borderBottom:0},"& .MuiSelect-root":{alignItems:"center",display:"flex"}},simulFracPadMenu:{"&.MuiList-padding":{paddingTop:16}},menuItem:{display:"flex",justifyContent:"space-between","&.subGroupItem":{paddingLeft:24}},menuItemName:{textOverflow:"ellipsis",overflow:"hidden",width:"100%",fontSize:12,lineHeight:"16px"},activeAsset:{fontSize:12,lineHeight:"16px",minWidth:78,display:"flex",alignItems:"center"},simulFracMessage:{maxWidth:230,display:"flex",alignItems:"center",gap:8,padding:"0 16px",fontSize:12,lineHeight:1.35,color:o.palette.primary.text6,pointerEvents:"none"}}})),P=function(e){var n=e.name,c=e.statusBadge,r=L(),m=i(),a=o(m,2),l=a[0],u=a[1];return t(I,{title:l&&l!==n?n:"",children:s("div",{className:r.activeAsset,children:[t(A,{onTruncate:function(o){u(o)},truncatedText:l,maxWidth:130,children:n}),c]})})},W=function(a){var I=a.completionAppType,A=a.padModeSetting,W=void 0===A?{mode:M.custom}:A,w=a.assets,O=void 0===w?[]:w,T=a.fracFleetLines,k=void 0===T?[]:T,N=a.disableActiveWellsInPadSelect,z=a.enableSimulFracInPadSelect,D=a.onChange,G=a.formControlClassName,R=a.activeAssetComponent,B=void 0===R?P:R,E=i(!1),H=o(E,2),U=H[0],q=H[1],K=n(),Z=L(),_=l(),J=F({fracFleetLines:k,padModeSetting:W,enableSimulFracInPadSelect:z}),Q=g({completionAppType:I,assets:O,fracFleetLines:k,enableSimulFracInPadSelect:z}),V=function(o){return W.mode===M.custom&&+m(W.selectedAssets)==+o||U},X=Q.find((function(o){return o.key===J})),Y=S({currentWellId:K.current,isStatusShown:!0,withSubscription:!0}),$=C({assets:O,padModeSetting:W,completionAppType:I});c((function(){null!=X&&X.assetId?K.current=null==X?void 0:X.assetId:K.current=void 0}),[null==X?void 0:X.assetId]);var oo=$&&$.status===v.active;return $||W.mode===M.padLine?s(e,{children:[W.mode===M.pad&&t(B,{name:$.name,statusBadge:oo&&t(j,{isStatusShown:!0,currentWellId:$.asset_id,subData:r(Y)?void 0:Y})}),t(u,{classes:{root:f(Z.selectFormControl,G)},children:J&&s(p,{value:J,onChange:function(o){var s=b(String(o.target.value)),e=s.mode,t=s.assetId,i={mode:e};e===M.custom?(i.mode=M.custom,i.selectedAssets=[parseInt(t,10)]):e===M.padLine&&(i.selectedLine=t),D(i)},inputProps:{name:"padModeSelect",id:"pad-mode-select"},className:Z.padSelect,onClose:function(){return q(!1)},onOpen:function(){return q(!0)},MenuProps:{classes:{list:Z.simulFracPadMenu},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},children:[t(h,{fracFleetLines:k}),Q.map((function(o){var e=o.key,i=o.label,n=o.assetId,c=o.wellId,r=o.status,m=o.isSubItem,a=o.isDisabled,l=V(c)&&r===v.active;return s(d,{value:e,className:f(Z.menuItem,m&&"subGroupItem"),disabled:N&&r!==v.active&&e!==x.pad&&(m||a),children:[t("span",{className:Z.menuItemName,children:i}),l&&t(j,{isStatusShown:V(c),currentWellId:n,subData:K.current===n?Y:void 0})]},e)})),!z&&k.length>0&&s("div",{className:Z.simulFracMessage,children:[t(y,{size:16,fill:_.palette.info.main}),"Analytics apps show all wells in Pad Mode for Simulfracs"]})]})})]}):null};export{W as default};
2
2
  //# sourceMappingURL=PadModeSelect.js.map
@@ -1,3 +1,10 @@
1
- declare const WellStreamActivityStatus: (props: any) => JSX.Element;
1
+ import { FC } from 'react';
2
+ import { AssetStreamStatus } from './types';
3
+ type Props = {
4
+ isStatusShown: boolean;
5
+ currentWellId?: number;
6
+ subData?: AssetStreamStatus;
7
+ };
8
+ declare const WellStreamActivityStatus: FC<Props>;
2
9
  export default WellStreamActivityStatus;
3
10
  //# sourceMappingURL=WellStreamActivityStatus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WellStreamActivityStatus.d.ts","sourceRoot":"","sources":["../../../src/components/PadModeSelect/WellStreamActivityStatus.tsx"],"names":[],"mappings":"AAmCA,QAAA,MAAM,wBAAwB,GAAG,UAAK,gBAoBrC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"WellStreamActivityStatus.d.ts","sourceRoot":"","sources":["../../../src/components/PadModeSelect/WellStreamActivityStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAM3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AA6B5C,KAAK,KAAK,GAAG;IACX,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B,CAAC;AAEF,QAAA,MAAM,wBAAwB,EAAE,EAAE,CAAC,KAAK,CAiBvC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useWellStreamActivityTypeSubscription.d.ts","sourceRoot":"","sources":["../../../../src/components/PadModeSelect/effects/useWellStreamActivityTypeSubscription.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAkB,MAAM,UAAU,CAAC;AA6B7D,KAAK,uBAAuB,GAAG;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAGF,wBAAgB,qCAAqC,CAAC,EACpD,aAAa,EACb,aAAa,EACb,gBAAgB,GACjB,EAAE,uBAAuB,GAAG,iBAAiB,CAqE7C"}
1
+ {"version":3,"file":"useWellStreamActivityTypeSubscription.d.ts","sourceRoot":"","sources":["../../../../src/components/PadModeSelect/effects/useWellStreamActivityTypeSubscription.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAA4D,MAAM,UAAU,CAAC;AA+BvG,KAAK,uBAAuB,GAAG;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAGF,wBAAgB,qCAAqC,CAAC,EACpD,aAAa,EACb,aAAa,EACb,gBAAgB,GACjB,EAAE,uBAAuB,GAAG,iBAAiB,CAwE7C"}
@@ -1,2 +1,2 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useState as r,useRef as i,useLayoutEffect as n}from"react";import{initialDataFetcher as o}from"../utils/initialDataFetcher.js";import a from"./useWellStreamsData.js";import{socketClient as c}from"../../../clients/index.js";function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function m(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?s(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var l={provider:"corva",collection:"completion.wits",event:"",params:{fields:"timestamp,collection,asset_id",limit:1,sort:"{ timestamp: -1 }"}},p={provider:"corva",collection:"wireline.wits",event:"",params:{fields:"timestamp,collection,asset_id,data.state",limit:1,sort:"{ timestamp: -1 }"}};function u(t){var s=t.currentWellId,u=t.isStatusShown,f=t.withSubscription,b=r({timestamp:0}),d=e(b,2),v=d[0],O=d[1],h=r({timestamp:0}),j=e(h,2),w=j[0],y=j[1],P=i([]),g=a({isStatusShown:u,currentWellId:s,wirelineData:v,fracData:w}),D=function(t){var e=t.data[0]||{},r=e.collection,i=e.timestamp,n=e.data,o=e.stage_number;if(!i)return O({timestamp:0}),void y({timestamp:0});r===p.collection?O((function(t){return m(m({},t),{},{timestamp:i,stageNumber:o,data:n})})):r===l.collection&&y((function(t){return m(m({},t),{},{timestamp:i})}))},S=function(t,e){var r=m(m({},e),{},{assetId:t}),i=c.subscribe(r,{onDataReceive:D});P.current.push(i)};return n((function(){if(s){var t=o(l),e=o(p),r=[t(s),e(s)];return f&&(S(s,l),S(s,p)),Promise.all(r).then((function(t){t.forEach((function(t){D({data:t})}))})),function(){P.current.forEach((function(t){return t()})),P.current=[],O({timestamp:0}),y({timestamp:0})}}}),[s]),g}export{u as useWellStreamActivityTypeSubscription};
1
+ import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useState as r,useRef as i,useLayoutEffect as n}from"react";import{initialDataFetcher as o}from"../utils/initialDataFetcher.js";import a from"./useWellStreamsData.js";import{socketClient as c}from"../../../clients/index.js";function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function m(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?s(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var l={provider:"corva",collection:"completion.wits",event:"",params:{fields:"timestamp,collection,asset_id",limit:1,sort:"{ timestamp: -1 }"}},p={provider:"corva",collection:"wireline.wits",event:"",params:{fields:"timestamp,collection,asset_id,data.state",limit:1,sort:"{ timestamp: -1 }"}};function u(t){var s=t.currentWellId,u=t.isStatusShown,f=t.withSubscription,b=r({timestamp:0}),d=e(b,2),v=d[0],O=d[1],h=r({timestamp:0}),j=e(h,2),w=j[0],y=j[1],P=i([]),g=a({isStatusShown:u,currentWellId:s,wirelineData:v,fracData:w}),D=function(t){var e=t.data[0]||{},r=e.collection,i=e.timestamp,n=e.data,o=e.stage_number;if(!i)return O({timestamp:0}),void y({timestamp:0});r===p.collection?O((function(t){return m(m({},t),{},{timestamp:i,stageNumber:o,data:n})})):r===l.collection&&y((function(t){return m(m({},t),{},{timestamp:i})}))},S=function(t,e){var r={provider:e.provider,collection:e.collection,event:e.event,params:e.params,assetId:t},i=c.subscribe(r,{onDataReceive:D});P.current.push(i)};return n((function(){if(s){var t=o(l),e=o(p),r=[t(s),e(s)];return f&&(S(s,l),S(s,p)),Promise.all(r).then((function(t){t.forEach((function(t){t&&D({data:t})}))})),function(){P.current.forEach((function(t){return t()})),P.current=[],O({timestamp:0}),y({timestamp:0})}}}),[s]),g}export{u as useWellStreamActivityTypeSubscription};
2
2
  //# sourceMappingURL=useWellStreamActivityTypeSubscription.js.map
@@ -22,8 +22,30 @@ export type AssetStreamStatus = {
22
22
  export type StreamDataItem = {
23
23
  timestamp: number;
24
24
  stageNumber?: number;
25
- data?: {
26
- measured_depth?: number;
25
+ data?: WirelineWitsData;
26
+ };
27
+ export type CompletionWitsData = Record<string, number | undefined>;
28
+ export type WirelineWitsData = Record<string, number | undefined> & {
29
+ state?: string;
30
+ };
31
+ export type WitsRecordBase = {
32
+ _id: string;
33
+ version: number;
34
+ provider: string;
35
+ timestamp: number;
36
+ asset_id: number;
37
+ company_id: number;
38
+ stage_number?: number;
39
+ metadata?: {
40
+ datasource?: string;
27
41
  };
28
42
  };
43
+ export type CompletionWitsRecord = WitsRecordBase & {
44
+ collection: 'completion.wits';
45
+ data: CompletionWitsData;
46
+ };
47
+ export type WirelineWitsRecord = WitsRecordBase & {
48
+ collection: 'wireline.wits';
49
+ data: WirelineWitsData;
50
+ };
29
51
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/PadModeSelect/types.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,IAAI,OAAO;IACX,QAAQ,OAAO;CAChB;AAED,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,UA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AAG,SAAS,CAAC,GAAG;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG;IAClD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,IAAI,EAAE,kBAAkB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG;IAChD,UAAU,EAAE,eAAe,CAAC;IAC5B,IAAI,EAAE,gBAAgB,CAAC;CACxB,CAAC"}
@@ -1,2 +1,14 @@
1
- export declare function initialDataFetcher(subscriptionInfo: any): (assetId: number, timestamp?: number) => Promise<any>;
1
+ import { CompletionWitsRecord, WirelineWitsRecord } from '../types';
2
+ type WitsRecord = CompletionWitsRecord | WirelineWitsRecord;
3
+ type WitsSubscriptionInfo = {
4
+ provider: string;
5
+ collection: string;
6
+ params: {
7
+ fields: string;
8
+ limit: number;
9
+ sort: string;
10
+ };
11
+ };
12
+ export declare function initialDataFetcher(subscriptionInfo: WitsSubscriptionInfo): (assetId: number, timestamp?: number) => Promise<WitsRecord[] | null>;
13
+ export {};
2
14
  //# sourceMappingURL=initialDataFetcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initialDataFetcher.d.ts","sourceRoot":"","sources":["../../../../src/components/PadModeSelect/utils/initialDataFetcher.ts"],"names":[],"mappings":"AAGA,wBAAgB,kBAAkB,CAAC,gBAAgB,KAAA,IAC1B,SAAS,MAAM,EAAE,YAAY,MAAM,kBAmB3D"}
1
+ {"version":3,"file":"initialDataFetcher.d.ts","sourceRoot":"","sources":["../../../../src/components/PadModeSelect/utils/initialDataFetcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEpE,KAAK,UAAU,GAAG,oBAAoB,GAAG,kBAAkB,CAAC;AAE5D,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACzD,CAAC;AAGF,wBAAgB,kBAAkB,CAAC,gBAAgB,EAAE,oBAAoB,IAChD,SAAS,MAAM,EAAE,YAAY,MAAM,KAAG,OAAO,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,CAmB1F"}
@@ -1 +1 @@
1
- {"version":3,"file":"PadOffsetsPickerV2.d.ts","sourceRoot":"","sources":["../../../src/components/PadOffsetsPickerV2/PadOffsetsPickerV2.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAwB,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAoBxE,QAAA,MAAM,kBAAkB,GAAI,+EAQzB,uBAAuB,KAAG,GAAG,CAAC,OAkGhC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"PadOffsetsPickerV2.d.ts","sourceRoot":"","sources":["../../../src/components/PadOffsetsPickerV2/PadOffsetsPickerV2.tsx"],"names":[],"mappings":"AAeA,OAAO,EAA0C,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAoB1F,QAAA,MAAM,kBAAkB,GAAI,+EAQzB,uBAAuB,KAAG,GAAG,CAAC,OAkGhC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useOffsetPickerActions.d.ts","sourceRoot":"","sources":["../../../src/components/PadOffsetsPickerV2/useOffsetPickerActions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAwB,uBAAuB,EAAE,MAAM,SAAS,CAAC;AA8G1F,eAAO,MAAM,sBAAsB,GAAI,mDAKpC,IAAI,CAAC,uBAAuB,EAAE,QAAQ,GAAG,QAAQ,GAAG,sBAAsB,GAAG,QAAQ,CAAC;;;;;CA+BxF,CAAC"}
1
+ {"version":3,"file":"useOffsetPickerActions.d.ts","sourceRoot":"","sources":["../../../src/components/PadOffsetsPickerV2/useOffsetPickerActions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAwB,uBAAuB,EAAE,MAAM,SAAS,CAAC;AA4H1F,eAAO,MAAM,sBAAsB,GAAI,mDAKpC,IAAI,CAAC,uBAAuB,EAAE,QAAQ,GAAG,QAAQ,GAAG,sBAAsB,GAAG,QAAQ,CAAC;;;;;CA+BxF,CAAC"}
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  import { RealTimeBoxEditDialogProps } from '../types';
2
3
  declare function RealTimeBoxEditDialog(props: RealTimeBoxEditDialogProps): JSX.Element;
3
- declare const _default: import("react").MemoExoticComponent<typeof RealTimeBoxEditDialog>;
4
+ declare const _default: React.MemoExoticComponent<typeof RealTimeBoxEditDialog>;
4
5
  export default _default;
5
6
  //# sourceMappingURL=RealTimeBoxEditDialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RealTimeBoxEditDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAetD,iBAAS,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,eAkH/D;;AAED,wBAA2C"}
1
+ {"version":3,"file":"RealTimeBoxEditDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAKrE,OAAO,EAAE,0BAA0B,EAAgB,MAAM,UAAU,CAAC;AAepE,iBAAS,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,eAkH/D;;AAED,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"RealTimeBoxList.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAmBhD,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,eAgFnD;;AAED,wBAAqC"}
1
+ {"version":3,"file":"RealTimeBoxList.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAmB,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAmBjE,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,eAgFnD;;AAED,wBAAqC"}
@@ -34,16 +34,16 @@ export type RealtimeSidebarProps = {
34
34
  isResponsive: boolean;
35
35
  isSidebarOpen: boolean;
36
36
  handleOpenCloseSidebar: (isOpen: boolean) => void;
37
- onAppSettingChange: (key: string, value: any) => void;
38
- appSettings: Record<string, any>;
37
+ onAppSettingChange: (key: string, value: Record<string, string[]>) => void;
38
+ appSettings: Record<string, Record<string, string[]>>;
39
39
  assetKey: string;
40
40
  setting: string[];
41
41
  realTimeTypes: RealTimeType[];
42
42
  isDialogOpen: boolean;
43
43
  paramToEdit: string;
44
44
  handleOpenCloseDialog: (isOpen: boolean) => void;
45
- sourceArray: any[];
46
- findSource: (param: string, realTimeTypes: RealTimeType[]) => any;
45
+ sourceArray: RealTimeBoxItem[];
46
+ findSource: (param: string, realTimeTypes: RealTimeType[]) => RealTimeBoxItem | null;
47
47
  handleChangeParamToEdit: (item: string) => void;
48
48
  sidebarHorizontalHeight?: number;
49
49
  onLayoutChange?: (height: number) => void;
@@ -66,8 +66,8 @@ export type RealTimeBoxProps = {
66
66
  classNames?: Partial<ClassNameMap<keyof RealTimeSidebarClasses>>;
67
67
  };
68
68
  export type RealTimeBoxListProps = {
69
- sourceArray: any[];
70
- findSource: (param: string, realTimeTypes: RealTimeType[]) => any;
69
+ sourceArray: RealTimeBoxItem[];
70
+ findSource: (param: string, realTimeTypes: RealTimeType[]) => RealTimeBoxItem | null;
71
71
  classNames?: Partial<ClassNameMap<keyof RealTimeSidebarClasses>>;
72
72
  };
73
73
  export type SidebarFooterProps = {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/RealTimeValuesSidebar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,yBAAyB,EAAE,MAAM,IAAI,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,UAAU,sBAAsB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MA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E,CAAC;IAC/B,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,KAAK,eAAe,GAAG,IAAI,CAAC;IACrF,UAAU,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,MAAM,sBAAsB,CAAC,CAAC,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -1,5 +1,11 @@
1
+ import React from 'react';
1
2
  import PropTypes from 'prop-types';
2
- interface ResizableTableHeaderCellProps extends PropTypes.InferProps<typeof resizableTableHeaderCellPropTypes> {
3
+ interface ResizableTableHeaderCellProps {
4
+ children: React.ReactElement;
5
+ cellName: string;
6
+ nextCellName: string;
7
+ widths: Record<string, number>;
8
+ handleWidthsUpdate: (widths: Record<string, number>) => void;
3
9
  }
4
10
  declare function ResizableTableHeaderCell({ children, cellName, nextCellName, widths, handleWidthsUpdate, }: ResizableTableHeaderCellProps): JSX.Element;
5
11
  declare namespace ResizableTableHeaderCell {
@@ -12,11 +18,4 @@ declare namespace ResizableTableHeaderCell {
12
18
  };
13
19
  }
14
20
  export default ResizableTableHeaderCell;
15
- declare const resizableTableHeaderCellPropTypes: {
16
- children: PropTypes.Validator<PropTypes.ReactElementLike>;
17
- cellName: PropTypes.Validator<string>;
18
- nextCellName: PropTypes.Validator<string>;
19
- widths: PropTypes.Validator<NonNullable<PropTypes.InferProps<{}>>>;
20
- handleWidthsUpdate: PropTypes.Validator<(...args: any[]) => any>;
21
- };
22
21
  //# sourceMappingURL=ResizableTableHeaderCell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResizableTableHeaderCell.d.ts","sourceRoot":"","sources":["../../../src/components/ResizableTable/ResizableTableHeaderCell.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AA+BnC,UAAU,6BAA8B,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,iCAAiC,CAAC;CAAG;AAEjH,iBAAwB,wBAAwB,CAAC,EAC/C,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,kBAAkB,GACnB,EAAE,6BAA6B,GAAG,GAAG,CAAC,OAAO,CAqD7C;kBA3DuB,wBAAwB;;;;;;;;;eAAxB,wBAAwB;AA6DhD,QAAA,MAAM,iCAAiC;;;;;;CAMtC,CAAC"}
1
+ {"version":3,"file":"ResizableTableHeaderCell.d.ts","sourceRoot":"","sources":["../../../src/components/ResizableTable/ResizableTableHeaderCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,SAAS,MAAM,YAAY,CAAC;AA+BnC,UAAU,6BAA6B;IACrC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;CAC9D;AAED,iBAAwB,wBAAwB,CAAC,EAC/C,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,kBAAkB,GACnB,EAAE,6BAA6B,GAAG,GAAG,CAAC,OAAO,CAqD7C;kBA3DuB,wBAAwB;;;;;;;;;eAAxB,wBAAwB"}
@@ -1,2 +1,8 @@
1
- export declare const getFormattedOptions: (options: any, isGroupped: any, selectedGroup: any) => any;
1
+ interface SearchOption {
2
+ group?: string;
3
+ name?: string;
4
+ [key: string]: unknown;
5
+ }
6
+ export declare const getFormattedOptions: (options: SearchOption[] | undefined, isGroupped: boolean, selectedGroup: SearchOption | null) => SearchOption[];
7
+ export {};
2
8
  //# sourceMappingURL=getFormattedOptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFormattedOptions.d.ts","sourceRoot":"","sources":["../../../../src/components/Search/utils/getFormattedOptions.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,GAAI,YAAO,EAAE,eAAU,EAAE,kBAAa,QAUrE,CAAC"}
1
+ {"version":3,"file":"getFormattedOptions.d.ts","sourceRoot":"","sources":["../../../../src/components/Search/utils/getFormattedOptions.ts"],"names":[],"mappings":"AAEA,UAAU,YAAY;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,mBAAmB,GAAI,SAAS,YAAY,EAAE,GAAG,SAAS,EAAE,YAAY,OAAO,EAAE,eAAe,YAAY,GAAG,IAAI,mBAU/H,CAAC"}
@@ -38,7 +38,7 @@ export type Alert = {
38
38
  };
39
39
  export type AssetItem = {
40
40
  name: string;
41
- id: number;
41
+ id: string;
42
42
  issuesNum: number;
43
43
  missingNum: number;
44
44
  isResolved?: boolean;
@@ -1,18 +1,18 @@
1
1
  export type GetDeductsFromScoreClass = (styles: Record<string, string>, score: number, isResolved: boolean) => string;
2
2
  export type GetDeductsFromScoreValue = (deductsFromScore: number, isResolved: boolean) => string;
3
- type WellnessAlert = {
3
+ export type WellnessAlert = {
4
4
  id: string;
5
5
  assetId: number;
6
6
  name: string;
7
7
  category: string;
8
- lastCheckedAt: string;
8
+ lastCheckedAt: number;
9
9
  message: string;
10
10
  status: string;
11
11
  statusReason: string;
12
- statusUpdatedAt: string;
12
+ statusUpdatedAt: number;
13
13
  ruleId: string;
14
14
  state: string;
15
- createdAt: string;
15
+ createdAt: number;
16
16
  note: string;
17
17
  isThrottled: boolean;
18
18
  segment: string;
@@ -20,31 +20,71 @@ type WellnessAlert = {
20
20
  holeDepth?: number;
21
21
  state?: string;
22
22
  };
23
- deductsFromScore: boolean;
23
+ deductsFromScore: number;
24
24
  } | null;
25
- export type ParseWellnessAlertFromJson = (obj: {
25
+ export type RawWellnessAlert = {
26
26
  _id: string;
27
27
  asset_id: number;
28
+ company_id: number;
29
+ version: number;
30
+ provider: string;
31
+ collection: string;
28
32
  data: {
29
33
  name: string;
30
34
  category: string;
31
- last_checked_at: string;
35
+ last_checked_at: number;
32
36
  rule_id: string;
33
37
  message: string;
34
38
  status: string;
35
39
  status_reason: string;
36
- status_updated_at: string;
40
+ status_updated_at: number;
41
+ status_updated_by: string | null;
42
+ status_updated_by_user_name: string | null;
43
+ status_expire_at: number | null;
37
44
  state: string;
38
45
  note: string;
39
46
  is_throttled: boolean;
40
47
  segment: string;
48
+ stage_number: number | null;
49
+ force_request: boolean;
50
+ properties: Record<string, unknown>;
41
51
  metrics?: {
42
52
  hole_depth?: number;
43
53
  state?: string;
54
+ depth_at_creation?: number;
55
+ state_at_creation?: string;
56
+ depth_at_resolution?: number;
57
+ state_at_resolution?: string;
44
58
  };
45
- deducts_from_score: boolean;
59
+ deducts_from_score: number;
60
+ qced: boolean | null;
61
+ internal: boolean;
46
62
  };
47
- timestamp: string;
48
- }) => WellnessAlert;
49
- export {};
63
+ timestamp: number;
64
+ app_key: string | null;
65
+ };
66
+ export type RawWellnessRuleSetting = {
67
+ _id: string;
68
+ data: {
69
+ category: string;
70
+ customer_category?: string;
71
+ environment: string;
72
+ name: string;
73
+ customer_name?: string;
74
+ disabled: boolean;
75
+ interval: {
76
+ type: string;
77
+ interval_seconds: number;
78
+ refresh_rate: number;
79
+ cache_key: string;
80
+ cache_key_refresh: string;
81
+ };
82
+ point_allocation: number;
83
+ rule_id: string;
84
+ description?: string;
85
+ thresholds?: Record<string, unknown>;
86
+ };
87
+ timestamp: number;
88
+ };
89
+ export type ParseWellnessAlertFromJson = (obj: RawWellnessAlert) => WellnessAlert;
50
90
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","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AM,CAAC;SAC9B,CAAC;QACF,kBAAkB,EAAE,MAAM,CAAC;QAC3B,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;QACrB,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE;QACJ,QAAQ,EAAE,MAAM,CAAC;QACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,EAAE,OAAO,CAAC;QAClB,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM,CAAC;YACb,gBAAgB,EAAE,MAAM,CAAC;YACzB,YAAY,EAAE,MAAM,CAAC;YACrB,SAAS,EAAE,MAAM,CAAC;YAClB,iBAAiB,EAAE,MAAM,CAAC;SAC3B,CAAC;QACF,gBAAgB,EAAE,MAAM,CAAC;QACzB,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACtC,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,CAAC,GAAG,EAAE,gBAAgB,KAAK,aAAa,CAAC"}
@@ -1,5 +1,5 @@
1
- import { AssetItem, BadgeIconStatus } from '~/components/StatusBadge/constants';
2
- import { GetDeductsFromScoreClass, GetDeductsFromScoreValue, ParseWellnessAlertFromJson } from '~/components/StatusBadge/types';
1
+ import { AssetData, AssetItem, BadgeIconStatus } from '~/components/StatusBadge/constants';
2
+ import { GetDeductsFromScoreClass, GetDeductsFromScoreValue, ParseWellnessAlertFromJson, RawWellnessRuleSetting, WellnessAlert } from '~/components/StatusBadge/types';
3
3
  export declare const isResolved: (status: string) => boolean;
4
4
  export declare const getDeductsFromScoreClass: GetDeductsFromScoreClass;
5
5
  export declare const getDeductsFromScoreValue: GetDeductsFromScoreValue;
@@ -8,14 +8,41 @@ export declare const getLinkToDQPage: ({ assetId, wellHubSlug, }: {
8
8
  assetId: number;
9
9
  wellHubSlug: string;
10
10
  }) => string;
11
- export declare const groupAlertsByAssetName: (alerts: any, assetsList: any) => any;
11
+ export declare const groupAlertsByAssetName: (alerts: WellnessAlert[], assetsList: {
12
+ id: number;
13
+ name: string;
14
+ }[]) => Record<string, {
15
+ id: string;
16
+ assetId: number;
17
+ name: string;
18
+ category: string;
19
+ lastCheckedAt: number;
20
+ message: string;
21
+ status: string;
22
+ statusReason: string;
23
+ statusUpdatedAt: number;
24
+ ruleId: string;
25
+ state: string;
26
+ createdAt: number;
27
+ note: string;
28
+ isThrottled: boolean;
29
+ segment: string;
30
+ metrics: {
31
+ holeDepth?: number;
32
+ state?: string;
33
+ };
34
+ deductsFromScore: number;
35
+ }[]>;
12
36
  export declare const getNewWellnessAlerts: ({ assetsList, alertsGroupByRuleId, wellnessRuleSettings, wellHubSlug, }: {
13
- assetsList: any;
14
- alertsGroupByRuleId: any;
15
- wellnessRuleSettings: any;
16
- wellHubSlug: any;
17
- }) => any;
18
- export declare const getIconType: (alertsFromAssetsListKeys: any, wellnessAlertsFromAssetsList: any) => "" | "success" | "error" | "issue";
19
- export declare const getSortedWellnessAlerts: (alertsKeys: any, alerts: any) => any;
37
+ assetsList: {
38
+ id: number;
39
+ name: string;
40
+ }[];
41
+ alertsGroupByRuleId: WellnessAlert[][];
42
+ wellnessRuleSettings: RawWellnessRuleSetting[];
43
+ wellHubSlug: string;
44
+ }) => AssetData;
45
+ export declare const getIconType: (alertsFromAssetsListKeys: string[], wellnessAlertsFromAssetsList: AssetData) => "" | "success" | "error" | "issue";
46
+ export declare const getSortedWellnessAlerts: (alertsKeys: string[], alerts: AssetData) => AssetData;
20
47
  export declare const getCategoryIconType: (rules: AssetItem[]) => BadgeIconStatus;
21
48
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,SAAS,EAET,eAAe,EAEhB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,gCAAgC,CAAC;AAExC,eAAO,MAAM,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OACK,CAAC;AAEnD,eAAO,MAAM,wBAAwB,EAAE,wBAYtC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,wBAKtC,CAAC;AA6BF,eAAO,MAAM,0BAA0B,EAAE,0BA+BxC,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,2BAG7B;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB,KAAG,MAA0D,CAAC;AAE/D,eAAO,MAAM,sBAAsB,GAAI,WAAM,EAAE,eAAU,QAkBjD,CAAC;AAET,eAAO,MAAM,oBAAoB,GAAI;;;;;CAKpC,QA8CA,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,6BAAwB,EAAE,iCAA4B,uCAoBjF,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,eAAU,EAAE,WAAM,QAYvD,CAAC;AAEJ,eAAO,MAAM,mBAAmB,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,eAQzD,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,SAAS,EACT,SAAS,EAET,eAAe,EAEhB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,0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DATA_QUALITY_CHECK_PASSED as s,ALERT_STATES as a}from"./constants.js";function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.toLowerCase()===n.RESOLVED},c=function(t,e,n){return n||!e?"":e>40?t.error:e>10?t.warn:e>5?t.ok:t.good},d=function(t,e){return!e&&t>=0?"".concat(t,"%"):"—"};var l=function(t){var e,n,r,s;return"Issue"===t.data.state&&"Manual Alert"!==t.data.name&&"User Created"!==t.data.category?null:{id:t._id,assetId:t.asset_id,name:t.data.name,category:t.data.category,lastCheckedAt:t.data.last_checked_at,ruleId:t.data.rule_id,message:t.data.message,status:(s=t.data.status,"under investigation"===s?"investigation":["not available","resolved"].includes(s)?"resolved":s),statusReason:t.data.status_reason,statusUpdatedAt:t.data.status_updated_at,state:(r=t.data.state,["Fatal","Critical","Issue","Manual"].includes(r)?"Issue":["Missing Data"].includes(r)?"Missing":"Unknown"),createdAt:t.timestamp,note:t.data.note,isThrottled:t.data.is_throttled,segment:t.data.segment,metrics:{holeDepth:null===(e=t.data.metrics)||void 0===e?void 0:e.hole_depth,state:null===(n=t.data.metrics)||void 0===n?void 0:n.state},deductsFromScore:t.data.deducts_from_score}},f=function(t){var e=t.assetId,n=t.wellHubSlug;return"/assets/".concat(e,"/").concat(n,"/Data Quality")},m=function(t,e){return t.reduce((function(t,r){if(!r)return t;if([n.FLAGGED,n.INVESTIGATION,n.ON_HOLD].includes(r.status))return t;var s=e.find((function(t){return t.id===r.assetId})).name;return t[s]||(t[s]=[]),t[s].push(r),t}),{})},g=function(t){var e=t.assetsList,r=t.alertsGroupByRuleId,u=t.wellnessRuleSettings,c=t.wellHubSlug;return r.reduce((function(t,r){if(null==r||!r.length)return t;var d=m(r,e);return Object.keys(d).forEach((function(e){var r=d[e],l=u.find((function(t){var e=t.data;return(null==e?void 0:e.rule_id)===r[0].ruleId})),m=l.data.customer_name||r[0].name,g=l.data.customer_category||r[0].category,p=r.find((function(t){return t.status===n.OPEN||t.status===n.EXPIRED})),v=r.every((function(t){return o(t.status)}));t[e]||(t[e]=[]),t[e].push({alert:i(i({},v?i(i({},r.sort((function(t,e){return e.statusUpdatedAt-t.statusUpdatedAt}))[0]),{},{emptyMessage:s}):p),{},{name:m,category:g}),isResolved:v,id:r[0].id,issuesNum:r.filter((function(t){return t.state===a.issue&&!o(t.status)})).length,name:m,missingNum:r.filter((function(t){return t.state===a.missing&&!o(t.status)})).length,linkToDQPage:f({assetId:r[0].assetId,wellHubSlug:c})})})),t}),{})},p=function(t,e){return t.filter((function(t){return e[t].every((function(t){return t.isResolved}))})).length===t.length?r.success:t.filter((function(t){return e[t].some((function(t){return t.missingNum}))})).length?r.error:t.filter((function(t){return e[t].some((function(t){return t.issuesNum}))})).length?r.issue:""},v=function(n,r){return n.reduce((function(n,s){return i(i({},n),{},t({},s,e(r[s],[function(t){return-t.missingNum},function(t){return-t.issuesNum},function(t){return t.alert.category},function(t){return t.name}])))}),{})},h=function(t){return t.some((function(t){return t.missingNum>0}))?r.error:t.some((function(t){return t.issuesNum>0}))?r.issue:r.resolved};export{h as getCategoryIconType,c as getDeductsFromScoreClass,d as getDeductsFromScoreValue,p as getIconType,f as getLinkToDQPage,g as getNewWellnessAlerts,v as getSortedWellnessAlerts,m as groupAlertsByAssetName,o as isResolved,l as parseWellnessAlertFromJson};
1
+ import t from"@babel/runtime/helpers/defineProperty";import{sortBy as e}from"lodash";import{ALERT_STATUSES as r,BADGE_ICON_STATUSES as n,DATA_QUALITY_CHECK_PASSED as s,ALERT_STATES as a}from"./constants.js";function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?u(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.toLowerCase()===r.RESOLVED},c=function(t,e,r){return r||!e?"":e>40?t.error:e>10?t.warn:e>5?t.ok:t.good},d=function(t,e){return!e&&t>=0?"".concat(t,"%"):"—"};var l=function(t){var e,r,n,s;return"Issue"===t.data.state&&"Manual Alert"!==t.data.name&&"User Created"!==t.data.category?null:{id:t._id,assetId:t.asset_id,name:t.data.name,category:t.data.category,lastCheckedAt:t.data.last_checked_at,ruleId:t.data.rule_id,message:t.data.message,status:(s=t.data.status,"under investigation"===s?"investigation":["not available","resolved"].includes(s)?"resolved":s),statusReason:t.data.status_reason,statusUpdatedAt:t.data.status_updated_at,state:(n=t.data.state,["Fatal","Critical","Issue","Manual"].includes(n)?"Issue":["Missing Data"].includes(n)?"Missing":"Unknown"),createdAt:t.timestamp,note:t.data.note,isThrottled:t.data.is_throttled,segment:t.data.segment,metrics:{holeDepth:null===(e=t.data.metrics)||void 0===e?void 0:e.hole_depth,state:null===(r=t.data.metrics)||void 0===r?void 0:r.state},deductsFromScore:t.data.deducts_from_score}},f=function(t){var e=t.assetId,r=t.wellHubSlug;return"/assets/".concat(e,"/").concat(r,"/Data Quality")},m=function(t,e){return t.reduce((function(t,n){if(!n)return t;if([r.FLAGGED,r.INVESTIGATION,r.ON_HOLD].includes(n.status))return t;var s=e.find((function(t){return t.id===n.assetId}));if(!s)return t;var a=s.name;return t[a]||(t[a]=[]),t[a].push(n),t}),{})},g=function(t){var e=t.assetsList,n=t.alertsGroupByRuleId,u=t.wellnessRuleSettings,c=t.wellHubSlug;return n.reduce((function(t,n){if(null==n||!n.length)return t;var d=m(n,e);return Object.keys(d).forEach((function(e){var n=d[e],l=u.find((function(t){var e=t.data;return(null==e?void 0:e.rule_id)===n[0].ruleId}));if(l){var m=l.data.customer_name||n[0].name,g=l.data.customer_category||n[0].category,p=n.find((function(t){return t.status===r.OPEN||t.status===r.EXPIRED})),v=n.every((function(t){return o(t.status)}));t[e]||(t[e]=[]),t[e].push({alert:i(i({},v?i(i({},n.sort((function(t,e){return e.statusUpdatedAt-t.statusUpdatedAt}))[0]),{},{emptyMessage:s}):p),{},{name:m,category:g}),isResolved:v,id:n[0].id,issuesNum:n.filter((function(t){return t.state===a.issue&&!o(t.status)})).length,name:m,missingNum:n.filter((function(t){return t.state===a.missing&&!o(t.status)})).length,linkToDQPage:f({assetId:n[0].assetId,wellHubSlug:c})})}})),t}),{})},p=function(t,e){return t.filter((function(t){return e[t].every((function(t){return t.isResolved}))})).length===t.length?n.success:t.filter((function(t){return e[t].some((function(t){return t.missingNum}))})).length?n.error:t.filter((function(t){return e[t].some((function(t){return t.issuesNum}))})).length?n.issue:""},v=function(r,n){return r.reduce((function(r,s){return i(i({},r),{},t({},s,e(n[s],[function(t){return-t.missingNum},function(t){return-t.issuesNum},function(t){return t.alert.category},function(t){return t.name}])))}),{})},h=function(t){return t.some((function(t){return t.missingNum>0}))?n.error:t.some((function(t){return t.issuesNum>0}))?n.issue:n.resolved};export{h as getCategoryIconType,c as getDeductsFromScoreClass,d as getDeductsFromScoreValue,p as getIconType,f as getLinkToDQPage,g as getNewWellnessAlerts,v as getSortedWellnessAlerts,m as groupAlertsByAssetName,o as isResolved,l as parseWellnessAlertFromJson};
2
2
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useThrottledCallback.d.ts","sourceRoot":"","sources":["../../../src/components/shared/useThrottledCallback.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB,GAAI,UAAU,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,gBAAW,iBAS5C,GAAG,EAAE,SAqB9C,CAAC"}
1
+ {"version":3,"file":"useThrottledCallback.d.ts","sourceRoot":"","sources":["../../../src/components/shared/useThrottledCallback.ts"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB,GAAI,UAAU,CAAC,GAAG,MAAM,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,gBAAW,iBAS5C,GAAG,EAAE,SAqB9C,CAAC"}