@corva/ui 0.58.0-1 → 0.58.0-10

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 (256) hide show
  1. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  2. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  3. package/cjs-bundle/components/AnchorsList/AnchorsList.js +1 -1
  4. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  5. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  6. package/cjs-bundle/components/Button/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/CollapsableSidebar.js +1 -1
  11. package/cjs-bundle/components/CommentInput/index.js +1 -1
  12. package/cjs-bundle/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
  13. package/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  14. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  15. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  16. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  17. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
  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/FeedItem/feedItemTypes/HookloadCommentFeedItem.js +1 -1
  38. package/cjs-bundle/components/Modal/CorvaModal.css.js +1 -1
  39. package/cjs-bundle/components/Notifications/Toast.js +1 -1
  40. package/cjs-bundle/components/Notifications/Toast.styles.js +1 -1
  41. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  42. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  43. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  44. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  45. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  46. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  47. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  48. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  49. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  50. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  51. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  52. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  53. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  54. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  55. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  56. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  57. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeSidebar.js +1 -0
  58. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeSidebarContext.js +1 -0
  59. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeSidebarStyles.js +1 -0
  60. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBox.js +1 -0
  61. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -0
  62. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -0
  63. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.js +1 -0
  64. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -0
  65. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarTitle.js +1 -0
  66. package/cjs-bundle/components/RealTimeValuesSidebar/enums.js +1 -0
  67. package/cjs-bundle/components/StatusBadge/components/ReportIssueModal.js +1 -1
  68. package/cjs-bundle/components/StatusBadge/constants.js +1 -1
  69. package/cjs-bundle/components/StatusBadge/index.js +1 -1
  70. package/cjs-bundle/components/StatusBadge/utils.js +1 -1
  71. package/cjs-bundle/components/TextLink/index.js +1 -1
  72. package/cjs-bundle/components/Toaster/ToastContainer.js +1 -1
  73. package/cjs-bundle/components/Toaster/Toaster.js +1 -1
  74. package/cjs-bundle/components/UserMention/index.js +1 -1
  75. package/cjs-bundle/components/UserMention/style.css.js +1 -1
  76. package/cjs-bundle/components/index.js +1 -1
  77. package/cjs-bundle/constants/rigActivity.js +1 -1
  78. package/cjs-bundle/effects/useMatchAppContainerSize.js +1 -1
  79. package/components/AddComment/Popover.js +1 -1
  80. package/components/AddComment/components/Content.d.ts.map +1 -1
  81. package/components/AddComment/components/Content.js +1 -1
  82. package/components/AnchorsList/AnchorsList.d.ts.map +1 -1
  83. package/components/AnchorsList/AnchorsList.js +1 -1
  84. package/components/AnchorsList/__tests__/AnchorsList.test.d.ts +2 -0
  85. package/components/AnchorsList/__tests__/AnchorsList.test.d.ts.map +1 -0
  86. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  87. package/components/BICOffsetPickerDialog/index.js +1 -1
  88. package/components/Button/index.d.ts +1 -5
  89. package/components/Button/index.d.ts.map +1 -1
  90. package/components/Button/index.js +1 -1
  91. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  92. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  93. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  94. package/components/CollapsableSidebar.js +1 -1
  95. package/components/CommentInput/index.js +1 -1
  96. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.d.ts +17 -8
  97. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.d.ts.map +1 -1
  98. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
  99. package/components/DevCenter/AppFilterPanelLayout/__tests__/AppFilterPanelLayout.test.d.ts +2 -0
  100. package/components/DevCenter/AppFilterPanelLayout/__tests__/AppFilterPanelLayout.test.d.ts.map +1 -0
  101. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts +16 -45
  102. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
  103. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  104. package/components/DevCenter/AppSettingsPopover/index.d.ts +1 -1
  105. package/components/DevCenter/AppSettingsPopover/index.d.ts.map +1 -1
  106. package/components/DevCenter/AppSideBar/AppSideBar.d.ts +1 -1
  107. package/components/DevCenter/AppSideBar/AppSideBar.d.ts.map +1 -1
  108. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  109. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  110. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  111. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
  112. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  113. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
  114. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  115. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  116. package/components/DocumentViewer/DocumentViewer.js +1 -1
  117. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  118. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  119. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  120. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  121. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  122. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  123. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  124. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  125. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  126. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  127. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  128. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  129. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  130. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  131. package/components/Drillstring/BHAComponentsTable/components/sharedStyles.d.ts +1 -1
  132. package/components/EmbeddedApp/__tests__/EmbeddedApp.test.d.ts +2 -0
  133. package/components/EmbeddedApp/__tests__/EmbeddedApp.test.d.ts.map +1 -0
  134. package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.d.ts +4 -1
  135. package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.d.ts.map +1 -1
  136. package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js +1 -1
  137. package/components/Modal/CorvaModal.css.js +1 -1
  138. package/components/Modal/__tests__/CorvaModal.snapshot.test.d.ts +2 -0
  139. package/components/Modal/__tests__/CorvaModal.snapshot.test.d.ts.map +1 -0
  140. package/components/Modal/__tests__/CorvaModal.test.d.ts +2 -0
  141. package/components/Modal/__tests__/CorvaModal.test.d.ts.map +1 -0
  142. package/components/Notifications/Toast.js +1 -1
  143. package/components/Notifications/Toast.styles.d.ts.map +1 -1
  144. package/components/Notifications/Toast.styles.js +1 -1
  145. package/components/OffsetWellButton/__tests__/OffsetWellButton.test.d.ts +2 -0
  146. package/components/OffsetWellButton/__tests__/OffsetWellButton.test.d.ts.map +1 -0
  147. package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  148. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  149. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  150. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  151. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  152. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  153. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  154. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  155. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  156. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  157. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  158. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  159. package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  160. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  161. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  162. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  163. package/components/RealTimeValuesSidebar/RealTimeSidebar.d.ts +4 -0
  164. package/components/RealTimeValuesSidebar/RealTimeSidebar.d.ts.map +1 -0
  165. package/components/RealTimeValuesSidebar/RealTimeSidebar.js +1 -0
  166. package/components/RealTimeValuesSidebar/RealTimeSidebarContext.d.ts +4 -0
  167. package/components/RealTimeValuesSidebar/RealTimeSidebarContext.d.ts.map +1 -0
  168. package/components/RealTimeValuesSidebar/RealTimeSidebarContext.js +1 -0
  169. package/components/RealTimeValuesSidebar/RealTimeSidebarStyles.d.ts +2 -0
  170. package/components/RealTimeValuesSidebar/RealTimeSidebarStyles.d.ts.map +1 -0
  171. package/components/RealTimeValuesSidebar/RealTimeSidebarStyles.js +1 -0
  172. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBox.d.ts +6 -0
  173. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBox.d.ts.map +1 -0
  174. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBox.js +1 -0
  175. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.d.ts +6 -0
  176. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.d.ts.map +1 -0
  177. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -0
  178. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.d.ts +6 -0
  179. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.d.ts.map +1 -0
  180. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -0
  181. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.d.ts +2 -0
  182. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.d.ts.map +1 -0
  183. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.js +1 -0
  184. package/components/RealTimeValuesSidebar/RealTimeValuesBox/index.d.ts +2 -0
  185. package/components/RealTimeValuesSidebar/RealTimeValuesBox/index.d.ts.map +1 -0
  186. package/components/RealTimeValuesSidebar/SidebarFooter.d.ts +6 -0
  187. package/components/RealTimeValuesSidebar/SidebarFooter.d.ts.map +1 -0
  188. package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -0
  189. package/components/RealTimeValuesSidebar/SidebarTitle.d.ts +5 -0
  190. package/components/RealTimeValuesSidebar/SidebarTitle.d.ts.map +1 -0
  191. package/components/RealTimeValuesSidebar/SidebarTitle.js +1 -0
  192. package/components/RealTimeValuesSidebar/__tests__/RealTimeBox.test.d.ts +2 -0
  193. package/components/RealTimeValuesSidebar/__tests__/RealTimeBox.test.d.ts.map +1 -0
  194. package/components/RealTimeValuesSidebar/__tests__/RealTimeBoxEditDialog.test.d.ts +2 -0
  195. package/components/RealTimeValuesSidebar/__tests__/RealTimeBoxEditDialog.test.d.ts.map +1 -0
  196. package/components/RealTimeValuesSidebar/__tests__/RealTimeSidebar.test.d.ts +2 -0
  197. package/components/RealTimeValuesSidebar/__tests__/RealTimeSidebar.test.d.ts.map +1 -0
  198. package/components/RealTimeValuesSidebar/__tests__/RealTimeSidebarFooter.test.d.ts +2 -0
  199. package/components/RealTimeValuesSidebar/__tests__/RealTimeSidebarFooter.test.d.ts.map +1 -0
  200. package/components/RealTimeValuesSidebar/enums.d.ts +5 -0
  201. package/components/RealTimeValuesSidebar/enums.d.ts.map +1 -0
  202. package/components/RealTimeValuesSidebar/enums.js +1 -0
  203. package/components/RealTimeValuesSidebar/index.d.ts +2 -0
  204. package/components/RealTimeValuesSidebar/index.d.ts.map +1 -0
  205. package/components/RealTimeValuesSidebar/types.d.ts +59 -0
  206. package/components/RealTimeValuesSidebar/types.d.ts.map +1 -0
  207. package/components/StatusBadge/__tests__/StatusBadge.test.d.ts.map +1 -1
  208. package/components/StatusBadge/__tests__/useWellnessAlerts.test.d.ts +2 -0
  209. package/components/StatusBadge/__tests__/useWellnessAlerts.test.d.ts.map +1 -0
  210. package/components/StatusBadge/__tests__/utils.test.d.ts +2 -0
  211. package/components/StatusBadge/__tests__/utils.test.d.ts.map +1 -0
  212. package/components/StatusBadge/api.d.ts +4 -0
  213. package/components/StatusBadge/api.d.ts.map +1 -0
  214. package/components/StatusBadge/components/ReportIssueModal.d.ts +7 -2
  215. package/components/StatusBadge/components/ReportIssueModal.d.ts.map +1 -1
  216. package/components/StatusBadge/components/ReportIssueModal.js +1 -1
  217. package/components/StatusBadge/constants.d.ts +12 -0
  218. package/components/StatusBadge/constants.d.ts.map +1 -1
  219. package/components/StatusBadge/constants.js +1 -1
  220. package/components/StatusBadge/index.d.ts +1 -1
  221. package/components/StatusBadge/index.d.ts.map +1 -1
  222. package/components/StatusBadge/index.js +1 -1
  223. package/components/StatusBadge/types.d.ts +48 -0
  224. package/components/StatusBadge/types.d.ts.map +1 -0
  225. package/components/StatusBadge/useWellnessAlerts.d.ts +10 -0
  226. package/components/StatusBadge/useWellnessAlerts.d.ts.map +1 -0
  227. package/components/StatusBadge/utils.d.ts +8 -3
  228. package/components/StatusBadge/utils.d.ts.map +1 -1
  229. package/components/StatusBadge/utils.js +1 -1
  230. package/components/TextLink/index.js +1 -1
  231. package/components/Toaster/ToastContainer.d.ts +3 -2
  232. package/components/Toaster/ToastContainer.d.ts.map +1 -1
  233. package/components/Toaster/ToastContainer.js +1 -1
  234. package/components/Toaster/Toaster.d.ts +7 -6
  235. package/components/Toaster/Toaster.d.ts.map +1 -1
  236. package/components/Toaster/Toaster.js +1 -1
  237. package/components/Toaster/__tests__/ToastContainer.test.d.ts +2 -0
  238. package/components/Toaster/__tests__/ToastContainer.test.d.ts.map +1 -0
  239. package/components/Toaster/__tests__/Toaster.test.d.ts +2 -0
  240. package/components/Toaster/__tests__/Toaster.test.d.ts.map +1 -0
  241. package/components/Toaster/index.d.ts +2 -2
  242. package/components/Toaster/index.d.ts.map +1 -1
  243. package/components/Toaster/types.d.ts +6 -0
  244. package/components/Toaster/types.d.ts.map +1 -0
  245. package/components/UserMention/index.js +1 -1
  246. package/components/UserMention/style.css.js +1 -1
  247. package/components/index.d.ts +2 -1
  248. package/components/index.js +1 -1
  249. package/constants/rigActivity.d.ts +1 -0
  250. package/constants/rigActivity.d.ts.map +1 -1
  251. package/constants/rigActivity.js +1 -1
  252. package/effects/useMatchAppContainerSize.d.ts.map +1 -1
  253. package/effects/useMatchAppContainerSize.js +1 -1
  254. package/package.json +3 -2
  255. package/components/Modal/__tests__/index.snapshot.test.d.ts +0 -2
  256. package/components/Modal/__tests__/index.snapshot.test.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RealTimeSidebarStyles.d.ts","sourceRoot":"","sources":["../../../src/components/RealTimeValuesSidebar/RealTimeSidebarStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,sOAuDnB,CAAC"}
