@corva/ui 0.89.0-0 → 0.89.0-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs-bundle/clients/api/apiCore.js +1 -1
- package/cjs-bundle/components/AddComment/Popover.js +1 -1
- package/cjs-bundle/components/AddComment/Popup.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js +1 -1
- package/cjs-bundle/components/AdvancedSlider/Handle.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AnnotationComments/index.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/index.js +1 -1
- package/cjs-bundle/components/Annotations/components/LastAnnotation/index.js +1 -1
- package/cjs-bundle/components/AppIcon/utils.js +1 -1
- package/cjs-bundle/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/cjs-bundle/components/AssetEditor/effects/index.js +1 -1
- package/cjs-bundle/components/AssetEditor/index.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/effects/index.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/effects/usePrimaryAssetSelectData.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/Attachment/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/Breadcrumbs/index.js +1 -1
- package/cjs-bundle/components/Casing/CasingTable/index.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/CasingTableV2.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Browser.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/Browser.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/EditComponentDialog.js +1 -1
- package/cjs-bundle/components/Casing/CasingTile/CasingTile.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/PanButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js +1 -1
- package/cjs-bundle/components/Chart/utils.js +1 -1
- package/cjs-bundle/components/ChartActionsList/ChartActionsList.js +1 -1
- package/cjs-bundle/components/CollapsableSidebar.js +1 -1
- package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
- package/cjs-bundle/components/Comment/index.js +1 -1
- package/cjs-bundle/components/CommentInput/index.js +1 -1
- package/cjs-bundle/components/CommentsInfo/index.js +1 -1
- package/cjs-bundle/components/DevCenter/AppHeader/AppHeader.js +1 -1
- package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
- package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/useAppsData.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/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.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/BHAComponentDetail/index.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Browser.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Browser.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/Browser.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Browser.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Browser.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Browser.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Browser.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Browser.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Browser.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/SortableComponent.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Browser.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Browser.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Browser.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/Drillstring/BHAComponentsTable/components/shared/InputText.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAList/BHAList.js +1 -1
- package/cjs-bundle/components/Drillstring/BHATable/index.js +1 -1
- package/cjs-bundle/components/Drillstring/BHATile/BHATile.js +1 -1
- package/cjs-bundle/components/Drillstring/DrillstringDetail/DrillstringDetail.js +1 -1
- package/cjs-bundle/components/EmbeddedApp/DevCenterEmbeddedApp.js +1 -1
- package/cjs-bundle/components/EmbeddedApp/EmbeddedApp.js +1 -1
- package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.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/FeedItemEditProvider/FeedItemEditProvider.js +1 -1
- package/cjs-bundle/components/FeedItem/components/Actions.js +1 -1
- package/cjs-bundle/components/FeedItem/components/Content.js +1 -1
- package/cjs-bundle/components/FeedItem/components/Icon.js +1 -1
- package/cjs-bundle/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/Stages.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/StageOverviewFeedItem/index.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.js +1 -1
- package/cjs-bundle/components/FilePreview/index.js +1 -1
- package/cjs-bundle/components/GoogleDocsViewer/index.js +1 -1
- package/cjs-bundle/components/HeaderLayout/effects/index.js +1 -1
- package/cjs-bundle/components/InfiniteList/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/effects/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/utils/apiCalls.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.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/OffsetWellPickerV3/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/utils/apiCalls.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.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/AdvancedSearch/AssetResultSection.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/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/effects/useAdvancedWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/utils/apiCalls.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/utils/index.js +1 -1
- package/cjs-bundle/components/PadModeSelect/PadModeSelect.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/cjs-bundle/components/ParameterCharts/AddEditTrack.js +1 -1
- package/cjs-bundle/components/ParameterCharts/ParameterCharts.js +1 -1
- package/cjs-bundle/components/ParameterCharts/components/ChartContainer.js +1 -1
- package/cjs-bundle/components/ParameterCharts/components/SingleChannelTrackSettings.js +1 -1
- package/cjs-bundle/components/ParameterCharts/components/Tooltip/Tooltip.js +1 -1
- package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js +1 -1
- package/cjs-bundle/components/ParameterCharts/components/TraceSettings.js +1 -1
- package/cjs-bundle/components/ParameterCharts/components/Track.js +1 -1
- package/cjs-bundle/components/ParameterCharts/components/TrackSettings.js +1 -1
- package/cjs-bundle/components/PinnableFilters/effects/index.js +1 -1
- package/cjs-bundle/components/PostInput/PostInput.js +1 -1
- package/cjs-bundle/components/PostPreviewDialog/index.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/Search/styles.js +1 -1
- package/cjs-bundle/components/StageDesignVActual/ComparisonBar/ComparisonBar.js +1 -1
- package/cjs-bundle/components/StageDesignVActual/ComparisonRow.js +1 -1
- package/cjs-bundle/components/StageDesignVActual/ElementsComparison/ElementsComparison.js +1 -1
- package/cjs-bundle/components/Stepper/Step/Step.js +1 -1
- package/cjs-bundle/components/Stepper/Step/styles.js +1 -1
- package/cjs-bundle/components/Stepper/StepsWrapper.js +1 -1
- package/cjs-bundle/components/Template/TemplateSharingDialog/UsersChipSelector.js +1 -1
- package/cjs-bundle/components/Template/TemplateSharingDialog/index.js +1 -1
- package/cjs-bundle/components/TracesEditModal/TracesEditModal.js +1 -1
- package/cjs-bundle/components/TracesEditModal/TracesEditModalContainer.js +1 -1
- package/cjs-bundle/components/UserCard/index.js +1 -1
- package/cjs-bundle/components/UserMention/index.js +1 -1
- package/cjs-bundle/components/UserMention/utils/index.js +1 -1
- package/cjs-bundle/components/WellSummary/ActivitySummaryChart.js +1 -1
- package/cjs-bundle/components/WellSummary/effects/useWellSummaryData.js +1 -1
- package/cjs-bundle/config/theme/index.js +1 -1
- package/cjs-bundle/effects/useSubscriptions.js +1 -1
- package/cjs-bundle/permissions/constants/index.js +1 -1
- package/cjs-bundle/permissions/useProvidePermissions.js +1 -1
- package/cjs-bundle/permissions/withPermissionsHOC.js +1 -1
- package/cjs-bundle/utils/casing/conversion.js +1 -1
- package/cjs-bundle/utils/constants/units.js +1 -1
- package/cjs-bundle/utils/convert.js +1 -1
- package/cjs-bundle/utils/filePreview.js +1 -1
- package/cjs-bundle/utils/index.js +1 -1
- package/cjs-bundle/utils/metrics/metricsConfig.js +1 -1
- package/clients/api/apiCore.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/Popup.d.ts.map +1 -1
- package/components/AddComment/Popup.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/AdvancedSlider/AdvancedSlider.d.ts.map +1 -1
- package/components/AdvancedSlider/Handle.d.ts.map +1 -1
- package/components/AdvancedSlider/Handle.js +1 -1
- package/components/AdvancedSlider/styles/handleStyles.d.ts +1 -1
- package/components/AdvancedSlider/styles/handleStyles.d.ts.map +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationComments/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.d.ts +1 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/index.d.ts +2 -2
- package/components/Annotations/components/AnnotationsList/index.js +1 -1
- package/components/Annotations/components/LastAnnotation/index.js +1 -1
- package/components/AppIcon/utils.js +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.d.ts.map +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/components/AppVersionsSelect/effects/index.d.ts.map +1 -1
- package/components/AssetEditor/AssetEditorAutocomplete.d.ts +4 -4
- package/components/AssetEditor/SingleAssetEditor.d.ts +3 -3
- package/components/AssetEditor/SingleAssetEditor.d.ts.map +1 -1
- package/components/AssetEditor/effects/index.d.ts.map +1 -1
- package/components/AssetEditor/effects/index.js +1 -1
- package/components/AssetEditor/index.js +1 -1
- package/components/AssetEditorV2/components/MultipleAssetsToggle.d.ts.map +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelect.d.ts.map +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelectV2.d.ts.map +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.map +1 -1
- package/components/AssetEditorV2/effects/index.d.ts.map +1 -1
- package/components/AssetEditorV2/effects/index.js +1 -1
- package/components/AssetEditorV2/effects/usePrimaryAssetSelectData.d.ts.map +1 -1
- package/components/AssetEditorV2/effects/usePrimaryAssetSelectData.js +1 -1
- package/components/AssetEditorV2/index.d.ts.map +1 -1
- package/components/AssetEditorV2/index.js +1 -1
- package/components/AssetEditorV2/utils/index.d.ts.map +1 -1
- package/components/AssetEditorV2/utils/index.js +1 -1
- package/components/AssetsMultipleSelector/AssetsMultipleSelector.d.ts.map +1 -1
- package/components/Attachment/index.d.ts +3 -3
- package/components/Attachment/index.js +1 -1
- package/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/components/Avatar/index.d.ts +4 -4
- package/components/BICOffsetPickerDialog/components/Map/Map.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
- package/components/BICOffsetPickerDialog/components/Map/index.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetResultSection.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetTypesSection.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.d.ts +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/index.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Breadcrumbs/index.d.ts.map +1 -1
- package/components/Breadcrumbs/index.js +1 -1
- package/components/Button/components/Button/index.d.ts +1 -1
- package/components/Button/components/LiveButton/styles.d.ts +1 -1
- package/components/Casing/CasingTable/index.js +1 -1
- package/components/Casing/CasingTableV2/CasingTableV2.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/CasingTableV2.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Browser.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Browser.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Browser.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Browser.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/EditComponentDialog.js +1 -1
- package/components/Casing/CasingTableV2/components/Header.d.ts.map +1 -1
- package/components/Casing/CasingTile/CasingTile.d.ts.map +1 -1
- package/components/Casing/CasingTile/CasingTile.js +1 -1
- package/components/Chart/components/AxisDropdown.d.ts.map +1 -1
- package/components/Chart/components/ChartButton.d.ts.map +1 -1
- package/components/Chart/components/ChartButtons.d.ts.map +1 -1
- package/components/Chart/components/ChartSelect.d.ts.map +1 -1
- package/components/Chart/components/ChartWrapper.d.ts.map +1 -1
- package/components/Chart/components/buttons/ChartTypeButton.d.ts.map +1 -1
- package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/components/Chart/components/buttons/DragToZoomButton.d.ts.map +1 -1
- package/components/Chart/components/buttons/DragToZoomButton.js +1 -1
- package/components/Chart/components/buttons/HideAxesButton.d.ts.map +1 -1
- package/components/Chart/components/buttons/HideAxesButton.js +1 -1
- package/components/Chart/components/buttons/PanButton.d.ts.map +1 -1
- package/components/Chart/components/buttons/PanButton.js +1 -1
- package/components/Chart/components/buttons/ResetZoomButton.d.ts.map +1 -1
- package/components/Chart/components/buttons/ResetZoomButton.js +1 -1
- package/components/Chart/components/buttons/ZoomInButton.d.ts.map +1 -1
- package/components/Chart/components/buttons/ZoomInButton.js +1 -1
- package/components/Chart/components/buttons/ZoomOutButton.d.ts.map +1 -1
- package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
- package/components/Chart/effects/useChartModifier.d.ts.map +1 -1
- package/components/Chart/effects/useZoom.d.ts.map +1 -1
- package/components/Chart/options.d.ts.map +1 -1
- package/components/Chart/utils.d.ts.map +1 -1
- package/components/Chart/utils.js +1 -1
- package/components/ChartActionsList/ChartActionsList.d.ts +1 -1
- package/components/ChartActionsList/ChartActionsList.js +1 -1
- package/components/Chip/index.d.ts +1 -1
- package/components/CollapsableSidebar.d.ts +2 -2
- package/components/CollapsableSidebar.js +1 -1
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
- package/components/Comment/index.d.ts +3 -3
- package/components/Comment/index.js +1 -1
- package/components/CommentInput/index.d.ts +2 -2
- package/components/CommentInput/index.js +1 -1
- package/components/CommentsInfo/index.js +1 -1
- package/components/ConfirmationDialog.d.ts +5 -5
- package/components/ContextMenuItem/index.d.ts.map +1 -1
- package/components/CopyToClipboard/CopyToClipboard.d.ts.map +1 -1
- package/components/DevCenter/AppHeader/AppHeader.d.ts.map +1 -1
- package/components/DevCenter/AppHeader/AppHeader.js +1 -1
- package/components/DevCenter/AppHeader/AppHeaderStyles.d.ts +1 -1
- package/components/DevCenter/AppsDataProvider/AppsDataProvider.d.ts.map +1 -1
- package/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/assetDashboard/wellAssetDashboard/appWithDefaultSettings.d.ts.map +1 -1
- package/components/DevCenter/AppsDataProvider/effects/dataResolvers.d.ts.map +1 -1
- package/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
- package/components/DevCenter/AppsDataProvider/effects/useAppsData.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.d.ts +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.d.ts.map +1 -1
- package/components/DevCenter/DevCenterRouterContext/effects/useDevCenterRouter.d.ts.map +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.d.ts.map +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/components/DevCenter/SideBar/SideBar.d.ts +3 -3
- package/components/DocumentViewer/DocumentViewer.d.ts.map +1 -1
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/Drillstring/BHAComponentDetail/index.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentDetail/index.js +1 -1
- package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Browser.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Browser.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Browser.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Browser.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Header.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Browser.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Browser.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Browser.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Browser.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Browser.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/SortableComponent.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Browser.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Browser.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Browser.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Browser.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/InputText.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/InputText.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/utils/calculation.d.ts.map +1 -1
- package/components/Drillstring/BHAList/BHAList.d.ts.map +1 -1
- package/components/Drillstring/BHAList/BHAList.js +1 -1
- package/components/Drillstring/BHASchematic.d.ts.map +1 -1
- package/components/Drillstring/BHATable/index.d.ts.map +1 -1
- package/components/Drillstring/BHATable/index.js +1 -1
- package/components/Drillstring/BHATile/BHATile.d.ts.map +1 -1
- package/components/Drillstring/BHATile/BHATile.js +1 -1
- package/components/Drillstring/BHATileIcon.d.ts.map +1 -1
- package/components/Drillstring/BhaIndicator/BhaIndicator.d.ts +1 -1
- package/components/Drillstring/BhaIndicator/BhaIndicator.d.ts.map +1 -1
- package/components/Drillstring/DrillstringDetail/DrillstringDetail.d.ts.map +1 -1
- package/components/Drillstring/DrillstringDetail/DrillstringDetail.js +1 -1
- package/components/EditableItem/EditableItemWithBadge/index.d.ts.map +1 -1
- package/components/EmbeddedApp/DevCenterEmbeddedApp.js +1 -1
- package/components/EmbeddedApp/EmbeddedApp.js +1 -1
- package/components/EmbeddedApp/components/AppInfo.d.ts.map +1 -1
- package/components/EmojiIconButton.d.ts.map +1 -1
- package/components/EmptyState/styles.d.ts +1 -1
- package/components/EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.d.ts.map +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.d.ts.map +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
- package/components/FeedItem/FeedItem.d.ts.map +1 -1
- package/components/FeedItem/FeedItem.js +1 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.d.ts +1 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.d.ts.map +1 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -1
- package/components/FeedItem/components/Actions.d.ts.map +1 -1
- package/components/FeedItem/components/Actions.js +1 -1
- package/components/FeedItem/components/AvatarIcon.d.ts.map +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.d.ts.map +1 -1
- package/components/FeedItem/components/Icon.js +1 -1
- package/components/FeedItem/components/RigAndWell.d.ts.map +1 -1
- 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/NptLessonsCommentEdit/NptLessonsCommentEdit.d.ts.map +1 -1
- package/components/FeedItem/editModals/PCCommentEdit/PCCommentEdit.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/AlertFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaSchematic.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/CompletionNptFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/DepthCommentFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/FluidReportFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/GeosteeringFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/GeosteeringFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js +1 -1
- package/components/FeedItem/feedItemTypes/NptFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/PCCommentFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/PostFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/NoData.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/PredictionsItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/Stages.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/Stages.js +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/utils.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/index.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/index.js +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js +1 -1
- package/components/FeedItem/feedItemTypes/TracesMemoFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/constants.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.js +1 -1
- package/components/FilePreview/index.d.ts +1 -1
- package/components/FilePreview/index.js +1 -1
- package/components/FileTypeIcon.d.ts.map +1 -1
- package/components/FileUploadIconButton.d.ts.map +1 -1
- package/components/FilesLoader/Icons/FileIcon.d.ts.map +1 -1
- package/components/FilesLoader/effects/useUploadingFile.d.ts.map +1 -1
- package/components/FilesLoader/useStyles.d.ts.map +1 -1
- package/components/FolderMenuItem/index.d.ts.map +1 -1
- package/components/FolderMenuItemWithLinks/index.d.ts.map +1 -1
- package/components/GoogleDocsViewer/index.d.ts.map +1 -1
- package/components/GoogleDocsViewer/index.js +1 -1
- package/components/GoogleDocsViewer/styles.d.ts +1 -1
- package/components/HeaderLayout/effects/index.d.ts.map +1 -1
- package/components/HeaderLayout/effects/index.js +1 -1
- package/components/Icons/GppGoodIcon.d.ts.map +1 -1
- package/components/Icons/RecommendationIcon.d.ts.map +1 -1
- package/components/Icons/SendIcon.d.ts.map +1 -1
- package/components/ImageViewer/index.d.ts.map +1 -1
- package/components/InfiniteList/index.d.ts.map +1 -1
- package/components/InfiniteList/index.js +1 -1
- package/components/KeyboardDateTimePicker.d.ts.map +1 -1
- package/components/MenuItem/index.d.ts.map +1 -1
- package/components/MiddleTruncate/MiddleTruncate.d.ts.map +1 -1
- package/components/NewDocumentViewer/styles.d.ts +1 -1
- package/components/OffsetWellMap/WellTooltip.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/MultiSelect.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/index.js +1 -1
- package/components/OffsetWellPickerV2/components/Map/Map.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
- package/components/OffsetWellPickerV2/components/Map/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Map/popupGenerator.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsSelect.d.ts +2 -2
- package/components/OffsetWellPickerV2/components/Table/index.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Table/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Table/index.js +1 -1
- package/components/OffsetWellPickerV2/constants.d.ts +1 -0
- package/components/OffsetWellPickerV2/constants.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/effects/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/effects/index.js +1 -1
- package/components/OffsetWellPickerV2/utils/apiCalls.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/popupGenerator.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/utils.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetResultSection.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetTypesSection.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsSelect.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.d.ts +1 -0
- package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.d.ts.map +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.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV3/index.js +1 -1
- package/components/OffsetWellPickerV3/utils/apiCalls.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/utils/apiCalls.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js +1 -1
- package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/PeriodSelect.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/Filter/RadiusInput.d.ts +2 -2
- package/components/OffsetWellPickerV4/components/Filter/RadiusInput.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/Filter/RadiusInput.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/SingleSelect.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/Filter/WellSection.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetTypesSection.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.d.ts +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.d.ts.map +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/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.d.ts.map +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/effects/useAdvancedWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useAdvancedWells.js +1 -1
- package/components/OffsetWellPickerV4/effects/useAssetsData.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useBicWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useFetchWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useFilterOptions.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useFilteredWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useSortedWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useTableColumns.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/utils/apiCalls.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/utils/apiCalls.js +1 -1
- package/components/OffsetWellPickerV4/utils/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/utils/index.js +1 -1
- package/components/OffsetWellPickerV4/utils/timePeriod.d.ts.map +1 -1
- package/components/PadModeSelect/PadModeSelect.d.ts +1 -1
- package/components/PadModeSelect/PadModeSelect.d.ts.map +1 -1
- package/components/PadModeSelect/PadModeSelect.js +1 -1
- package/components/PadModeSelect/utils.d.ts.map +1 -1
- package/components/PadOffsetsPicker/OffsetAssetChip.d.ts.map +1 -1
- package/components/PadOffsetsPicker/OffsetAssetsListExpander.d.ts.map +1 -1
- package/components/PadOffsetsPicker/PadOffsetsPicker.d.ts.map +1 -1
- package/components/PadOffsetsPicker/StagesSelector.d.ts.map +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.d.ts.map +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/components/ParameterCharts/AddEditTrack.d.ts +2 -2
- package/components/ParameterCharts/AddEditTrack.js +1 -1
- package/components/ParameterCharts/ParameterCharts.d.ts.map +1 -1
- package/components/ParameterCharts/ParameterCharts.js +1 -1
- package/components/ParameterCharts/components/ChartContainer.js +1 -1
- package/components/ParameterCharts/components/Charts/LineChart.d.ts.map +1 -1
- package/components/ParameterCharts/components/DataLoadingIndicator.d.ts +1 -1
- package/components/ParameterCharts/components/SingleChannelTrackSettings.js +1 -1
- package/components/ParameterCharts/components/Tooltip/Tooltip.js +1 -1
- package/components/ParameterCharts/components/TraceHeader.js +1 -1
- package/components/ParameterCharts/components/TraceSettings.js +1 -1
- package/components/ParameterCharts/components/Track.d.ts.map +1 -1
- package/components/ParameterCharts/components/Track.js +1 -1
- package/components/ParameterCharts/components/TrackSettings.d.ts +1 -1
- package/components/ParameterCharts/components/TrackSettings.js +1 -1
- package/components/ParameterCharts/constants.d.ts.map +1 -1
- package/components/PinnableFilters/effects/index.js +1 -1
- package/components/PostInput/PostInput.d.ts.map +1 -1
- package/components/PostInput/PostInput.js +1 -1
- package/components/PostPreviewDialog/index.d.ts +2 -2
- package/components/PostPreviewDialog/index.js +1 -1
- package/components/Search/Search.d.ts.map +1 -1
- package/components/Search/Search.js +1 -1
- package/components/Search/components/Groups.d.ts.map +1 -1
- package/components/Search/components/InputAdornmentLeft.d.ts.map +1 -1
- package/components/Search/components/Listbox.d.ts +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/Search/styles.d.ts.map +1 -1
- package/components/Search/styles.js +1 -1
- package/components/SlateFormattedText/RenderElements.d.ts.map +1 -1
- package/components/StageDesignVActual/ComparisonBar/ComparisonBar.js +1 -1
- package/components/StageDesignVActual/ComparisonRow.js +1 -1
- package/components/StageDesignVActual/ElementsComparison/ElementsComparison.js +1 -1
- package/components/Stepper/Step/Step.js +1 -1
- package/components/Stepper/Step/styles.d.ts +1 -1
- package/components/Stepper/Step/styles.js +1 -1
- package/components/Stepper/Stepper.stories.d.ts +1 -0
- package/components/Stepper/Stepper.stories.d.ts.map +1 -1
- package/components/Stepper/StepsWrapper.js +1 -1
- package/components/Table/TableCell/TableCell.d.ts.map +1 -1
- package/components/Table/TablePagination/TablePagination.d.ts +5 -5
- package/components/Table/TableSortLabel/TableSortLabel.d.ts.map +1 -1
- package/components/Template/TemplatePopover/index.d.ts.map +1 -1
- package/components/Template/TemplateSharingDialog/UsersChipSelector.d.ts.map +1 -1
- package/components/Template/TemplateSharingDialog/UsersChipSelector.js +1 -1
- package/components/Template/TemplateSharingDialog/index.js +1 -1
- package/components/TracesEditModal/TracesEditModal.js +1 -1
- package/components/TracesEditModal/TracesEditModalContainer.d.ts.map +1 -1
- package/components/TracesEditModal/TracesEditModalContainer.js +1 -1
- package/components/TruncatedText/index.d.ts.map +1 -1
- package/components/Typography.d.ts +27 -27
- package/components/UserCard/index.d.ts +2 -2
- package/components/UserCard/index.js +1 -1
- package/components/UserCardPopover.d.ts +2 -2
- package/components/UserMention/index.js +1 -1
- package/components/UserMention/utils/index.d.ts.map +1 -1
- package/components/UserMention/utils/index.js +1 -1
- package/components/VirtualizedTable/VirtualizedTable.d.ts +3 -3
- package/components/WellSummary/ActivitySummaryChart.js +1 -1
- package/components/WellSummary/FracWirelineTimeChart.d.ts.map +1 -1
- package/components/WellSummary/WellSummaryItemValue.d.ts +1 -1
- package/components/WellSummary/WellSummaryItemValue.d.ts.map +1 -1
- package/components/WellSummary/effects/useWellSummaryData.d.ts.map +1 -1
- package/components/WellSummary/effects/useWellSummaryData.js +1 -1
- package/components/WellSummary/utils.d.ts.map +1 -1
- package/config/mapbox/index.d.ts.map +1 -1
- package/config/theme/index.js +1 -1
- package/constants/goals.d.ts +1 -0
- package/constants/goals.d.ts.map +1 -1
- package/effects/useDevCenterApp.d.ts.map +1 -1
- package/effects/useSignedURL.d.ts.map +1 -1
- package/effects/useSubscriptions.d.ts.map +1 -1
- package/effects/useSubscriptions.js +1 -1
- package/exampleApp/ChartActionsListExample.d.ts.map +1 -1
- package/exampleApp/ParameterChartExample.d.ts.map +1 -1
- package/hocs/withAssetEditorLockHOC.d.ts.map +1 -1
- package/hocs/withMUIProvidersHOC.d.ts.map +1 -1
- package/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/permissions/ProvidePermissions.d.ts.map +1 -1
- package/permissions/constants/index.d.ts +1 -0
- package/permissions/constants/index.d.ts.map +1 -1
- package/permissions/constants/index.js +1 -1
- package/permissions/useProvidePermissions.d.ts.map +1 -1
- package/permissions/useProvidePermissions.js +1 -1
- package/permissions/withPermissionsHOC.d.ts.map +1 -1
- package/permissions/withPermissionsHOC.js +1 -1
- package/utils/FluidCheckUtils.d.ts.map +1 -1
- package/utils/__tests__/fixtures/convert.fixture.d.ts +0 -7
- package/utils/__tests__/fixtures/convert.fixture.d.ts.map +1 -1
- package/utils/accuracy.d.ts +1 -1
- package/utils/bha.d.ts.map +1 -1
- package/utils/casing/conversion.js +1 -1
- package/utils/casing/validation.d.ts.map +1 -1
- package/utils/constants/units.d.ts +12 -0
- package/utils/constants/units.d.ts.map +1 -1
- package/utils/constants/units.js +1 -1
- package/utils/convert.d.ts.map +1 -1
- package/utils/convert.js +1 -1
- package/utils/devcenterToasts.d.ts.map +1 -1
- package/utils/drillstring/conversion.d.ts.map +1 -1
- package/utils/drillstring/validation.d.ts.map +1 -1
- package/utils/feed.d.ts.map +1 -1
- package/utils/filePreview.d.ts.map +1 -1
- package/utils/filePreview.js +1 -1
- package/utils/index.d.ts.map +1 -1
- package/utils/index.js +1 -1
- package/utils/main.d.ts.map +1 -1
- package/utils/mapbox.d.ts +1 -1
- package/utils/mapbox.d.ts.map +1 -1
- package/utils/metrics/metricsConfig.d.ts +3 -0
- package/utils/metrics/metricsConfig.d.ts.map +1 -1
- package/utils/metrics/metricsConfig.js +1 -1
- package/utils/metrics/utils.d.ts.map +1 -1
- package/utils/notificationToasts.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import i from"@babel/runtime/regenerator";import{useState as r}from"react";import a from"classnames";import{shape as o,number as s,string as c,oneOf as m,node as d,func as l,arrayOf as u}from"prop-types";import{withStyles as p}from"@material-ui/core/styles";import{flowRight as h}from"lodash";import f,{isWidthUp as v}from"@material-ui/core/withWidth";import C from"moment";import{Paper as b,Typography as _,Divider as A,IconButton as y,Menu as g,MenuItem as R}from"@material-ui/core";import q from"@material-ui/core/colors/grey";import N from"@material-ui/icons/MoreVert";import x from"
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import i from"@babel/runtime/regenerator";import{useState as r}from"react";import a from"classnames";import{shape as o,number as s,string as c,oneOf as m,node as d,func as l,arrayOf as u}from"prop-types";import{withStyles as p}from"@material-ui/core/styles";import{flowRight as h}from"lodash";import f,{isWidthUp as v}from"@material-ui/core/withWidth";import C from"moment";import{Paper as b,Typography as _,Divider as A,IconButton as y,Menu as g,MenuItem as R}from"@material-ui/core";import q from"@material-ui/core/colors/grey";import N from"@material-ui/icons/MoreVert";import x from"../AnnotationComments/index.js";import{useAnnotationsDispatch as M}from"../../../../AnnotationsContext.js";import{DELETE_ANNOTATION as I,EDIT_ANNOTATION as j}from"../../../../constants.js";import T from"../AnnotationInput/index.js";import k from"./style.css.js";import w from"../../../../../Avatar/index.js";import D from"../../../../../UserCardPopover.js";import U from"../../../../../ConfirmationDialog.js";import E from"../../../../../CommentsInfo/index.js";import{formatMentionText as S}from"../../../../../UserMention/utils/index.js";import O from"../../../../../Attachment/index.js";import{isNativeDetected as z}from"../../../../../../utils/mobileDetect.js";import{deleteAnnotation as B,patchAnnotation as P}from"../../../../../../clients/jsonApi/index.js";import{jsxs as L,jsx as W,Fragment as Y}from"react/jsx-runtime";var G="AppAnnotationItemPo",H=function(e){var t=e.user,n=e.currentUser,i=e.classes;return W("div",{className:k.cAnnotationUserAvatar,children:z?W(w,{displayName:"".concat(t.first_name," ").concat(t.last_name),imgSrc:t.profile_photo,size:38,className:i.avatar}):W(D,{user:t,currentUser:n,children:W(w,{displayName:"".concat(t.first_name," ").concat(t.last_name),imgSrc:t.profile_photo,size:38,className:i.avatar})})})},V=function(e){var t=e.actionsMenuAnchorEl,n=e.handleToggleActionsMenu,i=e.classes,r=e.handleEdit,a=e.handleDelete;return L(Y,{children:[W(y,{"data-testid":"".concat(G,"_menuButton"),"aria-label":"Actions","aria-owns":t?k.cAnnotationContainerActionsMenu:void 0,"aria-haspopup":"true",className:i.iconButtonRoot,onClick:n,children:W(N,{htmlColor:q[400]})}),L(g,{id:"cAnnotationContainerActionsMenu",anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:t,open:!!t,onClick:n,children:[W(R,{"data-testid":"".concat(G,"_editMenuItem"),onClick:r,children:"Edit"}),W(R,{"data-testid":"".concat(G,"_deleteMenuItem"),onClick:a,children:"Delete"})]})]})},F=function(o){var s,c,m=o.included,d=o.annotation,l=o.assetCompanyId,u=o.classes,p=o.showSuccessNotification,h=o.width,f=r(!1),y=n(f,2),g=y[0],R=y[1],q=r(null),N=n(q,2),w=N[0],D=N[1],F=r(!1),J=n(F,2),K=J[0],Q=J[1],X=r(!1),Z=n(X,2),$=Z[0],ee=Z[1],te=!v("sm",h),ne=d.attributes.comments_count||0,ie=r(ne),re=n(ie,2),ae=re[0],oe=re[1],se=M(),ce=d.relationships.comment_users.data.reduce((function(e,t){var n=t.id,i=m.find((function(e){return e.id===n}));return i&&e.push(i.attributes),e}),[]),me=ce.map((function(e){var t=e.last_name,n=e.first_name;return"".concat(n," ").concat(t)})),de=(s=t(i.mark((function e(){return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,B(d.id);case 3:e.sent&&(se({type:I,id:d.id}),p("Annotation has been deleted")),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(){return s.apply(this,arguments)}),le=(c=t(i.mark((function e(t,n,r){var a,o;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a={body:t,active_until:n,attachment:{file_name:r&&r.attachmentName,signed_url:r&&r.attachmentUrl}},e.next=4,P(d.id,a);case 4:o=e.sent,se({type:j,annotation:o,id:d.id}),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return");case 12:p("Annotation has been changed"),Q(!1);case 14:case"end":return e.stop()}}),e,null,[[0,8]])}))),function(e,t,n){return c.apply(this,arguments)}),ue=d.relationships.user.data.id,pe=m.find((function(e){var t=e.type,n=e.id;return"user"===t&&n===ue})),he=pe.attributes,fe=d.attributes.attachment;return L(b,{className:u.container,elevation:0,children:[L("div",{"data-testid":"".concat(G,"_annotation_").concat(d.attributes.body),className:k.cAnnotationContainer,children:[W(H,{user:he,classes:u,isNative:z,currentUser:pe}),L("div",{className:k.cAnnotationContainerTop,children:[L("div",{className:k.cAnnotationContainerTopMainInfo,children:[W(_,{variant:"body2","data-testid":"".concat(G,"_userName"),children:"".concat(he.first_name," ").concat(he.last_name)}),W(_,{"data-testid":"".concat(G,"_addDate"),variant:"caption",className:u.createdAt,children:C(d.attributes.created_at).format("MM/DD/YY H:mm")})]}),W("div",{className:a(k.cAnnotationContainerTopMenu,e({},k.cAnnotationContainerTopMenuSmall,te)),children:W(V,{actionsMenuAnchorEl:w,handleToggleActionsMenu:function(e){var t=e.currentTarget;D(w?null:t)},handleEdit:function(){return Q(!0)},handleDelete:function(){return ee(!0)},classes:u})})]}),W(A,{className:u.headerDividerRoot}),W("div",{"data-testid":"".concat(G,"_message"),className:k.cAnnotationContainerContent,children:K?W(T,{initialText:d.attributes.body,assetCompanyId:l,initialPeriod:d.attributes.created_at,initialAttachment:fe,onSend:le,onClose:function(){return Q(!1)},closeOnEsc:!0}):L(Y,{children:[S(d.attributes.body,d.relationships.mentioned_users.data,z,null,pe),fe&&fe.signed_url&&W(O,{attachmentUrl:fe.signed_url,fileName:fe.file_name,size:"small"})]})})]}),L("div",{"data-testid":"".concat(G,"_comments_").concat(d.attributes.body),className:k.cAnnotationComments,children:[L("div",{className:k.cAnnotationCommentsInfo,children:[W(_,{"data-testid":"".concat(G,"_commentButton"),variant:"caption",color:"primary",className:u.link,onClick:function(){return R(!0)},children:"Comment"}),W(E,{commentsCount:ae,usersWhoCommented:me,activeUsersList:ce,currentUser:pe,small:!0})]}),W(x,{annotationId:d.id,commentInputIsOpen:g,setCommentInputIsOpen:R,commentsCount:ae,initialCommentsCount:ne,assetCompanyId:l,setCommentsCount:oe,currentUser:pe})]}),$&&W(U,{open:$,text:"Do you really want to delete annotation?",handleClose:function(){return ee(!1)},handleOk:de,okText:"Delete"})]})};H.propTypes={user:o({id:s.isRequired,first_name:c.isRequired,last_name:c.isRequired,profile_photo:c.isRequired}).isRequired,currentUser:o({}).isRequired,classes:o({}).isRequired},V.propTypes={actionsMenuAnchorEl:m([d,null]).isRequired,handleToggleActionsMenu:l.isRequired,classes:o({}).isRequired,handleDelete:l.isRequired,handleEdit:l.isRequired},F.propTypes={included:u(o({})).isRequired,annotation:o({relationships:o({user:o({data:o({id:c.isRequired}).isRequired}).isRequired,mentioned_users:o({data:u(o({})).isRequired}).isRequired}).isRequired,attributes:o({body:c.isRequired,created_at:c.isRequired})}).isRequired,classes:o({}).isRequired,showSuccessNotification:l,width:c.isRequired,assetCompanyId:s.isRequired},F.defaultProps={showSuccessNotification:function(){}};var J=h([p((function(e){return{container:{backgroundColor:"#3b3b3be6",marginBottom:16,marginLeft:26},headerDividerRoot:{margin:"10px 0"},createdAt:{color:e.palette.grey[700],marginLeft:5},link:{cursor:"pointer"},iconButtonRoot:{height:24,width:24,padding:0,margin:"0 -10px 0 5px"}}})),f()])(F);export{J as default};
|
package/components/Annotations/components/AnnotationsList/components/AnnotationComments/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/regenerator";import{useRef as o,useState as s,useEffect as i}from"react";import{string as a,bool as c,number as m,func as u,shape as p}from"prop-types";import{withStyles as l}from"@material-ui/core/styles";import{Button as d,Typography as f}from"@material-ui/core";import{getAnnotationComments as
|
|
1
|
+
import e from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/regenerator";import{useRef as o,useState as s,useEffect as i}from"react";import{string as a,bool as c,number as m,func as u,shape as p}from"prop-types";import{withStyles as l}from"@material-ui/core/styles";import{Button as d,Typography as f}from"@material-ui/core";import C from"./style.css.js";import{getAnnotationComments as h,postAnnotationComment as v}from"../../../../../../clients/jsonApi/index.js";import b from"../../../../../LoadingIndicator/LoadingIndicator.js";import I from"../../../../../CommentInput/index.js";import y from"../../../../../CommentLoader.js";import x from"../../../../../Comment/index.js";import{jsx as g,jsxs as k}from"react/jsx-runtime";var w=function(a){var c=a.annotationId,m=a.commentInputIsOpen,u=a.commentsCount,p=a.setCommentsCount,l=a.initialCommentsCount,w=a.classes,R=a.assetCompanyId,j=a.currentUser,q=o(),A=s([]),L=t(A,2),M=L[0],N=L[1],T=s(!1),U=t(T,2),_=U[0],O=U[1],V=s(!1),z=t(V,2),D=z[0],G=z[1],P=s(1),B=t(P,2),E=B[0],F=B[1],H=s(3),J=t(H,2),K=J[0],Q=J[1],S=function(e){var t=M.findIndex((function(n){return n.id===e.id})),r=n(M);r.splice(t,1,e),N(r)},W=function(e){N(M.filter((function(n){return n.id!==e}))),p(u-1)};i((function(){function n(){return(n=e(r.mark((function e(){var n;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c){e.next=2;break}return e.abrupt("return");case 2:return O(!0),e.prev=3,e.next=6,h(c,{page:E,per_page:3,order:"desc"});case 6:n=e.sent,N(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.error(e.t0);case 13:O(!1);case 14:case"end":return e.stop()}}),e,null,[[3,10]])})))).apply(this,arguments)}!function(){n.apply(this,arguments)}()}),[]);var X,Y=(X=e(r.mark((function e(){var t,o,s;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O(!0),Q((o=(t=3===K)?7:10)+K),e.prev=4,e.next=7,h(c,{page:t?1:E,per_page:o,order:"desc",offset:1===E?M.length:u-l+10});case 7:s=e.sent,N([].concat(n(M),n(s))),t||F(E+1),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),console.error(e.t0);case 15:O(!1);case 16:case"end":return e.stop()}}),e,null,[[4,12]])}))),function(){return X.apply(this,arguments)}),Z=M.slice(0,K).reverse(),$=u>K;return _&&!M.length?g(b,{fullscreen:!1}):k("div",{className:C.cAnnotationCommentsList,children:[$&&g(d,{"data-testid":"".concat("annotationComments","_viewMoreComments"),className:w.showMore,onClick:Y,children:g(f,{variant:"caption",color:"primary",children:"View more comments"})}),k("div",{className:C.cAnnotationCommentsListItems,children:[_&&M.length&&g(b,{fullscreen:!1,size:30}),Z.map((function(e){return g(x,{comment:e,handleDeleteCallback:W,patchCommentCallback:S,companyId:R,currentUser:j},e.id)}))]}),D&&g(y,{spaceAround:!0}),m&&g("div",{className:C.cAnnotationCommentsListInput,children:g(I,{inputRef:q,postComment:function(e){return v(c,e)},setIsPosting:G,postCommentCallback:function(e){N([e].concat(n(M))),p(u+1)},onMount:function(){var e=q.current;e&&(e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),e.focus())},companyId:R,currentUser:j})})]})};w.propTypes={annotationId:a.isRequired,commentInputIsOpen:c.isRequired,commentsCount:m.isRequired,initialCommentsCount:m.isRequired,setCommentsCount:u.isRequired,classes:p().isRequired,assetCompanyId:m.isRequired,currentUser:p({}).isRequired};var R=l({showMore:{textTransform:"none",backgroundColor:"transparent!important",padding:0}})(w);export{R as default};
|
package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.d.ts
CHANGED
|
@@ -31,6 +31,6 @@ declare const _default: import("react").ComponentType<Pick<Pick<Pick<{
|
|
|
31
31
|
file_name: import("prop-types").Requireable<string>;
|
|
32
32
|
s3_link: import("prop-types").Requireable<string>;
|
|
33
33
|
}>;
|
|
34
|
-
} & {}, "currentUser" | "onClose" | "initialText" | "initialPeriod" | "onSend" | "closeOnEsc" | "initialAttachment" | "assetCompanyId"> & import("@material-ui/core").StyledComponentProps<"
|
|
34
|
+
} & {}, "currentUser" | "onClose" | "initialText" | "initialPeriod" | "onSend" | "closeOnEsc" | "initialAttachment" | "assetCompanyId"> & import("@material-ui/core").StyledComponentProps<"inputRoot" | "inputLabel" | "sendLabel" | "sendButton" | "labelHighlighter" | "selectLabel" | "uploadingError">>;
|
|
35
35
|
export default _default;
|
|
36
36
|
//# sourceMappingURL=index.d.ts.map
|
package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/slicedToArray";import{useState as e}from"react";import n from"moment";import{string as i,shape as o,func as a,bool as l,number as r}from"prop-types";import{withStyles as c}from"@material-ui/core/styles";import{Paper as s,Input as m,Tooltip as d,FormControl as p,InputLabel as u,MenuItem as f,Typography as h,IconButton as g}from"@material-ui/core";import v from"@material-ui/icons/Send";import b from"@material-ui/core/colors/grey";import y
|
|
1
|
+
import t from"@babel/runtime/helpers/slicedToArray";import{useState as e}from"react";import n from"moment";import{string as i,shape as o,func as a,bool as l,number as r}from"prop-types";import{withStyles as c}from"@material-ui/core/styles";import{Paper as s,Input as m,Tooltip as d,FormControl as p,InputLabel as u,MenuItem as f,Typography as h,IconButton as g}from"@material-ui/core";import v from"@material-ui/icons/Send";import b from"@material-ui/core/colors/grey";import{ANNOTATION_ACTIVE_PERIODS as y}from"../../../../constants.js";import A from"./StyledSelect.js";import N from"./style.css.js";import j from"../../../../../UserMention/index.js";import C from"../../../../../EmojiIconButton.js";import I from"../../../../../FileUploadIconButton.js";import U from"../../../../../FailedFileUploading.js";import S from"../../../../../FilePreview/index.js";import{isSuggestionsListOpened as E}from"../../../../../UserMention/utils/index.js";import _ from"../../../../../../effects/useEscPress.js";import{jsxs as x,jsx as P}from"react/jsx-runtime";var k="AppAnnotationsPo",B=Object.keys(y),F=function(i){var o=i.initialText,a=i.initialPeriod,l=i.onSend,r=i.onClose,c=i.closeOnEsc,F=i.classes,T=i.initialAttachment,w=i.assetCompanyId,R=i.currentUser,L=e(o),D=t(L,2),O=D[0],z=D[1],H=e((function(){return T?{attachmentName:T.file_name,attachmentUrl:T.signed_url||T.s3_link}:null})),M=t(H,2),W=M[0],q=M[1],K=e(null),G=t(K,2),J=G[0],Q=G[1],V=e(!1),X=t(V,2),Y=X[0],Z=X[1],$=e(B[0]),tt=t($,2),et=tt[0],nt=tt[1];_((function(){c&&r()}));var it=function(){if(O){var t=function(t,e){if("forever"===t)return null;var i=y[t];return n(e).add(i.time.amount,i.time.key).format()}(et,a);l(O,t,W)}};return x("div",{className:N.cAnnotationInput,children:[x(s,{className:N.cAnnotationInputContent,children:[P(m,{"data-testid":"".concat(k,"_annotationsInput"),inputComponent:j,inputProps:{withLightTheme:!1,onChange:function(t){return z(t)},onKeyDown:function(t){"Shift"===t.key&&Z(!0),"Enter"!==t.key||Y||E()||(t.preventDefault(),it())},onKeyUp:function(t){"Shift"===t.key&&Z(!1)},companyId:w,currentUser:R},placeholder:"Type annotation here",fullWidth:!0,disableUnderline:!0,multiline:!0,rows:"3",className:F.inputRoot,value:O}),x("div",{className:N.cAnnotationInputContentActions,children:[P(d,{title:"Attach File",placement:"bottom",children:P("div",{className:N.cAnnotationInputContentActionsButton,children:P(I,{"data-testid":"".concat(k,"_attachFileButton"),openPreviewDialogOnUpload:!1,disableRipple:!0,onFinish:function(t,e,n){q({attachmentUrl:t,attachmentName:e,attachmentSize:n}),Q(null)},onError:function(t){q(null),Q(t)},htmlColor:"action"})})}),P(d,{title:"Add Emoji",placement:"bottom",children:P("div",{className:N.cAnnotationInputContentActionsButton,children:P(C,{"data-testid":"".concat(k,"_emojiButton"),htmlColor:b[400],handleSelectEmoji:function(t){return z("".concat(O).concat(t.native))}})})})]})]}),J&&P(U,{className:F.uploadingError,errorMessage:J}),W&&W.attachmentUrl&&P(S,{fileName:W.attachmentName,fileUrl:W.attachmentUrl,handleFileDelete:function(){q(null),Q(null)}}),x("div",{className:N.cAnnotationInputActions,children:[x(p,{className:F.formControl,children:[P(u,{shrink:!0,id:"periods-label-label",className:F.selectLabel,children:"Active"}),P(A,{"data-testid":"".concat(k,"_periodDropdown"),labelId:"periods-label-label",id:"periods-label",value:et,disableUnderline:!0,onChange:function(t){return nt(t.target.value)},children:B.map((function(t){return P(f,{"data-testid":"".concat(k,"_period_").concat(y[t].label,"MenuItem"),value:t,children:y[t].label},t)}))})]}),x("div",{className:N.cAnnotationInputActionsSend,children:[x(h,{variant:"caption",className:F.sendLabel,children:["Press ",P(h,{variant:"caption",color:"primary",component:"span",className:F.labelHighlighter,children:"Enter "}),"to send "]}),P(d,{title:"Send",placement:"bottom",children:P("div",{children:P(g,{"data-testid":"".concat(k,"_sendButton"),className:F.sendButton,onClick:it,disabled:!O,children:P(v,{color:"primary"})})})})]})]})]})};F.propTypes={initialText:i,initialPeriod:i,initialAttachment:o({file_name:i,s3_link:i}),onSend:a,onClose:a,closeOnEsc:l,assetCompanyId:r.isRequired,currentUser:o().isRequired,classes:o().isRequired},F.defaultProps={initialText:"",initialPeriod:void 0,initialAttachment:null,onSend:function(){},onClose:function(){},closeOnEsc:!1};var T=c((function(t){return{inputLabel:{color:t.palette.grey[700],fontWeight:200,width:"100%"},inputRoot:{lineHeight:15},sendLabel:{display:"flex",alignItems:"center",fontWeight:200,color:t.palette.grey[700],marginRight:22,fontSize:10},sendButton:{padding:5},labelHighlighter:{fontWeight:200,fontSize:10},selectLabel:{fontSize:10,lineHeight:"14px",color:t.palette.grey[500]},uploadingError:{paddingTop:"10px"}}}))(F);export{T as default};
|
|
@@ -20,10 +20,10 @@ declare const _default: import("react").ComponentType<Pick<Pick<Pick<{
|
|
|
20
20
|
currentUser: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{}>>>;
|
|
21
21
|
isNative: import("prop-types").Requireable<boolean>;
|
|
22
22
|
dashboardType: import("prop-types").Requireable<string>;
|
|
23
|
-
}>, "
|
|
23
|
+
}>, "currentUser" | "classes" | "onClose" | "assetId" | "appId" | "isNative" | "appSettings" | "assetCompanyId" | "dashboardType" | "appTitle">, "currentUser" | "classes" | "onClose" | "assetId" | "appId" | "assetCompanyId" | "appTitle"> & {
|
|
24
24
|
isNative?: boolean;
|
|
25
25
|
appSettings?: import("prop-types").InferProps<import("prop-types").ValidationMap<any>>;
|
|
26
26
|
dashboardType?: string;
|
|
27
|
-
} & {}, "
|
|
27
|
+
} & {}, "currentUser" | "onClose" | "assetId" | "appId" | "isNative" | "appSettings" | "assetCompanyId" | "dashboardType" | "appTitle"> & import("@material-ui/core").StyledComponentProps<"title" | "secondaryTitle" | "annotateIcon" | "noAnnotations" | "backIcon">>;
|
|
28
28
|
export default _default;
|
|
29
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/regenerator";import{memo as r,useRef as a,useState as i,useEffect as s}from"react";import{number as c,string as p,shape as d,func as m,bool as l}from"prop-types";import u from"classnames";import{withStyles as f}from"@material-ui/core/styles";import{RootRef as h,Paper as y,Typography as b,Tooltip as g,IconButton as A}from"@material-ui/core";import v from"@material-ui/icons/ChevronLeft";import
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/regenerator";import{memo as r,useRef as a,useState as i,useEffect as s}from"react";import{number as c,string as p,shape as d,func as m,bool as l}from"prop-types";import u from"classnames";import{withStyles as f}from"@material-ui/core/styles";import{RootRef as h,Paper as y,Typography as b,Tooltip as g,IconButton as A}from"@material-ui/core";import v from"@material-ui/icons/ChevronLeft";import{getAnnotations as I}from"../../../../clients/jsonApi/index.js";import{useAnnotationsState as C,useAnnotationsDispatch as T}from"../../AnnotationsContext.js";import{SET_ANNOTATIONS as N,APPEND_ANNOTATIONS as x}from"../../constants.js";import j from"./components/AddAnnotationForm/index.js";import L from"./components/Annotation/index.js";import k from"./style.css.js";import"../../../../utils/index.js";import{isNativeDetected as R}from"../../../../utils/mobileDetect.js";import _ from"../../../InfiniteList/index.js";import q from"../../../../effects/useOutsideClick.js";import{jsx as w,jsxs as S,Fragment as H}from"react/jsx-runtime";import{showSuccessNotification as U}from"../../../../utils/notificationToasts.js";var F="AppAnnotationsPo",O=function(r){var c,p=r.appId,d=r.appTitle,m=r.assetId,l=r.assetCompanyId,f=r.appSettings,R=r.currentUser,O=r.onClose,P=r.isNative,W=r.classes,B=r.dashboardType,D=C().annotations,E=T(),G=a(),M=a();q(G,O);var z=i(!1),J=n(z,2),K=J[0],Q=J[1],V=i(!0),X=n(V,2),Y=X[0],Z=X[1],$=i(!0),tt=n($,2),et=tt[0],nt=tt[1],ot=i(1),rt=n(ot,2),at=rt[0],it=rt[1];function st(){return(st=e(o.mark((function t(){var e,n,r;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(p&&m){t.next=2;break}return t.abrupt("return");case 2:return Z(!0),t.prev=3,n={page:at,per_page:4,sort:"created_at",order:"desc"},B&&(n.dashboard_type=B),t.next=8,I(p,m,n);case 8:e=t.sent,E({type:1===at?N:x,annotations:e}),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(3),console.error(t.t0);case 15:r=e&&e.data.length<4,it(at+1),nt(!r),Z(!1);case 19:case"end":return t.stop()}}),t,null,[[3,12]])})))).apply(this,arguments)}return s((function(){Q(!0)}),[]),w(h,{rootRef:G,children:S(y,{className:u(k.cAnnotationsList,(c={},t(c,k.cAnnotationsListOpen,K),t(c,k.cAnnotationsListOpenNative,P),c)),children:[w(_,{infiniteClassName:k.cAnnotationsListContentContainer,headerComponent:S(H,{children:[w(b,{"data-testid":"".concat(F,"_appTitle"),variant:"body1",className:W.title,children:d}),w("div",{className:k.cAnnotationsListContentTop,children:S(b,{"data-testid":"".concat(F,"_annotationsTitle"),variant:"caption",className:W.secondaryTitle,children:["Annotations (",D.data?D.data.length:0,")"]})}),w(j,{appId:p,assetId:m,assetCompanyId:l,appSettings:f,currentUser:R,dashboardType:B})]}),useWindow:P,items:D.data||[],showNoItemsFound:!(D.data&&0!==D.data.length||Y),noItemsFoundLabel:w(b,{variant:"body2","data-testid":"".concat(F,"_noAnnotations"),className:W.noAnnotations,children:"No Annotations yet"}),threshold:50,infiniteContainerHeight:G.current&&M.current?G.current.clientHeight-M.current.clientHeight:null,moreItemsMayExist:et,pathToCreatedAt:["attributes","created_at"],renderItem:function(t){return w(L,{isNative:P,annotation:t,assetCompanyId:l,included:D.included,currentUser:R,showSuccessNotification:U},t.id)},loadItems:function(){return st.apply(this,arguments)}}),w("div",{className:k.cAnnotationsListActions,ref:M,children:w(g,{title:"Hide",placement:"bottom",children:w(A,{"data-testid":"".concat(F,"_hideButton"),onClick:O,className:W.backIcon,children:w(v,{})})})})]})})};O.propTypes={appId:c.isRequired,appTitle:p.isRequired,assetId:c.isRequired,assetCompanyId:c.isRequired,appSettings:d(),classes:d().isRequired,onClose:m.isRequired,currentUser:d({}).isRequired,isNative:l,dashboardType:p},O.defaultProps={appSettings:{},isNative:R,dashboardType:null};var P=f((function(t){return{title:{fontWeight:200,marginBottom:20},secondaryTitle:{fontWeight:200,textTransform:"uppercase",color:t.palette.grey[600]},annotateIcon:{padding:0,"&:hover":{backgroundColor:"transparent",boxShadow:"none"}},noAnnotations:{marginTop:16},backIcon:{cursor:"pointer",color:t.palette.grey[600],padding:5}}}))(r(O));export{P as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/regenerator";import{memo as i,useMemo as a}from"react";import{number as n,shape as s,arrayOf as o,string as c,bool as m,func as u}from"prop-types";import d from"classnames";import{flowRight as l}from"lodash";import{withStyles as p}from"@material-ui/core/styles";import f,{isWidthUp as h}from"@material-ui/core/withWidth";import v from"@material-ui/core/Paper";import b from"@material-ui/core/Typography";import y from"@material-ui/icons/Comment";import N from"@material-ui/icons/Close";import A
|
|
1
|
+
import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/regenerator";import{memo as i,useMemo as a}from"react";import{number as n,shape as s,arrayOf as o,string as c,bool as m,func as u}from"prop-types";import d from"classnames";import{flowRight as l}from"lodash";import{withStyles as p}from"@material-ui/core/styles";import f,{isWidthUp as h}from"@material-ui/core/withWidth";import v from"@material-ui/core/Paper";import b from"@material-ui/core/Typography";import y from"@material-ui/icons/Comment";import N from"@material-ui/icons/Close";import{closeLastAnnotation as A}from"../../../../clients/jsonApi/index.js";import R from"./style.css.js";import g from"../../../UserCardPopover.js";import x from"../../../Avatar/index.js";import{formatMentionText as q}from"../../../UserMention/utils/index.js";import{isNativeDetected as _}from"../../../../utils/mobileDetect.js";import{jsxs as U,jsx as C}from"react/jsx-runtime";var j="lastAnnotation",L=function(e){var t=e.user,r=e.currentUser,i=e.isNative,a=e.className,n=e.size,s=C(x,{displayName:"".concat(t.first_name," ").concat(t.last_name),imgSrc:t.profile_photo,size:n,className:a});return i?s:C(g,{user:t,currentUser:r,children:s})},T=function(e){var r=e.commentsCount,i=e.commentUsers,a=e.isSmallScreen,n=e.isNative,s=e.currentUser,o=e.classes;return r?U("div",{className:R.cTopAnnotationAdditionalReactions,children:[C(y,{className:o.commentIcon}),!a&&U(b,{variant:"body2","data-testid":"".concat(j,"_comments"),noWrap:!0,className:o.commentText,component:"div",children:["Comments ",r]}),C("div",{className:R.cTopAnnotationAdditionalReactionsList,children:i.map((function(e,r){var i=e.attributes;return C(L,{user:i,currentUser:s,isNative:n,className:d(o.avatar,t({},o.avatarInList,0!==r)),size:25},i.id)}))})]}):null},w=function(t){var i,n=t.isNative,s=t.appId,o=t.annotation,c=t.openAnnotationsList,m=t.currentUser,u=t.updateCurrentDashboardAppLastAnnotation,d=t.width,l=t.classes,p=o.data,f=o.included,y=f.find((function(e){var t=e.id,r=e.type;return t===p.relationships.user.data.id&&"user"===r})),g=a((function(){return p.relationships.mentioned_users.data.map((function(e){var t=e.id;return f.find((function(e){return e.id===t}))}))}),[p.relationships.mentioned_users.data,f]),x=a((function(){return p.relationships.comment_users.data.map((function(e){var t=e.id;return f.find((function(e){return e.id===t}))}))}),[p.relationships.comment_users.data,f]),_=!h("sm",d),w=(i=e(r.mark((function e(t){var i;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.stopPropagation(),e.prev=1,e.next=4,A(p.id);case 4:i=e.sent,u(p.id,s,i),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),function(e){return i.apply(this,arguments)});return U(v,{"data-testid":"".concat(j,"_lastAnnotation"),className:l.container,onClick:c,children:[U("div",{className:R.cTopAnnotationMain,children:[C(L,{user:y.attributes,currentUser:m,isNative:n,className:l.avatar,size:38}),C(b,{variant:"body2","data-testid":"".concat(j,"_message"),noWrap:!0,className:l.body,children:q(p.attributes.body,g,n,null,m)})]}),U("div",{className:R.cTopAnnotationAdditional,children:[C(T,{commentsCount:p.attributes.comments_count,commentUsers:x,classes:l,isSmallScreen:_,currentUser:m}),C(N,{"data-testid":"".concat(j,"_closeButton"),fontSize:"small",className:l.closeButton,onClick:w})]})]})};w.propTypes={appId:n.isRequired,annotation:s({included:o(s({})).isRequired,data:s({relationships:s({user:s({data:s({id:c.isRequired}).isRequired}).isRequired,mentioned_users:s({data:o(s()).isRequired}).isRequired}).isRequired,attributes:s({body:c.isRequired,created_at:c.isRequired})}).isRequired}).isRequired,classes:s({}).isRequired,isNative:m,width:c.isRequired,openAnnotationsList:u.isRequired,updateCurrentDashboardAppLastAnnotation:u,currentUser:s({})},w.defaultProps={isNative:_,updateCurrentDashboardAppLastAnnotation:function(){},currentUser:{}};var I=l([p((function(e){return{container:{height:56,margin:"10px 0",padding:"0 20px",display:"flex",alignItems:"center",justifyContent:"space-between",flex:"auto 1",width:"100%",cursor:"pointer"},body:{margin:"0 16px ",minWidth:100},avatar:{border:"1px solid #909090"},commentIcon:{marginRight:16,color:e.palette.grey[500]},commentText:{marginRight:16,color:e.palette.grey[500]},closeButton:{color:e.palette.grey[500]},avatarInList:{marginLeft:-4}}})),f()])(i(w));export{I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./assets/CompletionAppIcon.js";import t from"./assets/CompletionAppIconBe.js";import i from"./assets/DrillingAppIcon.js";import r from"./assets/DrillingAppIconBe.js";import n from"./assets/NoSegmentAppIconBeIdle.js";import c from"./assets/NoSegmentAppIcon.js";import{SEGMENTS as s}from"../../constants/segment.js";var o="/static/media/3f1e09e6e814329ccfc22c5f2fb49320.png";function a(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ui";if(!o||!o.length)return c;var p="ui"===a,f="be"===a,m=o[0];if(m===s.COMPLETION){if(p)return e;if(f)return t}if(m===s.DRILLING){if(p)return i;if(f)return r}return n}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ui";if(!e||!e.length)return o;var i="ui"===t,r=e[0];return r===s.COMPLETION?i?"/static/media/747c045c9381addbc4c6aecd531ccbff.png":"/static/media/9f235cc0306a992ec6aecee01ad6956b.png":r===s.DRILLING?i?"/static/media/dad8511026615181e47069625c14a00d.png":"/static/media/cc3725c7d2b2258f38e3e25e49ce0a53.png":o}export{p as getAppIcon,a as getIconComponentBySegment};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppVersionsSelect.d.ts","sourceRoot":"","sources":["../../../src/components/AppVersionsSelect/AppVersionsSelect.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppVersionsSelect.d.ts","sourceRoot":"","sources":["../../../src/components/AppVersionsSelect/AppVersionsSelect.js"],"names":[],"mappings":"AAsCO;;;;;;;;gBAyJN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/objectWithoutProperties";import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/slicedToArray";import{useState as n,useMemo as a,useEffect as o}from"react";import{string as s,func as i}from"prop-types";import{isEmpty as l,maxBy as c}from"lodash";import p from"classnames";import{makeStyles as u,Grid as d,FormControl as m,InputLabel as b,Select as f,ListSubheader as v,MenuItem as g}from"@material-ui/core";import"../../permissions/PermissionsContext.js";import{PERMISSIONS as
|
|
1
|
+
import e from"@babel/runtime/helpers/objectWithoutProperties";import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/slicedToArray";import{useState as n,useMemo as a,useEffect as o}from"react";import{string as s,func as i}from"prop-types";import{isEmpty as l,maxBy as c}from"lodash";import p from"classnames";import{makeStyles as u,Grid as d,FormControl as m,InputLabel as b,Select as f,ListSubheader as v,MenuItem as g}from"@material-ui/core";import h from"./effects/index.js";import"../../permissions/PermissionsContext.js";import{PERMISSIONS as j}from"../../permissions/constants/index.js";import{withPermissionsHOC as P}from"../../permissions/withPermissionsHOC.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../clients/jsonApi/index.js";import"../../permissions/ProvidePermissions.js";import O from"../TruncatedText/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import{PACKAGE_STATUSES as A,PACKAGE_LABELS as y,TEXT_FOR_PACKAGE_LABELS as E}from"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../utils/env.js";import"../GradientManager/configuration/constants.js";import{jsx as D,jsxs as S}from"react/jsx-runtime";var _=["appId"],k=["canReadAppPackages"];function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?w(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C=A,L=y,T=E,x=u((function(e){return{select:{width:250,margin:"8px 0"},menuListRoot:{maxWidth:580},group:{fontStyle:"italic",fontWeight:"bold",fontSize:"12px",color:"#999",backgroundColor:e.palette.background.b9}}})),B=function(e){var s=e.className,i=e.value,u=e.onChange,h=e.isLoading,j=e.disabled,P=e.error,A=e.packages,y=x(),E=n(i),_=r(E,2),k=_[0],w=_[1],R=a((function(){var e,r={},n=(t(e={},L.PROD,{label:"Stable Release - no stable version",value:L.PROD,disabled:!0}),t(e,L.BETA,{label:"Beta - no beta version",value:L.BETA,disabled:!0}),t(e,L.DEV,{label:"Dev - no dev version",value:L.DEV,disabled:!0}),e),a=[];return A.filter((function(e){return e.status!==C.FAILURE})).forEach((function(e){var t=e.version,o=e.package_code_version,s=e.notes,i=e.label,l=e.status,c="v".concat(o||t);if(i){var p=n[i];p.label="".concat(T[i]," ").concat(c," ").concat(s?"- ".concat(s):""),p.disabled=!1,r[p.value]=e}else r[t]=e,a.push({label:"".concat(c," ").concat(s?"- ".concat(s):""),value:t,status:l})})),{labeled:Object.values(n),unlabeled:a,packageByValue:r}}),[A]),B=R.labeled,I=R.unlabeled,V=R.packageByValue,G=function(e){return u(e,V[e])},M=A.some((function(e){return!e.label})),F=!l(A);return o((function(){if(F&&!i){var e=B.find((function(e){return!e.disabled}))||c(I.filter((function(e){return e.status===C.PUBLISHED})),"value");w(null==e?void 0:e.value),G(null==e?void 0:e.value)}}),[B,I]),h||P?null:D(d,{children:S(m,{className:p(y.select,s),children:[D(b,{shrink:!(!i&&!k),htmlFor:"appVersion",children:"App Version"}),S(f,{"data-testid":"".concat("DC_versionSelect","_dropdown"),value:i||k,onChange:function(e){return G(e.target.value)},disabled:h||j,label:"App Version",inputProps:{name:"appVersion",id:"appVersion"},MenuProps:{MenuListProps:{classes:{root:y.menuListRoot}}},children:[M&&D(v,{className:y.group,children:"Labelled Versions (When selected always shows current Stable Release, Beta or Dev version)"}),B.map((function(e){var t=e.label,r=e.value,n=e.disabled;return D(g,{"data-testid":"".concat("DC_versionSelect","_option_").concat(t,"MenuItem"),value:r,disabled:n,children:D(O,{children:t})},r)})),M&&D(v,{className:y.group,children:"Other versions (App will always show selected version until version is deleted)"}),I.map((function(e){var t=e.label,r=e.value;return D(g,{"data-testid":"".concat("DC_versionSelect","_option_").concat(t,"MenuItem"),value:r,children:D(O,{children:t})},r)}))]})]})})};B.defaultProps={disabled:!1,error:null,isLoading:!1,packages:[],value:null};var I=function(t){var r=t.appId,n=e(t,_),a=h(r,{status:[C.DRAFT,C.PUBLISHED],order:"desc",sort:"created_at"});return D(B,R(R({},n),a))};I.propTypes={value:s,onChange:i.isRequired,appId:s},I.defaultProps={value:null,appId:null};var V=P({canReadAppPackages:function(e){var t=e.appId;return j.getCanReadAppPackages(t)}},{loader:null})((function(t){var r=t.canReadAppPackages,n=e(t,k);return r&&D(I,R({},n))}));export{B as AppVersionsSelectView,V as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AppVersionsSelect/effects/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AppVersionsSelect/effects/index.js"],"names":[],"mappings":";AAOA;;;;EA2BC"}
|
|
@@ -34,7 +34,7 @@ declare const _default: import("react").ComponentType<Pick<Pick<Pick<{
|
|
|
34
34
|
isMultiple: PropTypes.Requireable<boolean>;
|
|
35
35
|
appKey: PropTypes.Requireable<string>;
|
|
36
36
|
queryParams: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
37
|
-
}>, "
|
|
37
|
+
}>, "data-testid" | "label" | "classes" | "disabled" | "onChange" | "appKey" | "companyId" | "disableClearable" | "isNullable" | "assetType" | "parentAssetType" | "parentAssetId" | "queryParams" | "currentValue" | "isMultiple" | "errorText"> & Pick<{
|
|
38
38
|
"data-testid": any;
|
|
39
39
|
appKey: any;
|
|
40
40
|
assetType: any;
|
|
@@ -54,11 +54,11 @@ declare const _default: import("react").ComponentType<Pick<Pick<Pick<{
|
|
|
54
54
|
autocompleteProps?: {};
|
|
55
55
|
assetFields: any;
|
|
56
56
|
}, "assetFields" | "autocompleteProps">, "classes" | "onChange" | "assetType" | "assetFields" | "autocompleteProps"> & {
|
|
57
|
+
'data-testid'?: string;
|
|
57
58
|
label?: string;
|
|
59
|
+
disabled?: boolean;
|
|
58
60
|
appKey?: string;
|
|
59
61
|
companyId?: number;
|
|
60
|
-
'data-testid'?: string;
|
|
61
|
-
disabled?: boolean;
|
|
62
62
|
disableClearable?: boolean;
|
|
63
63
|
isNullable?: boolean;
|
|
64
64
|
parentAssetType?: string;
|
|
@@ -67,7 +67,7 @@ declare const _default: import("react").ComponentType<Pick<Pick<Pick<{
|
|
|
67
67
|
currentValue?: NonNullable<number | number[]>;
|
|
68
68
|
isMultiple?: boolean;
|
|
69
69
|
errorText?: string;
|
|
70
|
-
} & {}, "
|
|
70
|
+
} & {}, "data-testid" | "label" | "disabled" | "onChange" | "appKey" | "companyId" | "disableClearable" | "isNullable" | "assetType" | "parentAssetType" | "parentAssetId" | "queryParams" | "assetFields" | "currentValue" | "isMultiple" | "errorText" | "autocompleteProps"> & import("@material-ui/core").StyledComponentProps<"option" | "listbox" | "root" | "formControl" | "popupIndicator" | "searchIcon" | "inputRoot" | "noOptions">>;
|
|
71
71
|
export default _default;
|
|
72
72
|
import PropTypes from "prop-types";
|
|
73
73
|
//# sourceMappingURL=AssetEditorAutocomplete.d.ts.map
|
|
@@ -15,10 +15,10 @@ declare const _default: import("react").ComponentType<Pick<Pick<PropTypes.InferP
|
|
|
15
15
|
'data-testid': PropTypes.Requireable<string>;
|
|
16
16
|
appKey: PropTypes.Requireable<string>;
|
|
17
17
|
}>, "classes" | "onChange" | "assetType"> & {
|
|
18
|
-
label?: string;
|
|
19
|
-
appKey?: string;
|
|
20
18
|
'data-testid'?: string;
|
|
19
|
+
label?: string;
|
|
21
20
|
defaultValue?: any;
|
|
21
|
+
appKey?: string;
|
|
22
22
|
isNullable?: boolean;
|
|
23
23
|
parentAssetType?: string;
|
|
24
24
|
parentAssetId?: number;
|
|
@@ -26,7 +26,7 @@ declare const _default: import("react").ComponentType<Pick<Pick<PropTypes.InferP
|
|
|
26
26
|
appType?: PropTypes.InferProps<{
|
|
27
27
|
constants: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
28
28
|
}>;
|
|
29
|
-
} & {}, "
|
|
29
|
+
} & {}, "data-testid" | "label" | "defaultValue" | "onChange" | "appKey" | "isNullable" | "assetType" | "parentAssetType" | "parentAssetId" | "currentValue" | "appType"> & import("@material-ui/core").StyledComponentProps<"progress" | "select" | "menuItem" | "selectMenu">>;
|
|
30
30
|
export default _default;
|
|
31
31
|
import PropTypes from "prop-types";
|
|
32
32
|
//# sourceMappingURL=SingleAssetEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleAssetEditor.d.ts","sourceRoot":"","sources":["../../../src/components/AssetEditor/SingleAssetEditor.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SingleAssetEditor.d.ts","sourceRoot":"","sources":["../../../src/components/AssetEditor/SingleAssetEditor.js"],"names":[],"mappings":"AAcA,+CAAgD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditor/effects/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditor/effects/index.js"],"names":[],"mappings":"AAmBA;;;;;;;;;;EA4BC;AAED;;;;;;;;;;;;;;;;EAqFC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/toConsumableArray";import a from"@babel/runtime/regenerator";import{useState as s,useEffect as o,useRef as i}from"react";import{isEmpty as p}from"lodash";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import{mapAssetGetRequest as
|
|
1
|
+
import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/toConsumableArray";import a from"@babel/runtime/regenerator";import{useState as s,useEffect as o,useRef as i}from"react";import{isEmpty as p}from"lodash";import{PER_PAGE as c}from"../constants.js";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import{mapAssetGetRequest as u,getAssets as l}from"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{sort:"name",order:"asc",fields:["".concat(e,".name"),"".concat(e,".asset_id")].concat(n(t))}},y=function(e){var t,r,n;return f(f({},e.attributes),{},{id:+e.id,programId:+(null===(t=e.relationships)||void 0===t||null===(r=t.program)||void 0===r||null===(n=r.data)||void 0===n?void 0:n.id)})};function b(n){var i=n.appKey,p=n.assetType,c=n.assetId,l=n.parentAssetType,m=n.parentAssetId,b=n.queryParams,h=void 0===b?null:b,v=s([]),g=t(v,2),j=g[0],O=g[1],x=s(!0),w=t(x,2),P=w[0],k=w[1];return o((function(){function t(){return(t=e(a.mark((function e(){var t;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u(p)(f(f(f({},d(p)),{},r({per_page:1e4},l,m),i&&{app_key:i}),h));case 2:t=e.sent,O(t.data.map(y)),k(!1);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}k(!0),function(){t.apply(this,arguments)}()}),[p,c,l,m,i]),{assets:j,loading:P}}function h(r){var n=r.appKey,m=r.assetType,b=r.companyId,h=r.currentValue,v=r.isMultiple,g=r.parentAssetId,j=r.parentAssetType,O=r.scrollPage,x=r.searchText,w=r.setCurrentOption,P=r.queryParams,k=r.assetFields,A=s([]),T=t(A,2),I=T[0],_=T[1],D=s(!1),C=t(D,2),q=C[0],E=C[1],K=i(),S=i();return o((function(){function t(){return(t=e(a.mark((function e(){var t;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u(m)(f(f({},d(m,k)),{},{ids:v?h:[h]},P));case 2:if(t=e.sent,!p(t.data)){e.next=7;break}return e.next=6,l(f(f({},d(m,k)),{},{ids:v?h:[h]},P));case 6:t=e.sent;case 7:w((function(){if(v)return t.data.map(y);var e=t.data[0];return e?y(e):null}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(v?h.length:h)&&function(){t.apply(this,arguments)}()}),[]),o((function(){function t(){return(t=e(a.mark((function e(){var t,r,s,o,i;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,E(!0),t={per_page:c,page:O},j&&g&&(t[j]=g),b&&(t.company=b),x&&(t.search=x),n&&(t.app_key=n),r=u(m)(f(f(f({},d(m,k)),t),P)),S.current=r,e.next=11,r;case 11:if(s=e.sent,S.current===r){e.next=14;break}return e.abrupt("return");case 14:o=s.data.map(y),i=K.current!==m||1===O,_(i?o:function(e){return e.concat(o)}),K.current=m,e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),console.error(e.t0);case 23:E(!1);case 24:case"end":return e.stop()}}),e,null,[[0,20]])})))).apply(this,arguments)}!function(){t.apply(this,arguments)}()}),[m,j,g,b,x,O,n]),{assets:I,loading:q}}export{h as useAssetAutoCompleteSelectData,b as useAssetSelectData};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as a}from"react";import s from"prop-types";import{get as l,capitalize as r}from"lodash";import{Button as o}from"@material-ui/core";import i from"./
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as a}from"react";import s from"prop-types";import{get as l,capitalize as r}from"lodash";import{Button as o}from"@material-ui/core";import i from"./SingleAssetEditor.js";import n from"./AssetEditorAutocomplete.js";import p from"./AssetEditors.css.js";import{jsxs as c,jsx as u}from"react/jsx-runtime";var d="DC_AppSettingsAssetEditor",m=function(s){var m=s.appKey,y=s.appType,A=s.defaultValue,f=s.isNullable,b=s.label,h=s.onSettingsChange,g=s.settings,C=l(y,["primaryAsset","assetType","type"]),T=l(y,["primaryAsset","assetType","id"]),v=l(y,["primaryAsset","autocompleteSelect"]),N=l(y,["secondaryAsset","assetType","type"]),V=l(y,["secondaryAsset","assetType","id"]),K=l(y,["secondaryAsset","autocompleteSelect"]),_=l(g,T),E=a(_||A),S=t(E,2),j=S[0],q=S[1],R=a(l(g,V)),k=t(R,2),x=k[0],B=k[1],D=a(!(!N||x)),I=t(D,2),P=I[0],U=I[1],W=a(!(!N||!x)),w=t(W,2),z=w[0],F=w[1],G=function(t){B(t),h(e({},V,t))},H=function(t){q(t),B(null),F(!1),U(!!N);var a=e({},T,t);V&&(a[V]=null),h(a)};return c("div",{className:p.main,children:[u("div",{className:p.title,children:"Active Asset"}),c("div",{className:p.editor,children:[v?u(n,{appKey:m,assetType:C,currentValue:j,"data-testid":"".concat(d,"_primaryAssetEditorAutocomplete"),defaultValue:A,disableClearable:!f,isNullable:f,label:b,onChange:H}):u(i,{appKey:m,assetType:C,currentValue:j,"data-testid":"".concat(d,"_primaryAutoComplete"),defaultValue:A,isNullable:f,label:b,onChange:H}),P&&u(o,{"data-testid":"".concat(d,"_changeWellButton"),color:"primary",onClick:function(){F(!0),U(!1)},disabled:!_,children:"Change ".concat(r(N))}),!P&&z&&u(o,{"data-testid":"".concat(d,"_useDefaultButton"),color:"secondary",onClick:function(){B(null),F(!1),U(!!N),h(e({},V,null))},children:"Use active asset"})]}),z&&u("div",{className:p.editor,children:K?u(n,{appKey:m,assetType:N,currentValue:x,"data-testid":"".concat(d,"_secondaryAssetEditorAutocomplete"),defaultValue:A,disableClearable:!1,isNullable:f,label:"Active ".concat(r(N)),onChange:G,parentAssetId:j,parentAssetType:C}):u(i,{"data-testid":"".concat(d,"_secondaryAutoComplete"),onChange:G,defaultValue:A,currentValue:x,isNullable:f,label:"Active ".concat(r(N)),assetType:N,parentAssetId:j,parentAssetType:C,appKey:m})})]})};m.defaultProps={label:"Choose An Asset",isNullable:!1,defaultValue:void 0,appKey:null},m.propTypes={settings:s.shape({}).isRequired,appType:s.shape({}).isRequired,defaultValue:s.any,onSettingsChange:s.func.isRequired,label:s.string,isNullable:s.bool,appKey:s.string};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultipleAssetsToggle.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/components/MultipleAssetsToggle.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"MultipleAssetsToggle.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/components/MultipleAssetsToggle.js"],"names":[],"mappings":";AAmBA;;;;;gBAuBC"}
|
|
@@ -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":";AA+CA;;;;;;;;;;;;;;;;;;;;;;;;gBA+GC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrimaryAssetSelectV2.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/components/PrimaryAssetSelectV2.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"PrimaryAssetSelectV2.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/components/PrimaryAssetSelectV2.js"],"names":[],"mappings":";AAgDA;;;;;;;;;;;;;;;;;;;;;;;;;gBA6IC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecondaryAssetSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/components/SecondaryAssetSelect.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SecondaryAssetSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/components/SecondaryAssetSelect.js"],"names":[],"mappings":"AASA,+CAAgD;;AAoDhD,+DAkHC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/toConsumableArray";import t from"prop-types";import{capitalize as a}from"lodash";import{makeStyles as s,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
|
|
1
|
+
import e from"@babel/runtime/helpers/toConsumableArray";import t from"prop-types";import{capitalize as a}from"lodash";import{makeStyles as s,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{ACTIVE_STATUS as d,ACTIVE_ASSET_ID as p,DEFAULT_ASSET_TYPE as c,ACTIVE_ASSETS_ID as u}from"../constants.js";import m from"./SelectItem.js";import{jsxs as f,jsx as v}from"react/jsx-runtime";var y="DC_SingleAssetEditor",g=s((function(e){return{container:{position:"relative"},select:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:0},formControl:{marginTop:16,width:"100%","& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid #808080"}}},selectValue:function(t){return{cursor:"pointer",padding:0,color:t.disabled?e.palette.primary.text7:e.palette.primary.contrastText,"&:hover":{backgroundColor:"initial"}}},option:function(t){return{cursor:"pointer",padding:"0px 0px 0px 16px",color:t.disabled?e.palette.primary.text7:e.palette.primary.contrastText,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.16)"}}},activeAssets:{color:"#9E9E9E",padding:"8px 0 6px"},progress:{position:"absolute",right:20,bottom:4},noActiveAsset:{color:"#9E9E9E",padding:"8px 0 6px"}}})),A=function(t){var s=t.appKey,A=t.primaryAssetLabel,b=t.isRequiredAssetId,h=t.secondaryAssetLabel,x=t.company,I=t.currentValue,T=t.defaultValue,C=t.onChange,N=t.disabled,V=t.parentAssetId,E=t.assetType,j=t.parentAssetType,F=t.assetFields,M=t.activeWellId,_=t.isDrillingPlatformApp,q=l({appKey:s,assetId:I,assetType:_?c:E,company:x,parentAssetId:V,parentAssetType:j,isRequiredAssetId:b,assetFields:F,activeWellId:M}),K=q.assets,R=q.loading,k=g({disabled:N}),P=I||T,W=K.some((function(e){return e.status===d})),w=a(E),B=[{name:"Active ".concat(w),id:p}].concat(e(K));return f("div",{className:k.container,children:[f(r,{className:k.formControl,disabled:R,children:[v(n,{shrink:!!P,children:h}),v(i,{"data-testid":t["data-testid"],classes:{select:k.select},value:P,disabled:N,onChange:function(e){var t=e.target,a=t.value===p?{id:p}:null==K?void 0:K.find((function(e){return e.id===t.value}));C(a)},fullWidth:!0,renderValue:function(e){if(e===u)return v("span",{className:k.activeAssets,children:"Active ".concat(w,"s")});if(e===p&&!W)return v("span",{className:k.noActiveAsset,children:"".concat(A," has No Active ").concat(h)});if(e===p&&W){var t=K.find((function(e){return e.status===d}));return v(m,{className:k.selectValue,assetName:t.name,status:t.status})}var a=K.find((function(t){return t.id===e}));return v(m,{className:k.selectValue,assetName:null==a?void 0:a.name,status:null==a?void 0:a.status})},children:B.map((function(e){var t=e.id,a=e.name,s=e.status,r=a||"";return v(m,{className:k.option,assetName:r,"data-testid":"".concat(y,"_option_").concat(r,"MenuItem"),value:t,status:s},t)}))})]}),R&&v(o,{"data-testid":"".concat(y,"_CircularProgress"),size:20,className:k.progress})]})};A.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},A.defaultProps={currentValue:"",defaultValue:"",appType:void 0,parentAssetId:void 0,parentAssetType:void 0,"data-testid":"".concat(y,"_autoComplete"),appKey:null,assetFields:[]};export{y as PAGE_NAME,A as default};
|
|
@@ -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":";AA8CA,wGAgEE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/effects/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/effects/index.js"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;EAuCC;AAED;;;;;;;;;;;;;;;;EAwFC"}
|
|
@@ -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 s from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import{useState as o,useEffect as i,useRef as a}from"react";import{isEmpty as p}from"lodash";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import{mapAssetGetRequest as
|
|
1
|
+
import t from"@babel/runtime/helpers/toConsumableArray";import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/asyncToGenerator";import s from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import{useState as o,useEffect as i,useRef as a}from"react";import{isEmpty as p}from"lodash";import{formatAsset as c,sortAsset as u,getRequestOptions as l}from"../utils/index.js";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import{mapAssetGetRequest as m}from"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import{jsonaDataFormatter as f}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/appPackages.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";function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function j(t){for(var r=1;r<arguments.length;r++){var s=null!=arguments[r]?arguments[r]:{};r%2?y(Object(s),!0).forEach((function(r){e(t,r,s[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):y(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function b(t){var a=t.appKey,p=t.assetType,d=t.assetId,y=t.company,b=t.parentAssetType,h=t.parentAssetId,g=t.queryParams,v=t.assetFields,O=t.activeWellId,A=t.isRequiredAssetId,I=o([]),P=s(I,2),w=P[0],x=P[1],T=o(!0),k=s(T,2),_=k[0],q=k[1];return i((function(){function t(){return(t=r(n.mark((function t(){var r,s;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m(p)(j(j(j({},l(p,v)),{},e({per_page:1e4,company:"all"!==y?y:null},b,h),a&&{app_key:a}),g));case 2:r=t.sent,s=f.deserialize(r),x(s.map((function(t){return c({asset:t,activeWellId:O,isRequiredAssetId:A})})).sort(u)),q(!1);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}q(!0),function(){t.apply(this,arguments)}()}),[p,d,b,h,a,O,y]),{assets:w,loading:_}}function h(e){var y,b=e.appKey,h=e.assetType,g=e.company,v=e.groups,O=e.isRequiredAssetId,A=e.parentAssetId,I=e.parentAssetType,P=e.searchText,w=e.assetFields,x=e.currentValue,T=e.setCurrentOption,k=e.onActiveAssetIdChange,_=o([]),q=s(_,2),D=q[0],C=q[1],R=o(!1),E=s(R,2),F=E[0],W=E[1],z=a(null),G=(y=r(n.mark((function e(r){var s,o,i,a,y,v,_,q;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s=(null==r?void 0:r.type)||h,W(!0),o={per_page:1e4},I&&A&&(o[I]=A),g&&"all"!==g&&(o.company=g),P&&(o.search=P),b&&(o.app_key=b),z.current=g,i=s===d.pad.type?[].concat(t(w),["pad.active","pad.parent_frac_fleet_id","pad.current"]):w,a=m(s)(j(j({},l(s,i)),o)),e.next=13,a;case 13:y=e.sent,v=f.deserialize(y),_=v.map((function(t){return c({asset:t,group:null==r?void 0:r.name,isRequiredAssetId:O,isPrimaryAsset:!0})})).filter(Boolean).sort(u),z.current===g&&C((function(e){return[].concat(t(e),t(_))})),x&&s===h&&(q=_.find((function(t){return x===t.id||t.assetId&&x===t.assetId})),p(q)||T(q),s===d.rig.type&&k(null==q?void 0:q.activeWellId)),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),console.error(e.t0);case 23:return e.prev=23,W(!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[0,20,23,26]])}))),function(t){return y.apply(this,arguments)});return i((function(){g&&C([])}),[g]),i((function(){v?v.forEach((function(t){G(t)})):G()}),[h,I,A,g,b,null==v?void 0:v.length]),{assets:D,loading:F}}export{h as usePrimaryAssetSelectData,b as useSecondaryAssetSelectData};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePrimaryAssetSelectData.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/effects/usePrimaryAssetSelectData.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePrimaryAssetSelectData.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/effects/usePrimaryAssetSelectData.js"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;EA8HC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/toConsumableArray";import s from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import{useState as o,useRef as i,useEffect as a}from"react";import{map as p,uniqBy as c,isEmpty as l}from"lodash";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import{mapAssetGetRequest as
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/toConsumableArray";import s from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import{useState as o,useRef as i,useEffect as a}from"react";import{map as p,uniqBy as c,isEmpty as l}from"lodash";import{formatAsset as u,sortAsset as m,getRequestOptions as f}from"../utils/index.js";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import{mapAssetGetRequest as d,getAssets as j}from"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import{jsonaDataFormatter as b}from"../../../utils/jsonaDataFormatter.js";import{PER_PAGE as y}from"../../AssetEditor/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/appPackages.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import{ASSET_TYPES as g}from"../../../constants/assetTypes.js";import"../../../utils/env.js";import"../../GradientManager/configuration/constants.js";function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function v(e){for(var r=1;r<arguments.length;r++){var s=null!=arguments[r]?arguments[r]:{};r%2?h(Object(s),!0).forEach((function(r){t(e,r,s[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):h(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function O(t){var h,O,A=t.appKey,P=t.assetType,w=t.company,x=t.groups,D=t.isRequiredAssetId,k=t.parentAssetId,I=t.parentAssetType,T=t.searchValue,_=t.assetFields,C=t.currentValue,E=t.setCurrentOption,q=t.scrollPage,R=t.onActiveAssetIdChange,z=t.isDrillingPlatformApp,F=o([]),G=s(F,2),S=G[0],V=G[1],K=o(!1),M=s(K,2),N=M[0],W=M[1],B=i(null),H=P===g.pad.type?[].concat(r(_),["pad.active","pad.parent_frac_fleet_id"]):_,J=(h=e(n.mark((function t(e){var s,o,i,a,l,j;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,s=(null==e?void 0:e.type)||P,W(!0),o={per_page:y,page:q},I&&k&&(o[I]=k),w&&"all"!==w&&(o.company=w),T&&(o.search=T),A&&(o.app_key=A),B.current=w,i=d(s)(v(v({},f(s,H)),o)),t.next=12,i;case 12:a=t.sent,l=b.deserialize(a),j=p(l,(function(t){return u({asset:t,group:null==e?void 0:e.name,isRequiredAssetId:D,isPrimaryAsset:!0,isDrillingPlatformApp:z})})).sort(m),B.current===w&&V((function(t){return c([].concat(r(t),r(j)),"id")})),t.next=21;break;case 18:t.prev=18,t.t0=t.catch(0),console.error(t.t0);case 21:return t.prev=21,W(!1),t.finish(21);case 24:case"end":return t.stop()}}),t,null,[[0,18,21,24]])}))),function(t){return h.apply(this,arguments)}),L=(O=e(n.mark((function t(){var e,r,s,o,i,a,p;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d(P)(v(v({},f(P,H)),{},{ids:C}));case 2:if(e=t.sent,!l(e.data)){t.next=7;break}return t.next=6,j(v(v({},f(P,H)),{},{ids:C}));case 6:e=t.sent;case 7:r=b.deserialize(e),s=u({asset:r[0],isPrimaryAsset:!0,isRequiredAssetId:D,isDrillingPlatformApp:z}),E(s),P===g.rig.type&&(p=z?Number(null===(o=e)||void 0===o||null===(i=o.included)||void 0===i||null===(a=i[0])||void 0===a?void 0:a.id):(null==s?void 0:s.activeWellId)||null,R(p));case 11:case"end":return t.stop()}}),t)}))),function(){return O.apply(this,arguments)});return a((function(){w&&V([])}),[w]),a((function(){x?x.forEach((function(t){J(t)})):J()}),[P,I,k,w,A,null==x?void 0:x.length,T,q]),a((function(){C&&L()}),[]),{assets:S,loading:N}}export{O as usePrimaryAssetSelectData};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AssetEditorV2/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AssetEditorV2/index.js"],"names":[],"mappings":";AAqBA;;;;;;;;;;;;;;;;;;;;;;;gBAgQC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{useState as a,useEffect as r}from"react";import n from"prop-types";import{get as i,isEmpty as l,noop as o}from"lodash";import p from"classnames";import{makeStyles as d}from"@material-ui/core";import c from"./components/PrimaryAssetSelect.js";import u from"./components/SecondaryAssetSelect.js";import"./components/SelectItem.js";import m from"./components/MultipleAssetsToggle.js";import y from"./components/PrimaryAssetSelectV2.js";import{ACTIVE_ASSETS_ID as f,ACTIVE_ASSET_ID as g}from"./constants.js";import"../../constants/goals.js";import{PAD_GROUP as
|
|
1
|
+
import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{useState as a,useEffect as r}from"react";import n from"prop-types";import{get as i,isEmpty as l,noop as o}from"lodash";import p from"classnames";import{makeStyles as d}from"@material-ui/core";import c from"./components/PrimaryAssetSelect.js";import u from"./components/SecondaryAssetSelect.js";import"./components/SelectItem.js";import m from"./components/MultipleAssetsToggle.js";import y from"./components/PrimaryAssetSelectV2.js";import{ACTIVE_ASSETS_ID as f,ACTIVE_ASSET_ID as g}from"./constants.js";import{getPrimaryAssetFields as b}from"./utils/index.js";import"../../constants/goals.js";import{PAD_GROUP as A,FRAC_FLEET_GROUP as v}from"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import{ASSET_TYPES as h}from"../../constants/assetTypes.js";import"../../utils/env.js";import"../GradientManager/configuration/constants.js";import{jsxs as j,jsx as I,Fragment as T}from"react/jsx-runtime";function O(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,a)}return s}function S(e){for(var s=1;s<arguments.length;s++){var a=null!=arguments[s]?arguments[s]:{};s%2?O(Object(a),!0).forEach((function(s){t(e,s,a[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):O(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var C=d({title:{fontWeight:400,fontSize:20,margin:"24px 0 16px"}}),P=function(n){var o=n.appKey,d=n.appType,O=n.className,P=n.company,D=n.defaultValue,V=n.secondaryDefaultValue,F=n.disabled,N=n.isHiddenTitle,x=n.isNullable,R=n.label,w=n.onSettingsChange,_=n.primaryAssetFields,q=n.secondaryAssetFields,E=n.isExtendedSelect,H=n.isRequiredAssetId,K=n.settings,L=n.isVisibleMultipleAssetsToggle,M=n.assetsLimit,k=n.isDisabledSecondaryAssetSelect,G=n.isDrillingPlatformApp,W=n.secondaryAssetHelpText,z=n.onChange,B=i(d,["primaryAsset","assetType","type"]),J=i(d,["primaryAsset","assetType","id"]),Q=i(d,["primaryAsset","assetType","label"]),U=i(d,["primaryAsset","groups"]),X=i(d,["secondaryAsset","assetType","type"]),Y=i(d,["secondaryAsset","assetType","id"]),Z=i(d,["secondaryAsset","assetType","label"]),$=i(K,J),ee=$?Number($):null,te=i(K,Y)?Number(i(K,Y)):V||null,se=a({id:ee||D}),ae=s(se,2),re=ae[0],ne=ae[1],ie=a(te),le=s(ie,2),oe=le[0],pe=le[1],de=a(!1),ce=s(de,2),ue=ce[0],me=ce[1],ye=a(),fe=s(ye,2),ge=fe[0],be=fe[1],Ae=a(!1),ve=s(Ae,2),he=ve[0],je=ve[1],Ie=C(),Te=B===h.rig.type?y:c,Oe=G&&null!=re&&re.assetId?null==re?void 0:re.assetId:null==re?void 0:re.id,Se=function(){var e,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ne(s),pe(null),me(!1);var a=(t(e={},J,null),t(e,Y,null),t(e,"assets",null),e);w(a)},Ce=he?Boolean(re.length)&&!ue:(null==re?void 0:re.id)&&!ue;return r((function(){l(K)&&Se(he&&[])}),[K]),j("div",{className:p(Ie.main,O),children:[!N&&I("div",{className:Ie.title,children:"Asset"}),L&&I(m,{onChange:function(e){var t=e.target;je(t.checked),Se(t.checked&&[])}}),I(Te,{appKey:o,assetType:B,company:P,currentOption:re,currentValue:null==re?void 0:re.id,"data-testid":"".concat("DC_AppSettingsAssetEditor","_primaryAssetEditorAutocomplete"),defaultValue:D,disableClearable:!x,disabled:F,isNullable:x,isRequiredAssetId:H,label:R,multiple:he,onChange:function(s){if(z({primary:s}),he)!function(s){var a,r;if(!(s.length>M)){var n=(null===(a=s[0])||void 0===a?void 0:a.group)===A.name,i=(null===(r=s[0])||void 0===r?void 0:r.group)===v.name,l=1===s.length&&n,o=1===s.length&&i;if(l?(me(!0),be(A)):o&&be(v),n){ne(s);var p=null==s?void 0:s.reduce((function(t,s){var a=s.parentFracFleetId,r=s.id,n={fracFleetId:a,padId:r};return E&&(n.assetId=a,n.replacedPadId=r),a?[].concat(e(t),[n]):t}),[]);w({assets:p})}else{ne(s);var d=s.reduce((function(s,a){var r=t({},"".concat(a.type,"Id"),a.id);return H&&(r.assetId=a.assetId),E&&(r.assetId=a.assetId||a.id),[].concat(e(s),[r])}),[]);w({assets:d})}}}(s);else{var a=s.id,r=s.type,n=s.parentFracFleetId;if(a)if(r!==h.pad.type){ne(s),pe(null);var i=t({},J,a);H&&(i.assetId=s.assetId),Y&&(i[Y]=null),w(i),me(!1)}else{var l;ne(s),me(!0),pe(a);var o=(t(l={},h.frac_fleet.id,Number(n)),t(l,h.pad.id,a),l);w(o)}}},setCurrentOption:ne,selectedGroup:ge,onGroupChange:function(e){be(e),Se(he&&[])},onGroupReset:function(){be(null),Se(he&&[])},groups:U,onInputReset:Se,onActiveAssetIdChange:function(e){ne((function(t){return S(S({},t),{},{activeWellId:e})}))},isDrillingPlatformApp:G,assetFields:b(B,_,G)}),Ce&&j(T,{children:[W,I(u,{assetFields:X===h.pad.type?[].concat(e(q),["pad.active","pad.current"]):q,activeWellId:null==re?void 0:re.activeWellId,appKey:o,assetType:X,company:P,currentValue:oe,"data-testid":"".concat("DC_AppSettingsAssetEditor","_secondaryAutoComplete"),defaultValue:he?f:g,disabled:he||k||F,isDrillingPlatformApp:G,isNullable:x,isRequiredAssetId:H,onChange:function(e){var s=e.id,a=e.assetId,r=e.name;z({secondary:{name:r}}),pe(s);var n=s===g?null:s,i=t({},Y,n);H&&X===h.well.type?w(S(S({},i),{},{replacedAssetId:G?n:a})):w(i)},parentAssetId:Oe,parentAssetType:G?"parent_asset_id":B,primaryAssetLabel:Q,secondaryAssetLabel:Z})]})]})};P.defaultProps={assetsLimit:null,label:"Choose An Asset",isNullable:!1,defaultValue:void 0,secondaryDefaultValue:void 0,isHiddenTitle:!1,appKey:null,isVisibleMultipleAssetsToggle:!1,isDisabledSecondaryAssetSelect:!1,primaryAssetFields:[],secondaryAssetFields:[],secondaryAssetHelpText:null,onChange:o},P.propTypes={assetsLimit:n.number,settings:n.shape({}).isRequired,appType:n.shape({}).isRequired,defaultValue:n.any,secondaryDefaultValue:n.any,onSettingsChange:n.func.isRequired,label:n.string,isNullable:n.bool,isHiddenTitle:n.bool,appKey:n.string,isVisibleMultipleAssetsToggle:n.bool,isDisabledSecondaryAssetSelect:n.bool,primaryAssetFields:n.arrayOf(n.shape({})),secondaryAssetFields:n.arrayOf(n.shape({})),secondaryAssetHelpText:n.oneOfType([n.element,n.string]),onChange:n.func};export{P as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/utils/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetEditorV2/utils/index.js"],"names":[],"mappings":"AAMO,yDAUN;AAEM,2DAUN;AAEM;;;;EAIL;AAEK;;;;;;;;;;;EA0CN;AAEM,6CAAkE;AAElE,gHAON"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/toConsumableArray";import"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/appPackages.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import{ASSET_TYPES as
|
|
1
|
+
import t from"@babel/runtime/helpers/toConsumableArray";import"lodash";import{DEFAULT_ASSET_TYPE as s,ACTIVE_STATUS as e}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/appPackages.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";var a=function(s){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{sort:"name",order:"asc",fields:["".concat(s,".name"),"".concat(s,".status")].concat(t(e))}},r=function(t){var a=t.asset,r=t.group,i=void 0===r?null:r,o=t.activeWellId,l=void 0===o?null:o,c=t.isRequiredAssetId,p=t.isPrimaryAsset,u=t.isDrillingPlatformApp;if(!a)return null;var d,m,v={id:+a.assetId||+a.id,type:a.type,name:a.name};(c&&(v.id=+a.id,v.assetId=+a.assetId),i&&(v.group=i),a.type===n.rig.type)&&(v.activeWellId=Number(null===(d=a.activeWell)||void 0===d?void 0:d.id)||null,u&&(v.activeWellId=Number(null===(m=a.activeWell)||void 0===m?void 0:m.assetId)||null));return a.type!==n.well.type&&a.type!==s||(v.status=Number(a.id)===l?e:null),a.type===n.pad.type&&(v.parentFracFleetId=a.parentFracFleetId,v.status=a.active&&a.current?e:null,p&&!a.parentFracFleetId&&(v.status=null)),v},i=function(t){return t.status===e?-1:1},o=function(s,e,a){var r=s===n.rig.type?[].concat(t(e),["rig.active_well"]):e;return a?[].concat(t(r),["rig.active_child"]):r};export{r as formatAsset,o as getPrimaryAssetFields,a as getRequestOptions,i as sortAsset};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssetsMultipleSelector.d.ts","sourceRoot":"","sources":["../../../src/components/AssetsMultipleSelector/AssetsMultipleSelector.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AssetsMultipleSelector.d.ts","sourceRoot":"","sources":["../../../src/components/AssetsMultipleSelector/AssetsMultipleSelector.js"],"names":[],"mappings":";AAmCA,mFA6KE"}
|
|
@@ -7,12 +7,12 @@ declare const _default: import("react").ComponentType<Pick<Pick<PropTypes.InferP
|
|
|
7
7
|
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{}>>>;
|
|
8
8
|
small: PropTypes.Requireable<boolean>;
|
|
9
9
|
}>, "classes" | "attachmentUrl"> & {
|
|
10
|
-
size?: string;
|
|
11
10
|
small?: boolean;
|
|
12
|
-
fileName?: string;
|
|
13
11
|
displayName?: string;
|
|
12
|
+
size?: string;
|
|
13
|
+
fileName?: string;
|
|
14
14
|
attachmentSize?: number;
|
|
15
|
-
} & {}, "
|
|
15
|
+
} & {}, "small" | "displayName" | "size" | "fileName" | "attachmentUrl" | "attachmentSize"> & import("@material-ui/core").StyledComponentProps<"caption" | "dialog" | "fileName" | "titleContainer" | "imageIconRoot" | "nativeDialog" | "dialogRoot" | "downloadIcon" | "disabledPreview" | "unavailableFileIcon" | "unavailableFileName">>;
|
|
16
16
|
export default _default;
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|