@corva/ui 0.75.0-0 → 0.75.0-2
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/cjs-bundle/components/AddComment/Popover.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/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/ChartButton.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/CollapsableSidebar.js +1 -1
- package/cjs-bundle/components/ContextMenuItem/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/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.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/IconButton/index.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/Notifications/Toast.styles.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/components/Filter/Filter.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/Toolbar/Toolbar.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -1
- package/cjs-bundle/components/Select/index.js +1 -1
- package/cjs-bundle/components/TextLink/index.js +1 -1
- package/cjs-bundle/config/theme/accordionOverrides.js +1 -1
- package/cjs-bundle/icons/IconParkProvider.js +1 -1
- package/cjs-bundle/icons/index.js +1 -1
- package/cjs-bundle/utils/metrics/metricsConfig.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/BICOffsetPickerDialog/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/ChartButton.d.ts.map +1 -1
- package/components/Chart/components/ChartButton.js +1 -1
- package/components/Chart/components/buttons/ChartTypeButton.d.ts.map +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.d.ts.map +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/CollapsableSidebar.js +1 -1
- package/components/ContextMenuItem/index.d.ts +5 -1
- package/components/ContextMenuItem/index.d.ts.map +1 -1
- package/components/ContextMenuItem/index.js +1 -1
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.d.ts.map +1 -1
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.d.ts.map +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.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/IconButton/index.d.ts +9 -0
- package/components/IconButton/index.d.ts.map +1 -1
- package/components/IconButton/index.js +1 -1
- package/components/Modal/CorvaModal.d.ts.map +1 -1
- package/components/Modal/CorvaModal.js +1 -1
- package/components/Notifications/Toast.d.ts.map +1 -1
- package/components/Notifications/Toast.js +1 -1
- package/components/Notifications/Toast.styles.d.ts.map +1 -1
- package/components/Notifications/Toast.styles.js +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/components/Filter/Filter.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/Toolbar/Toolbar.js +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -1
- package/components/Select/index.d.ts.map +1 -1
- package/components/Select/index.js +1 -1
- package/components/TextLink/index.js +1 -1
- package/config/theme/accordionOverrides.js +1 -1
- package/icons/IconParkProvider.js +1 -1
- package/icons/index.d.ts +26 -0
- package/icons/index.d.ts.map +1 -1
- package/icons/index.js +1 -1
- package/package.json +1 -1
- package/utils/metrics/metricsConfig.d.ts +60 -0
- package/utils/metrics/metricsConfig.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{memo as e,useMemo as t}from"react";import{isEmpty as o}from"lodash";import r from"prop-types";import{Grid as i}from"@material-ui/core";import{isMobileDetected as n}from"../../../../../utils/mobileDetect.js";import{jsxs as s,jsx as p}from"react/jsx-runtime";import"../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"classnames";import"@material-ui/icons";import"../../../../IconButton/index.js";import"../../../../Modal/CorvaModal.css.js";import"uuid";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../AppIcon/AppIcon.js";import"../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"../../../../Icons/AnnotationIcon.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import{OD_ID_DEP_LIST as m,COMPONENT_GRADES as a,COMPONENT_CLASSES as l,COMPONENT_MATERIALS as d}from"../../../../../constants/casing.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/appPackages.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../../utils/env.js";import"../../../../GradientManager/configuration/constants.js";import"../../../../../utils/index.js";import"jsona";import"../../../../StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../../../clients/api/apiCore.js";import"../../../../../clients/constants.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../../DevCenter/AppContext.js";import"../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"rollbar";import"@rollbar/react";import"../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../DevCenter/SideBar/SideBar.js";import"../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../AssetEditor/index.js";import"../../../../AssetEditorV2/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Typography.js";import"../../../../RealTimeValuesSidebar/RealTimeSidebar.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../../EmptyState/EmptyState.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../CopyToClipboard/CopyToClipboard.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../Chart/components/ChartButton.js";import"../../../../Chart/components/ChartButtons.js";import"../../../../Chart/components/ChartWrapper.js";import"../../../../Chart/components/AxisDropdown.js";import"../../../../Chart/components/ChartSelect.js";import"../../../../Chart/components/buttons/DragToZoomButton.js";import"../../../../Chart/components/buttons/ZoomInButton.js";import"../../../../Chart/components/buttons/ZoomOutButton.js";import"../../../../Chart/components/buttons/PanButton.js";import"../../../../Chart/components/buttons/ResetZoomButton.js";import"../../../../Chart/components/buttons/HideAxesButton.js";import"../../../../Chart/components/buttons/ChartTypeButton.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.js";import"../../../../MiddleTruncatedText/MiddleTruncatedText.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../AdvancedSlider/AdvancedSlider.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/EmptyView.js";import"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../Button/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Select/SelectFilterBy.js";import"../../../../CustomSelect/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../../GradientManager/GradientSelect.styles.js";import"../../../../GradientPicker/GradientPicker.js";import"../../../../GradientManager/GradientManager.styles.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Drillstring/BHATileIcon.js";import"../../../../Drillstring/BHATile/BHATile.js";import"../../../../Drillstring/BHAList/BHAList.js";import"../../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../CasingTable/index.js";import c from"../../../CasingComponentIcon.js";import"../../../CasingTileIcon.js";import"../../CasingTableV2.js";import"../../../CasingTile/CasingTile.js";import"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../OffsetWellPickerV3/index.js";import"../../../../OffsetWellChips/Chip.js";import"../../../../OffsetWellChips/ChipsContainer.js";import"../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../../../../Notifications/Toast.js";import"../../../../Toaster/Toaster.js";import"../../../../ConfirmationDialog.js";import"../../../../TextLink/index.js";import"../../../../Avatar/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../Template/TemplateSharingDialog/index.js";import"../../../../MenuItem/index.js";import"../../../../MiddleTruncate/MiddleTruncate.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../../PadOffsetsPicker/StagesSelector.js";import"../../../../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../Table/TableContainer/TableContainer.js";import"../../../../Table/TableCell/TableCell.js";import"../../../../Tooltip/ScrollableTooltip.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";import"../../../../FilesLoader/Icons/FileIcon.js";import"../../../../SearchInput/index.js";import"../../../../FeedItem/FeedItem.js";import"../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../../PostInput/PostInput.js";import"../../../../KeyboardDateTimePicker.js";import"../../../../AddComment/Popover.js";import"../../../../AddComment/Popup.js";import"../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../StageDesignVActual/ComparisonRow.js";import"../../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../../EmbeddedApp/EmbeddedApp.js";import"../../../../Autocomplete/Autocomplete.js";import"../../../../DocumentViewer/DocumentViewer.js";import"../../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../../Search/Search.js";import"../../../../Search/components/Listbox.js";import"../../../../Search/components/Paper.js";import"../../../../Search/components/RecentSearches.js";import"../../../../Search/components/InputAdornmentLeft.js";import"../../../../Search/components/Groups.js";import"../../../../StatusBadge/index.js";import"../../../../Attachment/index.js";import"../../../../EmojiIconButton.js";import"../../../../FileUploadIconButton.js";import"../../../../FilePreview/index.js";import"../../../../FailedFileUploading.js";import"../../../../UserMention/index.js";import"../../../../CommentsInfo/index.js";import"../../../../CommentInput/index.js";import"../../../../Comment/index.js";import"../../../../CommentLoader.js";import"../../../../AssetNameLabel/AssetStatusBadge.js";import"../../../../AssetEditorV2/components/PrimaryAssetSelect.js";import"../../../../AssetEditorV2/components/SecondaryAssetSelect.js";import"../../../../AssetEditorV2/components/SelectItem.js";import"../../../../AssetEditorV2/components/MultipleAssetsToggle.js";import"../../../../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../../../../EChartsWrapper/EChartsWrapper.js";import{CancelButton as j}from"../../../../Drillstring/BHAComponentsTable/components/shared/CancelButton.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js";import{InputText as C}from"../../../../Drillstring/BHAComponentsTable/components/shared/InputText.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/MoreButton.js";import{SaveButton as u}from"../../../../Drillstring/BHAComponentsTable/components/shared/SaveButton.js";import{SelectField as g}from"../../../../Drillstring/BHAComponentsTable/components/shared/SelectField.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/StaticField.js";import{SharedEditorElements as A}from"../../../../Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js";import h from"../../../../Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js";import{useStyles as b}from"../../../../Drillstring/BHAComponentsTable/components/sharedStyles.js";import{OD_ID_DEP_COLUMNS as D,CONTAINER_XS as v}from"../constants.js";function S(e){var r=e.component,S=e.error,f=e.onChange,T=e.onCancel,x=e.onSave,P=e.onUseSuggestion,y=e.columns,B=b({isMobile:n}),I=n?v/2:v/y,E=function(e){return S&&S[e]},_=t((function(){var e=m;return r.outer_diameter?e.filter((function(e){return e.outer_diameter===parseFloat(r.outer_diameter)})):[]}),[r.outer_diameter]);return s(i,{container:!0,spacing:0,className:B.editorContainer,children:[!n&&p(i,{item:!0,className:B.editorComponentSize,children:p(c,{component:r})}),p(i,{item:!0,className:B.eidtorContentContainer,children:s(i,{container:!0,spacing:2,children:[p(A,{component:r,getError:E,onChange:f,isCasing:!0}),_.length>0&&p(h,{data:_,allData:m,columns:D,displayKeys:["outer_diameter","inner_diameter"],descriptionKeys:["outer_diameter","inner_diameter","linear_weight","number_of_joints","component_length"],onSelect:P,isCasing:!0}),p(C,{type:"name",label:"Name",value:r.name,error:E("name"),xs:I,onChangeField:f}),p(C,{type:"number_of_joints",label:"# of Joints",value:r.number_of_joints,error:E("number_of_joints"),xs:I,onChangeField:f}),p(C,{type:"component_length",label:"Component Length",unit:"length",value:r.component_length,error:E("component_length"),xs:I,onChangeField:f}),p(C,{type:"weight",label:"T.Weight",unit:"mass",value:r.weight,error:E("weight"),disabled:!0,xs:I,onChangeField:f}),p(g,{type:"grade",options:a,label:"Grade",value:r.grade,error:E("grade"),xs:I,onChangeField:f}),p(C,{type:"outer_diameter_tooljoint",label:"TJ OD",unit:"shortLength",value:r.outer_diameter_tooljoint,error:E("outer_diameter_tooljoint"),xs:I,onChangeField:f}),p(C,{type:"inner_diameter_tooljoint",label:"TJ ID",unit:"shortLength",value:r.inner_diameter_tooljoint,error:E("inner_diameter_tooljoint"),xs:I,onChangeField:f}),p(C,{type:"length_tooljoint",label:"TJ Length Per Joint",unit:"length",value:r.length_tooljoint,error:E("length_tooljoint"),xs:I,onChangeField:f}),p(C,{type:"connection_type",label:"Connection Type",value:r.connection_type,error:E("connection_type"),xs:I,onChangeField:f}),p(g,{type:"class",options:l,label:"Class",value:r.class,error:E("class"),xs:I,onChangeField:f}),p(g,{type:"material",options:d,label:"Material",value:r.material,error:E("material"),xs:I,onChangeField:f})]})}),!n&&s(i,{item:!0,className:B.eidtorActionGroup,children:[p(j,{handleCancel:T}),p(u,{handleSave:x,disabled:!o(S)})]})]})}S.propTypes={component:r.shape({outer_diameter:r.number,component_length:r.number,name:r.string,number_of_joints:r.number,weight:r.number,connection_type:r.string,grade:r.string,class:r.string,material:r.string,outer_diameter_tooljoint:r.number,inner_diameter_tooljoint:r.number,length_tooljoint:r.number}).isRequired,error:r.shape({}),onChange:r.func.isRequired,onCancel:r.func.isRequired,onSave:r.func.isRequired,onUseSuggestion:r.func.isRequired,columns:r.number.isRequired},S.defaultProps={error:null};var f=e(S);export{f as default};
|
|
1
|
+
import{memo as e,useMemo as t}from"react";import{isEmpty as o}from"lodash";import r from"prop-types";import{Grid as i}from"@material-ui/core";import{isMobileDetected as n}from"../../../../../utils/mobileDetect.js";import{jsxs as s,jsx as p}from"react/jsx-runtime";import"../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"classnames";import"../../../../../icons/WithCustomSize.js";import"../../../../../icons/IconParkProvider.js";import"../../../../IconButton/index.js";import"../../../../Modal/CorvaModal.css.js";import"uuid";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../../AppIcon/AppIcon.js";import"../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@material-ui/icons";import"../../../../Icons/AnnotationIcon.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../../../clients/jsonApi/index.js";import"../../../../../clients/subscriptions.js";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import{OD_ID_DEP_LIST as m,COMPONENT_GRADES as a,COMPONENT_CLASSES as l,COMPONENT_MATERIALS as d}from"../../../../../constants/casing.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/appPackages.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../../utils/env.js";import"../../../../GradientManager/configuration/constants.js";import"../../../../../utils/index.js";import"jsona";import"../../../../StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../../../clients/api/apiCore.js";import"../../../../../clients/constants.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../../DevCenter/AppContext.js";import"../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"rollbar";import"@rollbar/react";import"../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../DevCenter/SideBar/SideBar.js";import"../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../AssetEditor/index.js";import"../../../../AssetEditorV2/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Typography.js";import"../../../../RealTimeValuesSidebar/RealTimeSidebar.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../../EmptyState/EmptyState.js";import"../../../../ParameterCharts/ParameterCharts.js";import"../../../../ParameterCharts/AddEditTrack.js";import"../../../../ChartActionsList/ChartActionsList.js";import"../../../../CopyToClipboard/CopyToClipboard.js";import"../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../AssetEditor/SingleAssetEditor.js";import"../../../../SettingEditors/ColorEditor/index.js";import"../../../../SettingEditors/DropdownEditor/index.js";import"../../../../SettingEditors/RadioEditor/index.js";import"../../../../SwitchControl/index.js";import"../../../../ColorPicker/ColorPicker.js";import"../../../../Chart/components/ChartButton.js";import"../../../../Chart/components/ChartButtons.js";import"../../../../Chart/components/ChartWrapper.js";import"../../../../Chart/components/AxisDropdown.js";import"../../../../Chart/components/ChartSelect.js";import"../../../../Chart/components/buttons/DragToZoomButton.js";import"../../../../Chart/components/buttons/ZoomInButton.js";import"../../../../Chart/components/buttons/ZoomOutButton.js";import"../../../../Chart/components/buttons/PanButton.js";import"../../../../Chart/components/buttons/ResetZoomButton.js";import"../../../../Chart/components/buttons/HideAxesButton.js";import"../../../../Chart/components/buttons/ChartTypeButton.js";import"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.js";import"../../../../MiddleTruncatedText/MiddleTruncatedText.js";import"../../../../RangeSlider/RangeSlider.js";import"../../../../AdvancedSlider/AdvancedSlider.js";import"../../../../Breadcrumbs/index.js";import"../../../../VirtualizedTable/index.js";import"../../../../EmptyView/EmptyView.js";import"../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../Button/index.js";import"../../../../ContextMenuItem/index.js";import"../../../../FolderMenuItem/index.js";import"../../../../EditableItem/EditableItem/index.js";import"../../../../EditableItem/EditableItemWithBadge/index.js";import"../../../../Checkbox/index.js";import"../../../../FolderMenuItemWithLinks/index.js";import"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.js";import"../../../../Select/SelectFilterBy.js";import"../../../../CustomSelect/index.js";import"../../../../Tabs/Tabs.js";import"../../../../Tabs/Tab.js";import"../../../../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../../GradientManager/GradientSelect.styles.js";import"../../../../GradientPicker/GradientPicker.js";import"../../../../GradientManager/GradientManager.styles.js";import"../../../../Drillstring/BHASchematic.js";import"../../../../Drillstring/BHATable/index.js";import"../../../../Drillstring/BHAComponentIcon.js";import"../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../Drillstring/BHATileIcon.js";import"../../../../Drillstring/BHATile/BHATile.js";import"../../../../Drillstring/BHAList/BHAList.js";import"../../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../CasingTable/index.js";import c from"../../../CasingComponentIcon.js";import"../../../CasingTileIcon.js";import"../../CasingTableV2.js";import"../../../CasingTile/CasingTile.js";import"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../WellSummary/WellSummaryItemValue.js";import"../../../../WellSummary/ActivitySummaryChart.js";import"../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../BICOffsetPickerDialog/index.js";import"../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../OffsetWellPickerV3/index.js";import"../../../../OffsetWellChips/Chip.js";import"../../../../OffsetWellChips/ChipsContainer.js";import"../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../../../../Notifications/Toast.js";import"../../../../Toaster/Toaster.js";import"../../../../ConfirmationDialog.js";import"../../../../TextLink/index.js";import"../../../../Avatar/index.js";import"../../../../Template/TemplatePopover/index.js";import"../../../../Template/TemplateSharingDialog/index.js";import"../../../../MenuItem/index.js";import"../../../../MiddleTruncate/MiddleTruncate.js";import"../../../../PadModeSelect/PadModeSelect.js";import"../../../../PinnableFilters/PinnableFilters.js";import"../../../../HeaderLayout/HeaderLayout.js";import"../../../../PadOffsetsPicker/PadOffsetsPicker.js";import"../../../../PadOffsetsPicker/OffsetAssetChip.js";import"../../../../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../../PadOffsetsPicker/StagesSelector.js";import"../../../../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../../../../Table/TableToolbar/TableToolbar.js";import"../../../../Table/TableContainer/TableContainer.js";import"../../../../Table/TableCell/TableCell.js";import"../../../../Tooltip/ScrollableTooltip.js";import"../../../../PriceInput/PriceInput.js";import"../../../../LabelsCounter/LabelsCounter.js";import"../../../../Stepper/Step.js";import"../../../../Stepper/StepsWrapper.js";import"../../../../Stepper/Stepper.js";import"../../../../Comment/CommentIcon/index.js";import"../../../../FilesLoader/FilesLoader.js";import"../../../../FilesLoader/Icons/FileIcon.js";import"../../../../SearchInput/index.js";import"../../../../FeedItem/FeedItem.js";import"../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../../PostInput/PostInput.js";import"../../../../KeyboardDateTimePicker.js";import"../../../../AddComment/Popover.js";import"../../../../AddComment/Popup.js";import"../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../StageDesignVActual/ComparisonRow.js";import"../../../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../../../EmbeddedApp/EmbeddedApp.js";import"../../../../Autocomplete/Autocomplete.js";import"../../../../DocumentViewer/DocumentViewer.js";import"../../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../../Search/Search.js";import"../../../../Search/components/Listbox.js";import"../../../../Search/components/Paper.js";import"../../../../Search/components/RecentSearches.js";import"../../../../Search/components/InputAdornmentLeft.js";import"../../../../Search/components/Groups.js";import"../../../../StatusBadge/index.js";import"../../../../Attachment/index.js";import"../../../../EmojiIconButton.js";import"../../../../FileUploadIconButton.js";import"../../../../FilePreview/index.js";import"../../../../FailedFileUploading.js";import"../../../../UserMention/index.js";import"../../../../CommentsInfo/index.js";import"../../../../CommentInput/index.js";import"../../../../Comment/index.js";import"../../../../CommentLoader.js";import"../../../../AssetNameLabel/AssetStatusBadge.js";import"../../../../AssetEditorV2/components/PrimaryAssetSelect.js";import"../../../../AssetEditorV2/components/SecondaryAssetSelect.js";import"../../../../AssetEditorV2/components/SelectItem.js";import"../../../../AssetEditorV2/components/MultipleAssetsToggle.js";import"../../../../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../../../../EChartsWrapper/EChartsWrapper.js";import{CancelButton as j}from"../../../../Drillstring/BHAComponentsTable/components/shared/CancelButton.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js";import{InputText as C}from"../../../../Drillstring/BHAComponentsTable/components/shared/InputText.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/MoreButton.js";import{SaveButton as u}from"../../../../Drillstring/BHAComponentsTable/components/shared/SaveButton.js";import{SelectField as g}from"../../../../Drillstring/BHAComponentsTable/components/shared/SelectField.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/StaticField.js";import{SharedEditorElements as A}from"../../../../Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js";import"../../../../Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js";import h from"../../../../Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js";import{useStyles as b}from"../../../../Drillstring/BHAComponentsTable/components/sharedStyles.js";import{OD_ID_DEP_COLUMNS as D,CONTAINER_XS as v}from"../constants.js";function S(e){var r=e.component,S=e.error,f=e.onChange,T=e.onCancel,x=e.onSave,P=e.onUseSuggestion,y=e.columns,B=b({isMobile:n}),I=n?v/2:v/y,E=function(e){return S&&S[e]},_=t((function(){var e=m;return r.outer_diameter?e.filter((function(e){return e.outer_diameter===parseFloat(r.outer_diameter)})):[]}),[r.outer_diameter]);return s(i,{container:!0,spacing:0,className:B.editorContainer,children:[!n&&p(i,{item:!0,className:B.editorComponentSize,children:p(c,{component:r})}),p(i,{item:!0,className:B.eidtorContentContainer,children:s(i,{container:!0,spacing:2,children:[p(A,{component:r,getError:E,onChange:f,isCasing:!0}),_.length>0&&p(h,{data:_,allData:m,columns:D,displayKeys:["outer_diameter","inner_diameter"],descriptionKeys:["outer_diameter","inner_diameter","linear_weight","number_of_joints","component_length"],onSelect:P,isCasing:!0}),p(C,{type:"name",label:"Name",value:r.name,error:E("name"),xs:I,onChangeField:f}),p(C,{type:"number_of_joints",label:"# of Joints",value:r.number_of_joints,error:E("number_of_joints"),xs:I,onChangeField:f}),p(C,{type:"component_length",label:"Component Length",unit:"length",value:r.component_length,error:E("component_length"),xs:I,onChangeField:f}),p(C,{type:"weight",label:"T.Weight",unit:"mass",value:r.weight,error:E("weight"),disabled:!0,xs:I,onChangeField:f}),p(g,{type:"grade",options:a,label:"Grade",value:r.grade,error:E("grade"),xs:I,onChangeField:f}),p(C,{type:"outer_diameter_tooljoint",label:"TJ OD",unit:"shortLength",value:r.outer_diameter_tooljoint,error:E("outer_diameter_tooljoint"),xs:I,onChangeField:f}),p(C,{type:"inner_diameter_tooljoint",label:"TJ ID",unit:"shortLength",value:r.inner_diameter_tooljoint,error:E("inner_diameter_tooljoint"),xs:I,onChangeField:f}),p(C,{type:"length_tooljoint",label:"TJ Length Per Joint",unit:"length",value:r.length_tooljoint,error:E("length_tooljoint"),xs:I,onChangeField:f}),p(C,{type:"connection_type",label:"Connection Type",value:r.connection_type,error:E("connection_type"),xs:I,onChangeField:f}),p(g,{type:"class",options:l,label:"Class",value:r.class,error:E("class"),xs:I,onChangeField:f}),p(g,{type:"material",options:d,label:"Material",value:r.material,error:E("material"),xs:I,onChangeField:f})]})}),!n&&s(i,{item:!0,className:B.eidtorActionGroup,children:[p(j,{handleCancel:T}),p(u,{handleSave:x,disabled:!o(S)})]})]})}S.propTypes={component:r.shape({outer_diameter:r.number,component_length:r.number,name:r.string,number_of_joints:r.number,weight:r.number,connection_type:r.string,grade:r.string,class:r.string,material:r.string,outer_diameter_tooljoint:r.number,inner_diameter_tooljoint:r.number,length_tooljoint:r.number}).isRequired,error:r.shape({}),onChange:r.func.isRequired,onCancel:r.func.isRequired,onSave:r.func.isRequired,onUseSuggestion:r.func.isRequired,columns:r.number.isRequired},S.defaultProps={error:null};var f=e(S);export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/ChartButton.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ChartButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/ChartButton.js"],"names":[],"mappings":";AAyDA;;;;;;;;;gBAiCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/objectWithoutProperties";import t from"classnames";import{makeStyles as o,Tooltip as i}from"@material-ui/core";import{jsx as n}from"react/jsx-runtime";var c=["onClick","className","children","tooltipProps","isActive","isHidden","disabled"];function a(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 l(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var s=o((function(r){var e=r.palette;return{button:{display:"flex",justifyContent:"center",alignItems:"center",width:30,height:30,borderRadius:"4px",color:e.primary.text6,background:e.background.b6,marginBottom:"4px","&:hover":{color:e.primary.contrastText,background:e.background.b7,cursor:"pointer"},"&:active":{background:e.background.b8,"& .MuiSvgIcon-root":{color:e.primary.main}},"& .MuiSvgIcon-root":{width:16,height:16},"& .MuiSvgIcon-root:active":{color:e.primary.main}},isActive:{color:e.primary.main,"&:hover":{color:e.primary.main}},isHidden:{visibility:"hidden"},disabled:{cursor:"not-allowed !important","&:hover":{background:e.background.b6},"& .MuiSvgIcon-root":{color:"".concat(e.primary.text6," !important")}}}})),p=function(o){var a,p=o.onClick,d=o.className,u=o.children,b=o.tooltipProps,m=o.isActive,f=o.isHidden,g=o.disabled,
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/objectWithoutProperties";import t from"classnames";import{makeStyles as o,Tooltip as i}from"@material-ui/core";import{jsx as n}from"react/jsx-runtime";var c=["onClick","className","children","tooltipProps","isActive","isHidden","disabled"];function a(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 l(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var s=o((function(r){var e=r.palette;return{button:{display:"flex",justifyContent:"center",alignItems:"center",width:30,height:30,borderRadius:"4px",color:e.primary.text6,background:e.background.b6,marginBottom:"4px","&:hover":{color:e.primary.contrastText,background:e.background.b7,cursor:"pointer"},"&:active":{background:e.background.b8,"& .MuiSvgIcon-root":{color:e.primary.main}},"& .MuiSvgIcon-root":{width:16,height:16},"& .MuiSvgIcon-root:active":{color:e.primary.main},"& .i-icon":{height:16,width:16}},isActive:{color:e.primary.main,"&:hover":{color:e.primary.main}},isHidden:{visibility:"hidden"},disabled:{cursor:"not-allowed !important","&:hover":{background:e.background.b6},"& .MuiSvgIcon-root":{color:"".concat(e.primary.text6," !important")}}}})),p=function(o){var a,p=o.onClick,d=o.className,u=o.children,b=o.tooltipProps,m=o.isActive,f=o.isHidden,g=o.disabled,h=e(o,c),v=s(),y=n("div",l(l({className:t(v.button,d,(a={},r(a,v.isHidden,f),r(a,v.disabled,g),r(a,v.isActive,m),a)),onClick:g?null:p},h),{},{children:u}));return g?y:n(i,l(l({placement:"left",title:""},b),{},{children:y}))};export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartTypeButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chart/components/buttons/ChartTypeButton.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ChartTypeButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chart/components/buttons/ChartTypeButton.js"],"names":[],"mappings":";AA2CA;;;gBA+CC;;;QAGU,yBAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/slicedToArray";import{useContext as r,useState as o}from"react";import e from"classnames";import{makeStyles as
|
|
1
|
+
import t from"@babel/runtime/helpers/slicedToArray";import{useContext as r,useState as o}from"react";import e from"classnames";import{makeStyles as n}from"@material-ui/core";import{LineChartIcon as a,BarChartIcon as i}from"../../../../icons/index.js";import c from"../ChartButton.js";import m from"../../ChartWrapperContext.js";import{jsxs as s,jsx as u}from"react/jsx-runtime";var d=n((function(t){var r=t.palette;return{container:{display:"flex",marginRight:4,"&:hover $button":{background:"red !important"}},lineChartButton:{borderTopRightRadius:0,borderBottomRightRadius:0,marginBottom:0,"&:active":{background:r.background.b7}},barChartButton:{borderTopLeftRadius:0,borderBottomLeftRadius:0,marginBottom:0,"&:active":{background:r.background.b7}},hoveredContainer:{background:r.background.b7}}})),l="spline",p="bar",h=function(n){var h=n.className,b=n.onClick,f=r(m),C=f.chartType,g=f.handleChartTypeChange,v=o(!1),k=t(v,2),B=k[0],R=k[1],x=d();return s("div",{className:e(x.container,h),onMouseEnter:function(){R(!0)},onMouseLeave:function(){R(!1)},children:[u(c,{className:e(x.lineChartButton,B&&x.hoveredContainer),tooltipProps:{title:"Line Chart",placement:"bottom"},isActive:C===l,onClick:function(){g(l),b(l)},children:u(a,{})}),u(c,{className:e(x.barChartButton,B&&x.hoveredContainer),tooltipProps:{title:"Bar Chart",placement:"bottom"},isActive:C===p,onClick:function(){g(p),b(p)},children:u(i,{})})]})};h.defaultProps={onClick:function(){},isHidden:!1};export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as e}from"react";import{
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as e}from"react";import{MoveInIcon as o}from"../../../../icons/index.js";import i from"../ChartButton.js";import n from"../../ChartWrapperContext.js";import{jsx as p}from"react/jsx-runtime";var c=["onClick","isHidden"];function s(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,o)}return e}function a(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?s(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}var l=function(r){var s=r.onClick,l=r.isHidden,f=t(r,c),m=e(n),u=m.isMinHeightChart,b=m.isZoomEnabled,d=m.handleIsZoomEnabledChange;return p(i,a(a({},f),{},{tooltipProps:a({title:"Drag To Zoom"},f.tooltipProps),isActive:b,onClick:function(){d(!0),s()},isHidden:u||l,children:p(o,{})}))};l.defaultProps={onClick:function(){},isHidden:!1,tooltipProps:{}};export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HideAxesButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chart/components/buttons/HideAxesButton.js"],"names":[],"mappings":";AAgBA;;;;
|
|
1
|
+
{"version":3,"file":"HideAxesButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chart/components/buttons/HideAxesButton.js"],"names":[],"mappings":";AAgBA;;;;gBAsBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as t}from"react";import o from"classnames";import{
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as t}from"react";import o from"classnames";import{makeStyles as i}from"@material-ui/core";import{ExpandIcon as s,CollapseIcon as n}from"../../../../icons/index.js";import a from"../ChartButton.js";import p from"../../ChartWrapperContext.js";import"@babel/runtime/helpers/slicedToArray";import"lodash";import{useHideAxes as c}from"../../effects/useHideAxes.js";import"../../effects/useChartModifier.js";import{jsx as m}from"react/jsx-runtime";var l=["onClick","isHidden"];function f(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function u(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?f(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var d=i({icon:{top:0,transform:"rotate(45deg)"}}),h=function(e){e.onClick,e.isHidden;var i=r(e,l),f=t(p),h=f.chart,b=f.handleChangeChartStyles,j=c({chart:h,onChartStylesChange:b}),O=j.isHiddenAxes,y=j.handleAxesHide,P=d();return m(a,u(u({},i),{},{className:o(P.hideAxesButton,i.className),tooltipProps:u({title:O?"Show Axes":"Hide Axes"},i.tooltipProps),onClick:y,children:m(O?s:n,{className:P.icon})}))};h.defaultProps={tooltipProps:{}};export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as r}from"react";import{
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as r}from"react";import{FiveIcon as o}from"../../../../icons/index.js";import i from"../ChartButton.js";import n from"../../ChartWrapperContext.js";import{jsx as p}from"react/jsx-runtime";var s=["onClick","isHidden"];function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function a(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?c(Object(o),!0).forEach((function(r){t(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var l=function(t){var c=t.onClick,l=t.isHidden,f=e(t,s),m=r(n),u=m.zoomStatus,b=m.isMinHeightChart,d=m.isZoomEnabled,O=m.handleIsZoomEnabledChange;return p(i,a(a({},f),{},{disabled:u.isReset,tooltipProps:a({title:"Pan"},f.tooltipProps),isActive:!d,onClick:function(){O(!1),c()},isHidden:b||l,children:p(o,{})}))};l.defaultProps={onClick:function(){},isHidden:!1,tooltipProps:{}};export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as r}from"react";import{UndoIcon as o}from"../../../../icons/index.js";import i from"../../ChartWrapperContext.js";import n from"../ChartButton.js";import{jsx as s}from"react/jsx-runtime";var p=["onClick","isHidden","isVisible"];function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function l(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?c(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var f=function(e){var c=e.onClick,f=e.isHidden,a=e.isVisible,m=t(e,p),u=r(i),b=u.isMinHeightChart,O=u.handleResetZoom,d=u.zoomStatus.isReset||b||f;return s(n,l(l({},m),{},{onClick:function(){O(),c()},tooltipProps:l({title:"Reset Zoom"},m.tooltipProps),isHidden:d&&!a,children:s(o,{})}))};f.defaultProps={onClick:function(){},isHidden:!1,isVisible:!1,tooltipProps:{}};export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as e}from"react";import{
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as e}from"react";import{PlusIcon as o}from"../../../../icons/index.js";import i from"../../ChartWrapperContext.js";import{ZOOM_TYPE as n,HOT_KEYS as p}from"../../constants.js";import c from"../ChartButton.js";import"@babel/runtime/helpers/slicedToArray";import"lodash";import{useKeyboardControl as s}from"../../effects/useKeyboardControl.js";import"../../effects/useChartModifier.js";import{jsx as a}from"react/jsx-runtime";var f=["onClick"];function l(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,o)}return e}function m(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?l(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}var u=function(r){var l=r.onClick,u=t(r,f),b=e(i),j=b.zoomStatus,O=b.handleZoomEvent,d=function(){O(n.zoomIn),l()};return s({keyCode:p.arrowUp,callback:d}),a(c,m(m({},u),{},{onClick:d,disabled:j.isMax,tooltipProps:m({title:"Zoom In"},u.tooltipProps),children:a(o,{})}))};u.defaultProps={onClick:function(){},tooltipProps:{}};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as e}from"react";import{
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as e}from"react";import{MinusIcon as o}from"../../../../icons/index.js";import i from"../../ChartWrapperContext.js";import{ZOOM_TYPE as n,HOT_KEYS as p}from"../../constants.js";import c from"../ChartButton.js";import"@babel/runtime/helpers/slicedToArray";import"lodash";import{useKeyboardControl as s}from"../../effects/useKeyboardControl.js";import"../../effects/useChartModifier.js";import{jsx as a}from"react/jsx-runtime";var f=["onClick"];function l(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,o)}return e}function m(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?l(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}var u=function(r){var l=r.onClick,u=t(r,f),b=e(i),j=b.handleZoomEvent,O=b.zoomStatus,d=function(){j(n.zoomOut),l()};return s({keyCode:p.arrowDown,callback:d}),a(c,m(m({},u),{},{onClick:d,tooltipProps:m({title:"Zoom Out"},u.tooltipProps),disabled:O.isReset,children:a(o,{})}))};u.defaultProps={onClick:function(){},tooltipProps:{}};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as o}from"react";import r from"prop-types";import i from"classnames";import{noop as n}from"lodash";import{withStyles as s,Box as p,IconButton as a}from"@material-ui/core";import m from"@material-ui/icons/ChevronLeftRounded";import l from"@material-ui/icons/ChevronRightRounded";import"./DevCenter/AppHeader/AppHeader.js";import"./DevCenter/AppSideBar/AppSideBar.js";import"./DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons";import"./Icons/AnnotationIcon.js";import"./Annotations/components/AnnotationsList/index.js";import"./Annotations/components/LastAnnotation/index.js";import"./Annotations/AnnotationsContext.js";import{jsxs as d,jsx as c}from"react/jsx-runtime";import"./DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"./DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"./DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"./DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"./DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"./DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"./DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"./DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"./DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"./DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"./DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../utils/mobileDetect.js";import"./IconButton/index.js";import"./Modal/CorvaModal.css.js";import"uuid";import"./IconMenu/index.js";import"./StyledMenuItem/index.js";import"./AppIcon/AppIcon.js";import"./DevCenter/AppContext.js";import"./AssetEditor/index.js";import"./AssetEditorV2/index.js";import"./AppVersionsSelect/AppVersionsSelect.js";import"./LoadingIndicator/LoadingIndicator.js";import"./Typography.js";import"./RealTimeValuesSidebar/RealTimeSidebar.js";import"./DateTimePicker/index.js";import"./DatePicker/index.js";import"./ErrorBoundary/ErrorBoundary.js";import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"./SlateFormattedText/SlateFormattedText.js";import"./SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"./EmptyState/EmptyState.js";import"./ParameterCharts/ParameterCharts.js";import"./ParameterCharts/AddEditTrack.js";import"./ChartActionsList/ChartActionsList.js";import"./CopyToClipboard/CopyToClipboard.js";import"./AssetEditor/AssetEditorAutocomplete.js";import"./AssetEditor/SingleAssetEditor.js";import"./SettingEditors/ColorEditor/index.js";import"./SettingEditors/DropdownEditor/index.js";import"./SettingEditors/RadioEditor/index.js";import"./SwitchControl/index.js";import"./ColorPicker/ColorPicker.js";import"./Chart/components/ChartButton.js";import"./Chart/components/ChartButtons.js";import"./Chart/components/ChartWrapper.js";import"./Chart/components/AxisDropdown.js";import"./Chart/components/ChartSelect.js";import"./Chart/components/buttons/DragToZoomButton.js";import"./Chart/components/buttons/ZoomInButton.js";import"./Chart/components/buttons/ZoomOutButton.js";import"./Chart/components/buttons/PanButton.js";import"./Chart/components/buttons/ResetZoomButton.js";import"./Chart/components/buttons/HideAxesButton.js";import"./Chart/components/buttons/ChartTypeButton.js";import"./ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"./TruncatedText/index.js";import"./MiddleTruncatedText/MiddleTruncatedText.js";import"./RangeSlider/RangeSlider.js";import"./AdvancedSlider/AdvancedSlider.js";import"./Breadcrumbs/index.js";import"./VirtualizedTable/index.js";import"./EmptyView/EmptyView.js";import"./EmptyView/EmptyAppView/EmptyAppView.js";import"./Button/index.js";import"./ContextMenuItem/index.js";import"./FolderMenuItem/index.js";import"./EditableItem/EditableItem/index.js";import"./EditableItem/EditableItemWithBadge/index.js";import"./Checkbox/index.js";import"./FolderMenuItemWithLinks/index.js";import"./TextField/index.js";import"./Chip/index.js";import"./Counter/index.js";import"./AnchorsList/AnchorsList.js";import"./Select/index.js";import"./Select/SelectFilterBy.js";import"./CustomSelect/index.js";import"./Tabs/Tabs.js";import"./Tabs/Tab.js";import"./ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"./GradientManager/configuration/constants.js";import"./GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"./GradientManager/GradientPreview/GradientPreview.js";import"./GradientManager/GradientSelect.styles.js";import"./GradientPicker/GradientPicker.js";import"./GradientManager/GradientManager.styles.js";import"./Drillstring/BHASchematic.js";import"./Drillstring/BHATable/index.js";import"./Drillstring/BHAComponentIcon.js";import"./Drillstring/BHAComponentDetail/index.js";import"./Drillstring/BHATileIcon.js";import"./Drillstring/BHATile/BHATile.js";import"./Drillstring/BHAList/BHAList.js";import"./Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"./Casing/CasingTable/index.js";import"./Casing/CasingComponentIcon.js";import"./Casing/CasingTileIcon.js";import"./Casing/CasingTableV2/CasingTableV2.js";import"./Casing/CasingTile/CasingTile.js";import"./DisabledSettingsMessage/DisabledSettingsMessage.js";import"./WellSummary/WellSummaryItemLabel.js";import"./WellSummary/WellSummaryItemTitle.js";import"./WellSummary/WellSummaryItemValue.js";import"./WellSummary/ActivitySummaryChart.js";import"./WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../clients/jsonApi/index.js";import"../constants/goals.js";import"../constants/segment.js";import"../constants/alerts.js";import"../constants/apps.js";import"../constants/drillstring.js";import"../constants/completion.js";import"../constants/appPackages.js";import"../constants/notifications.js";import"../constants/feed.js";import"../constants/bha.js";import"../utils/env.js";import"./BICOffsetPickerDialog/index.js";import"./OffsetWellButton/OffsetWellButton.js";import"./OffsetWellPickerV2/OffsetWellPickerDialog.js";import"./OffsetWellPickerV3/index.js";import"./OffsetWellChips/Chip.js";import"./OffsetWellChips/ChipsContainer.js";import"./OffsetWellPickerV4/OffsetWellPickerV4.js";import"./OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"./Notifications/Toast.js";import"./Toaster/Toaster.js";import"./ConfirmationDialog.js";import"./TextLink/index.js";import"./Avatar/index.js";import"./Template/TemplatePopover/index.js";import"./Template/TemplateSharingDialog/index.js";import"./MenuItem/index.js";import"./MiddleTruncate/MiddleTruncate.js";import"./PadModeSelect/PadModeSelect.js";import"./PinnableFilters/PinnableFilters.js";import"./HeaderLayout/HeaderLayout.js";import"./PadOffsetsPicker/PadOffsetsPicker.js";import"./PadOffsetsPicker/OffsetAssetChip.js";import"./PadOffsetsPicker/OffsetAssetsListExpander.js";import"./PadOffsetsPicker/StagesSelector.js";import"./PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"./Table/TableToolbar/TableToolbar.js";import"./Table/TableContainer/TableContainer.js";import"./Table/TableCell/TableCell.js";import"./Tooltip/ScrollableTooltip.js";import"./PriceInput/PriceInput.js";import"./LabelsCounter/LabelsCounter.js";import"./Stepper/Step.js";import"./Stepper/StepsWrapper.js";import"./Stepper/Stepper.js";import"./Comment/CommentIcon/index.js";import"./FilesLoader/FilesLoader.js";import"./FilesLoader/Icons/FileIcon.js";import"./SearchInput/index.js";import"./FeedItem/FeedItem.js";import"./FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"./PostInput/PostInput.js";import"./KeyboardDateTimePicker.js";import"./AddComment/Popover.js";import"./AddComment/Popup.js";import"./StageDesignVActual/ComparisonBar/ComparisonBar.js";import"./StageDesignVActual/ElementsComparison/ElementsComparison.js";import"./StageDesignVActual/ComparisonHeader.js";import"./StageDesignVActual/ComparisonRow.js";import"./EmbeddedApp/DevCenterEmbeddedApp.js";import"./EmbeddedApp/EmbeddedApp.js";import"./HelpCenter/HelpCenterIcon.js";import"./Autocomplete/Autocomplete.js";import"./DocumentViewer/DocumentViewer.js";import"@babel/runtime/helpers/objectWithoutProperties";import"./ColorPickerPalette/ColorPickerPalette.js";import"./Search/Search.js";import"./Search/components/Listbox.js";import"./Search/components/Paper.js";import"./Search/components/RecentSearches.js";import"./Search/components/InputAdornmentLeft.js";import"./Search/components/Groups.js";import"./StatusBadge/index.js";import"./Attachment/index.js";import"./EmojiIconButton.js";import"./FileUploadIconButton.js";import"./FilePreview/index.js";import"./FailedFileUploading.js";import"./UserMention/index.js";import"./CommentsInfo/index.js";import"./CommentInput/index.js";import"./Comment/index.js";import"./CommentLoader.js";import"./AssetNameLabel/AssetStatusBadge.js";import"./AssetEditorV2/components/PrimaryAssetSelect.js";import"./AssetEditorV2/components/SecondaryAssetSelect.js";import"./AssetEditorV2/components/SelectItem.js";import"./AssetEditorV2/components/MultipleAssetsToggle.js";import"./AssetEditorV2/components/PrimaryAssetSelectV2.js";import"./EChartsWrapper/EChartsWrapper.js";import"querystring";import"uuid/v1";import"../clients/subscriptions.js";import"../utils/index.js";import"jsona";import"./StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../clients/api/apiCore.js";import"../clients/constants.js";import"./DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"./DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"./DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"./DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"rollbar";import"@rollbar/react";import"./DevCenter/NavigationBar/NavigationBar.js";import j from"./DevCenter/SideBar/SideBar.js";import"./DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"./DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";var C=function(r){var n,s=r.classes,C=r.children,u=r.onStateChange,g=r.initialState,A=r.drawerPaperClassName,h=r.isToolbarGutterShown,b=r.openedDrawerWidth,D=r.anchor,f=o(g),S=t(f,2),v=S[0],P=S[1],T=function(){P(!v),u(!v)},x="left"===D?m:l;return d(j,{isToolbarGutterShown:h,drawerWidth:b,drawerClassName:i(s.drawer,!v&&s.drawerClosed),drawerPaperClassName:i(s.drawer,s.drawerPaper,A,!v&&s.drawerClosed),anchor:D,listClassName:s.list,onClick:function(){v||T()},children:[C,c(p,{className:i(s.openToggleContainer,(n={},e(n,s.openToggleContainerCollapsed,!v),e(n,s.openToggleContainerOpened,v),n)),children:c(a,{"data-testid":"".concat("CollapsableSidebar","_toggle"),"aria-label":"toggle sidebar",className:s.openToggleIconButton,onClick:T,children:c(x,{className:i(s.openToggleIcon,e({},s.openToggleIconClosed,!v))})})})]})};C.propTypes={children:r.node.isRequired,onStateChange:r.func,initialState:r.bool,drawerPaperClassName:r.string,isToolbarGutterShown:r.bool,openedDrawerWidth:r.oneOfType([r.string,r.number]),anchor:r.oneOf(["left","right"]),closedWidth:r.oneOfType([r.string,r.number])},C.defaultProps={onStateChange:n,initialState:!0,closedWidth:48,drawerPaperClassName:null,isToolbarGutterShown:void 0,openedDrawerWidth:void 0,anchor:void 0};var u=s((function(e){return{drawer:{display:"flex",flexDirection:"column",height:"100%"},drawerPaper:{"&$drawerClosed":{cursor:"pointer","&:hover::before":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:e.palette.background.b7}}},drawerClosed:{width:function(e){return e.closedWidth}},openToggleIcon:{fontSize:"1.25rem",color:e.palette.primary.text7},openToggleIconClosed:{transform:"rotate(180deg)"},openToggleIconButton:{padding:6},openToggleContainer:{display:"flex",position:"absolute",bottom:0,width:"100%",flex:"0 0",padding:e.spacing(2,1,1.5)},openToggleContainerCollapsed:{paddingRight:e.spacing(1),paddingLeft:e.spacing(1),justifyContent:"center"},openToggleContainerOpened:{justifyContent:function(e){return"left"===e.anchor?"flex-end":"flex-start"}},list:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden",paddingBottom:60}}}))(C);export{u as default};
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as o}from"react";import r from"prop-types";import i from"classnames";import{noop as n}from"lodash";import{withStyles as s,Box as p,IconButton as a}from"@material-ui/core";import m from"@material-ui/icons/ChevronLeftRounded";import l from"@material-ui/icons/ChevronRightRounded";import"./DevCenter/AppHeader/AppHeader.js";import"./DevCenter/AppSideBar/AppSideBar.js";import"./DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons";import"./Icons/AnnotationIcon.js";import"./Annotations/components/AnnotationsList/index.js";import"./Annotations/components/LastAnnotation/index.js";import"./Annotations/AnnotationsContext.js";import{jsxs as d,jsx as c}from"react/jsx-runtime";import"./DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"./DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"./DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"./DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"./DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"./DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"./DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"./DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"./DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"./DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"./DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../icons/WithCustomSize.js";import"../icons/IconParkProvider.js";import"../utils/mobileDetect.js";import"./IconButton/index.js";import"./Modal/CorvaModal.css.js";import"uuid";import"./IconMenu/index.js";import"./StyledMenuItem/index.js";import"./AppIcon/AppIcon.js";import"./DevCenter/AppContext.js";import"./AssetEditor/index.js";import"./AssetEditorV2/index.js";import"./AppVersionsSelect/AppVersionsSelect.js";import"./LoadingIndicator/LoadingIndicator.js";import"./Typography.js";import"./RealTimeValuesSidebar/RealTimeSidebar.js";import"./DateTimePicker/index.js";import"./DatePicker/index.js";import"./ErrorBoundary/ErrorBoundary.js";import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"./SlateFormattedText/SlateFormattedText.js";import"./SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"./EmptyState/EmptyState.js";import"./ParameterCharts/ParameterCharts.js";import"./ParameterCharts/AddEditTrack.js";import"./ChartActionsList/ChartActionsList.js";import"./CopyToClipboard/CopyToClipboard.js";import"./AssetEditor/AssetEditorAutocomplete.js";import"./AssetEditor/SingleAssetEditor.js";import"./SettingEditors/ColorEditor/index.js";import"./SettingEditors/DropdownEditor/index.js";import"./SettingEditors/RadioEditor/index.js";import"./SwitchControl/index.js";import"./ColorPicker/ColorPicker.js";import"./Chart/components/ChartButton.js";import"./Chart/components/ChartButtons.js";import"./Chart/components/ChartWrapper.js";import"./Chart/components/AxisDropdown.js";import"./Chart/components/ChartSelect.js";import"./Chart/components/buttons/DragToZoomButton.js";import"./Chart/components/buttons/ZoomInButton.js";import"./Chart/components/buttons/ZoomOutButton.js";import"./Chart/components/buttons/PanButton.js";import"./Chart/components/buttons/ResetZoomButton.js";import"./Chart/components/buttons/HideAxesButton.js";import"./Chart/components/buttons/ChartTypeButton.js";import"./ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"./TruncatedText/index.js";import"./MiddleTruncatedText/MiddleTruncatedText.js";import"./RangeSlider/RangeSlider.js";import"./AdvancedSlider/AdvancedSlider.js";import"./Breadcrumbs/index.js";import"./VirtualizedTable/index.js";import"./EmptyView/EmptyView.js";import"./EmptyView/EmptyAppView/EmptyAppView.js";import"./Button/index.js";import"./ContextMenuItem/index.js";import"./FolderMenuItem/index.js";import"./EditableItem/EditableItem/index.js";import"./EditableItem/EditableItemWithBadge/index.js";import"./Checkbox/index.js";import"./FolderMenuItemWithLinks/index.js";import"./TextField/index.js";import"./Chip/index.js";import"./Counter/index.js";import"./AnchorsList/AnchorsList.js";import"./Select/index.js";import"./Select/SelectFilterBy.js";import"./CustomSelect/index.js";import"./Tabs/Tabs.js";import"./Tabs/Tab.js";import"./ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"./GradientManager/configuration/constants.js";import"./GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"./GradientManager/GradientPreview/GradientPreview.js";import"./GradientManager/GradientSelect.styles.js";import"./GradientPicker/GradientPicker.js";import"./GradientManager/GradientManager.styles.js";import"./Drillstring/BHASchematic.js";import"./Drillstring/BHATable/index.js";import"./Drillstring/BHAComponentIcon.js";import"./Drillstring/BHAComponentDetail/index.js";import"./Drillstring/BHATileIcon.js";import"./Drillstring/BHATile/BHATile.js";import"./Drillstring/BHAList/BHAList.js";import"./Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"./Casing/CasingTable/index.js";import"./Casing/CasingComponentIcon.js";import"./Casing/CasingTileIcon.js";import"./Casing/CasingTableV2/CasingTableV2.js";import"./Casing/CasingTile/CasingTile.js";import"./DisabledSettingsMessage/DisabledSettingsMessage.js";import"./WellSummary/WellSummaryItemLabel.js";import"./WellSummary/WellSummaryItemTitle.js";import"./WellSummary/WellSummaryItemValue.js";import"./WellSummary/ActivitySummaryChart.js";import"./WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../clients/jsonApi/index.js";import"../constants/goals.js";import"../constants/segment.js";import"../constants/alerts.js";import"../constants/apps.js";import"../constants/drillstring.js";import"../constants/completion.js";import"../constants/appPackages.js";import"../constants/notifications.js";import"../constants/feed.js";import"../constants/bha.js";import"../utils/env.js";import"./BICOffsetPickerDialog/index.js";import"./OffsetWellButton/OffsetWellButton.js";import"./OffsetWellPickerV2/OffsetWellPickerDialog.js";import"./OffsetWellPickerV3/index.js";import"./OffsetWellChips/Chip.js";import"./OffsetWellChips/ChipsContainer.js";import"./OffsetWellPickerV4/OffsetWellPickerV4.js";import"./OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"./Notifications/Toast.js";import"./Toaster/Toaster.js";import"./ConfirmationDialog.js";import"./TextLink/index.js";import"./Avatar/index.js";import"./Template/TemplatePopover/index.js";import"./Template/TemplateSharingDialog/index.js";import"./MenuItem/index.js";import"./MiddleTruncate/MiddleTruncate.js";import"./PadModeSelect/PadModeSelect.js";import"./PinnableFilters/PinnableFilters.js";import"./HeaderLayout/HeaderLayout.js";import"./PadOffsetsPicker/PadOffsetsPicker.js";import"./PadOffsetsPicker/OffsetAssetChip.js";import"./PadOffsetsPicker/OffsetAssetsListExpander.js";import"./PadOffsetsPicker/StagesSelector.js";import"./PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"./Table/TableToolbar/TableToolbar.js";import"./Table/TableContainer/TableContainer.js";import"./Table/TableCell/TableCell.js";import"./Tooltip/ScrollableTooltip.js";import"./PriceInput/PriceInput.js";import"./LabelsCounter/LabelsCounter.js";import"./Stepper/Step.js";import"./Stepper/StepsWrapper.js";import"./Stepper/Stepper.js";import"./Comment/CommentIcon/index.js";import"./FilesLoader/FilesLoader.js";import"./FilesLoader/Icons/FileIcon.js";import"./SearchInput/index.js";import"./FeedItem/FeedItem.js";import"./FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"./PostInput/PostInput.js";import"./KeyboardDateTimePicker.js";import"./AddComment/Popover.js";import"./AddComment/Popup.js";import"./StageDesignVActual/ComparisonBar/ComparisonBar.js";import"./StageDesignVActual/ElementsComparison/ElementsComparison.js";import"./StageDesignVActual/ComparisonHeader.js";import"./StageDesignVActual/ComparisonRow.js";import"./EmbeddedApp/DevCenterEmbeddedApp.js";import"./EmbeddedApp/EmbeddedApp.js";import"./HelpCenter/HelpCenterIcon.js";import"./Autocomplete/Autocomplete.js";import"./DocumentViewer/DocumentViewer.js";import"@babel/runtime/helpers/objectWithoutProperties";import"./ColorPickerPalette/ColorPickerPalette.js";import"./Search/Search.js";import"./Search/components/Listbox.js";import"./Search/components/Paper.js";import"./Search/components/RecentSearches.js";import"./Search/components/InputAdornmentLeft.js";import"./Search/components/Groups.js";import"./StatusBadge/index.js";import"./Attachment/index.js";import"./EmojiIconButton.js";import"./FileUploadIconButton.js";import"./FilePreview/index.js";import"./FailedFileUploading.js";import"./UserMention/index.js";import"./CommentsInfo/index.js";import"./CommentInput/index.js";import"./Comment/index.js";import"./CommentLoader.js";import"./AssetNameLabel/AssetStatusBadge.js";import"./AssetEditorV2/components/PrimaryAssetSelect.js";import"./AssetEditorV2/components/SecondaryAssetSelect.js";import"./AssetEditorV2/components/SelectItem.js";import"./AssetEditorV2/components/MultipleAssetsToggle.js";import"./AssetEditorV2/components/PrimaryAssetSelectV2.js";import"./EChartsWrapper/EChartsWrapper.js";import"querystring";import"uuid/v1";import"../clients/subscriptions.js";import"../utils/index.js";import"jsona";import"./StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../clients/api/apiCore.js";import"../clients/constants.js";import"./DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"./DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"./DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"./DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router";import"rollbar";import"@rollbar/react";import"./DevCenter/NavigationBar/NavigationBar.js";import j from"./DevCenter/SideBar/SideBar.js";import"./DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"./DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";var C=function(r){var n,s=r.classes,C=r.children,u=r.onStateChange,g=r.initialState,A=r.drawerPaperClassName,h=r.isToolbarGutterShown,b=r.openedDrawerWidth,D=r.anchor,f=o(g),S=t(f,2),v=S[0],P=S[1],T=function(){P(!v),u(!v)},x="left"===D?m:l;return d(j,{isToolbarGutterShown:h,drawerWidth:b,drawerClassName:i(s.drawer,!v&&s.drawerClosed),drawerPaperClassName:i(s.drawer,s.drawerPaper,A,!v&&s.drawerClosed),anchor:D,listClassName:s.list,onClick:function(){v||T()},children:[C,c(p,{className:i(s.openToggleContainer,(n={},e(n,s.openToggleContainerCollapsed,!v),e(n,s.openToggleContainerOpened,v),n)),children:c(a,{"data-testid":"".concat("CollapsableSidebar","_toggle"),"aria-label":"toggle sidebar",className:s.openToggleIconButton,onClick:T,children:c(x,{className:i(s.openToggleIcon,e({},s.openToggleIconClosed,!v))})})})]})};C.propTypes={children:r.node.isRequired,onStateChange:r.func,initialState:r.bool,drawerPaperClassName:r.string,isToolbarGutterShown:r.bool,openedDrawerWidth:r.oneOfType([r.string,r.number]),anchor:r.oneOf(["left","right"]),closedWidth:r.oneOfType([r.string,r.number])},C.defaultProps={onStateChange:n,initialState:!0,closedWidth:48,drawerPaperClassName:null,isToolbarGutterShown:void 0,openedDrawerWidth:void 0,anchor:void 0};var u=s((function(e){return{drawer:{display:"flex",flexDirection:"column",height:"100%"},drawerPaper:{"&$drawerClosed":{cursor:"pointer","&:hover::before":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:e.palette.background.b7}}},drawerClosed:{width:function(e){return e.closedWidth}},openToggleIcon:{fontSize:"1.25rem",color:e.palette.primary.text7},openToggleIconClosed:{transform:"rotate(180deg)"},openToggleIconButton:{padding:6},openToggleContainer:{display:"flex",position:"absolute",bottom:0,width:"100%",flex:"0 0",padding:e.spacing(2,1,1.5)},openToggleContainerCollapsed:{paddingRight:e.spacing(1),paddingLeft:e.spacing(1),justifyContent:"center"},openToggleContainerOpened:{justifyContent:function(e){return"left"===e.anchor?"flex-end":"flex-start"}},list:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden",paddingBottom:60}}}))(C);export{u as default};
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
export default ContextMenuItem;
|
|
2
|
-
declare function ContextMenuItem({ classes, icon, children, small, ...otherProps }: {
|
|
2
|
+
declare function ContextMenuItem({ classes, icon, children, small, iconType, ...otherProps }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
classes?: {};
|
|
5
5
|
icon: any;
|
|
6
6
|
children: any;
|
|
7
7
|
small: any;
|
|
8
|
+
iconType: any;
|
|
8
9
|
}): JSX.Element;
|
|
9
10
|
declare namespace ContextMenuItem {
|
|
10
11
|
namespace propTypes {
|
|
11
12
|
const children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
12
13
|
const icon: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
14
|
+
const iconType: PropTypes.Requireable<string>;
|
|
13
15
|
const small: PropTypes.Requireable<boolean>;
|
|
14
16
|
}
|
|
15
17
|
namespace defaultProps {
|
|
16
18
|
const small_1: boolean;
|
|
17
19
|
export { small_1 as small };
|
|
20
|
+
const iconType_1: string;
|
|
21
|
+
export { iconType_1 as iconType };
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
24
|
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenuItem/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenuItem/index.js"],"names":[],"mappings":";AAkCA;;;;;;;gBAYC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import r from"prop-types";import o from"classnames";import i from"@material-ui/core/ListItemIcon";import{makeStyles as n}from"@material-ui/core";import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import r from"prop-types";import o from"classnames";import i from"@material-ui/core/ListItemIcon";import{makeStyles as n}from"@material-ui/core";import c from"../MenuItem/index.js";import{jsxs as l,jsx as a}from"react/jsx-runtime";var p=["classes","icon","children","small","iconType"];function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function m(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?s(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var u=n((function(e){return{menuItem:{height:function(e){return e.small?36:54},lineHeight:function(e){return e.small?"17px":"24px"},"&:hover svg":{fill:function(t){var r=t.iconType,o=t.disabled;return"iconPark"===r?"":o?e.palette.primary.text9:e.palette.primary.contrastText},color:function(t){var r=t.iconType,o=t.disabled;return"mui"===r?"":o?e.palette.primary.text9:e.palette.primary.contrastText}}},listItemIcon:{paddingRight:e.spacing(1),color:function(t){return t.disabled?e.palette.primary.text9:e.palette.primary.text7},minWidth:"auto",fontSize:function(e){return e.small?16:24},"& .MuiSvgIcon-root":{fontSize:"inherit"}}}})),f=function(e){var r=e.classes,n=void 0===r?{}:r,s=e.icon,f=e.children,d=e.small,y=e.iconType,b=t(e,p),h=u({small:d,disabled:b.disabled,iconType:y});return l(c,m(m({classes:m(m({},n),{},{root:o(h.menuItem,n.root)})},b),{},{children:[a(i,{classes:{root:h.listItemIcon},children:s}),f]}))};f.propTypes={children:r.node.isRequired,icon:r.node.isRequired,iconType:r.string,small:r.bool},f.defaultProps={small:!1,iconType:"mui"};export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppFilterPanelLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlC,OAA4B,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAGpG,OAAO,EAEL,uBAAuB,EACxB,MAAM,8DAA8D,CAAC;AA6CtE,MAAM,WAAW,yBAAyB;IACxC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAClD,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,cAAc,EAAE,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,eAAe,CAAC;CAChC;
|
|
1
|
+
{"version":3,"file":"AppFilterPanelLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlC,OAA4B,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAGpG,OAAO,EAEL,uBAAuB,EACxB,MAAM,8DAA8D,CAAC;AA6CtE,MAAM,WAAW,yBAAyB;IACxC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAClD,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,cAAc,EAAE,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,eAAe,CAAC;CAChC;AAgCD,eAAO,MAAM,oBAAoB,0FAO9B,yBAAyB,KAAG,WA0C9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as i}from"react/jsx-runtime";import r from"classnames";import{makeStyles as o,useTheme as n}from"@material-ui/core";import a
|
|
1
|
+
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as i}from"react/jsx-runtime";import r from"classnames";import{makeStyles as o,useTheme as n}from"@material-ui/core";import{CenterAlignmentIcon as a}from"../../../icons/index.js";import p from"../AppSideBar/AppSideBar.js";import s from"../../IconButton/index.js";import{AppSettingsPopover as l}from"../AppSettingsPopover/AppSettingsPopover.js";import d from"../../Button/index.js";import{useMatchAppContainerSize as c}from"../../../effects/useMatchAppContainerSize.js";import{isNativeDetected as m,isMobileDetected as h}from"../../../utils/mobileDetect.js";var f=o({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}}),g=function(t){var r=n(),o=c({width:{max:r.breakpoints.width("md")}}),p=f();return o?i(s,e({className:p.filtersTrigger,size:"small",tooltipProps:{title:"Filters"},variant:"contained",iconType:"iconPark"},t,{children:i(a,{size:16})})):i(d,e({startIcon:i(a,{size:16})},t,{children:"Filters"}))},x=function(o){var a=o.appSettingsPopoverProps,s=o.children,d=o.classes,x=void 0===d?{}:d,v=o.header,u=o.sideBarContent,j=o.sideBarProps,w=f(),y=n(),P=c({width:{max:y.breakpoints.width("md")}}),z=m||h||P;return t("div",e({className:r(w.appLayout,x.appLayout)},{children:[z&&t("div",e({className:r(w.header,x.header)},{children:[i(l,e({Trigger:g,classes:{popoverContent:w.popoverContent},header:"Filters",anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},a,{children:u})),v]})),t("div",e({className:r(w.contentWrapper,x.contentWrapper)},{children:[!z&&i(p,e({},j,{anchor:"left"},{children:u})),i("div",e({className:r(w.content,x.content)},{children:s}))]}))]}))};export{x as AppFilterPanelLayout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAc,YAAY,EAAW,MAAM,mBAAmB,CAAC;AAoEtE,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG;QACjC,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iBAAiB,CAAC,EAAE;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,YAAY,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;KAClC,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,QAAQ,EACR,OAAO,EACP,iBAAyB,EACzB,MAAmB,EACnB,iBAAsB,EACtB,SAAgB,EAChB,YAAmB,EACnB,UAAe,EACf,OAAkB,EAClB,GAAG,YAAY,EAChB,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAc,YAAY,EAAW,MAAM,mBAAmB,CAAC;AAoEtE,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG;QACjC,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iBAAiB,CAAC,EAAE;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,YAAY,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;KAClC,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,QAAQ,EACR,OAAO,EACP,iBAAyB,EACzB,MAAmB,EACnB,iBAAsB,EACtB,SAAgB,EAChB,YAAmB,EACnB,UAAe,EACf,OAAkB,EAClB,GAAG,YAAY,EAChB,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAqGvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i,Fragment as
|
|
1
|
+
import{__rest as o,__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as r}from"react";import l from"classnames";import{makeStyles as a,Popover as c}from"@material-ui/core";import{SettingTwoIcon as s,CloseSmallIcon as d}from"../../../icons/index.js";import{isNativeDetected as p,isMobileDetected as m}from"../../../utils/mobileDetect.js";import h from"../../IconButton/index.js";import g from"../../Modal/Modal.js";import u from"../../Button/index.js";var v=p||m,f=a((function(o){return{popoverPaper:{marginTop:function(o){return o.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:o.palette.background.b9,maxHeight:function(o){var e=o.maxHeight;return e?e-24:"calc(100% - 24px)"},"&.scrollable":{height:function(o){return o.maxHeight||"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," 79%, 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%"},shadow:{position:"absolute",bottom:0,width:"100%",height:16,background:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(o.palette.background.b9," 100%)")},modalActions:{display:"flex",justifyContent:"flex-end"}}}));function b(a){var m=a.Trigger,b=a.children,C=a.classes,x=a.defaultScrollable,k=void 0!==x&&x,T=a.header,H=void 0===T?"Settings":T,P=a.iconSettingsProps,S=void 0===P?{}:P,j=a.maxHeight,w=void 0===j?null:j,y=a.modalActions,N=void 0===y?null:y,z=a.modalProps,A=void 0===z?{}:z,B=a.onClose,I=void 0===B?function(){}:B,O=o(a,["Trigger","children","classes","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","onClose"]),D=r(null),E=D[0],M=D[1],Y=r(!0),L=Y[0],W=Y[1],X=f({maxHeight:w,isScrollable:L,isNativeDetected:p}),_=C||{},q=_.popoverContent,F=o(_,["popoverContent"]),G=function(){M(null),I()},J=Boolean(E),K=function(o){return M(o.currentTarget)},Q=N||t(u,e({variation:"secondary",onClick:G},{children:"CLOSE"}));return i(n,{children:[m?t(m,{onClick:K}):t(h,e({isActive:J,onClick:K,size:"small",tooltipProps:{title:"Settings"},variant:"contained",iconType:"iconPark"},S,{children:t(s,{size:16})})),!v&&i(c,e({open:J,anchorEl:E,onClose:G,anchorOrigin:{vertical:L?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},O,{classes:e(e({},F),{paper:l(X.popoverPaper,L&&"scrollable",null==F?void 0:F.paper)})},{children:[i("div",e({className:l(X.popoverHeader,L&&"scrollable")},{children:[t("div",e({className:X.headerTitle},{children:H})),t(h,e({tooltipProps:{title:"Close"},onClick:G,iconType:"iconPark"},{children:t(d,{})}))]})),t("div",e({className:l(X.popoverContentContainer,L&&"scrollable"),ref:function(o){o&&o.scrollHeight<=o.clientHeight&&!k&&W(!1)}},{children:t("div",e({className:l(X.popoverContent,q)},{children:b}))})),t("div",{className:X.shadow})]})),v&&t(g,e({actions:Q,onClose:G,open:J,actionsClassName:X.modalActions,title:H},A,{children:b}))]})}export{b as AppSettingsPopover};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSideBar.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSideBar/AppSideBar.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"AppSideBar.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSideBar/AppSideBar.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAyBnC,aAAK,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/B,MAAM,WAAW,eAAgB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC;IACvF,MAAM,EAAE,MAAM,CAAC;CAChB;AAqHD,QAAA,MAAM,UAAU;gPAgBb,eAAe,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoG/B,CAAC;AAEF,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;CAgBxB,CAAC;AAqBF,eAAe,UAAU,CAAC"}
|
|
@@ -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 a}from"react";import l from"prop-types";import d from"classnames";import{noop as p}from"lodash";import{makeStyles as c,createStyles as s,Drawer as h,Box as
|
|
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 a}from"react";import l from"prop-types";import d from"classnames";import{noop as p}from"lodash";import{makeStyles as c,createStyles as s,Drawer as h,Box as u,Tooltip as m}from"@material-ui/core";import g from"../../IconButton/index.js";import f from"../../Button/index.js";import{LeftAlignmentIcon as x,CloseSmallIcon as b,CheckSmallIcon as w,RightIcon as T,LeftIcon as C}from"../../../icons/index.js";var S=c((function(e){var o,t;return s({drawer:function(o){var t;return(t={height:"100%",position:"relative",width:o.openedDrawerWidth,borderTop:"1px solid",borderTopColor:e.palette.background.b7,boxShadow:"4px 0px 8px rgba(0, 0, 0, 0.15)"})["&.".concat("closed")]={width:"48px"},t},drawerPaper:(o={position:"relative",width:"100%",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={height:48,borderBottom:"1px solid",borderBottomColor:e.palette.background.b7,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",top:0,left:0,right:0,letterSpacing:"1px",textTransform:"uppercase",fontSize:"14px",fontWeight:500,lineHeight:"20px",backgroundColor:e.palette.background.b5},t["&.".concat("open")]={padding:e.spacing(1.5),justifyContent:"flex-start"},t["&.".concat("withShadow")]={zIndex:1,boxShadow:"-18px 12px 12px #272727"},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("withShadow")]={zIndex:1,boxShadow:"-18px -12px 12px #272727"},o["&.".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}})})),I=function(l){var p,c=l.anchor,s=l.children,I=l.drawerPaperClassName,k=l.expandedTooltipTitle,O=l.collapsedTooltipTitle,v=l.header,A=l.headerIcon,B=l.headerTitleIcon,z=l.isOpen,y=l.openedDrawerWidth,D=l.setIsOpen,N=l.size,j=l.allOptionsButtonShown,P=l.isAllOptionsSelected,W=l.onAllOptionsClick,M=r(!1),R=M[0],H=M[1],L=i(),_=S({anchor:c,openedDrawerWidth:y||{small:235,medium:354,large:473}[N]});a((function(){var e=L.current,o=e.scrollHeight,t=e.clientHeight;H(o>t)}));var q="left"===c?T:C;return o(h,e({"data-testid":"".concat("AppSideBar","_Drawer"),onClick:function(){z||D(!0)},className:d(_.drawer,!z&&"closed"),variant:"permanent",classes:{paper:d(_.drawerPaper,I,!z&&"closed")},anchor:c},{children:[o("div",e({className:d(_.header,z&&"open",R&&"withShadow"),onClick:function(){z&&D(!1)}},{children:[z&&o(t,{children:[B||n(x,{size:24}),n("div",e({"data-testid":"".concat("AppSideBar","_header"),className:_.headerIconText},{children:v})),j&&n(f,e({className:_.selectAllButton,onClick:function(e){e.stopPropagation(),W(e)},startIcon:n(P?b:w,{size:16})},{children:P?"Clear All":"Select All"}))]}),!z&&A]})),n("div",e({className:_.contentWrapper,ref:L},{children:n("div",e({className:_.content},{children:z&&s}))})),n(u,e({className:d(_.openToggleContainer,(p={},p.open=z,p.withShadow=R,p))},{children:n(m,e({title:z?k:O,placement:"bottom"},{children:n("div",{children:n(g,e({iconType:"iconPark","aria-label":"toggle sidebar",onClick:function(){D(!z)}},{children:n(q,{size:24,"data-testid":"".concat("AppSideBar","_arrowButton"),className:d(z&&_.openToggleIconOpen)})}))})}))}))]}))},k={anchor:l.oneOf(["left","right"]),children:l.node.isRequired,drawerPaperClassName:l.string,expandedTooltipTitle:l.string,collapsedTooltipTitle:l.string,header:l.node,headerIcon:l.node,headerTitleIcon:l.node,isOpen:l.bool,openedDrawerWidth:l.oneOfType([l.string,l.number]),setIsOpen:l.func,size:l.oneOf(["small","medium","large"]),allOptionsButtonShown:l.bool,isAllOptionsSelected:l.bool,onAllOptionsClick:l.func};I.propTypes=k,I.defaultProps={anchor:"left",drawerPaperClassName:"",expandedTooltipTitle:"Collapse",collapsedTooltipTitle:"Expand",header:null,headerIcon:null,headerTitleIcon:null,isOpen:!1,openedDrawerWidth:0,setIsOpen:p,size:"medium",allOptionsButtonShown:!1,isAllOptionsSelected:!1,onAllOptionsClick:p};export{I as default};
|