@@ -0,0 +1 @@
1
+ import{makeStyles as t}from"@material-ui/core";var i=t((function(t){return{rtSidebarVertical:{width:"48px",height:"calc(100%)",background:t.palette.background.b5,boxShadow:"4px 0px 8px rgba(0, 0, 0, 0.15)",position:"relative","&.fullSize":{height:"calc(100%)",width:"235px"}},rtSidebarHorizontal:{position:"absolute",top:400,left:0,width:"100%",height:400,background:t.palette.background.b5,"&.fullSize":{height:"auto"}},rtSidebarWhiteTheme:{background:t.palette.primary.contrastText},rtSidebarContent:{overflowY:"auto",height:"calc(100% - 150px)",visibility:"hidden"},rtSidebarContentFullSize:{visibility:"visible",marginTop:"50px","&.vertical":{height:"calc(100% - 100px)"},"&.horizontal":{height:"auto"}},rtSidebarHandler:{position:"absolute",width:"100%",height:"100%",cursor:"pointer","&:hover":{background:t.palette.background.b7,opacity:"0.3",zIndex:"999"}},rtSidebarHandlerFullSize:{display:"none"}}}));export{i as useStyles};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { RealTimeBoxProps } from '../types';
3
+ declare function RealTimeBox(props: RealTimeBoxProps): JSX.Element;
4
+ declare const _default: import("react").MemoExoticComponent<typeof RealTimeBox>;
5
+ export default _default;
6
+ //# sourceMappingURL=RealTimeBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RealTimeBox.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBox.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAK5C,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAwD3C;;AAED,wBAAiC"}
@@ -0,0 +1 @@
1
+ import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,Fragment as o,jsx as i}from"react/jsx-runtime";import{memo as t,useContext as a}from"react";import l from"classnames";import{noop as n}from"lodash";import{Divider as d}from"@material-ui/core";import m from"@material-ui/icons/DragIndicator";import{getUnitDisplay as s}from"../../../utils/index.js";import c from"../../IconButton/index.js";import u from"../RealTimeSidebarContext.js";import{useStyles as p}from"./RealTimeBoxStyles.js";var f=t((function(t){var f,x=t.item,h=void 0===x?null:x,v=t.isDraggable,g=void 0===v||v,B=t.dragHandle,b=void 0===B?n:B,N=t.itemSelected,j=void 0===N?null:N,C=p(),D=a(u),T=D.handleOpenCloseDialog,y=D.handleChangeParamToEdit,I=h?s(h.unitType):null,S=h?{borderLeft:"2px solid ".concat(h.color)}:null;return h?r(o,{children:[i("div",e({className:l(C.rtBox,(f={},f[C.rtBoxSelected]=!!j,f.notDraggable=!g,f)),"data-testid":"realtime_box"},{children:r(o,{children:[r("div",e({className:C.rtBoxInner,style:S,onClick:function(){T(!0),y(h.key)},"data-testid":"".concat(h.name,"_edit_item")},{children:[i("div",e({className:C.rtBoxTitle},{children:h.name})),r("div",e({className:C.rtBoxValue},{children:[h.value," ",i("span",{children:I})]}))]})),g&&b(i("div",e({className:C.rtBoxButtonContainer},{children:i(c,e({tooltipProps:{title:"Drag to Reorder"}},{children:i(m,{className:C.dragIcon,color:"error"})}))})))]})})),g&&i(d,{className:C.divider})]}):null}));export{f as default};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { RealTimeBoxEditDialogProps } from '../types';
3
+ declare function RealTimeBoxEditDialog(props: RealTimeBoxEditDialogProps): JSX.Element;
4
+ declare const _default: import("react").MemoExoticComponent<typeof RealTimeBoxEditDialog>;
5
+ export default _default;
6
+ //# sourceMappingURL=RealTimeBoxEditDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RealTimeBoxEditDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAYtD,iBAAS,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,eAsG/D;;AAED,wBAA2C"}
@@ -0,0 +1 @@
1
+ import{__assign as e,__spreadArray as r}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import{memo as o,useContext as a,useState as l,useEffect as m}from"react";import{uniq as c}from"lodash";import{makeStyles as s,FormControl as u,InputLabel as d,Select as p,MenuItem as f,FormHelperText as h}from"@material-ui/core";import{isMobileDetected as g}from"../../../utils/mobileDetect.js";import v from"../../Modal/Modal.js";import C from"../../Button/index.js";import y from"../RealTimeSidebarContext.js";var S=s({selectFormControl:{width:"80%",marginRight:"1rem"},cancelButton:{margin:"0 16px 0 auto"}});var x=o((function(o){var s=o.isDialogOpen,x=o.paramToEdit,T=o.handleCloseRealTimeDialog,j=a(y),k=j.onAppSettingChange,b=j.appSettings,R=j.assetKey,D=j.realTimeTypes,P=j.setting,B=j.handleChangeParamToEdit,E=D.filter((function(e){return"stats"!==e.collection})),F=S(),A=function(r){var t;k("rtValuesSetting",e(e({},b.rtValuesSetting),((t={})[R]=r,t)))},M=l(x),V=M[0],q=M[1];return m((function(){q(x)}),[x]),t(v,e({open:s,onClose:T,title:"Add/Edit Real-Time Parameter",size:g?"extraLarge":"medium",actions:i(n,{children:[t(C,e({color:"primary",classes:{root:F.cancelButton},onClick:T},{children:"Cancel"})),x&&t(C,e({color:"primary",onClick:function(){var e=P.filter((function(e){return e!==x}));A(e),B(""),T()}},{children:"Delete"})),t(C,e({variation:"primary",onClick:function(){var e;if(x)e=P.map((function(e){return e===x?V:e}));else{if(P.find((function(e){return e===V})))return void T();e=r([V],P,!0)}e=c(e),A(e),T()}},{children:"Save"}))]})},{children:t(n,{children:i(u,e({classes:{root:F.selectFormControl},error:!V},{children:[t(d,e({htmlFor:"parameter"},{children:"Parameter"})),i(p,e({value:V,inputProps:{name:"parameter",id:"parameter"},onChange:function(e){return q(String(e.target.value))}},{children:[t(f,e({value:""},{children:"Select"})),E.map((function(r){return t(f,e({value:r.key,disabled:P.includes(r.key)},{children:r.name}),r.key)}))]})),t(h,e({id:"rigs-error-text"},{children:"Required"}))]}))})}))}));export{x as default};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { RealTimeBoxListProps } from '../types';
3
+ declare function RealTimeBoxList(props: RealTimeBoxListProps): JSX.Element;
4
+ declare const _default: import("react").MemoExoticComponent<typeof RealTimeBoxList>;
5
+ export default _default;
6
+ //# sourceMappingURL=RealTimeBoxList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RealTimeBoxList.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAmBhD,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,eA2DnD;;AAED,wBAAqC"}
@@ -0,0 +1 @@
1
+ import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,Fragment as r,jsxs as o}from"react/jsx-runtime";import{memo as i,useContext as n}from"react";import s from"react-draggable-list";import{makeStyles as p}from"@material-ui/core";import{Add as m}from"@material-ui/icons";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"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"classnames";import"lodash";import"../../Icons/AnnotationIcon.js";import"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import"../../Annotations/AnnotationsContext.js";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.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"../../GradientManager/configuration/constants.js";import"../../../utils/index.js";import"../../HelpCenter/HelpCenterIcon.js";import"../../DevCenter/AppContext.js";import"../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../DevCenter/NavigationBar/NavigationBar.js";import"../../DevCenter/SideBar/SideBar.js";import"../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../AssetEditor/index.js";import"../../AppVersionsSelect/AppVersionsSelect.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../../Typography.js";import"../RealTimeSidebar.js";import"../../CollapsableSidebar.js";import"../../DateTimePicker/index.js";import"../../DatePicker/index.js";import"../../ErrorBoundary/ErrorBoundary.js";import"../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.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"../../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 a from"../../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/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"../../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/OffsetWellPickerV4.js";import"../../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../../Notifications/Toast.js";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"../../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 l from"./RealTimeBox.js";import d from"../RealTimeSidebarContext.js";import{ORIENTATIONS as j}from"../enums.js";var c=p((function(){return{boxListVertical:{padding:"10px 0 16px",overflowX:"hidden"},rtBoxListHorizontal:{display:"flex",flexWrap:"wrap"},cTpRtBoxAddButtonContainer:{marginTop:8,textAlign:"center"}}}));var C=i((function(i){var p=i.sourceArray,C=i.findSource,u=c(),A=n(d),D=A.onAppSettingChange,g=A.appSettings,v=A.assetKey,b=A.orientation,x=A.realTimeTypes,S=A.setting,P=A.handleOpenCloseDialog;return t(r,{children:b===j.vertical?o("div",e({className:u.boxListVertical},{children:[t(s,{list:p,itemKey:function(e){return e.key},template:l,padding:0,unsetZIndex:!0,container:function(){return document.body},onMoveEnd:function(t){var r,o=t.map((function(e){return e.key}));D("rtValuesSetting",e(e({},g.rtValuesSetting),((r={})[v]=o,r)))}}),t("div",e({className:u.cTpRtBoxAddButtonContainer},{children:t(a,e({color:"primary",tooltipProps:{title:"Add"},onClick:P},{children:t(m,{})}))}))]})):t("div",e({className:u.rtBoxListHorizontal},{children:S.map((function(e){return t(l,{isDraggable:!1,item:C(e,x)},"".concat(e))}))}))})}));export{C as default};
@@ -0,0 +1,2 @@
1
+ export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"divider" | "dragIcon" | "rtBox" | "rtBoxSelected" | "rtBoxInner" | "rtBoxTitle" | "rtBoxValue" | "rtBoxButtonContainer">;
2
+ //# sourceMappingURL=RealTimeBoxStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RealTimeBoxStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,uLAyDnB,CAAC"}
@@ -0,0 +1 @@
1
+ import{makeStyles as t}from"@material-ui/core";var e=t((function(t){return{dragIcon:{width:16,height:16},divider:{margin:"0 12px",width:206},rtBox:{padding:"8px 0px 8px 16px",display:"flex",justifyContent:"space-between",backgroundColor:t.palette.background.b5,alignItems:"center","&.notDraggable":{marginLeft:12,marginBottom:12,padding:0},"&:hover":{backgroundColor:t.palette.background.b6,"&>$rtBoxButtonContainer":{display:"block"}}},rtBoxSelected:{borderBottom:"0px solid ".concat(t.palette.background.b6),backgroundColor:t.palette.background.b6,boxShadow:"0px 0px 16px rgba(0, 0, 0, 0.5)"},rtBoxInner:{paddingLeft:8,borderLeft:"2px solid ".concat(t.palette.primary.contrastText),borderRadius:"2px",cursor:"pointer"},rtBoxTitle:{fontSize:"11px",lineHeight:"14px",color:t.palette.primary.text7,letterSpacing:"0.4px"},rtBoxValue:{marginTop:8,fontSize:"20px",lineHeight:"14px","& > span":{fontSize:"11px",lineHeight:"14px",color:t.palette.primary.text7}},rtBoxButtonContainer:{display:"none"}}}));export{e as useStyles};
@@ -0,0 +1,2 @@
1
+ export * from './RealTimeBoxList';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/RealTimeValuesBox/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { SidebarFooterProps } from './types';
3
+ declare function SidebarFooter({ onSidebarOpened, onSidebarClosed }: SidebarFooterProps): JSX.Element;
4
+ declare const _default: import("react").MemoExoticComponent<typeof SidebarFooter>;
5
+ export default _default;
6
+ //# sourceMappingURL=SidebarFooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarFooter.d.ts","sourceRoot":"","sources":["../../../src/components/RealTimeValuesSidebar/SidebarFooter.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAkD7C,iBAAS,aAAa,CAAC,EAAE,eAAe,EAAE,eAAe,EAAE,EAAE,kBAAkB,eA8C9E;;AAED,wBAAmC"}
@@ -0,0 +1 @@
1
+ import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as o,jsxs as e}from"react/jsx-runtime";import{memo as r,useContext as i}from"react";import a from"classnames";import{makeStyles as n}from"@material-ui/core";import{ChevronRight as s,KeyboardArrowUp as l,Add as c,ChevronLeft as d,KeyboardArrowDown as m}from"@material-ui/icons";import p from"../IconButton/index.js";import u from"./RealTimeSidebarContext.js";import{ORIENTATIONS as b}from"./enums.js";var f=n((function(t){return{button:{fontSize:14,fontWeight:500},buttonIcon:{fontSize:24,marginRight:8},closedButton:{marginBottom:"50px"},rtSidebarFooter:{position:"absolute",right:0,"&.vertical":{left:0,bottom:0,boxShadow:"16px -16px 16px ".concat(t.palette.background.b5)},"&.horizontal":{top:0}},rtSidebarFooterIcon:{color:t.palette.primary.text6},rtSidebarFooterActions:{display:"flex",paddingLeft:"14px",paddingRight:"5px",alignItems:"center","&.horizontal":{flexDirection:"row-reverse"}},actionButton:{padding:12}}}));var g=r((function(r){var n=r.onSidebarOpened,g=r.onSidebarClosed,h=f(),x=i(u),S=x.isSidebarOpen,v=x.orientation,z=x.handleOpenCloseDialog;return o("div",t({className:a(h.rtSidebarFooter,v),"data-testid":"sidebar_footer"},{children:S?e("div",t({className:a(h.rtSidebarFooterActions,v)},{children:[o(p,t({"data-testid":"sidebar_close_button",onClick:g,size:"large",className:h.actionButton},{children:v===b.vertical?o(s,{}):o(l,{className:h.rtSidebarFooterIcon})})),v===b.horizontal&&o(p,t({size:"large",color:"primary",tooltipProps:{title:"Add"},onClick:function(){return z(!0)},className:h.actionButton},{children:o(c,{})}))]})):o(p,t({size:"large",onClick:n,"data-testid":"sidebar_open_button",classes:{root:h.actionButton},className:a(h.closedButton)},{children:v===b.vertical?o(d,{}):o(m,{})}))}))}));export{g as default};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare function SidebarTitle(): JSX.Element;
3
+ declare const _default: import("react").MemoExoticComponent<typeof SidebarTitle>;
4
+ export default _default;
5
+ //# sourceMappingURL=SidebarTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarTitle.d.ts","sourceRoot":"","sources":["../../../src/components/RealTimeValuesSidebar/SidebarTitle.tsx"],"names":[],"mappings":";AAiDA,iBAAS,YAAY,gBAmBpB;;AAED,wBAAkC"}
@@ -0,0 +1 @@
1
+ import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e,jsxs as i,Fragment as r}from"react/jsx-runtime";import{memo as o,useContext as a}from"react";import n from"classnames";import{makeStyles as m,Typography as l}from"@material-ui/core";import p from"@material-ui/icons/Timer";import s from"./RealTimeSidebarContext.js";import{ORIENTATIONS as c}from"./enums.js";var x=m((function(t){return{iconWithText:{fontSize:20,lineHeight:"20px",marginRight:8},text:{fontSize:14,lineHeight:"16px",fontWeight:500,letterSpacing:1,textTransform:"uppercase"},icon:{fontSize:20,lineHeight:"20px"},cTpRtSidebarTitle:{display:"flex",flexDirection:"row",alignItems:"center",height:"50px",justifyContent:"normal",paddingLeft:"16px",zIndex:1,position:"absolute","&.vertical":{width:"100%",boxShadow:"16px 16px 16px #272727",borderBottom:"1px solid ".concat(t.palette.background.b7),color:t.isLightTheme?t.palette.primary.text9:t.palette.primary.text1},"&.horizontal":{color:t.isLightTheme?t.palette.primary.text1:t.palette.primary.text6}}}}));var d=o((function(){var o=x(),m=a(s),d=m.isSidebarOpen,h=m.orientation;return e("div",t({className:n(o.cTpRtSidebarTitle,h)},{children:d||h===c.horizontal?i(r,{children:[e(p,{className:o.iconWithText}),e(l,t({variant:"body2",component:"h4",className:o.text},{children:"Real-Time Values"}))]}):e(p,{className:o.icon})}))}));export{d as default};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=RealTimeBox.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RealTimeBox.test.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/__tests__/RealTimeBox.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=RealTimeBoxEditDialog.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RealTimeBoxEditDialog.test.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/__tests__/RealTimeBoxEditDialog.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=RealTimeSidebar.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RealTimeSidebar.test.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/__tests__/RealTimeSidebar.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=RealTimeSidebarFooter.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RealTimeSidebarFooter.test.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/__tests__/RealTimeSidebarFooter.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export declare enum ORIENTATIONS {
2
+ vertical = "vertical",
3
+ horizontal = "horizontal"
4
+ }
5
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/components/RealTimeValuesSidebar/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC1B"}
@@ -0,0 +1 @@
1
+ var o;!function(o){o.vertical="vertical",o.horizontal="horizontal"}(o||(o={}));export{o as ORIENTATIONS};
@@ -0,0 +1,2 @@
1
+ export { default } from './RealTimeSidebar';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RealTimeValuesSidebar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,59 @@
1
+ /// <reference types="react" />
2
+ export declare type RealTimeType = {
3
+ name: string;
4
+ key: string;
5
+ unitType?: string;
6
+ unit?: string;
7
+ color?: string;
8
+ precision?: number;
9
+ category?: string;
10
+ collection?: string;
11
+ };
12
+ export declare type RealTimeBoxEditDialogProps = {
13
+ isDialogOpen: boolean;
14
+ paramToEdit: string;
15
+ handleCloseRealTimeDialog: () => void;
16
+ };
17
+ export declare type Theme = {
18
+ isLightTheme: boolean;
19
+ };
20
+ export declare type RealtimeSidebarProps = {
21
+ theme: Theme;
22
+ isResponsive: boolean;
23
+ isSidebarOpen: boolean;
24
+ handleOpenCloseSidebar: (isOpen: boolean) => void;
25
+ onAppSettingChange: (key: string, value: any) => void;
26
+ appSettings: Record<string, any>;
27
+ assetKey: string;
28
+ setting: string[];
29
+ realTimeTypes: RealTimeType[];
30
+ isDialogOpen: boolean;
31
+ paramToEdit: string;
32
+ handleOpenCloseDialog: (isOpen: boolean) => void;
33
+ sourceArray: any[];
34
+ findSource: (param: string, realTimeTypes: RealTimeType[]) => any;
35
+ handleChangeParamToEdit: (item: string) => void;
36
+ };
37
+ export declare type RealTimeBoxItem = {
38
+ name: string;
39
+ value: string | number;
40
+ key: string;
41
+ color: string;
42
+ unitType: string;
43
+ };
44
+ export declare type RealTimeBoxProps = {
45
+ item?: RealTimeBoxItem;
46
+ itemSelected?: number;
47
+ dragHandle?: (param: JSX.Element) => void;
48
+ isDraggable?: boolean;
49
+ handleClick?: () => void;
50
+ };
51
+ export declare type RealTimeBoxListProps = {
52
+ sourceArray: any[];
53
+ findSource: (param: string, realTimeTypes: RealTimeType[]) => any;
54
+ };
55
+ export declare type SidebarFooterProps = {
56
+ onSidebarOpened: () => void;
57
+ onSidebarClosed: () => void;
58
+ };
59
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/RealTimeValuesSidebar/types.ts"],"names":[],"mappings":";AAAA,oBAAY,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,oBAAY,0BAA0B,GAAG;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,yBAAyB,EAAE,MAAM,IAAI,CAAC;CACvC,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,sBAAsB,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,kBAAkB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACtD,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,KAAK,GAAG,CAAC;IAClE,uBAAuB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,KAAK,GAAG,CAAC;CACnE,CAAC;AAEF,oBAAY,kBAAkB,GAAG;IAC/B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StatusBadge.test.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/__tests__/StatusBadge.test.jsx"],"names":[],"mappings":""}
1
+ {"version":3,"file":"StatusBadge.test.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/__tests__/StatusBadge.test.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useWellnessAlerts.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWellnessAlerts.test.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/__tests__/useWellnessAlerts.test.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=utils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/__tests__/utils.test.js"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export declare function getWCURuleMapping(): Promise<any>;
2
+ export declare function getWellnessRuleSettings(ruleIds: string[]): Promise<any>;
3
+ export declare function getWellnessAlerts(assetIds: number[], name: string): Promise<any>;
4
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/api.ts"],"names":[],"mappings":"AAKA,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC,CAYtD;AAED,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAc7E;AAED,wBAAsB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAYtF"}
@@ -1,9 +1,14 @@
1
1
  /// <reference types="react" />
2
+ declare type Asset = {
3
+ name: string;
4
+ id: number;
5
+ };
2
6
  declare type ReportIssueModalProps = {
3
7
  open: boolean;
4
- onSave: (description: string) => void;
8
+ onSave: (description: string, selectedAssetId: number) => void;
5
9
  onClose: () => void;
10
+ assets?: Asset[];
6
11
  };
7
- export declare const ReportIssueModal: ({ open, onSave, onClose }: ReportIssueModalProps) => JSX.Element;
12
+ export declare const ReportIssueModal: ({ assets, open, onSave, onClose }: ReportIssueModalProps) => JSX.Element;
8
13
  export {};
9
14
  //# sourceMappingURL=ReportIssueModal.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"ReportIssueModal.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/ReportIssueModal.tsx"],"names":[],"mappings":";AA0BA,aAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,aAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,gBAAgB,sCAAuC,qBAAqB,KAAG,WAuE3F,CAAC"}
@@ -1 +1 @@
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 s from"../../Button/index.js";var m=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=m(),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(s,e({color:"primary",className:p.clearAllButton,onClick:d},{children:"Cancel"})),t(s,e({disabled:!x,onClick:function(){return u(x)},variation:"primary"},{children:"report data issue"}))]})},{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};
1
+ import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r,jsxs as t,Fragment as o}from"react/jsx-runtime";import{useState as i}from"react";import{makeStyles as a,MenuItem as n,TextField as l}from"@material-ui/core";import s from"../../Modal/Modal.js";import m from"../../Button/index.js";import c from"../../Select/index.js";import{truncateString as u}from"../../Search/utils/truncate.js";var p=a((function(e){return{container:{width:472,color:e.palette.primary.text6,display:"flex",flexDirection:"column",gap:16},helpText:{fontSize:16,lineHeight:"22px"},clearAllButton:{margin:"0 16px 0 auto"},textField:{"& .MuiInput-formControl":{marginTop:8}},popover:{marginTop:8,maxHeight:500,width:"100%"}}})),d=function(a){var d=a.assets,h=a.open,f=a.onSave,v=a.onClose,x=p(),g=i(""),C=g[0],b=g[1],j=i(""),y=j[0],N=j[1],S=d.length>1;return r(s,e({open:h,onClose:v,title:"Report Data Quality Issue",actions:t(o,{children:[r(m,e({color:"primary",className:x.clearAllButton,onClick:v},{children:"Cancel"})),r(m,e({disabled:!C||S&&!y,onClick:function(){f(C,y),b(""),N(""),S||v()},variation:"primary"},{children:"report data issue"}))]})},{children:t("div",e({className:x.container},{children:[r("div",e({className:x.helpText},{children:"All issues are submitted to the Corva’s 24/7 Fusion data quality team for immediate review and remediation."})),S&&r(c,e({MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PopoverClasses:{root:x.popover}},label:"Select Asset",onChange:function(e){return N(e.target.value)},value:y},{children:d.map((function(t){return r(n,e({value:t.id},{children:u(t.name,{maxChars:50,charsNumFromStart:26,charsNumFromEnd:24})}),t.id)}))})),r(l,{className:x.textField,multiline:!0,rows:1,rowsMax:4,label:"Error Description",onChange:function(e){return b(e.target.value)},value:C})]}))}))};export{d as ReportIssueModal};
@@ -1,7 +1,10 @@
1
1
  export declare const MAX_MOBILE_WIDTH = 959;
