@corva/ui 0.68.0-11 → 0.68.0-13
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/Chart/components/AxisOverlay.js +1 -1
- package/cjs-bundle/components/Chip/index.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/StatusBadge/components/DQAccordionDetailsContent.js +1 -1
- package/components/Chart/components/AxisOverlay.d.ts +2 -1
- package/components/Chart/components/AxisOverlay.d.ts.map +1 -1
- package/components/Chart/components/AxisOverlay.js +1 -1
- package/components/Chip/index.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js +1 -1
- package/components/StatusBadge/components/DQAccordionDetailsContent.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var t=require("@babel/runtime/helpers/slicedToArray"),e=require("@babel/runtime/helpers/objectWithoutProperties"),i=require("react"),o=require("@material-ui/core"),r=require("@material-ui/icons/Straighten"),l=require("../ChartWrapperContext.js"),n=require("react/jsx-runtime");function u(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var s=u(t),a=u(e),c=u(r),f=["left","width","top","bottom","right","labelOffset","offset","height","coll","onCustomizeScaleClick"],p=o.makeStyles((function(t){return{axis:function(t){return{position:"absolute",cursor:"pointer",width:t.width,left:t.left,bottom:t.bottom,height:t.height}},tooltip:{display:"flex",alignItems:"center",justifyContent:"space-between",minWidth:125,backgroundColor:t.palette.background.b9,color:t.palette.text.primary,fontSize:"12px",lineHeight:"16px",letterSpacing:"0.4px",borderRadius:"4px",padding:"4px",zIndex:1e4},tooltipIcon:{fontSize:16,color:t.palette.primary.text6}}}));module.exports=function(t){var e,r,u=t.left,d=t.width,h=t.top,x=t.bottom,g=t.right,m=t.labelOffset,b=t.offset,y=t.height,v=t.coll,C=t.onCustomizeScaleClick,j=a.default(t,f),S=i.useContext(l).chart,E=i.useState({}),q=s.default(E,2),w=q[0],B=q[1],k=i.useRef(),z=(null==S?void 0:S.inverted)?"yAxis"===v:"xAxis"===v,O=14+m,W=14+m,I=((null==j||null===(e=j.userOptions)||void 0===e?void 0:e.title)||{}).text,M=z?u-5:u-W,R=z?x-W:x-5,A=p({top:h,right:g,width:z?d+W:W,height:z?W:y+W,left:z?M:M+b,bottom:z?R-b:R}),N=null===(r=k.current)||void 0===r?void 0:r.getBoundingClientRect(),P=n.jsxs("div",{className:A.tooltip,children:[n.jsx(c.default,{className:A.tooltipIcon})," Customize Scale"]}),H=function(){S[v].find((function(t){return t.userOptions.title.text===I})).update({lineColor:"#03BCD4",lineWidth:2,labels:{style:{color:"#ffffff"}},title:{style:{color:"#ffffff"}}})},T=function(){S[v].find((function(t){return t.userOptions.title.text===I})).update({lineColor:"#3B3B3B",lineWidth:1,labels:{style:{color:"#9E9E9E"}},title:{style:{color:"#9E9E9E"}}})};return i.useEffect((function(){var t=S.axisGroup;t&&(t.element.style.cursor="pointer")}),[S]),n.jsx(o.Tooltip,{title:P,placement:z?"top":"right",onMouseMove:function(t){var e=t.pageX,i=t.pageY;B({x:e,y:i})},PopperProps:{anchorEl:{clientHeight:0,clientWidth:0,getBoundingClientRect:function(){return{top:z?N.y:w.y,left:z?w.x:N.x-O,right:z?w.x:N.x+O,bottom:z?N.y:w.y,width:0,height:0}}}},children:n.jsx("div",{className:A.axis,ref:k,onClick:function(){return C(j)},onMouseOver:H,onMouseLeave:T,onFocus:H,onBlur:T})})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),i=require("@material-ui/core"),a=require("prop-types"),l=require("classnames");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(a),o=r(l),s=function(e){var t=e.width,i=void 0===t?18:t,a=e.height,l=void 0===a?14:a,r=e.fill.replace("#","%23");return"<svg width='".concat(i,"' height='").concat(l,"' viewBox='0 0 18 14' fill='").concat(r,"' xmlns='http://www.w3.org/2000/svg'><path d='M6 11.1698L1.83 6.99984L0.410004 8.40984L6 13.9998L18 1.99984L16.59 0.589844L6 11.1698Z'/></svg>")},c=i.makeStyles((function(e){return{checked:{"&::before":{content:'url("data:image/svg+xml; utf8, '.concat(s({fill:e.palette.primary.main}),'")'),display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,lineHeight:"24px",marginLeft:8,marginRight:"-4px",paddingTop:3},"&.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(s({fill:e.palette.primary.text8}),'")')},"&.MuiChip-sizeSmall::before":{content:'url("data:image/svg+xml; utf8, '.concat(s({width:12,fill:e.palette.primary.main}),'")'),width:16,height:16},"&.MuiChip-sizeSmall.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(s({width:12,fill:e.palette.primary.text8}),'")')},"&.MuiChip-root.MuiChip-clickable":{"& .MuiChip-label, & .MuiChip-deleteIcon, & .MuiChip-icon":{color:"#FFFFFF"}},"& .MuiChip-label:first-child":{marginLeft:"-4px"}},basic:{"&:not([data-not-migrated-MuiChip])":{"&.MuiChip-sizeSmall":{height:12,"& .MuiChip-label":{fontSize:10}},border:"none",textTransform:"uppercase",backgroundColor:e.palette.primary.main,padding:"0 8px",height:16,"& .MuiChip-label":{fontSize:12,fontWeight:500,lineHeight:"12px",letterSpacing:"1px",color:e.palette.background.b1,padding:0},"&:hover":{backgroundColor:e.palette.primary.main,"& .MuiChip-label":{color:e.palette.background.b1}}}}}})),d=function(a){var l,r=a.checked,n=a.classes,s=void 0===n?{}:n,d=a["data-testid"],p=c(),u=o.default(((l={})[p.basic]="basic"===a.variant,l));return r?t.jsx(i.Chip,e.__assign({"data-testid":d},a,{className:u,classes:e.__assign(e.__assign({},s),{root:o.default(s.root,p.checked)})})):t.jsx(i.Chip,e.__assign({"data-testid":d},a,{className:u}))},p={checked:n.default.bool,"data-testid":n.default.string};d.propTypes=p,d.defaultProps={checked:!1,"data-testid":"Chip"},module.exports=d;
|
|
1
|
+
"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),i=require("@material-ui/core"),a=require("prop-types"),l=require("classnames");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(a),o=r(l),s=function(e){var t=e.width,i=void 0===t?18:t,a=e.height,l=void 0===a?14:a,r=e.fill.replace("#","%23");return"<svg width='".concat(i,"' height='").concat(l,"' viewBox='0 0 18 14' fill='").concat(r,"' xmlns='http://www.w3.org/2000/svg'><path d='M6 11.1698L1.83 6.99984L0.410004 8.40984L6 13.9998L18 1.99984L16.59 0.589844L6 11.1698Z'/></svg>")},c=i.makeStyles((function(e){return{checked:{"&::before":{content:'url("data:image/svg+xml; utf8, '.concat(s({fill:e.palette.primary.main}),'")'),display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,lineHeight:"24px",marginLeft:8,marginRight:"-4px",paddingTop:3},"&.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(s({fill:e.palette.primary.text8}),'")')},"&.MuiChip-sizeSmall::before":{content:'url("data:image/svg+xml; utf8, '.concat(s({width:12,fill:e.palette.primary.main}),'")'),width:16,height:16},"&.MuiChip-sizeSmall.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(s({width:12,fill:e.palette.primary.text8}),'")')},"&.MuiChip-root.MuiChip-clickable":{"& .MuiChip-label, & .MuiChip-deleteIcon, & .MuiChip-icon":{color:"#FFFFFF"}},"& .MuiChip-label:first-child":{marginLeft:"-4px"}},basic:{"&:not([data-not-migrated-MuiChip])":{"&.MuiChip-sizeSmall":{height:12,"& .MuiChip-label":{fontSize:10}},border:"none",textTransform:"uppercase",backgroundColor:e.palette.primary.main,padding:"0 8px",height:16,"& .MuiChip-label":{fontSize:12,fontWeight:500,lineHeight:"12px",letterSpacing:"1px",color:e.palette.background.b1,padding:0},"&:hover":{backgroundColor:e.palette.primary.main,"& .MuiChip-label":{color:e.palette.background.b1}}}}}})),d=function(a){var l,r=a.checked,n=a.classes,s=void 0===n?{}:n,d=a["data-testid"],p=c(),u=o.default(a.className,((l={})[p.basic]="basic"===a.variant,l));return r?t.jsx(i.Chip,e.__assign({"data-testid":d},a,{className:u,classes:e.__assign(e.__assign({},s),{root:o.default(s.root,p.checked)})})):t.jsx(i.Chip,e.__assign({"data-testid":d},a,{className:u}))},p={checked:n.default.bool,"data-testid":n.default.string};d.propTypes=p,d.defaultProps={checked:!1,"data-testid":"Chip"},module.exports=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),n=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),r=require("prop-types"),i=require("lodash"),s=require("@material-ui/core"),o=require("@material-ui/icons");require("@babel/runtime/helpers/objectWithoutProperties"),require("@material-ui/pickers"),require("@date-io/moment"),require("moment"),require("../../../../../config/theme/index.js");var a=require("react/jsx-runtime"),c=require("../../../../../hocs/withAssetEditorLockHOC.js"),l=require("../../../../ErrorBoundary/ErrorBoundary.js"),p=require("../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js"),u=require("../../../../Button/index.js"),d=require("../../../../Modal/Modal.js"),g=require("../../../../AssetEditorV2/index.js"),j=require("../../../../AppVersionsSelect/AppVersionsSelect.js"),m=require("../../../../DisabledSettingsMessage/DisabledSettingsMessage.js"),f=require("../../../../ConfirmationDialog.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),n=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),r=require("prop-types"),i=require("lodash"),s=require("@material-ui/core"),o=require("@material-ui/icons");require("@babel/runtime/helpers/objectWithoutProperties"),require("@material-ui/pickers"),require("@date-io/moment"),require("moment"),require("../../../../../config/theme/index.js");var a=require("react/jsx-runtime"),c=require("../../../../../hocs/withAssetEditorLockHOC.js"),l=require("../../../../ErrorBoundary/ErrorBoundary.js"),p=require("../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js"),u=require("../../../../Button/index.js"),d=require("../../../../Modal/Modal.js"),g=require("../../../../AssetEditorV2/index.js"),j=require("../../../../AppVersionsSelect/AppVersionsSelect.js"),m=require("../../../../DisabledSettingsMessage/DisabledSettingsMessage.js"),f=require("../../../../ConfirmationDialog.js"),v=require("../../../../../constants/devcenter.js");require("../../../../../constants/goals.js");var h=require("../../../../../constants/segment.js");require("../../../../../constants/alerts.js"),require("../../../../../constants/apps.js"),require("../../../../../constants/drillstring.js"),require("../../../../../constants/completion.js"),require("../../../../../constants/notifications.js"),require("../../../../../constants/feed.js"),require("../../../../../constants/bha.js"),require("../../../../../utils/env.js"),require("../../../../GradientManager/configuration/constants.js"),require("../../../../../utils/index.js");var q=require("../../../../AppIcon/AppIcon.js"),x=require("./RemoveAppButton.js"),A=require("./styles.js"),S=require("../../utils.js"),C=require("../../../../../utils/notificationToasts.js");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=y(e),E=y(n);function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){b.default(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var O="DC_appSettings",I=c(g);function w(e){var n,r,c,y,D=e.AppSettingsComponent,w=e.app,P=e.appData,R=e.appName,T=e.currentUser,k=e.isMultiRig,M=e.isSettingsDialogHidden,_=e.layoutEnvironment,V=e.onAppRemove,B=e.onCloneDashboard,H=e.onSettingsChange,G=e.openIntercom,L=e.rigId,U=e.segment,F=e.toggleAppSettingsDialog,Y=t.useState(!1),K=E.default(Y,2);K[0];var W=K[1],z=t.useState((function(){var e;return N(N({},i.cloneDeep(w.settings)),{},{package:w.settings.package||(null==w||null===(e=w.package)||void 0===e?void 0:e.version)})})),J=E.default(z,2),Q=J[0],X=J[1],Z=S.getIsSustainabilityApp(null==w||null===(n=w.app)||void 0===n?void 0:n.id),$=t.useState(!0),ee=E.default($,2),ne=ee[0],te=ee[1],re=t.useRef(null),ie=Boolean(null===(r=re.current)||void 0===r?void 0:r.clientHeight),se=A({isCompletionApp:U===h.SEGMENTS.COMPLETION,isSustainabilityApp:Z,hasCustomAppSettings:ie}),oe=w.id===v.DEV_CENTER_CLI_APP_ID,ae=function(e,n){return X((function(t){return N(N({},t),{},b.default({},e,n))}))},ce=function(e){return X((function(n){return N(N({},n),e)}))},le=_&&"asset"===_.type,pe=!(k||le&&U===h.SEGMENTS.COMPLETION),ue=le?I:g;t.useEffect((function(){i.debounce(W,200)(!0)}),[]);var de=a.jsx("div",{ref:re,children:D&&a.jsx(D,{app:w,appData:P,settings:Q,onSettingChange:ae,onSettingsChange:ce,layoutEnvironment:_,currentUser:T})}),ge=a.jsxs("div",{className:se.modalTitleContainer,children:[a.jsx(q.AppIcon,{className:se.appIcon,segment:null==w?void 0:w.segment,iconUrl:null==w||null===(c=w.app)||void 0===c||null===(y=c.icon)||void 0===y?void 0:y.url,height:48,width:48}),a.jsxs("div",{children:[a.jsx("div",{children:"".concat(R," Settings")}),a.jsxs("div",{"data-testid":"".concat(O,"_appstoreLink"),className:se.appStoreButton,onClick:function(){var e,n;return window.open((n=null==w||null===(e=w.app)||void 0===e?void 0:e.id,"/app-store/app/".concat(n)),"_top")},children:["Open in Appstore ",a.jsx(o.ArrowForward,{className:se.arrowIcon})]})]})]}),je=a.jsxs("div",{className:se.modalActions,children:[!M&&V&&a.jsx(x.default,{appName:R,onAppRemove:V}),a.jsxs("div",{className:se.mainActions,children:[a.jsx(u,{"data-testid":"".concat(O,"_cancel"),variation:"secondary",onClick:F,children:"Cancel"}),M&&a.jsx(u,{variation:"primary",onClick:function(){return B()},children:"Copy Dashboard"}),!M&&a.jsx(u,{"data-testid":"".concat(O,"_save"),className:se.saveButton,variation:"primary",onClick:function(){Q.package||oe?(H(Q),C.showSuccessNotification("Successfully saved"),F()):te(!1)},children:"Save"})]})]}),me=a.jsxs(a.Fragment,{children:[pe&&a.jsx(ue,{appKey:oe?null:w.app.app_key,appType:h.SEGMENT_TO_ASSET_TYPE[U],defaultValue:L,isHiddenMultipleAssetsToggle:!0,isHiddenTitle:!0,isNullable:le,label:"Asset",onSettingsChange:ce,settings:Q}),a.jsx(j.default,{className:se.appVersionSelect,appId:w.app.id,value:Q.package,onChange:function(e){return ae("package",e)}})]});return a.jsx(d,{open:!0,onClose:F,title:ge,contentContainerClassName:se.modalContainer,modalTitleClassName:se.modalTitle,closeIconClassName:se.closeIcon,contentClassName:se.modalContent,actions:je,children:a.jsxs(l,{ErrorView:p,openIntercom:G,children:[a.jsx(f,{open:!ne&&!Q.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return te(!0)}}),M&&a.jsx(m,{}),!M&&a.jsxs(a.Fragment,{children:[a.jsxs(s.Accordion,{defaultExpanded:!0,className:se.assetAccordion,children:[a.jsx(s.AccordionSummary,{classes:{content:se.summaryContent,expandIcon:se.expandIcon},expandIcon:a.jsx(o.ExpandMore,{}),children:"Asset"}),a.jsx(s.AccordionDetails,{classes:{root:se.accordionDetails},children:me})]}),a.jsxs(s.Accordion,{className:se.accordion,defaultExpanded:!0,children:[a.jsx(s.AccordionSummary,{classes:{content:se.summaryContent,expandIcon:se.expandIcon},expandIcon:a.jsx(o.ExpandMore,{}),children:"App Settings"}),a.jsx(s.AccordionDetails,{classes:{root:se.accordionDetails},children:de})]})]})]})})}w.propTypes={AppSettingsComponent:r.node,app:r.shape({}).isRequired,appData:r.shape({}).isRequired,appName:r.string.isRequired,currentUser:r.shape({}).isRequired,isMultiRig:r.bool.isRequired,isSettingsDialogHidden:r.bool,layoutEnvironment:r.shape({}).isRequired,onAppRemove:r.func,onCloneDashboard:r.func,onSettingsChange:r.func.isRequired,segment:r.string.isRequired,toggleAppSettingsDialog:r.func.isRequired},w.defaultProps={AppSettingsComponent:null,isSettingsDialogHidden:!1,onAppRemove:void 0,onCloneDashboard:i.noop},exports.PAGE_NAME=O,exports.default=w;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../ext-esm/tslib/tslib.es6.js'),s=require("react/jsx-runtime"),a=require("classnames"),r=require("@material-ui/core"),t=require("@material-ui/icons"),i=require("../styles.js"),n=require("../constants.js"),l=require("./DQAlertTooltip.js"),c=require("./DQStatusIcon.js"),o=require("../utils.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=u(a);exports.DQAccordionDetailsContent=function(a){var u=a.assets,_=i.useDQUnvalidatedContentStyles({}),j=u.reduce((function(s,a){return s[a.alert.category]||(s[a.alert.category]=[]),s[a.alert.category]=e.__spreadArray(e.__spreadArray([],s[a.alert.category],!0),[a],!1),s}),{});return s.jsx("div",{children:Object.keys(j).map((function(a){var i=o.getCategoryIconType(j[a]);return s.jsxs(r.Accordion,{children:[s.jsx(r.AccordionSummary,e.__assign({className:d.default("left",_.categoryName),expandIcon:s.jsx(t.ExpandMore,{})},{children:s.jsxs(r.Box,e.__assign({display:"flex",alignItems:"center",justifyContent:"space-between",gridColumnGap:4,width:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../ext-esm/tslib/tslib.es6.js'),s=require("react/jsx-runtime"),a=require("classnames"),r=require("@material-ui/core"),t=require("@material-ui/icons"),i=require("../styles.js"),n=require("../constants.js"),l=require("./DQAlertTooltip.js"),c=require("./DQStatusIcon.js"),o=require("../utils.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=u(a);exports.DQAccordionDetailsContent=function(a){var u=a.assets,_=i.useDQUnvalidatedContentStyles({}),j=u.reduce((function(s,a){return s[a.alert.category]||(s[a.alert.category]=[]),s[a.alert.category]=e.__spreadArray(e.__spreadArray([],s[a.alert.category],!0),[a],!1),s}),{});return s.jsx("div",{children:Object.keys(j).map((function(a){var i=o.getCategoryIconType(j[a]);return s.jsxs(r.Accordion,{children:[s.jsx(r.AccordionSummary,e.__assign({className:d.default("left",_.categoryName),expandIcon:s.jsx(t.ExpandMore,{})},{children:s.jsxs(r.Box,e.__assign({display:"flex",alignItems:"center",justifyContent:"space-between",gridColumnGap:4,width:200},{children:[s.jsx("span",{children:"".concat(a," (").concat(j[a].length,")")}),s.jsx(c.DQStatusIcon,{color:i,iconType:i})]}))})),s.jsx(r.AccordionDetails,{children:s.jsx("div",e.__assign({className:_.assetTable},{children:j[a].map((function(a){var r=a.id,t=a.name,i=a.issuesNum,c=a.missingNum,o=a.isResolved,u=a.alert,j=a.linkToDQPage,m=function(e){return{alert:u,alertsNum:e===n.ALERT_STATES.issue?i:c,alertState:e===n.ALERT_STATES.issue?n.ALERT_STATES.issue:n.ALERT_STATES.missing,isIssueData:i>0,linkToDQPage:j}},g=m(n.ALERT_STATES.issue),T=m(n.ALERT_STATES.missing);return s.jsxs("div",e.__assign({className:_.assetWrapper},{children:[s.jsx("div",e.__assign({className:d.default(_.assetName,_.assetCell)},{children:t})),o?s.jsx("div",e.__assign({className:_.assetCell},{children:s.jsx(l.DQAlertTooltip,e.__assign({},g))})):s.jsxs(s.Fragment,{children:[i>0&&s.jsx("div",e.__assign({className:_.assetCell},{children:s.jsx(l.DQAlertTooltip,e.__assign({},g))})),c>0&&s.jsx("div",e.__assign({className:_.assetCell},{children:s.jsx(l.DQAlertTooltip,e.__assign({},T))}))]})]}),r)}))}))})]},a)}))})};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default AxisOverlay;
|
|
2
|
-
declare function AxisOverlay({ left, width, top, bottom, right, labelOffset, height, coll, onCustomizeScaleClick, ...otherProps }: {
|
|
2
|
+
declare function AxisOverlay({ left, width, top, bottom, right, labelOffset, offset, height, coll, onCustomizeScaleClick, ...otherProps }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
left: any;
|
|
5
5
|
width: any;
|
|
@@ -7,6 +7,7 @@ declare function AxisOverlay({ left, width, top, bottom, right, labelOffset, hei
|
|
|
7
7
|
bottom: any;
|
|
8
8
|
right: any;
|
|
9
9
|
labelOffset: any;
|
|
10
|
+
offset: any;
|
|
10
11
|
height: any;
|
|
11
12
|
coll: any;
|
|
12
13
|
onCustomizeScaleClick: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AxisOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/AxisOverlay.js"],"names":[],"mappings":";AAuCA
|
|
1
|
+
{"version":3,"file":"AxisOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/AxisOverlay.js"],"names":[],"mappings":";AAuCA;;;;;;;;;;;;gBA6HC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/
|
|
1
|
+
import t from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as o,useState as i,useRef as r,useEffect as l}from"react";import{makeStyles as n,Tooltip as a}from"@material-ui/core";import c from"@material-ui/icons/Straighten";import s from"../ChartWrapperContext.js";import{jsxs as u,jsx as f}from"react/jsx-runtime";var p=["left","width","top","bottom","right","labelOffset","offset","height","coll","onCustomizeScaleClick"],h=n((function(t){return{axis:function(t){return{position:"absolute",cursor:"pointer",width:t.width,left:t.left,bottom:t.bottom,height:t.height}},tooltip:{display:"flex",alignItems:"center",justifyContent:"space-between",minWidth:125,backgroundColor:t.palette.background.b9,color:t.palette.text.primary,fontSize:"12px",lineHeight:"16px",letterSpacing:"0.4px",borderRadius:"4px",padding:"4px",zIndex:1e4},tooltipIcon:{fontSize:16,color:t.palette.primary.text6}}})),m=function(n){var m,d,x=n.left,g=n.width,b=n.top,y=n.bottom,v=n.right,C=n.labelOffset,w=n.offset,B=n.height,E=n.coll,S=n.onCustomizeScaleClick,z=e(n,p),O=o(s).chart,W=i({}),k=t(W,2),j=k[0],I=k[1],M=r(),A=(null==O?void 0:O.inverted)?"yAxis"===E:"xAxis"===E,N=14+C,P=14+C,R=((null==z||null===(m=z.userOptions)||void 0===m?void 0:m.title)||{}).text,H=A?x-5:x-P,D=A?y-P:y-5,F=h({top:b,right:v,width:A?g+P:P,height:A?P:B+P,left:A?H:H+w,bottom:A?D-w:D}),G=null===(d=M.current)||void 0===d?void 0:d.getBoundingClientRect(),L=u("div",{className:F.tooltip,children:[f(c,{className:F.tooltipIcon})," Customize Scale"]}),T=function(){O[E].find((function(t){return t.userOptions.title.text===R})).update({lineColor:"#03BCD4",lineWidth:2,labels:{style:{color:"#ffffff"}},title:{style:{color:"#ffffff"}}})},X=function(){O[E].find((function(t){return t.userOptions.title.text===R})).update({lineColor:"#3B3B3B",lineWidth:1,labels:{style:{color:"#9E9E9E"}},title:{style:{color:"#9E9E9E"}}})};return l((function(){var t=O.axisGroup;t&&(t.element.style.cursor="pointer")}),[O]),f(a,{title:L,placement:A?"top":"right",onMouseMove:function(t){var e=t.pageX,o=t.pageY;I({x:e,y:o})},PopperProps:{anchorEl:{clientHeight:0,clientWidth:0,getBoundingClientRect:function(){return{top:A?G.y:j.y,left:A?j.x:G.x-N,right:A?j.x:G.x+N,bottom:A?G.y:j.y,width:0,height:0}}}},children:f("div",{className:F.axis,ref:M,onClick:function(){return S(z)},onMouseOver:T,onMouseLeave:X,onFocus:T,onBlur:X})})};export{m as default};
|
package/components/Chip/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{makeStyles as i,Chip as a}from"@material-ui/core";import r from"prop-types";import l from"classnames";var o=function(t){var e=t.width,i=void 0===e?18:e,a=t.height,r=void 0===a?14:a,l=t.fill.replace("#","%23");return"<svg width='".concat(i,"' height='").concat(r,"' viewBox='0 0 18 14' fill='").concat(l,"' xmlns='http://www.w3.org/2000/svg'><path d='M6 11.1698L1.83 6.99984L0.410004 8.40984L6 13.9998L18 1.99984L16.59 0.589844L6 11.1698Z'/></svg>")},n=i((function(t){return{checked:{"&::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({fill:t.palette.primary.main}),'")'),display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,lineHeight:"24px",marginLeft:8,marginRight:"-4px",paddingTop:3},"&.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({fill:t.palette.primary.text8}),'")')},"&.MuiChip-sizeSmall::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({width:12,fill:t.palette.primary.main}),'")'),width:16,height:16},"&.MuiChip-sizeSmall.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({width:12,fill:t.palette.primary.text8}),'")')},"&.MuiChip-root.MuiChip-clickable":{"& .MuiChip-label, & .MuiChip-deleteIcon, & .MuiChip-icon":{color:"#FFFFFF"}},"& .MuiChip-label:first-child":{marginLeft:"-4px"}},basic:{"&:not([data-not-migrated-MuiChip])":{"&.MuiChip-sizeSmall":{height:12,"& .MuiChip-label":{fontSize:10}},border:"none",textTransform:"uppercase",backgroundColor:t.palette.primary.main,padding:"0 8px",height:16,"& .MuiChip-label":{fontSize:12,fontWeight:500,lineHeight:"12px",letterSpacing:"1px",color:t.palette.background.b1,padding:0},"&:hover":{backgroundColor:t.palette.primary.main,"& .MuiChip-label":{color:t.palette.background.b1}}}}}})),
|
|
1
|
+
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{makeStyles as i,Chip as a}from"@material-ui/core";import r from"prop-types";import l from"classnames";var o=function(t){var e=t.width,i=void 0===e?18:e,a=t.height,r=void 0===a?14:a,l=t.fill.replace("#","%23");return"<svg width='".concat(i,"' height='").concat(r,"' viewBox='0 0 18 14' fill='").concat(l,"' xmlns='http://www.w3.org/2000/svg'><path d='M6 11.1698L1.83 6.99984L0.410004 8.40984L6 13.9998L18 1.99984L16.59 0.589844L6 11.1698Z'/></svg>")},n=i((function(t){return{checked:{"&::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({fill:t.palette.primary.main}),'")'),display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,lineHeight:"24px",marginLeft:8,marginRight:"-4px",paddingTop:3},"&.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({fill:t.palette.primary.text8}),'")')},"&.MuiChip-sizeSmall::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({width:12,fill:t.palette.primary.main}),'")'),width:16,height:16},"&.MuiChip-sizeSmall.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({width:12,fill:t.palette.primary.text8}),'")')},"&.MuiChip-root.MuiChip-clickable":{"& .MuiChip-label, & .MuiChip-deleteIcon, & .MuiChip-icon":{color:"#FFFFFF"}},"& .MuiChip-label:first-child":{marginLeft:"-4px"}},basic:{"&:not([data-not-migrated-MuiChip])":{"&.MuiChip-sizeSmall":{height:12,"& .MuiChip-label":{fontSize:10}},border:"none",textTransform:"uppercase",backgroundColor:t.palette.primary.main,padding:"0 8px",height:16,"& .MuiChip-label":{fontSize:12,fontWeight:500,lineHeight:"12px",letterSpacing:"1px",color:t.palette.background.b1,padding:0},"&:hover":{backgroundColor:t.palette.primary.main,"& .MuiChip-label":{color:t.palette.background.b1}}}}}})),c=function(i){var r,o=i.checked,c=i.classes,p=void 0===c?{}:c,s=i["data-testid"],d=n(),h=l(i.className,((r={})[d.basic]="basic"===i.variant,r));return e(a,t({"data-testid":s},i,o?{className:h,classes:t(t({},p),{root:l(p.root,d.checked)})}:{className:h}))},p={checked:r.bool,"data-testid":r.string};c.propTypes=p,c.defaultProps={checked:!1,"data-testid":"Chip"};export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as n,useRef as o,useEffect as i}from"react";import{node as r,shape as s,string as a,bool as p,func as l}from"prop-types";import{cloneDeep as c,debounce as d,noop as m}from"lodash";import{Accordion as u,AccordionSummary as g,AccordionDetails as f}from"@material-ui/core";import{ArrowForward as h,ExpandMore as v}from"@material-ui/icons";import"@babel/runtime/helpers/objectWithoutProperties";import"@material-ui/pickers";import"@date-io/moment";import"moment";import"../../../../../config/theme/index.js";import{jsx as j,jsxs as C,Fragment as y}from"react/jsx-runtime";import b from"../../../../../hocs/withAssetEditorLockHOC.js";import A from"../../../../ErrorBoundary/ErrorBoundary.js";import S from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import D from"../../../../Button/index.js";import O from"../../../../Modal/Modal.js";import N from"../../../../AssetEditorV2/index.js";import I from"../../../../AppVersionsSelect/AppVersionsSelect.js";import k from"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import E from"../../../../ConfirmationDialog.js";import{DEV_CENTER_CLI_APP_ID as R}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENTS as w,SEGMENT_TO_ASSET_TYPE as x}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"../../../../../utils/env.js";import"../../../../GradientManager/configuration/constants.js";import"../../../../../utils/index.js";import{AppIcon as P}from"../../../../AppIcon/AppIcon.js";import T from"./RemoveAppButton.js";import M from"./styles.js";import{getIsSustainabilityApp as q}from"../../utils.js";import{showSuccessNotification as V}from"../../../../../utils/notificationToasts.js";function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function H(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?B(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):B(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var _="DC_appSettings",L=b(N);function U(r){var s,a,p,l=r.AppSettingsComponent,
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as n,useRef as o,useEffect as i}from"react";import{node as r,shape as s,string as a,bool as p,func as l}from"prop-types";import{cloneDeep as c,debounce as d,noop as m}from"lodash";import{Accordion as u,AccordionSummary as g,AccordionDetails as f}from"@material-ui/core";import{ArrowForward as h,ExpandMore as v}from"@material-ui/icons";import"@babel/runtime/helpers/objectWithoutProperties";import"@material-ui/pickers";import"@date-io/moment";import"moment";import"../../../../../config/theme/index.js";import{jsx as j,jsxs as C,Fragment as y}from"react/jsx-runtime";import b from"../../../../../hocs/withAssetEditorLockHOC.js";import A from"../../../../ErrorBoundary/ErrorBoundary.js";import S from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import D from"../../../../Button/index.js";import O from"../../../../Modal/Modal.js";import N from"../../../../AssetEditorV2/index.js";import I from"../../../../AppVersionsSelect/AppVersionsSelect.js";import k from"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import E from"../../../../ConfirmationDialog.js";import{DEV_CENTER_CLI_APP_ID as R}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENTS as w,SEGMENT_TO_ASSET_TYPE as x}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"../../../../../utils/env.js";import"../../../../GradientManager/configuration/constants.js";import"../../../../../utils/index.js";import{AppIcon as P}from"../../../../AppIcon/AppIcon.js";import T from"./RemoveAppButton.js";import M from"./styles.js";import{getIsSustainabilityApp as q}from"../../utils.js";import{showSuccessNotification as V}from"../../../../../utils/notificationToasts.js";function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function H(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?B(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):B(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var _="DC_appSettings",L=b(N);function U(r){var s,a,p,l,m=r.AppSettingsComponent,b=r.app,B=r.appData,U=r.appName,G=r.currentUser,K=r.isMultiRig,W=r.isSettingsDialogHidden,Y=r.layoutEnvironment,z=r.onAppRemove,F=r.onCloneDashboard,J=r.onSettingsChange,Q=r.openIntercom,X=r.rigId,Z=r.segment,$=r.toggleAppSettingsDialog,ee=n(!1),te=t(ee,2);te[0];var ne=te[1],oe=n((function(){var e;return H(H({},c(b.settings)),{},{package:b.settings.package||(null==b||null===(e=b.package)||void 0===e?void 0:e.version)})})),ie=t(oe,2),re=ie[0],se=ie[1],ae=q(null==b||null===(s=b.app)||void 0===s?void 0:s.id),pe=n(!0),le=t(pe,2),ce=le[0],de=le[1],me=o(null),ue=Boolean(null===(a=me.current)||void 0===a?void 0:a.clientHeight),ge=M({isCompletionApp:Z===w.COMPLETION,isSustainabilityApp:ae,hasCustomAppSettings:ue}),fe=b.id===R,he=function(t,n){return se((function(o){return H(H({},o),{},e({},t,n))}))},ve=function(e){return se((function(t){return H(H({},t),e)}))},je=Y&&"asset"===Y.type,Ce=!(K||je&&Z===w.COMPLETION),ye=je?L:N;i((function(){d(ne,200)(!0)}),[]);var be=j("div",{ref:me,children:m&&j(m,{app:b,appData:B,settings:re,onSettingChange:he,onSettingsChange:ve,layoutEnvironment:Y,currentUser:G})}),Ae=C("div",{className:ge.modalTitleContainer,children:[j(P,{className:ge.appIcon,segment:null==b?void 0:b.segment,iconUrl:null==b||null===(p=b.app)||void 0===p||null===(l=p.icon)||void 0===l?void 0:l.url,height:48,width:48}),C("div",{children:[j("div",{children:"".concat(U," Settings")}),C("div",{"data-testid":"".concat(_,"_appstoreLink"),className:ge.appStoreButton,onClick:function(){var e,t;return window.open((t=null==b||null===(e=b.app)||void 0===e?void 0:e.id,"/app-store/app/".concat(t)),"_top")},children:["Open in Appstore ",j(h,{className:ge.arrowIcon})]})]})]}),Se=C("div",{className:ge.modalActions,children:[!W&&z&&j(T,{appName:U,onAppRemove:z}),C("div",{className:ge.mainActions,children:[j(D,{"data-testid":"".concat(_,"_cancel"),variation:"secondary",onClick:$,children:"Cancel"}),W&&j(D,{variation:"primary",onClick:function(){return F()},children:"Copy Dashboard"}),!W&&j(D,{"data-testid":"".concat(_,"_save"),className:ge.saveButton,variation:"primary",onClick:function(){re.package||fe?(J(re),V("Successfully saved"),$()):de(!1)},children:"Save"})]})]}),De=C(y,{children:[Ce&&j(ye,{appKey:fe?null:b.app.app_key,appType:x[Z],defaultValue:X,isHiddenMultipleAssetsToggle:!0,isHiddenTitle:!0,isNullable:je,label:"Asset",onSettingsChange:ve,settings:re}),j(I,{className:ge.appVersionSelect,appId:b.app.id,value:re.package,onChange:function(e){return he("package",e)}})]});return j(O,{open:!0,onClose:$,title:Ae,contentContainerClassName:ge.modalContainer,modalTitleClassName:ge.modalTitle,closeIconClassName:ge.closeIcon,contentClassName:ge.modalContent,actions:Se,children:C(A,{ErrorView:S,openIntercom:Q,children:[j(E,{open:!ce&&!re.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return de(!0)}}),W&&j(k,{}),!W&&C(y,{children:[C(u,{defaultExpanded:!0,className:ge.assetAccordion,children:[j(g,{classes:{content:ge.summaryContent,expandIcon:ge.expandIcon},expandIcon:j(v,{}),children:"Asset"}),j(f,{classes:{root:ge.accordionDetails},children:De})]}),C(u,{className:ge.accordion,defaultExpanded:!0,children:[j(g,{classes:{content:ge.summaryContent,expandIcon:ge.expandIcon},expandIcon:j(v,{}),children:"App Settings"}),j(f,{classes:{root:ge.accordionDetails},children:be})]})]})]})})}U.propTypes={AppSettingsComponent:r,app:s({}).isRequired,appData:s({}).isRequired,appName:a.isRequired,currentUser:s({}).isRequired,isMultiRig:p.isRequired,isSettingsDialogHidden:p,layoutEnvironment:s({}).isRequired,onAppRemove:l,onCloneDashboard:l,onSettingsChange:l.isRequired,segment:a.isRequired,toggleAppSettingsDialog:l.isRequired},U.defaultProps={AppSettingsComponent:null,isSettingsDialogHidden:!1,onAppRemove:void 0,onCloneDashboard:m};export{_ as PAGE_NAME,U as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__spreadArray as e,__assign as s}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r,jsxs as t,Fragment as a}from"react/jsx-runtime";import i from"classnames";import{Accordion as l,AccordionSummary as n,Box as o,AccordionDetails as c}from"@material-ui/core";import{ExpandMore as m}from"@material-ui/icons";import{useDQUnvalidatedContentStyles as d}from"../styles.js";import{ALERT_STATES as u}from"../constants.js";import{DQAlertTooltip as p}from"./DQAlertTooltip.js";import{DQStatusIcon as f}from"./DQStatusIcon.js";import{getCategoryIconType as h}from"../utils.js";var g=function(g){var v=g.assets,N=d({}),y=v.reduce((function(s,r){return s[r.alert.category]||(s[r.alert.category]=[]),s[r.alert.category]=e(e([],s[r.alert.category],!0),[r],!1),s}),{});return r("div",{children:Object.keys(y).map((function(e){var d=h(y[e]);return t(l,{children:[r(n,s({className:i("left",N.categoryName),expandIcon:r(m,{})},{children:t(o,s({display:"flex",alignItems:"center",justifyContent:"space-between",gridColumnGap:4,width:
|
|
1
|
+
import{__spreadArray as e,__assign as s}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r,jsxs as t,Fragment as a}from"react/jsx-runtime";import i from"classnames";import{Accordion as l,AccordionSummary as n,Box as o,AccordionDetails as c}from"@material-ui/core";import{ExpandMore as m}from"@material-ui/icons";import{useDQUnvalidatedContentStyles as d}from"../styles.js";import{ALERT_STATES as u}from"../constants.js";import{DQAlertTooltip as p}from"./DQAlertTooltip.js";import{DQStatusIcon as f}from"./DQStatusIcon.js";import{getCategoryIconType as h}from"../utils.js";var g=function(g){var v=g.assets,N=d({}),y=v.reduce((function(s,r){return s[r.alert.category]||(s[r.alert.category]=[]),s[r.alert.category]=e(e([],s[r.alert.category],!0),[r],!1),s}),{});return r("div",{children:Object.keys(y).map((function(e){var d=h(y[e]);return t(l,{children:[r(n,s({className:i("left",N.categoryName),expandIcon:r(m,{})},{children:t(o,s({display:"flex",alignItems:"center",justifyContent:"space-between",gridColumnGap:4,width:200},{children:[r("span",{children:"".concat(e," (").concat(y[e].length,")")}),r(f,{color:d,iconType:d})]}))})),r(c,{children:r("div",s({className:N.assetTable},{children:y[e].map((function(e){var l=e.id,n=e.name,o=e.issuesNum,c=e.missingNum,m=e.isResolved,d=e.alert,f=e.linkToDQPage,h=function(e){return{alert:d,alertsNum:e===u.issue?o:c,alertState:e===u.issue?u.issue:u.missing,isIssueData:o>0,linkToDQPage:f}},g=h(u.issue),v=h(u.missing);return t("div",s({className:N.assetWrapper},{children:[r("div",s({className:i(N.assetName,N.assetCell)},{children:n})),m?r("div",s({className:N.assetCell},{children:r(p,s({},g))})):t(a,{children:[o>0&&r("div",s({className:N.assetCell},{children:r(p,s({},g))})),c>0&&r("div",s({className:N.assetCell},{children:r(p,s({},v))}))]})]}),l)}))}))})]},e)}))})};export{g as DQAccordionDetailsContent};
|