@corva/ui 0.25.0-1 → 0.25.0-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/withCorvaMagicHOC.js +1 -1
- package/CLI/hocs/withMUIProvidersHOC.js +1 -1
- package/components/AssetEditor/index.js +1 -1
- 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/package.json +1 -1
- 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"@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 e 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{AuthContext as n}from"../../context/auth.js";import{LOGIN_ROUTE_REG_EXP as r}from"../../constants/index.js";import s from"./components/AppBar/AppBar.js";import i from"
|
|
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 e 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{AuthContext as n}from"../../context/auth.js";import{LOGIN_ROUTE_REG_EXP as r}from"../../constants/index.js";import s from"./components/AppBar/AppBar.js";import i from"../../hocs/withMUIProvidersHOC.js";import p from"../../hocs/effects/useProvideAuth.js";import m from"./App.css.js";var c=i((function(i){var c=i.children,a=i.router,l=i.toggleTheme,j=p(a),d=!r.test(a.location.pathname)&&!j.loading;return o(n.Provider,{value:j,children:[!d&&c,d&&o("div",{className:m.app,children:[t(e,{}),t(s,{toggleTheme:l}),t("div",{className:m.appContent,children:c})]})]})}));export default c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"@babel/runtime/helpers/slicedToArray";import{jsx as r,jsxs as o}from"react/jsx-runtime";import{makeStyles as t,useTheme as i,Menu as n,MenuItem as a,AppBar as l,Toolbar as c,Tooltip as m,IconButton as s,Typography as p}from"@material-ui/core";import{useState as u}from"react";import h from"prop-types";import d from"../../../../../components/SwitchControl/index.js";import{useAuth as f}from"../../../../context/auth.js";import g from"@material-ui/icons/AccountCircle";import b from"../../../../assets/DevCenterLogo.js";import{isPDFReportsFeatureActive as v}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},toggleThemeRoot:{marginRight:32}}}));function x(t){var h=t.toggleTheme,x=T(),C=f(),R=C.user,k=C.logout,w=i(),B=u(null),N=e(B,2),j=N[0],y=N[1],L=Boolean(j),z=function(){return y(null)},A=R.first_name,D=R.last_name,O="".concat(A[0]).concat(D[0]).toUpperCase(),P=r(n,{anchorEl:j,id:"app-bar-menu",keepMounted:!0,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},open:L,onClose:z,children:r(a,{onClick:function(){k(),z()},children:"Sign Out"})});return o("div",{children:[r(l,{position:"static",className:x.appBar,children:o(c,{children:[r(b,{}),r("div",{className:x.grow}),v()&&r(m,{title:"Switch to white theme to tune your app for PDF reports",placement:"bottom",children:r("div",{children:r(d,{className:x.toggleThemeRoot,leftLabel:"Dark Theme",rightLabel:"White Theme",onChange:h,checked:w.isLightTheme,size:"small",title:""})})}),r("div",{children:r(s,{edge:"end","aria-label":"account of current user","aria-controls":"app-bar-menu","aria-haspopup":"true",onClick:function(e){return y(e.currentTarget)},color:"inherit",className:x.iconButtonRoot,children:o("div",{className:x.flex,children:[r(p,{children:O}),r(g,{className:x.userProfileIcon})]})})})]})}),P]})}x.propTypes={toggleTheme:h.func.isRequired};export default x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=function(){return!!localStorage.getItem("PDF_REPORTS")};export{t as isPDFReportsFeatureActive};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{initHighcharts as s}from"../../config/highcharts/highcharts.js";import{initializeSocketClient as r}from"../../clients/subscriptions.js";import"../../styles/mapbox.global.css.js";import"../../styles/generatedThemesVariables.global.css.js";import o from"./withAppDataProviderHOC.js";import i from"./withCLIAppSettingsHOC.js";import e from"./
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{initHighcharts as s}from"../../config/highcharts/highcharts.js";import{initializeSocketClient as r}from"../../clients/subscriptions.js";import"../../styles/mapbox.global.css.js";import"../../styles/generatedThemesVariables.global.css.js";import o from"./withAppDataProviderHOC.js";import i from"./withCLIAppSettingsHOC.js";import e from"./withReactRouterHOC.js";import a from"./withGridLayoutHOC/withGridLayoutHOC.js";import{withDevCenterRouterHOC as m}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(),r();export default function(s){var r=s.component,p=s.settings,n=s.manifest,l=s.packageJson;return function(){var s=m(a(i(o({CLIAppComponent:r,CLIAppSettings:p,packageJson:l})))),c=e(s);return t(c,{manifest:n,dashboardProps:{}})}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import e 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 c}from"../../config/theme/index.js";import{useState as m}from"react";import{MuiPickersUtilsProvider as p}from"@material-ui/pickers";import f from"@date-io/moment";function u(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 a(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?u(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}export default function(r){return function(u){var l=m(i),b=t(l,2),s=b[0],O=b[1];return o(n,{theme:s,children:o(p,{libInstance:e,utils:f,children:o(r,a(a({},u),{},{toggleTheme:function(){return O(s===i?c:i)}}))})})}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{get as t,capitalize as a}from"lodash";import s from"@babel/runtime/helpers/slicedToArray";import{jsxs as l,jsx as r}from"react/jsx-runtime";import{Button as i}from"@material-ui/core";import{useState as o}from"react";import n from"prop-types";import p from"./AssetEditors.css.js";import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{get as t,capitalize as a}from"lodash";import s from"@babel/runtime/helpers/slicedToArray";import{jsxs as l,jsx as r}from"react/jsx-runtime";import{Button as i}from"@material-ui/core";import{useState as o}from"react";import n from"prop-types";import p from"./AssetEditors.css.js";import u from"./SingleAssetEditor.js";import c from"./AssetEditorAutocomplete.js";var d="DC_AppSettingsAssetEditor",m=function(n){var m=n.appKey,y=n.appType,f=n.defaultValue,A=n.isNullable,b=n.label,h=n.onSettingsChange,g=n.settings,T=t(y,["primaryAsset","assetType","type"]),C=t(y,["primaryAsset","assetType","id"]),v=t(y,["primaryAsset","autocompleteSelect"]),N=t(y,["secondaryAsset","assetType","type"]),V=t(y,["secondaryAsset","assetType","id"]),K=t(y,["secondaryAsset","autocompleteSelect"]),S=t(g,C),_=o(S||f),j=s(_,2),E=j[0],q=j[1],R=o(t(g,V)),k=s(R,2),x=k[0],B=k[1],D=o(!(!N||x)),I=s(D,2),P=I[0],U=I[1],W=o(!(!N||!x)),w=s(W,2),z=w[0],F=w[1],G=function(t){B(t),h(e({},V,t))},H=function(t){q(t),B(null),F(!1),U(!!N);var a=e({},C,t);V&&(a[V]=null),h(a)};return l("div",{className:p.main,children:[r("div",{className:p.title,children:"Active Asset"}),l("div",{className:p.editor,children:[v?r(c,{onChange:H,defaultValue:f,currentValue:E,isNullable:A,label:b,assetType:T,appKey:m}):r(u,{"data-testid":"".concat(d,"_primaryAutoComplete"),onChange:H,defaultValue:f,currentValue:E,isNullable:A,label:b,assetType:T,appKey:m}),P&&r(i,{"data-testid":"".concat(d,"_changeWellButton"),color:"primary",onClick:function(){F(!0),U(!1)},disabled:!S,children:"Change ".concat(a(N))}),!P&&z&&r(i,{"data-testid":"".concat(d,"_useDefaultButton"),color:"secondary",onClick:function(){B(null),F(!1),U(!!N),h(e({},V,null))},children:"Use active asset"})]}),z&&r("div",{className:p.editor,children:K?r(c,{onChange:G,defaultValue:f,currentValue:x,isNullable:A,label:"Active ".concat(a(N)),assetType:N,parentAssetId:E,parentAssetType:T,appKey:m}):r(u,{"data-testid":"".concat(d,"_secondaryAutoComplete"),onChange:G,defaultValue:f,currentValue:x,isNullable:A,label:"Active ".concat(a(N)),assetType:N,parentAssetId:E,parentAssetType:T,appKey:m})})]})};m.defaultProps={label:"Choose An Asset",isNullable:!1,defaultValue:void 0,appKey:null},m.propTypes={settings:n.shape({}).isRequired,appType:n.shape({}).isRequired,defaultValue:n.any,onSettingsChange:n.func.isRequired,label:n.string,isNullable:n.bool,appKey:n.string};export default m;
|
|
@@ -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/package.json
CHANGED
|
@@ -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;
|