@corva/ui 0.60.0-9 → 0.61.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/3f1e09e6e814329ccfc22c5f2fb49320.png +0 -0
- package/assets/43e20eb6b463d31ea0b4383f2106be5d.png +0 -0
- package/assets/d04a2e9dbd9d385c1cccf43ce680953f.png +0 -0
- package/cjs-bundle/components/AddComment/Popover.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/cjs-bundle/components/AppIcon/AppIcon.js +1 -0
- package/cjs-bundle/components/AppIcon/assets/CompletionAppIcon.js +1 -0
- package/cjs-bundle/components/AppIcon/assets/DrillingAppIcon.js +1 -0
- package/cjs-bundle/components/AppIcon/assets/NoSegmentAppIcon.js +1 -0
- package/cjs-bundle/components/AppIcon/utils.js +1 -0
- package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelect.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/SelectItem.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/effects/index.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/index.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/utils/index.js +1 -1
- package/cjs-bundle/components/AssetNameLabel/AssetStatusBadge.js +1 -1
- package/cjs-bundle/components/Attachment/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/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/ColorPicker/ColorPicker.js +1 -1
- package/cjs-bundle/components/DevCenter/AppHeader/AppHeader.js +1 -1
- package/cjs-bundle/components/DevCenter/AppHeader/PadMode.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/AppSettingsDialogV2/AppSettingsDialog.js +1 -0
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/RemoveAppButton.js +1 -0
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/styles.js +1 -0
- 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/FeedItem.js +1 -1
- package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -1
- package/cjs-bundle/components/FeedItem/components/Content.js +1 -1
- package/cjs-bundle/components/FeedItem/components/FeedComments.js +1 -1
- package/cjs-bundle/components/FeedItem/components/Icon.js +1 -1
- package/cjs-bundle/components/FeedItem/components/LessonsLearnedLeafIcon.js +1 -0
- package/cjs-bundle/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js +1 -1
- package/cjs-bundle/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.js +1 -1
- package/cjs-bundle/components/FeedItem/editModals/LessonsLearnedEdit/LessonsLearnedEdit.js +1 -0
- package/cjs-bundle/components/FeedItem/editModals/NptLessonsCommentEdit/NptLessonsCommentEdit.js +1 -0
- package/cjs-bundle/components/FeedItem/editModals/PCCommentEdit/PCCommentEdit.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js +1 -0
- package/cjs-bundle/components/ImageViewer/index.js +1 -1
- package/cjs-bundle/components/KeyboardDateTimePicker.js +1 -1
- package/cjs-bundle/components/LabelsCounter/LabelsCounter.js +1 -1
- package/cjs-bundle/components/MiddleTruncate/MiddleTruncate.js +1 -0
- package/cjs-bundle/components/Modal/CorvaModal.js +1 -1
- package/cjs-bundle/components/Modal/Modal.js +1 -1
- package/cjs-bundle/components/OffsetWellChips/Chip.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/RadiusInput.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.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/OffsetWellPickerV4/constants.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/effects/useCompanyMetricKey.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/effects/useFilteredWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/effects/useSortedWells.js +1 -1
- package/cjs-bundle/components/PadModeSelect/PadModeSelect.js +1 -1
- package/cjs-bundle/components/PadModeSelect/WellStreamActivityStatus.js +1 -0
- package/cjs-bundle/components/PadModeSelect/effects/useWellStreamActivityTypeSubscription.js +1 -0
- package/cjs-bundle/components/PadModeSelect/effects/useWellStreamsData.js +1 -0
- package/cjs-bundle/components/PadModeSelect/types.js +1 -0
- package/cjs-bundle/components/PadModeSelect/utils/initialDataFetcher.js +1 -0
- package/cjs-bundle/components/PadModeSelect/utils/time.js +1 -0
- package/cjs-bundle/components/Popover/Popover.js +1 -1
- package/cjs-bundle/components/Popper/Popper.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -1
- package/cjs-bundle/components/Search/Search.js +1 -1
- package/cjs-bundle/components/Search/components/Paper.js +1 -1
- package/cjs-bundle/components/Select/SelectFilterBy.js +1 -0
- package/cjs-bundle/components/Select/index.js +1 -1
- package/cjs-bundle/components/StatusBadge/components/DQAccordionDetailsContent.js +1 -1
- package/cjs-bundle/components/StatusBadge/components/DQAlertTooltip.js +1 -1
- package/cjs-bundle/components/StatusBadge/components/DQAlertsTooltip.js +1 -1
- package/cjs-bundle/components/StatusBadge/components/DQUnvalidatedContent.js +1 -1
- package/cjs-bundle/components/StatusBadge/index.js +1 -1
- package/cjs-bundle/components/StatusBadge/styles.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/index.js +1 -1
- package/cjs-bundle/constants/completion.js +1 -1
- package/cjs-bundle/constants/feed.js +1 -1
- package/cjs-bundle/constants/segment.js +1 -1
- package/cjs-bundle/effects/useDelayedDcFullscreenElemOpen.js +1 -1
- package/cjs-bundle/effects/useOutsideClick.js +1 -1
- package/cjs-bundle/effects/useWellnessAlerts.js +1 -1
- package/cjs-bundle/utils/bha.js +1 -1
- package/cjs-bundle/utils/feed.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/AppIcon/AppIcon.d.ts +34 -0
- package/components/AppIcon/AppIcon.d.ts.map +1 -0
- package/components/AppIcon/AppIcon.js +1 -0
- package/components/AppIcon/assets/CompletionAppIcon.d.ts +24 -0
- package/components/AppIcon/assets/CompletionAppIcon.d.ts.map +1 -0
- package/components/AppIcon/assets/CompletionAppIcon.js +1 -0
- package/components/AppIcon/assets/DrillingAppIcon.d.ts +24 -0
- package/components/AppIcon/assets/DrillingAppIcon.d.ts.map +1 -0
- package/components/AppIcon/assets/DrillingAppIcon.js +1 -0
- package/components/AppIcon/assets/NoSegmentAppIcon.d.ts +24 -0
- package/components/AppIcon/assets/NoSegmentAppIcon.d.ts.map +1 -0
- package/components/AppIcon/assets/NoSegmentAppIcon.js +1 -0
- package/components/AppIcon/index.d.ts +2 -0
- package/components/AppIcon/index.d.ts.map +1 -0
- package/components/AppIcon/utils.d.ts +4 -0
- package/components/AppIcon/utils.d.ts.map +1 -0
- package/components/AppIcon/utils.js +1 -0
- package/components/AssetEditorV2/components/PrimaryAssetSelect.d.ts +19 -5
- package/components/AssetEditorV2/components/PrimaryAssetSelect.d.ts.map +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelect.js +1 -1
- package/components/AssetEditorV2/components/SecondaryAssetSelect.d.ts.map +1 -1
- package/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
- package/components/AssetEditorV2/components/SelectItem.d.ts +11 -2
- package/components/AssetEditorV2/components/SelectItem.d.ts.map +1 -1
- package/components/AssetEditorV2/components/SelectItem.js +1 -1
- package/components/AssetEditorV2/effects/index.d.ts +4 -1
- package/components/AssetEditorV2/effects/index.d.ts.map +1 -1
- package/components/AssetEditorV2/effects/index.js +1 -1
- package/components/AssetEditorV2/index.d.ts +5 -1
- package/components/AssetEditorV2/index.d.ts.map +1 -1
- package/components/AssetEditorV2/index.js +1 -1
- package/components/AssetEditorV2/utils/index.d.ts +3 -1
- package/components/AssetEditorV2/utils/index.d.ts.map +1 -1
- package/components/AssetEditorV2/utils/index.js +1 -1
- package/components/AssetNameLabel/AssetStatusBadge.d.ts.map +1 -1
- package/components/AssetNameLabel/AssetStatusBadge.js +1 -1
- package/components/Attachment/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/Chart/components/__tests__/AxisDropdown.test.d.ts +2 -0
- package/components/Chart/components/__tests__/AxisDropdown.test.d.ts.map +1 -0
- package/components/Chart/components/__tests__/ChartButton.test.d.ts +2 -0
- package/components/Chart/components/__tests__/ChartButton.test.d.ts.map +1 -0
- package/components/Chart/effects/__tests__/useHideAxes.test.d.ts +2 -0
- package/components/Chart/effects/__tests__/useHideAxes.test.d.ts.map +1 -0
- package/components/Chart/effects/__tests__/useKeyboardControl.test.d.ts +2 -0
- package/components/Chart/effects/__tests__/useKeyboardControl.test.d.ts.map +1 -0
- package/components/CollapsableSidebar.js +1 -1
- package/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/components/ColorPicker/ColorPicker.js +1 -1
- package/components/DevCenter/AppHeader/AppHeader.d.ts.map +1 -1
- package/components/DevCenter/AppHeader/AppHeader.js +1 -1
- package/components/DevCenter/AppHeader/PadMode.d.ts +2 -1
- package/components/DevCenter/AppHeader/PadMode.d.ts.map +1 -1
- package/components/DevCenter/AppHeader/PadMode.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.d.ts +5 -4
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.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/AppSettingsDialogV2/AppSettingsDialog.d.ts +45 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.d.ts.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/RemoveAppButton.d.ts +13 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/RemoveAppButton.d.ts.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/RemoveAppButton.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/index.d.ts +2 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/index.d.ts.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/styles.d.ts +3 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/styles.d.ts.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/styles.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/index.d.ts +1 -0
- 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/FeedItem/FeedItem.js +1 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.d.ts.map +1 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -1
- package/components/FeedItem/components/Content.d.ts.map +1 -1
- package/components/FeedItem/components/Content.js +1 -1
- package/components/FeedItem/components/FeedComments.js +1 -1
- package/components/FeedItem/components/Icon.d.ts.map +1 -1
- package/components/FeedItem/components/Icon.js +1 -1
- package/components/FeedItem/components/LessonsLearnedLeafIcon.d.ts +19 -0
- package/components/FeedItem/components/LessonsLearnedLeafIcon.d.ts.map +1 -0
- package/components/FeedItem/components/LessonsLearnedLeafIcon.js +1 -0
- package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.d.ts.map +1 -1
- package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js +1 -1
- package/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.d.ts.map +1 -1
- package/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.js +1 -1
- package/components/FeedItem/editModals/LessonsLearnedEdit/LessonsLearnedEdit.d.ts +24 -0
- package/components/FeedItem/editModals/LessonsLearnedEdit/LessonsLearnedEdit.d.ts.map +1 -0
- package/components/FeedItem/editModals/LessonsLearnedEdit/LessonsLearnedEdit.js +1 -0
- package/components/FeedItem/editModals/LessonsLearnedEdit/index.d.ts +2 -0
- package/components/FeedItem/editModals/LessonsLearnedEdit/index.d.ts.map +1 -0
- package/components/FeedItem/editModals/NptLessonsCommentEdit/NptLessonsCommentEdit.d.ts +10 -0
- package/components/FeedItem/editModals/NptLessonsCommentEdit/NptLessonsCommentEdit.d.ts.map +1 -0
- package/components/FeedItem/editModals/NptLessonsCommentEdit/NptLessonsCommentEdit.js +1 -0
- package/components/FeedItem/editModals/NptLessonsCommentEdit/index.d.ts +2 -0
- package/components/FeedItem/editModals/NptLessonsCommentEdit/index.d.ts.map +1 -0
- package/components/FeedItem/editModals/PCCommentEdit/PCCommentEdit.d.ts.map +1 -1
- package/components/FeedItem/editModals/PCCommentEdit/PCCommentEdit.js +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js +1 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js +1 -1
- package/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.d.ts +5 -0
- package/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.d.ts.map +1 -0
- package/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js +1 -0
- package/components/IconButton/__tests__/IconButton.test.d.ts +2 -0
- package/components/IconButton/__tests__/IconButton.test.d.ts.map +1 -0
- package/components/IconMenu/index.d.ts +3 -3
- package/components/ImageViewer/index.js +1 -1
- package/components/KeyboardDateTimePicker.js +1 -1
- package/components/LabelsCounter/LabelsCounter.d.ts +1 -1
- package/components/LabelsCounter/LabelsCounter.js +1 -1
- package/components/LabelsCounter/__tests__/LabelsCounter.test.d.ts +2 -0
- package/components/LabelsCounter/__tests__/LabelsCounter.test.d.ts.map +1 -0
- package/components/{OffsetWellChips/components/OffsetWellTruncatedText.d.ts → MiddleTruncate/MiddleTruncate.d.ts} +4 -4
- package/components/MiddleTruncate/MiddleTruncate.d.ts.map +1 -0
- package/components/MiddleTruncate/MiddleTruncate.js +1 -0
- package/components/MiddleTruncate/index.d.ts +2 -0
- package/components/MiddleTruncate/index.d.ts.map +1 -0
- package/components/MiddleTruncate/utils.d.ts.map +1 -0
- package/components/Modal/CorvaModal.d.ts +1 -1
- package/components/Modal/CorvaModal.d.ts.map +1 -1
- package/components/Modal/CorvaModal.js +1 -1
- package/components/Modal/Modal.js +1 -1
- package/components/Modal/types.d.ts +1 -0
- package/components/Modal/types.d.ts.map +1 -1
- package/components/OffsetWellChips/Chip.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/RadiusInput.d.ts +1 -0
- package/components/OffsetWellPickerV4/components/Filter/RadiusInput.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/Filter/RadiusInput.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.d.ts.map +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/OffsetWellPickerV4/constants.d.ts +1 -0
- package/components/OffsetWellPickerV4/constants.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/constants.js +1 -1
- package/components/OffsetWellPickerV4/effects/useCompanyMetricKey.d.ts +1 -1
- package/components/OffsetWellPickerV4/effects/useCompanyMetricKey.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useCompanyMetricKey.js +1 -1
- package/components/OffsetWellPickerV4/effects/useFilteredWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useFilteredWells.js +1 -1
- package/components/OffsetWellPickerV4/effects/useSortedWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useSortedWells.js +1 -1
- package/components/PadModeSelect/PadModeSelect.d.ts.map +1 -1
- package/components/PadModeSelect/PadModeSelect.js +1 -1
- package/components/PadModeSelect/WellStreamActivityStatus.d.ts +4 -0
- package/components/PadModeSelect/WellStreamActivityStatus.d.ts.map +1 -0
- package/components/PadModeSelect/WellStreamActivityStatus.js +1 -0
- package/components/PadModeSelect/effects/useWellStreamActivityTypeSubscription.d.ts +8 -0
- package/components/PadModeSelect/effects/useWellStreamActivityTypeSubscription.d.ts.map +1 -0
- package/components/PadModeSelect/effects/useWellStreamActivityTypeSubscription.js +1 -0
- package/components/PadModeSelect/effects/useWellStreamsData.d.ts +10 -0
- package/components/PadModeSelect/effects/useWellStreamsData.d.ts.map +1 -0
- package/components/PadModeSelect/effects/useWellStreamsData.js +1 -0
- package/components/PadModeSelect/types.d.ts +22 -0
- package/components/PadModeSelect/types.d.ts.map +1 -0
- package/components/PadModeSelect/types.js +1 -0
- package/components/PadModeSelect/utils/initialDataFetcher.d.ts +2 -0
- package/components/PadModeSelect/utils/initialDataFetcher.d.ts.map +1 -0
- package/components/PadModeSelect/utils/initialDataFetcher.js +1 -0
- package/components/PadModeSelect/utils/time.d.ts +2 -0
- package/components/PadModeSelect/utils/time.d.ts.map +1 -0
- package/components/PadModeSelect/utils/time.js +1 -0
- package/components/Popover/Popover.js +1 -1
- package/components/Popper/Popper.js +1 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -1
- package/components/Search/Search.d.ts +6 -1
- package/components/Search/Search.d.ts.map +1 -1
- package/components/Search/Search.js +1 -1
- package/components/Search/components/Paper.d.ts.map +1 -1
- package/components/Search/components/Paper.js +1 -1
- package/components/Search/styles.d.ts +1 -1
- package/components/Select/SelectFilterBy.d.ts +4 -0
- package/components/Select/SelectFilterBy.d.ts.map +1 -0
- package/components/Select/SelectFilterBy.js +1 -0
- package/components/Select/index.d.ts.map +1 -1
- package/components/Select/index.js +1 -1
- package/components/StatusBadge/components/DQAccordionDetailsContent.d.ts +1 -2
- package/components/StatusBadge/components/DQAccordionDetailsContent.d.ts.map +1 -1
- package/components/StatusBadge/components/DQAccordionDetailsContent.js +1 -1
- package/components/StatusBadge/components/DQAlertTooltip.d.ts +1 -2
- package/components/StatusBadge/components/DQAlertTooltip.d.ts.map +1 -1
- package/components/StatusBadge/components/DQAlertTooltip.js +1 -1
- package/components/StatusBadge/components/DQAlertsTooltip.d.ts +1 -2
- package/components/StatusBadge/components/DQAlertsTooltip.d.ts.map +1 -1
- package/components/StatusBadge/components/DQAlertsTooltip.js +1 -1
- package/components/StatusBadge/components/DQUnvalidatedContent.d.ts.map +1 -1
- package/components/StatusBadge/components/DQUnvalidatedContent.js +1 -1
- package/components/StatusBadge/index.d.ts.map +1 -1
- package/components/StatusBadge/index.js +1 -1
- package/components/StatusBadge/styles.d.ts.map +1 -1
- package/components/StatusBadge/styles.js +1 -1
- 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/index.d.ts +6 -1
- package/components/index.js +1 -1
- package/constants/completion.d.ts.map +1 -1
- package/constants/completion.js +1 -1
- package/constants/feed.d.ts +14 -0
- package/constants/feed.d.ts.map +1 -1
- package/constants/feed.js +1 -1
- package/constants/segment.js +1 -1
- package/effects/useDelayedDcFullscreenElemOpen.js +1 -1
- package/effects/useOutsideClick.d.ts +1 -1
- package/effects/useOutsideClick.d.ts.map +1 -1
- package/effects/useOutsideClick.js +1 -1
- package/effects/useSubscriptions.d.ts.map +1 -1
- package/effects/useWellnessAlerts.js +1 -1
- package/package.json +1 -1
- package/utils/bha.d.ts.map +1 -1
- package/utils/bha.js +1 -1
- package/utils/feed.d.ts.map +1 -1
- package/utils/feed.js +1 -1
- package/cjs-bundle/components/OffsetWellChips/components/OffsetWellTruncatedText.js +0 -1
- package/cjs-bundle/components/OffsetWellPickerV4/effects/useRadiusWells.js +0 -1
- package/cjs-bundle/components/PadModeSelect/utils.js +0 -1
- package/components/OffsetWellChips/components/OffsetWellTruncatedText.d.ts.map +0 -1
- package/components/OffsetWellChips/components/OffsetWellTruncatedText.js +0 -1
- package/components/OffsetWellChips/utils.d.ts.map +0 -1
- package/components/OffsetWellPickerV4/effects/useRadiusWells.js +0 -1
- package/components/PadModeSelect/utils.js +0 -1
- /package/cjs-bundle/components/{OffsetWellChips → MiddleTruncate}/utils.js +0 -0
- /package/components/{OffsetWellChips → MiddleTruncate}/utils.d.ts +0 -0
- /package/components/{OffsetWellChips → MiddleTruncate}/utils.js +0 -0
package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/regenerator";import{memo as i,useState as n,useRef as s}from"react";import{number as p,shape as a,string as m}from"prop-types";import l from"classnames";import{flowRight as d,get as c}from"lodash";import j from"moment";import{withStyles as C}from"@material-ui/core/styles";import{Fade as u,Paper as A,Typography as v}from"@material-ui/core";import D from"../../../../../Avatar/index.js";import b from"../../../../../../effects/useOutsideClick.js";import"../../../../../../utils/index.js";import{postAnnotation as f}from"../../../../../../clients/jsonApi/index.js";import{useAnnotationsDispatch as g}from"../../../../AnnotationsContext.js";import{ADD_ANNOTATION as h}from"../../../../constants.js";import P from"../AnnotationInput/index.js";import S from"./style.css.js";import"../../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../../../Icons/AnnotationIcon.js";import"../../index.js";import"../../../LastAnnotation/index.js";import{jsxs as x,jsx as I}from"react/jsx-runtime";import"../../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../../Modal/CorvaModal.js";import"uuid";import"../../../../../IconMenu/index.js";import"../../../../../StyledMenuItem/index.js";import"../../../../../DevCenter/AppContext.js";import"../../../../../AssetEditor/index.js";import"../../../../../AssetEditorV2/index.js";import"../../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../../Typography.js";import"../../../../../RealTimeValuesSidebar/RealTimeSidebar.js";import"../../../../../CollapsableSidebar.js";import"../../../../../DateTimePicker/index.js";import"../../../../../DatePicker/index.js";import"../../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../../../EmptyState/EmptyState.js";import"../../../../../ParameterCharts/ParameterCharts.js";import"../../../../../ParameterCharts/AddEditTrack.js";import"../../../../../ChartActionsList/ChartActionsList.js";import"../../../../../CopyToClipboard/CopyToClipboard.js";import"../../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../../AssetEditor/SingleAssetEditor.js";import"../../../../../SettingEditors/ColorEditor/index.js";import"../../../../../SettingEditors/DropdownEditor/index.js";import"../../../../../SettingEditors/RadioEditor/index.js";import"../../../../../SwitchControl/index.js";import"../../../../../ColorPicker/ColorPicker.js";import"../../../../../Chart/components/ChartButton.js";import"../../../../../Chart/components/ChartButtons.js";import"../../../../../Chart/components/ChartWrapper.js";import"../../../../../Chart/components/AxisDropdown.js";import"../../../../../Chart/components/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/configuration/constants.js";import"../../../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../../../GradientManager/GradientSelect.styles.js";import"../../../../../GradientPicker/GradientPicker.js";import"../../../../../GradientManager/GradientManager.styles.js";import"../../../../../Drillstring/BHASchematic.js";import"../../../../../Drillstring/BHATable/index.js";import"../../../../../Drillstring/BHAComponentIcon.js";import"../../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../../Drillstring/BHATileIcon.js";import"../../../../../Drillstring/BHATile/BHATile.js";import"../../../../../Drillstring/BHAList/BHAList.js";import"../../../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../../../Casing/CasingTable/index.js";import"../../../../../Casing/CasingComponentIcon.js";import"../../../../../Casing/CasingTileIcon.js";import"../../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../../Casing/CasingTile/CasingTile.js";import"../../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../../WellSummary/WellSummaryItemValue.js";import"../../../../../WellSummary/ActivitySummaryChart.js";import"../../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../../../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"../../../../../../utils/env.js";import"../../../../../BICOffsetPickerDialog/index.js";import"../../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../../OffsetWellPickerV3/index.js";import"../../../../../OffsetWellChips/Chip.js";import"../../../../../OffsetWellChips/ChipsContainer.js";import"../../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../../../../../Notifications/Toast.js";import"../../../../../Toaster/Toaster.js";import"../../../../../ConfirmationDialog.js";import"../../../../../TextLink/index.js";import"../../../../../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"../../../../../HelpCenter/HelpCenterIcon.js";import"../../../../../Autocomplete/Autocomplete.js";import"../../../../../DocumentViewer/DocumentViewer.js";import"@babel/runtime/helpers/objectWithoutProperties";import"../../../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../../../Search/Search.js";import"../../../../../Search/components/Listbox.js";import"../../../../../Search/components/Paper.js";import"../../../../../Search/components/RecentSearches.js";import"../../../../../Search/components/InputAdornmentLeft.js";import"../../../../../Search/components/Groups.js";import"../../../../../StatusBadge/index.js";import"../../../../../Attachment/index.js";import"../../../../../EmojiIconButton.js";import"../../../../../FileUploadIconButton.js";import"../../../../../FilePreview/index.js";import"../../../../../FailedFileUploading.js";import"../../../../../UserMention/index.js";import"../../../../../CommentsInfo/index.js";import"../../../../../CommentInput/index.js";import"../../../../../Comment/index.js";import"../../../../../CommentLoader.js";import"../../../../../AssetNameLabel/AssetStatusBadge.js";import"../../../../../../utils/mobileDetect.js";import"querystring";import"uuid/v1";import"../../../../../../clients/subscriptions.js";import"jsona";import"../../../../../StatusBadge/constants.js";import"../../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{withUniversalLocationHOC as T}from"../../../../../DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";import"../../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../../DevCenter/SideBar/SideBar.js";import"../../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import{showSuccessNotification as y,showErrorNotification as B}from"../../../../../../utils/notificationToasts.js";var E=function(i){var p,a=i.appId,m=i.assetId,d=i.assetCompanyId,C=i.appSettings,T=i.currentUser,E=i.classes,k=i.location,F=i.dashboardType,L=g(),M=n(!1),V=r(M,2),W=V[0],O=V[1],w=s(null);b(w,(function(){O(!1)}));var R,H=(R=t(o.mark((function e(t,r,i){var n,s,p,l;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={app_id:a,asset_id:m,body:t,active_until:r,attachment:{file_name:i&&i.attachmentName,s3_link:i&&i.attachmentUrl},settings:C},s={},F&&(s.dashboard_type=F),(p=c(k,"query.time"))&&(n.data_timestamp=j(p).format()),e.next=8,f(n,s);case 8:l=e.sent,L({type:h,annotation:l}),e.next=17;break;case 12:return e.prev=12,e.t0=e.catch(0),B("Error during annotation creation"),console.error(e.t0),e.abrupt("return");case 17:y("Annotation has been added"),O(!1);case 19:case"end":return e.stop()}}),e,null,[[0,12]])}))),function(e,t,r){return R.apply(this,arguments)});return x("div",{className:S.cAddAnnotationFormInput,children:[I(D,{displayName:"".concat(T.first_name," ").concat(T.last_name),imgSrc:T.profile_photo,size:36}),x("div",{className:l(S.cAddAnnotationFormInputPaper,(p={},e(p,S.cAddAnnotationFormInputPaperOpened,W),e(p,S.cAddAnnotationFormInputPaperClosed,!W),p)),children:[I(u,{in:!W,timeout:500,children:I(A,{className:S.cAddAnnotationFormInputPaperLabel,children:I(v,{variant:"body2","data-testid":"".concat("AppAnnotationsPo","_collapsedInput"),className:E.inputLabel,onClick:function(){return O(!0)},children:"Type annotation here"})})}),I(u,{in:W,timeout:100,children:I("div",{className:S.cAddAnnotationFormInputPaperAddAnnotation,children:W&&I(P,{onSend:H,assetCompanyId:d,currentUser:T})})})]})]})};E.propTypes={appId:p.isRequired,assetId:p.isRequired,assetCompanyId:p.isRequired,appSettings:a().isRequired,currentUser:a({}),classes:a().isRequired,location:a().isRequired,dashboardType:m},E.defaultProps={currentUser:{},dashboardType:null};var k=d([C((function(e){return{inputLabel:{color:e.palette.grey[700],fontWeight:200,width:"100%"}}})),T])(i(E));export{k as default};
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/regenerator";import{memo as i,useState as n,useRef as s}from"react";import{number as p,shape as a,string as m}from"prop-types";import l from"classnames";import{flowRight as d,get as c}from"lodash";import j from"moment";import{withStyles as C}from"@material-ui/core/styles";import{Fade as u,Paper as A,Typography as v}from"@material-ui/core";import D from"../../../../../Avatar/index.js";import b from"../../../../../../effects/useOutsideClick.js";import"../../../../../../utils/index.js";import{postAnnotation as f}from"../../../../../../clients/jsonApi/index.js";import{useAnnotationsDispatch as g}from"../../../../AnnotationsContext.js";import{ADD_ANNOTATION as S}from"../../../../constants.js";import h from"../AnnotationInput/index.js";import P from"./style.css.js";import"../../../../../DevCenter/AppHeader/AppHeader.js";import"../../../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons";import"../../../../../Icons/AnnotationIcon.js";import"../../index.js";import"../../../LastAnnotation/index.js";import{jsxs as x,jsx as I}from"react/jsx-runtime";import"../../../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../../../Modal/CorvaModal.js";import"uuid";import"../../../../../IconMenu/index.js";import"../../../../../StyledMenuItem/index.js";import"../../../../../AppIcon/AppIcon.js";import"../../../../../DevCenter/AppContext.js";import"../../../../../AssetEditor/index.js";import"../../../../../AssetEditorV2/index.js";import"../../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../../LoadingIndicator/LoadingIndicator.js";import"../../../../../Typography.js";import"../../../../../RealTimeValuesSidebar/RealTimeSidebar.js";import"../../../../../CollapsableSidebar.js";import"../../../../../DateTimePicker/index.js";import"../../../../../DatePicker/index.js";import"../../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../../../../../EmptyState/EmptyState.js";import"../../../../../ParameterCharts/ParameterCharts.js";import"../../../../../ParameterCharts/AddEditTrack.js";import"../../../../../ChartActionsList/ChartActionsList.js";import"../../../../../CopyToClipboard/CopyToClipboard.js";import"../../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../../AssetEditor/SingleAssetEditor.js";import"../../../../../SettingEditors/ColorEditor/index.js";import"../../../../../SettingEditors/DropdownEditor/index.js";import"../../../../../SettingEditors/RadioEditor/index.js";import"../../../../../SwitchControl/index.js";import"../../../../../ColorPicker/ColorPicker.js";import"../../../../../Chart/components/ChartButton.js";import"../../../../../Chart/components/ChartButtons.js";import"../../../../../Chart/components/ChartWrapper.js";import"../../../../../Chart/components/AxisDropdown.js";import"../../../../../Chart/components/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"../../../../../Select/SelectFilterBy.js";import"../../../../../CustomSelect/index.js";import"../../../../../Tabs/Tabs.js";import"../../../../../Tabs/Tab.js";import"../../../../../ResizableTable/ResizableTable.js";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../../../GradientManager/configuration/constants.js";import"../../../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../../../GradientManager/GradientSelect.styles.js";import"../../../../../GradientPicker/GradientPicker.js";import"../../../../../GradientManager/GradientManager.styles.js";import"../../../../../Drillstring/BHASchematic.js";import"../../../../../Drillstring/BHATable/index.js";import"../../../../../Drillstring/BHAComponentIcon.js";import"../../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../../Drillstring/BHATileIcon.js";import"../../../../../Drillstring/BHATile/BHATile.js";import"../../../../../Drillstring/BHAList/BHAList.js";import"../../../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../../../Casing/CasingTable/index.js";import"../../../../../Casing/CasingComponentIcon.js";import"../../../../../Casing/CasingTileIcon.js";import"../../../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../../../Casing/CasingTile/CasingTile.js";import"../../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../../../WellSummary/WellSummaryItemLabel.js";import"../../../../../WellSummary/WellSummaryItemTitle.js";import"../../../../../WellSummary/WellSummaryItemValue.js";import"../../../../../WellSummary/ActivitySummaryChart.js";import"../../../../../WellSummary/FracWirelineTimeChart.js";import"../../../../../../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"../../../../../../utils/env.js";import"../../../../../BICOffsetPickerDialog/index.js";import"../../../../../OffsetWellButton/OffsetWellButton.js";import"../../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../../OffsetWellPickerV3/index.js";import"../../../../../OffsetWellChips/Chip.js";import"../../../../../OffsetWellChips/ChipsContainer.js";import"../../../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../../../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../../../../../Notifications/Toast.js";import"../../../../../Toaster/Toaster.js";import"../../../../../ConfirmationDialog.js";import"../../../../../TextLink/index.js";import"../../../../../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"../../../../../HelpCenter/HelpCenterIcon.js";import"../../../../../Autocomplete/Autocomplete.js";import"../../../../../DocumentViewer/DocumentViewer.js";import"@babel/runtime/helpers/objectWithoutProperties";import"../../../../../ColorPickerPalette/ColorPickerPalette.js";import"../../../../../Search/Search.js";import"../../../../../Search/components/Listbox.js";import"../../../../../Search/components/Paper.js";import"../../../../../Search/components/RecentSearches.js";import"../../../../../Search/components/InputAdornmentLeft.js";import"../../../../../Search/components/Groups.js";import"../../../../../StatusBadge/index.js";import"../../../../../Attachment/index.js";import"../../../../../EmojiIconButton.js";import"../../../../../FileUploadIconButton.js";import"../../../../../FilePreview/index.js";import"../../../../../FailedFileUploading.js";import"../../../../../UserMention/index.js";import"../../../../../CommentsInfo/index.js";import"../../../../../CommentInput/index.js";import"../../../../../Comment/index.js";import"../../../../../CommentLoader.js";import"../../../../../AssetNameLabel/AssetStatusBadge.js";import"../../../../../AssetEditorV2/components/PrimaryAssetSelect.js";import"../../../../../AssetEditorV2/components/SecondaryAssetSelect.js";import"../../../../../AssetEditorV2/components/SelectItem.js";import"../../../../../../utils/mobileDetect.js";import"querystring";import"uuid/v1";import"../../../../../../clients/subscriptions.js";import"jsona";import"../../../../../StatusBadge/constants.js";import"../../../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{withUniversalLocationHOC as T}from"../../../../../DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";import"../../../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../../../DevCenter/SideBar/SideBar.js";import"../../../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import{showSuccessNotification as y,showErrorNotification as E}from"../../../../../../utils/notificationToasts.js";var B=function(i){var p,a=i.appId,m=i.assetId,d=i.assetCompanyId,C=i.appSettings,T=i.currentUser,B=i.classes,F=i.location,k=i.dashboardType,L=g(),V=n(!1),M=r(V,2),W=M[0],O=M[1],w=s(null);b(w,(function(){O(!1)}));var R,H=(R=t(o.mark((function e(t,r,i){var n,s,p,l;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={app_id:a,asset_id:m,body:t,active_until:r,attachment:{file_name:i&&i.attachmentName,s3_link:i&&i.attachmentUrl},settings:C},s={},k&&(s.dashboard_type=k),(p=c(F,"query.time"))&&(n.data_timestamp=j(p).format()),e.next=8,f(n,s);case 8:l=e.sent,L({type:S,annotation:l}),e.next=17;break;case 12:return e.prev=12,e.t0=e.catch(0),E("Error during annotation creation"),console.error(e.t0),e.abrupt("return");case 17:y("Annotation has been added"),O(!1);case 19:case"end":return e.stop()}}),e,null,[[0,12]])}))),function(e,t,r){return R.apply(this,arguments)});return x("div",{className:P.cAddAnnotationFormInput,children:[I(D,{displayName:"".concat(T.first_name," ").concat(T.last_name),imgSrc:T.profile_photo,size:36}),x("div",{className:l(P.cAddAnnotationFormInputPaper,(p={},e(p,P.cAddAnnotationFormInputPaperOpened,W),e(p,P.cAddAnnotationFormInputPaperClosed,!W),p)),children:[I(u,{in:!W,timeout:500,children:I(A,{className:P.cAddAnnotationFormInputPaperLabel,children:I(v,{variant:"body2","data-testid":"".concat("AppAnnotationsPo","_collapsedInput"),className:B.inputLabel,onClick:function(){return O(!0)},children:"Type annotation here"})})}),I(u,{in:W,timeout:100,children:I("div",{className:P.cAddAnnotationFormInputPaperAddAnnotation,children:W&&I(h,{onSend:H,assetCompanyId:d,currentUser:T})})})]})]})};B.propTypes={appId:p.isRequired,assetId:p.isRequired,assetCompanyId:p.isRequired,appSettings:a().isRequired,currentUser:a({}),classes:a().isRequired,location:a().isRequired,dashboardType:m},B.defaultProps={currentUser:{},dashboardType:null};var F=d([C((function(e){return{inputLabel:{color:e.palette.grey[700],fontWeight:200,width:"100%"}}})),T])(i(B));export{F as default};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default AppIcon;
|
|
2
|
+
declare function AppIcon({ className, segment, iconUrl, width, height, radius, dataTestId }: {
|
|
3
|
+
className: any;
|
|
4
|
+
segment: any;
|
|
5
|
+
iconUrl: any;
|
|
6
|
+
width: any;
|
|
7
|
+
height: any;
|
|
8
|
+
radius: any;
|
|
9
|
+
dataTestId: any;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
declare namespace AppIcon {
|
|
12
|
+
namespace propTypes {
|
|
13
|
+
const segment: PropTypes.Validator<string>;
|
|
14
|
+
const iconUrl: PropTypes.Requireable<string>;
|
|
15
|
+
const width: PropTypes.Requireable<number>;
|
|
16
|
+
const height: PropTypes.Requireable<number>;
|
|
17
|
+
const radius: PropTypes.Requireable<number>;
|
|
18
|
+
const dataTestId: PropTypes.Requireable<string>;
|
|
19
|
+
}
|
|
20
|
+
namespace defaultProps {
|
|
21
|
+
const width_1: number;
|
|
22
|
+
export { width_1 as width };
|
|
23
|
+
const height_1: number;
|
|
24
|
+
export { height_1 as height };
|
|
25
|
+
const radius_1: number;
|
|
26
|
+
export { radius_1 as radius };
|
|
27
|
+
const iconUrl_1: any;
|
|
28
|
+
export { iconUrl_1 as iconUrl };
|
|
29
|
+
const dataTestId_1: string;
|
|
30
|
+
export { dataTestId_1 as dataTestId };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
import PropTypes from "prop-types";
|
|
34
|
+
//# sourceMappingURL=AppIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppIcon.d.ts","sourceRoot":"","sources":["../../../src/components/AppIcon/AppIcon.js"],"names":[],"mappings":";AAcA;;;;;;;;gBAuBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"prop-types";import r from"classnames";import{makeStyles as i}from"@material-ui/core";import{SEGMENTS as e}from"../../constants/segment.js";import{getIconComponentBySegment as s,getAppIcon as a}from"./utils.js";import{jsx as n}from"react/jsx-runtime";var o=i((function(){return{icon:{borderRadius:function(t){return t.radius}}}})),m=function(t){var i=t.className,e=t.segment,m=t.iconUrl,c=t.width,d=t.height,u=t.radius,p=t.dataTestId,h=o({radius:u}),l=s(e);return m?n("img",{onError:function(t){t.target.src=a(e)},"data-testid":p,className:r(h.icon,i),width:c,height:d,src:m,alt:"app icon"}):n(l,{className:i,width:c,height:d})};m.propTypes={segment:t.oneOf([e.DRILLING,e.COMPLETION]).isRequired,iconUrl:t.string,width:t.number,height:t.number,radius:t.number,dataTestId:t.string},m.defaultProps={width:16,height:16,radius:10,iconUrl:null,dataTestId:"".concat("AppIcon","_icon")};export{m as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default CompletionAppIcon;
|
|
2
|
+
declare function CompletionAppIcon({ width, height, className, pageName }: {
|
|
3
|
+
width: any;
|
|
4
|
+
height: any;
|
|
5
|
+
className: any;
|
|
6
|
+
pageName: any;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
declare namespace CompletionAppIcon {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
export { number as width };
|
|
11
|
+
export { number as height };
|
|
12
|
+
export { string as pageName };
|
|
13
|
+
export { string as className };
|
|
14
|
+
}
|
|
15
|
+
namespace defaultProps {
|
|
16
|
+
const pageName: string;
|
|
17
|
+
const width: number;
|
|
18
|
+
const height: number;
|
|
19
|
+
const className: any;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
import { number } from "prop-types";
|
|
23
|
+
import { string } from "prop-types";
|
|
24
|
+
//# sourceMappingURL=CompletionAppIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompletionAppIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/AppIcon/assets/CompletionAppIcon.js"],"names":[],"mappings":";AAEA;;;;;gBAiDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{number as o,string as t}from"prop-types";import{jsxs as e,jsx as s}from"react/jsx-runtime";function i(o){var t=o.width,i=o.height,p=o.className,a=o.pageName;return e("svg",{"data-testid":"".concat(a,"_completionIcon"),width:t,height:i,className:p,viewBox:"0 0 320 320",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s("path",{d:"M0 226.25V93.75C0 42 42 0 93.75 0H226.25C278 0 320 42 320 93.75V226.25C320 278 278 320 226.25 320H93.75C42 320 0 278 0 226.25Z",fill:"url(#paint0_linear_completion)"}),s("path",{d:"M160.5 21C83.7325 21 21.5001 83.2324 21.5001 160C21.5001 236.768 83.7325 299 160.5 299C237.268 299 299.5 236.768 299.5 160C299.5 83.2324 237.268 21 160.5 21Z",fill:"url(#paint1_linear_completion)"}),e("defs",{children:[e("linearGradient",{id:"paint0_linear_completion",x1:"160",y1:"320",x2:"160",y2:"0",gradientUnits:"userSpaceOnUse",children:[s("stop",{stopColor:"#D1D1D1"}),s("stop",{offset:"0.1305",stopColor:"#DDDDDE"}),s("stop",{offset:"0.3583",stopColor:"#ECECED"}),s("stop",{offset:"0.6217",stopColor:"#F5F4F6"}),s("stop",{offset:"1",stopColor:"#F8F7F9"})]}),e("linearGradient",{id:"paint1_linear_completion",x1:"160.487",y1:"293.562",x2:"160.487",y2:"17.4482",gradientUnits:"userSpaceOnUse",children:[s("stop",{stopColor:"#DE0A66"}),s("stop",{offset:"0.5373",stopColor:"#86208C"}),s("stop",{offset:"1",stopColor:"#3E32AB"})]})]})]})}i.propTypes={width:o,height:o,pageName:t,className:t},i.defaultProps={pageName:"",width:36,height:36,className:void 0};export{i as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default DrillingAppIcon;
|
|
2
|
+
declare function DrillingAppIcon({ width, height, className, pageName }: {
|
|
3
|
+
width: any;
|
|
4
|
+
height: any;
|
|
5
|
+
className: any;
|
|
6
|
+
pageName: any;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
declare namespace DrillingAppIcon {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
export { string as pageName };
|
|
11
|
+
export { number as width };
|
|
12
|
+
export { number as height };
|
|
13
|
+
export { string as className };
|
|
14
|
+
}
|
|
15
|
+
namespace defaultProps {
|
|
16
|
+
const pageName: string;
|
|
17
|
+
const width: number;
|
|
18
|
+
const height: number;
|
|
19
|
+
const className: any;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
import { string } from "prop-types";
|
|
23
|
+
import { number } from "prop-types";
|
|
24
|
+
//# sourceMappingURL=DrillingAppIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrillingAppIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/AppIcon/assets/DrillingAppIcon.js"],"names":[],"mappings":";AAEA;;;;;gBAkDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{string as t,number as o}from"prop-types";import{jsxs as e,jsx as i}from"react/jsx-runtime";function s(t){var o=t.width,s=t.height,r=t.className,l=t.pageName;return e("svg",{"data-testid":"".concat(l,"_drillingIcon"),width:o,height:s,className:r,viewBox:"0 0 320 320",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i("path",{d:"M0 226.25V93.75C0 42 42 0 93.75 0H226.25C278 0 320 42 320 93.75V226.25C320 278 278 320 226.25 320H93.75C42 320 0 278 0 226.25Z",fill:"url(#paint0_linear_drilling)"}),i("path",{d:"M160.5 21C83.7325 21 21.5001 83.2324 21.5001 160C21.5001 236.767 83.7325 299 160.5 299C237.268 299 299.5 236.767 299.5 160C299.5 83.2324 237.268 21 160.5 21Z",fill:"url(#paint1_linear_drilling)"}),e("defs",{children:[e("linearGradient",{id:"paint0_linear_drilling",x1:"160",y1:"320",x2:"160",y2:"0",gradientUnits:"userSpaceOnUse",children:[i("stop",{stopColor:"#D1D1D1"}),i("stop",{offset:"0.1305",stopColor:"#DDDDDE"}),i("stop",{offset:"0.3583",stopColor:"#ECECED"}),i("stop",{offset:"0.6217",stopColor:"#F5F4F6"}),i("stop",{offset:"1",stopColor:"#F8F7F9"})]}),e("linearGradient",{id:"paint1_linear_drilling",x1:"160.487",y1:"293.562",x2:"160.487",y2:"17.4482",gradientUnits:"userSpaceOnUse",children:[i("stop",{stopColor:"#05A895"}),i("stop",{offset:"0.183",stopColor:"#04928A"}),i("stop",{offset:"0.7366",stopColor:"#01556D"}),i("stop",{offset:"1",stopColor:"#003D61"})]})]})]})}s.propTypes={pageName:t,width:o,height:o,className:t},s.defaultProps={pageName:"",width:36,height:36,className:void 0};export{s as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default NoSegmentAppIcon;
|
|
2
|
+
declare function NoSegmentAppIcon({ width, height, className, pageName }: {
|
|
3
|
+
width: any;
|
|
4
|
+
height: any;
|
|
5
|
+
className: any;
|
|
6
|
+
pageName: any;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
declare namespace NoSegmentAppIcon {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
export { string as pageName };
|
|
11
|
+
export { number as width };
|
|
12
|
+
export { number as height };
|
|
13
|
+
export { string as className };
|
|
14
|
+
}
|
|
15
|
+
namespace defaultProps {
|
|
16
|
+
const pageName: string;
|
|
17
|
+
const width: number;
|
|
18
|
+
const height: number;
|
|
19
|
+
const className: any;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
import { string } from "prop-types";
|
|
23
|
+
import { number } from "prop-types";
|
|
24
|
+
//# sourceMappingURL=NoSegmentAppIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoSegmentAppIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/AppIcon/assets/NoSegmentAppIcon.js"],"names":[],"mappings":";AAEA;;;;;gBAeC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{string as t,number as e}from"prop-types";import{jsx as a}from"react/jsx-runtime";function i(t){var e=t.width,i=t.height,s=t.className,h=t.pageName;return a("svg",{"data-testid":"".concat(h,"_satelliteIcon"),width:e,height:i,className:s,style:{opacity:.5},fill:"#03BCD4",viewBox:"110 110 800 800",xmlns:"http://www.w3.org/2000/svg",children:a("path",{d:"M810.666667 128H213.333333c-47.146667 0-85.333333 38.186667-85.333333 85.333333v597.333334c0 47.146667 38.186667 85.333333 85.333333 85.333333h597.333334c47.146667 0 85.333333-38.186667 85.333333-85.333333V213.333333c0-47.146667-38.186667-85.333333-85.333333-85.333333zM213.333333 212.906667h128c0 70.613333-57.386667 128.426667-128 128.426666V212.906667zM213.333333 512v-85.333333c117.76 0 213.333333-96 213.333334-213.76h85.333333C512 377.813333 378.24 512 213.333333 512z m0 256l149.333334-192 106.666666 128.213333L618.666667 512l192 256H213.333333z"})})}i.propTypes={pageName:t,width:e,height:e,className:t},i.defaultProps={pageName:"",width:36,height:36,className:void 0};export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AppIcon/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/AppIcon/utils.js"],"names":[],"mappings":"AAQA,kFAOC;AAED,8CAOC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SEGMENTS as e}from"../../constants/segment.js";import c from"./assets/CompletionAppIcon.js";import t from"./assets/DrillingAppIcon.js";import n from"./assets/NoSegmentAppIcon.js";function s(s){return s&&s.length?s.includes(e.COMPLETION)?c:s.includes(e.DRILLING)?t:n:n}function i(c){return c&&c.length?c.includes(e.COMPLETION)?"/static/media/43e20eb6b463d31ea0b4383f2106be5d.png":c.includes(e.DRILLING)?"/static/media/d04a2e9dbd9d385c1cccf43ce680953f.png":"/static/media/3f1e09e6e814329ccfc22c5f2fb49320.png":"/static/media/3f1e09e6e814329ccfc22c5f2fb49320.png"}export{i as getAppIcon,s as getIconComponentBySegment};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export default PrimaryAssetSelect;
|
|
2
|
-
declare function PrimaryAssetSelect({ label,
|
|
2
|
+
declare function PrimaryAssetSelect({ placeholder, label, "data-testid": PAGE_NAME, appKey, assetType, defaultValue, currentValue, disableClearable, isNullable, onChange, groups, selectedGroup, onGroupChange, assetFields, onInputReset, onActiveAssetIdChange, }: {
|
|
3
|
+
placeholder: any;
|
|
3
4
|
label: any;
|
|
4
|
-
|
|
5
|
+
"data-testid": any;
|
|
5
6
|
appKey: any;
|
|
6
7
|
assetType: any;
|
|
7
8
|
defaultValue: any;
|
|
9
|
+
currentValue: any;
|
|
8
10
|
disableClearable: any;
|
|
9
11
|
isNullable: any;
|
|
10
12
|
onChange: any;
|
|
@@ -12,10 +14,22 @@ declare function PrimaryAssetSelect({ label, dataTestId, appKey, assetType, defa
|
|
|
12
14
|
selectedGroup: any;
|
|
13
15
|
onGroupChange: any;
|
|
14
16
|
assetFields: any;
|
|
17
|
+
onInputReset: any;
|
|
18
|
+
onActiveAssetIdChange: any;
|
|
15
19
|
}): JSX.Element;
|
|
16
20
|
declare namespace PrimaryAssetSelect {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
const propTypes: {
|
|
22
|
+
assetFields: PropTypes.Requireable<any[]>;
|
|
23
|
+
'data-testid': PropTypes.Requireable<string>;
|
|
24
|
+
onInputReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
25
|
+
placeholder: PropTypes.Requireable<string>;
|
|
26
|
+
};
|
|
27
|
+
const defaultProps: {
|
|
28
|
+
assetFields: any[];
|
|
29
|
+
'data-testid': string;
|
|
30
|
+
onInputReset: () => void;
|
|
31
|
+
placeholder: any;
|
|
32
|
+
};
|
|
20
33
|
}
|
|
34
|
+
import PropTypes from "prop-types";
|
|
21
35
|
//# sourceMappingURL=PrimaryAssetSelect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrimaryAssetSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/components/PrimaryAssetSelect.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"PrimaryAssetSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/components/PrimaryAssetSelect.js"],"names":[],"mappings":";AA0CA;;;;;;;;;;;;;;;;;gBAiGC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/slicedToArray";import{useState as
|
|
1
|
+
import t from"@babel/runtime/helpers/slicedToArray";import e from"prop-types";import{useState as o,useCallback as s}from"react";import{debounce as a}from"lodash";import{makeStyles as r,Chip as n}from"@material-ui/core";import p from"../../Search/Search.js";import"../../Search/components/Listbox.js";import"../../Search/components/Paper.js";import"../../Search/components/RecentSearches.js";import i from"../../Search/components/InputAdornmentLeft.js";import l from"../../Search/components/Groups.js";import{usePrimaryAssetSelectData as c}from"../effects/index.js";import{ACTIVE_STATUS as m}from"../constants.js";import u from"./SelectItem.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{ASSET_TYPES as d}from"../../../constants/assetTypes.js";import"../../../utils/env.js";import"../../GradientManager/configuration/constants.js";import{jsx as h}from"react/jsx-runtime";var g=r({paper:{boxShadow:"0px 3px 10px 0px #00000066"},listbox:{maxHeight:210,"& .MuiAutocomplete-option":{padding:"0px 0px 0px 16px"}},option:{padding:"6px 0","&:hover":{backgroundColor:"initial"}},groupChip:{height:32,padding:0},activeChip:{backgroundColor:"#75DB29",color:"#000000",fontSize:10,cursor:"pointer",height:12,textTransform:"uppercase",marginRight:12}}),f=function(e){var r=e.placeholder,f=e.label,j=e["data-testid"],b=e.appKey,x=e.assetType,C=e.defaultValue,v=e.currentValue,S=e.disableClearable,A=e.isNullable,y=e.onChange,I=e.groups,F=e.selectedGroup,G=e.onGroupChange,R=e.assetFields,T=e.onInputReset,P=e.onActiveAssetIdChange,N=o(null),V=t(N,2),L=V[0],M=V[1],O=o(""),k=t(O,2),K=k[0],_=k[1],w=x===d.rig.type?"Search Rig...":"Search Pad / Frac Fleet ...",z=g(),B=c({appKey:b,assetType:x,groups:I,assetFields:R,selectedGroup:F,currentValue:v,setCurrentOption:M,onActiveAssetIdChange:P}),D=B.assets,E=B.loading,H=s(a((function(t){_(t)}),200),[]);return h(p,{classes:{paper:z.paper,listbox:z.listbox,groupChip:z.groupChip},loading:E,placeholder:r||w,defaultValue:C,disableClearable:S,isNullable:A,onGroupChange:G,onChange:function(t,e){M(e),y(e)},"data-testid":j,onInputChange:H,onInputReset:function(){T(),M(null)},TextFieldProps:{label:f,value:K,endAdornment:(null==L?void 0:L.status)===m&&h(n,{"data-not-migrated-muichip":!0,className:z.activeChip,label:"Active"})},value:L,options:D,renderCustomOption:function(t){var e=t.status,o=t.name,s=t.id;return h(u,{className:z.option,assetName:o,value:s,status:e&&m,"data-testid":"".concat(j,"_option_").concat(o,"MenuItem")},s)},getOptionLabel:function(t){return t.name||""},GroupsComponent:l,groups:I,InputProps:{startAdornment:h(i,{})}})};f.propTypes={assetFields:e.array,"data-testid":e.string,onInputReset:e.func,placeholder:e.string},f.defaultProps={assetFields:[],"data-testid":"PrimaryAssetEditorAutocomplete",onInputReset:function(){},placeholder:null};export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecondaryAssetSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/components/SecondaryAssetSelect.js"],"names":[],"mappings":"AAQA,+CAAgD;;
|
|
1
|
+
{"version":3,"file":"SecondaryAssetSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/components/SecondaryAssetSelect.js"],"names":[],"mappings":"AAQA,+CAAgD;;AAiChD,+DA+FC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/toConsumableArray";import t from"prop-types";import{capitalize as
|
|
1
|
+
import e from"@babel/runtime/helpers/toConsumableArray";import t from"prop-types";import{capitalize as s}from"lodash";import{makeStyles as a,FormControl as r,InputLabel as n,Select as i,CircularProgress as o}from"@material-ui/core";import{useSecondaryAssetSelectData as l}from"../effects/index.js";import p from"./SelectItem.js";import{ACTIVE_STATUS as c,ACTIVE_ASSET_ID as d}from"../constants.js";import{jsxs as u,jsx as m}from"react/jsx-runtime";var f="DC_SingleAssetEditor",y=a({container:{position:"relative"},select:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:0},formControl:{marginTop:16,width:"100%"},selectValue:{padding:0,"&:hover":{backgroundColor:"initial"}},progress:{position:"absolute",right:20,bottom:4},noActiveAsset:{color:"#9E9E9E",padding:"8px 0 6px"}}),v=function(t){var a=t.appKey,v=t.primaryAssetLabel,g=t.secondaryAssetLabel,h=t.currentValue,A=t.defaultValue,T=t.onChange,b=t.parentAssetId,C=t.assetType,I=t.parentAssetType,N=t.assetFields,V=t.activeWellId,x=l({appKey:a,assetId:h,assetType:C,parentAssetId:b,parentAssetType:I,assetFields:N,activeWellId:V}),j=x.assets,_=x.loading,E=y(),F=h||A,K=j.some((function(e){return e.status===c})),W=s(C),k=[{name:"Active ".concat(W),id:d}].concat(e(j));return u("div",{className:E.container,children:[u(r,{className:E.formControl,disabled:_,children:[m(n,{shrink:!!F,children:g}),m(i,{"data-testid":t["data-testid"],classes:{select:E.select},value:F,onChange:function(e){return T(e.target.value)},fullWidth:!0,renderValue:function(e){if(e===d&&!K)return m("span",{className:E.noActiveAsset,children:"".concat(v," has No Active ").concat(g)});if(e===d&&K){var t=j.find((function(e){return e.status===c}));return m(p,{className:E.selectValue,assetName:t.name,status:t.status})}var s=j.find((function(t){return t.id===e}));return m(p,{className:E.selectValue,assetName:null==s?void 0:s.name,status:null==s?void 0:s.status})},children:k.map((function(e){var t=e.id,s=e.name,a=e.status,r=s||"";return m(p,{assetName:r,dataTestId:"".concat(f,"_option_").concat(r,"MenuItem"),value:t,status:a},t)}))})]}),_&&m(o,{"data-testid":"".concat(f,"_CircularProgress"),size:20,className:E.progress})]})};v.propTypes={appType:t.shape({constants:t.shape({})}),currentValue:t.oneOfType([t.number,t.string]),defaultValue:t.any,onChange:t.func.isRequired,parentAssetId:t.number,parentAssetType:t.string,assetType:t.string.isRequired,"data-testid":t.string,appKey:t.string,assetFields:t.array},v.defaultProps={currentValue:"",defaultValue:"",appType:void 0,parentAssetId:void 0,parentAssetType:void 0,"data-testid":"".concat(f,"_autoComplete"),appKey:null,assetFields:[]};export{f as PAGE_NAME,v as default};
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
export default SelectItem;
|
|
2
|
-
declare function SelectItem({
|
|
2
|
+
declare function SelectItem({ "data-testid": PAGE_NAME, value, className, assetName, status, ...restProps }: {
|
|
3
3
|
[x: string]: any;
|
|
4
|
-
|
|
4
|
+
"data-testid": any;
|
|
5
5
|
value: any;
|
|
6
6
|
className: any;
|
|
7
7
|
assetName: any;
|
|
8
8
|
status: any;
|
|
9
9
|
}): JSX.Element;
|
|
10
|
+
declare namespace SelectItem {
|
|
11
|
+
const propTypes: {
|
|
12
|
+
'data-testid': PropTypes.Requireable<string>;
|
|
13
|
+
};
|
|
14
|
+
const defaultProps: {
|
|
15
|
+
'data-testid': string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
import PropTypes from "prop-types";
|
|
10
19
|
//# sourceMappingURL=SelectItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectItem.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/components/SelectItem.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SelectItem.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/components/SelectItem.js"],"names":[],"mappings":";AA6BA;;;;;;;gBAsCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/objectWithoutProperties";import{useState as a}from"react";import o from"prop-types";import i from"classnames";import{makeStyles as n,Tooltip as s,MenuItem as c,Chip as p}from"@material-ui/core";import{ACTIVE_STATUS as m}from"../constants.js";import l from"../../MiddleTruncate/MiddleTruncate.js";import{jsx as u,jsxs as d}from"react/jsx-runtime";var f=["data-testid","value","className","assetName","status"];function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function h(t){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?b(Object(a),!0).forEach((function(r){e(t,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):b(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var g=n({menuItem:{display:"flex",justifyContent:"space-between",width:"100%",height:36,paddingBottom:0,paddingTop:0},activeChip:{fontWeight:500,backgroundColor:"#75DB29",color:"#212121",fontSize:10,cursor:"pointer",height:12,textTransform:"uppercase",marginRight:12,letterSpacing:1}}),y=function(e){var o=e["data-testid"],n=e.value,b=e.className,y=e.assetName,O=e.status,j=r(e,f),v=a(null),P=t(v,2),w=P[0],T=P[1],x=!!w,N=g();return u(s,{title:x?y:"",children:d(c,h(h({"data-testid":o,value:n,className:i(N.menuItem,b)},j),{},{children:[u(l,{onTruncate:function(e){T(e)},truncatedText:w,maxWidth:380,children:y}),O===m&&u(p,{"data-not-migrated-muichip":!0,className:N.activeChip,label:"Active"})]}))})};y.propTypes={"data-testid":o.string},y.defaultProps={"data-testid":"MenuItem"};export{y as default};
|
|
@@ -11,7 +11,7 @@ export function useSecondaryAssetSelectData({ appKey, assetType, assetId, parent
|
|
|
11
11
|
assets: any[];
|
|
12
12
|
loading: boolean;
|
|
13
13
|
};
|
|
14
|
-
export function usePrimaryAssetSelectData({ appKey, assetType, companyId, groups, parentAssetId, parentAssetType, searchText, assetFields, }: {
|
|
14
|
+
export function usePrimaryAssetSelectData({ appKey, assetType, companyId, groups, parentAssetId, parentAssetType, searchText, assetFields, currentValue, setCurrentOption, onActiveAssetIdChange, }: {
|
|
15
15
|
appKey: any;
|
|
16
16
|
assetType: any;
|
|
17
17
|
companyId: any;
|
|
@@ -20,6 +20,9 @@ export function usePrimaryAssetSelectData({ appKey, assetType, companyId, groups
|
|
|
20
20
|
parentAssetType: any;
|
|
21
21
|
searchText: any;
|
|
22
22
|
assetFields: any;
|
|
23
|
+
currentValue: any;
|
|
24
|
+
setCurrentOption: any;
|
|
25
|
+
onActiveAssetIdChange: any;
|
|
23
26
|
}): {
|
|
24
27
|
assets: any[];
|
|
25
28
|
loading: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/effects/index.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;EAkCC;AAED
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/effects/index.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;EAkCC;AAED;;;;;;;;;;;;;;;EAsEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/toConsumableArray";import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/regenerator";import{useState as o,useEffect as a}from"react";import"uuid";import"lodash";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import{mapAssetGetRequest as i}from"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import{jsonaDataFormatter as p}from"../../../utils/jsonaDataFormatter.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{ASSET_TYPES as c}from"../../../constants/assetTypes.js";import"../../../utils/env.js";import"../../GradientManager/configuration/constants.js";import{formatAsset as
|
|
1
|
+
import t from"@babel/runtime/helpers/toConsumableArray";import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/regenerator";import{useState as o,useEffect as a}from"react";import"uuid";import"lodash";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import{mapAssetGetRequest as i}from"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import{jsonaDataFormatter as p}from"../../../utils/jsonaDataFormatter.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{ASSET_TYPES as c}from"../../../constants/assetTypes.js";import"../../../utils/env.js";import"../../GradientManager/configuration/constants.js";import{formatAsset as u,sortAsset as l,getRequestOptions as m}from"../utils/index.js";function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?f(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t){var c=t.appKey,f=t.assetType,y=t.assetId,j=t.parentAssetType,b=t.parentAssetId,h=t.queryParams,g=t.assetFields,v=t.activeWellId,O=o([]),w=n(O,2),P=w[0],A=w[1],x=o(!0),I=n(x,2),T=I[0],k=I[1];return a((function(){function t(){return(t=r(s.mark((function t(){var r,n;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i(f)(d(d(d({},m(f,g)),{},e({per_page:1e4},j,b),c&&{app_key:c}),h));case 2:r=t.sent,n=p.deserialize(r),A(n.map((function(t){return u({asset:t,activeWellId:v})})).sort(l)),k(!1);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}k(!0),function(){t.apply(this,arguments)}()}),[f,y,j,b,c,v]),{assets:P,loading:T}}function j(e){var f,y=e.appKey,j=e.assetType,b=e.companyId,h=e.groups,g=e.parentAssetId,v=e.parentAssetType,O=e.searchText,w=e.assetFields,P=e.currentValue,A=e.setCurrentOption,x=e.onActiveAssetIdChange,I=o([]),T=n(I,2),k=T[0],_=T[1],D=o(!1),C=n(D,2),E=C[0],F=C[1],W=(f=r(s.mark((function e(r){var n,o,a,f,h,I,T,k;return s.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=(null==r?void 0:r.type)||j,F(!0),o={per_page:1e4},v&&g&&(o[v]=g),b&&(o.company=b),O&&(o.search=O),y&&(o.app_key=y),a=n===c.pad.type?[].concat(t(w),["pad.wells","pad.pad_frac_fleets"]):w,f=i(n)(d(d({},m(n,a)),o)),e.next=12,f;case 12:h=e.sent,I=p.deserialize(h),T=I.map((function(t){return u({asset:t,group:null==r?void 0:r.name,isPrimaryAsset:!0})})).sort(l),_((function(e){return[].concat(t(e),t(T))})),P&&n===j&&(k=T.find((function(t){return P===t.id})),A(k),n===c.rig.type&&x(null==k?void 0:k.activeWellId)),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(0),console.error(e.t0);case 22:return e.prev=22,F(!1),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[0,19,22,25]])}))),function(t){return f.apply(this,arguments)});return a((function(){h?h.forEach((function(t){W(t)})):W()}),[j,v,g,b,y,null==h?void 0:h.length]),{assets:k,loading:E}}export{j as usePrimaryAssetSelectData,y as useSecondaryAssetSelectData};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export default AppSettingsAssetEditor;
|
|
2
|
-
declare function AppSettingsAssetEditor({ appKey, appType, defaultValue, isNullable, label, onSettingsChange, settings, }: {
|
|
2
|
+
declare function AppSettingsAssetEditor({ appKey, appType, defaultValue, isNullable, label, onSettingsChange, isHiddenTitle, settings, }: {
|
|
3
3
|
appKey: any;
|
|
4
4
|
appType: any;
|
|
5
5
|
defaultValue: any;
|
|
6
6
|
isNullable: any;
|
|
7
7
|
label: any;
|
|
8
8
|
onSettingsChange: any;
|
|
9
|
+
isHiddenTitle: any;
|
|
9
10
|
settings: any;
|
|
10
11
|
}): JSX.Element;
|
|
11
12
|
declare namespace AppSettingsAssetEditor {
|
|
@@ -13,6 +14,7 @@ declare namespace AppSettingsAssetEditor {
|
|
|
13
14
|
const label: string;
|
|
14
15
|
const isNullable: boolean;
|
|
15
16
|
const defaultValue: any;
|
|
17
|
+
const isHiddenTitle: boolean;
|
|
16
18
|
const appKey: any;
|
|
17
19
|
}
|
|
18
20
|
namespace propTypes {
|
|
@@ -25,6 +27,8 @@ declare namespace AppSettingsAssetEditor {
|
|
|
25
27
|
export { label_1 as label };
|
|
26
28
|
const isNullable_1: PropTypes.Requireable<boolean>;
|
|
27
29
|
export { isNullable_1 as isNullable };
|
|
30
|
+
const isHiddenTitle_1: PropTypes.Requireable<boolean>;
|
|
31
|
+
export { isHiddenTitle_1 as isHiddenTitle };
|
|
28
32
|
const appKey_1: PropTypes.Requireable<string>;
|
|
29
33
|
export { appKey_1 as appKey };
|
|
30
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AssetEditorV2/index.js"],"names":[],"mappings":";AAgBA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AssetEditorV2/index.js"],"names":[],"mappings":";AAgBA;;;;;;;;;gBAoHC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as s}from"react";import a from"prop-types";import{get as r}from"lodash";import{makeStyles as
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as s}from"react";import a from"prop-types";import{get as r}from"lodash";import{makeStyles as i}from"@material-ui/core";import n from"./components/PrimaryAssetSelect.js";import l from"./components/SecondaryAssetSelect.js";import"./components/SelectItem.js";import{ACTIVE_ASSET_ID as o}from"./constants.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{ASSET_TYPES as p}from"../../constants/assetTypes.js";import"../../utils/env.js";import"../GradientManager/configuration/constants.js";import{jsxs as d,jsx as m}from"react/jsx-runtime";var c=i({title:{fontWeight:400,fontSize:20,margin:"28px 0 16px"}}),u=function(a){var i=a.appKey,u=a.appType,y=a.defaultValue,f=a.isNullable,A=a.label,g=a.onSettingsChange,b=a.isHiddenTitle,j=a.settings,v=r(u,["primaryAsset","assetType","type"]),T=r(u,["primaryAsset","assetType","id"]),h=r(u,["primaryAsset","assetType","label"]),C=r(u,["primaryAsset","groups"]),S=r(u,["secondaryAsset","assetType","type"]),N=r(u,["secondaryAsset","assetType","id"]),I=r(u,["secondaryAsset","assetType","label"]),V=r(j,T),_=s(V||y),K=t(_,2),x=K[0],F=K[1],R=s(r(j,N)),q=t(R,2),E=q[0],G=q[1],H=s(null),P=t(H,2),W=P[0],w=P[1],D=s(!1),L=t(D,2),z=L[0],M=L[1],k=s(),B=t(k,2),J=B[0],O=B[1],Q=c(),U=S===p.pad.type?["pad.wells"]:[];return d("div",{className:Q.main,children:[!b&&m("div",{className:Q.title,children:"Asset"}),m(n,{appKey:i,assetType:v,"data-testid":"".concat("DC_AppSettingsAssetEditor","_primaryAssetEditorAutocomplete"),defaultValue:y,disableClearable:!f,currentValue:x,isNullable:f,label:A,onChange:function(t){var s=t.id,a=t.type,r=t.parentFracFleetId,i=t.activeWellId;if(s)if(a!==p.pad.type){F(s),w(i),G(null);var n=e({},T,s);N&&(n[N]=null),g(n),M(!1)}else{var l;M(!0),G(s);var o=(e(l={},p.frac_fleet.id,Number(r)),e(l,p.pad.id,s),l);g(o)}},selectedGroup:J,onGroupChange:function(e){O(e)},groups:C,onInputReset:function(){var t;F(null),G(null),w(null),M(!1);var s=(e(t={},T,null),e(t,N,null),t);g(s)},onActiveAssetIdChange:function(e){w(e)},assetFields:v===p.rig.type?["rig.active_well"]:[]}),x&&!z&&m(l,{"data-testid":"".concat("DC_AppSettingsAssetEditor","_secondaryAutoComplete"),onChange:function(t){G(t),g(e({},N,t===o?null:t))},defaultValue:"activeAsset",currentValue:E,activeWellId:W,isNullable:f,assetType:S,parentAssetId:x,parentAssetType:v,primaryAssetLabel:h,secondaryAssetLabel:I,appKey:i,assetFields:U})]})};u.defaultProps={label:"Choose An Asset",isNullable:!1,defaultValue:void 0,isHiddenTitle:!1,appKey:null},u.propTypes={settings:a.shape({}).isRequired,appType:a.shape({}).isRequired,defaultValue:a.any,onSettingsChange:a.func.isRequired,label:a.string,isNullable:a.bool,isHiddenTitle:a.bool,appKey:a.string};export{u as default};
|
|
@@ -5,14 +5,16 @@ export function getRequestOptions(assetType: any, assetFields?: any[]): {
|
|
|
5
5
|
order: string;
|
|
6
6
|
fields: any[];
|
|
7
7
|
};
|
|
8
|
-
export function formatAsset({ asset, group, activeWellId }: {
|
|
8
|
+
export function formatAsset({ asset, group, activeWellId, isPrimaryAsset }: {
|
|
9
9
|
asset: any;
|
|
10
10
|
group: any;
|
|
11
11
|
activeWellId: any;
|
|
12
|
+
isPrimaryAsset: any;
|
|
12
13
|
}): {
|
|
13
14
|
id: number;
|
|
14
15
|
type: any;
|
|
15
16
|
name: any;
|
|
17
|
+
assetId: any;
|
|
16
18
|
};
|
|
17
19
|
export function sortAsset(curr: any): 1 | -1;
|
|
18
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/utils/index.js"],"names":[],"mappings":"AAIO,yDAUN;AAEM,2DAUN;AAEM;;;;EAIL;AAEK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/utils/index.js"],"names":[],"mappings":"AAIO,yDAUN;AAEM,2DAUN;AAEM;;;;EAIL;AAEK;;;;;;;;;;EA6BN;AAEM,6CAAkE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/toConsumableArray";import{isEmpty as
|
|
1
|
+
import t from"@babel/runtime/helpers/toConsumableArray";import{isEmpty as s}from"lodash";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{ASSET_TYPES as n}from"../../../constants/assetTypes.js";import"../../../utils/env.js";import"../../GradientManager/configuration/constants.js";import{ACTIVE_STATUS as e}from"../constants.js";var r=function(){var t,n,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=null===(t=r.find((function(t){return t===t.current})))||void 0===t?void 0:t.id,o=r.reduce((function(t,s){return new Date(t.lastCurrentAt)>new Date(s.lastCurrentAt)?t:s}),{});return s(a)?null===(n=o.fracFleet)||void 0===n?void 0:n.id:null===(e=a.fracFleet)||void 0===e?void 0:e.id},a=function(s){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{sort:"name",order:"asc",fields:["".concat(s,".name"),"".concat(s,".asset_id"),"".concat(s,".status")].concat(t(n))}},o=function(t){var s,a=t.asset,o=t.group,i=t.activeWellId,l=t.isPrimaryAsset,c={id:+a.id,type:a.type,name:a.name,assetId:a.assetId};(o&&(c.group=o),a.type===n.rig.type)&&(c.activeWellId=(null===(s=a.activeWell)||void 0===s?void 0:s.status)===e?Number(a.activeWell.id):null);if(a.type===n.well.type&&(c.status=Number(a.id)===i?e:null),a.type===n.pad.type){var u=r(a.padFracFleets);c.parentFracFleetId=u;var p=a.wells.some((function(t){return t.status===e}));c.status=p?e:null,l&&!u&&(c.status=null)}return c},i=function(t){return t.status===e?-1:1};export{o as formatAsset,r as getPadFracFleetId,a as getRequestOptions,i as sortAsset};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssetStatusBadge.d.ts","sourceRoot":"","sources":["../../../src/components/AssetNameLabel/AssetStatusBadge.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AssetStatusBadge.d.ts","sourceRoot":"","sources":["../../../src/components/AssetNameLabel/AssetStatusBadge.tsx"],"names":[],"mappings":";AAmBA,UAAU,qBAAqB;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,qBAAqB,GAAG,GAAG,CAAC,OAAO,CAMxF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{makeStyles as r}from"@material-ui/core";import s from"classnames";var a=r((function(t){return{assetStatus:{alignItems:"center",backgroundColor:t.palette.success.bright,borderRadius:6,color:"black",display:"flex",fontSize:9,fontWeight:500,height:12,letterSpacing:"0.1em",padding:"0 8px",textTransform:"uppercase"}}}));function o(r){var o=r.text,i=r.className,n=a();return o?e("div",t({className:s(n.assetStatus,i)},{children:o})):null}export{o as AssetStatusBadge};
|