@corva/ui 3.75.0-16 → 3.75.0-18

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 (1067) hide show
  1. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  2. package/cjs-bundle/components/AddComment/Popover.js.map +1 -1
  3. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  4. package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
  5. package/cjs-bundle/components/AdvancedSlider/Handle.js +1 -1
  6. package/cjs-bundle/components/AdvancedSlider/Handle.js.map +1 -1
  7. package/cjs-bundle/components/AttachFileButton/AttachFileButton.js +1 -1
  8. package/cjs-bundle/components/AttachFileButton/AttachFileButton.js.map +1 -1
  9. package/cjs-bundle/components/Attachment/index.js +1 -1
  10. package/cjs-bundle/components/Attachment/index.js.map +1 -1
  11. package/cjs-bundle/components/AttachmentLightbox/AttachmentLightbox.js +1 -1
  12. package/cjs-bundle/components/AttachmentLightbox/AttachmentLightbox.js.map +1 -1
  13. package/cjs-bundle/components/AttachmentLightbox/AttachmentPreviewPane.js +1 -1
  14. package/cjs-bundle/components/AttachmentLightbox/AttachmentPreviewPane.js.map +1 -1
  15. package/cjs-bundle/components/AttachmentPreview/AttachmentActionsMenu.js +1 -1
  16. package/cjs-bundle/components/AttachmentPreview/AttachmentActionsMenu.js.map +1 -1
  17. package/cjs-bundle/components/AttachmentPreview/AttachmentDownloadLink.js +1 -1
  18. package/cjs-bundle/components/AttachmentPreview/AttachmentDownloadLink.js.map +1 -1
  19. package/cjs-bundle/components/AttachmentPreview/AttachmentTile.js +1 -1
  20. package/cjs-bundle/components/AttachmentPreview/AttachmentTile.js.map +1 -1
  21. package/cjs-bundle/components/AttachmentPreview/SortableAttachments.js +1 -1
  22. package/cjs-bundle/components/AttachmentPreview/SortableAttachments.js.map +1 -1
  23. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  24. package/cjs-bundle/components/BICOffsetPickerDialog/index.js.map +1 -1
  25. package/cjs-bundle/components/Breadcrumbs/index.js +1 -1
  26. package/cjs-bundle/components/Breadcrumbs/index.js.map +1 -1
  27. package/cjs-bundle/components/Button/components/LiveButton/index.js +1 -1
  28. package/cjs-bundle/components/Button/components/LiveButton/index.js.map +1 -1
  29. package/cjs-bundle/components/Button/index.js +1 -1
  30. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  31. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  32. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  33. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  34. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  35. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  36. package/cjs-bundle/components/Chart/components/AxisDropdown.js +1 -1
  37. package/cjs-bundle/components/Chart/components/AxisDropdown.js.map +1 -1
  38. package/cjs-bundle/components/Chart/components/ChartSelect.js +1 -1
  39. package/cjs-bundle/components/Chart/components/ChartSelect.js.map +1 -1
  40. package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  41. package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js.map +1 -1
  42. package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  43. package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js.map +1 -1
  44. package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js +1 -1
  45. package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js.map +1 -1
  46. package/cjs-bundle/components/Chart/components/buttons/PanButton.js +1 -1
  47. package/cjs-bundle/components/Chart/components/buttons/PanButton.js.map +1 -1
  48. package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  49. package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js.map +1 -1
  50. package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js +1 -1
  51. package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js.map +1 -1
  52. package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  53. package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js.map +1 -1
  54. package/cjs-bundle/components/Chip/index.js +1 -1
  55. package/cjs-bundle/components/Chip/index.js.map +1 -1
  56. package/cjs-bundle/components/CollapsableSidebar.js +1 -1
  57. package/cjs-bundle/components/CollapsableSidebar.js.map +1 -1
  58. package/cjs-bundle/components/ColorPicker/ColorPicker.js +1 -1
  59. package/cjs-bundle/components/ColorPicker/ColorPicker.js.map +1 -1
  60. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  61. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js.map +1 -1
  62. package/cjs-bundle/components/CommentCard/CommentCard.js +1 -1
  63. package/cjs-bundle/components/CommentCard/CommentCard.js.map +1 -1
  64. package/cjs-bundle/components/CommentCard/CommentCardReactions.js +1 -1
  65. package/cjs-bundle/components/CommentCard/CommentCardReactions.js.map +1 -1
  66. package/cjs-bundle/components/CommentCard/CommentCardReplies.js +1 -1
  67. package/cjs-bundle/components/CommentCard/CommentCardReplies.js.map +1 -1
  68. package/cjs-bundle/components/CommentCard/buildCommentReply.js +1 -1
  69. package/cjs-bundle/components/CommentCard/buildCommentReply.js.map +1 -1
  70. package/cjs-bundle/components/CommentComposer/ChatChannelSelector.js +1 -1
  71. package/cjs-bundle/components/CommentComposer/ChatChannelSelector.js.map +1 -1
  72. package/cjs-bundle/components/CommentComposer/CommentComposer.js +1 -1
  73. package/cjs-bundle/components/CommentComposer/CommentComposer.js.map +1 -1
  74. package/cjs-bundle/components/CommentInputNext/CommentInputNext.js +1 -1
  75. package/cjs-bundle/components/CommentInputNext/CommentInputNext.js.map +1 -1
  76. package/cjs-bundle/components/CopyToClipboard/CopyToClipboard.js +1 -1
  77. package/cjs-bundle/components/CopyToClipboard/CopyToClipboard.js.map +1 -1
  78. package/cjs-bundle/components/Counter/index.js +1 -1
  79. package/cjs-bundle/components/Counter/index.js.map +1 -1
  80. package/cjs-bundle/components/DatePicker/index.js +1 -1
  81. package/cjs-bundle/components/DatePicker/index.js.map +1 -1
  82. package/cjs-bundle/components/DateTimePicker/index.js +1 -1
  83. package/cjs-bundle/components/DateTimePicker/index.js.map +1 -1
  84. package/cjs-bundle/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
  85. package/cjs-bundle/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js.map +1 -1
  86. package/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  87. package/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js.map +1 -1
  88. package/cjs-bundle/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  89. package/cjs-bundle/components/DevCenter/AppSideBar/AppSideBar.js.map +1 -1
  90. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  91. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  92. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  93. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  94. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
  95. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js.map +1 -1
  96. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
  97. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js.map +1 -1
  98. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js +1 -1
  99. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js.map +1 -1
  100. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js +1 -1
  101. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js.map +1 -1
  102. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js +1 -1
  103. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js.map +1 -1
  104. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js +1 -1
  105. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js.map +1 -1
  106. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  107. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
  108. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  109. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
  110. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  111. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  112. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  113. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  114. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  115. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  116. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  117. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  118. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  119. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  120. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  121. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  122. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  123. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  124. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  125. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  126. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  127. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  128. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  129. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  130. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  131. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  132. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  133. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  134. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  135. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  136. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  137. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  138. package/cjs-bundle/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  139. package/cjs-bundle/components/EChartsWrapper/components/Toolbox/Toolbox.js.map +1 -1
  140. package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
  141. package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js.map +1 -1
  142. package/cjs-bundle/components/ErrorBoundary/ErrorBoundary.js +1 -1
  143. package/cjs-bundle/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  144. package/cjs-bundle/components/FeedCard/useFeedActivity.js +1 -1
  145. package/cjs-bundle/components/FeedCard/useFeedActivity.js.map +1 -1
  146. package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
  147. package/cjs-bundle/components/FeedItem/FeedItem.js.map +1 -1
  148. package/cjs-bundle/components/FilesDropzone/FilesDropzone.js +1 -1
  149. package/cjs-bundle/components/FilesDropzone/FilesDropzone.js.map +1 -1
  150. package/cjs-bundle/components/FilesLoader/FilesLoader.js +1 -1
  151. package/cjs-bundle/components/FilesLoader/FilesLoader.js.map +1 -1
  152. package/cjs-bundle/components/FilesLoaderV2/FilesLoaderV2.js +1 -1
  153. package/cjs-bundle/components/FilesLoaderV2/FilesLoaderV2.js.map +1 -1
  154. package/cjs-bundle/components/Formula/CloseSuggestion.js +1 -1
  155. package/cjs-bundle/components/Formula/CloseSuggestion.js.map +1 -1
  156. package/cjs-bundle/components/Formula/Formula.js +1 -1
  157. package/cjs-bundle/components/Formula/Formula.js.map +1 -1
  158. package/cjs-bundle/components/GradientManager/GradientManager.js +1 -1
  159. package/cjs-bundle/components/GradientManager/GradientManager.js.map +1 -1
  160. package/cjs-bundle/components/GradientManager/GradientSelect.js +1 -1
  161. package/cjs-bundle/components/GradientManager/GradientSelect.js.map +1 -1
  162. package/cjs-bundle/components/GradientPicker/GradientPicker.js +1 -1
  163. package/cjs-bundle/components/GradientPicker/GradientPicker.js.map +1 -1
  164. package/cjs-bundle/components/HelpCenter/HelpCenterIcon.js +1 -1
  165. package/cjs-bundle/components/HelpCenter/HelpCenterIcon.js.map +1 -1
  166. package/cjs-bundle/components/Hint/Hint.js +1 -1
  167. package/cjs-bundle/components/Hint/Hint.js.map +1 -1
  168. package/cjs-bundle/components/Modal/CorvaModal.js +1 -1
  169. package/cjs-bundle/components/Modal/CorvaModal.js.map +1 -1
  170. package/cjs-bundle/components/Notifications/Toast.js +1 -1
  171. package/cjs-bundle/components/Notifications/Toast.js.map +1 -1
  172. package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  173. package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js.map +1 -1
  174. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  175. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  176. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  177. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  178. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  179. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  180. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  181. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  182. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  183. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  184. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  185. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  186. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  187. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  188. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  189. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  190. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  191. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  192. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
  193. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js.map +1 -1
  194. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js +1 -1
  195. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js.map +1 -1
  196. package/cjs-bundle/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js +1 -1
  197. package/cjs-bundle/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js.map +1 -1
  198. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  199. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  200. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  201. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  202. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
  203. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js.map +1 -1
  204. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
  205. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js.map +1 -1
  206. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +1 -1
  207. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js.map +1 -1
  208. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
  209. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js.map +1 -1
  210. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  211. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js.map +1 -1
  212. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js +1 -1
  213. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js.map +1 -1
  214. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js +1 -1
  215. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js.map +1 -1
  216. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js +1 -1
  217. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js.map +1 -1
  218. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js +1 -1
  219. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js.map +1 -1
  220. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  221. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  222. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js +1 -1
  223. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js.map +1 -1
  224. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js +1 -1
  225. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js.map +1 -1
  226. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  227. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
  228. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
  229. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js.map +1 -1
  230. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  231. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js.map +1 -1
  232. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js +1 -1
  233. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js.map +1 -1
  234. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js +1 -1
  235. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js.map +1 -1
  236. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js +1 -1
  237. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js.map +1 -1
  238. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js +1 -1
  239. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js.map +1 -1
  240. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js +1 -1
  241. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js.map +1 -1
  242. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js +1 -1
  243. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js.map +1 -1
  244. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js +1 -1
  245. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js.map +1 -1
  246. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js +1 -1
  247. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js.map +1 -1
  248. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/SettingsAccordion/SettingsAccordion.js +1 -1
  249. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/SettingsAccordion/SettingsAccordion.js.map +1 -1
  250. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js +1 -1
  251. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js.map +1 -1
  252. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js +1 -1
  253. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js.map +1 -1
  254. package/cjs-bundle/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
  255. package/cjs-bundle/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js.map +1 -1
  256. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
  257. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js.map +1 -1
  258. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useIsAdmin.js +1 -1
  259. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useIsAdmin.js.map +1 -1
  260. package/cjs-bundle/components/PadModeSelect/FracModeLabel.js +1 -1
  261. package/cjs-bundle/components/PadModeSelect/FracModeLabel.js.map +1 -1
  262. package/cjs-bundle/components/PadModeSelect/PadModeSelect.js +1 -1
  263. package/cjs-bundle/components/PadModeSelect/PadModeSelect.js.map +1 -1
  264. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  265. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  266. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  267. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  268. package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js +1 -1
  269. package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js.map +1 -1
  270. package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js +1 -1
  271. package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js.map +1 -1
  272. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  273. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js.map +1 -1
  274. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  275. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js.map +1 -1
  276. package/cjs-bundle/components/Search/Search.js +1 -1
  277. package/cjs-bundle/components/Search/Search.js.map +1 -1
  278. package/cjs-bundle/components/Select/SelectFilterBy.js +1 -1
  279. package/cjs-bundle/components/Select/SelectFilterBy.js.map +1 -1
  280. package/cjs-bundle/components/SettingEditors/ColorEditor/index.js +1 -1
  281. package/cjs-bundle/components/SettingEditors/ColorEditor/index.js.map +1 -1
  282. package/cjs-bundle/components/Stepper/Step/Step.js +1 -1
  283. package/cjs-bundle/components/Stepper/Step/Step.js.map +1 -1
  284. package/cjs-bundle/components/Table/TableCell/TableCell.js +1 -1
  285. package/cjs-bundle/components/Table/TableCell/TableCell.js.map +1 -1
  286. package/cjs-bundle/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
  287. package/cjs-bundle/components/Table/TablePaginationActions/TablePaginationActions.js.map +1 -1
  288. package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  289. package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js.map +1 -1
  290. package/cjs-bundle/components/Toaster/Toaster.js +1 -1
  291. package/cjs-bundle/components/Toaster/Toaster.js.map +1 -1
  292. package/cjs-bundle/components/index.js +1 -1
  293. package/cjs-bundle/componentsV2/Accordion/Accordion.js +1 -1
  294. package/cjs-bundle/componentsV2/Accordion/Accordion.js.map +1 -1
  295. package/cjs-bundle/componentsV2/AppContainer/AppContainer.constants.scss.js +2 -0
  296. package/cjs-bundle/componentsV2/AppContainer/AppContainer.constants.scss.js.map +1 -0
  297. package/cjs-bundle/componentsV2/AppContainer/AppContainer.js +1 -1
  298. package/cjs-bundle/componentsV2/AppContainer/AppContainer.js.map +1 -1
  299. package/cjs-bundle/componentsV2/AppContainer/AppContainer.scss.js +1 -1
  300. package/cjs-bundle/componentsV2/AppContainer/Content.js +1 -1
  301. package/cjs-bundle/componentsV2/AppContainer/Content.js.map +1 -1
  302. package/cjs-bundle/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
  303. package/cjs-bundle/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js.map +1 -1
  304. package/cjs-bundle/componentsV2/AppDqPopover/DqAsset/DqAsset.js +1 -1
  305. package/cjs-bundle/componentsV2/AppDqPopover/DqAsset/DqAsset.js.map +1 -1
  306. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqPopover.js +1 -1
  307. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqPopover.js.map +1 -1
  308. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js +1 -1
  309. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js.map +1 -1
  310. package/cjs-bundle/componentsV2/AppFooter/Warning.js +1 -1
  311. package/cjs-bundle/componentsV2/AppFooter/Warning.js.map +1 -1
  312. package/cjs-bundle/componentsV2/AppHeader/AppAssets/utils.js +1 -1
  313. package/cjs-bundle/componentsV2/AppHeader/AppAssets/utils.js.map +1 -1
  314. package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  315. package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.js.map +1 -1
  316. package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.scss.js +1 -1
  317. package/cjs-bundle/componentsV2/AppHeader/V3/AppHeaderV3.js +1 -1
  318. package/cjs-bundle/componentsV2/AppHeader/V3/AppHeaderV3.js.map +1 -1
  319. package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  320. package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.js.map +1 -1
  321. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js +1 -1
  322. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js.map +1 -1
  323. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js +1 -1
  324. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js.map +1 -1
  325. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js +1 -1
  326. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js.map +1 -1
  327. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/constants.js +1 -1
  328. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/constants.js.map +1 -1
  329. package/cjs-bundle/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js +1 -1
  330. package/cjs-bundle/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js.map +1 -1
  331. package/cjs-bundle/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js +1 -1
  332. package/cjs-bundle/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js.map +1 -1
  333. package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
  334. package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js.map +1 -1
  335. package/cjs-bundle/componentsV2/AppPanel/AppPanel.js +2 -0
  336. package/cjs-bundle/componentsV2/AppPanel/AppPanel.js.map +1 -0
  337. package/cjs-bundle/componentsV2/AppPanel/AppPanelDisplay.js +2 -0
  338. package/cjs-bundle/componentsV2/AppPanel/AppPanelDisplay.js.map +1 -0
  339. package/cjs-bundle/componentsV2/AppPanel/AppPanelDisplay.scss.js +2 -0
  340. package/cjs-bundle/componentsV2/AppPanel/AppPanelDisplay.scss.js.map +1 -0
  341. package/cjs-bundle/componentsV2/AppPanel/AppPanelIdContext.js +2 -0
  342. package/cjs-bundle/componentsV2/AppPanel/AppPanelIdContext.js.map +1 -0
  343. package/cjs-bundle/componentsV2/AppPanel/AppPanelsContext.js +2 -0
  344. package/cjs-bundle/componentsV2/AppPanel/AppPanelsContext.js.map +1 -0
  345. package/cjs-bundle/componentsV2/AppPanel/Header/Header.js +2 -0
  346. package/cjs-bundle/componentsV2/AppPanel/Header/Header.js.map +1 -0
  347. package/cjs-bundle/componentsV2/AppPanel/utils.js +2 -0
  348. package/cjs-bundle/componentsV2/AppPanel/utils.js.map +1 -0
  349. package/cjs-bundle/componentsV2/AppSettings/AppSettings.js +1 -1
  350. package/cjs-bundle/componentsV2/AppSettings/AppSettings.js.map +1 -1
  351. package/cjs-bundle/componentsV2/AppSettings/AppSettings.scss.js +1 -1
  352. package/cjs-bundle/componentsV2/AppSettingsDivider/AppSettingsDivider.js +1 -1
  353. package/cjs-bundle/componentsV2/AppSettingsDivider/AppSettingsDivider.js.map +1 -1
  354. package/cjs-bundle/componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js +1 -1
  355. package/cjs-bundle/componentsV2/Autocomplete/Autocomplete.js +1 -1
  356. package/cjs-bundle/componentsV2/Autocomplete/Autocomplete.js.map +1 -1
  357. package/cjs-bundle/componentsV2/Breadcrumbs/Breadcrumbs.js +1 -1
  358. package/cjs-bundle/componentsV2/Breadcrumbs/Breadcrumbs.js.map +1 -1
  359. package/cjs-bundle/componentsV2/ButtonLive/ButtonLive.js +1 -1
  360. package/cjs-bundle/componentsV2/ButtonLive/ButtonLive.js.map +1 -1
  361. package/cjs-bundle/componentsV2/ChartAxisExtreme/ChartAxisExtreme.js +1 -1
  362. package/cjs-bundle/componentsV2/ChartAxisExtreme/ChartAxisExtreme.js.map +1 -1
  363. package/cjs-bundle/componentsV2/Chip/Chip.js +1 -1
  364. package/cjs-bundle/componentsV2/Chip/Chip.js.map +1 -1
  365. package/cjs-bundle/componentsV2/ColorPicker/ColorPicker.js +1 -1
  366. package/cjs-bundle/componentsV2/ColorPicker/ColorPicker.js.map +1 -1
  367. package/cjs-bundle/componentsV2/ColorPicker/Swatches/Swatches.js +1 -1
  368. package/cjs-bundle/componentsV2/ColorPicker/Swatches/Swatches.js.map +1 -1
  369. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
  370. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js.map +1 -1
  371. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
  372. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js.map +1 -1
  373. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  374. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
  375. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
  376. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js.map +1 -1
  377. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
  378. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js.map +1 -1
  379. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
  380. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js.map +1 -1
  381. package/cjs-bundle/componentsV2/CopyToClipboard/CopyToClipboard.js +1 -1
  382. package/cjs-bundle/componentsV2/CopyToClipboard/CopyToClipboard.js.map +1 -1
  383. package/cjs-bundle/componentsV2/Counter/Counter.js +1 -1
  384. package/cjs-bundle/componentsV2/Counter/Counter.js.map +1 -1
  385. package/cjs-bundle/componentsV2/DatePicker/CalendarControls/CalendarControls.js +1 -1
  386. package/cjs-bundle/componentsV2/DatePicker/CalendarControls/CalendarControls.js.map +1 -1
  387. package/cjs-bundle/componentsV2/DatePicker/CalendarControls/CalendarControls.scss.js +1 -1
  388. package/cjs-bundle/componentsV2/DatePicker/CalendarGrid/CalendarGrid.js +1 -1
  389. package/cjs-bundle/componentsV2/DatePicker/CalendarGrid/CalendarGrid.js.map +1 -1
  390. package/cjs-bundle/componentsV2/DatePicker/CalendarGrid/CalendarGrid.scss.js +1 -1
  391. package/cjs-bundle/componentsV2/DatePicker/DatePicker.js +1 -1
  392. package/cjs-bundle/componentsV2/DatePicker/DatePicker.js.map +1 -1
  393. package/cjs-bundle/componentsV2/DatePicker/DatePicker.scss.js +1 -1
  394. package/cjs-bundle/componentsV2/DatePicker/Input/Input.js +1 -1
  395. package/cjs-bundle/componentsV2/DatePicker/Input/Input.js.map +1 -1
  396. package/cjs-bundle/componentsV2/DatePicker/Input/Input.scss.js +2 -0
  397. package/cjs-bundle/componentsV2/DatePicker/Input/Input.scss.js.map +1 -0
  398. package/cjs-bundle/componentsV2/DatePicker/TimePicker/TimePicker.js +1 -1
  399. package/cjs-bundle/componentsV2/DatePicker/TimePicker/TimePicker.js.map +1 -1
  400. package/cjs-bundle/componentsV2/DatePicker/TimePicker/TimePicker.scss.js +1 -1
  401. package/cjs-bundle/componentsV2/DatePicker/utils.js +1 -1
  402. package/cjs-bundle/componentsV2/DatePicker/utils.js.map +1 -1
  403. package/cjs-bundle/componentsV2/DragHandle/DragHandle.js +1 -1
  404. package/cjs-bundle/componentsV2/DragHandle/DragHandle.js.map +1 -1
  405. package/cjs-bundle/componentsV2/FilesDropzone/FilesDropzone.js +1 -1
  406. package/cjs-bundle/componentsV2/FilesDropzone/FilesDropzone.js.map +1 -1
  407. package/cjs-bundle/componentsV2/FilesLoader/FilesLoader.js +1 -1
  408. package/cjs-bundle/componentsV2/FilesLoader/FilesLoader.js.map +1 -1
  409. package/cjs-bundle/componentsV2/Hint/Hint.js +1 -1
  410. package/cjs-bundle/componentsV2/Hint/Hint.js.map +1 -1
  411. package/cjs-bundle/componentsV2/ImageViewer/ImageViewer.js +1 -1
  412. package/cjs-bundle/componentsV2/ImageViewer/ImageViewer.js.map +1 -1
  413. package/cjs-bundle/componentsV2/InterventionEventSelector/InterventionEventSelector.js +1 -1
  414. package/cjs-bundle/componentsV2/InterventionEventSelector/InterventionEventSelector.js.map +1 -1
  415. package/cjs-bundle/componentsV2/ModalWindow/ModalWindow.js +1 -1
  416. package/cjs-bundle/componentsV2/ModalWindow/ModalWindow.js.map +1 -1
  417. package/cjs-bundle/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
  418. package/cjs-bundle/componentsV2/OffsetWellsButton/OffsetWellsButton.js.map +1 -1
  419. package/cjs-bundle/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js +1 -1
  420. package/cjs-bundle/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js.map +1 -1
  421. package/cjs-bundle/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js +1 -1
  422. package/cjs-bundle/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js.map +1 -1
  423. package/cjs-bundle/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
  424. package/cjs-bundle/componentsV2/PadModeSelect/PadModeSelect.js.map +1 -1
  425. package/cjs-bundle/componentsV2/Paper/Paper.js.map +1 -1
  426. package/cjs-bundle/componentsV2/Popover/Popover.js +1 -1
  427. package/cjs-bundle/componentsV2/Popover/Popover.js.map +1 -1
  428. package/cjs-bundle/componentsV2/PopoverPanel/PopoverPanel.scss.js +1 -1
  429. package/cjs-bundle/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.js +1 -1
  430. package/cjs-bundle/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.js.map +1 -1
  431. package/cjs-bundle/componentsV2/SliderAdvanced/Bar.js +1 -1
  432. package/cjs-bundle/componentsV2/SliderAdvanced/Bar.js.map +1 -1
  433. package/cjs-bundle/componentsV2/SliderAdvanced/HandleWrapper.js +1 -1
  434. package/cjs-bundle/componentsV2/SliderAdvanced/HandleWrapper.js.map +1 -1
  435. package/cjs-bundle/componentsV2/Stepper/Step/Step.js +1 -1
  436. package/cjs-bundle/componentsV2/Stepper/Step/Step.js.map +1 -1
  437. package/cjs-bundle/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js +1 -1
  438. package/cjs-bundle/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js.map +1 -1
  439. package/cjs-bundle/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js +1 -1
  440. package/cjs-bundle/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js.map +1 -1
  441. package/cjs-bundle/componentsV2/TemplatesControl/Popover/Popover.js +1 -1
  442. package/cjs-bundle/componentsV2/TemplatesControl/Popover/Popover.js.map +1 -1
  443. package/cjs-bundle/componentsV2/TemplatesControl/PopoverFooter/PopoverFooter.js +1 -1
  444. package/cjs-bundle/componentsV2/TemplatesControl/PopoverFooter/PopoverFooter.js.map +1 -1
  445. package/cjs-bundle/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js +1 -1
  446. package/cjs-bundle/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js.map +1 -1
  447. package/cjs-bundle/componentsV2/TemplatesControl/PublishModal/PublishModal.js +1 -1
  448. package/cjs-bundle/componentsV2/TemplatesControl/PublishModal/PublishModal.js.map +1 -1
  449. package/cjs-bundle/componentsV2/TemplatesControl/ShareModal/ShareModal.js +1 -1
  450. package/cjs-bundle/componentsV2/TemplatesControl/ShareModal/ShareModal.js.map +1 -1
  451. package/cjs-bundle/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js +1 -1
  452. package/cjs-bundle/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js.map +1 -1
  453. package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js +1 -1
  454. package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js.map +1 -1
  455. package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js +1 -1
  456. package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js.map +1 -1
  457. package/cjs-bundle/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
  458. package/cjs-bundle/componentsV2/TemplatesControl/Toggle/Toggle.js.map +1 -1
  459. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js +1 -1
  460. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js.map +1 -1
  461. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js +1 -1
  462. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js.map +1 -1
  463. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js +1 -1
  464. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js.map +1 -1
  465. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js +1 -1
  466. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js.map +1 -1
  467. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js +1 -1
  468. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js.map +1 -1
  469. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js +1 -1
  470. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js.map +1 -1
  471. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js +1 -1
  472. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js.map +1 -1
  473. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js +1 -1
  474. package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js.map +1 -1
  475. package/cjs-bundle/componentsV2/TextInput/TextInput.js +1 -1
  476. package/cjs-bundle/componentsV2/TextInput/TextInput.js.map +1 -1
  477. package/cjs-bundle/componentsV2/TextInputBase/TextInputBase.js +1 -1
  478. package/cjs-bundle/componentsV2/TextInputBase/TextInputBase.js.map +1 -1
  479. package/cjs-bundle/componentsV2/TextInputBase/components/InfoIcon.js +1 -1
  480. package/cjs-bundle/componentsV2/TextInputBase/components/InfoIcon.js.map +1 -1
  481. package/cjs-bundle/componentsV2/TextInputNext/TextInputNext.js +1 -1
  482. package/cjs-bundle/componentsV2/TextInputNext/TextInputNext.js.map +1 -1
  483. package/cjs-bundle/componentsV2/ToggleButtons/ToggleButtons.scss.js +1 -1
  484. package/cjs-bundle/componentsV2/index.js +1 -1
  485. package/cjs-bundle/config/theme/index.js +1 -1
  486. package/cjs-bundle/config/theme/index.js.map +1 -1
  487. package/cjs-bundle/effects/index.js +1 -1
  488. package/cjs-bundle/effects/useGlobalOffsetWellsSync.js +1 -1
  489. package/cjs-bundle/effects/useGlobalOffsetWellsSync.js.map +1 -1
  490. package/cjs-bundle/icons/customIcons/icons/PinOne.js +2 -0
  491. package/cjs-bundle/icons/customIcons/icons/PinOne.js.map +1 -0
  492. package/cjs-bundle/icons/customIcons/icons/PinOneCrossed.js +2 -0
  493. package/cjs-bundle/icons/customIcons/icons/PinOneCrossed.js.map +1 -0
  494. package/cjs-bundle/icons/index.js +1 -1
  495. package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  496. package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js.map +1 -1
  497. package/cjs-bundle/utils/feed.js +1 -1
  498. package/cjs-bundle/utils/feed.js.map +1 -1
  499. package/components/AddComment/Popover.js +1 -1
  500. package/components/AddComment/Popover.js.map +1 -1
  501. package/components/AddComment/components/Content.js +1 -1
  502. package/components/AddComment/components/Content.js.map +1 -1
  503. package/components/AdvancedSlider/Handle.js +1 -1
  504. package/components/AdvancedSlider/Handle.js.map +1 -1
  505. package/components/AttachFileButton/AttachFileButton.js +1 -1
  506. package/components/AttachFileButton/AttachFileButton.js.map +1 -1
  507. package/components/Attachment/index.js +1 -1
  508. package/components/Attachment/index.js.map +1 -1
  509. package/components/AttachmentLightbox/AttachmentLightbox.js +1 -1
  510. package/components/AttachmentLightbox/AttachmentLightbox.js.map +1 -1
  511. package/components/AttachmentLightbox/AttachmentPreviewPane.js +1 -1
  512. package/components/AttachmentLightbox/AttachmentPreviewPane.js.map +1 -1
  513. package/components/AttachmentPreview/AttachmentActionsMenu.js +1 -1
  514. package/components/AttachmentPreview/AttachmentActionsMenu.js.map +1 -1
  515. package/components/AttachmentPreview/AttachmentDownloadLink.js +1 -1
  516. package/components/AttachmentPreview/AttachmentDownloadLink.js.map +1 -1
  517. package/components/AttachmentPreview/AttachmentTile.js +1 -1
  518. package/components/AttachmentPreview/AttachmentTile.js.map +1 -1
  519. package/components/AttachmentPreview/SortableAttachments.js +1 -1
  520. package/components/AttachmentPreview/SortableAttachments.js.map +1 -1
  521. package/components/BICOffsetPickerDialog/index.js +1 -1
  522. package/components/BICOffsetPickerDialog/index.js.map +1 -1
  523. package/components/Breadcrumbs/index.js +1 -1
  524. package/components/Breadcrumbs/index.js.map +1 -1
  525. package/components/Button/components/LiveButton/index.js +1 -1
  526. package/components/Button/components/LiveButton/index.js.map +1 -1
  527. package/components/Button/index.js +1 -1
  528. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  529. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  530. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  531. package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  532. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  533. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  534. package/components/Chart/components/AxisDropdown.js +1 -1
  535. package/components/Chart/components/AxisDropdown.js.map +1 -1
  536. package/components/Chart/components/ChartSelect.js +1 -1
  537. package/components/Chart/components/ChartSelect.js.map +1 -1
  538. package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  539. package/components/Chart/components/buttons/ChartTypeButton.js.map +1 -1
  540. package/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  541. package/components/Chart/components/buttons/DragToZoomButton.js.map +1 -1
  542. package/components/Chart/components/buttons/HideAxesButton.js +1 -1
  543. package/components/Chart/components/buttons/HideAxesButton.js.map +1 -1
  544. package/components/Chart/components/buttons/PanButton.js +1 -1
  545. package/components/Chart/components/buttons/PanButton.js.map +1 -1
  546. package/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  547. package/components/Chart/components/buttons/ResetZoomButton.js.map +1 -1
  548. package/components/Chart/components/buttons/ZoomInButton.js +1 -1
  549. package/components/Chart/components/buttons/ZoomInButton.js.map +1 -1
  550. package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  551. package/components/Chart/components/buttons/ZoomOutButton.js.map +1 -1
  552. package/components/Chip/index.js +1 -1
  553. package/components/Chip/index.js.map +1 -1
  554. package/components/CollapsableSidebar.js +1 -1
  555. package/components/CollapsableSidebar.js.map +1 -1
  556. package/components/ColorPicker/ColorPicker.js +1 -1
  557. package/components/ColorPicker/ColorPicker.js.map +1 -1
  558. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  559. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js.map +1 -1
  560. package/components/CommentCard/CommentCard.js +1 -1
  561. package/components/CommentCard/CommentCard.js.map +1 -1
  562. package/components/CommentCard/CommentCardReactions.js +1 -1
  563. package/components/CommentCard/CommentCardReactions.js.map +1 -1
  564. package/components/CommentCard/CommentCardReplies.js +1 -1
  565. package/components/CommentCard/CommentCardReplies.js.map +1 -1
  566. package/components/CommentCard/buildCommentReply.js +1 -1
  567. package/components/CommentCard/buildCommentReply.js.map +1 -1
  568. package/components/CommentComposer/ChatChannelSelector.js +1 -1
  569. package/components/CommentComposer/ChatChannelSelector.js.map +1 -1
  570. package/components/CommentComposer/CommentComposer.js +1 -1
  571. package/components/CommentComposer/CommentComposer.js.map +1 -1
  572. package/components/CommentInputNext/CommentInputNext.js +1 -1
  573. package/components/CommentInputNext/CommentInputNext.js.map +1 -1
  574. package/components/CopyToClipboard/CopyToClipboard.js +1 -1
  575. package/components/CopyToClipboard/CopyToClipboard.js.map +1 -1
  576. package/components/Counter/index.js +1 -1
  577. package/components/Counter/index.js.map +1 -1
  578. package/components/DatePicker/index.js +1 -1
  579. package/components/DatePicker/index.js.map +1 -1
  580. package/components/DateTimePicker/index.js +1 -1
  581. package/components/DateTimePicker/index.js.map +1 -1
  582. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
  583. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js.map +1 -1
  584. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  585. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js.map +1 -1
  586. package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  587. package/components/DevCenter/AppSideBar/AppSideBar.js.map +1 -1
  588. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  589. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  590. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  591. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  592. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
  593. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js.map +1 -1
  594. package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
  595. package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js.map +1 -1
  596. package/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js +1 -1
  597. package/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js.map +1 -1
  598. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js +1 -1
  599. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js.map +1 -1
  600. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js +1 -1
  601. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js.map +1 -1
  602. package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js +1 -1
  603. package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js.map +1 -1
  604. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  605. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
  606. package/components/DocumentViewer/DocumentViewer.js +1 -1
  607. package/components/DocumentViewer/DocumentViewer.js.map +1 -1
  608. package/components/Drillstring/BHAComponentDetail/constants.d.ts +2 -2
  609. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  610. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  611. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  612. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  613. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  614. package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  615. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  616. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  617. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  618. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  619. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  620. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  621. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  622. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  623. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  624. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  625. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  626. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  627. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  628. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  629. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  630. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  631. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  632. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  633. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  634. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  635. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  636. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  637. package/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  638. package/components/EChartsWrapper/components/Toolbox/Toolbox.js.map +1 -1
  639. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
  640. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js.map +1 -1
  641. package/components/ErrorBoundary/ErrorBoundary.js +1 -1
  642. package/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  643. package/components/FeedCard/useFeedActivity.js +1 -1
  644. package/components/FeedCard/useFeedActivity.js.map +1 -1
  645. package/components/FeedItem/FeedItem.js +1 -1
  646. package/components/FeedItem/FeedItem.js.map +1 -1
  647. package/components/FilesDropzone/FilesDropzone.js +1 -1
  648. package/components/FilesDropzone/FilesDropzone.js.map +1 -1
  649. package/components/FilesLoader/FilesLoader.js +1 -1
  650. package/components/FilesLoader/FilesLoader.js.map +1 -1
  651. package/components/FilesLoaderV2/FilesLoaderV2.js +1 -1
  652. package/components/FilesLoaderV2/FilesLoaderV2.js.map +1 -1
  653. package/components/Formula/CloseSuggestion.js +1 -1
  654. package/components/Formula/CloseSuggestion.js.map +1 -1
  655. package/components/Formula/Formula.js +1 -1
  656. package/components/Formula/Formula.js.map +1 -1
  657. package/components/GradientManager/GradientManager.js +1 -1
  658. package/components/GradientManager/GradientManager.js.map +1 -1
  659. package/components/GradientManager/GradientSelect.js +1 -1
  660. package/components/GradientManager/GradientSelect.js.map +1 -1
  661. package/components/GradientPicker/GradientPicker.js +1 -1
  662. package/components/GradientPicker/GradientPicker.js.map +1 -1
  663. package/components/HelpCenter/HelpCenterIcon.js +1 -1
  664. package/components/HelpCenter/HelpCenterIcon.js.map +1 -1
  665. package/components/Hint/Hint.js +1 -1
  666. package/components/Hint/Hint.js.map +1 -1
  667. package/components/Modal/CorvaModal.js +1 -1
  668. package/components/Modal/CorvaModal.js.map +1 -1
  669. package/components/Notifications/Toast.js +1 -1
  670. package/components/Notifications/Toast.js.map +1 -1
  671. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  672. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js.map +1 -1
  673. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  674. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  675. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  676. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  677. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  678. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  679. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  680. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  681. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  682. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  683. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  684. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  685. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  686. package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  687. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  688. package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  689. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  690. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  691. package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
  692. package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js.map +1 -1
  693. package/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js +1 -1
  694. package/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js.map +1 -1
  695. package/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js +1 -1
  696. package/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js.map +1 -1
  697. package/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  698. package/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  699. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  700. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  701. package/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
  702. package/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js.map +1 -1
  703. package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
  704. package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js.map +1 -1
  705. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +1 -1
  706. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js.map +1 -1
  707. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
  708. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js.map +1 -1
  709. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  710. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js.map +1 -1
  711. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js +1 -1
  712. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js.map +1 -1
  713. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js +1 -1
  714. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js.map +1 -1
  715. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js +1 -1
  716. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js.map +1 -1
  717. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js +1 -1
  718. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js.map +1 -1
  719. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  720. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  721. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js +1 -1
  722. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js.map +1 -1
  723. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js +1 -1
  724. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js.map +1 -1
  725. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  726. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
  727. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
  728. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js.map +1 -1
  729. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  730. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js.map +1 -1
  731. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js +1 -1
  732. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js.map +1 -1
  733. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js +1 -1
  734. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js.map +1 -1
  735. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js +1 -1
  736. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js.map +1 -1
  737. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js +1 -1
  738. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js.map +1 -1
  739. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js +1 -1
  740. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js.map +1 -1
  741. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js +1 -1
  742. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js.map +1 -1
  743. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js +1 -1
  744. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js.map +1 -1
  745. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js +1 -1
  746. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js.map +1 -1
  747. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/SettingsAccordion/SettingsAccordion.js +1 -1
  748. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/SettingsAccordion/SettingsAccordion.js.map +1 -1
  749. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js +1 -1
  750. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js.map +1 -1
  751. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js +1 -1
  752. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js.map +1 -1
  753. package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
  754. package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js.map +1 -1
  755. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
  756. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js.map +1 -1
  757. package/components/OffsetWellPickerV5/hooks/useIsAdmin.js +1 -1
  758. package/components/OffsetWellPickerV5/hooks/useIsAdmin.js.map +1 -1
  759. package/components/PadModeSelect/FracModeLabel.js +1 -1
  760. package/components/PadModeSelect/FracModeLabel.js.map +1 -1
  761. package/components/PadModeSelect/PadModeSelect.js +1 -1
  762. package/components/PadModeSelect/PadModeSelect.js.map +1 -1
  763. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  764. package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  765. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  766. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  767. package/components/ParameterCharts/components/TraceHeader.js +1 -1
  768. package/components/ParameterCharts/components/TraceHeader.js.map +1 -1
  769. package/components/PinnableFilters/components/FiltersToggler.js +1 -1
  770. package/components/PinnableFilters/components/FiltersToggler.js.map +1 -1
  771. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  772. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js.map +1 -1
  773. package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  774. package/components/RealTimeValuesSidebar/SidebarFooter.js.map +1 -1
  775. package/components/Search/Search.js +1 -1
  776. package/components/Search/Search.js.map +1 -1
  777. package/components/Select/SelectFilterBy.js +1 -1
  778. package/components/Select/SelectFilterBy.js.map +1 -1
  779. package/components/SettingEditors/ColorEditor/index.js +1 -1
  780. package/components/SettingEditors/ColorEditor/index.js.map +1 -1
  781. package/components/Stepper/Step/Step.js +1 -1
  782. package/components/Stepper/Step/Step.js.map +1 -1
  783. package/components/Table/TableCell/TableCell.js +1 -1
  784. package/components/Table/TableCell/TableCell.js.map +1 -1
  785. package/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
  786. package/components/Table/TablePaginationActions/TablePaginationActions.js.map +1 -1
  787. package/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  788. package/components/Table/TableSortLabel/TableSortLabel.js.map +1 -1
  789. package/components/Toaster/Toaster.js +1 -1
  790. package/components/Toaster/Toaster.js.map +1 -1
  791. package/components/index.js +1 -1
  792. package/componentsV2/Accordion/Accordion.js +1 -1
  793. package/componentsV2/Accordion/Accordion.js.map +1 -1
  794. package/componentsV2/AppContainer/AppContainer.constants.scss.js +2 -0
  795. package/componentsV2/AppContainer/AppContainer.constants.scss.js.map +1 -0
  796. package/componentsV2/AppContainer/AppContainer.d.ts +5 -0
  797. package/componentsV2/AppContainer/AppContainer.d.ts.map +1 -1
  798. package/componentsV2/AppContainer/AppContainer.js +1 -1
  799. package/componentsV2/AppContainer/AppContainer.js.map +1 -1
  800. package/componentsV2/AppContainer/AppContainer.scss.js +1 -1
  801. package/componentsV2/AppContainer/Content.d.ts +0 -4
  802. package/componentsV2/AppContainer/Content.d.ts.map +1 -1
  803. package/componentsV2/AppContainer/Content.js +1 -1
  804. package/componentsV2/AppContainer/Content.js.map +1 -1
  805. package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
  806. package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js.map +1 -1
  807. package/componentsV2/AppDqPopover/DqAsset/DqAsset.js +1 -1
  808. package/componentsV2/AppDqPopover/DqAsset/DqAsset.js.map +1 -1
  809. package/componentsV2/AppFooter/DqPopover/DqPopover.js +1 -1
  810. package/componentsV2/AppFooter/DqPopover/DqPopover.js.map +1 -1
  811. package/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js +1 -1
  812. package/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js.map +1 -1
  813. package/componentsV2/AppFooter/Warning.js +1 -1
  814. package/componentsV2/AppFooter/Warning.js.map +1 -1
  815. package/componentsV2/AppHeader/AppAssets/utils.js +1 -1
  816. package/componentsV2/AppHeader/AppAssets/utils.js.map +1 -1
  817. package/componentsV2/AppHeader/V3/Actions/Actions.d.ts +1 -3
  818. package/componentsV2/AppHeader/V3/Actions/Actions.d.ts.map +1 -1
  819. package/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  820. package/componentsV2/AppHeader/V3/Actions/Actions.js.map +1 -1
  821. package/componentsV2/AppHeader/V3/Actions/Actions.scss.js +1 -1
  822. package/componentsV2/AppHeader/V3/AppHeaderV3.d.ts +1 -1
  823. package/componentsV2/AppHeader/V3/AppHeaderV3.d.ts.map +1 -1
  824. package/componentsV2/AppHeader/V3/AppHeaderV3.js +1 -1
  825. package/componentsV2/AppHeader/V3/AppHeaderV3.js.map +1 -1
  826. package/componentsV2/AppHeader/V3/AppHeaderV3.stories.d.ts.map +1 -1
  827. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  828. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.js.map +1 -1
  829. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js +1 -1
  830. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js.map +1 -1
  831. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js +1 -1
  832. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js.map +1 -1
  833. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js +1 -1
  834. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js.map +1 -1
  835. package/componentsV2/AppHeader/V3/AssetSelector/constants.js +1 -1
  836. package/componentsV2/AppHeader/V3/AssetSelector/constants.js.map +1 -1
  837. package/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js +1 -1
  838. package/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js.map +1 -1
  839. package/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.d.ts +1 -2
  840. package/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.d.ts.map +1 -1
  841. package/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js +1 -1
  842. package/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js.map +1 -1
  843. package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
  844. package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js.map +1 -1
  845. package/componentsV2/AppPanel/AppPanel.d.ts +16 -0
  846. package/componentsV2/AppPanel/AppPanel.d.ts.map +1 -0
  847. package/componentsV2/AppPanel/AppPanel.js +2 -0
  848. package/componentsV2/AppPanel/AppPanel.js.map +1 -0
  849. package/componentsV2/AppPanel/AppPanelDisplay.d.ts +7 -0
  850. package/componentsV2/AppPanel/AppPanelDisplay.d.ts.map +1 -0
  851. package/componentsV2/AppPanel/AppPanelDisplay.js +2 -0
  852. package/componentsV2/AppPanel/AppPanelDisplay.js.map +1 -0
  853. package/componentsV2/AppPanel/AppPanelDisplay.scss.js +2 -0
  854. package/componentsV2/AppPanel/AppPanelDisplay.scss.js.map +1 -0
  855. package/componentsV2/AppPanel/AppPanelIdContext.d.ts +7 -0
  856. package/componentsV2/AppPanel/AppPanelIdContext.d.ts.map +1 -0
  857. package/componentsV2/AppPanel/AppPanelIdContext.js +2 -0
  858. package/componentsV2/AppPanel/AppPanelIdContext.js.map +1 -0
  859. package/componentsV2/AppPanel/AppPanels.stories.d.ts +15 -0
  860. package/componentsV2/AppPanel/AppPanels.stories.d.ts.map +1 -0
  861. package/componentsV2/AppPanel/AppPanelsContext.d.ts +61 -0
  862. package/componentsV2/AppPanel/AppPanelsContext.d.ts.map +1 -0
  863. package/componentsV2/AppPanel/AppPanelsContext.js +2 -0
  864. package/componentsV2/AppPanel/AppPanelsContext.js.map +1 -0
  865. package/componentsV2/AppPanel/Header/Header.d.ts +9 -0
  866. package/componentsV2/AppPanel/Header/Header.d.ts.map +1 -0
  867. package/componentsV2/AppPanel/Header/Header.js +2 -0
  868. package/componentsV2/AppPanel/Header/Header.js.map +1 -0
  869. package/componentsV2/AppPanel/Header/index.d.ts +2 -0
  870. package/componentsV2/AppPanel/Header/index.d.ts.map +1 -0
  871. package/componentsV2/AppPanel/index.d.ts +3 -0
  872. package/componentsV2/AppPanel/index.d.ts.map +1 -0
  873. package/componentsV2/AppPanel/utils.d.ts +53 -0
  874. package/componentsV2/AppPanel/utils.d.ts.map +1 -0
  875. package/componentsV2/AppPanel/utils.js +2 -0
  876. package/componentsV2/AppPanel/utils.js.map +1 -0
  877. package/componentsV2/AppSettings/AppSettings.d.ts +1 -6
  878. package/componentsV2/AppSettings/AppSettings.d.ts.map +1 -1
  879. package/componentsV2/AppSettings/AppSettings.js +1 -1
  880. package/componentsV2/AppSettings/AppSettings.js.map +1 -1
  881. package/componentsV2/AppSettings/AppSettings.scss.js +1 -1
  882. package/componentsV2/AppSettings/index.d.ts +0 -1
  883. package/componentsV2/AppSettings/index.d.ts.map +1 -1
  884. package/componentsV2/AppSettingsDivider/AppSettingsDivider.d.ts.map +1 -1
  885. package/componentsV2/AppSettingsDivider/AppSettingsDivider.js +1 -1
  886. package/componentsV2/AppSettingsDivider/AppSettingsDivider.js.map +1 -1
  887. package/componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js +1 -1
  888. package/componentsV2/Autocomplete/Autocomplete.d.ts.map +1 -1
  889. package/componentsV2/Autocomplete/Autocomplete.js +1 -1
  890. package/componentsV2/Autocomplete/Autocomplete.js.map +1 -1
  891. package/componentsV2/Breadcrumbs/Breadcrumbs.js +1 -1
  892. package/componentsV2/Breadcrumbs/Breadcrumbs.js.map +1 -1
  893. package/componentsV2/ButtonLive/ButtonLive.js +1 -1
  894. package/componentsV2/ButtonLive/ButtonLive.js.map +1 -1
  895. package/componentsV2/ChartAxisExtreme/ChartAxisExtreme.js +1 -1
  896. package/componentsV2/ChartAxisExtreme/ChartAxisExtreme.js.map +1 -1
  897. package/componentsV2/Chip/Chip.js +1 -1
  898. package/componentsV2/Chip/Chip.js.map +1 -1
  899. package/componentsV2/ColorPicker/ColorPicker.js +1 -1
  900. package/componentsV2/ColorPicker/ColorPicker.js.map +1 -1
  901. package/componentsV2/ColorPicker/Swatches/Swatches.js +1 -1
  902. package/componentsV2/ColorPicker/Swatches/Swatches.js.map +1 -1
  903. package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
  904. package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js.map +1 -1
  905. package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
  906. package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js.map +1 -1
  907. package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  908. package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
  909. package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
  910. package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js.map +1 -1
  911. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
  912. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js.map +1 -1
  913. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
  914. package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js.map +1 -1
  915. package/componentsV2/CopyToClipboard/CopyToClipboard.js +1 -1
  916. package/componentsV2/CopyToClipboard/CopyToClipboard.js.map +1 -1
  917. package/componentsV2/Counter/Counter.js +1 -1
  918. package/componentsV2/Counter/Counter.js.map +1 -1
  919. package/componentsV2/DatePicker/CalendarControls/CalendarControls.d.ts.map +1 -1
  920. package/componentsV2/DatePicker/CalendarControls/CalendarControls.js +1 -1
  921. package/componentsV2/DatePicker/CalendarControls/CalendarControls.js.map +1 -1
  922. package/componentsV2/DatePicker/CalendarControls/CalendarControls.scss.js +1 -1
  923. package/componentsV2/DatePicker/CalendarGrid/CalendarGrid.js +1 -1
  924. package/componentsV2/DatePicker/CalendarGrid/CalendarGrid.js.map +1 -1
  925. package/componentsV2/DatePicker/CalendarGrid/CalendarGrid.scss.js +1 -1
  926. package/componentsV2/DatePicker/DatePicker.d.ts +4 -1
  927. package/componentsV2/DatePicker/DatePicker.d.ts.map +1 -1
  928. package/componentsV2/DatePicker/DatePicker.js +1 -1
  929. package/componentsV2/DatePicker/DatePicker.js.map +1 -1
  930. package/componentsV2/DatePicker/DatePicker.scss.js +1 -1
  931. package/componentsV2/DatePicker/Input/Input.d.ts +4 -2
  932. package/componentsV2/DatePicker/Input/Input.d.ts.map +1 -1
  933. package/componentsV2/DatePicker/Input/Input.js +1 -1
  934. package/componentsV2/DatePicker/Input/Input.js.map +1 -1
  935. package/componentsV2/DatePicker/Input/Input.scss.js +2 -0
  936. package/componentsV2/DatePicker/Input/Input.scss.js.map +1 -0
  937. package/componentsV2/DatePicker/TimePicker/TimePicker.d.ts +7 -5
  938. package/componentsV2/DatePicker/TimePicker/TimePicker.d.ts.map +1 -1
  939. package/componentsV2/DatePicker/TimePicker/TimePicker.js +1 -1
  940. package/componentsV2/DatePicker/TimePicker/TimePicker.js.map +1 -1
  941. package/componentsV2/DatePicker/TimePicker/TimePicker.scss.js +1 -1
  942. package/componentsV2/DatePicker/utils.d.ts +2 -2
  943. package/componentsV2/DatePicker/utils.d.ts.map +1 -1
  944. package/componentsV2/DatePicker/utils.js +1 -1
  945. package/componentsV2/DatePicker/utils.js.map +1 -1
  946. package/componentsV2/DragHandle/DragHandle.js +1 -1
  947. package/componentsV2/DragHandle/DragHandle.js.map +1 -1
  948. package/componentsV2/FilesDropzone/FilesDropzone.js +1 -1
  949. package/componentsV2/FilesDropzone/FilesDropzone.js.map +1 -1
  950. package/componentsV2/FilesLoader/FilesLoader.js +1 -1
  951. package/componentsV2/FilesLoader/FilesLoader.js.map +1 -1
  952. package/componentsV2/Hint/Hint.js +1 -1
  953. package/componentsV2/Hint/Hint.js.map +1 -1
  954. package/componentsV2/ImageViewer/ImageViewer.js +1 -1
  955. package/componentsV2/ImageViewer/ImageViewer.js.map +1 -1
  956. package/componentsV2/InterventionEventSelector/InterventionEventSelector.js +1 -1
  957. package/componentsV2/InterventionEventSelector/InterventionEventSelector.js.map +1 -1
  958. package/componentsV2/ModalWindow/ModalWindow.js +1 -1
  959. package/componentsV2/ModalWindow/ModalWindow.js.map +1 -1
  960. package/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
  961. package/componentsV2/OffsetWellsButton/OffsetWellsButton.js.map +1 -1
  962. package/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js +1 -1
  963. package/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js.map +1 -1
  964. package/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js +1 -1
  965. package/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js.map +1 -1
  966. package/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
  967. package/componentsV2/PadModeSelect/PadModeSelect.js.map +1 -1
  968. package/componentsV2/Paper/Paper.d.ts +2 -1
  969. package/componentsV2/Paper/Paper.d.ts.map +1 -1
  970. package/componentsV2/Paper/Paper.js.map +1 -1
  971. package/componentsV2/Popover/Popover.d.ts +6 -1
  972. package/componentsV2/Popover/Popover.d.ts.map +1 -1
  973. package/componentsV2/Popover/Popover.js +1 -1
  974. package/componentsV2/Popover/Popover.js.map +1 -1
  975. package/componentsV2/PopoverPanel/PopoverPanel.scss.js +1 -1
  976. package/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.d.ts +2 -1
  977. package/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.d.ts.map +1 -1
  978. package/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.js +1 -1
  979. package/componentsV2/PopoverPanel/PopoverPanelHeader/PopoverPanelHeader.js.map +1 -1
  980. package/componentsV2/SliderAdvanced/Bar.js +1 -1
  981. package/componentsV2/SliderAdvanced/Bar.js.map +1 -1
  982. package/componentsV2/SliderAdvanced/HandleWrapper.js +1 -1
  983. package/componentsV2/SliderAdvanced/HandleWrapper.js.map +1 -1
  984. package/componentsV2/Stepper/Step/Step.js +1 -1
  985. package/componentsV2/Stepper/Step/Step.js.map +1 -1
  986. package/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js +1 -1
  987. package/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js.map +1 -1
  988. package/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js +1 -1
  989. package/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js.map +1 -1
  990. package/componentsV2/TemplatesControl/Popover/Popover.d.ts.map +1 -1
  991. package/componentsV2/TemplatesControl/Popover/Popover.js +1 -1
  992. package/componentsV2/TemplatesControl/Popover/Popover.js.map +1 -1
  993. package/componentsV2/TemplatesControl/PopoverFooter/PopoverFooter.js +1 -1
  994. package/componentsV2/TemplatesControl/PopoverFooter/PopoverFooter.js.map +1 -1
  995. package/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js +1 -1
  996. package/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js.map +1 -1
  997. package/componentsV2/TemplatesControl/PublishModal/PublishModal.js +1 -1
  998. package/componentsV2/TemplatesControl/PublishModal/PublishModal.js.map +1 -1
  999. package/componentsV2/TemplatesControl/ShareModal/ShareModal.js +1 -1
  1000. package/componentsV2/TemplatesControl/ShareModal/ShareModal.js.map +1 -1
  1001. package/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js +1 -1
  1002. package/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js.map +1 -1
  1003. package/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js +1 -1
  1004. package/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js.map +1 -1
  1005. package/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js +1 -1
  1006. package/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js.map +1 -1
  1007. package/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
  1008. package/componentsV2/TemplatesControl/Toggle/Toggle.js.map +1 -1
  1009. package/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js +1 -1
  1010. package/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js.map +1 -1
  1011. package/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js +1 -1
  1012. package/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js.map +1 -1
  1013. package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js +1 -1
  1014. package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js.map +1 -1
  1015. package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js +1 -1
  1016. package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js.map +1 -1
  1017. package/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js +1 -1
  1018. package/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js.map +1 -1
  1019. package/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js +1 -1
  1020. package/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js.map +1 -1
  1021. package/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js +1 -1
  1022. package/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js.map +1 -1
  1023. package/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js +1 -1
  1024. package/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js.map +1 -1
  1025. package/componentsV2/TextInput/TextInput.js +1 -1
  1026. package/componentsV2/TextInput/TextInput.js.map +1 -1
  1027. package/componentsV2/TextInputBase/TextInputBase.js +1 -1
  1028. package/componentsV2/TextInputBase/TextInputBase.js.map +1 -1
  1029. package/componentsV2/TextInputBase/components/InfoIcon.js +1 -1
  1030. package/componentsV2/TextInputBase/components/InfoIcon.js.map +1 -1
  1031. package/componentsV2/TextInputNext/TextInputNext.js +1 -1
  1032. package/componentsV2/TextInputNext/TextInputNext.js.map +1 -1
  1033. package/componentsV2/ToggleButtons/ToggleButtons.scss.js +1 -1
  1034. package/componentsV2/index.d.ts +1 -0
  1035. package/componentsV2/index.d.ts.map +1 -1
  1036. package/componentsV2/index.js +1 -1
  1037. package/config/theme/index.js +1 -1
  1038. package/config/theme/index.js.map +1 -1
  1039. package/effects/index.d.ts +1 -1
  1040. package/effects/index.d.ts.map +1 -1
  1041. package/effects/index.js +1 -1
  1042. package/effects/useGlobalOffsetWellsSync.js +1 -1
  1043. package/effects/useGlobalOffsetWellsSync.js.map +1 -1
  1044. package/icons/customIcons/icons/PinOne.d.ts +2 -0
  1045. package/icons/customIcons/icons/PinOne.d.ts.map +1 -0
  1046. package/icons/customIcons/icons/PinOne.js +2 -0
  1047. package/icons/customIcons/icons/PinOne.js.map +1 -0
  1048. package/icons/customIcons/icons/PinOneCrossed.d.ts +2 -0
  1049. package/icons/customIcons/icons/PinOneCrossed.d.ts.map +1 -0
  1050. package/icons/customIcons/icons/PinOneCrossed.js +2 -0
  1051. package/icons/customIcons/icons/PinOneCrossed.js.map +1 -0
  1052. package/icons/customIcons/icons/index.d.ts +2 -0
  1053. package/icons/customIcons/icons/index.d.ts.map +1 -1
  1054. package/icons/index.js +1 -1
  1055. package/mcp-server/server.mjs +136 -24
  1056. package/package.json +1 -1
  1057. package/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  1058. package/testing/AppTestWrapper/AppTestWrapper.js.map +1 -1
  1059. package/tsconfig.tsbuildinfo +1 -1
  1060. package/utils/feed.js +1 -1
  1061. package/utils/feed.js.map +1 -1
  1062. package/cjs-bundle/componentsV2/AppSettings/AppSettingsPinningContext.js +0 -2
  1063. package/cjs-bundle/componentsV2/AppSettings/AppSettingsPinningContext.js.map +0 -1
  1064. package/componentsV2/AppSettings/AppSettingsPinningContext.d.ts +0 -21
  1065. package/componentsV2/AppSettings/AppSettingsPinningContext.d.ts.map +0 -1
  1066. package/componentsV2/AppSettings/AppSettingsPinningContext.js +0 -2
  1067. package/componentsV2/AppSettings/AppSettingsPinningContext.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ import e from'./../../../ext-esm/style-inject/dist/style-inject.es.js';var t={spacing:"8",prefix:"Input_prefix__UeYRz",inputContainer:"Input_inputContainer__tWP1-",rangeDefaultValue:"Input_rangeDefaultValue__IjFwV",popper:"Input_popper__hWvEc",rangeOverlay:"Input_rangeOverlay__dJE2j",small:"Input_small__-lDaR",medium:"Input_medium__nWso1",large:"Input_large__ay9YB",rangePart:"Input_rangePart__kzqAc",rangePartActive:"Input_rangePartActive__zNF-7"};e(".Input_prefix__UeYRz{margin-left:-8px}.Input_inputContainer__tWP1-{position:relative}.Input_rangeDefaultValue__IjFwV{caret-color:var(--corvaui-textinput-valuecolor);color:transparent}.Input_popper__hWvEc{z-index:calc(var(--z-index-modal) + 1)}.Input_rangeOverlay__dJE2j{color:var(--corvaui-textinput-valuecolor);font-family:inherit;font-size:inherit;font-weight:400;letter-spacing:0;overflow:hidden;pointer-events:none;transform:translateY(100%);white-space:pre}.Input_small__-lDaR{font-size:14px;line-height:18px}.Input_medium__nWso1{font-size:16px;line-height:22px}.Input_large__ay9YB{font-size:16px;line-height:26px}.Input_rangePart__kzqAc{cursor:pointer;pointer-events:all}.Input_rangePartActive__zNF-7{color:var(--palette-primary-main)}");export{t as default};
