@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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o,__spreadArray as t}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as
|
|
1
|
+
import{__assign as o,__spreadArray as t}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as i,jsxs as n,Fragment as e}from"react/jsx-runtime";import{memo as s,useContext as r,useState as c,useEffect as a}from"react";import{uniq as m}from"lodash";import{makeStyles as l,FormControl as u,InputLabel as p,Select as d,MenuItem as f}from"@material-ui/core";import{isMobileDetected as j}from"../../../utils/mobileDetect.js";import h from"../../Modal/Modal.js";import g from"../../Button/components/Button/index.js";import"moment-timezone";import"classnames";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"../../../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 I from"../RealTimeSidebarContext.js";var v=l({selectFormControl:{width:"80%",marginRight:"1rem"},cancelButton:{margin:"0 16px 0 auto"}});var C=s((function(s){var l=s.isDialogOpen,C=s.paramToEdit,S=s.handleCloseRealTimeDialog,y=r(I),B=y.onAppSettingChange,k=y.appSettings,x=y.assetKey,F=y.realTimeTypes,T=y.setting,b=y.handleChangeParamToEdit,E=v(),P=function(t){var i;B("rtValuesSetting",o(o({},k.rtValuesSetting),((i={})[x]=t,i)))},R=c(C),D=R[0],L=R[1];return a((function(){L(C)}),[C]),i(h,o({open:l,onClose:S,title:"Add/Edit Real-Time Parameter",size:j?"extraLarge":"medium",actions:n(e,{children:[i(g,o({color:"primary",classes:{root:E.cancelButton},onClick:S},{children:"Cancel"})),C&&i(g,o({color:"primary",onClick:function(){var o=T.filter((function(o){return o!==C}));P(o),b(""),S()}},{children:"Delete"})),i(g,o({variation:"primary",onClick:function(){var o;if(C)o=T.map((function(o){return o===C?D:o}));else{if(T.find((function(o){return o===D})))return void S();o=t([D],T,!0)}o=m(o),P(o),b(""),S()},disabled:!D},{children:"Save"}))]})},{children:n(u,o({classes:{root:E.selectFormControl},"data-testid":"addEditRealTimeParameterDropdown"},{children:[i(p,o({htmlFor:"parameter"},{children:"Parameter"})),i(d,o({value:D||"",inputProps:{name:"parameter",id:"parameter"},onChange:function(o){L(String(o.target.value))}},{children:F.map((function(t){return i(f,o({"data-testid":"".concat(t.key,"_menuItem"),value:t.key,disabled:T.includes(t.key)},{children:t.name}),t.key)}))}))]}))}))}));export{C as default};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
declare type SearchProps = PropTypes.InferProps<typeof searchPropTypes>;
|
|
4
4
|
declare const Search: {
|
|
5
|
-
({ classes, AutocompleteProps, value, disableClearable, onChange, onInputChange, loading, options, optionSize, placeholder, onGroupChange, disabled, multiple, groups, GroupsComponent, recentSearchesMaxCount, dataStorageKey, RecentSearchesComponent, dataStorage, onInputReset, getOptionLabel, TextFieldProps, ListboxProps, onInputChangeCallback, renderCustomOption, isHiddenAllOption, onOpen, selectedGroup, onGroupReset, onClose, popperProps, paperFooter,
|
|
5
|
+
({ classes, AutocompleteProps, value, disableClearable, onChange, onInputChange, loading, options, optionSize, placeholder, onGroupChange, disabled, multiple, groups, GroupsComponent, recentSearchesMaxCount, dataStorageKey, RecentSearchesComponent, dataStorage, onInputReset, getOptionLabel, TextFieldProps, ListboxProps, onInputChangeCallback, renderCustomOption, isHiddenAllOption, onOpen, selectedGroup, onGroupReset, onClose, popperProps, paperFooter, noOptionsText, ListboxComponent, isPrioritizedSelectedOptions, ...props }: SearchProps): JSX.Element;
|
|
6
6
|
propTypes: {
|
|
7
7
|
AutocompleteProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
8
8
|
forcePopupIcon: PropTypes.Requireable<boolean>;
|
|
@@ -65,7 +65,6 @@ declare const Search: {
|
|
|
65
65
|
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
66
66
|
}>>;
|
|
67
67
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
68
|
-
isClearInputOnBlur: PropTypes.Requireable<boolean>;
|
|
69
68
|
inputProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
70
69
|
noOptionsText: PropTypes.Requireable<string>;
|
|
71
70
|
isPrioritizedSelectedOptions: PropTypes.Requireable<boolean>;
|
|
@@ -175,7 +174,6 @@ declare const searchPropTypes: {
|
|
|
175
174
|
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
176
175
|
}>>;
|
|
177
176
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
178
|
-
isClearInputOnBlur: PropTypes.Requireable<boolean>;
|
|
179
177
|
inputProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
180
178
|
noOptionsText: PropTypes.Requireable<string>;
|
|
181
179
|
isPrioritizedSelectedOptions: PropTypes.Requireable<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../src/components/Search/Search.tsx"],"names":[],"mappings":";AAEA,OAAO,SAAS,MAAM,YAAY,CAAC;AAkCnC,aAAK,WAAW,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAKhE,QAAA,MAAM,MAAM;
|
|
1
|
+
{"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../src/components/Search/Search.tsx"],"names":[],"mappings":";AAEA,OAAO,SAAS,MAAM,YAAY,CAAC;AAkCnC,aAAK,WAAW,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAKhE,QAAA,MAAM,MAAM;uhBAqCT,WAAW,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkd3B,CAAC;AAEF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DpB,CAAC;AAyCF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as n,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useState as r,useRef as s,useCallback as p,useEffect as l,useMemo as a,cloneElement as c}from"react";import u from"classnames";import d from"prop-types";import{debounce as m,isEmpty as h,omit as g,noop as f}from"lodash";import{Autocomplete as b}from"@material-ui/lab";import{Popper as C,Tooltip as I,Fade as v,Chip as O,TextField as P,InputAdornment as x,CircularProgress as S,FormControlLabel as y,Checkbox as A,MenuItem as G}from"@material-ui/core";import{CheckBoxOutlineBlank as L,CheckBox as j,AccessTime as R}from"@material-ui/icons";import T from"../IconButton/index.js";import{MiddleTruncatedText as N}from"../MiddleTruncatedText/MiddleTruncatedText.js";import{DownOneIcon as k,CloseSmallIcon 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 z from"./components/Listbox.js";import M from"./components/Paper.js";import"./components/RecentSearches.js";import"./components/Groups.js";import{PaperContext as B}from"./context/index.js";import{useAutocompletOptions as D}from"./effects/useAutocompleteOptions.js";import E from"./styles.js";var K=n(L,{style:{fontSize:20}}),H=n(j,{style:{fontSize:20}}),_={},q=function(d){var L,j=d.classes,k=d.AutocompleteProps,z=void 0===k?{}:k,q=d.value,w=d.disableClearable,W=d.onChange,U=d.onInputChange,V=d.loading,J=d.options,Q=d.optionSize,X=d.placeholder,Y=d.onGroupChange,Z=d.disabled,$=d.multiple,ee=d.groups,oe=d.GroupsComponent,ne=d.recentSearchesMaxCount,te=d.dataStorageKey,ie=d.RecentSearchesComponent,re=d.dataStorage,se=d.onInputReset,pe=d.getOptionLabel,le=d.TextFieldProps,ae=d.ListboxProps,ce=d.onInputChangeCallback,ue=d.renderCustomOption,de=d.isHiddenAllOption,me=d.onOpen,he=void 0===me?f:me,ge=d.selectedGroup,fe=d.onGroupReset,be=d.onClose,Ce=d.popperProps,Ie=void 0===Ce?_:Ce,ve=d.paperFooter,Oe=d.isClearInputOnBlur,Pe=void 0!==Oe&&Oe,xe=d.noOptionsText,Se=d.ListboxComponent,ye=d.isPrioritizedSelectedOptions,Ae=e(d,["classes","AutocompleteProps","value","disableClearable","onChange","onInputChange","loading","options","optionSize","placeholder","onGroupChange","disabled","multiple","groups","GroupsComponent","recentSearchesMaxCount","dataStorageKey","RecentSearchesComponent","dataStorage","onInputReset","getOptionLabel","TextFieldProps","ListboxProps","onInputChangeCallback","renderCustomOption","isHiddenAllOption","onOpen","selectedGroup","onGroupReset","onClose","popperProps","paperFooter","isClearInputOnBlur","noOptionsText","ListboxComponent","isPrioritizedSelectedOptions"]),Ge=r(""),Le=Ge[0],je=Ge[1],Re=r(""),Te=Re[0],Ne=Re[1],ke=r(!1),Fe=ke[0],ze=ke[1],Me=r(!1),Be=Me[0],De=Me[1],Ee=s(),Ke=s(),He=D({options:J,value:q,groups:ee,selectedGroup:ge,isPrioritizedSelectedOptions:ye}),_e=He.autocompleteOptions,qe=He.isGrouped,we=He.handleAutocompleOptionsUpdate,We=E(),Ue=j.popper,Ve=j.listbox,Je=j.popupIndicator,Qe=j.popupIndicatorOpen,Xe=j.groupChip,Ye=e(j,["popper","listbox","popupIndicator","popupIndicatorOpen","groupChip"]),Ze=o({popper:u(We.popper,Ue),listbox:u(We.listbox,Ve),popupIndicator:u(We.popupIndicator,Je),popupIndicatorOpen:u(We.popupIndicatorOpen,Qe)},Ye),$e=function(){je(""),null==se||se()},eo=p(m((function(e){return Ne(e)}),500),[]),oo=function(e){var o=ee.find((function(o){return o.id===e}));$e(),Y(o)},no=function(e){Le.length||$&&"ArrowLeft"===e.code&&e.stopPropagation()};l((function(){Fe&&(Ee.current.focus(),Ee.current.setSelectionRange(Le.length,Le.length))}));var to=$&&Array.isArray(q)?q.length:null,io=$&&(null==_e?void 0:_e.length)===to,ro=$&&!!to&&!io,so=function(){return $e(),z.getOptionDisabled&&io?W(null,[J[J.length-1]]):W(null,io||ro?[]:_e)};l((function(){eo(Le),U&&U(Le)}),[Le]);var po=function(e,o){"blur"===o&&(!e.relatedTarget||Ke.current.contains(e.relatedTarget))||(be(),ze(!1))},lo=function(){var e;(null!==(e=Ae.isOpenedFromParent)&&void 0!==e?e:Fe)?(ze(!1),be()):(ze(!0),he())},ao=function(e){if(io&&!de)return"All";var o=e[0].label||e[0].name||"";return 1===(null==e?void 0:e.length)?n("div",{children:n(N,{children:o})}):"".concat(null==e?void 0:e.length," Selected")},co=function(){return n(y,{id:"selectAllLabel",className:We.selectAllCheckbox,onClick:so,control:n(A,{icon:K,style:{fontSize:20},indeterminate:ro,checkedIcon:H,checked:io,inputProps:{"aria-label":"All"}}),label:"All"})},uo=h(_e),mo=a((function(){return{onOutsideClick:po,isEmptyOptions:uo,loading:V,AllSelectComponent:!de&&$&&!uo&&n(co,{}),RecentSearchesComponent:ie&&n(ie,{title:"Recent Searches",Icon:R,dataStorage:re,dataStorageKey:te,maxCount:ne,isHidden:!h(Le),onInputChange:function(e){return je(e)},inputValue:Te}),GroupsComponent:!ge&&qe&&oe&&n(oe,{onGroupClick:oo,groups:ee})}}),[ge,V,qe,uo,Le,io,ro,Te,be,po,de]),ho=a((function(){return function(n){var i=n.children,r=n.className,s=e(n,["children","className"]);return t(M,o({},s,{className:r,inputRef:Ee,ref:Ke},{children:[i,ve]}))}}),[ve]),go=a((function(){return function(t){var i=Ie.style,r=e(Ie,["style"]);return n(C,o({},t,{style:o(o({},t.style),i),placement:"bottom-start"},r))}}),[Ie]);return n(B.Provider,o({value:mo},{children:n(b,o({},g(Ae,["InputProps","isNullable","isOpenedFromParent"]),{PopperComponent:go,disableClearable:w,onOpen:function(e){we(),ze(!0),he(e)},onClose:po,open:null!==(L=Ae.isOpenedFromParent)&&void 0!==L?L:Fe,onChange:function(e,o){$||je(""),W(e,o)},forcePopupIcon:z.forcePopupIcon,fullWidth:!0,disabled:Z,value:q,classes:Ze,renderInput:function(s){var p,l,a,d,m,f,b=r(!1),C=b[0],I=b[1],v=s.InputProps,y=s.inputProps,A=e(s,["InputProps","inputProps"]),G=(null===(d=null===(a=null===(l=v.endAdornment)||void 0===l?void 0:l.props)||void 0===a?void 0:a.children)||void 0===d?void 0:d.length)>1?c(v.endAdornment,{children:v.endAdornment.props.children.slice(1),onMouseDown:function(e){return e.stopPropagation()},onMouseUp:function(e){return e.stopPropagation()}}):v.endAdornment,L=Pe&&1===to,j=C||Fe||Le.length>0||!h(q)||!h(null===(m=Ae.InputProps)||void 0===m?void 0:m.startAdornment),R=Ae.InputProps||{},N=R.classes,k=void 0===N?{}:N,M=k.input,B=void 0===M?"":M,D=e(k,["input"]),E=R.style,K=e(R,["classes","style"]);return n(P,o({},A,g(le,["endAdornment"]),{onBlur:function(){I(!1),Pe&&""!==Le.trim()&&$e(),L&&De(!0)},onFocus:function(){I(!0)},onKeyDown:no,inputRef:Ee,placeholder:X,classes:{root:We.searchInput},inputProps:o(o({style:{padding:5}},y),Ae.inputProps),InputLabelProps:{shrink:j},InputProps:o(o(o({classes:o({input:u(Be?We.inputShrinked:L&&We.inputExpanded,B)},D),style:o({paddingRight:0,paddingBottom:0},E)},v),K),{startAdornment:t(i,{children:[null===(f=Ae.InputProps)||void 0===f?void 0:f.startAdornment,ge&&n(O,{className:We.selectedGroup,"data-not-migrated-muichip":!0,variant:"outlined",label:t("div",o({className:We.selectedGroupLabel},{children:[ge.name,n(F,{size:16,id:"removeGroupIcon",className:We.removeIcon,onClick:fe})]}))},ge.id),$&&!h(q)&&n("div",o({onClick:lo,id:"selectedOptions",className:u(We.selectedLabel,Be&&We.selectedLabelExpanded)},{children:ao(q)}))]}),endAdornment:t(i,{children:[t(x,o({className:u(We.endAdornment,(p={},p[We.removeIconWithDropdown]=z.forcePopupIcon,p)),position:"end"},{children:[le.endAdornment,V&&n(S,{color:"primary",size:20}),Le&&!w&&n(T,o({"data-testid":"".concat("AutocompleteSearch","_clear_icon"),size:"small",className:We.iconButton,onClick:function(){je(""),se?se():W(null,[])},tooltipProps:{title:"Clear"}},{children:n(F,{size:20,className:We.closeIcon})}))]})),z.forcePopupIcon&&G]})})}))},loading:V,options:_e,renderGroup:function(e){var i=e.key,r=e.group,s=e.children;return!r||!h(ge)&&$?s:t("div",o({className:We.group},{children:[n(I,o({title:r,placement:"right",TransitionComponent:v,TransitionProps:{timeout:500},enterDelay:500},{children:n(O,{"data-not-migrated-muichip":!0,className:u(We.groupChip,Xe),variant:"outlined",label:r})})),s]}),i)},disableCloseOnSelect:$,multiple:$,renderOption:ue||function(e,i){var r=e.label,s=void 0===r?"":r,p=e.id;return $?t("div",o({className:u(We.option,Q),"data-testid":"autocompleteOption_".concat(s,"MenuItem")},{children:[n(A,{disableRipple:!0,icon:K,className:We.checkbox,checkedIcon:H,checked:i.selected}),n(N,o({className:We.optionLabelContainer},{children:s}))]}),p):n(G,o({className:We.menuItem,value:p,"data-testid":"autocompleteOption_".concat(s,"MenuItem")},{children:n(N,o({className:We.optionLabelContainer},{children:s}))}),p)},groupBy:qe?function(e){return e.group}:null,PaperComponent:ho,ListboxComponent:Se,inputValue:Le,getOptionLabel:pe,getOptionDisabled:z.getOptionDisabled,onInputChange:function(e,o,n){"reset"===n&&$||(je((null==e?void 0:e.target.value)||(null==e?void 0:e.target.innerText)||o),ce(o,n))},loadingText:n("div",o({className:We.label},{children:"Loading ..."})),noOptionsText:n("div",o({className:We.label},{children:xe})),ListboxProps:ae,onFocus:function(){var e;De(!1),null===(e=Ae.onFocus)||void 0===e||e.call(Ae)}}))}))},w={AutocompleteProps:d.shape({forcePopupIcon:d.bool,getOptionDisabled:d.func}),allChecked:d.bool,TextFieldProps:d.shape({label:d.string,endAdornment:d.node}),selectedGroup:d.shape({name:d.string,id:d.string}),onGroupReset:d.func,onClose:d.func,disableClearable:d.bool,value:d.oneOfType([d.arrayOf(d.shape({})),d.shape({})]).isRequired,onChange:d.func.isRequired,onInputChange:d.func,getOptionLabel:d.func,onGroupChange:d.func,loading:d.bool,disabled:d.bool,multiple:d.bool,options:d.array,optionSize:d.string,popupIcon:d.node,InputProps:d.shape({startAdornment:d.node,classes:d.shape({input:d.string}),style:d.shape({})}),ListboxProps:d.shape({}),classes:d.shape({popper:d.string,listbox:d.string,popupIndicator:d.string,popupIndicatorOpen:d.string,groupChip:d.string}),onInputChangeCallback:d.func,placeholder:d.string,RecentSearchesComponent:d.elementType,ListboxComponent:d.any,recentSearchesMaxCount:d.number,dataStorageKey:d.string,dataStorage:d.shape({}),groups:d.array,GroupsComponent:d.elementType,onOpen:d.func,renderCustomOption:d.func,onInputReset:d.func,isHiddenAllOption:d.bool,paperFooter:d.node,isOpenedFromParent:d.bool,popperProps:d.shape({style:d.shape({})}),onFocus:d.func,isClearInputOnBlur:d.bool,inputProps:d.shape({}),noOptionsText:d.string,isPrioritizedSelectedOptions:d.bool};q.propTypes=w,q.defaultProps={InputProps:null,onInputChange:null,onGroupChange:function(){},getOptionLabel:function(e){return e.label||""},renderCustomOption:null,onInputReset:null,ListboxProps:null,options:[],groups:[],classes:{},disabled:!1,isHiddenAllOption:!1,disableClearable:!1,multiple:!1,loading:!1,onInputChangeCallback:function(){},placeholder:"Search...",popupIcon:n(k,{theme:"filled",fill:"#BDBDBD",size:16}),recentSearchesMaxCount:3,dataStorageKey:"Search:recentSearches",dataStorage:sessionStorage,RecentSearchesComponent:null,TextFieldProps:{endAdornment:null},GroupsComponent:null,ListboxComponent:z,onGroupReset:function(){},onClose:function(){},selectedGroup:null,isOpenedFromParent:void 0,onFocus:null,noOptionsText:"No Options",isPrioritizedSelectedOptions:!1};export{q as default};
|
|
1
|
+
import{__rest as e,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as n,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useState as r,useRef as s,useCallback as p,useEffect as l,useMemo as a,cloneElement as c}from"react";import u from"classnames";import d from"prop-types";import{debounce as m,isEmpty as h,omit as g,noop as f}from"lodash";import{Autocomplete as b}from"@material-ui/lab";import{Popper as C,Tooltip as I,Fade as O,Chip as P,TextField as v,InputAdornment as S,CircularProgress as x,FormControlLabel as y,Checkbox as A,MenuItem as j}from"@material-ui/core";import{CheckBoxOutlineBlank as G,CheckBox as L,AccessTime as R}from"@material-ui/icons";import F from"../IconButton/index.js";import{MiddleTruncatedText as N}from"../MiddleTruncatedText/MiddleTruncatedText.js";import{DownOneIcon as T,CloseSmallIcon 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 z from"./components/Listbox.js";import M from"./components/Paper.js";import"./components/RecentSearches.js";import"./components/Groups.js";import{PaperContext as D}from"./context/index.js";import{useAutocompletOptions as B}from"./effects/useAutocompleteOptions.js";import E from"./styles.js";var K=n(G,{style:{fontSize:20}}),H=n(L,{style:{fontSize:20}}),_={},q=function(d){var G,L=d.classes,T=d.AutocompleteProps,z=void 0===T?{}:T,q=d.value,w=d.disableClearable,W=d.onChange,U=d.onInputChange,V=d.loading,Z=d.options,J=d.optionSize,Q=d.placeholder,X=d.onGroupChange,Y=d.disabled,$=d.multiple,ee=d.groups,oe=d.GroupsComponent,ne=d.recentSearchesMaxCount,te=d.dataStorageKey,ie=d.RecentSearchesComponent,re=d.dataStorage,se=d.onInputReset,pe=d.getOptionLabel,le=d.TextFieldProps,ae=d.ListboxProps,ce=d.onInputChangeCallback,ue=d.renderCustomOption,de=d.isHiddenAllOption,me=d.onOpen,he=void 0===me?f:me,ge=d.selectedGroup,fe=d.onGroupReset,be=d.onClose,Ce=d.popperProps,Ie=void 0===Ce?_:Ce,Oe=d.paperFooter,Pe=d.noOptionsText,ve=d.ListboxComponent,Se=d.isPrioritizedSelectedOptions,xe=e(d,["classes","AutocompleteProps","value","disableClearable","onChange","onInputChange","loading","options","optionSize","placeholder","onGroupChange","disabled","multiple","groups","GroupsComponent","recentSearchesMaxCount","dataStorageKey","RecentSearchesComponent","dataStorage","onInputReset","getOptionLabel","TextFieldProps","ListboxProps","onInputChangeCallback","renderCustomOption","isHiddenAllOption","onOpen","selectedGroup","onGroupReset","onClose","popperProps","paperFooter","noOptionsText","ListboxComponent","isPrioritizedSelectedOptions"]),ye=r(""),Ae=ye[0],je=ye[1],Ge=r(""),Le=Ge[0],Re=Ge[1],Fe=r(!1),Ne=Fe[0],Te=Fe[1],ke=r(!1),ze=ke[0],Me=ke[1],De=s(),Be=s(),Ee=B({options:Z,value:q,groups:ee,selectedGroup:ge,isPrioritizedSelectedOptions:Se}),Ke=Ee.autocompleteOptions,He=Ee.isGrouped,_e=Ee.handleAutocompleOptionsUpdate,qe=E(),we=L.popper,We=L.listbox,Ue=L.popupIndicator,Ve=L.popupIndicatorOpen,Ze=L.groupChip,Je=e(L,["popper","listbox","popupIndicator","popupIndicatorOpen","groupChip"]),Qe=o({popper:u(qe.popper,we),listbox:u(qe.listbox,We),popupIndicator:u(qe.popupIndicator,Ue),popupIndicatorOpen:u(qe.popupIndicatorOpen,Ve)},Je),Xe=function(){je(""),null==se||se()},Ye=p(m((function(e){return Re(e)}),500),[]),$e=function(e){var o=ee.find((function(o){return o.id===e}));Xe(),X(o)},eo=function(e){Ae.length||$&&"ArrowLeft"===e.code&&e.stopPropagation()};l((function(){Ne&&(De.current.focus(),De.current.setSelectionRange(Ae.length,Ae.length))}));var oo=$&&Array.isArray(q)?q.length:null,no=$&&(null==Ke?void 0:Ke.length)===oo,to=$&&!!oo&&!no,io=function(){return Xe(),z.getOptionDisabled&&no?W(null,[Z[Z.length-1]]):W(null,no||to?[]:Ke)};l((function(){Ye(Ae),U&&U(Ae)}),[Ae]);var ro=function(e,o){"blur"===o&&(!e.relatedTarget||Be.current.contains(e.relatedTarget))||(be(),Te(!1))},so=function(){var e;(null!==(e=xe.isOpenedFromParent)&&void 0!==e?e:Ne)?(Te(!1),be()):(Te(!0),he())},po=function(e){if(no&&!de)return"All";var o=e[0].label||e[0].name||"";return 1===(null==e?void 0:e.length)?n("div",{children:n(N,{children:o})}):"".concat(null==e?void 0:e.length," Selected")},lo=function(){return n(y,{id:"selectAllLabel",className:qe.selectAllCheckbox,onClick:io,control:n(A,{icon:K,style:{fontSize:20},indeterminate:to,checkedIcon:H,checked:no,inputProps:{"aria-label":"All"}}),label:"All"})},ao=h(Ke),co=a((function(){return{onOutsideClick:ro,isEmptyOptions:ao,loading:V,AllSelectComponent:!de&&$&&!ao&&n(lo,{}),RecentSearchesComponent:ie&&n(ie,{title:"Recent Searches",Icon:R,dataStorage:re,dataStorageKey:te,maxCount:ne,isHidden:!h(Ae),onInputChange:function(e){return je(e)},inputValue:Le}),GroupsComponent:!ge&&He&&oe&&n(oe,{onGroupClick:$e,groups:ee})}}),[ge,V,He,ao,Ae,no,to,Le,be,ro,de]),uo=a((function(){return function(n){var i=n.children,r=n.className,s=e(n,["children","className"]);return t(M,o({},s,{className:r,inputRef:De,ref:Be},{children:[i,Oe]}))}}),[Oe]),mo=a((function(){return function(t){var i=Ie.style,r=e(Ie,["style"]);return n(C,o({},t,{style:o(o({},t.style),i),placement:"bottom-start"},r))}}),[Ie]);return n(D.Provider,o({value:co},{children:n(b,o({},g(xe,["InputProps","isNullable","isOpenedFromParent"]),{PopperComponent:mo,disableClearable:w,onOpen:function(e){_e(),Te(!0),he(e)},onClose:ro,open:null!==(G=xe.isOpenedFromParent)&&void 0!==G?G:Ne,onChange:function(e,o){$||je(""),W(e,o)},forcePopupIcon:z.forcePopupIcon,fullWidth:!0,disabled:Y,value:q,classes:Qe,renderInput:function(s){var p,l,a,d,m,f,b=r(!1),C=b[0],I=b[1],O=s.InputProps,y=s.inputProps,A=e(s,["InputProps","inputProps"]),j=(null===(d=null===(a=null===(l=O.endAdornment)||void 0===l?void 0:l.props)||void 0===a?void 0:a.children)||void 0===d?void 0:d.length)>1?c(O.endAdornment,{children:O.endAdornment.props.children.slice(1),onMouseDown:function(e){return e.stopPropagation()},onMouseUp:function(e){return e.stopPropagation()}}):O.endAdornment,G=1===oo,L=C||Ne||Ae.length>0||!h(q)||!h(null===(m=xe.InputProps)||void 0===m?void 0:m.startAdornment),R=xe.InputProps||{},N=R.classes,T=void 0===N?{}:N,M=T.input,D=void 0===M?"":M,B=e(T,["input"]),E=R.style,K=e(R,["classes","style"]);return n(v,o({},A,g(le,["endAdornment"]),{onBlur:function(){I(!1),G&&Me(!0)},onFocus:function(){I(!0)},onKeyDown:eo,inputRef:De,placeholder:Q,classes:{root:qe.searchInput},inputProps:o(o({style:{padding:5}},y),xe.inputProps),InputLabelProps:{shrink:L},InputProps:o(o(o({classes:o({input:u(ze?qe.inputShrinked:G&&qe.inputExpanded,D)},B),style:o({paddingRight:0,paddingBottom:0},E)},O),K),{startAdornment:t(i,{children:[null===(f=xe.InputProps)||void 0===f?void 0:f.startAdornment,ge&&n(P,{className:qe.selectedGroup,"data-not-migrated-muichip":!0,variant:"outlined",label:t("div",o({className:qe.selectedGroupLabel},{children:[ge.name,n(k,{size:16,id:"removeGroupIcon",className:qe.removeIcon,onClick:fe})]}))},ge.id),$&&!h(q)&&n("div",o({onClick:so,id:"selectedOptions",className:u(qe.selectedLabel,ze&&qe.selectedLabelExpanded)},{children:po(q)}))]}),endAdornment:t(i,{children:[t(S,o({className:u(qe.endAdornment,(p={},p[qe.removeIconWithDropdown]=z.forcePopupIcon,p)),position:"end"},{children:[le.endAdornment,V&&n(x,{color:"primary",size:20}),C&&Ae&&!w&&n(F,o({"data-testid":"".concat("AutocompleteSearch","_clear_icon"),size:"small",className:qe.iconButton,onClick:function(){je(""),se&&se()},tooltipProps:{title:"Clear"}},{children:n(k,{size:20,className:qe.closeIcon})}))]})),z.forcePopupIcon&&j]})})}))},loading:V,options:Ke,renderGroup:function(e){var i=e.key,r=e.group,s=e.children;return!r||!h(ge)&&$?s:t("div",o({className:qe.group},{children:[n(I,o({title:r,placement:"right",TransitionComponent:O,TransitionProps:{timeout:500},enterDelay:500},{children:n(P,{"data-not-migrated-muichip":!0,className:u(qe.groupChip,Ze),variant:"outlined",label:r})})),s]}),i)},disableCloseOnSelect:$,multiple:$,renderOption:ue||function(e,i){var r=e.label,s=void 0===r?"":r,p=e.id;return $?t("div",o({className:u(qe.option,J),"data-testid":"autocompleteOption_".concat(s,"MenuItem")},{children:[n(A,{disableRipple:!0,icon:K,className:qe.checkbox,checkedIcon:H,checked:i.selected}),n(N,o({className:qe.optionLabelContainer},{children:s}))]}),p):n(j,o({className:qe.menuItem,value:p,"data-testid":"autocompleteOption_".concat(s,"MenuItem")},{children:n(N,o({className:qe.optionLabelContainer},{children:s}))}),p)},groupBy:He?function(e){return e.group}:null,PaperComponent:uo,ListboxComponent:ve,inputValue:Ae,getOptionLabel:pe,getOptionDisabled:z.getOptionDisabled,onInputChange:function(e,o,n){je(o),ce(o,n)},loadingText:n("div",o({className:qe.label},{children:"Loading ..."})),noOptionsText:n("div",o({className:qe.label},{children:Pe})),ListboxProps:ae,onFocus:function(){var e;Me(!1),null===(e=xe.onFocus)||void 0===e||e.call(xe)}}))}))},w={AutocompleteProps:d.shape({forcePopupIcon:d.bool,getOptionDisabled:d.func}),allChecked:d.bool,TextFieldProps:d.shape({label:d.string,endAdornment:d.node}),selectedGroup:d.shape({name:d.string,id:d.string}),onGroupReset:d.func,onClose:d.func,disableClearable:d.bool,value:d.oneOfType([d.arrayOf(d.shape({})),d.shape({})]).isRequired,onChange:d.func.isRequired,onInputChange:d.func,getOptionLabel:d.func,onGroupChange:d.func,loading:d.bool,disabled:d.bool,multiple:d.bool,options:d.array,optionSize:d.string,popupIcon:d.node,InputProps:d.shape({startAdornment:d.node,classes:d.shape({input:d.string}),style:d.shape({})}),ListboxProps:d.shape({}),classes:d.shape({popper:d.string,listbox:d.string,popupIndicator:d.string,popupIndicatorOpen:d.string,groupChip:d.string}),onInputChangeCallback:d.func,placeholder:d.string,RecentSearchesComponent:d.elementType,ListboxComponent:d.any,recentSearchesMaxCount:d.number,dataStorageKey:d.string,dataStorage:d.shape({}),groups:d.array,GroupsComponent:d.elementType,onOpen:d.func,renderCustomOption:d.func,onInputReset:d.func,isHiddenAllOption:d.bool,paperFooter:d.node,isOpenedFromParent:d.bool,popperProps:d.shape({style:d.shape({})}),onFocus:d.func,inputProps:d.shape({}),noOptionsText:d.string,isPrioritizedSelectedOptions:d.bool};q.propTypes=w,q.defaultProps={InputProps:null,onInputChange:null,onGroupChange:function(){},getOptionLabel:function(e){return e.label||""},renderCustomOption:null,onInputReset:null,ListboxProps:null,options:[],groups:[],classes:{},disabled:!1,isHiddenAllOption:!1,disableClearable:!1,multiple:!1,loading:!1,onInputChangeCallback:function(){},placeholder:"Search...",popupIcon:n(T,{theme:"filled",fill:"#BDBDBD",size:16}),recentSearchesMaxCount:3,dataStorageKey:"Search:recentSearches",dataStorage:sessionStorage,RecentSearchesComponent:null,TextFieldProps:{endAdornment:null},GroupsComponent:null,ListboxComponent:z,onGroupReset:function(){},onClose:function(){},selectedGroup:null,isOpenedFromParent:void 0,onFocus:null,noOptionsText:"No Options",isPrioritizedSelectedOptions:!1};export{q as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAutocompleteOptions.d.ts","sourceRoot":"","sources":["../../../../src/components/Search/effects/useAutocompleteOptions.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAutocompleteOptions.d.ts","sourceRoot":"","sources":["../../../../src/components/Search/effects/useAutocompleteOptions.js"],"names":[],"mappings":"AAKO;;;;;;;;;;EAqCN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/slicedToArray";import{useState as t,useCallback as o,useEffect as e}from"react";import{isEmpty as n,sortBy as i}from"lodash";import{getFormattedOptions as
|
|
1
|
+
import r from"@babel/runtime/helpers/slicedToArray";import{useState as t,useCallback as o,useEffect as e}from"react";import{isEmpty as n,sortBy as i,isEqual as u}from"lodash";import{getFormattedOptions as p}from"../utils/getFormattedOptions.js";var s=function(s){var a=s.value,l=s.options,m=s.groups,c=s.selectedGroup,d=s.isPrioritizedSelectedOptions,f=t(l),h=r(f,2),v=h[0],g=h[1],A=(null==l?void 0:l.some((function(r){return r.group})))||!n(m),O=p(l,A,c),y=o((function(r){if(!Array.isArray(r))return O;var t=new Set(r.map((function(r){return r.id})));return i(O,(function(r){return!t.has(r.id)}))}),[O.length]);return e((function(){d?g(y(a)):u(O,v)||g(O)}),[O]),{autocompleteOptions:v,handleAutocompleOptionsUpdate:function(){d&&g(y(a))},isGrouped:A}};export{s as useAutocompletOptions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as s}from"react/jsx-runtime";import{makeStyles as r,InputAdornment as t}from"@material-ui/core";import{LayersIcon as i}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 n from"./index.js";var c=r((function(o){return{emptyItem:{color:o.palette.primary.text6},formControlRoot:{"&:hover":{"& .MuiFormLabel-root":{color:o.palette.primary.text6},"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main}},"& .MuiFormLabel-root":{color:o.palette.primary.text6},"& .MuiSelect-filled":{paddingLeft:0},"& .MuiSelect-select:focus":{backgroundColor:"transparent"},"& .MuiFilledInput-root":{backgroundColor:"#FFFFFF10","&:hover":{backgroundColor:"#FFFFFF20"},"&.Mui-disabled":{backgroundColor:"#FFFFFF10"}}}}})),e=function(r){var e=c();return s(n,o({disableUnderline:!0,displayEmpty:!0,FormControlProps:{variant:"filled",classes:{root:e.formControlRoot}},renderValue:function(r){return r||s("span",o({className:e.emptyItem},{children:"None"}))},startAdornment:s(t,o({position:"start"},{children:s(i,{size:16})}))},r))};export{e as SelectFilterBy};
|
|
1
|
+
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as s}from"react/jsx-runtime";import{makeStyles as r,InputAdornment as t}from"@material-ui/core";import{LayersIcon as i}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 n from"./index.js";var c=r((function(o){return{emptyItem:{color:o.palette.primary.text6},formControlRoot:{"&:hover":{"& .MuiFormLabel-root":{color:o.palette.primary.text6},"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main}},"& .MuiFormLabel-root":{color:o.palette.primary.text6},"& .MuiSelect-filled":{paddingLeft:0},"& .MuiSelect-select:focus":{backgroundColor:"transparent"},"& .MuiFilledInput-root":{backgroundColor:"#FFFFFF10","&:hover":{backgroundColor:"#FFFFFF20"},"&.Mui-disabled":{backgroundColor:"#FFFFFF10"}}}}})),e=function(r){var e=c();return s(n,o({disableUnderline:!0,displayEmpty:!0,FormControlProps:{variant:"filled",classes:{root:e.formControlRoot}},renderValue:function(r){return r||s("span",o({className:e.emptyItem},{children:"None"}))},startAdornment:s(t,o({position:"start"},{children:s(i,{size:16})}))},r))};export{e as SelectFilterBy};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as n}from"react/jsx-runtime";import{useState as
|
|
1
|
+
import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as n}from"react/jsx-runtime";import{useState as c}from"react";import r from"prop-types";import{GithubPicker as i,ChromePicker as t}from"react-color";import{withStyles as e,Button as l,ClickAwayListener as u}from"@material-ui/core";import{PaletteIcon 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 m from"./style.css.js";var p=function(r){var e=r.onChange,p=r.currentValue,d=r.defaultValue,f=r.classes,j=r.condensed,h=r.colors,I=r.lensColor,C=c(!1),g=C[0],F=C[1],b=c(p||d),v=b[0],y=b[1],E=function(){return e(v)};return s("div",o({className:m.colorEditor},{children:[n(l,o({variant:"contained",color:"primary",onClick:function(){return F(!0)},className:f.button,style:{backgroundColor:v,color:I},size:"small"},{children:n(a,{size:16})})),g&&n(u,o({mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(){F(!1),E()}},{children:n("div",o({className:m.colorEditorPickerContainer},{children:j?n(i,{color:v,onChange:function(o){y(o.hex),F(!1),E()},colors:h,triangle:"hide"}):n(t,{color:v,onChange:function(o){y(o.hex),E()}})}))}))]}))},d={currentValue:r.string.isRequired,defaultValue:r.string,condensed:r.bool,onChange:r.func.isRequired,colors:r.arrayOf(r.string),classes:r.shape({button:r.string}).isRequired,lensColor:r.string};p.propTypes=d,p.defaultProps={condensed:!1,colors:["#FF0000","#00FF00","#0000FF"],defaultValue:"#FF0000",lensColor:"#fff"};var f=e({button:{marginBottom:16}})(p);export{p as ColorEditor,f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as e}from"react/jsx-runtime";import
|
|
1
|
+
import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as e}from"react/jsx-runtime";import i from"classnames";import{Typography as t,Accordion as n,AccordionSummary as r,Tooltip as c,AccordionDetails as a}from"@material-ui/core";import m from"@material-ui/icons/ArrowForward";import l from"../../Button/components/Button/index.js";import"moment-timezone";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"../../../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{truncateString as d}from"../../Search/utils/truncate.js";import{useDQUnvalidatedContentStyles as u}from"../styles.js";import{UniversalLink as p}from"../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{MIXPANEL_ACTION_TYPES as h}from"../../../constants/mixpanel.js";import{DQAccordionDetailsContent as j}from"./DQAccordionDetailsContent.js";var v=function(v){var f=v.assetsData,I=v.maxHeight,D=v.onClick,N=v.onMouseLeave,x=v.onMouseEnter,C=v.tooltipRef,B=u({maxHeight:I});return s("div",o({ref:C,className:B.container,onMouseLeave:N,onMouseEnter:x},{children:[s("div",{children:[e(t,o({className:B.headerText,"data-testid":"Status_badge__DQ_unvalidated_content"},{children:"Data Quality"})),e(t,o({className:B.subheaderText},{children:"Fusion real-time data quality rules for app data"}))]}),e("div",o({className:B.relative},{children:e("div",o({className:B.accordionsWrapper},{children:Object.keys(f).map((function(t){var l,u=f[t];return s(n,o({className:B.accordion,defaultExpanded:!0},{children:[e(r,o({className:i("large","stretched")},{children:s("div",o({className:B.headerWrapper},{children:[e("span",{children:d(t,{maxChars:35,charsNumFromStart:13,charsNumFromEnd:12})}),e(c,o({title:"Go to Data Quality page"},{children:e("div",{children:e(p,o({className:B.link,href:null===(l=u[0])||void 0===l?void 0:l.linkToDQPage,onClick:function(){var o;null===(o=window[Symbol.for("logToMixpanel")])||void 0===o||o.call(window,h.REDIRECT.ASSET_DASHBOARD,{referer:"DQ Badge"})}},{children:e(m,{className:B.linkIcon})}))})}))]}))})),e(a,o({className:B.accordionDetails},{children:e(j,{assets:u})}))]}),t)}))}))})),e("div",o({className:B.reportDQIssueButtonWrapper},{children:e(l,o({className:B.reportDQIssueButton,onClick:D,variation:"secondary"},{children:"report data issue"}))}))]}))};export{v as DQUnvalidatedContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as
|
|
1
|
+
import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as s}from"react";import{makeStyles as e,MenuItem as r,TextField as c}from"@material-ui/core";import a from"../../Modal/Modal.js";import m from"../../Button/components/Button/index.js";import"moment-timezone";import"classnames";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"../../../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 l from"../../Select/index.js";import{truncateString as u}from"../../Search/utils/truncate.js";var p=e((function(o){return{container:{width:472,color:o.palette.primary.text6,display:"flex",flexDirection:"column",gap:16},helpText:{fontSize:16,lineHeight:"22px"},clearAllButton:{margin:"0 16px 0 auto"},textField:{"& .MuiInput-formControl":{marginTop:8}},popover:{marginTop:8,maxHeight:500,width:"100%"}}})),d=function(e){var d,h=e.assets,j=e.onSave,v=e.onClose,f=p(),x=s(""),I=x[0],C=x[1],g=s(null===(d=h[0])||void 0===d?void 0:d.id),F=g[0],S=g[1],B=h.length>1;return t(a,o({open:!0,onClose:v,title:"Report Data Quality Issue",actions:i(n,{children:[t(m,o({color:"primary",className:f.clearAllButton,onClick:v},{children:"Cancel"})),t(m,o({disabled:!I||B&&!F,onClick:function(){j(I,F),C(""),S(""),B||v()},variation:"primary"},{children:"report data issue"}))]})},{children:i("div",o({className:f.container},{children:[t("div",o({className:f.helpText},{children:"All issues are submitted to the Corva’s 24/7 Fusion data quality team for immediate review and remediation."})),B&&t(l,o({MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PopoverClasses:{root:f.popover}},label:"Select Asset",onChange:function(o){return S(o.target.value)},value:F},{children:h.map((function(i){return t(r,o({value:i.id},{children:u(i.name,{maxChars:50,charsNumFromStart:26,charsNumFromEnd:24})}),i.id)}))})),t(c,{className:f.textField,multiline:!0,rows:1,rowsMax:4,label:"Error Description",onChange:function(o){return C(o.target.value)},value:I})]}))}))};export{d as ReportIssueModal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,Fragment as i,jsx as c}from"react/jsx-runtime";import
|
|
1
|
+
import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,Fragment as i,jsx as c}from"react/jsx-runtime";import r from"classnames";import{CheckSmallIcon as e}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{Regular20 as n,Regular16 as t,Regular14 as m}from"../../Typography.js";import{Tooltip as l}from"../../Tooltip/Tooltip.js";import"../../Tooltip/ScrollableTooltip.js";import{Size as a}from"../constants.js";import{useStyles as p}from"./styles.js";var u,d=((u={})[a.Large]={value:n,label:t},u[a.Medium]={value:t,label:m},u),j=function(n){var t,m,u=n.label,j=n.value,b=n.canGoBack,I=void 0===b||b,v=n.className,h=n.goBackTooltip,f=void 0===h?"Go Back":h,k=n.tooltip,M=n.onClick,T=n.size,g=void 0===T?a.Medium:T,C=n.checked,F=n.active,N=n.error,x=n.disabled,y=p(),B=d[g]||d[a.Medium],E=I&&C,G=!(E&&M||k),L=s(i,{children:[E&&f,E&&k&&s(i,{children:[c("br",{}),c("br",{})]}),k]}),O=((t={})[a.Large]="",t[a.Medium]=y.medium,t),S=s("div",o({className:r(y.step,(m={},m[y.error]=N,m[y.disabled]=x,m[y.passed]=C,m[y.current]=F,m[y.hoverable]=I,m),O[g],v),onClick:E?M:void 0},{children:[c(B.value,o({className:y.value},{children:I||!C?j:c(e,{})})),c(B.label,o({className:y.label},{children:u}))]}));return G?S:c(l,o({title:L,placement:"bottom"},{children:S}))};export{j as Step};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useState as r}from"react";import{makeStyles as i,TableCell as s}from"@material-ui/core";import n from"classnames";import c from"../../IconButton/index.js";import{Tooltip as l}from"../../Tooltip/Tooltip.js";import"../../Tooltip/ScrollableTooltip.js";import{LeftIcon as a,RightIcon 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";import{jsxs as m,jsx as d}from"react/jsx-runtime";var u=["isExpanded","setIsExpanded","tooltipTitle","collapsibleHeader","collapsibleBody","maxCellWidth","maxCharsNumberFromStart","maxCharsNumberFromEnd","cellWidth","children"];function b(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);o&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),t.push.apply(t,r)}return t}function h(o){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){e(o,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))}))}return o}var f=i((function(e){return{stickyCell:{position:"sticky",left:0,zIndex:2,background:e.palette.background.b4},stickyEmptyCell:{position:"sticky",right:0,zIndex:2},collapseHeader:{width:function(e){var o=e.isExpanded,t=e.maxCellWidth,r=e.cellWidth;return o?t:r}},tableCellWrapper:{display:"flex",alignItems:"center",justifyContent:"space-between",width:function(e){var o=e.isExpanded,t=e.maxCellWidth,r=e.cellWidth;return o?t:r}},iconButton:{padding:0,fontSize:16,"&:hover":{backgroundColor:"transparent"}}}})),j=function(e){var i,b=e.isExpanded,j=e.setIsExpanded,y=e.tooltipTitle,C=e.collapsibleHeader,x=e.collapsibleBody,I=e.maxCellWidth,O=e.maxCharsNumberFromStart,E=e.maxCharsNumberFromEnd,g=e.cellWidth,k=e.children,v=t(e,u),W=v.stickyCell&&!v.emptyCell,P=f({isExpanded:b,cellWidth:g,maxCellWidth:I}),w=r(!1),F=o(w,2),N=F[0],S=F[1];return m(s,h(h({},v),{},{className:n(C&&P.collapseHeader,W&&P.stickyCell,v.emptyCell&&P.stickyEmptyCell,W&&"stickyCell",v.emptyCell&&"stickyEmptyCell",v.className),children:[C&&m("div",{className:P.tableCellWrapper,children:[k,d(c,{className:P.iconButton,size:"small",onClick:function(){S(!1),j(!b)},tooltipProps:{title:b?"Collapse":"Expand",open:N,disableHoverListener:!0,onMouseEnter:function(){return S(!0)},onMouseLeave:function(){return S(!1)}},children:d(b?a:p,{size:16})})]}),x&&d(l,{title:b?"":y,children:d("div",{children:b?k:(i=y,i.length>O+E?"".concat(i.substring(0,O)," ... ").concat(i.substring(i.length-E)):i)})}),!C&&!x&&k]}))};export{j as TableCell};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as s}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as
|
|
1
|
+
import{__rest as o,__assign as s}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as c,jsx as n}from"react/jsx-runtime";import{forwardRef as i}from"react";import{makeStyles as t}from"@material-ui/core";import{LeftIcon as r,RightIcon as e}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 m from"../../IconButton/index.js";var a=t((function(o){return{icon:{color:o.palette.primary.text6}}})),u=i((function(i,t){var u=i.backIconButtonProps,l=i.count,p=i.nextIconButtonProps,I=i.onChangePage,d=i.page,j=i.rowsPerPage,f=o(i,["backIconButtonProps","count","nextIconButtonProps","onChangePage","page","rowsPerPage"]),P=-1!==l&&d>=Math.ceil(l/j)-1,g=a();return c("div",s({ref:t},f,{children:[n(m,s({onClick:function(o){I(o,d-1)},disabled:0===d},u,{children:n(r,{size:"small",className:g.icon})})),n(m,s({onClick:function(o){I(o,d+1)},disabled:P},p,{children:n(e,{size:"small",className:g.icon})}))]}))}));export{u as TablePaginationActions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import{Tooltip as
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import{Tooltip as s,TableSortLabel as t}from"@material-ui/core";import{DownSmallIcon 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"../../../icons/customIcons/icons/CautionFilled.js";import{jsx as r}from"react/jsx-runtime";function n(o,s){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);s&&(c=c.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),t.push.apply(t,c)}return t}function e(s){for(var t=1;t<arguments.length;t++){var c=null!=arguments[t]?arguments[t]:{};t%2?n(Object(c),!0).forEach((function(t){o(s,t,c[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):n(Object(c)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(c,o))}))}return s}var i=function(o){return r(s,{placement:"top-end",title:"Sort",children:r(t,e(e({},o),{},{IconComponent:function(o){return r(c,e(e({},o),{},{size:16}))}}))})};export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i,jsxs as
|
|
1
|
+
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i,jsxs as n}from"react/jsx-runtime";import{useEffect as t}from"react";import{makeStyles as s,Typography as c}from"@material-ui/core";import{CheckSmallIcon as e}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 r=s((function(o){return{notificationContainer:{position:"absolute",height:24,left:0,right:0,display:"flex",justifyContent:"center",marginTop:16,zIndex:999},notificationContent:{display:"flex",alignItems:"center",background:"rgba(65, 65, 65, 0.7)",boxShadow:"0px 4px 12px 0px #0000001F",borderRadius:4,paddingRight:12,paddingLeft:8},notificationIcon:{width:12,color:o.palette.primary.text6,fontSize:12,marginRight:4},notificationLabel:{color:o.palette.primary.text6,fontWeight:400,fontSize:12,lineHeight:"17px",letterSpacing:.4}}}));function a(s){var a=s.message,m=s.autoHideDuration,l=void 0===m?3e3:m,p=s.onDismiss,u=r();return t((function(){var o=setTimeout(p,l);return function(){return clearTimeout(o)}}),[]),i("div",o({className:u.notificationContainer},{children:n("div",o({className:u.notificationContent},{children:[i(e,{size:12,className:u.notificationIcon}),i(c,o({className:u.notificationLabel},{children:a}))]}))}))}export{a as Toaster};
|