@corva/ui 0.92.0-9 → 0.93.0-0
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/AssetsMultipleSelector/AssetsMultipleSelector.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/FilesLoader/FilesLoader.js +1 -1
- package/cjs-bundle/components/FilesLoaderV2/FilesLoaderV2.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/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/icons/customIcons/icons/SimulFrac.js +1 -0
- package/cjs-bundle/icons/customIcons/icons/ZipperFrac.js +1 -0
- 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/AssetsMultipleSelector/AssetsMultipleSelector.d.ts.map +1 -1
- package/components/AssetsMultipleSelector/AssetsMultipleSelector.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/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/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 +4 -1
- package/components/Search/Search.d.ts.map +1 -1
- package/components/Search/Search.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/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/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/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 o from"@babel/runtime/helpers/defineProperty";import{useContext as
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import{useContext as s}from"react";import t from"classnames";import{makeStyles as r}from"@material-ui/core";import e from"../ChartButton.js";import i from"../../ChartWrapperContext.js";import"@babel/runtime/helpers/slicedToArray";import"lodash";import"../../../../utils/main.js";import{useHideAxes as c}from"../../effects/useHideAxes.js";import"../../effects/useChartModifier.js";import{ExpandIcon as n,CollapseIcon as m}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 p}from"react/jsx-runtime";function a(o,s){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);s&&(r=r.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),t.push.apply(t,r)}return t}function l(s){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){o(s,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(r,o))}))}return s}var u=r({icon:{top:0,transform:"rotate(45deg)"}}),j=function(o){var r=s(i),a=r.chart,j=r.handleChangeChartStyles,f=c({chart:a,onChartStylesChange:j}),d=f.isHiddenAxes,h=f.handleAxesHide,O=u();return p(e,l(l({},o),{},{className:t(O.hideAxesButton,o.className),tooltipProps:l({title:d?"Show Axes":"Hide Axes"},o.tooltipProps),onClick:h,children:p(d?n:m,{className:O.icon,size:16})}))};j.defaultProps={tooltipProps:{}};export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as s}from"react";import
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as s}from"react";import i from"../ChartButton.js";import r from"../../ChartWrapperContext.js";import{FiveIcon 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";import{jsx as e}from"react/jsx-runtime";var c=["onClick","isHidden"];function p(o,t){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),s.push.apply(s,i)}return s}function m(t){for(var s=1;s<arguments.length;s++){var i=null!=arguments[s]?arguments[s]:{};s%2?p(Object(i),!0).forEach((function(s){o(t,s,i[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))}))}return t}var u=function(o){var p=o.onClick,u=void 0===p?function(){}:p,l=o.isHidden,a=void 0!==l&&l,j=t(o,c),d=s(r),f=d.zoomStatus,b=d.isMinHeightChart,O=d.isZoomEnabled,h=d.handleIsZoomEnabledChange;return e(i,m(m({},j),{},{disabled:f.isReset,tooltipProps:m({title:"Pan",placement:"left"},j.tooltipProps),isActive:!O,onClick:function(){h(!1),u()},isHidden:b||a,children:e(n,{size:16})}))};u.defaultProps={onClick:function(){},isHidden:!1,tooltipProps:{}};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as s}from"react";import i from"../../ChartWrapperContext.js";import
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as s}from"react";import i from"../../ChartWrapperContext.js";import r from"../ChartButton.js";import{UndoIcon 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{jsx as n}from"react/jsx-runtime";var c=["onClick","isHidden","isVisible"];function p(o,t){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),s.push.apply(s,i)}return s}function m(t){for(var s=1;s<arguments.length;s++){var i=null!=arguments[s]?arguments[s]:{};s%2?p(Object(i),!0).forEach((function(s){o(t,s,i[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))}))}return t}var u=function(o){var p=o.onClick,u=void 0===p?function(){}:p,l=o.isHidden,a=void 0!==l&&l,j=o.isVisible,f=void 0!==j&&j,d=t(o,c),b=s(i),O=b.isMinHeightChart,h=b.handleResetZoom,I=b.zoomStatus.isReset||O||a;return n(r,m(m({},d),{},{onClick:function(){h(),u()},tooltipProps:m({title:"Reset Zoom",placement:"left"},d.tooltipProps),isHidden:I&&!f,children:n(e,{size:16})}))};u.defaultProps={onClick:function(){},isHidden:!1,isVisible:!1,tooltipProps:{}};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as r}from"react";import s from"../../ChartWrapperContext.js";import{ZOOM_TYPE as e,HOT_KEYS as i}from"../../constants.js";import n from"../ChartButton.js";import"@babel/runtime/helpers/slicedToArray";import"lodash";import"../../../../utils/main.js";import{useKeyboardControl as c}from"../../effects/useKeyboardControl.js";import"../../effects/useChartModifier.js";import{PlusIcon as
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as r}from"react";import s from"../../ChartWrapperContext.js";import{ZOOM_TYPE as e,HOT_KEYS as i}from"../../constants.js";import n from"../ChartButton.js";import"@babel/runtime/helpers/slicedToArray";import"lodash";import"../../../../utils/main.js";import{useKeyboardControl as c}from"../../effects/useKeyboardControl.js";import"../../effects/useChartModifier.js";import{PlusIcon as m}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 p}from"react/jsx-runtime";var l=["onClick"];function u(o,t){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),r.push.apply(r,s)}return r}function a(t){for(var r=1;r<arguments.length;r++){var s=null!=arguments[r]?arguments[r]:{};r%2?u(Object(s),!0).forEach((function(r){o(t,r,s[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(s,o))}))}return t}var f=function(o){var u=o.onClick,f=void 0===u?function(){}:u,j=t(o,l),b=r(s),d=b.zoomStatus,O=b.handleZoomEvent,I=function(){O(e.zoomIn),f()};return c({keyCode:i.arrowUp,callback:I}),p(n,a(a({},j),{},{onClick:I,disabled:d.isMax,tooltipProps:a({title:"Zoom In",placement:"left"},j.tooltipProps),children:p(m,{size:16})}))};f.defaultProps={onClick:function(){},tooltipProps:{}};export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as r}from"react";import s from"../../ChartWrapperContext.js";import{ZOOM_TYPE as e,HOT_KEYS as i}from"../../constants.js";import
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as r}from"react";import s from"../../ChartWrapperContext.js";import{ZOOM_TYPE as e,HOT_KEYS as i}from"../../constants.js";import c from"../ChartButton.js";import"@babel/runtime/helpers/slicedToArray";import"lodash";import"../../../../utils/main.js";import{useKeyboardControl as n}from"../../effects/useKeyboardControl.js";import"../../effects/useChartModifier.js";import{MinusIcon as m}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 p}from"react/jsx-runtime";var u=["onClick"];function l(o,t){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),r.push.apply(r,s)}return r}function a(t){for(var r=1;r<arguments.length;r++){var s=null!=arguments[r]?arguments[r]:{};r%2?l(Object(s),!0).forEach((function(r){o(t,r,s[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):l(Object(s)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(s,o))}))}return t}var f=function(o){var l=o.onClick,f=void 0===l?function(){}:l,j=t(o,u),b=r(s),d=b.handleZoomEvent,O=b.zoomStatus,h=function(){d(e.zoomOut),f()};return n({keyCode:i.arrowDown,callback:h}),p(c,a(a({},j),{},{onClick:h,tooltipProps:a({title:"Zoom Out",placement:"left"},j.tooltipProps),disabled:O.isReset,children:p(m,{size:16})}))};f.defaultProps={onClick:function(){},tooltipProps:{}};export{f as default};
|
package/components/Chip/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t}from"react/jsx-runtime";import{forwardRef as o}from"react";import e from"prop-types";import s from"classnames";import{makeStyles as
|
|
1
|
+
import{__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t}from"react/jsx-runtime";import{forwardRef as o}from"react";import e from"prop-types";import s from"classnames";import{makeStyles as c,Chip as a}from"@material-ui/core";import{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 r=function(i){var t=i.width,o=void 0===t?24:t,e=i.height,s=void 0===e?24:e,c=i.fill.replace("#","%23");return"<svg width='".concat(o,"' height='").concat(s,"' viewBox='0 0 24 24' fill='").concat(c,"' xmlns='http://www.w3.org/2000/svg'><path d='M20.5303 6.46967C20.8232 6.76256 20.8232 7.23744 20.5303 7.53033L10.5303 17.5303C10.2374 17.8232 9.76256 17.8232 9.46967 17.5303L4.46967 12.5303C4.17678 12.2374 4.17678 11.7626 4.46967 11.4697C4.76256 11.1768 5.23744 11.1768 5.53033 11.4697L10 15.9393L19.4697 6.46967C19.7626 6.17678 20.2374 6.17678 20.5303 6.46967Z'/></svg>")},l=c((function(i){return{checked:{"&::before":{content:'url("data:image/svg+xml; utf8, '.concat(r({fill:i.palette.primary.main}),'")'),display:"flex",alignItems:"center",justifyContent:"center",width:24,height:16,lineHeight:"16px",marginLeft:8,marginRight:"-4px",paddingTop:3},"&.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(r({fill:i.palette.primary.text8}),'")')},"&.MuiChip-sizeSmall::before":{content:'url("data:image/svg+xml; utf8, '.concat(r({width:12,fill:i.palette.primary.main}),'")'),width:16,height:16},"&.MuiChip-sizeSmall.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(r({width:12,fill:i.palette.primary.text8}),'")')},"&.MuiChip-root.MuiChip-clickable":{"& .MuiChip-label, & .MuiChip-deleteIcon, & .MuiChip-icon":{color:"#FFFFFF"}},"& .MuiChip-label:first-child":{marginLeft:"-4px"}},basic:{"&:not([data-not-migrated-MuiChip])":{"&.MuiChip-sizeSmall":{height:12,"& .MuiChip-label":{fontSize:10}},border:"none",textTransform:"uppercase",backgroundColor:i.palette.primary.main,padding:"0 8px",height:16,"& .MuiChip-label":{fontSize:12,fontWeight:500,lineHeight:"12px",letterSpacing:"1px",color:i.palette.background.b1,padding:0},"&:hover":{backgroundColor:i.palette.primary.main,"& .MuiChip-label":{color:i.palette.background.b1}}}}}})),p=o((function(o,e){var c,r=o.checked,p=o.classes,m=void 0===p?{}:p,d=l(),u=s(o.className,((c={})[d.basic]="basic"===o.variant,c)),h="basic"===o.variant?"default":o.variant;return t(a,i({},o,r?{"data-testid":"Chip",ref:e,className:u,classes:i(i({},m),{root:s(m.root,d.checked)}),variant:h,deleteIcon:t(n,{"data-testid":"".concat("Chip","_remove_icon"),size:16})}:{ref:e,className:u,variant:h,deleteIcon:t(n,{"data-testid":"".concat("Chip","_remove_icon"),size:16})}))})),m={checked:e.bool,"data-testid":e.string};p.propTypes=m,p.defaultProps={checked:!1,"data-testid":"Chip"};export{p as default};
|
|
@@ -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 r,jsx as t}from"react/jsx-runtime";import{useState as n,useRef as e,useEffect as i}from"react";import{makeStyles as c,InputLabel as s,Tooltip as a,IconButton as l,Popover as p}from"@material-ui/core";import m from"chroma-js";import u from"classnames";import d from"./PaletteChromePicker/PaletteChromePicker.js";import{PaletteIcon as b}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{getValidColor as g,getButtonStrokeColor as h,findParentBackground as f}from"./ColorPicketUtils.js";var v={rgba:function(o){return"rgba(".concat(o.rgb.r,", ").concat(o.rgb.g,", ").concat(o.rgb.b,", ").concat(o.rgb.a,")")},rgb:function(o){return"rgb(".concat(o.rgb.r,", ").concat(o.rgb.g,", ").concat(o.rgb.b,")")},hex:function(o){return o.hex},rgba_rgb:function(o){return 1===o.rgb.a?v.rgb(o):v.rgba(o)},rgba_hex:function(o){return 1===o.rgb.a?v.hex(o):v.rgba(o)}},x=c({root:{position:"relative",display:"flex"},topLabelRoot:{flexDirection:"column"},rightLabelRoot:{flexDirection:"row-reverse",justifyContent:"flex-end",alignItems:"center"},button:{width:"36px",height:"24px",boxShadow:"0px 3px 6px rgba(0, 0, 0, 0.161)",borderRadius:"5px",fontSize:"1rem"},buttonTransparent:{position:"relative",backgroundImage:"url(".concat("/static/media/39f55985e0da1489ad22264208b0493d.svg",")"),backgroundSize:"cover",backgroundPosition:"center","&::before":{content:'""',position:"absolute",display:"block",width:"100%",height:"3px",background:"#FF0000",transform:"rotate(148deg)",borderRadius:"2px"}},colorLensIcon:{position:"relative",zIndex:2},popper:{zIndex:1500},topLabel:{marginBottom:"8px",fontSize:"15px",lineHeight:"17px",letterSpacing:"0.4px",color:"#BDBDBD",whiteSpace:"nowrap"},rightLabel:{marginLeft:"8px",fontSize:"16px"}}),j=function(c){var j,I,C,k=c.label,L=void 0===k?"Color":k,P=c.value,z=c.converter,S=void 0===z?"rgba_hex":z,R=c.onChange,F=c.buttonClassName,O=c.popoverAnchorOrigin,T=void 0===O?{vertical:"bottom",horizontal:"left"}:O,w=c.popoverTransformOrigin,y=void 0===w?{vertical:"top",horizontal:"left"}:w,B=c.labelPosition,D=void 0===B?"top":B,_=c.hideLabel,N=void 0!==_&&_,E=c.pickerComponent,A=void 0===E?d:E,q=c.lensColor,M=c.enableTransparencyPalette,G=void 0!==M&&M,H=c["data-testid"],U=void 0===H?"ColorPicker":H,W=c.tooltipProps,Z=void 0===W?{title:"Change color",children:null}:W,J=x(),K=n(null),Q=K[0],V=K[1],X=n((function(){return g(P)||"#03BCD4"})),Y=X[0],$=X[1],oo=e(),ro=n(null),to=ro[0],no=ro[1],eo=q||h(to,P);i((function(){var o=g(P);o?$(o):console.error("The color value(".concat(P,") is not valid, please check it."))}),[P]);return r("div",o({className:u(J.root,(j={},j[J.topLabelRoot]="top"===D,j[J.rightLabelRoot]="right"===D,j)),ref:function(o){return no(f(o))}},{children:[!N&&t(s,o({className:u((I={},I[J.topLabel]="top"===D,I[J.rightLabel]="right"===D,I)),shrink:!0},{children:L})),t(a,o({title:Z.title},Z,{children:t(l,o({"data-testid":"".concat(U,"_icon_").concat(L),className:u(J.button,F,(C={},C[J.buttonTransparent]=0===m(Y).alpha(),C)),disableRipple:!0,style:{backgroundColor:Y,color:eo},onClick:function(o){V(o.currentTarget)},size:"small"},{children:t(b,{size:16,className:J.colorLensIcon})}))})),t(p,o({id:"colors-popper",action:oo,open:Boolean(Q),anchorEl:Q,onClose:function(){V(null)},anchorOrigin:T,transformOrigin:y},{children:t(A,{color:Y,onChange:function(o){var r=v[S](o);$(r),R(r)},onSizeChange:function(){oo.current&&oo.current.updatePosition()},enableTransparencyPalette:G})}))]}))};export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{forwardRef as
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{forwardRef as i,useState as n,useLayoutEffect as e}from"react";import{ChromePicker as c}from"react-color";import r from"classnames";import{makeStyles as s,Tooltip as a}from"@material-ui/core";import l from"./Palette/Palette.js";import p from"../../IconButton/index.js";import{PaletteIcon as m,PickerIcon as d}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 u,jsx as b}from"react/jsx-runtime";var h="PALETTE",f="CHROME_PICKER",x={default:{picker:{width:"100%",boxShadow:"none"},body:{backgroundColor:"#3b3b3b",padding:"16px 16px 0"},color:{width:"32px",height:"32px",marginRight:"16px",borderRadius:"2px"},swatch:{marginTop:0,width:"100%",height:"100%",borderRadius:0,position:"relative",overflow:"hidden"},toggles:{display:"flex",flexDirection:"column",justifyContent:"space-between"},Alpha:{checkboard:{display:"none"},gradient:{borderRadius:"5px"}}}},g=s({container:{backgroundColor:"#3b3b3b",boxShadow:"0px 3px 10px rgba(0, 0, 0, 0.4)",width:"250px",paddingBottom:"8px",borderRadius:"4px","& input":{border:"1px solid #616161 !important",backgroundColor:"#3b3b3b",color:"#fff !important",boxShadow:"none !important",outline:"none"}},chromePickerPalette:{margin:"0 8px",paddingTop:"8px"},buttonsContainer:{display:"flex",justifyContent:"center",marginTop:"8px"},iconActive:{color:"#fff"},tooltip:{background:"#414141",color:"#fff",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.12)",borderRadius:"4px",opacity:1,fontSize:"11px"}}),j=i((function(i,s){var j=i.color,C=i.onChange,P=i.onSizeChange,I=i.enableTransparencyPalette,k=g(),w=n(h),y=t(w,2),v=y[0],R=y[1];return e(P,[v]),u("div",{className:k.container,ref:s,children:[v===h&&b(l,{className:k.chromePickerPalette,color:j,onChange:C,enableTransparencyPalette:I}),v===f&&b(c,{styles:x,color:j,onChange:C}),u("div",{className:k.buttonsContainer,children:[b(a,{title:"Palette",classes:{tooltip:k.tooltip},children:b(p,{"data-testid":"".concat("PaletteChromePicker","_palette"),className:k.iconButton,onClick:function(){return R(h)},children:b(m,{className:r(k.icon,o({},k.iconActive,v===h)),size:24})})}),b(a,{title:"Pick your own",classes:{tooltip:k.tooltip},children:b(p,{"data-testid":"".concat("PaletteChromePicker","_pickOwn"),className:k.iconButton,onClick:function(){return R(f)},children:b(d,{className:r(k.icon,o({},k.iconActive,v===f)),size:24})})})]})]})}));export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/slicedToArray";import{useState as t,useEffect as s}from"react";import i from"classnames";import r from"prop-types";import{makeStyles as
|
|
1
|
+
import o from"@babel/runtime/helpers/slicedToArray";import{useState as t,useEffect as s}from"react";import i from"classnames";import r from"prop-types";import{makeStyles as n,Tooltip as e}from"@material-ui/core";import{CopyIcon 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 p from"../../utils/main.js";import{jsx as a}from"react/jsx-runtime";var l=n((function(o){return{iconWrapper:{color:o.palette.primary.text6,cursor:"pointer",paddingLeft:4,display:"flex",alignItems:"center","&:hover":{color:o.palette.primary.contrastText}},tooltip:{color:o.palette.primary.text6,backgroundColor:"rgba(20, 20, 20, 0.5)"}}})),m=function(r){var n=r.children,c=r.classes,m=r.dataTestId,u=r.IconComponent,d=r.tooltipProps,I=t(!1),f=o(I,2),j=f[0],g=f[1],h=l();return s((function(){var o=setTimeout((function(){g(!1)}),d.delay);return function(){return clearTimeout(o)}}),[j]),a(e,{classes:{tooltip:i(h.tooltip,c.tooltip),popper:i(h.tooltipPopper,c.tooltipPopper)},title:d.title,open:j,disableFocusListener:!0,disableHoverListener:!0,placement:d.placement,children:a("span",{className:i(h.iconWrapper,c.iconWrapper),onClick:function(){g(!0),p.copyToClipboard(n)},children:a(u,{className:c.icon,"data-testid":m})})})};m.propTypes={children:r.string.isRequired,dataTestId:r.string,IconComponent:r.shape({}),tooltipProps:r.shape({title:r.string,placement:r.string,delay:r.number}),classes:r.shape({root:r.string,icon:r.string,iconWrapper:r.string,tooltip:r.string,tooltipPopper:r.string})},m.defaultProps={dataTestId:null,IconComponent:function(){return a(c,{size:16})},tooltipProps:{title:"Copied",placement:"bottom",delay:1500},classes:{}};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i}from"react/jsx-runtime";import s from"prop-types";import t from"classnames";import{capitalize as e}from"lodash";import{makeStyles as c,Tooltip as n,Chip as p}from"@material-ui/core";import{CloseSmallIcon as r}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 l=c((function(o){return{rootChip:{"&.MuiChip-root":{backgroundColor:o.palette.background.b9,color:o.palette.primary.text6,textAlign:"center","&:hover":{color:o.palette.primary.contrastText,"& .MuiSvgIcon-root":{color:o.palette.primary.contrastText}},"& span.MuiChip-label":{padding:0}}},tooltip:{marginTop:"10px"},closeIcon:{marginRight:"-2px !important",marginLeft:"2px !important",color:o.palette.primary.text6},sizeSmall:{"&.MuiChip-root":{minWidth:16,height:16,padding:"1px 2px","& span":{fontSize:"11px",lineHeight:"14px"}}},sizeSmallLimited:{"&.MuiChip-root":{padding:"1px 3px"}},sizeMedium:{"&.MuiChip-root":{minWidth:24,height:24,padding:"2px 4px","& span":{fontSize:"14px",lineHeight:"20px"}}},sizeMediumLimited:{"&.MuiChip-root":{padding:"2px 6px"}},sizeMediumClickable:{"&.MuiChip-root":{padding:"2px 6px"}},sizeLarge:{"&.MuiChip-root":{minWidth:32,height:32,padding:"5px 7px","& span":{fontSize:"16px",lineHeight:"22px"}}},sizeLargeLimited:{"&.MuiChip-root":{padding:"5px 8px"}},sizeLargeClickable:{"&.MuiChip-root":{padding:"5px 8px"}}}})),a=function(s){var c=s.classes,a=s.size,m=s.limited,d=s.clickable,u=s.tooltip,x=l();return i(n,o({title:u,classes:{tooltip:x.tooltip}},{children:i(p,o({},s,{classes:o(o({},c),{root:t(c.root,x.rootChip,x["size".concat(e(a))],m&&x["size".concat(e(a),"Limited")],d&&x["size".concat(e(a),"Clickable")])}),clickable:d,deleteIcon:i(r,{className:x.closeIcon,size:16})}))}))},m={classes:s.shape({root:s.string}),size:s.oneOf(["small","medium","large"]),limited:s.bool,clickable:s.bool,label:s.string.isRequired,tooltip:s.string};a.propTypes=m,a.defaultProps={classes:{},size:"medium",limited:!1,clickable:!1,tooltip:""};export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import t from"classnames";import i from"prop-types";import{KeyboardDatePicker as n}from"@material-ui/pickers";import{makeStyles as
|
|
1
|
+
import{__rest as o,__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import t from"classnames";import i from"prop-types";import{KeyboardDatePicker as n}from"@material-ui/pickers";import{makeStyles as c}from"@material-ui/core";import e from"moment";import{DATE_FORMAT as a}from"../../constants/dateTimeFormat.js";import{CalendarIcon as m,RightIcon as p,LeftIcon as u}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 l=c((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"&:hover .MuiIconButton-root":{color:o.palette.primary.contrastText},"& .MuiIconButton-root":{borderRadius:8,color:o.palette.primary.text6,fontSize:"unset",marginRight:-3,marginBottom:-8,padding:6,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.16)"}},"& .MuiIconButton-root > span > span svg":{fill:"transparent !important"}},paper:{marginTop:8}}})),d=function(i){var c,d,I=i.className,f=i.PopoverProps,j=o(i,["className","PopoverProps"]),v=l();return r(n,s({disableToolbar:!0,variant:"inline",keyboardIcon:r(m,{size:16}),rightArrowIcon:r(p,{size:24}),leftArrowIcon:r(u,{size:24}),format:a,placeholder:e().format(a),refuse:/[^(\w|\d)]+/gi,maxDate:null!==(c=j.maxDate)&&void 0!==c?c:void 0,minDate:null!==(d=j.minDate)&&void 0!==d?d:void 0},j,{PopoverProps:s({className:t(v.paper,f.className)},f),className:t(v.dateTimePickerInput,I)}))};d.propTypes={PopoverProps:i.shape({className:i.string}),className:i.string},d.defaultProps={PopoverProps:{},className:""};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import t from"classnames";import i from"prop-types";import n from"moment";import{KeyboardDateTimePicker as
|
|
1
|
+
import{__rest as o,__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import t from"classnames";import i from"prop-types";import n from"moment";import{KeyboardDateTimePicker as c}from"@material-ui/pickers";import{makeStyles as e}from"@material-ui/core";import{CalendarIcon as m,TimeIcon as a,RightIcon as p,LeftIcon as u}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{DATE_TIME_FORMAT as l}from"../../constants/dateTimeFormat.js";var d=e((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"&:hover .MuiIconButton-root":{color:o.palette.primary.contrastText},"& .MuiIconButton-root":{color:o.palette.primary.text6,borderRadius:8,fontSize:"unset",marginRight:-3,marginBottom:-8,padding:6,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.16)"}},"& .MuiIconButton-root > span > span svg":{fill:"transparent !important"}},paper:{marginTop:8}}}));function I(i){var e,l,I=i.className,f=i.PopoverProps,j=i.format,g=o(i,["className","PopoverProps","format"]),v=d();return r(c,s({dateRangeIcon:r(m,{size:24}),timeIcon:r(a,{size:24}),rightArrowIcon:r(p,{size:24}),leftArrowIcon:r(u,{size:24}),keyboardIcon:r(m,{size:16}),format:j,refuse:/[^(\w|\d)]+/gi,placeholder:n().format(j),maxDate:null!==(e=g.maxDate)&&void 0!==e?e:void 0,minDate:null!==(l=g.minDate)&&void 0!==l?l:void 0},g,{PopoverProps:s({className:v.paper},f),className:t(v.dateTimePickerInput,I)}))}I.propTypes={className:i.string,PopoverProps:i.shape({className:i.string}),format:i.string},I.defaultProps={className:"",PopoverProps:{},format:l};export{I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as i}from"react/jsx-runtime";import e from"classnames";import{makeStyles as s,useTheme as n}from"@material-ui/core";import{CenterAlignmentIcon as r}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 c from"../AppSideBar/AppSideBar.js";import p from"../../IconButton/index.js";import{AppSettingsPopover as a}from"../AppSettingsPopover/AppSettingsPopover.js";import m from"../../Button/components/Button/index.js";import"moment-timezone";import"../../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../../Button/components/LiveButton/styles.js";import{useMatchAppContainerSize as l}from"../../../effects/useMatchAppContainerSize.js";import{isNativeDetected as d,isMobileDetected as
|
|
1
|
+
import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as i}from"react/jsx-runtime";import e from"classnames";import{makeStyles as s,useTheme as n}from"@material-ui/core";import{CenterAlignmentIcon as r}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 c from"../AppSideBar/AppSideBar.js";import p from"../../IconButton/index.js";import{AppSettingsPopover as a}from"../AppSettingsPopover/AppSettingsPopover.js";import m from"../../Button/components/Button/index.js";import"moment-timezone";import"../../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../../Button/components/LiveButton/styles.js";import{useMatchAppContainerSize as l}from"../../../effects/useMatchAppContainerSize.js";import{isNativeDetected as d,isMobileDetected as u}from"../../../utils/mobileDetect.js";var h=s({appLayout:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},header:{paddingLeft:12,paddingRight:12,display:"flex",height:36},contentWrapper:{display:"flex",position:"relative",flexGrow:1,height:"calc(100% - 36px)","@media (max-width: 960px)":{height:"100%"}},content:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"},popoverContent:{padding:"0 16px"},filtersTrigger:{width:30,height:30}}),f=function(t){var e=n(),s=l({width:{max:e.breakpoints.width("md")}}),c=h();return s?i(p,o({className:c.filtersTrigger,size:"small",tooltipProps:{title:"Filters"},variant:"contained"},t,{children:i(r,{size:16})})):i(m,o({startIcon:i(r,{size:16})},t,{children:"Filters"}))},j=function(s){var r=s.appSettingsPopoverProps,p=s.children,m=s.classes,j=void 0===m?{}:m,g=s.header,v=s.sideBarContent,x=s.sideBarProps,I=h(),B=n(),w=l({width:{max:B.breakpoints.width("md")}}),y=d||u||w;return t("div",o({className:e(I.appLayout,j.appLayout)},{children:[y&&t("div",o({className:e(I.header,j.header)},{children:[i(a,o({Trigger:f,classes:{popoverContent:I.popoverContent},header:"Filters",anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},r,{children:v})),g]})),t("div",o({className:e(I.contentWrapper,j.contentWrapper)},{children:[!y&&i(c,o({},x,{anchor:"left"},{children:v})),p&&i("div",o({className:e(I.content,j.content)},{children:p}))]}))]}))};export{j as AppFilterPanelLayout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as t}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as
|
|
1
|
+
import{__rest as o,__assign as t}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as n,jsxs as e,Fragment as i}from"react/jsx-runtime";import{useState as s}from"react";import r from"classnames";import{makeStyles as c,Popover as l}from"@material-ui/core";import{SettingTwoIcon as a,CloseSmallIcon 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{isNativeDetected as m,isMobileDetected as d}from"../../../utils/mobileDetect.js";import u from"../../IconButton/index.js";import h from"../../Modal/Modal.js";import g from"../../Button/components/Button/index.js";import"moment-timezone";import"../../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../../Button/components/LiveButton/styles.js";var v=m||d,f=c((function(o){return{popoverPaper:{position:"relative",marginTop:function(o){return o.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:o.palette.background.b9,maxHeight:function(o){var t=o.maxHeight;return t?t-24:"calc(100% - 24px)"},"&.scrollable":{height:function(o){return o.maxHeight||"100%"},"&::after":{content:'""',position:"absolute",left:0,bottom:0,height:16,width:"calc(100% - 16px)",zIndex:1,background:"linear-gradient(180deg, rgba(65, 65, 65, 0.00) 0%, ".concat(o.palette.background.b9," 100%);")}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(o.palette.background.b9,", ").concat(o.palette.background.b9," 89%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},modalActions:{display:"flex",justifyContent:"flex-end"}}}));function b(c){var d=c.Trigger,b=void 0===d?null:d,j=c.children,C=c.classes,x=c.defaultScrollable,I=void 0!==x&&x,S=c.header,k=void 0===S?"Settings":S,B=c.iconSettingsProps,H=void 0===B?{}:B,z=c.maxHeight,P=void 0===z?null:z,T=c.modalActions,A=void 0===T?null:T,w=c.modalProps,y=void 0===w?{}:w,N=c.onClose,O=void 0===N?function(){}:N,E=o(c,["Trigger","children","classes","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","onClose"]),F=s(null),L=F[0],M=F[1],q=s(!0),D=q[0],W=q[1],Y=f({maxHeight:P,isScrollable:D,isNativeDetected:m}),G=C||{},R=G.popoverContent,X=o(G,["popoverContent"]),Z=function(){M(null),O()},_=Boolean(L),J=function(o){return M(o.currentTarget)},K=A||n(g,t({variation:"secondary",onClick:Z},{children:"CLOSE"}));return e(i,{children:[b?n(b,{onClick:J,isActive:_}):n(u,t({"data-testid":"chartSettingsButton",isActive:_,onClick:J,size:"small",tooltipProps:{title:"Settings"},variant:"contained"},H,{children:n(a,{size:(null==H?void 0:H.size)||16})})),!v&&e(l,t({open:_,anchorEl:L,onClose:Z,anchorOrigin:{vertical:D?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},E,{classes:t(t({},X),{paper:r(Y.popoverPaper,D&&"scrollable",null==X?void 0:X.paper)})},{children:[e("div",t({className:r(Y.popoverHeader,D&&"scrollable")},{children:[n("div",t({className:Y.headerTitle},{children:k})),n(u,t({tooltipProps:{title:"Close"},onClick:Z},{children:n(p,{})}))]})),n("div",t({className:r(Y.popoverContentContainer,D&&"scrollable"),ref:function(o){o&&o.scrollHeight<=o.clientHeight&&!I&&W(!1)}},{children:n("div",t({className:r(Y.popoverContent,R)},{children:j}))}))]})),v&&n(h,t({actions:K,onClose:Z,open:_,actionsClassName:Y.modalActions,title:k},y,{children:j}))]})}export{b as AppSettingsPopover};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as o,Fragment as t,jsx as n}from"react/jsx-runtime";import{useState as r,useRef as i,useEffect as s}from"react";import a from"prop-types";import c from"classnames";import{noop as l}from"lodash";import{makeStyles as p,createStyles as d,Drawer as m,Box as u,Tooltip as h}from"@material-ui/core";import f from"../../IconButton/index.js";import g from"../../Button/components/Button/index.js";import"moment-timezone";import{LeftAlignmentIcon as x,CloseSmallIcon as I,CheckSmallIcon as b,RightIcon as C,LeftIcon as T}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../../Button/components/LiveButton/styles.js";var
|
|
1
|
+
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as o,Fragment as t,jsx as n}from"react/jsx-runtime";import{useState as r,useRef as i,useEffect as s}from"react";import a from"prop-types";import c from"classnames";import{noop as l}from"lodash";import{makeStyles as p,createStyles as d,Drawer as m,Box as u,Tooltip as h}from"@material-ui/core";import f from"../../IconButton/index.js";import g from"../../Button/components/Button/index.js";import"moment-timezone";import{LeftAlignmentIcon as x,CloseSmallIcon as I,CheckSmallIcon as b,RightIcon as C,LeftIcon as T}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";var j=p((function(e){var o,t;return d({drawer:function(e){var o;return(o={height:"100%",position:"relative",width:e.openedDrawerWidth})["&.".concat("closed")]={width:"48px"},o},drawerPaper:(o={position:"relative",width:"100%",borderRadius:function(e){return"left"===e.anchor?"0 8px 0 0":"8px 0 0 0"},backgroundColor:e.palette.background.b5},o["&.".concat("closed")]={cursor:"pointer","&:hover":{backgroundColor:e.palette.background.b7,"& > $header":{backgroundColor:e.palette.background.b7}}},o["&.MuiDrawer-paperAnchorDockedLeft"]={borderRight:"none"},o["&.MuiDrawer-paperAnchorDockedRight"]={borderLeft:"none"},o),header:(t={cursor:"pointer",alignItems:"center",backgroundColor:e.palette.background.b5,borderBottom:"1px solid",borderBottomColor:"#ffffff14",display:"flex",fontSize:16,fontWeight:400,height:48,justifyContent:"center",left:0,letterSpacing:"1px",lineHeight:"22px",position:"absolute",right:0,textTransform:"capitalize",top:0},t["&.".concat("open")]={padding:e.spacing(1.5),justifyContent:"flex-start"},t),openToggleIconOpen:{transform:"rotate(180deg)"},openToggleContainer:function(e){var o,t=e.anchor;return(o={alignItems:"center",bottom:0,display:"flex",flex:"0 0",height:48,justifyContent:"center",padding:6,position:"absolute",width:"100%"})["&.".concat("open")]={justifyContent:"left"===t?"flex-end":"flex-start",paddingRight:6},o},contentWrapper:{marginTop:48,height:"calc(100% - 96px)",overflowY:"auto"},content:{padding:"16px 12px",display:"flex",flexDirection:"column"},selectAllButton:{textTransform:"none",fontSize:"10px",lineHeight:"14px",letterSpacing:"0.4px",marginLeft:16,"& .MuiButton-iconSizeMedium > *:first-child":{fontSize:"12px !important"},"& .MuiButton-startIcon":{marginRight:4}},headerIcon:{cursor:"pointer"},headerIconText:{cursor:"pointer",paddingLeft:7,letterSpacing:1}})})),w=function(a){var l,p=a.classes,d=a.anchor,w=a.children,O=a.drawerPaperClassName,v=a.expandedTooltipTitle,B=a.collapsedTooltipTitle,S=a.header,k=a.headerIcon,A=a.headerTitleIcon,z=a.isOpen,W=a.openedDrawerWidth,y=a.setIsOpen,D=a.size,N=a.allOptionsButtonShown,L=a.isAllOptionsSelected,P=a.onAllOptionsClick,M=r(!1);M[0];var R=M[1],F=i(),E=j({anchor:d,openedDrawerWidth:W||{small:235,medium:354,large:473}[D]});s((function(){var e=F.current,o=e.scrollHeight,t=e.clientHeight;R(o>t)}));var H="left"===d?C:T;return o(m,e({"data-testid":"".concat("AppSideBar","_Drawer"),onClick:function(){z||y(!0)},className:c(E.drawer,!z&&"closed"),variant:"permanent",classes:{paper:c(E.drawerPaper,O,!z&&"closed")},anchor:d},{children:[o("div",e({className:c(E.header,p.header,z&&"open"),onClick:function(){z&&y(!1)}},{children:[z&&o(t,{children:[A||n(x,{size:24}),n("div",e({"data-testid":"".concat("AppSideBar","_header"),className:E.headerIconText},{children:S})),N&&n(g,e({className:E.selectAllButton,onClick:function(e){e.stopPropagation(),P(e)},startIcon:n(L?I:b,{size:16})},{children:L?"Clear All":"Select All"}))]}),!z&&k]})),n("div",e({className:c(E.contentWrapper,p.contentWrapper),ref:F},{children:n("div",e({className:c(E.content,p.content)},{children:z&&w}))})),n(u,e({className:c(E.openToggleContainer,p.openToggleContainer,(l={},l.open=z,l))},{children:n(h,e({title:z?v:B,placement:"bottom"},{children:n("div",{children:n(f,e({"aria-label":"toggle sidebar",onClick:function(){y(!z)}},{children:n(H,{size:24,"data-testid":"".concat("AppSideBar","_arrowButton"),className:c(z&&E.openToggleIconOpen)})}))})}))}))]}))},O={classes:a.shape({contentWrapper:a.shape({}),content:a.shape({}),header:a.shape({}),openToggleContainer:a.shape({})}),anchor:a.oneOf(["left","right"]),children:a.node.isRequired,drawerPaperClassName:a.string,expandedTooltipTitle:a.string,collapsedTooltipTitle:a.string,header:a.node,headerIcon:a.node,headerTitleIcon:a.node,isOpen:a.bool,openedDrawerWidth:a.oneOfType([a.string,a.number]),setIsOpen:a.func,size:a.oneOf(["small","medium","large"]),allOptionsButtonShown:a.bool,isAllOptionsSelected:a.bool,onAllOptionsClick:a.func};w.propTypes=O,w.defaultProps={classes:{contentWrapper:{},content:{},header:{},openToggleContainer:{}},anchor:"left",drawerPaperClassName:"",expandedTooltipTitle:"Collapse",collapsedTooltipTitle:"Expand",header:null,headerIcon:null,headerTitleIcon:null,isOpen:!1,openedDrawerWidth:0,setIsOpen:l,size:"medium",allOptionsButtonShown:!1,isAllOptionsSelected:!1,onAllOptionsClick:l};export{w as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataResolvers.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/dataResolvers.js"],"names":[],"mappings":"AA0CA,qGAmCC;AAGD,uGAgBC;AAED;;;;;;
|
|
1
|
+
{"version":3,"file":"dataResolvers.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/dataResolvers.js"],"names":[],"mappings":"AA0CA,qGAmCC;AAGD,uGAgBC;AAED;;;;;;iBA8EC;AAnJM,+EAWN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/toConsumableArray";import a from"@babel/runtime/regenerator";import{keyBy as i,get as s,merge as u}from"lodash";import{getAppsDataByWells as c,getAppsDataByRigs as o,getAppsDataByFFs as p,getAppsDataByPads as d,prepareDataForResolver as l,fetchWells as f,fetchRigs as m,fetchFracFleets as b,fetchFracFleetWells as y,fetchPadWells as h,isAppWithSettings as g,getAppAssetSpecificTypeId as v,fetchAssetEntitiesByAssetIds as w}from"./utils.js";import{APPS_DATA_REQUESTS as I}from"./constants.js";import{ASSET_TYPES as O}from"../../../../constants/assetTypes.js";function F(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var E=[I.WELLS,I.RIGS,I.FRAC_FLEETS,I.FRAC_FLEET_WELLS,I.PAD_WELLS],L=function(e,r){var t=e.reduce((function(e,t){if(g(t))return e;var n=v(t,"deprecatedAssetId");return e.add(n||r),e}),new Set);return n(t)};function S(e,r){return A.apply(this,arguments)}function A(){return(A=t(a.mark((function e(t,n){var i,s,u,c,o,p,d;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.current.deprecatedAssetData,s=Object.keys(i),(u=t.filter((function(e){return!s.includes(String(e))}))).length){e.next=5;break}return e.abrupt("return",i);case 5:return e.next=7,w(u);case 7:if(c=e.sent){e.next=10;break}return e.abrupt("return",i);case 10:return o={rig:O.rig.id,well:O.well.id},p=Object.values(c).flat().reduce((function(e,t){var n=t.data;return e[n.attributes.asset_id]=r({},o[n.type],n.id),e}),{}),d=j(j({},i),p),n.current.cachedDeprecatedAssetData=d,e.abrupt("return",d);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function P(e,r,t){return _.apply(this,arguments)}function _(){return(_=t(a.mark((function e(r,t,n){var i;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S(L(r,t),n);case 2:return i=e.sent,e.abrupt("return",r.map((function(e){if(g(e))return e;var r=v(e,"deprecatedAssetId");return j(j({},e),{},{settings:i[r||t]})})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return D.apply(this,arguments)}function D(){return(D=t(a.mark((function r(t){var n,g,v,w,O,F,L,S,A,_,x,D,W,R,T,k,B,C,q,G,z,H,J,K,M,N,Q,U,V,X;return a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.apps,g=t.dashboardAssetId,v=t.cache,w=t.updateCache,O=t.requests,F=void 0===O?E:O,r.next=3,P(n,g,v);case 3:return L=r.sent,S=l(L,v),A=S.appsWellIds,_=S.appsRigIds,x=S.appsFracFleetIds,D=S.appsFracFleetToFetchWellsIds,W=S.appsPadIds,R=S.uniqueWellIds,T=S.uniqueRigIds,k=S.uniqueFFIds,r.next=7,Promise.all([F.includes(I.WELLS)&&f(R),F.includes(I.RIGS)&&m(T),F.includes(I.FRAC_FLEETS)&&b(k),F.includes(I.FRAC_FLEET_WELLS)&&y(D,n),F.includes(I.PAD_WELLS)&&h(W,n)]);case 7:return B=r.sent,C=e(B,5),q=C[0],G=C[1],z=C[2],H=C[3],J=C[4],K=(null==q?void 0:q.data)&&i(q.data.map((function(e){var r=s(e,"relationships.rig.data.id"),t=q.included.find((function(e){return"rig"===e.type&&e.id===r}));return j(j({},e),{},{rig:
|
|
1
|
+
import e from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/toConsumableArray";import a from"@babel/runtime/regenerator";import{keyBy as i,get as s,merge as u}from"lodash";import{getAppsDataByWells as c,getAppsDataByRigs as o,getAppsDataByFFs as p,getAppsDataByPads as d,prepareDataForResolver as l,fetchWells as f,fetchRigs as m,fetchFracFleets as b,fetchFracFleetWells as y,fetchPadWells as h,isAppWithSettings as g,getAppAssetSpecificTypeId as v,fetchAssetEntitiesByAssetIds as w}from"./utils.js";import{APPS_DATA_REQUESTS as I}from"./constants.js";import{ASSET_TYPES as O}from"../../../../constants/assetTypes.js";function F(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var E=[I.WELLS,I.RIGS,I.FRAC_FLEETS,I.FRAC_FLEET_WELLS,I.PAD_WELLS],L=function(e,r){var t=e.reduce((function(e,t){if(g(t))return e;var n=v(t,"deprecatedAssetId");return e.add(n||r),e}),new Set);return n(t)};function S(e,r){return A.apply(this,arguments)}function A(){return(A=t(a.mark((function e(t,n){var i,s,u,c,o,p,d;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.current.deprecatedAssetData,s=Object.keys(i),(u=t.filter((function(e){return!s.includes(String(e))}))).length){e.next=5;break}return e.abrupt("return",i);case 5:return e.next=7,w(u);case 7:if(c=e.sent){e.next=10;break}return e.abrupt("return",i);case 10:return o={rig:O.rig.id,well:O.well.id},p=Object.values(c).flat().reduce((function(e,t){var n=t.data;return e[n.attributes.asset_id]=r({},o[n.type],n.id),e}),{}),d=j(j({},i),p),n.current.cachedDeprecatedAssetData=d,e.abrupt("return",d);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function P(e,r,t){return _.apply(this,arguments)}function _(){return(_=t(a.mark((function e(r,t,n){var i;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S(L(r,t),n);case 2:return i=e.sent,e.abrupt("return",r.map((function(e){if(g(e))return e;var r=v(e,"deprecatedAssetId");return j(j({},e),{},{settings:i[r||t]})})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return D.apply(this,arguments)}function D(){return(D=t(a.mark((function r(t){var n,g,v,w,O,F,L,S,A,_,x,D,W,R,T,k,B,C,q,G,z,H,J,K,M,N,Q,U,V,X;return a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.apps,g=t.dashboardAssetId,v=t.cache,w=t.updateCache,O=t.requests,F=void 0===O?E:O,r.next=3,P(n,g,v);case 3:return L=r.sent,S=l(L,v),A=S.appsWellIds,_=S.appsRigIds,x=S.appsFracFleetIds,D=S.appsFracFleetToFetchWellsIds,W=S.appsPadIds,R=S.uniqueWellIds,T=S.uniqueRigIds,k=S.uniqueFFIds,r.next=7,Promise.all([F.includes(I.WELLS)&&f(R),F.includes(I.RIGS)&&m(T),F.includes(I.FRAC_FLEETS)&&b(k),F.includes(I.FRAC_FLEET_WELLS)&&y(D,n),F.includes(I.PAD_WELLS)&&h(W,n)]);case 7:return B=r.sent,C=e(B,5),q=C[0],G=C[1],z=C[2],H=C[3],J=C[4],K=(null==q?void 0:q.data)&&i(q.data.map((function(e){var r=s(e,"relationships.rig.data.id"),t=s(e,"relationships.program.data.id"),n=q.included.find((function(e){return"rig"===e.type&&e.id===r})),a=q.included.find((function(e){return"program"===e.type&&e.id===t}));return j(j({},e),{},{rig:j(j({},n),{},{program:a})})})),"id"),M=(null==G?void 0:G.data)&&i(G.data.map((function(e){var r=s(e,"relationships.active_well.data.id")||s(e,"relationships.last_active_well.data.id"),t=s(e,"relationships.program.data.id"),n=G.included.find((function(e){return"well"===e.type&&e.id===r})),a=G.included.find((function(e){return"program"===e.type&&e.id===t}));return j(j({},e),{},{well:n,program:a})})),"id"),N=z&&i(z,"id"),w({wellsById:K||{},rigsById:M||{},fracFleetsById:N||{}}),Q=c(A,v.current.wellsById),U=o(_,v.current.rigsById),V=p(x,v.current.fracFleetsById,H),X=d(W,J),r.abrupt("return",u(Q,U,V,X));case 23:case"end":return r.stop()}}),r)})))).apply(this,arguments)}export{S as getAppSettingsByDeprecatedAssetId,P as getAppsWithUnifiedSettings,L as getDeprecatedAssetIds,x as resolveAppsData};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/utils.js"],"names":[],"mappings":"AA0BA,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/utils.js"],"names":[],"mappings":"AA0BA,mDA0BC;AAED,kDA0BC;AAED,0EAWC;AA6ED,+FAqBC;AAED,6EAwBC;AAED,wEAwBC;AAlOM,yEAAkF;AAElF,2EAKJ;AA2FI,0EAUC;AAED,uEAQC;AAED,6FAiBC;AAED,2EAYC;AA6ED,6CASM;AAEN,qDAMJ;AAEI;;;;;;;;;;;;EAYL;AAEK,wDAOJ;AAEI;;;;;;;;;;EAiDN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import a from"jsona";import{get as i,isEmpty as s,keyBy as u,uniq as l}from"lodash";import{getWells as c,getRigs as o,getFracFleets as p,getFracFleetWells as f,getPadWells as d,getResolvedAssets as m}from"../../../../clients/jsonApi/index.js";import{DEV_CENTER_CLI_APP_ID as v}from"../../../../constants/devcenter.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{ASSET_TYPES as b}from"../../../../constants/assetTypes.js";import"../../../../utils/env.js";import"../../../GradientManager/configuration/constants.js";import{getAppSegment as g}from"../../../../utils/devcenter.js";function h(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var y=new a,_=function(r,e){return+i(r,["settings",e])},j=function(r,e){return l(r.map((function(r){var e=t(r,2);return e[0],e[1]})).filter((function(r){return Number.isFinite(r)&&!e.includes(String(r))})))};function x(r){return k.apply(this,arguments)}function k(){return(k=e(n.mark((function r(e){return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,c({ids:e,fields:["well.name","well.settings","well.company","well.asset_id","well.last_active_at","well.id","well.rig","rig.name","rig.asset_id","company.id","well.status"]});case 5:return r.abrupt("return",r.sent);case 8:return r.prev=8,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",null);case 12:case"end":return r.stop()}}),r,null,[[2,8]])})))).apply(this,arguments)}function O(r){return I.apply(this,arguments)}function I(){return(I=e(n.mark((function r(e){return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,o({ids:e,fields:["rig.name","rig.settings","rig.asset_id","rig.active_well","rig.last_active_well","well.name","well.settings","well.company","rig.program","well.asset_id","well.last_active_at","well.id","well.company.id"]});case 5:return r.abrupt("return",r.sent);case 8:return r.prev=8,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",null);case 12:case"end":return r.stop()}}),r,null,[[2,8]])})))).apply(this,arguments)}function P(r){return F.apply(this,arguments)}function F(){return(F=e(n.mark((function r(e){return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,m({assets:e});case 5:return r.abrupt("return",r.sent);case 8:return r.prev=8,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",null);case 12:case"end":return r.stop()}}),r,null,[[2,8]])})))).apply(this,arguments)}var B=function(r,e){return{well:r&&w(w({},r.attributes),{},{id:r.id,companyId:i(r,"relationships.company.data.id")}),rig:{name:i(e,"attributes.name"),id:i(e,"id"),asset_id:i(e,"attributes.asset_id")},program:{id:i(e,"program.id")||null,name:i(e,"program.attributes.name")||null}}},D=function(r,e){return e&&!s(e)?r.reduce((function(r,n){var a=t(n,2),i=a[0],s=a[1],u=e[s];return u?(r[i]=B(u,u.rig),r):r}),{}):{}},T=function(r,e){return e&&!s(e)?r.reduce((function(r,n){var a=t(n,2),i=a[0],s=a[1],u=e[s];return r[i]=B(null==u?void 0:u.well,u),r}),{}):{}},q=function(r,e,n){return e||n?r.reduce((function(r,a){var i,s,u=t(a,2),l=u[0],c=u[1],o=null==e?void 0:e[c],p=null==n?void 0:n[l];return r[l]={fracFleet:o,wells:p,program:{id:(null==o||null===(i=o.program)||void 0===i?void 0:i.id)||null,name:(null==o||null===(s=o.program)||void 0===s?void 0:s.name)||null}},r}),{}):{}},z=function(r,e){return r||e?r.reduce((function(r,n){var a=t(n,2),i=a[0];a[1];var s=null==e?void 0:e[i];return r[i]={wells:s},r}),{}):{}};function A(r){return E.apply(this,arguments)}function E(){return(E=e(n.mark((function r(e){var t;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,p({ids:e,fields:["frac_fleet.name","frac_fleet.pads","frac_fleet.program","frac_fleet.current_pad_id","frac_fleet.pad_frac_fleets","frac_fleet.pad_frac_fleet.frac_fleet_lines"]});case 5:return t=r.sent,r.abrupt("return",t?y.deserialize(t):[]);case 9:return r.prev=9,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",[]);case 13:case"end":return r.stop()}}),r,null,[[2,9]])})))).apply(this,arguments)}function S(r,e){return W.apply(this,arguments)}function W(){return W=e(n.mark((function r(a,s){var l,c,o;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return l=u(s,"id"),c=a.map(function(){var r=e(n.mark((function r(e){var a,s,u,c,o,p;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=t(e,2),s=a[0],u=a[1],c={fields:"all",frac_fleet_id:u},o=l[s],s===v?c.app_key=i(o,["app","app_key"]):c.app_id=i(o,["app","id"]),r.prev=4,r.next=7,f(c);case 7:return p=r.sent,r.abrupt("return",p?y.deserialize(p):[]);case 11:return r.prev=11,r.t0=r.catch(4),console.error(r.t0),r.abrupt("return",[]);case 15:case"end":return r.stop()}}),r,null,[[4,11]])})));return function(e){return r.apply(this,arguments)}}()),r.next=4,Promise.all(c);case 4:return o=r.sent,r.abrupt("return",o.reduce((function(r,e,t){return r[a[t][0]]=e,r}),{}));case 6:case"end":return r.stop()}}),r)}))),W.apply(this,arguments)}function G(r,e){return R.apply(this,arguments)}function R(){return R=e(n.mark((function r(a,s){var l,c,o;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return l=u(s,"id"),c=a.map(function(){var r=e(n.mark((function r(e){var a,s,u,c,o,p;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=t(e,2),s=a[0],u=a[1],c={fields:"all"},o=l[s],s===v?c.app_key=i(o,["app","app_key"]):c.app_id=i(o,["app","id"]),r.prev=4,r.next=7,d(u,c);case 7:return p=r.sent,r.abrupt("return",p?y.deserialize(p):[]);case 11:return r.prev=11,r.t0=r.catch(4),console.error(r.t0),r.abrupt("return",[]);case 15:case"end":return r.stop()}}),r,null,[[4,11]])})));return function(e){return r.apply(this,arguments)}}()),r.next=4,Promise.all(c);case 4:return o=r.sent,r.abrupt("return",o.reduce((function(r,e,t){return r[a[t][0]]=e,r}),{}));case 6:case"end":return r.stop()}}),r)}))),R.apply(this,arguments)}var H=function(r){return[r.id,_(r,b.well.id),_(r,b.rig.id),_(r,b.frac_fleet.id),_(r,b.pad.id),_(r,"deprecatedAssetId"),g(r)].join("-")},L=function(r){return Boolean(_(r,b.well.id)||_(r,b.rig.id)||_(r,b.frac_fleet.id)||_(r,b.pad.id))},M=function(r){return{id:r.id,rig:null,well:null,fracFleet:null,program:{id:null,name:null},wells:null,isLoading:!0,appHash:H(r)}},N=function(e){return e.reduce((function(e,t){return w(w({},e),{},r({},t.id,M(t)))}),{})},C=function(r,e){var t=[],n=[],a=[],i=[],s=[],u=[];r.forEach((function(r){var e=_(r,b.well.id),l=_(r,b.rig.id),c=_(r,b.frac_fleet.id),o=_(r,b.pad.id),p=r.id;u.push([p]),e?t.push([p,e]):l?n.push([p,l]):c&&(a.push([p,c]),o?s.push([p,o]):i.push([p,c]))}));var l=e.current,c=l.rigsById,o=l.wellsById,p=l.fracFleetsById,f=j(t,Object.keys(o)),d=j(n,Object.keys(c)),m=j(a,Object.keys(p));return{appsWellIds:t,appsRigIds:n,appsFracFleetIds:a,appsPadIds:s,appIds:u,appsFracFleetToFetchWellsIds:i,uniqueWellIds:f,uniqueRigIds:d,uniqueFFIds:m}};export{P as fetchAssetEntitiesByAssetIds,S as fetchFracFleetWells,A as fetchFracFleets,G as fetchPadWells,O as fetchRigs,x as fetchWells,_ as getAppAssetSpecificTypeId,H as getAppHash,q as getAppsDataByFFs,z as getAppsDataByPads,T as getAppsDataByRigs,D as getAppsDataByWells,M as getInitialAppData,N as getInitialAppsDataState,j as getUniqAssetIds,L as isAppWithSettings,C as prepareDataForResolver};
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import a from"jsona";import{get as i,isEmpty as s,keyBy as u,uniq as l}from"lodash";import{getWells as c,getRigs as o,getFracFleets as p,getFracFleetWells as f,getPadWells as d,getResolvedAssets as m}from"../../../../clients/jsonApi/index.js";import{DEV_CENTER_CLI_APP_ID as v}from"../../../../constants/devcenter.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{ASSET_TYPES as b}from"../../../../constants/assetTypes.js";import"../../../../utils/env.js";import"../../../GradientManager/configuration/constants.js";import{getAppSegment as g}from"../../../../utils/devcenter.js";function h(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var y=new a,_=function(r,e){return+i(r,["settings",e])},j=function(r,e){return l(r.map((function(r){var e=t(r,2);return e[0],e[1]})).filter((function(r){return Number.isFinite(r)&&!e.includes(String(r))})))};function x(r){return k.apply(this,arguments)}function k(){return(k=e(n.mark((function r(e){return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,c({ids:e,fields:["well.name","well.settings","well.company","well.asset_id","well.last_active_at","well.program","well.id","well.rig","rig.name","rig.asset_id","company.id","well.status"]});case 5:return r.abrupt("return",r.sent);case 8:return r.prev=8,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",null);case 12:case"end":return r.stop()}}),r,null,[[2,8]])})))).apply(this,arguments)}function O(r){return I.apply(this,arguments)}function I(){return(I=e(n.mark((function r(e){return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,o({ids:e,fields:["rig.name","rig.settings","rig.asset_id","rig.active_well","rig.last_active_well","well.name","well.settings","well.company","rig.program","well.asset_id","well.last_active_at","well.id","well.company.id"]});case 5:return r.abrupt("return",r.sent);case 8:return r.prev=8,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",null);case 12:case"end":return r.stop()}}),r,null,[[2,8]])})))).apply(this,arguments)}function P(r){return F.apply(this,arguments)}function F(){return(F=e(n.mark((function r(e){return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,m({assets:e});case 5:return r.abrupt("return",r.sent);case 8:return r.prev=8,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",null);case 12:case"end":return r.stop()}}),r,null,[[2,8]])})))).apply(this,arguments)}var B=function(r,e){return{well:r&&w(w({},r.attributes),{},{id:r.id,companyId:i(r,"relationships.company.data.id")}),rig:{name:i(e,"attributes.name"),id:i(e,"id"),asset_id:i(e,"attributes.asset_id")},program:{id:i(e,"program.id")||null,name:i(e,"program.attributes.name")||null}}},D=function(r,e){return e&&!s(e)?r.reduce((function(r,n){var a=t(n,2),i=a[0],s=a[1],u=e[s];return u?(r[i]=B(u,u.rig),r):r}),{}):{}},T=function(r,e){return e&&!s(e)?r.reduce((function(r,n){var a=t(n,2),i=a[0],s=a[1],u=e[s];return r[i]=B(null==u?void 0:u.well,u),r}),{}):{}},q=function(r,e,n){return e||n?r.reduce((function(r,a){var i,s,u=t(a,2),l=u[0],c=u[1],o=null==e?void 0:e[c],p=null==n?void 0:n[l];return r[l]={fracFleet:o,wells:p,program:{id:(null==o||null===(i=o.program)||void 0===i?void 0:i.id)||null,name:(null==o||null===(s=o.program)||void 0===s?void 0:s.name)||null}},r}),{}):{}},z=function(r,e){return r||e?r.reduce((function(r,n){var a=t(n,2),i=a[0];a[1];var s=null==e?void 0:e[i];return r[i]={wells:s},r}),{}):{}};function A(r){return E.apply(this,arguments)}function E(){return(E=e(n.mark((function r(e){var t;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,p({ids:e,fields:["frac_fleet.name","frac_fleet.pads","frac_fleet.program","frac_fleet.current_pad_id","frac_fleet.pad_frac_fleets","frac_fleet.pad_frac_fleet.frac_fleet_lines"]});case 5:return t=r.sent,r.abrupt("return",t?y.deserialize(t):[]);case 9:return r.prev=9,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",[]);case 13:case"end":return r.stop()}}),r,null,[[2,9]])})))).apply(this,arguments)}function S(r,e){return W.apply(this,arguments)}function W(){return W=e(n.mark((function r(a,s){var l,c,o;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return l=u(s,"id"),c=a.map(function(){var r=e(n.mark((function r(e){var a,s,u,c,o,p;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=t(e,2),s=a[0],u=a[1],c={fields:"all",frac_fleet_id:u},o=l[s],s===v?c.app_key=i(o,["app","app_key"]):c.app_id=i(o,["app","id"]),r.prev=4,r.next=7,f(c);case 7:return p=r.sent,r.abrupt("return",p?y.deserialize(p):[]);case 11:return r.prev=11,r.t0=r.catch(4),console.error(r.t0),r.abrupt("return",[]);case 15:case"end":return r.stop()}}),r,null,[[4,11]])})));return function(e){return r.apply(this,arguments)}}()),r.next=4,Promise.all(c);case 4:return o=r.sent,r.abrupt("return",o.reduce((function(r,e,t){return r[a[t][0]]=e,r}),{}));case 6:case"end":return r.stop()}}),r)}))),W.apply(this,arguments)}function G(r,e){return R.apply(this,arguments)}function R(){return R=e(n.mark((function r(a,s){var l,c,o;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return l=u(s,"id"),c=a.map(function(){var r=e(n.mark((function r(e){var a,s,u,c,o,p;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=t(e,2),s=a[0],u=a[1],c={fields:"all"},o=l[s],s===v?c.app_key=i(o,["app","app_key"]):c.app_id=i(o,["app","id"]),r.prev=4,r.next=7,d(u,c);case 7:return p=r.sent,r.abrupt("return",p?y.deserialize(p):[]);case 11:return r.prev=11,r.t0=r.catch(4),console.error(r.t0),r.abrupt("return",[]);case 15:case"end":return r.stop()}}),r,null,[[4,11]])})));return function(e){return r.apply(this,arguments)}}()),r.next=4,Promise.all(c);case 4:return o=r.sent,r.abrupt("return",o.reduce((function(r,e,t){return r[a[t][0]]=e,r}),{}));case 6:case"end":return r.stop()}}),r)}))),R.apply(this,arguments)}var H=function(r){return[r.id,_(r,b.well.id),_(r,b.rig.id),_(r,b.frac_fleet.id),_(r,b.pad.id),_(r,"deprecatedAssetId"),g(r)].join("-")},L=function(r){return Boolean(_(r,b.well.id)||_(r,b.rig.id)||_(r,b.frac_fleet.id)||_(r,b.pad.id))},M=function(r){return{id:r.id,rig:null,well:null,fracFleet:null,program:{id:null,name:null},wells:null,isLoading:!0,appHash:H(r)}},N=function(e){return e.reduce((function(e,t){return w(w({},e),{},r({},t.id,M(t)))}),{})},C=function(r,e){var t=[],n=[],a=[],i=[],s=[],u=[];r.forEach((function(r){var e=_(r,b.well.id),l=_(r,b.rig.id),c=_(r,b.frac_fleet.id),o=_(r,b.pad.id),p=r.id;u.push([p]),e?t.push([p,e]):l?n.push([p,l]):c&&(a.push([p,c]),o?s.push([p,o]):i.push([p,c]))}));var l=e.current,c=l.rigsById,o=l.wellsById,p=l.fracFleetsById,f=j(t,Object.keys(o)),d=j(n,Object.keys(c)),m=j(a,Object.keys(p));return{appsWellIds:t,appsRigIds:n,appsFracFleetIds:a,appsPadIds:s,appIds:u,appsFracFleetToFetchWellsIds:i,uniqueWellIds:f,uniqueRigIds:d,uniqueFFIds:m}};export{P as fetchAssetEntitiesByAssetIds,S as fetchFracFleetWells,A as fetchFracFleets,G as fetchPadWells,O as fetchRigs,x as fetchWells,_ as getAppAssetSpecificTypeId,H as getAppHash,q as getAppsDataByFFs,z as getAppsDataByPads,T as getAppsDataByRigs,D as getAppsDataByWells,M as getInitialAppData,N as getInitialAppsDataState,j as getUniqAssetIds,L as isAppWithSettings,C as prepareDataForResolver};
|
package/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import{withStyles as e,IconButton as t}from"@material-ui/core";import"react/jsx-runtime";function o(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var i={width:24,height:24};e({root:n(n({},i),{},{padding:"3px",marginRight:"10px",backgroundColor:"transparent!important"}),label:n(n({},i),{},{"& img":n({},i)})})(t);
|
package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/slicedToArray";import{useState as t,useRef as n,useEffect as i}from"react";import{func as s,shape as r,string as a,bool as p}from"prop-types";import{cloneDeep as c,debounce as l,noop as m,mapValues as u,keyBy as d}from"lodash";import{FormControl as g,InputLabel as f,Select as
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/slicedToArray";import{useState as t,useRef as n,useEffect as i}from"react";import{func as s,shape as r,string as a,bool as p}from"prop-types";import{cloneDeep as c,debounce as l,noop as m,mapValues as u,keyBy as d}from"lodash";import{FormControl as g,InputLabel as f,Select as j,MenuItem as v}from"@material-ui/core";import{ArrowForward as h}from"@material-ui/icons";import y from"../../../../EmptyState/EmptyState.js";import{getIsSustainabilityApp as C}from"../../utils.js";import A from"./components/RemoveAppButton.js";import{SettingsAccordion as S}from"./components/SettingsAccordion.js";import{useStyles as b}from"./styles.js";import"@babel/runtime/helpers/objectWithoutProperties";import"@material-ui/pickers";import"@date-io/moment";import"moment";import"../../../../../config/theme/index.js";import{jsxs as I,jsx as O,Fragment as D}from"react/jsx-runtime";import P from"../../../../../hocs/withAssetEditorLockHOC.js";import E from"../../../../ErrorBoundary/ErrorBoundary.js";import R from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import k 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 N from"../../../../Modal/Modal.js";import{DEV_CENTER_CLI_APP_ID as w}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENTS as x,SEGMENT_TO_ASSET_TYPE as B}from"../../../../../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{ASSET_TYPES as T}from"../../../../../constants/assetTypes.js";import"../../../../../utils/env.js";import"../../../../GradientManager/configuration/constants.js";import q from"../../../../AssetEditorV2/index.js";import M from"../../../../AppVersionsSelect/AppVersionsSelect.js";import V from"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import H from"../../../../ConfirmationDialog.js";import"../../../../../utils/index.js";import{AppIcon as L}from"../../../../AppIcon/AppIcon.js";import{getAppSegment as _}from"../../../../../utils/devcenter.js";import F from"../../../../../permissions/usePermissions.js";import{PERMISSIONS as U}from"../../../../../permissions/constants/index.js";import"../../../../../permissions/withPermissionsHOC.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../../clients/jsonApi/index.js";import"../../../../../permissions/ProvidePermissions.js";import"../../../../../permissions/PermissionsContext.js";import{showSuccessNotification as G}from"../../../../../utils/notificationToasts.js";function W(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),t.push.apply(t,n)}return t}function z(o){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){e(o,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(n,e))}))}return o}var K="DC_appSettings",Z=P(q);function J(s){var r,a,p,m,P,W,J,Q=s.AppSettingsComponent,X=s.app,Y=s.appData,$=s.appName,ee=s.currentUser,oe=s.isMultiRig,te=s.isSettingsDialogHidden,ne=s.layoutEnvironment,ie=s.onAppRemove,se=s.onCloneDashboard,re=s.onSettingsChange,ae=s.openIntercom,pe=s.rigId,ce=s.toggleAppSettingsDialog,le=(null==X||null===(r=X.segment)||void 0===r?void 0:r.length)>1,me=t(_(X)),ue=o(me,2),de=ue[0],ge=ue[1],fe=de===x.COMPLETION,je=B[de],ve=ne&&"asset"===ne.type,he=F([U.getCanReadAppPackages(X.app.id)]),ye=o(he,1)[0],Ce=ye.active,Ae=ye.loading,Se=t(!1),be=o(Se,2),Ie=be[0],Oe=be[1],De=t(!0),Pe=o(De,2),Ee=Pe[0],Re=Pe[1],ke=!(oe||ve&&fe),Ne=n(pe);i((function(){Ee||Re(!0)}),[Ee]);var we=t((function(){var e;return z(z({},c(X.settings)),{},{package:X.settings.package||(null==X||null===(e=X.package)||void 0===e?void 0:e.version)})})),xe=o(we,2),Be=xe[0],Te=xe[1],qe=C(null==X||null===(a=X.app)||void 0===a?void 0:a.id),Me=t(""),Ve=o(Me,2),He=Ve[0],Le=Ve[1],_e=n(null),Fe=n(null),Ue=Ae||Ce||Boolean(null===(p=_e.current)||void 0===p?void 0:p.clientHeight),Ge=Boolean(null===(m=Fe.current)||void 0===m?void 0:m.clientHeight),We=Ue&&Ge,ze=b({isCompletionApp:fe,isSustainabilityApp:qe,isAccordionRequired:We}),Ke=X.id===w,Ze=function(o,t){return Te((function(n){return z(z({},n),{},e({},o,t))}))},Je=function(e){return Te((function(o){return z(z({},o),e)}))},Qe=ve?Z:q;i((function(){l(Oe,200)(!0)}),[]);var Xe=I("div",{className:ze.modalTitleContainer,children:[O(L,{className:ze.appIcon,segment:[de],iconUrl:null==X||null===(P=X.app)||void 0===P||null===(W=P.icon)||void 0===W?void 0:W.url,height:48,width:48}),I("div",{children:[O("div",{children:"".concat($," Settings")}),I("div",{"data-testid":"".concat(K,"_appstoreLink"),className:ze.appStoreButton,onClick:function(){var e,o;return window.open((o=null==X||null===(e=X.app)||void 0===e?void 0:e.id,"/app-store/app/".concat(o)),"_top")},children:["Open in Appstore ",O(h,{className:ze.arrowIcon})]})]})]}),Ye=I("div",{className:ze.modalActions,children:[!te&&ie&&O(A,{appName:$,onAppRemove:ie}),I("div",{children:[O(k,{"data-testid":"".concat(K,"_cancel"),variation:"secondary",onClick:ce,children:"Cancel"}),te&&O(k,{variation:"primary",onClick:function(){return se()},children:"Copy Dashboard"}),!te&&O(k,{"data-testid":"".concat(K,"_save"),className:ze.saveButton,variation:"primary",onClick:function(){if(!Be.package&&!Ke)return Le("Please select app version");if(ke&&!ve){var e=null==je?void 0:je.primaryAsset.assetType.id,o=null==je?void 0:je.primaryAsset.assetType.label;if(e&&!Be[e])return Le("Please select ".concat(o))}return re(Be),G("Successfully saved"),ce()},children:"Save"})]})]});return O(N,{actions:Ye,closeIconClassName:ze.closeIcon,contentContainerClassName:ze.modalContainer,modalTitleClassName:ze.modalTitle,onClose:ce,open:!0,title:Xe,children:I(E,{ErrorView:R,openIntercom:ae,children:[O(H,{open:!!He,isShowCancel:!1,title:"Validation failed",text:He,handleOk:function(){return Le("")},classes:{confirmation:ze.confirmationText}}),te&&O(V,{}),!te&&Ie&&!Ge&&!Ue&&O(y,{image:y.IMAGES.UnderConstruction,title:"No app settings"}),!te&&I(D,{children:[I(S,{defaultExpanded:!0,className:ze.assetAccordion,accordionDetailsRef:_e,isAccordionRequired:We,summary:"Asset",children:[le&&I(g,{className:ze.segmentSelector,children:[O(f,{children:"Segment"}),O(j,{value:de,onChange:function(e){var o=e.target.value;Ne.current=null,Re(!1),ge(o),Te(z(z({package:Be.package,segment:o},u(d(T,"id"),(function(){return null}))),{},{assets:null}))},children:X.segment.map((function(e){return O(v,{className:ze.segmentMenuItem,value:e,children:e},e)}))})]}),ke&&Ee&&O(Qe,{appKey:Ke?null:X.app.app_key,appType:je,defaultValue:Ne.current,secondaryDefaultValue:+(null==Y||null===(J=Y.well)||void 0===J?void 0:J.id),isHiddenMultipleAssetsToggle:!0,isHiddenTitle:!0,isNullable:ve,label:"Asset",onSettingsChange:Je,settings:Be}),O(M,{className:ze.appVersionSelect,appId:X.app.id,value:Be.package,onChange:function(e){return Ze("package",e)}})]}),O(S,{accordionDetailsRef:Fe,className:ze.accordion,defaultExpanded:!0,isAccordionRequired:We,summary:"App Settings",children:Q&&O(Q,{app:X,appData:Y,settings:Be,onSettingChange:Ze,onSettingsChange:Je,layoutEnvironment:ne,currentUser:ee})})]})]})})}J.propTypes={AppSettingsComponent:s,app:r({}).isRequired,appData:r({}).isRequired,appName:a.isRequired,currentUser:r({}).isRequired,isMultiRig:p.isRequired,isSettingsDialogHidden:p,layoutEnvironment:r({}).isRequired,onAppRemove:s,onCloneDashboard:s,onSettingsChange:s.isRequired,toggleAppSettingsDialog:s.isRequired},J.defaultProps={AppSettingsComponent:function(){return null},isSettingsDialogHidden:!1,onAppRemove:void 0,onCloneDashboard:m};export{K as PAGE_NAME,J as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/slicedToArray";import{useState as n}from"react";import{makeStyles as t,Dialog as
|
|
1
|
+
import o from"@babel/runtime/helpers/slicedToArray";import{useState as n}from"react";import{makeStyles as t,Dialog as i,DialogTitle as s,DialogContent as c,DialogContentText as e,DialogActions as r}from"@material-ui/core";import m from"../../../../../Button/components/Button/index.js";import{jsxs as a,Fragment as p,jsx as l}from"react/jsx-runtime";import"moment-timezone";import"classnames";import{DeleteFourIcon as u}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";var d="DC_removeApp",j=t({removeButtonIcon:{marginRight:8},paperClassName:{width:416}});function v(t){var d=t.appName,v=t.onAppRemove,I=j(),C=n(!1),f=o(C,2),h=f[0],A=f[1],B=function(){return A(!1)};return a(p,{children:[a(m,{color:"primary","data-testid":"".concat("DC_removeApp","_button"),onClick:function(){return A(!0)},children:[l(u,{className:I.removeButtonIcon}),"REMOVE APP"]}),a(i,{open:h,onClose:B,PaperProps:{elevation:1,className:I.paperClassName},children:[a(s,{"data-testid":"".concat("DC_removeApp","_title"),children:["Remove ",d,"?"]}),l(c,{children:l(e,{children:"App and all related information will be removed immediately. App can be added again from AppStore."})}),a(r,{children:[l(m,{color:"primary","data-testid":"".concat("DC_removeApp","_cancel"),onClick:B,children:"Cancel"}),l(m,{"data-testid":"".concat("DC_removeApp","_confirm"),onClick:function(){return v()},variation:"primary",children:"Remove"})]})]})]})}export{d as PAGE_NAME,v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyles as t}from"@material-ui/core";var i=t((function(t){return{modalTitle:{background:function(t){var i=t.isCompletionApp;return t.isSustainabilityApp?"linear-gradient(90deg, #1D5450 0%, #2AAC8A 100%)":i?"linear-gradient(270deg, #3F33A9 0%, #DA4583 98.46%)":"linear-gradient(90deg, #05B58B 1.96%, #3A83D3 101.28%)"},paddingBottom:24},modalTitleContainer:{display:"flex",alignItems:"center"},appStoreButton:{display:"flex",alignItems:"center",fontSize:13,cursor:"pointer",width:"fit-content","&:hover":{textDecoration:"underline"}},arrowIcon:{width:16,height:16,marginLeft:4},closeIcon:{color:t.palette.primary.contrastText,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.16) !important"}},appVersionSelect:{marginTop:16,width:"100%"},modalActions:{width:"100%",display:"flex",justifyContent:"space-between"},saveButton:{marginLeft:16},appIcon:{marginRight:12},hiddenAppSettings:{position:"fixed",left:"-10000px",top:"-10000px"},modalContainer:{width:600,maxWidth:600},accordion:{marginTop:function(t){return t.isAccordionRequired?"24px !important":"0px !important"}},assetAccordion:{marginTop:function(t){return t.isAccordionRequired?"8px !important":"-24px !important"}},segmentSelector:{width:"100%",margin:"8px 0 12px 0",textTransform:"capitalize"},segmentMenuItem:{textTransform:"capitalize"},confirmationDialog:{minWidth:300},confirmationText:{fontSize:16}}}));export{i as useStyles};
|
|
1
|
+
import{makeStyles as t}from"@material-ui/core";var i=t((function(t){return{modalTitle:{background:function(t){var i=t.isCompletionApp;return t.isSustainabilityApp?"linear-gradient(90deg, #1D5450 0%, #2AAC8A 100%)":i?"linear-gradient(270deg, #3F33A9 0%, #DA4583 98.46%)":"linear-gradient(90deg, #05B58B 1.96%, #3A83D3 101.28%)"},paddingBottom:24},modalTitleContainer:{display:"flex",alignItems:"center"},appStoreButton:{display:"flex",alignItems:"center",fontSize:13,cursor:"pointer",width:"fit-content","&:hover":{textDecoration:"underline"}},arrowIcon:{width:16,height:16,marginLeft:4},closeIcon:{color:t.palette.primary.contrastText,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.16) !important"}},appVersionSelect:{marginTop:16,width:"100% !important"},modalActions:{width:"100%",display:"flex",justifyContent:"space-between"},saveButton:{marginLeft:16},appIcon:{marginRight:12},hiddenAppSettings:{position:"fixed",left:"-10000px",top:"-10000px"},modalContainer:{width:600,maxWidth:600},accordion:{marginTop:function(t){return t.isAccordionRequired?"24px !important":"0px !important"}},assetAccordion:{marginTop:function(t){return t.isAccordionRequired?"8px !important":"-24px !important"}},segmentSelector:{width:"100%",margin:"8px 0 12px 0",textTransform:"capitalize"},segmentMenuItem:{textTransform:"capitalize"},confirmationDialog:{minWidth:300},confirmationText:{fontSize:16}}}));export{i as useStyles};
|
package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/regenerator";import{useState as e}from"react";import i from"prop-types";import{MenuItem as
|
|
1
|
+
import o from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/regenerator";import{useState as e}from"react";import i from"prop-types";import{MenuItem as s,Icon as r,ListItemText as c}from"@material-ui/core";import a from"./NonPriorityMenus.css.js";import u from"../../../../IconButton/index.js";import m from"../../../../IconMenu/index.js";import{HamburgerButtonIcon as l,FullScreenOneIcon as p,SettingTwoIcon as d}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 f,jsx as I}from"react/jsx-runtime";var h="DevCenter_AppPriorityMenu",g=function(i){var g,j,x,C=i.toggleAppSettingsDialog,M=i.devCenterRouter,b=i.isMaximized,k=i.setIsMaximized,y=i.menuItems,v=i.isMobileView,w=i.setIsFullscreenModalMode,A=e(!1),F=n(A,2),O=F[0],P=F[1],R=e(null),S=n(R,2),q=S[0],z=S[1],E=(g=o(t.mark((function o(){var n;return t.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!(n=!O)){o.next=7;break}return o.next=4,w(n);case 4:P(n),o.next=9;break;case 7:P(n),w(n);case 9:case"end":return o.stop()}}),o)}))),function(){return g.apply(this,arguments)}),N=(j=o(t.mark((function o(n){return t.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,w(!0);case 2:null==n||n(!0);case 3:case"end":return o.stop()}}),o)}))),function(o){return j.apply(this,arguments)});return f(m,{"data-testid":"".concat(h,"_menu"),IconElement:I(l,{}),className:a.menuIcon,IconButtonComponent:u,iconButtonProps:{tooltipProps:{title:!v&&"Menu",placement:"top"},onClick:(x=o(t.mark((function o(n){return t.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return z(n.currentTarget),o.next=3,w(!0);case 3:P(!0);case 4:case"end":return o.stop()}}),o)}))),function(o){return x.apply(this,arguments)})},classes:{iconButton:a.iconButton},menuProps:{anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},getContentAnchorEl:null,onClick:E,onClose:E,open:O,anchorEl:q},children:[y.map((function(o){return f(s,{className:a.menuItem,"data-testid":"".concat(h,"_").concat(o.title),onClick:function(){N(o.onClick),o.to&&M.push(o.to)},component:"li",to:o.to,children:["string"==typeof o.icon?I(r,{className:a.muiIcon,children:o.icon}):o.icon,I(c,{primary:o.title})]},o.title)})),!b&&f(s,{className:a.menuItem,"data-testid":"".concat(h,"_fullScreenMenuItem"),onClick:function(){return N(k)},children:[I(p,{}),"Full Screen"]}),f(s,{className:a.menuItem,"data-testid":"".concat(h,"_settings"),onClick:function(){return N(C)},children:[I(d,{}),"Settings"]})]})};g.propTypes={toggleAppSettingsDialog:i.func.isRequired,isMaximized:i.bool.isRequired,isMobileView:i.bool,setIsMaximized:i.func.isRequired,devCenterRouter:i.shape({push:i.func}).isRequired,menuItems:i.arrayOf(i.shape({onClick:i.func,to:i.oneOfType([i.string,i.shape({})]),icon:i.string,title:i.string}))},g.defaultProps={menuItems:[],isMobileView:!1};export{g as default};
|