@corva/ui 0.76.0-11 → 0.76.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/Counter/index.js +1 -1
- package/components/Chart/DonutChart/constants.d.ts +3 -0
- package/components/Chart/DonutChart/constants.d.ts.map +1 -0
- package/components/Chart/DonutChart/dataMock.d.ts +7 -0
- package/components/Chart/DonutChart/dataMock.d.ts.map +1 -0
- package/components/Chart/DonutChart/index.d.ts +3 -0
- package/components/Chart/DonutChart/index.d.ts.map +1 -0
- package/components/Chart/DonutChart/options.d.ts +104 -0
- package/components/Chart/DonutChart/options.d.ts.map +1 -0
- package/components/Counter/index.d.ts.map +1 -1
- package/components/Counter/index.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var i=require('./../../ext-esm/tslib/tslib.es6.js'),e=require("react/jsx-runtime"),t=require("prop-types"),o=require("classnames"),
|
|
1
|
+
"use strict";var i=require('./../../ext-esm/tslib/tslib.es6.js'),e=require("react/jsx-runtime"),t=require("prop-types"),o=require("classnames"),a=require("lodash"),l=require("@material-ui/core"),p=require("../../icons/index.js");function r(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var s=r(t),n=r(o),d=l.makeStyles((function(i){return{rootChip:{"&.MuiChip-root":{backgroundColor:i.palette.background.b9,color:i.palette.primary.text6,textAlign:"center","&:hover":{color:i.palette.primary.contrastText,"& .MuiSvgIcon-root":{color:i.palette.primary.contrastText}},"& span.MuiChip-label":{padding:0}}},tooltip:{marginTop:"10px"},closeIcon:{marginRight:"-2px !important",marginLeft:"2px !important",color:i.palette.primary.text6},sizeSmall:{"&.MuiChip-root":{minWidth:16,height:16,padding:"1px 2px","& span":{fontSize:"11px",lineHeight:"14px"}}},sizeSmallLimited:{"&.MuiChip-root":{padding:"1px 3px"}},sizeMedium:{"&.MuiChip-root":{minWidth:24,height:24,padding:"2px 4px","& span":{fontSize:"14px",lineHeight:"20px"}}},sizeMediumLimited:{"&.MuiChip-root":{padding:"2px 6px"}},sizeMediumClickable:{"&.MuiChip-root":{padding:"2px 6px"}},sizeLarge:{"&.MuiChip-root":{minWidth:32,height:32,padding:"5px 7px","& span":{fontSize:"16px",lineHeight:"22px"}}},sizeLargeLimited:{"&.MuiChip-root":{padding:"5px 8px"}},sizeLargeClickable:{"&.MuiChip-root":{padding:"5px 8px"}}}})),c=function(t){var o=t.classes,r=t.size,s=t.limited,c=t.clickable,u=t.tooltip,m=d();return e.jsx(l.Tooltip,i.__assign({title:u,classes:{tooltip:m.tooltip}},{children:e.jsx(l.Chip,i.__assign({},t,{classes:i.__assign(i.__assign({},o),{root:n.default(o.root,m.rootChip,m["size".concat(a.capitalize(r))],s&&m["size".concat(a.capitalize(r),"Limited")],c&&m["size".concat(a.capitalize(r),"Clickable")])}),clickable:c,deleteIcon:e.jsx(p.CloseSmallIcon,{className:m.closeIcon,size:16})}))}))},u={classes:s.default.shape({root:s.default.string}),size:s.default.oneOf(["small","medium","large"]),limited:s.default.bool,clickable:s.default.bool,label:s.default.string.isRequired,tooltip:s.default.string};c.propTypes=u,c.defaultProps={classes:{},size:"medium",limited:!1,clickable:!1,tooltip:""},module.exports=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/DonutChart/constants.js"],"names":[],"mappings":"AAAA,wCAAyC;AAEzC,oCA+BE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataMock.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/DonutChart/dataMock.js"],"names":[],"mappings":"AAAA;;;;;IA+BE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/DonutChart/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export function getAppUsageOptions({ appNumber, data, isFullChartLegendVisible }: {
|
|
2
|
+
appNumber: any;
|
|
3
|
+
data: any;
|
|
4
|
+
isFullChartLegendVisible: any;
|
|
5
|
+
}): {
|
|
6
|
+
chart: {
|
|
7
|
+
backgroundColor: string;
|
|
8
|
+
type: string;
|
|
9
|
+
animation: boolean;
|
|
10
|
+
};
|
|
11
|
+
plotOptions: {
|
|
12
|
+
pie: {
|
|
13
|
+
animation: boolean;
|
|
14
|
+
allowPointSelect: boolean;
|
|
15
|
+
cursor: string;
|
|
16
|
+
dataLabels: {
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
};
|
|
19
|
+
colors: string[];
|
|
20
|
+
showInLegend: boolean;
|
|
21
|
+
borderColor: any;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
yAxis: {};
|
|
25
|
+
xAxis: {};
|
|
26
|
+
legend: {
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
itemHoverStyle: {
|
|
29
|
+
color: string;
|
|
30
|
+
};
|
|
31
|
+
itemStyle: {
|
|
32
|
+
color: string;
|
|
33
|
+
fontSize: string;
|
|
34
|
+
fontWeight: string;
|
|
35
|
+
fontFamily: string;
|
|
36
|
+
};
|
|
37
|
+
itemDistance: number;
|
|
38
|
+
symbolWidth: number;
|
|
39
|
+
symbolHeight: number;
|
|
40
|
+
symbolPadding: number;
|
|
41
|
+
maxHeight: number;
|
|
42
|
+
alignColumns: boolean;
|
|
43
|
+
itemMarginBottom: number;
|
|
44
|
+
navigation: {
|
|
45
|
+
arrowSize: number;
|
|
46
|
+
activeColor: string;
|
|
47
|
+
inactiveColor: string;
|
|
48
|
+
style: {
|
|
49
|
+
color: string;
|
|
50
|
+
fontFamily: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
tooltip: {
|
|
55
|
+
backgroundColor: string;
|
|
56
|
+
formatter: typeof tooltipFormatter;
|
|
57
|
+
borderWidth: number;
|
|
58
|
+
borderRadius: number;
|
|
59
|
+
outside: boolean;
|
|
60
|
+
shadow: boolean;
|
|
61
|
+
style: {
|
|
62
|
+
fontSize: number;
|
|
63
|
+
color: string;
|
|
64
|
+
lineHeight: string;
|
|
65
|
+
fontFamily: string;
|
|
66
|
+
};
|
|
67
|
+
useHTML: boolean;
|
|
68
|
+
};
|
|
69
|
+
title: {
|
|
70
|
+
text: string;
|
|
71
|
+
};
|
|
72
|
+
credits: {
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
};
|
|
75
|
+
exporting: {
|
|
76
|
+
enabled: boolean;
|
|
77
|
+
};
|
|
78
|
+
} & {
|
|
79
|
+
legend: {
|
|
80
|
+
maxHeight: any;
|
|
81
|
+
};
|
|
82
|
+
} & {
|
|
83
|
+
plotOptions: {
|
|
84
|
+
pie: {
|
|
85
|
+
colors: string[];
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
} & {
|
|
89
|
+
series: {
|
|
90
|
+
name: string;
|
|
91
|
+
colorByPoint: boolean;
|
|
92
|
+
tooltip: {
|
|
93
|
+
tooltipValueSuffix: string;
|
|
94
|
+
};
|
|
95
|
+
innerSize: string;
|
|
96
|
+
data: any;
|
|
97
|
+
}[];
|
|
98
|
+
xAxis: {
|
|
99
|
+
categories: any;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
declare function tooltipFormatter(): any;
|
|
103
|
+
export {};
|
|
104
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/DonutChart/options.js"],"names":[],"mappings":"AA2IO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBN;AAvJD,yCA2BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Counter/index.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,OAAO,EAAmB,SAAS,IAAI,YAAY,EAAuB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Counter/index.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,OAAO,EAAmB,SAAS,IAAI,YAAY,EAAuB,MAAM,mBAAmB,CAAC;AA4FpG,UAAU,YACR,SAAQ,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,EACtD,SAAS,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC;IAC/C,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACrC;AAED,QAAA,MAAM,OAAO;YAAW,YAAY,GAAG,WAAW;;;;;;;;;;;;;;;;;;CAwBjD,CAAC;AAEF,QAAA,MAAM,gBAAgB;;;;;;;;;CASrB,CAAC;AAYF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import
|
|
1
|
+
import{__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import t from"prop-types";import o from"classnames";import{capitalize as p}from"lodash";import{makeStyles as r,Tooltip as a,Chip as l}from"@material-ui/core";import{CloseSmallIcon as s}from"../../icons/index.js";var n=r((function(i){return{rootChip:{"&.MuiChip-root":{backgroundColor:i.palette.background.b9,color:i.palette.primary.text6,textAlign:"center","&:hover":{color:i.palette.primary.contrastText,"& .MuiSvgIcon-root":{color:i.palette.primary.contrastText}},"& span.MuiChip-label":{padding:0}}},tooltip:{marginTop:"10px"},closeIcon:{marginRight:"-2px !important",marginLeft:"2px !important",color:i.palette.primary.text6},sizeSmall:{"&.MuiChip-root":{minWidth:16,height:16,padding:"1px 2px","& span":{fontSize:"11px",lineHeight:"14px"}}},sizeSmallLimited:{"&.MuiChip-root":{padding:"1px 3px"}},sizeMedium:{"&.MuiChip-root":{minWidth:24,height:24,padding:"2px 4px","& span":{fontSize:"14px",lineHeight:"20px"}}},sizeMediumLimited:{"&.MuiChip-root":{padding:"2px 6px"}},sizeMediumClickable:{"&.MuiChip-root":{padding:"2px 6px"}},sizeLarge:{"&.MuiChip-root":{minWidth:32,height:32,padding:"5px 7px","& span":{fontSize:"16px",lineHeight:"22px"}}},sizeLargeLimited:{"&.MuiChip-root":{padding:"5px 8px"}},sizeLargeClickable:{"&.MuiChip-root":{padding:"5px 8px"}}}})),m=function(t){var r=t.classes,m=t.size,c=t.limited,d=t.clickable,x=t.tooltip,g=n();return e(a,i({title:x,classes:{tooltip:g.tooltip}},{children:e(l,i({},t,{classes:i(i({},r),{root:o(r.root,g.rootChip,g["size".concat(p(m))],c&&g["size".concat(p(m),"Limited")],d&&g["size".concat(p(m),"Clickable")])}),clickable:d,deleteIcon:e(s,{className:g.closeIcon,size:16})}))}))},c={classes:t.shape({root:t.string}),size:t.oneOf(["small","medium","large"]),limited:t.bool,clickable:t.bool,label:t.string.isRequired,tooltip:t.string};m.propTypes=c,m.defaultProps={classes:{},size:"medium",limited:!1,clickable:!1,tooltip:""};export{m as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corva/ui",
|
|
3
|
-
"version": "0.76.0-
|
|
3
|
+
"version": "0.76.0-13",
|
|
4
4
|
"description": "Shared components/utils for Corva ui projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"corva-ui"
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"chalk": "4.1.1",
|
|
97
97
|
"chroma-js": "1.4.1",
|
|
98
98
|
"classnames": "2.2.6",
|
|
99
|
-
"corva-convert-units": "1.12.
|
|
99
|
+
"corva-convert-units": "1.12.1",
|
|
100
100
|
"dompurify": "3.0.6",
|
|
101
101
|
"dotenv": "^10.0.0",
|
|
102
102
|
"echarts": "^5.4.3",
|