@corva/ui 0.50.0-1 → 0.50.0-3
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
|
-
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as i,useState as r,useRef as l,useEffect as n}from"react";import{makeStyles as a,Tooltip as c}from"@material-ui/core";import p from"@material-ui/icons/Straighten";import s from"../ChartWrapperContext.js";import{jsxs as u,jsx as f}from"react/jsx-runtime";var m=["left","width","top","bottom","right","isXAxis","height","coll","onCustomizeScaleClick"],h=a((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}}})),d=function(a){var d,g=a.left,b=a.width,x=a.top,y=a.bottom,C=a.right,v=a.isXAxis,w=a.height,E=a.coll,S=a.onCustomizeScaleClick,z=o(a,m),W=i(s).chart,k=r({}),j=e(k,2),B=j[0],I=j[1],M=l(),P=h({top:x,right:C,width:v?b:
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as i,useState as r,useRef as l,useEffect as n}from"react";import{makeStyles as a,Tooltip as c}from"@material-ui/core";import p from"@material-ui/icons/Straighten";import s from"../ChartWrapperContext.js";import{jsxs as u,jsx as f}from"react/jsx-runtime";var m=["left","width","top","bottom","right","isXAxis","height","coll","onCustomizeScaleClick"],h=a((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}}})),d=function(a){var d,g=a.left,b=a.width,x=a.top,y=a.bottom,C=a.right,v=a.isXAxis,w=a.height,E=a.coll,S=a.onCustomizeScaleClick,z=o(a,m),W=i(s).chart,k=r({}),j=e(k,2),B=j[0],I=j[1],M=l(),P=h({top:x,right:C,width:v?b:14,height:v?14:w,left:g-14,bottom:y-14}),A=null===(d=M.current)||void 0===d?void 0:d.getBoundingClientRect(),N=u("div",{className:P.tooltip,children:[f(p,{className:P.tooltipIcon})," Customize Scale"]}),R=function(){W.update(t({},E,{lineColor:"#03BCD4",lineWidth:2,labels:{style:{color:"#ffffff"}},title:{style:{color:"#ffffff"}}}))},X=function(){W.update(t({},E,{lineColor:"rgb(87, 91, 91)",lineWidth:1,labels:{style:{color:"#9E9E9E"}},title:{style:{color:"#9E9E9E"}}}))};return n((function(){var t=W.axisGroup;t&&(t.element.style.cursor="pointer")}),[W]),f(c,{title:N,placement:v?"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:v?A.y:B.y,left:v?B.x:A.x-14,right:v?B.x:A.x+14,bottom:v?A.y:B.y,width:0,height:0}}}},children:f("div",{className:P.axis,ref:M,onClick:function(){return S(z)},onMouseOver:R,onMouseLeave:X,onFocus:R,onBlur:X})})};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppFilterPanelLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js"],"names":[],"mappings":"AAwCO;;;;;;;
|
|
1
|
+
{"version":3,"file":"AppFilterPanelLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js"],"names":[],"mappings":"AAwCO;;;;;;;gBAgDN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{makeStyles as r,useTheme as t,useMediaQuery as i}from"@material-ui/core";import n from"classnames";import o from"@material-ui/icons/Sort";import a from"../AppSideBar/AppSideBar.js";import p from"../AppSettingsPopover/AppSettingsPopover.js";import c from"../../Button/index.js";import{jsxs as l,jsx as s}from"react/jsx-runtime";function d(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function f(r){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach((function(t){e(r,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))}))}return r}var h=r({appLayout:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},header:{paddingLeft:12,paddingRight:12,display:"flex",height:36},contentWrapper:{display:"flex",position:"relative",flexGrow:1,height:"calc(100% - 36px)","@media (max-width: 960px)":{height:"100%"}},content:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"}}),m=function(e){var r=e.classes,d=void 0===r?{}:r,m=e.sideBarProps,u=e.sideBarContent,g=e.appSettingsPopoverProps,y=e.header,O=e.children,b=h(),v=t(),j=i(v.breakpoints.down("sm"));return l("div",{className:n(b.appLayout,d.appLayout),children:[j&&l("div",{className:n(b.header,d.header),children:[s(p,f(f({Trigger:function(e){return s(c,f(f({startIcon:s(o,{})},e),{},{children:"Filters"}))},header:"Filters",anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},g),{},{children:u})),y]}),l("div",{className:n(b.contentWrapper,d.contentWrapper),children:[!j&&s(a,f(f({},m),{},{anchor:"left",children:u})),s("div",{className:n(b.content,d.content),children:O})]})]})};export{m as AppFilterPanelLayout};
|