@corva/ui 0.92.0-2 → 0.92.0-21

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 (387) hide show
  1. package/assets/0ea849622ec24faa453981edfd1862e6.svg +19 -0
  2. package/assets/3ecb3740e2ccf98b1f61abce5f8ffb9f.gif +0 -0
  3. package/assets/815107279c4c5fba7639d4e9124e83a5.svg +3 -0
  4. package/assets/af268ec48d747e3147d5acb95bc1b599.svg +23 -0
  5. package/assets/b88b9008a93dabe2d431b22e76e3017a.svg +24 -0
  6. package/assets/ce0806d7fe0a5fdedde889e58929cd3a.svg +20 -0
  7. package/assets/e26a8e73ce2b62ee8bd6b8eddf286b49.svg +33 -0
  8. package/assets/ffd922ae8116b456a7f24dcf118f36b4.svg +24 -0
  9. package/cjs-bundle/clients/constants.js +1 -1
  10. package/cjs-bundle/clients/corvaUrls.js +1 -1
  11. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  12. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  13. package/cjs-bundle/components/AdvancedSlider/Handle.js +1 -1
  14. package/cjs-bundle/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
  15. package/cjs-bundle/components/Attachment/index.js +1 -1
  16. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  17. package/cjs-bundle/components/Breadcrumbs/index.js +1 -1
  18. package/cjs-bundle/components/Button/components/LiveButton/index.js +1 -1
  19. package/cjs-bundle/components/Button/index.js +1 -1
  20. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  21. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  22. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  23. package/cjs-bundle/components/Chart/components/AxisDropdown.js +1 -1
  24. package/cjs-bundle/components/Chart/components/ChartSelect.js +1 -1
  25. package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  26. package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  27. package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js +1 -1
  28. package/cjs-bundle/components/Chart/components/buttons/PanButton.js +1 -1
  29. package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  30. package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js +1 -1
  31. package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  32. package/cjs-bundle/components/Chip/index.js +1 -1
  33. package/cjs-bundle/components/ColorPicker/ColorPicker.js +1 -1
  34. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  35. package/cjs-bundle/components/CopyToClipboard/CopyToClipboard.js +1 -1
  36. package/cjs-bundle/components/Counter/index.js +1 -1
  37. package/cjs-bundle/components/DatePicker/index.js +1 -1
  38. package/cjs-bundle/components/DateTimePicker/index.js +1 -1
  39. package/cjs-bundle/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
  40. package/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  41. package/cjs-bundle/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  42. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
  43. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  44. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js +1 -1
  45. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  46. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
  47. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js +1 -1
  48. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  49. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  50. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  51. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  52. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  53. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  54. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  55. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  56. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  57. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  58. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  59. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  60. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  61. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  62. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  63. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  64. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  65. package/cjs-bundle/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  66. package/cjs-bundle/components/FileIcon/FileIcon.js +1 -1
  67. package/cjs-bundle/components/FileIcon/icons/ArchiveFileIcon.js +1 -0
  68. package/cjs-bundle/components/FileIcon/icons/CSVFileIcon.js +1 -1
  69. package/cjs-bundle/components/FileIcon/icons/DocFileIcon.js +1 -1
  70. package/cjs-bundle/components/FileIcon/icons/EDMFileIcon.js +1 -1
  71. package/cjs-bundle/components/FileIcon/icons/ExcelFileIcon.js +1 -0
  72. package/cjs-bundle/components/FileIcon/icons/ImageFileIcon.js +1 -1
  73. package/cjs-bundle/components/FileIcon/icons/JsonFileIcon.js +1 -0
  74. package/cjs-bundle/components/FileIcon/icons/LasFileIcon.js +1 -0
  75. package/cjs-bundle/components/FileIcon/icons/OtherFileIcon.js +1 -0
  76. package/cjs-bundle/components/FileIcon/icons/PdfFileIcon.js +1 -1
  77. package/cjs-bundle/components/FileIcon/icons/PowerPointFileIcon.js +1 -0
  78. package/cjs-bundle/components/FileIcon/icons/TxtFileIcon.js +1 -0
  79. package/cjs-bundle/components/FileIcon/icons/UnknownFileIcon.js +1 -1
  80. package/cjs-bundle/components/FileIcon/icons/VideoFileIcon.js +1 -0
  81. package/cjs-bundle/components/FileIcon/icons/XmlFileIcon.js +1 -0
  82. package/cjs-bundle/components/FileTypeIcon.js +1 -1
  83. package/cjs-bundle/components/FilesDropzone/FilesDropzone.js +1 -1
  84. package/cjs-bundle/components/FilesDropzone/styles.js +1 -1
  85. package/cjs-bundle/components/FilesLoader/FilesLoader.js +1 -1
  86. package/cjs-bundle/components/FilesLoaderV2/FilesLoaderV2.js +1 -1
  87. package/cjs-bundle/components/FilesLoaderV2/styles.js +1 -1
  88. package/cjs-bundle/components/FilesProcessor/FilesProcessor.js +1 -1
  89. package/cjs-bundle/components/GradientManager/GradientManager.js +1 -1
  90. package/cjs-bundle/components/GradientManager/GradientSelect.js +1 -1
  91. package/cjs-bundle/components/GradientPicker/GradientPicker.js +1 -1
  92. package/cjs-bundle/components/HelpCenter/HelpCenterIcon.js +1 -1
  93. package/cjs-bundle/components/LoadingIndicator/Loader.js +1 -1
  94. package/cjs-bundle/components/Modal/CorvaModal.js +1 -1
  95. package/cjs-bundle/components/Notifications/Toast.js +1 -1
  96. package/cjs-bundle/components/OffsetWellButton/OffsetWellButton.js +1 -1
  97. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
  98. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  99. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  100. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  101. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  102. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  103. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  104. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  105. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  106. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  107. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  108. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  109. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  110. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  111. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  112. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  113. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  114. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
  115. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  116. package/cjs-bundle/components/OffsetWellPickerV4/effects/useSortedWells.js +1 -1
  117. package/cjs-bundle/components/PadModeSelect/FracModeLabel.js +1 -0
  118. package/cjs-bundle/components/PadModeSelect/PadModeSelect.js +1 -1
  119. package/cjs-bundle/components/PadModeSelect/effects/useMenuItems.js +1 -1
  120. package/cjs-bundle/components/PadModeSelect/types.js +1 -1
  121. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  122. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  123. package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js +1 -1
  124. package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js +1 -1
  125. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  126. package/cjs-bundle/components/Search/Search.js +1 -1
  127. package/cjs-bundle/components/Search/effects/useAutocompleteOptions.js +1 -1
  128. package/cjs-bundle/components/Select/SelectFilterBy.js +1 -1
  129. package/cjs-bundle/components/SettingEditors/ColorEditor/index.js +1 -1
  130. package/cjs-bundle/components/StatusBadge/components/DQUnvalidatedContent.js +1 -1
  131. package/cjs-bundle/components/StatusBadge/components/ReportIssueModal.js +1 -1
  132. package/cjs-bundle/components/Stepper/Step/Step.js +1 -1
  133. package/cjs-bundle/components/Table/TableCell/TableCell.js +1 -1
  134. package/cjs-bundle/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
  135. package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  136. package/cjs-bundle/components/Toaster/Toaster.js +1 -1
  137. package/cjs-bundle/config/theme/index.js +1 -1
  138. package/cjs-bundle/config/theme/toggleButtonsGroupOverrides.js +1 -1
  139. package/cjs-bundle/constants/alerts.js +1 -1
  140. package/cjs-bundle/constants/completion.js +1 -1
  141. package/cjs-bundle/icons/customIcons/icons/AddMessage.js +1 -1
  142. package/cjs-bundle/icons/customIcons/icons/Attention.js +1 -1
  143. package/cjs-bundle/icons/customIcons/icons/Collapse.js +1 -1
  144. package/cjs-bundle/icons/customIcons/icons/Expand.js +1 -1
  145. package/cjs-bundle/icons/customIcons/icons/FolderClosed.js +1 -1
  146. package/cjs-bundle/icons/customIcons/icons/FolderOpened.js +1 -1
  147. package/cjs-bundle/icons/customIcons/icons/GreaterOrEqual.js +1 -1
  148. package/cjs-bundle/icons/customIcons/icons/LessOrEqual.js +1 -1
  149. package/cjs-bundle/icons/customIcons/icons/Search.js +1 -1
  150. package/cjs-bundle/icons/customIcons/icons/SimulFrac.js +1 -0
  151. package/cjs-bundle/icons/customIcons/icons/Wellhub.js +1 -1
  152. package/cjs-bundle/icons/customIcons/icons/ZipperFrac.js +1 -0
  153. package/cjs-bundle/icons/iconParkIcons.js +1 -1
  154. package/cjs-bundle/icons/index.js +1 -1
  155. package/clients/constants.d.ts +0 -2
  156. package/clients/constants.d.ts.map +1 -1
  157. package/clients/constants.js +1 -1
  158. package/clients/corvaUrls.d.ts +0 -5
  159. package/clients/corvaUrls.d.ts.map +1 -1
  160. package/clients/corvaUrls.js +1 -1
  161. package/components/AddComment/Popover.js +1 -1
  162. package/components/AddComment/components/Content.js +1 -1
  163. package/components/AdvancedSlider/Handle.js +1 -1
  164. package/components/AssetEditorV2/components/SecondaryAssetSelect.d.ts.map +1 -1
  165. package/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
  166. package/components/Attachment/index.js +1 -1
  167. package/components/BICOffsetPickerDialog/index.js +1 -1
  168. package/components/Breadcrumbs/index.js +1 -1
  169. package/components/Button/components/LiveButton/index.js +1 -1
  170. package/components/Button/index.js +1 -1
  171. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  172. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  173. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  174. package/components/Chart/components/AxisDropdown.js +1 -1
  175. package/components/Chart/components/ChartSelect.js +1 -1
  176. package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  177. package/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  178. package/components/Chart/components/buttons/HideAxesButton.js +1 -1
  179. package/components/Chart/components/buttons/PanButton.js +1 -1
  180. package/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  181. package/components/Chart/components/buttons/ZoomInButton.js +1 -1
  182. package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  183. package/components/Chip/index.js +1 -1
  184. package/components/ColorPicker/ColorPicker.js +1 -1
  185. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  186. package/components/CopyToClipboard/CopyToClipboard.js +1 -1
  187. package/components/Counter/index.js +1 -1
  188. package/components/DatePicker/index.js +1 -1
  189. package/components/DateTimePicker/index.js +1 -1
  190. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
  191. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  192. package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  193. package/components/DevCenter/AppsDataProvider/effects/dataResolvers.d.ts.map +1 -1
  194. package/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
  195. package/components/DevCenter/AppsDataProvider/effects/utils.d.ts.map +1 -1
  196. package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  197. package/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js +1 -1
  198. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  199. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
  200. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js +1 -1
  201. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  202. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  203. package/components/DocumentViewer/DocumentViewer.js +1 -1
  204. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  205. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  206. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  207. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  208. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  209. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  210. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  211. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  212. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  213. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  214. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  215. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  216. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  217. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  218. package/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
  219. package/components/FileIcon/FileIcon.d.ts.map +1 -1
  220. package/components/FileIcon/FileIcon.js +1 -1
  221. package/components/FileIcon/icons/ArchiveFileIcon.d.ts +4 -0
  222. package/components/FileIcon/icons/ArchiveFileIcon.d.ts.map +1 -0
  223. package/components/FileIcon/icons/ArchiveFileIcon.js +1 -0
  224. package/components/FileIcon/icons/CSVFileIcon.d.ts.map +1 -1
  225. package/components/FileIcon/icons/CSVFileIcon.js +1 -1
  226. package/components/FileIcon/icons/DocFileIcon.d.ts.map +1 -1
  227. package/components/FileIcon/icons/DocFileIcon.js +1 -1
  228. package/components/FileIcon/icons/EDMFileIcon.d.ts.map +1 -1
  229. package/components/FileIcon/icons/EDMFileIcon.js +1 -1
  230. package/components/FileIcon/icons/ExcelFileIcon.d.ts +4 -0
  231. package/components/FileIcon/icons/ExcelFileIcon.d.ts.map +1 -0
  232. package/components/FileIcon/icons/ExcelFileIcon.js +1 -0
  233. package/components/FileIcon/icons/ImageFileIcon.d.ts.map +1 -1
  234. package/components/FileIcon/icons/ImageFileIcon.js +1 -1
  235. package/components/FileIcon/icons/{ExelFileIcon.d.ts → JsonFileIcon.d.ts} +2 -2
  236. package/components/FileIcon/icons/JsonFileIcon.d.ts.map +1 -0
  237. package/components/FileIcon/icons/JsonFileIcon.js +1 -0
  238. package/components/FileIcon/icons/LasFileIcon.d.ts +4 -0
  239. package/components/FileIcon/icons/LasFileIcon.d.ts.map +1 -0
  240. package/components/FileIcon/icons/LasFileIcon.js +1 -0
  241. package/components/FileIcon/icons/OtherFileIcon.d.ts +4 -0
  242. package/components/FileIcon/icons/OtherFileIcon.d.ts.map +1 -0
  243. package/components/FileIcon/icons/OtherFileIcon.js +1 -0
  244. package/components/FileIcon/icons/PdfFileIcon.d.ts.map +1 -1
  245. package/components/FileIcon/icons/PdfFileIcon.js +1 -1
  246. package/components/FileIcon/icons/PowerPointFileIcon.d.ts +4 -0
  247. package/components/FileIcon/icons/PowerPointFileIcon.d.ts.map +1 -0
  248. package/components/FileIcon/icons/PowerPointFileIcon.js +1 -0
  249. package/components/FileIcon/icons/TxtFileIcon.d.ts +4 -0
  250. package/components/FileIcon/icons/TxtFileIcon.d.ts.map +1 -0
  251. package/components/FileIcon/icons/TxtFileIcon.js +1 -0
  252. package/components/FileIcon/icons/UnknownFileIcon.d.ts.map +1 -1
  253. package/components/FileIcon/icons/UnknownFileIcon.js +1 -1
  254. package/components/FileIcon/icons/VideoFileIcon.d.ts +4 -0
  255. package/components/FileIcon/icons/VideoFileIcon.d.ts.map +1 -0
  256. package/components/FileIcon/icons/VideoFileIcon.js +1 -0
  257. package/components/FileIcon/icons/XmlFileIcon.d.ts +4 -0
  258. package/components/FileIcon/icons/XmlFileIcon.d.ts.map +1 -0
  259. package/components/FileIcon/icons/XmlFileIcon.js +1 -0
  260. package/components/FileIcon/icons/index.d.ts +16 -0
  261. package/components/FileIcon/icons/index.d.ts.map +1 -0
  262. package/components/FileTypeIcon.d.ts.map +1 -1
  263. package/components/FileTypeIcon.js +1 -1
  264. package/components/FilesDropzone/FilesDropzone.d.ts +1 -2
  265. package/components/FilesDropzone/FilesDropzone.d.ts.map +1 -1
  266. package/components/FilesDropzone/FilesDropzone.js +1 -1
  267. package/components/FilesDropzone/FilesDropzone.stories.d.ts +1 -11
  268. package/components/FilesDropzone/FilesDropzone.stories.d.ts.map +1 -1
  269. package/components/FilesDropzone/styles.d.ts +1 -1
  270. package/components/FilesDropzone/styles.d.ts.map +1 -1
  271. package/components/FilesDropzone/styles.js +1 -1
  272. package/components/FilesLoader/FilesLoader.js +1 -1
  273. package/components/FilesLoaderV2/FilesLoaderV2.d.ts +1 -2
  274. package/components/FilesLoaderV2/FilesLoaderV2.d.ts.map +1 -1
  275. package/components/FilesLoaderV2/FilesLoaderV2.js +1 -1
  276. package/components/FilesLoaderV2/FilesLoaderV2.stories.d.ts +1 -11
  277. package/components/FilesLoaderV2/FilesLoaderV2.stories.d.ts.map +1 -1
  278. package/components/FilesLoaderV2/styles.d.ts.map +1 -1
  279. package/components/FilesLoaderV2/styles.js +1 -1
  280. package/components/FilesProcessor/FilesProcessor.d.ts +5 -7
  281. package/components/FilesProcessor/FilesProcessor.d.ts.map +1 -1
  282. package/components/FilesProcessor/FilesProcessor.js +1 -1
  283. package/components/FilesProcessor/FilesProcessor.stories.d.ts +3 -27
  284. package/components/FilesProcessor/FilesProcessor.stories.d.ts.map +1 -1
  285. package/components/FilesProcessor/Processor.d.ts +4 -5
  286. package/components/FilesProcessor/Processor.d.ts.map +1 -1
  287. package/components/FilesProcessor/index.d.ts +1 -0
  288. package/components/FilesProcessor/index.d.ts.map +1 -1
  289. package/components/GradientManager/GradientManager.js +1 -1
  290. package/components/GradientManager/GradientSelect.js +1 -1
  291. package/components/GradientPicker/GradientPicker.js +1 -1
  292. package/components/HelpCenter/HelpCenterIcon.js +1 -1
  293. package/components/LoadingIndicator/Loader.d.ts +1 -1
  294. package/components/LoadingIndicator/Loader.d.ts.map +1 -1
  295. package/components/LoadingIndicator/Loader.js +1 -1
  296. package/components/LoadingIndicator/LoadingIndicator.d.ts +1 -1
  297. package/components/Modal/CorvaModal.js +1 -1
  298. package/components/Notifications/Toast.js +1 -1
  299. package/components/OffsetWellButton/OffsetWellButton.js +1 -1
  300. package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.d.ts +1 -1
  301. package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
  302. package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  303. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  304. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  305. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  306. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  307. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  308. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  309. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  310. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  311. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  312. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  313. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  314. package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  315. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  316. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  317. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  318. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
  319. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  320. package/components/OffsetWellPickerV4/effects/useSortedWells.js +1 -1
  321. package/components/PadModeSelect/FracModeLabel.d.ts +9 -0
  322. package/components/PadModeSelect/FracModeLabel.d.ts.map +1 -0
  323. package/components/PadModeSelect/FracModeLabel.js +1 -0
  324. package/components/PadModeSelect/PadModeSelect.d.ts.map +1 -1
  325. package/components/PadModeSelect/PadModeSelect.js +1 -1
  326. package/components/PadModeSelect/__tests__/FracModeLabel.test.d.ts +2 -0
  327. package/components/PadModeSelect/__tests__/FracModeLabel.test.d.ts.map +1 -0
  328. package/components/PadModeSelect/effects/useMenuItems.d.ts.map +1 -1
  329. package/components/PadModeSelect/effects/useMenuItems.js +1 -1
  330. package/components/PadModeSelect/types.d.ts +1 -1
  331. package/components/PadModeSelect/types.d.ts.map +1 -1
  332. package/components/PadModeSelect/types.js +1 -1
  333. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  334. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  335. package/components/ParameterCharts/components/TraceHeader.js +1 -1
  336. package/components/PinnableFilters/components/FiltersToggler.js +1 -1
  337. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
  338. package/components/Search/Search.d.ts +1 -3
  339. package/components/Search/Search.d.ts.map +1 -1
  340. package/components/Search/Search.js +1 -1
  341. package/components/Search/effects/useAutocompleteOptions.d.ts.map +1 -1
  342. package/components/Search/effects/useAutocompleteOptions.js +1 -1
  343. package/components/Select/SelectFilterBy.js +1 -1
  344. package/components/SettingEditors/ColorEditor/index.js +1 -1
  345. package/components/StatusBadge/components/DQUnvalidatedContent.js +1 -1
  346. package/components/StatusBadge/components/ReportIssueModal.js +1 -1
  347. package/components/Stepper/Step/Step.js +1 -1
  348. package/components/Table/TableCell/TableCell.js +1 -1
  349. package/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
  350. package/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  351. package/components/Toaster/Toaster.js +1 -1
  352. package/components/index.d.ts +127 -193
  353. package/components/index.d.ts.map +1 -1
  354. package/config/theme/index.js +1 -1
  355. package/config/theme/toggleButtonsGroupOverrides.d.ts +1 -0
  356. package/config/theme/toggleButtonsGroupOverrides.js +1 -1
  357. package/constants/alerts.d.ts.map +1 -1
  358. package/constants/alerts.js +1 -1
  359. package/constants/completion.d.ts +1 -0
  360. package/constants/completion.d.ts.map +1 -1
  361. package/constants/completion.js +1 -1
  362. package/icons/customIcons/icons/AddMessage.js +1 -1
  363. package/icons/customIcons/icons/Attention.js +1 -1
  364. package/icons/customIcons/icons/Collapse.js +1 -1
  365. package/icons/customIcons/icons/Expand.js +1 -1
  366. package/icons/customIcons/icons/FolderClosed.js +1 -1
  367. package/icons/customIcons/icons/FolderOpened.js +1 -1
  368. package/icons/customIcons/icons/GreaterOrEqual.js +1 -1
  369. package/icons/customIcons/icons/LessOrEqual.js +1 -1
  370. package/icons/customIcons/icons/Search.js +1 -1
  371. package/icons/customIcons/icons/SimulFrac.d.ts +3 -0
  372. package/icons/customIcons/icons/SimulFrac.d.ts.map +1 -0
  373. package/icons/customIcons/icons/SimulFrac.js +1 -0
  374. package/icons/customIcons/icons/Wellhub.js +1 -1
  375. package/icons/customIcons/icons/ZipperFrac.d.ts +3 -0
  376. package/icons/customIcons/icons/ZipperFrac.d.ts.map +1 -0
  377. package/icons/customIcons/icons/ZipperFrac.js +1 -0
  378. package/icons/customIcons/icons/index.d.ts +2 -0
  379. package/icons/customIcons/icons/index.d.ts.map +1 -1
  380. package/icons/iconParkIcons.d.ts +1 -0
  381. package/icons/iconParkIcons.d.ts.map +1 -1
  382. package/icons/iconParkIcons.js +1 -1
  383. package/icons/index.js +1 -1
  384. package/package.json +1 -1
  385. package/cjs-bundle/components/FileIcon/icons/ExelFileIcon.js +0 -1
  386. package/components/FileIcon/icons/ExelFileIcon.d.ts.map +0 -1
  387. package/components/FileIcon/icons/ExelFileIcon.js +0 -1