2
2
  export declare type BadgeIconStatus = 'warning' | 'error' | 'success';
3
3
  export declare const ALERT_STATUSES: {
4
+ FLAGGED: string;
4
5
  RESOLVED: string;
6
+ OPEN: string;
7
+ INVESTIGATION: string;
5
8
  };
6
9
  export declare const ALERT_ICONS: {
7
10
  Missing: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
@@ -51,5 +54,14 @@ export declare const BADGE_ICONS: {
51
54
  error: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
52
55
  };
53
56
  export declare const WARNING = "Recommendations may be incorrect based on data quality errors";
57
+ export declare const METADATA: {
58
+ recordProvider: string;
59
+ recordCollections: {
60
+ wellnessAlerts: string;
61
+ wcuRuleMapping: string;
62
+ wellnessRuleSettings: string;
63
+ wcuRulesCheckTime: string;
64
+ };
65
+ };
54
66
  export {};
55
67
  //# sourceMappingURL=constants.d.ts.map
@@ -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,cAAc;;CAE1B,CAAC;AAEF,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,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,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;IACtB,YAAY,CAAC,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,YAAY,EAAE,MAAM,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
+ {"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,cAAc;;;;;CAK1B,CAAC;AAEF,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,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,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;IACtB,YAAY,CAAC,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,YAAY,EAAE,MAAM,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;AAEvF,eAAO,MAAM,QAAQ;;;;;;;;CAQpB,CAAC"}
@@ -1 +1 @@
1
- import r from"@material-ui/icons/Warning";import s from"@material-ui/icons/Done";import i from"@material-ui/icons/Error";import o from"@material-ui/icons/CheckCircle";import{DangerousIcon as e}from"../Icons/DangerousIcon.js";var n,a=959,m={RESOLVED:"resolved"},c={Missing:e,Issue:i,Resolved:o},t={missing:"Missing",issue:"Issue"},u={success:"success",warning:"warning",error:"error"},g=((n={})[u.success]=s,n[u.warning]=r,n[u.error]=e,n),l="Recommendations may be incorrect based on data quality errors";export{c as ALERT_ICONS,t as ALERT_STATES,m as ALERT_STATUSES,g as BADGE_ICONS,u as BADGE_ICON_STATUSES,a as MAX_MOBILE_WIDTH,l as WARNING};
1
+ import r from"@material-ui/icons/Warning";import i from"@material-ui/icons/Done";import s from"@material-ui/icons/Error";import o from"@material-ui/icons/CheckCircle";import{DangerousIcon as e}from"../Icons/DangerousIcon.js";var n,a=959,m={FLAGGED:"flagged",RESOLVED:"resolved",OPEN:"open",INVESTIGATION:"investigation"},c={Missing:e,Issue:s,Resolved:o},t={missing:"Missing",issue:"Issue"},u={success:"success",warning:"warning",error:"error"},g=((n={})[u.success]=i,n[u.warning]=r,n[u.error]=e,n),l="Recommendations may be incorrect based on data quality errors";export{c as ALERT_ICONS,t as ALERT_STATES,m as ALERT_STATUSES,g as BADGE_ICONS,u as BADGE_ICON_STATUSES,a as MAX_MOBILE_WIDTH,l as WARNING};
@@ -7,7 +7,7 @@ declare type StatusBadgeProps = {
7
7
  DQIssueTooltipMaxHeight?: number;
8
8
  iconType?: 'error' | 'success';
9
9
  lastTimestamp: number;
10
- onReportErrorClick?: (description: string) => void;
10
+ onReportErrorClick: (description: string, assetId: number) => void;
11
11
  warningData?: Record<string, any>;
12
12
  };
13
13
  export declare const StatusBadge: ({ assetsData, appWidth, DQIssueTooltipMaxHeight, iconType, className, lastTimestamp, onReportErrorClick, warningData, }: StatusBadgeProps) => JSX.Element;
@@ -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;AA8ErB,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,WA6ErB,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;AA8ErB,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,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,WAAW,4HASrB,gBAAgB,KAAG,WAwErB,CAAC"}
@@ -1 +1 @@
1
- import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as e,jsx as o,Fragment as a}from"react/jsx-runtime";import{useState as n}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{ReportIssueModal as f}from"./components/ReportIssueModal.js";var x=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"}}}}})),h=function(s){var h=s.assetsData,b=void 0===h?{}:h,v=s.appWidth,y=s.DQIssueTooltipMaxHeight,S=s.iconType,I=s.className,T=s.lastTimestamp,w=s.onReportErrorClick,D=s.warningData,_=n(!1),C=_[0],j=_[1],W=null==D?void 0:D.message,N=S==m.error,k=S==m.success,Q=v<d,E=x({isIconExist:!!S,isSuccessTypeIcon:k,isErrorTypeIcon:N});return e("div",t({"data-testid":"Status_badge",className:i(E.statusBadgeWrapper,I)},{children:[e("div",t({className:E.statusBadgeContent},{children:[S&&o(p,t({leaveDelay:200,interactive:!0,PopperProps:{className:E.popper},placement:"top-start",title:o(u,{assetsData:b,maxHeight:y,onClick:function(){return j(!0)}})},{children:o("div",t({className:E.DQIconWrapper,"data-testid":"".concat("Status_badge","__DQ_icon_").concat(S)},{children:o(g,{color:S,iconType:S})}))})),T&&e(c,t({className:i(E.text,E.timestamp),variant:"body1"},{children:["Last Update: ",r.unix(T).format("M/D/YYYY h:mm a")]})),D&&e(a,{children:[o(p,t({placement:"top",title:W?"".concat(l,". ").concat(W):l},{children:o("div",t({"data-testid":"".concat("Status_badge","__DQ_icon_warning")},{children:o(g,{className:E.badgeIconWarning,color:m.warning,iconType:m.warning})}))})),!Q&&o(c,t({className:i(E.text,E.warningMessage),variant:"body1"},{children:W?"".concat(l,". ").concat(W):l}))]})]})),k&&o(f,{open:C,onSave:function(t){w(t),j(!1)},onClose:function(){return j(!1)}})]}))};export{h as StatusBadge};
1
+ import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as e,jsx as o,Fragment as a}from"react/jsx-runtime";import{useState as n}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{ReportIssueModal as f}from"./components/ReportIssueModal.js";var x=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"}}}}})),h=function(s){var h=s.assetsData,b=void 0===h?{}:h,v=s.appWidth,y=s.DQIssueTooltipMaxHeight,I=s.iconType,S=s.className,T=s.lastTimestamp,w=s.onReportErrorClick,D=s.warningData,_=n(!1),j=_[0],C=_[1],W=null==D?void 0:D.message,k=I==m.error,N=I==m.success,Q=v<d,E=x({isIconExist:!!I,isSuccessTypeIcon:N,isErrorTypeIcon:k});return e("div",t({"data-testid":"Status_badge",className:i(E.statusBadgeWrapper,S)},{children:[e("div",t({className:E.statusBadgeContent},{children:[I&&o(p,t({leaveDelay:200,interactive:!0,PopperProps:{className:E.popper},placement:"top-start",title:o(u,{assetsData:b,maxHeight:y,onClick:function(){return C(!0)}})},{children:o("div",t({className:E.DQIconWrapper,"data-testid":"".concat("Status_badge","__DQ_icon_").concat(I)},{children:o(g,{color:I,iconType:I})}))})),T&&e(c,t({className:i(E.text,E.timestamp),variant:"body1"},{children:["Last Update: ",r.unix(T).format("M/D/YYYY h:mm a")]})),D&&e(a,{children:[o(p,t({placement:"top",title:W?"".concat(l,". ").concat(W):l},{children:o("div",t({"data-testid":"".concat("Status_badge","__DQ_icon_warning")},{children:o(g,{className:E.badgeIconWarning,color:m.warning,iconType:m.warning})}))})),!Q&&o(c,t({className:i(E.text,E.warningMessage),variant:"body1"},{children:W?"".concat(l,". ").concat(W):l}))]})]})),o(f,{assets:Object.keys(b).map((function(t){return{name:t,id:b[t][0].alert.assetId}})),open:j,onSave:w,onClose:function(){return C(!1)}})]}))};export{h as StatusBadge};
@@ -0,0 +1,48 @@
1
+ export declare type GetDeductsFromScoreClass = (styles: Record<string, string>, score: number, isResolved: boolean) => string;
2
+ export declare type GetDeductsFromScoreValue = (deductsFromScore: number, isResolved: boolean) => string;
3
+ declare type WellnessAlert = {
4
+ id: string;
5
+ assetId: number;
6
+ name: string;
7
+ category: string;
8
+ lastCheckedAt: string;
9
+ message: string;
10
+ status: string;
11
+ statusReason: string;
12
+ statusUpdatedAt: string;
13
+ state: string;
14
+ createdAt: string;
15
+ note: string;
16
+ isThrottled: boolean;
17
+ segment: string;
18
+ metrics: {
19
+ holeDepth?: number;
20
+ state?: string;
21
+ };
22
+ deductsFromScore: boolean;
23
+ } | null;
24
+ export declare type ParseWellnessAlertFromJson = (obj: {
25
+ _id: string;
26
+ asset_id: number;
27
+ data: {
28
+ name: string;
29
+ category: string;
30
+ last_checked_at: string;
31
+ message: string;
32
+ status: string;
33
+ status_reason: string;
34
+ status_updated_at: string;
35
+ state: string;
36
+ note: string;
37
+ is_throttled: boolean;
38
+ segment: string;
39
+ metrics?: {
40
+ hole_depth?: number;
41
+ state?: string;
42
+ };
43
+ deducts_from_score: boolean;
44
+ };
45
+ timestamp: string;
46
+ }) => WellnessAlert;
47
+ export {};
48
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/types.ts"],"names":[],"mappings":"AAAA,oBAAY,wBAAwB,GAAG,CACrC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,OAAO,KAChB,MAAM,CAAC;AAEZ,oBAAY,wBAAwB,GAAG,CAAC,gBAAgB,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,KAAK,MAAM,CAAC;AAEjG,aAAK,aAAa,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,gBAAgB,EAAE,OAAO,CAAC;CAC3B,GAAG,IAAI,CAAC;AAET,oBAAY,0BAA0B,GAAG,CAAC,GAAG,EAAE;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,eAAe,EAAE,MAAM,CAAC;QACxB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,aAAa,EAAE,MAAM,CAAC;QACtB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,OAAO,CAAC;QACtB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE;YACR,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,kBAAkB,EAAE,OAAO,CAAC;KAC7B,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;CACnB,KAAK,aAAa,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare const useWellnessAlerts: ({ asset, multiRigAssets, appId, dashboards }: {
2
+ asset: any;
3
+ multiRigAssets?: any[];
4
+ appId: any;
5
+ dashboards: any;
6
+ }) => {
7
+ wellnessAlerts: {};
8
+ statusBadgeIconType: string;
9
+ };
10
+ //# sourceMappingURL=useWellnessAlerts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWellnessAlerts.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/useWellnessAlerts.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,iBAAiB;;;;;;;;CAgF7B,CAAC"}
@@ -1,7 +1,12 @@
1
+ import { ParseWellnessAlertFromJson, GetDeductsFromScoreValue, GetDeductsFromScoreClass } from '~/components/StatusBadge/types';
1
2
  export declare const isResolved: (status: string) => boolean;