2
+ //# sourceMappingURL=Input.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,aAAa,yDAA4D;"}
@@ -1,9 +1,11 @@
1
1
  export type TimePickerProps = {
2
2
  value?: Date;
3
- onChange: (offset: number) => void;
3
+ onChange: (date: Date) => void;
4
+ saveTime: () => void;
5
+ maxDate?: Date;
6
+ minDate?: Date;
7
+ goToToday?: () => void;
8
+ clear?: () => void;
4
9
  };
5
- export type TimePickerImperativeHandle = {
6
- flash: () => void;
7
- };
8
- export declare const TimePicker: import("react").ForwardRefExoticComponent<TimePickerProps & import("react").RefAttributes<TimePickerImperativeHandle>>;
10
+ export declare const TimePicker: ({ value, onChange, minDate, maxDate, saveTime, goToToday, clear, }: TimePickerProps) => import("react/jsx-runtime").JSX.Element;
9
11
  //# sourceMappingURL=TimePicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/DatePicker/TimePicker/TimePicker.tsx"],"names":[],"mappings":"AAgFA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,UAAU,wHAwHtB,CAAC"}
1
+ {"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/DatePicker/TimePicker/TimePicker.tsx"],"names":[],"mappings":"AAwBA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC/B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,OAAO,CAAC,EAAE,IAAI,CAAC;IAEf,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAoBF,eAAO,MAAM,UAAU,uEAQpB,eAAe,4CAwRjB,CAAC"}
@@ -1,2 +1,2 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{forwardRef as r,useState as n,useRef as o,useMemo as i,useEffect as a,useCallback as c,useImperativeHandle as s}from"react";import{padStart as f}from"lodash";import l from"classnames";import u from"moment";import{Tabs as m}from"../../Tabs/Tabs.js";import d from"./TimePicker.scss.js";import{jsxs as p,jsx as b}from"react/jsx-runtime";function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?v(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var O=new Array(48).fill(0).map((function(e,t){var r=new Date(2e3,0,1,0,15*t),n=r.getHours(),o=f(String(0===n?12:n),2,"0"),i=f(String(r.getMinutes()),2,"0");return{offset:900*t,title:"".concat(o,":").concat(i)}})),g=[{value:"am",label:"AM"},{value:"pm",label:"PM"}],y=function(e){var t=e.offset,r=e.title,n=e.setOffset,o=e.disabled,i=e.selected,a=c((function(){return n(t)}),[n,t]);return b("button",{"data-offset":t,"data-selected":String(i),className:l(d.button,o&&d.disabled,i&&d.selected),onClick:a,disabled:o,children:r})},j=r((function(e,r){var f=e.value,v=e.onChange,j=!f,P=n(),T=t(P,2),w=T[0],D=T[1],M=o(null),S=o(!1),N=n(),k=t(N,2),x=k[0],A=k[1],C=i((function(){return g.map((function(e){return h(h({},e),{},{disabled:j})}))}),[j]),H=i((function(){if(f){var e=u(f).startOf("day").toDate();return Math.ceil((f.getTime()-e.getTime())/1e3)}}),[f]);a((function(){D(void 0!==H?H>=43200?"pm":"am":void 0)}),[H]);var E=i((function(){return O.map((function(e){return h(h({},e),{},{offset:e.offset+("pm"===w?43200:0)})}))}),[w]);a((function(){setTimeout((function(){if(void 0!==H&&M.current&&!S.current){S.current=!1;var e=M.current.querySelector('[data-selected="true"]');if(e){var t=e.offsetTop,r=e.clientHeight,n=t-(M.current.clientHeight-r)/2;M.current.scrollTo({top:Math.max(n,0)})}}}),0)}),[H]),a((function(){var e;j&&(null===(e=M.current)||void 0===e||e.scrollTo({top:0}))}),[j]);var q=c((function(e){S.current=!0,v(e)}),[v]);return s(r,(function(){return{flash:function(){return A(1+Math.random())}}}),[]),p("div",{className:l(d.root,x&&d.flash),children:[b("div",{className:d.header,children:b(m,{size:"small",type:"secondary",items:C,value:w,onChange:D})}),b("div",{className:d.body,children:b("div",{className:l(d.buttons,j&&d.disabled),ref:M,children:E.map((function(e,t,r){var n=e.offset,o=e.title,i=t===r.length-1?n+900:r[t+1].offset;return b(y,{offset:n,title:o,disabled:j,setOffset:q,selected:void 0!==H&&H>=n&&H<i},n)}))})})]},x)}));export{j as TimePicker};
1
+ import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{useRef as n,useMemo as c,useState as i,useEffect as t,useCallback as e}from"react";import r from"classnames";import m from"moment-timezone";import{padStart as u}from"lodash";import{TextInputNext as a}from"../../TextInputNext/TextInputNext.js";import{Text as l}from"../../Text/Text.js";import{ToggleButtons as p}from"../../ToggleButtons/ToggleButtons.js";import{isSameDay as d}from"../utils.js";import{Button as j}from"../../Button/Button.js";import I from"./TimePicker.scss.js";import{InfoIcon as f}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/DragOne.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/SearchOne.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/InfoRounded.js";import"../../../icons/customIcons/icons/FlameFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import"../../../icons/customIcons/icons/Pad.js";import"../../../icons/customIcons/icons/DrilloutUnit.js";import"../../../icons/customIcons/icons/FracFleet.js";import"../../../icons/customIcons/icons/Global.js";import"../../../icons/customIcons/icons/Program.js";import"../../../icons/customIcons/icons/Rig.js";import"../../../icons/customIcons/icons/Well.js";import"../../../icons/customIcons/icons/Gap.js";import"../../../icons/customIcons/icons/Pin.js";import"../../../icons/customIcons/icons/PinOne.js";import"../../../icons/customIcons/icons/PinOneCrossed.js";import"../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../icons/customIcons/icons/AttentionFilled.js";import"../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../icons/customIcons/icons/Archive.js";import"../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../icons/customIcons/icons/Unarchive.js";import"../../../icons/customIcons/icons/Archived.js";import"../../../icons/customIcons/icons/InterventionUnit.js";import"../../../icons/customIcons/icons/CloudDelete.js";import"../../../icons/customIcons/icons/Lasso.js";import"../../../icons/customIcons/icons/Radius.js";import"../../../icons/customIcons/icons/ErrorOps.js";import"../../../icons/customIcons/icons/DataTypeOps.js";import"../../../icons/customIcons/icons/FalsePositiveOps.js";import"../../../icons/customIcons/icons/CalibrationOps.js";import"../../../icons/customIcons/icons/CriticalOps.js";import"../../../icons/customIcons/icons/Company.js";import"../../../icons/customIcons/icons/ArchiveOne.js";import"../../../icons/customIcons/icons/ParseBotFusion.js";import"../../../icons/customIcons/icons/Connect.js";import"../../../icons/customIcons/icons/PuzzleOne.js";import"../../../icons/customIcons/icons/Feed.js";import"../../../icons/customIcons/icons/Prompt.js";import"../../../icons/customIcons/icons/Companies.js";import"../../../icons/customIcons/icons/ClipboardAi.js";import"../../../icons/customIcons/icons/Key.js";import"../../../icons/customIcons/icons/AtSignCrossed.js";import"../../../icons/customIcons/icons/MappingManual.js";import"../../../icons/customIcons/icons/Mapping.js";import"../../../icons/customIcons/icons/Metrics.js";import"../../../icons/customIcons/icons/Drops.js";import"../../../icons/customIcons/icons/ClipboardSearch.js";import"../../../icons/customIcons/icons/Template.js";import"../../../icons/customIcons/icons/ClipboardMetrics.js";import"../../../icons/customIcons/icons/ClipboardBuilder.js";import"../../../icons/customIcons/icons/UnitConversion.js";import"../../../icons/customIcons/icons/NPT.js";import"../../../icons/customIcons/icons/GuidedFrac.js";import{jsxs as h,Fragment as v,jsx as b}from"react/jsx-runtime";function g(o,s){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);s&&(c=c.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),n.push.apply(n,c)}return n}function O(s){for(var n=1;n<arguments.length;n++){var c=null!=arguments[n]?arguments[n]:{};n%2?g(Object(c),!0).forEach((function(n){o(s,n,c[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):g(Object(c)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(c,o))}))}return s}var C=[{value:"am",label:"AM"},{value:"pm",label:"PM"}],y=function(o){return o.replace(/[^\d]/g,"").substring(0,2)},T=function(o){return Number(o)>=0&&Number(o)<=12},N=function(o){return Number(o)>=0&&Number(o)<60},P=N,F=function(o){return o.getTime()-m(o).startOf("day").toDate().getTime()},D=function(o){return void 0!==o?u(String(o),2,"0"):""},M=function(o){return"12"===o?"00":o},x=function(o){var u=o.value,g=o.onChange,x=o.minDate,A=o.maxDate,k=o.saveTime,S=o.goToToday,z=o.clear,B=!u,R=n(null),w=n(null),E=n(null),H=n(),G=c((function(){var o=u?F(u)>=432e5?"pm":"am":void 0,s="pm"===o?12:0,n=u?u.getHours()-s:void 0;return{hours:D(void 0!==n&&0===n?12:n),minutes:D(null==u?void 0:u.getMinutes()),seconds:D(null==u?void 0:u.getSeconds()),partOfDay:o}}),[u]),U=i(G.hours),q=s(U,2),L=q[0],W=q[1],K=i(G.minutes),Z=s(K,2),J=Z[0],Q=Z[1],V=i(G.seconds),X=s(V,2),Y=X[0],$=X[1];t((function(){H.current!==R.current&&W(G.hours),H.current!==w.current&&Q(G.minutes),H.current!==E.current&&$(G.seconds)}),[G.hours,G.minutes,G.seconds]);var _=c((function(){var o=d(x,u)&&m(x).format("hh:mm:ss A"),s=d(A,u)&&m(A).format("hh:mm:ss A");return o&&s?"In ".concat(o," - ").concat(s," range"):o?"Can’t be earlier than ".concat(o):s?"Can’t be later than ".concat(s):void 0}),[A,x,u]),oo=c((function(){return C.map((function(o){var s="am"===o.value&&!!x&&d(u,x)&&F(x)>=432e5,n="pm"===o.value&&!!A&&d(u,A)&&F(A)<432e5;return O(O({},o),{},{disabled:B||s||n})}))}),[B,A,x,u]),so=e((function(o,s){if(u){var n=new Date(u);if("hours"===o&&T(s)){var c="pm"===G.partOfDay?12:0;n.setHours(c+Number(s))}else if("minutes"===o&&N(s))n.setMinutes(Number(s));else if("seconds"===o&&P(s))n.setSeconds(Number(s));else if("partOfDay"===o&&("am"===s||"pm"===s)){var i=n.getHours()%12;n.setHours(("pm"===s?12:0)+i)}Math.floor(n.getTime()/1e3)!==Math.floor(u.getTime()/1e3)&&g(n)}}),[G.partOfDay,g,u]),no=e((function(o){o.target.select(),H.current=o.target}),[]),co=e((function(o){var s=y(o.target.value);if(o.target===R.current){var n=M(s),c=T(n)?D(n):G.hours;W(c),so("hours",c)}if(o.target===w.current){var i=N(s)?D(s):G.minutes;Q(i),so("minutes",i)}if(o.target===E.current){var t=P(s)?D(s):G.seconds;$(t),so("seconds",t)}H.current=void 0}),[G.hours,G.minutes,G.seconds,so]),io=e((function(o){var s,n=y(o),c=M(n);(W(n),2===n.length&&T(n))&&(so("hours",c),null===(s=w.current)||void 0===s||s.focus())}),[so]),to=e((function(o){var s,n=y(o);(Q(n),2===n.length&&N(n))&&(so("minutes",n),null===(s=E.current)||void 0===s||s.focus())}),[so]),eo=e((function(o){var s=y(o);$(s),P(s)&&so("seconds",s)}),[so]),ro=e((function(o){so("partOfDay",o)}),[so]),mo=Number(null==u?void 0:u.getTime())>Number(null==A?void 0:A.getTime())||Number(null==u?void 0:u.getTime())<Number(null==x?void 0:x.getTime()),uo=!T(L)||mo,ao=!N(J)||mo,lo=!P(Y)||mo;return h(v,{children:[h("div",{className:r(I.timePicker),children:[h(l,{className:I.header,size:14,children:[b("span",{className:r(I.headerText,B&&I.disabled),children:"Time"}),_&&h(v,{children:[b(f,{className:I.constraintIcon,size:16}),_]})]}),b(a,{placeholder:"HH",className:I.input,disabled:B,value:L,onChange:io,status:uo?"error":void 0,inputRef:R,onFocus:no,onBlur:co}),b(l,{color:"T9",size:14,children:":"}),b(a,{placeholder:"MM",className:I.input,disabled:B,value:J,onChange:to,status:ao?"error":void 0,inputRef:w,onFocus:no,onBlur:co}),b(l,{color:"T9",size:14,children:":"}),b(a,{placeholder:"SS",className:I.input,disabled:B,value:Y,onChange:eo,status:lo?"error":void 0,inputRef:E,onFocus:no,onBlur:co}),b(p,{options:oo,className:I.tabs,size:"small",value:G.partOfDay,onChange:ro})]}),h("div",{className:I.footer,children:[S&&b(j,{onClick:S,type:"tertiary",size:"small",children:"Today"}),h("div",{className:I.actions,children:[z&&b(j,{onClick:z,type:"tertiary",size:"small",disabled:!u,children:"Clear"}),b(j,{onClick:k,type:"secondary",size:"small",disabled:!u||uo||ao||lo,children:"Save"})]})]})]})};export{x as TimePicker};
2
2
  //# sourceMappingURL=TimePicker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TimePicker.js","sources":["../../../../src/componentsV2/DatePicker/TimePicker/TimePicker.tsx"],"sourcesContent":["import {\n forwardRef,\n useCallback,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport { padStart } from 'lodash';\nimport classNames from 'classnames';\nimport moment from 'moment';\n\nimport { Tabs } from '../../Tabs';\n\nimport styles from './TimePicker.scss';\n\ntype AmPm = 'am' | 'pm';\n\nconst IntervalMin = 15;\nconst IntervalSec = IntervalMin * 60; // 15 minutes\nconst HalfOfDayMin = 12 * 60;\nconst HalfOfDaySec = HalfOfDayMin * 60;\nconst ButtonsCount = HalfOfDayMin / IntervalMin; // Half of day (AM/PM) in 15-minute intervals\n\nconst ButtonsBase = new Array(ButtonsCount).fill(0).map((_, index) => {\n const date = new Date(2000, 0, 1, 0, index * IntervalMin);\n const hours24 = date.getHours();\n // According to Wiki each 12-hour period starts with 12th hour\n // Can't people just use normal, simple, understandeable 24-hour format?\n // https://en.wikipedia.org/wiki/12-hour_clock#History_and_use\n const hours12 = hours24 === 0 ? 12 : hours24;\n\n const hours = padStart(String(hours12), 2, '0');\n const minutes = padStart(String(date.getMinutes()), 2, '0');\n\n return {\n offset: index * IntervalSec,\n title: `${hours}:${minutes}`,\n };\n});\n\nconst TabItems: { value: AmPm; label: string }[] = [\n { value: 'am', label: 'AM' },\n { value: 'pm', label: 'PM' },\n];\n\ntype TimePickerButtonProps = {\n offset: number;\n title: string;\n disabled: boolean;\n setOffset: (offset: number) => void;\n selected?: boolean;\n};\n\nconst TimePickerButton = ({\n offset,\n title,\n setOffset,\n disabled,\n selected,\n}: TimePickerButtonProps) => {\n const onClick = useCallback(() => setOffset(offset), [setOffset, offset]);\n return (\n <button\n data-offset={offset}\n data-selected={String(selected)}\n className={classNames(\n styles.button,\n disabled && styles.disabled,\n selected && styles.selected\n )}\n onClick={onClick}\n disabled={disabled}\n >\n {title}\n </button>\n );\n};\n\nexport type TimePickerProps = {\n value?: Date;\n onChange: (offset: number) => void;\n};\n\nexport type TimePickerImperativeHandle = {\n flash: () => void;\n};\n\nexport const TimePicker = forwardRef<TimePickerImperativeHandle, TimePickerProps>(\n ({ value, onChange }, ref) => {\n const disabled = !value;\n const [partOfDay, setPartOfDay] = useState<AmPm>();\n const buttonsRef = useRef<HTMLDivElement>(null);\n const skipScrollRef = useRef(false);\n const [flashKey, setFlashKey] = useState<number>();\n\n const tabs = useMemo(() => TabItems.map(tab => ({ ...tab, disabled })), [disabled]);\n\n // Seconds from day start\n const valueOffset = useMemo(() => {\n if (value) {\n const dayStart = moment(value).startOf('day').toDate();\n return Math.ceil((value.getTime() - dayStart.getTime()) / 1000);\n }\n\n return undefined;\n }, [value]);\n\n useEffect(() => {\n if (typeof valueOffset !== 'undefined') {\n setPartOfDay(valueOffset >= HalfOfDaySec ? 'pm' : 'am');\n } else {\n setPartOfDay(undefined);\n }\n }, [valueOffset]);\n\n const buttons = useMemo(\n () =>\n ButtonsBase.map(button => ({\n ...button,\n offset: button.offset + (partOfDay === 'pm' ? HalfOfDaySec : 0),\n })),\n [partOfDay]\n );\n\n useEffect(() => {\n setTimeout(() => {\n if (typeof valueOffset !== 'undefined' && buttonsRef.current && !skipScrollRef.current) {\n skipScrollRef.current = false;\n const selectedButton = buttonsRef.current.querySelector(\n '[data-selected=\"true\"]'\n ) as HTMLElement;\n\n if (selectedButton) {\n const elementScrollTop = selectedButton.offsetTop;\n const elementHeight = selectedButton.clientHeight;\n const containerHeight = buttonsRef.current.clientHeight;\n\n const scrollTarget = elementScrollTop - (containerHeight - elementHeight) / 2;\n\n buttonsRef.current.scrollTo({\n top: Math.max(scrollTarget, 0),\n });\n }\n }\n }, 0);\n }, [valueOffset]);\n\n useEffect(() => {\n if (disabled) {\n buttonsRef.current?.scrollTo({ top: 0 });\n }\n }, [disabled]);\n\n const onChangeHandler = useCallback(\n (offset: number) => {\n skipScrollRef.current = true;\n onChange(offset);\n },\n [onChange]\n );\n\n useImperativeHandle(\n ref,\n () => ({\n flash: () => setFlashKey(1 + Math.random()),\n }),\n []\n );\n\n return (\n <div className={classNames(styles.root, flashKey && styles.flash)} key={flashKey}>\n <div className={styles.header}>\n <Tabs\n size=\"small\"\n type=\"secondary\"\n items={tabs}\n value={partOfDay}\n onChange={setPartOfDay}\n />\n </div>\n <div className={styles.body}>\n <div className={classNames(styles.buttons, disabled && styles.disabled)} ref={buttonsRef}>\n {buttons.map(({ offset, title }, index, self) => {\n const nextOffset =\n index === self.length - 1 ? offset + IntervalSec : self[index + 1].offset;\n\n const selected =\n typeof valueOffset !== 'undefined' &&\n valueOffset >= offset &&\n valueOffset < nextOffset;\n\n return (\n <TimePickerButton\n key={offset}\n offset={offset}\n title={title}\n disabled={disabled}\n setOffset={onChangeHandler}\n selected={selected}\n />\n );\n })}\n </div>\n </div>\n </div>\n );\n }\n);\n"],"names":["ButtonsBase","Array","HalfOfDayMin","fill","map","_","index","date","Date","hours24","getHours","hours","padStart","String","minutes","getMinutes","offset","IntervalMin","title","concat","TabItems","value","label","TimePickerButton","_ref","setOffset","disabled","selected","onClick","useCallback","_jsx","className","classNames","styles","button","children","TimePicker","forwardRef","_ref2","ref","onChange","_useState","useState","_useState2","_slicedToArray","partOfDay","setPartOfDay","buttonsRef","useRef","skipScrollRef","_useState3","_useState4","flashKey","setFlashKey","tabs","useMemo","tab","_objectSpread","valueOffset","dayStart","moment","startOf","toDate","Math","ceil","getTime","useEffect","undefined","buttons","setTimeout","current","selectedButton","querySelector","elementScrollTop","offsetTop","elementHeight","clientHeight","scrollTarget","scrollTo","top","max","_buttonsRef$current","onChangeHandler","useImperativeHandle","flash","random","_jsxs","root","header","Tabs","size","type","items","body","self","nextOffset","length"],"mappings":"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"}
1
+ {"version":3,"file":"TimePicker.js","sources":["../../../../src/componentsV2/DatePicker/TimePicker/TimePicker.tsx"],"sourcesContent":["import { FocusEventHandler, useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport moment from 'moment-timezone';\nimport { padStart } from 'lodash';\n\nimport { TextInputNext } from '../../TextInputNext';\nimport { Text } from '../../Text';\nimport { ToggleButtons } from '../../ToggleButtons';\nimport { isSameDay } from '../utils';\nimport { Button } from '../../Button';\n\nimport styles from './TimePicker.scss';\n\nimport { InfoIcon } from '~/icons';\n\ntype AmPm = 'am' | 'pm';\n\nconst HalfOfDayMs = 12 * 60 * 60 * 1000;\n\nconst ToggleButtonsOptions: { value: AmPm; label: string }[] = [\n { value: 'am', label: 'AM' },\n { value: 'pm', label: 'PM' },\n];\n\nexport type TimePickerProps = {\n value?: Date;\n onChange: (date: Date) => void;\n saveTime: () => void;\n maxDate?: Date;\n minDate?: Date;\n\n goToToday?: () => void;\n clear?: () => void;\n};\n\nconst sanitize = (value: string) => value.replace(/[^\\d]/g, '').substring(0, 2);\nconst validateHours = (value?: string) => Number(value) >= 0 && Number(value) <= 12;\nconst validateMinutes = (value?: string) => Number(value) >= 0 && Number(value) < 60;\nconst validateSeconds = validateMinutes;\n\nconst getOffsetFromDayStart = (date: Date) => {\n return date.getTime() - moment(date).startOf('day').toDate().getTime();\n};\n\nconst formatTimePart = (part?: string | number) =>\n part !== undefined ? padStart(String(part), 2, '0') : '';\n\nconst getPartOfDay = (date: Date) => {\n return getOffsetFromDayStart(date) >= HalfOfDayMs ? 'pm' : 'am';\n};\n\nconst getActualHours = (sanitized: string) => (sanitized === '12' ? '00' : sanitized);\n\nexport const TimePicker = ({\n value,\n onChange,\n minDate,\n maxDate,\n saveTime,\n goToToday,\n clear,\n}: TimePickerProps) => {\n const disabled = !value;\n\n const hoursInputRef = useRef<HTMLInputElement>(null);\n const minutesInputRef = useRef<HTMLInputElement>(null);\n const secondsInputRef = useRef<HTMLInputElement>(null);\n\n const focusedInputRef = useRef<HTMLInputElement>();\n\n const timeParts = useMemo(() => {\n const partOfDay = value ? getPartOfDay(value) : undefined;\n\n const hourOffset = partOfDay === 'pm' ? 12 : 0;\n\n const hours = value ? value.getHours() - hourOffset : undefined;\n\n const hoursAmPm = hours !== undefined && hours === 0 ? 12 : hours;\n\n return {\n hours: formatTimePart(hoursAmPm),\n minutes: formatTimePart(value?.getMinutes()),\n seconds: formatTimePart(value?.getSeconds()),\n partOfDay,\n };\n }, [value]);\n\n const [hours, setHours] = useState(timeParts.hours);\n const [minutes, setMinutes] = useState(timeParts.minutes);\n const [seconds, setSeconds] = useState(timeParts.seconds);\n\n useEffect(() => {\n if (focusedInputRef.current !== hoursInputRef.current) {\n setHours(timeParts.hours);\n }\n if (focusedInputRef.current !== minutesInputRef.current) {\n setMinutes(timeParts.minutes);\n }\n if (focusedInputRef.current !== secondsInputRef.current) {\n setSeconds(timeParts.seconds);\n }\n }, [timeParts.hours, timeParts.minutes, timeParts.seconds]);\n\n const constraintText = useMemo(() => {\n const minValue = isSameDay(minDate, value) && moment(minDate).format('hh:mm:ss A');\n const maxValue = isSameDay(maxDate, value) && moment(maxDate).format('hh:mm:ss A');\n\n if (minValue && maxValue) {\n return `In ${minValue} - ${maxValue} range`;\n } else if (minValue) {\n return `Can’t be earlier than ${minValue}`;\n } else if (maxValue) {\n return `Can’t be later than ${maxValue}`;\n }\n return undefined;\n }, [maxDate, minDate, value]);\n\n const amPmOptions = useMemo(\n () =>\n ToggleButtonsOptions.map(item => {\n const isAmDisabled =\n item.value === 'am' &&\n !!minDate &&\n isSameDay(value, minDate) &&\n getOffsetFromDayStart(minDate) >= HalfOfDayMs;\n\n const isPmDisabled =\n item.value === 'pm' &&\n !!maxDate &&\n isSameDay(value, maxDate) &&\n getOffsetFromDayStart(maxDate) < HalfOfDayMs;\n\n return { ...item, disabled: disabled || isAmDisabled || isPmDisabled };\n }),\n [disabled, maxDate, minDate, value]\n );\n\n const updateValue = useCallback(\n (type: 'hours' | 'minutes' | 'seconds' | 'partOfDay', newValue: string) => {\n if (!value) {\n return;\n }\n\n const newDate = new Date(value);\n\n if (type === 'hours' && validateHours(newValue)) {\n const partOfDayOffset = timeParts.partOfDay === 'pm' ? 12 : 0;\n newDate.setHours(partOfDayOffset + Number(newValue));\n } else if (type === 'minutes' && validateMinutes(newValue)) {\n newDate.setMinutes(Number(newValue));\n } else if (type === 'seconds' && validateSeconds(newValue)) {\n newDate.setSeconds(Number(newValue));\n } else if (type === 'partOfDay' && (newValue === 'am' || newValue === 'pm')) {\n const hoursOffset = newDate.getHours() % 12;\n newDate.setHours((newValue === 'pm' ? 12 : 0) + hoursOffset);\n }\n\n if (Math.floor(newDate.getTime() / 1000) !== Math.floor(value.getTime() / 1000)) {\n onChange(newDate);\n }\n },\n [timeParts.partOfDay, onChange, value]\n );\n\n const onFieldFocus = useCallback<FocusEventHandler<HTMLInputElement>>(e => {\n e.target.select();\n focusedInputRef.current = e.target;\n }, []);\n\n const onFieldBlur = useCallback<FocusEventHandler<HTMLInputElement>>(\n e => {\n const fieldValue = sanitize(e.target.value);\n\n if (e.target === hoursInputRef.current) {\n const actualHours = getActualHours(fieldValue);\n const newHours = validateHours(actualHours) ? formatTimePart(actualHours) : timeParts.hours;\n setHours(newHours);\n updateValue('hours', newHours);\n }\n if (e.target === minutesInputRef.current) {\n const newMinutes = validateMinutes(fieldValue)\n ? formatTimePart(fieldValue)\n : timeParts.minutes;\n setMinutes(newMinutes);\n updateValue('minutes', newMinutes);\n }\n if (e.target === secondsInputRef.current) {\n const newSeconds = validateSeconds(fieldValue)\n ? formatTimePart(fieldValue)\n : timeParts.seconds;\n setSeconds(newSeconds);\n updateValue('seconds', newSeconds);\n }\n\n focusedInputRef.current = undefined;\n },\n [timeParts.hours, timeParts.minutes, timeParts.seconds, updateValue]\n );\n\n const onChangeHours = useCallback(\n (newValue: string) => {\n const sanitized = sanitize(newValue);\n const actualHours = getActualHours(sanitized);\n setHours(sanitized);\n if (sanitized.length === 2 && validateHours(sanitized)) {\n updateValue('hours', actualHours);\n minutesInputRef.current?.focus();\n }\n },\n [updateValue]\n );\n\n const onChangeMinutes = useCallback(\n (newValue: string) => {\n const sanitized = sanitize(newValue);\n setMinutes(sanitized);\n if (sanitized.length === 2 && validateMinutes(sanitized)) {\n updateValue('minutes', sanitized);\n secondsInputRef.current?.focus();\n }\n },\n [updateValue]\n );\n\n const onChangeSeconds = useCallback(\n (newValue: string) => {\n const sanitized = sanitize(newValue);\n setSeconds(sanitized);\n if (validateSeconds(sanitized)) {\n updateValue('seconds', sanitized);\n }\n },\n [updateValue]\n );\n\n const setPartOfDay = useCallback(\n (newValue: string) => {\n updateValue('partOfDay', newValue);\n },\n [updateValue]\n );\n\n const outOfBounds =\n Number(value?.getTime()) > Number(maxDate?.getTime()) ||\n Number(value?.getTime()) < Number(minDate?.getTime());\n\n const hoursInvalid = !validateHours(hours) || outOfBounds;\n const minutesInvalid = !validateMinutes(minutes) || outOfBounds;\n const secondsInvalid = !validateSeconds(seconds) || outOfBounds;\n\n return (\n <>\n <div className={classNames(styles.timePicker)}>\n <Text className={styles.header} size={14}>\n <span className={classNames(styles.headerText, disabled && styles.disabled)}>Time</span>\n {constraintText && (\n <>\n <InfoIcon className={styles.constraintIcon} size={16} />\n {constraintText}\n </>\n )}\n </Text>\n\n <TextInputNext\n placeholder=\"HH\"\n className={styles.input}\n disabled={disabled}\n value={hours}\n onChange={onChangeHours}\n status={hoursInvalid ? 'error' : undefined}\n inputRef={hoursInputRef}\n onFocus={onFieldFocus}\n onBlur={onFieldBlur}\n />\n\n <Text color=\"T9\" size={14}>\n :\n </Text>\n\n <TextInputNext\n placeholder=\"MM\"\n className={styles.input}\n disabled={disabled}\n value={minutes}\n onChange={onChangeMinutes}\n status={minutesInvalid ? 'error' : undefined}\n inputRef={minutesInputRef}\n onFocus={onFieldFocus}\n onBlur={onFieldBlur}\n />\n\n <Text color=\"T9\" size={14}>\n :\n </Text>\n\n <TextInputNext\n placeholder=\"SS\"\n className={styles.input}\n disabled={disabled}\n value={seconds}\n onChange={onChangeSeconds}\n status={secondsInvalid ? 'error' : undefined}\n inputRef={secondsInputRef}\n onFocus={onFieldFocus}\n onBlur={onFieldBlur}\n />\n\n <ToggleButtons\n options={amPmOptions}\n className={styles.tabs}\n size=\"small\"\n value={timeParts.partOfDay}\n onChange={setPartOfDay}\n />\n </div>\n <div className={styles.footer}>\n {goToToday && (\n <Button onClick={goToToday} type=\"tertiary\" size=\"small\">\n Today\n </Button>\n )}\n\n <div className={styles.actions}>\n {clear && (\n <Button onClick={clear} type=\"tertiary\" size=\"small\" disabled={!value}>\n Clear\n </Button>\n )}\n\n <Button\n onClick={saveTime}\n type=\"secondary\"\n size=\"small\"\n disabled={!value || hoursInvalid || minutesInvalid || secondsInvalid}\n >\n Save\n </Button>\n </div>\n </div>\n </>\n );\n};\n"],"names":["ToggleButtonsOptions","value","label","sanitize","replace","substring","validateHours","Number","validateMinutes","validateSeconds","getOffsetFromDayStart","date","getTime","moment","startOf","toDate","formatTimePart","part","undefined","padStart","String","getActualHours","sanitized","TimePicker","_ref","onChange","minDate","maxDate","saveTime","goToToday","clear","disabled","hoursInputRef","useRef","minutesInputRef","secondsInputRef","focusedInputRef","timeParts","useMemo","partOfDay","hourOffset","hours","getHours","minutes","getMinutes","seconds","getSeconds","_useState","useState","_useState2","_slicedToArray","setHours","_useState3","_useState4","setMinutes","_useState5","_useState6","setSeconds","useEffect","current","constraintText","minValue","isSameDay","format","maxValue","concat","amPmOptions","map","item","isAmDisabled","isPmDisabled","_objectSpread","updateValue","useCallback","type","newValue","newDate","Date","partOfDayOffset","hoursOffset","Math","floor","onFieldFocus","e","target","select","onFieldBlur","fieldValue","actualHours","newHours","newMinutes","newSeconds","onChangeHours","_minutesInputRef$curr","length","focus","onChangeMinutes","_secondsInputRef$curr","onChangeSeconds","setPartOfDay","outOfBounds","hoursInvalid","minutesInvalid","secondsInvalid","_jsxs","_Fragment","children","className","classNames","styles","timePicker","Text","header","size","_jsx","headerText","InfoIcon","constraintIcon","TextInputNext","placeholder","input","status","inputRef","onFocus","onBlur","color","ToggleButtons","options","tabs","footer","Button","onClick","actions"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- import e from'./../../../ext-esm/style-inject/dist/style-inject.es.js';var r={spacing:"8",root:"TimePicker_root__8V00p",flash:"TimePicker_flash__oACQ0",TimePickerPulseShadow:"TimePicker_TimePickerPulseShadow__Rqbwt",header:"TimePicker_header__IQJE8",body:"TimePicker_body__I-gTV",buttons:"TimePicker_buttons__r7ov-",disabled:"TimePicker_disabled__tK9tS",button:"TimePicker_button__Lv0xZ",selected:"TimePicker_selected__qpPUm"};e('.TimePicker_root__8V00p{display:flex;flex-flow:column nowrap;min-height:1px;position:relative}.TimePicker_flash__oACQ0:after{animation:TimePicker_TimePickerPulseShadow__Rqbwt .7s cubic-bezier(.215,.61,.355,1) 1;border-radius:8px;content:"";inset:0;pointer-events:none;position:absolute}.TimePicker_header__IQJE8{align-items:center;border-bottom:2px solid var(--palette-background-b-4);display:flex;flex:0 0 48px;flex-flow:row nowrap;justify-content:center;padding:0 8px}.TimePicker_body__I-gTV{border-left:2px solid var(--palette-background-b-4);flex:0 1 100%;position:relative}.TimePicker_buttons__r7ov-{display:flex;flex-flow:column nowrap;gap:16px;height:100%;inset:0;mask:linear-gradient(0deg,transparent,#000 8px,#000 calc(100% - 8px),transparent);overflow:auto;padding:16px 16px 16px 14px;position:absolute}.TimePicker_buttons__r7ov-.TimePicker_disabled__tK9tS{overflow:hidden}.TimePicker_button__Lv0xZ{background:transparent;border:none;border-radius:8px;color:var(--palette-primary-text-6);cursor:pointer;display:block;font-size:14px;font-weight:400;height:40px;line-height:28px;margin-left:25px;outline:none;padding:0;text-align:center;transition:color .15s cubic-bezier(.4,0,.2,1),background .15s cubic-bezier(.4,0,.2,1);width:55px}.TimePicker_button__Lv0xZ:focus,.TimePicker_button__Lv0xZ:hover{background:var(--palette-background-b-9)}.TimePicker_button__Lv0xZ:active{background:var(--palette-background-b-10)}.TimePicker_button__Lv0xZ.TimePicker_selected__qpPUm{background:var(--palette-primary-main);color:var(--palette-background-b-4);font-weight:500}.TimePicker_button__Lv0xZ.TimePicker_disabled__tK9tS{background:transparent;color:var(--palette-primary-text-9);cursor:auto}@keyframes TimePicker_TimePickerPulseShadow__Rqbwt{0%{box-shadow:0 0 0 0 rgb(from var(--palette-primary-main) r g b/0)}30%{box-shadow:0 0 0 1px rgb(from var(--palette-primary-main) r g b/.7)}to{box-shadow:0 0 0 5px rgb(from var(--palette-primary-main) r g b/0)}}');export{r as default};
1
+ import e from'./../../../ext-esm/style-inject/dist/style-inject.es.js';var i={spacing:"8",timePicker:"TimePicker_timePicker__zbwy1",header:"TimePicker_header__IQJE8",headerText:"TimePicker_headerText__ztp7U",disabled:"TimePicker_disabled__tK9tS",constraintIcon:"TimePicker_constraintIcon__y2pg6",input:"TimePicker_input__-wBnb",tabs:"TimePicker_tabs__jNS1I",footer:"TimePicker_footer__-xJOC",actions:"TimePicker_actions__fx-7e"};e(".TimePicker_timePicker__zbwy1{align-items:center;border-top:2px solid var(--palette-background-b-4);display:flex;flex-flow:row wrap;gap:8px 4px;padding:8px}.TimePicker_header__IQJE8{align-items:center;color:var(--palette-info-light);display:flex;flex:0 0 100%;flex-flow:row nowrap;gap:4px}.TimePicker_headerText__ztp7U{color:var(--palette-primary-text-1);flex:0 0 auto}.TimePicker_headerText__ztp7U.TimePicker_disabled__tK9tS{color:var(--palette-primary-text-9);cursor:default}.TimePicker_constraintIcon__y2pg6{flex:0 0 auto;margin-left:auto}.TimePicker_input__-wBnb{width:46px}.TimePicker_tabs__jNS1I{margin-left:auto}.TimePicker_footer__-xJOC{align-items:center;border-top:2px solid var(--palette-background-b-4);display:flex;flex-flow:row nowrap;gap:8px;padding:8px}.TimePicker_actions__fx-7e{margin-left:auto}");export{i as default};
2
2
  //# sourceMappingURL=TimePicker.scss.js.map
@@ -1,8 +1,7 @@
1
1
  export type DatePickerType = 'date' | 'dateTime' | 'month';
2
2
  export type DatePickerValue<IsRange extends boolean | undefined = false> = IsRange extends undefined | false ? Date | undefined : [Date, Date] | undefined;
3
3
  export type DatePickerChangeHandler<IsRange extends boolean | undefined = false> = (value: DatePickerValue<IsRange>) => void;
4
- export type RangeSelectionStep = 'startDate' | 'startTime' | 'endDate' | 'endTime';
5
- export declare const applyOffsetSeconds: (date: Date, offset: number) => Date;
4
+ export type RangeSelectionStep = 'startDate' | 'endDate';
6
5
  export declare const DefaultFormatByType: Record<DatePickerType, string>;
7
6
  export declare const DefaultFormatByTypeRange: Record<DatePickerType, string>;
8
7
  export declare const getDefaultFormat: (type: DatePickerType, range?: boolean) => string;
@@ -24,4 +23,5 @@ export declare const MonthOptions: {
24
23
  fullTitle: string;
25
24
  }[];
26
25
  export type DatePickerCalendarView = 'year' | 'month';
26
+ export declare const getDateWithSameTime: (date: Date, timeDate?: Date) => Date;
27
27
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/DatePicker/utils.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC;AAE3D,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,IAAI,OAAO,SAC9E,SAAS,GACT,KAAK,GACL,IAAI,GAAG,SAAS,GAChB,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,SAAS,CAAC;AAE7B,MAAM,MAAM,uBAAuB,CAAC,OAAO,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,IAAI,CACjF,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,KAC5B,IAAI,CAAC;AAMV,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;AAEnF,eAAO,MAAM,kBAAkB,SAAU,IAAI,UAAU,MAAM,SACA,CAAC;AAE9D,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAI9D,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAInE,CAAC;AAEF,eAAO,MAAM,gBAAgB,SAAU,cAAc,UAAU,OAAO,WAGrE,CAAC;AAOF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAInE,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,CAI9D,CAAC;AA+BF,eAAO,MAAM,iBAAiB,uCAK3B;IACD,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,WAoBA,CAAC;AAEF,eAAO,MAAM,WAAW,OAAQ,IAAI,MAAM,IAAI,YACsC,CAAC;AAErF,eAAO,MAAM,SAAS,OAAQ,IAAI,MAAM,IAAI,YAAuD,CAAC;AAEpG,eAAO,MAAM,UAAU,OAAQ,IAAI,MAAM,IAAI,qBAM5C,CAAC;AAEF,eAAO,MAAM,UAAU,OAAQ,IAAI,MAAM,IAAI,qBAM5C,CAAC;AAEF,eAAO,MAAM,YAAY;;;;GAaxB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/DatePicker/utils.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC;AAE3D,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,IAAI,OAAO,SAC9E,SAAS,GACT,KAAK,GACL,IAAI,GAAG,SAAS,GAChB,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,SAAS,CAAC;AAE7B,MAAM,MAAM,uBAAuB,CAAC,OAAO,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,IAAI,CACjF,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,KAC5B,IAAI,CAAC;AAIV,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,SAAS,CAAC;AAEzD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAI9D,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAInE,CAAC;AAEF,eAAO,MAAM,gBAAgB,SAAU,cAAc,UAAU,OAAO,WAGrE,CAAC;AAOF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAInE,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,CAI9D,CAAC;AA+BF,eAAO,MAAM,iBAAiB,uCAK3B;IACD,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,WAoBA,CAAC;AAEF,eAAO,MAAM,WAAW,OAAQ,IAAI,MAAM,IAAI,YACsC,CAAC;AAErF,eAAO,MAAM,SAAS,OAAQ,IAAI,MAAM,IAAI,YAAuD,CAAC;AAEpG,eAAO,MAAM,UAAU,OAAQ,IAAI,MAAM,IAAI,qBAM5C,CAAC;AAEF,eAAO,MAAM,UAAU,OAAQ,IAAI,MAAM,IAAI,qBAM5C,CAAC;AAEF,eAAO,MAAM,YAAY;;;;GAaxB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEtD,eAAO,MAAM,mBAAmB,SAAU,IAAI,aAAa,IAAI,SAQ5D,CAAC"}
@@ -1,2 +1,2 @@
1
- import t from"moment";var e=function(e,l){return t(e).startOf("day").add(l,"seconds").toDate()},l={date:"DD MMM YYYY",dateTime:"DD MMM YYYY hh:mm A",month:"MMMM YYYY"},n={date:"DD/MM/YYYY",dateTime:"DD/MM/YYYY hh:mm A",month:"MMM YYYY"},i=function(t,e){return(e?n:l)[t]},r=["D","M","Y","h","m","s","S"],Y=[].concat(r,["A"]),u=new RegExp("^([^".concat(Y.join(""),"]+)"),"gi"),a={month:"MM/YYYY",date:"DD/MM/YYYY",dateTime:"DD/MM/YYYY hh:mm A"},o={month:[a.month,"MMMM YYYY","MMM YYYY"],date:[a.date,"D/M/YYYY"],dateTime:[a.dateTime,"D/M/YYYY hh:mm A"]},M=function(t){var e=t.value,l=t.type,n=t.range,i=t.prevValue,Y=a[l],o=n?"".concat(Y," - ").concat(Y):Y,M=e.toLocaleLowerCase().replace(/([ap])m/gi,"$1");if(e.length<=i.length||!function(t,e){return e.length<=t.length&&e.split("").every((function(e,l){var n,i=t[l];if(r.includes(i))return null==(n=e)?void 0:n.match(/\d/);if("A"===i){var Y=e.toLocaleLowerCase();return"a"===Y||"p"===Y}return i===e}))}(o,M)||o.length<=M.length)return e;var c=function(t,e){var l;return(null===(l=t.substring(e).match(u))||void 0===l?void 0:l[0])||""}(o,M.length);return"".concat(e).concat(c)},c=function(t,e){return!!t&&!!e&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()},d=function(t,e){return c(t,e)&&(null==t?void 0:t.getDate())===(null==e?void 0:e.getDate())},m=function(t,e){return t&&e?t<e?t:e:t||e},f=function(t,e){return t&&e?t>e?t:e:t||e},h=[{id:1,title:"Jan",fullTitle:"January"},{id:2,title:"Feb",fullTitle:"February"},{id:3,title:"Mar",fullTitle:"March"},{id:4,title:"Apr",fullTitle:"April"},{id:5,title:"May",fullTitle:"May"},{id:6,title:"Jun",fullTitle:"June"},{id:7,title:"Jul",fullTitle:"July"},{id:8,title:"Aug",fullTitle:"August"},{id:9,title:"Sep",fullTitle:"September"},{id:10,title:"Oct",fullTitle:"October"},{id:11,title:"Nov",fullTitle:"November"},{id:12,title:"Dec",fullTitle:"December"}];export{l as DefaultFormatByType,n as DefaultFormatByTypeRange,a as InputAutocompleteFormats,o as InputParseFormats,h as MonthOptions,e as applyOffsetSeconds,M as autocompleteValue,i as getDefaultFormat,f as getMaxDate,m as getMinDate,d as isSameDay,c as isSameMonth};
1
+ var t={date:"DD MMM YYYY",dateTime:"DD MMM YYYY hh:mm A",month:"MMMM YYYY"},e={date:"DD/MM/YYYY",dateTime:"DD/MM/YYYY hh:mm A",month:"MMM YYYY"},l=function(l,n){return(n?e:t)[l]},n=["D","M","Y","h","m","s","S"],i=[].concat(n,["A"]),u=new RegExp("^([^".concat(i.join(""),"]+)"),"gi"),Y={month:"MM/YYYY",date:"DD/MM/YYYY",dateTime:"DD/MM/YYYY hh:mm A"},r={month:[Y.month,"MMMM YYYY","MMM YYYY"],date:[Y.date,"D/M/YYYY"],dateTime:[Y.dateTime,"D/M/YYYY hh:mm A"]},a=function(t){var e=t.value,l=t.type,i=t.range,r=t.prevValue,a=Y[l],o=i?"".concat(a," - ").concat(a):a,M=e.toLocaleLowerCase().replace(/([ap])m/gi,"$1");if(e.length<=r.length||!function(t,e){return e.length<=t.length&&e.split("").every((function(e,l){var i,u=t[l];if(n.includes(u))return null==(i=e)?void 0:i.match(/\d/);if("A"===u){var Y=e.toLocaleLowerCase();return"a"===Y||"p"===Y}return u===e}))}(o,M)||o.length<=M.length)return e;var c=function(t,e){var l;return(null===(l=t.substring(e).match(u))||void 0===l?void 0:l[0])||""}(o,M.length);return"".concat(e).concat(c)},o=function(t,e){return!!t&&!!e&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()},M=function(t,e){return o(t,e)&&(null==t?void 0:t.getDate())===(null==e?void 0:e.getDate())},c=function(t,e){return t&&e?t<e?t:e:t||e},d=function(t,e){return t&&e?t>e?t:e:t||e},h=[{id:1,title:"Jan",fullTitle:"January"},{id:2,title:"Feb",fullTitle:"February"},{id:3,title:"Mar",fullTitle:"March"},{id:4,title:"Apr",fullTitle:"April"},{id:5,title:"May",fullTitle:"May"},{id:6,title:"Jun",fullTitle:"June"},{id:7,title:"Jul",fullTitle:"July"},{id:8,title:"Aug",fullTitle:"August"},{id:9,title:"Sep",fullTitle:"September"},{id:10,title:"Oct",fullTitle:"October"},{id:11,title:"Nov",fullTitle:"November"},{id:12,title:"Dec",fullTitle:"December"}],g=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),(null==e?void 0:e.getHours())||0,(null==e?void 0:e.getMinutes())||0,(null==e?void 0:e.getSeconds())||0)};export{t as DefaultFormatByType,e as DefaultFormatByTypeRange,Y as InputAutocompleteFormats,r as InputParseFormats,h as MonthOptions,a as autocompleteValue,g as getDateWithSameTime,l as getDefaultFormat,d as getMaxDate,c as getMinDate,M as isSameDay,o as isSameMonth};
2
2
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../../src/componentsV2/DatePicker/utils.tsx"],"sourcesContent":["import moment from 'moment';\n\nexport type DatePickerType = 'date' | 'dateTime' | 'month';\n\nexport type DatePickerValue<IsRange extends boolean | undefined = false> = IsRange extends\n | undefined\n | false\n ? Date | undefined\n : [Date, Date] | undefined;\n\nexport type DatePickerChangeHandler<IsRange extends boolean | undefined = false> = (\n value: DatePickerValue<IsRange>\n) => void;\n\n// startDate - initial state, no start date selected\n// startTime - start date selected, no time selected\n// endDate - start done, no end date selected\n// endTime - end date selected, no time selected\nexport type RangeSelectionStep = 'startDate' | 'startTime' | 'endDate' | 'endTime';\n\nexport const applyOffsetSeconds = (date: Date, offset: number) =>\n moment(date).startOf('day').add(offset, 'seconds').toDate();\n\nexport const DefaultFormatByType: Record<DatePickerType, string> = {\n date: 'DD MMM YYYY',\n dateTime: 'DD MMM YYYY hh:mm A',\n month: 'MMMM YYYY',\n};\n\nexport const DefaultFormatByTypeRange: Record<DatePickerType, string> = {\n date: 'DD/MM/YYYY',\n dateTime: 'DD/MM/YYYY hh:mm A',\n month: 'MMM YYYY',\n};\n\nexport const getDefaultFormat = (type: DatePickerType, range?: boolean) => {\n const map = range ? DefaultFormatByTypeRange : DefaultFormatByType;\n return map[type];\n};\n\nconst NumericLetters = ['D', 'M', 'Y', 'h', 'm', 's', 'S'];\nconst AllLetters = [...NumericLetters, 'A'];\nconst GetSeparatorRegex = new RegExp(`^([^${AllLetters.join('')}]+)`, 'gi');\n\n// These formats should be composed only of `AllLetters` as placeholders only\nexport const InputAutocompleteFormats: Record<DatePickerType, string> = {\n month: 'MM/YYYY',\n date: 'DD/MM/YYYY',\n dateTime: 'DD/MM/YYYY hh:mm A',\n};\n\nexport const InputParseFormats: Record<DatePickerType, string[]> = {\n month: [InputAutocompleteFormats.month, 'MMMM YYYY', 'MMM YYYY'],\n date: [InputAutocompleteFormats.date, 'D/M/YYYY'],\n dateTime: [InputAutocompleteFormats.dateTime, 'D/M/YYYY hh:mm A'],\n};\n\nconst isDigit = (symbol?: string) => symbol?.match(/\\d/);\n\nconst isInFormatSoFar = (format: string, value: string) => {\n if (value.length <= format.length) {\n const valueArr = value.split('');\n\n return valueArr.every((valueChar, pos) => {\n const formatChar = format[pos];\n\n if (NumericLetters.includes(formatChar)) {\n return isDigit(valueChar);\n }\n\n if (formatChar === 'A') {\n const lcChar = valueChar.toLocaleLowerCase();\n return lcChar === 'a' || lcChar === 'p';\n }\n\n return formatChar === valueChar;\n });\n }\n\n return false;\n};\n\nconst getSeparator = (format: string, startIndex: number) => {\n return format.substring(startIndex).match(GetSeparatorRegex)?.[0] || '';\n};\n\nexport const autocompleteValue = ({\n value,\n type,\n range,\n prevValue,\n}: {\n type: DatePickerType;\n range?: boolean;\n value: string;\n prevValue: string;\n}) => {\n const formatPart = InputAutocompleteFormats[type];\n const format = range ? `${formatPart} - ${formatPart}` : formatPart;\n\n const preparedValue = value.toLocaleLowerCase().replace(/([ap])m/gi, '$1');\n\n if (\n value.length <= prevValue.length ||\n !isInFormatSoFar(format, preparedValue) ||\n format.length <= preparedValue.length\n ) {\n return value;\n }\n\n // Only autocomplete if user types something\n // Check if conforms to format so far\n // Adding separators if needed\n const separator = getSeparator(format, preparedValue.length);\n\n return `${value}${separator}`;\n};\n\nexport const isSameMonth = (a?: Date, b?: Date) =>\n !!a && !!b && a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth();\n\nexport const isSameDay = (a?: Date, b?: Date) => isSameMonth(a, b) && a?.getDate() === b?.getDate();\n\nexport const getMinDate = (a?: Date, b?: Date) => {\n if (a && b) {\n return a < b ? a : b;\n }\n\n return a || b;\n};\n\nexport const getMaxDate = (a?: Date, b?: Date) => {\n if (a && b) {\n return a > b ? a : b;\n }\n\n return a || b;\n};\n\nexport const MonthOptions = [\n { id: 1, title: 'Jan', fullTitle: 'January' },\n { id: 2, title: 'Feb', fullTitle: 'February' },\n { id: 3, title: 'Mar', fullTitle: 'March' },\n { id: 4, title: 'Apr', fullTitle: 'April' },\n { id: 5, title: 'May', fullTitle: 'May' },\n { id: 6, title: 'Jun', fullTitle: 'June' },\n { id: 7, title: 'Jul', fullTitle: 'July' },\n { id: 8, title: 'Aug', fullTitle: 'August' },\n { id: 9, title: 'Sep', fullTitle: 'September' },\n { id: 10, title: 'Oct', fullTitle: 'October' },\n { id: 11, title: 'Nov', fullTitle: 'November' },\n { id: 12, title: 'Dec', fullTitle: 'December' },\n];\n\nexport type DatePickerCalendarView = 'year' | 'month';\n"],"names":["applyOffsetSeconds","date","offset","moment","startOf","add","toDate","DefaultFormatByType","dateTime","month","DefaultFormatByTypeRange","getDefaultFormat","type","range","NumericLetters","AllLetters","concat","GetSeparatorRegex","RegExp","join","InputAutocompleteFormats","InputParseFormats","autocompleteValue","_ref","value","prevValue","formatPart","format","preparedValue","toLocaleLowerCase","replace","length","split","every","valueChar","pos","symbol","formatChar","includes","match","lcChar","isInFormatSoFar","separator","startIndex","_format$substring$mat","substring","getSeparator","isSameMonth","a","b","getFullYear","getMonth","isSameDay","getDate","getMinDate","getMaxDate","MonthOptions","id","title","fullTitle"],"mappings":"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"}
1
+ {"version":3,"file":"utils.js","sources":["../../../src/componentsV2/DatePicker/utils.tsx"],"sourcesContent":["export type DatePickerType = 'date' | 'dateTime' | 'month';\n\nexport type DatePickerValue<IsRange extends boolean | undefined = false> = IsRange extends\n | undefined\n | false\n ? Date | undefined\n : [Date, Date] | undefined;\n\nexport type DatePickerChangeHandler<IsRange extends boolean | undefined = false> = (\n value: DatePickerValue<IsRange>\n) => void;\n\n// startDate - initial state, no start date selected\n// endDate - start done, no end date selected\nexport type RangeSelectionStep = 'startDate' | 'endDate';\n\nexport const DefaultFormatByType: Record<DatePickerType, string> = {\n date: 'DD MMM YYYY',\n dateTime: 'DD MMM YYYY hh:mm A',\n month: 'MMMM YYYY',\n};\n\nexport const DefaultFormatByTypeRange: Record<DatePickerType, string> = {\n date: 'DD/MM/YYYY',\n dateTime: 'DD/MM/YYYY hh:mm A',\n month: 'MMM YYYY',\n};\n\nexport const getDefaultFormat = (type: DatePickerType, range?: boolean) => {\n const map = range ? DefaultFormatByTypeRange : DefaultFormatByType;\n return map[type];\n};\n\nconst NumericLetters = ['D', 'M', 'Y', 'h', 'm', 's', 'S'];\nconst AllLetters = [...NumericLetters, 'A'];\nconst GetSeparatorRegex = new RegExp(`^([^${AllLetters.join('')}]+)`, 'gi');\n\n// These formats should be composed only of `AllLetters` as placeholders only\nexport const InputAutocompleteFormats: Record<DatePickerType, string> = {\n month: 'MM/YYYY',\n date: 'DD/MM/YYYY',\n dateTime: 'DD/MM/YYYY hh:mm A',\n};\n\nexport const InputParseFormats: Record<DatePickerType, string[]> = {\n month: [InputAutocompleteFormats.month, 'MMMM YYYY', 'MMM YYYY'],\n date: [InputAutocompleteFormats.date, 'D/M/YYYY'],\n dateTime: [InputAutocompleteFormats.dateTime, 'D/M/YYYY hh:mm A'],\n};\n\nconst isDigit = (symbol?: string) => symbol?.match(/\\d/);\n\nconst isInFormatSoFar = (format: string, value: string) => {\n if (value.length <= format.length) {\n const valueArr = value.split('');\n\n return valueArr.every((valueChar, pos) => {\n const formatChar = format[pos];\n\n if (NumericLetters.includes(formatChar)) {\n return isDigit(valueChar);\n }\n\n if (formatChar === 'A') {\n const lcChar = valueChar.toLocaleLowerCase();\n return lcChar === 'a' || lcChar === 'p';\n }\n\n return formatChar === valueChar;\n });\n }\n\n return false;\n};\n\nconst getSeparator = (format: string, startIndex: number) => {\n return format.substring(startIndex).match(GetSeparatorRegex)?.[0] || '';\n};\n\nexport const autocompleteValue = ({\n value,\n type,\n range,\n prevValue,\n}: {\n type: DatePickerType;\n range?: boolean;\n value: string;\n prevValue: string;\n}) => {\n const formatPart = InputAutocompleteFormats[type];\n const format = range ? `${formatPart} - ${formatPart}` : formatPart;\n\n const preparedValue = value.toLocaleLowerCase().replace(/([ap])m/gi, '$1');\n\n if (\n value.length <= prevValue.length ||\n !isInFormatSoFar(format, preparedValue) ||\n format.length <= preparedValue.length\n ) {\n return value;\n }\n\n // Only autocomplete if user types something\n // Check if conforms to format so far\n // Adding separators if needed\n const separator = getSeparator(format, preparedValue.length);\n\n return `${value}${separator}`;\n};\n\nexport const isSameMonth = (a?: Date, b?: Date) =>\n !!a && !!b && a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth();\n\nexport const isSameDay = (a?: Date, b?: Date) => isSameMonth(a, b) && a?.getDate() === b?.getDate();\n\nexport const getMinDate = (a?: Date, b?: Date) => {\n if (a && b) {\n return a < b ? a : b;\n }\n\n return a || b;\n};\n\nexport const getMaxDate = (a?: Date, b?: Date) => {\n if (a && b) {\n return a > b ? a : b;\n }\n\n return a || b;\n};\n\nexport const MonthOptions = [\n { id: 1, title: 'Jan', fullTitle: 'January' },\n { id: 2, title: 'Feb', fullTitle: 'February' },\n { id: 3, title: 'Mar', fullTitle: 'March' },\n { id: 4, title: 'Apr', fullTitle: 'April' },\n { id: 5, title: 'May', fullTitle: 'May' },\n { id: 6, title: 'Jun', fullTitle: 'June' },\n { id: 7, title: 'Jul', fullTitle: 'July' },\n { id: 8, title: 'Aug', fullTitle: 'August' },\n { id: 9, title: 'Sep', fullTitle: 'September' },\n { id: 10, title: 'Oct', fullTitle: 'October' },\n { id: 11, title: 'Nov', fullTitle: 'November' },\n { id: 12, title: 'Dec', fullTitle: 'December' },\n];\n\nexport type DatePickerCalendarView = 'year' | 'month';\n\nexport const getDateWithSameTime = (date: Date, timeDate?: Date) =>\n new Date(\n date.getFullYear(),\n date.getMonth(),\n date.getDate(),\n timeDate?.getHours() || 0,\n timeDate?.getMinutes() || 0,\n timeDate?.getSeconds() || 0\n );\n"],"names":["DefaultFormatByType","date","dateTime","month","DefaultFormatByTypeRange","getDefaultFormat","type","range","NumericLetters","AllLetters","concat","GetSeparatorRegex","RegExp","join","InputAutocompleteFormats","InputParseFormats","autocompleteValue","_ref","value","prevValue","formatPart","format","preparedValue","toLocaleLowerCase","replace","length","split","every","valueChar","pos","symbol","formatChar","includes","match","lcChar","isInFormatSoFar","separator","startIndex","_format$substring$mat","substring","getSeparator","isSameMonth","a","b","getFullYear","getMonth","isSameDay","getDate","getMinDate","getMaxDate","MonthOptions","id","title","fullTitle","getDateWithSameTime","timeDate","Date","getHours","getMinutes","getSeconds"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/objectWithoutProperties";import{forwardRef as c}from"react";import{ButtonIcon as i}from"../ButtonIcon/ButtonIcon.js";import{DragIcon as n}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{jsx as t}from"react/jsx-runtime";var r=["size"];function m(o,s){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),c.push.apply(c,i)}return c}function e(s){for(var c=1;c<arguments.length;c++){var i=null!=arguments[c]?arguments[c]:{};c%2?m(Object(i),!0).forEach((function(c){o(s,c,i[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var p=c((function(o,c){var m=o.size,p=void 0===m?"medium":m,u=s(o,r);return t(i,e(e({},u),{},{size:p,type:"tertiaryBg",disableFocusState:!0,ref:c,children:t(n,{})}))}));export{p as DragHandle};
1
+ import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/objectWithoutProperties";import{forwardRef as c}from"react";import{ButtonIcon as i}from"../ButtonIcon/ButtonIcon.js";import{DragIcon as n}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{jsx as t}from"react/jsx-runtime";var r=["size"];function m(o,s){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),c.push.apply(c,i)}return c}function e(s){for(var c=1;c<arguments.length;c++){var i=null!=arguments[c]?arguments[c]:{};c%2?m(Object(i),!0).forEach((function(c){o(s,c,i[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var p=c((function(o,c){var m=o.size,p=void 0===m?"medium":m,u=s(o,r);return t(i,e(e({},u),{},{size:p,type:"tertiaryBg",disableFocusState:!0,ref:c,children:t(n,{})}))}));export{p as DragHandle};
2
2
  //# sourceMappingURL=DragHandle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DragHandle.js","sources":["../../../src/componentsV2/DragHandle/DragHandle.tsx"],"sourcesContent":["import { forwardRef } from 'react';\n\nimport { ButtonIcon, ButtonIconProps } from '../ButtonIcon';\nimport { DragIcon } from '../../icons';\nimport { InferComponentRefType } from '../types';\n\nexport type DragHandleProps = {\n onClick?: ButtonIconProps['onClick'];\n onMouseDown?: ButtonIconProps['onMouseDown'];\n onMouseUp?: ButtonIconProps['onMouseUp'];\n size?: ButtonIconProps['size'];\n disabled?: ButtonIconProps['disabled'];\n\n className?: string;\n testId?: string;\n};\n\nexport const DragHandle = forwardRef<InferComponentRefType<typeof ButtonIcon>, DragHandleProps>(\n ({ size = 'medium', ...rest }, ref) => {\n return (\n <ButtonIcon {...rest} size={size} type=\"tertiaryBg\" disableFocusState ref={ref}>\n <DragIcon />\n </ButtonIcon>\n );\n }\n);\n"],"names":["DragHandle","forwardRef","_ref","ref","_ref$size","size","rest","_objectWithoutProperties","_excluded","_jsx","ButtonIcon","_objectSpread","type","disableFocusState","children","DragIcon"],"mappings":"4jJAiBaA,EAAaC,GACxB,SAAAC,EAA+BC,GAAQ,IAAAC,EAAAF,EAApCG,KAAAA,aAAO,SAAQD,EAAKE,EAAIC,EAAAL,EAAAM,GACzB,OACEC,EAACC,EAAUC,EAAAA,EAAA,GAAKL,GAAI,GAAA,CAAED,KAAMA,EAAMO,KAAK,aAAaC,mBAAiB,EAACV,IAAKA,EAAIW,SAC7EL,EAACM,EAAQ,MAGf"}
1
+ {"version":3,"file":"DragHandle.js","sources":["../../../src/componentsV2/DragHandle/DragHandle.tsx"],"sourcesContent":["import { forwardRef } from 'react';\n\nimport { ButtonIcon, ButtonIconProps } from '../ButtonIcon';\nimport { DragIcon } from '../../icons';\nimport { InferComponentRefType } from '../types';\n\nexport type DragHandleProps = {\n onClick?: ButtonIconProps['onClick'];\n onMouseDown?: ButtonIconProps['onMouseDown'];\n onMouseUp?: ButtonIconProps['onMouseUp'];\n size?: ButtonIconProps['size'];\n disabled?: ButtonIconProps['disabled'];\n\n className?: string;\n testId?: string;\n};\n\nexport const DragHandle = forwardRef<InferComponentRefType<typeof ButtonIcon>, DragHandleProps>(\n ({ size = 'medium', ...rest }, ref) => {\n return (\n <ButtonIcon {...rest} size={size} type=\"tertiaryBg\" disableFocusState ref={ref}>\n <DragIcon />\n </ButtonIcon>\n );\n }\n);\n"],"names":["DragHandle","forwardRef","_ref","ref","_ref$size","size","rest","_objectWithoutProperties","_excluded","_jsx","ButtonIcon","_objectSpread","type","disableFocusState","children","DragIcon"],"mappings":"mqJAiBaA,EAAaC,GACxB,SAAAC,EAA+BC,GAAQ,IAAAC,EAAAF,EAApCG,KAAAA,aAAO,SAAQD,EAAKE,EAAIC,EAAAL,EAAAM,GACzB,OACEC,EAACC,EAAUC,EAAAA,EAAA,GAAKL,GAAI,GAAA,CAAED,KAAMA,EAAMO,KAAK,aAAaC,mBAAiB,EAACV,IAAKA,EAAIW,SAC7EL,EAACM,EAAQ,MAGf"}
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import{useDropzone as s}from"react-dropzone";import c from"classnames";import{Text as i}from"../Text/Text.js";import{Button as n}from"../Button/Button.js";import{parseAccept as t,formatDescription as r}from"./utils.js";import e from"./FilesDropzone.scss.js";import{FileAdditionOne as m}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import{CautionFilledCustomIcon as p}from"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{jsxs as u,jsx as a,Fragment as l}from"react/jsx-runtime";function j(o,s){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),c.push.apply(c,i)}return c}function I(s){for(var c=1;c<arguments.length;c++){var i=null!=arguments[c]?arguments[c]:{};c%2?j(Object(i),!0).forEach((function(c){o(s,c,i[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var d=function(o){var j=o.multiple,d=o.children,h=o.accept,b=o.onDrop,O=o.className,f=o.maxFiles,C=o.maxSize,F=o.error,g=o.disabled,P=o.testId,v=t(h),y=v.mimetypes,D=v.extensions,x=y.length||D.length?I({"*/*":D},Object.fromEntries(y.map((function(o){return[o,[]]})))):void 0,z=r(D,C),A=s({onDrop:b,multiple:j,accept:x,maxFiles:f,maxSize:C,disabled:g}),S=A.getRootProps,T=A.getInputProps,k=A.isDragActive;return u("div",{className:c(e.root,O),"data-testid":P,children:[u("div",I(I({},S()),{},{className:c(e.dropzone,g&&e.disabled,k&&e.active),children:[a("input",I({},T())),d||u(l,{children:[a(m,{size:24,className:e.icon}),a(i,{size:14,color:g?"T9":"T6",children:"Drag & Drop your file here or"}),a(n,{type:"tertiary",size:"small",disabled:g,className:e.uploadButton,children:"Choose file"})]})]})),!F&&z&&a(i,{size:14,color:g?"T9":"T6",className:e.description,children:z}),F&&u(i,{size:14,className:e.error,children:[a(p,{size:16}),F]})]})};export{d as FilesDropzone};
1
+ import o from"@babel/runtime/helpers/defineProperty";import{useDropzone as s}from"react-dropzone";import c from"classnames";import{Text as i}from"../Text/Text.js";import{Button as n}from"../Button/Button.js";import{parseAccept as t,formatDescription as r}from"./utils.js";import e from"./FilesDropzone.scss.js";import{FileAdditionOne as m}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import{CautionFilledCustomIcon as p}from"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{jsxs as u,jsx as a,Fragment as l}from"react/jsx-runtime";function j(o,s){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),c.push.apply(c,i)}return c}function I(s){for(var c=1;c<arguments.length;c++){var i=null!=arguments[c]?arguments[c]:{};c%2?j(Object(i),!0).forEach((function(c){o(s,c,i[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var d=function(o){var j=o.multiple,d=o.children,O=o.accept,h=o.onDrop,b=o.className,f=o.maxFiles,C=o.maxSize,P=o.error,F=o.disabled,g=o.testId,v=t(O),y=v.mimetypes,D=v.extensions,x=y.length||D.length?I({"*/*":D},Object.fromEntries(y.map((function(o){return[o,[]]})))):void 0,z=r(D,C),A=s({onDrop:h,multiple:j,accept:x,maxFiles:f,maxSize:C,disabled:F}),S=A.getRootProps,T=A.getInputProps,k=A.isDragActive;return u("div",{className:c(e.root,b),"data-testid":g,children:[u("div",I(I({},S()),{},{className:c(e.dropzone,F&&e.disabled,k&&e.active),children:[a("input",I({},T())),d||u(l,{children:[a(m,{size:24,className:e.icon}),a(i,{size:14,color:F?"T9":"T6",children:"Drag & Drop your file here or"}),a(n,{type:"tertiary",size:"small",disabled:F,className:e.uploadButton,children:"Choose file"})]})]})),!P&&z&&a(i,{size:14,color:F?"T9":"T6",className:e.description,children:z}),P&&u(i,{size:14,className:e.error,children:[a(p,{size:16}),P]})]})};export{d as FilesDropzone};
2
2
  //# sourceMappingURL=FilesDropzone.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilesDropzone.js","sources":["../../../src/componentsV2/FilesDropzone/FilesDropzone.tsx"],"sourcesContent":["import { Accept, DropzoneOptions, useDropzone } from 'react-dropzone';\nimport classNames from 'classnames';\nimport { ReactNode } from 'react';\n\nimport { Text } from '../Text';\nimport { Button } from '../Button';\n\nimport { formatDescription, parseAccept } from './utils';\n\nimport styles from './FilesDropzone.scss';\n\nimport { CautionFilledCustomIcon, FileAdditionOne } from '~/icons';\n\nexport type FilesDropzoneProps = {\n /**\n * Handles file drop\n */\n onDrop?: DropzoneOptions['onDrop'];\n\n /**\n * Component content\n */\n children?: ReactNode;\n\n /**\n * Controls if dropzone accepts multiple files\n */\n multiple?: boolean;\n\n /**\n * Array of or comma-separated MIME types/File Extensions to accept\n *\n * NB: file extensions <b>must</b> start with `.`<br/>, otherwise they will be treated as MIME types\n * file extensions will be shown below the dropzone in the description\n *\n * Example:<br/>\n * `.xsl,image/*,.csv`<br/>\n * Will accept any file with `xsl` or `csv` extensions, and also - any file with `image/...` MIME type\n */\n accept?: string[] | string;\n\n /**\n * Maximum files to accept\n */\n maxFiles?: number;\n\n /**\n * Maximum file size to accept\n */\n maxSize?: number;\n disabled?: boolean;\n\n error?: ReactNode;\n\n className?: string;\n testId?: string;\n};\n\nexport const FilesDropzone = ({\n multiple,\n children,\n accept,\n onDrop,\n className,\n maxFiles,\n maxSize,\n error,\n disabled,\n testId,\n}: FilesDropzoneProps) => {\n const { mimetypes, extensions } = parseAccept(accept);\n\n const acceptObject: Accept | undefined =\n mimetypes.length || extensions.length\n ? {\n '*/*': extensions,\n ...Object.fromEntries(mimetypes.map((mimetype): [string, string[]] => [mimetype, []])),\n }\n : undefined;\n\n const description = formatDescription(extensions, maxSize);\n\n const { getRootProps, getInputProps, isDragActive } = useDropzone({\n onDrop,\n multiple,\n accept: acceptObject,\n maxFiles,\n maxSize,\n disabled,\n });\n\n return (\n <div className={classNames(styles.root, className)} data-testid={testId}>\n <div\n {...getRootProps()}\n className={classNames(\n styles.dropzone,\n disabled && styles.disabled,\n isDragActive && styles.active\n )}\n >\n <input {...getInputProps()} />\n {children || (\n <>\n <FileAdditionOne size={24} className={styles.icon} />\n <Text size={14} color={disabled ? 'T9' : 'T6'}>\n Drag & Drop your file here or\n </Text>\n <Button\n type=\"tertiary\"\n size=\"small\"\n disabled={disabled}\n className={styles.uploadButton}\n >\n Choose file\n </Button>\n </>\n )}\n </div>\n\n {!error && description && (\n <Text size={14} color={disabled ? 'T9' : 'T6'} className={styles.description}>\n {description}\n </Text>\n )}\n\n {error && (\n <Text size={14} className={styles.error}>\n <CautionFilledCustomIcon size={16} />\n {error}\n </Text>\n )}\n </div>\n );\n};\n"],"names":["FilesDropzone","_ref","multiple","children","accept","onDrop","className","maxFiles","maxSize","error","disabled","testId","parseAccept","mimetypes","extensions","acceptObject","length","_objectSpread","Object","fromEntries","map","mimetype","undefined","description","formatDescription","_useDropzone","useDropzone","getRootProps","getInputProps","isDragActive","_jsxs","classNames","styles","root","dropzone","active","_jsx","_Fragment","FileAdditionOne","size","icon","Text","color","Button","type","uploadButton","CautionFilledCustomIcon"],"mappings":"ktJA0DaA,IAAAA,EAAgB,SAWHC,GAAA,IAVxBC,IAAAA,SACAC,IAAAA,SACAC,IAAAA,OACAC,IAAAA,OACAC,IAAAA,UACAC,IAAAA,SACAC,IAAAA,QACAC,IAAAA,MACAC,IAAAA,SACAC,IAAAA,OAEkCC,EAAAA,EAAYR,GAAtCS,IAAAA,UAAWC,IAAAA,WAEbC,EACJF,EAAUG,QAAUF,EAAWE,OAAMC,EAAA,CAE/B,MAAOH,GACJI,OAAOC,YAAYN,EAAUO,KAAI,SAACC,GAAQ,MAAyB,CAACA,EAAU,cAEnFC,EAEAC,EAAcC,EAAkBV,EAAYN,GAElDiB,EAAsDC,EAAY,CAChErB,OAAAA,EACAH,SAAAA,EACAE,OAAQW,EACRR,SAAAA,EACAC,QAAAA,EACAE,SAAAA,IANMiB,IAAAA,aAAcC,IAAAA,cAAeC,IAAAA,aASrC,OACEC,EAAA,MAAA,CAAKxB,UAAWyB,EAAWC,EAAOC,KAAM3B,GAAY,cAAaK,EAAOR,SACtE,CAAA2B,EAAA,MAAAb,EAAAA,EAAA,GACMU,KAAc,GAAA,CAClBrB,UAAWyB,EACTC,EAAOE,SACPxB,GAAYsB,EAAOtB,SACnBmB,GAAgBG,EAAOG,QACvBhC,SAAA,CAEFiC,eAAWR,MACVzB,GACC2B,EAAAO,EAAA,CAAAlC,SAAA,CACEiC,EAACE,EAAe,CAACC,KAAM,GAAIjC,UAAW0B,EAAOQ,OAC7CJ,EAACK,EAAI,CAACF,KAAM,GAAIG,MAAOhC,EAAW,KAAO,KAAKP,SAAA,kCAG9CiC,EAACO,EAAM,CACLC,KAAK,WACLL,KAAK,QACL7B,SAAUA,EACVJ,UAAW0B,EAAOa,aAAa1C,SAAA,wBAQrCM,GAASc,GACTa,EAACK,EAAI,CAACF,KAAM,GAAIG,MAAOhC,EAAW,KAAO,KAAMJ,UAAW0B,EAAOT,YAAYpB,SAC1EoB,IAIJd,GACCqB,EAACW,EAAI,CAACF,KAAM,GAAIjC,UAAW0B,EAAOvB,MAAMN,SAAA,CACtCiC,EAACU,EAAuB,CAACP,KAAM,KAC9B9B,OAKX"}
1
+ {"version":3,"file":"FilesDropzone.js","sources":["../../../src/componentsV2/FilesDropzone/FilesDropzone.tsx"],"sourcesContent":["import { Accept, DropzoneOptions, useDropzone } from 'react-dropzone';\nimport classNames from 'classnames';\nimport { ReactNode } from 'react';\n\nimport { Text } from '../Text';\nimport { Button } from '../Button';\n\nimport { formatDescription, parseAccept } from './utils';\n\nimport styles from './FilesDropzone.scss';\n\nimport { CautionFilledCustomIcon, FileAdditionOne } from '~/icons';\n\nexport type FilesDropzoneProps = {\n /**\n * Handles file drop\n */\n onDrop?: DropzoneOptions['onDrop'];\n\n /**\n * Component content\n */\n children?: ReactNode;\n\n /**\n * Controls if dropzone accepts multiple files\n */\n multiple?: boolean;\n\n /**\n * Array of or comma-separated MIME types/File Extensions to accept\n *\n * NB: file extensions <b>must</b> start with `.`<br/>, otherwise they will be treated as MIME types\n * file extensions will be shown below the dropzone in the description\n *\n * Example:<br/>\n * `.xsl,image/*,.csv`<br/>\n * Will accept any file with `xsl` or `csv` extensions, and also - any file with `image/...` MIME type\n */\n accept?: string[] | string;\n\n /**\n * Maximum files to accept\n */\n maxFiles?: number;\n\n /**\n * Maximum file size to accept\n */\n maxSize?: number;\n disabled?: boolean;\n\n error?: ReactNode;\n\n className?: string;\n testId?: string;\n};\n\nexport const FilesDropzone = ({\n multiple,\n children,\n accept,\n onDrop,\n className,\n maxFiles,\n maxSize,\n error,\n disabled,\n testId,\n}: FilesDropzoneProps) => {\n const { mimetypes, extensions } = parseAccept(accept);\n\n const acceptObject: Accept | undefined =\n mimetypes.length || extensions.length\n ? {\n '*/*': extensions,\n ...Object.fromEntries(mimetypes.map((mimetype): [string, string[]] => [mimetype, []])),\n }\n : undefined;\n\n const description = formatDescription(extensions, maxSize);\n\n const { getRootProps, getInputProps, isDragActive } = useDropzone({\n onDrop,\n multiple,\n accept: acceptObject,\n maxFiles,\n maxSize,\n disabled,\n });\n\n return (\n <div className={classNames(styles.root, className)} data-testid={testId}>\n <div\n {...getRootProps()}\n className={classNames(\n styles.dropzone,\n disabled && styles.disabled,\n isDragActive && styles.active\n )}\n >\n <input {...getInputProps()} />\n {children || (\n <>\n <FileAdditionOne size={24} className={styles.icon} />\n <Text size={14} color={disabled ? 'T9' : 'T6'}>\n Drag & Drop your file here or\n </Text>\n <Button\n type=\"tertiary\"\n size=\"small\"\n disabled={disabled}\n className={styles.uploadButton}\n >\n Choose file\n </Button>\n </>\n )}\n </div>\n\n {!error && description && (\n <Text size={14} color={disabled ? 'T9' : 'T6'} className={styles.description}>\n {description}\n </Text>\n )}\n\n {error && (\n <Text size={14} className={styles.error}>\n <CautionFilledCustomIcon size={16} />\n {error}\n </Text>\n )}\n </div>\n );\n};\n"],"names":["FilesDropzone","_ref","multiple","children","accept","onDrop","className","maxFiles","maxSize","error","disabled","testId","parseAccept","mimetypes","extensions","acceptObject","length","_objectSpread","Object","fromEntries","map","mimetype","undefined","description","formatDescription","_useDropzone","useDropzone","getRootProps","getInputProps","isDragActive","_jsxs","classNames","styles","root","dropzone","active","_jsx","_Fragment","FileAdditionOne","size","icon","Text","color","Button","type","uploadButton","CautionFilledCustomIcon"],"mappings":"yzJA0DaA,IAAAA,EAAgB,SAWHC,GAAA,IAVxBC,IAAAA,SACAC,IAAAA,SACAC,IAAAA,OACAC,IAAAA,OACAC,IAAAA,UACAC,IAAAA,SACAC,IAAAA,QACAC,IAAAA,MACAC,IAAAA,SACAC,IAAAA,OAEkCC,EAAAA,EAAYR,GAAtCS,IAAAA,UAAWC,IAAAA,WAEbC,EACJF,EAAUG,QAAUF,EAAWE,OAAMC,EAAA,CAE/B,MAAOH,GACJI,OAAOC,YAAYN,EAAUO,KAAI,SAACC,GAAQ,MAAyB,CAACA,EAAU,cAEnFC,EAEAC,EAAcC,EAAkBV,EAAYN,GAElDiB,EAAsDC,EAAY,CAChErB,OAAAA,EACAH,SAAAA,EACAE,OAAQW,EACRR,SAAAA,EACAC,QAAAA,EACAE,SAAAA,IANMiB,IAAAA,aAAcC,IAAAA,cAAeC,IAAAA,aASrC,OACEC,EAAA,MAAA,CAAKxB,UAAWyB,EAAWC,EAAOC,KAAM3B,GAAY,cAAaK,EAAOR,SACtE,CAAA2B,EAAA,MAAAb,EAAAA,EAAA,GACMU,KAAc,GAAA,CAClBrB,UAAWyB,EACTC,EAAOE,SACPxB,GAAYsB,EAAOtB,SACnBmB,GAAgBG,EAAOG,QACvBhC,SAAA,CAEFiC,eAAWR,MACVzB,GACC2B,EAAAO,EAAA,CAAAlC,SAAA,CACEiC,EAACE,EAAe,CAACC,KAAM,GAAIjC,UAAW0B,EAAOQ,OAC7CJ,EAACK,EAAI,CAACF,KAAM,GAAIG,MAAOhC,EAAW,KAAO,KAAKP,SAAA,kCAG9CiC,EAACO,EAAM,CACLC,KAAK,WACLL,KAAK,QACL7B,SAAUA,EACVJ,UAAW0B,EAAOa,aAAa1C,SAAA,wBAQrCM,GAASc,GACTa,EAACK,EAAI,CAACF,KAAM,GAAIG,MAAOhC,EAAW,KAAO,KAAMJ,UAAW0B,EAAOT,YAAYpB,SAC1EoB,IAIJd,GACCqB,EAACW,EAAI,CAACF,KAAM,GAAIjC,UAAW0B,EAAOvB,MAAMN,SAAA,CACtCiC,EAACU,EAAuB,CAACP,KAAM,KAC9B9B,OAKX"}
@@ -1,2 +1,2 @@
1
- import o from"classnames";import{FileIcon as s}from"../FileIcon/FileIcon.js";import{Text as c}from"../Text/Text.js";import{TextMiddleTruncated as i}from"../TextMiddleTruncated/TextMiddleTruncated.js";import"../TextMiddleTruncated/TextMiddleTruncated.constants.js";import{LoaderLinear as n}from"../LoaderLinear/LoaderLinear.js";import{ButtonIcon as t}from"../ButtonIcon/ButtonIcon.js";import{Tooltip as m}from"../Tooltip/Tooltip.js";import{formatSizeProgress as r}from"./utils.js";import{PreviewImage as e}from"./PreviewImage.js";import u from"./FilesLoader.scss.js";import{CloseIcon as p,DeleteFourIcon as l,RedoIcon as a}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import{CautionFilledCustomIcon as j}from"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{getIsImage as I}from"../../utils/fileExtension.js";import{jsxs as d,jsx as F,Fragment as C}from"react/jsx-runtime";var h=function(h){var D,v=h.formatProgress,f=h.className,x=h.name,T=h.current,M=h.total,O=h.error,g=h.onCancel,z=h.onReload,A=h.onDelete,B=h.indeterminate,b=h.complete,P=h.testId,k=h.preview,E=v||r,R=!B&&void 0!==M&&void 0!==T,N=R&&M>0?Math.min(100,Math.ceil(T/M*100)):void 0,L="string"==typeof k?k:null==k?void 0:k.name,S=x||L||"",y=null===(D=S.match(/((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])[0-9a-z\u017F\u212A]+)(?:\?(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i))||void 0===D?void 0:D[1];return d("div",{className:o(u.root,f),"data-testid":P,children:[k&&I(y)?F(e,{image:k}):F(s,{name:S,size:Number(u.iconSize)}),d("div",{className:u.content,children:[F(c,{size:14,children:F(i,{children:S})}),!O&&!b&&d(C,{children:[F(n,{className:u.progressBar,value:N}),R&&d("div",{className:u.progressTextContainer,children:[F(c,{size:12,color:"T6",children:E(M,T)}),d(c,{size:12,color:"T6",children:[N,"%"]})]})]}),O&&d(c,{size:14,className:u.error,children:[F(j,{size:16}),O]})]}),g&&!O&&!b&&F(m,{title:"Cancel",children:F(t,{onClick:g,size:"small",children:F(p,{})})}),A&&(O||b)&&F(m,{title:"Remove File",children:F(t,{onClick:A,size:"small",children:F(l,{})})}),z&&O&&F(m,{title:"Reload",children:F(t,{onClick:z,size:"small",children:F(a,{})})})]})};export{h as FilesLoader};
1
+ import o from"classnames";import{FileIcon as s}from"../FileIcon/FileIcon.js";import{Text as c}from"../Text/Text.js";import{TextMiddleTruncated as i}from"../TextMiddleTruncated/TextMiddleTruncated.js";import"../TextMiddleTruncated/TextMiddleTruncated.constants.js";import{LoaderLinear as n}from"../LoaderLinear/LoaderLinear.js";import{ButtonIcon as t}from"../ButtonIcon/ButtonIcon.js";import{Tooltip as m}from"../Tooltip/Tooltip.js";import{formatSizeProgress as r}from"./utils.js";import{PreviewImage as e}from"./PreviewImage.js";import u from"./FilesLoader.scss.js";import{CloseIcon as p,DeleteFourIcon as l,RedoIcon as a}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import{CautionFilledCustomIcon as j}from"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{getIsImage as I}from"../../utils/fileExtension.js";import{jsxs as d,jsx as F,Fragment as C}from"react/jsx-runtime";var h=function(h){var D,v=h.formatProgress,f=h.className,x=h.name,T=h.current,O=h.total,M=h.error,g=h.onCancel,z=h.onReload,A=h.onDelete,B=h.indeterminate,P=h.complete,b=h.testId,k=h.preview,E=v||r,R=!B&&void 0!==O&&void 0!==T,N=R&&O>0?Math.min(100,Math.ceil(T/O*100)):void 0,L="string"==typeof k?k:null==k?void 0:k.name,S=x||L||"",y=null===(D=S.match(/((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])[0-9a-z\u017F\u212A]+)(?:\?(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i))||void 0===D?void 0:D[1];return d("div",{className:o(u.root,f),"data-testid":b,children:[k&&I(y)?F(e,{image:k}):F(s,{name:S,size:Number(u.iconSize)}),d("div",{className:u.content,children:[F(c,{size:14,children:F(i,{children:S})}),!M&&!P&&d(C,{children:[F(n,{className:u.progressBar,value:N}),R&&d("div",{className:u.progressTextContainer,children:[F(c,{size:12,color:"T6",children:E(O,T)}),d(c,{size:12,color:"T6",children:[N,"%"]})]})]}),M&&d(c,{size:14,className:u.error,children:[F(j,{size:16}),M]})]}),g&&!M&&!P&&F(m,{title:"Cancel",children:F(t,{onClick:g,size:"small",children:F(p,{})})}),A&&(M||P)&&F(m,{title:"Remove File",children:F(t,{onClick:A,size:"small",children:F(l,{})})}),z&&M&&F(m,{title:"Reload",children:F(t,{onClick:z,size:"small",children:F(a,{})})})]})};export{h as FilesLoader};
2
2
  //# sourceMappingURL=FilesLoader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilesLoader.js","sources":["../../../src/componentsV2/FilesLoader/FilesLoader.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport classNames from 'classnames';\n\nimport { FileIcon } from '../FileIcon';\nimport { Text } from '../Text';\nimport { TextMiddleTruncated } from '../TextMiddleTruncated';\nimport { LoaderLinear } from '../LoaderLinear';\nimport { ButtonIcon } from '../ButtonIcon';\nimport { Tooltip } from '../Tooltip';\n\nimport { formatSizeProgress } from './utils';\nimport { PreviewImage } from './PreviewImage';\n\nimport styles from './FilesLoader.scss';\n\nimport { CautionFilledCustomIcon, CloseIcon, DeleteFourIcon, RedoIcon } from '~/icons';\nimport { getIsImage } from '~/utils/fileExtension';\n\nexport type FilesLoaderProps = {\n name?: string;\n // ⚠️⚠️⚠️ Used in FilesProcessorProps, update docs if changing this type\n preview?: File | string;\n indeterminate?: boolean;\n complete?: boolean;\n /**\n * Total progress value (bytes by default)\n */\n total?: number;\n /**\n * Current progress value (bytes by default)\n */\n current?: number;\n /**\n * Error to show\n */\n error?: ReactNode;\n /**\n * If exists - displays the \"Delete\" button\n */\n onDelete?: () => void;\n /**\n * If exists - displays the \"Reload\" button on error state\n */\n onReload?: () => void;\n /**\n * If exists - displays the \"Cancel\" button when loading\n */\n onCancel?: () => void;\n /**\n * Allows custom progress units\n *\n * @default formatSizeProgress\n * @param total total progress value\n * @param current current progress value\n */\n formatProgress?: (total?: number, current?: number) => ReactNode;\n className?: string;\n testId?: string;\n};\n\nexport const FilesLoader = ({\n // Can't default to `formatSizeProgress` because it puts the `formatSizeProgress` code in docs which looks bad\n formatProgress: propsFormatProgress,\n className,\n name,\n current,\n total,\n error,\n onCancel,\n onReload,\n onDelete,\n indeterminate,\n complete,\n testId,\n preview,\n}: FilesLoaderProps) => {\n const formatProgress = propsFormatProgress || formatSizeProgress;\n const isDeterminate =\n !indeterminate && typeof total !== 'undefined' && typeof current !== 'undefined';\n const progressPercent =\n isDeterminate && total > 0 ? Math.min(100, Math.ceil((current / total) * 100)) : undefined;\n\n const previewName = typeof preview === 'string' ? preview : preview?.name;\n const shownName = name || previewName || '';\n const extension = shownName.match(/(.[a-z0-9]+)(?:\\?.*)?$/iu)?.[1];\n\n return (\n <div className={classNames(styles.root, className)} data-testid={testId}>\n {preview && getIsImage(extension) ? (\n <PreviewImage image={preview} />\n ) : (\n <FileIcon name={shownName} size={Number(styles.iconSize)} />\n )}\n\n <div className={styles.content}>\n <Text size={14}>\n <TextMiddleTruncated>{shownName}</TextMiddleTruncated>\n </Text>\n\n {!error && !complete && (\n <>\n <LoaderLinear className={styles.progressBar} value={progressPercent} />\n\n {isDeterminate && (\n <div className={styles.progressTextContainer}>\n <Text size={12} color=\"T6\">\n {formatProgress(total, current)}\n </Text>\n\n <Text size={12} color=\"T6\">\n {progressPercent}%\n </Text>\n </div>\n )}\n </>\n )}\n\n {error && (\n <Text size={14} className={styles.error}>\n <CautionFilledCustomIcon size={16} />\n {error}\n </Text>\n )}\n </div>\n\n {onCancel && !error && !complete && (\n <Tooltip title=\"Cancel\">\n <ButtonIcon onClick={onCancel} size=\"small\">\n <CloseIcon />\n </ButtonIcon>\n </Tooltip>\n )}\n\n {onDelete && (error || complete) && (\n <Tooltip title=\"Remove File\">\n <ButtonIcon onClick={onDelete} size=\"small\">\n <DeleteFourIcon />\n </ButtonIcon>\n </Tooltip>\n )}\n\n {onReload && error && (\n <Tooltip title=\"Reload\">\n <ButtonIcon onClick={onReload} size=\"small\">\n <RedoIcon />\n </ButtonIcon>\n </Tooltip>\n )}\n </div>\n );\n};\n"],"names":["FilesLoader","_ref","_shownName$match","propsFormatProgress","formatProgress","className","name","current","total","error","onCancel","onReload","onDelete","indeterminate","complete","testId","preview","formatSizeProgress","isDeterminate","progressPercent","Math","min","ceil","undefined","previewName","shownName","extension","match","_jsxs","classNames","styles","root","children","getIsImage","_jsx","PreviewImage","image","FileIcon","size","Number","iconSize","content","Text","TextMiddleTruncated","_Fragment","LoaderLinear","progressBar","value","progressTextContainer","color","CautionFilledCustomIcon","Tooltip","title","ButtonIcon","onClick","CloseIcon","DeleteFourIcon","RedoIcon"],"mappings":"w+IA4DaA,IAAAA,EAAc,SAeHC,GAAA,IAAAC,EAbNC,IAAhBC,eACAC,IAAAA,UACAC,IAAAA,KACAC,IAAAA,QACAC,IAAAA,MACAC,IAAAA,MACAC,IAAAA,SACAC,IAAAA,SACAC,IAAAA,SACAC,IAAAA,cACAC,IAAAA,SACAC,IAAAA,OACAC,IAAAA,QAEMZ,EAAiBD,GAAuBc,EACxCC,GACHL,QAAkC,IAAVL,QAA4C,IAAZD,EACrDY,EACJD,GAAiBV,EAAQ,EAAIY,KAAKC,IAAI,IAAKD,KAAKE,KAAMf,EAAUC,EAAS,WAAQe,EAE7EC,EAAiC,iBAAZR,EAAuBA,EAAUA,aAAAA,EAAAA,EAASV,KAC/DmB,EAAYnB,GAAQkB,GAAe,GACnCE,EAAuD,QAA3CD,EAAAA,EAAUE,MAAM,wWAA2B,IAAAzB,OAAA,EAA3CA,EAA8C,GAEhE,OACE0B,EAAA,MAAA,CAAKvB,UAAWwB,EAAWC,EAAOC,KAAM1B,GAAY,cAAaU,EAAOiB,SACrEhB,CAAAA,GAAWiB,EAAWP,GACrBQ,EAACC,EAAY,CAACC,MAAOpB,IAErBkB,EAACG,EAAQ,CAAC/B,KAAMmB,EAAWa,KAAMC,OAAOT,EAAOU,YAGjDZ,EAAA,MAAA,CAAKvB,UAAWyB,EAAOW,QAAQT,SAAA,CAC7BE,EAACQ,EAAI,CAACJ,KAAM,GAAGN,SACbE,EAACS,EAAmB,CAAAX,SAAEP,OAGtBhB,IAAUK,GACVc,EAAAgB,EAAA,CAAAZ,SAAA,CACEE,EAACW,EAAY,CAACxC,UAAWyB,EAAOgB,YAAaC,MAAO5B,IAEnDD,GACCU,EAAA,MAAA,CAAKvB,UAAWyB,EAAOkB,sBAAsBhB,SAAA,CAC3CE,EAACQ,EAAI,CAACJ,KAAM,GAAIW,MAAM,KAAIjB,SACvB5B,EAAeI,EAAOD,KAGzBqB,EAACc,EAAI,CAACJ,KAAM,GAAIW,MAAM,KAAIjB,SAAA,CACvBb,EAAe,aAOzBV,GACCmB,EAACc,EAAI,CAACJ,KAAM,GAAIjC,UAAWyB,EAAOrB,MAAMuB,SAAA,CACtCE,EAACgB,EAAuB,CAACZ,KAAM,KAC9B7B,QAKNC,IAAaD,IAAUK,GACtBoB,EAACiB,EAAO,CAACC,MAAM,SAAQpB,SACrBE,EAACmB,EAAU,CAACC,QAAS5C,EAAU4B,KAAK,QAAON,SACzCE,EAACqB,EAAS,QAKf3C,IAAaH,GAASK,IACrBoB,EAACiB,EAAO,CAACC,MAAM,cAAapB,SAC1BE,EAACmB,EAAU,CAACC,QAAS1C,EAAU0B,KAAK,QAAON,SACzCE,EAACsB,EAAc,QAKpB7C,GAAYF,GACXyB,EAACiB,EAAO,CAACC,MAAM,SAAQpB,SACrBE,EAACmB,EAAU,CAACC,QAAS3C,EAAU2B,KAAK,QAAON,SACzCE,EAACuB,EAAQ,UAMrB"}
1
+ {"version":3,"file":"FilesLoader.js","sources":["../../../src/componentsV2/FilesLoader/FilesLoader.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport classNames from 'classnames';\n\nimport { FileIcon } from '../FileIcon';\nimport { Text } from '../Text';\nimport { TextMiddleTruncated } from '../TextMiddleTruncated';\nimport { LoaderLinear } from '../LoaderLinear';\nimport { ButtonIcon } from '../ButtonIcon';\nimport { Tooltip } from '../Tooltip';\n\nimport { formatSizeProgress } from './utils';\nimport { PreviewImage } from './PreviewImage';\n\nimport styles from './FilesLoader.scss';\n\nimport { CautionFilledCustomIcon, CloseIcon, DeleteFourIcon, RedoIcon } from '~/icons';\nimport { getIsImage } from '~/utils/fileExtension';\n\nexport type FilesLoaderProps = {\n name?: string;\n // ⚠️⚠️⚠️ Used in FilesProcessorProps, update docs if changing this type\n preview?: File | string;\n indeterminate?: boolean;\n complete?: boolean;\n /**\n * Total progress value (bytes by default)\n */\n total?: number;\n /**\n * Current progress value (bytes by default)\n */\n current?: number;\n /**\n * Error to show\n */\n error?: ReactNode;\n /**\n * If exists - displays the \"Delete\" button\n */\n onDelete?: () => void;\n /**\n * If exists - displays the \"Reload\" button on error state\n */\n onReload?: () => void;\n /**\n * If exists - displays the \"Cancel\" button when loading\n */\n onCancel?: () => void;\n /**\n * Allows custom progress units\n *\n * @default formatSizeProgress\n * @param total total progress value\n * @param current current progress value\n */\n formatProgress?: (total?: number, current?: number) => ReactNode;\n className?: string;\n testId?: string;\n};\n\nexport const FilesLoader = ({\n // Can't default to `formatSizeProgress` because it puts the `formatSizeProgress` code in docs which looks bad\n formatProgress: propsFormatProgress,\n className,\n name,\n current,\n total,\n error,\n onCancel,\n onReload,\n onDelete,\n indeterminate,\n complete,\n testId,\n preview,\n}: FilesLoaderProps) => {\n const formatProgress = propsFormatProgress || formatSizeProgress;\n const isDeterminate =\n !indeterminate && typeof total !== 'undefined' && typeof current !== 'undefined';\n const progressPercent =\n isDeterminate && total > 0 ? Math.min(100, Math.ceil((current / total) * 100)) : undefined;\n\n const previewName = typeof preview === 'string' ? preview : preview?.name;\n const shownName = name || previewName || '';\n const extension = shownName.match(/(.[a-z0-9]+)(?:\\?.*)?$/iu)?.[1];\n\n return (\n <div className={classNames(styles.root, className)} data-testid={testId}>\n {preview && getIsImage(extension) ? (\n <PreviewImage image={preview} />\n ) : (\n <FileIcon name={shownName} size={Number(styles.iconSize)} />\n )}\n\n <div className={styles.content}>\n <Text size={14}>\n <TextMiddleTruncated>{shownName}</TextMiddleTruncated>\n </Text>\n\n {!error && !complete && (\n <>\n <LoaderLinear className={styles.progressBar} value={progressPercent} />\n\n {isDeterminate && (\n <div className={styles.progressTextContainer}>\n <Text size={12} color=\"T6\">\n {formatProgress(total, current)}\n </Text>\n\n <Text size={12} color=\"T6\">\n {progressPercent}%\n </Text>\n </div>\n )}\n </>\n )}\n\n {error && (\n <Text size={14} className={styles.error}>\n <CautionFilledCustomIcon size={16} />\n {error}\n </Text>\n )}\n </div>\n\n {onCancel && !error && !complete && (\n <Tooltip title=\"Cancel\">\n <ButtonIcon onClick={onCancel} size=\"small\">\n <CloseIcon />\n </ButtonIcon>\n </Tooltip>\n )}\n\n {onDelete && (error || complete) && (\n <Tooltip title=\"Remove File\">\n <ButtonIcon onClick={onDelete} size=\"small\">\n <DeleteFourIcon />\n </ButtonIcon>\n </Tooltip>\n )}\n\n {onReload && error && (\n <Tooltip title=\"Reload\">\n <ButtonIcon onClick={onReload} size=\"small\">\n <RedoIcon />\n </ButtonIcon>\n </Tooltip>\n )}\n </div>\n );\n};\n"],"names":["FilesLoader","_ref","_shownName$match","propsFormatProgress","formatProgress","className","name","current","total","error","onCancel","onReload","onDelete","indeterminate","complete","testId","preview","formatSizeProgress","isDeterminate","progressPercent","Math","min","ceil","undefined","previewName","shownName","extension","match","_jsxs","classNames","styles","root","children","getIsImage","_jsx","PreviewImage","image","FileIcon","size","Number","iconSize","content","Text","TextMiddleTruncated","_Fragment","LoaderLinear","progressBar","value","progressTextContainer","color","CautionFilledCustomIcon","Tooltip","title","ButtonIcon","onClick","CloseIcon","DeleteFourIcon","RedoIcon"],"mappings":"+kJA4DaA,IAAAA,EAAc,SAeHC,GAAA,IAAAC,EAbNC,IAAhBC,eACAC,IAAAA,UACAC,IAAAA,KACAC,IAAAA,QACAC,IAAAA,MACAC,IAAAA,MACAC,IAAAA,SACAC,IAAAA,SACAC,IAAAA,SACAC,IAAAA,cACAC,IAAAA,SACAC,IAAAA,OACAC,IAAAA,QAEMZ,EAAiBD,GAAuBc,EACxCC,GACHL,QAAkC,IAAVL,QAA4C,IAAZD,EACrDY,EACJD,GAAiBV,EAAQ,EAAIY,KAAKC,IAAI,IAAKD,KAAKE,KAAMf,EAAUC,EAAS,WAAQe,EAE7EC,EAAiC,iBAAZR,EAAuBA,EAAUA,aAAAA,EAAAA,EAASV,KAC/DmB,EAAYnB,GAAQkB,GAAe,GACnCE,EAAuD,QAA3CD,EAAAA,EAAUE,MAAM,wWAA2B,IAAAzB,OAAA,EAA3CA,EAA8C,GAEhE,OACE0B,EAAA,MAAA,CAAKvB,UAAWwB,EAAWC,EAAOC,KAAM1B,GAAY,cAAaU,EAAOiB,SACrEhB,CAAAA,GAAWiB,EAAWP,GACrBQ,EAACC,EAAY,CAACC,MAAOpB,IAErBkB,EAACG,EAAQ,CAAC/B,KAAMmB,EAAWa,KAAMC,OAAOT,EAAOU,YAGjDZ,EAAA,MAAA,CAAKvB,UAAWyB,EAAOW,QAAQT,SAAA,CAC7BE,EAACQ,EAAI,CAACJ,KAAM,GAAGN,SACbE,EAACS,EAAmB,CAAAX,SAAEP,OAGtBhB,IAAUK,GACVc,EAAAgB,EAAA,CAAAZ,SAAA,CACEE,EAACW,EAAY,CAACxC,UAAWyB,EAAOgB,YAAaC,MAAO5B,IAEnDD,GACCU,EAAA,MAAA,CAAKvB,UAAWyB,EAAOkB,sBAAsBhB,SAAA,CAC3CE,EAACQ,EAAI,CAACJ,KAAM,GAAIW,MAAM,KAAIjB,SACvB5B,EAAeI,EAAOD,KAGzBqB,EAACc,EAAI,CAACJ,KAAM,GAAIW,MAAM,KAAIjB,SAAA,CACvBb,EAAe,aAOzBV,GACCmB,EAACc,EAAI,CAACJ,KAAM,GAAIjC,UAAWyB,EAAOrB,MAAMuB,SAAA,CACtCE,EAACgB,EAAuB,CAACZ,KAAM,KAC9B7B,QAKNC,IAAaD,IAAUK,GACtBoB,EAACiB,EAAO,CAACC,MAAM,SAAQpB,SACrBE,EAACmB,EAAU,CAACC,QAAS5C,EAAU4B,KAAK,QAAON,SACzCE,EAACqB,EAAS,QAKf3C,IAAaH,GAASK,IACrBoB,EAACiB,EAAO,CAACC,MAAM,cAAapB,SAC1BE,EAACmB,EAAU,CAACC,QAAS1C,EAAU0B,KAAK,QAAON,SACzCE,EAACsB,EAAc,QAKpB7C,GAAYF,GACXyB,EAACiB,EAAO,CAACC,MAAM,SAAQpB,SACrBE,EAACmB,EAAU,CAACC,QAAS3C,EAAU2B,KAAK,QAAON,SACzCE,EAACuB,EAAQ,UAMrB"}
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{useRef as c,useState as i,useEffect as n,Children as t,isValidElement as r,cloneElement as e,useMemo as m}from"react";import p from"classnames";import{Popper as a}from"../Popper/Popper.js";import{Text as u}from"../Text/Text.js";import{ButtonIcon as l}from"../ButtonIcon/ButtonIcon.js";import{CloseSmallIcon as j}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{Header as d}from"../Header/Header.js";import{Button as I}from"../Button/Button.js";import{findAppContainerElement as f}from"../utils.js";import h from"./Hint.scss.js";import{jsxs as b,Fragment as O,jsx as v}from"react/jsx-runtime";function C(o,s){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),c.push.apply(c,i)}return c}function y(s){for(var c=1;c<arguments.length;c++){var i=null!=arguments[c]?arguments[c]:{};c%2?C(Object(i),!0).forEach((function(c){o(s,c,i[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):C(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var P=function(o){var C=o.anchorEl,P=o.open,F=o.className,A=o.onClose,g=o.title,N=o.description,k=o.testId,w=o.placement,x=void 0===w?"bottom":w,D=o.children,E=o.primaryActionHandler,T=o.secondaryActionHandler,M=o.secondaryActionText,S=o.primaryActionText,B=o.stepsTotal,z=void 0===B?0:B,H=o.stepCurrent,R=void 0===H?0:H,G=o.flip,U=void 0!==G&&G,q=o.popperProps,L=c(),W=i(null),K=s(W,2),Z=K[0],J=K[1],Q=i(),V=s(Q,2),X=V[0],Y=V[1];if(n((function(){requestAnimationFrame((function(){return Y(P?C||L.current:void 0)}))}),[C,P]),!C&&t.count(D)>1)throw new Error("Hint expects a single reffable element as a child");var $=C?D:t.map(D,(function(o){return r(o)?e(o,{ref:L}):o})),_=m((function(){var o=f(X);return y({flip:{enabled:U},arrow:{enabled:!!Z,element:Z},preventOverflow:{boundariesElement:o}},null==q?void 0:q.modifiers)}),[Z,U,X,null==q?void 0:q.modifiers]),oo=E&&S&&v(I,{onClick:E,className:h.primaryAction,type:"tertiary",children:S}),so=T&&M&&v(I,{onClick:T,className:h.secondaryAction,type:"tertiary",children:M}),co=z>0&&R>0&&b(u,{size:12,children:["Step ",R,"/",v(u,{size:10,children:z})]});return b(O,{children:[$,b(a,y(y({className:h.popper,transition:!0,open:!!X,anchorEl:X,placement:x,modifiers:_,container:document.body},q),{},{children:[v("div",{ref:J,className:h.arrow}),b("div",{className:p(h.tooltip,F),"data-testid":k,children:[(g||A)&&b("div",{className:h.title,children:[v(d,{appearance:"appName",className:h.titleInner,children:g}),A&&v(l,{onClick:A,size:"medium",className:h.closeButton,children:v(j,{})})]}),N&&v(u,{tagName:"div",className:h.description,size:14,children:N}),(oo||so||co)&&b("div",{className:h.footer,children:[so,co,oo]})]})]}))]})};export{P as Hint};
1
+ import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{useRef as c,useState as i,useEffect as n,Children as t,isValidElement as r,cloneElement as e,useMemo as m}from"react";import p from"classnames";import{Popper as u}from"../Popper/Popper.js";import{Text as a}from"../Text/Text.js";import{ButtonIcon as l}from"../ButtonIcon/ButtonIcon.js";import{CloseSmallIcon as j}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{Header as d}from"../Header/Header.js";import{Button as I}from"../Button/Button.js";import{findAppContainerElement as f}from"../utils.js";import h from"./Hint.scss.js";import{jsxs as b,Fragment as O,jsx as v}from"react/jsx-runtime";function C(o,s){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),c.push.apply(c,i)}return c}function y(s){for(var c=1;c<arguments.length;c++){var i=null!=arguments[c]?arguments[c]:{};c%2?C(Object(i),!0).forEach((function(c){o(s,c,i[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):C(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var P=function(o){var C=o.anchorEl,P=o.open,F=o.className,A=o.onClose,g=o.title,N=o.description,k=o.testId,w=o.placement,x=void 0===w?"bottom":w,D=o.children,E=o.primaryActionHandler,T=o.secondaryActionHandler,M=o.secondaryActionText,S=o.primaryActionText,B=o.stepsTotal,z=void 0===B?0:B,H=o.stepCurrent,R=void 0===H?0:H,G=o.flip,U=void 0!==G&&G,q=o.popperProps,L=c(),W=i(null),K=s(W,2),Z=K[0],J=K[1],Q=i(),V=s(Q,2),X=V[0],Y=V[1];if(n((function(){requestAnimationFrame((function(){return Y(P?C||L.current:void 0)}))}),[C,P]),!C&&t.count(D)>1)throw new Error("Hint expects a single reffable element as a child");var $=C?D:t.map(D,(function(o){return r(o)?e(o,{ref:L}):o})),_=m((function(){var o=f(X);return y({flip:{enabled:U},arrow:{enabled:!!Z,element:Z},preventOverflow:{boundariesElement:o}},null==q?void 0:q.modifiers)}),[Z,U,X,null==q?void 0:q.modifiers]),oo=E&&S&&v(I,{onClick:E,className:h.primaryAction,type:"tertiary",children:S}),so=T&&M&&v(I,{onClick:T,className:h.secondaryAction,type:"tertiary",children:M}),co=z>0&&R>0&&b(a,{size:12,children:["Step ",R,"/",v(a,{size:10,children:z})]});return b(O,{children:[$,b(u,y(y({className:h.popper,transition:!0,open:!!X,anchorEl:X,placement:x,modifiers:_,container:document.body},q),{},{children:[v("div",{ref:J,className:h.arrow}),b("div",{className:p(h.tooltip,F),"data-testid":k,children:[(g||A)&&b("div",{className:h.title,children:[v(d,{appearance:"appName",className:h.titleInner,children:g}),A&&v(l,{onClick:A,size:"medium",className:h.closeButton,children:v(j,{})})]}),N&&v(a,{tagName:"div",className:h.description,size:14,children:N}),(oo||so||co)&&b("div",{className:h.footer,children:[so,co,oo]})]})]}))]})};export{P as Hint};
2
2
  //# sourceMappingURL=Hint.js.map