@@ -0,0 +1,16 @@
1
+ export * from './ArchiveFileIcon';
2
+ export * from './CSVFileIcon';
3
+ export * from './DocFileIcon';
4
+ export * from './EDMFileIcon';
5
+ export * from './ExcelFileIcon';
6
+ export * from './ImageFileIcon';
7
+ export * from './JsonFileIcon';
8
+ export * from './LasFileIcon';
9
+ export * from './OtherFileIcon';
10
+ export * from './PdfFileIcon';
11
+ export * from './PowerPointFileIcon';
12
+ export * from './TxtFileIcon';
13
+ export * from './UnknownFileIcon';
14
+ export * from './VideoFileIcon';
15
+ export * from './XmlFileIcon';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/FileIcon/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FileTypeIcon.d.ts","sourceRoot":"","sources":["../../src/components/FileTypeIcon.js"],"names":[],"mappings":";AAkBA;;;;gBAgCC"}
1
+ {"version":3,"file":"FileTypeIcon.d.ts","sourceRoot":"","sources":["../../src/components/FileTypeIcon.js"],"names":[],"mappings":";AAuBA;;;;gBAgCC"}
@@ -1 +1 @@
1
- import i from"prop-types";import e from"image-extensions";import{getFileExtension as s}from"../utils/fileExtension.js";import"@babel/runtime/helpers/defineProperty";import"uuid";import"lodash";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../clients/jsonApi/index.js";import"../clients/subscriptions.js";import"../clients/api/apiCore.js";import"../clients/constants.js";import{getCdnUrl as t}from"../clients/corvaUrls.js";import"../clients/sso/auth0.js";import"../clients/sso/oauth2.js";import{jsx as p}from"react/jsx-runtime";var o={image:e,doc:["doc","docx"],xls:["xls","xlsx"],pdf:["pdf"],archive:["zip","rar","7z","tar"]},r={fileTypeWrapper:{display:"inline-block",verticalAlign:"top"}},a=function(i){var e,a=i.fileName,l=i.size,m=i.className,n=s(a);return e=o.image.includes(n)?t("/app/images/file-type-icons/image.svg"):o.doc.includes(n)?t("/app/images/file-type-icons/doc.svg"):o.xls.includes(n)?t("/app/images/file-type-icons/xls.svg"):o.pdf.includes(n)?t("/app/images/file-type-icons/pdf.svg"):o.archive.includes(n)?t("/app/images/file-type-icons/archive.svg"):t("/app/images/file-type-icons/other.svg"),p("div",{style:r.fileTypeWrapper,className:m,children:p("img",{src:e,alt:"File icon",style:{display:"block",height:l,width:l}})})};a.propTypes={fileName:i.string.isRequired,size:i.number,className:i.string},a.defaultProps={size:50,className:void 0};export{a as default};
1
+ import e from"prop-types";import i from"image-extensions";import{getFileExtension as a}from"../utils/fileExtension.js";import{jsx as s}from"react/jsx-runtime";var d={image:i,doc:["doc","docx"],xls:["xls","xlsx"],pdf:["pdf"],archive:["zip","rar","7z","tar"]},c={fileTypeWrapper:{display:"inline-block",verticalAlign:"top"}},t=function(e){var i,t=e.fileName,r=e.size,l=e.className,f=a(t);return i=d.image.includes(f)?"/static/media/ce0806d7fe0a5fdedde889e58929cd3a.svg":d.doc.includes(f)?"/static/media/ffd922ae8116b456a7f24dcf118f36b4.svg":d.xls.includes(f)?"/static/media/b88b9008a93dabe2d431b22e76e3017a.svg":d.pdf.includes(f)?"/static/media/af268ec48d747e3147d5acb95bc1b599.svg":d.archive.includes(f)?"/static/media/e26a8e73ce2b62ee8bd6b8eddf286b49.svg":"/static/media/0ea849622ec24faa453981edfd1862e6.svg",s("div",{style:c.fileTypeWrapper,className:l,children:s("img",{src:i,alt:"File icon",style:{display:"block",height:r,width:r}})})};t.propTypes={fileName:e.string.isRequired,size:e.number,className:e.string},t.defaultProps={size:50,className:void 0};export{t as default};
@@ -1,6 +1,6 @@
1
1
  import { DropzoneOptions } from 'react-dropzone';
2
2
  import { ReactNode } from 'react';
