@corva/ui 0.56.0-14 → 0.56.0-15

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.
@@ -1 +1 @@
1
- "use strict";var e=require('./../../../ext-esm/tslib/tslib.es6.js'),o=require("react/jsx-runtime"),t=require("react"),a=require("prop-types"),n=require("classnames"),i=require("@material-ui/core"),l=require("@material-ui/icons"),r=require("../../../utils/mobileDetect.js"),s=require("../../IconButton/index.js"),d=require("../../Modal/Modal.js"),c=require("../../Button/index.js"),p=require("../../../config/theme/palette.mjs.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=u(a),m=u(n),h=function(e){return"filters"===e.modalType?p.background.b5:p.background.b9},x=i.makeStyles((function(e){return{popoverPaper:{marginTop:function(e){return e.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:e.palette.background.b9,maxHeight:function(e){var o=e.maxHeight;return o?o-24:"calc(100% - 24px)"},"&.scrollable":{height:function(e){return e.maxHeight||"100%"}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(e.palette.background.b9,", ").concat(e.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},shadow:{position:"absolute",bottom:0,width:"100%",height:16,background:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9," 100%)")},modalRoot:{"& > div:first-child":{backgroundColor:"transparent !important"}},modalContentContainer:{height:r.isNativeDetected?"calc(100% - 16px)":"calc(100% - 126px)",maxHeight:r.isNativeDetected?"calc(100% - 16px)":"calc(100% - 126px)",maxWidth:"calc(100% - 16px)",width:"calc(100% - 16px)",marginTop:r.isNativeDetected?0:118,backgroundColor:h},modalTitle:{padding:"12px 16px",backgroundColor:h,boxShadow:function(e){var o=e.modalType;return"0px 8px 10px ".concat(h({modalType:o})," !important")}},modalContent:{padding:16,flexGrow:1},modalActions:{display:"flex",justifyContent:"flex-end",padding:"8px 16px",zIndex:1,backgroundColor:h,boxShadow:function(e){var o=e.modalType;return"0px -8px 10px ".concat(h({modalType:o}))}}}}));function f(a){var n,p=a.Trigger,u=a.children,g=a.defaultScrollable,h=a.header,f=a.iconSettingsProps,b=a.maxHeight,v=a.modalActions,C=a.modalProps,T=a.modalType,j=a.onClose,_=e.__rest(a,["Trigger","children","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","modalType","onClose"]),y=t.useState(null),S=y[0],k=y[1],N=t.useState(!0),w=N[0],P=N[1],H=x({maxHeight:b,isScrollable:w,isNativeDetected:r.isNativeDetected,modalType:T}),q=i.useTheme(),z=r.isNativeDetected||window.top.document.body.clientWidth<q.breakpoints.values.md,A=function(){k(null),j()},D=Boolean(S),I=function(e){return k(e.currentTarget)},B=v||o.jsx(c,e.__assign({variation:"secondary",onClick:A},{children:"CLOSE"}));return o.jsxs(o.Fragment,{children:[p?o.jsx(p,{onClick:I}):o.jsx(s,e.__assign({onClick:I,isActive:D},f,{children:o.jsx(l.Settings,{})})),!z&&o.jsxs(i.Popover,e.__assign({open:D,anchorEl:S,onClose:A,anchorOrigin:{vertical:w?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},_,{classes:e.__assign(e.__assign({},null==_?void 0:_.classes),{paper:m.default(H.popoverPaper,w&&"scrollable",null===(n=null==_?void 0:_.classes)||void 0===n?void 0:n.paper)})},{children:[o.jsxs("div",e.__assign({className:m.default(H.popoverHeader,w&&"scrollable")},{children:[o.jsx("div",e.__assign({className:H.headerTitle},{children:h})),o.jsx(s,e.__assign({tooltipProps:{title:"Close"},onClick:A},{children:o.jsx(l.Close,{})}))]})),o.jsx("div",e.__assign({className:m.default(H.popoverContentContainer,w&&"scrollable"),ref:function(e){e&&e.scrollHeight<=e.clientHeight&&!g&&P(!1)}},{children:o.jsx("div",e.__assign({className:H.popoverContent},{children:u}))})),o.jsx("div",{className:H.shadow})]})),z&&o.jsx(d,e.__assign({actions:B,actionsClassName:H.modalActions,contentClassName:H.modalContent,contentContainerClassName:H.modalContentContainer,isMobile:!1,isNative:!1,modalTitleClassName:H.modalTitle,onClose:A,open:D,rootClassName:H.modalRoot,stickyFooter:!0,title:h},C,{children:u}))]})}var b={Trigger:g.default.element,iconSettingsProps:g.default.shape({iconSize:g.default.string,tooltipProps:g.default.shape({title:g.default.string})}),defaultScrollable:g.default.bool,maxHeight:g.default.number,header:g.default.string,modalActions:g.default.node,modalProps:g.default.any,modalType:g.default.string,onClose:g.default.func};f.propTypes=b,f.defaultProps={defaultScrollable:!1,header:"Settings",iconSettingsProps:{iconSize:"small"},maxHeight:null,modalActions:null,modalProps:{},modalType:"",onClose:function(){}},module.exports=f;
1
+ "use strict";var e=require('./../../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),o=require("react"),a=require("prop-types"),n=require("classnames"),i=require("@material-ui/core"),l=require("@material-ui/icons"),r=require("../../../utils/mobileDetect.js"),s=require("../../IconButton/index.js"),d=require("../../Modal/Modal.js"),c=require("../../Button/index.js"),p=require("../../../config/theme/palette.mjs.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=u(a),m=u(n),h=function(e){return"filters"===e.modalType?p.background.b5:p.background.b9},x=i.makeStyles((function(e){return{popoverPaper:{marginTop:function(e){return e.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:e.palette.background.b9,maxHeight:function(e){var t=e.maxHeight;return t?t-24:"calc(100% - 24px)"},"&.scrollable":{height:function(e){return e.maxHeight||"100%"}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(e.palette.background.b9,", ").concat(e.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},shadow:{position:"absolute",bottom:0,width:"100%",height:16,background:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9," 100%)")},modalRoot:{"& > div:first-child":{backgroundColor:"transparent !important"}},modalContentContainer:{height:r.isNativeDetected?"calc(100% - 16px)":"calc(100% - 126px)",maxHeight:r.isNativeDetected?"calc(100% - 16px)":"calc(100% - 126px)",maxWidth:"calc(100% - 16px)",width:"calc(100% - 16px)",marginTop:r.isNativeDetected?0:118,backgroundColor:h},modalTitle:{padding:"12px 16px",backgroundColor:h,boxShadow:function(e){var t=e.modalType;return"0px 8px 10px ".concat(h({modalType:t})," !important")}},modalContent:{padding:16,flexGrow:1},modalActions:{display:"flex",justifyContent:"flex-end",padding:"8px 16px",zIndex:1,backgroundColor:h,boxShadow:function(e){var t=e.modalType;return"0px -8px 10px ".concat(h({modalType:t}))}}}}));function f(a){var n,p=a.Trigger,u=a.children,g=a.defaultScrollable,h=a.header,f=a.iconSettingsProps,b=a.maxHeight,v=a.modalActions,C=a.modalProps,T=a.modalType,j=a.onClose,_=e.__rest(a,["Trigger","children","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","modalType","onClose"]),y=o.useState(null),S=y[0],k=y[1],N=o.useState(!0),w=N[0],P=N[1],H=x({maxHeight:b,isScrollable:w,isNativeDetected:r.isNativeDetected,modalType:T}),q=i.useTheme(),z=r.isNativeDetected||window.top.document.body.clientWidth<q.breakpoints.values.md,A=function(){k(null),j()},D=Boolean(S),I=function(e){return k(e.currentTarget)},B=v||t.jsx(c,e.__assign({variation:"secondary",onClick:A},{children:"CLOSE"}));return t.jsxs(t.Fragment,{children:[p?t.jsx(p,{onClick:I}):t.jsx(s,e.__assign({isActive:D,onClick:I,size:"small",tooltipProps:{title:"Settings"},variant:"contained"},f,{children:t.jsx(l.Settings,{})})),!z&&t.jsxs(i.Popover,e.__assign({open:D,anchorEl:S,onClose:A,anchorOrigin:{vertical:w?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},_,{classes:e.__assign(e.__assign({},null==_?void 0:_.classes),{paper:m.default(H.popoverPaper,w&&"scrollable",null===(n=null==_?void 0:_.classes)||void 0===n?void 0:n.paper)})},{children:[t.jsxs("div",e.__assign({className:m.default(H.popoverHeader,w&&"scrollable")},{children:[t.jsx("div",e.__assign({className:H.headerTitle},{children:h})),t.jsx(s,e.__assign({tooltipProps:{title:"Close"},onClick:A},{children:t.jsx(l.Close,{})}))]})),t.jsx("div",e.__assign({className:m.default(H.popoverContentContainer,w&&"scrollable"),ref:function(e){e&&e.scrollHeight<=e.clientHeight&&!g&&P(!1)}},{children:t.jsx("div",e.__assign({className:H.popoverContent},{children:u}))})),t.jsx("div",{className:H.shadow})]})),z&&t.jsx(d,e.__assign({actions:B,actionsClassName:H.modalActions,contentClassName:H.modalContent,contentContainerClassName:H.modalContentContainer,isMobile:!1,isNative:!1,modalTitleClassName:H.modalTitle,onClose:A,open:D,rootClassName:H.modalRoot,stickyFooter:!0,title:h},C,{children:u}))]})}var b={Trigger:g.default.element,iconSettingsProps:g.default.shape({iconSize:g.default.string,tooltipProps:g.default.shape({title:g.default.string})}),defaultScrollable:g.default.bool,maxHeight:g.default.number,header:g.default.string,modalActions:g.default.node,modalProps:g.default.any,modalType:g.default.string,onClose:g.default.func};f.propTypes=b,f.defaultProps={defaultScrollable:!1,header:"Settings",iconSettingsProps:{},maxHeight:null,modalActions:null,modalProps:{},modalType:"",onClose:function(){}},module.exports=f;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../ext-esm/tslib/tslib.es6.js'),i=require("react/jsx-runtime"),t=require("@material-ui/core"),s=require("../../Button/index.js"),n=t.makeStyles((function(e){return{container:{display:"flex",flexDirection:"column",padding:12},title:{fontWeight:500,fontSize:"16px",lineHeight:"19px",marginBottom:4},subtitle:{color:e.palette.primary.text7,fontSize:"12px",lineHeight:"14px",marginBottom:4},button:{alignSelf:"end"}}}));exports.DQSuccessContent=function(r){var a=r.onClick,o=n();return i.jsxs("div",e.__assign({className:o.container},{children:[i.jsx(t.Typography,e.__assign({className:o.title},{children:"No Data Quality Issues"})),i.jsx(t.Typography,e.__assign({className:o.subtitle},{children:"If you have found any issues, inform us."})),i.jsx(s,e.__assign({color:"primary",className:o.button,onClick:a,variation:"secondary"},{children:"report dq issue"}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../ext-esm/tslib/tslib.es6.js'),i=require("react/jsx-runtime"),t=require("@material-ui/core"),s=require("../../Button/index.js"),n=t.makeStyles((function(e){return{container:{display:"flex",flexDirection:"column",padding:12},title:{fontWeight:500,fontSize:"16px",lineHeight:"19px",marginBottom:4},subtitle:{color:e.palette.primary.text7,fontSize:"12px",lineHeight:"14px",marginBottom:4},button:{alignSelf:"end",marginTop:8}}}));exports.DQSuccessContent=function(r){var a=r.onClick,o=n();return i.jsxs("div",e.__assign({className:o.container},{children:[i.jsx(t.Typography,e.__assign({className:o.title},{children:"No Data Quality Issues"})),i.jsx(t.Typography,e.__assign({className:o.subtitle},{children:"If you have found any issues, inform us."})),i.jsx(s,e.__assign({color:"primary",className:o.button,onClick:a,variation:"secondary"},{children:"report dq issue"}))]}))};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),i=require("react"),t=require("@material-ui/core"),a=require("../../Modal/Modal.js"),n=require("../../Button/index.js"),s=t.makeStyles((function(e){return{container:{width:472,color:e.palette.primary.text6,display:"flex",flexDirection:"column",gap:8},helpText:{fontSize:16,lineHeight:"22px"},clearAllButton:{margin:"0 16px 0 auto"}}}));exports.ReportIssueModal=function(l){var o=l.open,u=l.onSave,c=l.onClose,d=s(),x=i.useState(""),m=x[0],p=x[1];return r.jsx(a,e.__assign({open:o,onClose:c,title:"Report Data Quality Issue",actions:r.jsxs(r.Fragment,{children:[r.jsx(n,e.__assign({color:"primary",className:d.clearAllButton,onClick:c},{children:"Cancel"})),r.jsx(n,e.__assign({onClick:function(){return u(m)},variation:"primary"},{children:"Save"}))]})},{children:r.jsxs("div",e.__assign({className:d.container},{children:[r.jsx("div",e.__assign({className:d.helpText},{children:"All issues are submitted to the Corva’s 24/7 Fusion data quality team for immediate review and remediation."})),r.jsx(t.TextField,{multiline:!0,rows:1,rowsMax:4,label:"Error Description",onChange:function(e){return p(e.target.value)}})]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),t=require("react"),i=require("@material-ui/core"),a=require("../../Modal/Modal.js"),n=require("../../Button/index.js"),s=i.makeStyles((function(e){return{container:{width:472,color:e.palette.primary.text6,display:"flex",flexDirection:"column",gap:8},helpText:{fontSize:16,lineHeight:"22px"},clearAllButton:{margin:"0 16px 0 auto"},textField:{"& .MuiInput-formControl":{marginTop:8}}}}));exports.ReportIssueModal=function(l){var o=l.open,u=l.onSave,c=l.onClose,d=s(),m=t.useState(""),x=m[0],p=m[1];return r.jsx(a,e.__assign({open:o,onClose:c,title:"Report Data Quality Issue",actions:r.jsxs(r.Fragment,{children:[r.jsx(n,e.__assign({color:"primary",className:d.clearAllButton,onClick:c},{children:"Cancel"})),r.jsx(n,e.__assign({disabled:!x,onClick:function(){return u(x)},variation:"primary"},{children:"Save"}))]})},{children:r.jsxs("div",e.__assign({className:d.container},{children:[r.jsx("div",e.__assign({className:d.helpText},{children:"All issues are submitted to the Corva’s 24/7 Fusion data quality team for immediate review and remediation."})),r.jsx(i.TextField,{className:d.textField,multiline:!0,rows:1,rowsMax:4,label:"Error Description",onChange:function(e){return p(e.target.value)}})]}))}))};
@@ -24,9 +24,7 @@ declare namespace AppSettingsPopover {
24
24
  var defaultProps: {
25
25
  defaultScrollable: boolean;
26
26
  header: string;
27
- iconSettingsProps: {
28
- iconSize: string;
29
- };
27
+ iconSettingsProps: {};
30
28
  maxHeight: any;
31
29
  modalActions: any;
32
30
  modalProps: {};
@@ -1 +1 @@
1
- {"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAAc,YAAY,EAAqB,MAAM,mBAAmB,CAAC;AAoGhF,UAAU,uBACR,SAAQ,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,EACnC,SAAS,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC;CAAG;AAE/D,iBAAS,kBAAkB,CAAC,EAC1B,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,SAAS,EACT,OAAO,EACP,GAAG,YAAY,EAChB,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAqGvC;kBAjHQ,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmH3B,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;CAahC,CAAC;AAeF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAAc,YAAY,EAAqB,MAAM,mBAAmB,CAAC;AAoGhF,UAAU,uBACR,SAAQ,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,EACnC,SAAS,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC;CAAG;AAE/D,iBAAS,kBAAkB,CAAC,EAC1B,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,SAAS,EACT,OAAO,EACP,GAAG,YAAY,EAChB,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CA4GvC;kBAxHQ,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0H3B,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;CAahC,CAAC;AAeF,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- import{__rest as o,__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as n,Fragment as a}from"react/jsx-runtime";import{useState as l}from"react";import r from"prop-types";import i from"classnames";import{makeStyles as c,useTheme as d,Popover as s}from"@material-ui/core";import{Settings as p,Close as m}from"@material-ui/icons";import{isNativeDetected as g}from"../../../utils/mobileDetect.js";import h from"../../IconButton/index.js";import u from"../../Modal/Modal.js";import b from"../../Button/index.js";import f from"../../../config/theme/palette.mjs.js";var x=function(o){return"filters"===o.modalType?f.background.b5:f.background.b9},C=c((function(o){return{popoverPaper:{marginTop:function(o){return o.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:o.palette.background.b9,maxHeight:function(o){var e=o.maxHeight;return e?e-24:"calc(100% - 24px)"},"&.scrollable":{height:function(o){return o.maxHeight||"100%"}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(o.palette.background.b9,", ").concat(o.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},shadow:{position:"absolute",bottom:0,width:"100%",height:16,background:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(o.palette.background.b9," 100%)")},modalRoot:{"& > div:first-child":{backgroundColor:"transparent !important"}},modalContentContainer:{height:g?"calc(100% - 16px)":"calc(100% - 126px)",maxHeight:g?"calc(100% - 16px)":"calc(100% - 126px)",maxWidth:"calc(100% - 16px)",width:"calc(100% - 16px)",marginTop:g?0:118,backgroundColor:x},modalTitle:{padding:"12px 16px",backgroundColor:x,boxShadow:function(o){var e=o.modalType;return"0px 8px 10px ".concat(x({modalType:e})," !important")}},modalContent:{padding:16,flexGrow:1},modalActions:{display:"flex",justifyContent:"flex-end",padding:"8px 16px",zIndex:1,backgroundColor:x,boxShadow:function(o){var e=o.modalType;return"0px -8px 10px ".concat(x({modalType:e}))}}}}));function v(r){var c,f=r.Trigger,x=r.children,v=r.defaultScrollable,T=r.header,y=r.iconSettingsProps,k=r.maxHeight,S=r.modalActions,w=r.modalProps,H=r.modalType,P=r.onClose,N=o(r,["Trigger","children","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","modalType","onClose"]),j=l(null),z=j[0],A=j[1],I=l(!0),B=I[0],M=I[1],O=C({maxHeight:k,isScrollable:B,isNativeDetected:g,modalType:H}),W=d(),D=g||window.top.document.body.clientWidth<W.breakpoints.values.md,E=function(){A(null),P()},R=Boolean(z),Y=function(o){return A(o.currentTarget)},F=S||t(b,e({variation:"secondary",onClick:E},{children:"CLOSE"}));return n(a,{children:[f?t(f,{onClick:Y}):t(h,e({onClick:Y,isActive:R},y,{children:t(p,{})})),!D&&n(s,e({open:R,anchorEl:z,onClose:E,anchorOrigin:{vertical:B?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},N,{classes:e(e({},null==N?void 0:N.classes),{paper:i(O.popoverPaper,B&&"scrollable",null===(c=null==N?void 0:N.classes)||void 0===c?void 0:c.paper)})},{children:[n("div",e({className:i(O.popoverHeader,B&&"scrollable")},{children:[t("div",e({className:O.headerTitle},{children:T})),t(h,e({tooltipProps:{title:"Close"},onClick:E},{children:t(m,{})}))]})),t("div",e({className:i(O.popoverContentContainer,B&&"scrollable"),ref:function(o){o&&o.scrollHeight<=o.clientHeight&&!v&&M(!1)}},{children:t("div",e({className:O.popoverContent},{children:x}))})),t("div",{className:O.shadow})]})),D&&t(u,e({actions:F,actionsClassName:O.modalActions,contentClassName:O.modalContent,contentContainerClassName:O.modalContentContainer,isMobile:!1,isNative:!1,modalTitleClassName:O.modalTitle,onClose:E,open:R,rootClassName:O.modalRoot,stickyFooter:!0,title:T},w,{children:x}))]})}var T={Trigger:r.element,iconSettingsProps:r.shape({iconSize:r.string,tooltipProps:r.shape({title:r.string})}),defaultScrollable:r.bool,maxHeight:r.number,header:r.string,modalActions:r.node,modalProps:r.any,modalType:r.string,onClose:r.func};v.propTypes=T,v.defaultProps={defaultScrollable:!1,header:"Settings",iconSettingsProps:{iconSize:"small"},maxHeight:null,modalActions:null,modalProps:{},modalType:"",onClose:function(){}};export{v as default};
1
+ import{__rest as o,__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as n,Fragment as a}from"react/jsx-runtime";import{useState as l}from"react";import r from"prop-types";import i from"classnames";import{makeStyles as c,useTheme as d,Popover as s}from"@material-ui/core";import{Settings as p,Close as m}from"@material-ui/icons";import{isNativeDetected as g}from"../../../utils/mobileDetect.js";import h from"../../IconButton/index.js";import u from"../../Modal/Modal.js";import b from"../../Button/index.js";import f from"../../../config/theme/palette.mjs.js";var x=function(o){return"filters"===o.modalType?f.background.b5:f.background.b9},C=c((function(o){return{popoverPaper:{marginTop:function(o){return o.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:o.palette.background.b9,maxHeight:function(o){var e=o.maxHeight;return e?e-24:"calc(100% - 24px)"},"&.scrollable":{height:function(o){return o.maxHeight||"100%"}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(o.palette.background.b9,", ").concat(o.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},shadow:{position:"absolute",bottom:0,width:"100%",height:16,background:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(o.palette.background.b9," 100%)")},modalRoot:{"& > div:first-child":{backgroundColor:"transparent !important"}},modalContentContainer:{height:g?"calc(100% - 16px)":"calc(100% - 126px)",maxHeight:g?"calc(100% - 16px)":"calc(100% - 126px)",maxWidth:"calc(100% - 16px)",width:"calc(100% - 16px)",marginTop:g?0:118,backgroundColor:x},modalTitle:{padding:"12px 16px",backgroundColor:x,boxShadow:function(o){var e=o.modalType;return"0px 8px 10px ".concat(x({modalType:e})," !important")}},modalContent:{padding:16,flexGrow:1},modalActions:{display:"flex",justifyContent:"flex-end",padding:"8px 16px",zIndex:1,backgroundColor:x,boxShadow:function(o){var e=o.modalType;return"0px -8px 10px ".concat(x({modalType:e}))}}}}));function v(r){var c,f=r.Trigger,x=r.children,v=r.defaultScrollable,T=r.header,y=r.iconSettingsProps,k=r.maxHeight,S=r.modalActions,w=r.modalProps,P=r.modalType,H=r.onClose,N=o(r,["Trigger","children","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","modalType","onClose"]),j=l(null),z=j[0],A=j[1],I=l(!0),B=I[0],M=I[1],O=C({maxHeight:k,isScrollable:B,isNativeDetected:g,modalType:P}),W=d(),D=g||window.top.document.body.clientWidth<W.breakpoints.values.md,E=function(){A(null),H()},R=Boolean(z),Y=function(o){return A(o.currentTarget)},F=S||t(b,e({variation:"secondary",onClick:E},{children:"CLOSE"}));return n(a,{children:[f?t(f,{onClick:Y}):t(h,e({isActive:R,onClick:Y,size:"small",tooltipProps:{title:"Settings"},variant:"contained"},y,{children:t(p,{})})),!D&&n(s,e({open:R,anchorEl:z,onClose:E,anchorOrigin:{vertical:B?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},N,{classes:e(e({},null==N?void 0:N.classes),{paper:i(O.popoverPaper,B&&"scrollable",null===(c=null==N?void 0:N.classes)||void 0===c?void 0:c.paper)})},{children:[n("div",e({className:i(O.popoverHeader,B&&"scrollable")},{children:[t("div",e({className:O.headerTitle},{children:T})),t(h,e({tooltipProps:{title:"Close"},onClick:E},{children:t(m,{})}))]})),t("div",e({className:i(O.popoverContentContainer,B&&"scrollable"),ref:function(o){o&&o.scrollHeight<=o.clientHeight&&!v&&M(!1)}},{children:t("div",e({className:O.popoverContent},{children:x}))})),t("div",{className:O.shadow})]})),D&&t(u,e({actions:F,actionsClassName:O.modalActions,contentClassName:O.modalContent,contentContainerClassName:O.modalContentContainer,isMobile:!1,isNative:!1,modalTitleClassName:O.modalTitle,onClose:E,open:R,rootClassName:O.modalRoot,stickyFooter:!0,title:T},w,{children:x}))]})}var T={Trigger:r.element,iconSettingsProps:r.shape({iconSize:r.string,tooltipProps:r.shape({title:r.string})}),defaultScrollable:r.bool,maxHeight:r.number,header:r.string,modalActions:r.node,modalProps:r.any,modalType:r.string,onClose:r.func};v.propTypes=T,v.defaultProps={defaultScrollable:!1,header:"Settings",iconSettingsProps:{},maxHeight:null,modalActions:null,modalProps:{},modalType:"",onClose:function(){}};export{v as default};
@@ -1 +1 @@
1
- {"version":3,"file":"DQSuccessContent.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQSuccessContent.tsx"],"names":[],"mappings":";AAwBA,eAAO,MAAM,gBAAgB;aAA4B,MAAM,IAAI;MAAK,WAqBvE,CAAC"}
1
+ {"version":3,"file":"DQSuccessContent.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQSuccessContent.tsx"],"names":[],"mappings":";AA2BA,eAAO,MAAM,gBAAgB;aAA4B,MAAM,IAAI;MAAK,WAqBvE,CAAC"}
@@ -1 +1 @@
1
- import{__assign as t}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as i,jsx as e}from"react/jsx-runtime";import{makeStyles as o,Typography as n}from"@material-ui/core";import r from"../../Button/index.js";var a=o((function(t){return{container:{display:"flex",flexDirection:"column",padding:12},title:{fontWeight:500,fontSize:"16px",lineHeight:"19px",marginBottom:4},subtitle:{color:t.palette.primary.text7,fontSize:"12px",lineHeight:"14px",marginBottom:4},button:{alignSelf:"end"}}})),l=function(o){var l=o.onClick,s=a();return i("div",t({className:s.container},{children:[e(n,t({className:s.title},{children:"No Data Quality Issues"})),e(n,t({className:s.subtitle},{children:"If you have found any issues, inform us."})),e(r,t({color:"primary",className:s.button,onClick:l,variation:"secondary"},{children:"report dq issue"}))]}))};export{l as DQSuccessContent};
1
+ import{__assign as t}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as i,jsx as e}from"react/jsx-runtime";import{makeStyles as o,Typography as n}from"@material-ui/core";import r from"../../Button/index.js";var a=o((function(t){return{container:{display:"flex",flexDirection:"column",padding:12},title:{fontWeight:500,fontSize:"16px",lineHeight:"19px",marginBottom:4},subtitle:{color:t.palette.primary.text7,fontSize:"12px",lineHeight:"14px",marginBottom:4},button:{alignSelf:"end",marginTop:8}}})),l=function(o){var l=o.onClick,s=a();return i("div",t({className:s.container},{children:[e(n,t({className:s.title},{children:"No Data Quality Issues"})),e(n,t({className:s.subtitle},{children:"If you have found any issues, inform us."})),e(r,t({color:"primary",className:s.button,onClick:l,variation:"secondary"},{children:"report dq issue"}))]}))};export{l as DQSuccessContent};
@@ -1 +1 @@
1
- {"version":3,"file":"ReportIssueModal.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/ReportIssueModal.tsx"],"names":[],"mappings":";AAoBA,aAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAA;AAED,eAAO,MAAM,gBAAgB,8BAA+B,qBAAqB,KAAG,WAsCnF,CAAC"}
1
+ {"version":3,"file":"ReportIssueModal.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/ReportIssueModal.tsx"],"names":[],"mappings":";AAuBA,aAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAA;AAED,eAAO,MAAM,gBAAgB,8BAA+B,qBAAqB,KAAG,WAuCnF,CAAC"}
@@ -1 +1 @@
1
- import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useState as o}from"react";import{makeStyles as n,TextField as a}from"@material-ui/core";import l from"../../Modal/Modal.js";import c from"../../Button/index.js";var m=n((function(e){return{container:{width:472,color:e.palette.primary.text6,display:"flex",flexDirection:"column",gap:8},helpText:{fontSize:16,lineHeight:"22px"},clearAllButton:{margin:"0 16px 0 auto"}}})),s=function(n){var s=n.open,u=n.onSave,p=n.onClose,d=m(),f=o(""),h=f[0],x=f[1];return r(l,e({open:s,onClose:p,title:"Report Data Quality Issue",actions:t(i,{children:[r(c,e({color:"primary",className:d.clearAllButton,onClick:p},{children:"Cancel"})),r(c,e({onClick:function(){return u(h)},variation:"primary"},{children:"Save"}))]})},{children:t("div",e({className:d.container},{children:[r("div",e({className:d.helpText},{children:"All issues are submitted to the Corva’s 24/7 Fusion data quality team for immediate review and remediation."})),r(a,{multiline:!0,rows:1,rowsMax:4,label:"Error Description",onChange:function(e){return x(e.target.value)}})]}))}))};export{s as ReportIssueModal};
1
+ import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as r,Fragment as i}from"react/jsx-runtime";import{useState as o}from"react";import{makeStyles as a,TextField as n}from"@material-ui/core";import l from"../../Modal/Modal.js";import m from"../../Button/index.js";var s=a((function(e){return{container:{width:472,color:e.palette.primary.text6,display:"flex",flexDirection:"column",gap:8},helpText:{fontSize:16,lineHeight:"22px"},clearAllButton:{margin:"0 16px 0 auto"},textField:{"& .MuiInput-formControl":{marginTop:8}}}})),c=function(a){var c=a.open,u=a.onSave,d=a.onClose,p=s(),f=o(""),x=f[0],h=f[1];return t(l,e({open:c,onClose:d,title:"Report Data Quality Issue",actions:r(i,{children:[t(m,e({color:"primary",className:p.clearAllButton,onClick:d},{children:"Cancel"})),t(m,e({disabled:!x,onClick:function(){return u(x)},variation:"primary"},{children:"Save"}))]})},{children:r("div",e({className:p.container},{children:[t("div",e({className:p.helpText},{children:"All issues are submitted to the Corva’s 24/7 Fusion data quality team for immediate review and remediation."})),t(n,{className:p.textField,multiline:!0,rows:1,rowsMax:4,label:"Error Description",onChange:function(e){return h(e.target.value)}})]}))}))};export{c as ReportIssueModal};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.56.0-14",
3
+ "version": "0.56.0-15",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"