@corva/ui 3.54.1 → 3.55.0-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs-bundle/components/AddComment/Popover.js +1 -1
- package/cjs-bundle/components/AddComment/Popover.js.map +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
- package/cjs-bundle/components/AdvancedSlider/Handle.js +1 -1
- package/cjs-bundle/components/AdvancedSlider/Handle.js.map +1 -1
- package/cjs-bundle/components/Attachment/index.js +1 -1
- package/cjs-bundle/components/Attachment/index.js.map +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js.map +1 -1
- package/cjs-bundle/components/Breadcrumbs/index.js +1 -1
- package/cjs-bundle/components/Button/components/LiveButton/index.js +1 -1
- package/cjs-bundle/components/Button/index.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
- package/cjs-bundle/components/Chart/components/AxisDropdown.js +1 -1
- package/cjs-bundle/components/Chart/components/AxisDropdown.js.map +1 -1
- package/cjs-bundle/components/Chart/components/ChartSelect.js +1 -1
- package/cjs-bundle/components/Chart/components/ChartSelect.js.map +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js.map +1 -1
- package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js.map +1 -1
- package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js.map +1 -1
- package/cjs-bundle/components/Chart/components/buttons/PanButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/PanButton.js.map +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js.map +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js.map +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js.map +1 -1
- package/cjs-bundle/components/Chip/index.js +1 -1
- package/cjs-bundle/components/CollapsableSidebar.js +1 -1
- package/cjs-bundle/components/CollapsableSidebar.js.map +1 -1
- package/cjs-bundle/components/ColorPicker/ColorPicker.js +1 -1
- package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
- package/cjs-bundle/components/CopyToClipboard/CopyToClipboard.js +1 -1
- package/cjs-bundle/components/Counter/index.js +1 -1
- package/cjs-bundle/components/DatePicker/index.js +1 -1
- package/cjs-bundle/components/DateTimePicker/index.js +1 -1
- package/cjs-bundle/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
- package/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/cjs-bundle/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.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/PriorityMenus/PriorityMenus.js.map +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
- package/cjs-bundle/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
- package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
- package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js.map +1 -1
- package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
- package/cjs-bundle/components/FeedItem/FeedItem.js.map +1 -1
- package/cjs-bundle/components/FeedItem/components/Content.js +1 -1
- package/cjs-bundle/components/FeedItem/components/Content.js.map +1 -1
- package/cjs-bundle/components/FeedItem/components/FeedComments.js +1 -1
- package/cjs-bundle/components/FeedItem/components/FeedComments.js.map +1 -1
- package/cjs-bundle/components/FeedItem/components/Reactions.js +1 -1
- package/cjs-bundle/components/FeedItem/components/Reactions.js.map +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/AlertFeedItem.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/AlertFeedItem.js.map +1 -1
- package/cjs-bundle/components/FilesDropzone/FilesDropzone.js +1 -1
- package/cjs-bundle/components/FilesLoader/FilesLoader.js +1 -1
- package/cjs-bundle/components/FilesLoaderV2/FilesLoaderV2.js +1 -1
- package/cjs-bundle/components/Formula/CloseSuggestion.js +1 -1
- package/cjs-bundle/components/Formula/CloseSuggestion.js.map +1 -1
- package/cjs-bundle/components/Formula/Formula.js +1 -1
- package/cjs-bundle/components/GradientManager/GradientManager.js +1 -1
- package/cjs-bundle/components/GradientManager/GradientSelect.js +1 -1
- package/cjs-bundle/components/GradientPicker/GradientPicker.js +1 -1
- package/cjs-bundle/components/HelpCenter/HelpCenterIcon.js +1 -1
- package/cjs-bundle/components/HelpCenter/HelpCenterIcon.js.map +1 -1
- package/cjs-bundle/components/Hint/Hint.js +1 -1
- package/cjs-bundle/components/ImageViewer/index.js +1 -1
- package/cjs-bundle/components/ImageViewer/index.js.map +1 -1
- package/cjs-bundle/components/Modal/CorvaModal.js +1 -1
- package/cjs-bundle/components/Notifications/Toast.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/api/shared/fetchers/getAllAssets.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricsSettingMenu/MetricsSettingMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useAllWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useCompanyIdChangeEffect.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useLoadAllWellsCallback.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/fetchTile.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/useCompanyIdResetEffect.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/useHandleBoundsChange.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/useViewportWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/utils/doesWellPassFilters.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.js.map +1 -0
- package/cjs-bundle/components/PadModeSelect/FracModeLabel.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/PadOffsetsPicker/StagesSelector.js.map +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js +1 -1
- package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js.map +1 -1
- package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js +1 -1
- package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js.map +1 -1
- package/cjs-bundle/components/Popover/Popover.js +1 -1
- package/cjs-bundle/components/Popper/Popper.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
- package/cjs-bundle/components/Search/Search.js +1 -1
- package/cjs-bundle/components/Select/SelectFilterBy.js +1 -1
- package/cjs-bundle/components/SettingEditors/ColorEditor/index.js +1 -1
- package/cjs-bundle/components/StatusBadge/constants.js +1 -1
- package/cjs-bundle/components/Stepper/Step/Step.js +1 -1
- package/cjs-bundle/components/Table/TableCell/TableCell.js +1 -1
- package/cjs-bundle/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
- package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js +1 -1
- package/cjs-bundle/components/Toaster/Toaster.js +1 -1
- package/cjs-bundle/componentsV2/Accordion/Accordion.js +1 -1
- package/cjs-bundle/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
- package/cjs-bundle/componentsV2/AppDqPopover/DqAsset/DqAsset.js +1 -1
- package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js +1 -1
- package/cjs-bundle/componentsV2/AppFooter/Warning.js +1 -1
- package/cjs-bundle/componentsV2/AppHeader/AppAssets/utils.js +1 -1
- package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
- package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
- package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js +1 -1
- package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js +1 -1
- package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/constants.js +1 -1
- package/cjs-bundle/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js +1 -1
- package/cjs-bundle/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js +1 -1
- package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
- package/cjs-bundle/componentsV2/AppSettings/AppSettings.js +1 -1
- package/cjs-bundle/componentsV2/Autocomplete/Autocomplete.js +1 -1
- package/cjs-bundle/componentsV2/Breadcrumbs/Breadcrumbs.js +1 -1
- package/cjs-bundle/componentsV2/ButtonLive/ButtonLive.js +1 -1
- package/cjs-bundle/componentsV2/Chip/Chip.js +1 -1
- package/cjs-bundle/componentsV2/ColorPicker/ColorPicker.js +1 -1
- package/cjs-bundle/componentsV2/ColorPicker/Swatches/Swatches.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
- package/cjs-bundle/componentsV2/CopyToClipboard/CopyToClipboard.js +1 -1
- package/cjs-bundle/componentsV2/Counter/Counter.js +1 -1
- package/cjs-bundle/componentsV2/DatePicker/CalendarControls/CalendarControls.js +1 -1
- package/cjs-bundle/componentsV2/DatePicker/Input/Input.js +1 -1
- package/cjs-bundle/componentsV2/DragHandle/DragHandle.js +1 -1
- package/cjs-bundle/componentsV2/FilesDropzone/FilesDropzone.js +1 -1
- package/cjs-bundle/componentsV2/FilesLoader/FilesLoader.js +1 -1
- package/cjs-bundle/componentsV2/Hint/Hint.js +1 -1
- package/cjs-bundle/componentsV2/ModalWindow/ModalWindow.js +1 -1
- package/cjs-bundle/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
- package/cjs-bundle/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js +1 -1
- package/cjs-bundle/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js +1 -1
- package/cjs-bundle/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
- package/cjs-bundle/componentsV2/Stepper/Step/Step.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/Popover/Popover.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/ShareModal/ShareModal.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/TemplatesControl.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/TemplatesTreeTemplate/TemplatesTreeTemplate.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/Toggle/Toggle.scss.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.js +2 -0
- package/cjs-bundle/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.js.map +1 -0
- package/cjs-bundle/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.scss.js +2 -0
- package/cjs-bundle/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.scss.js.map +1 -0
- package/cjs-bundle/componentsV2/TemplatesControl/UnsavedChangesBadge/UnsavedChangesBadge.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js +1 -1
- package/cjs-bundle/componentsV2/TextInput/TextInput.js +1 -1
- package/cjs-bundle/componentsV2/TextInputNext/TextInputNext.js +1 -1
- package/cjs-bundle/componentsV2/TextInputNext/components/InfoIcon.js +1 -1
- package/cjs-bundle/componentsV2/WellArchivedMessage/WellArchivedMessage.js +1 -1
- package/cjs-bundle/config/theme/index.js +1 -1
- package/cjs-bundle/config/theme/index.js.map +1 -1
- package/cjs-bundle/icons/customIcons/icons/ArchiveOne.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/ArchiveOne.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/AtSignCrossed.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/AtSignCrossed.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/CalibrationOps.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/CalibrationOps.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/ClipboardAi.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/ClipboardAi.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/ClipboardBuilder.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/ClipboardBuilder.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/ClipboardMetrics.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/ClipboardMetrics.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/ClipboardSearch.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/ClipboardSearch.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/Companies.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/Companies.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/Company.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/Company.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/Connect.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/Connect.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/CriticalOps.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/CriticalOps.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/DataTypeOps.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/DataTypeOps.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/Drops.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/Drops.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/ErrorOps.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/ErrorOps.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/FalsePositiveOps.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/FalsePositiveOps.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/Feed.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/Feed.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/Key.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/Key.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/Mapping.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/Mapping.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/MappingManual.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/MappingManual.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/Metrics.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/Metrics.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/NPT.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/NPT.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/ParseBotFusion.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/ParseBotFusion.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/Prompt.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/Prompt.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/PuzzleOne.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/PuzzleOne.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/Template.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/Template.js.map +1 -0
- package/cjs-bundle/icons/customIcons/icons/UnitConversion.js +2 -0
- package/cjs-bundle/icons/customIcons/icons/UnitConversion.js.map +1 -0
- package/cjs-bundle/icons/index.js +1 -1
- package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/Popover.js.map +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/AddComment/components/Content.js.map +1 -1
- package/components/AdvancedSlider/Handle.js +1 -1
- package/components/AdvancedSlider/Handle.js.map +1 -1
- package/components/Attachment/index.js +1 -1
- package/components/Attachment/index.js.map +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js.map +1 -1
- package/components/Breadcrumbs/index.js +1 -1
- package/components/Button/components/LiveButton/index.js +1 -1
- package/components/Button/index.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
- package/components/Chart/components/AxisDropdown.js +1 -1
- package/components/Chart/components/AxisDropdown.js.map +1 -1
- package/components/Chart/components/ChartSelect.js +1 -1
- package/components/Chart/components/ChartSelect.js.map +1 -1
- package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/components/Chart/components/buttons/ChartTypeButton.js.map +1 -1
- package/components/Chart/components/buttons/DragToZoomButton.js +1 -1
- package/components/Chart/components/buttons/DragToZoomButton.js.map +1 -1
- package/components/Chart/components/buttons/HideAxesButton.js +1 -1
- package/components/Chart/components/buttons/HideAxesButton.js.map +1 -1
- package/components/Chart/components/buttons/PanButton.js +1 -1
- package/components/Chart/components/buttons/PanButton.js.map +1 -1
- package/components/Chart/components/buttons/ResetZoomButton.js +1 -1
- package/components/Chart/components/buttons/ResetZoomButton.js.map +1 -1
- package/components/Chart/components/buttons/ZoomInButton.js +1 -1
- package/components/Chart/components/buttons/ZoomInButton.js.map +1 -1
- package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
- package/components/Chart/components/buttons/ZoomOutButton.js.map +1 -1
- package/components/Chip/index.js +1 -1
- package/components/CollapsableSidebar.js +1 -1
- package/components/CollapsableSidebar.js.map +1 -1
- package/components/ColorPicker/ColorPicker.js +1 -1
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
- package/components/CopyToClipboard/CopyToClipboard.js +1 -1
- package/components/Counter/index.js +1 -1
- package/components/DatePicker/index.js +1 -1
- package/components/DateTimePicker/index.js +1 -1
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.d.ts +2 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js.map +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/DocumentViewer/DocumentViewer.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
- package/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js.map +1 -1
- package/components/FeedItem/FeedItem.d.ts +6 -1
- package/components/FeedItem/FeedItem.d.ts.map +1 -1
- package/components/FeedItem/FeedItem.js +1 -1
- package/components/FeedItem/FeedItem.js.map +1 -1
- package/components/FeedItem/components/Content.d.ts +2 -1
- package/components/FeedItem/components/Content.d.ts.map +1 -1
- package/components/FeedItem/components/Content.js +1 -1
- package/components/FeedItem/components/Content.js.map +1 -1
- package/components/FeedItem/components/FeedComments.js +1 -1
- package/components/FeedItem/components/FeedComments.js.map +1 -1
- package/components/FeedItem/components/Reactions.d.ts +2 -1
- package/components/FeedItem/components/Reactions.d.ts.map +1 -1
- package/components/FeedItem/components/Reactions.js +1 -1
- package/components/FeedItem/components/Reactions.js.map +1 -1
- package/components/FeedItem/feedItemTypes/AlertFeedItem.d.ts +11 -11
- package/components/FeedItem/feedItemTypes/AlertFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/AlertFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/AlertFeedItem.js.map +1 -1
- package/components/FilesDropzone/FilesDropzone.js +1 -1
- package/components/FilesLoader/FilesLoader.js +1 -1
- package/components/FilesLoaderV2/FilesLoaderV2.js +1 -1
- package/components/Formula/CloseSuggestion.js +1 -1
- package/components/Formula/CloseSuggestion.js.map +1 -1
- package/components/Formula/Formula.js +1 -1
- package/components/GradientManager/GradientManager.js +1 -1
- package/components/GradientManager/GradientSelect.js +1 -1
- package/components/GradientPicker/GradientPicker.js +1 -1
- package/components/HelpCenter/HelpCenterIcon.js +1 -1
- package/components/HelpCenter/HelpCenterIcon.js.map +1 -1
- package/components/Hint/Hint.js +1 -1
- package/components/ImageViewer/index.js +1 -1
- package/components/ImageViewer/index.js.map +1 -1
- package/components/Modal/CorvaModal.js +1 -1
- package/components/Notifications/Toast.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
- package/components/OffsetWellPickerV5/api/shared/fetchers/getAllAssets.d.ts +1 -0
- package/components/OffsetWellPickerV5/api/shared/fetchers/getAllAssets.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/api/shared/fetchers/getAllAssets.js +1 -1
- package/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.d.ts +5 -1
- package/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.js +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js +1 -1
- package/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SelectionToast/SelectionToast.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricsSettingMenu/MetricsSettingMenu.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js +1 -1
- package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useAllWells/useAllWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useAllWells/useAllWells.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useAllWells/useCompanyIdChangeEffect.d.ts +1 -1
- package/components/OffsetWellPickerV5/hooks/useAllWells/useCompanyIdChangeEffect.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useAllWells/useCompanyIdChangeEffect.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.d.ts +8 -0
- package/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.js +2 -0
- package/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.js.map +1 -0
- package/components/OffsetWellPickerV5/hooks/useAllWells/useLoadAllWellsCallback.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useAllWells/useLoadAllWellsCallback.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/fetchTile.d.ts +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/fetchTile.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/fetchTile.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/types.d.ts +1 -0
- package/components/OffsetWellPickerV5/hooks/useViewportWells/types.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useCompanyIdResetEffect.d.ts +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useCompanyIdResetEffect.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useCompanyIdResetEffect.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.d.ts +14 -0
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.js +2 -0
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.js.map +1 -0
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useHandleBoundsChange.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useHandleBoundsChange.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useViewportWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useViewportWells.js +1 -1
- package/components/OffsetWellPickerV5/utils/doesWellPassFilters.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/utils/doesWellPassFilters.js +1 -1
- package/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.d.ts +3 -0
- package/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.js +2 -0
- package/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.js.map +1 -0
- package/components/PadModeSelect/FracModeLabel.js +1 -1
- package/components/PadModeSelect/PadModeSelect.js +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/components/ParameterCharts/components/TraceHeader.js +1 -1
- package/components/ParameterCharts/components/TraceHeader.js.map +1 -1
- package/components/PinnableFilters/components/FiltersToggler.js +1 -1
- package/components/PinnableFilters/components/FiltersToggler.js.map +1 -1
- package/components/Popover/Popover.js +1 -1
- package/components/Popper/Popper.js +1 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
- package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
- package/components/Search/Search.js +1 -1
- package/components/Select/SelectFilterBy.js +1 -1
- package/components/SettingEditors/ColorEditor/index.js +1 -1
- package/components/StatusBadge/constants.d.ts.map +1 -1
- package/components/StatusBadge/constants.js +1 -1
- package/components/Stepper/Step/Step.js +1 -1
- package/components/Table/TableCell/TableCell.js +1 -1
- package/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
- package/components/Table/TableSortLabel/TableSortLabel.js +1 -1
- package/components/Toaster/Toaster.js +1 -1
- package/componentsV2/Accordion/Accordion.js +1 -1
- package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
- package/componentsV2/AppDqPopover/DqAsset/DqAsset.js +1 -1
- package/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js +1 -1
- package/componentsV2/AppFooter/Warning.js +1 -1
- package/componentsV2/AppHeader/AppAssets/utils.js +1 -1
- package/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
- package/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
- package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js +1 -1
- package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorContent.js +1 -1
- package/componentsV2/AppHeader/V3/AssetSelector/constants.js +1 -1
- package/componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js +1 -1
- package/componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js +1 -1
- package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
- package/componentsV2/AppSettings/AppSettings.js +1 -1
- package/componentsV2/Autocomplete/Autocomplete.js +1 -1
- package/componentsV2/Breadcrumbs/Breadcrumbs.js +1 -1
- package/componentsV2/ButtonLive/ButtonLive.js +1 -1
- package/componentsV2/Chip/Chip.js +1 -1
- package/componentsV2/ColorPicker/ColorPicker.js +1 -1
- package/componentsV2/ColorPicker/Swatches/Swatches.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
- package/componentsV2/CopyToClipboard/CopyToClipboard.js +1 -1
- package/componentsV2/Counter/Counter.js +1 -1
- package/componentsV2/DatePicker/CalendarControls/CalendarControls.js +1 -1
- package/componentsV2/DatePicker/Input/Input.js +1 -1
- package/componentsV2/DragHandle/DragHandle.js +1 -1
- package/componentsV2/FilesDropzone/FilesDropzone.js +1 -1
- package/componentsV2/FilesLoader/FilesLoader.js +1 -1
- package/componentsV2/Hint/Hint.js +1 -1
- package/componentsV2/ModalWindow/ModalWindow.js +1 -1
- package/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
- package/componentsV2/OffsetWellsButton/useOffsetWellsIcon.js +1 -1
- package/componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js +1 -1
- package/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
- package/componentsV2/Stepper/Step/Step.js +1 -1
- package/componentsV2/TemplatesControl/FolderMenu/FolderMenu.js +1 -1
- package/componentsV2/TemplatesControl/MoveToFolderMenu/MoveToFolderMenu.js +1 -1
- package/componentsV2/TemplatesControl/Popover/Popover.js +1 -1
- package/componentsV2/TemplatesControl/PopoverSearch/PopoverSearch.js +1 -1
- package/componentsV2/TemplatesControl/ShareModal/ShareModal.js +1 -1
- package/componentsV2/TemplatesControl/TemplateMenu/IconMenu/IconMenu.js +1 -1
- package/componentsV2/TemplatesControl/TemplatesControl.d.ts +9 -2
- package/componentsV2/TemplatesControl/TemplatesControl.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/TemplatesControl.js +1 -1
- package/componentsV2/TemplatesControl/TemplatesControl.stories.d.ts +1 -0
- package/componentsV2/TemplatesControl/TemplatesControl.stories.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/TemplatesTreeMenuHeader/TemplatesTreeMenuHeader.js +1 -1
- package/componentsV2/TemplatesControl/TemplatesTreeNodeItem/TemplatesTreeNodeItem.js +1 -1
- package/componentsV2/TemplatesControl/TemplatesTreeTemplate/TemplatesTreeTemplate.js +1 -1
- package/componentsV2/TemplatesControl/Toggle/Toggle.d.ts +2 -0
- package/componentsV2/TemplatesControl/Toggle/Toggle.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
- package/componentsV2/TemplatesControl/Toggle/Toggle.scss.js +1 -1
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.d.ts +5 -0
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.d.ts.map +1 -0
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.js +2 -0
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.js.map +1 -0
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.scss.js +2 -0
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.scss.js.map +1 -0
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/index.d.ts +2 -0
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/index.d.ts.map +1 -0
- package/componentsV2/TemplatesControl/UnsavedChangesBadge/UnsavedChangesBadge.js +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/CopyTemplate.js +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/ExportTemplate.js +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateOutOfFolder.js +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/MoveTemplateToFolder.js +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/RemoveTemplate.js +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/RevertTemplate.js +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/ShareTemplate.js +1 -1
- package/componentsV2/TemplatesControl/templateMenuItems/UnfollowTemplate.js +1 -1
- package/componentsV2/TextInput/TextInput.js +1 -1
- package/componentsV2/TextInputNext/TextInputNext.js +1 -1
- package/componentsV2/TextInputNext/components/InfoIcon.js +1 -1
- package/componentsV2/WellArchivedMessage/WellArchivedMessage.js +1 -1
- package/config/theme/index.js +1 -1
- package/config/theme/index.js.map +1 -1
- package/icons/IconPark.stories.d.ts.map +1 -1
- package/icons/customIcons/icons/ArchiveOne.d.ts +2 -0
- package/icons/customIcons/icons/ArchiveOne.d.ts.map +1 -0
- package/icons/customIcons/icons/ArchiveOne.js +2 -0
- package/icons/customIcons/icons/ArchiveOne.js.map +1 -0
- package/icons/customIcons/icons/AtSignCrossed.d.ts +2 -0
- package/icons/customIcons/icons/AtSignCrossed.d.ts.map +1 -0
- package/icons/customIcons/icons/AtSignCrossed.js +2 -0
- package/icons/customIcons/icons/AtSignCrossed.js.map +1 -0
- package/icons/customIcons/icons/CalibrationOps.d.ts +2 -0
- package/icons/customIcons/icons/CalibrationOps.d.ts.map +1 -0
- package/icons/customIcons/icons/CalibrationOps.js +2 -0
- package/icons/customIcons/icons/CalibrationOps.js.map +1 -0
- package/icons/customIcons/icons/ClipboardAi.d.ts +2 -0
- package/icons/customIcons/icons/ClipboardAi.d.ts.map +1 -0
- package/icons/customIcons/icons/ClipboardAi.js +2 -0
- package/icons/customIcons/icons/ClipboardAi.js.map +1 -0
- package/icons/customIcons/icons/ClipboardBuilder.d.ts +2 -0
- package/icons/customIcons/icons/ClipboardBuilder.d.ts.map +1 -0
- package/icons/customIcons/icons/ClipboardBuilder.js +2 -0
- package/icons/customIcons/icons/ClipboardBuilder.js.map +1 -0
- package/icons/customIcons/icons/ClipboardMetrics.d.ts +2 -0
- package/icons/customIcons/icons/ClipboardMetrics.d.ts.map +1 -0
- package/icons/customIcons/icons/ClipboardMetrics.js +2 -0
- package/icons/customIcons/icons/ClipboardMetrics.js.map +1 -0
- package/icons/customIcons/icons/ClipboardSearch.d.ts +2 -0
- package/icons/customIcons/icons/ClipboardSearch.d.ts.map +1 -0
- package/icons/customIcons/icons/ClipboardSearch.js +2 -0
- package/icons/customIcons/icons/ClipboardSearch.js.map +1 -0
- package/icons/customIcons/icons/Companies.d.ts +2 -0
- package/icons/customIcons/icons/Companies.d.ts.map +1 -0
- package/icons/customIcons/icons/Companies.js +2 -0
- package/icons/customIcons/icons/Companies.js.map +1 -0
- package/icons/customIcons/icons/Company.d.ts +2 -0
- package/icons/customIcons/icons/Company.d.ts.map +1 -0
- package/icons/customIcons/icons/Company.js +2 -0
- package/icons/customIcons/icons/Company.js.map +1 -0
- package/icons/customIcons/icons/Connect.d.ts +2 -0
- package/icons/customIcons/icons/Connect.d.ts.map +1 -0
- package/icons/customIcons/icons/Connect.js +2 -0
- package/icons/customIcons/icons/Connect.js.map +1 -0
- package/icons/customIcons/icons/CriticalOps.d.ts +2 -0
- package/icons/customIcons/icons/CriticalOps.d.ts.map +1 -0
- package/icons/customIcons/icons/CriticalOps.js +2 -0
- package/icons/customIcons/icons/CriticalOps.js.map +1 -0
- package/icons/customIcons/icons/DataTypeOps.d.ts +2 -0
- package/icons/customIcons/icons/DataTypeOps.d.ts.map +1 -0
- package/icons/customIcons/icons/DataTypeOps.js +2 -0
- package/icons/customIcons/icons/DataTypeOps.js.map +1 -0
- package/icons/customIcons/icons/Drops.d.ts +2 -0
- package/icons/customIcons/icons/Drops.d.ts.map +1 -0
- package/icons/customIcons/icons/Drops.js +2 -0
- package/icons/customIcons/icons/Drops.js.map +1 -0
- package/icons/customIcons/icons/ErrorOps.d.ts +2 -0
- package/icons/customIcons/icons/ErrorOps.d.ts.map +1 -0
- package/icons/customIcons/icons/ErrorOps.js +2 -0
- package/icons/customIcons/icons/ErrorOps.js.map +1 -0
- package/icons/customIcons/icons/FalsePositiveOps.d.ts +2 -0
- package/icons/customIcons/icons/FalsePositiveOps.d.ts.map +1 -0
- package/icons/customIcons/icons/FalsePositiveOps.js +2 -0
- package/icons/customIcons/icons/FalsePositiveOps.js.map +1 -0
- package/icons/customIcons/icons/Feed.d.ts +2 -0
- package/icons/customIcons/icons/Feed.d.ts.map +1 -0
- package/icons/customIcons/icons/Feed.js +2 -0
- package/icons/customIcons/icons/Feed.js.map +1 -0
- package/icons/customIcons/icons/Key.d.ts +2 -0
- package/icons/customIcons/icons/Key.d.ts.map +1 -0
- package/icons/customIcons/icons/Key.js +2 -0
- package/icons/customIcons/icons/Key.js.map +1 -0
- package/icons/customIcons/icons/Mapping.d.ts +2 -0
- package/icons/customIcons/icons/Mapping.d.ts.map +1 -0
- package/icons/customIcons/icons/Mapping.js +2 -0
- package/icons/customIcons/icons/Mapping.js.map +1 -0
- package/icons/customIcons/icons/MappingManual.d.ts +2 -0
- package/icons/customIcons/icons/MappingManual.d.ts.map +1 -0
- package/icons/customIcons/icons/MappingManual.js +2 -0
- package/icons/customIcons/icons/MappingManual.js.map +1 -0
- package/icons/customIcons/icons/Metrics.d.ts +2 -0
- package/icons/customIcons/icons/Metrics.d.ts.map +1 -0
- package/icons/customIcons/icons/Metrics.js +2 -0
- package/icons/customIcons/icons/Metrics.js.map +1 -0
- package/icons/customIcons/icons/NPT.d.ts +2 -0
- package/icons/customIcons/icons/NPT.d.ts.map +1 -0
- package/icons/customIcons/icons/NPT.js +2 -0
- package/icons/customIcons/icons/NPT.js.map +1 -0
- package/icons/customIcons/icons/ParseBotFusion.d.ts +2 -0
- package/icons/customIcons/icons/ParseBotFusion.d.ts.map +1 -0
- package/icons/customIcons/icons/ParseBotFusion.js +2 -0
- package/icons/customIcons/icons/ParseBotFusion.js.map +1 -0
- package/icons/customIcons/icons/Prompt.d.ts +2 -0
- package/icons/customIcons/icons/Prompt.d.ts.map +1 -0
- package/icons/customIcons/icons/Prompt.js +2 -0
- package/icons/customIcons/icons/Prompt.js.map +1 -0
- package/icons/customIcons/icons/PuzzleOne.d.ts +2 -0
- package/icons/customIcons/icons/PuzzleOne.d.ts.map +1 -0
- package/icons/customIcons/icons/PuzzleOne.js +2 -0
- package/icons/customIcons/icons/PuzzleOne.js.map +1 -0
- package/icons/customIcons/icons/Template.d.ts +2 -0
- package/icons/customIcons/icons/Template.d.ts.map +1 -0
- package/icons/customIcons/icons/Template.js +2 -0
- package/icons/customIcons/icons/Template.js.map +1 -0
- package/icons/customIcons/icons/UnitConversion.d.ts +2 -0
- package/icons/customIcons/icons/UnitConversion.d.ts.map +1 -0
- package/icons/customIcons/icons/UnitConversion.js +2 -0
- package/icons/customIcons/icons/UnitConversion.js.map +1 -0
- package/icons/customIcons/icons/index.d.ts +26 -0
- package/icons/customIcons/icons/index.d.ts.map +1 -1
- package/icons/index.js +1 -1
- package/mcp-server/server.mjs +668 -3
- package/package.json +1 -1
- package/testing/AppTestWrapper/AppTestWrapper.js +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedComments.js","sources":["../../../../src/components/FeedItem/components/FeedComments.js"],"sourcesContent":["import { useState, useMemo, useEffect, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { noop, sortBy } from 'lodash';\nimport moment from 'moment';\nimport { Typography, makeStyles } from '@material-ui/core';\n\nimport Comment from '~/components/Comment';\nimport CommentLoader from '~/components/CommentLoader';\nimport CommentInput from '~/components/CommentInput';\nimport { postFeedItemComment } from '~/clients/jsonApi';\nimport { useIsInsideIsolatedDcApp } from '~/components/DevCenter/DevCenterAppContainer/components';\nimport { isNativeDetected } from '~utils/mobileDetect';\n\nconst PAGE_NAME = 'FeedComments';\n\nconst useStyles = makeStyles({\n showMore: {\n cursor: 'pointer',\n },\n feedCommentsContainer: { padding: '0 16px 0 24px' },\n feedCommentsList: { marginTop: 24 },\n feedCommentsListContent: {\n height: ({ commentsListHeight }) => commentsListHeight && commentsListHeight - 8,\n overflow: ({ commentsListHeight }) => commentsListHeight && 'scroll',\n },\n feedCommentsListContentWrapper: {\n position: 'relative',\n },\n gradient: {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%',\n height: 16,\n background: ({ isInsideDcApp }) =>\n `linear-gradient(180deg, rgba(61, 61, 61, 0) 0%, ${\n isInsideDcApp ? '#414141' : '3b3b3b'\n } 100%)`,\n },\n});\n\n// If there are more than 3 comments, we show only last 3, other comments are hidden.\n// To see all comments, user clicks ‘SEE ALL COMMENTS’.\n// To hide all comments back, user clicks ‘HIDE OLDER COMMENTS’\n// After clicking on a ‘SEE ALL COMMENTS’:\n// Height of the comments pop-over changes to show 5 comments instead of 3.\n// If all comments to initial comment can’t fit into comment pop-over, than User needs to scroll down to see them.\n// If there are more than 5 comments (so 6th+ comments in not seen at the moment, we cover bottom comment with gradient, to show that there is more to see.\n// The height of the Comments pop-over remains the same (to show first 5 comments), we don’t change it to show all possible 1000 comments. Only 5.\n\nconst INITIAL_VISIBLE_COMMENTS_COUNT = 3;\nconst COUNT_OF_COMMENTS_IN_SCROLLABLE_CONTAINER = 5;\nfunction FeedComments({ openCommentInput, openCommentList, feedItem, currentUser }) {\n const { comments } = feedItem;\n\n const commentsCount = comments.length;\n const moreCommentsExist = commentsCount > INITIAL_VISIBLE_COMMENTS_COUNT;\n\n const [isPosting, setIsPosting] = useState(false);\n const [isVisibleCommentsAppeared, setIsVisibleCommentsAppeared] = useState(false);\n const [isAllCommentsVisibleKeyPressed, setIsAllCommentsVisibleKeyPressed] = useState(false);\n const [commentsListHeight, setCommentsListHeight] = useState(null);\n\n const inputEl = useRef();\n const commentsListRef = useRef();\n\n const toggleShowAllComments = () => {\n setIsAllCommentsVisibleKeyPressed(!isAllCommentsVisibleKeyPressed);\n };\n\n const postComment = comment => {\n postFeedItemComment(feedItem.id, comment);\n };\n\n const visibleComments = useMemo(() => {\n const sortedComments = sortBy(feedItem.comments, item => -moment(item.created_at).unix());\n\n if (!isAllCommentsVisibleKeyPressed)\n return sortedComments.slice(0, INITIAL_VISIBLE_COMMENTS_COUNT);\n\n if (isAllCommentsVisibleKeyPressed && !isVisibleCommentsAppeared) {\n return sortedComments.slice(0, COUNT_OF_COMMENTS_IN_SCROLLABLE_CONTAINER);\n }\n\n if (isAllCommentsVisibleKeyPressed && isVisibleCommentsAppeared) return sortedComments;\n\n return [];\n }, [comments, isVisibleCommentsAppeared, isAllCommentsVisibleKeyPressed]);\n\n useEffect(() => {\n if (\n visibleComments.length === COUNT_OF_COMMENTS_IN_SCROLLABLE_CONTAINER &&\n !commentsListHeight\n ) {\n const divHeight = commentsListRef.current.clientHeight;\n setCommentsListHeight(divHeight);\n setIsVisibleCommentsAppeared(true);\n }\n\n if (commentsListHeight && !isAllCommentsVisibleKeyPressed) {\n setCommentsListHeight(null);\n setIsVisibleCommentsAppeared(false);\n }\n }, [visibleComments.length, commentsListHeight, isAllCommentsVisibleKeyPressed]);\n\n const isInsideDcApp = useIsInsideIsolatedDcApp();\n const classes = useStyles({ commentsListHeight, isAllCommentsVisibleKeyPressed, isInsideDcApp });\n\n return (\n <div className={(openCommentInput || !!commentsCount) && classes.feedCommentsContainer}>\n {openCommentInput && !isNativeDetected && (\n <CommentInput\n inputRef={inputEl}\n postComment={postComment}\n setIsPosting={setIsPosting}\n companyId={feedItem.company_id}\n autoFocus={false}\n currentUser={currentUser}\n parentId={`${feedItem.id}-${feedItem.comments?.size}`}\n />\n )}\n {openCommentList && (\n <div className={classes.feedCommentsList}>\n <div className={classes.feedCommentsListContentWrapper}>\n <div className={classes.feedCommentsListContent} ref={commentsListRef}>\n {visibleComments.map(comment => (\n <Comment\n key={comment.id}\n comment={comment}\n handleDeleteCallback={noop /* NOTE: Received through subscription */}\n patchCommentCallback={noop}\n companyId={feedItem.company_id}\n currentUser={currentUser}\n />\n ))}\n {commentsListHeight && <div className={classes.gradient} />}\n </div>\n </div>\n {moreCommentsExist && (\n <Typography\n variant=\"caption\"\n color=\"primary\"\n data-testid={`${PAGE_NAME}_viewMoreComments`}\n className={classes.showMore}\n onClick={toggleShowAllComments}\n >\n {isAllCommentsVisibleKeyPressed ? 'Hide older comments' : 'See all comments'}\n </Typography>\n )}\n </div>\n )}\n\n {isPosting && <CommentLoader />}\n </div>\n );\n}\n\nFeedComments.propTypes = {\n openCommentInput: PropTypes.bool.isRequired,\n feedItem: PropTypes.shape().isRequired,\n currentUser: PropTypes.shape().isRequired,\n};\n\nexport default FeedComments;\n"],"names":["useStyles","makeStyles","showMore","cursor","feedCommentsContainer","padding","feedCommentsList","marginTop","feedCommentsListContent","height","_ref","commentsListHeight","overflow","_ref2","feedCommentsListContentWrapper","position","gradient","bottom","left","width","background","_ref3","isInsideDcApp","concat","FeedComments","_ref4","_feedItem$comments","openCommentInput","openCommentList","feedItem","currentUser","comments","commentsCount","length","moreCommentsExist","useState","_useState2","_slicedToArray","_useState","isPosting","setIsPosting","_useState4","_useState3","isVisibleCommentsAppeared","setIsVisibleCommentsAppeared","_useState6","_useState5","isAllCommentsVisibleKeyPressed","setIsAllCommentsVisibleKeyPressed","_useState8","_useState7","setCommentsListHeight","inputEl","useRef","commentsListRef","visibleComments","useMemo","sortedComments","sortBy","item","moment","created_at","unix","slice","useEffect","divHeight","current","clientHeight","useIsInsideIsolatedDcApp","classes","_jsxs","className","children","isNativeDetected","_jsx","CommentInput","inputRef","postComment","comment","postFeedItemComment","id","companyId","company_id","autoFocus","parentId","size","ref","map","Comment","handleDeleteCallback","noop","patchCommentCallback","Typography","variant","color","onClick","CommentLoader","propTypes","PropTypes","bool","isRequired","shape"],"mappings":"0kaAaA,IAEMA,EAAYC,EAAW,CAC3BC,SAAU,CACRC,OAAQ,WAEVC,sBAAuB,CAAEC,QAAS,iBAClCC,iBAAkB,CAAEC,UAAW,IAC/BC,wBAAyB,CACvBC,OAAQ,SAAAC,GAAA,IAAGC,IAAAA,mBAAkB,OAAOA,GAAsBA,EAAqB,CAAC,EAChFC,SAAU,SAAAC,GAAqB,SAAlBF,oBAA+C,QAAQ,GAEtEG,+BAAgC,CAC9BC,SAAU,YAEZC,SAAU,CACRD,SAAU,WACVE,OAAQ,EACRC,KAAM,EACNC,MAAO,OACPV,OAAQ,GACRW,WAAY,SAAAC,GAAA,IAAGC,IAAAA,cAAa,MAAA,mDAAAC,OAExBD,EAAgB,UAAY,SAAQ,SAAA,KAgB5C,SAASE,EAA2EC,GAAA,IAAAC,EAA5DC,IAAAA,iBAAkBC,IAAAA,gBAAiBC,IAAAA,SAAUC,IAAAA,YAC3DC,EAAaF,EAAbE,SAEFC,EAAgBD,EAASE,OACzBC,EAAoBF,EANW,EAQHG,EAAAA,GAAS,GAAMC,EAAAC,EAAAC,EAAA,GAA1CC,EAASH,EAAA,GAAEI,EAAYJ,EAAA,GACoCD,EAAAA,GAAS,GAAMM,EAAAJ,EAAAK,EAAA,GAA1EC,EAAyBF,EAAA,GAAEG,EAA4BH,EAAA,GACcN,EAAAA,GAAS,GAAMU,EAAAR,EAAAS,EAAA,GAApFC,EAA8BF,EAAA,GAAEG,EAAiCH,EAAA,GACpBV,EAAAA,EAAS,MAAKc,EAAAZ,EAAAa,EAAA,GAA3DvC,EAAkBsC,EAAA,GAAEE,EAAqBF,EAAA,GAE1CG,EAAUC,IACVC,EAAkBD,IAUlBE,EAAkBC,GAAQ,WAC9B,IAAMC,EAAiBC,EAAO7B,EAASE,UAAU,SAAA4B,GAAI,OAAKC,EAAOD,EAAKE,YAAYC,UAElF,OAAKf,EAGDA,IAAmCJ,EAC9Bc,EAAeM,MAAM,EA9BgB,GAiC1ChB,GAAkCJ,EAAkCc,EAEjE,GAREA,EAAeM,MAAM,EA5BK,EAqCpC,GAAE,CAAChC,EAAUY,EAA2BI,IAEzCiB,GAAU,WACR,GAvC8C,IAwC5CT,EAAgBtB,SACftB,EACD,CACA,IAAMsD,EAAYX,EAAgBY,QAAQC,aAC1ChB,EAAsBc,GACtBrB,GAA6B,EAC/B,CAEIjC,IAAuBoC,IACzBI,EAAsB,MACtBP,GAA6B,GAEhC,GAAE,CAACW,EAAgBtB,OAAQtB,EAAoBoC,IAEhD,IAAMzB,EAAgB8C,IAChBC,EAAUrE,EAAU,CAAEW,mBAAAA,EAAoBoC,+BAAAA,EAAgCzB,cAAAA,IAEhF,OACEgD,EAAA,MAAA,CAAKC,WAAY5C,KAAsBK,IAAkBqC,EAAQjE,sBAAsBoE,SAAA,CACpF7C,IAAqB8C,GACpBC,EAACC,EAAY,CACXC,SAAUxB,EACVyB,YA3CY,SAAAC,GAClBC,EAAoBlD,EAASmD,GAAIF,IA2C3BtC,aAAcA,EACdyC,UAAWpD,EAASqD,WACpBC,WAAW,EACXrD,YAAaA,EACbsD,SAAQ,GAAA7D,OAAKM,EAASmD,GAAE,KAAAzD,OAAI,QAAJG,EAAIG,EAASE,gBAAT,IAAAL,OAAA,EAAAA,EAAmB2D,QAGlDzD,GACC0C,EAAA,MAAA,CAAKC,UAAWF,EAAQ/D,iBAAiBkE,SACvC,CAAAE,EAAA,MAAA,CAAKH,UAAWF,EAAQvD,+BAA+B0D,SACrDF,EAAA,MAAA,CAAKC,UAAWF,EAAQ7D,wBAAyB8E,IAAKhC,EAAgBkB,SAAA,CACnEjB,EAAgBgC,KAAI,SAAAT,GAAO,OAC1BJ,EAACc,EAAO,CAENV,QAASA,EACTW,qBAAsBC,EACtBC,qBAAsBD,EACtBT,UAAWpD,EAASqD,WACpBpD,YAAaA,GALRgD,EAAQE,OAQhBrE,GAAsB+D,EAAA,MAAA,CAAKH,UAAWF,EAAQrD,gBAGlDkB,GACCwC,EAACkB,EAAU,CACTC,QAAQ,UACRC,MAAM,UACN,cAAA,GAAAvE,OAjII,eAiIyC,qBAC7CgD,UAAWF,EAAQnE,SACnB6F,QA9EkB,WAC5B/C,GAAmCD,IA6EMyB,SAE9BzB,EAAiC,sBAAwB,wBAMjER,GAAamC,EAACsB,EAAgB,CAAA,KAGrC,CAEAxE,EAAayE,UAAY,CACvBtE,iBAAkBuE,EAAUC,KAAKC,WACjCvE,SAAUqE,EAAUG,QAAQD,WAC5BtE,YAAaoE,EAAUG,QAAQD"}
|
|
1
|
+
{"version":3,"file":"FeedComments.js","sources":["../../../../src/components/FeedItem/components/FeedComments.js"],"sourcesContent":["import { useState, useMemo, useEffect, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { noop, sortBy } from 'lodash';\nimport moment from 'moment';\nimport { Typography, makeStyles } from '@material-ui/core';\n\nimport Comment from '~/components/Comment';\nimport CommentLoader from '~/components/CommentLoader';\nimport CommentInput from '~/components/CommentInput';\nimport { postFeedItemComment } from '~/clients/jsonApi';\nimport { useIsInsideIsolatedDcApp } from '~/components/DevCenter/DevCenterAppContainer/components';\nimport { isNativeDetected } from '~utils/mobileDetect';\n\nconst PAGE_NAME = 'FeedComments';\n\nconst useStyles = makeStyles({\n showMore: {\n cursor: 'pointer',\n },\n feedCommentsContainer: { padding: '0 16px 0 24px' },\n feedCommentsList: { marginTop: 24 },\n feedCommentsListContent: {\n height: ({ commentsListHeight }) => commentsListHeight && commentsListHeight - 8,\n overflow: ({ commentsListHeight }) => commentsListHeight && 'scroll',\n },\n feedCommentsListContentWrapper: {\n position: 'relative',\n },\n gradient: {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%',\n height: 16,\n background: ({ isInsideDcApp }) =>\n `linear-gradient(180deg, rgba(61, 61, 61, 0) 0%, ${\n isInsideDcApp ? '#414141' : '3b3b3b'\n } 100%)`,\n },\n});\n\n// If there are more than 3 comments, we show only last 3, other comments are hidden.\n// To see all comments, user clicks ‘SEE ALL COMMENTS’.\n// To hide all comments back, user clicks ‘HIDE OLDER COMMENTS’\n// After clicking on a ‘SEE ALL COMMENTS’:\n// Height of the comments pop-over changes to show 5 comments instead of 3.\n// If all comments to initial comment can’t fit into comment pop-over, than User needs to scroll down to see them.\n// If there are more than 5 comments (so 6th+ comments in not seen at the moment, we cover bottom comment with gradient, to show that there is more to see.\n// The height of the Comments pop-over remains the same (to show first 5 comments), we don’t change it to show all possible 1000 comments. Only 5.\n\nconst INITIAL_VISIBLE_COMMENTS_COUNT = 3;\nconst COUNT_OF_COMMENTS_IN_SCROLLABLE_CONTAINER = 5;\nfunction FeedComments({ openCommentInput, openCommentList, feedItem, currentUser }) {\n const { comments } = feedItem;\n\n const commentsCount = comments.length;\n const moreCommentsExist = commentsCount > INITIAL_VISIBLE_COMMENTS_COUNT;\n\n const [isPosting, setIsPosting] = useState(false);\n const [isVisibleCommentsAppeared, setIsVisibleCommentsAppeared] = useState(false);\n const [isAllCommentsVisibleKeyPressed, setIsAllCommentsVisibleKeyPressed] = useState(false);\n const [commentsListHeight, setCommentsListHeight] = useState(null);\n\n const inputEl = useRef();\n const commentsListRef = useRef();\n\n const toggleShowAllComments = () => {\n setIsAllCommentsVisibleKeyPressed(!isAllCommentsVisibleKeyPressed);\n };\n\n const postComment = comment => {\n postFeedItemComment(feedItem.id, comment);\n };\n\n const visibleComments = useMemo(() => {\n const sortedComments = sortBy(feedItem.comments, item => -moment(item.created_at).unix());\n\n if (!isAllCommentsVisibleKeyPressed)\n return sortedComments.slice(0, INITIAL_VISIBLE_COMMENTS_COUNT);\n\n if (isAllCommentsVisibleKeyPressed && !isVisibleCommentsAppeared) {\n return sortedComments.slice(0, COUNT_OF_COMMENTS_IN_SCROLLABLE_CONTAINER);\n }\n\n if (isAllCommentsVisibleKeyPressed && isVisibleCommentsAppeared) return sortedComments;\n\n return [];\n }, [comments, isVisibleCommentsAppeared, isAllCommentsVisibleKeyPressed]);\n\n useEffect(() => {\n if (\n visibleComments.length === COUNT_OF_COMMENTS_IN_SCROLLABLE_CONTAINER &&\n !commentsListHeight\n ) {\n const divHeight = commentsListRef.current.clientHeight;\n setCommentsListHeight(divHeight);\n setIsVisibleCommentsAppeared(true);\n }\n\n if (commentsListHeight && !isAllCommentsVisibleKeyPressed) {\n setCommentsListHeight(null);\n setIsVisibleCommentsAppeared(false);\n }\n }, [visibleComments.length, commentsListHeight, isAllCommentsVisibleKeyPressed]);\n\n const isInsideDcApp = useIsInsideIsolatedDcApp();\n const classes = useStyles({ commentsListHeight, isAllCommentsVisibleKeyPressed, isInsideDcApp });\n\n return (\n <div className={(openCommentInput || !!commentsCount) && classes.feedCommentsContainer}>\n {openCommentInput && !isNativeDetected && (\n <CommentInput\n inputRef={inputEl}\n postComment={postComment}\n setIsPosting={setIsPosting}\n companyId={feedItem.company_id}\n autoFocus={false}\n currentUser={currentUser}\n parentId={`${feedItem.id}-${feedItem.comments?.size}`}\n />\n )}\n {openCommentList && (\n <div className={classes.feedCommentsList}>\n <div className={classes.feedCommentsListContentWrapper}>\n <div className={classes.feedCommentsListContent} ref={commentsListRef}>\n {visibleComments.map(comment => (\n <Comment\n key={comment.id}\n comment={comment}\n handleDeleteCallback={noop /* NOTE: Received through subscription */}\n patchCommentCallback={noop}\n companyId={feedItem.company_id}\n currentUser={currentUser}\n />\n ))}\n {commentsListHeight && <div className={classes.gradient} />}\n </div>\n </div>\n {moreCommentsExist && (\n <Typography\n variant=\"caption\"\n color=\"primary\"\n data-testid={`${PAGE_NAME}_viewMoreComments`}\n className={classes.showMore}\n onClick={toggleShowAllComments}\n >\n {isAllCommentsVisibleKeyPressed ? 'Hide older comments' : 'See all comments'}\n </Typography>\n )}\n </div>\n )}\n\n {isPosting && <CommentLoader />}\n </div>\n );\n}\n\nFeedComments.propTypes = {\n openCommentInput: PropTypes.bool.isRequired,\n feedItem: PropTypes.shape().isRequired,\n currentUser: PropTypes.shape().isRequired,\n};\n\nexport default FeedComments;\n"],"names":["useStyles","makeStyles","showMore","cursor","feedCommentsContainer","padding","feedCommentsList","marginTop","feedCommentsListContent","height","_ref","commentsListHeight","overflow","_ref2","feedCommentsListContentWrapper","position","gradient","bottom","left","width","background","_ref3","isInsideDcApp","concat","FeedComments","_ref4","_feedItem$comments","openCommentInput","openCommentList","feedItem","currentUser","comments","commentsCount","length","moreCommentsExist","useState","_useState2","_slicedToArray","_useState","isPosting","setIsPosting","_useState4","_useState3","isVisibleCommentsAppeared","setIsVisibleCommentsAppeared","_useState6","_useState5","isAllCommentsVisibleKeyPressed","setIsAllCommentsVisibleKeyPressed","_useState8","_useState7","setCommentsListHeight","inputEl","useRef","commentsListRef","visibleComments","useMemo","sortedComments","sortBy","item","moment","created_at","unix","slice","useEffect","divHeight","current","clientHeight","useIsInsideIsolatedDcApp","classes","_jsxs","className","children","isNativeDetected","_jsx","CommentInput","inputRef","postComment","comment","postFeedItemComment","id","companyId","company_id","autoFocus","parentId","size","ref","map","Comment","handleDeleteCallback","noop","patchCommentCallback","Typography","variant","color","onClick","CommentLoader","propTypes","PropTypes","bool","isRequired","shape"],"mappings":"69cAaA,IAEMA,EAAYC,EAAW,CAC3BC,SAAU,CACRC,OAAQ,WAEVC,sBAAuB,CAAEC,QAAS,iBAClCC,iBAAkB,CAAEC,UAAW,IAC/BC,wBAAyB,CACvBC,OAAQ,SAAAC,GAAA,IAAGC,IAAAA,mBAAkB,OAAOA,GAAsBA,EAAqB,CAAC,EAChFC,SAAU,SAAAC,GAAqB,SAAlBF,oBAA+C,QAAQ,GAEtEG,+BAAgC,CAC9BC,SAAU,YAEZC,SAAU,CACRD,SAAU,WACVE,OAAQ,EACRC,KAAM,EACNC,MAAO,OACPV,OAAQ,GACRW,WAAY,SAAAC,GAAA,IAAGC,IAAAA,cAAa,MAAA,mDAAAC,OAExBD,EAAgB,UAAY,SAAQ,SAAA,KAgB5C,SAASE,EAA2EC,GAAA,IAAAC,EAA5DC,IAAAA,iBAAkBC,IAAAA,gBAAiBC,IAAAA,SAAUC,IAAAA,YAC3DC,EAAaF,EAAbE,SAEFC,EAAgBD,EAASE,OACzBC,EAAoBF,EANW,EAQHG,EAAAA,GAAS,GAAMC,EAAAC,EAAAC,EAAA,GAA1CC,EAASH,EAAA,GAAEI,EAAYJ,EAAA,GACoCD,EAAAA,GAAS,GAAMM,EAAAJ,EAAAK,EAAA,GAA1EC,EAAyBF,EAAA,GAAEG,EAA4BH,EAAA,GACcN,EAAAA,GAAS,GAAMU,EAAAR,EAAAS,EAAA,GAApFC,EAA8BF,EAAA,GAAEG,EAAiCH,EAAA,GACpBV,EAAAA,EAAS,MAAKc,EAAAZ,EAAAa,EAAA,GAA3DvC,EAAkBsC,EAAA,GAAEE,EAAqBF,EAAA,GAE1CG,EAAUC,IACVC,EAAkBD,IAUlBE,EAAkBC,GAAQ,WAC9B,IAAMC,EAAiBC,EAAO7B,EAASE,UAAU,SAAA4B,GAAI,OAAKC,EAAOD,EAAKE,YAAYC,UAElF,OAAKf,EAGDA,IAAmCJ,EAC9Bc,EAAeM,MAAM,EA9BgB,GAiC1ChB,GAAkCJ,EAAkCc,EAEjE,GAREA,EAAeM,MAAM,EA5BK,EAqCpC,GAAE,CAAChC,EAAUY,EAA2BI,IAEzCiB,GAAU,WACR,GAvC8C,IAwC5CT,EAAgBtB,SACftB,EACD,CACA,IAAMsD,EAAYX,EAAgBY,QAAQC,aAC1ChB,EAAsBc,GACtBrB,GAA6B,EAC/B,CAEIjC,IAAuBoC,IACzBI,EAAsB,MACtBP,GAA6B,GAEhC,GAAE,CAACW,EAAgBtB,OAAQtB,EAAoBoC,IAEhD,IAAMzB,EAAgB8C,IAChBC,EAAUrE,EAAU,CAAEW,mBAAAA,EAAoBoC,+BAAAA,EAAgCzB,cAAAA,IAEhF,OACEgD,EAAA,MAAA,CAAKC,WAAY5C,KAAsBK,IAAkBqC,EAAQjE,sBAAsBoE,SAAA,CACpF7C,IAAqB8C,GACpBC,EAACC,EAAY,CACXC,SAAUxB,EACVyB,YA3CY,SAAAC,GAClBC,EAAoBlD,EAASmD,GAAIF,IA2C3BtC,aAAcA,EACdyC,UAAWpD,EAASqD,WACpBC,WAAW,EACXrD,YAAaA,EACbsD,SAAQ,GAAA7D,OAAKM,EAASmD,GAAE,KAAAzD,OAAI,QAAJG,EAAIG,EAASE,gBAAT,IAAAL,OAAA,EAAAA,EAAmB2D,QAGlDzD,GACC0C,EAAA,MAAA,CAAKC,UAAWF,EAAQ/D,iBAAiBkE,SACvC,CAAAE,EAAA,MAAA,CAAKH,UAAWF,EAAQvD,+BAA+B0D,SACrDF,EAAA,MAAA,CAAKC,UAAWF,EAAQ7D,wBAAyB8E,IAAKhC,EAAgBkB,SAAA,CACnEjB,EAAgBgC,KAAI,SAAAT,GAAO,OAC1BJ,EAACc,EAAO,CAENV,QAASA,EACTW,qBAAsBC,EACtBC,qBAAsBD,EACtBT,UAAWpD,EAASqD,WACpBpD,YAAaA,GALRgD,EAAQE,OAQhBrE,GAAsB+D,EAAA,MAAA,CAAKH,UAAWF,EAAQrD,gBAGlDkB,GACCwC,EAACkB,EAAU,CACTC,QAAQ,UACRC,MAAM,UACN,cAAA,GAAAvE,OAjII,eAiIyC,qBAC7CgD,UAAWF,EAAQnE,SACnB6F,QA9EkB,WAC5B/C,GAAmCD,IA6EMyB,SAE9BzB,EAAiC,sBAAwB,wBAMjER,GAAamC,EAACsB,EAAgB,CAAA,KAGrC,CAEAxE,EAAayE,UAAY,CACvBtE,iBAAkBuE,EAAUC,KAAKC,WACjCvE,SAAUqE,EAAUG,QAAQD,WAC5BtE,YAAaoE,EAAUG,QAAQD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default Reactions;
|
|
2
|
-
declare function Reactions({ feedItem, currentUser, setOpenCommentInput, setOpenCommentList, openCommentInput, openCommentList, handleToggleLike, }: {
|
|
2
|
+
declare function Reactions({ feedItem, currentUser, setOpenCommentInput, setOpenCommentList, openCommentInput, openCommentList, handleToggleLike, extraActions, }: {
|
|
3
3
|
feedItem: any;
|
|
4
4
|
currentUser: any;
|
|
5
5
|
setOpenCommentInput: any;
|
|
@@ -7,5 +7,6 @@ declare function Reactions({ feedItem, currentUser, setOpenCommentInput, setOpen
|
|
|
7
7
|
openCommentInput: any;
|
|
8
8
|
openCommentList: any;
|
|
9
9
|
handleToggleLike: any;
|
|
10
|
+
extraActions: any;
|
|
10
11
|
}): JSX.Element;
|
|
11
12
|
//# sourceMappingURL=Reactions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reactions.d.ts","sourceRoot":"","sources":["../../../../src/components/FeedItem/components/Reactions.js"],"names":[],"mappings":";AAsCA
|
|
1
|
+
{"version":3,"file":"Reactions.d.ts","sourceRoot":"","sources":["../../../../src/components/FeedItem/components/Reactions.js"],"names":[],"mappings":";AAsCA;;;;;;;;;gBAqFC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"classnames";import i from"moment";import{uniq as n,uniqBy as o}from"lodash";import{makeStyles as r,useTheme as m,IconButton as a}from"@material-ui/core";import s from"@material-ui/icons/ThumbUp";import l from"@material-ui/icons/Comment";import{notifyOpenFeedCommentInput as c}from"../../../utils/nativeMessages.js";import{isNativeDetected as u}from"../../../utils/mobileDetect.js";import p from"../../CommentsInfo/index.js";import d from"../../../utils/main.js";import{jsx as f,jsxs as g}from"react/jsx-runtime";var C=r({reactionButton:{padding:8},reactions:{minHeight:48,marginTop:5,display:"flex",alignItems:"center",padding:"8px 16px 8px 24px",flexWrap:"wrap"},reactionsNative:{padding:"0 16px"},actions:{display:"flex",marginRight:30,alignItems:"center"}}),h=u?2:3,
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"classnames";import i from"moment";import{uniq as n,uniqBy as o}from"lodash";import{makeStyles as r,useTheme as m,IconButton as a}from"@material-ui/core";import s from"@material-ui/icons/ThumbUp";import l from"@material-ui/icons/Comment";import{notifyOpenFeedCommentInput as c}from"../../../utils/nativeMessages.js";import{isNativeDetected as u}from"../../../utils/mobileDetect.js";import p from"../../CommentsInfo/index.js";import d from"../../../utils/main.js";import{jsx as f,jsxs as g}from"react/jsx-runtime";var C=r({reactionButton:{padding:8},reactions:{minHeight:48,marginTop:5,display:"flex",alignItems:"center",padding:"8px 16px 8px 24px",flexWrap:"wrap"},reactionsNative:{padding:"0 16px"},actions:{display:"flex",marginRight:30,alignItems:"center"}}),h=u?2:3,x=function(r){var x=r.feedItem,k=r.currentUser,v=r.setOpenCommentInput,N=r.setOpenCommentList,b=r.openCommentInput,y=r.openCommentList,I=r.handleToggleLike,L=r.extraActions,j=m(),B=C(),U=x.likes_count,F=x.comments.length,_=(x.likes||[]).find((function(e){var t;return(null===(t=e.user)||void 0===t?void 0:t.id)===k.id})),P=(x.likes||[]).map((function(e){return d.getUserFullName(e.user)})),T=n((x.comments||[]).map((function(e){return d.getUserFullName(e.user)}))),W=o((x.comments||[]).concat(x.likes||[]).map((function(e){return e.user})).sort((function(e){return i(e.created_at).unix()})),"id").slice(0,h),O=!b||!y;return f("div",{className:t(B.reactions,e({},B.reactionsNative,u)),children:g("div",{className:B.actions,children:[f(a,{"data-testid":"".concat("FeedPo","_likeButton"),"aria-label":"Like",onClick:I,className:B.reactionButton,children:f(s,{htmlColor:_?j.palette.primary.main:j.palette.grey[400]})}),f(a,{"data-testid":"".concat("FeedPo","_commentButton"),"aria-label":"Comment",onClick:function(){u?c(x.id):(v(O),N(O))},className:B.reactionButton,children:f(l,{htmlColor:j.palette.grey[400]})}),L,f(p,{likesCount:U,usersWhoLike:P,commentsCount:F,usersWhoCommented:T,activeUsersList:W,onCommentsClick:function(){return N(!y)},small:!0})]})})};export{x as default};
|
|
2
2
|
//# sourceMappingURL=Reactions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reactions.js","sources":["../../../../src/components/FeedItem/components/Reactions.js"],"sourcesContent":["/* eslint-disable react/prop-types */\n// NOTE: CHECK utils\nimport classNames from 'classnames';\nimport moment from 'moment';\nimport { uniq, uniqBy } from 'lodash';\nimport { makeStyles, useTheme, IconButton } from '@material-ui/core';\nimport ThumbUpIcon from '@material-ui/icons/ThumbUp';\nimport CommentIcon from '@material-ui/icons/Comment';\n\nimport { notifyOpenFeedCommentInput } from '~/utils/nativeMessages';\nimport { isNativeDetected } from '~utils/mobileDetect';\nimport CommentsInfo from '~/components/CommentsInfo';\nimport utils from '~/utils/main';\n\nconst PAGE_NAME = 'FeedPo';\n\nconst useStyles = makeStyles({\n reactionButton: { padding: 8 },\n reactions: {\n minHeight: 48,\n marginTop: 5,\n display: 'flex',\n alignItems: 'center',\n padding: '8px 16px 8px 24px',\n flexWrap: 'wrap',\n },\n reactionsNative: {\n padding: '0 16px',\n },\n actions: {\n display: 'flex',\n marginRight: 30,\n alignItems: 'center',\n },\n});\n\nconst AVATARS_VISIBLE_AMOUNT = isNativeDetected ? 2 : 3;\n\nconst Reactions = ({\n feedItem,\n currentUser,\n setOpenCommentInput,\n setOpenCommentList,\n openCommentInput,\n openCommentList,\n handleToggleLike,\n}) => {\n const theme = useTheme();\n const classes = useStyles();\n const likesCount = feedItem.likes_count;\n const commentsCount = feedItem.comments.length;\n\n const isLikedByCurrentUser = (feedItem.likes || []).find(\n like => like.user?.id === currentUser.id\n );\n\n const usersWhoLike = (feedItem.likes || []).map(like => utils.getUserFullName(like.user));\n\n const usersWhoCommented = uniq(\n (feedItem.comments || []).map(comment => utils.getUserFullName(comment.user))\n );\n\n const activeUsersList = uniqBy(\n (feedItem.comments || [])\n .concat(feedItem.likes || [])\n .map(item => item.user)\n .sort(item => moment(item.created_at).unix()),\n 'id'\n ).slice(0, AVATARS_VISIBLE_AMOUNT);\n\n const isListOrInputClosed = !openCommentInput || !openCommentList;\n\n const handleCommentIconClick = () => {\n if (isNativeDetected) {\n notifyOpenFeedCommentInput(feedItem.id);\n } else {\n setOpenCommentInput(isListOrInputClosed);\n setOpenCommentList(isListOrInputClosed);\n }\n };\n\n return (\n <div\n className={classNames(classes.reactions, {\n [classes.reactionsNative]: isNativeDetected,\n })}\n >\n <div className={classes.actions}>\n <IconButton\n data-testid={`${PAGE_NAME}_likeButton`}\n aria-label=\"Like\"\n onClick={handleToggleLike}\n className={classes.reactionButton}\n >\n <ThumbUpIcon\n htmlColor={isLikedByCurrentUser ? theme.palette.primary.main : theme.palette.grey[400]}\n />\n </IconButton>\n\n <IconButton\n data-testid={`${PAGE_NAME}_commentButton`}\n aria-label=\"Comment\"\n onClick={handleCommentIconClick}\n className={classes.reactionButton}\n >\n <CommentIcon htmlColor={theme.palette.grey[400]} />\n </IconButton>\n\n <CommentsInfo\n likesCount={likesCount}\n usersWhoLike={usersWhoLike}\n commentsCount={commentsCount}\n usersWhoCommented={usersWhoCommented}\n activeUsersList={activeUsersList}\n onCommentsClick={() => setOpenCommentList(!openCommentList)}\n small\n />\n </div>\n </div>\n );\n};\n\nexport default Reactions;\n"],"names":["useStyles","makeStyles","reactionButton","padding","reactions","minHeight","marginTop","display","alignItems","flexWrap","reactionsNative","actions","marginRight","AVATARS_VISIBLE_AMOUNT","isNativeDetected","Reactions","_ref","feedItem","currentUser","setOpenCommentInput","setOpenCommentList","openCommentInput","openCommentList","handleToggleLike","theme","useTheme","classes","likesCount","likes_count","commentsCount","comments","length","isLikedByCurrentUser","likes","find","like","_like$user","user","id","usersWhoLike","map","utils","getUserFullName","usersWhoCommented","uniq","comment","activeUsersList","uniqBy","concat","item","sort","moment","created_at","unix","slice","isListOrInputClosed","_jsx","className","classNames","children","_jsxs","IconButton","onClick","ThumbUpIcon","htmlColor","palette","primary","main","grey","notifyOpenFeedCommentInput","CommentIcon","CommentsInfo","onCommentsClick","small"],"mappings":"mkBAcA,IAEMA,EAAYC,EAAW,CAC3BC,eAAgB,CAAEC,QAAS,GAC3BC,UAAW,CACTC,UAAW,GACXC,UAAW,EACXC,QAAS,OACTC,WAAY,SACZL,QAAS,oBACTM,SAAU,QAEZC,gBAAiB,CACfP,QAAS,UAEXQ,QAAS,CACPJ,QAAS,OACTK,YAAa,GACbJ,WAAY,YAIVK,EAAyBC,EAAmB,EAAI,EAEhDC,EAAY,
|
|
1
|
+
{"version":3,"file":"Reactions.js","sources":["../../../../src/components/FeedItem/components/Reactions.js"],"sourcesContent":["/* eslint-disable react/prop-types */\n// NOTE: CHECK utils\nimport classNames from 'classnames';\nimport moment from 'moment';\nimport { uniq, uniqBy } from 'lodash';\nimport { makeStyles, useTheme, IconButton } from '@material-ui/core';\nimport ThumbUpIcon from '@material-ui/icons/ThumbUp';\nimport CommentIcon from '@material-ui/icons/Comment';\n\nimport { notifyOpenFeedCommentInput } from '~/utils/nativeMessages';\nimport { isNativeDetected } from '~utils/mobileDetect';\nimport CommentsInfo from '~/components/CommentsInfo';\nimport utils from '~/utils/main';\n\nconst PAGE_NAME = 'FeedPo';\n\nconst useStyles = makeStyles({\n reactionButton: { padding: 8 },\n reactions: {\n minHeight: 48,\n marginTop: 5,\n display: 'flex',\n alignItems: 'center',\n padding: '8px 16px 8px 24px',\n flexWrap: 'wrap',\n },\n reactionsNative: {\n padding: '0 16px',\n },\n actions: {\n display: 'flex',\n marginRight: 30,\n alignItems: 'center',\n },\n});\n\nconst AVATARS_VISIBLE_AMOUNT = isNativeDetected ? 2 : 3;\n\nconst Reactions = ({\n feedItem,\n currentUser,\n setOpenCommentInput,\n setOpenCommentList,\n openCommentInput,\n openCommentList,\n handleToggleLike,\n extraActions,\n}) => {\n const theme = useTheme();\n const classes = useStyles();\n const likesCount = feedItem.likes_count;\n const commentsCount = feedItem.comments.length;\n\n const isLikedByCurrentUser = (feedItem.likes || []).find(\n like => like.user?.id === currentUser.id\n );\n\n const usersWhoLike = (feedItem.likes || []).map(like => utils.getUserFullName(like.user));\n\n const usersWhoCommented = uniq(\n (feedItem.comments || []).map(comment => utils.getUserFullName(comment.user))\n );\n\n const activeUsersList = uniqBy(\n (feedItem.comments || [])\n .concat(feedItem.likes || [])\n .map(item => item.user)\n .sort(item => moment(item.created_at).unix()),\n 'id'\n ).slice(0, AVATARS_VISIBLE_AMOUNT);\n\n const isListOrInputClosed = !openCommentInput || !openCommentList;\n\n const handleCommentIconClick = () => {\n if (isNativeDetected) {\n notifyOpenFeedCommentInput(feedItem.id);\n } else {\n setOpenCommentInput(isListOrInputClosed);\n setOpenCommentList(isListOrInputClosed);\n }\n };\n\n return (\n <div\n className={classNames(classes.reactions, {\n [classes.reactionsNative]: isNativeDetected,\n })}\n >\n <div className={classes.actions}>\n <IconButton\n data-testid={`${PAGE_NAME}_likeButton`}\n aria-label=\"Like\"\n onClick={handleToggleLike}\n className={classes.reactionButton}\n >\n <ThumbUpIcon\n htmlColor={isLikedByCurrentUser ? theme.palette.primary.main : theme.palette.grey[400]}\n />\n </IconButton>\n\n <IconButton\n data-testid={`${PAGE_NAME}_commentButton`}\n aria-label=\"Comment\"\n onClick={handleCommentIconClick}\n className={classes.reactionButton}\n >\n <CommentIcon htmlColor={theme.palette.grey[400]} />\n </IconButton>\n\n {extraActions}\n\n <CommentsInfo\n likesCount={likesCount}\n usersWhoLike={usersWhoLike}\n commentsCount={commentsCount}\n usersWhoCommented={usersWhoCommented}\n activeUsersList={activeUsersList}\n onCommentsClick={() => setOpenCommentList(!openCommentList)}\n small\n />\n </div>\n </div>\n );\n};\n\nexport default Reactions;\n"],"names":["useStyles","makeStyles","reactionButton","padding","reactions","minHeight","marginTop","display","alignItems","flexWrap","reactionsNative","actions","marginRight","AVATARS_VISIBLE_AMOUNT","isNativeDetected","Reactions","_ref","feedItem","currentUser","setOpenCommentInput","setOpenCommentList","openCommentInput","openCommentList","handleToggleLike","extraActions","theme","useTheme","classes","likesCount","likes_count","commentsCount","comments","length","isLikedByCurrentUser","likes","find","like","_like$user","user","id","usersWhoLike","map","utils","getUserFullName","usersWhoCommented","uniq","comment","activeUsersList","uniqBy","concat","item","sort","moment","created_at","unix","slice","isListOrInputClosed","_jsx","className","classNames","children","_jsxs","IconButton","onClick","ThumbUpIcon","htmlColor","palette","primary","main","grey","notifyOpenFeedCommentInput","CommentIcon","CommentsInfo","onCommentsClick","small"],"mappings":"mkBAcA,IAEMA,EAAYC,EAAW,CAC3BC,eAAgB,CAAEC,QAAS,GAC3BC,UAAW,CACTC,UAAW,GACXC,UAAW,EACXC,QAAS,OACTC,WAAY,SACZL,QAAS,oBACTM,SAAU,QAEZC,gBAAiB,CACfP,QAAS,UAEXQ,QAAS,CACPJ,QAAS,OACTK,YAAa,GACbJ,WAAY,YAIVK,EAAyBC,EAAmB,EAAI,EAEhDC,EAAY,SASZC,GAAA,IARJC,IAAAA,SACAC,IAAAA,YACAC,IAAAA,oBACAC,IAAAA,mBACAC,IAAAA,iBACAC,IAAAA,gBACAC,IAAAA,iBACAC,IAAAA,aAEMC,EAAQC,IACRC,EAAU3B,IACV4B,EAAaX,EAASY,YACtBC,EAAgBb,EAASc,SAASC,OAElCC,GAAwBhB,EAASiB,OAAS,IAAIC,MAClD,SAAAC,GAAI,IAAAC,EAAA,OAAa,QAATA,EAAAD,EAAKE,YAAI,IAAAD,OAAA,EAATA,EAAWE,MAAOrB,EAAYqB,MAGlCC,GAAgBvB,EAASiB,OAAS,IAAIO,KAAI,SAAAL,GAAI,OAAIM,EAAMC,gBAAgBP,EAAKE,SAE7EM,EAAoBC,GACvB5B,EAASc,UAAY,IAAIU,KAAI,SAAAK,GAAO,OAAIJ,EAAMC,gBAAgBG,EAAQR,KAAK,KAGxES,EAAkBC,GACrB/B,EAASc,UAAY,IACnBkB,OAAOhC,EAASiB,OAAS,IACzBO,KAAI,SAAAS,GAAI,OAAIA,EAAKZ,IAAI,IACrBa,MAAK,SAAAD,GAAI,OAAIE,EAAOF,EAAKG,YAAYC,MAAO,IAC/C,MACAC,MAAM,EAAG1C,GAEL2C,GAAuBnC,IAAqBC,EAWlD,OACEmC,EAAA,MAAA,CACEC,UAAWC,EAAWhC,EAAQvB,UAC3BuB,EAAAA,CAAAA,EAAAA,EAAQjB,gBAAkBI,IAC1B8C,SAEHC,EAAA,MAAA,CAAKH,UAAW/B,EAAQhB,QAAQiD,SAAA,CAC9BH,EAACK,EAAU,CACT,cAAA,GAAAb,OA5EQ,SA4E+B,eACvC,aAAW,OACXc,QAASxC,EACTmC,UAAW/B,EAAQzB,eAAe0D,SAElCH,EAACO,EAAW,CACVC,UAAWhC,EAAuBR,EAAMyC,QAAQC,QAAQC,KAAO3C,EAAMyC,QAAQG,KAAK,SAItFZ,EAACK,EAAU,CACT,cAAA,GAAAb,OAvFQ,SAuFkC,kBAC1C,aAAW,UACXc,QA9BuB,WACzBjD,EACFwD,EAA2BrD,EAASsB,KAEpCpB,EAAoBqC,GACpBpC,EAAmBoC,KA0BfE,UAAW/B,EAAQzB,eAAe0D,SAElCH,EAACc,EAAW,CAACN,UAAWxC,EAAMyC,QAAQG,KAAK,SAG5C7C,EAEDiC,EAACe,EAAY,CACX5C,WAAYA,EACZY,aAAcA,EACdV,cAAeA,EACfc,kBAAmBA,EACnBG,gBAAiBA,EACjB0B,gBAAiB,WAAA,OAAMrD,GAAoBE,EAAiB,EAC5DoD,OAAK,QAKf"}
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
export default AlertFeedItem;
|
|
2
|
-
declare function AlertFeedItem({ feedItem
|
|
3
|
-
feedItem:
|
|
4
|
-
context: {
|
|
5
|
-
alert: {
|
|
6
|
-
id: any;
|
|
7
|
-
name: any;
|
|
8
|
-
description: any;
|
|
9
|
-
decision_path: any;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
2
|
+
declare function AlertFeedItem({ feedItem, isCorvaV3FeaturesEnabled, onFeedItemClick }: {
|
|
3
|
+
feedItem: any;
|
|
13
4
|
isCorvaV3FeaturesEnabled: any;
|
|
5
|
+
onFeedItemClick: any;
|
|
14
6
|
}): JSX.Element;
|
|
15
7
|
declare namespace AlertFeedItem {
|
|
16
8
|
namespace propTypes {
|
|
@@ -25,6 +17,14 @@ declare namespace AlertFeedItem {
|
|
|
25
17
|
}>>>;
|
|
26
18
|
}>>>;
|
|
27
19
|
}>>>;
|
|
20
|
+
let isCorvaV3FeaturesEnabled: PropTypes.Requireable<boolean>;
|
|
21
|
+
let onFeedItemClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
|
+
}
|
|
23
|
+
namespace defaultProps {
|
|
24
|
+
let isCorvaV3FeaturesEnabled_1: boolean;
|
|
25
|
+
export { isCorvaV3FeaturesEnabled_1 as isCorvaV3FeaturesEnabled };
|
|
26
|
+
let onFeedItemClick_1: undefined;
|
|
27
|
+
export { onFeedItemClick_1 as onFeedItemClick };
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
import PropTypes from 'prop-types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertFeedItem.d.ts","sourceRoot":"","sources":["../../../../src/components/FeedItem/feedItemTypes/AlertFeedItem.js"],"names":[],"mappings":";AA2BA
|
|
1
|
+
{"version":3,"file":"AlertFeedItem.d.ts","sourceRoot":"","sources":["../../../../src/components/FeedItem/feedItemTypes/AlertFeedItem.js"],"names":[],"mappings":";AA2BA;;;;gBA0CC;;;;;;;;;;;;;;;;;;;;;;;;sBArEqB,YAAY"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"prop-types";import{makeStyles as i,Typography as t}from"@material-ui/core";import{Link as r}from"react-router-dom";import o from"@material-ui/icons/Timeline";import{OPEN_ALERT_DETAILS_ID_STORAGE_KEY as n}from"../../../constants/alerts.js";import{jsx as a,jsxs as l}from"react/jsx-runtime";var s=i((function(e){return{alertContanier:{display:"inline-block",width:"calc(100% - 35px)"},timlineIconRoot:{verticalAlign:"bottom",marginRight:15},timelineText:{color:e.palette.grey[400]},item:{color:"#fff","&:hover":{textDecoration:"underline"}}}})),c=function(e){var i=e.feedItem
|
|
1
|
+
import e from"prop-types";import{makeStyles as i,Typography as t}from"@material-ui/core";import{Link as r}from"react-router-dom";import o from"@material-ui/icons/Timeline";import{OPEN_ALERT_DETAILS_ID_STORAGE_KEY as n}from"../../../constants/alerts.js";import{jsx as a,jsxs as l}from"react/jsx-runtime";var s=i((function(e){return{alertContanier:{display:"inline-block",width:"calc(100% - 35px)"},timlineIconRoot:{verticalAlign:"bottom",marginRight:15},timelineText:{color:e.palette.grey[400]},item:{color:"#fff","&:hover":{textDecoration:"underline"}}}})),c=function(e){var i=e.feedItem,c=e.isCorvaV3FeaturesEnabled,d=e.onFeedItemClick,m=s(),u=i.context.alert,p=u.id,f=u.name,v=u.description,h=u.decision_path;return a("div",{children:l("div",{className:m.alertContanier,children:[a(t,{variant:"body1",children:a(r,{className:m.item,to:"/alerts/".concat(p,"/"),onClick:function(e){if(d)return e.preventDefault(),e.stopPropagation(),void d(i);c&&(e.preventDefault(),localStorage.setItem(n,p))},children:f})}),a(t,{variant:"body1",gutterBottom:!0,children:v}),l(t,{variant:"body1",className:m.timelineText,children:[a(o,{className:m.timlineIconRoot,color:"action"}),h]})]})})};c.propTypes={feedItem:e.shape({context:e.shape({alert:e.shape({id:e.number.isRequired,name:e.string.isRequired,description:e.string.isRequired,decision_path:e.string.isRequired,level:e.string.isRequired}).isRequired}).isRequired}).isRequired,isCorvaV3FeaturesEnabled:e.bool,onFeedItemClick:e.func},c.defaultProps={isCorvaV3FeaturesEnabled:!1,onFeedItemClick:void 0};export{c as default};
|
|
2
2
|
//# sourceMappingURL=AlertFeedItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertFeedItem.js","sources":["../../../../src/components/FeedItem/feedItemTypes/AlertFeedItem.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { Typography, makeStyles } from '@material-ui/core';\nimport { Link } from 'react-router-dom';\nimport TimelineIcon from '@material-ui/icons/Timeline';\n\nimport { OPEN_ALERT_DETAILS_ID_STORAGE_KEY } from '~/constants/alerts';\n\nconst useStyles = makeStyles(theme => ({\n alertContanier: {\n display: 'inline-block',\n width: 'calc(100% - 35px)',\n },\n timlineIconRoot: {\n verticalAlign: 'bottom',\n marginRight: 15,\n },\n timelineText: {\n color: theme.palette.grey[400],\n },\n item: {\n color: '#fff',\n '&:hover': {\n textDecoration: 'underline',\n },\n },\n}));\n\nconst AlertFeedItem = ({\n
|
|
1
|
+
{"version":3,"file":"AlertFeedItem.js","sources":["../../../../src/components/FeedItem/feedItemTypes/AlertFeedItem.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { Typography, makeStyles } from '@material-ui/core';\nimport { Link } from 'react-router-dom';\nimport TimelineIcon from '@material-ui/icons/Timeline';\n\nimport { OPEN_ALERT_DETAILS_ID_STORAGE_KEY } from '~/constants/alerts';\n\nconst useStyles = makeStyles(theme => ({\n alertContanier: {\n display: 'inline-block',\n width: 'calc(100% - 35px)',\n },\n timlineIconRoot: {\n verticalAlign: 'bottom',\n marginRight: 15,\n },\n timelineText: {\n color: theme.palette.grey[400],\n },\n item: {\n color: '#fff',\n '&:hover': {\n textDecoration: 'underline',\n },\n },\n}));\n\nconst AlertFeedItem = ({ feedItem, isCorvaV3FeaturesEnabled, onFeedItemClick }) => {\n const classes = useStyles();\n const {\n context: {\n alert: { id, name, description, decision_path: decisionPath },\n },\n } = feedItem;\n\n const handleAlertClick = e => {\n if (onFeedItemClick) {\n e.preventDefault();\n e.stopPropagation();\n onFeedItemClick(feedItem);\n return;\n }\n\n if (isCorvaV3FeaturesEnabled) {\n e.preventDefault();\n localStorage.setItem(OPEN_ALERT_DETAILS_ID_STORAGE_KEY, id);\n }\n };\n\n return (\n <div>\n <div className={classes.alertContanier}>\n <Typography variant=\"body1\">\n <Link className={classes.item} to={`/alerts/${id}/`} onClick={handleAlertClick}>\n {name}\n </Link>\n </Typography>\n\n <Typography variant=\"body1\" gutterBottom>\n {description}\n </Typography>\n\n <Typography variant=\"body1\" className={classes.timelineText}>\n <TimelineIcon className={classes.timlineIconRoot} color=\"action\" />\n {decisionPath}\n </Typography>\n </div>\n </div>\n );\n};\n\nAlertFeedItem.propTypes = {\n feedItem: PropTypes.shape({\n context: PropTypes.shape({\n alert: PropTypes.shape({\n id: PropTypes.number.isRequired,\n name: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired,\n decision_path: PropTypes.string.isRequired,\n level: PropTypes.string.isRequired,\n }).isRequired,\n }).isRequired,\n }).isRequired,\n isCorvaV3FeaturesEnabled: PropTypes.bool,\n onFeedItemClick: PropTypes.func,\n};\n\nAlertFeedItem.defaultProps = {\n isCorvaV3FeaturesEnabled: false,\n onFeedItemClick: undefined,\n};\n\nexport default AlertFeedItem;\n"],"names":["useStyles","makeStyles","theme","alertContanier","display","width","timlineIconRoot","verticalAlign","marginRight","timelineText","color","palette","grey","item","textDecoration","AlertFeedItem","_ref","feedItem","isCorvaV3FeaturesEnabled","onFeedItemClick","classes","_feedItem$context$ale","context","alert","id","name","description","decisionPath","decision_path","_jsx","children","_jsxs","className","Typography","variant","Link","to","concat","onClick","e","preventDefault","stopPropagation","localStorage","setItem","OPEN_ALERT_DETAILS_ID_STORAGE_KEY","gutterBottom","TimelineIcon","propTypes","PropTypes","shape","number","isRequired","string","level","bool","func","defaultProps","undefined"],"mappings":"+SAOA,IAAMA,EAAYC,GAAW,SAAAC,GAAK,MAAK,CACrCC,eAAgB,CACdC,QAAS,eACTC,MAAO,qBAETC,gBAAiB,CACfC,cAAe,SACfC,YAAa,IAEfC,aAAc,CACZC,MAAOR,EAAMS,QAAQC,KAAK,MAE5BC,KAAM,CACJH,MAAO,OACP,UAAW,CACTI,eAAgB,cAGrB,IAEKC,EAAgB,SAA6DC,GAAA,IAA1DC,IAAAA,SAAUC,IAAAA,yBAA0BC,IAAAA,gBACrDC,EAAUpB,IAChBqB,EAIIJ,EAHFK,QACEC,MAASC,IAAAA,GAAIC,IAAAA,KAAMC,IAAAA,YAA4BC,IAAfC,cAkBpC,OACEC,EAAA,MAAA,CAAAC,SACEC,EAAA,MAAA,CAAKC,UAAWZ,EAAQjB,eAAe2B,SAAA,CACrCD,EAACI,EAAU,CAACC,QAAQ,QAAOJ,SACzBD,EAACM,EAAI,CAACH,UAAWZ,EAAQP,KAAMuB,GAAE,WAAAC,OAAab,EAAM,KAACc,QAlBpC,SAAAC,GACvB,GAAIpB,EAIF,OAHAoB,EAAEC,iBACFD,EAAEE,uBACFtB,EAAgBF,GAIdC,IACFqB,EAAEC,iBACFE,aAAaC,QAAQC,EAAmCpB,KAQ2BM,SAC5EL,MAILI,EAACI,EAAU,CAACC,QAAQ,QAAQW,cAAY,EAAAf,SACrCJ,IAGHK,EAACE,EAAU,CAACC,QAAQ,QAAQF,UAAWZ,EAAQX,aAAaqB,SAAA,CAC1DD,EAACiB,EAAY,CAACd,UAAWZ,EAAQd,gBAAiBI,MAAM,WACvDiB,SAKX,EAEAZ,EAAcgC,UAAY,CACxB9B,SAAU+B,EAAUC,MAAM,CACxB3B,QAAS0B,EAAUC,MAAM,CACvB1B,MAAOyB,EAAUC,MAAM,CACrBzB,GAAIwB,EAAUE,OAAOC,WACrB1B,KAAMuB,EAAUI,OAAOD,WACvBzB,YAAasB,EAAUI,OAAOD,WAC9BvB,cAAeoB,EAAUI,OAAOD,WAChCE,MAAOL,EAAUI,OAAOD,aACvBA,aACFA,aACFA,WACHjC,yBAA0B8B,EAAUM,KACpCnC,gBAAiB6B,EAAUO,MAG7BxC,EAAcyC,aAAe,CAC3BtC,0BAA0B,EAC1BC,qBAAiBsC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import{jsxs as s,jsx as c,Fragment as i}from"react/jsx-runtime";import{useDropzone as n}from"react-dropzone";import t from"classnames";import{useStyles as
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import{jsxs as s,jsx as c,Fragment as i}from"react/jsx-runtime";import{useDropzone as n}from"react-dropzone";import t from"classnames";import{useStyles as r}from"./styles.js";import{FileAdditionOne as e}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import{CautionFilledCustomIcon as m}from"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import{Regular14 as p}from"../Typography.js";import u from"../Button/components/Button/index.js";import"@babel/runtime/helpers/objectWithoutProperties";import"moment-timezone";import"@material-ui/core";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import{parseAccept as a,formatDescription as l}from"../../componentsV2/FilesDropzone/utils.js";function j(o,s){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),c.push.apply(c,i)}return c}function I(s){for(var c=1;c<arguments.length;c++){var i=null!=arguments[c]?arguments[c]:{};c%2?j(Object(i),!0).forEach((function(c){o(s,c,i[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var d=function(o){var j=o.multiple,d=o.children,b=o.accept,h=o.onDrop,O=o.className,f=o.maxFiles,C=o.maxSize,v=o.errorText,y=o.disabled,P=r(),g=a(b),F=g.mimetypes,D=g.extensions,x=F.length||D.length?I({"*/*":D},Object.fromEntries(F.map((function(o){return[o,[]]})))):void 0,A=l(D,C),z=n({onDrop:h,multiple:j,accept:x,maxFiles:f,maxSize:C,disabled:y}),B=z.getRootProps,S=z.getInputProps,k=z.isDragActive;return s("div",{className:O,children:[s("div",I(I({},B()),{},{className:t(P.root,y&&P.disabled,k&&P.active),children:[c("input",I({},S())),d||s(i,{children:[c(e,{size:24,className:P.icon}),c(p,{children:"Drag & Drop your file here or"}),c(u,{variation:"tertiary",size:"small",disabled:y,className:P.uploadButton,children:"Choose file"})]})]})),!v&&A&&c(p,{className:t(P.description,y&&P.disabled),children:A}),v&&s(p,{className:P.error,children:[c(m,{size:20}),v]})]})};export{d as FilesDropzone};
|
|
2
2
|
//# sourceMappingURL=FilesDropzone.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{jsxs as n,jsx as i,Fragment as c}from"react/jsx-runtime";import{useState as t,useEffect as e,useMemo as r}from"react";import m from"prop-types";import a from"classnames";import{Typography as l,LinearProgress as p}from"@material-ui/core";import u from"../IconButton/index.js";import d from"../Button/components/Button/index.js";import"@babel/runtime/helpers/objectWithoutProperties";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import{CloseSmallIcon as j,DeleteFourIcon as I,CheckOneIcon as f,RedoIcon as h,UploadIcon as g}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import v from"./Icons/IconWarning.js";import{FileIcon as b}from"../FileIcon/FileIcon.js";import{useStyles as C}from"./useStyles.js";function z(o,s){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),n.push.apply(n,i)}return n}function y(s){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?z(Object(i),!0).forEach((function(n){o(s,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):z(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}function O(m){var z=m.size,O=m.unit,B=m.name,P=m.customUnitName,N=m.sizeBytes,S=m.handleCancel,w=m.onReload,A=m.onDelete,F=m.loadedBytes,M=m.error,L=m.errorText,k=m.formatError,D=m.importButtonType,T=m.isLoadingAnimation,x=m.showActions,E=C(),R=t({}),U=s(R,2),W=U[0],q=U[1],G=t(0),K=s(G,2),Z=K[0],H=K[1],J=t(!0),Q=s(J,2),V=Q[0],X=Q[1],Y="large"===z,$=Y?24:16,_=Y?"medium":"small";e((function(){q(function(o,s,n){return"time"===s?{downloaded:0,unit:"min",convertedSize:o}:"custom"===s?{downloaded:0,unit:n,convertedSize:o}:o>=Math.pow(10,6)?{downloaded:0,unit:"MB",convertedSize:Math.floor(o/Math.pow(10,5))/10}:o>=Math.pow(10,3)?{downloaded:0,unit:"KB",convertedSize:Math.floor(o/Math.pow(10,2))/10}:{downloaded:0,unit:"B",convertedSize:Math.floor(10*o)/10}}(null!=N?N:1,null!=O?O:"size",null!=P?P:""))}),[N,O]),e((function(){if(F&&N){var o=Math.round(F/N*100);q((function(s){var n;return y(y({},s),{},{downloaded:Math.floor((null!==(n=s.convertedSize)&&void 0!==n?n:0)*o/10)/10})})),H(o)}}),[F,N]),e((function(){var o;return A&&Z>=100&&(X(!0),o=setTimeout((function(){X(!1)}),5e3)),function(){return o&&clearTimeout(o)}}),[Z]),e((function(){M&&(H(0),q((function(o){return y(y({},o),{},{downloaded:0})})))}),[M]);var oo=r((function(){return[a(E.iconButton,o({},E.iconButtonLarge,Y)),a(E.actionIcon,o({},E.actionIconLarge,Y))]}),[Y]),so=s(oo,2),no=so[0],io=so[1];return n("div",{className:E.fileStateWrapper,children:[i("div",{className:E.fileIconContainer,children:i(b,{name:null!=B?B:"",style:{fontSize:Y?48:32}})}),n("div",{className:E.fileState,children:[n("div",{className:E.fileStateProgress,children:[i("div",{className:E.fileNameWrapper,children:i(l,{className:a(E.fileName,o({},E.fileNameLarge,Y)),children:B&&B.length>7?n(c,{children:[i("span",{className:E.firstPart,children:B.slice(0,B.length-7)}),i("span",{children:B.slice(-7)})]}):B})}),!T&&i(p,{className:E.progressBar,variant:"determinate",value:Z,classes:{colorPrimary:a(E.progressBackground,o({},E.progressBarError,M)),barColorPrimary:a(E.progressBarColor,o({},E.progressBarError,M))}}),n("div",{className:E.loaderProgressContainer,children:[!T&&i(l,{className:a(E.fileSize,o({},E.fileSizeLarge,Y)),component:"span",children:"".concat(W.downloaded," of ").concat(W.convertedSize," ").concat(W.unit)}),n("div",{className:a(E.progressStatus,o({},E.fileSizeLarge,Y)),children:[M&&n(l,{component:"div",className:E.errorContainer,children:[i(v,{size:z}),i(l,{component:"span",className:a(E.errorText,o({},E.fileSizeLarge,Y)),children:k?"Upload Error. Unacceptable file format.":"Upload Error".concat(L&&". ".concat(L))})]}),!M&&!T&&"".concat(Z," %")]})]})]}),x&&n("div",{className:E.fileActions,children:[Z<100&&!M&&i(c,{children:T?i("div",{className:a(E.loadingIcon,o({},E.loadingLargeIcon,Y)),style:{backgroundImage:"url(".concat("/static/media/6fa6f1128bc0185126482345243bcd42.svg",")")}}):i(u,{tooltipProps:{title:"Cancel"},className:no,onClick:function(){null==S||S(B),H(0),q((function(o){return y(y({},o),{},{downloaded:0})}))},size:_,children:i(j,{className:io,size:$})})}),100===Z&&!M&&(!V&&A?i(u,{variant:"contained",tooltipProps:{title:"Delete"},className:no,onClick:A,size:_,children:i(I,{className:io,size:$})}):i(f,{fill:"#75DB29",size:$,style:{marginLeft:12}})),w&&M&&i(c,{children:k?i(c,{children:"default"===D?i(d,{size:Y?"medium":"small",variation:"primary",startIcon:i(g,{}),onClick:w,children:"Import"}):i(u,{size:_,tooltipProps:{title:"Import File"},className:no,onClick:w,children:i(g,{size:$})})}):i(u,{size:_,tooltipProps:{title:"Reload"},className:no,onClick:w,children:i(h,{size:$})})})]})]})]})}var B={size:m.oneOf(["small","large"]),unit:m.oneOf(["size","time","custom"]),customUnitName:m.string,onDelete:m.func,onReload:m.func,handleCancel:m.func,name:m.string,sizeBytes:m.number,error:m.bool,errorText:m.string,formatError:m.bool,importButtonType:m.oneOf(["default","icon"]),loadedBytes:m.number.isRequired,isLoadingAnimation:m.bool,showActions:m.bool};O.propTypes=B,O.defaultProps={size:"small",unit:"size",onDelete:null,onReload:null,name:"",customUnitName:"",sizeBytes:1,error:null,errorText:"",formatError:!1,importButtonType:"default",handleCancel:null,isLoadingAnimation:!1,showActions:!0};export{O as default};
|
|
2
2
|
//# sourceMappingURL=FilesLoader.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as o,jsx as s,Fragment as c}from"react/jsx-runtime";import i from"classnames";import{LinearProgress as n}from"@material-ui/core";import{FileIcon as t}from"../FileIcon/FileIcon.js";import
|
|
1
|
+
import{jsxs as o,jsx as s,Fragment as c}from"react/jsx-runtime";import i from"classnames";import{LinearProgress as n}from"@material-ui/core";import{FileIcon as t}from"../FileIcon/FileIcon.js";import m from"../IconButton/index.js";import{CloseIcon as r,DeleteFourIcon as e,RedoIcon as p}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import{CautionFilledCustomIcon as l}from"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import{MiddleTruncatedText as a}from"../MiddleTruncatedText/MiddleTruncatedText.js";import{Regular14 as u,Regular12 as j}from"../Typography.js";import{formatSizeProgress as I}from"./utils.js";import{useStyles as d}from"./styles.js";var h=function(h){var C=h.formatProgress,v=void 0===C?I:C,F=h.className,f=h.name,x=h.current,O=h.total,P=h.errorText,g=h.onCancel,M=h.onReload,T=h.onDelete,b=d(),k=void 0!==O&&O>=0&&void 0!==x&&x>=0,N=Math.min(100,Math.ceil((null!=x?x:0)/(null!=O?O:1)*100)),A=void 0!==x&&void 0!==O&&x>=O;return o("div",{className:i(b.root,F),children:[s(t,{name:f,className:b.icon,strokeWidth:2}),o("div",{className:b.content,children:[s(u,{className:b.name,children:s(a,{children:f},f)}),!P&&!A&&o(c,{children:[s(n,{className:b.progressBar,variant:k?"determinate":void 0,value:N}),o("div",{className:b.progressTextContainer,children:[s(j,{className:b.progressText,children:v(O,x)}),k&&o(j,{className:b.progressText,children:[N,"%"]})]})]}),P&&o(u,{className:b.error,children:[s(l,{size:16}),P]})]}),g&&!P&&!A&&s(m,{onClick:g,size:"small",tooltipProps:{title:"Cancel"},children:s(r,{})}),T&&(P||A)&&s(m,{onClick:T,size:"small",tooltipProps:{title:"Remove File"},children:s(e,{})}),M&&P&&s(m,{onClick:M,size:"small",tooltipProps:{title:"Reload"},children:s(p,{})})]})};export{h as FilesLoaderV2};
|
|
2
2
|
//# sourceMappingURL=FilesLoaderV2.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{makeStyles as o}from"@material-ui/core";import{Tooltip as s}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import{CloseSmallIcon as c}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import{jsx as i}from"react/jsx-runtime";var n=o((function(o){return{buttonWrapper:{display:"flex",alignItems:"center",color:o.palette.primary.text7,"&:hover":{color:o.palette.primary.text1,cursor:"pointer"},marginLeft:"-24px",zIndex:999}}}));function t(o){var t=o.onClose,
|
|
1
|
+
import{makeStyles as o}from"@material-ui/core";import{Tooltip as s}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import{CloseSmallIcon as c}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import{jsx as i}from"react/jsx-runtime";var n=o((function(o){return{buttonWrapper:{display:"flex",alignItems:"center",color:o.palette.primary.text7,"&:hover":{color:o.palette.primary.text1,cursor:"pointer"},marginLeft:"-24px",zIndex:999}}}));function t(o){var t=o.onClose,m=n();return i("div",{className:m.buttonWrapper,onClick:t,children:i(s,{title:"Clear",placement:"bottom",children:i(c,{size:16,strokeWidth:3})})})}export{t as default};
|
|
2
2
|
//# sourceMappingURL=CloseSuggestion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloseSuggestion.js","sources":["../../../src/components/Formula/CloseSuggestion.js"],"sourcesContent":["import { makeStyles } from '@material-ui/core';\n\nimport Tooltip from '~/components/Tooltip';\nimport { CloseSmallIcon } from '~/icons';\n\nconst useStyles = makeStyles(theme => ({\n buttonWrapper: {\n display: 'flex',\n alignItems: 'center',\n color: theme.palette.primary.text7,\n '&:hover': {\n color: theme.palette.primary.text1,\n cursor: 'pointer',\n },\n marginLeft: '-24px',\n zIndex: 999,\n },\n}));\n\nexport default function CloseSuggestion({ onClose }) {\n const classes = useStyles();\n return (\n <div className={classes.buttonWrapper} onClick={onClose}>\n <Tooltip title=\"Clear\" placement=\"bottom\">\n <CloseSmallIcon size={16} strokeWidth={3} />\n </Tooltip>\n </div>\n );\n}\n"],"names":["useStyles","makeStyles","theme","buttonWrapper","display","alignItems","color","palette","primary","text7","text1","cursor","marginLeft","zIndex","CloseSuggestion","_ref","onClose","classes","_jsx","className","onClick","children","Tooltip","title","placement","CloseSmallIcon","size","strokeWidth"],"mappings":"
|
|
1
|
+
{"version":3,"file":"CloseSuggestion.js","sources":["../../../src/components/Formula/CloseSuggestion.js"],"sourcesContent":["import { makeStyles } from '@material-ui/core';\n\nimport Tooltip from '~/components/Tooltip';\nimport { CloseSmallIcon } from '~/icons';\n\nconst useStyles = makeStyles(theme => ({\n buttonWrapper: {\n display: 'flex',\n alignItems: 'center',\n color: theme.palette.primary.text7,\n '&:hover': {\n color: theme.palette.primary.text1,\n cursor: 'pointer',\n },\n marginLeft: '-24px',\n zIndex: 999,\n },\n}));\n\nexport default function CloseSuggestion({ onClose }) {\n const classes = useStyles();\n return (\n <div className={classes.buttonWrapper} onClick={onClose}>\n <Tooltip title=\"Clear\" placement=\"bottom\">\n <CloseSmallIcon size={16} strokeWidth={3} />\n </Tooltip>\n </div>\n );\n}\n"],"names":["useStyles","makeStyles","theme","buttonWrapper","display","alignItems","color","palette","primary","text7","text1","cursor","marginLeft","zIndex","CloseSuggestion","_ref","onClose","classes","_jsx","className","onClick","children","Tooltip","title","placement","CloseSmallIcon","size","strokeWidth"],"mappings":"ytHAKA,IAAMA,EAAYC,GAAW,SAAAC,GAAK,MAAK,CACrCC,cAAe,CACbC,QAAS,OACTC,WAAY,SACZC,MAAOJ,EAAMK,QAAQC,QAAQC,MAC7B,UAAW,CACTH,MAAOJ,EAAMK,QAAQC,QAAQE,MAC7BC,OAAQ,WAEVC,WAAY,QACZC,OAAQ,KAEX,IAEc,SAASC,EAA6BC,GAAA,IAAXC,IAAAA,QAClCC,EAAUjB,IAChB,OACEkB,EAAA,MAAA,CAAKC,UAAWF,EAAQd,cAAeiB,QAASJ,EAAQK,SACtDH,EAACI,EAAO,CAACC,MAAM,QAAQC,UAAU,SAAQH,SACvCH,EAACO,EAAc,CAACC,KAAM,GAAIC,YAAa,OAI/C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{jsxs as i,jsx as
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{jsxs as i,jsx as c}from"react/jsx-runtime";import{useState as n,useMemo as t,useRef as r,useCallback as e,useEffect as m}from"react";import l from"classnames";import{useTheme as a,Button as u}from"@material-ui/core";import{replaceStringToLabel as p}from"./utils.js";import{useFormulaFunction as d}from"./useFormulaFunction.js";import{useFormulaStyles as j}from"./useFormulaStyles.js";import I from"./RootXIcon.js";import f from"./FormulaTextEditor.js";import h from"./CloseSuggestion.js";import v from"./SuggestionsMenu.js";import{CloseSmallIcon as C,InfoIcon as b}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import F from"../../effects/useOutsideClick.js";import{Tooltip as g}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";var y=[{value:"*",isShift:!0,label:"8"},{value:"/",label:"/"},{value:"(",isShift:!0,label:"9"},{value:")",isShift:!0,label:"0"},{value:"+",isShift:!0,label:"+"},{value:"-",label:"-"},{value:"^",isShift:!0,label:"6"}],N=function(o,s,i){return s?i?o.palette.error.main:o.palette.primary.main:o.palette.primary.text7},S=function(S){var T,k=S.suggestions,x=void 0===k?[]:k,O=S.initFormula,A=void 0===O?"":O,P=S.onSave,W=void 0===P?function(){}:P,M=n(!0),E=s(M,2),U=E[0],H=E[1],R=n(!1),D=s(R,2),V=D[0],z=D[1],B=n(!1),L=s(B,2),q=L[0],G=L[1],K=n(A),X=s(K,2),Z=X[0],w=X[1],J=n(0),Q=s(J,2),Y=Q[0],$=Q[1],_=n(0),oo=s(_,2),so=oo[0],io=oo[1],co=p(Z,x),no=co.search("/f"),to=-1!==no,ro=t((function(){return x.map((function(o){return o.key}))}),[x]),eo=co.substring(no+"/f".length,Y),mo=r(null),lo=j({isValue:!to&&!!Z}),ao=a(),uo=d(Z,ro),po=uo.formulaFunction,jo=uo.error;F(mo,(function(){G(!1)}));var Io=function(o){var s,i=x.find((function(s){return s.key===o}));z(!0),G(!0),w((function(s){return s.replace("".concat("/f").concat(eo),o?"[".concat(o,"]"):"")})),$(no+((null==i||null===(s=i.label)||void 0===s?void 0:s.length)||0))},fo=e((function(o,s){Y!==s&&$(s),o!==Z&&(w(o),H(!1))}),[Z,Y]);return m((function(){w(A)}),[A]),i("div",{className:lo.formulaContainer,children:[i("div",{className:lo.formulaHeaderWrapper,children:[i("div",{className:lo.formulaHeaderTextWrapper,children:[c(I,{color:N(ao,q,jo)}),c("div",{className:lo.formulaHeaderText,style:{color:N(ao,q,jo)},children:"Formula Expression"})]}),i("div",{className:lo.formulaHeaderButtonWrapper,onClick:function(){to||(H(!1),w(""),$(0),z(!0))},children:[c(C,{strokeWidth:3,size:16}),c("div",{className:lo.formulaHeaderText,children:"Clear"})]})]}),i("div",{className:lo.formulaEditorWrapper,children:[c("div",{ref:mo,onClick:function(){G(!0)},children:c(f,{initFormula:Z,cursorPos:Y,color:N(ao,q,jo),suggestions:x,isValueUpdated:V,setIsValueUpdated:z,onChange:fo})}),to&&c(h,{onClose:function(){return Io("")}})]}),to&&c(v,{suggestions:x,keyStr:eo,onAddSuggestion:Io,onChangeHeight:io}),i("div",{className:lo.formulaFooterWrapper,style:{marginTop:to?-so:0},children:[c(b,{className:lo.formulaFooterIcon,strokeWidth:3,size:16}),c("div",{className:lo.formulaFooterTextWrapper,children:i("div",{className:lo.formulaFooterText,children:["Type ",c("span",{className:lo.funcText,children:"/f"})," to do add live channels to your equation. Use your keybord for numbers and"," ",c(g,{title:c("div",{className:lo.tooltipWrapper,children:y.map((function(o){return i("div",{className:lo.tooltipLine,children:[c("span",{className:lo.tooltipValue,children:o.value}),i("div",{className:lo.tooltipLabelContainer,children:[!!o.isShift&&c("span",{className:lo.tooltipSymbol,children:"⇧"}),c("span",{children:o.label})]},o.value)]},o.value)}))}),placement:"bottom",children:c("span",{className:lo.successColor,children:"math symbols"})})]})})]}),c(u,{className:lo.verifyButton,variant:"contained",color:"primary",onClick:function(){H(!0);var o=x.map((function(o){return o.key})).filter((function(o){return Z&&Z.includes(o)}));W({formula:Z,variables:o,formulaFunc:po})},disabled:U||!po,children:"Verify"}),!!Z&&c("span",{className:l(lo.resultText,(T={},o(T,lo.errorColor,!!jo),o(T,lo.resultSuccessColor,!jo),T)),children:jo?"The formula is not valid":"The formula is valid"})]})};export{S as default};
|
|
2
2
|
//# sourceMappingURL=Formula.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/slicedToArray";import{jsxs as n,jsx as i,Fragment as t}from"react/jsx-runtime";import{Grid as c,TextField as e,Box as r}from"@material-ui/core";import{noop as m,isEmpty as a,trim as l}from"lodash";import{useState as p,useEffect as d}from"react";import{CheckSmallIcon as u,CloseSmallIcon as j,WriteIcon as I,DeleteFourIcon as g}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import f from"../IconButton/index.js";import{GradientPicker as v}from"../GradientPicker/GradientPicker.js";import{DEFAULT_GRADIENTS as h,DEFAULT_GRADIENT_STOPS as b,TEMP_GRADIENT_ID as C,GRADIENT_MAX_NAME_LENGTH as O}from"./configuration/constants.js";import{GradientList as S}from"./GradientList.js";import{GradientSelect as y}from"./GradientSelect.js";import{useStyles as P}from"./GradientManager.styles.js";function F(o,s){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),n.push.apply(n,i)}return n}function k(s){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?F(Object(i),!0).forEach((function(n){o(s,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):F(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var G=function(o){var F,G,x=o.gradientId,w=o.onGradientEditStateChange,A=void 0===w?m:w,D=o.onChange,M=void 0===D?m:D,B=o.defaultGradients,E=void 0===B?h:B,N=o.defaultGradientStops,R=void 0===N?b:N,T=o.allowNoname,L=o.scaleOptions,U=(L=void 0===L?{}:L).scaleFrom,W=void 0===U?0:U,q=L.scaleTo,z=void 0===q?100:q,K=L.scaleUnit,H=o.className,V=P(),Z=new S(o.gradients||[],E,o.onGradientsChange),J=p(null),Q=s(J,2),X=Q[0],Y=Q[1],$=o.disableGradientsManagement||!o.onGradientsChange,_=Z.getHelperText({name:null!==(F=null==X?void 0:X.name)&&void 0!==F?F:"",allowNoname:null!=T&&T,gradientId:x});d((function(){A(Boolean(X))}),[Boolean(X)]);var oo=(null===(G=Z.getById(x))||void 0===G?void 0:G.gradientStops)||o.gradientStops||R,so=function(){if(a(_)&&X){var o=X.gradientStops;if(o){var s=l(X.name);if(Y(null),s){if(Z.getById(X.id||x))return Z.update(x,{gradientStops:o,name:s}),void M({gradientId:x,gradientStops:o});var n=Z.add(s,o);M({gradientId:n.id,gradientStops:o})}else T&&M({gradientStops:o,gradientId:null})}}},no=function(o){o===x&&(M({gradientId:null,gradientStops:oo}),Y(null)),Z.remove(o)},io=function(o){var s=o.trimStart().substring(0,O);Y(k(k({},X),{},{name:s}))};return n(c,{container:!0,className:H,children:[i(c,{item:!0,xs:6,children:X?i(e,k({InputLabelProps:{shrink:!0},className:V.customGradientName,label:"Gradient Name",value:X.name,onChange:function(o){return io(o.target.value)},onFocus:function(o){o.target.select()},onKeyDown:function(o){if("Enter"===o.key){var s=o.target.value;s&&(io(s),so())}},autoFocus:!0,fullWidth:!0},_)):i(y,{value:x,gradients:o.gradients||[],onChange:function(o){var s,n=Z.getById(o);M({gradientId:o,gradientStops:null!==(s=null==n?void 0:n.gradientStops)&&void 0!==s?s:R})},defaultGradients:E,onAction:function(o,s){switch(o){case"add":Y({name:"",gradientStops:R,id:C});break;case"delete":no(s)}},readonly:$})}),i(c,{item:!0,xs:6,children:i(r,{display:"flex",alignItems:"center",height:"100%",children:i(r,{display:"flex",paddingLeft:1,children:n(t,X?{children:[i(f,{"data-testid":"save-gradient-btn",onClick:so,tooltipProps:{title:"Save"},disabled:!!_||$,children:i(u,{})}),i(f,{"data-testid":"cancel-edit-btn",onClick:function(){Y(null)},tooltipProps:{title:"Cancel"},children:i(j,{})})]}:{children:[i(f,{"data-testid":"edit-gradient-btn",onClick:function(){var o;Z.isDefault(x)?Y({name:Z.newName(),gradientStops:oo,id:C}):Y({name:(null===(o=Z.getById(x))||void 0===o?void 0:o.name)||"",gradientStops:oo})},tooltipProps:{title:"Edit"},disabled:$,children:i(I,{})}),!!Z.getById(x)&&!Z.isDefault(x)&&i(f,{"data-testid":"delete-gradient-btn",onClick:function(){return no(x)},tooltipProps:{title:"Remove"},disabled:$,children:i(g,{})})]})})})}),i(c,{item:!0,xs:12,children:i(v,{from:W,to:z,unit:K,noScale:!0,gradientStops:(null==X?void 0:X.gradientStops)||oo,onChange:function(o){Y(k(k({},X),{},{gradientStops:o}))},readonly:!X,isMoveInputVisible:!0})})]})};export{G as GradientManager};
|
|
2
2
|
//# sourceMappingURL=GradientManager.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/slicedToArray";import{jsxs as s,jsx as i}from"react/jsx-runtime";import{ListSubheader as
|
|
1
|
+
import o from"@babel/runtime/helpers/slicedToArray";import{jsxs as s,jsx as i}from"react/jsx-runtime";import{ListSubheader as c,MenuItem as n}from"@material-ui/core";import t from"@material-ui/icons/AddCircle";import{useState as r}from"react";import e from"classnames";import{isEmpty as m}from"lodash";import{GradientPreview as a}from"./GradientPreview/GradientPreview.js";import p from"../Select/index.js";import u from"../IconButton/index.js";import{useStyles as l}from"./GradientSelect.styles.js";import{DeleteFourIcon as d}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";var I=function(I){var j=I.value,h=I.gradients,C=I.onChange,v=I.defaultGradients,f=I.onAction,g=I.readonly,b=l(),P=r(!1),F=o(P,2),G=F[0],O=F[1],A=function(o){var s,i;if(o.stopPropagation(),!g){var c=null===(s=o.currentTarget.closest("li"))||void 0===s||null===(i=s.dataset)||void 0===i?void 0:i.value;j===c&&O(!1),f("delete",c)}},S=m(h)&&g;return s(p,{"data-testid":"gradient-select",label:"Gradients",value:j||"",className:b.select,onChange:function(o){var s=o.target;s.value&&C(s.value)},open:G,onClose:function(){return O(!1)},onOpen:function(){return O(!0)},inputProps:{name:"gradientId",id:"gradientId"},FormControlProps:{fullWidth:!0},fullWidth:!0,defaultValue:"",InputLabelProps:{shrink:!0},children:[i(c,{className:b.listHeader,children:"Gradients"}),!S&&s(c,{className:b.subHeader,children:["My Gradients",!g&&i(u,{color:"primary","data-testid":"add-gradient-btn",className:b.addButton,onClick:function(){return f("add")},tooltipProps:{title:"Create Custom Gradient"},children:i(t,{color:"primary"})})]}),h.map((function(o){var c=o.id,t=o.name,r=o.gradientStops;return s(n,{value:c,className:b.customGradientListItem,children:[i(a,{gradientStops:r}),i("span",{children:t}),i(u,{className:e({disabled:g}),onClick:A,tooltipProps:{title:"Remove Gradient"},size:"medium",children:i(d,{})})]},c)})),!m(v)&&i(c,{className:b.subHeader,children:"Default Gradients"}),v.map((function(o){var c=o.id,t=o.name,r=o.gradientStops;return s(n,{value:c,className:b.customGradientListItem,children:[i(a,{gradientStops:r}),i("span",{children:t})]},c)}))]})};export{I as GradientSelect};
|
|
2
2
|
//# sourceMappingURL=GradientSelect.js.map
|