@corva/ui 0.25.0-2 → 0.25.0-6
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/CLI/components/App/App.css.js +1 -1
- package/CLI/components/App/App.js +1 -1
- package/CLI/components/App/components/AppBar/AppBar.js +1 -1
- package/CLI/flags/index.js +1 -0
- package/CLI/hocs/constants.js +1 -0
- package/CLI/hocs/utils.js +1 -1
- package/CLI/hocs/withCorvaMagicHOC.js +1 -1
- package/CLI/hocs/withDevCenterRouterHOC.js +1 -1
- package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.js +1 -1
- package/CLI/hocs/withMUIProvidersHOC.js +1 -1
- package/CLI/hocs/withPDFLayoutHOC.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/EmptyView/index.js +1 -1
- package/components/FilesLoader/FilesLoader.js +1 -1
- package/components/FilesLoader/partials/Icons/DocFileIcon.js +1 -0
- package/components/FilesLoader/partials/Icons/ExelFileIcon.js +1 -0
- package/components/FilesLoader/partials/Icons/IconCancel.js +1 -0
- package/components/FilesLoader/partials/Icons/IconSuccess.js +1 -0
- package/components/FilesLoader/partials/Icons/IconWarning.js +1 -0
- package/components/FilesLoader/partials/Icons/PdfFileIcon.js +1 -0
- package/components/FilesLoader/partials/Icons/UnknownFileIcon.js +1 -0
- package/components/FilesLoader/partials/UploadingFileState/FileLoadingProgress.js +1 -0
- package/components/SwitchControl/index.js +1 -1
- package/config/theme/index.js +1 -1
- package/constants/apps.js +1 -1
- package/constants/theme.js +1 -0
- package/package.json +1 -1
- package/utils/apps.js +1 -0
- package/utils/dashboardReports.js +1 -0
- package/components/FilesLoader/constants.js +0 -1
- package/components/FilesLoader/effects/useUploadingFile.js +0 -1
- package/components/FilesLoader/partials/FileIcon/FileIcon.js +0 -1
- package/components/FilesLoader/partials/UploadingFileState/UploadingFileState.js +0 -1
|
@@ -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}");export default{app:"App_app__38Vvn",appContent:"App_appContent__2_P6A"};
|
|
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 +1 @@
|
|
|
1
|
-
import"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../constants/goals.js";import"../../../constants/apps.js";import"../../../constants/completion.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/drillstring.js";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsxs as o,jsx as t}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"@babel/runtime/helpers/objectWithoutProperties";import"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"../../../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
|
|
1
|
+
import"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../constants/goals.js";import"../../../constants/apps.js";import"../../../constants/completion.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/drillstring.js";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsxs as o,jsx as t}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"@babel/runtime/helpers/objectWithoutProperties";import e 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"../../../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 n from"../../../components/Notifications/NotificationsContainer.js";import"../../../components/TextLink/index.js";import"../../../components/Template/TemplatePopover/index.js";import"../../../components/PinnableFilters/PinnableFilters.js";import"../../../components/HeaderLayout/HeaderLayout.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{isPDFReportView as r}from"../../hocs/utils.js";import{AuthContext as s}from"../../context/auth.js";import{LOGIN_ROUTE_REG_EXP as i}from"../../constants/index.js";import p from"./components/AppBar/AppBar.js";import m from"../../hocs/withMUIProvidersHOC.js";import c from"../../hocs/effects/useProvideAuth.js";import a from"./App.css.js";var l=m((function(m){var l=m.children,j=m.router,d=m.toggleTheme,C=c(j),u=!i.test(j.location.pathname)&&!C.loading;return o(s.Provider,{value:C,children:[!u&&l,u&&o("div",{className:a.app,children:[t(n,{}),t(p,{toggleTheme:d}),t("div",{className:e(a.appContent,r&&a.pdfAppContent),children:l})]})]})}));export default l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"@babel/runtime/helpers/slicedToArray";import{jsxs as r,jsx as o}from"react/jsx-runtime";import{makeStyles as t,useTheme as i,AppBar as n,Toolbar as a,FormControlLabel as l,Checkbox as c,Tooltip as s,IconButton as m,Typography as p,Menu as h,MenuItem as u}from"@material-ui/core";import{useState as d}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 x from"../../../../assets/DevCenterLogo.js";import{isPDFReportsFeatureActive as k}from"../../../../flags/index.js";var T=t((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 j(t){var f=t.toggleTheme,j=T(),L=v(),N=L.user,B=L.logout,y=i(),z=d(null),R=e(z,2),S=R[0],D=R[1],P=Boolean(S),A=function(){return D(null)},I=N.first_name,O=N.last_name,F="".concat(I[0]).concat(O[0]).toUpperCase();return r("div",{children:[o(n,{position:"static",className:j.appBar,children:r(a,{children:[o(x,{}),o("div",{className:j.grow}),k()&&o(l,{control:o(c,{checked:C,size:"small",onChange:function(e){localStorage.setItem(b,e.target.checked),window.location.reload()}}),label:"PDF report view",classes:{label:j.formControlLabel},className:j.headerControl}),k()&&o(s,{title:"Switch to white theme to tune your app for PDF reports",placement:"bottom",children:o("div",{children:o(g,{className:j.headerControl,leftLabel:"Dark Theme",rightLabel:"White Theme",onChange:f,checked:y.isLightTheme,size:"small",title:""})})}),o("div",{children:o(m,{edge:"end","aria-label":"account of current user","aria-controls":"app-bar-menu","aria-haspopup":"true",onClick:function(e){return D(e.currentTarget)},color:"inherit",className:j.iconButtonRoot,children:r("div",{className:j.flex,children:[o(p,{children:F}),o(w,{className:j.userProfileIcon})]})})})]})}),o(h,{anchorEl:S,id:"app-bar-menu",keepMounted:!0,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},open:P,onClose:A,children:o(u,{onClick:function(){B(),A()},children:"Sign Out"})})]})}j.propTypes={toggleTheme:f.func.isRequired};export default j;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=function(){return!!localStorage.getItem("PDF_REPORTS")};export{t as isPDFReportsFeatureActive};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var E="APP_THEME",P="PDF_REPORT_VIEW";export{E as LOCAL_STORAGE_APP_THEME_KEY,P as LOCAL_STORAGE_PDF_REPORT_VIEW_KEY};
|
package/CLI/hocs/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";function
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{DEFAULT_APP_SIZE as t}from"../../constants/apps.js";import{LOCAL_STORAGE_PDF_REPORT_VIEW_KEY as r}from"./constants.js";function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function n(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?o(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(e){return JSON.parse(localStorage.getItem(e))||{}}function c(e,t){var r=i(e)||{};localStorage.setItem(e,JSON.stringify(n(n({},r),t)))}var l=JSON.parse(localStorage.getItem(r)||"false"),a=function(e){var r,o,c,l,a=null!==(r=null==e||null===(o=e.application)||void 0===o||null===(c=o.ui)||void 0===c?void 0:c.initial_size)&&void 0!==r?r:t;return i(null==e||null===(l=e.application)||void 0===l?void 0:l.key).coordinates||n(n({},a),{},{x:0,y:0})};export{a as getAppCoordinates,i as getLocalAppData,l as isPDFReportView,c as updateLocalAppData};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{initHighcharts as s}from"../../config/highcharts/highcharts.js";import{initializeSocketClient as
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{initHighcharts as s}from"../../config/highcharts/highcharts.js";import{initializeSocketClient as o}from"../../clients/subscriptions.js";import"../../styles/mapbox.global.css.js";import"../../styles/generatedThemesVariables.global.css.js";import r from"./withAppDataProviderHOC.js";import{isPDFReportView as i}from"./utils.js";import e from"./withCLIAppSettingsHOC.js";import a from"./withReactRouterHOC.js";import m from"./withGridLayoutHOC/withGridLayoutHOC.js";import p from"./withPDFLayoutHOC.js";import{withDevCenterRouterHOC as n}from"./withDevCenterRouterHOC.js";import"../../styles/index.global.css.js";import"../../styles/reactVirtualized.global.css.js";navigator.platform.indexOf("Mac")>-1||import("../../styles/customScrollbars.global.css.js"),s(),o();export default function(s){var o=s.component,l=s.settings,c=s.manifest,f=s.packageJson;return function(){var s=e(r({CLIAppComponent:o,CLIAppSettings:l,packageJson:f})),g=i?p(s):m(s),h=a(n(g));return t(h,{manifest:c,dashboardProps:{}})}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import{createDevCenterRouter as e}from"../../utils/devcenter.js";import"../../utils/index.js";import{jsx as t}from"react/jsx-runtime";import{useMemo as o}from"react";import n from"@babel/runtime/helpers/objectWithoutProperties";function i(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?i(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var p=function(r){return function(i){var p=i.router,u=n(i,["router"]),f=o((function(){return e(p)}),[p.location]);return t(r,c(c({},u),{},{devCenterRouter:f}))}};export{p as withDevCenterRouterHOC};
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import{createDevCenterRouter as e}from"../../utils/devcenter.js";import"../../utils/index.js";import{jsx as t}from"react/jsx-runtime";import{useMemo as o}from"react";import n from"@babel/runtime/helpers/objectWithoutProperties";function i(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?i(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var p=function(r){return function(i){var p=i.router,u=n(i,["router"]),f=o((function(){return e(p)}),[p.location]);return t(r,c(c({},u),{},{devCenterRouter:f}))}};export default p;export{p as withDevCenterRouterHOC};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{pick as r}from"lodash";import t from"@babel/runtime/helpers/slicedToArray";import{GRID_BREAKPOINTS as o,GRID_COLUMN_SIZES as i,GRID_ROW_HEIGHT as a,NON_DRAGGABLE_ELEMENT_SELECTOR as n}from"../../../constants/apps.js";import{isAppMaximized as l}from"../../../utils/devcenter.js";import{isPhoneDetected as s,isNativeDetected as c,isMobileDetected as p}from"../../../utils/mobileDetect.js";import"../../../utils/index.js";import{jsxs as m,jsx as d}from"react/jsx-runtime";import{makeStyles as b,Tooltip as u,FormControlLabel as f,Switch as g}from"@material-ui/core";import{useState as h}from"react";import y from"@babel/runtime/helpers/objectWithoutProperties";import j from"classnames";import{getLocalAppData as O,getAppCoordinates as v,updateLocalAppData as k}from"../utils.js";import{WidthProvider as w,Responsive as x}from"react-grid-layout";import{getAppSize as D}from"../../../utils/apps.js";import"./withGridLayoutHOC.global.css.js";import L from"./withGridLayoutHOC.css.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 S=w(x),z=b({gridLockFormControl:{margin:"4px 0 0 2px"},gridLockLabel:{fontSize:14},gridLockLabelDisabled:{color:"#bdbdbd"}});export default function(e){return w((function(b){var w,x=b.width,P=y(b,["width"]),H=P.manifest.application.key,W=h(null!==(w=O(H).isDraggable)&&void 0!==w&&w),E=t(W,2),G=E[0],M=E[1],N=z(),R=c||p,F=l(P.devCenterRouter.location.query),T=h(v(P.manifest)),q=t(T,2),A=q[0],B=q[1],I=D({coordinates:A,dashboardWidth:x,isMaximized:F}),J=I.pixelHeight,K=I.pixelWidth,Q=function(e){var o=t(e,1)[0],i=r(o,["x","y","w","h"]);B(i),k(H,{coordinates:i})};return m("div",{children:[d(S,{breakpoints:s?o.phone:o.general,cols:i,rowHeight:a,measureBeforeMount:!0,onResizeStop:Q,onDragStop:Q,isDraggable:!R&&G,isResizable:!R&&G,draggableCancel:n,useCSSTransforms:!1,children:d("div",{"data-grid":A,children:d("div",{className:F?L.appMaximized:"",children:d(e,C(C({},P),{},{coordinates:C(C({},A),{},{pixelHeight:J,pixelWidth:K}),layoutEnvironment:{type:"general"}}))})},"with-grid-layout-hoc")}),d(u,{title:G?"":"Disable grid lock to move and resize your app",placement:"right",children:d(f,{className:N.gridLockFormControl,control:d(g,{onChange:function(e){var r=e.target.checked;M(!r),k(H,{isDraggable:!r})},checked:!G,color:"primary"}),label:d("span",{className:j(N.gridLockLabel,G&&N.gridLockLabelDisabled),children:"Grid locked"})})})]})}))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import r from"moment";import{jsx as
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import r from"moment";import t from"@babel/runtime/helpers/slicedToArray";import{jsx as o}from"react/jsx-runtime";import{MuiThemeProvider as n}from"@material-ui/core";import{darkTheme as i,lightTheme as m}from"../../config/theme/index.js";import{useState as c}from"react";import{MuiPickersUtilsProvider as p}from"@material-ui/pickers";import f from"@date-io/moment";import{LOCAL_STORAGE_APP_THEME_KEY as a}from"./constants.js";import{THEMES as l}from"../../constants/theme.js";function s(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 u(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}export default function(e){return function(s){var b,O=c(null!==(b=localStorage.getItem(a))&&void 0!==b?b:l.DARK),j=t(O,2),g=j[0],y=j[1],h=g===l.DARK;return o(n,{theme:h?i:m,children:o(p,{libInstance:r,utils:f,children:o(e,u(u({},s),{},{toggleTheme:function(){var e=h?l.LIGHT:l.DARK;localStorage.setItem(a,e),y(e)}}))})})}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{jsx as r}from"react/jsx-runtime";import{makeStyles as t}from"@material-ui/core";import{getAppCoordinates as o}from"./utils.js";import{getAppType as i,getAppPixelSize as n}from"../../utils/dashboardReports.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=t({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(t){var c=a(),s=o(t.manifest),l=i({coordinates:s});return r("div",{className:c.page,children:r("div",{className:c.pdfReportApp,style:{width:"".concat(l.width,"cm"),height:"".concat(l.height,"cm")},children:r(e,p(p({},t),{},{coordinates:p(p({},s),n(l)),layoutEnvironment:{type:"general"}}))})})}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import{pickBy as e,pick as n,noop as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../constants/goals.js";import"../../../constants/apps.js";import"../../../constants/completion.js";import{SEGMENTS as s}from"../../../constants/segment.js";import"../../../constants/alerts.js";import{DEV_CENTER_CLI_APP_ID as r}from"../../../constants/devcenter.js";import"../../../constants/drillstring.js";import{getAppName as p,getTimestampFromQuery as a}from"../../../utils/devcenter.js";import{isNativeDetected as m,isMobileDetected as l}from"../../../utils/mobileDetect.js";import{jsx as
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import{pickBy as e,pick as n,noop as o}from"lodash";import i from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../constants/goals.js";import"../../../constants/apps.js";import"../../../constants/completion.js";import{SEGMENTS as s}from"../../../constants/segment.js";import"../../../constants/alerts.js";import{DEV_CENTER_CLI_APP_ID as r}from"../../../constants/devcenter.js";import"../../../constants/drillstring.js";import{getAppName as p,getTimestampFromQuery as a}from"../../../utils/devcenter.js";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{useContext as A,useState as f}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import v from"../../../effects/useDevCenterApp.js";import"@babel/runtime/helpers/objectWithoutProperties";import j from"classnames";import{AnnotationsProvider as C}from"../../Annotations/AnnotationsContext.js";import{DevCenterRouterContext as b}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 h from"../AppContext.js";import I from"./effects/useAppSettings.js";import D from"./effects/useAnnotationsList.js";import M from"./effects/useAnnotationsData.js";import S from"./effects/useAppMaximized.js";import L from"./components/AppActions/AppActions.js";import x from"./components/AppSettingsDialog/AppSettingsDialog.js";import O from"./components/AnnotationsButton/AnnotationsButton.js";import P from"./components/NonPriorityMenus/NonPriorityMenus.js";import R from"./components/FullscreenButton/FullscreenButton.js";import"./components/AppInfoMessage/AppInfoMessage.js";import w from"./components/DevCenterAppView/DevCenterAppView.js";import z from"./DevCenterAppContainer.css.js";import N from"./components/RestoreAppSizeButton/index.js";import{getAppVersion as E}from"./utils.js";import F from"./components/PriorityMenus/PriorityMenus.js";function U(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 k(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?U(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):U(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var B=m||l;function q(t){var l,U,q,T,_,G,V,H=t.CLIAppComponent,K=t.CLIAppSettings,W=t.app,J=t.appId,Q=t.coordinates,X=t.currentDashboardAppsLastAnnotations,Y=t.currentUser,Z=t.devCenterRouter,$=t.isActionsDisabled,tt=t.isAppNotSubscribed,et=t.layoutEnvironment,nt=t.onAppRemove,ot=t.onIsMaximizedChange,it=t.onSettingChange,st=t.onSettingsChange,rt=t.setIsFullscreenModalMode,pt=void 0===rt?o:rt,at=t.updateCurrentDashboardAppLastAnnotation,mt=A(h),lt=f([]),ct=i(lt,2),ut=ct[0],dt=ct[1],gt=f([]),At=i(gt,2),ft=At[0],vt=At[1],jt=null!==(l=null==mt?void 0:mt[J||W.id])&&void 0!==l?l:{isLoading:!0},Ct=null===(U=W.package)||void 0===U||null===(q=U.manifest)||void 0===q?void 0:q.application,bt=(null==Ct||null===(T=Ct.segments)||void 0===T?void 0:T[0])||s.DRILLING,yt=!(null==Ct||null===(_=Ct.ui)||void 0===_||!_.multi_rig),ht=p(W),It=S({onIsMaximizedChange:ot,devCenterRouter:Z,appId:J}),Dt=It.isMaximized,Mt=It.setIsMaximized,St=a(null===(G=Z.location.query)||void 0===G?void 0:G.query),Lt=W.id===r&&B?k(k({},Q),{},{w:12}):Q,xt=v({CLIAppComponent:H,CLIAppSettings:K,url:null==W||null===(V=W.package)||void 0===V?void 0:V.url,appKey:W.app.app_key,version:E(W)}),Ot=xt.isLoading,Pt=xt.AppSettings,Rt=xt.AppComponent,wt=I({setIsFullscreenModalMode:pt}),zt=wt.isAppSettingsDialogOpened,Nt=wt.toggleAppSettingsDialog,Et=D(),Ft=Et.isAnnotationsListOpened,Ut=Et.toggleAnnotationsList,kt=Ot||!Y||!yt&&jt.isLoading,Bt=Z.location,qt=Bt.pathname,Tt=Bt.query,_t=M({app:W,appData:jt,currentDashboardAppsLastAnnotations:X}),Gt=_t.appLastAnnotation,Vt=_t.assetCompanyId,Ht=_t.assetIdForAnnotation,Kt=_t.isAppSupportsAnnotations,Wt=e(n(jt,["well","rig","fracFleet","wells"]),Boolean);return u(b.Provider,{value:Z,children:d("div",{className:j("dc-app-container",z.container),"data-testid":"".concat("DevCenter_AppContainer","_").concat(W.app.name),children:[u("div",{className:z.containerContent,children:u(w,{AppComponent:Rt,app:W,appData:Wt,isAppLoading:Ot,isAppNotSubscribed:tt,isLoading:kt,isMultiRig:yt,segment:bt,layoutEnvironment:et,appProps:{coordinates:Lt,currentUser:Y,devCenterRouter:Z,onSettingChange:it,onSettingsChange:st,setIsFullscreenModalMode:pt,setIsMaximized:Mt,setMainMenuItems:dt,setSecondaryMenuItems:vt,appHeaderProps:k({app:W,appLastAnnotation:Gt,appSettings:W.settings,coordinates:Lt,currentUser:Y,isMaximized:Dt,layoutEnvironment:et,onSettingChange:it,toggleAnnotationsList:Ut,updateCurrentDashboardAppLastAnnotation:at},Wt),isNative:m,layoutEnvironment:et,timestamp:St}})}),zt&&u(x,{AppSettingsComponent:Pt,app:W,appData:jt,appName:ht,currentUser:Y,isMultiRig:yt,layoutEnvironment:et,onAppRemove:nt,onSettingChange:it,onSettingsChange:st,segment:bt,timestamp:St,toggleAppSettingsDialog:Nt}),Ft&&u(C,{children:u(y,{appId:W.app.id,appSettings:W.settings,appTitle:W.name,assetCompanyId:Vt,assetId:Ht,currentUser:Y,onClose:Ut,showSuccessNotification:c})}),!$&&Dt&&u(N,{setIsMaximized:Mt}),d(L,{children:[Kt&&u(O,{toggleAnnotationsList:Ut}),B&&!Dt?u(R,{setIsMaximized:Mt}):d(g,{children:[u(F,{menuItems:ut,devCenterRouter:Z}),u(P,{appId:W.id,devCenterRouter:Z,isMaximized:Dt,menuItems:ft,pathname:qt,query:Tt,setIsMaximized:Mt,toggleAppSettingsDialog:Nt})]})]})]})})}export default q;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as
|
|
1
|
+
import{jsxs as i,jsx as e}from"react/jsx-runtime";import{makeStyles as t,Typography as r}from"@material-ui/core";import a from"prop-types";import o from"classnames";var p=t({wrapper:{position:"relative",width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",padding:"16px",zIndex:1,"@media (max-height:350px)":{paddingTop:"56px"},"@media (max-width:500px)":{paddingTop:"128px"}},errorImage:{width:"390px",height:"300px",marginTop:"24px","@media (max-height:400px)":{width:"260px",height:"200px"},"@media (max-height:350px), (max-width: 580px) and (max-height:550px)":{display:"none"},"@media (max-width:500px)":{width:"260px",height:"200px"}},title:{fontSize:"32px",fontStyle:"italic",color:"#9E9E9E",lineHeight:"37px",fontWeight:"normal","@media (max-height:400px)":{fontSize:"24px"},"@media (max-width:500px)":{fontSize:"24px"}},description:{fontSize:"16px",color:"#9E9E9E"},arrow:{position:"absolute",top:0,right:0,zIndex:-1,"@media (max-width: 960px)":{display:"none"}}});function s(t){var a=t.title,s=t.description,d=t.showArrow,n=t.customStyles,m=p();return i("div",{className:o(m.wrapper,n.wrapper),children:[e(r,{className:o(m.title,n.title),children:a}),e(r,{className:o(m.description,n.description),children:s}),e("img",{src:"/static/media/5010eaf4520add4dcd713ce1fdbda5ea.png",className:m.errorImage,alt:"error state"}),d&&e("img",{src:"/static/media/1be6a0ee1d46b5f5c15203014864e086.svg",alt:"arrow",className:o(m.arrow,n.arrow)})]})}s.propTypes={title:a.string,description:a.string,showArrow:a.bool,customStyles:a.shape({wrapper:a.string,title:a.string,description:a.string,arrow:a.string})},s.defaultProps={title:"No Data Available",description:"",showArrow:!1,customStyles:{}};export default s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/slicedToArray";import
|
|
1
|
+
import e from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/helpers/toConsumableArray";import{jsxs as t,jsx as i}from"react/jsx-runtime";import{makeStyles as r,Button as o,Typography as a}from"@material-ui/core";import{useRef as l,useState as c}from"react";import p from"prop-types";import{Publish as u}from"@material-ui/icons";import m from"./partials/UploadingFileState/FileLoadingProgress.js";var s=r({filesLoader:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%"},uploadingFiles:{width:"100%"},fileInput:{display:"none"},inputButton:{display:"flex",alignItems:"center"},inputButtonText:{marginLeft:"6px",fontSize:"14px"}});function f(r){var p=s(),f=r.onLoad,d=l(),g=c([]),h=e(g,2),v=h[0],x=h[1],y=function(e,n){f(e,n)};return t("div",{className:p.filesLoader,children:[i("div",{className:p.uploadingFiles,children:v.map((function(e){return i(m,{file:e,onLoad:function(n){return y(e,n)},onDelete:function(t){return i=e,(r=v.findIndex((function(e){return e.name===i.name})))>-1&&v.splice(r,1),void x(n(v));var i,r}},e.name)}))}),!v.length&&i("div",{className:p.inputButton,children:t(o,{color:"primary",variant:"contained",onClick:function(){return d.current.click()},children:[i("input",{ref:d,type:"file",accept:".csv, text/csv",className:p.fileInput,onChange:function(e){var n=Array.from(e.target.files);n.length&&x(n)}}),i(u,{}),i(a,{className:p.inputButtonText,children:"Upload File"})]})})]})}f.propTypes={onLoad:p.func.isRequired};export default f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as C,jsx as H}from"react/jsx-runtime";import{makeStyles as V,SvgIcon as r}from"@material-ui/core";var t=V({svgIcon:{height:"32px",width:"32px"}});export default function(){var V=t();return C(r,{viewBox:"0 0 32 32",className:V.svgIcon,children:[H("path",{d:"M31.36 2.8H18.64V0.72V0.64C18.64 0.64 18.64 0.64 18.64 0.56V0.48L18.56 0.4C18.4 0.16 18.32 0.08 18.16 0C18.08 0 18.08 0 18 0H17.92C17.92 0 17.92 0 17.84 0L0.56 2.8C0.24 2.88 0 3.12 0 3.44V4.8V27.04V28.4C0 28.72 0.24 29.04 0.56 29.12L17.92 32C17.92 32 17.92 32 18 32H18.08C18.16 32 18.16 32 18.24 32C18.4 32 18.48 31.84 18.64 31.76L18.72 31.68V31.6C18.72 31.6 18.72 31.6 18.72 31.52V31.44V29.36H31.36C31.76 29.36 32 29.04 32 28.64V3.44C32 3.12 31.68 2.8 31.36 2.8ZM30.64 27.84H18.64V24.32H26.48C26.88 24.32 27.12 24 27.12 23.6C27.12 23.2 26.8 22.88 26.48 22.88H18.64V19.2H26.48C26.88 19.2 27.12 18.88 27.12 18.48C27.12 18.08 26.8 17.76 26.48 17.76H18.64V14.08H26.48C26.88 14.08 27.12 13.76 27.12 13.36C27.12 12.96 26.8 12.64 26.48 12.64H18.64V8.96H26.48C26.88 8.96 27.12 8.64 27.12 8.24C27.12 7.84 26.8 7.52 26.48 7.52H18.64V4.16H30.64V27.84Z",fill:"#2196F3"}),H("path",{d:"M3.6001 11.918H5.5201L6.8001 17.118L8.4801 11.918H10.1601L11.8401 17.198L13.2001 11.918H15.0401L12.7201 19.998H11.1201L9.3601 14.398L7.6001 19.998H6.0001L3.6001 11.918Z",fill:"white"})]})}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as V,jsx as H}from"react/jsx-runtime";import{makeStyles as C,SvgIcon as r}from"@material-ui/core";var t=C({svgIcon:{height:"32px",width:"32px"}});export default function(){var C=t();return V(r,{viewBox:"0 0 32 32",className:C.svgIcon,children:[H("path",{d:"M31.36 2.8H18.64V0.72V0.64C18.64 0.64 18.64 0.64 18.64 0.56V0.48L18.56 0.4C18.4 0.16 18.32 0.08 18.16 0C18.08 0 18.08 0 18 0H17.92C17.92 0 17.92 0 17.84 0L0.56 2.8C0.24 2.88 0 3.12 0 3.44V4.8V27.04V28.4C0 28.72 0.24 29.04 0.56 29.12L17.92 32C17.92 32 17.92 32 18 32H18.08C18.16 32 18.16 32 18.24 32C18.4 32 18.48 31.84 18.64 31.76L18.72 31.68V31.6C18.72 31.6 18.72 31.6 18.72 31.52V31.44V29.36H31.36C31.76 29.36 32 29.04 32 28.64V3.44C32 3.12 31.68 2.8 31.36 2.8ZM22 4.16V7.6H18.72V4.16H22ZM18.64 19.2H21.92V22.88H18.64V19.2V19.2ZM18.64 17.84V14.16H21.92V17.84H18.64V17.84ZM18.64 12.72V9.04H21.92V12.72H18.64ZM18.64 24.32H21.92V27.84H18.64V24.32V24.32ZM30.64 27.84H23.36V24.32H26.4C26.8 24.32 27.04 24 27.04 23.6C27.04 23.2 26.72 22.88 26.4 22.88H23.36V19.2H26.4C26.8 19.2 27.04 18.88 27.04 18.48C27.04 18.08 26.72 17.76 26.4 17.76H23.36V14.08H26.4C26.8 14.08 27.04 13.76 27.04 13.36C27.04 12.96 26.72 12.64 26.4 12.64H23.36V8.96H26.4C26.8 8.96 27.04 8.64 27.04 8.24C27.04 7.84 26.72 7.52 26.4 7.52H23.36V4.16H30.64V27.84V27.84Z",fill:"#4BC341"}),H("path",{d:"M8.0802 15.84L5.4402 12H7.6802L9.4402 14.8L11.1202 12H13.2802L10.6402 15.84L13.5202 20.08H11.2002L9.2802 16.8L7.3602 20H5.2002L8.0802 15.84Z",fill:"white"})]})}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{makeStyles as t,SvgIcon as L}from"@material-ui/core";var e=t({svgIcon:{width:16,height:16}});export default function(){var t=e();return r(L,{viewBox:"0 0 16 16",className:t.svgIcon,children:r("path",{d:"M12.6668 4.27203L11.7268 3.33203L8.00016 7.0587L4.2735 3.33203L3.3335 4.27203L7.06016 7.9987L3.3335 11.7254L4.2735 12.6654L8.00016 8.9387L11.7268 12.6654L12.6668 11.7254L8.94016 7.9987L12.6668 4.27203Z",fill:"#BDBDBD"})})}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";export default function(){return e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00016 1.33203C4.32016 1.33203 1.3335 4.3187 1.3335 7.9987C1.3335 11.6787 4.32016 14.6654 8.00016 14.6654C11.6802 14.6654 14.6668 11.6787 14.6668 7.9987C14.6668 4.3187 11.6802 1.33203 8.00016 1.33203ZM8.00016 13.332C5.06016 13.332 2.66683 10.9387 2.66683 7.9987C2.66683 5.0587 5.06016 2.66536 8.00016 2.66536C10.9402 2.66536 13.3335 5.0587 13.3335 7.9987C13.3335 10.9387 10.9402 13.332 8.00016 13.332ZM6.66683 9.44536L11.0602 5.05203L12.0002 5.9987L6.66683 11.332L4.00016 8.66536L4.94016 7.72536L6.66683 9.44536Z",fill:"#03BCD4"})})}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";export default function(){return e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.98024 13.6704C1.95358 13.6704 1.31358 12.557 1.82691 11.6704L6.84691 2.99703C7.36024 2.11036 8.64024 2.11036 9.15358 2.99703L14.1736 11.6704C14.6869 12.557 14.0469 13.6704 13.0202 13.6704H2.98024ZM13.0202 12.337L8.00024 3.6637L2.98024 12.337H13.0202ZM7.33358 7.0037V8.33703C7.33358 8.7037 7.63358 9.0037 8.00024 9.0037C8.36691 9.0037 8.66691 8.7037 8.66691 8.33703V7.0037C8.66691 6.63703 8.36691 6.33703 8.00024 6.33703C7.63358 6.33703 7.33358 6.63703 7.33358 7.0037ZM8.66691 11.6704V10.337H7.33358V11.6704H8.66691Z",fill:"#F44336"})})}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as C,jsx as H}from"react/jsx-runtime";import{makeStyles as V,SvgIcon as r}from"@material-ui/core";var t=V({svgIcon:{height:"32px",width:"32px"}});export default function(){var V=t();return C(r,{viewBox:"0 0 32 32",className:V.svgIcon,children:[H("path",{d:"M31.36 2.8H18.64V0.72V0.64C18.64 0.64 18.64 0.64 18.64 0.56V0.48L18.56 0.4C18.4 0.16 18.32 0.08 18.16 0C18.08 0 18.08 0 18 0H17.92C17.92 0 17.92 0 17.84 0L0.56 2.8C0.24 2.88 0 3.12 0 3.44V4.8V27.04V28.4C0 28.72 0.24 29.04 0.56 29.12L17.92 32C17.92 32 17.92 32 18 32H18.08C18.16 32 18.16 32 18.24 32C18.4 32 18.48 31.84 18.64 31.76L18.72 31.68V31.6C18.72 31.6 18.72 31.6 18.72 31.52V31.44V29.36H31.36C31.76 29.36 32 29.04 32 28.64V3.44C32 3.12 31.68 2.8 31.36 2.8ZM30.64 27.84H18.64V24.32H26.48C26.88 24.32 27.12 24 27.12 23.6C27.12 23.2 26.8 22.88 26.48 22.88H18.64V19.2H26.48C26.88 19.2 27.12 18.88 27.12 18.48C27.12 18.08 26.8 17.76 26.48 17.76H18.64V14.08H26.48C26.88 14.08 27.12 13.76 27.12 13.36C27.12 12.96 26.8 12.64 26.48 12.64H18.64V8.96H26.48C26.88 8.96 27.12 8.64 27.12 8.24C27.12 7.84 26.8 7.52 26.48 7.52H18.64V4.16H30.64V27.84Z",fill:"#EA2929"}),H("path",{d:"M13.5199 17.9217C13.3599 17.4417 13.0399 17.1217 12.6399 16.8817C12.3999 16.7217 12.0799 16.6417 11.7599 16.6417H9.9199L9.5199 16.0017L10.3999 14.4017C10.5599 14.1617 10.6399 13.8417 10.6399 13.5217C10.6399 12.5617 9.8399 11.7617 8.8799 11.7617C7.9199 11.7617 7.1199 12.5617 7.1199 13.5217C7.1199 13.8417 7.1999 14.0817 7.3599 14.4017L8.2399 16.0017L7.8399 16.7217H5.9199C5.5999 16.7217 5.2799 16.8017 5.0399 16.9617C4.6399 17.2017 4.3199 17.5217 4.1599 18.0017C3.9999 18.4817 4.0799 18.9617 4.3199 19.3617C4.6399 19.9217 5.2799 20.2417 5.8399 20.2417C6.1599 20.2417 6.3999 20.1617 6.7199 20.0017C6.9599 19.8417 7.1999 19.6017 7.3599 19.3617L8.3999 17.7617H9.2799L10.3199 19.3617C10.4799 19.6017 10.7199 19.8417 10.9599 20.0017C11.8399 20.4817 12.8799 20.1617 13.3599 19.2817C13.5999 18.8817 13.6799 18.4017 13.5199 17.9217ZM6.4799 18.8017C6.3999 18.8817 6.3199 18.9617 6.2399 19.0417C6.0799 19.1217 5.9199 19.1217 5.7599 19.1217C5.5999 19.0417 5.4399 18.9617 5.3599 18.8017C5.2799 18.6417 5.2799 18.4817 5.2799 18.3217C5.3599 18.1617 5.4399 18.0017 5.5999 17.9217C5.6799 17.8417 5.7599 17.8417 5.9199 17.8417H7.1199L6.4799 18.8017ZM8.8799 14.8817L8.3199 13.8417C8.2399 13.7617 8.2399 13.6017 8.2399 13.5217C8.2399 13.1217 8.5599 12.8817 8.8799 12.8817C9.2799 12.8817 9.5199 13.2017 9.5199 13.5217C9.5199 13.6017 9.5199 13.7617 9.4399 13.8417L8.8799 14.8817ZM12.3199 18.7217C12.2399 18.8817 12.0799 18.9617 11.9199 19.0417C11.7599 19.1217 11.5999 19.0417 11.4399 18.9617C11.3599 18.8817 11.2799 18.8017 11.1999 18.7217L10.5599 17.7617H11.7599C11.8399 17.7617 11.9999 17.7617 12.0799 17.8417C12.2399 17.9217 12.3199 18.0817 12.3999 18.2417C12.4799 18.4017 12.3999 18.5617 12.3199 18.7217Z",fill:"white"})]})}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as C}from"react/jsx-runtime";import{makeStyles as r,SvgIcon as V}from"@material-ui/core";var e=r({svgIcon:{height:"32px",width:"32px"}});export default function(){var r=e();return C(V,{viewBox:"0 0 32 32",className:r.svgIcon,children:C("path",{d:"M31.3357 2.784H18.6638V0.696C18.6681 0.661463 18.6681 0.626537 18.6638 0.592V0.592C18.6685 0.554811 18.6685 0.517189 18.6638 0.48V0.48C18.6473 0.440114 18.6258 0.402481 18.5998 0.368V0.368C18.5569 0.277435 18.4945 0.197482 18.417 0.133863C18.3396 0.0702436 18.249 0.0245322 18.1518 0L17.9038 0L0.567954 2.792C0.407636 2.81876 0.262204 2.90205 0.158007 3.02679C0.0538104 3.15154 -0.00225866 3.30948 -4.13915e-05 3.472V28.52C-0.00254391 28.6835 0.053243 28.8425 0.157323 28.9685C0.261404 29.0946 0.406975 29.1795 0.567954 29.208L17.8958 32H18.1438C18.2902 31.9641 18.4199 31.8794 18.5118 31.76V31.76C18.5377 31.7284 18.5592 31.6934 18.5758 31.656V31.656C18.5804 31.6215 18.5804 31.5865 18.5758 31.552C18.5789 31.5388 18.5789 31.5252 18.5758 31.512V31.512C18.5798 31.4774 18.5798 31.4426 18.5758 31.408V31.408V29.328H31.3357C31.516 29.3238 31.6873 29.2482 31.8118 29.1177C31.9363 28.9873 32.0039 28.8127 31.9997 28.6324V3.48C32.0018 3.39069 31.9864 3.30185 31.9541 3.21853C31.9219 3.13521 31.8736 3.05906 31.8119 2.99443C31.7503 2.92979 31.6765 2.87794 31.5948 2.84184C31.513 2.80573 31.425 2.78608 31.3357 2.784V2.784ZM30.6637 27.824H18.6638V4.208H30.6637V27.824Z",fill:"#616161"})})}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/slicedToArray";import{jsxs as o,jsx as t}from"react/jsx-runtime";import{makeStyles as n,Typography as i,LinearProgress as l,Tooltip as a,IconButton as c}from"@material-ui/core";import{useState as s,useEffect as p}from"react";import d from"prop-types";import{Delete as f}from"@material-ui/icons";import m from"../Icons/IconWarning.js";import u from"../Icons/IconCancel.js";import h from"../Icons/IconSuccess.js";import g from"../Icons/DocFileIcon.js";import x from"../Icons/PdfFileIcon.js";import y from"../Icons/UnknownFileIcon.js";import b from"../Icons/ExelFileIcon.js";function w(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),o.push.apply(o,t)}return o}function v(r){for(var o=1;o<arguments.length;o++){var t=null!=arguments[o]?arguments[o]:{};o%2?w(Object(t),!0).forEach((function(o){e(r,o,t[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}var S=n((function(e){return{fileStateWrapper:{display:"flex",alignItems:"center"},fileIconContainer:{display:"flex",alignItems:"center",marginRight:"10px"},fileState:{display:"flex",flexGrow:"1",alignItems:"center"},fileStateProgress:{flexGrow:"1"},fileNameWrapper:{display:"table",tableLayout:"fixed",width:"100%"},fileName:{display:"table-cell",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"14px",lineHeight:"16px"},fileSize:{fontSize:"11px",lineHeight:"12px",color:e.palette.primary.text6},checkIcon:{color:e.palette.success.bright},deleteIcon:{color:e.palette.primary.text6,cursor:"pointer"},progressBar:{borderRadius:"2px",height:"2px",margin:"4px 0"},fileActions:{display:"flex",alignItems:"center",paddingLeft:"24px"},progressBackground:{backgroundColor:e.palette.primary.dark},loaderProgressContainer:{display:"flex",width:"100%",fontSize:"11px",fontWeight:"400",letterSpacing:"0.4px",color:e.palette.primary.text6,marginTop:"4px"},progressStatus:{flexGrow:1,display:"flex",justifyContent:"flex-end"},errorContainer:{display:"flex",cursor:"pointer"},errorText:{color:e.palette.error.main,fontSize:"11px",fontWeight:"400",letterSpacing:"0.4px",marginRight:"5px",lineHeight:"16px"}}}));function I(e){var n=S(),d=s({}),w=r(d,2),I=w[0],j=w[1],N=s(0),O=r(N,2),P=O[0],z=O[1],C=e.name,B=e.sizeBytes,M=e.handleCancel,k=e.onDelete,D=e.loadedBytes,W=e.error;return p((function(){B&&j(B>=Math.pow(10,6)?{downloaded:0,unit:"MB",convertedSize:Math.floor(B/Math.pow(10,5))/10}:B>=Math.pow(10,3)?{downloaded:0,unit:"KB",convertedSize:Math.floor(B/Math.pow(10,2))/10}:{downloaded:0,unit:"B",convertedSize:Math.floor(10*B)/10})}),[B]),p((function(){if(D){var e=Math.round(D/B*100);j((function(r){return v(v({},r),{},{downloaded:Math.floor(r.convertedSize*e/10)/10})})),z(e)}}),[D]),o("div",{className:n.fileStateWrapper,children:[t("div",{className:n.fileIconContainer,children:C.includes(".doc")?t(g,{}):C.includes(".pdf")?t(x,{}):C.includes(".xls")?t(b,{}):t(y,{})}),o("div",{className:n.fileState,children:[o("div",{className:n.fileStateProgress,children:[t("div",{className:n.fileNameWrapper,children:t(i,{className:n.fileName,children:C})}),t(l,{className:n.progressBar,variant:"determinate",value:P,classes:{colorPrimary:n.progressBackground}}),o("div",{className:n.loaderProgressContainer,children:[t(i,{className:n.fileSize,component:"span",children:"".concat(I.downloaded," of ").concat(I.convertedSize," ").concat(I.unit)}),t("div",{className:n.progressStatus,children:W?t(a,{title:"There was a server error during the upload request. Please try later.",children:o(i,{component:"div",className:n.errorContainer,children:[t(i,{component:"span",className:n.errorText,children:"Upload Error"}),t(m,{})]})}):"".concat(P," %")})]})]}),o("div",{className:n.fileActions,children:[P<100&&!W&&t(c,{size:"small",onClick:function(){M(C),z(0),j((function(e){return v(v({},e),{},{downloaded:0})}))},children:t(u,{})}),100===P&&!W&&(k?t(c,{size:"small",onClick:k,children:t(f,{className:n.deleteIcon})}):t(h,{}))]})]})]})}I.propTypes={onDelete:d.func,handleCancel:d.func,name:d.string,sizeBytes:d.number,error:d.bool,loadedBytes:d.number.isRequired},I.defaultProps={onDelete:null,name:"",sizeBytes:1,error:null,handleCancel:null};export default I;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{jsxs as
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{jsxs as a,jsx as i}from"react/jsx-runtime";import{withStyles as l,Grid as t,Typography as r,Switch as s}from"@material-ui/core";import o from"prop-types";import c from"classnames";import n from"./style.css.js";var d=function(l){var o,d,b=l.title,m=l.leftLabel,p=l.rightLabel,h=l.checked,f=l.onChange,g=l.disabled,u=l.classes,L=l.size,k=l.className,w=m&&p;return a("div",{className:k,children:[b&&i("div",{className:n.switchControlTitle,children:b}),i("div",{className:n.switchControlWithLabels,children:a(t,{component:"label",container:!0,alignItems:"center",spacing:0,children:[m&&i(t,{item:!0,children:i(r,{variant:"body2",className:c(u.label,"small"===L&&u.labelSmall,!h&&!g&&u.activeLabel,g&&u.disabledLabel),children:m})}),i(t,{item:!0,children:i(s,{checked:h,onChange:f,color:"primary",disabled:g,classes:{root:u.root,switchBase:c((o={},e(o,u.switchBase,w||h&&!g),e(o,u.switchBaseDisabled,g&&(w||h)),e(o,u.switchBaseDisabledNoLabels,!w&&g&&!h),o)),track:c((d={},e(d,u.track,w||h&&!g),e(d,u.trackDisabled,g&&(w||h)),e(d,u.trackDisabledNoLabels,!w&&g&&!h),d))},size:L})}),p&&i(t,{item:!0,children:i(r,{variant:"body2",className:c(u.label,"small"===L&&u.labelSmall,h&&u.activeLabel,g&&u.disabledLabel),children:p})})]})})]})};d.propTypes={title:o.string,leftLabel:o.string,rightLabel:o.string,checked:o.bool.isRequired,onChange:o.func.isRequired,disabled:o.bool,classes:o.shape({}).isRequired,size:o.string,className:o.string},d.defaultProps={title:"",leftLabel:"",rightLabel:"",disabled:!1,size:"medium",className:""};var b=l({root:{paddingLeft:10,paddingRight:10,width:56,"&.MuiSwitch-sizeSmall":{width:48,"& .MuiSwitch-switchBase":{paddingLeft:7}}},switchBase:{color:"#03BCD4","&.Mui-checked":{paddingLeft:7}},switchBaseDisabled:{color:"#196069 !important"},track:{backgroundColor:"#196069 !important",opacity:"1 !important",border:"none"},trackDisabled:{backgroundColor:"#223D40 !important",opacity:"1 !important",border:"none"},switchBaseDisabledNoLabels:{color:"#545454 !important"},trackDisabledNoLabels:{backgroundColor:"#3D3D3D !important",opacity:"1 !important",border:"none"},label:{display:"flex",justifyContent:"center",flexDirection:"column",fontSize:"16px",lineHeight:"22px",color:"#bdbdbd",margin:"8px 0px",cursor:"pointer"},labelSmall:{fontSize:"14px",lineHeight:"20px"},disabledLabel:{cursor:"default",color:"#616161"},activeLabel:{color:"#ffffff"}})(d);export default b;
|
package/config/theme/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import{jsx as o}from"react/jsx-runtime";import{createMuiTheme as e}from"@material-ui/core";import t from"@material-ui/icons/Close";import i from"./palette.mjs.js";import{dateTimePickerThemeOverrides as p}from"./dateTimePickerThemeOverrides.js";import m from"./accordionOverrides.js";import
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import{jsx as o}from"react/jsx-runtime";import{createMuiTheme as e}from"@material-ui/core";import t from"@material-ui/icons/Close";import i from"./palette.mjs.js";import{dateTimePickerThemeOverrides as p}from"./dateTimePickerThemeOverrides.js";import m from"./accordionOverrides.js";import a from"./buttonOverrides.js";import n from"./checkboxOverrides.js";import c from"./chipOverrides.js";import s from"./fabOverrides.js";import d from"./formControlLabelOverrides.js";import l from"./formGroupOverrides.js";import u from"./radioOverrides.js";import f from"./tableOverrides.js";import g from"./textFieldOverrides.js";import b from"./tooltipOverrides.js";import{lightThemeVariables as x,darkThemeVariables as O}from"./themeVariables.mjs.js";import j from"./toggleButtonsGroupOverrides.js";function h(r,o){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);o&&(t=t.filter((function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),e.push.apply(e,t)}return e}function y(o){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?h(Object(t),!0).forEach((function(e){r(o,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))}))}return o}var v=i.primary,M=v.text7,k=v.text9,w={overrides:y(y(y(y(y(y(y(y(y(y(y(y(y({MuiMenu:{paper:{root:{overscrollBehaviorY:"contain","& .MuiMenuItem-root":{backgroundColor:i.background.b9,"&$selected":{backgroundColor:i.primary.text9}}}}},MuiMenuItem:{root:{minHeight:36,color:i.primary.contrastText}},MuiTooltip:{tooltip:{backgroundColor:i.background.b9}},MuiSwitch:{switchBase:{color:M},track:{backgroundColor:k,opacity:1},colorPrimary:{"&$checked":{"& + $track":{opacity:.38}}},colorSecondary:{"&$checked":{"& + $track":{opacity:.38}}}},MuiDialogTitle:{root:{padding:"40px 40px 16px 40px","@media (max-width: 960px)":{padding:"16px"}}},MuiDialogContent:{root:{padding:"0 40px 0 40px","@media (max-width: 960px)":{padding:"0 16px"}}},MuiDialogContentText:{root:{color:i.primary.text6,lineHeight:"22.5px",marginBottom:0}},MuiDialogActions:{root:{padding:"32px 40px 40px 40px","@media (max-width: 960px)":{padding:16}},spacing:{"&>:not(:first-child)":{marginLeft:16}}},MuiListItemIcon:{root:{minWidth:48}}},m),a),n),c),p),s),d),l),u),f),g),b),j)},C={MuiMenu:{getContentAnchorEl:function(){return null}},MuiCheckbox:{color:"primary"},MuiRadio:{color:"primary"},MuiChip:{deleteIcon:o(t,{})}},P=e(y(y(y({props:C},x),w),{},{isLightTheme:!0})),D=e(y(y(y({props:C},O),{},{palette:y(y({},O.palette),{},{type:"dark"})},w),{},{isDarkTheme:!0}));export{D as darkTheme,P as lightTheme};
|
package/constants/apps.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import{SLIPS_TO_SLIPS_GOAL as e,WEIGHT_TO_WEIGHT_GOAL as o,BOTTOM_TO_SLIPS_GOAL as i,SLIPS_TO_BOTTOM_GOAL as r}from"./goals.js";var n,l;function a(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function s(e){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?a(Object(i),!0).forEach((function(o){t(e,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var c="apps",p="LOAD_APPS",u={general:{large:1024,medium:512,small:0},phone:{small:0}},m={large:12,medium:12,small:1},d=["button","a","input","textarea","li","table","tbody","thead","tr","td","label","canvas",".MuiButtonBase-root",".MuiInputBase-root",".MuiDialog-paper",".MuiFormControlLabel-label",".MuiSlider-root",".ReactVirtualized__Table",".leaflet-container",".c-slider",".c-modal",".c-tvs__container"].join(","),
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import{SLIPS_TO_SLIPS_GOAL as e,WEIGHT_TO_WEIGHT_GOAL as o,BOTTOM_TO_SLIPS_GOAL as i,SLIPS_TO_BOTTOM_GOAL as r}from"./goals.js";var n,l;function a(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function s(e){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?a(Object(i),!0).forEach((function(o){t(e,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var c="apps",p="LOAD_APPS",u={general:{large:1024,medium:512,small:0},phone:{small:0}},m={large:12,medium:12,small:1},d=10,g=["button","a","input","textarea","li","table","tbody","thead","tr","td","label","canvas",".MuiButtonBase-root",".MuiInputBase-root",".MuiDialog-paper",".MuiFormControlLabel-label",".MuiSlider-root",".ReactVirtualized__Table",".leaflet-container",".c-slider",".c-modal",".c-tvs__container"].join(","),v=30,y=[{label:"Auto",value:"auto"},{label:"Horizontal",value:"horizontal"},{label:"Vertical",value:"vertical"}],b=[{label:"Dont show",value:"dont_show"},{label:"Dim",value:"dim"}],f={NORMAL:{type:"normal",columns:{min:1,max:7},rows:{min:1,max:1e3},slots:1},WIDE:{type:"wide",columns:{min:8,max:12},rows:{min:1,max:25},slots:2},HALFSCREEN:{type:"halfscreen",columns:{min:8,max:12},rows:{min:26,max:40},slots:4},FULLSCREEN:{type:"fullscreen",columns:{min:8,max:12},rows:{min:41,max:1e3},slots:8}},w={w:4,h:10},h=["circulation-volumetric","pdm-overview","hydraulics-overview","torqueAndDrag-broomstick","torqueAndDrag-axialLoad","torqueAndDrag-dowholeTransfer","torqueAndDrag-frictionFactor","torqueAndDrag-stress","torqueAndDrag-torque","drillingEfficiency-mseHeatmap","drillingEfficiency-mseVDepth","drillingEfficiency-gammaVDepth","drillingEfficiency-optimization","drillingEfficiency-ropHeatmap","corva.driller-roadmap","drillingEfficiency-wobFounder","parameter-crossplot","parameter-comparison","dpFounder","directional-trend","directional-accuracy","directional-wellPlan","directional-toolFaceOrientation","directional-slideSheet","corva.trip-sheet-ui","directional-tool-face-depth","directional-rotational-tendencies","directional-surveys","directional-tortuosityIndex","directional-rotary-trend-analysis","corva.bit-projection-ui","corva.directional-guidance-ui","corva.traces","settings-generalInfo","settings-drillstrings","settings-casing","settings-actualSurveys","settings-planSurveys","settings-fluidChecks","settings-costs","stageDesign","settings-map","settings-formations","settings-crewsContact","settings-nptEvents","settings-operationSummaries","settings-filesDocuments","settings-wellSections","operationSummaries","settings-operationDiaries","settings-surfaceEquipment","settings-userEvents","settings-offsetWells","settings-AFE","settings-pressureGradient","rigActivity","drillingOperations","depthVersusDays","operationSummary","non-productive-app","corva.rop-performance","corva.visualizer","corva.metrics-ui","corva.bha-optimization","corva.asset-status","corva.multi-asset-status","corva.asset-daily-metrics","wellboreStability-mwWindow","wellboreStability-surgeAndSwab","hydraulics-annularFlowRegime","bedHeight","concentration","minimumFlowRate","hydraulics-pressureLoss","hydraulics-pressureTrend","hydraulics-annularVelocity","hydraulics-bitHydraulics","mud-weight-vs-depth","pdm-operatingCondition","stallsHistory","corva.well-checkup-ui","corva.completion.settings-generalInfo","corva.completion.settings-costs","corva.completion.settings-crewsContact","corva.completion.settings-nptEvents","corva.completion.settings-operationSummaries","corva.completion.settings-filesDocuments","corva.completion.settings-jobSettings","corva.completion.settings-timeLog","corva.completion.settings-well-goals-ui","corva.completion.settings-stageDesign","corva.completion.settings-stageActual","corva.completion.settings-plugs","corva.completion.asset-status","corva.completion.key-comparison","corva.completion.prc","corva.completion.tvd-v-md","corva.completion.well-comparison","corva.completion.stage-design-actual","corva.completion.activity-detection","corva.completion.parameter-crossplot","corva.completion.pad-analysis","corva.completion.chemicals","corva.completion.proppants","jobSettings","stageDesign","well3D","corva.completion.metrics","corva.completion.non-productive-events","corva.procedural-compliance-ui","corva.tripping-speeds","corva.completion.wireline-traces","corva.completion.wireline-times","corva.completion-wireline-parameters-ui","corva.completion.swap-over-times","corva.drillout.parameter-sheet","corva.completion.flush","corva.completion.pad-metrics-ui","corva.geosteering-ui","corva.completion.heatmap-ui","corva.kpi-visualizer-ui","corva.geosteering.settings-upload-ui","corva.drillout.annular-flow-regime-ui","corva.drillout.bit-hydraulics-ui","corva.drillout.hookload-broomstick-ui","corva.drillout.calcuated-annular-velocity-ui","competitor-analysis-ui","corva.drillout.torque-and-drag-ui","corva.drillout.rig-operations-ui","corva.drillout.rig-activity-ui","corva.drillout.von-mises-stress-ui","corva.drillout.buckling-load-ui","corva.drillout.circulating-pressure-loss-ui","corva.drillout.circulating-pressure-trend-ui","corva.drillout.asset-status-ui","corva.drillout.days-vs-depth-cost-ui","corva.completion.settings-surfaceEquipment","corva.completion.settings-fluidChecks","corva.completion.settings-drillstrings","corva.drillout.traces-ui","corva.leaderboard-ui","corva.completion.settings-AFE","corva.formationevaluation-LAS-upload","corva.fingerprinting-ui","corva.formationevaluation-ui","corva.well-optimization-ui","corva.well-schematic-ui","corva.auto-driller"].reduce((function(e,o){return s(s({},e),{},t({},o,o))}),{}),T={trippingInConn:0,trippingInRun:1,trippingOutConn:2,trippingOutRun:3,sTos:4,wTowComplex:5,wTowSimple:6,treatment:7,drillingTime:8,bTos:16,sTob:17,wTowDetailed:100,bTosDetailed:101,sTobDetailed:102,pumpsToOnBottom:22},D=(t(n={},T.trippingInConn,{type:0,value:T.trippingInConn,title:"Tripping In (Connection)",description:"Pipe connection time from slips to slips.",color:"#e0510b"}),t(n,T.trippingInRun,{type:1,value:T.trippingInRun,title:"Tripping In (Running)",description:"Pipe moving time for entire joint/stand.",color:"#f70000"}),t(n,T.trippingOutConn,{type:2,value:T.trippingOutConn,title:"Tripping Out (Connection)",description:"Pipe connection time from slips to slips.",color:"#88450f"}),t(n,T.trippingOutRun,{type:3,value:T.trippingOutRun,title:"Tripping Out (Running)",description:"Pipe moving time for entire joint/stand.",color:"#940000"}),t(n,T.sTos,{type:4,value:T.sTos,title:"Slips To Slips",description:"Pipe connection time from slips to slips.",color:"#0ad4db",key:e}),t(n,T.wTowComplex,{type:5,value:T.wTowComplex,title:"Weight To Weight",description:"Full drilling connection from weight on-bottom to weight on-bottom.",color:"#41c980",key:o}),t(n,T.wTowSimple,{type:5,value:T.wTowSimple,title:"Weight To Weight (Simplified)",description:"Full drilling connection from weight on-bottom to weight on-bottom.",color:"#41c980",key:o}),t(n,T.wTowDetailed,{type:5,value:T.wTowDetailed,title:"Weight To Weight (Detailed)",description:"Full drilling connection from weight on-bottom to weight on-bottom.",color:"#41c980",key:o}),t(n,T.treatment,{type:6,value:T.treatment,title:"Treatment",description:"Washing, reaming, and circulating time during a Weight to Weight operation.",color:"#9500b7"}),t(n,T.drillingTime,{type:7,value:T.drillingTime,title:"Drilling Time",description:"Rotary or slide drilling time for entire joint/stand.",color:"#4840d1"}),t(n,T.bTos,{type:16,value:T.bTos,title:"On Bottom To Slips",description:"Time from weight on-bottom to in slips.",color:"#41c9b4",key:i}),t(n,T.bTosDetailed,{type:16,value:T.bTosDetailed,title:"On Bottom To Slips (Detailed)",description:"Time from weight on-bottom to in slips.",color:"#41c9b4",key:i}),t(n,T.sTob,{type:17,value:T.sTob,title:"Slips To On Bottom",description:"Time from slips to on-bottom weight.",color:"#127868",key:r}),t(n,T.sTobDetailed,{type:17,value:T.sTobDetailed,title:"Slips To On Bottom (Detailed)",description:"Time from slips to on-bottom weight.",color:"#127868",key:r}),t(n,T.pumpsToOnBottom,{type:22,value:T.pumpsToOnBottom,title:"Pumps on to Bottom",description:"Time from pumps on to on-bottom weight.",color:"#FAEF00"}),n),O=0,S=["ui","stream"].reduce((function(e,o){return s(s({},e),{},t({},o,o))}),{}),C={private:"private",developer:"developer",company:"company",public:"public"},A=(t(l={},C.private,{label:"Private",color:"#15BBD1",hintText:"Not Visible in App Store"}),t(l,C.developer,{label:"Developer",color:"#DF9C19",hintText:"Visible only to Developers in my company"}),t(l,C.company,{label:"Company",color:"#27CAA3",hintText:"Visible to all users in my company"}),t(l,C.public,{label:"Public",color:"#A762FF",hintText:"Visible for all Corva customers"}),l);export{S as APPS_TYPES,h as APP_KEYS,C as APP_VISIBILITY,A as APP_VISIBILITY_META,w as DEFAULT_APP_SIZE,O as DEFAULT_DRILLING_OPERATION_TYPE,d as DEFAULT_GRID_LAYOUT_PADDING,b as FILTERING_MODES,u as GRID_BREAKPOINTS,m as GRID_COLUMN_SIZES,v as GRID_ROW_HEIGHT,p as LOAD_APPS,c as NAME,g as NON_DRAGGABLE_ELEMENT_SELECTOR,y as ORIENTATION_SETTINGS,f as REPORT_APP_GRID_TYPES,T as RIG_OPS_TYPES,D as SUPPORTED_DRILLING_OPERATIONS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r={DARK:"dark",LIGHT:"light"};export{r as THEMES};
|
package/package.json
CHANGED
package/utils/apps.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DEFAULT_GRID_LAYOUT_PADDING as i,GRID_ROW_HEIGHT as t,GRID_COLUMN_SIZES as e}from"../constants/apps.js";import{isMobileDetected as r,isNativeDetected as o}from"./mobileDetect.js";import"./index.js";var n=function(n){var a=n.coordinates,s=n.dashboardWidth,d=n.isMaximized;return{pixelHeight:d?window.innerHeight-2*i:a.h*(t+i)-i,pixelWidth:d||r||o?s-2*i:(s-i)*a.w/e.large-i}};export{n as getAppSize};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"@babel/runtime/helpers/toConsumableArray";var t=37.7952755906,i=18.8976377953,n=function(t){var i=t.width,n=t.height;return{pixelWidth:Math.round(18.8976377953*i),pixelHeight:Math.round(18.8976377953*n)}},e={NORMAL:{type:"NORMAL",columns:{min:1,max:7},rows:{min:1,max:1e3},slots:1,height:17.5,width:20.8},WIDE:{type:"WIDE",columns:{min:8,max:12},rows:{min:1,max:25},slots:2,height:17.5,width:41.8},HALFSCREEN:{type:"HALFSCREEN",columns:{min:8,max:12},rows:{min:26,max:40},slots:4,height:26.5,width:41.8},FULLSCREEN:{type:"FULLSCREEN",columns:{min:8,max:12},rows:{min:41,max:1e3},slots:6,height:53.3,width:41.8}};function m(t){var i=t.coordinates,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dashboard";if("singleApp"===n)return e.FULLSCREEN;var m=i.w,o=i.h;return Object.values(e).find((function(t){return m>=t.columns.min&&m<=t.columns.max&&o>=t.rows.min&&o<=t.rows.max}))}export{i as PDF_REPORT_PIXEL_RATIO,t as PIXELS_IN_CM,n as getAppPixelSize,m as getAppType};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var B={B:"B",KB:"KB",MB:"MB"},e={MB:1e6,KB:1e3};export{e as BYTES_IN,B as SIZE_UNIT};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{round as e}from"lodash";import t from"@babel/runtime/helpers/slicedToArray";import{useMemo as r,useState as n,useEffect as i}from"react";import{BYTES_IN as o,SIZE_UNIT as a}from"../constants.js";var s=function(s,d){var u=n(0),f=t(u,2),c=f[0],m=f[1],l=n(!1),v=t(l,2),g=v[0],p=v[1],B=n(!1),z=t(B,2),L=z[0],E=z[1],T=n(!1),b=t(T,2),K=b[0],M=b[1],S=function(){p(!0)},h=function(e){m(e.loaded)},x=function(e){setTimeout((function(){p(!1),E(!0),setTimeout((function(){return M(!0)}),1e3),d(e.target.result)}),400)},A=function(){};i((function(){if(s){var e=new FileReader;e.addEventListener("loadstart",S),e.addEventListener("progress",h),e.addEventListener("load",x),e.addEventListener("error",A),e.readAsText(s)}}),[s]);var F=function(){return 100*c/(s.size||1)},P=function(t){return t>o.MB?e(t/o.MB,1):t>o.KB?e(t/o.KB,1):t},j=function(e){return e>1048576?a.MB:e>1024?a.KB:a.B};return r((function(){return{getProgressPercent:F,getFormattedSize:P,getSizeUnit:j,isLoading:g,isLoaded:L,isDeletable:K,loadedSize:c,size:s.size,name:s.name}}),[s,c,g,L,K])};export{s as useUploadingFile};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as C}from"react/jsx-runtime";var V=function(){return C("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C("path",{d:"M31.3357 2.784H18.6638V0.696C18.6681 0.661463 18.6681 0.626537 18.6638 0.592V0.592C18.6685 0.554811 18.6685 0.517189 18.6638 0.48V0.48C18.6473 0.440114 18.6258 0.402481 18.5998 0.368V0.368C18.5569 0.277435 18.4945 0.197482 18.417 0.133863C18.3396 0.0702436 18.249 0.0245322 18.1518 0L17.9038 0L0.567954 2.792C0.407636 2.81876 0.262204 2.90205 0.158007 3.02679C0.0538104 3.15154 -0.00225866 3.30948 -4.13915e-05 3.472V28.52C-0.00254391 28.6835 0.053243 28.8425 0.157323 28.9685C0.261404 29.0946 0.406975 29.1795 0.567954 29.208L17.8958 32H18.1438C18.2902 31.9641 18.4199 31.8794 18.5118 31.76V31.76C18.5377 31.7284 18.5592 31.6934 18.5758 31.656V31.656C18.5804 31.6215 18.5804 31.5865 18.5758 31.552C18.5789 31.5388 18.5789 31.5252 18.5758 31.512V31.512C18.5798 31.4774 18.5798 31.4426 18.5758 31.408V31.408V29.328H31.3357C31.516 29.3238 31.6873 29.2482 31.8118 29.1177C31.9363 28.9873 32.0039 28.8127 31.9997 28.6324V3.48C32.0018 3.39069 31.9864 3.30185 31.9541 3.21853C31.9219 3.13521 31.8736 3.05906 31.8119 2.99443C31.7503 2.92979 31.6765 2.87794 31.5948 2.84184C31.513 2.80573 31.425 2.78608 31.3357 2.784V2.784ZM30.6637 27.824H18.6638V4.208H30.6637V27.824Z",fill:"#616161"})})};export{V as FileIcon};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as i,Fragment as l}from"react/jsx-runtime";import{makeStyles as a,Typography as r,LinearProgress as t}from"@material-ui/core";import s from"prop-types";import{CheckCircleOutline as o,Delete as n}from"@material-ui/icons";import{FileIcon as c}from"../FileIcon/FileIcon.js";import{useUploadingFile as p}from"../../effects/useUploadingFile.js";var d=a((function(e){return{fileStateWrapper:{display:"flex",alignItems:"center"},fileIconContainer:{display:"flex",alignItems:"center",marginRight:"10px"},fileState:{display:"flex",flexGrow:"1",alignItems:"center"},fileStateProgress:{flexGrow:"1"},fileNameWrapper:{display:"table",tableLayout:"fixed",width:"100%"},fileName:{display:"table-cell",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"14px",lineHeight:"16px"},fileSize:{fontSize:"11px",lineHeight:"12px",color:e.palette.primary.text6},checkIcon:{color:e.palette.success.bright},deleteIcon:{color:"#DADADA",cursor:"pointer"},progressBar:{borderRadius:"2px",height:"2px",margin:"4px 0"},fileActions:{display:"flex",alignItems:"center",paddingLeft:"24px"}}}));function f(a){var s=d(),f=a.file,m=a.onLoad,g=a.onDelete,h=p(f,m);return e("div",{className:s.fileStateWrapper,children:[i("div",{className:s.fileIconContainer,children:i(c,{})}),e("div",{className:s.fileState,children:[e("div",{className:s.fileStateProgress,children:[i("div",{className:s.fileNameWrapper,children:i(r,{className:s.fileName,children:h.name})}),h.isLoading&&e(l,{children:[i(t,{className:s.progressBar,variant:"determinate",value:h.getProgressPercent()}),e(r,{className:s.fileSize,children:[h.getFormattedSize(h.loadedSize)," of ",h.getFormattedSize(h.size)," ",h.getSizeUnit(h.size)]})]})]}),e("div",{className:s.fileActions,children:[h.isLoaded&&!h.isDeletable&&i(o,{className:s.checkIcon}),h.isDeletable&&i(n,{className:s.deleteIcon,onClick:g})]})]})]})}f.propTypes={file:s.shape({}).isRequired,onLoad:s.func.isRequired,onDelete:s.func.isRequired};export default f;
|