@corva/ui 0.58.0-0 → 0.58.0-10
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/AnchorsList/AnchorsList.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/Button/index.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/CollapsableSidebar.js +1 -1
- package/cjs-bundle/components/CommentInput/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/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.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/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js +1 -1
- package/cjs-bundle/components/Modal/CorvaModal.css.js +1 -1
- package/cjs-bundle/components/Modal/CorvaModal.js +1 -1
- package/cjs-bundle/components/Modal/types.js +1 -0
- 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/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.module.css.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/RealTimeValuesSidebar/RealTimeSidebar.js +1 -0
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeSidebarContext.js +1 -0
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeSidebarStyles.js +1 -0
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBox.js +1 -0
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -0
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -0
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.js +1 -0
- package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -0
- package/cjs-bundle/components/RealTimeValuesSidebar/SidebarTitle.js +1 -0
- package/cjs-bundle/components/RealTimeValuesSidebar/enums.js +1 -0
- package/cjs-bundle/components/StatusBadge/components/ReportIssueModal.js +1 -1
- package/cjs-bundle/components/StatusBadge/constants.js +1 -1
- package/cjs-bundle/components/StatusBadge/index.js +1 -1
- package/cjs-bundle/components/StatusBadge/utils.js +1 -1
- package/cjs-bundle/components/TextLink/index.js +1 -1
- package/cjs-bundle/components/Toaster/ToastContainer.js +1 -1
- package/cjs-bundle/components/Toaster/Toaster.js +1 -1
- package/cjs-bundle/components/UserMention/index.js +1 -1
- package/cjs-bundle/components/UserMention/style.css.js +1 -1
- package/cjs-bundle/components/index.js +1 -1
- package/cjs-bundle/constants/rigActivity.js +1 -1
- package/cjs-bundle/effects/useMatchAppContainerSize.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.d.ts.map +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/AnchorsList/AnchorsList.d.ts.map +1 -1
- package/components/AnchorsList/AnchorsList.js +1 -1
- package/components/AnchorsList/__tests__/AnchorsList.test.d.ts +2 -0
- package/components/AnchorsList/__tests__/AnchorsList.test.d.ts.map +1 -0
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Button/index.d.ts +1 -5
- package/components/Button/index.d.ts.map +1 -1
- package/components/Button/index.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/CollapsableSidebar.js +1 -1
- package/components/CommentInput/index.js +1 -1
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.d.ts +17 -8
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.d.ts.map +1 -1
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
- package/components/DevCenter/AppFilterPanelLayout/__tests__/AppFilterPanelLayout.test.d.ts +2 -0
- package/components/DevCenter/AppFilterPanelLayout/__tests__/AppFilterPanelLayout.test.d.ts.map +1 -0
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts +16 -48
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/AppSettingsPopover/index.d.ts +1 -1
- package/components/DevCenter/AppSettingsPopover/index.d.ts.map +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.d.ts +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.d.ts.map +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/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.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/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/sharedStyles.d.ts +1 -1
- package/components/EmbeddedApp/__tests__/EmbeddedApp.test.d.ts +2 -0
- package/components/EmbeddedApp/__tests__/EmbeddedApp.test.d.ts.map +1 -0
- package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.d.ts +4 -1
- package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js +1 -1
- package/components/Modal/CorvaModal.css.js +1 -1
- package/components/Modal/CorvaModal.d.ts +1 -25
- package/components/Modal/CorvaModal.d.ts.map +1 -1
- package/components/Modal/CorvaModal.js +1 -1
- package/components/Modal/__tests__/CorvaModal.snapshot.test.d.ts +2 -0
- package/components/Modal/__tests__/CorvaModal.snapshot.test.d.ts.map +1 -0
- package/components/Modal/__tests__/CorvaModal.test.d.ts +2 -0
- package/components/Modal/__tests__/CorvaModal.test.d.ts.map +1 -0
- package/components/Modal/types.d.ts +8 -5
- package/components/Modal/types.d.ts.map +1 -1
- package/components/Modal/types.js +1 -0
- 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/OffsetWellButton/__tests__/OffsetWellButton.test.d.ts +2 -0
- package/components/OffsetWellButton/__tests__/OffsetWellButton.test.d.ts.map +1 -0
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.module.css.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/RealTimeValuesSidebar/RealTimeSidebar.d.ts +4 -0
- package/components/RealTimeValuesSidebar/RealTimeSidebar.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/RealTimeSidebar.js +1 -0
- package/components/RealTimeValuesSidebar/RealTimeSidebarContext.d.ts +4 -0
- package/components/RealTimeValuesSidebar/RealTimeSidebarContext.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/RealTimeSidebarContext.js +1 -0
- package/components/RealTimeValuesSidebar/RealTimeSidebarStyles.d.ts +2 -0
- package/components/RealTimeValuesSidebar/RealTimeSidebarStyles.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/RealTimeSidebarStyles.js +1 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBox.d.ts +6 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBox.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBox.js +1 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.d.ts +6 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.d.ts +6 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.d.ts +2 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.js +1 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/index.d.ts +2 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/index.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/SidebarFooter.d.ts +6 -0
- package/components/RealTimeValuesSidebar/SidebarFooter.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -0
- package/components/RealTimeValuesSidebar/SidebarTitle.d.ts +5 -0
- package/components/RealTimeValuesSidebar/SidebarTitle.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/SidebarTitle.js +1 -0
- package/components/RealTimeValuesSidebar/__tests__/RealTimeBox.test.d.ts +2 -0
- package/components/RealTimeValuesSidebar/__tests__/RealTimeBox.test.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/__tests__/RealTimeBoxEditDialog.test.d.ts +2 -0
- package/components/RealTimeValuesSidebar/__tests__/RealTimeBoxEditDialog.test.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/__tests__/RealTimeSidebar.test.d.ts +2 -0
- package/components/RealTimeValuesSidebar/__tests__/RealTimeSidebar.test.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/__tests__/RealTimeSidebarFooter.test.d.ts +2 -0
- package/components/RealTimeValuesSidebar/__tests__/RealTimeSidebarFooter.test.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/enums.d.ts +5 -0
- package/components/RealTimeValuesSidebar/enums.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/enums.js +1 -0
- package/components/RealTimeValuesSidebar/index.d.ts +2 -0
- package/components/RealTimeValuesSidebar/index.d.ts.map +1 -0
- package/components/RealTimeValuesSidebar/types.d.ts +59 -0
- package/components/RealTimeValuesSidebar/types.d.ts.map +1 -0
- package/components/StatusBadge/__tests__/StatusBadge.test.d.ts.map +1 -1
- package/components/StatusBadge/__tests__/useWellnessAlerts.test.d.ts +2 -0
- package/components/StatusBadge/__tests__/useWellnessAlerts.test.d.ts.map +1 -0
- package/components/StatusBadge/__tests__/utils.test.d.ts +2 -0
- package/components/StatusBadge/__tests__/utils.test.d.ts.map +1 -0
- package/components/StatusBadge/api.d.ts +4 -0
- package/components/StatusBadge/api.d.ts.map +1 -0
- package/components/StatusBadge/components/ReportIssueModal.d.ts +7 -2
- package/components/StatusBadge/components/ReportIssueModal.d.ts.map +1 -1
- package/components/StatusBadge/components/ReportIssueModal.js +1 -1
- package/components/StatusBadge/constants.d.ts +12 -0
- package/components/StatusBadge/constants.d.ts.map +1 -1
- package/components/StatusBadge/constants.js +1 -1
- package/components/StatusBadge/index.d.ts +1 -1
- package/components/StatusBadge/index.d.ts.map +1 -1
- package/components/StatusBadge/index.js +1 -1
- package/components/StatusBadge/types.d.ts +48 -0
- package/components/StatusBadge/types.d.ts.map +1 -0
- package/components/StatusBadge/useWellnessAlerts.d.ts +10 -0
- package/components/StatusBadge/useWellnessAlerts.d.ts.map +1 -0
- package/components/StatusBadge/utils.d.ts +8 -3
- package/components/StatusBadge/utils.d.ts.map +1 -1
- package/components/StatusBadge/utils.js +1 -1
- package/components/TextLink/index.js +1 -1
- package/components/Toaster/ToastContainer.d.ts +3 -2
- package/components/Toaster/ToastContainer.d.ts.map +1 -1
- package/components/Toaster/ToastContainer.js +1 -1
- package/components/Toaster/Toaster.d.ts +7 -6
- package/components/Toaster/Toaster.d.ts.map +1 -1
- package/components/Toaster/Toaster.js +1 -1
- package/components/Toaster/__tests__/ToastContainer.test.d.ts +2 -0
- package/components/Toaster/__tests__/ToastContainer.test.d.ts.map +1 -0
- package/components/Toaster/__tests__/Toaster.test.d.ts +2 -0
- package/components/Toaster/__tests__/Toaster.test.d.ts.map +1 -0
- package/components/Toaster/index.d.ts +2 -2
- package/components/Toaster/index.d.ts.map +1 -1
- package/components/Toaster/types.d.ts +6 -0
- package/components/Toaster/types.d.ts.map +1 -0
- package/components/UserMention/index.js +1 -1
- package/components/UserMention/style.css.js +1 -1
- package/components/index.d.ts +2 -1
- package/components/index.js +1 -1
- package/constants/rigActivity.d.ts +1 -0
- package/constants/rigActivity.d.ts.map +1 -1
- package/constants/rigActivity.js +1 -1
- package/effects/useMatchAppContainerSize.d.ts.map +1 -1
- package/effects/useMatchAppContainerSize.js +1 -1
- package/package.json +3 -2
- package/components/Modal/__tests__/index.snapshot.test.d.ts +0 -2
- package/components/Modal/__tests__/index.snapshot.test.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/asyncToGenerator";import e from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/assertThisInitialized";import i from"@babel/runtime/helpers/inherits";import a from"@babel/runtime/helpers/possibleConstructorReturn";import r from"@babel/runtime/helpers/getPrototypeOf";import s from"@babel/runtime/helpers/defineProperty";import l from"@babel/runtime/regenerator";import{PureComponent as c}from"react";import m from"prop-types";import p from"lodash/noop";import{withStyles as u}from"@material-ui/core/styles";import{Paper as d,TextField as h,InputAdornment as f,Tooltip as g,Collapse as C,Typography as b}from"@material-ui/core";import I from"classnames";import{get as v}from"lodash";import x from"@material-ui/core/colors/grey";import y from"../Avatar/index.js";import E from"../FileUploadIconButton.js";import F from"../EmojiIconButton.js";import S from"../FailedFileUploading.js";import U from"../UserMention/index.js";import N from"../FilePreview/index.js";import k from"../IconButton/index.js";import A from"../Icons/SendIcon.js";import{isSuggestionsListOpened as M}from"../UserMention/utils/index.js";import R from"../../utils/main.js";import{isNativeDetected as j}from"../../utils/mobileDetect.js";import{notifyCommentEdit as B,notifyCommentPost as w}from"../../utils/nativeMessages.js";import{patchFeedItemComment as T}from"../../clients/jsonApi/index.js";import L from"./styles.css.js";import{jsxs as P,jsx as z}from"react/jsx-runtime";function D(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=r(t);if(e){var i=r(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return a(this,n)}}var _={chatAvatarWrapper:{display:"flex",alignItems:"center",position:"absolute",left:0,height:32},commentTextFieldContainer:{position:"relative",margin:"0"},commentTextFieldContainerSpaceAround:{position:"relative",margin:"20px 10px"}},O=function(a){i(m,c);var r=D(m);function m(n){var i,a,c;return e(this,m),i=r.call(this,n),s(o(i),"handleSelectEmoji",(function(t){return i.setState((function(e){var n=e.comment;return{comment:"".concat(n).concat(t.native)}}))})),s(o(i),"postComment",(a=t(l.mark((function t(e){var n;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.props.postComment(e);case 3:n=t.sent,t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.error(t.t0.message);case 9:return t.abrupt("return",n);case 10:case"end":return t.stop()}}),t,null,[[0,6]])}))),function(t){return a.apply(this,arguments)})),s(o(i),"patchComment",(c=t(l.mark((function t(e){var n,o,a,r;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.props,o=n.editFeedItemId,a=n.editCommentId,t.prev=1,t.next=4,T(o,a,e);case 4:r=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),console.error(t.t0.message);case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t,null,[[1,7]])}))),function(t){return c.apply(this,arguments)})),s(o(i),"clearCommentField",(function(t){i.setState({comment:"",attachmentUrl:null,attachmentName:null,attachmentSize:null},(function(){i.focusOnRef(),t&&"function"==typeof t&&t()}))})),s(o(i),"handleKeyDown",(function(t){var e=t.key;"Escape"===e&&i.props.exitEditMode(),"Enter"===e&&(M()||(t.preventDefault(),i.handleSendComment()))})),s(o(i),"handleAttachmentLoadingError",(function(t){i.setState({attachmentUrl:null,attachmentName:null,attachmentSize:null,attachmentLoadingError:t})})),s(o(i),"handleFileUpload",(function(t,e,n){i.setState({attachmentUrl:t,attachmentName:e,attachmentSize:n,attachmentLoadingError:null})})),s(o(i),"handleNativeFileUpload",(function(){var t=i.state.comment;i.isEditMode?(B(t),i.clearCommentField(i.props.exitEditMode)):(w(t),i.clearCommentField())})),s(o(i),"handleFileDelete",(function(){return i.setState({attachmentUrl:null,attachmentName:null,attachmentSize:null})})),s(o(i),"handleSendComment",t(l.mark((function t(){var e,n,o;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=i.state.comment?i.state.comment.trim():null)||i.state.attachmentUrl){t.next=3;break}return t.abrupt("return");case 3:if(n={comment:{body:e,attachment:{url:i.state.attachmentUrl,size:i.state.attachmentSize,file_name:i.state.attachmentName}}},!i.isEditMode){t.next=16;break}return i.props.setIsEditting(!0),t.next=8,i.patchComment(n);case 8:return o=t.sent,t.next=11,i.props.patchCommentCallback(o);case 11:i.props.setIsEditting(!1),i.clearCommentField(),i.props.exitEditMode(),t.next=24;break;case 16:return i.props.setIsPosting(!0),t.next=19,i.postComment(n);case 19:return o=t.sent,t.next=22,i.props.postCommentCallback(o);case 22:i.props.setIsPosting(!1),i.clearCommentField();case 24:case"end":return t.stop()}}),t)})))),s(o(i),"handleCancelClick",(function(){i.setState({comment:"",attachmentUrl:null,attachmentName:null,attachmentSize:null},i.props.exitEditMode())})),i.state={comment:"",attachmentUrl:null,attachmentName:null,attachmentSize:null,attachmentLoadingError:null,isInputFocused:!1},i}return n(m,[{key:"componentDidMount",value:function(){this.isEditMode&&this.setInitialCommentValue()}},{key:"componentDidUpdate",value:function(t){(this.isEditMode&&!t.editFeedItemId||this.props.editCommentId&&this.props.editCommentId!==t.editCommentId)&&this.setInitialCommentValue()}},{key:"isEditMode",get:function(){return!!this.props.editFeedItemId}},{key:"setInitialCommentValue",value:function(){var t=this.props.editAttachment?this.props.editAttachment.url:null;this.setState({comment:this.props.editComment,attachmentUrl:t,attachmentName:t?this.props.editAttachment.file_name||R.getFileNameWithExtensionFromPath(t):null,attachmentSize:this.props.editAttachment?this.props.editAttachment.size:null})}},{key:"focusOnRef",value:function(){this.props.inputRef&&this.props.inputRef.current.focus()}},{key:"render",value:function(){var t,e=this,n=this.props,o=n.classes,i=n.currentUser,a="".concat(v(i,["attributes","first_name"])||v(i,"first_name")," ").concat(v(i,["attributes","last_name"])||v(i,"last_name")),r=this.state.isInputFocused||this.state.attachmentUrl||this.state.comment||this.props.editComment||(null===(t=this.props.editAttachment)||void 0===t?void 0:t.url);return P("div",{style:this.props.spaceAround?_.commentTextFieldContainerSpaceAround:_.commentTextFieldContainer,children:[z("div",{style:_.chatAvatarWrapper,children:z(y,{displayName:a,size:32,imgSrc:this.props.currentUser&&this.props.currentUser.profile_photo})}),z(d,{className:this.props.classes.paperRoot,children:z(h,{"data-testid":"".concat("commentInput","_input"),placeholder:"Type here",FormHelperTextProps:{component:"div",margin:"dense"},InputProps:{inputComponent:U,inputProps:{onChange:function(t){return e.setState({comment:t})},singleLine:!0,value:this.state.comment||"",inputRef:this.props.inputRef,withLightTheme:!1,onMount:this.props.onMount,companyId:this.props.companyId,autoFocus:this.props.autoFocus,disabled:this.props.disabled,onFocus:function(){return e.setState({isInputFocused:!0})},onBlur:function(){return e.setState({isInputFocused:!1})},allowSuggestionsAboveCursor:!0},endAdornment:!this.props.isNative&&P(f,{position:"end",className:this.props.classes.inputAdornment,children:[!this.state.attachmentUrl&&z(g,{title:"Attach File",placement:"bottom",classes:{tooltip:o.iconTooltip},children:z("div",{className:I(L.cCommentInputIconContainer,L.cCommentInputIconUpload),children:z(E,{openPreviewDialogOnUpload:!1,disableRipple:!0,onFinish:this.handleFileUpload,onError:this.handleAttachmentLoadingError,fileUploadIconClassName:this.props.classes.additionalActionButton,htmlColor:x[400],inputId:"comment-attachment-".concat(this.props.editCommentId||this.props.parentId)})})}),z(g,{title:"Add Emoji",placement:"bottom",classes:{tooltip:o.iconTooltip},children:z("div",{className:L.cCommentInputIconContainer,children:z(F,{"data-testid":"".concat("commentInput","_emojiButton"),handleSelectEmoji:this.handleSelectEmoji,emojiIconClassName:this.props.classes.additionalActionButton,htmlColor:x[400],disableRipple:!0})})})]}),disableUnderline:!0,classes:{root:this.props.classes.inputRoot,input:this.props.classes.inputEl}},className:this.props.classes.input,onKeyDown:this.handleKeyDown})}),this.state.attachmentLoadingError&&z(S,{errorMessage:this.state.attachmentLoadingError,className:this.props.classes.fileUploadingError}),this.state.attachmentUrl&&z(N,{fileName:this.state.attachmentName,fileUrl:this.state.attachmentUrl,handleFileDelete:this.handleFileDelete,classes:this.props.classes}),z(C,{in:r,mountOnEnter:!0,unmountOnExit:!0,children:P("div",{className:L.cCommentInputSendContainer,children:[z("div",{className:L.cCommentInputSendContainerCancel,children:z(b,{"data-testid":"".concat("commentInput","_cancel"),variant:"caption",className:I(this.props.classes.inputMain,this.props.classes.cancelText,this.props.classes.highlightedLabel),component:"div",gutterBottom:!0,onClick:this.handleCancelClick,children:"Cancel"})}),P("div",{className:L.cCommentInputSendContainerSend,children:[P(b,{variant:"caption",className:I(this.props.classes.inputMain,this.props.classes.inputHelper),component:"div",gutterBottom:!0,children:["Press ",z(b,{variant:"caption",color:"primary",className:I(this.props.classes.inputMain,this.props.classes.highlightedLabel),children:"Enter"})," to send"]}),z(k,{size:"large",tooltipProps:{title:"Send"},"data-testid":"".concat("commentInput","_sendButton"),onClick:this.handleSendComment,classes:{root:this.props.classes.sendButton},children:z(A,{})})]})]})})]})}}]),m}();O.propTypes={inputRef:m.shape({current:m.shape({focus:m.shape({})})}),editFeedItemId:m.number,editCommentId:m.number,editComment:m.string,editAttachment:m.shape({url:m.string,size:m.number,file_name:m.string}),spaceAround:m.bool,postComment:m.func.isRequired,postCommentCallback:m.func,patchCommentCallback:m.func,exitEditMode:m.func,setIsPosting:m.func,setIsEditting:m.func,onMount:m.func,autoFocus:m.bool,disabled:m.bool,classes:m.shape({}).isRequired,currentUser:m.shape(),isNative:m.bool,companyId:m.number,parentId:m.string},O.defaultProps={inputRef:null,editFeedItemId:null,editCommentId:null,parentId:null,editComment:null,editAttachment:{},spaceAround:!1,setIsPosting:p,setIsEditting:p,onMount:p,autoFocus:void 0,disabled:!1,patchCommentCallback:p,postCommentCallback:p,exitEditMode:p,companyId:null,currentUser:{},isNative:j};var H=u((function(t){return{paperRoot:{width:"calc(100% - 48px)",marginLeft:48,display:"inline-block",height:32,border:"0","&:focus-within":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.primary.main)},boxShadow:"none",background:"#4D4D4D"},input:{paddingLeft:5,width:"100%"},inputRoot:{height:32,paddingRight:"8px",lineHeight:"29px",paddingLeft:"8px"},inputEl:{padding:"0 0 0 6px",height:"100%"},additionalActionButton:{padding:"6px"},nativeActionButton:{margin:"5px 10px",cursor:"pointer"},fileUploadingError:{marginTop:10,marginLeft:24},inputMain:{marginBottom:0,fontSize:"11px",color:t.palette.primary.text8},inputHelper:{display:"flex",paddingRight:5},cancelText:{cursor:"pointer"},highlightedLabel:{color:t.palette.primary.main},iconTooltip:{marginTop:"3px"},sendButton:{"&:hover":{backgroundColor:"rgba(3,188,212, 0.1)"},"&.MuiButtonBase-root":{padding:7}},inputAdornment:{marginBottom:"0!important",height:"100%"}}}))(O);export{H as default};
|
|
1
|
+
import t from"@babel/runtime/helpers/asyncToGenerator";import e from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/assertThisInitialized";import i from"@babel/runtime/helpers/inherits";import a from"@babel/runtime/helpers/possibleConstructorReturn";import r from"@babel/runtime/helpers/getPrototypeOf";import s from"@babel/runtime/helpers/defineProperty";import l from"@babel/runtime/regenerator";import{PureComponent as c}from"react";import m from"prop-types";import p from"lodash/noop";import{withStyles as u}from"@material-ui/core/styles";import{Paper as d,TextField as h,InputAdornment as f,Tooltip as g,Collapse as C,Typography as b}from"@material-ui/core";import I from"classnames";import{get as v}from"lodash";import x from"@material-ui/core/colors/grey";import y from"../Avatar/index.js";import E from"../FileUploadIconButton.js";import F from"../EmojiIconButton.js";import S from"../FailedFileUploading.js";import U from"../UserMention/index.js";import N from"../FilePreview/index.js";import k from"../IconButton/index.js";import A from"../Icons/SendIcon.js";import{isSuggestionsListOpened as M}from"../UserMention/utils/index.js";import R from"../../utils/main.js";import{isNativeDetected as j}from"../../utils/mobileDetect.js";import{notifyCommentEdit as B,notifyCommentPost as w}from"../../utils/nativeMessages.js";import{patchFeedItemComment as T}from"../../clients/jsonApi/index.js";import L from"./styles.css.js";import{jsxs as P,jsx as z}from"react/jsx-runtime";function D(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=r(t);if(e){var i=r(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return a(this,n)}}var _={chatAvatarWrapper:{display:"flex",alignItems:"center",position:"absolute",left:0,height:32},commentTextFieldContainer:{position:"relative",margin:"0"},commentTextFieldContainerSpaceAround:{position:"relative",margin:"20px 10px"}},O=function(a){i(m,c);var r=D(m);function m(n){var i,a,c;return e(this,m),i=r.call(this,n),s(o(i),"handleSelectEmoji",(function(t){return i.setState((function(e){var n=e.comment;return{comment:"".concat(n).concat(t.native)}}))})),s(o(i),"postComment",(a=t(l.mark((function t(e){var n;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.props.postComment(e);case 3:n=t.sent,t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.error(t.t0.message);case 9:return t.abrupt("return",n);case 10:case"end":return t.stop()}}),t,null,[[0,6]])}))),function(t){return a.apply(this,arguments)})),s(o(i),"patchComment",(c=t(l.mark((function t(e){var n,o,a,r;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.props,o=n.editFeedItemId,a=n.editCommentId,t.prev=1,t.next=4,T(o,a,e);case 4:r=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),console.error(t.t0.message);case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t,null,[[1,7]])}))),function(t){return c.apply(this,arguments)})),s(o(i),"clearCommentField",(function(t){i.setState({comment:"",attachmentUrl:null,attachmentName:null,attachmentSize:null},(function(){i.focusOnRef(),t&&"function"==typeof t&&t()}))})),s(o(i),"handleKeyDown",(function(t){var e=t.key;"Escape"===e&&i.props.exitEditMode(),"Enter"===e&&(M()||(t.preventDefault(),i.handleSendComment()))})),s(o(i),"handleAttachmentLoadingError",(function(t){i.setState({attachmentUrl:null,attachmentName:null,attachmentSize:null,attachmentLoadingError:t})})),s(o(i),"handleFileUpload",(function(t,e,n){i.setState({attachmentUrl:t,attachmentName:e,attachmentSize:n,attachmentLoadingError:null})})),s(o(i),"handleNativeFileUpload",(function(){var t=i.state.comment;i.isEditMode?(B(t),i.clearCommentField(i.props.exitEditMode)):(w(t),i.clearCommentField())})),s(o(i),"handleFileDelete",(function(){return i.setState({attachmentUrl:null,attachmentName:null,attachmentSize:null})})),s(o(i),"handleSendComment",t(l.mark((function t(){var e,n,o;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=i.state.comment?i.state.comment.trim():null)||i.state.attachmentUrl){t.next=3;break}return t.abrupt("return");case 3:if(n={comment:{body:e,attachment:{url:i.state.attachmentUrl,size:i.state.attachmentSize,file_name:i.state.attachmentName}}},!i.isEditMode){t.next=16;break}return i.props.setIsEditting(!0),t.next=8,i.patchComment(n);case 8:return o=t.sent,t.next=11,i.props.patchCommentCallback(o);case 11:i.props.setIsEditting(!1),i.clearCommentField(),i.props.exitEditMode(),t.next=24;break;case 16:return i.props.setIsPosting(!0),t.next=19,i.postComment(n);case 19:return o=t.sent,t.next=22,i.props.postCommentCallback(o);case 22:i.props.setIsPosting(!1),i.clearCommentField();case 24:case"end":return t.stop()}}),t)})))),s(o(i),"handleCancelClick",(function(){i.setState({comment:"",attachmentUrl:null,attachmentName:null,attachmentSize:null},i.props.exitEditMode())})),i.state={comment:"",attachmentUrl:null,attachmentName:null,attachmentSize:null,attachmentLoadingError:null,isInputFocused:!1},i}return n(m,[{key:"componentDidMount",value:function(){this.isEditMode&&this.setInitialCommentValue()}},{key:"componentDidUpdate",value:function(t){(this.isEditMode&&!t.editFeedItemId||this.props.editCommentId&&this.props.editCommentId!==t.editCommentId)&&this.setInitialCommentValue()}},{key:"isEditMode",get:function(){return!!this.props.editFeedItemId}},{key:"setInitialCommentValue",value:function(){var t=this.props.editAttachment?this.props.editAttachment.url:null;this.setState({comment:this.props.editComment,attachmentUrl:t,attachmentName:t?this.props.editAttachment.file_name||R.getFileNameWithExtensionFromPath(t):null,attachmentSize:this.props.editAttachment?this.props.editAttachment.size:null})}},{key:"focusOnRef",value:function(){this.props.inputRef&&this.props.inputRef.current.focus()}},{key:"render",value:function(){var t,e=this,n=this.props,o=n.classes,i=n.currentUser,a="".concat(v(i,["attributes","first_name"])||v(i,"first_name")," ").concat(v(i,["attributes","last_name"])||v(i,"last_name")),r=this.state.isInputFocused||this.state.attachmentUrl||this.state.comment||this.props.editComment||(null===(t=this.props.editAttachment)||void 0===t?void 0:t.url);return P("div",{style:this.props.spaceAround?_.commentTextFieldContainerSpaceAround:_.commentTextFieldContainer,children:[z("div",{style:_.chatAvatarWrapper,children:z(y,{displayName:a,size:32,imgSrc:this.props.currentUser&&this.props.currentUser.profile_photo})}),z(d,{className:this.props.classes.paperRoot,children:z(h,{"data-testid":"".concat("commentInput","_input"),placeholder:"Type Comment",FormHelperTextProps:{component:"div",margin:"dense"},InputProps:{inputComponent:U,inputProps:{onChange:function(t){return e.setState({comment:t})},singleLine:!0,value:this.state.comment||"",inputRef:this.props.inputRef,withLightTheme:!1,onMount:this.props.onMount,companyId:this.props.companyId,autoFocus:this.props.autoFocus,disabled:this.props.disabled,onFocus:function(){return e.setState({isInputFocused:!0})},onBlur:function(){return e.setState({isInputFocused:!1})},allowSuggestionsAboveCursor:!0},endAdornment:!this.props.isNative&&P(f,{position:"end",className:this.props.classes.inputAdornment,children:[!this.state.attachmentUrl&&z(g,{title:"Attach File",placement:"bottom",classes:{tooltip:o.iconTooltip},children:z("div",{className:I(L.cCommentInputIconContainer,L.cCommentInputIconUpload),children:z(E,{openPreviewDialogOnUpload:!1,disableRipple:!0,onFinish:this.handleFileUpload,onError:this.handleAttachmentLoadingError,fileUploadIconClassName:this.props.classes.additionalActionButton,htmlColor:x[400],inputId:"comment-attachment-".concat(this.props.editCommentId||this.props.parentId)})})}),z(g,{title:"Add Emoji",placement:"bottom",classes:{tooltip:o.iconTooltip},children:z("div",{className:L.cCommentInputIconContainer,children:z(F,{"data-testid":"".concat("commentInput","_emojiButton"),handleSelectEmoji:this.handleSelectEmoji,emojiIconClassName:this.props.classes.additionalActionButton,htmlColor:x[400],disableRipple:!0})})})]}),disableUnderline:!0,classes:{root:this.props.classes.inputRoot,input:this.props.classes.inputEl}},className:this.props.classes.input,onKeyDown:this.handleKeyDown})}),this.state.attachmentLoadingError&&z(S,{errorMessage:this.state.attachmentLoadingError,className:this.props.classes.fileUploadingError}),this.state.attachmentUrl&&z(N,{fileName:this.state.attachmentName,fileUrl:this.state.attachmentUrl,handleFileDelete:this.handleFileDelete,classes:this.props.classes}),z(C,{in:r,mountOnEnter:!0,unmountOnExit:!0,children:P("div",{className:L.cCommentInputSendContainer,children:[z("div",{className:L.cCommentInputSendContainerCancel,children:z(b,{"data-testid":"".concat("commentInput","_cancel"),variant:"caption",className:I(this.props.classes.inputMain,this.props.classes.cancelText,this.props.classes.highlightedLabel),component:"div",gutterBottom:!0,onClick:this.handleCancelClick,children:"Cancel"})}),P("div",{className:L.cCommentInputSendContainerSend,children:[P(b,{variant:"caption",className:I(this.props.classes.inputMain,this.props.classes.inputHelper),component:"div",gutterBottom:!0,children:["Press ",z(b,{variant:"caption",color:"primary",className:I(this.props.classes.inputMain,this.props.classes.highlightedLabel),children:"Enter"})," to send"]}),z(k,{size:"large",tooltipProps:{title:"Send"},"data-testid":"".concat("commentInput","_sendButton"),onClick:this.handleSendComment,classes:{root:this.props.classes.sendButton},children:z(A,{})})]})]})})]})}}]),m}();O.propTypes={inputRef:m.shape({current:m.shape({focus:m.shape({})})}),editFeedItemId:m.number,editCommentId:m.number,editComment:m.string,editAttachment:m.shape({url:m.string,size:m.number,file_name:m.string}),spaceAround:m.bool,postComment:m.func.isRequired,postCommentCallback:m.func,patchCommentCallback:m.func,exitEditMode:m.func,setIsPosting:m.func,setIsEditting:m.func,onMount:m.func,autoFocus:m.bool,disabled:m.bool,classes:m.shape({}).isRequired,currentUser:m.shape(),isNative:m.bool,companyId:m.number,parentId:m.string},O.defaultProps={inputRef:null,editFeedItemId:null,editCommentId:null,parentId:null,editComment:null,editAttachment:{},spaceAround:!1,setIsPosting:p,setIsEditting:p,onMount:p,autoFocus:void 0,disabled:!1,patchCommentCallback:p,postCommentCallback:p,exitEditMode:p,companyId:null,currentUser:{},isNative:j};var H=u((function(t){return{paperRoot:{width:"calc(100% - 48px)",marginLeft:48,display:"inline-block",height:32,border:"0","&:focus-within":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.primary.main)},boxShadow:"none",background:"#4D4D4D"},input:{paddingLeft:5,width:"100%"},inputRoot:{height:32,paddingRight:"8px",lineHeight:"29px",paddingLeft:"8px"},inputEl:{padding:"0 0 0 6px",height:"100%"},additionalActionButton:{padding:"6px"},nativeActionButton:{margin:"5px 10px",cursor:"pointer"},fileUploadingError:{marginTop:10,marginLeft:24},inputMain:{marginBottom:0,fontSize:"11px",color:t.palette.primary.text8},inputHelper:{display:"flex",paddingRight:5},cancelText:{cursor:"pointer"},highlightedLabel:{color:t.palette.primary.main},iconTooltip:{marginTop:"3px"},sendButton:{"&:hover":{backgroundColor:"rgba(3,188,212, 0.1)"},"&.MuiButtonBase-root":{padding:7}},inputAdornment:{marginBottom:"0!important",height:"100%"}}}))(O);export{H as default};
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
appSettingsPopoverProps
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AppSideBarProps } from '~/components/DevCenter/AppSideBar/AppSideBar';
|
|
3
|
+
import { AppSettingsPopoverProps } from '~/components/DevCenter/AppSettingsPopover/AppSettingsPopover';
|
|
4
|
+
export interface AppFilterPanelLayoutProps {
|
|
5
|
+
appSettingsPopoverProps?: AppSettingsPopoverProps;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
classes: {
|
|
8
|
+
appLayout?: string;
|
|
9
|
+
content?: string;
|
|
10
|
+
contentWrapper?: string;
|
|
11
|
+
header?: string;
|
|
12
|
+
};
|
|
13
|
+
header?: ReactNode;
|
|
14
|
+
sideBarContent: ReactNode;
|
|
15
|
+
sideBarProps?: AppSideBarProps;
|
|
16
|
+
}
|
|
17
|
+
export declare const AppFilterPanelLayout: ({ appSettingsPopoverProps, children, classes, header, sideBarContent, sideBarProps, }: AppFilterPanelLayoutProps) => JSX.Element;
|
|
9
18
|
//# sourceMappingURL=AppFilterPanelLayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppFilterPanelLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.
|
|
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;AACpG,OAAO,EAEL,uBAAuB,EACxB,MAAM,8DAA8D,CAAC;AAyCtE,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;AAED,eAAO,MAAM,oBAAoB,0FAO9B,yBAAyB,KAAG,WA8C9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"
|
|
1
|
+
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as r}from"react/jsx-runtime";import{makeStyles as i,useTheme as o}from"@material-ui/core";import n from"classnames";import a from"@material-ui/icons/Sort";import p from"../AppSideBar/AppSideBar.js";import{AppSettingsPopover as s}from"../AppSettingsPopover/AppSettingsPopover.js";import l from"../../Button/index.js";import{useMatchAppContainerSize as c}from"../../../effects/useMatchAppContainerSize.js";import{isNativeDetected as d,isMobileDetected as m}from"../../../utils/mobileDetect.js";var h=i({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"}}),f=function(i){var f=i.appSettingsPopoverProps,g=i.children,u=i.classes,v=void 0===u?{}:u,x=i.header,j=i.sideBarContent,y=i.sideBarProps,S=h(),w=o(),A=c({width:{max:w.breakpoints.width("md")}}),C=d||m||A;return t("div",e({className:n(S.appLayout,v.appLayout)},{children:[C&&t("div",e({className:n(S.header,v.header)},{children:[r(s,e({Trigger:function(t){return r(l,e({startIcon:r(a,{})},t,{children:"Filters"}))},classes:{popoverContent:S.popoverContent},header:"Filters",anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},f,{children:j})),x]})),t("div",e({className:n(S.contentWrapper,v.contentWrapper)},{children:[!C&&r(p,e({},y,{anchor:"left"},{children:j})),r("div",e({className:n(S.content,v.content)},{children:g}))]}))]}))};export{f as AppFilterPanelLayout};
|
package/components/DevCenter/AppFilterPanelLayout/__tests__/AppFilterPanelLayout.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppFilterPanelLayout.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/AppFilterPanelLayout/__tests__/AppFilterPanelLayout.test.js"],"names":[],"mappings":""}
|
|
@@ -1,55 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
1
|
+
import { ReactNode } from 'react';
|
|
3
2
|
import { PopoverProps } from '@material-ui/core';
|
|
4
|
-
interface AppSettingsPopoverProps extends
|
|
3
|
+
export interface AppSettingsPopoverProps extends PopoverProps {
|
|
4
|
+
Trigger: ReactNode;
|
|
5
|
+
children: ReactNode;
|
|
5
6
|
classes: PopoverProps['classes'] & {
|
|
6
7
|
popoverContent?: string;
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
tooltipProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
16
|
-
title: PropTypes.Requireable<string>;
|
|
17
|
-
}>>;
|
|
18
|
-
}>>;
|
|
19
|
-
defaultScrollable: PropTypes.Requireable<boolean>;
|
|
20
|
-
maxHeight: PropTypes.Requireable<number>;
|
|
21
|
-
header: PropTypes.Requireable<string>;
|
|
22
|
-
modalActions: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
23
|
-
modalProps: PropTypes.Requireable<any>;
|
|
24
|
-
modalType: PropTypes.Requireable<string>;
|
|
25
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
|
-
};
|
|
27
|
-
var defaultProps: {
|
|
28
|
-
defaultScrollable: boolean;
|
|
29
|
-
header: string;
|
|
30
|
-
iconSettingsProps: {};
|
|
31
|
-
maxHeight: any;
|
|
32
|
-
modalActions: any;
|
|
33
|
-
modalProps: {};
|
|
34
|
-
modalType: string;
|
|
35
|
-
onClose: () => void;
|
|
9
|
+
defaultScrollable?: boolean;
|
|
10
|
+
header?: ReactNode;
|
|
11
|
+
iconSettingsProps?: {
|
|
12
|
+
iconSize?: string;
|
|
13
|
+
tooltipProps?: {
|
|
14
|
+
title: string;
|
|
15
|
+
};
|
|
36
16
|
};
|
|
17
|
+
maxHeight?: number;
|
|
18
|
+
modalActions?: ReactNode;
|
|
19
|
+
modalProps?: {};
|
|
20
|
+
onClose?: () => void;
|
|
37
21
|
}
|
|
38
|
-
declare
|
|
39
|
-
Trigger: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
40
|
-
iconSettingsProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
41
|
-
iconSize: PropTypes.Requireable<string>;
|
|
42
|
-
tooltipProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
43
|
-
title: PropTypes.Requireable<string>;
|
|
44
|
-
}>>;
|
|
45
|
-
}>>;
|
|
46
|
-
defaultScrollable: PropTypes.Requireable<boolean>;
|
|
47
|
-
maxHeight: PropTypes.Requireable<number>;
|
|
48
|
-
header: PropTypes.Requireable<string>;
|
|
49
|
-
modalActions: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
50
|
-
modalProps: PropTypes.Requireable<any>;
|
|
51
|
-
modalType: PropTypes.Requireable<string>;
|
|
52
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
53
|
-
};
|
|
54
|
-
export default AppSettingsPopover;
|
|
22
|
+
export declare function AppSettingsPopover({ Trigger, children, classes, defaultScrollable, header, iconSettingsProps, maxHeight, modalActions, modalProps, onClose, ...popoverProps }: AppSettingsPopoverProps): JSX.Element;
|
|
55
23
|
//# sourceMappingURL=AppSettingsPopover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":"
|
|
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;AA0EtE,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
|
|
1
|
+
import{__rest as o,__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i,Fragment as r}from"react/jsx-runtime";import{useState as n}from"react";import l from"classnames";import{makeStyles as a,Popover as c}from"@material-ui/core";import{Settings as s,Close as d}from"@material-ui/icons";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%)")},modalRoot:{"& > div:first-child":{backgroundColor:"transparent !important"}},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,H=a.header,S=void 0===H?"Settings":H,w=a.iconSettingsProps,T=void 0===w?{}:w,j=a.maxHeight,N=void 0===j?null:j,P=a.modalActions,y=void 0===P?null:P,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=n(null),E=D[0],M=D[1],R=n(!0),Y=R[0],L=R[1],W=f({maxHeight:N,isScrollable:Y,isNativeDetected:p}),X=C||{},_=X.popoverContent,q=o(X,["popoverContent"]),F=function(){M(null),I()},G=Boolean(E),J=function(o){return M(o.currentTarget)},K=y||t(u,e({variation:"secondary",onClick:F},{children:"CLOSE"}));return i(r,{children:[m?t(m,{onClick:J}):t(h,e({isActive:G,onClick:J,size:"small",tooltipProps:{title:"Settings"},variant:"contained"},T,{children:t(s,{})})),!v&&i(c,e({open:G,anchorEl:E,onClose:F,anchorOrigin:{vertical:Y?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},O,{classes:e(e({},q),{paper:l(W.popoverPaper,Y&&"scrollable",null==q?void 0:q.paper)})},{children:[i("div",e({className:l(W.popoverHeader,Y&&"scrollable")},{children:[t("div",e({className:W.headerTitle},{children:S})),t(h,e({tooltipProps:{title:"Close"},onClick:F},{children:t(d,{})}))]})),t("div",e({className:l(W.popoverContentContainer,Y&&"scrollable"),ref:function(o){o&&o.scrollHeight<=o.clientHeight&&!k&&L(!1)}},{children:t("div",e({className:l(W.popoverContent,_)},{children:b}))})),t("div",{className:W.shadow})]})),v&&t(g,e({actions:K,onClose:F,open:G,rootClassName:W.modalRoot,actionsClassName:W.modalActions,title:S},A,{children:b}))]})}export{b as AppSettingsPopover};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './AppSettingsPopover';
|
|
1
|
+
export { AppSettingsPopover as default } from './AppSettingsPopover';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
declare type Anchor = 'left' | 'right';
|
|
4
|
-
interface AppSideBarProps extends PropTypes.InferProps<typeof appSideBarPropTypes> {
|
|
4
|
+
export interface AppSideBarProps extends PropTypes.InferProps<typeof appSideBarPropTypes> {
|
|
5
5
|
anchor: Anchor;
|
|
6
6
|
}
|
|
7
7
|
declare const AppSideBar: {
|
|
@@ -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;AAoBnC,aAAK,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/B,
|
|
1
|
+
{"version":3,"file":"AppSideBar.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSideBar/AppSideBar.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAoBnC,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;AAmHD,QAAA,MAAM,UAAU;gPAgBb,eAAe,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+F/B,CAAC;AAEF,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;CAgBxB,CAAC;AAqBF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useContext as o,useState as i}from"react";import r from"classnames";import{pickBy as n,pick as s,noop as p}from"lodash";import{useTheme as a}from"@material-ui/core";import m from"../../Icons/AnnotationIcon.js";import l from"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import{AnnotationsProvider as d}from"../../Annotations/AnnotationsContext.js";import{jsx as c,jsxs as j,Fragment as u}from"react/jsx-runtime";import C from"./components/AppActions/AppActions.js";import g from"./components/AppSettingsDialog/AppSettingsDialog.js";import"./components/AnnotationsButton/AnnotationsButton.js";import A from"./components/NonPriorityMenus/NonPriorityMenus.js";import f from"./components/FullscreenButton/FullscreenButton.js";import"./components/AppInfoMessage/AppInfoMessage.js";import b from"./components/DevCenterAppView/DevCenterAppView.js";import{DcFullscreenElemsCoordinatorProvider as h}from"./components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"./components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import{IsInsideDcAppProvider as S}from"./components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../Modal/CorvaModal.js";import"uuid";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../AppHeader/AppHeader.js";import"../AppSideBar/AppSideBar.js";import"../AppsDataProvider/AppsDataProvider.js";import{isNativeDetected as I,isMobileDetected as P}from"../../../utils/mobileDetect.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 v from"../../../effects/useDevCenterApp.js";import"../../../utils/index.js";import{DEV_CENTER_CLI_APP_ID as x}from"../../../constants/devcenter.js";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../GradientManager/configuration/constants.js";import{getAppSegment as D,getAppName as y,getTimestampFromQuery as T}from"../../../utils/devcenter.js";import{HelpCenterIcon as M}from"../../HelpCenter/HelpCenterIcon.js";import L from"./effects/useAppSettings.js";import B from"./effects/useAnnotationsList.js";import E from"./effects/useAnnotationsData.js";import O from"./effects/useAppMaximized.js";import k from"../AppContext.js";import F from"./DevCenterAppContainer.css.js";import w from"./components/RestoreAppSizeButton/index.js";import{getAppVersion as V,getAppAvailability as W}from"./utils.js";import H from"./components/PriorityMenus/PriorityMenus.js";import{DevCenterRouterContext as R}from"../DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.js";import"../AppSettingsPopover/AppSettingsPopover.js";import"../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../AssetEditor/index.js";import"../../AppVersionsSelect/AppVersionsSelect.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../../Typography.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"../../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/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"../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../TruncatedText/index.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 z from"../../IconButton/index.js";import"../../TextField/index.js";import"../../Chip/index.js";import"../../Counter/index.js";import"../../AnchorsList/AnchorsList.js";import"../../Select/index.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"../../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"../../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 G from"../../Toaster/ToastContainer.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"../../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"../../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{showSuccessNotification as N}from"../../../utils/notificationToasts.js";function _(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function U(e){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?_(Object(i),!0).forEach((function(o){t(e,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):_(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Z=I||P,q="DevCenter_AppContainer";function K(t){var P,_,K,J,Q,X=t.CLIAppComponent,Y=t.CLIAppSettings,$=t.app,tt=t.appId,et=t.className,ot=t.coordinates,it=t.currentDashboardAppsLastAnnotations,rt=t.currentUser,nt=t.devCenterRouter,st=t.isActionsDisabled,pt=t.isSettingsDialogHidden,at=t.layoutEnvironment,mt=t.onAppContainerClick,lt=void 0===mt?p:mt,dt=t.onAppRemove,ct=t.onCloneDashboard,jt=t.onIsMaximizedChange,ut=t.onSettingChange,Ct=t.onSettingsChange,gt=t.setIsFullscreenModalMode,At=void 0===gt?p:gt,ft=t.updateCurrentDashboardAppLastAnnotation,bt=t.openIntercom,ht=void 0===bt?p:bt,St=t.timestamp,It=t.onHelpCenterClick,Pt=o(k),vt=a(),xt=i([]),Dt=e(xt,2),yt=Dt[0],Tt=Dt[1],Mt=i([]),Lt=e(Mt,2),Bt=Lt[0],Et=Lt[1],Ot=null!==(P=null==Pt?void 0:Pt[tt||$.id])&&void 0!==P?P:{isLoading:!0},kt=null===(_=$.package)||void 0===_||null===(K=_.manifest)||void 0===K?void 0:K.application,Ft=D($),wt=!(null==kt||null===(J=kt.ui)||void 0===J||!J.multi_rig),Vt=y($),Wt=O({onIsMaximizedChange:jt,devCenterRouter:nt,appId:tt}),Ht=Wt.isMaximized,Rt=Wt.setIsMaximized,zt=St||T(null===(Q=nt.location.query)||void 0===Q?void 0:Q.query),Gt=$.id===x,Nt=Gt&&Z?U(U({},ot),{},{w:12}):ot,_t=v({CLIAppComponent:X,CLIAppSettings:Y,app:$,version:V($)}),Ut=_t.isLoading,Zt=_t.AppSettings,qt=_t.AppComponent,Kt=L({setIsFullscreenModalMode:At}),Jt=Kt.isAppSettingsDialogOpened,Qt=Kt.toggleAppSettingsDialog,Xt=B(),Yt=Xt.isAnnotationsListOpened,$t=Xt.toggleAnnotationsList,te=Ut||!rt||!wt&&Ot.isLoading,ee=E({app:$,appData:Ot,currentDashboardAppsLastAnnotations:it}),oe=ee.appLastAnnotation,ie=ee.assetCompanyId,re=ee.assetIdForAnnotation,ne=ee.isAppSupportsAnnotations,se=n(s(Ot,["well","rig","fracFleet","wells"]),Boolean);return c(R.Provider,{value:nt,children:c(h,{setIsFullscreenModalMode:At,children:c(S,{value:!0,children:j("div",{className:r("dc-app-container",et,Ht&&"dc-app-container__maximized",vt.isLightTheme&&"dc-app-container__light-theme",F.container),"data-testid":"".concat(q,"_").concat($.app.name),onClick:function(){return lt()},children:[c(G,{}),c("div",{className:F.containerContent,children:c(b,{AppComponent:qt,app:$,appData:se,isAppLoading:Ut,availability:W($.availability,rt.company.with_subscription),isCLIApp:Gt,isLoading:te,isMultiRig:wt,layoutEnvironment:at,openIntercom:ht,segment:Ft,toggleAppSettingsDialog:Qt,appProps:{coordinates:Nt,currentUser:rt,devCenterRouter:nt,onSettingChange:ut,onSettingsChange:Ct,setIsFullscreenModalMode:At,setIsMaximized:Rt,setMainMenuItems:Tt,setSecondaryMenuItems:Et,appHeaderProps:U({app:$,appLastAnnotation:oe,appSettings:$.settings,coordinates:Nt,currentUser:rt,isMaximized:Ht,layoutEnvironment:at,onSettingChange:ut,toggleAnnotationsList:$t,updateCurrentDashboardAppLastAnnotation:ft},se),isNative:I,layoutEnvironment:at,timestamp:zt}})}),Jt&&c(g,{AppSettingsComponent:Zt,app:$,appData:Ot,appName:Vt,currentUser:rt,isMultiRig:wt,isSettingsDialogHidden:pt,layoutEnvironment:at,onAppRemove:dt,onCloneDashboard:ct,onSettingChange:ut,onSettingsChange:Ct,segment:Ft,timestamp:zt,toggleAppSettingsDialog:Qt}),Yt&&c(d,{children:c(l,{appId:$.app.id,appSettings:$.settings,appTitle:$.name,assetCompanyId:ie,assetId:re,currentUser:rt,onClose:$t,showSuccessNotification:N})}),!st&&Ht&&c(w,{setIsMaximized:Rt}),!st&&j(C,{children:[ne&&c(z,{"data-testid":"".concat(q,"_addAnnotation"),className:F.footerIconButton,tooltipProps:{title:!Z&&"Add Annotation"},onClick:$t,children:c(m,{})}),c(z,{"data-testid":"".concat(q,"_helpContent"),onClick:function(){return It()},className:F.footerIconButton,disabled:Gt,tooltipProps:{title:!Z&&"Help Center"},children:c(M,{appId:$.app.id,helpContentUpdatedAt:$.help_content_updated_at})}),Z&&!Ht?c(f,{setIsMaximized:Rt}):j(u,{children:[c(H,{menuItems:yt,devCenterRouter:nt,isMobileView:Z}),c(A,{devCenterRouter:nt,isMaximized:Ht,isMobileView:Z,menuItems:Bt,setIsFullscreenModalMode:At,setIsMaximized:Rt,toggleAppSettingsDialog:Qt})]})]})]})})})})}export{K as default};
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useContext as o,useState as i}from"react";import r from"classnames";import{pickBy as n,pick as s,noop as p}from"lodash";import{useTheme as a}from"@material-ui/core";import m from"../../Icons/AnnotationIcon.js";import l from"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import{AnnotationsProvider as d}from"../../Annotations/AnnotationsContext.js";import{jsx as c,jsxs as j,Fragment as u}from"react/jsx-runtime";import C from"./components/AppActions/AppActions.js";import g from"./components/AppSettingsDialog/AppSettingsDialog.js";import"./components/AnnotationsButton/AnnotationsButton.js";import A from"./components/NonPriorityMenus/NonPriorityMenus.js";import f from"./components/FullscreenButton/FullscreenButton.js";import"./components/AppInfoMessage/AppInfoMessage.js";import b from"./components/DevCenterAppView/DevCenterAppView.js";import{DcFullscreenElemsCoordinatorProvider as S}from"./components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"./components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import{IsInsideDcAppProvider as h}from"./components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../Modal/CorvaModal.js";import"uuid";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../AppHeader/AppHeader.js";import"../AppSideBar/AppSideBar.js";import"../AppsDataProvider/AppsDataProvider.js";import{isNativeDetected as I,isMobileDetected as P}from"../../../utils/mobileDetect.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 v from"../../../effects/useDevCenterApp.js";import"../../../utils/index.js";import{DEV_CENTER_CLI_APP_ID as x}from"../../../constants/devcenter.js";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import"../../GradientManager/configuration/constants.js";import{getAppSegment as D,getAppName as T,getTimestampFromQuery as y}from"../../../utils/devcenter.js";import{HelpCenterIcon as M}from"../../HelpCenter/HelpCenterIcon.js";import L from"./effects/useAppSettings.js";import B from"./effects/useAnnotationsList.js";import E from"./effects/useAnnotationsData.js";import O from"./effects/useAppMaximized.js";import k from"../AppContext.js";import F from"./DevCenterAppContainer.css.js";import w from"./components/RestoreAppSizeButton/index.js";import{getAppVersion as V,getAppAvailability as W}from"./utils.js";import H from"./components/PriorityMenus/PriorityMenus.js";import{DevCenterRouterContext as R}from"../DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.js";import"../AppSettingsPopover/AppSettingsPopover.js";import"../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../AssetEditor/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"../../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/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"../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../TruncatedText/index.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 z from"../../IconButton/index.js";import"../../TextField/index.js";import"../../Chip/index.js";import"../../Counter/index.js";import"../../AnchorsList/AnchorsList.js";import"../../Select/index.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"../../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"../../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{ToastContainer as G}from"../../Toaster/ToastContainer.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"../../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"../../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{showSuccessNotification as N}from"../../../utils/notificationToasts.js";function _(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function U(e){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?_(Object(i),!0).forEach((function(o){t(e,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):_(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Z=I||P,q="DevCenter_AppContainer";function K(t){var P,_,K,J,Q,X=t.CLIAppComponent,Y=t.CLIAppSettings,$=t.app,tt=t.appId,et=t.className,ot=t.coordinates,it=t.currentDashboardAppsLastAnnotations,rt=t.currentUser,nt=t.devCenterRouter,st=t.isActionsDisabled,pt=t.isSettingsDialogHidden,at=t.layoutEnvironment,mt=t.onAppContainerClick,lt=void 0===mt?p:mt,dt=t.onAppRemove,ct=t.onCloneDashboard,jt=t.onIsMaximizedChange,ut=t.onSettingChange,Ct=t.onSettingsChange,gt=t.setIsFullscreenModalMode,At=void 0===gt?p:gt,ft=t.updateCurrentDashboardAppLastAnnotation,bt=t.openIntercom,St=void 0===bt?p:bt,ht=t.timestamp,It=t.onHelpCenterClick,Pt=o(k),vt=a(),xt=i([]),Dt=e(xt,2),Tt=Dt[0],yt=Dt[1],Mt=i([]),Lt=e(Mt,2),Bt=Lt[0],Et=Lt[1],Ot=null!==(P=null==Pt?void 0:Pt[tt||$.id])&&void 0!==P?P:{isLoading:!0},kt=null===(_=$.package)||void 0===_||null===(K=_.manifest)||void 0===K?void 0:K.application,Ft=D($),wt=!(null==kt||null===(J=kt.ui)||void 0===J||!J.multi_rig),Vt=T($),Wt=O({onIsMaximizedChange:jt,devCenterRouter:nt,appId:tt}),Ht=Wt.isMaximized,Rt=Wt.setIsMaximized,zt=ht||y(null===(Q=nt.location.query)||void 0===Q?void 0:Q.query),Gt=$.id===x,Nt=Gt&&Z?U(U({},ot),{},{w:12}):ot,_t=v({CLIAppComponent:X,CLIAppSettings:Y,app:$,version:V($)}),Ut=_t.isLoading,Zt=_t.AppSettings,qt=_t.AppComponent,Kt=L({setIsFullscreenModalMode:At}),Jt=Kt.isAppSettingsDialogOpened,Qt=Kt.toggleAppSettingsDialog,Xt=B(),Yt=Xt.isAnnotationsListOpened,$t=Xt.toggleAnnotationsList,te=Ut||!rt||!wt&&Ot.isLoading,ee=E({app:$,appData:Ot,currentDashboardAppsLastAnnotations:it}),oe=ee.appLastAnnotation,ie=ee.assetCompanyId,re=ee.assetIdForAnnotation,ne=ee.isAppSupportsAnnotations,se=n(s(Ot,["well","rig","fracFleet","wells"]),Boolean);return c(R.Provider,{value:nt,children:c(S,{setIsFullscreenModalMode:At,children:c(h,{value:!0,children:j("div",{className:r("dc-app-container",et,Ht&&"dc-app-container__maximized",vt.isLightTheme&&"dc-app-container__light-theme",F.container),"data-testid":"".concat(q,"_").concat($.app.name),onClick:function(){return lt()},children:[c(G,{}),c("div",{className:F.containerContent,children:c(b,{AppComponent:qt,app:$,appData:se,isAppLoading:Ut,availability:W($.availability,rt.company.with_subscription),isCLIApp:Gt,isLoading:te,isMultiRig:wt,layoutEnvironment:at,openIntercom:St,segment:Ft,toggleAppSettingsDialog:Qt,appProps:{coordinates:Nt,currentUser:rt,devCenterRouter:nt,onSettingChange:ut,onSettingsChange:Ct,setIsFullscreenModalMode:At,setIsMaximized:Rt,setMainMenuItems:yt,setSecondaryMenuItems:Et,appHeaderProps:U({app:$,appLastAnnotation:oe,appSettings:$.settings,coordinates:Nt,currentUser:rt,isMaximized:Ht,layoutEnvironment:at,onSettingChange:ut,toggleAnnotationsList:$t,updateCurrentDashboardAppLastAnnotation:ft},se),isNative:I,layoutEnvironment:at,timestamp:zt}})}),Jt&&c(g,{AppSettingsComponent:Zt,app:$,appData:Ot,appName:Vt,currentUser:rt,isMultiRig:wt,isSettingsDialogHidden:pt,layoutEnvironment:at,onAppRemove:dt,onCloneDashboard:ct,onSettingChange:ut,onSettingsChange:Ct,segment:Ft,timestamp:zt,toggleAppSettingsDialog:Qt}),Yt&&c(d,{children:c(l,{appId:$.app.id,appSettings:$.settings,appTitle:$.name,assetCompanyId:ie,assetId:re,currentUser:rt,onClose:$t,showSuccessNotification:N})}),!st&&Ht&&c(w,{setIsMaximized:Rt}),!st&&j(C,{children:[ne&&c(z,{"data-testid":"".concat(q,"_addAnnotation"),className:F.footerIconButton,tooltipProps:{title:!Z&&"Add Annotation"},onClick:$t,children:c(m,{})}),c(z,{"data-testid":"".concat(q,"_helpContent"),onClick:function(){return It()},className:F.footerIconButton,disabled:Gt,tooltipProps:{title:!Z&&"Help Center"},children:c(M,{appId:$.app.id,helpContentUpdatedAt:$.help_content_updated_at})}),Z&&!Ht?c(f,{setIsMaximized:Rt}):j(u,{children:[c(H,{menuItems:Tt,devCenterRouter:nt,isMobileView:Z}),c(A,{devCenterRouter:nt,isMaximized:Ht,isMobileView:Z,menuItems:Bt,setIsFullscreenModalMode:At,setIsMaximized:Rt,toggleAppSettingsDialog:Qt})]})]})]})})})})}export{K as default};
|
package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"prop-types";import e from"@material-ui/icons/InfoOutlined";import{jsxs as i,jsx as o,Fragment as r}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../DevCenterAppView/DevCenterAppView.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";import"react";import"uuid";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import s from"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"classnames";import"lodash";import"@material-ui/core";import"../../../../Icons/AnnotationIcon.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../../../utils/mobileDetect.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"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../GradientManager/configuration/constants.js";import"../../../../../utils/index.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../AppContext.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../AppSettingsPopover/AppSettingsPopover.js";import"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../AssetEditor/index.js";import"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Typography.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"../../../../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/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"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.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"../../../../IconButton/index.js";import"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.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"../../../../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"../../../../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"../../../../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"../../../../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 n from"./AppInfoMessage.css.js";var p="AppInfoMessage";function m(t){var p=t.app,m=t.children,a=t.message,l=t.submessage;return i("div",{className:n.appInfoMessage,"data-testid":"AppInfoMessage",children:[o(s,{app:p}),i("div",{className:n.content,children:[m,!m&&i(r,{children:[o(e,{size:"large",className:n.infoIcon}),o("p",{className:n.message,children:a}),l&&o("p",{className:n.submessage,children:l})]})]})]})}m.propTypes={app:t.shape({}).isRequired,children:t.node,message:t.oneOfType([t.node,t.string]),submessage:t.string},m.defaultProps={message:"",submessage:"",children:null};export{p as PAGE_NAME,m as default};
|
|
1
|
+
import t from"prop-types";import e from"@material-ui/icons/InfoOutlined";import{jsxs as i,jsx as r,Fragment as o}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";import"../AppSettingsDialog/AppSettingsDialog.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../DevCenterAppView/DevCenterAppView.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";import"react";import"uuid";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import s from"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"classnames";import"lodash";import"@material-ui/core";import"../../../../Icons/AnnotationIcon.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../../../utils/mobileDetect.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"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../GradientManager/configuration/constants.js";import"../../../../../utils/index.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../AppContext.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../AppSettingsPopover/AppSettingsPopover.js";import"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../AssetEditor/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"../../../../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/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"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.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"../../../../IconButton/index.js";import"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.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"../../../../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"../../../../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"../../../../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"../../../../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 n from"./AppInfoMessage.css.js";var p="AppInfoMessage";function m(t){var p=t.app,m=t.children,a=t.message,l=t.submessage;return i("div",{className:n.appInfoMessage,"data-testid":"AppInfoMessage",children:[r(s,{app:p}),i("div",{className:n.content,children:[m,!m&&i(o,{children:[r(e,{size:"large",className:n.infoIcon}),r("p",{className:n.message,children:a}),l&&r("p",{className:n.submessage,children:l})]})]})]})}m.propTypes={app:t.shape({}).isRequired,children:t.node,message:t.oneOfType([t.node,t.string]),submessage:t.string},m.defaultProps={message:"",submessage:"",children:null};export{p as PAGE_NAME,m as default};
|
package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useState as i}from"react";import{func as o,shape as r,string as n,bool as s}from"prop-types";import{withStyles as p,Dialog as a,Tabs as m,DialogTitle as l,Divider as d,DialogContent as c,Tab as j,DialogActions as u}from"@material-ui/core";import{cloneDeep as C,get as g,noop as A}from"lodash";import b from"../../../../ErrorBoundary/ErrorBoundary.js";import f from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import{jsxs as h,jsx as S,Fragment as P}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../DevCenterAppView/DevCenterAppView.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";import"uuid";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"classnames";import"../../../../Icons/AnnotationIcon.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../../../utils/mobileDetect.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{DEV_CENTER_CLI_APP_ID as v}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENTS as D,SEGMENT_TO_ASSET_TYPE as x}from"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../GradientManager/configuration/constants.js";import"../../../../../utils/index.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../AppContext.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../AppSettingsPopover/AppSettingsPopover.js";import"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import y from"../../../../AssetEditor/index.js";import T from"../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../Typography.js";import"../../../../CollapsableSidebar.js";import"../../../../DateTimePicker/index.js";import"../../../../DatePicker/index.js";import"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";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/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"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.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 I from"../../../../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"../../../../IconButton/index.js";import"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.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"../../../../Casing/CasingTable/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTileIcon.js";import"../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../Casing/CasingTile/CasingTile.js";import E from"../../../../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 B from"../../../../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"../../../../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"../../../../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 k from"./RemoveAppButton.js";import O from"./AppDetails.js";import L from"./AppSettingsDialog.module.css.js";function w(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function F(e){for(var i=1;i<arguments.length;i++){var o=null!=arguments[i]?arguments[i]:{};i%2?w(Object(o),!0).forEach((function(i){t(e,i,o[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):w(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var M="DC_appSettings",R=p({paper:{minWidth:"50rem",height:"40rem"}})(a),V=p({root:{marginBottom:10}})(m),W="SETTINGS",H="APP DETAILS";function G(o){var r=o.AppSettingsComponent,n=o.app,s=o.appData,p=o.appName,a=o.currentUser,m=o.isMultiRig,A=o.isSettingsDialogHidden,w=o.layoutEnvironment,G=o.onAppRemove,N=o.onCloneDashboard,q=o.onSettingsChange,U=o.segment,_=o.toggleAppSettingsDialog,z=i(W),Z=e(z,2),K=Z[0],Y=Z[1],J=i((function(){var t;return F(F({},C(n.settings)),{},{package:n.settings.package||(null==n||null===(t=n.package)||void 0===t?void 0:t.version)})})),Q=e(J,2),X=Q[0],$=Q[1],tt=i(!0),et=e(tt,2),it=et[0],ot=et[1],rt=n.id===v,nt=function(e,i){return $((function(o){return F(F({},o),{},t({},e,i))}))},st=function(t){return $((function(e){return F(F({},e),t)}))},pt=w&&"asset"===w.type,at=!(m||pt&&U===D.COMPLETION);return h(R,{open:!0,onBackdropClick:_,children:[h(l,{children:[p," settings"]}),S(d,{}),h(c,{children:[h(V,{value:K,onChange:function(t,e){return Y(e)},indicatorColor:"primary",textColor:"primary",children:[S(j,{"data-testid":"".concat(M,"_settingsTab"),label:W,value:W}),S(j,{"data-testid":"".concat(M,"_appDetailsTab"),label:H,value:H}),S(I,{"data-testid":"".concat(M,"_viewAppPageTab"),className:L.viewAppButton,onClick:function(){var t,e;return window.open((e=null==n||null===(t=n.app)||void 0===t?void 0:t.id,"/app-store/app/".concat(e)),"_blank")},children:"VIEW APP PAGE"})]}),h(b,{ErrorView:f,app:n,children:[S(B,{open:!it&&!X.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return ot(!0)}}),K===W&&h(P,{children:[A&&S(E,{}),!A&&h(P,{children:[at&&S(y,{appKey:rt?null:n.app.app_key,settings:X,onSettingsChange:st,appType:x[U],isNullable:pt,label:"Active Asset"}),r&&S(r,{app:n,appData:s,settings:X,onSettingChange:nt,onSettingsChange:st,layoutEnvironment:w,currentUser:a}),S(T,{appId:n.app.id,value:X.package,onChange:function(t){return nt("package",t)}})]})]}),K===H&&S(O,{appDescription:g(n,"app.description"),appSummary:g(n,"app.summary")})]})]}),h(u,{children:[!A&&G&&S(k,{appName:p,onAppRemove:G}),S(I,{"data-testid":"".concat(M,"_cancel"),variation:"secondary",onClick:_,children:"Cancel"}),A&&S(I,{variation:"primary",onClick:function(){return N()},children:"Copy Dashboard"}),!A&&S(I,{"data-testid":"".concat(M,"_save"),variation:"primary",onClick:function(){X.package||rt?(q(X),_()):ot(!1)},children:"Save"})]})]})}G.propTypes={AppSettingsComponent:o,app:r({}).isRequired,appData:r({}).isRequired,appName:n.isRequired,currentUser:r({}).isRequired,isMultiRig:s.isRequired,isSettingsDialogHidden:s,layoutEnvironment:r({}).isRequired,onAppRemove:o,onCloneDashboard:o,onSettingsChange:o.isRequired,segment:n.isRequired,toggleAppSettingsDialog:o.isRequired},G.defaultProps={AppSettingsComponent:null,isSettingsDialogHidden:!1,onAppRemove:void 0,onCloneDashboard:A};export{M as PAGE_NAME,G as default};
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useState as i}from"react";import{func as r,shape as o,string as n,bool as s}from"prop-types";import{withStyles as p,Dialog as a,Tabs as m,DialogTitle as l,Divider as d,DialogContent as c,Tab as j,DialogActions as u}from"@material-ui/core";import{cloneDeep as C,get as g,noop as A}from"lodash";import b from"../../../../ErrorBoundary/ErrorBoundary.js";import f from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import{jsxs as S,jsx as h,Fragment as P}from"react/jsx-runtime";import"../AppActions/AppActions.css.js";import"../AnnotationsButton/AnnotationsButton.js";import"../NonPriorityMenus/NonPriorityMenus.js";import"../FullscreenButton/FullscreenButton.js";import"../AppInfoMessage/AppInfoMessage.js";import"../DevCenterAppView/DevCenterAppView.js";import"../DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../Modal/CorvaModal.js";import"uuid";import"../../../../IconMenu/index.js";import"../../../../StyledMenuItem/index.js";import"../../../AppHeader/AppHeader.js";import"../../../AppSideBar/AppSideBar.js";import"../../../AppsDataProvider/AppsDataProvider.js";import"classnames";import"../../../../Icons/AnnotationIcon.js";import"../../../../Annotations/components/AnnotationsList/index.js";import"../../../../Annotations/components/LastAnnotation/index.js";import"../../../../Annotations/AnnotationsContext.js";import"../../../../../utils/mobileDetect.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{DEV_CENTER_CLI_APP_ID as v}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENTS as D,SEGMENT_TO_ASSET_TYPE as x}from"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../GradientManager/configuration/constants.js";import"../../../../../utils/index.js";import"../../../../HelpCenter/HelpCenterIcon.js";import"../../../AppContext.js";import"../../DevCenterAppContainer.css.js";import"../RestoreAppSizeButton/index.js";import"../PriorityMenus/PriorityMenus.css.js";import"../../../DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../NavigationBar/NavigationBar.js";import"../../../SideBar/SideBar.js";import"../../../AppSettingsPopover/AppSettingsPopover.js";import"../../../AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import T from"../../../../AssetEditor/index.js";import y from"../../../../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"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";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/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"../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../TruncatedText/index.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 I from"../../../../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"../../../../IconButton/index.js";import"../../../../TextField/index.js";import"../../../../Chip/index.js";import"../../../../Counter/index.js";import"../../../../AnchorsList/AnchorsList.js";import"../../../../Select/index.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"../../../../Casing/CasingTable/index.js";import"../../../../Casing/CasingComponentIcon.js";import"../../../../Casing/CasingTileIcon.js";import"../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../Casing/CasingTile/CasingTile.js";import E from"../../../../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 B from"../../../../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"../../../../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"../../../../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 k from"./RemoveAppButton.js";import O from"./AppDetails.js";import L from"./AppSettingsDialog.module.css.js";function R(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,r)}return i}function w(e){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?R(Object(r),!0).forEach((function(i){t(e,i,r[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var F="DC_appSettings",M=p({paper:{minWidth:"50rem",height:"40rem"}})(a),V=p({root:{marginBottom:10}})(m),W="SETTINGS",H="APP DETAILS";function G(r){var o=r.AppSettingsComponent,n=r.app,s=r.appData,p=r.appName,a=r.currentUser,m=r.isMultiRig,A=r.isSettingsDialogHidden,R=r.layoutEnvironment,G=r.onAppRemove,N=r.onCloneDashboard,q=r.onSettingsChange,U=r.segment,_=r.toggleAppSettingsDialog,z=i(W),Z=e(z,2),K=Z[0],Y=Z[1],J=i((function(){var t;return w(w({},C(n.settings)),{},{package:n.settings.package||(null==n||null===(t=n.package)||void 0===t?void 0:t.version)})})),Q=e(J,2),X=Q[0],$=Q[1],tt=i(!0),et=e(tt,2),it=et[0],rt=et[1],ot=n.id===v,nt=function(e,i){return $((function(r){return w(w({},r),{},t({},e,i))}))},st=function(t){return $((function(e){return w(w({},e),t)}))},pt=R&&"asset"===R.type,at=!(m||pt&&U===D.COMPLETION);return S(M,{open:!0,onBackdropClick:_,children:[S(l,{children:[p," settings"]}),h(d,{}),S(c,{children:[S(V,{value:K,onChange:function(t,e){return Y(e)},indicatorColor:"primary",textColor:"primary",children:[h(j,{"data-testid":"".concat(F,"_settingsTab"),label:W,value:W}),h(j,{"data-testid":"".concat(F,"_appDetailsTab"),label:H,value:H}),h(I,{"data-testid":"".concat(F,"_viewAppPageTab"),className:L.viewAppButton,onClick:function(){var t,e;return window.open((e=null==n||null===(t=n.app)||void 0===t?void 0:t.id,"/app-store/app/".concat(e)),"_blank")},children:"VIEW APP PAGE"})]}),S(b,{ErrorView:f,app:n,children:[h(B,{open:!it&&!X.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return rt(!0)}}),K===W&&S(P,{children:[A&&h(E,{}),!A&&S(P,{children:[at&&h(T,{appKey:ot?null:n.app.app_key,settings:X,onSettingsChange:st,appType:x[U],isNullable:pt,label:"Active Asset"}),o&&h(o,{app:n,appData:s,settings:X,onSettingChange:nt,onSettingsChange:st,layoutEnvironment:R,currentUser:a}),h(y,{appId:n.app.id,value:X.package,onChange:function(t){return nt("package",t)}})]})]}),K===H&&h(O,{appDescription:g(n,"app.description"),appSummary:g(n,"app.summary")})]})]}),S(u,{children:[!A&&G&&h(k,{appName:p,onAppRemove:G}),h(I,{"data-testid":"".concat(F,"_cancel"),variation:"secondary",onClick:_,children:"Cancel"}),A&&h(I,{variation:"primary",onClick:function(){return N()},children:"Copy Dashboard"}),!A&&h(I,{"data-testid":"".concat(F,"_save"),variation:"primary",onClick:function(){X.package||ot?(q(X),_()):rt(!1)},children:"Save"})]})]})}G.propTypes={AppSettingsComponent:r,app:o({}).isRequired,appData:o({}).isRequired,appName:n.isRequired,currentUser:o({}).isRequired,isMultiRig:s.isRequired,isSettingsDialogHidden:s,layoutEnvironment:o({}).isRequired,onAppRemove:r,onCloneDashboard:r,onSettingsChange:r.isRequired,segment:n.isRequired,toggleAppSettingsDialog:r.isRequired},G.defaultProps={AppSettingsComponent:null,isSettingsDialogHidden:!1,onAppRemove:void 0,onCloneDashboard:A};export{F as PAGE_NAME,G as default};
|