@corva/ui 3.1.0-rc.4 → 3.1.0-rc.5
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/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/clients/api/apiCore.js +506 -1
- package/clients/api/apiCore.js.map +1 -0
- package/clients/api/httpMessages.js +14 -1
- package/clients/api/httpMessages.js.map +1 -0
- package/clients/clientStorage/core.js +101 -1
- package/clients/clientStorage/core.js.map +1 -0
- package/clients/clientStorage/index.js +78 -1
- package/clients/clientStorage/index.js.map +1 -0
- package/clients/constants.js +12 -1
- package/clients/constants.js.map +1 -0
- package/clients/corvaUrls.js +22 -1
- package/clients/corvaUrls.js.map +1 -0
- package/clients/index.js +132 -1
- package/clients/index.js.map +1 -0
- package/clients/jsonApi/index.js +1622 -1
- package/clients/jsonApi/index.js.map +1 -0
- package/clients/jsonApi/mocks/mockAssetData.js +63 -1
- package/clients/jsonApi/mocks/mockAssetData.js.map +1 -0
- package/clients/jsonApi/postTaskAndWaitResult.js +103 -1
- package/clients/jsonApi/postTaskAndWaitResult.js.map +1 -0
- package/clients/sso/auth0.js +66 -1
- package/clients/sso/auth0.js.map +1 -0
- package/clients/sso/index.js +20 -1
- package/clients/sso/index.js.map +1 -0
- package/clients/sso/oauth2.js +68 -1
- package/clients/sso/oauth2.js.map +1 -0
- package/clients/subscriptions.js +124 -1
- package/clients/subscriptions.js.map +1 -0
- package/clients/utils.js +45 -1
- package/clients/utils.js.map +1 -0
- package/components/AddComment/Popover.js +523 -1
- package/components/AddComment/Popover.js.map +1 -0
- package/components/AddComment/Popup.js +102 -1
- package/components/AddComment/Popup.js.map +1 -0
- package/components/AddComment/components/Content.js +451 -1
- package/components/AdvancedSlider/AdvancedSlider.js +414 -1
- package/components/AdvancedSlider/AdvancedSlider.js.map +1 -0
- package/components/AdvancedSlider/Handle.js +162 -1
- package/components/AdvancedSlider/Handle.js.map +1 -0
- package/components/AdvancedSlider/constants.js +23 -1
- package/components/AdvancedSlider/constants.js.map +1 -0
- package/components/AdvancedSlider/utils.js +30 -1
- package/components/AdvancedSlider/utils.js.map +1 -0
- package/components/AnchorsList/AnchorsList.js +216 -1
- package/components/AnchorsList/AnchorsList.js.map +1 -0
- package/components/Annotations/AnnotationsContext.js +124 -1
- package/components/Annotations/AnnotationsContext.js.map +1 -0
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +164 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js.map +1 -0
- package/components/Annotations/components/AnnotationsList/components/Annotation/index.js +417 -1
- package/components/Annotations/components/AnnotationsList/components/Annotation/index.js.map +1 -0
- package/components/Annotations/components/AnnotationsList/components/AnnotationComments/style.css.js +8 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationComments/style.css.js.map +1 -0
- package/components/Annotations/components/AnnotationsList/components/AnnotationInput/StyledSelect.js +39 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationInput/StyledSelect.js.map +1 -0
- package/components/Annotations/components/AnnotationsList/components/AnnotationInput/style.css.js +8 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationInput/style.css.js.map +1 -0
- package/components/Annotations/components/AnnotationsList/index.js +239 -1
- package/components/Annotations/components/AnnotationsList/index.js.map +1 -0
- package/components/Annotations/components/AnnotationsList/style.css.js +8 -1
- package/components/Annotations/components/AnnotationsList/style.css.js.map +1 -0
- package/components/Annotations/components/LastAnnotation/index.js +256 -1
- package/components/Annotations/components/LastAnnotation/index.js.map +1 -0
- package/components/Annotations/components/LastAnnotation/style.css.js +8 -1
- package/components/Annotations/components/LastAnnotation/style.css.js.map +1 -0
- package/components/Annotations/constants.js +34 -1
- package/components/Annotations/constants.js.map +1 -0
- package/components/AppIcon/AppIcon.js +62 -1
- package/components/AppIcon/AppIcon.js.map +1 -0
- package/components/AppIcon/utils.js +41 -1
- package/components/AppIcon/utils.js.map +1 -0
- package/components/AppVersionsSelect/AppVersionsSelect.js +251 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js.map +1 -0
- package/components/AppVersionsSelect/effects/index.js +63 -1
- package/components/AppVersionsSelect/effects/index.js.map +1 -0
- package/components/AssetEditor/AssetEditorAutocomplete.js +332 -1
- package/components/AssetEditor/AssetEditorAutocomplete.js.map +1 -0
- package/components/AssetEditor/AssetEditors.css.js +8 -1
- package/components/AssetEditor/AssetEditors.css.js.map +1 -0
- package/components/AssetEditor/SingleAssetEditor.js +115 -1
- package/components/AssetEditor/SingleAssetEditor.js.map +1 -0
- package/components/AssetEditor/constants.js +7 -1
- package/components/AssetEditor/constants.js.map +1 -0
- package/components/AssetEditor/effects/index.js +226 -1
- package/components/AssetEditor/effects/index.js.map +1 -0
- package/components/AssetEditor/index.js +151 -1
- package/components/AssetEditor/index.js.map +1 -0
- package/components/AssetEditorV2/components/MultipleAssetsToggle.js +63 -1
- package/components/AssetEditorV2/components/MultipleAssetsToggle.js.map +1 -0
- package/components/AssetEditorV2/components/PrimaryAssetSelect.js +189 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelect.js.map +1 -0
- package/components/AssetEditorV2/components/PrimaryAssetSelectV2.js +228 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelectV2.js.map +1 -0
- package/components/AssetEditorV2/components/SecondaryAssetSelect.js +218 -1
- package/components/AssetEditorV2/components/SecondaryAssetSelect.js.map +1 -0
- package/components/AssetEditorV2/components/SelectItem.js +117 -1
- package/components/AssetEditorV2/components/SelectItem.js.map +1 -0
- package/components/AssetEditorV2/constants.js +7 -1
- package/components/AssetEditorV2/constants.js.map +1 -0
- package/components/AssetEditorV2/effects/index.js +248 -1
- package/components/AssetEditorV2/effects/usePrimaryAssetSelectData.js +196 -1
- package/components/AssetEditorV2/index.js +322 -1
- package/components/AssetEditorV2/index.js.map +1 -0
- package/components/AssetEditorV2/utils/index.js +78 -1
- package/components/AssetEditorV2/utils/index.js.map +1 -0
- package/components/AssetNameLabel/AssetNameLabel.styles.css.js +8 -1
- package/components/AssetNameLabel/AssetNameLabel.styles.css.js.map +1 -0
- package/components/AssetNameLabel/AssetStatusBadge.js +34 -1
- package/components/AssetNameLabel/AssetStatusBadge.js.map +1 -0
- package/components/AssetNameLabel/SecondaryAssetNameLable.styles.css.js +8 -1
- package/components/AssetNameLabel/SecondaryAssetNameLable.styles.css.js.map +1 -0
- package/components/AssetsMultipleSelector/AssetsMultipleSelector.js +180 -1
- package/components/AssetsMultipleSelector/AssetsMultipleSelector.js.map +1 -0
- package/components/Attachment/index.js +408 -1
- package/components/Attachment/index.js.map +1 -0
- package/components/Attachment/styles.css.js +8 -1
- package/components/Attachment/styles.css.js.map +1 -0
- package/components/Autocomplete/Autocomplete.js +148 -1
- package/components/Autocomplete/Autocomplete.js.map +1 -0
- package/components/Avatar/index.js +86 -1
- package/components/Avatar/index.js.map +1 -0
- package/components/BICOffsetPickerDialog/components/Map/Map.js +204 -1
- package/components/BICOffsetPickerDialog/components/Map/Map.js.map +1 -0
- package/components/BICOffsetPickerDialog/components/Map/index.css.js +8 -1
- package/components/BICOffsetPickerDialog/components/Map/index.css.js.map +1 -0
- package/components/BICOffsetPickerDialog/components/Map/index.js +41 -1
- package/components/BICOffsetPickerDialog/components/Map/index.js.map +1 -0
- package/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js +97 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js.map +1 -0
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetResultSection.js +167 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetResultSection.js.map +1 -0
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetTypesSection.js +57 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetTypesSection.js.map +1 -0
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +212 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js.map +1 -0
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/constants.js +45 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/constants.js.map +1 -0
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/effects/useAssetsData.js +76 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/effects/useAssetsData.js.map +1 -0
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/utils/apiCalls.js +307 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/utils/apiCalls.js.map +1 -0
- package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +153 -1
- package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js.map +1 -0
- package/components/BICOffsetPickerDialog/components/WellSection/WellListItem.js +99 -1
- package/components/BICOffsetPickerDialog/components/WellSection/WellListItem.js.map +1 -0
- package/components/BICOffsetPickerDialog/components/WellSection/index.js +231 -1
- package/components/BICOffsetPickerDialog/components/WellSection/index.js.map +1 -0
- package/components/BICOffsetPickerDialog/constants.js +28 -1
- package/components/BICOffsetPickerDialog/constants.js.map +1 -0
- package/components/BICOffsetPickerDialog/effects/index.js +115 -1
- package/components/BICOffsetPickerDialog/effects/index.js.map +1 -0
- package/components/BICOffsetPickerDialog/index.js +842 -1
- package/components/BICOffsetPickerDialog/index.js.map +1 -0
- package/components/BICOffsetPickerDialog/utils/apiCalls.js +102 -1
- package/components/Breadcrumbs/index.js +106 -1
- package/components/Breadcrumbs/index.js.map +1 -0
- package/components/Button/components/Button/index.js +89 -1
- package/components/Button/components/Button/index.js.map +1 -0
- package/components/Button/components/LiveButton/components/LiveButtonStateIndicator/index.js +106 -1
- package/components/Button/components/LiveButton/components/LiveButtonStateIndicator/index.js.map +1 -0
- package/components/Button/components/LiveButton/index.js +87 -1
- package/components/Button/components/LiveButton/index.js.map +1 -0
- package/components/Button/index.js +38 -1
- package/components/Button/index.js.map +1 -0
- package/components/Casing/CasingComponentIcon.js +68 -1
- package/components/Casing/CasingComponentIcon.js.map +1 -0
- package/components/Casing/CasingTable/CasingComponent.js +94 -1
- package/components/Casing/CasingTable/index.js +112 -1
- package/components/Casing/CasingTable/index.js.map +1 -0
- package/components/Casing/CasingTableV2/CasingTableV2.js +116 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Browser.js +86 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Browser.js.map +1 -0
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +535 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -0
- package/components/Casing/CasingTableV2/components/DrillPipe/Browser.js +115 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Browser.js.map +1 -0
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +571 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -0
- package/components/Casing/CasingTableV2/components/EditComponentDialog.js +173 -1
- package/components/Casing/CasingTableV2/components/EditComponentDialog.js.map +1 -0
- package/components/Casing/CasingTableV2/components/SortableComponent.js +151 -1
- package/components/Casing/CasingTableV2/components/SortableComponent.js.map +1 -0
- package/components/Casing/CasingTableV2/components/constants.js +29 -1
- package/components/Casing/CasingTableV2/components/constants.js.map +1 -0
- package/components/Casing/CasingTile/CasingTile.js +115 -1
- package/components/Casing/CasingTileIcon.js +73 -1
- package/components/Casing/CasingTileIcon.js.map +1 -0
- package/components/Chart/ChartWrapperContext.js +6 -1
- package/components/Chart/ChartWrapperContext.js.map +1 -0
- package/components/Chart/components/AxisDropdown.js +127 -1
- package/components/Chart/components/AxisDropdown.js.map +1 -0
- package/components/Chart/components/AxisOverlay.js +182 -1
- package/components/Chart/components/AxisOverlay.js.map +1 -0
- package/components/Chart/components/ChartButton.js +51 -1
- package/components/Chart/components/ChartButton.js.map +1 -0
- package/components/Chart/components/ChartButtons.js +42 -1
- package/components/Chart/components/ChartButtons.js.map +1 -0
- package/components/Chart/components/ChartSelect.js +134 -1
- package/components/Chart/components/ChartSelect.js.map +1 -0
- package/components/Chart/components/ChartWrapper.js +119 -1
- package/components/Chart/components/ChartWrapper.js.map +1 -0
- package/components/Chart/components/buttons/ChartTypeButton.js +111 -1
- package/components/Chart/components/buttons/ChartTypeButton.js.map +1 -0
- package/components/Chart/components/buttons/DragToZoomButton.js +70 -1
- package/components/Chart/components/buttons/DragToZoomButton.js.map +1 -0
- package/components/Chart/components/buttons/HideAxesButton.js +78 -1
- package/components/Chart/components/buttons/HideAxesButton.js.map +1 -0
- package/components/Chart/components/buttons/PanButton.js +72 -1
- package/components/Chart/components/buttons/PanButton.js.map +1 -0
- package/components/Chart/components/buttons/ResetZoomButton.js +73 -1
- package/components/Chart/components/buttons/ResetZoomButton.js.map +1 -0
- package/components/Chart/components/buttons/ZoomInButton.js +75 -1
- package/components/Chart/components/buttons/ZoomInButton.js.map +1 -0
- package/components/Chart/components/buttons/ZoomOutButton.js +75 -1
- package/components/Chart/components/buttons/ZoomOutButton.js.map +1 -0
- package/components/Chart/constants.js +13 -1
- package/components/Chart/constants.js.map +1 -0
- package/components/Chart/formations.js +77 -1
- package/components/Chart/formations.js.map +1 -0
- package/components/Chart/utils.js +55 -1
- package/components/Chart/utils.js.map +1 -0
- package/components/ChartActionsList/ChartActionsList.css.js +8 -1
- package/components/ChartActionsList/ChartActionsList.css.js.map +1 -0
- package/components/ChartActionsList/ChartActionsList.js +233 -1
- package/components/ChartActionsList/ChartActionsList.js.map +1 -0
- package/components/ChartActionsList/icons/GoLive.js +35 -1
- package/components/ChartActionsList/icons/GoLive.js.map +1 -0
- package/components/ChartActionsList/icons/LeftArrow.js +23 -1
- package/components/ChartActionsList/icons/LeftArrow.js.map +1 -0
- package/components/ChartActionsList/icons/RightArrow.js +23 -1
- package/components/ChartActionsList/icons/RightArrow.js.map +1 -0
- package/components/ChartActionsList/icons/TimeRange.js +21 -1
- package/components/ChartActionsList/icons/TimeRange.js.map +1 -0
- package/components/ChartActionsList/icons/ZoomIn.js +26 -1
- package/components/ChartActionsList/icons/ZoomIn.js.map +1 -0
- package/components/ChartActionsList/icons/ZoomOut.js +26 -1
- package/components/ChartActionsList/icons/ZoomOut.js.map +1 -0
- package/components/Checkbox/index.js +35 -1
- package/components/Checkbox/index.js.map +1 -0
- package/components/Chip/index.js +158 -1
- package/components/Chip/index.js.map +1 -0
- package/components/CollapsableSidebar.js +307 -1
- package/components/CollapsableSidebar.js.map +1 -0
- package/components/CollapsibleContent.js +94 -1
- package/components/CollapsibleContent.js.map +1 -0
- package/components/ColorPicker/ColorPicker.js +231 -1
- package/components/ColorPicker/ColorPicker.js.map +1 -0
- package/components/ColorPicker/ColorPicketUtils.js +41 -1
- package/components/ColorPicker/ColorPicketUtils.js.map +1 -0
- package/components/ColorPicker/PaletteChromePicker/ColorSquare/ColorSquare.js +82 -1
- package/components/ColorPicker/PaletteChromePicker/ColorSquare/ColorSquare.js.map +1 -0
- package/components/ColorPicker/PaletteChromePicker/Palette/Palette.css.js +8 -1
- package/components/ColorPicker/PaletteChromePicker/Palette/Palette.css.js.map +1 -0
- package/components/ColorPicker/PaletteChromePicker/Palette/PaletteConstants.js +14 -1
- package/components/ColorPicker/PaletteChromePicker/Palette/PaletteConstants.js.map +1 -0
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +184 -1
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js.map +1 -0
- package/components/ColorPickerPalette/ColorPickerPalette.js +101 -1
- package/components/ColorPickerPalette/ColorPickerPalette.js.map +1 -0
- package/components/Comment/CommentIcon/index.js +73 -1
- package/components/Comment/CommentIcon/index.js.map +1 -0
- package/components/Comment/index.js +433 -1
- package/components/Comment/index.js.map +1 -0
- package/components/Comment/styles.css.js +8 -1
- package/components/Comment/styles.css.js.map +1 -0
- package/components/CommentInput/index.js +586 -1
- package/components/CommentInput/index.js.map +1 -0
- package/components/CommentInput/styles.css.js +8 -1
- package/components/CommentInput/styles.css.js.map +1 -0
- package/components/CommentLoader.js +84 -1
- package/components/CommentLoader.js.map +1 -0
- package/components/CommentWrapper.js +71 -1
- package/components/CommentWrapper.js.map +1 -0
- package/components/CommentsInfo/index.js +147 -1
- package/components/CommentsInfo/index.js.map +1 -0
- package/components/CommentsInfo/styles.css.js +8 -1
- package/components/CommentsInfo/styles.css.js.map +1 -0
- package/components/ConfirmationDialog.js +136 -1
- package/components/ConfirmationDialog.js.map +1 -0
- package/components/ContextMenuItem/index.js +84 -1
- package/components/ContextMenuItem/index.js.map +1 -0
- package/components/CopyToClipboard/CopyToClipboard.js +107 -1
- package/components/CopyToClipboard/CopyToClipboard.js.map +1 -0
- package/components/Counter/index.js +155 -1
- package/components/Counter/index.js.map +1 -0
- package/components/CustomSelect/index.js +93 -1
- package/components/CustomSelect/index.js.map +1 -0
- package/components/DatePicker/index.js +117 -1
- package/components/DatePicker/index.js.map +1 -0
- package/components/DateTimePicker/index.js +124 -1
- package/components/DateTimePicker/index.js.map +1 -0
- package/components/DevCenter/AppContext.js +6 -1
- package/components/DevCenter/AppContext.js.map +1 -0
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +167 -1
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js.map +1 -0
- package/components/DevCenter/AppHeader/AppHeader.js +291 -1
- package/components/DevCenter/AppHeader/AppHeader.js.map +1 -0
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +238 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js.map +1 -0
- package/components/DevCenter/AppSideBar/AppSideBar.js +315 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js.map +1 -0
- package/components/DevCenter/AppsDataProvider/AppsDataProvider.js +29 -1
- package/components/DevCenter/AppsDataProvider/AppsDataProvider.js.map +1 -0
- package/components/DevCenter/AppsDataProvider/effects/constants.js +10 -1
- package/components/DevCenter/AppsDataProvider/effects/constants.js.map +1 -0
- package/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +194 -1
- package/components/DevCenter/AppsDataProvider/effects/dataResolvers.js.map +1 -0
- package/components/DevCenter/AppsDataProvider/effects/useAppsData.js +127 -1
- package/components/DevCenter/AppsDataProvider/effects/useAppsData.js.map +1 -0
- package/components/DevCenter/AppsDataProvider/effects/utils.js +482 -1
- package/components/DevCenter/AppsDataProvider/effects/utils.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +445 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js +21 -1
- package/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js +8 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.js +14 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsContext.js +9 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsContext.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsProvider.js +23 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsProvider.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.css.js +8 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.css.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +49 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +365 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +106 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js +71 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js +94 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +152 -1
- package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js +8 -1
- package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js +19 -1
- package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchProvider.js +24 -1
- package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchProvider.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js +17 -1
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +147 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.js +25 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.css.js +8 -1
- package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.css.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js +24 -1
- package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +245 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +148 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/RestoreAppSizeButton.css.js +8 -1
- package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/RestoreAppSizeButton.css.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js +45 -1
- package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsList.js +19 -1
- package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsList.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js +50 -1
- package/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/effects/useAppSettings.js +51 -1
- package/components/DevCenter/DevCenterAppContainer/effects/useAppSettings.js.map +1 -0
- package/components/DevCenter/DevCenterAppContainer/utils.js +32 -1
- package/components/DevCenter/DevCenterAppContainer/utils.js.map +1 -0
- package/components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js +6 -1
- package/components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js.map +1 -0
- package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.css.js +8 -1
- package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.css.js.map +1 -0
- package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js +0 -1
- package/components/DevCenter/DevCenterRouterContext/effects/useDevCenterRouter.js +9 -1
- package/components/DevCenter/DevCenterRouterContext/effects/useDevCenterRouter.js.map +1 -0
- package/components/DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js +42 -1
- package/components/DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js.map +1 -0
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +211 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js.map +1 -0
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +172 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -0
- package/components/DevCenter/NavigationBar/NavigationBar.js +51 -1
- package/components/DevCenter/NavigationBar/NavigationBar.js.map +1 -0
- package/components/DevCenter/SideBar/SideBar.js +78 -1
- package/components/DevCenter/SideBar/SideBar.js.map +1 -0
- package/components/DisabledSettingsMessage/DisabledSettingsMessage.js +53 -1
- package/components/DisabledSettingsMessage/DisabledSettingsMessage.js.map +1 -0
- package/components/DocumentViewer/DocumentViewer.js +503 -1
- package/components/DocumentViewer/DocumentViewer.js.map +1 -0
- package/components/DocumentViewer/styles.js +57 -1
- package/components/DocumentViewer/styles.js.map +1 -0
- package/components/Drillstring/BHACasingEmptyView/BHACasingEmptyView.js +67 -1
- package/components/Drillstring/BHACasingEmptyView/BHACasingEmptyView.js.map +1 -0
- package/components/Drillstring/BHAComponentDetail/constants.js +496 -1
- package/components/Drillstring/BHAComponentDetail/index.js +223 -1
- package/components/Drillstring/BHAComponentDetail/index.js.map +1 -0
- package/components/Drillstring/BHAComponentIcon.js +79 -1
- package/components/Drillstring/BHAComponentIcon.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js +124 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Browser.js +77 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Browser.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +499 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Bit/Browser.js +74 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Browser.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +528 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Browser.js +91 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Browser.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +515 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Browser.js +115 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Browser.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +572 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js +213 -1
- package/components/Drillstring/BHAComponentsTable/components/EditComponentDialog.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Jar/Browser.js +78 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Browser.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +498 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Browser.js +78 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Browser.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +499 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js +157 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Browser.js +77 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Browser.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +499 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js +140 -1
- package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Browser.js +157 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Browser.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +601 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js +144 -1
- package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Rss/Browser.js +83 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Browser.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +507 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/SortableComponent.js +158 -1
- package/components/Drillstring/BHAComponentsTable/components/SortableComponent.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Browser.js +96 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Browser.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +524 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Sub/Browser.js +72 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Browser.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +489 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Suggestions/AutoCompleteDialog.js +260 -1
- package/components/Drillstring/BHAComponentsTable/components/Suggestions/AutoCompleteDialog.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js +274 -1
- package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Ur/Browser.js +134 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Browser.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +577 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/constants.js +58 -1
- package/components/Drillstring/BHAComponentsTable/components/constants.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.js +26 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/CancelButton.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +463 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js +33 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js +31 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/shared/InputText.js +80 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/InputText.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js +28 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/MoreButton.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js +33 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js +86 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js +89 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js +60 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/sharedStyles.js +193 -1
- package/components/Drillstring/BHAComponentsTable/components/sharedStyles.js.map +1 -0
- package/components/Drillstring/BHAComponentsTable/components/utils/calculation.js +89 -1
- package/components/Drillstring/BHAComponentsTable/components/utils/calculation.js.map +1 -0
- package/components/Drillstring/BHAList/BHAList.js +111 -1
- package/components/Drillstring/BHASchematic.js +170 -1
- package/components/Drillstring/BHASchematic.js.map +1 -0
- package/components/Drillstring/BHATable/BHAComponent.js +102 -1
- package/components/Drillstring/BHATable/index.js +116 -1
- package/components/Drillstring/BHATable/index.js.map +1 -0
- package/components/Drillstring/BHATile/BHATile.js +113 -1
- package/components/Drillstring/BHATileIcon.js +81 -1
- package/components/Drillstring/BHATileIcon.js.map +1 -0
- package/components/Drillstring/BhaIndicator/BhaIndicator.js +69 -1
- package/components/Drillstring/BhaIndicator/BhaIndicator.js.map +1 -0
- package/components/Drillstring/BhaIndicator/styles.css.js +8 -1
- package/components/Drillstring/BhaIndicator/styles.css.js.map +1 -0
- package/components/Drillstring/DrillstringDetail/DrillstringDetail.js +87 -1
- package/components/Drillstring/DrillstringDetail/DrillstringDetail.js.map +1 -0
- package/components/Drillstring/DrillstringDetail/styles.css.js +8 -1
- package/components/Drillstring/DrillstringDetail/styles.css.js.map +1 -0
- package/components/EChartsWrapper/EChartsWrapper.js +343 -1
- package/components/EChartsWrapper/EChartsWrapper.js.map +1 -0
- package/components/EChartsWrapper/components/Toolbox/Toolbox.js +168 -1
- package/components/EChartsWrapper/components/Toolbox/ToolboxButton.js +24 -1
- package/components/EChartsWrapper/components/Toolbox/ToolboxButton.js.map +1 -0
- package/components/EditableItem/EditableItem/index.js +244 -1
- package/components/EditableItem/EditableItem/index.js.map +1 -0
- package/components/EditableItem/EditableItemWithBadge/index.js +47 -1
- package/components/EditableItem/EditableItemWithBadge/index.js.map +1 -0
- package/components/EmbeddedApp/DevCenterEmbeddedApp.js +74 -1
- package/components/EmbeddedApp/DevCenterEmbeddedApp.js.map +1 -0
- package/components/EmbeddedApp/EmbeddedApp.js +201 -1
- package/components/EmbeddedApp/EmbeddedApp.js.map +1 -0
- package/components/EmbeddedApp/components/AppInfo.js +95 -1
- package/components/EmbeddedApp/styles.css.js +8 -1
- package/components/EmojiIconButton.js +106 -1
- package/components/EmojiIconButton.js.map +1 -0
- package/components/EmptyState/EmptyState.js +74 -1
- package/components/EmptyState/EmptyState.js.map +1 -0
- package/components/EmptyState/constants.js +52 -1
- package/components/EmptyState/constants.js.map +1 -0
- package/components/EmptyState/images/index.js +16 -1
- package/components/EmptyState/images/index.js.map +1 -0
- package/components/EmptyState/styles.js +66 -1
- package/components/EmptyState/styles.js.map +1 -0
- package/components/EmptyState/utils.js +10 -1
- package/components/EmptyState/utils.js.map +1 -0
- package/components/EmptyView/EmptyAppView/EmptyAppView.js +198 -1
- package/components/EmptyView/EmptyAppView/EmptyAppView.js.map +1 -0
- package/components/EmptyView/EmptyView.js +107 -1
- package/components/EmptyView/EmptyView.js.map +1 -0
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +42 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js.map +1 -0
- package/components/ErrorBoundary/ErrorBoundary.js +77 -1
- package/components/ErrorBoundary/ErrorBoundary.js.map +1 -0
- package/components/FailedFileUploading.js +43 -1
- package/components/FailedFileUploading.js.map +1 -0
- package/components/FeedItem/FeedItem.css.js +8 -1
- package/components/FeedItem/FeedItem.js +496 -1
- package/components/FeedItem/FeedItem.js.map +1 -0
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +97 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +99 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js.map +1 -0
- package/components/FeedItem/components/Actions.js +99 -1
- package/components/FeedItem/components/CompletionDateTimestamp.js +36 -1
- package/components/FeedItem/components/Content.js +189 -1
- package/components/FeedItem/components/CreatedAt.js +28 -1
- package/components/FeedItem/components/FeedComments.js +289 -1
- package/components/FeedItem/components/Icon.js +95 -1
- package/components/FeedItem/components/Reactions.js +109 -1
- package/components/FeedItem/components/RigAndWell.js +77 -1
- package/components/FeedItem/components/TypeAndAssetTitle.js +42 -1
- package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js +224 -1
- package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js.map +1 -0
- package/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.js +216 -1
- package/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.js.map +1 -0
- package/components/FeedItem/editModals/LessonsLearnedEdit/LessonsLearnedEdit.js +231 -1
- package/components/FeedItem/editModals/LessonsLearnedEdit/LessonsLearnedEdit.js.map +1 -0
- package/components/FeedItem/editModals/NptLessonsCommentEdit/NptLessonsCommentEdit.js +203 -1
- package/components/FeedItem/editModals/NptLessonsCommentEdit/NptLessonsCommentEdit.js.map +1 -0
- package/components/FeedItem/editModals/PCCommentEdit/PCCommentEdit.js +196 -1
- package/components/FeedItem/editModals/PCCommentEdit/PCCommentEdit.js.map +1 -0
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/helpers.js +25 -1
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/helpers.js.map +1 -0
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js +175 -1
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js.map +1 -0
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/styles.css.js +8 -1
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/styles.css.js.map +1 -0
- package/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js +124 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaNumber.js +37 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaNumber.js.map +1 -0
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaSchematic.js +73 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/BhaSchematic.js.map +1 -0
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js +105 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/Info.js.map +1 -0
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/NoData.js +43 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/components/NoData.js.map +1 -0
- package/components/FeedItem/feedItemTypes/BhaFeedItem/styles.css.js +8 -1
- package/components/FeedItem/feedItemTypes/BhaFeedItem/styles.css.js.map +1 -0
- package/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js +80 -1
- package/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/CompletionDocumentFeedItem.js +41 -1
- package/components/FeedItem/feedItemTypes/CompletionDocumentFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/CompletionNptFeedItem.js +142 -1
- package/components/FeedItem/feedItemTypes/CompletionNptFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js +27 -1
- package/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js +27 -1
- package/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/DepthCommentFeedItem.js +91 -1
- package/components/FeedItem/feedItemTypes/DepthCommentFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/DocumentFeedItem.js +41 -1
- package/components/FeedItem/feedItemTypes/DocumentFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.js +25 -1
- package/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js +80 -1
- package/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js +27 -1
- package/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js +27 -1
- package/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/DvDCommentFeedItem.js +93 -1
- package/components/FeedItem/feedItemTypes/DvDCommentFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/FluidReportFeedItem.js +143 -1
- package/components/FeedItem/feedItemTypes/FluidReportFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/GenericDataCommentFeedItem.js +85 -1
- package/components/FeedItem/feedItemTypes/GenericDataCommentFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/GeosteeringFeedItem.js +115 -1
- package/components/FeedItem/feedItemTypes/GeosteeringFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js +110 -1
- package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Critical.js +28 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Critical.js.map +1 -0
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Major.js +28 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Major.js.map +1 -0
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Minor.js +28 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Minor.js.map +1 -0
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js +149 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js.map +1 -0
- package/components/FeedItem/feedItemTypes/NptFeedItem.js +146 -1
- package/components/FeedItem/feedItemTypes/NptFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js +77 -1
- package/components/FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/PCCommentFeedItem.js +73 -1
- package/components/FeedItem/feedItemTypes/PCCommentFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/PostFeedItem.js +57 -1
- package/components/FeedItem/feedItemTypes/PostFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/api.js +87 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/api.js.map +1 -0
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/NoData.js +18 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/NoData.js.map +1 -0
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Predictions.js +53 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Predictions.js.map +1 -0
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/PredictionsItem.js +56 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/PredictionsItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/Stages.js +83 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/Stages.js.map +1 -0
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/utils.js +31 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/utils.js.map +1 -0
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/index.js +95 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/index.js.map +1 -0
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/api.js +44 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/api.js.map +1 -0
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +79 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js.map +1 -0
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js +168 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js.map +1 -0
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.js +55 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.js.map +1 -0
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js +118 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js.map +1 -0
- package/components/FeedItem/feedItemTypes/TracesMemoFeedItem.js +102 -1
- package/components/FeedItem/feedItemTypes/TracesMemoFeedItem.js.map +1 -0
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js +70 -1
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js.map +1 -0
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/VerticalSectionAzimuth.js +37 -1
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/VerticalSectionAzimuth.js.map +1 -0
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/constants.js +28 -1
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/constants.js.map +1 -0
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.js +142 -1
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.js.map +1 -0
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/styles.css.js +8 -1
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/styles.css.js.map +1 -0
- package/components/FileIcon/FileIcon.js +17 -1
- package/components/FileIcon/FileIcon.js.map +1 -0
- package/components/FilePreview/index.js +80 -1
- package/components/FilePreview/index.js.map +1 -0
- package/components/FilePreview/styles.css.js +8 -1
- package/components/FilePreview/styles.css.js.map +1 -0
- package/components/FileTypeIcon.js +69 -1
- package/components/FileTypeIcon.js.map +1 -0
- package/components/FileUploadIconButton.js +254 -1
- package/components/FileUploadIconButton.js.map +1 -0
- package/components/FilesDropzone/FilesDropzone.js +105 -1
- package/components/FilesDropzone/FilesDropzone.js.map +1 -0
- package/components/FilesDropzone/styles.js +61 -1
- package/components/FilesLoader/FilesLoader.js +334 -1
- package/components/FilesLoader/FilesLoader.js.map +1 -0
- package/components/FilesLoader/Icons/IconWarning.js +24 -1
- package/components/FilesLoader/useStyles.js +140 -1
- package/components/FilesLoaderV2/FilesLoaderV2.js +111 -1
- package/components/FilesLoaderV2/FilesLoaderV2.js.map +1 -0
- package/components/FilesLoaderV2/styles.js +57 -1
- package/components/FilesLoaderV2/utils.js +12 -1
- package/components/FilesProcessor/FilesProcessor.js +122 -1
- package/components/FilesProcessor/FilesProcessor.js.map +1 -0
- package/components/FilesProcessor/Processor.js +165 -1
- package/components/FilesProcessor/styles.js +19 -1
- package/components/FolderMenuItem/components/ClosedFolderIcon.js +16 -1
- package/components/FolderMenuItem/components/ClosedFolderIcon.js.map +1 -0
- package/components/FolderMenuItem/components/FolderIcon.js +48 -1
- package/components/FolderMenuItem/components/FolderIcon.js.map +1 -0
- package/components/FolderMenuItem/components/OpenFolderIcon.js +16 -1
- package/components/FolderMenuItem/components/OpenFolderIcon.js.map +1 -0
- package/components/FolderMenuItem/index.js +165 -1
- package/components/FolderMenuItem/index.js.map +1 -0
- package/components/FolderMenuItemWithLinks/index.js +108 -1
- package/components/FolderMenuItemWithLinks/index.js.map +1 -0
- package/components/Formula/CloseSuggestion.js +64 -1
- package/components/Formula/Formula.js +285 -1
- package/components/Formula/Formula.js.map +1 -0
- package/components/Formula/FormulaTextEditor.js +97 -1
- package/components/Formula/RootXIcon.js +41 -1
- package/components/Formula/SuggestionsMenu.js +126 -1
- package/components/Formula/useFormulaFunction.js +42 -1
- package/components/Formula/useFormulaStyles.js +119 -1
- package/components/Formula/utils.js +63 -1
- package/components/GoogleDocsViewer/index.js +133 -1
- package/components/GoogleDocsViewer/styles.js +77 -1
- package/components/GoogleDocsViewer/styles.js.map +1 -0
- package/components/GradientManager/GradientList.js +143 -1
- package/components/GradientManager/GradientList.js.map +1 -0
- package/components/GradientManager/GradientManager.js +303 -1
- package/components/GradientManager/GradientManager.js.map +1 -0
- package/components/GradientManager/GradientManager.styles.js +11 -1
- package/components/GradientManager/GradientManager.styles.js.map +1 -0
- package/components/GradientManager/GradientManagerWithStorage/GradientManagerWithStorage.js +36 -1
- package/components/GradientManager/GradientManagerWithStorage/GradientManagerWithStorage.js.map +1 -0
- package/components/GradientManager/GradientSelect.js +163 -1
- package/components/GradientManager/GradientSelect.js.map +1 -0
- package/components/GradientManager/configuration/constants.js +294 -1
- package/components/GradientManager/configuration/constants.js.map +1 -0
- package/components/GradientManager/effects/useGradientStorage.js +163 -1
- package/components/GradientPicker/GradientPicker.js +405 -1
- package/components/GradientPicker/GradientPicker.js.map +1 -0
- package/components/GradientPicker/GradientPicker.styles.js +99 -1
- package/components/GradientPicker/GradientPicker.utils.js +55 -1
- package/components/HeaderLayout/HeaderLayout.css.js +8 -1
- package/components/HeaderLayout/HeaderLayout.js +167 -1
- package/components/HeaderLayout/HeaderLayout.js.map +1 -0
- package/components/HeaderLayout/constants.js +6 -1
- package/components/HeaderLayout/effects/index.js +110 -1
- package/components/HeaderLayout/utils.js +49 -1
- package/components/HelpCenter/HelpCenterIcon.js +91 -1
- package/components/HelpCenter/HelpCenterIcon.js.map +1 -0
- package/components/HelpCenter/index.js +2 -1
- package/components/HelpCenter/index.js.map +1 -0
- package/components/Hint/Hint.js +116 -1
- package/components/Hint/Hint.js.map +1 -0
- package/components/Hint/styles.js +84 -1
- package/components/IconButton/index.js +175 -1
- package/components/IconButton/index.js.map +1 -0
- package/components/IconMenu/index.js +192 -1
- package/components/IconMenu/index.js.map +1 -0
- package/components/Icons/AttachIcon.js +30 -1
- package/components/Icons/AttachIcon.js.map +1 -0
- package/components/Icons/DangerousIcon.js +13 -1
- package/components/Icons/DangerousIcon.js.map +1 -0
- package/components/Icons/EmojiIcon.js +32 -1
- package/components/Icons/EmojiIcon.js.map +1 -0
- package/components/Icons/RecommendationIcon.js +36 -1
- package/components/Icons/RecommendationIcon.js.map +1 -0
- package/components/Icons/SendIcon.js +29 -1
- package/components/Icons/SendIcon.js.map +1 -0
- package/components/ImageViewer/index.js +215 -1
- package/components/ImageViewer/index.js.map +1 -0
- package/components/ImageViewer/styles.css.js +8 -1
- package/components/InfiniteList/index.js +237 -1
- package/components/InfiniteList/index.js.map +1 -0
- package/components/KeyboardDateTimePicker.js +62 -1
- package/components/KeyboardDateTimePicker.js.map +1 -0
- package/components/LabelsCounter/LabelsCounter.js +57 -1
- package/components/LabelsCounter/LabelsCounter.js.map +1 -0
- package/components/LoadingIndicator/FullScreenLoadingIndicator.js +34 -1
- package/components/LoadingIndicator/FullScreenLoadingIndicator.js.map +1 -0
- package/components/LoadingIndicator/InlineLoadingIndicator.js +28 -1
- package/components/LoadingIndicator/InlineLoadingIndicator.js.map +1 -0
- package/components/LoadingIndicator/Loader.js +30 -1
- package/components/LoadingIndicator/Loader.js.map +1 -0
- package/components/LoadingIndicator/LoadingIndicator.js +28 -1
- package/components/LoadingIndicator/LoadingIndicator.js.map +1 -0
- package/components/MenuItem/index.js +60 -1
- package/components/MenuItem/index.js.map +1 -0
- package/components/MiddleTruncate/MiddleTruncate.js +49 -1
- package/components/MiddleTruncate/MiddleTruncate.js.map +1 -0
- package/components/MiddleTruncate/utils.js +15 -1
- package/components/MiddleTruncatedText/MiddleTruncatedText.js +103 -1
- package/components/MiddleTruncatedText/MiddleTruncatedText.js.map +1 -0
- package/components/Modal/CorvaModal.js +121 -1
- package/components/Modal/CorvaModal.js.map +1 -0
- package/components/Modal/DcCorvaModal.js +27 -1
- package/components/Modal/DcCorvaModal.js.map +1 -0
- package/components/Modal/Modal.js +19 -1
- package/components/Modal/Modal.js.map +1 -0
- package/components/NewDocumentViewer/NewDocumentViewer.js +110 -1
- package/components/NewDocumentViewer/NewDocumentViewer.js.map +1 -0
- package/components/NewDocumentViewer/components/CsvViewer.js +91 -1
- package/components/NewDocumentViewer/components/CsvViewer.js.map +1 -0
- package/components/NewDocumentViewer/components/PdfViewer.js +27 -1
- package/components/NewDocumentViewer/components/PdfViewer.js.map +1 -0
- package/components/NewDocumentViewer/components/TextViewer.js +12 -1
- package/components/NewDocumentViewer/components/TextViewer.js.map +1 -0
- package/components/NewDocumentViewer/constants.js +10 -1
- package/components/NewDocumentViewer/effects/useFileContent.js +92 -1
- package/components/NewDocumentViewer/effects/useFileContent.js.map +1 -0
- package/components/NewDocumentViewer/icons/UnavailableFileIcon.js +40 -1
- package/components/NewDocumentViewer/icons/UnavailableFileIcon.js.map +1 -0
- package/components/NewDocumentViewer/styles.js +74 -1
- package/components/NewDocumentViewer/utils.js +104 -1
- package/components/NewDocumentViewer/utils.js.map +1 -0
- package/components/Notifications/Notifications.js +31 -1
- package/components/Notifications/Notifications.js.map +1 -0
- package/components/Notifications/NotificationsContainer.js +79 -1
- package/components/Notifications/NotificationsContainer.js.map +1 -0
- package/components/Notifications/Toast.js +155 -1
- package/components/OffsetWellButton/OffsetWellButton.js +193 -1
- package/components/OffsetWellButton/OffsetWellButton.js.map +1 -0
- package/components/OffsetWellChips/Chip.js +155 -1
- package/components/OffsetWellChips/Chip.js.map +1 -0
- package/components/OffsetWellChips/ChipsContainer.js +49 -1
- package/components/OffsetWellChips/ChipsContainer.js.map +1 -0
- package/components/OffsetWellChips/icons/SubjectIcon.js +43 -1
- package/components/OffsetWellMap/OffsetWellMap.js +387 -1
- package/components/OffsetWellMap/OffsetWellMap.js.map +1 -0
- package/components/OffsetWellMap/OffsetWellMap.module.css.js +8 -1
- package/components/OffsetWellMap/WellTooltip.js +62 -1
- package/components/OffsetWellMap/utils.js +30 -1
- package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +502 -1
- package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js.map +1 -0
- package/components/OffsetWellPickerV2/components/Filter/index.js +165 -1
- package/components/OffsetWellPickerV2/components/Map/Map.css.js +8 -1
- package/components/OffsetWellPickerV2/components/Map/Map.css.js.map +1 -0
- package/components/OffsetWellPickerV2/components/Map/index.js +69 -1
- package/components/OffsetWellPickerV2/components/Map/popup.css.js +8 -1
- package/components/OffsetWellPickerV2/components/Map/popup.css.js.map +1 -0
- package/components/OffsetWellPickerV2/components/Table/SubjectIndicator.css.js +8 -1
- package/components/OffsetWellPickerV2/components/Table/SubjectIndicator.css.js.map +1 -0
- package/components/OffsetWellPickerV2/components/Table/index.js +509 -1
- package/components/OffsetWellPickerV2/constants.js +95 -1
- package/components/OffsetWellPickerV2/effects/index.js +315 -1
- package/components/OffsetWellPickerV2/utils/index.js +30 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +204 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js.map +1 -0
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.css.js +8 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.css.js.map +1 -0
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js +71 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js.map +1 -0
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetResultSection.js +195 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetResultSection.js.map +1 -0
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetTypesSection.js +58 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetTypesSection.js.map +1 -0
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +236 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js.map +1 -0
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/constants.js +45 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/constants.js.map +1 -0
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/effects/useAssetsData.js +77 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/effects/useAssetsData.js.map +1 -0
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js +412 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js.map +1 -0
- package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js +104 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js +295 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js.map +1 -0
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +684 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -0
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +622 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -0
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +436 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +628 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -0
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +523 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -0
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +512 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.js +182 -1
- package/components/OffsetWellPickerV3/constants.js +48 -1
- package/components/OffsetWellPickerV3/constants.js.map +1 -0
- package/components/OffsetWellPickerV3/effects/index.js +145 -1
- package/components/OffsetWellPickerV3/index.js +333 -1
- package/components/OffsetWellPickerV3/index.js.map +1 -0
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1146 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js.map +1 -0
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.module.css.js +8 -1
- package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.module.css.js +8 -1
- package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.module.css.js.map +1 -0
- package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.js +29 -1
- package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.js.map +1 -0
- package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.module.css.js +8 -1
- package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.module.css.js.map +1 -0
- package/components/OffsetWellPickerV4/components/Filter/Filter.module.css.js +8 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.module.css.js.map +1 -0
- package/components/OffsetWellPickerV4/components/Filter/MultiSelect.js +125 -1
- package/components/OffsetWellPickerV4/components/Filter/MultiSelect.js.map +1 -0
- package/components/OffsetWellPickerV4/components/Filter/PeriodSelect.js +48 -1
- package/components/OffsetWellPickerV4/components/Filter/PeriodSelect.js.map +1 -0
- package/components/OffsetWellPickerV4/components/Filter/RadiusInput.js +80 -1
- package/components/OffsetWellPickerV4/components/Filter/RadiusInput.js.map +1 -0
- package/components/OffsetWellPickerV4/components/Filter/SingleSelect.js +49 -1
- package/components/OffsetWellPickerV4/components/Filter/SingleSelect.js.map +1 -0
- package/components/OffsetWellPickerV4/components/Filter/WellSection.js +33 -1
- package/components/OffsetWellPickerV4/components/Filter/WellSection.js.map +1 -0
- package/components/OffsetWellPickerV4/components/Map/WellsMap.module.css.js +8 -1
- package/components/OffsetWellPickerV4/components/Map/WellsMap.module.css.js.map +1 -0
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +119 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -0
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.module.css.js +8 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.module.css.js.map +1 -0
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +258 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js.map +1 -0
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetTypesSection.js +59 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetTypesSection.js.map +1 -0
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +283 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +1 -0
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js +25 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js.map +1 -0
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.js +139 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.js.map +1 -0
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +528 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js.map +1 -0
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js +8 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js.map +1 -0
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +287 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js.map +1 -0
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.module.css.js +8 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.module.css.js.map +1 -0
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js +355 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js.map +1 -0
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.module.css.js +8 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.module.css.js.map +1 -0
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.js +60 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.js.map +1 -0
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/ViewWellSectionsName.js +56 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/ViewWellSectionsName.js.map +1 -0
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.module.css.js +8 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.module.css.js.map +1 -0
- package/components/OffsetWellPickerV4/constants.js +182 -1
- package/components/OffsetWellPickerV4/utils/apiCalls.js +498 -1
- package/components/OffsetWellPickerV4/utils/apiCalls.js.map +1 -0
- package/components/OffsetWellPickerV4/utils/index.js +157 -1
- package/components/OffsetWellPickerV4/utils/timePeriod.js +31 -1
- package/components/OffsetWellPickerV4/utils/timePeriod.js.map +1 -0
- package/components/OffsetWellPickerV4/utils/unitSystem.js +10 -1
- package/components/OffsetWellPickerV4/utils/unitSystem.js.map +1 -0
- package/components/PadModeSelect/FracModeLabel.js +122 -1
- package/components/PadModeSelect/PadModeSelect.js +282 -1
- package/components/PadModeSelect/PadModeSelect.js.map +1 -0
- package/components/PadModeSelect/WellStreamActivityStatus.js +57 -1
- package/components/PadModeSelect/effects/useMenuItems.js +36 -1
- package/components/PadModeSelect/effects/useWellStreamActivityTypeSubscription.js +132 -1
- package/components/PadModeSelect/types.js +13 -1
- package/components/PadModeSelect/utils/resolveCurrentConfig.js +39 -1
- package/components/PadModeSelect/utils/selectMenuKey.js +42 -1
- package/components/PadModeSelect/utils/time.js +6 -1
- package/components/PadModeSelect/utils/time.js.map +1 -0
- package/components/PadOffsetsPicker/OffsetAssetChip.js +58 -1
- package/components/PadOffsetsPicker/OffsetAssetChip.js.map +1 -0
- package/components/PadOffsetsPicker/OffsetAssetsListExpander.js +24 -1
- package/components/PadOffsetsPicker/OffsetAssetsListExpander.js.map +1 -0
- package/components/PadOffsetsPicker/PadOffsetsPicker.js +346 -1
- package/components/PadOffsetsPicker/PadOffsetsPicker.js.map +1 -0
- package/components/PadOffsetsPicker/StagesSelector.js +692 -1
- package/components/PadOffsetsPicker/StagesSelector.js.map +1 -0
- package/components/PadOffsetsPicker/index.js +5 -1
- package/components/PadOffsetsPicker/index.js.map +1 -0
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +511 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -0
- package/components/PadOffsetsPickerV2/useOffsetPickerActions.js +265 -1
- package/components/ParameterCharts/AddEditTrack.css.js +5 -1
- package/components/ParameterCharts/AddEditTrack.css.js.map +1 -0
- package/components/ParameterCharts/AddEditTrack.js +144 -1
- package/components/ParameterCharts/AddEditTrack.js.map +1 -0
- package/components/ParameterCharts/ChartsContext.js +9 -1
- package/components/ParameterCharts/ChartsContext.js.map +1 -0
- package/components/ParameterCharts/DataContext.js +14 -1
- package/components/ParameterCharts/DataContext.js.map +1 -0
- package/components/ParameterCharts/ParameterCharts.css.js +8 -1
- package/components/ParameterCharts/ParameterCharts.css.js.map +1 -0
- package/components/ParameterCharts/ParameterCharts.js +140 -1
- package/components/ParameterCharts/ParameterCharts.js.map +1 -0
- package/components/ParameterCharts/SettingsContext.js +13 -1
- package/components/ParameterCharts/SettingsContext.js.map +1 -0
- package/components/ParameterCharts/components/ChartContainer.css.js +8 -1
- package/components/ParameterCharts/components/ChartContainer.css.js.map +1 -0
- package/components/ParameterCharts/components/Charts/EmptyChart.css.js +8 -1
- package/components/ParameterCharts/components/Charts/EmptyChart.css.js.map +1 -0
- package/components/ParameterCharts/components/Charts/EmptyChart.js +20 -1
- package/components/ParameterCharts/components/Charts/EmptyChart.js.map +1 -0
- package/components/ParameterCharts/components/Charts/LineChart.css.js +8 -1
- package/components/ParameterCharts/components/Charts/LineChart.css.js.map +1 -0
- package/components/ParameterCharts/components/Charts/LineChart.js +101 -1
- package/components/ParameterCharts/components/Charts/LineChart.js.map +1 -0
- package/components/ParameterCharts/components/Charts/options.js +81 -1
- package/components/ParameterCharts/components/Charts/options.js.map +1 -0
- package/components/ParameterCharts/components/DataLoadingIndicator.js +16 -1
- package/components/ParameterCharts/components/DataLoadingIndicator.js.map +1 -0
- package/components/ParameterCharts/components/SingleChannelTrackSettings.js +41 -1
- package/components/ParameterCharts/components/SingleChannelTrackSettings.js.map +1 -0
- package/components/ParameterCharts/components/Tooltip/CursorPositioner.js +91 -1
- package/components/ParameterCharts/components/Tooltip/CursorPositioner.js.map +1 -0
- package/components/ParameterCharts/components/Tooltip/Tooltip.css.js +8 -1
- package/components/ParameterCharts/components/Tooltip/Tooltip.css.js.map +1 -0
- package/components/ParameterCharts/components/TraceHeader.css.js +8 -1
- package/components/ParameterCharts/components/TraceHeader.css.js.map +1 -0
- package/components/ParameterCharts/components/TraceSettings.css.js +8 -1
- package/components/ParameterCharts/components/TraceSettings.css.js.map +1 -0
- package/components/ParameterCharts/components/Track.js +128 -1
- package/components/ParameterCharts/components/Track.js.map +1 -0
- package/components/ParameterCharts/components/TrackSettings.js +234 -1
- package/components/ParameterCharts/components/TrackSettings.js.map +1 -0
- package/components/ParameterCharts/constants.js +16 -1
- package/components/ParameterCharts/constants.js.map +1 -0
- package/components/ParameterCharts/utils/dataParser.js +39 -1
- package/components/ParameterCharts/utils/dataParser.js.map +1 -0
- package/components/PinnableFilters/PinnableFilters.css.js +8 -1
- package/components/PinnableFilters/PinnableFilters.js +234 -1
- package/components/PinnableFilters/PinnableFilters.js.map +1 -0
- package/components/PinnableFilters/components/FiltersToggler.js +70 -1
- package/components/PinnableFilters/components/PinAppSwitch.js +68 -1
- package/components/PinnableFilters/constants.js +6 -1
- package/components/PinnableFilters/effects/index.js +173 -1
- package/components/PinnableFilters/utils.js +19 -1
- package/components/Popover/Popover.js +156 -1
- package/components/Popover/Popover.js.map +1 -0
- package/components/Popper/Popper.js +152 -1
- package/components/Popper/Popper.js.map +1 -0
- package/components/PostInput/PostInput.css.js +8 -1
- package/components/PostInput/PostInput.js +148 -1
- package/components/PostInput/PostInput.js.map +1 -0
- package/components/PostPreviewDialog/index.js +337 -1
- package/components/PostPreviewDialog/index.js.map +1 -0
- package/components/PostPreviewDialog/styles.css.js +8 -1
- package/components/PriceInput/FormattedNumber.js +42 -1
- package/components/PriceInput/PriceInput.js +24 -1
- package/components/PriceInput/PriceInput.js.map +1 -0
- package/components/RangeSlider/RangeSlider.css.js +8 -1
- package/components/RangeSlider/RangeSlider.css.js.map +1 -0
- package/components/RangeSlider/RangeSlider.js +404 -1
- package/components/RangeSlider/RangeSlider.js.map +1 -0
- package/components/RangeSlider/constants.js +23 -1
- package/components/RangeSlider/constants.js.map +1 -0
- package/components/RangeSlider/inputs/FromInput.js +42 -1
- package/components/RangeSlider/inputs/FromInput.js.map +1 -0
- package/components/RangeSlider/inputs/ToInput.js +45 -1
- package/components/RangeSlider/inputs/ToInput.js.map +1 -0
- package/components/RangeSlider/strategies/horizontal.js +49 -1
- package/components/RangeSlider/strategies/horizontal.js.map +1 -0
- package/components/RangeSlider/strategies/vertical.js +57 -1
- package/components/RangeSlider/strategies/vertical.js.map +1 -0
- package/components/RangeSlider/utils.js +60 -1
- package/components/RangeSlider/utils.js.map +1 -0
- package/components/RealTimeValuesSidebar/RealTimeSidebar.js +97 -1
- package/components/RealTimeValuesSidebar/RealTimeSidebar.js.map +1 -0
- package/components/RealTimeValuesSidebar/RealTimeSidebarContext.js +6 -1
- package/components/RealTimeValuesSidebar/RealTimeSidebarContext.js.map +1 -0
- package/components/RealTimeValuesSidebar/RealTimeSidebarStyles.js +66 -1
- package/components/RealTimeValuesSidebar/RealTimeSidebarStyles.js.map +1 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +170 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js.map +1 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +89 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js.map +1 -0
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.js +69 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.js.map +1 -0
- package/components/RealTimeValuesSidebar/SidebarFooter.js +240 -1
- package/components/RealTimeValuesSidebar/SidebarFooter.js.map +1 -0
- package/components/RealTimeValuesSidebar/SidebarTitle.js +72 -1
- package/components/RealTimeValuesSidebar/SidebarTitle.js.map +1 -0
- package/components/RealTimeValuesSidebar/enums.js +8 -1
- package/components/RealTimeValuesSidebar/enums.js.map +1 -0
- package/components/ResizableTable/ResizableTable.js +90 -1
- package/components/ResizableTable/ResizableTable.js.map +1 -0
- package/components/ResizableTable/ResizableTableCell.js +22 -1
- package/components/ResizableTable/ResizableTableCell.js.map +1 -0
- package/components/ResizableTable/ResizableTableHeaderCell.js +125 -1
- package/components/ResizableTable/ResizableTableHeaderCell.js.map +1 -0
- package/components/Search/Search.js +539 -1
- package/components/Search/Search.js.map +1 -0
- package/components/Search/assets/SearchIcon.js +29 -1
- package/components/Search/components/Groups.js +53 -1
- package/components/Search/components/Groups.js.map +1 -0
- package/components/Search/components/InputAdornmentLeft.js +16 -1
- package/components/Search/components/InputAdornmentLeft.js.map +1 -0
- package/components/Search/components/Listbox.js +80 -1
- package/components/Search/components/Listbox.js.map +1 -0
- package/components/Search/components/Paper.js +53 -1
- package/components/Search/components/Paper.js.map +1 -0
- package/components/Search/components/RecentSearches.js +103 -1
- package/components/Search/components/RecentSearches.js.map +1 -0
- package/components/Search/components/SelectAllListItem.js +31 -1
- package/components/Search/components/SelectAllListItem.js.map +1 -0
- package/components/Search/context/index.js +14 -1
- package/components/Search/effects/useAutocompleteOptions.js +50 -1
- package/components/Search/effects/useAutocompleteOptions.js.map +1 -0
- package/components/Search/styles.js +189 -1
- package/components/Search/utils/getFormattedOptions.js +16 -1
- package/components/Search/utils/getFormattedOptions.js.map +1 -0
- package/components/Search/utils/truncate.js +10 -1
- package/components/SearchInput/index.js +90 -1
- package/components/SearchInput/index.js.map +1 -0
- package/components/Select/SelectFilterBy.js +95 -1
- package/components/Select/SelectFilterBy.js.map +1 -0
- package/components/Select/index.js +248 -1
- package/components/Select/index.js.map +1 -0
- package/components/SettingEditors/ColorEditor/index.js +106 -1
- package/components/SettingEditors/ColorEditor/index.js.map +1 -0
- package/components/SettingEditors/ColorEditor/style.css.js +8 -1
- package/components/SettingEditors/ColorEditor/style.css.js.map +1 -0
- package/components/SettingEditors/DropdownEditor/index.js +108 -1
- package/components/SettingEditors/DropdownEditor/index.js.map +1 -0
- package/components/SettingEditors/RadioEditor/index.js +38 -1
- package/components/SettingEditors/RadioEditor/index.js.map +1 -0
- package/components/SlateFormattedText/Constants.js +11 -1
- package/components/SlateFormattedText/Constants.js.map +1 -0
- package/components/SlateFormattedText/Elements/ImageElement/ImageElement.css.js +8 -1
- package/components/SlateFormattedText/Elements/ImageElement/ImageElement.css.js.map +1 -0
- package/components/SlateFormattedText/Elements/VideoElement/style.css.js +8 -1
- package/components/SlateFormattedText/Elements/VideoElement/style.css.js.map +1 -0
- package/components/SlateFormattedText/RenderElements.js +216 -1
- package/components/SlateFormattedText/RenderElements.js.map +1 -0
- package/components/SlateFormattedText/SlateFormattedText.js +113 -1
- package/components/SlateFormattedText/SlateFormattedText.js.map +1 -0
- package/components/SlateFormattedText/style.css.js +8 -1
- package/components/SlateFormattedText/style.css.js.map +1 -0
- package/components/SlateFormattedText/utils.js +91 -1
- package/components/SlateFormattedText/utils.js.map +1 -0
- package/components/StageDesignVActual/ComparisonBar/ComparisonBar.js +89 -1
- package/components/StageDesignVActual/ComparisonBar/utils.js +21 -1
- package/components/StageDesignVActual/ComparisonBar/utils.js.map +1 -0
- package/components/StageDesignVActual/ComparisonHeader.js +72 -1
- package/components/StageDesignVActual/ComparisonHeader.js.map +1 -0
- package/components/StageDesignVActual/ComparisonRow.js +107 -1
- package/components/StageDesignVActual/ComparisonRow.js.map +1 -0
- package/components/StageDesignVActual/ComparisonTable.css.js +8 -1
- package/components/StageDesignVActual/ElementsComparison/ElementsComparison.js +63 -1
- package/components/StageDesignVActual/ElementsComparison/utils.js +65 -1
- package/components/StageDesignVActual/ElementsComparison/utils.js.map +1 -0
- package/components/StatusBadge/api.js +122 -1
- package/components/StatusBadge/api.js.map +1 -0
- package/components/StatusBadge/components/DQAccordionDetailsContent.js +92 -1
- package/components/StatusBadge/components/DQAlertTooltip.js +45 -1
- package/components/StatusBadge/components/DQAlertTooltip.js.map +1 -0
- package/components/StatusBadge/components/DQAlertsTooltip.js +252 -1
- package/components/StatusBadge/components/DQAlertsTooltip.js.map +1 -0
- package/components/StatusBadge/components/DQStatusIcon.js +40 -1
- package/components/StatusBadge/components/DQStatusIcon.js.map +1 -0
- package/components/StatusBadge/components/DQUnvalidatedContent.js +87 -1
- package/components/StatusBadge/components/DQUnvalidatedContent.js.map +1 -0
- package/components/StatusBadge/constants.js +128 -1
- package/components/StatusBadge/constants.js.map +1 -0
- package/components/StatusBadge/index.js +240 -1
- package/components/StatusBadge/index.js.map +1 -0
- package/components/StatusBadge/styles.js +142 -1
- package/components/StatusBadge/utils.js +199 -1
- package/components/StatusBadge/utils.js.map +1 -0
- package/components/Stepper/Step/Step.js +95 -1
- package/components/Stepper/Stepper.js +36 -1
- package/components/Stepper/Stepper.js.map +1 -0
- package/components/Stepper/StepsWrapper.js +27 -1
- package/components/Stepper/StepsWrapper.js.map +1 -0
- package/components/Stepper/constants.js +8 -1
- package/components/StyledMenuItem/index.js +21 -1
- package/components/StyledMenuItem/index.js.map +1 -0
- package/components/SwitchControl/index.js +162 -1
- package/components/SwitchControl/index.js.map +1 -0
- package/components/SwitchControl/style.css.js +8 -1
- package/components/SwitchControl/style.css.js.map +1 -0
- package/components/Table/Table/Table.js +13 -1
- package/components/Table/TableCell/TableCell.js +148 -1
- package/components/Table/TableCell/TableCell.js.map +1 -0
- package/components/Table/TableContainer/TableContainer.js +121 -1
- package/components/Table/TableContainer/TableContainer.js.map +1 -0
- package/components/Table/TablePagination/TablePagination.js +34 -1
- package/components/Table/TablePagination/TablePagination.js.map +1 -0
- package/components/Table/TablePaginationActions/TablePaginationActions.js +83 -1
- package/components/Table/TablePaginationActions/TablePaginationActions.js.map +1 -0
- package/components/Table/TableSortLabel/TableSortLabel.js +47 -1
- package/components/Table/TableSortLabel/TableSortLabel.js.map +1 -0
- package/components/Table/TableToolbar/TableToolbar.js +54 -1
- package/components/Table/TableToolbar/TableToolbar.js.map +1 -0
- package/components/Tabs/Tab.js +28 -1
- package/components/Tabs/Tab.js.map +1 -0
- package/components/Tabs/Tabs.js +194 -1
- package/components/Tabs/Tabs.js.map +1 -0
- package/components/Template/TemplatePopover/Styles.js +160 -1
- package/components/Template/TemplatePopover/Styles.js.map +1 -0
- package/components/Template/TemplatePopover/index.js +427 -1
- package/components/Template/TemplatePopover/index.js.map +1 -0
- package/components/Template/TemplateSharingDialog/ChipSelector.js +280 -1
- package/components/Template/TemplateSharingDialog/UsersChipSelector.js +60 -1
- package/components/Template/TemplateSharingDialog/UsersChipSelector.js.map +1 -0
- package/components/Template/TemplateSharingDialog/index.js +158 -1
- package/components/Template/TemplateSharingDialog/index.js.map +1 -0
- package/components/TextField/effects/index.js +56 -1
- package/components/TextField/effects/index.js.map +1 -0
- package/components/TextField/index.js +114 -1
- package/components/TextField/index.js.map +1 -0
- package/components/TextLink/index.js +136 -1
- package/components/TextLink/index.js.map +1 -0
- package/components/Toaster/ToastContainer.js +38 -1
- package/components/Toaster/ToastContainer.js.map +1 -0
- package/components/Toaster/Toaster.js +95 -1
- package/components/Toaster/Toaster.js.map +1 -0
- package/components/Tooltip/MuiTooltipDcWrapper.js +115 -1
- package/components/Tooltip/ScrollableTooltip.js +102 -1
- package/components/Tooltip/ScrollableTooltip.js.map +1 -0
- package/components/Tooltip/Tooltip.js +25 -1
- package/components/Tooltip/Tooltip.js.map +1 -0
- package/components/TracesEditModal/TracesEditModal.css.js +8 -1
- package/components/TracesEditModal/TracesEditModal.css.js.map +1 -0
- package/components/TracesEditModal/TracesEditModal.js +145 -1
- package/components/TracesEditModal/TracesEditModal.js.map +1 -0
- package/components/TracesEditModal/TracesEditModalContainer.js +148 -1
- package/components/TracesEditModal/TracesEditModalContainer.js.map +1 -0
- package/components/TruncatedText/index.js +66 -1
- package/components/TruncatedText/index.js.map +1 -0
- package/components/Typography.js +41 -1
- package/components/Typography.js.map +1 -0
- package/components/UserCard/index.js +176 -1
- package/components/UserCard/index.js.map +1 -0
- package/components/UserCard/style.css.js +0 -1
- package/components/UserCardPopover.js +76 -1
- package/components/UserCardPopover.js.map +1 -0
- package/components/UserMention/constants.js +8 -1
- package/components/UserMention/constants.js.map +1 -0
- package/components/UserMention/index.js +230 -1
- package/components/UserMention/index.js.map +1 -0
- package/components/UserMention/style.css.js +8 -1
- package/components/UserMention/style.css.js.map +1 -0
- package/components/UserMention/utils/index.js +129 -1
- package/components/UserMention/utils/index.js.map +1 -0
- package/components/VirtualizedTable/CustomizeColumnsDialog.js +79 -1
- package/components/VirtualizedTable/CustomizeColumnsDialog.js.map +1 -0
- package/components/VirtualizedTable/DraggableList.js +97 -1
- package/components/VirtualizedTable/DraggableList.js.map +1 -0
- package/components/VirtualizedTable/VirtualizedTable.js +289 -1
- package/components/VirtualizedTable/VirtualizedTable.js.map +1 -0
- package/components/VirtualizedTable/index.js +158 -1
- package/components/VirtualizedTable/index.js.map +1 -0
- package/components/WellSummary/ActivitySummaryChart.js +282 -1
- package/components/WellSummary/ActivitySummaryChart.js.map +1 -0
- package/components/WellSummary/FracWirelineTimeChart.js +254 -1
- package/components/WellSummary/FracWirelineTimeChart.js.map +1 -0
- package/components/WellSummary/WellSummaryItemLabel.js +74 -1
- package/components/WellSummary/WellSummaryItemLabel.js.map +1 -0
- package/components/WellSummary/WellSummaryItemTitle.js +53 -1
- package/components/WellSummary/WellSummaryItemTitle.js.map +1 -0
- package/components/WellSummary/WellSummaryItemValue.js +481 -1
- package/components/WellSummary/WellSummaryItemValue.js.map +1 -0
- package/components/WellSummary/effects/useWellSummaryData.js +432 -1
- package/components/WellSummary/index.js +7 -1
- package/components/WellSummary/index.js.map +1 -0
- package/components/WellSummary/utils.js +53 -1
- package/components/index.js +208 -1
- package/components/index.js.map +1 -0
- package/components/shared/useThrottledCallback.js +72 -1
- package/components/shared/useThrottledCallback.js.map +1 -0
- package/componentsV2/Accordion/Accordion.js +80 -1
- package/componentsV2/Accordion/Accordion.js.map +1 -0
- package/componentsV2/Accordion/Accordion.scss.js +8 -1
- package/componentsV2/Accordion/Accordion.scss.js.map +1 -0
- package/componentsV2/AppContainer/AppContainer.constants.js +9 -1
- package/componentsV2/AppContainer/AppContainer.constants.js.map +1 -0
- package/componentsV2/AppContainer/AppContainer.js +38 -1
- package/componentsV2/AppContainer/AppContainer.js.map +1 -0
- package/componentsV2/AppContainer/AppContainer.scss.js +8 -1
- package/componentsV2/AppContainer/AppContainer.scss.js.map +1 -0
- package/componentsV2/AppFooter/AppFooter.js +61 -1
- package/componentsV2/AppFooter/AppFooter.js.map +1 -0
- package/componentsV2/AppFooter/AppFooter.scss.js +8 -1
- package/componentsV2/AppFooter/AppFooter.scss.js.map +1 -0
- package/componentsV2/AppFooter/DqPopover/DqAlert/DqAlert.js +37 -1
- package/componentsV2/AppFooter/DqPopover/DqAlert/DqAlert.js.map +1 -0
- package/componentsV2/AppFooter/DqPopover/DqAlert/DqAlert.scss.js +8 -1
- package/componentsV2/AppFooter/DqPopover/DqAlert/DqAlert.scss.js.map +1 -0
- package/componentsV2/AppFooter/DqPopover/DqAlertTooltip/DqAlertTooltip.js +169 -1
- package/componentsV2/AppFooter/DqPopover/DqAlertTooltip/DqAlertTooltip.js.map +1 -0
- package/componentsV2/AppFooter/DqPopover/DqAlertTooltip/DqAlertTooltip.scss.js +8 -1
- package/componentsV2/AppFooter/DqPopover/DqAlertTooltip/DqAlertTooltip.scss.js.map +1 -0
- package/componentsV2/AppFooter/DqPopover/DqAsset/DqAsset.js +140 -1
- package/componentsV2/AppFooter/DqPopover/DqAsset/DqAsset.js.map +1 -0
- package/componentsV2/AppFooter/DqPopover/DqAsset/DqAsset.scss.js +8 -1
- package/componentsV2/AppFooter/DqPopover/DqAsset/DqAsset.scss.js.map +1 -0
- package/componentsV2/AppFooter/DqPopover/DqPopover.scss.js +8 -1
- package/componentsV2/AppFooter/DqPopover/DqPopover.scss.js.map +1 -0
- package/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js +63 -1
- package/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js.map +1 -0
- package/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.scss.js +8 -1
- package/componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.scss.js.map +1 -0
- package/componentsV2/AppFooter/Warning.js +85 -1
- package/componentsV2/AppFooter/Warning.js.map +1 -0
- package/componentsV2/AppHeader/AppAssets/AppAssets.scss.js +8 -1
- package/componentsV2/AppHeader/AppAssets/AppAssets.scss.js.map +1 -0
- package/componentsV2/AppHeader/AppBadge/AppBadge.scss.js +8 -1
- package/componentsV2/AppHeader/AppBadge/AppBadge.scss.js.map +1 -0
- package/componentsV2/AppHeader/AppHeader.constants.js +12 -1
- package/componentsV2/AppHeader/AppHeader.constants.js.map +1 -0
- package/componentsV2/AppHeader/AppHeader.js +92 -1
- package/componentsV2/AppHeader/AppHeader.js.map +1 -0
- package/componentsV2/AppHeader/AppHeader.scss.js +8 -1
- package/componentsV2/AppHeader/AppHeader.scss.js.map +1 -0
- package/componentsV2/AppHeader/PadMode/PadMode.scss.js +8 -1
- package/componentsV2/AppHeader/PadMode/PadMode.scss.js.map +1 -0
- package/componentsV2/Avatar/Avatar.js +42 -1
- package/componentsV2/Avatar/Avatar.js.map +1 -0
- package/componentsV2/Avatar/Avatar.scss.js +8 -1
- package/componentsV2/Avatar/Avatar.scss.js.map +1 -0
- package/componentsV2/Avatar/constants.js +63 -1
- package/componentsV2/Avatar/constants.js.map +1 -0
- package/componentsV2/AvatarGroup/AvatarGroup.js +52 -1
- package/componentsV2/AvatarGroup/AvatarGroup.js.map +1 -0
- package/componentsV2/AvatarGroup/AvatarGroup.scss.js +8 -1
- package/componentsV2/AvatarGroup/AvatarGroup.scss.js.map +1 -0
- package/componentsV2/BadgeBase/BadgeBase.scss.js +8 -1
- package/componentsV2/BadgeBase/BadgeBase.scss.js.map +1 -0
- package/componentsV2/BadgeComment/BadgeComment.js +29 -1
- package/componentsV2/BadgeComment/BadgeComment.js.map +1 -0
- package/componentsV2/BadgeComment/BadgeComment.scss.js +8 -1
- package/componentsV2/BadgeComment/BadgeComment.scss.js.map +1 -0
- package/componentsV2/BadgeComment/BadgeIcon.js +25 -1
- package/componentsV2/BadgeComment/BadgeIcon.js.map +1 -0
- package/componentsV2/BadgeCounter/BadgeCounter.js +46 -1
- package/componentsV2/BadgeCounter/BadgeCounter.js.map +1 -0
- package/componentsV2/BadgeDot/BadgeDot.js +39 -1
- package/componentsV2/BadgeDot/BadgeDot.js.map +1 -0
- package/componentsV2/BadgeDot/BadgeDot.scss.js +8 -1
- package/componentsV2/BadgeDot/BadgeDot.scss.js.map +1 -0
- package/componentsV2/Breadcrumbs/Breadcrumbs.js +73 -1
- package/componentsV2/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/componentsV2/Breadcrumbs/Breadcrumbs.scss.js +8 -1
- package/componentsV2/Breadcrumbs/Breadcrumbs.scss.js.map +1 -0
- package/componentsV2/Button/Button.js +75 -1
- package/componentsV2/Button/Button.js.map +1 -0
- package/componentsV2/Button/Button.scss.js +8 -1
- package/componentsV2/Button/Button.scss.js.map +1 -0
- package/componentsV2/ButtonIcon/ButtonIcon.js +51 -1
- package/componentsV2/ButtonIcon/ButtonIcon.js.map +1 -0
- package/componentsV2/ButtonIcon/ButtonIcon.scss.js +8 -1
- package/componentsV2/ButtonIcon/ButtonIcon.scss.js.map +1 -0
- package/componentsV2/ButtonLive/ButtonLive.js +69 -1
- package/componentsV2/ButtonLive/ButtonLive.js.map +1 -0
- package/componentsV2/ButtonLive/ButtonLive.scss.js +8 -1
- package/componentsV2/ButtonLive/ButtonLive.scss.js.map +1 -0
- package/componentsV2/Checkbox/Checkbox.js +36 -1
- package/componentsV2/Checkbox/Checkbox.js.map +1 -0
- package/componentsV2/CheckboxGroup/CheckboxGroup.js +49 -1
- package/componentsV2/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/componentsV2/Chip/Chip.js +121 -1
- package/componentsV2/Chip/Chip.js.map +1 -0
- package/componentsV2/Chip/Chip.scss.js +8 -1
- package/componentsV2/Chip/Chip.scss.js.map +1 -0
- package/componentsV2/ChipAlert/ChipAlert.js +48 -1
- package/componentsV2/ChipAlert/ChipAlert.js.map +1 -0
- package/componentsV2/ChipAlert/ChipAlert.scss.js +8 -1
- package/componentsV2/ChipAlert/ChipAlert.scss.js.map +1 -0
- package/componentsV2/ChipIndicator/ChipIndicator.js +32 -1
- package/componentsV2/ChipIndicator/ChipIndicator.js.map +1 -0
- package/componentsV2/ChipIndicator/ChipIndicator.scss.js +8 -1
- package/componentsV2/ChipIndicator/ChipIndicator.scss.js.map +1 -0
- package/componentsV2/CopyToClipboard/CopyToClipboard.js +82 -1
- package/componentsV2/CopyToClipboard/CopyToClipboard.js.map +1 -0
- package/componentsV2/CopyToClipboard/CopyToClipboard.scss.js +8 -1
- package/componentsV2/CopyToClipboard/CopyToClipboard.scss.js.map +1 -0
- package/componentsV2/Counter/Counter.js +78 -1
- package/componentsV2/Counter/Counter.js.map +1 -0
- package/componentsV2/Counter/Counter.scss.js +8 -1
- package/componentsV2/Counter/Counter.scss.js.map +1 -0
- package/componentsV2/EmptyState/EmptyState.js +36 -1
- package/componentsV2/EmptyState/EmptyState.js.map +1 -0
- package/componentsV2/EmptyState/EmptyState.scss.js +8 -1
- package/componentsV2/EmptyState/EmptyState.scss.js.map +1 -0
- package/componentsV2/EmptyState/constants.js +35 -1
- package/componentsV2/EmptyState/constants.js.map +1 -0
- package/componentsV2/FileIcon/FileIcon.js +25 -1
- package/componentsV2/FileIcon/FileIcon.js.map +1 -0
- package/componentsV2/FileIcon/FileIcon.scss.js +8 -1
- package/componentsV2/FileIcon/FileIcon.scss.js.map +1 -0
- package/componentsV2/FileIcon/constants.js +38 -1
- package/componentsV2/FileIcon/constants.js.map +1 -0
- package/componentsV2/FileIcon/icons/ArchiveFileIcon.js +39 -1
- package/componentsV2/FileIcon/icons/ArchiveFileIcon.js.map +1 -0
- package/componentsV2/FileIcon/icons/CSVFileIcon.js +45 -1
- package/componentsV2/FileIcon/icons/CSVFileIcon.js.map +1 -0
- package/componentsV2/FileIcon/icons/DocFileIcon.js +36 -1
- package/componentsV2/FileIcon/icons/DocFileIcon.js.map +1 -0
- package/componentsV2/FileIcon/icons/EDMFileIcon.js +45 -1
- package/componentsV2/FileIcon/icons/EDMFileIcon.js.map +1 -0
- package/componentsV2/FileIcon/icons/ExcelFileIcon.js +33 -1
- package/componentsV2/FileIcon/icons/ExcelFileIcon.js.map +1 -0
- package/componentsV2/FileIcon/icons/ImageFileIcon.js +42 -1
- package/componentsV2/FileIcon/icons/ImageFileIcon.js.map +1 -0
- package/componentsV2/FileIcon/icons/JsonFileIcon.js +42 -1
- package/componentsV2/FileIcon/icons/JsonFileIcon.js.map +1 -0
- package/componentsV2/FileIcon/icons/LasFileIcon.js +51 -1
- package/componentsV2/FileIcon/icons/LasFileIcon.js.map +1 -0
- package/componentsV2/FileIcon/icons/OtherFileIcon.js +42 -1
- package/componentsV2/FileIcon/icons/OtherFileIcon.js.map +1 -0
- package/componentsV2/FileIcon/icons/PdfFileIcon.js +39 -1
- package/componentsV2/FileIcon/icons/PdfFileIcon.js.map +1 -0
- package/componentsV2/FileIcon/icons/PowerPointFileIcon.js +42 -1
- package/componentsV2/FileIcon/icons/PowerPointFileIcon.js.map +1 -0
- package/componentsV2/FileIcon/icons/TxtFileIcon.js +48 -1
- package/componentsV2/FileIcon/icons/TxtFileIcon.js.map +1 -0
- package/componentsV2/FileIcon/icons/UnknownFileIcon.js +33 -1
- package/componentsV2/FileIcon/icons/UnknownFileIcon.js.map +1 -0
- package/componentsV2/FileIcon/icons/VideoFileIcon.js +42 -1
- package/componentsV2/FileIcon/icons/VideoFileIcon.js.map +1 -0
- package/componentsV2/FileIcon/icons/XmlFileIcon.js +48 -1
- package/componentsV2/FileIcon/icons/XmlFileIcon.js.map +1 -0
- package/componentsV2/FilesDropzone/FilesDropzone.js +105 -1
- package/componentsV2/FilesDropzone/FilesDropzone.js.map +1 -0
- package/componentsV2/FilesDropzone/FilesDropzone.scss.js +8 -1
- package/componentsV2/FilesDropzone/FilesDropzone.scss.js.map +1 -0
- package/componentsV2/FilesDropzone/utils.js +35 -1
- package/componentsV2/FilesDropzone/utils.js.map +1 -0
- package/componentsV2/FilesLoader/FilesLoader.js +116 -1
- package/componentsV2/FilesLoader/FilesLoader.js.map +1 -0
- package/componentsV2/FilesLoader/FilesLoader.scss.js +8 -1
- package/componentsV2/FilesLoader/FilesLoader.scss.js.map +1 -0
- package/componentsV2/FilesLoader/utils.js +12 -1
- package/componentsV2/FilesLoader/utils.js.map +1 -0
- package/componentsV2/FilesProcessor/FilesProcessor.js +124 -1
- package/componentsV2/FilesProcessor/FilesProcessor.js.map +1 -0
- package/componentsV2/FilesProcessor/FilesProcessor.scss.js +8 -1
- package/componentsV2/FilesProcessor/FilesProcessor.scss.js.map +1 -0
- package/componentsV2/FilesProcessor/Processor.js +175 -1
- package/componentsV2/FilesProcessor/Processor.js.map +1 -0
- package/componentsV2/Grid/Cell.js +28 -1
- package/componentsV2/Grid/Cell.js.map +1 -0
- package/componentsV2/Grid/Grid.js +41 -1
- package/componentsV2/Grid/Grid.js.map +1 -0
- package/componentsV2/Grid/Grid.scss.js +8 -1
- package/componentsV2/Grid/Grid.scss.js.map +1 -0
- package/componentsV2/Grid/constants.js +4 -1
- package/componentsV2/Grid/constants.js.map +1 -0
- package/componentsV2/Header/Header.js +45 -1
- package/componentsV2/Header/Header.js.map +1 -0
- package/componentsV2/Header/Header.scss.js +8 -1
- package/componentsV2/Header/Header.scss.js.map +1 -0
- package/componentsV2/IndicatorLive/IndicatorLive.js +63 -1
- package/componentsV2/IndicatorLive/IndicatorLive.js.map +1 -0
- package/componentsV2/IndicatorLive/IndicatorLive.scss.js +8 -1
- package/componentsV2/IndicatorLive/IndicatorLive.scss.js.map +1 -0
- package/componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js +8 -1
- package/componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js.map +1 -0
- package/componentsV2/LoaderCircular/LoaderCircular.js +32 -1
- package/componentsV2/LoaderCircular/LoaderCircular.js.map +1 -0
- package/componentsV2/LoaderLinear/LoaderLinear.js +20 -1
- package/componentsV2/LoaderLinear/LoaderLinear.js.map +1 -0
- package/componentsV2/LoaderLinear/LoaderLinear.scss.js +8 -1
- package/componentsV2/LoaderLinear/LoaderLinear.scss.js.map +1 -0
- package/componentsV2/LoaderLogo/LoaderLogo.js +27 -1
- package/componentsV2/LoaderLogo/LoaderLogo.js.map +1 -0
- package/componentsV2/LoaderLogo/LoaderLogo.scss.js +8 -1
- package/componentsV2/LoaderLogo/LoaderLogo.scss.js.map +1 -0
- package/componentsV2/Menu/Menu.js +43 -1
- package/componentsV2/Menu/Menu.js.map +1 -0
- package/componentsV2/Menu/Menu.scss.js +8 -1
- package/componentsV2/Menu/Menu.scss.js.map +1 -0
- package/componentsV2/Menu/MenuDivider/MenuDivider.scss.js +8 -1
- package/componentsV2/Menu/MenuDivider/MenuDivider.scss.js.map +1 -0
- package/componentsV2/Menu/MenuGroup/MenuGroup.scss.js +8 -1
- package/componentsV2/Menu/MenuGroup/MenuGroup.scss.js.map +1 -0
- package/componentsV2/Menu/MenuItem/MenuItem.scss.js +8 -1
- package/componentsV2/Menu/MenuItem/MenuItem.scss.js.map +1 -0
- package/componentsV2/Modal/Modal.js +150 -1
- package/componentsV2/Modal/Modal.js.map +1 -0
- package/componentsV2/Modal/Modal.scss.js +8 -1
- package/componentsV2/Modal/Modal.scss.js.map +1 -0
- package/componentsV2/Paper/Paper.js +33 -1
- package/componentsV2/Paper/Paper.js.map +1 -0
- package/componentsV2/Paper/Paper.scss.js +8 -1
- package/componentsV2/Paper/Paper.scss.js.map +1 -0
- package/componentsV2/Popover/Popover.js +126 -1
- package/componentsV2/Popover/Popover.js.map +1 -0
- package/componentsV2/Popover/Popover.scss.js +8 -1
- package/componentsV2/Popover/Popover.scss.js.map +1 -0
- package/componentsV2/Popover/utils.js +76 -1
- package/componentsV2/Popover/utils.js.map +1 -0
- package/componentsV2/Popper/Popper.js +45 -1
- package/componentsV2/Popper/Popper.js.map +1 -0
- package/componentsV2/Radio/Radio.js +34 -1
- package/componentsV2/Radio/Radio.js.map +1 -0
- package/componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js +8 -1
- package/componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js.map +1 -0
- package/componentsV2/RadioGroup/RadioGroup.js +42 -1
- package/componentsV2/RadioGroup/RadioGroup.js.map +1 -0
- package/componentsV2/Skeleton/Skeleton.js +25 -1
- package/componentsV2/Skeleton/Skeleton.js.map +1 -0
- package/componentsV2/Skeleton/Skeleton.scss.js +8 -1
- package/componentsV2/Skeleton/Skeleton.scss.js.map +1 -0
- package/componentsV2/Stepper/Step/Step.scss.js +8 -1
- package/componentsV2/Stepper/Step/Step.scss.js.map +1 -0
- package/componentsV2/Stepper/Stepper.js +47 -1
- package/componentsV2/Stepper/Stepper.js.map +1 -0
- package/componentsV2/Stepper/Stepper.scss.js +8 -1
- package/componentsV2/Stepper/Stepper.scss.js.map +1 -0
- package/componentsV2/Switch/Switch.js +78 -1
- package/componentsV2/Switch/Switch.js.map +1 -0
- package/componentsV2/Switch/Switch.scss.js +8 -1
- package/componentsV2/Switch/Switch.scss.js.map +1 -0
- package/componentsV2/Tabs/Tabs.js +95 -1
- package/componentsV2/Tabs/Tabs.js.map +1 -0
- package/componentsV2/Tabs/Tabs.scss.js +8 -1
- package/componentsV2/Tabs/Tabs.scss.js.map +1 -0
- package/componentsV2/Text/Text.js +66 -1
- package/componentsV2/Text/Text.js.map +1 -0
- package/componentsV2/Text/Text.scss.js +8 -1
- package/componentsV2/Text/Text.scss.js.map +1 -0
- package/componentsV2/TextEndTruncated/TextEndTruncated.js +70 -1
- package/componentsV2/TextEndTruncated/TextEndTruncated.js.map +1 -0
- package/componentsV2/TextEndTruncated/TextEndTruncated.scss.js +8 -1
- package/componentsV2/TextEndTruncated/TextEndTruncated.scss.js.map +1 -0
- package/componentsV2/TextInput/TextInput.js +122 -1
- package/componentsV2/TextInput/TextInput.js.map +1 -0
- package/componentsV2/TextInput/TextInput.scss.js +8 -1
- package/componentsV2/TextInput/TextInput.scss.js.map +1 -0
- package/componentsV2/TextInput/useShrink.js +87 -1
- package/componentsV2/TextInput/useShrink.js.map +1 -0
- package/componentsV2/TextLink/TextLink.js +71 -1
- package/componentsV2/TextLink/TextLink.js.map +1 -0
- package/componentsV2/TextLink/TextLink.scss.js +8 -1
- package/componentsV2/TextLink/TextLink.scss.js.map +1 -0
- package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js +8 -1
- package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js.map +1 -0
- package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.js +91 -1
- package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.js.map +1 -0
- package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js +8 -1
- package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js.map +1 -0
- package/componentsV2/ToggleButtons/ToggleButtons.js +67 -1
- package/componentsV2/ToggleButtons/ToggleButtons.js.map +1 -0
- package/componentsV2/ToggleButtons/ToggleButtons.scss.js +8 -1
- package/componentsV2/ToggleButtons/ToggleButtons.scss.js.map +1 -0
- package/componentsV2/Tooltip/DcTooltip.js +77 -1
- package/componentsV2/Tooltip/DcTooltip.js.map +1 -0
- package/componentsV2/Tooltip/Tooltip.js +77 -1
- package/componentsV2/Tooltip/Tooltip.js.map +1 -0
- package/componentsV2/Tooltip/Tooltip.scss.js +8 -1
- package/componentsV2/Tooltip/Tooltip.scss.js.map +1 -0
- package/componentsV2/index.js +54 -1
- package/componentsV2/index.js.map +1 -0
- package/config/extendNative.js +16 -1
- package/config/extendNative.js.map +1 -0
- package/config/highcharts/highcharts-contour.js +792 -1
- package/config/highcharts/highcharts-contour.js.map +1 -0
- package/config/highcharts/highcharts.js +83 -1
- package/config/highcharts/highcharts.js.map +1 -0
- package/config/index.js +5 -1
- package/config/index.js.map +1 -0
- package/config/mapbox/index.js +8 -1
- package/config/mapbox/index.js.map +1 -0
- package/config/theme/accordionOverrides.js +114 -1
- package/config/theme/accordionOverrides.js.map +1 -0
- package/config/theme/buttonOverrides.js +108 -1
- package/config/theme/buttonOverrides.js.map +1 -0
- package/config/theme/checkboxOverrides.js +45 -1
- package/config/theme/checkboxOverrides.js.map +1 -0
- package/config/theme/chipOverrides.js +104 -1
- package/config/theme/chipOverrides.js.map +1 -0
- package/config/theme/dateTimePickerThemeOverrides.js +128 -1
- package/config/theme/dateTimePickerThemeOverrides.js.map +1 -0
- package/config/theme/fabOverrides.js +42 -1
- package/config/theme/fabOverrides.js.map +1 -0
- package/config/theme/formControlLabelOverrides.js +45 -1
- package/config/theme/formControlLabelOverrides.js.map +1 -0
- package/config/theme/formGroupOverrides.js +12 -1
- package/config/theme/formGroupOverrides.js.map +1 -0
- package/config/theme/index.js +220 -1
- package/config/theme/index.js.map +1 -0
- package/config/theme/lightThemePalette.mjs.js +31 -1
- package/config/theme/lightThemePalette.mjs.js.map +1 -0
- package/config/theme/palette.mjs.js +81 -1
- package/config/theme/palette.mjs.js.map +1 -0
- package/config/theme/radioOverrides.js +44 -1
- package/config/theme/radioOverrides.js.map +1 -0
- package/config/theme/tableOverrides.js +150 -1
- package/config/theme/tableOverrides.js.map +1 -0
- package/config/theme/textFieldOverrides.js +100 -1
- package/config/theme/textFieldOverrides.js.map +1 -0
- package/config/theme/themeVariables.mjs.js +45 -1
- package/config/theme/themeVariables.mjs.js.map +1 -0
- package/config/theme/toggleButtonsGroupOverrides.js +85 -1
- package/config/theme/toggleButtonsGroupOverrides.js.map +1 -0
- package/config/theme/tooltipOverrides.js +33 -1
- package/config/theme/tooltipOverrides.js.map +1 -0
- package/constants/accuracy.js +10 -1
- package/constants/accuracy.js.map +1 -0
- package/constants/alerts.js +303 -1
- package/constants/alerts.js.map +1 -0
- package/constants/appPackages.js +17 -1
- package/constants/appPackages.js.map +1 -0
- package/constants/apps.js +273 -1
- package/constants/apps.js.map +1 -0
- package/constants/assetTypes.js +40 -1
- package/constants/assetTypes.js.map +1 -0
- package/constants/bha.js +290 -1
- package/constants/bha.js.map +1 -0
- package/constants/casing.js +687 -1
- package/constants/casing.js.map +1 -0
- package/constants/classNames.js +6 -1
- package/constants/classNames.js.map +1 -0
- package/constants/completion.js +502 -1
- package/constants/completion.js.map +1 -0
- package/constants/componentsSettings.js +8 -1
- package/constants/componentsSettings.js.map +1 -0
- package/constants/corvaCompanyId.js +6 -1
- package/constants/corvaCompanyId.js.map +1 -0
- package/constants/dateTimeFormat.js +5 -1
- package/constants/dateTimeFormat.js.map +1 -0
- package/constants/devcenter.js +4 -1
- package/constants/devcenter.js.map +1 -0
- package/constants/drillstring.js +13062 -1
- package/constants/drillstring.js.map +1 -0
- package/constants/feed.js +273 -1
- package/constants/feed.js.map +1 -0
- package/constants/goals.js +79 -1
- package/constants/goals.js.map +1 -0
- package/constants/index.js +33 -1
- package/constants/index.js.map +1 -0
- package/constants/localStorageKeys.js +5 -1
- package/constants/localStorageKeys.js.map +1 -0
- package/constants/mixpanel.js +8 -1
- package/constants/notifications.js +88 -1
- package/constants/notifications.js.map +1 -0
- package/constants/rigActivity.js +43 -1
- package/constants/rigActivity.js.map +1 -0
- package/constants/segment.js +49 -1
- package/constants/segment.js.map +1 -0
- package/constants/sizes.js +9 -1
- package/constants/streamSourceType.js +48 -1
- package/constants/streamSourceType.js.map +1 -0
- package/constants/subscriptions.js +13 -1
- package/constants/theme.js +7 -1
- package/constants/theme.js.map +1 -0
- package/constants/units.js +72 -1
- package/constants/units.js.map +1 -0
- package/constants/wellSummary.js +587 -1
- package/constants/wellSummary.js.map +1 -0
- package/effects/index.js +14 -1
- package/effects/index.js.map +1 -0
- package/effects/useDelayedDcFullscreenElemOpen.js +68 -1
- package/effects/useDelayedDcFullscreenElemOpen.js.map +1 -0
- package/effects/useDevCenterApp.js +86 -1
- package/effects/useDevCenterApp.js.map +1 -0
- package/effects/useEscPress.js +18 -1
- package/effects/useEscPress.js.map +1 -0
- package/effects/useIsAssetViewer.js +90 -1
- package/effects/useIsAssetViewer.js.map +1 -0
- package/effects/useLoadedData.js +93 -1
- package/effects/useLoadedData.js.map +1 -0
- package/effects/useMatchAppContainerSize.js +53 -1
- package/effects/useMatchAppContainerSize.js.map +1 -0
- package/effects/useOutsideClick.js +29 -1
- package/effects/useOutsideClick.js.map +1 -0
- package/effects/usePadSelectorSelectedWells.js +59 -1
- package/effects/usePadSelectorSelectedWells.js.map +1 -0
- package/effects/useResizeObserver.js +23 -1
- package/effects/useResizeObserver.js.map +1 -0
- package/effects/useSharedDCStore.js +22 -1
- package/effects/useSharedDCStore.js.map +1 -0
- package/effects/useSignedURL.js +21 -1
- package/effects/useSignedURL.js.map +1 -0
- package/effects/useSubscriptions.js +284 -1
- package/effects/useSubscriptions.js.map +1 -0
- package/effects/useWellnessAlerts.js +239 -1
- package/effects/useWellnessAlerts.js.map +1 -0
- package/ext-esm/@material-ui/icons/esm/ExpandLess.js +9 -1
- package/ext-esm/@material-ui/icons/esm/ExpandLess.js.map +1 -0
- package/ext-esm/@material-ui/icons/esm/ExpandMore.js +9 -1
- package/ext-esm/@material-ui/icons/esm/ExpandMore.js.map +1 -0
- package/ext-esm/@material-ui/icons/esm/Map.js +9 -1
- package/ext-esm/@material-ui/icons/esm/Map.js.map +1 -0
- package/ext-esm/@material-ui/icons/esm/UnfoldLess.js +9 -1
- package/ext-esm/@material-ui/icons/esm/UnfoldLess.js.map +1 -0
- package/ext-esm/@material-ui/icons/esm/UnfoldMore.js +9 -1
- package/ext-esm/@material-ui/icons/esm/UnfoldMore.js.map +1 -0
- package/ext-esm/@material-ui/icons/esm/utils/createSvgIcon.js +21 -1
- package/ext-esm/@material-ui/icons/esm/utils/createSvgIcon.js.map +1 -0
- package/ext-esm/style-inject/dist/style-inject.es.js +29 -1
- package/ext-esm/style-inject/dist/style-inject.es.js.map +1 -0
- package/hocs/index.js +3 -1
- package/hocs/index.js.map +1 -0
- package/hocs/withAssetEditorLockHOC.js +102 -1
- package/hocs/withAssetEditorLockHOC.js.map +1 -0
- package/hocs/withMUIProvidersHOC.js +31 -1
- package/hocs/withMUIProvidersHOC.js.map +1 -0
- package/icons/IconParkProvider.js +26 -1
- package/icons/IconParkProvider.js.map +1 -0
- package/icons/WithCustomSize.js +54 -1
- package/icons/WithCustomSize.js.map +1 -0
- package/icons/constants.js +0 -1
- package/icons/customIcons/icons/AddMessage.js +41 -1
- package/icons/customIcons/icons/Attention.js +33 -1
- package/icons/customIcons/icons/CautionFilled.js +62 -1
- package/icons/customIcons/icons/Checkbox.js +31 -1
- package/icons/customIcons/icons/CheckboxChecked.js +28 -1
- package/icons/customIcons/icons/CheckboxIndeterminate.js +31 -1
- package/icons/customIcons/icons/Collapse.js +45 -1
- package/icons/customIcons/icons/Dashboard.js +38 -1
- package/icons/customIcons/icons/Expand.js +33 -1
- package/icons/customIcons/icons/FolderClosed.js +28 -1
- package/icons/customIcons/icons/FolderClosedFilled.js +27 -1
- package/icons/customIcons/icons/FolderOpened.js +28 -1
- package/icons/customIcons/icons/Gap.js +26 -1
- package/icons/customIcons/icons/GreaterOrEqual.js +33 -1
- package/icons/customIcons/icons/LessOrEqual.js +32 -1
- package/icons/customIcons/icons/MoreApp.js +43 -1
- package/icons/customIcons/icons/MultiRuler.js +26 -1
- package/icons/customIcons/icons/Pad.js +28 -1
- package/icons/customIcons/icons/Radio.js +27 -1
- package/icons/customIcons/icons/RadioChecked.js +30 -1
- package/icons/customIcons/icons/Search.js +33 -1
- package/icons/customIcons/icons/SimulFrac.js +51 -1
- package/icons/customIcons/icons/Wellhub.js +36 -1
- package/icons/customIcons/icons/ZipperFrac.js +41 -1
- package/icons/iconParkIcons.js +298 -1
- package/icons/iconParkIcons.js.map +1 -0
- package/icons/index.js +27 -1
- package/icons/index.js.map +1 -0
- package/index.js +40 -1
- package/index.js.map +1 -0
- package/package.json +1 -1
- package/permissions/PermissionsContext.js +9 -1
- package/permissions/PermissionsContext.js.map +1 -0
- package/permissions/ProvidePermissions.js +18 -1
- package/permissions/ProvidePermissions.js.map +1 -0
- package/permissions/constants/abilities.js +18 -1
- package/permissions/constants/abilities.js.map +1 -0
- package/permissions/constants/appsPermissions.js +21 -1
- package/permissions/constants/appsPermissions.js.map +1 -0
- package/permissions/constants/index.js +482 -1
- package/permissions/constants/index.js.map +1 -0
- package/permissions/constants/settingsApps.js +148 -1
- package/permissions/constants/settingsApps.js.map +1 -0
- package/permissions/index.js +9 -1
- package/permissions/index.js.map +1 -0
- package/permissions/usePermissions.js +34 -1
- package/permissions/usePermissions.js.map +1 -0
- package/permissions/useProvidePermissions.js +110 -1
- package/permissions/useProvidePermissions.js.map +1 -0
- package/permissions/utils.js +25 -1
- package/permissions/utils.js.map +1 -0
- package/permissions/withPermissionsHOC.js +34 -1
- package/permissions/withPermissionsHOC.js.map +1 -0
- package/styles/common.scss.js +8 -1
- package/styles/common.scss.js.map +1 -0
- package/styles/counter/counter.module.scss.js +8 -1
- package/styles/counter/counter.module.scss.js.map +1 -0
- package/styles/counter/index.js +3 -1
- package/styles/counter/index.js.map +1 -0
- package/styles/customScrollbars.global.css.js +5 -1
- package/styles/customScrollbars.global.css.js.map +1 -0
- package/styles/emojiMart.global.css.js +5 -1
- package/styles/emojiMart.global.css.js.map +1 -0
- package/styles/generatedThemesVariables.global.css.js +5 -1
- package/styles/generatedThemesVariables.global.css.js.map +1 -0
- package/styles/iconPark.global.css.js +5 -1
- package/styles/iconPark.global.css.js.map +1 -0
- package/styles/index.global.css.js +5 -1
- package/styles/index.global.css.js.map +1 -0
- package/styles/index.js +3 -1
- package/styles/index.js.map +1 -0
- package/styles/lightbox.global.css.js +5 -1
- package/styles/lightbox.global.css.js.map +1 -0
- package/styles/mapbox.global.css.js +5 -1
- package/styles/mapbox.global.css.js.map +1 -0
- package/styles/reactVirtualized.global.css.js +5 -1
- package/styles/reactVirtualized.global.css.js.map +1 -0
- package/styles/typography/colors.module.scss.js +8 -1
- package/styles/typography/colors.module.scss.js.map +1 -0
- package/styles/typography/index.js +12 -1
- package/styles/typography/index.js.map +1 -0
- package/styles/typography/typography.module.scss.js +8 -1
- package/styles/typography/typography.module.scss.js.map +1 -0
- package/testing/AppTestWrapper/AppTestWrapper.js +159 -1
- package/testing/AppTestWrapper/AppTestWrapper.js.map +1 -0
- package/testing/index.js +2 -1
- package/testing/index.js.map +1 -0
- package/types/shared/Completions.js +9 -1
- package/utils/DrillstringUtils.js +767 -1
- package/utils/DrillstringUtils.js.map +1 -0
- package/utils/FluidCheckUtils.js +174 -1
- package/utils/FluidCheckUtils.js.map +1 -0
- package/utils/StageDesignVActualUtils.js +85 -1
- package/utils/StageDesignVActualUtils.js.map +1 -0
- package/utils/accuracy.js +42 -1
- package/utils/accuracy.js.map +1 -0
- package/utils/alerts.js +27 -1
- package/utils/alerts.js.map +1 -0
- package/utils/apps.js +17 -1
- package/utils/apps.js.map +1 -0
- package/utils/audio.js +39 -1
- package/utils/audio.js.map +1 -0
- package/utils/bha.js +309 -1
- package/utils/bha.js.map +1 -0
- package/utils/casing/conversion.js +34 -1
- package/utils/casing/conversion.js.map +1 -0
- package/utils/casing/index.js +5 -1
- package/utils/casing/index.js.map +1 -0
- package/utils/casing/validation.js +246 -1
- package/utils/casing/validation.js.map +1 -0
- package/utils/chartSeries.js +52 -1
- package/utils/chartSeries.js.map +1 -0
- package/utils/charts/constants.js +24 -1
- package/utils/charts/constants.js.map +1 -0
- package/utils/charts/getChartHorizontalAxis.js +68 -1
- package/utils/charts/getChartHorizontalAxis.js.map +1 -0
- package/utils/charts/getChartVerticalAxis.js +63 -1
- package/utils/charts/getChartVerticalAxis.js.map +1 -0
- package/utils/colors.js +10 -1
- package/utils/colors.js.map +1 -0
- package/utils/completion.js +74 -1
- package/utils/completion.js.map +1 -0
- package/utils/components.js +29 -1
- package/utils/components.js.map +1 -0
- package/utils/constants/units.js +425 -1
- package/utils/constants/units.js.map +1 -0
- package/utils/convert.js +314 -1
- package/utils/convert.js.map +1 -0
- package/utils/convertKeys.js +23 -1
- package/utils/convertKeys.js.map +1 -0
- package/utils/csvExport.js +218 -1
- package/utils/csvExport.js.map +1 -0
- package/utils/dashboardReports.js +251 -1
- package/utils/dashboardReports.js.map +1 -0
- package/utils/delay.js +16 -1
- package/utils/delay.js.map +1 -0
- package/utils/delayedHighcharts.js +44 -1
- package/utils/delayedHighcharts.js.map +1 -0
- package/utils/devcenter.js +75 -1
- package/utils/devcenter.js.map +1 -0
- package/utils/devcenterToasts.js +22 -1
- package/utils/devcenterToasts.js.map +1 -0
- package/utils/drillstring/conversion.js +293 -1
- package/utils/drillstring/conversion.js.map +1 -0
- package/utils/drillstring/index.js +9 -1
- package/utils/drillstring/index.js.map +1 -0
- package/utils/drillstring/schematic.js +25 -1
- package/utils/drillstring/schematic.js.map +1 -0
- package/utils/drillstring/validation.js +857 -1
- package/utils/drillstring/validation.js.map +1 -0
- package/utils/env.js +7 -1
- package/utils/env.js.map +1 -0
- package/utils/feed.js +166 -1
- package/utils/feed.js.map +1 -0
- package/utils/fileExtension.js +20 -1
- package/utils/fileExtension.js.map +1 -0
- package/utils/filePreview.js +14 -1
- package/utils/filePreview.js.map +1 -0
- package/utils/formatFileSize.js +26 -1
- package/utils/formatFileSize.js.map +1 -0
- package/utils/formatting.js +29 -1
- package/utils/formatting.js.map +1 -0
- package/utils/ga.js +6 -1
- package/utils/ga.js.map +1 -0
- package/utils/goals.js +23 -1
- package/utils/goals.js.map +1 -0
- package/utils/goalsConfig/goalsConfig.js +859 -1
- package/utils/goalsConfig/goalsConfig.js.map +1 -0
- package/utils/goalsConfig/index.js +3 -1
- package/utils/goalsConfig/index.js.map +1 -0
- package/utils/goalsConfig/utils.js +56 -1
- package/utils/goalsConfig/utils.js.map +1 -0
- package/utils/index.js +129 -1
- package/utils/index.js.map +1 -0
- package/utils/jsonaDataFormatter.js +10 -1
- package/utils/jsonaDataFormatter.js.map +1 -0
- package/utils/lasParser.js +121 -1
- package/utils/lasParser.js.map +1 -0
- package/utils/localStorage.js +14 -1
- package/utils/localStorage.js.map +1 -0
- package/utils/main.js +353 -1
- package/utils/main.js.map +1 -0
- package/utils/mapUnits.js +23 -1
- package/utils/mapUnits.js.map +1 -0
- package/utils/mapbox.js +123 -1
- package/utils/mapbox.js.map +1 -0
- package/utils/metrics/index.js +18 -1
- package/utils/metrics/index.js.map +1 -0
- package/utils/metrics/metricsCategories.js +45 -1
- package/utils/metrics/metricsCategories.js.map +1 -0
- package/utils/metrics/metricsConfig.js +983 -1
- package/utils/metrics/metricsConfig.js.map +1 -0
- package/utils/metrics/utils.js +122 -1
- package/utils/metrics/utils.js.map +1 -0
- package/utils/mobileDetect.js +17 -1
- package/utils/mobileDetect.js.map +1 -0
- package/utils/nativeMessages.js +59 -1
- package/utils/nativeMessages.js.map +1 -0
- package/utils/notificationToasts.js +28 -1
- package/utils/notificationToasts.js.map +1 -0
- package/utils/notifications.js +26 -1
- package/utils/notifications.js.map +1 -0
- package/utils/permissions.js +27 -1
- package/utils/permissions.js.map +1 -0
- package/utils/reports.js +10 -1
- package/utils/reports.js.map +1 -0
- package/utils/resolveWellHubSlug.js +70 -1
- package/utils/resolveWellHubSlug.js.map +1 -0
- package/utils/sharedDCStore.js +56 -1
- package/utils/sharedDCStore.js.map +1 -0
- package/utils/themeVariables.js +9 -1
- package/utils/themeVariables.js.map +1 -0
- package/utils/time.js +98 -1
- package/utils/time.js.map +1 -0
- package/utils/torqueAndHookloadUtils.js +20 -1
- package/utils/torqueAndHookloadUtils.js.map +1 -0
package/utils/convert.js
CHANGED
|
@@ -1 +1,314 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import convert$1 from 'corva-convert-units';
|
|
3
|
+
import { sortBy, uniqBy, mapValues } from 'lodash';
|
|
4
|
+
import { IMPERIAL_UNITS, METRIC_UNITS, UNIT_DEFINITIONS, UNIT_TYPES_DEFINITIONS_MAP } from './constants/units.js';
|
|
5
|
+
|
|
6
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
|
+
var DEFAULT_PRECISION = 2;
|
|
9
|
+
var UNIT_SYSTEM_TYPES = {
|
|
10
|
+
custom: 'custom',
|
|
11
|
+
default: 'imperial'
|
|
12
|
+
};
|
|
13
|
+
var units = {
|
|
14
|
+
imperial: IMPERIAL_UNITS,
|
|
15
|
+
metric: METRIC_UNITS,
|
|
16
|
+
custom: _objectSpread({}, IMPERIAL_UNITS)
|
|
17
|
+
};
|
|
18
|
+
var unitSystem = UNIT_SYSTEM_TYPES.custom;
|
|
19
|
+
var userUnitsUpdatesSubscribers = [];
|
|
20
|
+
var customUnitDefinitions = {};
|
|
21
|
+
var getAllUnitTypes = function getAllUnitTypes() {
|
|
22
|
+
return UNIT_DEFINITIONS;
|
|
23
|
+
};
|
|
24
|
+
var getDefaultUnits = function getDefaultUnits() {
|
|
25
|
+
return units[unitSystem];
|
|
26
|
+
};
|
|
27
|
+
var normalizeCompanyCustomUnits = function normalizeCompanyCustomUnits(customUnits) {
|
|
28
|
+
return mapValues(customUnits || {}, function (_ref, type) {
|
|
29
|
+
var measures = _ref.measures,
|
|
30
|
+
name = _ref.name;
|
|
31
|
+
return {
|
|
32
|
+
display: name,
|
|
33
|
+
imperial: type,
|
|
34
|
+
measures: measures.map(function (measure) {
|
|
35
|
+
return {
|
|
36
|
+
abbr: measure.abbr,
|
|
37
|
+
display: measure.name,
|
|
38
|
+
measure: measure.abbr,
|
|
39
|
+
plural: measure.name,
|
|
40
|
+
singular: measure.name,
|
|
41
|
+
system: 'custom'
|
|
42
|
+
};
|
|
43
|
+
}),
|
|
44
|
+
metric: type,
|
|
45
|
+
origin: type,
|
|
46
|
+
type: type
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Adds platform notification toast
|
|
53
|
+
* @param {object} newUnits
|
|
54
|
+
*/
|
|
55
|
+
function notifyAboutUserUnitsUpdate(newUnits) {
|
|
56
|
+
userUnitsUpdatesSubscribers.forEach(function (callback) {
|
|
57
|
+
return callback(newUnits);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Updates current custom unit system with user data
|
|
63
|
+
* @param {object} userData
|
|
64
|
+
* @param {Record<string, string>} userData.userUnits
|
|
65
|
+
* @param {Record<string, string>} userData.companyUnits
|
|
66
|
+
*/
|
|
67
|
+
var updateUserUnits = function updateUserUnits(_ref2) {
|
|
68
|
+
var _ref2$userUnits = _ref2.userUnits,
|
|
69
|
+
userUnits = _ref2$userUnits === void 0 ? {} : _ref2$userUnits,
|
|
70
|
+
_ref2$companyUnits = _ref2.companyUnits,
|
|
71
|
+
companyUnits = _ref2$companyUnits === void 0 ? {} : _ref2$companyUnits,
|
|
72
|
+
_ref2$companyCustomUn = _ref2.companyCustomUnitSystem,
|
|
73
|
+
companyCustomUnitSystem = _ref2$companyCustomUn === void 0 ? {} : _ref2$companyCustomUn,
|
|
74
|
+
_ref2$userCustomUnitS = _ref2.userCustomUnitSystem,
|
|
75
|
+
userCustomUnitSystem = _ref2$userCustomUnitS === void 0 ? {} : _ref2$userCustomUnitS,
|
|
76
|
+
companyCustomUnits = _ref2.companyCustomUnits;
|
|
77
|
+
units.custom = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, IMPERIAL_UNITS), companyUnits), companyCustomUnitSystem), userUnits), userCustomUnitSystem);
|
|
78
|
+
if (companyCustomUnits) {
|
|
79
|
+
customUnitDefinitions = normalizeCompanyCustomUnits(companyCustomUnits);
|
|
80
|
+
}
|
|
81
|
+
notifyAboutUserUnitsUpdate(units.custom);
|
|
82
|
+
};
|
|
83
|
+
function getUserUnits() {
|
|
84
|
+
return units.custom;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Used for DC Isolated App container
|
|
89
|
+
* @param {Function} newCallback
|
|
90
|
+
*/
|
|
91
|
+
function subscribeForUserUnitsUpdates(newCallback) {
|
|
92
|
+
userUnitsUpdatesSubscribers.push(newCallback);
|
|
93
|
+
return function () {
|
|
94
|
+
userUnitsUpdatesSubscribers = userUnitsUpdatesSubscribers.filter(function (callback) {
|
|
95
|
+
return callback !== newCallback;
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Retrieves a unit of a given type by current unit system
|
|
102
|
+
* @param {string} unitType length, mass, volume, etc
|
|
103
|
+
* @returns {string}
|
|
104
|
+
*/
|
|
105
|
+
var getUnitPreference = function getUnitPreference(unitType) {
|
|
106
|
+
return units[unitSystem][unitType];
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Lists all the units of a specific type
|
|
111
|
+
* @param {string} type
|
|
112
|
+
* @returns {Object[]}
|
|
113
|
+
*/
|
|
114
|
+
var getUnitsByType = function getUnitsByType(type) {
|
|
115
|
+
var _customUnitDefinition;
|
|
116
|
+
var definition = UNIT_TYPES_DEFINITIONS_MAP[type];
|
|
117
|
+
if (definition) {
|
|
118
|
+
return sortBy(convert$1().list(definition.origin), 'abbr');
|
|
119
|
+
}
|
|
120
|
+
// NOTE: Look up in custom company units
|
|
121
|
+
return ((_customUnitDefinition = customUnitDefinitions[type]) === null || _customUnitDefinition === void 0 ? void 0 : _customUnitDefinition.measures) || [];
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Returns unique units list for some measurements that use same units for imperial and metric system
|
|
126
|
+
* @param {string} type
|
|
127
|
+
* @returns {Object[]}
|
|
128
|
+
*/
|
|
129
|
+
var getUniqueUnitsByType = function getUniqueUnitsByType(type) {
|
|
130
|
+
var definition = getUnitsByType(type);
|
|
131
|
+
return uniqBy(definition, 'abbr');
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @deprecated - unit system can be custom, better to use convert functions
|
|
136
|
+
*/
|
|
137
|
+
var getUnitSystem = function getUnitSystem() {
|
|
138
|
+
return unitSystem;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Retrieves the unit display name for a given unit type
|
|
143
|
+
* @param {string} unitType length, mass, volume, etc
|
|
144
|
+
* @param {string} [unitTo=null]
|
|
145
|
+
* @returns {string}
|
|
146
|
+
*/
|
|
147
|
+
var getUnitDisplay = function getUnitDisplay(unitType) {
|
|
148
|
+
var _UNIT_TYPES_DEFINITIO, _getUnitsByType$find;
|
|
149
|
+
var unitTo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
150
|
+
var measure = (_UNIT_TYPES_DEFINITIO = UNIT_TYPES_DEFINITIONS_MAP[unitType]) === null || _UNIT_TYPES_DEFINITIO === void 0 ? void 0 : _UNIT_TYPES_DEFINITIO.origin;
|
|
151
|
+
var convertedValue = convert$1(undefined, measure);
|
|
152
|
+
if (unitTo === null) {
|
|
153
|
+
unitTo = units.custom[unitType];
|
|
154
|
+
}
|
|
155
|
+
if (convertedValue.getUnit(unitTo)) {
|
|
156
|
+
return convertedValue.describe(unitTo).display;
|
|
157
|
+
}
|
|
158
|
+
var customUnitDisplay = (_getUnitsByType$find = getUnitsByType(unitType).find(function (_ref3) {
|
|
159
|
+
var measure = _ref3.measure;
|
|
160
|
+
return measure === unitTo;
|
|
161
|
+
})) === null || _getUnitsByType$find === void 0 ? void 0 : _getUnitsByType$find.display;
|
|
162
|
+
return customUnitDisplay || unitTo;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @deprecated - should not depends on imperial system only, because we have mixed unit system
|
|
167
|
+
* Retrieves the unit display name for imperial unit type
|
|
168
|
+
* @param unitType length, mass, volume, etc
|
|
169
|
+
* @returns string
|
|
170
|
+
*/
|
|
171
|
+
var getDefaultImperialUnit = function getDefaultImperialUnit(unitType) {
|
|
172
|
+
return units.imperial[unitType];
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Converts a single value
|
|
177
|
+
* @param {number} value The value we want converted.
|
|
178
|
+
* @param {string} unitType The class of unit such as volume, length, mass, etc.
|
|
179
|
+
* @param {string} from The specific unit such as m, gal, lb, etc.
|
|
180
|
+
* @param {string} to (optional) the unit that we want to convert the value to.
|
|
181
|
+
* @param {number} precision to round to the value
|
|
182
|
+
* May be passed in my ConvertList
|
|
183
|
+
* @return {number}
|
|
184
|
+
*/
|
|
185
|
+
var convertValue = function convertValue(value, unitType, from) {
|
|
186
|
+
var _UNIT_TYPES_DEFINITIO2;
|
|
187
|
+
var to = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
188
|
+
var precision = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : DEFAULT_PRECISION;
|
|
189
|
+
if (!value || !from || from === to || !!customUnitDefinitions[unitType]) {
|
|
190
|
+
return value;
|
|
191
|
+
}
|
|
192
|
+
if (to === null) {
|
|
193
|
+
to = getUnitPreference(unitType);
|
|
194
|
+
if (!to || from === to) {
|
|
195
|
+
return value;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
var measure = (_UNIT_TYPES_DEFINITIO2 = UNIT_TYPES_DEFINITIONS_MAP[unitType]) === null || _UNIT_TYPES_DEFINITIO2 === void 0 ? void 0 : _UNIT_TYPES_DEFINITIO2.origin;
|
|
199
|
+
var convertedValue = convert$1(value, measure).from(from).to(to);
|
|
200
|
+
return Number.isFinite(convertedValue) ? Math.round(convertedValue * Math.pow(10, precision)) / Math.pow(10, precision) : convertedValue;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Converts a key in an immutable list of immutables.
|
|
205
|
+
* @param {*} immt The list of maps/lists containing values that we want to convert
|
|
206
|
+
* @param {string} key The key in each sub-iterable that we want to convert
|
|
207
|
+
* @param {string} unitType The class of unit such as volume, length, mass, etc.
|
|
208
|
+
* @param {string} from The specific unit such as m, gal, lb, etc.
|
|
209
|
+
* @param {string} to (optional) the unit that we want to convert the value to.
|
|
210
|
+
* @param {number} precision to round to the value
|
|
211
|
+
* @returns {*} Immutable
|
|
212
|
+
*/
|
|
213
|
+
var convertImmutables = function convertImmutables(immt, key, unitType, from) {
|
|
214
|
+
var to = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
215
|
+
var precision = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : DEFAULT_PRECISION;
|
|
216
|
+
return immt.map(function (currentUnitMap) {
|
|
217
|
+
var convertedValue = convertValue(currentUnitMap.get(key), unitType, from, to, precision);
|
|
218
|
+
return currentUnitMap.set(key, convertedValue);
|
|
219
|
+
});
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* convertImmutablesByBatch is the expansion of convertImmutables
|
|
224
|
+
* It allows you to convert the immutables by multiple keys/units at once.
|
|
225
|
+
*
|
|
226
|
+
* @param {*} immt immutable you want to convert
|
|
227
|
+
* @param {*} conversionRules is the array of conversion to be done { key, unitType, from, to }
|
|
228
|
+
*/
|
|
229
|
+
var convertImmutablesByBatch = function convertImmutablesByBatch(immt, conversionRules) {
|
|
230
|
+
return immt.map(function (item) {
|
|
231
|
+
return conversionRules.reduce(function (convertingItem, conversionRule) {
|
|
232
|
+
var key = conversionRule.key,
|
|
233
|
+
unitType = conversionRule.unitType,
|
|
234
|
+
from = conversionRule.from,
|
|
235
|
+
to = conversionRule.to,
|
|
236
|
+
precision = conversionRule.precision;
|
|
237
|
+
var val = convertingItem.get(key);
|
|
238
|
+
var convertedValue = convertValue(val, unitType, from, to, precision);
|
|
239
|
+
return convertingItem.set(key, convertedValue);
|
|
240
|
+
}, item);
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Converts a property in a simple array of js objects or arrays.
|
|
246
|
+
* @param {number[][]} iterable The array of iterables containing values that we want to convert
|
|
247
|
+
* @param {string} key The key in each sub-element that we want to convert
|
|
248
|
+
* @param {string} unitType The class of unit such as volume, length, mass, etc.
|
|
249
|
+
* @param {string} from The specific unit such as m, gal, lb, etc.
|
|
250
|
+
* @param {string} to (optional) the unit that we want to convert the value to.
|
|
251
|
+
* @returns {number[][]}
|
|
252
|
+
*/
|
|
253
|
+
var convertArray = function convertArray() {
|
|
254
|
+
var iterable = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
255
|
+
var key = arguments.length > 1 ? arguments[1] : undefined;
|
|
256
|
+
var unitType = arguments.length > 2 ? arguments[2] : undefined;
|
|
257
|
+
var from = arguments.length > 3 ? arguments[3] : undefined;
|
|
258
|
+
var to = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
259
|
+
var precision = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : DEFAULT_PRECISION;
|
|
260
|
+
for (var i = 0; i < iterable.length; i += 1) {
|
|
261
|
+
iterable[i][key] = convertValue(iterable[i][key], unitType, from, to, precision);
|
|
262
|
+
}
|
|
263
|
+
return iterable;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Retrieves the full name for a given unit type, singular
|
|
268
|
+
* @param {string} unitType length, mass, volume, etc
|
|
269
|
+
* @returns {string}
|
|
270
|
+
*/
|
|
271
|
+
var getUnitSingular = function getUnitSingular(unitType) {
|
|
272
|
+
var _UNIT_TYPES_DEFINITIO3;
|
|
273
|
+
var measure = (_UNIT_TYPES_DEFINITIO3 = UNIT_TYPES_DEFINITIONS_MAP[unitType]) === null || _UNIT_TYPES_DEFINITIO3 === void 0 ? void 0 : _UNIT_TYPES_DEFINITIO3.origin;
|
|
274
|
+
if (customUnitDefinitions[unitType]) {
|
|
275
|
+
return getUnitDisplay(unitType);
|
|
276
|
+
}
|
|
277
|
+
return convert$1(undefined, measure).describe(getUnitPreference(unitType)).singular;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Retrieves the full name for a given unit type, plural
|
|
282
|
+
* @param {string} unitType length, mass, volume, etc
|
|
283
|
+
* @returns {string}
|
|
284
|
+
*/
|
|
285
|
+
var getUnitPlural = function getUnitPlural(unitType) {
|
|
286
|
+
var _UNIT_TYPES_DEFINITIO4;
|
|
287
|
+
var measure = (_UNIT_TYPES_DEFINITIO4 = UNIT_TYPES_DEFINITIONS_MAP[unitType]) === null || _UNIT_TYPES_DEFINITIO4 === void 0 ? void 0 : _UNIT_TYPES_DEFINITIO4.origin;
|
|
288
|
+
if (customUnitDefinitions[unitType]) {
|
|
289
|
+
return getUnitDisplay(unitType);
|
|
290
|
+
}
|
|
291
|
+
return convert$1(undefined, measure).describe(getUnitPreference(unitType)).plural;
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Retrieves unit data
|
|
296
|
+
*
|
|
297
|
+
* @param {string} unitType length, mass, volume, etc
|
|
298
|
+
* @return {{
|
|
299
|
+
* abbr: string,
|
|
300
|
+
* measure: string,
|
|
301
|
+
* system: string,
|
|
302
|
+
* singular: string,
|
|
303
|
+
* plural: string,
|
|
304
|
+
* display: string
|
|
305
|
+
* }}
|
|
306
|
+
*/
|
|
307
|
+
var getUnitDescription = function getUnitDescription(unitType) {
|
|
308
|
+
var _UNIT_TYPES_DEFINITIO5;
|
|
309
|
+
var measure = (_UNIT_TYPES_DEFINITIO5 = UNIT_TYPES_DEFINITIONS_MAP[unitType]) === null || _UNIT_TYPES_DEFINITIO5 === void 0 ? void 0 : _UNIT_TYPES_DEFINITIO5.origin;
|
|
310
|
+
return convert$1(undefined, measure).describe(unitType);
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
export { convertArray, convertImmutables, convertImmutablesByBatch, convertValue, getAllUnitTypes, getDefaultImperialUnit, getDefaultUnits, getUniqueUnitsByType, getUnitDescription, getUnitDisplay, getUnitPlural, getUnitPreference, getUnitSingular, getUnitSystem, getUnitsByType, getUserUnits, subscribeForUserUnitsUpdates, updateUserUnits };
|
|
314
|
+
//# sourceMappingURL=convert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convert.js","sources":["../../src/utils/convert.js"],"sourcesContent":["/* eslint-disable no-param-reassign */\nimport convert from 'corva-convert-units';\nimport { mapValues, sortBy, uniqBy } from 'lodash';\n\nimport {\n IMPERIAL_UNITS,\n METRIC_UNITS,\n UNIT_DEFINITIONS,\n UNIT_TYPES_DEFINITIONS_MAP,\n} from './constants/units';\n\nconst DEFAULT_PRECISION = 2;\nconst UNIT_SYSTEM_TYPES = {\n custom: 'custom',\n default: 'imperial',\n};\n\nconst units = {\n imperial: IMPERIAL_UNITS,\n metric: METRIC_UNITS,\n custom: { ...IMPERIAL_UNITS },\n};\n\nconst unitSystem = UNIT_SYSTEM_TYPES.custom;\nlet userUnitsUpdatesSubscribers = [];\nlet customUnitDefinitions = {};\n\nexport const getAllUnitTypes = () => UNIT_DEFINITIONS;\n\nexport const getDefaultUnits = () => units[unitSystem];\n\nconst normalizeCompanyCustomUnits = customUnits =>\n mapValues(customUnits || {}, ({ measures, name }, type) => ({\n display: name,\n imperial: type,\n measures: measures.map(measure => ({\n abbr: measure.abbr,\n display: measure.name,\n measure: measure.abbr,\n plural: measure.name,\n singular: measure.name,\n system: 'custom',\n })),\n metric: type,\n origin: type,\n type,\n }));\n\n/**\n * Adds platform notification toast\n * @param {object} newUnits\n */\nfunction notifyAboutUserUnitsUpdate(newUnits) {\n userUnitsUpdatesSubscribers.forEach(callback => callback(newUnits));\n}\n\n/**\n * Updates current custom unit system with user data\n * @param {object} userData\n * @param {Record<string, string>} userData.userUnits\n * @param {Record<string, string>} userData.companyUnits\n */\nexport const updateUserUnits = ({\n userUnits = {},\n companyUnits = {},\n companyCustomUnitSystem = {},\n userCustomUnitSystem = {},\n companyCustomUnits,\n}) => {\n units.custom = {\n ...IMPERIAL_UNITS,\n ...companyUnits,\n ...companyCustomUnitSystem,\n ...userUnits,\n ...userCustomUnitSystem,\n };\n\n if (companyCustomUnits) {\n customUnitDefinitions = normalizeCompanyCustomUnits(companyCustomUnits);\n }\n\n notifyAboutUserUnitsUpdate(units.custom);\n};\n\nexport function getUserUnits() {\n return units.custom;\n}\n\n/**\n * Used for DC Isolated App container\n * @param {Function} newCallback\n */\nexport function subscribeForUserUnitsUpdates(newCallback) {\n userUnitsUpdatesSubscribers.push(newCallback);\n\n return () => {\n userUnitsUpdatesSubscribers = userUnitsUpdatesSubscribers.filter(\n callback => callback !== newCallback\n );\n };\n}\n\n/**\n * Retrieves a unit of a given type by current unit system\n * @param {string} unitType length, mass, volume, etc\n * @returns {string}\n */\nexport const getUnitPreference = unitType => units[unitSystem][unitType];\n\n/**\n * Lists all the units of a specific type\n * @param {string} type\n * @returns {Object[]}\n */\nexport const getUnitsByType = type => {\n const definition = UNIT_TYPES_DEFINITIONS_MAP[type];\n\n if (definition) {\n return sortBy(convert().list(definition.origin), 'abbr');\n }\n // NOTE: Look up in custom company units\n return customUnitDefinitions[type]?.measures || [];\n};\n\n/**\n * Returns unique units list for some measurements that use same units for imperial and metric system\n * @param {string} type\n * @returns {Object[]}\n */\nexport const getUniqueUnitsByType = type => {\n const definition = getUnitsByType(type);\n\n return uniqBy(definition, 'abbr');\n};\n\n/**\n * @deprecated - unit system can be custom, better to use convert functions\n */\nexport const getUnitSystem = () => unitSystem;\n\n/**\n * Retrieves the unit display name for a given unit type\n * @param {string} unitType length, mass, volume, etc\n * @param {string} [unitTo=null]\n * @returns {string}\n */\nexport const getUnitDisplay = (unitType, unitTo = null) => {\n const measure = UNIT_TYPES_DEFINITIONS_MAP[unitType]?.origin;\n const convertedValue = convert(undefined, measure);\n if (unitTo === null) {\n unitTo = units.custom[unitType];\n }\n if (convertedValue.getUnit(unitTo)) {\n return convertedValue.describe(unitTo).display;\n }\n\n const customUnitDisplay = getUnitsByType(unitType).find(\n ({ measure }) => measure === unitTo\n )?.display;\n\n return customUnitDisplay || unitTo;\n};\n\n/**\n * @deprecated - should not depends on imperial system only, because we have mixed unit system\n * Retrieves the unit display name for imperial unit type\n * @param unitType length, mass, volume, etc\n * @returns string\n */\nexport const getDefaultImperialUnit = unitType => units.imperial[unitType];\n\n/**\n * Converts a single value\n * @param {number} value The value we want converted.\n * @param {string} unitType The class of unit such as volume, length, mass, etc.\n * @param {string} from The specific unit such as m, gal, lb, etc.\n * @param {string} to (optional) the unit that we want to convert the value to.\n * @param {number} precision to round to the value\n * May be passed in my ConvertList\n * @return {number}\n */\nexport const convertValue = (value, unitType, from, to = null, precision = DEFAULT_PRECISION) => {\n if (!value || !from || from === to || !!customUnitDefinitions[unitType]) {\n return value;\n }\n\n if (to === null) {\n to = getUnitPreference(unitType);\n if (!to || from === to) {\n return value;\n }\n }\n\n const measure = UNIT_TYPES_DEFINITIONS_MAP[unitType]?.origin;\n const convertedValue = convert(value, measure).from(from).to(to);\n\n return Number.isFinite(convertedValue)\n ? Math.round(convertedValue * 10 ** precision) / 10 ** precision\n : convertedValue;\n};\n\n/**\n * Converts a key in an immutable list of immutables.\n * @param {*} immt The list of maps/lists containing values that we want to convert\n * @param {string} key The key in each sub-iterable that we want to convert\n * @param {string} unitType The class of unit such as volume, length, mass, etc.\n * @param {string} from The specific unit such as m, gal, lb, etc.\n * @param {string} to (optional) the unit that we want to convert the value to.\n * @param {number} precision to round to the value\n * @returns {*} Immutable\n */\nexport const convertImmutables = (\n immt,\n key,\n unitType,\n from,\n to = null,\n precision = DEFAULT_PRECISION\n) =>\n immt.map(currentUnitMap => {\n const convertedValue = convertValue(currentUnitMap.get(key), unitType, from, to, precision);\n return currentUnitMap.set(key, convertedValue);\n });\n\n/**\n * convertImmutablesByBatch is the expansion of convertImmutables\n * It allows you to convert the immutables by multiple keys/units at once.\n *\n * @param {*} immt immutable you want to convert\n * @param {*} conversionRules is the array of conversion to be done { key, unitType, from, to }\n */\nexport const convertImmutablesByBatch = (immt, conversionRules) =>\n immt.map(item =>\n conversionRules.reduce((convertingItem, conversionRule) => {\n const { key, unitType, from, to, precision } = conversionRule;\n const val = convertingItem.get(key);\n const convertedValue = convertValue(val, unitType, from, to, precision);\n return convertingItem.set(key, convertedValue);\n }, item)\n );\n\n/**\n * Converts a property in a simple array of js objects or arrays.\n * @param {number[][]} iterable The array of iterables containing values that we want to convert\n * @param {string} key The key in each sub-element that we want to convert\n * @param {string} unitType The class of unit such as volume, length, mass, etc.\n * @param {string} from The specific unit such as m, gal, lb, etc.\n * @param {string} to (optional) the unit that we want to convert the value to.\n * @returns {number[][]}\n */\nexport const convertArray = (\n iterable = [],\n key,\n unitType,\n from,\n to = null,\n precision = DEFAULT_PRECISION\n) => {\n for (let i = 0; i < iterable.length; i += 1) {\n iterable[i][key] = convertValue(iterable[i][key], unitType, from, to, precision);\n }\n\n return iterable;\n};\n\n/**\n * Retrieves the full name for a given unit type, singular\n * @param {string} unitType length, mass, volume, etc\n * @returns {string}\n */\nexport const getUnitSingular = unitType => {\n const measure = UNIT_TYPES_DEFINITIONS_MAP[unitType]?.origin;\n if (customUnitDefinitions[unitType]) {\n return getUnitDisplay(unitType);\n }\n\n return convert(undefined, measure).describe(getUnitPreference(unitType)).singular;\n};\n\n/**\n * Retrieves the full name for a given unit type, plural\n * @param {string} unitType length, mass, volume, etc\n * @returns {string}\n */\nexport const getUnitPlural = unitType => {\n const measure = UNIT_TYPES_DEFINITIONS_MAP[unitType]?.origin;\n if (customUnitDefinitions[unitType]) {\n return getUnitDisplay(unitType);\n }\n\n return convert(undefined, measure).describe(getUnitPreference(unitType)).plural;\n};\n\n/**\n * Retrieves unit data\n *\n * @param {string} unitType length, mass, volume, etc\n * @return {{\n * abbr: string,\n * measure: string,\n * system: string,\n * singular: string,\n * plural: string,\n * display: string\n * }}\n */\nexport const getUnitDescription = unitType => {\n const measure = UNIT_TYPES_DEFINITIONS_MAP[unitType]?.origin;\n\n return convert(undefined, measure).describe(unitType);\n};\n"],"names":["DEFAULT_PRECISION","UNIT_SYSTEM_TYPES","custom","default","units","imperial","IMPERIAL_UNITS","metric","METRIC_UNITS","unitSystem","userUnitsUpdatesSubscribers","customUnitDefinitions","getAllUnitTypes","UNIT_DEFINITIONS","getDefaultUnits","normalizeCompanyCustomUnits","customUnits","mapValues","type","measures","name","display","map","measure","abbr","plural","singular","system","origin","notifyAboutUserUnitsUpdate","newUnits","forEach","callback","updateUserUnits","userUnits","companyUnits","companyCustomUnitSystem","userCustomUnitSystem","companyCustomUnits","getUserUnits","subscribeForUserUnitsUpdates","newCallback","push","filter","getUnitPreference","unitType","getUnitsByType","definition","UNIT_TYPES_DEFINITIONS_MAP","sortBy","convert","list","getUniqueUnitsByType","uniqBy","getUnitSystem","getUnitDisplay","unitTo","convertedValue","undefined","getUnit","describe","customUnitDisplay","find","getDefaultImperialUnit","convertValue","value","from","to","precision","Number","isFinite","Math","round","convertImmutables","immt","key","currentUnitMap","get","set","convertImmutablesByBatch","conversionRules","item","reduce","convertingItem","conversionRule","val","convertArray","iterable","i","length","getUnitSingular","getUnitPlural","getUnitDescription"],"mappings":";;;;;;;AAWA,IAAMA,iBAAiB,GAAG,CAAC,CAAA;AAC3B,IAAMC,iBAAiB,GAAG;AACxBC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,OAAO,EAAE,UAAA;AACX,CAAC,CAAA;AAED,IAAMC,KAAK,GAAG;AACZC,EAAAA,QAAQ,EAAEC,cAAc;AACxBC,EAAAA,MAAM,EAAEC,YAAY;AACpBN,EAAAA,MAAM,oBAAOI,cAAc,CAAA;AAC7B,CAAC,CAAA;AAED,IA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typeof from '@babel/runtime/helpers/typeof';
|
|
2
|
+
import { transform, snakeCase, camelCase } from 'lodash';
|
|
3
|
+
|
|
4
|
+
var getConvertKeys = function getConvertKeys(converterFn) {
|
|
5
|
+
var convertKeys = function convertKeys(obj) {
|
|
6
|
+
if (obj === null || _typeof(obj) !== 'object') {
|
|
7
|
+
return obj;
|
|
8
|
+
}
|
|
9
|
+
if (Array.isArray(obj)) {
|
|
10
|
+
return obj.map(convertKeys);
|
|
11
|
+
}
|
|
12
|
+
return transform(obj, function (result, value, key) {
|
|
13
|
+
// eslint-disable-next-line no-param-reassign
|
|
14
|
+
result[converterFn(key)] = convertKeys(value);
|
|
15
|
+
}, {});
|
|
16
|
+
};
|
|
17
|
+
return convertKeys;
|
|
18
|
+
};
|
|
19
|
+
var convertKeysToSnakeCase = getConvertKeys(snakeCase);
|
|
20
|
+
var convertKeysToCamelCase = getConvertKeys(camelCase);
|
|
21
|
+
|
|
22
|
+
export { convertKeysToCamelCase, convertKeysToSnakeCase, getConvertKeys };
|
|
23
|
+
//# sourceMappingURL=convertKeys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convertKeys.js","sources":["../../src/utils/convertKeys.js"],"sourcesContent":["import { transform, snakeCase, camelCase } from 'lodash';\n\nexport const getConvertKeys = converterFn => {\n const convertKeys = obj => {\n if (obj === null || typeof obj !== 'object') {\n return obj;\n }\n\n if (Array.isArray(obj)) {\n return obj.map(convertKeys);\n }\n\n return transform(\n obj,\n (result, value, key) => {\n // eslint-disable-next-line no-param-reassign\n result[converterFn(key)] = convertKeys(value);\n },\n {}\n );\n };\n\n return convertKeys;\n};\n\nexport const convertKeysToSnakeCase = getConvertKeys(snakeCase);\n\nexport const convertKeysToCamelCase = getConvertKeys(camelCase);\n"],"names":["getConvertKeys","converterFn","convertKeys","obj","Array","isArray","map","transform","result","value","key","convertKeysToSnakeCase","snakeCase","convertKeysToCamelCase","camelCase"],"mappings":";;;IAEaA,cAAc,GAAG,SAAjBA,cAAc,CAAGC,WAAW,EAAI;AAC3C,EAAA,IAAMC,WAAW,GAAG,SAAdA,WAAW,CAAGC,GAAG,EAAI;IACzB,IAAIA,GAAG,KAAK,IAAI,IAAI,QAAOA,GAAG,CAAA,KAAK,QAAQ,EAAE;AAC3C,MAAA,OAAOA,GAAG,CAAA;AACZ,KAAA;AAEA,IAAA,IAAIC,KAAK,CAACC,OAAO,CAACF,GAAG,CAAC,EAAE;AACtB,MAAA,OAAOA,GAAG,CAACG,GAAG,CAACJ,WAAW,CAAC,CAAA;AAC7B,KAAA;IAEA,OAAOK,SAAS,CACdJ,GAAG,EACH,UAACK,MAAM,EAAEC,KAAK,EAAEC,GAAG,EAAK;AACtB;MACAF,MAAM,CAACP,WAAW,CAACS,GAAG,CAAC,CAAC,GAAGR,WAAW,CAACO,KAAK,CAAC,CAAA;KAC9C,EACD,EAAE,CACH,CAAA;GACF,CAAA;AAED,EAAA,OAAOP,WAAW,CAAA;AACpB,EAAC;IAEYS,sBAAsB,GAAGX,cAAc,CAACY,SAAS,EAAC;IAElDC,sBAAsB,GAAGb,cAAc,CAACc,SAAS;;;;"}
|
package/utils/csvExport.js
CHANGED
|
@@ -1 +1,218 @@
|
|
|
1
|
-
import
|
|
1
|
+
import FileSaver from 'file-saver';
|
|
2
|
+
|
|
3
|
+
function downloadFile(filename, text) {
|
|
4
|
+
var blob = new Blob([text], {
|
|
5
|
+
type: 'text/plain;charset=utf-8'
|
|
6
|
+
});
|
|
7
|
+
FileSaver.saveAs(blob, filename);
|
|
8
|
+
}
|
|
9
|
+
function findTitle(firstTitles, currentline, j) {
|
|
10
|
+
var titles = Object.keys(firstTitles);
|
|
11
|
+
var result;
|
|
12
|
+
titles.forEach(function (item) {
|
|
13
|
+
if (currentline[j].toLowerCase().indexOf(item) !== -1) {
|
|
14
|
+
result = firstTitles[item];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
return result;
|
|
18
|
+
}
|
|
19
|
+
function convertCsvToJson(csv, firstTitles, secondTitles, effectiveDepth, endDepth) {
|
|
20
|
+
try {
|
|
21
|
+
var lines = csv.split(/[\r\n]+/);
|
|
22
|
+
var array = [];
|
|
23
|
+
var i;
|
|
24
|
+
var j;
|
|
25
|
+
var k;
|
|
26
|
+
var rowNumber = lines.length;
|
|
27
|
+
var columnNumber = 0;
|
|
28
|
+
for (i = 0; i < lines.length; i += 1) {
|
|
29
|
+
var currentline = lines[i].split(',');
|
|
30
|
+
array[i] = [];
|
|
31
|
+
for (j = 0; j < currentline.length; j += 1) {
|
|
32
|
+
var value = void 0;
|
|
33
|
+
if (i === 0) {
|
|
34
|
+
value = findTitle(firstTitles, currentline, j);
|
|
35
|
+
columnNumber += 1;
|
|
36
|
+
} else if (i === 1) {
|
|
37
|
+
value = secondTitles[currentline[j]];
|
|
38
|
+
} else {
|
|
39
|
+
value = parseFloat(currentline[j]);
|
|
40
|
+
}
|
|
41
|
+
array[i][j] = value;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
var objLength = 2;
|
|
45
|
+
var result = {};
|
|
46
|
+
var points = [];
|
|
47
|
+
var off = 0;
|
|
48
|
+
var headers = lines[0].split(',');
|
|
49
|
+
for (i = 0; i < columnNumber / objLength; i += 1) {
|
|
50
|
+
points = [];
|
|
51
|
+
for (j = 2; j < rowNumber; j += 1) {
|
|
52
|
+
var obj = {};
|
|
53
|
+
for (k = 0; k < objLength; k += 1) {
|
|
54
|
+
obj[array[1][i * objLength + k]] = array[j][i * objLength + k];
|
|
55
|
+
}
|
|
56
|
+
points.push(obj);
|
|
57
|
+
}
|
|
58
|
+
var dataLine = {
|
|
59
|
+
openhole_friction_factor: off,
|
|
60
|
+
casing_friction_factor: off,
|
|
61
|
+
points: points,
|
|
62
|
+
title: headers[i * objLength]
|
|
63
|
+
};
|
|
64
|
+
off += 1;
|
|
65
|
+
var linesArray = [];
|
|
66
|
+
linesArray.push(dataLine);
|
|
67
|
+
var serieName = array[0][i * objLength] ? array[0][i * objLength] : 'pick_up';
|
|
68
|
+
if (!result[serieName]) {
|
|
69
|
+
result[serieName] = [];
|
|
70
|
+
}
|
|
71
|
+
result[serieName].push(dataLine);
|
|
72
|
+
}
|
|
73
|
+
if (Object.keys(result).length === 0) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
var dataObject = {
|
|
77
|
+
data: {
|
|
78
|
+
curves: result
|
|
79
|
+
},
|
|
80
|
+
effective_depth: effectiveDepth,
|
|
81
|
+
end_depth: endDepth
|
|
82
|
+
};
|
|
83
|
+
return dataObject;
|
|
84
|
+
} catch (err) {
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function writeResults(array, titles, titlesArray, prefix) {
|
|
89
|
+
var result = '';
|
|
90
|
+
for (var i = 0; i < array.length; i += 1) {
|
|
91
|
+
if (titles[titlesArray[i]]) {
|
|
92
|
+
result += prefix + titles[titlesArray[i]];
|
|
93
|
+
} else {
|
|
94
|
+
result += titlesArray[i];
|
|
95
|
+
}
|
|
96
|
+
result += i < array.length - 1 ? ',' : '';
|
|
97
|
+
}
|
|
98
|
+
if (array.length > 0) {
|
|
99
|
+
result += '\n';
|
|
100
|
+
}
|
|
101
|
+
for (var _i = 0; _i < array.length; _i += 1) {
|
|
102
|
+
result += array[_i];
|
|
103
|
+
result += _i < array.length - 1 ? ',' : '';
|
|
104
|
+
}
|
|
105
|
+
return result;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* eslint-disable no-param-reassign */
|
|
109
|
+
function convertJsonToCsv(obj, titles, markers, prefix) {
|
|
110
|
+
var array = [];
|
|
111
|
+
var titlesArray = [];
|
|
112
|
+
var result = '';
|
|
113
|
+
var addPrefix = '';
|
|
114
|
+
if (!prefix) {
|
|
115
|
+
prefix = '';
|
|
116
|
+
}
|
|
117
|
+
if (Object.prototype.toString.call(obj) === '[object Array]') {
|
|
118
|
+
return processArray(obj, titles, markers, prefix); // eslint-disable-line no-use-before-define
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
var keys = Object.keys(obj);
|
|
122
|
+
keys.forEach(function (key) {
|
|
123
|
+
if (Object.prototype.toString.call(obj[key]) === '[object Array]') {
|
|
124
|
+
result += writeResults(array, titles, titlesArray, prefix);
|
|
125
|
+
array = [];
|
|
126
|
+
titlesArray = [];
|
|
127
|
+
if (result[result.length - 1] !== '\n') {
|
|
128
|
+
result += '\n';
|
|
129
|
+
}
|
|
130
|
+
addPrefix = markers && markers[key] ? "".concat(markers[key], " ") : '';
|
|
131
|
+
result += convertJsonToCsv(obj[key], titles, markers, prefix + addPrefix);
|
|
132
|
+
} else if (Object.prototype.toString.call(obj[key]) === '[object Object]') {
|
|
133
|
+
result += writeResults(array, titles, titlesArray, prefix);
|
|
134
|
+
array = [];
|
|
135
|
+
titlesArray = [];
|
|
136
|
+
if (result.length > 0 && result[result.length - 1] !== '\n') {
|
|
137
|
+
result += '\n';
|
|
138
|
+
}
|
|
139
|
+
addPrefix = markers && markers[key] ? "".concat(markers[key], " ") : '';
|
|
140
|
+
result += convertJsonToCsv(obj[key], titles, markers, prefix + addPrefix);
|
|
141
|
+
} else if (obj[key] && obj[key].toString().length > 0) {
|
|
142
|
+
array.push(obj[key]);
|
|
143
|
+
titlesArray.push(key);
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
if (result[result.length - 1] !== '\n') {
|
|
147
|
+
result += '\n';
|
|
148
|
+
}
|
|
149
|
+
result += writeResults(array, titles, titlesArray, prefix);
|
|
150
|
+
return result.trim();
|
|
151
|
+
}
|
|
152
|
+
/* eslint-enable no-param-reassign */
|
|
153
|
+
|
|
154
|
+
function concatCsv(list) {
|
|
155
|
+
return list.reduce(function (acc, _ref) {
|
|
156
|
+
var title = _ref.title,
|
|
157
|
+
csv = _ref.csv;
|
|
158
|
+
return "".concat(acc, "\n").concat(title).concat(csv);
|
|
159
|
+
}, '');
|
|
160
|
+
}
|
|
161
|
+
function processArray(obj, titles, markers, prefix) {
|
|
162
|
+
if (!obj || obj.length === 0) {
|
|
163
|
+
return '';
|
|
164
|
+
}
|
|
165
|
+
var result = '';
|
|
166
|
+
var keys = Object.keys(obj[0]);
|
|
167
|
+
var columns = keys.length;
|
|
168
|
+
var columnsNew = columns;
|
|
169
|
+
var newTitles = [];
|
|
170
|
+
var internalArray = false;
|
|
171
|
+
for (var i = 0; i < obj.length; i += 1) {
|
|
172
|
+
for (var j = 0; j < columns; j += 1) {
|
|
173
|
+
if (Object.prototype.toString.call(obj[i][keys[j]]) === '[object Array]') {
|
|
174
|
+
columnsNew = j;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
if (titles) {
|
|
179
|
+
for (var _i2 = 0; _i2 < columnsNew; _i2 += 1) {
|
|
180
|
+
if (titles[keys[_i2]]) {
|
|
181
|
+
newTitles[_i2] = prefix + titles[keys[_i2]];
|
|
182
|
+
} else {
|
|
183
|
+
newTitles[_i2] = keys[_i2];
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
if (result[result.length - 1] !== '\n') {
|
|
188
|
+
result += '\n';
|
|
189
|
+
}
|
|
190
|
+
for (var _i3 = 0; _i3 < obj.length; _i3 += 1) {
|
|
191
|
+
if (!_i3 || internalArray) {
|
|
192
|
+
for (var k = 0; k < columnsNew; k += 1) {
|
|
193
|
+
if (titles) {
|
|
194
|
+
result += newTitles[k];
|
|
195
|
+
}
|
|
196
|
+
result += k < columnsNew - 1 ? ',' : '';
|
|
197
|
+
}
|
|
198
|
+
result += '\n';
|
|
199
|
+
}
|
|
200
|
+
for (var _j = 0; _j < columns; _j += 1) {
|
|
201
|
+
if (Object.prototype.toString.call(obj[_i3][keys[_j]]) === '[object Array]') {
|
|
202
|
+
internalArray = true;
|
|
203
|
+
var addPrefix = markers && markers[keys[_j]] ? "".concat(markers[keys[_j]], " ") : '';
|
|
204
|
+
result += "\n".concat(convertJsonToCsv(obj[_i3][keys[_j]], titles, markers, prefix + addPrefix));
|
|
205
|
+
} else {
|
|
206
|
+
if (obj[_i3][keys[_j]] || obj[_i3][keys[_j]] === 0) {
|
|
207
|
+
result += obj[_i3][keys[_j]];
|
|
208
|
+
}
|
|
209
|
+
result += _j < columns - 1 ? ',' : '';
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
result += '\n';
|
|
213
|
+
}
|
|
214
|
+
return result;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export { concatCsv, convertCsvToJson, convertJsonToCsv, downloadFile };
|
|
218
|
+
//# sourceMappingURL=csvExport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csvExport.js","sources":["../../src/utils/csvExport.js"],"sourcesContent":["import FileSaver from 'file-saver';\n\nexport function downloadFile(filename, text) {\n const blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n FileSaver.saveAs(blob, filename);\n}\n\nfunction findTitle(firstTitles, currentline, j) {\n const titles = Object.keys(firstTitles);\n let result;\n titles.forEach(item => {\n if (currentline[j].toLowerCase().indexOf(item) !== -1) {\n result = firstTitles[item];\n }\n });\n return result;\n}\n\nexport function convertCsvToJson(csv, firstTitles, secondTitles, effectiveDepth, endDepth) {\n try {\n const lines = csv.split(/[\\r\\n]+/);\n const array = [];\n let i;\n let j;\n let k;\n const rowNumber = lines.length;\n let columnNumber = 0;\n\n for (i = 0; i < lines.length; i += 1) {\n const currentline = lines[i].split(',');\n array[i] = [];\n for (j = 0; j < currentline.length; j += 1) {\n let value;\n if (i === 0) {\n value = findTitle(firstTitles, currentline, j);\n columnNumber += 1;\n } else if (i === 1) {\n value = secondTitles[currentline[j]];\n } else {\n value = parseFloat(currentline[j]);\n }\n array[i][j] = value;\n }\n }\n\n const objLength = 2;\n const result = {};\n let points = [];\n let off = 0;\n\n const headers = lines[0].split(',');\n for (i = 0; i < columnNumber / objLength; i += 1) {\n points = [];\n\n for (j = 2; j < rowNumber; j += 1) {\n const obj = {};\n for (k = 0; k < objLength; k += 1) {\n obj[array[1][i * objLength + k]] = array[j][i * objLength + k];\n }\n points.push(obj);\n }\n\n const dataLine = {\n openhole_friction_factor: off,\n casing_friction_factor: off,\n points,\n title: headers[i * objLength],\n };\n off += 1;\n\n const linesArray = [];\n linesArray.push(dataLine);\n const serieName = array[0][i * objLength] ? array[0][i * objLength] : 'pick_up';\n\n if (!result[serieName]) {\n result[serieName] = [];\n }\n result[serieName].push(dataLine);\n }\n\n if (Object.keys(result).length === 0) {\n return null;\n }\n\n const dataObject = {\n data: {\n curves: result,\n },\n effective_depth: effectiveDepth,\n end_depth: endDepth,\n };\n return dataObject;\n } catch (err) {\n return null;\n }\n}\n\nfunction writeResults(array, titles, titlesArray, prefix) {\n let result = '';\n for (let i = 0; i < array.length; i += 1) {\n if (titles[titlesArray[i]]) {\n result += prefix + titles[titlesArray[i]];\n } else {\n result += titlesArray[i];\n }\n result += i < array.length - 1 ? ',' : '';\n }\n\n if (array.length > 0) {\n result += '\\n';\n }\n for (let i = 0; i < array.length; i += 1) {\n result += array[i];\n result += i < array.length - 1 ? ',' : '';\n }\n return result;\n}\n\n/* eslint-disable no-param-reassign */\nexport function convertJsonToCsv(obj, titles, markers, prefix) {\n let array = [];\n let titlesArray = [];\n let result = '';\n let addPrefix = '';\n if (!prefix) {\n prefix = '';\n }\n\n if (Object.prototype.toString.call(obj) === '[object Array]') {\n return processArray(obj, titles, markers, prefix); // eslint-disable-line no-use-before-define\n }\n\n const keys = Object.keys(obj);\n\n keys.forEach(key => {\n if (Object.prototype.toString.call(obj[key]) === '[object Array]') {\n result += writeResults(array, titles, titlesArray, prefix);\n array = [];\n titlesArray = [];\n\n if (result[result.length - 1] !== '\\n') {\n result += '\\n';\n }\n addPrefix = markers && markers[key] ? `${markers[key]} ` : '';\n result += convertJsonToCsv(obj[key], titles, markers, prefix + addPrefix);\n } else if (Object.prototype.toString.call(obj[key]) === '[object Object]') {\n result += writeResults(array, titles, titlesArray, prefix);\n array = [];\n titlesArray = [];\n\n if (result.length > 0 && result[result.length - 1] !== '\\n') {\n result += '\\n';\n }\n addPrefix = markers && markers[key] ? `${markers[key]} ` : '';\n result += convertJsonToCsv(obj[key], titles, markers, prefix + addPrefix);\n } else if (obj[key] && obj[key].toString().length > 0) {\n array.push(obj[key]);\n titlesArray.push(key);\n }\n });\n\n if (result[result.length - 1] !== '\\n') {\n result += '\\n';\n }\n result += writeResults(array, titles, titlesArray, prefix);\n return result.trim();\n}\n/* eslint-enable no-param-reassign */\n\nexport function concatCsv(list) {\n return list.reduce((acc, { title, csv }) => {\n return `${acc}\\n${title}${csv}`;\n }, '');\n}\n\nfunction processArray(obj, titles, markers, prefix) {\n if (!obj || obj.length === 0) {\n return '';\n }\n let result = '';\n const keys = Object.keys(obj[0]);\n const columns = keys.length;\n let columnsNew = columns;\n const newTitles = [];\n let internalArray = false;\n\n for (let i = 0; i < obj.length; i += 1) {\n for (let j = 0; j < columns; j += 1) {\n if (Object.prototype.toString.call(obj[i][keys[j]]) === '[object Array]') {\n columnsNew = j;\n }\n }\n }\n\n if (titles) {\n for (let i = 0; i < columnsNew; i += 1) {\n if (titles[keys[i]]) {\n newTitles[i] = prefix + titles[keys[i]];\n } else {\n newTitles[i] = keys[i];\n }\n }\n }\n\n if (result[result.length - 1] !== '\\n') {\n result += '\\n';\n }\n for (let i = 0; i < obj.length; i += 1) {\n if (!i || internalArray) {\n for (let k = 0; k < columnsNew; k += 1) {\n if (titles) {\n result += newTitles[k];\n }\n result += k < columnsNew - 1 ? ',' : '';\n }\n result += '\\n';\n }\n\n for (let j = 0; j < columns; j += 1) {\n if (Object.prototype.toString.call(obj[i][keys[j]]) === '[object Array]') {\n internalArray = true;\n const addPrefix = markers && markers[keys[j]] ? `${markers[keys[j]]} ` : '';\n result += `\\n${convertJsonToCsv(obj[i][keys[j]], titles, markers, prefix + addPrefix)}`;\n } else {\n if (obj[i][keys[j]] || obj[i][keys[j]] === 0) {\n result += obj[i][keys[j]];\n }\n result += j < columns - 1 ? ',' : '';\n }\n }\n result += '\\n';\n }\n return result;\n}\n"],"names":["downloadFile","filename","text","blob","Blob","type","FileSaver","saveAs","findTitle","firstTitles","currentline","j","titles","Object","keys","result","forEach","item","toLowerCase","indexOf","convertCsvToJson","csv","secondTitles","effectiveDepth","endDepth","lines","split","array","i","k","rowNumber","length","columnNumber","value","parseFloat","objLength","points","off","headers","obj","push","dataLine","openhole_friction_factor","casing_friction_factor","title","linesArray","serieName","dataObject","data","curves","effective_depth","end_depth","err","writeResults","titlesArray","prefix","convertJsonToCsv","markers","addPrefix","prototype","toString","call","processArray","key","trim","concatCsv","list","reduce","acc","columns","columnsNew","newTitles","internalArray"],"mappings":";;AAEO,SAASA,YAAY,CAACC,QAAQ,EAAEC,IAAI,EAAE;EAC3C,IAAMC,IAAI,GAAG,IAAIC,IAAI,CAAC,CAACF,IAAI,CAAC,EAAE;AAAEG,IAAAA,IAAI,EAAE,0BAAA;AAA2B,GAAC,CAAC,CAAA;AACnEC,EAAAA,SAAS,CAACC,MAAM,CAACJ,IAAI,EAAEF,QAAQ,CAAC,CAAA;AAClC,CAAA;AAEA,SAASO,SAAS,CAACC,WAAW,EAAEC,WAAW,EAAEC,CAAC,EAAE;AAC9C,EAAA,IAAMC,MAAM,GAAGC,MAAM,CAACC,IAAI,CAACL,WAAW,CAAC,CAAA;AACvC,EAAA,IAAIM,MAAM,CAAA;AACVH,EAAAA,MAAM,CAACI,OAAO,CAAC,UAAAC,IAAI,EAAI;AACrB,IAAA,IAAIP,WAAW,CAACC,CAAC,CAAC,CAACO,WAAW,EAAE,CAACC,OAAO,CAACF,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE;AACrDF,MAAAA,MAAM,GAAGN,WAAW,CAACQ,IAAI,CAAC,CAAA;AAC5B,KAAA;AACF,GAAC,CAAC,CAAA;AACF,EAAA,OAAOF,MAAM,CAAA;AACf,CAAA;AAEO,SAASK,gBAAgB,CAACC,GAAG,EAAEZ,WAAW,EAAEa,YAAY,EAAEC,cAAc,EAAEC,QAAQ,EAAE;EACzF,IAAI;AACF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