@corva/ui 0.27.0-10 → 0.27.0-11

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.
@@ -1 +1 @@
1
- import p from'../../../ext-esm/style-inject/dist/style-inject.es.js';p(".App_app__38Vvn{min-height:100%;display:flex;flex-direction:column;touch-action:manipulation}.App_appContent__2_P6A{padding:10px;flex-grow:1;position:relative}.App_pdfAppContent__-4THK{padding:30px 0;background-color:#fff}");export default{app:"App_app__38Vvn",appContent:"App_appContent__2_P6A",pdfAppContent:"App_pdfAppContent__-4THK"};
1
+ import p from'../../../ext-esm/style-inject/dist/style-inject.es.js';p(".App_app__38Vvn{min-height:100%;display:flex;flex-direction:column;touch-action:manipulation}.App_appContent__2_P6A{padding:10px;flex-grow:1;position:relative}.App_pdfAppContent__-4THK{padding:30px 0;background-color:#fff}.App_lightAppContent__3pRws{background-color:#fff;color:#000}");export default{app:"App_app__38Vvn",appContent:"App_appContent__2_P6A",pdfAppContent:"App_pdfAppContent__-4THK",lightAppContent:"App_lightAppContent__3pRws"};
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import"../../../constants/completion.js";import o from"moment";import"../../../constants/alerts.js";import"lodash";import t from"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import{setThemeVariables as e}from"../../../utils/themeVariables.js";import"../../../utils/index.js";import{jsx as n,jsxs as r,Fragment as s}from"react/jsx-runtime";import{MuiThemeProvider as i}from"@material-ui/core";import{darkTheme as p,lightTheme as m}from"../../../config/theme/index.js";import{useReducer as c,useEffect as a}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"@babel/runtime/helpers/objectWithoutProperties";import l from"classnames";import"../../../components/Modal/index.js";import"../../../components/IconMenu/index.js";import"../../../components/StyledMenuItem/index.js";import"../../../components/LoadingIndicator/LoadingIndicator.js";import"../../../components/Tooltip.js";import"../../../components/Avatar/index.js";import"../../../components/Annotations/AnnotationsContext.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../components/ConfirmationDialog.js";import"../../../components/Annotations/components/AnnotationsList/index.js";import"../../../components/Annotations/components/LastAnnotation/index.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../../components/DevCenter/AppHeader/AppHeader.js";import"../../../components/DevCenter/AppSideBar/AppSideBar.js";import"../../../components/DevCenter/AppContext.js";import"../../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../components/ErrorBoundary/ErrorBoundary.js";import"../../../components/Typography.js";import"../../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../components/SlateFormattedText/RenderElements.js";import"../../../components/SlateFormattedText/SlateFormattedText.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../components/DevCenter/NavigationBar/NavigationBar.js";import"../../../components/DevCenter/SideBar/SideBar.js";import"../../../components/TruncatedText/index.js";import"../../../components/AssetEditor/SingleAssetEditor.js";import"../../../components/AssetEditor/AssetEditorAutocomplete.js";import"../../../components/AssetEditor/index.js";import"../../../components/AppVersionsSelect/AppVersionsSelect.js";import"../../../components/CollapsableSidebar.js";import{MuiPickersUtilsProvider as d}from"@material-ui/pickers";import"../../../components/DateTimePicker/index.js";import"../../../components/DatePicker/index.js";import"../../../components/ColorPicker/ColorPicker.js";import"../../../components/ParameterCharts/AddEditTrack.js";import"../../../components/ParameterCharts/ParameterCharts.js";import"../../../components/ChartActionsList/ChartActionsList.js";import"../../../components/SettingEditors/ColorEditor/index.js";import"../../../components/SettingEditors/DropdownEditor/index.js";import"../../../components/SettingEditors/RadioEditor/index.js";import"../../../components/SwitchControl/index.js";import"../../../components/RangeSlider/RangeSlider.js";import"../../../components/Login/components/Login.js";import"../../../components/Login/components/PasswordField.js";import"../../../components/Login/components/Chip.js";import"../../../components/Login/components/StepFooter.js";import"../../../components/Login/components/StepContent.js";import"../../../components/Login/components/StepHeader.js";import"../../../components/Login/components/Step.js";import"../../../components/Login/components/OrDivider.js";import"../../../components/Login/components/HiddenEmailField.js";import"../../../components/Login/components/EmailField.js";import"../../../components/Breadcrumbs/index.js";import"../../../components/VirtualizedTable/index.js";import"../../../components/EmptyView/index.js";import"../../../components/EmptyView/EmptyAppView/index.js";import"../../../components/Button/index.js";import"../../../components/MenuItem/index.js";import"../../../components/ContextMenuItem/index.js";import"../../../components/FolderMenuItem/index.js";import"../../../components/EditableItem/EditableItem/index.js";import"../../../components/EditableItem/EditableItemWithBadge/index.js";import"../../../components/Checkbox/index.js";import"../../../components/FolderMenuItemWithLinks/index.js";import"../../../components/IconButton/index.js";import"../../../components/Chip/index.js";import"../../../components/Counter/index.js";import"../../../components/AnchorsList/AnchorsList.js";import"../../../components/Select/index.js";import"../../../components/Tabs/Tabs.js";import"../../../components/Tabs/Tab.js";import"../../../components/Drillstring/BHASchematic.js";import"../../../components/Drillstring/BHAComponentIcon.js";import"../../../components/Drillstring/BHATable/index.js";import"../../../components/Drillstring/BHAComponentDetail/index.js";import"../../../components/Casing/CasingComponentIcon.js";import"../../../components/Casing/CasingTable/index.js";import"../../../components/WellSummary/WellSummaryItemLabel.js";import"../../../components/WellSummary/WellSummaryItemTitle.js";import"../../../components/WellSummary/WellSummaryItemValue.js";import"../../../components/WellSummary/ActivitySummaryChart.js";import"../../../components/WellSummary/FracWirelineTimeChart.js";import"../../../components/BICOffsetPickerDialog/index.js";import"../../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../components/Notifications/Notifications.js";import j from"../../../components/Notifications/NotificationsContainer.js";import"../../../components/TextLink/index.js";import"../../../components/Template/TemplatePopover/index.js";import C from"@date-io/moment";import"../../../components/PinnableFilters/PinnableFilters.js";import"../../../components/HeaderLayout/HeaderLayout.js";import"../../../components/PadOffsetsPicker/PadOffsetsPicker.js";import"../../../components/PadOffsetsPicker/OffsetAssetChip.js";import"../../../components/PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../components/PadOffsetsPicker/StagesSelector.js";import"../../../components/Table/TableToolbar/TableToolbar.js";import"../../../components/PriceInput/PriceInput.js";import"../../../components/LabelsCounter/LabelsCounter.js";import"../../../components/Stepper/Step.js";import"../../../components/Stepper/StepsWrapper.js";import"../../../components/Stepper/Stepper.js";import"../../../components/Comment/CommentIcon/index.js";import"../../../components/FilesLoader/FilesLoader.js";import{THEMES as u}from"../../../constants/theme.js";import{LOCAL_STORAGE_APP_THEME_KEY as A}from"../../hocs/constants.js";import{isPDFReportView as x}from"../../hocs/utils.js";import{AuthContext as f}from"../../context/auth.js";import{LOGIN_ROUTE_REG_EXP as g}from"../../constants/index.js";import D from"./components/AppBar/AppBar.js";import v from"../../hocs/effects/useProvideAuth.js";import S from"./App.css.js";function h(h){var b,P=h.children,L=h.router,y=v(L),E=!g.test(L.location.pathname)&&!y.loading,I=c((function(o){return o+1}),0),T=t(I,2)[1],B=null!==(b=localStorage.getItem(A))&&void 0!==b?b:u.DARK,k=!E||B===u.DARK;a((function(){return e(k)}),[k]);return n(f.Provider,{value:y,children:n(i,{theme:k?p:m,children:n(d,{libInstance:o,utils:C,children:r(s,{children:[!E&&P,E&&r("div",{className:S.app,children:[n(j,{}),n(D,{toggleTheme:function(){localStorage.setItem(A,k?u.LIGHT:u.DARK),T()}}),n("div",{className:l(S.appContent,x&&S.pdfAppContent),children:P})]})]})})})})}export default h;
1
+ import"@babel/runtime/helpers/defineProperty";import"../../../constants/completion.js";import o from"moment";import"../../../constants/alerts.js";import"lodash";import t from"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import{setThemeVariables as e}from"../../../utils/themeVariables.js";import"../../../utils/index.js";import{jsx as n,jsxs as r,Fragment as s}from"react/jsx-runtime";import{MuiThemeProvider as i}from"@material-ui/core";import{darkTheme as p,lightTheme as m}from"../../../config/theme/index.js";import{useReducer as c,useEffect as a}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"@babel/runtime/helpers/objectWithoutProperties";import l from"classnames";import"../../../components/Modal/index.js";import"../../../components/IconMenu/index.js";import"../../../components/StyledMenuItem/index.js";import"../../../components/LoadingIndicator/LoadingIndicator.js";import"../../../components/Tooltip.js";import"../../../components/Avatar/index.js";import"../../../components/Annotations/AnnotationsContext.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../components/ConfirmationDialog.js";import"../../../components/Annotations/components/AnnotationsList/index.js";import"../../../components/Annotations/components/LastAnnotation/index.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../../components/DevCenter/AppHeader/AppHeader.js";import"../../../components/DevCenter/AppSideBar/AppSideBar.js";import"../../../components/DevCenter/AppContext.js";import"../../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../components/ErrorBoundary/ErrorBoundary.js";import"../../../components/Typography.js";import"../../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../components/SlateFormattedText/RenderElements.js";import"../../../components/SlateFormattedText/SlateFormattedText.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../components/DevCenter/NavigationBar/NavigationBar.js";import"../../../components/DevCenter/SideBar/SideBar.js";import"../../../components/TruncatedText/index.js";import"../../../components/AssetEditor/SingleAssetEditor.js";import"../../../components/AssetEditor/AssetEditorAutocomplete.js";import"../../../components/AssetEditor/index.js";import"../../../components/AppVersionsSelect/AppVersionsSelect.js";import"../../../components/CollapsableSidebar.js";import{MuiPickersUtilsProvider as d}from"@material-ui/pickers";import"../../../components/DateTimePicker/index.js";import"../../../components/DatePicker/index.js";import"../../../components/ColorPicker/ColorPicker.js";import"../../../components/ParameterCharts/AddEditTrack.js";import"../../../components/ParameterCharts/ParameterCharts.js";import"../../../components/ChartActionsList/ChartActionsList.js";import"../../../components/SettingEditors/ColorEditor/index.js";import"../../../components/SettingEditors/DropdownEditor/index.js";import"../../../components/SettingEditors/RadioEditor/index.js";import"../../../components/SwitchControl/index.js";import"../../../components/RangeSlider/RangeSlider.js";import"../../../components/Login/components/Login.js";import"../../../components/Login/components/PasswordField.js";import"../../../components/Login/components/Chip.js";import"../../../components/Login/components/StepFooter.js";import"../../../components/Login/components/StepContent.js";import"../../../components/Login/components/StepHeader.js";import"../../../components/Login/components/Step.js";import"../../../components/Login/components/OrDivider.js";import"../../../components/Login/components/HiddenEmailField.js";import"../../../components/Login/components/EmailField.js";import"../../../components/Breadcrumbs/index.js";import"../../../components/VirtualizedTable/index.js";import"../../../components/EmptyView/index.js";import"../../../components/EmptyView/EmptyAppView/index.js";import"../../../components/Button/index.js";import"../../../components/MenuItem/index.js";import"../../../components/ContextMenuItem/index.js";import"../../../components/FolderMenuItem/index.js";import"../../../components/EditableItem/EditableItem/index.js";import"../../../components/EditableItem/EditableItemWithBadge/index.js";import"../../../components/Checkbox/index.js";import"../../../components/FolderMenuItemWithLinks/index.js";import"../../../components/IconButton/index.js";import"../../../components/Chip/index.js";import"../../../components/Counter/index.js";import"../../../components/AnchorsList/AnchorsList.js";import"../../../components/Select/index.js";import"../../../components/Tabs/Tabs.js";import"../../../components/Tabs/Tab.js";import"../../../components/Drillstring/BHASchematic.js";import"../../../components/Drillstring/BHAComponentIcon.js";import"../../../components/Drillstring/BHATable/index.js";import"../../../components/Drillstring/BHAComponentDetail/index.js";import"../../../components/Casing/CasingComponentIcon.js";import"../../../components/Casing/CasingTable/index.js";import"../../../components/WellSummary/WellSummaryItemLabel.js";import"../../../components/WellSummary/WellSummaryItemTitle.js";import"../../../components/WellSummary/WellSummaryItemValue.js";import"../../../components/WellSummary/ActivitySummaryChart.js";import"../../../components/WellSummary/FracWirelineTimeChart.js";import"../../../components/BICOffsetPickerDialog/index.js";import"../../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../components/Notifications/Notifications.js";import j from"../../../components/Notifications/NotificationsContainer.js";import"../../../components/TextLink/index.js";import"../../../components/Template/TemplatePopover/index.js";import C from"@date-io/moment";import"../../../components/PinnableFilters/PinnableFilters.js";import"../../../components/HeaderLayout/HeaderLayout.js";import"../../../components/PadOffsetsPicker/PadOffsetsPicker.js";import"../../../components/PadOffsetsPicker/OffsetAssetChip.js";import"../../../components/PadOffsetsPicker/OffsetAssetsListExpander.js";import"../../../components/PadOffsetsPicker/StagesSelector.js";import"../../../components/Table/TableToolbar/TableToolbar.js";import"../../../components/PriceInput/PriceInput.js";import"../../../components/LabelsCounter/LabelsCounter.js";import"../../../components/Stepper/Step.js";import"../../../components/Stepper/StepsWrapper.js";import"../../../components/Stepper/Stepper.js";import"../../../components/Comment/CommentIcon/index.js";import"../../../components/FilesLoader/FilesLoader.js";import{THEMES as u}from"../../../constants/theme.js";import{LOCAL_STORAGE_APP_THEME_KEY as A}from"../../hocs/constants.js";import{isPDFReportView as x}from"../../hocs/utils.js";import{AuthContext as f}from"../../context/auth.js";import{LOGIN_ROUTE_REG_EXP as g}from"../../constants/index.js";import D from"./components/AppBar/AppBar.js";import v from"../../hocs/effects/useProvideAuth.js";import S from"./App.css.js";function h(h){var b,P=h.children,L=h.router,y=v(L),E=!g.test(L.location.pathname)&&!y.loading,I=c((function(o){return o+1}),0),T=t(I,2)[1],B=null!==(b=localStorage.getItem(A))&&void 0!==b?b:u.DARK,k=!E||!x&&B===u.DARK;a((function(){return e(k)}),[k]);return n(f.Provider,{value:y,children:n(i,{theme:k?p:m,children:n(d,{libInstance:o,utils:C,children:r(s,{children:[!E&&P,E&&r("div",{className:S.app,children:[n(j,{}),n(D,{toggleTheme:function(){localStorage.setItem(A,k?u.LIGHT:u.DARK),T()}}),n("div",{className:l(S.appContent,x&&S.pdfAppContent,!k&&S.lightAppContent),children:P})]})]})})})})}export default h;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import{jsxs as r,jsx as t}from"react/jsx-runtime";import{makeStyles as o,useTheme as a,AppBar as n,Toolbar as i,FormControlLabel as c,Checkbox as l,Tooltip as s,IconButton as p,Typography as m,Menu as d,MenuItem as u}from"@material-ui/core";import{useState as h}from"react";import f from"prop-types";import g from"../../../../../components/SwitchControl/index.js";import{LOCAL_STORAGE_PDF_REPORT_VIEW_KEY as b}from"../../../../hocs/constants.js";import{isPDFReportView as C}from"../../../../hocs/utils.js";import{useAuth as v}from"../../../../context/auth.js";import w from"@material-ui/icons/AccountCircle";import B from"../../../../assets/DevCenterLogo.js";var k=o((function(e){return{grow:{flexGrow:1},flex:{display:"flex"},appBar:{backgroundColor:"rgb(30, 31, 31)"},iconButtonRoot:{borderRadius:"unset"},userProfileIcon:{marginLeft:4},headerControl:{marginRight:32},formControlLabel:{fontSize:14}}}));function x(o){var f=o.toggleTheme,x=k(),A=v(),T=A.user,L=A.logout,N=a(),_=h(null),j=e(_,2),R=j[0],S=j[1],y=Boolean(R),z=function(){return S(null)},D=T.first_name,I=T.last_name,O="".concat(D[0]).concat(I[0]).toUpperCase();return r("div",{children:[t(n,{position:"static",className:x.appBar,children:r(i,{children:[t(B,{}),t("div",{className:x.grow}),t(c,{control:t(l,{"data-testid":"".concat("AppBar","_pdfReport"),checked:C,size:"small",onChange:function(e){localStorage.setItem(b,e.target.checked),window.location.reload()}}),label:"PDF report view",classes:{label:x.formControlLabel},className:x.headerControl}),t(s,{title:"Switch to white theme to tune your app for PDF reports",placement:"bottom",children:t("div",{children:t(g,{"data-testid":"".concat("AppBar","_themeSwitch"),className:x.headerControl,leftLabel:"Dark Theme",rightLabel:"White Theme",onChange:f,checked:N.isLightTheme,size:"small",title:""})})}),t("div",{children:t(p,{edge:"end","aria-label":"account of current user","aria-controls":"app-bar-menu","aria-haspopup":"true",onClick:function(e){return S(e.currentTarget)},color:"inherit",className:x.iconButtonRoot,children:r("div",{className:x.flex,children:[t(m,{"data-testid":"".concat("AppBar","_userInitials"),children:O}),t(w,{className:x.userProfileIcon})]})})})]})}),t(d,{"data-testid":"".concat("AppBar","_userDropdown"),anchorEl:R,id:"app-bar-menu",keepMounted:!0,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},open:y,onClose:z,children:t(u,{"data-testid":"".concat("AppBar","_signOutMenuItem"),onClick:function(){L(),z()},children:"Sign Out"})})]})}x.propTypes={toggleTheme:f.func.isRequired};export default x;
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{jsxs as r,jsx as t}from"react/jsx-runtime";import{makeStyles as o,useTheme as a,AppBar as n,Toolbar as i,FormControlLabel as c,Checkbox as l,Tooltip as s,IconButton as p,Typography as m,Menu as d,MenuItem as u}from"@material-ui/core";import{useState as h}from"react";import f from"prop-types";import g from"../../../../../components/SwitchControl/index.js";import{LOCAL_STORAGE_PDF_REPORT_VIEW_KEY as b}from"../../../../hocs/constants.js";import{isPDFReportView as C}from"../../../../hocs/utils.js";import{useAuth as v}from"../../../../context/auth.js";import w from"@material-ui/icons/AccountCircle";import B from"../../../../assets/DevCenterLogo.js";var k=o((function(e){return{grow:{flexGrow:1},flex:{display:"flex"},appBar:{backgroundColor:"rgb(30, 31, 31)"},iconButtonRoot:{borderRadius:"unset"},userProfileIcon:{marginLeft:4},headerControl:{marginRight:32},formControlLabel:{fontSize:14}}}));function x(o){var f=o.toggleTheme,x=k(),A=v(),T=A.user,L=A.logout,N=a(),_=h(null),j=e(_,2),R=j[0],S=j[1],y=Boolean(R),z=function(){return S(null)},D=T.first_name,I=T.last_name,O="".concat(D[0]).concat(I[0]).toUpperCase();return r("div",{children:[t(n,{position:"static",className:x.appBar,children:r(i,{children:[t(B,{}),t("div",{className:x.grow}),t(c,{control:t(l,{"data-testid":"".concat("AppBar","_pdfReport"),checked:C,size:"small",onChange:function(e){localStorage.setItem(b,e.target.checked),window.location.reload()}}),label:"PDF report view",classes:{label:x.formControlLabel},className:x.headerControl}),!C&&t(s,{title:"Switch to white theme to tune your app for PDF reports",placement:"bottom",children:t("div",{children:t(g,{"data-testid":"".concat("AppBar","_themeSwitch"),className:x.headerControl,leftLabel:"Dark Theme",rightLabel:"White Theme",onChange:f,checked:N.isLightTheme,size:"small",title:""})})}),t("div",{children:t(p,{edge:"end","aria-label":"account of current user","aria-controls":"app-bar-menu","aria-haspopup":"true",onClick:function(e){return S(e.currentTarget)},color:"inherit",className:x.iconButtonRoot,children:r("div",{className:x.flex,children:[t(m,{"data-testid":"".concat("AppBar","_userInitials"),children:O}),t(w,{className:x.userProfileIcon})]})})})]})}),t(d,{"data-testid":"".concat("AppBar","_userDropdown"),anchorEl:R,id:"app-bar-menu",keepMounted:!0,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},open:y,onClose:z,children:t(u,{"data-testid":"".concat("AppBar","_signOutMenuItem"),onClick:function(){L(),z()},children:"Sign Out"})})]})}x.propTypes={toggleTheme:f.func.isRequired};export default x;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{getAppType as r,getAppPixelSize as t}from"../../utils/dashboardReports.js";import{jsx as o}from"react/jsx-runtime";import{makeStyles as i}from"@material-ui/core";import{getAppCoordinates as n}from"./utils.js";function c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function p(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var a=i({page:{backgroundColor:"#fff",width:"21cm",height:"29.7cm",margin:"auto",overflow:"hidden",position:"relative",pageBreakAfter:"always",boxShadow:"#ccc 0px 1px 3px 0px, #ccc 0px 0px 0px 1px"},pdfReportApp:{display:"inline-block",overflow:"hidden",position:"relative",zoom:"0.5",margin:"0 0.1cm",border:"2px solid #ccc",pointerEvents:"none"}});export default function(e){return function(i){var c=a(),s=n(i.manifest),l=r({coordinates:s});return o("div",{className:c.page,children:o("div",{className:c.pdfReportApp,style:{width:"".concat(l.width,"cm"),height:"".concat(l.height,"cm")},children:o(e,p(p({},i),{},{coordinates:p(p({},s),t(l)),layoutEnvironment:{type:"general"}}))})})}}
1
+ import e from"@babel/runtime/helpers/defineProperty";import{getAppType as r,getAppPixelSize as t}from"../../utils/dashboardReports.js";import{jsx as o}from"react/jsx-runtime";import{makeStyles as n}from"@material-ui/core";import{getAppCoordinates as i}from"./utils.js";function p(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function c(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var a=n({page:{backgroundColor:"#fff",width:"21cm",height:"29.7cm",margin:"auto",overflow:"hidden",position:"relative",pageBreakAfter:"always",boxShadow:"#ccc 0px 1px 3px 0px, #ccc 0px 0px 0px 1px",paddingTop:2},pdfReportApp:{display:"inline-block",overflow:"hidden",position:"relative",zoom:"0.5",margin:"0 0.1cm",pointerEvents:"none"}});export default function(e){return function(n){var p=a(),s=i(n.manifest),f=r({coordinates:s});return o("div",{className:p.page,children:o("div",{className:p.pdfReportApp,style:{width:"".concat(f.width,"cm"),height:"".concat(f.height,"cm")},children:o(e,c(c({},n),{},{coordinates:c(c({},s),t(f)),layoutEnvironment:{type:"general"}}))})})}}
@@ -1 +1 @@
1
- import e from'../../../ext-esm/style-inject/dist/style-inject.es.js';e(".DevCenterAppContainer_container__23ttC{background-color:#201f1f;position:absolute;top:0;bottom:0;right:0;left:0;overflow:hidden}.dc-app-container__light-theme{background-color:#fff;color:rgba(0,0,0,.87);box-shadow:inset 0 0 0 2px #000}.DevCenterAppContainer_containerContent__3PvJP{width:100%;height:100%;overflow:hidden}.DevCenterAppContainer_containerMaximized__DUpD3{position:fixed;top:10px;left:10px;right:10px;bottom:10px;width:auto;height:auto;z-index:500;box-shadow:0 0 18px 3px rgba(0,0,0,.75);overflow:hidden}.DevCenterAppContainer_containerMaximized__DUpD3 .DevCenterAppContainer_containerContent__3PvJP{margin-right:28px;width:auto}");export default{container:"DevCenterAppContainer_container__23ttC",containerContent:"DevCenterAppContainer_containerContent__3PvJP",containerMaximized:"DevCenterAppContainer_containerMaximized__DUpD3"};
1
+ import e from'../../../ext-esm/style-inject/dist/style-inject.es.js';e(".DevCenterAppContainer_container__23ttC{background-color:#201f1f;position:absolute;top:0;bottom:0;right:0;left:0;overflow:hidden}.dc-app-container__light-theme{background-color:#fff;color:rgba(0,0,0,.87);box-shadow:inset 0 0 0 2px #ccc}.dc-app-container__pdf-report{zoom:.5}.DevCenterAppContainer_containerContent__3PvJP{width:100%;height:100%;overflow:hidden}.DevCenterAppContainer_containerMaximized__DUpD3{position:fixed;top:10px;left:10px;right:10px;bottom:10px;width:auto;height:auto;z-index:500;box-shadow:0 0 18px 3px rgba(0,0,0,.75);overflow:hidden}.DevCenterAppContainer_containerMaximized__DUpD3 .DevCenterAppContainer_containerContent__3PvJP{margin-right:28px;width:auto}");export default{container:"DevCenterAppContainer_container__23ttC",containerContent:"DevCenterAppContainer_containerContent__3PvJP",containerMaximized:"DevCenterAppContainer_containerMaximized__DUpD3"};
@@ -1 +1 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import"../../../constants/completion.js";import"../../../constants/alerts.js";import{pickBy as e,pick as n,noop as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import{DEV_CENTER_CLI_APP_ID as s}from"../../../constants/devcenter.js";import"../../../constants/goals.js";import{SEGMENTS as r}from"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import{getAppName as p,getTimestampFromQuery as a}from"../../../utils/devcenter.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import{isNativeDetected as m,isMobileDetected as l}from"../../../utils/mobileDetect.js";import{showSuccessNotification as c}from"../../../utils/notificationToasts.js";import"../../../utils/index.js";import{jsx as u,jsxs as d,Fragment as g}from"react/jsx-runtime";import{useTheme as A}from"@material-ui/core";import{useContext as f,useState as v}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import j from"../../../effects/useDevCenterApp.js";import"@babel/runtime/helpers/objectWithoutProperties";import C from"classnames";import{AnnotationsProvider as b}from"../../Annotations/AnnotationsContext.js";import{DevCenterRouterContext as h}from"../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import y from"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import I from"../AppContext.js";import D from"./effects/useAppSettings.js";import M from"./effects/useAnnotationsList.js";import S from"./effects/useAnnotationsData.js";import L from"./effects/useAppMaximized.js";import x from"./components/AppActions/AppActions.js";import O from"./components/AppSettingsDialog/AppSettingsDialog.js";import P from"./components/AnnotationsButton/AnnotationsButton.js";import R from"./components/NonPriorityMenus/NonPriorityMenus.js";import w from"./components/FullscreenButton/FullscreenButton.js";import"./components/AppInfoMessage/AppInfoMessage.js";import z from"./components/DevCenterAppView/DevCenterAppView.js";import N from"./DevCenterAppContainer.css.js";import E from"./components/RestoreAppSizeButton/index.js";import{getAppVersion as F}from"./utils.js";import U from"./components/PriorityMenus/PriorityMenus.js";function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function B(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?k(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):k(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var _=m||l;function q(t){var l,k,q,T,G,V,H,K=t.CLIAppComponent,W=t.CLIAppSettings,J=t.app,Q=t.appId,X=t.coordinates,Y=t.currentDashboardAppsLastAnnotations,Z=t.currentUser,$=t.devCenterRouter,tt=t.isActionsDisabled,et=t.isAppNotSubscribed,nt=t.layoutEnvironment,ot=t.onAppRemove,it=t.onIsMaximizedChange,st=t.onSettingChange,rt=t.onSettingsChange,pt=t.setIsFullscreenModalMode,at=void 0===pt?o:pt,mt=t.updateCurrentDashboardAppLastAnnotation,lt=f(I),ct=A(),ut=v([]),dt=i(ut,2),gt=dt[0],At=dt[1],ft=v([]),vt=i(ft,2),jt=vt[0],Ct=vt[1],bt=null!==(l=null==lt?void 0:lt[Q||J.id])&&void 0!==l?l:{isLoading:!0},ht=null===(k=J.package)||void 0===k||null===(q=k.manifest)||void 0===q?void 0:q.application,yt=(null==ht||null===(T=ht.segments)||void 0===T?void 0:T[0])||r.DRILLING,It=!(null==ht||null===(G=ht.ui)||void 0===G||!G.multi_rig),Dt=p(J),Mt=L({onIsMaximizedChange:it,devCenterRouter:$,appId:Q}),St=Mt.isMaximized,Lt=Mt.setIsMaximized,xt=a(null===(V=$.location.query)||void 0===V?void 0:V.query),Ot=J.id===s&&_?B(B({},X),{},{w:12}):X,Pt=j({CLIAppComponent:K,CLIAppSettings:W,url:null==J||null===(H=J.package)||void 0===H?void 0:H.url,appKey:J.app.app_key,version:F(J)}),Rt=Pt.isLoading,wt=Pt.AppSettings,zt=Pt.AppComponent,Nt=D({setIsFullscreenModalMode:at}),Et=Nt.isAppSettingsDialogOpened,Ft=Nt.toggleAppSettingsDialog,Ut=M(),kt=Ut.isAnnotationsListOpened,Bt=Ut.toggleAnnotationsList,_t=Rt||!Z||!It&&bt.isLoading,qt=$.location,Tt=qt.pathname,Gt=qt.query,Vt=S({app:J,appData:bt,currentDashboardAppsLastAnnotations:Y}),Ht=Vt.appLastAnnotation,Kt=Vt.assetCompanyId,Wt=Vt.assetIdForAnnotation,Jt=Vt.isAppSupportsAnnotations,Qt=e(n(bt,["well","rig","fracFleet","wells"]),Boolean);return u(h.Provider,{value:$,children:d("div",{className:C("dc-app-container",ct.isLightTheme&&"dc-app-container__light-theme",N.container),"data-testid":"".concat("DevCenter_AppContainer","_").concat(J.app.name),children:[u("div",{className:N.containerContent,children:u(z,{AppComponent:zt,app:J,appData:Qt,isAppLoading:Rt,isAppNotSubscribed:et,isLoading:_t,isMultiRig:It,segment:yt,layoutEnvironment:nt,appProps:{coordinates:Ot,currentUser:Z,devCenterRouter:$,onSettingChange:st,onSettingsChange:rt,setIsFullscreenModalMode:at,setIsMaximized:Lt,setMainMenuItems:At,setSecondaryMenuItems:Ct,appHeaderProps:B({app:J,appLastAnnotation:Ht,appSettings:J.settings,coordinates:Ot,currentUser:Z,isMaximized:St,layoutEnvironment:nt,onSettingChange:st,toggleAnnotationsList:Bt,updateCurrentDashboardAppLastAnnotation:mt},Qt),isNative:m,layoutEnvironment:nt,timestamp:xt}})}),Et&&u(O,{AppSettingsComponent:wt,app:J,appData:bt,appName:Dt,currentUser:Z,isMultiRig:It,layoutEnvironment:nt,onAppRemove:ot,onSettingChange:st,onSettingsChange:rt,segment:yt,timestamp:xt,toggleAppSettingsDialog:Ft}),kt&&u(b,{children:u(y,{appId:J.app.id,appSettings:J.settings,appTitle:J.name,assetCompanyId:Kt,assetId:Wt,currentUser:Z,onClose:Bt,showSuccessNotification:c})}),!tt&&St&&u(E,{setIsMaximized:Lt}),d(x,{children:[Jt&&u(P,{toggleAnnotationsList:Bt}),_&&!St?u(w,{setIsMaximized:Lt}):d(g,{children:[u(U,{menuItems:gt,devCenterRouter:$}),u(R,{appId:J.id,devCenterRouter:$,isMaximized:St,menuItems:jt,pathname:Tt,query:Gt,setIsMaximized:Lt,toggleAppSettingsDialog:Ft})]})]})]})})}export default q;
1
+ import t from"@babel/runtime/helpers/defineProperty";import"../../../constants/completion.js";import"../../../constants/alerts.js";import{pickBy as e,pick as n,noop as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import{DEV_CENTER_CLI_APP_ID as s}from"../../../constants/devcenter.js";import"../../../constants/goals.js";import{SEGMENTS as r}from"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import{getAppName as p,getTimestampFromQuery as a}from"../../../utils/devcenter.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import{isNativeDetected as m,isMobileDetected as l}from"../../../utils/mobileDetect.js";import{showSuccessNotification as c}from"../../../utils/notificationToasts.js";import"../../../utils/index.js";import{jsx as u,jsxs as d,Fragment as g}from"react/jsx-runtime";import{useTheme as A}from"@material-ui/core";import{useContext as f,useState as v}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import j from"../../../effects/useDevCenterApp.js";import"@babel/runtime/helpers/objectWithoutProperties";import C from"classnames";import{AnnotationsProvider as b}from"../../Annotations/AnnotationsContext.js";import{DevCenterRouterContext as h}from"../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import y from"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import I from"../AppContext.js";import D from"./effects/useAppSettings.js";import M from"./effects/useAnnotationsList.js";import S from"./effects/useAnnotationsData.js";import L from"./effects/useAppMaximized.js";import x from"./components/AppActions/AppActions.js";import O from"./components/AppSettingsDialog/AppSettingsDialog.js";import P from"./components/AnnotationsButton/AnnotationsButton.js";import R from"./components/NonPriorityMenus/NonPriorityMenus.js";import w from"./components/FullscreenButton/FullscreenButton.js";import"./components/AppInfoMessage/AppInfoMessage.js";import z from"./components/DevCenterAppView/DevCenterAppView.js";import N from"./DevCenterAppContainer.css.js";import E from"./components/RestoreAppSizeButton/index.js";import{getAppVersion as F}from"./utils.js";import U from"./components/PriorityMenus/PriorityMenus.js";function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function B(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?k(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):k(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var _=m||l;function q(t){var l,k,q,T,G,V,H,K=t.CLIAppComponent,W=t.CLIAppSettings,J=t.app,Q=t.appId,X=t.className,Y=t.coordinates,Z=t.currentDashboardAppsLastAnnotations,$=t.currentUser,tt=t.devCenterRouter,et=t.isActionsDisabled,nt=t.isAppNotSubscribed,ot=t.layoutEnvironment,it=t.onAppRemove,st=t.onIsMaximizedChange,rt=t.onSettingChange,pt=t.onSettingsChange,at=t.setIsFullscreenModalMode,mt=void 0===at?o:at,lt=t.updateCurrentDashboardAppLastAnnotation,ct=f(I),ut=A(),dt=v([]),gt=i(dt,2),At=gt[0],ft=gt[1],vt=v([]),jt=i(vt,2),Ct=jt[0],bt=jt[1],ht=null!==(l=null==ct?void 0:ct[Q||J.id])&&void 0!==l?l:{isLoading:!0},yt=null===(k=J.package)||void 0===k||null===(q=k.manifest)||void 0===q?void 0:q.application,It=(null==yt||null===(T=yt.segments)||void 0===T?void 0:T[0])||r.DRILLING,Dt=!(null==yt||null===(G=yt.ui)||void 0===G||!G.multi_rig),Mt=p(J),St=L({onIsMaximizedChange:st,devCenterRouter:tt,appId:Q}),Lt=St.isMaximized,xt=St.setIsMaximized,Ot=a(null===(V=tt.location.query)||void 0===V?void 0:V.query),Pt=J.id===s&&_?B(B({},Y),{},{w:12}):Y,Rt=j({CLIAppComponent:K,CLIAppSettings:W,url:null==J||null===(H=J.package)||void 0===H?void 0:H.url,appKey:J.app.app_key,version:F(J)}),wt=Rt.isLoading,zt=Rt.AppSettings,Nt=Rt.AppComponent,Et=D({setIsFullscreenModalMode:mt}),Ft=Et.isAppSettingsDialogOpened,Ut=Et.toggleAppSettingsDialog,kt=M(),Bt=kt.isAnnotationsListOpened,_t=kt.toggleAnnotationsList,qt=wt||!$||!Dt&&ht.isLoading,Tt=tt.location,Gt=Tt.pathname,Vt=Tt.query,Ht=S({app:J,appData:ht,currentDashboardAppsLastAnnotations:Z}),Kt=Ht.appLastAnnotation,Wt=Ht.assetCompanyId,Jt=Ht.assetIdForAnnotation,Qt=Ht.isAppSupportsAnnotations,Xt=e(n(ht,["well","rig","fracFleet","wells"]),Boolean);return u(h.Provider,{value:tt,children:d("div",{className:C("dc-app-container",X,ut.isLightTheme&&"dc-app-container__light-theme",N.container),"data-testid":"".concat("DevCenter_AppContainer","_").concat(J.app.name),children:[u("div",{className:N.containerContent,children:u(z,{AppComponent:Nt,app:J,appData:Xt,isAppLoading:wt,isAppNotSubscribed:nt,isLoading:qt,isMultiRig:Dt,segment:It,layoutEnvironment:ot,appProps:{coordinates:Pt,currentUser:$,devCenterRouter:tt,onSettingChange:rt,onSettingsChange:pt,setIsFullscreenModalMode:mt,setIsMaximized:xt,setMainMenuItems:ft,setSecondaryMenuItems:bt,appHeaderProps:B({app:J,appLastAnnotation:Kt,appSettings:J.settings,coordinates:Pt,currentUser:$,isMaximized:Lt,layoutEnvironment:ot,onSettingChange:rt,toggleAnnotationsList:_t,updateCurrentDashboardAppLastAnnotation:lt},Xt),isNative:m,layoutEnvironment:ot,timestamp:Ot}})}),Ft&&u(O,{AppSettingsComponent:zt,app:J,appData:ht,appName:Mt,currentUser:$,isMultiRig:Dt,layoutEnvironment:ot,onAppRemove:it,onSettingChange:rt,onSettingsChange:pt,segment:It,timestamp:Ot,toggleAppSettingsDialog:Ut}),Bt&&u(b,{children:u(y,{appId:J.app.id,appSettings:J.settings,appTitle:J.name,assetCompanyId:Wt,assetId:Jt,currentUser:$,onClose:_t,showSuccessNotification:c})}),!et&&Lt&&u(E,{setIsMaximized:xt}),d(x,{children:[Qt&&u(P,{toggleAnnotationsList:_t}),_&&!Lt?u(w,{setIsMaximized:xt}):d(g,{children:[u(U,{menuItems:At,devCenterRouter:tt}),u(R,{appId:J.id,devCenterRouter:tt,isMaximized:Lt,menuItems:Ct,pathname:Gt,query:Vt,setIsMaximized:xt,toggleAppSettingsDialog:Ut})]})]})]})})}export default q;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.27.0-10",
3
+ "version": "0.27.0-11",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"