@corva/ui 0.68.0-1 → 0.68.0-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/Search/components/Listbox.js +1 -1
- package/cjs-bundle/components/Search/components/RecentSearches.js +1 -1
- package/cjs-bundle/components/Search/styles.js +1 -1
- package/cjs-bundle/components/StatusBadge/index.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/components/Listbox.js +1 -1
- package/components/Search/components/RecentSearches.d.ts +5 -1
- package/components/Search/components/RecentSearches.d.ts.map +1 -1
- package/components/Search/components/RecentSearches.js +1 -1
- package/components/Search/styles.d.ts +1 -1
- package/components/Search/styles.d.ts.map +1 -1
- package/components/Search/styles.js +1 -1
- package/components/StatusBadge/index.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;
|
|
1
|
+
{"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../src/components/Search/Search.tsx"],"names":[],"mappings":";AAEA,OAAO,SAAS,MAAM,YAAY,CAAC;AA8BnC,UAAU,WAAY,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC;CAAG;AAE7E,QAAA,MAAM,MAAM;wcAgCT,WAAW,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyU3B,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,AccessTime as y,Close as N}from"@material-ui/icons";import R from"../IconButton/index.js";import k from"./components/Listbox.js";import L from"./components/Paper.js";import"./components/RecentSearches.js";import"./components/InputAdornmentLeft.js";import"./components/Groups.js";import{truncateString as T}from"./utils/truncate.js";import{PaperContext as j}from"./context/index.js";import F from"./styles.js";var z=o(A,{style:{fontSize:20}}),M=o(G,{style:{fontSize:20}}),D=function(d){var A=d.classes,G=d.AutocompleteProps,D=void 0===G?{}:G,H=d.value,K=d.disableClearable,B=d.onChange,E=d.onInputChange,q=d.loading,w=d.options,V=d.optionSize,W=d.placeholder,U=d.onGroupChange,_=d.disabled,J=d.multiple,Q=d.groups,X=d.GroupsComponent,Y=d.recentSearchesMaxCount,Z=d.dataStorageKey,$=d.RecentSearchesComponent,ee=d.dataStorage,ne=d.onInputReset,oe=d.getOptionLabel,te=d.TextFieldProps,re=d.ListboxProps,le=d.onInputChangeCallback,ie=d.truncateSettings,ae=d.renderCustomOption,pe=d.isHiddenAllOption,se=d.selectedGroup,ue=d.onGroupReset,ce=d.onClose,de=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"]),me=l(""),ge=me[0],he=me[1],fe=l(""),Ce=fe[0],be=fe[1],ve=l(!1),Ie=ve[0],Se=ve[1],Pe=i(),xe=F(),Oe={popper:c(xe.popper,A.popper),listbox:c(xe.listbox,A.listbox),popupIndicator:c(xe.popupIndicator,A.popupIndicator),popupIndicatorOpen:c(xe.popupIndicatorOpen,A.popupIndicatorOpen)},Ae=(null==w?void 0:w.some((function(e){return e.group})))||!m(Q),Ge=a(g((function(e){return be(e)}),500),[]),ye=function(e){var n=Q.find((function(n){return n.id===e}));he(""),U(n)};p((function(){Ie&&Pe.current.focus()}));var Ne=null==w?void 0:w.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())})),Re=m(se)?Ne:null==w?void 0:w.filter((function(e){return e.group===se.name})),ke=J&&(null==Re?void 0:Re.length)===(null==H?void 0:H.length),Le=J&&(null==H?void 0:H.length)&&!ke,Te=function(){return he(""),D.getOptionDisabled&&ke?B(null,[w[w.length-1]]):B(null,ke?[]:Re)};p((function(){Ge(ge),E&&E(ge)}),[ge]);var je=function(e,n){"blur"!==n&&(ce(),Se(!1))},Fe=function(){Ie?(Se(!1),ce()):Se(!0)},ze=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")},Me=function(){return o(P,{id:"selectAllLabel",className:xe.selectAllCheckbox,onClick:Te,control:o(x,{icon:z,style:{fontSize:20},indeterminate:Le,checkedIcon:M,checked:ke,inputProps:{"aria-label":"All"}}),label:"All"})},De=s((function(){return{onOutsideClick:je,isEmptyOptions:m(Re),loading:q,AllSelectComponent:!pe&&J&&!m(Re)&&o(Me,{}),RecentSearchesComponent:$&&o($,{title:"Recent Searches",Icon:y,dataStorage:ee,dataStorageKey:Z,maxCount:Y,isHidden:!m(ge),onInputChange:function(e){return he(e)},inputValue:Ce}),GroupsComponent:!se&&Ae&&X&&o(X,{onGroupClick:ye,groups:Q})}}),[se,q,Ae,ge,ke,Le,Ce,ce,pe]);return o(j.Provider,n({value:De},{children:o(h,n({},de,{disableClearable:K,onClose:je,onOpen:function(){Se(!0)},open:Ie,onChange:function(e,n){he(""),B(e,n)},forcePopupIcon:D.forcePopupIcon,fullWidth:!0,disabled:_,value:H,classes:Oe,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,te,{inputRef:Pe,placeholder:W,classes:{root:xe.searchInput},InputProps:n(n(n({classes:{root:xe.textField}},e.InputProps),de.InputProps),{startAdornment:t(r,{children:[null===(s=de.InputProps)||void 0===s?void 0:s.startAdornment,se&&o(b,{className:xe.selectedGroup,"data-not-migrated-MuiChip":!0,variant:"outlined",label:t("div",n({className:xe.selectedGroupLabel},{children:[se.name,o(N,{id:"removeGroupIcon",className:xe.removeIcon,onClick:ue})]}))},se.id),J&&!m(H)&&o("div",n({onClick:Fe,id:"selectedOptions",className:xe.selectedLabel},{children:ze(H)}))]}),endAdornment:t(r,{children:[t(I,n({className:c((l={},l[xe.removeIconWithDropdown]=D.forcePopupIcon,l)),position:"end"},{children:[te.endAdornment,q&&o(S,{color:"primary",size:20}),ge&&!K&&o(R,n({size:"small",className:xe.iconButton,onClick:function(){he(""),ne?ne():B(null,[])},tooltipProps:{title:"Clear"}},{children:o(N,{className:xe.closeIcon})}))]})),D.forcePopupIcon&&d]})})}))},loading:q,options:Re,renderGroup:function(e){var r=e.key,l=e.group,i=e.children;return!l||!m(se)&&J?i:t("div",n({className:xe.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(xe.groupChip,A.groupChip),variant:"outlined",label:l},r)})),i]}))},disableCloseOnSelect:J,multiple:J,renderOption:ae||function(e,r){var l=e.label,i=e.id,a=r.selected;return J?t("div",n({className:c(xe.option,V)},{children:[o(x,{disableRipple:!0,icon:z,className:xe.checkbox,checkedIcon:M,checked:a}),T(l,ie)]}),i):o(O,n({className:xe.menuItem,value:i},{children:l}),i)},groupBy:Ae&&function(e){return e.group},PaperComponent:L,ListboxComponent:k,inputValue:ge,getOptionLabel:oe,getOptionDisabled:D.getOptionDisabled,onInputChange:function(e,n,o){he((null==e?void 0:e.target.value)||(null==e?void 0:e.target.innerText)||n),le(n,o)},loadingText:o("div",n({className:xe.label},{children:"Loading ..."})),noOptionsText:o("div",n({className:xe.label},{children:"No Options"})),ListboxProps:re}))}))},H={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};D.propTypes=H,D.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{D as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{memo as r,useState as o,useRef as i,useEffect as n}from"react";import c from"classnames";import{makeStyles as a,List as l}from"@material-ui/core";import{jsx as p}from"react/jsx-runtime";function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function s(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?u(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var b=a((function(e){var t=e.palette;return{list:{fontSize:16,"& .MuiAutocomplete-option":{display:"block",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.16)"}},'& .MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:"initial"},"& .MuiAutocomplete-option:active":{backgroundColor:"initial"}},withShadow:{"&::after":{content:"''",position:"sticky",width:"100%",display:"block",bottom:"
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{memo as r,useState as o,useRef as i,useEffect as n}from"react";import c from"classnames";import{makeStyles as a,List as l}from"@material-ui/core";import{jsx as p}from"react/jsx-runtime";function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function s(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?u(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var b=a((function(e){var t=e.palette;return{list:{fontSize:16,"& .MuiAutocomplete-option":{display:"block",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.16)"}},'& .MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:"initial"},"& .MuiAutocomplete-option:active":{backgroundColor:"initial"}},withShadow:{"&::after":{content:"''",position:"sticky",width:"100%",display:"block",bottom:"0",height:8,backgroundImage:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(t.background.b9," 100%)"),zIndex:1},"&::before":{content:"''",position:"sticky",width:"100%",display:"block",height:8,top:"0",backgroundImage:"linear-gradient(0deg, rgba(65, 65, 65, 0) 0%, ".concat(t.background.b9," 100%)"),zIndex:1}}}})),d=r((function(e){var r=o(!1),a=t(r,2),u=a[0],d=a[1],f=i(),m=b();return n((function(){var e,t;d((null===(e=f.current)||void 0===e?void 0:e.scrollHeight)>(null===(t=f.current)||void 0===t?void 0:t.clientHeight))})),p(l,s(s({},e),{},{className:c(e.className,m.list,u&&m.withShadow),ref:f,role:"listbox"}))}));export{d as default};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export default RecentSearches;
|
|
2
|
-
declare function RecentSearches({ onInputChange, inputValue, isHidden, maxCount, dataStorageKey, dataStorage, }: {
|
|
2
|
+
declare function RecentSearches({ className, title, Icon, onInputChange, inputValue, isHidden, maxCount, dataStorageKey, dataStorage, clearable, }: {
|
|
3
|
+
className: any;
|
|
4
|
+
title: any;
|
|
5
|
+
Icon: any;
|
|
3
6
|
onInputChange: any;
|
|
4
7
|
inputValue: any;
|
|
5
8
|
isHidden: any;
|
|
6
9
|
maxCount: any;
|
|
7
10
|
dataStorageKey: any;
|
|
8
11
|
dataStorage: any;
|
|
12
|
+
clearable: any;
|
|
9
13
|
}): JSX.Element;
|
|
10
14
|
//# sourceMappingURL=RecentSearches.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecentSearches.d.ts","sourceRoot":"","sources":["../../../../src/components/Search/components/RecentSearches.js"],"names":[],"mappings":";AA6CA
|
|
1
|
+
{"version":3,"file":"RecentSearches.d.ts","sourceRoot":"","sources":["../../../../src/components/Search/components/RecentSearches.js"],"names":[],"mappings":";AA6CA;;;;;;;;;;;gBA8DC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/toConsumableArray";import{useEffect as r}from"react";import{isEmpty as t,take as n}from"lodash";import{makeStyles as i,Typography as
|
|
1
|
+
import e from"@babel/runtime/helpers/toConsumableArray";import{useEffect as r}from"react";import{isEmpty as t,take as n}from"lodash";import a from"classnames";import{makeStyles as i,Typography as o}from"@material-ui/core";import{jsxs as c,jsx as l}from"react/jsx-runtime";var p=i((function(e){var r=e.palette;return{recentSearchesWrapper:{paddingBottom:"8px"},option:{display:"flex",alignItems:"center",padding:"0 16px","&:hover":{cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.16)"}},label:{lineHeight:"36px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},caption:{color:r.primary.text6,fontSize:"12px",padding:"16px 0 8px 16px"},recentSearchesIcon:{width:"16px",height:"16px",color:r.primary.text6,marginRight:"16px"}}})),s=function(e,r,t){e.setItem(r,JSON.stringify(t))},m=function(i){var m=i.className,u=i.title,d=i.Icon,f=i.onInputChange,h=i.inputValue,x=i.isHidden,g=i.maxCount,v=i.dataStorageKey,S=i.dataStorage,b=i.clearable,N=function(e,r){return JSON.parse(e.getItem(r))||[]}(S,v),I=p();if(r((function(){null!=h&&h.trim()&&!N.includes(h)&&s(S,v,n([h].concat(e(N)),g))}),[h]),t(N)||x)return null;var y=null==N?void 0:N.map((function(e){return c("div",{className:I.option,onClick:function(){!function(e){s(S,v,b?N:N.filter((function(r){return r!==e}))),f(e)}(e)},children:[d&&l(d,{className:I.recentSearchesIcon}),l("div",{className:I.label,children:e})]},e)}));return c("div",{className:a(I.recentSearchesWrapper,m),children:[u&&l(o,{className:I.caption,children:u}),y]})};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
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Search/styles.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Search/styles.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,SAAS,yYAiIZ,CAAC;AAEJ,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyles as t}from"@material-ui/core";var o=t((function(t){var o=t.palette;return{searchInput:{"& .MuiAutocomplete-input":{padding:"5px !important"},"&::before":{borderColor:o.primary.text9},"&:hover .MuiInputAdornment-root svg":{fill:"".concat(o.primary.contrastText," !important")},"&:hover .MuiInput-underline:not(.Mui-disabled):before":{borderBottom:"2px solid ".concat(o.primary.contrastText," !important")},"& .Mui-focused .MuiInputAdornment-positionStart svg.MuiSvgIcon-root":{fill:"".concat(o.primary.main," !important")}},popper:{top:"8px !important"},popupIndicator:{color:o.primary.text6,"&:hover":{backgroundColor:"transparent"}},popupIndicatorOpen:{color:o.primary.main},label:{textAlign:"center",fontStyle:"italic",fontSize:12,fontWeight:400},listbox:{maxHeight:160,position:"relative"},textField:{paddingRight:"0px !important",paddingBottom:"0px !important"},searchIcon:{fill:"".concat(o.primary.text6," !important"),width:"24px",height:"24px"},closeIcon:{fill:"".concat(o.primary.text6," !important"),"&:hover":{fill:"".concat(o.primary.contrastText," !important")}},iconButton:{"&:hover":{backgroundColor:"transparent"}},option:{"&.large":{padding:"9px 0"}},group:{padding:"4px 0"},groupChip:{margin:"0 16px 4px",color:o.primary.text6,border:"1px solid ".concat(o.primary.text9),fontSize:14,"&:hover":{backgroundColor:"initial"}},selectedGroup:{padding:"4px 2px",marginRight:8,color:o.primary.text6,border:"1px solid ".concat(o.primary.text9),height:20,fontSize:14,"& .MuiChip-label":{padding:"0px 0px 0px 8px"}},selectedGroupLabel:{display:"flex",alignItems:"center"},removeIcon:{fontSize:"16px",margin:"0 4px",cursor:"pointer"},removeIconWithDropdown:{marginRight:20,zIndex:1},checkbox:{padding:"0 8px 0 0","&:hover":{backgroundColor:"initial !important"}},selectAllCheckbox:{margin:0,
|
|
1
|
+
import{makeStyles as t}from"@material-ui/core";var o=t((function(t){var o=t.palette;return{searchInput:{"& .MuiAutocomplete-input":{padding:"5px !important"},"&::before":{borderColor:o.primary.text9},"&:hover .MuiInputAdornment-root svg":{fill:"".concat(o.primary.contrastText," !important")},"&:hover .MuiInput-underline:not(.Mui-disabled):before":{borderBottom:"2px solid ".concat(o.primary.contrastText," !important")},"& .Mui-focused .MuiInputAdornment-positionStart svg.MuiSvgIcon-root":{fill:"".concat(o.primary.main," !important")}},popper:{top:"8px !important"},popupIndicator:{color:o.primary.text6,"&:hover":{backgroundColor:"transparent"}},popupIndicatorOpen:{color:o.primary.main},label:{textAlign:"center",fontStyle:"italic",fontSize:12,fontWeight:400},listbox:{maxHeight:160,position:"relative",padding:0},textField:{paddingRight:"0px !important",paddingBottom:"0px !important"},searchIcon:{fill:"".concat(o.primary.text6," !important"),width:"24px",height:"24px"},closeIcon:{fill:"".concat(o.primary.text6," !important"),"&:hover":{fill:"".concat(o.primary.contrastText," !important")}},iconButton:{"&:hover":{backgroundColor:"transparent"}},option:{"&.large":{padding:"9px 0"}},group:{padding:"4px 0"},groupChip:{margin:"0 16px 4px",color:o.primary.text6,border:"1px solid ".concat(o.primary.text9),fontSize:14,"&:hover":{backgroundColor:"initial"}},selectedGroup:{padding:"4px 2px",marginRight:8,color:o.primary.text6,border:"1px solid ".concat(o.primary.text9),height:20,fontSize:14,"& .MuiChip-label":{padding:"0px 0px 0px 8px"}},selectedGroupLabel:{display:"flex",alignItems:"center"},removeIcon:{fontSize:"16px",margin:"0 4px",cursor:"pointer"},removeIconWithDropdown:{marginRight:20,zIndex:1},checkbox:{padding:"0 8px 0 0","&:hover":{backgroundColor:"initial !important"}},selectAllCheckbox:{margin:0,height:54,width:"100%",borderBottom:"1px solid ".concat(o.primary.text9),padding:"16px 8px 8px 8px","& .MuiCheckbox-root .MuiSvgIcon-root":{fontSize:"20px !important"},"& .Mui-checked:hover, & .MuiCheckbox-indeterminate:hover":{backgroundColor:"initial !important"},"& .Mui-checked:active, & .MuiCheckbox-indeterminate:active":{backgroundColor:"initial !important"}},selectedLabel:{padding:"0 4px"},menuItem:{padding:0,"&:hover":{backgroundColor:"initial"}}}}));export{o as default};
|
|
@@ -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 +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};
|