@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.
- package/assets/0ea849622ec24faa453981edfd1862e6.svg +19 -0
- package/assets/3ecb3740e2ccf98b1f61abce5f8ffb9f.gif +0 -0
- package/assets/815107279c4c5fba7639d4e9124e83a5.svg +3 -0
- package/assets/af268ec48d747e3147d5acb95bc1b599.svg +23 -0
- package/assets/b88b9008a93dabe2d431b22e76e3017a.svg +24 -0
- package/assets/ce0806d7fe0a5fdedde889e58929cd3a.svg +20 -0
- package/assets/e26a8e73ce2b62ee8bd6b8eddf286b49.svg +33 -0
- package/assets/ffd922ae8116b456a7f24dcf118f36b4.svg +24 -0
- package/cjs-bundle/clients/constants.js +1 -1
- package/cjs-bundle/clients/corvaUrls.js +1 -1
- package/cjs-bundle/components/AddComment/Popover.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js +1 -1
- package/cjs-bundle/components/AdvancedSlider/Handle.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
- package/cjs-bundle/components/Attachment/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/Breadcrumbs/index.js +1 -1
- package/cjs-bundle/components/Button/components/LiveButton/index.js +1 -1
- package/cjs-bundle/components/Button/index.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Chart/components/AxisDropdown.js +1 -1
- package/cjs-bundle/components/Chart/components/ChartSelect.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/PanButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js +1 -1
- package/cjs-bundle/components/Chip/index.js +1 -1
- package/cjs-bundle/components/ColorPicker/ColorPicker.js +1 -1
- package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
- package/cjs-bundle/components/CopyToClipboard/CopyToClipboard.js +1 -1
- package/cjs-bundle/components/Counter/index.js +1 -1
- package/cjs-bundle/components/DatePicker/index.js +1 -1
- package/cjs-bundle/components/DateTimePicker/index.js +1 -1
- package/cjs-bundle/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
- package/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/cjs-bundle/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
- package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/cjs-bundle/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
- package/cjs-bundle/components/FileIcon/FileIcon.js +1 -1
- package/cjs-bundle/components/FileIcon/icons/ArchiveFileIcon.js +1 -0
- package/cjs-bundle/components/FileIcon/icons/CSVFileIcon.js +1 -1
- package/cjs-bundle/components/FileIcon/icons/DocFileIcon.js +1 -1
- package/cjs-bundle/components/FileIcon/icons/EDMFileIcon.js +1 -1
- package/cjs-bundle/components/FileIcon/icons/ExcelFileIcon.js +1 -0
- package/cjs-bundle/components/FileIcon/icons/ImageFileIcon.js +1 -1
- package/cjs-bundle/components/FileIcon/icons/JsonFileIcon.js +1 -0
- package/cjs-bundle/components/FileIcon/icons/LasFileIcon.js +1 -0
- package/cjs-bundle/components/FileIcon/icons/OtherFileIcon.js +1 -0
- package/cjs-bundle/components/FileIcon/icons/PdfFileIcon.js +1 -1
- package/cjs-bundle/components/FileIcon/icons/PowerPointFileIcon.js +1 -0
- package/cjs-bundle/components/FileIcon/icons/TxtFileIcon.js +1 -0
- package/cjs-bundle/components/FileIcon/icons/UnknownFileIcon.js +1 -1
- package/cjs-bundle/components/FileIcon/icons/VideoFileIcon.js +1 -0
- package/cjs-bundle/components/FileIcon/icons/XmlFileIcon.js +1 -0
- package/cjs-bundle/components/FileTypeIcon.js +1 -1
- package/cjs-bundle/components/FilesDropzone/FilesDropzone.js +1 -1
- package/cjs-bundle/components/FilesDropzone/styles.js +1 -1
- package/cjs-bundle/components/FilesLoader/FilesLoader.js +1 -1
- package/cjs-bundle/components/FilesLoaderV2/FilesLoaderV2.js +1 -1
- package/cjs-bundle/components/FilesLoaderV2/styles.js +1 -1
- package/cjs-bundle/components/FilesProcessor/FilesProcessor.js +1 -1
- package/cjs-bundle/components/GradientManager/GradientManager.js +1 -1
- package/cjs-bundle/components/GradientManager/GradientSelect.js +1 -1
- package/cjs-bundle/components/GradientPicker/GradientPicker.js +1 -1
- package/cjs-bundle/components/HelpCenter/HelpCenterIcon.js +1 -1
- package/cjs-bundle/components/LoadingIndicator/Loader.js +1 -1
- package/cjs-bundle/components/Modal/CorvaModal.js +1 -1
- package/cjs-bundle/components/Notifications/Toast.js +1 -1
- package/cjs-bundle/components/OffsetWellButton/OffsetWellButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/effects/useSortedWells.js +1 -1
- package/cjs-bundle/components/PadModeSelect/FracModeLabel.js +1 -0
- package/cjs-bundle/components/PadModeSelect/PadModeSelect.js +1 -1
- package/cjs-bundle/components/PadModeSelect/effects/useMenuItems.js +1 -1
- package/cjs-bundle/components/PadModeSelect/types.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js +1 -1
- package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
- package/cjs-bundle/components/Search/Search.js +1 -1
- package/cjs-bundle/components/Search/effects/useAutocompleteOptions.js +1 -1
- package/cjs-bundle/components/Select/SelectFilterBy.js +1 -1
- package/cjs-bundle/components/SettingEditors/ColorEditor/index.js +1 -1
- package/cjs-bundle/components/StatusBadge/components/DQUnvalidatedContent.js +1 -1
- package/cjs-bundle/components/StatusBadge/components/ReportIssueModal.js +1 -1
- package/cjs-bundle/components/Stepper/Step/Step.js +1 -1
- package/cjs-bundle/components/Table/TableCell/TableCell.js +1 -1
- package/cjs-bundle/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
- package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js +1 -1
- package/cjs-bundle/components/Toaster/Toaster.js +1 -1
- package/cjs-bundle/config/theme/index.js +1 -1
- package/cjs-bundle/config/theme/toggleButtonsGroupOverrides.js +1 -1
- package/cjs-bundle/constants/alerts.js +1 -1
- package/cjs-bundle/constants/completion.js +1 -1
- package/cjs-bundle/icons/customIcons/icons/AddMessage.js +1 -1
- package/cjs-bundle/icons/customIcons/icons/Attention.js +1 -1
- package/cjs-bundle/icons/customIcons/icons/Collapse.js +1 -1
- package/cjs-bundle/icons/customIcons/icons/Expand.js +1 -1
- package/cjs-bundle/icons/customIcons/icons/FolderClosed.js +1 -1
- package/cjs-bundle/icons/customIcons/icons/FolderOpened.js +1 -1
- package/cjs-bundle/icons/customIcons/icons/GreaterOrEqual.js +1 -1
- package/cjs-bundle/icons/customIcons/icons/LessOrEqual.js +1 -1
- package/cjs-bundle/icons/customIcons/icons/Search.js +1 -1
- package/cjs-bundle/icons/customIcons/icons/SimulFrac.js +1 -0
- package/cjs-bundle/icons/customIcons/icons/Wellhub.js +1 -1
- package/cjs-bundle/icons/customIcons/icons/ZipperFrac.js +1 -0
- package/cjs-bundle/icons/iconParkIcons.js +1 -1
- package/cjs-bundle/icons/index.js +1 -1
- package/clients/constants.d.ts +0 -2
- package/clients/constants.d.ts.map +1 -1
- package/clients/constants.js +1 -1
- package/clients/corvaUrls.d.ts +0 -5
- package/clients/corvaUrls.d.ts.map +1 -1
- package/clients/corvaUrls.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/AdvancedSlider/Handle.js +1 -1
- package/components/AssetEditorV2/components/SecondaryAssetSelect.d.ts.map +1 -1
- package/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
- package/components/Attachment/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Breadcrumbs/index.js +1 -1
- package/components/Button/components/LiveButton/index.js +1 -1
- package/components/Button/index.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/Chart/components/AxisDropdown.js +1 -1
- package/components/Chart/components/ChartSelect.js +1 -1
- package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/components/Chart/components/buttons/DragToZoomButton.js +1 -1
- package/components/Chart/components/buttons/HideAxesButton.js +1 -1
- package/components/Chart/components/buttons/PanButton.js +1 -1
- package/components/Chart/components/buttons/ResetZoomButton.js +1 -1
- package/components/Chart/components/buttons/ZoomInButton.js +1 -1
- package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
- package/components/Chip/index.js +1 -1
- package/components/ColorPicker/ColorPicker.js +1 -1
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
- package/components/CopyToClipboard/CopyToClipboard.js +1 -1
- package/components/Counter/index.js +1 -1
- package/components/DatePicker/index.js +1 -1
- package/components/DateTimePicker/index.js +1 -1
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/components/DevCenter/AppsDataProvider/effects/dataResolvers.d.ts.map +1 -1
- package/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
- package/components/DevCenter/AppsDataProvider/effects/utils.d.ts.map +1 -1
- package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
- package/components/FileIcon/FileIcon.d.ts.map +1 -1
- package/components/FileIcon/FileIcon.js +1 -1
- package/components/FileIcon/icons/ArchiveFileIcon.d.ts +4 -0
- package/components/FileIcon/icons/ArchiveFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/ArchiveFileIcon.js +1 -0
- package/components/FileIcon/icons/CSVFileIcon.d.ts.map +1 -1
- package/components/FileIcon/icons/CSVFileIcon.js +1 -1
- package/components/FileIcon/icons/DocFileIcon.d.ts.map +1 -1
- package/components/FileIcon/icons/DocFileIcon.js +1 -1
- package/components/FileIcon/icons/EDMFileIcon.d.ts.map +1 -1
- package/components/FileIcon/icons/EDMFileIcon.js +1 -1
- package/components/FileIcon/icons/ExcelFileIcon.d.ts +4 -0
- package/components/FileIcon/icons/ExcelFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/ExcelFileIcon.js +1 -0
- package/components/FileIcon/icons/ImageFileIcon.d.ts.map +1 -1
- package/components/FileIcon/icons/ImageFileIcon.js +1 -1
- package/components/FileIcon/icons/{ExelFileIcon.d.ts → JsonFileIcon.d.ts} +2 -2
- package/components/FileIcon/icons/JsonFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/JsonFileIcon.js +1 -0
- package/components/FileIcon/icons/LasFileIcon.d.ts +4 -0
- package/components/FileIcon/icons/LasFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/LasFileIcon.js +1 -0
- package/components/FileIcon/icons/OtherFileIcon.d.ts +4 -0
- package/components/FileIcon/icons/OtherFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/OtherFileIcon.js +1 -0
- package/components/FileIcon/icons/PdfFileIcon.d.ts.map +1 -1
- package/components/FileIcon/icons/PdfFileIcon.js +1 -1
- package/components/FileIcon/icons/PowerPointFileIcon.d.ts +4 -0
- package/components/FileIcon/icons/PowerPointFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/PowerPointFileIcon.js +1 -0
- package/components/FileIcon/icons/TxtFileIcon.d.ts +4 -0
- package/components/FileIcon/icons/TxtFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/TxtFileIcon.js +1 -0
- package/components/FileIcon/icons/UnknownFileIcon.d.ts.map +1 -1
- package/components/FileIcon/icons/UnknownFileIcon.js +1 -1
- package/components/FileIcon/icons/VideoFileIcon.d.ts +4 -0
- package/components/FileIcon/icons/VideoFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/VideoFileIcon.js +1 -0
- package/components/FileIcon/icons/XmlFileIcon.d.ts +4 -0
- package/components/FileIcon/icons/XmlFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/XmlFileIcon.js +1 -0
- package/components/FileIcon/icons/index.d.ts +16 -0
- package/components/FileIcon/icons/index.d.ts.map +1 -0
- package/components/FileTypeIcon.d.ts.map +1 -1
- package/components/FileTypeIcon.js +1 -1
- package/components/FilesDropzone/FilesDropzone.d.ts +1 -2
- package/components/FilesDropzone/FilesDropzone.d.ts.map +1 -1
- package/components/FilesDropzone/FilesDropzone.js +1 -1
- package/components/FilesDropzone/FilesDropzone.stories.d.ts +1 -11
- package/components/FilesDropzone/FilesDropzone.stories.d.ts.map +1 -1
- package/components/FilesDropzone/styles.d.ts +1 -1
- package/components/FilesDropzone/styles.d.ts.map +1 -1
- package/components/FilesDropzone/styles.js +1 -1
- package/components/FilesLoader/FilesLoader.js +1 -1
- package/components/FilesLoaderV2/FilesLoaderV2.d.ts +1 -2
- package/components/FilesLoaderV2/FilesLoaderV2.d.ts.map +1 -1
- package/components/FilesLoaderV2/FilesLoaderV2.js +1 -1
- package/components/FilesLoaderV2/FilesLoaderV2.stories.d.ts +1 -11
- package/components/FilesLoaderV2/FilesLoaderV2.stories.d.ts.map +1 -1
- package/components/FilesLoaderV2/styles.d.ts.map +1 -1
- package/components/FilesLoaderV2/styles.js +1 -1
- package/components/FilesProcessor/FilesProcessor.d.ts +5 -7
- package/components/FilesProcessor/FilesProcessor.d.ts.map +1 -1
- package/components/FilesProcessor/FilesProcessor.js +1 -1
- package/components/FilesProcessor/FilesProcessor.stories.d.ts +3 -27
- package/components/FilesProcessor/FilesProcessor.stories.d.ts.map +1 -1
- package/components/FilesProcessor/Processor.d.ts +4 -5
- package/components/FilesProcessor/Processor.d.ts.map +1 -1
- package/components/FilesProcessor/index.d.ts +1 -0
- package/components/FilesProcessor/index.d.ts.map +1 -1
- package/components/GradientManager/GradientManager.js +1 -1
- package/components/GradientManager/GradientSelect.js +1 -1
- package/components/GradientPicker/GradientPicker.js +1 -1
- package/components/HelpCenter/HelpCenterIcon.js +1 -1
- package/components/LoadingIndicator/Loader.d.ts +1 -1
- package/components/LoadingIndicator/Loader.d.ts.map +1 -1
- package/components/LoadingIndicator/Loader.js +1 -1
- package/components/LoadingIndicator/LoadingIndicator.d.ts +1 -1
- package/components/Modal/CorvaModal.js +1 -1
- package/components/Notifications/Toast.js +1 -1
- package/components/OffsetWellButton/OffsetWellButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/components/OffsetWellPickerV4/effects/useSortedWells.js +1 -1
- package/components/PadModeSelect/FracModeLabel.d.ts +9 -0
- package/components/PadModeSelect/FracModeLabel.d.ts.map +1 -0
- package/components/PadModeSelect/FracModeLabel.js +1 -0
- package/components/PadModeSelect/PadModeSelect.d.ts.map +1 -1
- package/components/PadModeSelect/PadModeSelect.js +1 -1
- package/components/PadModeSelect/__tests__/FracModeLabel.test.d.ts +2 -0
- package/components/PadModeSelect/__tests__/FracModeLabel.test.d.ts.map +1 -0
- package/components/PadModeSelect/effects/useMenuItems.d.ts.map +1 -1
- package/components/PadModeSelect/effects/useMenuItems.js +1 -1
- package/components/PadModeSelect/types.d.ts +1 -1
- package/components/PadModeSelect/types.d.ts.map +1 -1
- package/components/PadModeSelect/types.js +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/components/ParameterCharts/components/TraceHeader.js +1 -1
- package/components/PinnableFilters/components/FiltersToggler.js +1 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
- package/components/Search/Search.d.ts +1 -3
- package/components/Search/Search.d.ts.map +1 -1
- package/components/Search/Search.js +1 -1
- package/components/Search/effects/useAutocompleteOptions.d.ts.map +1 -1
- package/components/Search/effects/useAutocompleteOptions.js +1 -1
- package/components/Select/SelectFilterBy.js +1 -1
- package/components/SettingEditors/ColorEditor/index.js +1 -1
- package/components/StatusBadge/components/DQUnvalidatedContent.js +1 -1
- package/components/StatusBadge/components/ReportIssueModal.js +1 -1
- package/components/Stepper/Step/Step.js +1 -1
- package/components/Table/TableCell/TableCell.js +1 -1
- package/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
- package/components/Table/TableSortLabel/TableSortLabel.js +1 -1
- package/components/Toaster/Toaster.js +1 -1
- package/components/index.d.ts +127 -193
- package/components/index.d.ts.map +1 -1
- package/config/theme/index.js +1 -1
- package/config/theme/toggleButtonsGroupOverrides.d.ts +1 -0
- package/config/theme/toggleButtonsGroupOverrides.js +1 -1
- package/constants/alerts.d.ts.map +1 -1
- package/constants/alerts.js +1 -1
- package/constants/completion.d.ts +1 -0
- package/constants/completion.d.ts.map +1 -1
- package/constants/completion.js +1 -1
- package/icons/customIcons/icons/AddMessage.js +1 -1
- package/icons/customIcons/icons/Attention.js +1 -1
- package/icons/customIcons/icons/Collapse.js +1 -1
- package/icons/customIcons/icons/Expand.js +1 -1
- package/icons/customIcons/icons/FolderClosed.js +1 -1
- package/icons/customIcons/icons/FolderOpened.js +1 -1
- package/icons/customIcons/icons/GreaterOrEqual.js +1 -1
- package/icons/customIcons/icons/LessOrEqual.js +1 -1
- package/icons/customIcons/icons/Search.js +1 -1
- package/icons/customIcons/icons/SimulFrac.d.ts +3 -0
- package/icons/customIcons/icons/SimulFrac.d.ts.map +1 -0
- package/icons/customIcons/icons/SimulFrac.js +1 -0
- package/icons/customIcons/icons/Wellhub.js +1 -1
- package/icons/customIcons/icons/ZipperFrac.d.ts +3 -0
- package/icons/customIcons/icons/ZipperFrac.d.ts.map +1 -0
- package/icons/customIcons/icons/ZipperFrac.js +1 -0
- package/icons/customIcons/icons/index.d.ts +2 -0
- package/icons/customIcons/icons/index.d.ts.map +1 -1
- package/icons/iconParkIcons.d.ts +1 -0
- package/icons/iconParkIcons.d.ts.map +1 -1
- package/icons/iconParkIcons.js +1 -1
- package/icons/index.js +1 -1
- package/package.json +1 -1
- package/cjs-bundle/components/FileIcon/icons/ExelFileIcon.js +0 -1
- package/components/FileIcon/icons/ExelFileIcon.d.ts.map +0 -1
- 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":";
|
|
1
|
+
{"version":3,"file":"FileTypeIcon.d.ts","sourceRoot":"","sources":["../../src/components/FileTypeIcon.js"],"names":[],"mappings":";AAuBA;;;;gBAgCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
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;
|
|
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
|
|
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
|
|
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":"
|
|
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:"
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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,
|
|
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
|
-
|
|
2
|
-
import {
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FilesDropzoneProps } from '~/components/FilesDropzone';
|
|
3
3
|
import { FileProcessorFunction } from './types';
|
|
4
|
-
import {
|
|
5
|
-
|
|
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":"
|
|
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
|
|
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
|
|
5
|
-
|
|
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,
|
|
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
|
-
|
|
2
|
-
import {
|
|
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?:
|
|
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":"
|
|
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 +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
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
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":";
|
|
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
|
|
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};
|
|
@@ -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
|
|
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
|
|
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};
|