@bit.rhplus/ag-grid 0.0.35 → 0.0.36
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,4 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
+
// DEPRECATED: This component is not used anywhere in the codebase
|
|
3
|
+
// Kept for reference only - uses @material-ui which is being phased out
|
|
4
|
+
/*
|
|
2
5
|
import React, { useState } from 'react';
|
|
3
6
|
import PropTypes from 'prop-types';
|
|
4
7
|
import classnames from 'classnames';
|
|
@@ -112,4 +115,5 @@ AggregationNotification.propTypes = {
|
|
|
112
115
|
id: PropTypes.number.isRequired,
|
|
113
116
|
};
|
|
114
117
|
|
|
115
|
-
export default AggregationNotification;
|
|
118
|
+
export default AggregationNotification;
|
|
119
|
+
*/
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
// DEPRECATED: This component is not used anywhere in the codebase
|
|
4
|
+
// Kept for reference only - uses @material-ui which is being phased out
|
|
5
|
+
/*
|
|
3
6
|
import React, { useState } from 'react';
|
|
4
7
|
import PropTypes from 'prop-types';
|
|
5
8
|
import classnames from 'classnames';
|
|
@@ -16,6 +19,7 @@ import CloseIcon from '@material-ui/icons/Close';
|
|
|
16
19
|
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
|
|
17
20
|
import CheckCircleIcon from '@material-ui/icons/CheckCircle';
|
|
18
21
|
import moment from 'moment';
|
|
22
|
+
|
|
19
23
|
const useStyles = makeStyles(theme => ({
|
|
20
24
|
card: {
|
|
21
25
|
display: 'flex',
|
|
@@ -29,7 +33,7 @@ const useStyles = makeStyles(theme => ({
|
|
|
29
33
|
},
|
|
30
34
|
},
|
|
31
35
|
// typography: {
|
|
32
|
-
|
|
36
|
+
// fontWeight: 'bold',
|
|
33
37
|
// },
|
|
34
38
|
actionRoot: {
|
|
35
39
|
padding: '8px 8px 8px 16px',
|
|
@@ -60,21 +64,58 @@ const useStyles = makeStyles(theme => ({
|
|
|
60
64
|
textTransform: 'none',
|
|
61
65
|
},
|
|
62
66
|
}));
|
|
67
|
+
|
|
63
68
|
const AggregationNotification = React.forwardRef((props, ref) => {
|
|
64
69
|
const classes = useStyles();
|
|
65
70
|
const { closeSnackbar } = useSnackbar();
|
|
66
71
|
const expanded = true;
|
|
67
72
|
// Aktualizované props pro novou verzi AG Grid aggregací
|
|
68
|
-
const {
|
|
73
|
+
const {count, sum, max, min, avg, square, cubic, earliest, latest, rows, cols} = props.messageInfo;
|
|
69
74
|
const length = count || 0;
|
|
70
75
|
const isDate = earliest && latest;
|
|
76
|
+
|
|
71
77
|
const handleDismiss = () => {
|
|
72
78
|
closeSnackbar(props.id);
|
|
73
79
|
};
|
|
74
|
-
|
|
80
|
+
|
|
81
|
+
return (
|
|
82
|
+
<Card className={classes.card} ref={ref}>
|
|
83
|
+
<CardActions classes={{ root: classes.actionRoot }}>
|
|
84
|
+
<Typography variant="subtitle2">Označeno {rows} řádků, {cols} sloupců ({length} buněk)</Typography>
|
|
85
|
+
<div className={classes.icons}>
|
|
86
|
+
<IconButton className={classes.expand} onClick={handleDismiss}>
|
|
87
|
+
<CloseIcon />
|
|
88
|
+
</IconButton>
|
|
89
|
+
</div>
|
|
90
|
+
</CardActions>
|
|
91
|
+
<Collapse in={expanded} timeout="auto" unmountOnExit>
|
|
92
|
+
{props.showNumber && count > 0 ? (
|
|
93
|
+
<Paper className={classes.collapse}>
|
|
94
|
+
{ !isNaN(parseFloat(count)) ? (<span><b>Počet:</b> {parseFloat(count)}</span>) : (<span />) }
|
|
95
|
+
{ !isNaN(parseFloat(sum)) ? (<span className="ml-2"><b>Součet:</b> {parseFloat(sum).toFixed(2)}</span>) : (<span />) }
|
|
96
|
+
{ !isNaN(parseFloat(min)) ? (<span className="ml-2"><b>Min:</b> {parseFloat(min).toFixed(2)}</span>) : (<span />) }
|
|
97
|
+
{ !isNaN(parseFloat(max)) ? (<span className="ml-2"><b>Max:</b> {parseFloat(max).toFixed(2)}</span>) : (<span />) }
|
|
98
|
+
{ !isNaN(parseFloat(avg)) ? (<span className="ml-2"><b>Průměr:</b> {parseFloat(avg).toFixed(2)}</span>) : (<span />) }
|
|
99
|
+
{ !isNaN(parseFloat(square)) ? (<span className="ml-2"><b>2D:</b> {parseFloat(square).toFixed(2)}</span>) : (<span />) }
|
|
100
|
+
{ !isNaN(parseFloat(cubic)) ? (<span className="ml-2"><b>3D:</b> {parseFloat(cubic).toFixed(2)}</span>) : (<span />) }
|
|
101
|
+
</Paper>
|
|
102
|
+
) : (<div />)}
|
|
103
|
+
|
|
104
|
+
{props.showDate && isDate ? (
|
|
105
|
+
<Paper className={classes.collapse}>
|
|
106
|
+
<span><b>Nejdříve:</b> {moment(earliest).format("DD.MM.YY HH:mm:ss")}</span>
|
|
107
|
+
<span className="ml-2"><b>Nejpozději:</b> {moment(latest).format("DD.MM.YY HH:mm:ss")}</span>
|
|
108
|
+
</Paper>
|
|
109
|
+
) : (<div />)}
|
|
110
|
+
</Collapse>
|
|
111
|
+
</Card>
|
|
112
|
+
);
|
|
75
113
|
});
|
|
114
|
+
|
|
76
115
|
AggregationNotification.propTypes = {
|
|
77
116
|
id: PropTypes.number.isRequired,
|
|
78
117
|
};
|
|
118
|
+
|
|
79
119
|
export default AggregationNotification;
|
|
120
|
+
*/
|
|
80
121
|
//# sourceMappingURL=AggregationNotification.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AggregationNotification.js","sourceRoot":"","sources":["../AggregationNotification.js"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,
|
|
1
|
+
{"version":3,"file":"AggregationNotification.js","sourceRoot":"","sources":["../AggregationNotification.js"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,kEAAkE;AAClE,wEAAwE;AACxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmHE"}
|
package/package.json
CHANGED
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bit.rhplus/ag-grid",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"homepage": "https://bit.cloud/remote-scope/ag-grid",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "remote-scope",
|
|
8
8
|
"name": "ag-grid",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.36"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@material-ui/core": "^4.12.4",
|
|
13
|
-
"@material-ui/icons": "4.11.3",
|
|
14
|
-
"classnames": "^2.5.1",
|
|
15
|
-
"moment": "^2.30.1",
|
|
16
|
-
"notistack": "^3.0.2",
|
|
17
12
|
"linq": "^4.0.3",
|
|
13
|
+
"moment": "^2.30.1",
|
|
18
14
|
"lodash": "^4.17.21",
|
|
19
15
|
"ag-grid-react": "^33.3.2",
|
|
20
16
|
"antd": "^5.20.6",
|
|
21
17
|
"@ant-design/icons": "^5.4.0",
|
|
22
18
|
"lucide-react": "^0.503.0",
|
|
23
|
-
"@bit.rhplus/ui.grid": "0.0.
|
|
19
|
+
"@bit.rhplus/ui.grid": "0.0.54",
|
|
24
20
|
"@bit.rhplus/linq": "0.0.8"
|
|
25
21
|
},
|
|
26
22
|
"devDependencies": {
|
|
File without changes
|