2
- declare type GetDeductsFromScoreClass = (styles: Record<string, string>, score: number, isResolved: boolean) => string;
3
3
  export declare const getDeductsFromScoreClass: GetDeductsFromScoreClass;
4
- declare type GetDeductsFromScoreValue = (deductsFromScore: number, isResolved: boolean) => string;
5
4
  export declare const getDeductsFromScoreValue: GetDeductsFromScoreValue;
6
- export {};
5
+ export declare const parseWellnessAlertFromJson: ParseWellnessAlertFromJson;
6
+ export declare const getLinkToDQPage: ({ assetId, wellHubSlug }: {
7
+ assetId: number;
8
+ wellHubSlug: string;
9
+ }) => string;
10
+ export declare const groupAlertsByAssetName: (alerts: any, assetsList: any) => any;
11
+ export declare const getNewWellnessAlerts: (assetsList: any, parsedWellnessAlerts: any, wellHubSlug: any) => any;
7
12
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAwD,CAAC;AAEtG,aAAK,wBAAwB,GAAG,CAC9B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,OAAO,KAChB,MAAM,CAAC;AAEZ,eAAO,MAAM,wBAAwB,EAAE,wBActC,CAAC;AAEF,aAAK,wBAAwB,GAAG,CAAC,gBAAgB,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,KAAK,MAAM,CAAC;AAE1F,eAAO,MAAM,wBAAwB,EAAE,wBAEtC,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,gCAAgC,CAAC;AAExC,eAAO,MAAM,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAA2E,CAAC;AAEzH,eAAO,MAAM,wBAAwB,EAAE,wBAatC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,wBAEtC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,0BA8BxC,CAAC;AAEF,eAAO,MAAM,eAAe;aAAyC,MAAM;iBAAe,MAAM;MAAK,MACnD,CAAC;AAEnD,eAAO,MAAM,sBAAsB,uCAc3B,CAAC;AAET,eAAO,MAAM,oBAAoB,uEAmChC,CAAC"}
@@ -1 +1 @@
1
- import{ALERT_STATUSES as r}from"./constants.js";var n=function(n){return n===r.RESOLVED},o=function(r,n,o){return o||!n?"":n>40?r.error:n>10?r.warn:n>5?r.ok:r.good},t=function(r,n){return!n&&r>=0?"".concat(r,"%"):"—"};export{o as getDeductsFromScoreClass,t as getDeductsFromScoreValue,n as isResolved};
1
+ import{ALERT_STATUSES as o}from"./constants.js";var r=function(r){return void 0===r&&(r=""),r.toLowerCase()===o.RESOLVED},n=function(o,r,n){return n||!r?"":r>40?o.error:r>10?o.warn:r>5?o.ok:o.good},t=function(o,r){return!r&&o>=0?"".concat(o,"%"):"—"};export{n as getDeductsFromScoreClass,t as getDeductsFromScoreValue,r as isResolved};