3
- declare type FilesDropzoneProps = {
3
+ export declare type FilesDropzoneProps = {
4
4
  /**
5
5
  * Handles file drop
6
6
  */
@@ -37,5 +37,4 @@ declare type FilesDropzoneProps = {
37
37
  disabled?: boolean;
38
38
  };
39
39
  export declare const FilesDropzone: (props: FilesDropzoneProps) => JSX.Element;
40
- export {};
41
40
  //# sourceMappingURL=FilesDropzone.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilesDropzone.d.ts","sourceRoot":"","sources":["../../../src/components/FilesDropzone/FilesDropzone.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,eAAe,EAAe,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASlC,aAAK,kBAAkB,GAAG;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;IAEnC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,kBAAkB,gBA4DtD,CAAC"}
1
+ {"version":3,"file":"FilesDropzone.d.ts","sourceRoot":"","sources":["../../../src/components/FilesDropzone/FilesDropzone.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,eAAe,EAAe,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQlC,oBAAY,kBAAkB,GAAG;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;IAEnC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,kBAAkB,gBAiEtD,CAAC"}
@@ -1 +1 @@
1
- import o from"@icon-park/react/es/icons/FileAdditionOne";import{__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as i,jsx as t,Fragment as e}from"react/jsx-runtime";import{useDropzone as n}from"react-dropzone";import r from"classnames";import{Regular14 as c}from"../Typography.js";import m from"../Button/components/Button/index.js";import"moment-timezone";import"@material-ui/core";import"../../icons/WithCustomSize.js";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import{CautionFilledCustomIcon as p}from"../../icons/customIcons/icons/CautionFilled.js";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import{useStyles as l}from"./styles.js";import{parseAccept as a,formatDescription as d}from"./utils.js";var u=function(u){var j=u.multiple,h=u.children,f=u.accept,I=u.onDrop,v=u.className,x=u.maxFiles,b=u.maxSize,g=u.errorText,z=u.disabled,y=l(),B=a(f),F=B.mimetypes,C=B.extensions,D=F.length||C.length?s({"*/*":C},Object.fromEntries(F.map((function(o){return[o,[]]})))):void 0,N=d(C,b),O=n({onDrop:I,multiple:j,accept:D,maxFiles:x,maxSize:b,disabled:z}),S=O.getRootProps,A=O.getInputProps,E=O.isDragActive;return i("div",s({className:v},{children:[i("div",s({},S(),{className:r(y.root,z&&y.disabled,E&&y.active)},{children:[t("input",s({},A())),h||i(e,{children:[t(o,{size:"24"}),t(c,{children:"Drag & Drop your file here or"}),t(m,s({variation:"tertiary",size:"small",disabled:z},{children:"Choose file"}))]})]})),!g&&N&&t(c,s({className:r(y.description,z&&y.disabled)},{children:N})),g&&i(c,s({className:y.error},{children:[t(p,{size:20}),g]}))]}))};export{u as FilesDropzone};
1
+ import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as i,Fragment as t}from"react/jsx-runtime";import{useDropzone as n}from"react-dropzone";import e from"classnames";import{FileAdditionOne as c}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import{CautionFilledCustomIcon as r}from"../../icons/customIcons/icons/CautionFilled.js";import{Regular14 as m}from"../Typography.js";import a from"../Button/components/Button/index.js";import"moment-timezone";import"@material-ui/core";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import{useStyles as l}from"./styles.js";import{parseAccept as p,formatDescription as u}from"./utils.js";var d=function(d){var j=d.multiple,I=d.children,f=d.accept,h=d.onDrop,v=d.className,x=d.maxFiles,b=d.maxSize,g=d.errorText,B=d.disabled,y=l(),z=p(f),F=z.mimetypes,N=z.extensions,D=F.length||N.length?o({"*/*":N},Object.fromEntries(F.map((function(o){return[o,[]]})))):void 0,S=u(N,b),C=n({onDrop:h,multiple:j,accept:D,maxFiles:x,maxSize:b,disabled:B}),E=C.getRootProps,L=C.getInputProps,O=C.isDragActive;return s("div",o({className:v},{children:[s("div",o({},E(),{className:e(y.root,B&&y.disabled,O&&y.active)},{children:[i("input",o({},L())),I||s(t,{children:[i(c,{size:24,className:y.icon}),i(m,{children:"Drag & Drop your file here or"}),i(a,o({variation:"tertiary",size:"small",disabled:B,className:y.uploadButton},{children:"Choose file"}))]})]})),!g&&S&&i(m,o({className:e(y.description,B&&y.disabled)},{children:S})),g&&s(m,o({className:y.error},{children:[i(r,{size:20}),g]}))]}))};export{d as FilesDropzone};
@@ -3,17 +3,7 @@ import { FilesDropzone } from './FilesDropzone';
3
3
  export declare const Default: (props: ComponentProps<typeof FilesDropzone>) => JSX.Element;
4
4
  declare const _default: {
5
5
  title: string;
6
- component: (props: {
7
- onDrop?: <T extends File>(acceptedFiles: T[], fileRejections: import("react-dropzone").FileRejection[], event: import("react-dropzone").DropEvent) => void;
8
- children?: import("react").ReactNode;
9
- multiple?: boolean;
10
- accept?: string | string[];
11
- maxFiles?: number;
12
- maxSize?: number;
13
- errorText?: string;
14
- className?: string;
15
- disabled?: boolean;
16
- }) => JSX.Element;
6
+ component: (props: import("./FilesDropzone").FilesDropzoneProps) => JSX.Element;
17
7
  argTypes: {};
18
8
  args: {
19
9
  onDrop: {
@@ -1 +1 @@
1
- {"version":3,"file":"FilesDropzone.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FilesDropzone/FilesDropzone.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,OAAO,UAAW,eAAe,oBAAoB,CAAC,gBAElE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,wBAcE"}
1
+ {"version":3,"file":"FilesDropzone.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FilesDropzone/FilesDropzone.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,OAAO,UAAW,eAAe,oBAAoB,CAAC,gBAElE,CAAC;;;;;;;;;;;;;;;;;AAEF,wBAcE"}
@@ -1,2 +1,2 @@
1
- export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"active" | "disabled" | "root" | "description" | "error" | "uploadButton">;
1
+ export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"icon" | "active" | "disabled" | "root" | "description" | "error" | "uploadButton">;
2
2
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/FilesDropzone/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,wIAiDnB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/FilesDropzone/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,iJAwDnB,CAAC"}
@@ -1 +1 @@
1
- import{makeStyles as r}from"@material-ui/core";var t=r((function(r){return{disabled:{},active:{},root:{width:"100%",minHeight:"150px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",borderRadius:"4px",border:"1px dashed ".concat(r.palette.primary.text9),color:r.palette.primary.text6,gap:r.spacing(1),transition:"all .3s","&:hover:not($disabled), &$active":{cursor:"pointer",background:"".concat(r.palette.primary.main,"1f"),border:"1px solid ".concat(r.palette.primary.main)},"&$disabled":{cursor:"not-allowed",color:r.palette.primary.text9,borderColor:r.palette.primary.text9}},uploadButton:{marginTop:r.spacing(1)},error:{lineHeight:"16px!important",color:r.palette.error.main,display:"flex",flexFlow:"row nowrap",alignItems:"center",gap:r.spacing(1),marginTop:r.spacing(1)},description:{marginTop:r.spacing(1),color:r.palette.primary.text6,transition:"all .3s","&$disabled":{color:r.palette.primary.text9}}}}));export{t as useStyles};
1
+ import{makeStyles as r}from"@material-ui/core";var t=r((function(r){return{disabled:{},active:{},icon:{transition:"all .3s"},root:{width:"100%",minHeight:"150px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",borderRadius:"8px",border:"1px dashed ".concat(r.palette.primary.text9),color:r.palette.primary.text6,gap:r.spacing(1),transition:"all .3s","&:hover:not($disabled), &$active":{cursor:"pointer",background:"".concat(r.palette.primary.main,"1f"),border:"1px solid ".concat(r.palette.primary.main),"& $icon":{color:r.palette.primary.main}},"&$disabled":{cursor:"not-allowed",color:r.palette.primary.text9,borderColor:r.palette.primary.text9}},uploadButton:{marginTop:r.spacing(1)},error:{lineHeight:"16px!important",color:r.palette.error.main,display:"flex",flexFlow:"row nowrap",alignItems:"center",gap:r.spacing(1),marginTop:r.spacing(1)},description:{marginTop:r.spacing(1),color:r.palette.primary.text6,transition:"all .3s","&$disabled":{color:r.palette.primary.text9}}}}));export{t as useStyles};
@@ -1 +1 @@
1
- import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as e,jsx as n,Fragment as i}from"react/jsx-runtime";import{useState as t,useEffect as r,useMemo as s}from"react";import a from"prop-types";import c from"classnames";import{Typography as l,LinearProgress as m}from"@material-ui/core";import d from"../IconButton/index.js";import u from"../Button/components/Button/index.js";import"moment-timezone";import{CloseSmallIcon as p,DeleteFourIcon as f,CheckOneIcon as h,RedoIcon as g,UploadIcon as z}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import v from"./Icons/IconWarning.js";import{FileIcon as I}from"../FileIcon/FileIcon.js";import{useStyles as B}from"./useStyles.js";function N(a){var N,j,S,y,C,w,L,b=a.size,M=a.unit,P=a.name,x=a.customUnitName,E=a.sizeBytes,T=a.handleCancel,A=a.onReload,k=a.onDelete,F=a.loadedBytes,O=a.error,R=a.errorText,U=a.formatError,D=a.importButtonType,W=a.isLoadingAnimation,q=a.showActions,G=B(),K=t({}),_=K[0],H=K[1],J=t(0),Q=J[0],V=J[1],X=t(!0),Y=X[0],Z=X[1],$="large"===b,oo=$?24:16,eo=$?"medium":"small";r((function(){H(function(o,e,n){return"time"===e?{downloaded:0,unit:"min",convertedSize:o}:"custom"===e?{downloaded:0,unit:n,convertedSize:o}:o>=Math.pow(10,6)?{downloaded:0,unit:"MB",convertedSize:Math.floor(o/Math.pow(10,5))/10}:o>=Math.pow(10,3)?{downloaded:0,unit:"KB",convertedSize:Math.floor(o/Math.pow(10,2))/10}:{downloaded:0,unit:"B",convertedSize:Math.floor(10*o)/10}}(E,M,x))}),[E,M]),r((function(){if(F&&E){var e=Math.round(F/E*100);H((function(n){return o(o({},n),{downloaded:Math.floor(n.convertedSize*e/10)/10})})),V(e)}}),[F,E]),r((function(){var o;return k&&Q>=100&&(Z(!0),o=setTimeout((function(){Z(!1)}),5e3)),function(){return o&&clearTimeout(o)}}),[Q]),r((function(){O&&(V(0),H((function(e){return o(o({},e),{downloaded:0})})))}),[O]);var no=s((function(){var o,e;return[c(G.iconButton,((o={})[G.iconButtonLarge]=$,o)),c(G.actionIcon,((e={})[G.actionIconLarge]=$,e))]}),[$]),io=no[0],to=no[1];return e("div",o({className:G.fileStateWrapper},{children:[n("div",o({className:G.fileIconContainer},{children:n(I,{name:P,style:{fontSize:$?48:32}})})),e("div",o({className:G.fileState},{children:[e("div",o({className:G.fileStateProgress},{children:[n("div",o({className:G.fileNameWrapper},{children:n(l,o({className:c(G.fileName,(N={},N[G.fileNameLarge]=$,N))},{children:P.length>7?e(i,{children:[n("span",o({className:G.firstPart},{children:P.slice(0,P.length-7)})),n("span",{children:P.slice(-7)})]}):P}))})),!W&&n(m,{className:G.progressBar,variant:"determinate",value:Q,classes:{colorPrimary:c(G.progressBackground,(j={},j[G.progressBarError]=O,j)),barColorPrimary:c(G.progressBarColor,(S={},S[G.progressBarError]=O,S))}}),e("div",o({className:G.loaderProgressContainer},{children:[!W&&n(l,o({className:c(G.fileSize,(y={},y[G.fileSizeLarge]=$,y)),component:"span"},{children:"".concat(_.downloaded," of ").concat(_.convertedSize," ").concat(_.unit)})),e("div",o({className:c(G.progressStatus,(C={},C[G.fileSizeLarge]=$,C))},{children:[O&&e(l,o({component:"div",className:G.errorContainer},{children:[n(v,{size:b}),n(l,o({component:"span",className:c(G.errorText,(w={},w[G.fileSizeLarge]=$,w))},{children:U?"Upload Error. Unacceptable file format.":"Upload Error".concat(R&&". ".concat(R))}))]})),!O&&!W&&"".concat(Q," %")]}))]}))]})),q&&e("div",o({className:G.fileActions},{children:[Q<100&&!O&&n(i,{children:W?n("div",{className:c(G.loadingIcon,(L={},L[G.loadingLargeIcon]=$,L)),style:{backgroundImage:"url(".concat("/static/media/6fa6f1128bc0185126482345243bcd42.svg",")")}}):n(d,o({tooltipProps:{title:"Cancel"},className:io,onClick:function(){T(P),V(0),H((function(e){return o(o({},e),{downloaded:0})}))},size:eo},{children:n(p,{className:to,size:oo})}))}),100===Q&&!O&&(!Y&&k?n(d,o({variant:"contained",tooltipProps:{title:"Delete"},className:io,onClick:k,size:eo},{children:n(f,{className:to,size:oo})})):n(h,{fill:"#75DB29",size:oo,style:{marginLeft:12}})),A&&O&&n(i,{children:U?n(i,{children:"default"===D?n(u,o({size:$?"medium":"small",variation:"primary",startIcon:n(z,{}),onClick:A},{children:"Import"})):n(d,o({size:eo,tooltipProps:{title:"Import File"},className:io,onClick:A},{children:n(z,{size:oo})}))}):n(d,o({size:eo,tooltipProps:{title:"Reload"},className:io,onClick:A},{children:n(g,{size:oo})}))})]}))]}))]}))}var j={size:a.oneOf(["small","large"]),unit:a.oneOf(["size","time","custom"]),customUnitName:a.string,onDelete:a.func,onReload:a.func,handleCancel:a.func,name:a.string,sizeBytes:a.number,error:a.bool,errorText:a.string,formatError:a.bool,importButtonType:a.oneOf(["default","icon"]),loadedBytes:a.number.isRequired,isLoadingAnimation:a.bool,showActions:a.bool};N.propTypes=j,N.defaultProps={size:"small",unit:"size",onDelete:null,onReload:null,name:"",customUnitName:"",sizeBytes:1,error:null,errorText:"",formatError:!1,importButtonType:"default",handleCancel:null,isLoadingAnimation:!1,showActions:!0};export{N as default};
1
+ import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as e,jsx as n,Fragment as i}from"react/jsx-runtime";import{useState as t,useEffect as r,useMemo as s}from"react";import c from"prop-types";import a from"classnames";import{Typography as l,LinearProgress as m}from"@material-ui/core";import d from"../IconButton/index.js";import u from"../Button/components/Button/index.js";import"moment-timezone";import{CloseSmallIcon as p,DeleteFourIcon as f,CheckOneIcon as h,RedoIcon as g,UploadIcon as z}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import v from"./Icons/IconWarning.js";import{FileIcon as I}from"../FileIcon/FileIcon.js";import{useStyles as B}from"./useStyles.js";function N(c){var N,j,S,y,C,w,L,b=c.size,M=c.unit,P=c.name,x=c.customUnitName,E=c.sizeBytes,T=c.handleCancel,A=c.onReload,k=c.onDelete,F=c.loadedBytes,O=c.error,R=c.errorText,U=c.formatError,D=c.importButtonType,W=c.isLoadingAnimation,q=c.showActions,G=B(),K=t({}),Z=K[0],_=K[1],H=t(0),J=H[0],Q=H[1],V=t(!0),X=V[0],Y=V[1],$="large"===b,oo=$?24:16,eo=$?"medium":"small";r((function(){_(function(o,e,n){return"time"===e?{downloaded:0,unit:"min",convertedSize:o}:"custom"===e?{downloaded:0,unit:n,convertedSize:o}:o>=Math.pow(10,6)?{downloaded:0,unit:"MB",convertedSize:Math.floor(o/Math.pow(10,5))/10}:o>=Math.pow(10,3)?{downloaded:0,unit:"KB",convertedSize:Math.floor(o/Math.pow(10,2))/10}:{downloaded:0,unit:"B",convertedSize:Math.floor(10*o)/10}}(E,M,x))}),[E,M]),r((function(){if(F&&E){var e=Math.round(F/E*100);_((function(n){return o(o({},n),{downloaded:Math.floor(n.convertedSize*e/10)/10})})),Q(e)}}),[F,E]),r((function(){var o;return k&&J>=100&&(Y(!0),o=setTimeout((function(){Y(!1)}),5e3)),function(){return o&&clearTimeout(o)}}),[J]),r((function(){O&&(Q(0),_((function(e){return o(o({},e),{downloaded:0})})))}),[O]);var no=s((function(){var o,e;return[a(G.iconButton,((o={})[G.iconButtonLarge]=$,o)),a(G.actionIcon,((e={})[G.actionIconLarge]=$,e))]}),[$]),io=no[0],to=no[1];return e("div",o({className:G.fileStateWrapper},{children:[n("div",o({className:G.fileIconContainer},{children:n(I,{name:P,style:{fontSize:$?48:32}})})),e("div",o({className:G.fileState},{children:[e("div",o({className:G.fileStateProgress},{children:[n("div",o({className:G.fileNameWrapper},{children:n(l,o({className:a(G.fileName,(N={},N[G.fileNameLarge]=$,N))},{children:P.length>7?e(i,{children:[n("span",o({className:G.firstPart},{children:P.slice(0,P.length-7)})),n("span",{children:P.slice(-7)})]}):P}))})),!W&&n(m,{className:G.progressBar,variant:"determinate",value:J,classes:{colorPrimary:a(G.progressBackground,(j={},j[G.progressBarError]=O,j)),barColorPrimary:a(G.progressBarColor,(S={},S[G.progressBarError]=O,S))}}),e("div",o({className:G.loaderProgressContainer},{children:[!W&&n(l,o({className:a(G.fileSize,(y={},y[G.fileSizeLarge]=$,y)),component:"span"},{children:"".concat(Z.downloaded," of ").concat(Z.convertedSize," ").concat(Z.unit)})),e("div",o({className:a(G.progressStatus,(C={},C[G.fileSizeLarge]=$,C))},{children:[O&&e(l,o({component:"div",className:G.errorContainer},{children:[n(v,{size:b}),n(l,o({component:"span",className:a(G.errorText,(w={},w[G.fileSizeLarge]=$,w))},{children:U?"Upload Error. Unacceptable file format.":"Upload Error".concat(R&&". ".concat(R))}))]})),!O&&!W&&"".concat(J," %")]}))]}))]})),q&&e("div",o({className:G.fileActions},{children:[J<100&&!O&&n(i,{children:W?n("div",{className:a(G.loadingIcon,(L={},L[G.loadingLargeIcon]=$,L)),style:{backgroundImage:"url(".concat("/static/media/6fa6f1128bc0185126482345243bcd42.svg",")")}}):n(d,o({tooltipProps:{title:"Cancel"},className:io,onClick:function(){T(P),Q(0),_((function(e){return o(o({},e),{downloaded:0})}))},size:eo},{children:n(p,{className:to,size:oo})}))}),100===J&&!O&&(!X&&k?n(d,o({variant:"contained",tooltipProps:{title:"Delete"},className:io,onClick:k,size:eo},{children:n(f,{className:to,size:oo})})):n(h,{fill:"#75DB29",size:oo,style:{marginLeft:12}})),A&&O&&n(i,{children:U?n(i,{children:"default"===D?n(u,o({size:$?"medium":"small",variation:"primary",startIcon:n(z,{}),onClick:A},{children:"Import"})):n(d,o({size:eo,tooltipProps:{title:"Import File"},className:io,onClick:A},{children:n(z,{size:oo})}))}):n(d,o({size:eo,tooltipProps:{title:"Reload"},className:io,onClick:A},{children:n(g,{size:oo})}))})]}))]}))]}))}var j={size:c.oneOf(["small","large"]),unit:c.oneOf(["size","time","custom"]),customUnitName:c.string,onDelete:c.func,onReload:c.func,handleCancel:c.func,name:c.string,sizeBytes:c.number,error:c.bool,errorText:c.string,formatError:c.bool,importButtonType:c.oneOf(["default","icon"]),loadedBytes:c.number.isRequired,isLoadingAnimation:c.bool,showActions:c.bool};N.propTypes=j,N.defaultProps={size:"small",unit:"size",onDelete:null,onReload:null,name:"",customUnitName:"",sizeBytes:1,error:null,errorText:"",formatError:!1,importButtonType:"default",handleCancel:null,isLoadingAnimation:!1,showActions:!0};export{N as default};
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- declare type FilesLoaderV2Props = {
2
+ export declare type FilesLoaderV2Props = {
3
3
  name: string;
4
4
  /**
5
5
  * Total progress value (bytes by default)
@@ -38,5 +38,4 @@ declare type FilesLoaderV2Props = {
38
38
  className?: string;
39
39
  };
40
40
  export declare const FilesLoaderV2: (props: FilesLoaderV2Props) => JSX.Element;
41
- export {};
42
41
  //# sourceMappingURL=FilesLoaderV2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilesLoaderV2.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoaderV2/FilesLoaderV2.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAWlC,aAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,SAAS,CAAC;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,kBAAkB,gBAyEtD,CAAC"}
1
+ {"version":3,"file":"FilesLoaderV2.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoaderV2/FilesLoaderV2.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAWlC,oBAAY,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,SAAS,CAAC;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,kBAAkB,gBAyEtD,CAAC"}
@@ -1 +1 @@
1
- import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as i,Fragment as r}from"react/jsx-runtime";import c from"classnames";import{LinearProgress as e}from"@material-ui/core";import{FileIcon as n}from"../FileIcon/FileIcon.js";import t from"../IconButton/index.js";import{CloseSmallIcon as m,DeleteFourIcon as l,RedoIcon as a}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import{CautionFilledCustomIcon as d}from"../../icons/customIcons/icons/CautionFilled.js";import{MiddleTruncatedText as p}from"../MiddleTruncatedText/MiddleTruncatedText.js";import{Regular14 as u,Regular12 as j}from"../Typography.js";import{formatSizeProgress as h}from"./utils.js";import{useStyles as I}from"./styles.js";var f=function(f){var x=f.formatProgress,N=void 0===x?h:x,v=f.className,T=f.name,C=f.current,g=f.total,M=f.errorText,F=f.onCancel,k=f.onReload,z=f.onDelete,b=I(),y=g>=0&&C>=0,E=Math.min(100,Math.ceil(C/g*100)),O=C>=g;return s("div",o({className:c(b.root,v)},{children:[i(n,{name:T,className:b.icon}),s("div",o({className:b.content},{children:[i(u,o({className:b.name},{children:i(p,{children:T},T)})),!M&&!O&&s(r,{children:[i(e,{className:b.progressBar,variant:y?"determinate":void 0,value:E}),s("div",o({className:b.progressTextContainer},{children:[i(j,o({className:b.progressText},{children:N(g,C)})),y&&s(j,o({className:b.progressText},{children:[E,"%"]}))]}))]}),M&&s(u,o({className:b.error},{children:[i(d,{size:16}),M]}))]})),F&&!M&&!O&&i(t,o({onClick:F,size:"small"},{children:i(m,{})})),z&&(M||O)&&i(t,o({onClick:z,size:"small"},{children:i(l,{})})),k&&M&&i(t,o({onClick:k,size:"small"},{children:i(a,{})}))]}))};export{f as FilesLoaderV2};
1
+ import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as i,Fragment as c}from"react/jsx-runtime";import r from"classnames";import{LinearProgress as e}from"@material-ui/core";import{FileIcon as n}from"../FileIcon/FileIcon.js";import t from"../IconButton/index.js";import{CloseIcon as m,DeleteFourIcon as l,RedoIcon as a}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import{CautionFilledCustomIcon as p}from"../../icons/customIcons/icons/CautionFilled.js";import{MiddleTruncatedText as d}from"../MiddleTruncatedText/MiddleTruncatedText.js";import{Regular14 as u,Regular12 as j}from"../Typography.js";import{formatSizeProgress as h}from"./utils.js";import{useStyles as I}from"./styles.js";var f=function(f){var v=f.formatProgress,x=void 0===v?h:v,N=f.className,C=f.name,T=f.current,F=f.total,g=f.errorText,M=f.onCancel,k=f.onReload,P=f.onDelete,z=I(),R=F>=0&&T>=0,b=Math.min(100,Math.ceil(T/F*100)),y=T>=F;return s("div",o({className:r(z.root,N)},{children:[i(n,{name:C,className:z.icon,strokeWidth:2}),s("div",o({className:z.content},{children:[i(u,o({className:z.name},{children:i(d,{children:C},C)})),!g&&!y&&s(c,{children:[i(e,{className:z.progressBar,variant:R?"determinate":void 0,value:b}),s("div",o({className:z.progressTextContainer},{children:[i(j,o({className:z.progressText},{children:x(F,T)})),R&&s(j,o({className:z.progressText},{children:[b,"%"]}))]}))]}),g&&s(u,o({className:z.error},{children:[i(p,{size:16}),g]}))]})),M&&!g&&!y&&i(t,o({onClick:M,size:"small",tooltipProps:{title:"Cancel"}},{children:i(m,{})})),P&&(g||y)&&i(t,o({onClick:P,size:"small",tooltipProps:{title:"Remove File"}},{children:i(l,{})})),k&&g&&i(t,o({onClick:k,size:"small",tooltipProps:{title:"Reload"}},{children:i(a,{})}))]}))};export{f as FilesLoaderV2};
@@ -3,17 +3,7 @@ import { FilesLoaderV2 } from './FilesLoaderV2';
3
3
  export declare const Default: (props: ComponentProps<typeof FilesLoaderV2>) => JSX.Element;
4
4
  declare const _default: {
5
5
  title: string;
6
- component: (props: {
7
- name: string;
8
- total?: number;
9
- current?: number;
10
- errorText?: string;
11
- onDelete?: () => void;
12
- onReload?: () => void;
13
- onCancel?: () => void;
14
- formatProgress?: (total?: number, current?: number) => import("react").ReactNode;
15
- className?: string;
16
- }) => JSX.Element;
6
+ component: (props: import("./FilesLoaderV2").FilesLoaderV2Props) => JSX.Element;
17
7
  argTypes: {
18
8
  onCancel: {
19
9
  options: {
@@ -1 +1 @@
1
- {"version":3,"file":"FilesLoaderV2.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoaderV2/FilesLoaderV2.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,OAAO,UAAW,eAAe,oBAAoB,CAAC,gBAElE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOF,wBAkBE"}
1
+ {"version":3,"file":"FilesLoaderV2.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoaderV2/FilesLoaderV2.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,OAAO,UAAW,eAAe,oBAAoB,CAAC,gBAElE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOF,wBAkBE"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoaderV2/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,wKAgDnB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoaderV2/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,wKAiDnB,CAAC"}
@@ -1 +1 @@
1
- import{makeStyles as e}from"@material-ui/core";var t=e((function(e){return{root:{borderRadius:e.spacing(1),border:"1px solid ".concat(e.palette.primary.text1,"14"),padding:e.spacing(1,2),width:"100%",minHeight:64,display:"flex",flexFlow:"row nowrap",gap:e.spacing(2),alignItems:"center",justifyContent:"space-between"},icon:{width:32,height:32},content:{flexGrow:1,minWidth:1},name:{lineHeight:"20px!important"},progressBar:{height:2,margin:e.spacing(.5,0)},progressTextContainer:{display:"flex",flexFlow:"row nowrap",gap:e.spacing(2),justifyContent:"space-between",minWidth:1},progressText:{color:e.palette.primary.text6,lineHeight:"16px!important"},error:{lineHeight:"16px!important",color:e.palette.error.main,display:"flex",flexFlow:"row nowrap",alignItems:"center",gap:e.spacing(1),paddingTop:e.spacing(.5)}}}));export{t as useStyles};
1
+ import{makeStyles as e}from"@material-ui/core";var t=e((function(e){return{root:{borderRadius:e.spacing(1),border:"1px solid ".concat(e.palette.primary.text1,"14"),padding:e.spacing(1,2),width:"100%",minHeight:64,display:"flex",flexFlow:"row nowrap",gap:e.spacing(2),alignItems:"center",justifyContent:"space-between"},icon:{width:32,height:32},content:{flexGrow:1,minWidth:1},name:{lineHeight:"20px!important"},progressBar:{height:2,margin:e.spacing(.5,0),borderRadius:2},progressTextContainer:{display:"flex",flexFlow:"row nowrap",gap:e.spacing(2),justifyContent:"space-between",minWidth:1},progressText:{color:e.palette.primary.text6,lineHeight:"16px!important"},error:{lineHeight:"16px!important",color:e.palette.error.main,display:"flex",flexFlow:"row nowrap",alignItems:"center",gap:e.spacing(1),paddingTop:e.spacing(.5)}}}));export{t as useStyles};
@@ -1,9 +1,8 @@
1
- import { ComponentProps } from 'react';
2
- import { FilesDropzone } from '~/components/FilesDropzone';
1
+ /// <reference types="react" />
2
+ import { FilesDropzoneProps } from '~/components/FilesDropzone';
3
3
  import { FileProcessorFunction } from './types';
4
- import { Processor } from '~/components/FilesProcessor/Processor';
5
- declare type FilesDropzoneProps = ComponentProps<typeof FilesDropzone>;
6
- declare type ProcessorProps = ComponentProps<typeof Processor>;
4
+ import { ProcessorProps } from '~/components/FilesProcessor/Processor';
5
+ export type { FileProcessorFunction };
7
6
  declare type ValueItem = {
8
7
  id: string | number;
9
8
  name: string;
@@ -57,9 +56,8 @@ declare type FilesProcessorProps<T> = {
57
56
  * @param total total progress value
58
57
  * @param current current progress value
59
58
  */
60
- formatProgress?: ProcessorProps['formatProgress'];
59
+ formatProgress?: ProcessorProps<any>['formatProgress'];
61
60
  className?: string;
62
61
  };
63
62
  export declare const FilesProcessor: <T extends unknown>(props: FilesProcessorProps<T>) => JSX.Element;
64
- export {};
65
63
  //# sourceMappingURL=FilesProcessor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilesProcessor.d.ts","sourceRoot":"","sources":["../../../src/components/FilesProcessor/FilesProcessor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAoC,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,qBAAqB,EAAoB,MAAM,SAAS,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAElE,aAAK,kBAAkB,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAC/D,aAAK,cAAc,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAEvD,aAAK,SAAS,GAAG;IACf,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,aAAK,mBAAmB,CAAC,CAAC,IAAI;IAC5B;;;;;;;OAOG;IACH,WAAW,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAEtC;;;OAGG;IACH,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IAE/B;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAE1C;;;;OAIG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAEtC;;OAEG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAE1C;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAExC;;;;OAIG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAC;IAElD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAQF,eAAO,MAAM,cAAc,mEAuE1B,CAAC"}
1
+ {"version":3,"file":"FilesProcessor.d.ts","sourceRoot":"","sources":["../../../src/components/FilesProcessor/FilesProcessor.tsx"],"names":[],"mappings":";AACA,OAAO,EAAiB,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAE/E,OAAO,EAAE,qBAAqB,EAAoB,MAAM,SAAS,CAAC;AAGlE,OAAO,EAAa,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAElF,YAAY,EAAE,qBAAqB,EAAE,CAAC;AAEtC,aAAK,SAAS,GAAG;IACf,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,aAAK,mBAAmB,CAAC,CAAC,IAAI;IAC5B;;;;;;;OAOG;IACH,WAAW,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAEtC;;;OAGG;IACH,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IAE/B;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAE1C;;;;OAIG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAEtC;;OAEG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAE1C;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAExC;;;;OAIG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC,gBAAgB,CAAC,CAAC;IAEvD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAQF,eAAO,MAAM,cAAc,mEAyF1B,CAAC"}
@@ -1 +1 @@
1
- import{__assign as e,__spreadArray as n}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as r}from"react/jsx-runtime";import{useState as o,useEffect as i,useCallback as s}from"react";import{FilesDropzone as c}from"../FilesDropzone/FilesDropzone.js";import"../../utils/index.js";import{FilesLoaderV2 as u}from"../FilesLoaderV2/FilesLoaderV2.js";import{useStyles as l}from"./styles.js";import f from"classnames";import{Processor as a}from"./Processor.js";var m=function(m){var p=m.multiple,d=m.accept,v=m.className,h=m.processFile,j=m.value,D=m.onDone,F=m.onDelete,g=l(),x=o([]),z=x[0],N=x[1];i((function(){z.length>0&&z.every((function(e){return"success"in e}))&&z.some((function(e){return e.success}))&&(N((function(e){return e.filter((function(e){return!e.success}))})),D(z.filter((function(e){return e.success})).map((function(e){return e.data}))))}),[z]);var b=s((function(e){N((function(n){return n.filter((function(n){return n.file!==e}))}))}),[]),y=s((function(n){N((function(t){return t.map((function(t){return t.file===n.file?e(e({},t),{data:n.data,success:n.success}):t}))}))}),[]),L=s((function(e){var t=e.map((function(e){return{file:e}}));N((function(e){return n(n([],e,!0),t,!0)}))}),[]);return t("div",e({className:f(g.root,v)},{children:[(p||0===z.length)&&r(c,{multiple:p,onDrop:L,accept:d}),(z.length>0||(null==j?void 0:j.length)>0)&&t("div",e({className:g.files},{children:[z.map((function(e){return r(a,{processFile:h,onStatusChange:y,file:e.file,onDelete:b},"".concat(e.file.size,"|").concat(e.file.name))})),null==j?void 0:j.map((function(e){return r(u,{name:e.name,onDelete:F?function(){return F(e)}:void 0,total:0,current:0})}))]}))]}))};export{m as FilesProcessor};
1
+ import{__assign as e,__spreadArray as n}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useState as o,useEffect as i,useCallback as s}from"react";import{FilesDropzone as u}from"../FilesDropzone/FilesDropzone.js";import"../../utils/index.js";import{FilesLoaderV2 as c}from"../FilesLoaderV2/FilesLoaderV2.js";import{useStyles as l}from"./styles.js";import a from"classnames";import{Processor as f}from"./Processor.js";var m=function(m){var p=m.multiple,d=m.accept,v=m.className,g=m.processFile,h=m.value,F=void 0===h?[]:h,j=m.onDone,x=m.onDelete,D=m.maxFiles,z=m.maxSize,N=m.formatProgress,P=l(),S=o([]),b=S[0],y=S[1];i((function(){b.length>0&&b.every((function(e){return"success"in e}))&&b.some((function(e){return e.success}))&&(y((function(e){return e.filter((function(e){return!e.success}))})),j(b.filter((function(e){return e.success})).map((function(e){return e.data}))))}),[b]);var L=s((function(e){y((function(n){return n.filter((function(n){return n.file!==e}))}))}),[]),V=s((function(n){y((function(r){return r.map((function(r){return r.file===n.file?e(e({},r),{data:n.data,success:n.success}):r}))}))}),[]),C=s((function(e){var r=e.map((function(e){return{file:e}}));y((function(e){return n(n([],e,!0),r,!0)}))}),[]);return r("div",e({className:a(P.root,v)},{children:[(p||0===b.length&&0===(null==F?void 0:F.length))&&t(u,{multiple:p,onDrop:C,accept:d,maxFiles:D,maxSize:z}),(b.length>0||(null==F?void 0:F.length)>0)&&r("div",e({className:P.files},{children:[b.map((function(e){return t(f,{processFile:g,onStatusChange:V,file:e.file,onDelete:L,formatProgress:N},"".concat(e.file.size,"|").concat(e.file.name))})),null==F?void 0:F.map((function(e){return t(c,{name:e.name,onDelete:x?function(){return x(e)}:void 0,total:0,current:0})}))]}))]}))};export{m as FilesProcessor};
@@ -1,31 +1,7 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { FilesProcessor } from './FilesProcessor';
3
+ import { Meta } from '@storybook/react';
3
4
  export declare const Default: (props: ComponentProps<typeof FilesProcessor>) => JSX.Element;
4
- declare const _default: {
5
- title: string;
6
- component: <T extends unknown>(props: {
7
- processFile: import("./types").FileProcessorFunction<T>;
8
- onDone: (results: T[]) => void;
9
- value?: {
10
- id: string | number;
11
- name: string;
12
- }[];
13
- onDelete?: (item: {
14
- id: string | number;
15
- name: string;
16
- }) => void;
17
- multiple?: boolean;
18
- accept?: string | string[];
19
- maxFiles?: number;
20
- maxSize?: number;
21
- formatProgress?: (total?: number, current?: number) => import("react").ReactNode;
22
- className?: string;
23
- }) => JSX.Element;
24
- parameters: {
25
- isGenerateImportExample: boolean;
26
- sourceLink: string;
27
- designLink: string;
28
- };
29
- };
30
- export default _default;
5
+ declare const meta: Meta<typeof FilesProcessor>;
6
+ export default meta;
31
7
  //# sourceMappingURL=FilesProcessor.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilesProcessor.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FilesProcessor/FilesProcessor.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA2BlD,eAAO,MAAM,OAAO,UAAW,eAAe,qBAAqB,CAAC,gBA+BnE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,wBAUE"}
1
+ {"version":3,"file":"FilesProcessor.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FilesProcessor/FilesProcessor.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AACjD,OAAO,EAAyB,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AA2BxC,eAAO,MAAM,OAAO,UAAW,eAAe,qBAAqB,CAAC,gBA+BnE,CAAC;AASF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAoBrC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,13 +1,12 @@
1
- import { ComponentProps } from 'react';
2
- import { FilesLoaderV2 } from '~/components/FilesLoaderV2';
1
+ /// <reference types="react" />
2
+ import { FilesLoaderV2Props } from '~/components/FilesLoaderV2';
3
3
  import { FileProcessorFunction, ProcessingResult } from './types';
4
- declare type ProcessorProps<T> = {
4
+ export declare type ProcessorProps<T> = {
5
5
  processFile: FileProcessorFunction<T>;
6
6
  onStatusChange: (result: ProcessingResult<T>) => void;
7
7
  file: File;
8
8
  onDelete: (file: File) => void;
9
- formatProgress?: ComponentProps<typeof FilesLoaderV2>['formatProgress'];
9
+ formatProgress?: FilesLoaderV2Props['formatProgress'];
10
10
  };
11
11
  export declare const Processor: <T extends unknown>(props: ProcessorProps<T>) => JSX.Element;
12
- export {};
13
12
  //# sourceMappingURL=Processor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Processor.d.ts","sourceRoot":"","sources":["../../../src/components/FilesProcessor/Processor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqD,MAAM,OAAO,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAElE,aAAK,cAAc,CAAC,CAAC,IAAI;IACvB,WAAW,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC;IACtC,cAAc,EAAE,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACtD,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC/B,cAAc,CAAC,EAAE,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAAC;CACzE,CAAC;AAEF,eAAO,MAAM,SAAS,8DAuGrB,CAAC"}
1
+ {"version":3,"file":"Processor.d.ts","sourceRoot":"","sources":["../../../src/components/FilesProcessor/Processor.tsx"],"names":[],"mappings":";AACA,OAAO,EAAiB,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAElE,oBAAY,cAAc,CAAC,CAAC,IAAI;IAC9B,WAAW,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC;IACtC,cAAc,EAAE,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACtD,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC/B,cAAc,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,SAAS,8DAuGrB,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './FilesProcessor';
2
+ export type { FileProcessorFunction } from './types';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilesProcessor/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilesProcessor/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,YAAY,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC"}
@@ -1 +1 @@
1
- import{__assign as n}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as i,Fragment as o}from"react/jsx-runtime";import{Grid as e,TextField as s,Box as a}from"@material-ui/core";import{noop as r,isEmpty as d,trim as l}from"lodash";import{useState as c,useEffect as m}from"react";import{CheckSmallIcon as u,CloseSmallIcon as p,WriteIcon as g,DeleteFourIcon as f}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/CautionFilled.js";import v from"../IconButton/index.js";import{GradientPicker as I}from"../GradientPicker/GradientPicker.js";import{DEFAULT_GRADIENTS as h,DEFAULT_GRADIENT_STOPS as S,TEMP_GRADIENT_ID as j,GRADIENT_MAX_NAME_LENGTH as b}from"./configuration/constants.js";import{GradientList as C}from"./GradientList.js";import{GradientSelect as G}from"./GradientSelect.js";import{useStyles as y}from"./GradientManager.styles.js";var k=function(k){var x,B=k.gradientId,N=k.onGradientEditStateChange,P=void 0===N?r:N,F=k.onChange,w=void 0===F?r:F,E=k.defaultGradients,M=void 0===E?h:E,L=k.defaultGradientStops,O=void 0===L?S:L,A=k.allowNoname,D=k.scaleOptions,T=void 0===D?{scaleFrom:0,scaleTo:100}:D,q=k.className,R=y(),W=new C(k.gradients||[],M,k.onGradientsChange),H=c(null),K=H[0],U=H[1],V=k.disableGradientsManagement||!k.onGradientsChange,_=W.getHelperText({name:null==K?void 0:K.name,allowNoname:A,gradientId:B});m((function(){P(Boolean(K))}),[Boolean(K)]);var z=(null===(x=W.getById(B))||void 0===x?void 0:x.gradientStops)||k.gradientStops||O,J=function(){if(d(_)){var n=K.gradientStops,t=l(K.name);if(U(null),t){if(W.getById(K.id||B))return W.update(B,{gradientStops:n,name:t}),void w({gradientId:B,gradientStops:n});var i=W.add(t,n);w({gradientId:null==i?void 0:i.id,gradientStops:n})}else A&&w({gradientStops:n,gradientId:null})}},Q=function(n){n===B&&(w({gradientId:null,gradientStops:z}),U(null)),W.remove(n)},X=function(t){var i=t.trimStart().substring(0,b);U(n(n({},K),{name:i}))};return t(e,n({container:!0,className:q},{children:[i(e,n({item:!0,xs:6},{children:K?i(s,n({InputLabelProps:{shrink:!0},className:R.customGradientName,label:"Gradient Name",value:K.name,onChange:function(n){return X(n.target.value)},onFocus:function(n){n.target.select()},onKeyDown:function(n){var t;if("Enter"===n.key){var i=null===(t=n.target)||void 0===t?void 0:t.value;i&&(X(i),J())}},autoFocus:!0,fullWidth:!0},_)):i(G,{value:B,gradients:k.gradients||[],onChange:function(n){var t,i=W.getById(n);w({gradientId:n,gradientStops:null!==(t=null==i?void 0:i.gradientStops)&&void 0!==t?t:O})},defaultGradients:M,onAction:function(n,t){switch(n){case"add":U({name:"",gradientStops:O,id:j});break;case"delete":Q(t)}},readonly:V})})),i(e,n({item:!0,xs:6},{children:i(a,n({display:"flex",alignItems:"center",height:"100%"},{children:i(a,n({display:"flex",paddingLeft:1},{children:t(o,K?{children:[i(v,n({"data-testid":"save-gradient-btn",onClick:J,tooltipProps:{title:"Save"},disabled:!!_||V},{children:i(u,{})})),i(v,n({"data-testid":"cancel-edit-btn",onClick:function(){U(null)},tooltipProps:{title:"Cancel"}},{children:i(p,{})}))]}:{children:[i(v,n({"data-testid":"edit-gradient-btn",onClick:function(){var n;W.isDefault(B)?U({name:W.newName(),gradientStops:z,id:j}):U({name:(null===(n=W.getById(B))||void 0===n?void 0:n.name)||"",gradientStops:z})},tooltipProps:{title:"Edit"},disabled:V},{children:i(g,{})})),!!W.getById(B)&&!W.isDefault(B)&&i(v,n({"data-testid":"delete-gradient-btn",onClick:function(){return Q(B)},tooltipProps:{title:"Remove"},disabled:V},{children:i(f,{})}))]})}))}))})),i(e,n({item:!0,xs:12},{children:i(I,{from:null==T?void 0:T.scaleFrom,to:null==T?void 0:T.scaleTo,unit:null==T?void 0:T.scaleUnit,noScale:!0,gradientStops:(null==K?void 0:K.gradientStops)||z,onChange:function(t){U(n(n({},K),{gradientStops:t}))},readonly:!K,isMoveInputVisible:!0})}))]}))};export{k as GradientManager};
1
+ import{__assign as n}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as o,Fragment as i}from"react/jsx-runtime";import{Grid as e,TextField as s,Box as a}from"@material-ui/core";import{noop as r,isEmpty as d,trim as l}from"lodash";import{useState as c,useEffect as m}from"react";import{CheckSmallIcon as u,CloseSmallIcon as p,WriteIcon as g,DeleteFourIcon as f}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import v from"../IconButton/index.js";import{GradientPicker as I}from"../GradientPicker/GradientPicker.js";import{DEFAULT_GRADIENTS as h,DEFAULT_GRADIENT_STOPS as S,TEMP_GRADIENT_ID as j,GRADIENT_MAX_NAME_LENGTH as b}from"./configuration/constants.js";import{GradientList as C}from"./GradientList.js";import{GradientSelect as G}from"./GradientSelect.js";import{useStyles as y}from"./GradientManager.styles.js";var k=function(k){var x,F=k.gradientId,B=k.onGradientEditStateChange,N=void 0===B?r:B,P=k.onChange,w=void 0===P?r:P,E=k.defaultGradients,M=void 0===E?h:E,L=k.defaultGradientStops,O=void 0===L?S:L,A=k.allowNoname,D=k.scaleOptions,T=void 0===D?{scaleFrom:0,scaleTo:100}:D,q=k.className,R=y(),W=new C(k.gradients||[],M,k.onGradientsChange),H=c(null),K=H[0],U=H[1],V=k.disableGradientsManagement||!k.onGradientsChange,Z=W.getHelperText({name:null==K?void 0:K.name,allowNoname:A,gradientId:F});m((function(){N(Boolean(K))}),[Boolean(K)]);var _=(null===(x=W.getById(F))||void 0===x?void 0:x.gradientStops)||k.gradientStops||O,z=function(){if(d(Z)){var n=K.gradientStops,t=l(K.name);if(U(null),t){if(W.getById(K.id||F))return W.update(F,{gradientStops:n,name:t}),void w({gradientId:F,gradientStops:n});var o=W.add(t,n);w({gradientId:null==o?void 0:o.id,gradientStops:n})}else A&&w({gradientStops:n,gradientId:null})}},J=function(n){n===F&&(w({gradientId:null,gradientStops:_}),U(null)),W.remove(n)},Q=function(t){var o=t.trimStart().substring(0,b);U(n(n({},K),{name:o}))};return t(e,n({container:!0,className:q},{children:[o(e,n({item:!0,xs:6},{children:K?o(s,n({InputLabelProps:{shrink:!0},className:R.customGradientName,label:"Gradient Name",value:K.name,onChange:function(n){return Q(n.target.value)},onFocus:function(n){n.target.select()},onKeyDown:function(n){var t;if("Enter"===n.key){var o=null===(t=n.target)||void 0===t?void 0:t.value;o&&(Q(o),z())}},autoFocus:!0,fullWidth:!0},Z)):o(G,{value:F,gradients:k.gradients||[],onChange:function(n){var t,o=W.getById(n);w({gradientId:n,gradientStops:null!==(t=null==o?void 0:o.gradientStops)&&void 0!==t?t:O})},defaultGradients:M,onAction:function(n,t){switch(n){case"add":U({name:"",gradientStops:O,id:j});break;case"delete":J(t)}},readonly:V})})),o(e,n({item:!0,xs:6},{children:o(a,n({display:"flex",alignItems:"center",height:"100%"},{children:o(a,n({display:"flex",paddingLeft:1},{children:t(i,K?{children:[o(v,n({"data-testid":"save-gradient-btn",onClick:z,tooltipProps:{title:"Save"},disabled:!!Z||V},{children:o(u,{})})),o(v,n({"data-testid":"cancel-edit-btn",onClick:function(){U(null)},tooltipProps:{title:"Cancel"}},{children:o(p,{})}))]}:{children:[o(v,n({"data-testid":"edit-gradient-btn",onClick:function(){var n;W.isDefault(F)?U({name:W.newName(),gradientStops:_,id:j}):U({name:(null===(n=W.getById(F))||void 0===n?void 0:n.name)||"",gradientStops:_})},tooltipProps:{title:"Edit"},disabled:V},{children:o(g,{})})),!!W.getById(F)&&!W.isDefault(F)&&o(v,n({"data-testid":"delete-gradient-btn",onClick:function(){return J(F)},tooltipProps:{title:"Remove"},disabled:V},{children:o(f,{})}))]})}))}))})),o(e,n({item:!0,xs:12},{children:o(I,{from:null==T?void 0:T.scaleFrom,to:null==T?void 0:T.scaleTo,unit:null==T?void 0:T.scaleUnit,noScale:!0,gradientStops:(null==K?void 0:K.gradientStops)||_,onChange:function(t){U(n(n({},K),{gradientStops:t}))},readonly:!K,isMoveInputVisible:!0})}))]}))};export{k as GradientManager};
@@ -1 +1 @@
1
- import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as s}from"react/jsx-runtime";import{ListSubheader as e,MenuItem as i}from"@material-ui/core";import n from"@material-ui/icons/AddCircle";import{useState as r}from"react";import a from"classnames";import{isEmpty as c}from"lodash";import{GradientPreview as l}from"./GradientPreview/GradientPreview.js";import d from"../Select/index.js";import m from"../IconButton/index.js";import{useStyles as u}from"./GradientSelect.styles.js";import{DeleteFourIcon as p}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/CautionFilled.js";var f=function(f){var v=f.value,j=f.gradients,I=f.onChange,h=f.defaultGradients,g=f.onAction,G=f.readonly,C=u(),b=r(!1),P=b[0],N=b[1],S=function(o){var t,s;if(o.stopPropagation(),!G){var e=null===(s=null===(t=o.currentTarget.closest("li"))||void 0===t?void 0:t.dataset)||void 0===s?void 0:s.value;v===e&&N(!1),g("delete",e)}},x=c(j)&&G;return t(d,o({"data-testid":"gradient-select",label:"Gradients",value:v||"",className:C.select,onChange:function(o){var t=o.target;t.value&&I(t.value)},open:P,onClose:function(){return N(!1)},onOpen:function(){return N(!0)},inputProps:{name:"gradientId",id:"gradientId"},FormControlProps:{fullWidth:!0},fullWidth:!0,defaultValue:"",InputLabelProps:{shrink:!0}},{children:[s(e,o({className:C.listHeader},{children:"Gradients"})),!x&&t(e,o({className:C.subHeader},{children:["My Gradients",!G&&s(m,o({color:"primary","data-testid":"add-gradient-btn",className:C.addButton,onClick:function(){return g("add")},tooltipProps:{title:"Create Custom Gradient"}},{children:s(n,{color:"primary"})}))]})),j.map((function(e){var n=e.id,r=e.name,c=e.gradientStops;return t(i,o({value:n,className:C.customGradientListItem},{children:[s(l,{gradientStops:c}),s("span",{children:r}),s(m,o({className:a({disabled:G}),onClick:S,tooltipProps:{title:"Remove Gradient"},size:"medium"},{children:s(p,{})}))]}),n)})),!c(h)&&s(e,o({className:C.subHeader},{children:"Default Gradients"})),h.map((function(e){var n=e.id,r=e.name,a=e.gradientStops;return t(i,o({value:n,className:C.customGradientListItem},{children:[s(l,{gradientStops:a}),s("span",{children:r})]}),n)}))]}))};export{f as GradientSelect};
1
+ import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as i}from"react/jsx-runtime";import{ListSubheader as t,MenuItem as n}from"@material-ui/core";import e from"@material-ui/icons/AddCircle";import{useState as r}from"react";import c from"classnames";import{isEmpty as a}from"lodash";import{GradientPreview as l}from"./GradientPreview/GradientPreview.js";import m from"../Select/index.js";import d from"../IconButton/index.js";import{useStyles as u}from"./GradientSelect.styles.js";import{DeleteFourIcon as p}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";var f=function(f){var j=f.value,v=f.gradients,I=f.onChange,h=f.defaultGradients,g=f.onAction,G=f.readonly,C=u(),b=r(!1),P=b[0],N=b[1],S=function(o){var s,i;if(o.stopPropagation(),!G){var t=null===(i=null===(s=o.currentTarget.closest("li"))||void 0===s?void 0:s.dataset)||void 0===i?void 0:i.value;j===t&&N(!1),g("delete",t)}},F=a(v)&&G;return s(m,o({"data-testid":"gradient-select",label:"Gradients",value:j||"",className:C.select,onChange:function(o){var s=o.target;s.value&&I(s.value)},open:P,onClose:function(){return N(!1)},onOpen:function(){return N(!0)},inputProps:{name:"gradientId",id:"gradientId"},FormControlProps:{fullWidth:!0},fullWidth:!0,defaultValue:"",InputLabelProps:{shrink:!0}},{children:[i(t,o({className:C.listHeader},{children:"Gradients"})),!F&&s(t,o({className:C.subHeader},{children:["My Gradients",!G&&i(d,o({color:"primary","data-testid":"add-gradient-btn",className:C.addButton,onClick:function(){return g("add")},tooltipProps:{title:"Create Custom Gradient"}},{children:i(e,{color:"primary"})}))]})),v.map((function(t){var e=t.id,r=t.name,a=t.gradientStops;return s(n,o({value:e,className:C.customGradientListItem},{children:[i(l,{gradientStops:a}),i("span",{children:r}),i(d,o({className:c({disabled:G}),onClick:S,tooltipProps:{title:"Remove Gradient"},size:"medium"},{children:i(p,{})}))]}),e)})),!a(h)&&i(t,o({className:C.subHeader},{children:"Default Gradients"})),h.map((function(t){var e=t.id,r=t.name,c=t.gradientStops;return s(n,o({value:e,className:C.customGradientListItem},{children:[i(l,{gradientStops:c}),i("span",{children:r})]}),e)}))]}))};export{f as GradientSelect};
@@ -1 +1 @@
1
- import{__assign as o,__spreadArray as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as n,jsx as i}from"react/jsx-runtime";import{useRef as e,useState as r,useEffect as c,useMemo as s}from"react";import{withSize as a}from"react-sizeme";import l from"classnames";import u from"react-draggable";import{find as d,noop as m,sortBy as p,reject as f,clamp as v,omit as h}from"lodash";import g from"tinygradient";import{v4 as b}from"uuid";import{Typography as j,Tooltip as C,Popover as I,TextField as y}from"@material-ui/core";import{Add as N}from"@material-ui/icons";import{DeleteFourIcon as k}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/CautionFilled.js";import x from"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import{calcGradientStyle as P,getStopText as F,roundToStep as _,getRangeStep as M}from"./GradientPicker.utils.js";import{useThrottledCallback as O}from"../shared/useThrottledCallback.js";import T from"../IconButton/index.js";import{useStyles as z}from"./GradientPicker.styles.js";var B=a()((function(a){var B=a.size,E=a.from,S=void 0===E?0:E,G=a.to,A=void 0===G?100:G,D=a.unit,L=a.gradientStops,R=a.onChange,V=a.style,q=a.isMoveInputVisible,w=a.readonly,W=a.noScale,H=a["data-testid"],K=void 0===H?"GradientPicker":H,X=e(),J=r([]),Q=J[0],U=J[1],Y=r(null),Z=Y[0],$=Y[1],oo=r(null),to=oo[0],no=oo[1],io=r(null),eo=io[0],ro=io[1],co=z({readonly:w}),so=Number.isFinite(S)?Number(S):0,ao=Number.isFinite(A)?Number(A):100,lo=ao-so;c((function(){(L.length!==(null==Q?void 0:Q.length)||L.some((function(o,t){return o.color!==Q[t].color||o.pos!==Q[t].pos})))&&U(L.map((function(t){return o(o({},t),{id:b()})})))}),[L]);var uo=s((function(){return P(Q)}),[Q]),mo=s((function(){var o;return null===(o=X.current)||void 0===o?void 0:o.clientWidth}),[B.width,X.current]),po=function(o){var t=p(o,"pos");U(t),R&&R(t.map((function(o){return h(o,"id")})))},fo=function(o){if(o.target===o.currentTarget){var t=o.currentTarget.getBoundingClientRect(),n=o.clientX-t.left;ro(Number.isFinite(n)?n:null)}else ro(null)},vo=O((function(n,i,e,r){if(void 0===r&&(r=!1),!Z){var c=i/mo*100,s=d(Q,{id:n});if(e>=40||e<=-50)go();else{var a=o(o({},s),{pos:c}),l=p(t(t([],f(Q,{id:n}),!0),[a],!1),"pos");if(r)return po(l),void no(null);U(l),jo||no(n)}}}),0),ho=function(){po(Q),no(null),$(null)},go=function(){Q.length>2&&(po(f(Q,{id:to})),$(null),no(null))},bo=!Z&&Number.isFinite(eo)&&!w,jo=d(Q,{id:to}),Co=M(lo),Io=function(o){if(!o)return null;var t=so+(null==o?void 0:o.pos)/100*lo;return _(t,Co/100)}(jo);return n("div",o({className:co.root,style:V},{children:[!W&&n("div",o({className:co.indicatorContainer},{children:[i("div",{children:n(j,o({"data-testid":"".concat(K,"_from"),className:co.indicator},{children:[so," ",D]}))}),i("div",{children:n(j,o({"data-testid":"".concat(K,"_to"),className:co.indicator},{children:[ao," ",D]}))})]})),n("div",o({onMouseEnter:fo,onMouseMove:fo,onMouseLeave:function(){return ro(null)},onClick:function(o){if(!w){var n=eo/mo*100,i=g(Q.map((function(o){return{color:o.color,pos:o.pos/100}}))),e="#".concat(i.rgbAt(n/100).toHex()),r={id:b(),pos:n,color:e};po(t(t([],Q,!0),[r],!1))}},"data-testid":"".concat(K,"_track"),className:co.mainBar,style:{background:"linear-gradient(90deg, ".concat(uo,")")},ref:X},{children:[bo&&i("div",o({"data-testid":"".concat(K,"_addCircle"),className:co.addCircle,style:{left:eo-12}},{children:i(N,{fontSize:"small",className:co.addIcon})})),!!mo&&Q.map((function(t,n){var e,r=t.pos,c=t.color,s=t.id;return i(u,o({disabled:w,axis:"x",bounds:{left:-12,right:mo-12,top:-50,bottom:40},onDrag:function(o,t){return vo(s,t.x+12,t.y,!1)},onStop:function(o,t){return vo(s,t.x+12,t.y,!0)},position:{x:mo*r/100-12,y:-4}},{children:i("div",o({onClick:function(o){return function(o,t){o.stopPropagation(),w||to||(no(t),$(o.currentTarget))}(o,s)},"data-testid":"".concat(K,"_stop_").concat(n),className:l(co.circle,{highlight:to===s}),style:{backgroundColor:c}},{children:i(C,o({title:(e=r,F(e,{fromValue:so,toValue:ao})),placement:"top"},{children:i("div",{style:{height:"100%"}})}))}))}),s)}))]})),Boolean(Z)&&n(I,o({id:"colors-popper",open:Boolean(Z),anchorEl:Z,onClose:ho,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},{children:[i(x,{color:null==jo?void 0:jo.color,onChange:function(t){var n=t.hex;U(Q.map((function(t){return t.id===to?o(o({},t),{color:n}):t})))},onSizeChange:m,enableTransparencyPalette:!1}),i(T,o({"data-testid":"".concat(K,"_stopDelete"),className:co.removeButton,onClick:go},{children:i(k,{className:co.deleteIcon})})),q&&i(y,{"data-testid":"".concat(K,"_moveInput"),type:"number",variant:"outlined",value:Io,classes:{root:co.posTextfield},InputProps:{inputProps:{min:so,max:ao,step:Co,maxLength:10},classes:{root:co.posOutlinedRoot,input:co.posOutlinedInput}},autoFocus:!0,onFocus:function(o){return o.target.select()},onChange:function(t){if(""===t.target.value){var n=t.target;setTimeout((function(){return null==n?void 0:n.select()}))}var i=v(Number(t.target.value),so,ao);i||t.target.select();var e=(i-so)/lo*100;U(Q.map((function(t){return t.id===to?o(o({},t),{pos:e}):t})))},onKeyDown:function(o){return"Enter"===o.key&&ho()}})]}))]}))}));export{B as GradientPicker};
1
+ import{__assign as o,__spreadArray as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as n,jsx as i}from"react/jsx-runtime";import{useRef as e,useState as r,useEffect as c,useMemo as s}from"react";import{withSize as a}from"react-sizeme";import l from"classnames";import u from"react-draggable";import{find as m,noop as d,sortBy as p,reject as f,clamp as v,omit as h}from"lodash";import g from"tinygradient";import{v4 as b}from"uuid";import{Typography as j,Tooltip as I,Popover as C,TextField as y}from"@material-ui/core";import{Add as N}from"@material-ui/icons";import{DeleteFourIcon as k}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import x from"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import{calcGradientStyle as P,getStopText as F,roundToStep as _,getRangeStep as M}from"./GradientPicker.utils.js";import{useThrottledCallback as O}from"../shared/useThrottledCallback.js";import S from"../IconButton/index.js";import{useStyles as T}from"./GradientPicker.styles.js";var z=a()((function(a){var z=a.size,B=a.from,E=void 0===B?0:B,G=a.to,A=void 0===G?100:G,D=a.unit,L=a.gradientStops,R=a.onChange,V=a.style,q=a.isMoveInputVisible,w=a.readonly,W=a.noScale,H=a["data-testid"],K=void 0===H?"GradientPicker":H,X=e(),Z=r([]),J=Z[0],Q=Z[1],U=r(null),Y=U[0],$=U[1],oo=r(null),to=oo[0],no=oo[1],io=r(null),eo=io[0],ro=io[1],co=T({readonly:w}),so=Number.isFinite(E)?Number(E):0,ao=Number.isFinite(A)?Number(A):100,lo=ao-so;c((function(){(L.length!==(null==J?void 0:J.length)||L.some((function(o,t){return o.color!==J[t].color||o.pos!==J[t].pos})))&&Q(L.map((function(t){return o(o({},t),{id:b()})})))}),[L]);var uo=s((function(){return P(J)}),[J]),mo=s((function(){var o;return null===(o=X.current)||void 0===o?void 0:o.clientWidth}),[z.width,X.current]),po=function(o){var t=p(o,"pos");Q(t),R&&R(t.map((function(o){return h(o,"id")})))},fo=function(o){if(o.target===o.currentTarget){var t=o.currentTarget.getBoundingClientRect(),n=o.clientX-t.left;ro(Number.isFinite(n)?n:null)}else ro(null)},vo=O((function(n,i,e,r){if(void 0===r&&(r=!1),!Y){var c=i/mo*100,s=m(J,{id:n});if(e>=40||e<=-50)go();else{var a=o(o({},s),{pos:c}),l=p(t(t([],f(J,{id:n}),!0),[a],!1),"pos");if(r)return po(l),void no(null);Q(l),jo||no(n)}}}),0),ho=function(){po(J),no(null),$(null)},go=function(){J.length>2&&(po(f(J,{id:to})),$(null),no(null))},bo=!Y&&Number.isFinite(eo)&&!w,jo=m(J,{id:to}),Io=M(lo),Co=function(o){if(!o)return null;var t=so+(null==o?void 0:o.pos)/100*lo;return _(t,Io/100)}(jo);return n("div",o({className:co.root,style:V},{children:[!W&&n("div",o({className:co.indicatorContainer},{children:[i("div",{children:n(j,o({"data-testid":"".concat(K,"_from"),className:co.indicator},{children:[so," ",D]}))}),i("div",{children:n(j,o({"data-testid":"".concat(K,"_to"),className:co.indicator},{children:[ao," ",D]}))})]})),n("div",o({onMouseEnter:fo,onMouseMove:fo,onMouseLeave:function(){return ro(null)},onClick:function(o){if(!w){var n=eo/mo*100,i=g(J.map((function(o){return{color:o.color,pos:o.pos/100}}))),e="#".concat(i.rgbAt(n/100).toHex()),r={id:b(),pos:n,color:e};po(t(t([],J,!0),[r],!1))}},"data-testid":"".concat(K,"_track"),className:co.mainBar,style:{background:"linear-gradient(90deg, ".concat(uo,")")},ref:X},{children:[bo&&i("div",o({"data-testid":"".concat(K,"_addCircle"),className:co.addCircle,style:{left:eo-12}},{children:i(N,{fontSize:"small",className:co.addIcon})})),!!mo&&J.map((function(t,n){var e,r=t.pos,c=t.color,s=t.id;return i(u,o({disabled:w,axis:"x",bounds:{left:-12,right:mo-12,top:-50,bottom:40},onDrag:function(o,t){return vo(s,t.x+12,t.y,!1)},onStop:function(o,t){return vo(s,t.x+12,t.y,!0)},position:{x:mo*r/100-12,y:-4}},{children:i("div",o({onClick:function(o){return function(o,t){o.stopPropagation(),w||to||(no(t),$(o.currentTarget))}(o,s)},"data-testid":"".concat(K,"_stop_").concat(n),className:l(co.circle,{highlight:to===s}),style:{backgroundColor:c}},{children:i(I,o({title:(e=r,F(e,{fromValue:so,toValue:ao})),placement:"top"},{children:i("div",{style:{height:"100%"}})}))}))}),s)}))]})),Boolean(Y)&&n(C,o({id:"colors-popper",open:Boolean(Y),anchorEl:Y,onClose:ho,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},{children:[i(x,{color:null==jo?void 0:jo.color,onChange:function(t){var n=t.hex;Q(J.map((function(t){return t.id===to?o(o({},t),{color:n}):t})))},onSizeChange:d,enableTransparencyPalette:!1}),i(S,o({"data-testid":"".concat(K,"_stopDelete"),className:co.removeButton,onClick:go},{children:i(k,{className:co.deleteIcon})})),q&&i(y,{"data-testid":"".concat(K,"_moveInput"),type:"number",variant:"outlined",value:Co,classes:{root:co.posTextfield},InputProps:{inputProps:{min:so,max:ao,step:Io,maxLength:10},classes:{root:co.posOutlinedRoot,input:co.posOutlinedInput}},autoFocus:!0,onFocus:function(o){return o.target.select()},onChange:function(t){if(""===t.target.value){var n=t.target;setTimeout((function(){return null==n?void 0:n.select()}))}var i=v(Number(t.target.value),so,ao);i||t.target.select();var e=(i-so)/lo*100;Q(J.map((function(t){return t.id===to?o(o({},t),{pos:e}):t})))},onKeyDown:function(o){return"Enter"===o.key&&ho()}})]}))]}))}));export{z as GradientPicker};
@@ -1 +1 @@
1
- import{createSvgIcon as o}from"@material-ui/core";import i from"moment";import{HelpIcon as s}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/CautionFilled.js";import{getLocalStorageItem as c}from"../../utils/localStorage.js";import{jsxs as t,jsx as n}from"react/jsx-runtime";var e=o(t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("g",{clipPath:"url(#clip0_69385_73795)",children:[n("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.3986 4.3986C6.34317 2.45406 9.0317 1.25 12 1.25C14.9683 1.25 17.6568 2.45406 19.6014 4.3986L19.0711 4.92893L19.6014 4.3986C21.5459 6.34317 22.75 9.0317 22.75 12C22.75 14.9683 21.5459 17.6568 19.6014 19.6014C17.6568 21.5459 14.9683 22.75 12 22.75C9.0317 22.75 6.34317 21.5459 4.3986 19.6014L4.92893 19.0711L4.3986 19.6014C2.45406 17.6568 1.25 14.9683 1.25 12C1.25 9.0317 2.45406 6.34317 4.3986 4.3986L4.3986 4.3986ZM12 2.75C9.4455 2.75 7.13403 3.78452 5.45926 5.45926C3.78451 7.13404 2.75 9.4455 2.75 12C2.75 14.5545 3.78452 16.866 5.45926 18.5407C7.13403 20.2155 9.4455 21.25 12 21.25C14.5545 21.25 16.866 20.2155 18.5407 18.5407C20.2155 16.866 21.25 14.5545 21.25 12C21.25 9.4455 20.2155 7.13403 18.5407 5.45926C16.866 3.78452 14.5545 2.75 12 2.75Z",fill:"#BDBDBD"}),n("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.8125C12.6904 18.8125 13.25 18.2529 13.25 17.5625C13.25 16.8722 12.6904 16.3125 12 16.3125C11.3097 16.3125 10.75 16.8722 10.75 17.5625C10.75 18.2529 11.3097 18.8125 12 18.8125Z",fill:"#BDBDBD"}),n("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.25 9.3125C8.25 7.24144 9.92894 5.5625 12 5.5625C14.0711 5.5625 15.75 7.24144 15.75 9.3125C15.75 11.1267 14.4617 12.64 12.75 12.9875V14.3125C12.75 14.7267 12.4142 15.0625 12 15.0625C11.5858 15.0625 11.25 14.7267 11.25 14.3125V12.3125C11.25 11.8983 11.5858 11.5625 12 11.5625C13.2426 11.5625 14.25 10.5551 14.25 9.3125C14.25 8.06986 13.2426 7.0625 12 7.0625C10.7574 7.0625 9.75 8.06986 9.75 9.3125C9.75 9.72671 9.41421 10.0625 9 10.0625C8.58579 10.0625 8.25 9.72671 8.25 9.3125Z",fill:"#BDBDBD"}),n("rect",{x:"15.5",y:"-0.5",width:"9",height:"9",rx:"4.5",fill:"#75DB29"}),n("rect",{x:"15.5",y:"-0.5",width:"9",height:"9",rx:"4.5",stroke:"#212121"})]}),n("defs",{children:n("clipPath",{id:"clip0_69385_73795",children:n("rect",{width:"24",height:"24",fill:"white"})})})]}),"NewContentIcon");function l(o){var t,l=o.appId,r=o.helpContentUpdatedAt,m=null===(t=c("helpCenter"))||void 0===t?void 0:t[l],d=r&&(!m||i(m).isBefore(r));return n(d?e:s,{})}export{l as HelpCenterIcon};
1
+ import{createSvgIcon as o}from"@material-ui/core";import i from"moment";import{HelpIcon as s}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import{getLocalStorageItem as c}from"../../utils/localStorage.js";import{jsxs as n,jsx as t}from"react/jsx-runtime";var e=o(n("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n("g",{clipPath:"url(#clip0_69385_73795)",children:[t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.3986 4.3986C6.34317 2.45406 9.0317 1.25 12 1.25C14.9683 1.25 17.6568 2.45406 19.6014 4.3986L19.0711 4.92893L19.6014 4.3986C21.5459 6.34317 22.75 9.0317 22.75 12C22.75 14.9683 21.5459 17.6568 19.6014 19.6014C17.6568 21.5459 14.9683 22.75 12 22.75C9.0317 22.75 6.34317 21.5459 4.3986 19.6014L4.92893 19.0711L4.3986 19.6014C2.45406 17.6568 1.25 14.9683 1.25 12C1.25 9.0317 2.45406 6.34317 4.3986 4.3986L4.3986 4.3986ZM12 2.75C9.4455 2.75 7.13403 3.78452 5.45926 5.45926C3.78451 7.13404 2.75 9.4455 2.75 12C2.75 14.5545 3.78452 16.866 5.45926 18.5407C7.13403 20.2155 9.4455 21.25 12 21.25C14.5545 21.25 16.866 20.2155 18.5407 18.5407C20.2155 16.866 21.25 14.5545 21.25 12C21.25 9.4455 20.2155 7.13403 18.5407 5.45926C16.866 3.78452 14.5545 2.75 12 2.75Z",fill:"#BDBDBD"}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.8125C12.6904 18.8125 13.25 18.2529 13.25 17.5625C13.25 16.8722 12.6904 16.3125 12 16.3125C11.3097 16.3125 10.75 16.8722 10.75 17.5625C10.75 18.2529 11.3097 18.8125 12 18.8125Z",fill:"#BDBDBD"}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.25 9.3125C8.25 7.24144 9.92894 5.5625 12 5.5625C14.0711 5.5625 15.75 7.24144 15.75 9.3125C15.75 11.1267 14.4617 12.64 12.75 12.9875V14.3125C12.75 14.7267 12.4142 15.0625 12 15.0625C11.5858 15.0625 11.25 14.7267 11.25 14.3125V12.3125C11.25 11.8983 11.5858 11.5625 12 11.5625C13.2426 11.5625 14.25 10.5551 14.25 9.3125C14.25 8.06986 13.2426 7.0625 12 7.0625C10.7574 7.0625 9.75 8.06986 9.75 9.3125C9.75 9.72671 9.41421 10.0625 9 10.0625C8.58579 10.0625 8.25 9.72671 8.25 9.3125Z",fill:"#BDBDBD"}),t("rect",{x:"15.5",y:"-0.5",width:"9",height:"9",rx:"4.5",fill:"#75DB29"}),t("rect",{x:"15.5",y:"-0.5",width:"9",height:"9",rx:"4.5",stroke:"#212121"})]}),t("defs",{children:t("clipPath",{id:"clip0_69385_73795",children:t("rect",{width:"24",height:"24",fill:"white"})})})]}),"NewContentIcon");function r(o){var n,r=o.appId,l=o.helpContentUpdatedAt,m=null===(n=c("helpCenter"))||void 0===n?void 0:n[r],p=l&&(!m||i(m).isBefore(l));return t(p?e:s,{})}export{r as HelpCenterIcon};
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { LoaderProps } from './types';
3
- export declare const LOADER_HREF: string;
3
+ export declare const LOADER_HREF: any;
4
4
  export declare const LOADER_DEFAULT_SIZE = 80;
5
5
  declare const Loader: {
6
6
  (props: LoaderProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/Loader.tsx"],"names":[],"mappings":";AACA,OAAO,EAAmB,WAAW,EAAE,MAAM,SAAS,CAAC;AAIvD,eAAO,MAAM,WAAW,QAA4D,CAAC;AACrF,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC,QAAA,MAAM,MAAM;YAAW,WAAW,GAAG,WAAW;;;;;;;;;CAY/C,CAAC;AASF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/Loader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAmB,MAAM,SAAS,CAAC;AAKvD,eAAO,MAAM,WAAW,KAAQ,CAAC;AACjC,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC,QAAA,MAAM,MAAM;YAAW,WAAW,GAAG,WAAW;;;;;;;;;CAY/C,CAAC;AASF,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import"@babel/runtime/helpers/defineProperty";import"uuid";import"lodash";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import{getCdnUrl as o}from"../../clients/corvaUrls.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import{loaderPropTypes as i}from"./types.js";import r from"./LoadingIndicator.css.js";var s=o("/app/images/corva-loading-icon.gif"),e=80,a=function(o){var i=o.white,e=o.size;return t("img",{"data-testid":"".concat("loader","_image"),className:"".concat(r.cLoader," ").concat(i?"":r.cLoaderBlack),style:{width:e,height:e},src:s,alt:"Corva Loader"})};a.propTypes=i,a.defaultProps={white:!0,size:80};export{e as LOADER_DEFAULT_SIZE,s as LOADER_HREF,a as default};
1
+ import{jsx as a}from"react/jsx-runtime";import{loaderPropTypes as t}from"./types.js";import e from"./LoadingIndicator.css.js";var r="/static/media/3ecb3740e2ccf98b1f61abce5f8ffb9f.gif",c=80,o=function(t){var c=t.white,o=t.size;return a("img",{"data-testid":"".concat("loader","_image"),className:"".concat(e.cLoader," ").concat(c?"":e.cLoaderBlack),style:{width:o,height:o},src:r,alt:"Corva Loader"})};o.propTypes=t,o.defaultProps={white:!0,size:80};export{c as LOADER_DEFAULT_SIZE,r as LOADER_HREF,o as default};
@@ -14,7 +14,7 @@ declare const LoadingIndicator: {
14
14
  size: number;
15
15
  className: string;
16
16
  };
17
- LOADER_HREF: string;
17
+ LOADER_HREF: any;
18
18
  LOADER_DEFAULT_SIZE: number;
19
19
  };
20
20
  export default LoadingIndicator;
@@ -1 +1 @@
1
- import{__rest as s,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i}from"react/jsx-runtime";import n from"classnames";import{noop as e}from"lodash";import{Modal as a}from"@material-ui/core";import{CloseSmallIcon as c}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/CautionFilled.js";import{isMobileDetected as l,isNativeDetected as m}from"../../utils/mobileDetect.js";import r from"../IconButton/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../utils/env.js";import"../GradientManager/configuration/constants.js";import{CLASSNAMES as d}from"../../constants/classNames.js";import p from"./CorvaModal.css.js";var C={filters:"Filters",settings:"Settings"};function j(j){var u,N=j.actions,f=j.actionsClassName,I=j.children,v=j.contentClassName,h=j.contentContainerClassName,b=j.isCloseIconHidden,M=void 0!==b&&b,g=j.isMobile,F=void 0===g?l:g,k=j.isNative,x=void 0===k?m:k,y=j.modalTitleClassName,A=j.closeIconClassName,z=j.onClose,E=void 0===z?e:z,O=j.open,P=j.rootClassName,R=j.size,T=j.stickyFooterClassName,q=j.title,B=j.type,G=j.contentRef,H=j["data-testid"],S=void 0===H?"CorvaModal":H,W=s(j,["actions","actionsClassName","children","contentClassName","contentContainerClassName","isCloseIconHidden","isMobile","isNative","modalTitleClassName","closeIconClassName","onClose","open","rootClassName","size","stickyFooterClassName","title","type","contentRef","data-testid"]),_=x||F,D=q||C[B];return t(a,o({open:O,onClose:E,className:n(!_&&"c-modal",p.modalWrapper,P,d.modal)},W,{children:i("div",o({className:n((u={},u[p.modalContainer]=!0,u[p.modalContainerMobile]=_,u[p[R]]=!0,u[h]=!0,u))},{children:[D&&i("div",o({className:n(p.title,_&&p.titleMobile,y)},{children:[t("div",o({className:n(p.titleText)},{children:D})),(!M||B)&&t(r,o({className:A,tooltipProps:{title:"Close"},onClick:E,"data-testid":"".concat(S,"_closeButton")},{children:t(c,{size:24})}))]})),I&&t("div",o({ref:G,className:n(p.modalContent,_&&p.modalContentMobile,v)},{children:I})),N&&t("div",o({className:n(p.modalActions,_&&p.modalActionsMobile,T,f)},{children:N}))]}))}))}export{j as CorvaModal};
1
+ import{__rest as s,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i}from"react/jsx-runtime";import n from"classnames";import{noop as e}from"lodash";import{Modal as c}from"@material-ui/core";import{CloseSmallIcon as a}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import{isMobileDetected as m,isNativeDetected as l}from"../../utils/mobileDetect.js";import r from"../IconButton/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../utils/env.js";import"../GradientManager/configuration/constants.js";import{CLASSNAMES as d}from"../../constants/classNames.js";import p from"./CorvaModal.css.js";var j={filters:"Filters",settings:"Settings"};function C(C){var u,N=C.actions,I=C.actionsClassName,f=C.children,v=C.contentClassName,h=C.contentContainerClassName,b=C.isCloseIconHidden,M=void 0!==b&&b,g=C.isMobile,F=void 0===g?m:g,k=C.isNative,x=void 0===k?l:k,y=C.modalTitleClassName,A=C.closeIconClassName,z=C.onClose,E=void 0===z?e:z,O=C.open,P=C.rootClassName,R=C.size,S=C.stickyFooterClassName,T=C.title,q=C.type,B=C.contentRef,G=C["data-testid"],H=void 0===G?"CorvaModal":G,W=s(C,["actions","actionsClassName","children","contentClassName","contentContainerClassName","isCloseIconHidden","isMobile","isNative","modalTitleClassName","closeIconClassName","onClose","open","rootClassName","size","stickyFooterClassName","title","type","contentRef","data-testid"]),_=x||F,D=T||j[q];return t(c,o({open:O,onClose:E,className:n(!_&&"c-modal",p.modalWrapper,P,d.modal)},W,{children:i("div",o({className:n((u={},u[p.modalContainer]=!0,u[p.modalContainerMobile]=_,u[p[R]]=!0,u[h]=!0,u))},{children:[D&&i("div",o({className:n(p.title,_&&p.titleMobile,y)},{children:[t("div",o({className:n(p.titleText)},{children:D})),(!M||q)&&t(r,o({className:A,tooltipProps:{title:"Close"},onClick:E,"data-testid":"".concat(H,"_closeButton")},{children:t(a,{size:24})}))]})),f&&t("div",o({ref:B,className:n(p.modalContent,_&&p.modalContentMobile,v)},{children:f})),N&&t("div",o({className:n(p.modalActions,_&&p.modalActionsMobile,S,I)},{children:N}))]}))}))}export{C as CorvaModal};
@@ -1 +1 @@
1
- import{__rest as o,__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i,jsxs as t}from"react/jsx-runtime";import{useEffect as n,cloneElement as e}from"react";import c from"classnames";import{noop as a}from"lodash";import{Grow as r,SnackbarContent as l,Tooltip as m,Typography as d}from"@material-ui/core";import p from"../IconButton/index.js";import{NOTIFICATION_VARIANTS as u}from"../../constants/notifications.js";import{useStyles as f}from"./Toast.styles.js";import{CheckOneIcon as j,CautionIcon as v,AttentionIcon as h,InfoIcon as C,PuzzleIcon as I,CloseSmallIcon as N}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/CautionFilled.js";var b,g=((b={})[u.success]=j,b[u.warning]=v,b[u.error]=h,b[u.info]=C,b[u.neutral]=I,b),k=function(j){var v,h=j.onDismissClick,C=j.toast,I=o(j,["onDismissClick","toast"]),b=C.alertLevel,k=C.autoHideDuration,T=void 0===k?3e3:k,x=C.content,P=C.hideIcon,z=C.icon,B=C.id,D=C.onClick,E=void 0===D?a:D,F=C.onClose,L=void 0===F?a:F,O=C.timestamp,W=C.title,q=C.tooltipProps,w=C.variant,y=void 0===w?"info":w;n((function(){if(T!==1/0){var o=setTimeout((function(){return h(B)}),T);return function(){return clearTimeout(o)}}}),[]);var A=f(),M=g[y];return i(r,s({appear:!0,in:!0},{children:i(l,s({classes:{root:c(A.main,!b&&A[y],b&&A.alertNotification,b&&A["alertLevels-".concat(b)]),action:A.actionContainer,message:A.messageContainer},"aria-describedby":"client-snackbar","data-testid":"notificationPopup_".concat(u[y]),message:i(m,s({},q,{title:x,classes:{tooltip:A.tooltip},placement:"bottom"},{children:t("div",s({id:"client-snackbar",className:A.messageWrapper,onClick:E},{children:[!P&&i("div",s({className:A.iconWrapper},{children:z?e(z,{className:A.icon,nativeColor:"#fff"}):i(M,{fill:y===u.warning?"#000":"#fff",size:16,className:A.icon})})),t("div",s({className:A.message},{children:[t("div",s({className:A.messageTop},{children:[W&&i(d,s({"data-testid":"title",variant:"subtitle2",className:c(A.title,(v={},v[A.alertTitle]=b,v))},{children:W})),O&&i(d,s({className:c(A.timestamp,!b&&A[y])},{children:O}))]})),i("div",s({className:c(A.messageContent,!b&&A[y])},{children:i(d,s({"data-testid":"content",className:c(b?A.alertContent:A.content)},{children:x}))}))]}))]}))})),action:[i(p,s({"data-testid":"closeButton","aria-label":"Close",color:"inherit",onClick:function(){L(),h(B)},size:"small",tooltipProps:{title:"Close",classes:{tooltip:A.tooltip}},className:A.closeIconButton},{children:i(N,{size:24,fill:b?"#000":"#fff"})}),"close")]},I))}))};export{k as Toast};
1
+ import{__rest as o,__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i,jsxs as t}from"react/jsx-runtime";import{useEffect as n,cloneElement as c}from"react";import e from"classnames";import{noop as a}from"lodash";import{Grow as r,SnackbarContent as l,Tooltip as m,Typography as p}from"@material-ui/core";import d from"../IconButton/index.js";import{NOTIFICATION_VARIANTS as u}from"../../constants/notifications.js";import{useStyles as f}from"./Toast.styles.js";import{CheckOneIcon as j,CautionIcon as v,AttentionIcon as I,InfoIcon as h,PuzzleIcon as C,CloseSmallIcon as N}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";var b,g=((b={})[u.success]=j,b[u.warning]=v,b[u.error]=I,b[u.info]=h,b[u.neutral]=C,b),k=function(j){var v,I=j.onDismissClick,h=j.toast,C=o(j,["onDismissClick","toast"]),b=h.alertLevel,k=h.autoHideDuration,F=void 0===k?3e3:k,T=h.content,x=h.hideIcon,P=h.icon,z=h.id,B=h.onClick,D=void 0===B?a:B,E=h.onClose,L=void 0===E?a:E,O=h.timestamp,W=h.title,q=h.tooltipProps,w=h.variant,y=void 0===w?"info":w;n((function(){if(F!==1/0){var o=setTimeout((function(){return I(z)}),F);return function(){return clearTimeout(o)}}}),[]);var A=f(),M=g[y];return i(r,s({appear:!0,in:!0},{children:i(l,s({classes:{root:e(A.main,!b&&A[y],b&&A.alertNotification,b&&A["alertLevels-".concat(b)]),action:A.actionContainer,message:A.messageContainer},"aria-describedby":"client-snackbar","data-testid":"notificationPopup_".concat(u[y]),message:i(m,s({},q,{title:T,classes:{tooltip:A.tooltip},placement:"bottom"},{children:t("div",s({id:"client-snackbar",className:A.messageWrapper,onClick:D},{children:[!x&&i("div",s({className:A.iconWrapper},{children:P?c(P,{className:A.icon,nativeColor:"#fff"}):i(M,{fill:y===u.warning?"#000":"#fff",size:16,className:A.icon})})),t("div",s({className:A.message},{children:[t("div",s({className:A.messageTop},{children:[W&&i(p,s({"data-testid":"title",variant:"subtitle2",className:e(A.title,(v={},v[A.alertTitle]=b,v))},{children:W})),O&&i(p,s({className:e(A.timestamp,!b&&A[y])},{children:O}))]})),i("div",s({className:e(A.messageContent,!b&&A[y])},{children:i(p,s({"data-testid":"content",className:e(b?A.alertContent:A.content)},{children:T}))}))]}))]}))})),action:[i(d,s({"data-testid":"closeButton","aria-label":"Close",color:"inherit",onClick:function(){L(),I(z)},size:"small",tooltipProps:{title:"Close",classes:{tooltip:A.tooltip}},className:A.closeIconButton},{children:i(N,{size:24,fill:b?"#000":"#fff"})}),"close")]},C))}))};export{k as Toast};