@corva/ui 0.68.0-0 → 0.68.0-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelect.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelectV2.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/index.js +1 -1
- package/cjs-bundle/components/Chip/index.js +1 -1
- package/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
- package/cjs-bundle/components/Icons/DangerousIcon.js +1 -1
- package/cjs-bundle/components/Search/Search.js +1 -1
- package/cjs-bundle/components/StatusBadge/index.js +1 -1
- package/cjs-bundle/config/theme/tableOverrides.js +1 -1
- package/cjs-bundle/constants/completion.js +1 -1
- package/cjs-bundle/hocs/index.js +1 -1
- package/cjs-bundle/hocs/withAssetEditorLockHOC.js +1 -0
- package/cjs-bundle/permissions/constants/index.js +1 -1
- package/cjs-bundle/utils/devcenter.js +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelect.d.ts +12 -11
- package/components/AssetEditorV2/components/PrimaryAssetSelect.d.ts.map +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelect.js +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelectV2.d.ts +11 -10
- package/components/AssetEditorV2/components/PrimaryAssetSelectV2.d.ts.map +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelectV2.js +1 -1
- package/components/AssetEditorV2/components/SecondaryAssetSelect.d.ts.map +1 -1
- package/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
- package/components/AssetEditorV2/index.d.ts +5 -4
- package/components/AssetEditorV2/index.d.ts.map +1 -1
- package/components/AssetEditorV2/index.js +1 -1
- package/components/Chip/index.d.ts +2 -1
- package/components/Chip/index.d.ts.map +1 -1
- package/components/Chip/index.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.d.ts +2 -2
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.d.ts +2 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.d.ts +2 -2
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.d.ts.map +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
- package/components/Icons/DangerousIcon.d.ts.map +1 -1
- package/components/Icons/DangerousIcon.js +1 -1
- package/components/Search/Search.d.ts.map +1 -1
- package/components/Search/Search.js +1 -1
- package/components/Search/styles.d.ts +1 -1
- package/components/StatusBadge/index.js +1 -1
- package/config/theme/tableOverrides.d.ts +17 -11
- package/config/theme/tableOverrides.js +1 -1
- package/constants/completion.d.ts.map +1 -1
- package/constants/completion.js +1 -1
- package/hocs/index.d.ts +2 -1
- package/hocs/index.js +1 -1
- package/hocs/withAssetEditorLockHOC.d.ts +3 -0
- package/hocs/withAssetEditorLockHOC.d.ts.map +1 -0
- package/hocs/withAssetEditorLockHOC.js +1 -0
- package/package.json +1 -1
- package/permissions/constants/index.d.ts +1 -0
- package/permissions/constants/index.d.ts.map +1 -1
- package/permissions/constants/index.js +1 -1
- package/utils/devcenter.d.ts.map +1 -1
- package/utils/devcenter.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"prop-types";import
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import e from"prop-types";import t from"../../EmptyState/EmptyState.js";import o from"../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import p from"../../DevCenter/AppHeader/AppHeader.js";import n from"./DevCenterAppErrorView.css.js";import{jsxs as i,jsx as c}from"react/jsx-runtime";function a(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}var s=function(e,t){try{return c(e,function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}({},t))}catch(r){return console.error(r),null}};function m(r){var e=r.appHeaderProps,a=r.openIntercom,m=s(p,e);return i("div",{className:n.container,children:[m,c(t,{title:t.APP_MESSAGES.internalAppError.title,subtitle:c(o,{openIntercom:a}),image:t.IMAGES.AppLoadingError})]})}m.propTypes={app:e.shape({})},m.defaultProps={app:null};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DangerousIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/DangerousIcon.js"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"DangerousIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/DangerousIcon.js"],"names":[],"mappings":"AAEA,yJAQE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createSvgIcon as r}from"@material-ui/core";import{
|
|
1
|
+
import{createSvgIcon as r}from"@material-ui/core";import{jsx as a}from"react/jsx-runtime";var t=r(a("g",{transform:"scale(1.111)",children:a("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM17 15.74L15.74 17 12 13.26 8.26 17 7 15.74 10.74 12 7 8.26 8.26 7 12 10.74 15.74 7 17 8.26 13.26 12 17 15.74z",transform:"translate(-1.2 -1.2)"})}),"DangerousIcon");export{t as DangerousIcon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../src/components/Search/Search.tsx"],"names":[],"mappings":";AAEA,OAAO,SAAS,MAAM,YAAY,CAAC;AA6BnC,UAAU,WAAY,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC;CAAG;AAE7E,QAAA,MAAM,MAAM;wcAgCT,WAAW,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../src/components/Search/Search.tsx"],"names":[],"mappings":";AAEA,OAAO,SAAS,MAAM,YAAY,CAAC;AA6BnC,UAAU,WAAY,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC;CAAG;AAE7E,QAAA,MAAM,MAAM;wcAgCT,WAAW,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqU3B,CAAC;AAEF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDpB,CAAC;AAwCF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as n}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as o,jsxs as t,Fragment as r}from"react/jsx-runtime";import{useState as l,useRef as i,useCallback as a,useEffect as p,useMemo as s,cloneElement as u}from"react";import c from"classnames";import d from"prop-types";import{isEmpty as m,debounce as
|
|
1
|
+
import{__rest as e,__assign as n}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as o,jsxs as t,Fragment as r}from"react/jsx-runtime";import{useState as l,useRef as i,useCallback as a,useEffect as p,useMemo as s,cloneElement as u}from"react";import c from"classnames";import d from"prop-types";import{isEmpty as m,debounce as g}from"lodash";import{Autocomplete as h}from"@material-ui/lab";import{Tooltip as f,Fade as C,Chip as b,TextField as v,InputAdornment as I,CircularProgress as S,FormControlLabel as P,Checkbox as x,MenuItem as O}from"@material-ui/core";import{CheckBoxOutlineBlank as A,CheckBox as G,Close as y}from"@material-ui/icons";import N from"../IconButton/index.js";import k from"./components/Listbox.js";import R from"./components/Paper.js";import"./components/RecentSearches.js";import"./components/InputAdornmentLeft.js";import"./components/Groups.js";import{truncateString as L}from"./utils/truncate.js";import{PaperContext as T}from"./context/index.js";import j from"./styles.js";var F=o(A,{style:{fontSize:20}}),z=o(G,{style:{fontSize:20}}),M=function(d){var A=d.classes,G=d.AutocompleteProps,M=void 0===G?{}:G,D=d.value,H=d.disableClearable,K=d.onChange,B=d.onInputChange,E=d.loading,q=d.options,w=d.optionSize,V=d.placeholder,W=d.onGroupChange,U=d.disabled,_=d.multiple,J=d.groups,Q=d.GroupsComponent,X=d.recentSearchesMaxCount,Y=d.dataStorageKey,Z=d.RecentSearchesComponent,$=d.dataStorage,ee=d.onInputReset,ne=d.getOptionLabel,oe=d.TextFieldProps,te=d.ListboxProps,re=d.onInputChangeCallback,le=d.truncateSettings,ie=d.renderCustomOption,ae=d.isHiddenAllOption,pe=d.selectedGroup,se=d.onGroupReset,ue=d.onClose,ce=e(d,["classes","AutocompleteProps","value","disableClearable","onChange","onInputChange","loading","options","optionSize","placeholder","onGroupChange","disabled","multiple","groups","GroupsComponent","recentSearchesMaxCount","dataStorageKey","RecentSearchesComponent","dataStorage","onInputReset","getOptionLabel","TextFieldProps","ListboxProps","onInputChangeCallback","truncateSettings","renderCustomOption","isHiddenAllOption","selectedGroup","onGroupReset","onClose"]),de=l(""),me=de[0],ge=de[1],he=l(""),fe=he[0],Ce=he[1],be=l(!1),ve=be[0],Ie=be[1],Se=i(),Pe=j(),xe={popper:c(Pe.popper,A.popper),listbox:c(Pe.listbox,A.listbox),popupIndicator:c(Pe.popupIndicator,A.popupIndicator),popupIndicatorOpen:c(Pe.popupIndicatorOpen,A.popupIndicatorOpen)},Oe=(null==q?void 0:q.some((function(e){return e.group})))||!m(J),Ae=a(g((function(e){return Ce(e)}),500),[]),Ge=function(e){var n=J.find((function(n){return n.id===e}));ge(""),W(n)};p((function(){ve&&Se.current.focus()}));var ye=null==q?void 0:q.sort((function(e,n){var o,t;return null===(o=n.group)||void 0===o?void 0:o.toString().localeCompare(null===(t=e.group)||void 0===t?void 0:t.toString())})),Ne=m(pe)?ye:null==q?void 0:q.filter((function(e){return e.group===pe.name})),ke=_&&(null==Ne?void 0:Ne.length)===(null==D?void 0:D.length),Re=function(){return ge(""),M.getOptionDisabled&&ke?K(null,[q[q.length-1]]):K(null,ke?[]:Ne)};p((function(){Ae(me),B&&B(me)}),[me]);var Le=function(e,n){"blur"!==n&&(ue(),Ie(!1))},Te=function(){ve?(Ie(!1),ue()):Ie(!0)},je=function(e){return ke?"All":1===(null==e?void 0:e.length)?e[0].label||e[0].name:"".concat(null==e?void 0:e.length," Selected")},Fe=function(){return o(P,{id:"selectAllLabel",className:Pe.selectAllCheckbox,onClick:Re,control:o(x,{icon:F,style:{fontSize:20},indeterminate:!ke,checkedIcon:z,checked:!0,inputProps:{"aria-label":"All"}}),label:"All"})},ze=s((function(){return{onOutsideClick:Le,isEmptyOptions:m(Ne),loading:E,AllSelectComponent:!ae&&_&&!m(Ne)&&o(Fe,{}),RecentSearchesComponent:Z&&o(Z,{dataStorage:$,dataStorageKey:Y,maxCount:X,isHidden:!m(me),onInputChange:function(e){return ge(e)},inputValue:fe}),GroupsComponent:!pe&&Oe&&Q&&o(Q,{onGroupClick:Ge,groups:J})}}),[pe,E,Oe,me,ke,fe,ue,ae]);return o(T.Provider,n({value:ze},{children:o(h,n({},ce,{disableClearable:H,onClose:Le,onOpen:function(){Ie(!0)},open:ve,onChange:function(e,n){ge(""),K(e,n)},forcePopupIcon:M.forcePopupIcon,fullWidth:!0,disabled:U,value:D,classes:xe,renderInput:function(e){var l,i,a,p,s,d=(null===(p=null===(a=null===(i=e.InputProps.endAdornment)||void 0===i?void 0:i.props)||void 0===a?void 0:a.children)||void 0===p?void 0:p.length)>1?u(e.InputProps.endAdornment,{children:e.InputProps.endAdornment.props.children.slice(1),onMouseDown:function(e){return e.stopPropagation()},onMouseUp:function(e){return e.stopPropagation()}}):e.InputProps.endAdornment;return o(v,n({},e,oe,{inputRef:Se,placeholder:V,classes:{root:Pe.searchInput},InputProps:n(n(n({classes:{root:Pe.textField}},e.InputProps),ce.InputProps),{startAdornment:t(r,{children:[null===(s=ce.InputProps)||void 0===s?void 0:s.startAdornment,pe&&o(b,{className:Pe.selectedGroup,"data-not-migrated-MuiChip":!0,variant:"outlined",label:t("div",n({className:Pe.selectedGroupLabel},{children:[pe.name,o(y,{id:"removeGroupIcon",className:Pe.removeIcon,onClick:se})]}))},pe.id),_&&!m(D)&&o("div",n({onClick:Te,id:"selectedOptions",className:Pe.selectedLabel},{children:je(D)}))]}),endAdornment:t(r,{children:[t(I,n({className:c((l={},l[Pe.removeIconWithDropdown]=M.forcePopupIcon,l)),position:"end"},{children:[oe.endAdornment,E&&o(S,{color:"primary",size:20}),me&&!H&&o(N,n({size:"small",className:Pe.iconButton,onClick:function(){ge(""),ee?ee():K(null,[])},tooltipProps:{title:"Clear"}},{children:o(y,{className:Pe.closeIcon})}))]})),M.forcePopupIcon&&d]})})}))},loading:E,options:Ne,renderGroup:function(e){var r=e.key,l=e.group,i=e.children;return!l||!m(pe)&&_?i:t("div",n({className:Pe.group},{children:[o(f,n({title:l,placement:"right",TransitionComponent:C,TransitionProps:{timeout:500},enterDelay:500},{children:o(b,{"data-not-migrated-MuiChip":!0,className:c(Pe.groupChip,A.groupChip),variant:"outlined",label:l},r)})),i]}))},disableCloseOnSelect:_,multiple:_,renderOption:ie||function(e,r){var l=e.label,i=e.id,a=r.selected;return _?t("div",n({className:c(Pe.option,w)},{children:[o(x,{disableRipple:!0,icon:F,className:Pe.checkbox,checkedIcon:z,checked:a}),L(l,le)]}),i):o(O,n({className:Pe.menuItem,value:i},{children:l}),i)},groupBy:Oe&&function(e){return e.group},PaperComponent:R,ListboxComponent:k,inputValue:me,getOptionLabel:ne,getOptionDisabled:M.getOptionDisabled,onInputChange:function(e,n,o){ge((null==e?void 0:e.target.value)||(null==e?void 0:e.target.innerText)||n),re(n,o)},loadingText:o("div",n({className:Pe.label},{children:"Loading ..."})),noOptionsText:o("div",n({className:Pe.label},{children:"No Options"})),ListboxProps:te}))}))},D={AutocompleteProps:d.shape({forcePopupIcon:d.bool,getOptionDisabled:d.func}),allChecked:d.bool,TextFieldProps:d.shape({label:d.string,endAdornment:d.node}),truncateSettings:d.shape({maxChars:d.number,charsNumFromStart:d.number,charsNumFromEnd:d.number}),selectedGroup:d.shape({name:d.string,id:d.string}),onGroupReset:d.func,onClose:d.func,disableClearable:d.bool,value:d.arrayOf(d.shape({})).isRequired,onChange:d.func.isRequired,onInputChange:d.func,getOptionLabel:d.func,onGroupChange:d.func,loading:d.bool,disabled:d.bool,multiple:d.bool,options:d.array,optionSize:d.string,InputProps:d.shape({startAdornment:d.number}),ListboxProps:d.shape({}),classes:d.shape({popper:d.string,listbox:d.string,popupIndicator:d.string,popupIndicatorOpen:d.string,groupChip:d.string}),onInputChangeCallback:d.func,placeholder:d.string,RecentSearchesComponent:d.elementType,recentSearchesMaxCount:d.number,dataStorageKey:d.string,dataStorage:d.shape({}),groups:d.array,GroupsComponent:d.elementType,renderCustomOption:d.func,onInputReset:d.func,isHiddenAllOption:d.bool};M.propTypes=D,M.defaultProps={InputProps:null,onInputChange:null,onGroupChange:function(){},getOptionLabel:function(e){return e.label||""},renderCustomOption:null,onInputReset:null,ListboxProps:null,options:[],groups:[],classes:{},disabled:!1,isHiddenAllOption:!1,disableClearable:!1,multiple:!1,loading:!1,onInputChangeCallback:function(){},placeholder:"Search...",recentSearchesMaxCount:3,dataStorageKey:"Search:recentSearches",dataStorage:sessionStorage,RecentSearchesComponent:null,TextFieldProps:{endAdornment:null},GroupsComponent:null,truncateSettings:{maxChars:22,charsNumFromStart:9,charsNumFromEnd:9},onGroupReset:function(){},onClose:function(){},selectedGroup:null};export{M as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"label" | "option" | "checkbox" | "group" | "listbox" | "popper" | "menuItem" | "searchIcon" | "searchInput" | "popupIndicator" | "popupIndicatorOpen" | "textField" | "closeIcon" | "
|
|
1
|
+
declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"label" | "option" | "checkbox" | "group" | "listbox" | "popper" | "menuItem" | "iconButton" | "searchIcon" | "searchInput" | "popupIndicator" | "popupIndicatorOpen" | "textField" | "closeIcon" | "groupChip" | "selectedGroup" | "selectedGroupLabel" | "removeIcon" | "removeIconWithDropdown" | "selectAllCheckbox" | "selectedLabel">;
|
|
2
2
|
export default useStyles;
|
|
3
3
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as e,jsx as n,Fragment as o}from"react/jsx-runtime";import{useState as i,useRef as r,useEffect as a}from"react";import s from"moment";import c from"classnames";import{makeStyles as p,Typography as l}from"@material-ui/core";import{Tooltip as u}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import{WARNING as m,BADGE_ICON_STATUSES as d,MAX_MOBILE_WIDTH as f}from"./constants.js";import{DQStatusIcon as g}from"./components/DQStatusIcon.js";import{DQUnvalidatedContent as x}from"./components/DQUnvalidatedContent.js";import{ReportIssueModal as h}from"./components/ReportIssueModal.js";import{postReportError as b}from"./api.js";var v=window.innerHeight-212,I=p((function(t){return{statusBadgeWrapper:{backgroundColor:t.palette.background.b4,display:"flex",height:30},statusBadgeContent:{display:"flex",padding:function(t){var e=t.isSuccessTypeIcon,n=t.isErrorTypeIcon,o=t.isIssueTypeIcon;return"12px 0 2px ".concat(e||n||o?6:2,"px")},whiteSpace:"nowrap",width:"calc(100% - 140px)"},text:{fontSize:"10px",lineHeight:"12px",alignSelf:"center"},timestamp:{color:t.palette.primary.text6,marginLeft:function(t){return t.isIconExist&&4}},warningMessage:{color:t.palette.primary.text1,marginLeft:4,textOverflow:"ellipsis",overflow:"hidden",fontSize:"12px"},badgeIconWarning:{marginLeft:8},popper:{zIndex:function(t){return t.maximized?500:400},"& .MuiTooltip-tooltip":{position:"absolute",bottom:function(t){return t.tooltipPlacement.includes("top")?0:"auto"},top:function(t){return t.tooltipPlacement.includes("bottom")?0:"auto"},left:function(t){return t.tooltipPlacement.includes("right")?0:"auto"},right:function(t){return t.tooltipPlacement.includes("left")?0:"auto"},width:"max-content",transformOrigin:"center top",maxWidth:"none",padding:4,fontSize:12,boxShadow:"0px 0px 4px 2px rgb(0 0 0 / 12%)",fontWeight:400,lineHeight:"16px",letterSpacing:"0.4px",backgroundColor:t.palette.background.b9}},DQIconWrapper:{display:"flex",alignItems:"center",alignSelf:"center",justifyContent:"center",height:24,width:24,minWidth:24,borderRadius:12,"&:hover":{backgroundColor:function(t){var e=t.isErrorTypeIcon,n=t.isSuccessTypeIcon,o=t.isIssueTypeIcon;return e?"rgba(244, 67, 54, 0.1)":n?"rgba(117, 219, 41, 0.2)":o?"rgba(255, 193, 7, 0.16)":"transparent"}}}}})),y=function(p){var y=p.assetsData,T=void 0===y?{}:y,S=p.setAssetsData,w=void 0===S?function(){}:S,D=p.appWidth,C=p.DQIssueTooltipMaxHeight,
|
|
1
|
+
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as e,jsx as n,Fragment as o}from"react/jsx-runtime";import{useState as i,useRef as r,useEffect as a}from"react";import s from"moment";import c from"classnames";import{makeStyles as p,Typography as l}from"@material-ui/core";import{Tooltip as u}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import{WARNING as m,BADGE_ICON_STATUSES as d,MAX_MOBILE_WIDTH as f}from"./constants.js";import{DQStatusIcon as g}from"./components/DQStatusIcon.js";import{DQUnvalidatedContent as x}from"./components/DQUnvalidatedContent.js";import{ReportIssueModal as h}from"./components/ReportIssueModal.js";import{postReportError as b}from"./api.js";var v=window.innerHeight-212,I=p((function(t){return{statusBadgeWrapper:{backgroundColor:t.palette.background.b4,display:"flex",height:30},statusBadgeContent:{display:"flex",padding:function(t){var e=t.isSuccessTypeIcon,n=t.isErrorTypeIcon,o=t.isIssueTypeIcon;return"12px 0 2px ".concat(e||n||o?6:2,"px")},whiteSpace:"nowrap",width:"calc(100% - 140px)"},text:{fontSize:"10px",lineHeight:"12px",alignSelf:"center"},timestamp:{color:t.palette.primary.text6,marginLeft:function(t){return t.isIconExist&&4}},warningMessage:{color:t.palette.primary.text1,marginLeft:4,textOverflow:"ellipsis",overflow:"hidden",fontSize:"12px"},badgeIconWarning:{marginLeft:8},popper:{zIndex:function(t){return t.maximized?500:400},"& .MuiTooltip-tooltip":{position:"absolute",bottom:function(t){return t.tooltipPlacement.includes("top")?0:"auto"},top:function(t){return t.tooltipPlacement.includes("bottom")?0:"auto"},left:function(t){return t.tooltipPlacement.includes("right")?0:"auto"},right:function(t){return t.tooltipPlacement.includes("left")?0:"auto"},width:"max-content",transformOrigin:"center top",maxWidth:"none",padding:4,fontSize:12,boxShadow:"0px 0px 4px 2px rgb(0 0 0 / 12%)",fontWeight:400,lineHeight:"16px",letterSpacing:"0.4px",backgroundColor:t.palette.background.b9}},DQIconWrapper:{display:"flex",alignItems:"center",alignSelf:"center",justifyContent:"center",height:24,width:24,minWidth:24,borderRadius:12,"&:hover":{backgroundColor:function(t){var e=t.isErrorTypeIcon,n=t.isSuccessTypeIcon,o=t.isIssueTypeIcon;return e?"rgba(244, 67, 54, 0.1)":n?"rgba(117, 219, 41, 0.2)":o?"rgba(255, 193, 7, 0.16)":"transparent"}}}}})),y=function(p){var y=p.assetsData,T=void 0===y?{}:y,S=p.setAssetsData,w=void 0===S?function(){}:S,D=p.appWidth,C=p.DQIssueTooltipMaxHeight,M=void 0===C?v:C,_=p.iconType,j=p.className,N=p.lastTimestamp,k=p.onReportErrorClick,E=p.warningData,W=p.hasSubscriptionsData,L=p.currentUser,P=p.segment,z=p.maximized,Q=p.statusBadgeContentClassName,H=p.tooltipPlacement,B=void 0===H?"top-start":H,O=i(!1),R=O[0],Y=O[1],U=i(!1),A=U[0],F=U[1],J=r(null),q=null==E?void 0:E.message,G=_===d.error,K=_===d.success,V=_===d.issue,X=D<f,Z=I({isIconExist:!!_,isSuccessTypeIcon:K,isErrorTypeIcon:G,isIssueTypeIcon:V,maximized:z,tooltipPlacement:B}),$=r(null),tt=function(t){J.current&&!J.current.contains(t.target)&&F(!1)};a((function(){return function(){w({hasSubscriptionsData:!1})}}),[]),a((function(){return document.addEventListener("click",tt),function(){document.removeEventListener("click",tt),clearTimeout($.current)}}),[]);var et=function(){clearTimeout($.current),F(!0)},nt=function(t,e){void 0===e&&(e=700),$.current=setTimeout((function(){return F(!1)}),e)};return a((function(){W&&(et(),nt(0,1e4))}),[JSON.stringify(T)]),e("div",t({"data-testid":"Status_badge",className:c(Z.statusBadgeWrapper,"c-status-badge--".concat(_),j)},{children:[e("div",t({className:c(Z.statusBadgeContent,Q),ref:J},{children:[_&&n(u,t({disableHoverListener:!0,open:A,onMouseEnter:et,onMouseLeave:nt,PopperProps:{className:Z.popper},placement:B,title:n(x,{tooltipRef:J,onMouseEnter:et,onMouseLeave:nt,assetsData:T,maxHeight:M,onClick:function(){return Y(!0)}})},{children:n("div",t({className:Z.DQIconWrapper,"data-testid":"".concat("Status_badge","__DQ_icon_").concat(_)},{children:n(g,{color:_,iconType:_})}))})),Number.isFinite(N)&&e(l,t({className:c(Z.text,Z.timestamp),variant:"body1"},{children:["Last Update: ",s.unix(N).format("MMM D YYYY, h:mm A")]})),E&&e(o,{children:[n(u,t({placement:"top",title:q?"".concat(m,". ").concat(q):m},{children:n("div",t({"data-testid":"".concat("Status_badge","__DQ_icon_warning")},{children:n(g,{className:Z.badgeIconWarning,color:d.warning,iconType:d.warning})}))})),!X&&n(l,t({className:c(Z.text,Z.warningMessage),variant:"body1"},{children:q?"".concat(m,". ").concat(q):m}))]})]})),R&&n(h,{assets:Object.keys(T).map((function(t){return{name:t,id:T[t][0].alert.assetId}})),onSave:k||function(t,e){b(e,t,L,P)},onClose:function(){return Y(!1)}})]}))};export{y as StatusBadge};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
namespace
|
|
2
|
+
namespace MuiTableContainer {
|
|
3
3
|
const root: {
|
|
4
|
+
'overscroll-behavior-x': string;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
namespace MuiTableCell {
|
|
8
|
+
const root_1: {
|
|
4
9
|
borderBottomColor: string;
|
|
5
10
|
height: number;
|
|
6
11
|
letterSpacing: string;
|
|
@@ -13,10 +18,11 @@ declare namespace _default {
|
|
|
13
18
|
height: number;
|
|
14
19
|
};
|
|
15
20
|
};
|
|
16
|
-
|
|
21
|
+
export { root_1 as root };
|
|
22
|
+
export namespace stickyHeader {
|
|
17
23
|
const backgroundColor: string;
|
|
18
24
|
}
|
|
19
|
-
const head: {
|
|
25
|
+
export const head: {
|
|
20
26
|
color: string;
|
|
21
27
|
fontSize: number;
|
|
22
28
|
lineHeight: string;
|
|
@@ -31,10 +37,10 @@ declare namespace _default {
|
|
|
31
37
|
height: number;
|
|
32
38
|
};
|
|
33
39
|
};
|
|
34
|
-
namespace body {
|
|
40
|
+
export namespace body {
|
|
35
41
|
const fontSize: number;
|
|
36
42
|
}
|
|
37
|
-
namespace sizeSmall {
|
|
43
|
+
export namespace sizeSmall {
|
|
38
44
|
const fontSize_1: number;
|
|
39
45
|
export { fontSize_1 as fontSize };
|
|
40
46
|
export const height: number;
|
|
@@ -43,7 +49,7 @@ declare namespace _default {
|
|
|
43
49
|
}
|
|
44
50
|
}
|
|
45
51
|
namespace MuiTableRow {
|
|
46
|
-
const
|
|
52
|
+
const root_2: {
|
|
47
53
|
'&.MuiTableRow-hover:hover': {
|
|
48
54
|
backgroundColor: string;
|
|
49
55
|
};
|
|
@@ -51,14 +57,14 @@ declare namespace _default {
|
|
|
51
57
|
backgroundColor: string;
|
|
52
58
|
};
|
|
53
59
|
};
|
|
54
|
-
export {
|
|
60
|
+
export { root_2 as root };
|
|
55
61
|
export namespace head_1 {
|
|
56
62
|
const borderTop: string;
|
|
57
63
|
}
|
|
58
64
|
export { head_1 as head };
|
|
59
65
|
}
|
|
60
66
|
namespace MuiTableSortLabel {
|
|
61
|
-
const
|
|
67
|
+
const root_3: {
|
|
62
68
|
flexDirection: string;
|
|
63
69
|
justifyContent: string;
|
|
64
70
|
'&:hover': {
|
|
@@ -81,7 +87,7 @@ declare namespace _default {
|
|
|
81
87
|
};
|
|
82
88
|
};
|
|
83
89
|
};
|
|
84
|
-
export {
|
|
90
|
+
export { root_3 as root };
|
|
85
91
|
export namespace icon {
|
|
86
92
|
export const marginRight: number;
|
|
87
93
|
export const color: string;
|
|
@@ -131,13 +137,13 @@ declare namespace _default {
|
|
|
131
137
|
};
|
|
132
138
|
};
|
|
133
139
|
};
|
|
134
|
-
const
|
|
140
|
+
const root_4: {
|
|
135
141
|
'& .MuiSvgIcon-root': {
|
|
136
142
|
color: string;
|
|
137
143
|
fontSize: string;
|
|
138
144
|
};
|
|
139
145
|
};
|
|
140
|
-
export {
|
|
146
|
+
export { root_4 as root };
|
|
141
147
|
}
|
|
142
148
|
}
|
|
143
149
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"./palette.mjs.js";var e=o.primary,t=o.background,i={MuiTableCell:{root:{borderBottomColor:e.text9,height:56,letterSpacing:"0.4px",lineHeight:"20px",paddingLeft:8,paddingRight:8,"&.dense":{fontSize:14,lineHeight:"14px",height:28}},stickyHeader:{backgroundColor:t.b6},head:{color:e.text7,fontSize:14,lineHeight:"14px","&.MuiTableCell-sizeSmall":{fontSize:12,height:48,lineHeight:"14px"},"&.dense":{fontSize:12,lineHeight:"12px",height:28}},body:{fontSize:16},sizeSmall:{fontSize:14,height:48,lineHeight:"20px",paddingRight:16}},MuiTableRow:{root:{"&.MuiTableRow-hover:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"},"&.Mui-selected, .MuiTableRow-root.Mui-selected:hover":{backgroundColor:"rgba(3, 188, 212, 0.2)"}},head:{borderTop:"1px solid ".concat(e.text9)}},MuiTableSortLabel:{root:{flexDirection:"row",justifyContent:"flex-end","&:hover":{color:o.primary.contrastText,"& .MuiTableSortLabel-icon":{opacity:1,color:o.primary.contrastText},"&.MuiTableSortLabel-active":{color:o.primary.contrastText,"&.MuiTableSortLabel-root.MuiTableSortLabel-active .MuiSvgIcon-root.MuiTableSortLabel-icon":{color:o.primary.contrastText}}},"&.MuiTableSortLabel-active":{color:o.primary.text7,"&.MuiTableSortLabel-root.MuiTableSortLabel-active .MuiSvgIcon-root.MuiTableSortLabel-icon":{color:o.primary.text7}}},icon:{marginRight:0,color:o.primary.text7,fontSize:16}},MuiTablePagination:{toolbar:{paddingTop:10},caption:{fontSize:12},selectRoot:{marginRight:31,marginLeft:3,"& .MuiTablePagination-select":{paddingRight:31,paddingLeft:2}},input:{fontSize:12,position:"relative",top:1},selectIcon:{"&.MuiSvgIcon-root.MuiSelect-icon":{fontSize:16,top:5}},actions:{marginLeft:23,"& .MuiIconButton-root":{color:e.text6,fontSize:16,padding:7,"&:hover":{color:e.contrastText},"&.Mui-disabled":{color:e.text8}}},root:{"& .MuiSvgIcon-root":{color:"inherit",fontSize:"inherit"}}}};export{i as default};
|
|
1
|
+
import o from"./palette.mjs.js";var e=o.primary,t=o.background,i={MuiTableContainer:{root:{"overscroll-behavior-x":"contain"}},MuiTableCell:{root:{borderBottomColor:e.text9,height:56,letterSpacing:"0.4px",lineHeight:"20px",paddingLeft:8,paddingRight:8,"&.dense":{fontSize:14,lineHeight:"14px",height:28}},stickyHeader:{backgroundColor:t.b6},head:{color:e.text7,fontSize:14,lineHeight:"14px","&.MuiTableCell-sizeSmall":{fontSize:12,height:48,lineHeight:"14px"},"&.dense":{fontSize:12,lineHeight:"12px",height:28}},body:{fontSize:16},sizeSmall:{fontSize:14,height:48,lineHeight:"20px",paddingRight:16}},MuiTableRow:{root:{"&.MuiTableRow-hover:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"},"&.Mui-selected, .MuiTableRow-root.Mui-selected:hover":{backgroundColor:"rgba(3, 188, 212, 0.2)"}},head:{borderTop:"1px solid ".concat(e.text9)}},MuiTableSortLabel:{root:{flexDirection:"row",justifyContent:"flex-end","&:hover":{color:o.primary.contrastText,"& .MuiTableSortLabel-icon":{opacity:1,color:o.primary.contrastText},"&.MuiTableSortLabel-active":{color:o.primary.contrastText,"&.MuiTableSortLabel-root.MuiTableSortLabel-active .MuiSvgIcon-root.MuiTableSortLabel-icon":{color:o.primary.contrastText}}},"&.MuiTableSortLabel-active":{color:o.primary.text7,"&.MuiTableSortLabel-root.MuiTableSortLabel-active .MuiSvgIcon-root.MuiTableSortLabel-icon":{color:o.primary.text7}}},icon:{marginRight:0,color:o.primary.text7,fontSize:16}},MuiTablePagination:{toolbar:{paddingTop:10},caption:{fontSize:12},selectRoot:{marginRight:31,marginLeft:3,"& .MuiTablePagination-select":{paddingRight:31,paddingLeft:2}},input:{fontSize:12,position:"relative",top:1},selectIcon:{"&.MuiSvgIcon-root.MuiSelect-icon":{fontSize:16,top:5}},actions:{marginLeft:23,"& .MuiIconButton-root":{color:e.text6,fontSize:16,padding:7,"&:hover":{color:e.contrastText},"&.Mui-disabled":{color:e.text8}}},root:{"& .MuiSvgIcon-root":{color:"inherit",fontSize:"inherit"}}}};export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../src/constants/completion.js"],"names":[],"mappings":"AAAA;;;;;IA+BE;AAEF;;;;;IA+BE;AAEF;;;;;IA+BE;AAEF;;;;;IAqCE;;;;;;AAQF;;;;IAkJE;AAEF;;;;IA8BE;AAIF;;;;;IAGE;AAEF;;;;;IA6DE;AAEF;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../src/constants/completion.js"],"names":[],"mappings":"AAAA;;;;;IA+BE;AAEF;;;;;IA+BE;AAEF;;;;;IA+BE;AAEF;;;;;IAqCE;;;;;;AAQF;;;;IAkJE;AAEF;;;;IA8BE;AAIF;;;;;IAGE;AAEF;;;;;IA6DE;AAEF;;;;;;;;;;;;;;KAgBE;AAEF;;;;;;IAeE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CF;;;;IA0BE;AAEF;;;;;;;;;;;;;;;;;;KA4CE;AAEF;;;IAKE;;;;;;;;;;;;;;;;;;AA6CF;;EAgCE"}
|
package/constants/completion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/toConsumableArray";var r;function
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/toConsumableArray";var r;function l(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);o&&(l=l.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,l)}return r}function n(o){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?l(Object(n),!0).forEach((function(r){e(o,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(n,e))}))}return o}var i=[{name:"Pressure Testing",key:"pressure testing",isFlatTime:!0,color:"#FFF350"},{name:"Pump Off",key:"pump off",isFlatTime:!0,color:"#939E98"},{name:"Fracturing",key:"fracturing",isFlatTime:!1,color:"#429FF8"},{name:"Pad",key:"pad",isFlatTime:!1,color:"#FF8260"},{name:"Flush",key:"flush",isFlatTime:!1,color:"#10EAF0"}],a=[{name:"Pull out of Hole",key:"pull out of hole",isFlatTime:!1,color:"#800080"},{name:"Plug and Perf",key:"plug and perf",isFlatTime:!1,color:"#FFA500"},{name:"Run in Hole",key:"run in hole",isFlatTime:!1,color:"#00008B"},{name:"Static",key:"static",isFlatTime:!1,color:"#D3D3D3"},{name:"Out of Hole",key:"out of hole",isFlatTime:!1,color:"#FFC0CB"}],t=[{name:"Pull out of Hole (VT)",key:"pull out of hole vertical",isFlatTime:!1,color:"#EB3447"},{name:"Pull out of Hole (HZ)",key:"pull out of hole horizontal",isFlatTime:!1,color:"#ED602A"},{name:"Run in Hole (VT)",key:"run in hole vertical",isFlatTime:!1,color:"#390099"},{name:"Run in Hole (HZ)",key:"run in hole horizontal",isFlatTime:!1,color:"#6150C1"},{name:"Static",key:"static",isFlatTime:!1,color:"#FFBD00"}],c=[{name:"HVFR Low",key:"hvfr_low",unitType:"oil",color:"#1fff71"},{name:"15# Linear Gel",key:"15#_linear_gel",unitType:"oil",color:"#00E7E9"},{name:"15% HCL Acid",key:"15%_hcl_acid",unitType:"oil",color:"#6ec732"},{name:"Slickwater",key:"slickwater",unitType:"oil",color:"#7AB8ED"},{name:"15# XL Borate",key:"15#_xl_borate",unitType:"oil",color:"#ff9a4c"},{name:"Fresh Water",key:"fresh_water",unitType:"oil",color:"#4c7fff"}],s={name:"Total Chemicals",key:"total_chemical_rate_in",color:"#00FF00"},p=[{name:"Liquid Gel",color:"#84F4F7",key:"gel"},{name:"Acid",color:"#6ec732",key:"acid"},{name:"Liquid FR",color:"#FFA891",key:"friction_reducer"},{name:"Liquid FR Extra",color:"#91FFA8",key:"friction_reducer_extra"},{name:"Total Liquid FR",color:"#FF91A8",key:"total_friction_reducer"},{name:"Fluid Loss",color:"#c7bd32",key:"fluid_loss"},{name:"Cross Linker",color:"#B0CA87",key:"cross_linker"},{name:"Liquid EB",color:"#32b8c7",key:"enzyme_breaker"},{name:"Polymer Plug",color:"#9fc732",key:"ploymer_plug"},{name:"Acid Inhibitor",color:"#AB9081",key:"acid_inhibitor"},{name:"Acid Retarder",color:"#7CC6FE",key:"acid_retarder"},{name:"Emulsifier",color:"#5DFDCB",key:"emulsifier"},{name:"Clay Stabilizer",color:"#9C6B20",key:"clay_stabilizer"},{name:"Surfactant",color:"#FFF689",key:"surfactant"},{name:"Non-Emulsifier",color:"#C0DF85",key:"non_emulsifier"},{name:"Fines Suspender",color:"#7B8E55",key:"fines_suspender"},{name:"Anti-Sludge",color:"#07393C",key:"anti_sludge"},{name:"Scale Inhibitor",color:"#C0E5CA",key:"scale_inhibitor"},{name:"Iron Control",color:"#CD5334",key:"iron_control"},{name:"Oxygen Scavenger",color:"#DFF283",key:"oxygen_scavenger"},{name:"Mutual Solvent",color:"#ad5ec7",key:"mutual_solvent"},{name:"Corrosion Inhibitor",color:"#7C2209",key:"corrosion_inhibitor"},{name:"Paraffin Control",color:"#F5A65B",key:"paraffin_control"},{name:"Biocide",color:"#E9B76A",key:"biocide"},{name:"PH Adjusting Agent",color:"#519872",key:"ph_adjusting_agent"},{name:"Accelerator",color:"#5E3023",key:"accelerator"},{name:"Instant Crosslinker",color:"#6E6E23",key:"instant_crosslinker"},{name:"Delayed Crosslinker",color:"#7E306E",key:"delayed_crosslinker"},{name:"Liquid Breaker",color:"#233023",key:"liquid_breaker"}],u=[{name:"Diverter",color:"#BB9394",key:"divertor"},{name:"Powder Breaker",color:"#c732b8",key:"powder_breaker"},{name:"Powder Gel",color:"#308E23",key:"powder_gel"},{name:"Powder FR",color:"#30239E",key:"powder_friction_reducer"},{name:"Powder EB",color:"#A32A78",key:"powder_enzyme_breaker"}],m=[].concat(o(p.map((function(e){return n(n({},e),{},{unitType:"volume"})}))),o(u.map((function(e){return n(n({},e),{},{unitType:"mass"})})))),y=[{name:"100 Mesh",key:"100_mesh",unitType:"mass",color:"#ff0000"},{name:"40/70 Brown",key:"40_70_brown",unitType:"mass",color:"#603000"},{name:"40/70 Mesh",key:"40_70_mesh",unitType:"mass",color:"#5454cc"},{name:"40/70 NWS",key:"40_70_nws",unitType:"mass",color:"#ff4242"},{name:"40/70 RBS",key:"40_70_rbs",unitType:"mass",color:"#ff42bc"},{name:"30/50 Brown",key:"30_50_brown",unitType:"mass",color:"#964B00"},{name:"30/50 Mesh",key:"30_50_mesh",unitType:"mass",color:"#9898cc"},{name:"25/50 Brown",key:"25_50_brown",unitType:"mass",color:"#B27C45"},{name:"25/50 Mesh",key:"25_50_mesh",unitType:"mass",color:"#32aa32"},{name:"20/40 Mesh",key:"20_40_mesh",unitType:"mass",color:"#ff7979"}],_=[{name:"Total Proppant Conc",key:"total_proppant_concentration",unitType:"massConcentration",unit:"lb/gal",color:"#FF8F0B"},{name:"BHPC",key:"bottomhole_proppant_concentration",unitType:"massConcentration",unit:"lb/gal",color:"#9F4BED",precision:2}],k=[{name:"Total Proppant Mass",key:"total_proppant_mass",unitType:"mass",color:"#EE964B",unit:"lb"},{name:"Streamed Proppant Mass",key:"proppant_1_mass",unitType:"mass",color:"#C6C013",unit:"lb"}],f={top_perforation:"#0085e3",bottom_perforation:"#8BC7F2",perforated_length:"#519872",total_shots:"#9500b7",flush_volume:"#FF6161"},F={well_head_pressure:"#F50057",pipe_frictional_pressure_loss:"#D8496B",nwb_frictional_pressure_loss:"#807DFF",bottomhole_pressure:"#4DCFB3",net_pressure:"#EE752F",max_treating_pressure:"#F50258",ave_treating_pressure:"#FF6161",breakdown_pressure:"#03db5a",isip_pressure:"#7169AE",delta_pressure:"#efd34b",hydrostatic_pressure:"#E458C8",backside_pressure:"#32aa32",pumpside_pressure:"#855CF8"},d={fr_concentration:"#D99C88",surfactant_concentration:"#FEF798",powder_breaker_concentration:"#993895"},b={clean_flow_rate_in:"#7CC900",slurry_flow_rate_in:"#64B5FF",max_flow_rate:"#0085e3",ave_flow_rate:"#8BC7F2"},w={total_slurry_volume_in:"#7169AE",total_clean_volume_in:"#257CFF"},g=[{name:"Fracturing",key:"fracturing",color:"#429FF8"},{name:"Wireline",key:"wireline",color:"#FF9C00"},{name:"Swap Over - Fracturing",key:"swap_over_fracturing",color:"#347EC5"},{name:"Swap Over - Wireline",key:"swap_over_wireline",color:"#BF7500"},{name:"Waiting on Offset Wells",key:"waiting_on_offset_wells",color:"#BDBDBD"}],T=[{key:"line_speed",label:"Line Speed",unitType:"velocity",unit:"ft/min",isDefaultView:!0},{key:"line_tension",label:"Line Tension",unitType:"mass",unit:"lb",isDefaultView:!0},{key:"casing_collar_locator",label:"CCL",isDefaultView:!0},{key:"elapsed_time",label:"Elapsed Time",unitType:"time",unit:"s"},{key:"voltage",label:"Voltage",unitType:"voltage",unit:"mV"},{key:"current",label:"Current",unitType:"current",unit:"mA"},{key:"measured_depth",label:"Measured Depth",unitType:"length",unit:"ft"}],h=[{key:"pad",label:"Pad Mode"}],A={pad:"pad",activeFrac:"active_frac",activeWireline:"active_wireline",activePumpdown:"active_pumpdown",custom:"custom"},C={padApp:"Pad Apps",fracWirelineMultiWellApp:"Frac & Wireline Multi-Well Apps",fracMultiWellApp:"Frac Multi-Well Apps",wirelineMultiWellApp:"Wireline Multi-Well Apps",pumpdownMultiWellApp:"Pumpdown Multi-Well Apps",fracSingleWellApp:"Frac Single Well Apps",wirelineSingleWellApp:"Wireline Single Well Apps",pumpdownSingleWellApp:"Pumpdown Single Well Apps"},v=(e(r={},C.padApp,[A.pad,A.custom]),e(r,C.fracWirelineMultiWellApp,[A.pad,A.activeFrac,A.activeWireline,A.custom]),e(r,C.fracMultiWellApp,[A.pad,A.activeFrac,A.custom]),e(r,C.fracSingleWellApp,[A.activeFrac,A.custom]),e(r,C.wirelineMultiWellApp,[A.pad,A.activeWireline,A.custom]),e(r,C.wirelineSingleWellApp,[A.activeWireline,A.custom]),e(r,C.pumpdownMultiWellApp,[A.pad,A.activePumpdown,A.custom]),e(r,C.wirelineSingleWellApp,[A.activePumpdown,A.custom]),r);export{i as ACTIVITIES,u as CHEMICALS_MASS_TYPES,m as CHEMICALS_TYPES,p as CHEMICALS_VOL_TYPES,v as COMPLETION_APPTYPE_MODES_DICT,C as COMPLETION_APP_TYPES,A as COMPLETION_MODES,g as COMPLETION_OPERATION_TYPE,h as DEFAULT_SUPPORTED_PAD_MODES,b as FLOW_RATE_COLORS,c as FLUIDS_TYPES,F as PRESSURE_COLORS,_ as PROPPANTS_CON_TYPES,k as PROPPANTS_MASS_TYPES,y as PROPPANTS_TYPES,f as STAGE_ACTUAL_PARAM_COLORS,s as TOTAL_CHEMICAL_TYPE,w as TOTAL_VOLUME_COLORS,d as TRACKING_CONCENTRATION_COLORS,a as WIRELINE_ACTIVITIES,t as WIRELINE_BREAKDOWN_ACTIVITIES,T as WIRELINE_PARAMETERS};
|
package/hocs/index.d.ts
CHANGED
package/hocs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{default as withMUIProvidersHOC}from"./withMUIProvidersHOC.js";
|
|
1
|
+
export{default as withMUIProvidersHOC}from"./withMUIProvidersHOC.js";export{default as withAssetEditorLockHOC}from"./withAssetEditorLockHOC.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withAssetEditorLockHOC.d.ts","sourceRoot":"","sources":["../../src/hocs/withAssetEditorLockHOC.js"],"names":[],"mappings":";AAgBA,4FAoDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as r,useEffect as n}from"react";import{makeStyles as o,Tooltip as i,IconButton as a}from"@material-ui/core";import{LockOutlined as c,ReplayOutlined as l}from"@material-ui/icons";import{jsxs as s,jsx as u}from"react/jsx-runtime";function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?p(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var m=o((function(e){return{root:{display:"flex"},assetEditorWrapper:{width:"100%"},iconButtonWrapper:{height:36,marginTop:10,marginLeft:16},iconButton:{color:e.palette.primary.text6,width:36,height:36,"&:hover":{backgroundColor:e.palette.background.b7}}}})),f=function(e){return function(o){var p=m(),f=o.onChangeEditorField,b=o.onSettingsChange,h=r(!0),g=t(h,2),O=g[0],y=g[1],j=r(!0),v=t(j,2),w=v[0],P=v[1],k=function(){f("assetId",null),f("replacedAssetId",null),f("replacedAssetTime",null)},A=function(){b({rigId:null,wellId:null})};n((function(){w||P(!0)}),[w]);var B=O?c:l;return s("div",{className:p.root,children:[u(i,{title:O?"This app is using current dashboard asset.":"",placement:"bottom",children:u("div",{className:p.assetEditorWrapper,children:w&&u(e,d(d({},o),{},{disabled:O}))})}),u(i,{title:O?"Unlock Asset":"Return default",placement:"bottom",children:u("div",{className:p.iconButtonWrapper,children:u(a,{className:p.iconButton,"data-testid":"".concat(O?"UnlockAsset":"ReturnDefault","_IconButton"),onClick:function(){var e=!O;(y(e),e)&&((f?k:A)(),P(!1))},children:u(B,{})})})})]})}};export{f as default};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/permissions/constants/index.js"],"names":[],"mappings":";AAOA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/permissions/constants/index.js"],"names":[],"mappings":";AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8UE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{stringifyPermission as r}from"../utils.js";import{ABILITIES as s}from"./abilities.js";export{ABILITIES}from"./abilities.js";import a from"./settingsApps.js";import i from"./appsPermissions.js";function t(e,r){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),s.push.apply(s,a)}return s}function c(r){for(var s=1;s<arguments.length;s++){var a=null!=arguments[s]?arguments[s]:{};s%2?t(Object(a),!0).forEach((function(s){e(r,s,a[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}))}return r}var o=c(c({companySelectorView:r({resource_class:"company_selector",ability:s.view}),userCreate:r({resource_class:"User",ability:s.create}),getUserUpdate:function(e){return r({resource_class:"User",ability:s.update,resource_id:e})},canViewCorvaAppVersion:r({resource_class:"corva_app_version",ability:s.view}),documentationEdit:r({resource_class:"Document",ability:s.edit}),documentationCreate:r({resource_class:"Document",ability:s.create}),documentationDestroy:r({resource_class:"Document",ability:s.destroy}),canUpdateWellQC:r({resource_class:"well_qc",ability:s.update}),getFeedItemDestroy:function(e){return r({resource_class:"Activity",ability:s.destroy,resource_id:e})},getCommentDestroy:function(e){return r({resource_class:"Comment",ability:s.destroy,resource_id:e})},getAlertUpdate:function(e){return r({resource_class:"Alert",ability:s.update,resource_id:e})},getAlertDestroy:function(e){return r({resource_class:"Alert",ability:s.destroy,resource_id:e})},streamVisibilityEdit:r({resource_class:"stream",ability:s.edit}),userImpersonate:r({resource_class:"user",ability:s.impersonate}),getDashboardUpdate:function(e){return r({resource_class:"Dashboard",ability:s.update,resource_id:e})},canCreateDashboard:r({resource_class:"Dashboard",ability:s.create}),canCopyUsers:r({resource_class:"Group",ability:s.copy_users}),canViewDocumentsInfo:r({resource_class:"documents_info",ability:s.view}),canViewCostsInfo:r({resource_class:"costs_info",ability:s.view}),canViewBillingCost:r({resource_class:"billing_visualization_cost",ability:s.view}),canReadBillingInfo:r({resource_class:"Usage",ability:s.read}),canUpdateTiers:r({resource_class:"Tier",ability:s.update}),canReadTiers:r({resource_class:"Tier",ability:s.read}),canCreateTiers:r({resource_class:"Tier",ability:s.create}),canDestroyTiers:r({resource_class:"Tier",ability:s.destroy}),canUpdatePlatformSubscriptions:r({resource_class:"PlatformSubscription",ability:s.update}),canReadPlatformSubscriptions:r({resource_class:"PlatformSubscription",ability:s.read}),canCreatePlatformSubscriptions:r({resource_class:"PlatformSubscription",ability:s.create}),canDestroyPlatformSubscriptions:r({resource_class:"PlatformSubscription",ability:s.destroy}),canViewPurchasesPage:r({resource_class:"company_purchase",ability:s.access}),canReadPermissions:r({resource_class:"Permission",ability:s.read}),canViewUserPermissions:r({resource_class:"mng_permissions_user_btn",ability:s.view}),canViewGroupPermissions:r({resource_class:"mng_permissions_group_btn",ability:s.view}),canShareGroup:r({resource_class:"Group",ability:s.share}),getAppStreamUpdate:function(e){return r({resource_class:"AppStream",ability:s.update,resource_id:e})},canViewAlertValidationFilters:r({resource_class:"alert_validation_filters",ability:s.view}),canViewAlertSubscriptionFilters:r({resource_class:"alert_subscription_filters",ability:s.view}),getCanDestroyAlertDefinition:function(e){return r({resource_class:"AlertDefinition",ability:s.destroy,resource_id:e})},getCanUpdateAlertDefinition:function(e){return r({resource_class:"AlertDefinition",ability:s.update,resource_id:e})},canCreateAlertDashboard:r({resource_class:"alert_dashboard",ability:s.create}),canUpdateAlertDashboard:r({resource_class:"alert_dashboard",ability:s.edit}),canViewAlertCompanyField:r({resource_class:"alert_company_field",ability:s.view}),canViewDashboardSharingCompany:r({resource_class:"dashboard_sharing_company",ability:s.view}),canViewDashboardSharingSharedWith:r({resource_class:"dashboard_sharing_shared_with",ability:s.view}),canViewConfigPage:r({resource_class:"config_page",ability:s.access}),canAccessRequestApp:r({resource_class:"request_app",ability:s.access}),canAccessUserSettingsWidgets:r({resource_class:"user_settings_widgets",ability:s.access}),canViewDevCenter:r({resource_class:"dev_center",ability:s.access}),getCanReadAppPackages:function(e){return r({resource_class:"App",ability:"read_packages",resource_id:e})},canViewAppPackageSelector:r({resource_class:"app_package_selector",ability:s.view}),canAccessProvisioning:r({resource_class:"provisioning",ability:s.access}),getCanUpdateAsset:function(e){return r({resource_class:"Asset",ability:s.update,resource_id:e})},getCanUpdateParentAssetAsset:function(e){return r({resource_class:"Asset",ability:"update_parent_asset",resource_id:e})},getCanCopyActivities:function(e){return r({resource_class:"Asset",ability:s.copy_activities,resource_id:e})},canRerunWell:function(e){return r({resource_class:"Asset",ability:s.rerun,resource_id:e})},rigCreate:r({ability:s.create,resource_class:"Rig"}),wellCreate:r({ability:s.create,resource_class:"Well"}),programCreate:r({ability:s.create,resource_class:"Program"}),padCreate:r({ability:s.create,resource_class:"Pad"}),padUpdate:r({ability:s.update,resource_class:"Pad"}),canManagePadFracFleets:r({ability:"manage_frac_fleets",resource_class:"Pad"}),fracFleetCreate:r({ability:s.create,resource_class:"FracFleet"}),drilloutUnitCreate:r({ability:s.create,resource_class:"DrilloutUnit"}),canQCDrillstring:r({ability:s.update,resource_class:"drillstring_qc"}),canCalibrateDrillstring:r({ability:s.update,resource_class:"drillstring_calibration"}),canViewAppOwnersFilter:r({ability:s.view,resource_class:"app_owners_filter"}),canViewSaveOffsetWells:r({ability:s.view,resource_class:"save_offset_wells"}),canViewGenerateDRM:r({ability:s.view,resource_class:"corva.driller_roadmap-generate_drm"}),canUpdateWorkflow:r({ability:s.update,resource_class:"Workflow"}),canViewColumnMapperTemplate:r({ability:s.view,resource_class:"column_mapper_template"}),canPublishDraftTemplate:r({ability:s.publish,resource_class:"AppStoreTemplate"}),canReadAppStoreBuilder:r({ability:s.read,resource_class:"AppStoreTemplateSection"}),canReadResourceAudit:r({ability:s.read,resource_class:"ResourceAudit"}),canAccessPartialRerun:r({ability:s.access,resource_class:"PartialWellRerun"})},a),i);export{o as PERMISSIONS};
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{stringifyPermission as r}from"../utils.js";import{ABILITIES as s}from"./abilities.js";export{ABILITIES}from"./abilities.js";import a from"./settingsApps.js";import i from"./appsPermissions.js";function t(e,r){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),s.push.apply(s,a)}return s}function c(r){for(var s=1;s<arguments.length;s++){var a=null!=arguments[s]?arguments[s]:{};s%2?t(Object(a),!0).forEach((function(s){e(r,s,a[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}))}return r}var o=c(c({companySelectorView:r({resource_class:"company_selector",ability:s.view}),userCreate:r({resource_class:"User",ability:s.create}),getUserUpdate:function(e){return r({resource_class:"User",ability:s.update,resource_id:e})},canViewCorvaAppVersion:r({resource_class:"corva_app_version",ability:s.view}),documentationEdit:r({resource_class:"Document",ability:s.edit}),documentationCreate:r({resource_class:"Document",ability:s.create}),documentationDestroy:r({resource_class:"Document",ability:s.destroy}),canUpdateWellQC:r({resource_class:"well_qc",ability:s.update}),getFeedItemDestroy:function(e){return r({resource_class:"Activity",ability:s.destroy,resource_id:e})},getCommentDestroy:function(e){return r({resource_class:"Comment",ability:s.destroy,resource_id:e})},getAlertUpdate:function(e){return r({resource_class:"Alert",ability:s.update,resource_id:e})},getAlertDestroy:function(e){return r({resource_class:"Alert",ability:s.destroy,resource_id:e})},streamVisibilityEdit:r({resource_class:"stream",ability:s.edit}),userImpersonate:r({resource_class:"user",ability:s.impersonate}),getDashboardUpdate:function(e){return r({resource_class:"Dashboard",ability:s.update,resource_id:e})},canCreateDashboard:r({resource_class:"Dashboard",ability:s.create}),canCopyUsers:r({resource_class:"Group",ability:s.copy_users}),canViewDocumentsInfo:r({resource_class:"documents_info",ability:s.view}),canViewCostsInfo:r({resource_class:"costs_info",ability:s.view}),canViewBillingCost:r({resource_class:"billing_visualization_cost",ability:s.view}),canReadBillingInfo:r({resource_class:"Usage",ability:s.read}),canUpdateTiers:r({resource_class:"Tier",ability:s.update}),canReadTiers:r({resource_class:"Tier",ability:s.read}),canCreateTiers:r({resource_class:"Tier",ability:s.create}),canDestroyTiers:r({resource_class:"Tier",ability:s.destroy}),canUpdatePlatformSubscriptions:r({resource_class:"PlatformSubscription",ability:s.update}),canReadPlatformSubscriptions:r({resource_class:"PlatformSubscription",ability:s.read}),canCreatePlatformSubscriptions:r({resource_class:"PlatformSubscription",ability:s.create}),canDestroyPlatformSubscriptions:r({resource_class:"PlatformSubscription",ability:s.destroy}),canViewPurchasesPage:r({resource_class:"company_purchase",ability:s.access}),canReadPermissions:r({resource_class:"Permission",ability:s.read}),canViewUserPermissions:r({resource_class:"mng_permissions_user_btn",ability:s.view}),canViewGroupPermissions:r({resource_class:"mng_permissions_group_btn",ability:s.view}),canShareGroup:r({resource_class:"Group",ability:s.share}),getAppStreamUpdate:function(e){return r({resource_class:"AppStream",ability:s.update,resource_id:e})},canViewAlertValidationFilters:r({resource_class:"alert_validation_filters",ability:s.view}),canViewAlertSubscriptionFilters:r({resource_class:"alert_subscription_filters",ability:s.view}),getCanDestroyAlertDefinition:function(e){return r({resource_class:"AlertDefinition",ability:s.destroy,resource_id:e})},getCanUpdateAlertDefinition:function(e){return r({resource_class:"AlertDefinition",ability:s.update,resource_id:e})},canCreateAlertDashboard:r({resource_class:"alert_dashboard",ability:s.create}),canUpdateAlertDashboard:r({resource_class:"alert_dashboard",ability:s.edit}),canViewAlertCompanyField:r({resource_class:"alert_company_field",ability:s.view}),canViewDashboardSharingCompany:r({resource_class:"dashboard_sharing_company",ability:s.view}),canViewDashboardSharingSharedWith:r({resource_class:"dashboard_sharing_shared_with",ability:s.view}),canViewConfigPage:r({resource_class:"config_page",ability:s.access}),canAccessRequestApp:r({resource_class:"request_app",ability:s.access}),canAccessUserSettingsWidgets:r({resource_class:"user_settings_widgets",ability:s.access}),canViewDevCenter:r({resource_class:"dev_center",ability:s.access}),getCanReadAppPackages:function(e){return r({resource_class:"App",ability:"read_packages",resource_id:e})},canViewAppPackageSelector:r({resource_class:"app_package_selector",ability:s.view}),canAccessProvisioning:r({resource_class:"provisioning",ability:s.access}),getCanUpdateAsset:function(e){return r({resource_class:"Asset",ability:s.update,resource_id:e})},getCanUpdateParentAssetAsset:function(e){return r({resource_class:"Asset",ability:"update_parent_asset",resource_id:e})},getCanCopyActivities:function(e){return r({resource_class:"Asset",ability:s.copy_activities,resource_id:e})},canRerunWell:function(e){return r({resource_class:"Asset",ability:s.rerun,resource_id:e})},rigCreate:r({ability:s.create,resource_class:"Rig"}),wellCreate:r({ability:s.create,resource_class:"Well"}),programCreate:r({ability:s.create,resource_class:"Program"}),padCreate:r({ability:s.create,resource_class:"Pad"}),padUpdate:r({ability:s.update,resource_class:"Pad"}),canManagePadWells:r({ability:"manage_pad_wells",resource_class:"Pad"}),canManagePadFracFleets:r({ability:"manage_frac_fleets",resource_class:"Pad"}),fracFleetCreate:r({ability:s.create,resource_class:"FracFleet"}),drilloutUnitCreate:r({ability:s.create,resource_class:"DrilloutUnit"}),canQCDrillstring:r({ability:s.update,resource_class:"drillstring_qc"}),canCalibrateDrillstring:r({ability:s.update,resource_class:"drillstring_calibration"}),canViewAppOwnersFilter:r({ability:s.view,resource_class:"app_owners_filter"}),canViewSaveOffsetWells:r({ability:s.view,resource_class:"save_offset_wells"}),canViewGenerateDRM:r({ability:s.view,resource_class:"corva.driller_roadmap-generate_drm"}),canUpdateWorkflow:r({ability:s.update,resource_class:"Workflow"}),canViewColumnMapperTemplate:r({ability:s.view,resource_class:"column_mapper_template"}),canPublishDraftTemplate:r({ability:s.publish,resource_class:"AppStoreTemplate"}),canReadAppStoreBuilder:r({ability:s.read,resource_class:"AppStoreTemplateSection"}),canReadResourceAudit:r({ability:s.read,resource_class:"ResourceAudit"}),canAccessPartialRerun:r({ability:s.access,resource_class:"PartialWellRerun"})},a),i);export{o as PERMISSIONS};
|
package/utils/devcenter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter.d.ts","sourceRoot":"","sources":["../../src/utils/devcenter.js"],"names":[],"mappings":"AAWA;;;;;;EAiBC;AAzBM;;;;QAIN;AACM,oEACuB;AAqBvB,0DAC4D;AAE5D,
|
|
1
|
+
{"version":3,"file":"devcenter.d.ts","sourceRoot":"","sources":["../../src/utils/devcenter.js"],"names":[],"mappings":"AAWA;;;;;;EAiBC;AAzBM;;;;QAIN;AACM,oEACuB;AAqBvB,0DAC4D;AAE5D,0CAA8E;AAE9E,kDAAoF;AAEpF,6CACkE"}
|
package/utils/devcenter.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DEV_CENTER_CLI_APP_ID as n}from"../constants/devcenter.js";import"../constants/goals.js";import{SEGMENTS as t}from"../constants/segment.js";import"../constants/alerts.js";import"../constants/apps.js";import"../constants/drillstring.js";import"../constants/completion.js";import"../constants/notifications.js";import"../constants/feed.js";import"../constants/bha.js";import"./env.js";import"lodash";import"../components/GradientManager/configuration/constants.js";var o=function(n){var t=n.appKey,o=n.version,i=n.isLocalDebugMode;if(!t)return"";var a=t.replace(/\./g,"_");return i?a:"".concat(a,"-").concat(o)},i=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return o===+(null==t?void 0:t.maximizeDC)};function a(n){var t,o;return{push:function(t){"string"==typeof t?n.push(t):n.push({pathname:t.pathname,query:t.query})},location:{pathname:null==n||null===(t=n.location)||void 0===t?void 0:t.pathname,query:null==n||null===(o=n.location)||void 0===o?void 0:o.query}}}var r=function(n){return n?+(n.split("#")[2]||"").replace("}",""):void 0},
|
|
1
|
+
import{DEV_CENTER_CLI_APP_ID as n}from"../constants/devcenter.js";import"../constants/goals.js";import{SEGMENTS as t}from"../constants/segment.js";import"../constants/alerts.js";import"../constants/apps.js";import"../constants/drillstring.js";import"../constants/completion.js";import"../constants/notifications.js";import"../constants/feed.js";import"../constants/bha.js";import"./env.js";import"lodash";import"../components/GradientManager/configuration/constants.js";var o=function(n){var t=n.appKey,o=n.version,i=n.isLocalDebugMode;if(!t)return"";var a=t.replace(/\./g,"_");return i?a:"".concat(a,"-").concat(o)},i=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return o===+(null==t?void 0:t.maximizeDC)};function a(n){var t,o;return{push:function(t){"string"==typeof t?n.push(t):n.push({pathname:t.pathname,query:t.query})},location:{pathname:null==n||null===(t=n.location)||void 0===t?void 0:t.pathname,query:null==n||null===(o=n.location)||void 0===o?void 0:o.query}}}var r=function(n){return n?+(n.split("#")[2]||"").replace("}",""):void 0},l=function(n){var t,o;return null!==(t=null==n||null===(o=n.package)||void 0===o?void 0:o.manifest.application.name)&&void 0!==t?t:null==n?void 0:n.name},s=function(n){var t;return"dev_center"===((null==n?void 0:n.platform)||(null==n||null===(t=n.app)||void 0===t?void 0:t.platform))},e=function(n){var o,i,a,r,l;return null!==(o=null==n||null===(i=n.package)||void 0===i||null===(a=i.manifest)||void 0===a||null===(r=a.application)||void 0===r||null===(l=r.segments)||void 0===l?void 0:l[0])&&void 0!==o?o:t.DRILLING};export{a as createDevCenterRouter,o as getAppIdentifier,l as getAppName,e as getAppSegment,r as getTimestampFromQuery,i as isAppMaximized,s as isDevCenterApp};
|