@bit.rhplus/ag-grid 0.0.34 → 0.0.35

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,53 +1,355 @@
1
- import React from 'react';
2
-
3
- const getValue = (value, fix, def = '') =>
4
- Number.isNaN(value) || value === null ? def : parseFloat(value).toFixed(fix);
5
-
6
- const NotificationOptions = {
7
- head: messageInfo => {
8
- const {
9
- sum,
10
- square,
11
- cubic,
12
- rows,
13
- cols
14
- } = messageInfo;
15
-
16
- const squareMeters = getValue(square / 10000, 2);
17
- const cubicMeters = getValue(cubic / 1000000, 2);
18
-
19
- return (
20
-
21
- <div>
22
- <span className="mr-1"><b>Rows:</b></span>{getValue(rows, 1)}
23
- <span className="ml-3 mr-1"><b>Sum:</b></span>{getValue(sum, 1)}
24
- {cols === 2 ? <span className="ml-3 mr-1"><b>m<sup>2</sup>:</b> {squareMeters}</span> : <span />}
25
- {cols === 3 ? <span className="ml-3 mr-1"><b>m<sup>3</sup>:</b> {cubicMeters}</span> : <span />}
26
- </div>)
27
- },
28
-
29
- body: messageInfo => {
30
- const {
31
- count,
32
- min,
33
- max,
34
- avg,
35
- } = messageInfo;
36
- return (
37
- <>
38
- <div>
39
- <span className="mr-2"><b>Min:</b></span>{getValue(min, 2)}
40
- <span className="ml-2 mr-2"><b>Max:</b></span>{getValue(max, 2)}
41
- <span className="ml-2 mr-2"><b>Avg:</b></span>{getValue(avg, 2)}
42
- <span className="ml-2 mr-2"><b>Count:</b></span>{getValue(count, 2)}
43
- </div>
44
- </>
45
- )
46
- },
47
- style: {
48
- width: 520
49
- },
50
- placement: 'bottomRight'
51
- }
52
-
53
- export default NotificationOptions;
1
+ /* eslint-disable */
2
+ import React from 'react';
3
+ import { Row, Col, Divider, Typography, Space, Progress, Collapse } from 'antd';
4
+ import {
5
+ CalculatorOutlined,
6
+ RiseOutlined,
7
+ FallOutlined,
8
+ LineChartOutlined,
9
+ TableOutlined,
10
+ CalendarOutlined,
11
+ SwapOutlined,
12
+ CheckCircleOutlined,
13
+ FileTextOutlined,
14
+ BarChartOutlined
15
+ } from '@ant-design/icons';
16
+
17
+ const { Panel } = Collapse;
18
+
19
+ const { Text } = Typography;
20
+
21
+ const formatNumber = (value, decimals = 2) => {
22
+ if (value === null || value === undefined || Number.isNaN(value)) return '-';
23
+ return parseFloat(value).toLocaleString('cs-CZ', {
24
+ minimumFractionDigits: decimals,
25
+ maximumFractionDigits: decimals
26
+ });
27
+ };
28
+
29
+ const formatCurrency = (value, decimals, currencySymbol, hasMixed) => {
30
+ if (value === null || value === undefined || Number.isNaN(value)) return '-';
31
+ const formatted = formatNumber(value, decimals);
32
+
33
+ if (!currencySymbol) return formatted;
34
+
35
+ if (hasMixed) {
36
+ return `${formatted} ${currencySymbol}*`;
37
+ }
38
+
39
+ return `${formatted} ${currencySymbol}`;
40
+ };
41
+
42
+ const StatItem = ({ icon, label, value, color, decimals = 2, currencySymbol = null, hasMixed = false }) => (
43
+ <Space size="small" style={{ display: 'flex', alignItems: 'center' }}>
44
+ {icon && React.cloneElement(icon, {
45
+ style: { color, fontSize: '16px', marginRight: '4px' }
46
+ })}
47
+ <Text strong style={{ fontSize: '12px' }}>{label}:</Text>
48
+ <Text style={{ fontSize: '13px', fontWeight: 500 }}>
49
+ {currencySymbol ? formatCurrency(value, decimals, currencySymbol, hasMixed) : formatNumber(value, decimals)}
50
+ </Text>
51
+ </Space>
52
+ );
53
+
54
+ const NotificationOptions = {
55
+ head: messageInfo => {
56
+ const { rows, cols, count, numberCount } = messageInfo;
57
+
58
+ return (
59
+ <div>
60
+ <Space size="middle" wrap>
61
+ <StatItem
62
+ icon={<TableOutlined />}
63
+ label="Řádky"
64
+ value={rows}
65
+ decimals={0}
66
+ color="#1890ff"
67
+ />
68
+ <StatItem
69
+ icon={<TableOutlined />}
70
+ label="Sloupce"
71
+ value={cols}
72
+ decimals={0}
73
+ color="#1890ff"
74
+ />
75
+ <StatItem
76
+ icon={<CalculatorOutlined />}
77
+ label="Označeno buněk"
78
+ value={count}
79
+ decimals={0}
80
+ color="#722ed1"
81
+ />
82
+ {numberCount > 0 && (
83
+ <StatItem
84
+ icon={<CalculatorOutlined />}
85
+ label="Číselné hodnoty"
86
+ value={numberCount}
87
+ decimals={0}
88
+ color="#13c2c2"
89
+ />
90
+ )}
91
+ </Space>
92
+ </div>
93
+ );
94
+ },
95
+
96
+ body: messageInfo => {
97
+ const {
98
+ sum,
99
+ min,
100
+ max,
101
+ avg,
102
+ median,
103
+ range,
104
+ square,
105
+ cubic,
106
+ earliest,
107
+ latest,
108
+ dateRange,
109
+ numberCount,
110
+ textCount,
111
+ uniqueTextCount,
112
+ hasDuplicates,
113
+ valueFrequencies,
114
+ cols,
115
+ currencySymbol,
116
+ hasMixedCurrencies
117
+ } = messageInfo;
118
+
119
+ const hasNumbers = numberCount > 0;
120
+ const hasDateValues = earliest && latest;
121
+ const hasGeometry = cols === 2 || cols === 3;
122
+ const hasFrequencies = valueFrequencies && valueFrequencies.length > 0;
123
+
124
+ const squareMeters = square ? (square / 10000) : null;
125
+ const cubicMeters = cubic ? (cubic / 1000000) : null;
126
+
127
+ return (
128
+ <div style={{ paddingTop: '8px' }}>
129
+ {/* Číselné statistiky */}
130
+ {hasNumbers && (
131
+ <>
132
+ <Row gutter={[16, 8]}>
133
+ <Col span={12}>
134
+ <StatItem
135
+ icon={<CalculatorOutlined />}
136
+ label="Součet"
137
+ value={sum}
138
+ color="#52c41a"
139
+ currencySymbol={currencySymbol}
140
+ hasMixed={hasMixedCurrencies}
141
+ />
142
+ </Col>
143
+ <Col span={12}>
144
+ <StatItem
145
+ icon={<LineChartOutlined />}
146
+ label="Průměr"
147
+ value={avg}
148
+ color="#fa8c16"
149
+ currencySymbol={currencySymbol}
150
+ hasMixed={hasMixedCurrencies}
151
+ />
152
+ </Col>
153
+ </Row>
154
+
155
+ <Row gutter={[16, 8]} style={{ marginTop: '8px' }}>
156
+ <Col span={12}>
157
+ <StatItem
158
+ icon={<FallOutlined />}
159
+ label="Minimum"
160
+ value={min}
161
+ color="#ff4d4f"
162
+ currencySymbol={currencySymbol}
163
+ hasMixed={hasMixedCurrencies}
164
+ />
165
+ </Col>
166
+ <Col span={12}>
167
+ <StatItem
168
+ icon={<RiseOutlined />}
169
+ label="Maximum"
170
+ value={max}
171
+ color="#52c41a"
172
+ currencySymbol={currencySymbol}
173
+ hasMixed={hasMixedCurrencies}
174
+ />
175
+ </Col>
176
+ </Row>
177
+
178
+ <Row gutter={[16, 8]} style={{ marginTop: '8px' }}>
179
+ <Col span={12}>
180
+ <StatItem
181
+ icon={<LineChartOutlined />}
182
+ label="Medián"
183
+ value={median}
184
+ color="#722ed1"
185
+ currencySymbol={currencySymbol}
186
+ hasMixed={hasMixedCurrencies}
187
+ />
188
+ </Col>
189
+ <Col span={12}>
190
+ <StatItem
191
+ icon={<SwapOutlined />}
192
+ label="Rozpětí"
193
+ value={range}
194
+ color="#13c2c2"
195
+ currencySymbol={currencySymbol}
196
+ hasMixed={hasMixedCurrencies}
197
+ />
198
+ </Col>
199
+ </Row>
200
+
201
+ {hasMixedCurrencies && (
202
+ <Row gutter={[16, 8]} style={{ marginTop: '8px' }}>
203
+ <Col span={24}>
204
+ <Text style={{ fontSize: '11px', color: '#fa8c16', fontStyle: 'italic' }}>
205
+ * Pozor: Výběr obsahuje více měn. Zobrazena primární měna.
206
+ </Text>
207
+ </Col>
208
+ </Row>
209
+ )}
210
+ </>
211
+ )}
212
+
213
+ {/* Geometrické výpočty */}
214
+ {hasGeometry && hasNumbers && (
215
+ <>
216
+ <Divider style={{ margin: '12px 0' }} />
217
+ <Row gutter={[16, 8]}>
218
+ {cols === 2 && squareMeters !== null && (
219
+ <Col span={12}>
220
+ <Space size="small">
221
+ <Text strong style={{ fontSize: '12px' }}>Plocha (m²):</Text>
222
+ <Text style={{ fontSize: '13px', fontWeight: 500 }}>
223
+ {formatNumber(squareMeters)}
224
+ </Text>
225
+ </Space>
226
+ </Col>
227
+ )}
228
+ {cols === 3 && cubicMeters !== null && (
229
+ <Col span={12}>
230
+ <Space size="small">
231
+ <Text strong style={{ fontSize: '12px' }}>Objem (m³):</Text>
232
+ <Text style={{ fontSize: '13px', fontWeight: 500 }}>
233
+ {formatNumber(cubicMeters)}
234
+ </Text>
235
+ </Space>
236
+ </Col>
237
+ )}
238
+ </Row>
239
+ </>
240
+ )}
241
+
242
+ {/* Datové informace */}
243
+ {hasDateValues && (
244
+ <>
245
+ <Divider style={{ margin: '12px 0' }} />
246
+ <Row gutter={[16, 8]}>
247
+ <Col span={24}>
248
+ <Space size="small">
249
+ <CalendarOutlined style={{ color: '#1890ff', fontSize: '16px' }} />
250
+ <Text strong style={{ fontSize: '12px' }}>Nejdříve:</Text>
251
+ <Text style={{ fontSize: '13px' }}>
252
+ {new Date(earliest).toLocaleString('cs-CZ')}
253
+ </Text>
254
+ </Space>
255
+ </Col>
256
+ <Col span={24} style={{ marginTop: '4px' }}>
257
+ <Space size="small">
258
+ <CalendarOutlined style={{ color: '#1890ff', fontSize: '16px' }} />
259
+ <Text strong style={{ fontSize: '12px' }}>Nejpozději:</Text>
260
+ <Text style={{ fontSize: '13px' }}>
261
+ {new Date(latest).toLocaleString('cs-CZ')}
262
+ </Text>
263
+ </Space>
264
+ </Col>
265
+ {dateRange !== null && dateRange > 0 && (
266
+ <Col span={24} style={{ marginTop: '4px' }}>
267
+ <Space size="small">
268
+ <SwapOutlined style={{ color: '#722ed1', fontSize: '16px' }} />
269
+ <Text strong style={{ fontSize: '12px' }}>Rozpětí:</Text>
270
+ <Text style={{ fontSize: '13px' }}>
271
+ {dateRange} {dateRange === 1 ? 'den' : dateRange < 5 ? 'dny' : 'dní'}
272
+ </Text>
273
+ </Space>
274
+ </Col>
275
+ )}
276
+ </Row>
277
+ </>
278
+ )}
279
+
280
+ {/* Frekvenční analýza textových hodnot */}
281
+ {hasFrequencies && (
282
+ <>
283
+ <Divider style={{ margin: '12px 0' }} />
284
+ <div>
285
+ <Space size="small" style={{ marginBottom: '8px' }}>
286
+ <BarChartOutlined style={{ color: '#1890ff', fontSize: '16px' }} />
287
+ <Text strong style={{ fontSize: '12px' }}>
288
+ Nejčastější hodnoty ({textCount} hodnot, {uniqueTextCount} unikátních)
289
+ </Text>
290
+ </Space>
291
+
292
+ <div style={{ marginTop: '8px', maxHeight: '200px', overflowY: 'auto', overflowX: 'hidden' }}>
293
+ {valueFrequencies.slice(0, 10).map((item, index) => {
294
+ const isTop = index < 3;
295
+ const color = isTop
296
+ ? (index === 0 ? '#52c41a' : index === 1 ? '#1890ff' : '#fa8c16')
297
+ : '#8c8c8c';
298
+
299
+ return (
300
+ <div key={index} style={{ marginBottom: '6px' }}>
301
+ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
302
+ <div style={{ flex: '0 0 auto' }}>
303
+ <CheckCircleOutlined style={{ color, fontSize: '14px' }} />
304
+ </div>
305
+ <div style={{ flex: '1 1 auto', minWidth: 0 }}>
306
+ <Text
307
+ ellipsis={{ tooltip: item.value }}
308
+ style={{
309
+ fontSize: '12px',
310
+ fontWeight: isTop ? 500 : 400,
311
+ display: 'block'
312
+ }}
313
+ >
314
+ "{item.value}"
315
+ </Text>
316
+ </div>
317
+ <div style={{ flex: '0 0 auto', whiteSpace: 'nowrap' }}>
318
+ <Text style={{ fontSize: '12px', color: '#595959' }}>
319
+ {item.count}× ({item.percentage.toFixed(1)}%)
320
+ </Text>
321
+ </div>
322
+ </div>
323
+ <div style={{ marginLeft: '22px', marginTop: '2px' }}>
324
+ <Progress
325
+ percent={item.percentage}
326
+ size="small"
327
+ showInfo={false}
328
+ strokeColor={color}
329
+ />
330
+ </div>
331
+ </div>
332
+ );
333
+ })}
334
+
335
+ {valueFrequencies.length > 10 && (
336
+ <Text style={{ fontSize: '11px', color: '#8c8c8c', fontStyle: 'italic' }}>
337
+ ... a dalších {valueFrequencies.length - 10} hodnot
338
+ </Text>
339
+ )}
340
+ </div>
341
+ </div>
342
+ </>
343
+ )}
344
+ </div>
345
+ );
346
+ },
347
+
348
+ style: {
349
+ width: 600,
350
+ maxWidth: '90vw'
351
+ },
352
+ placement: 'bottomRight'
353
+ };
354
+
355
+ export default NotificationOptions;
@@ -0,0 +1,3 @@
1
+ export default AggregationNotification;
2
+ declare const AggregationNotification: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
3
+ import React from 'react';
@@ -1,107 +1,80 @@
1
- "use strict";
2
- // import React, { useState } from 'react';
3
- // import PropTypes from 'prop-types';
4
- // import classnames from 'classnames';
5
- // import { makeStyles } from '@material-ui/core/styles';
6
- // import { useSnackbar } from 'notistack';
7
- // import Collapse from '@material-ui/core/Collapse';
8
- // import Paper from '@material-ui/core/Paper';
9
- // import Typography from '@material-ui/core/Typography';
10
- // import Card from '@material-ui/core/Card';
11
- // import CardActions from '@material-ui/core/CardActions';
12
- // import Button from '@material-ui/core/Button';
13
- // import IconButton from '@material-ui/core/IconButton';
14
- // import CloseIcon from '@material-ui/icons/Close';
15
- // import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
16
- // import CheckCircleIcon from '@material-ui/icons/CheckCircle';
17
- // import moment from 'moment';
18
- // const useStyles = makeStyles(theme => ({
19
- // card: {
20
- // display: 'flex',
21
- // flexDirection: 'column',
22
- // flexWrap: 'wrap',
23
- // flexGrow: 1,
24
- // backgroundColor: '#fddc6c',
25
- // [theme.breakpoints.up('sm')]: {
26
- // flexGrow: 'initial',
27
- // minWidth: 344,
28
- // },
29
- // },
30
- // // typography: {
31
- // // fontWeight: 'bold',
32
- // // },
33
- // actionRoot: {
34
- // padding: '8px 8px 8px 16px',
35
- // },
36
- // icons: {
37
- // marginLeft: 'auto',
38
- // },
39
- // expand: {
40
- // padding: '8px 8px',
41
- // transform: 'rotate(0deg)',
42
- // transition: theme.transitions.create('transform', {
43
- // duration: theme.transitions.duration.shortest,
44
- // }),
45
- // },
46
- // expandOpen: {
47
- // transform: 'rotate(180deg)',
48
- // },
49
- // collapse: {
50
- // padding: 16,
51
- // },
52
- // checkIcon: {
53
- // fontSize: 20,
54
- // color: '#b3b3b3',
55
- // paddingRight: 4,
56
- // },
57
- // button: {
58
- // padding: 0,
59
- // textTransform: 'none',
60
- // },
61
- // }));
62
- // const AggregationNotification = React.forwardRef((props, ref) => {
63
- // const classes = useStyles();
64
- // const { closeSnackbar } = useSnackbar();
65
- // const expanded = true;
66
- // const {length, count, sum, max, min, avg, volume2d, volume3d, earliest, latest, isDate, dateCount} = props.messageInfo;
67
- // const handleDismiss = () => {
68
- // closeSnackbar(props.id);
69
- // };
70
- // return (
71
- // <Card className={classes.card} ref={ref}>
72
- // <CardActions classes={{ root: classes.actionRoot }}>
73
- // <Typography variant="subtitle2">Selected {length} items</Typography>
74
- // <div className={classes.icons}>
75
- // <IconButton className={classes.expand} onClick={handleDismiss}>
76
- // <CloseIcon />
77
- // </IconButton>
78
- // </div>
79
- // </CardActions>
80
- // <Collapse in={expanded} timeout="auto" unmountOnExit>
81
- // {props.showNumber && count > 0 ? (
82
- // <Paper className={classes.collapse}>
83
- // { !isNaN(parseFloat(count)) ? (<span><b>Count:</b> {parseFloat(count)}</span>) : (<span />) }
84
- // { !isNaN(parseFloat(sum)) ? (<span className="ml-2"><b>Sum:</b> {parseFloat(sum).toFixed(2)}</span>) : (<span />) }
85
- // { !isNaN(parseFloat(min)) ? (<span className="ml-2"><b> Min:</b> {parseFloat(min).toFixed(2)}</span>) : (<span />) }
86
- // { !isNaN(parseFloat(max)) ? (<span className="ml-2"><b> Max:</b> {parseFloat(max).toFixed(2)}</span>) : (<span />) }
87
- // { !isNaN(parseFloat(avg)) ? (<span className="ml-2"><b> Avg:</b> {parseFloat(avg).toFixed(2)}</span>) : (<span />) }
88
- // { !isNaN(parseFloat(volume2d)) ? (<span className="ml-2"><b> 2d:</b> {parseFloat(volume2d).toFixed(2)}</span>) : (<span />) }
89
- // { !isNaN(parseFloat(volume3d)) ? (<span className="ml-2"><b> 3d:</b> {parseFloat(volume3d).toFixed(2)}</span>) : (<span />) }
90
- // </Paper>
91
- // ) : (<div />)}
92
- // {props.showDate && isDate ? (
93
- // <Paper className={classes.collapse}>
94
- // <span><b>Count:</b> {parseFloat(dateCount)}</span>
95
- // <span className="ml-2"><b>Earliest:</b> {moment(Date.parse(earliest)).format("DD.MM.YY HH:mm:SS")}</span>
96
- // <span className="ml-2"><b>Latest:</b> {moment(Date.parse(latest)).format("DD.MM.YY HH:mm:SS")}</span>
97
- // </Paper>
98
- // ) : (<div />)}
99
- // </Collapse>
100
- // </Card>
101
- // );
102
- // });
103
- // AggregationNotification.propTypes = {
104
- // id: PropTypes.number.isRequired,
105
- // };
106
- // export default AggregationNotification;
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ /* eslint-disable */
3
+ import React, { useState } from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import classnames from 'classnames';
6
+ import { makeStyles } from '@material-ui/core/styles';
7
+ import { useSnackbar } from 'notistack';
8
+ import Collapse from '@material-ui/core/Collapse';
9
+ import Paper from '@material-ui/core/Paper';
10
+ import Typography from '@material-ui/core/Typography';
11
+ import Card from '@material-ui/core/Card';
12
+ import CardActions from '@material-ui/core/CardActions';
13
+ import Button from '@material-ui/core/Button';
14
+ import IconButton from '@material-ui/core/IconButton';
15
+ import CloseIcon from '@material-ui/icons/Close';
16
+ import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
17
+ import CheckCircleIcon from '@material-ui/icons/CheckCircle';
18
+ import moment from 'moment';
19
+ const useStyles = makeStyles(theme => ({
20
+ card: {
21
+ display: 'flex',
22
+ flexDirection: 'column',
23
+ flexWrap: 'wrap',
24
+ flexGrow: 1,
25
+ backgroundColor: '#fddc6c',
26
+ [theme.breakpoints.up('sm')]: {
27
+ flexGrow: 'initial',
28
+ minWidth: 344,
29
+ },
30
+ },
31
+ // typography: {
32
+ // fontWeight: 'bold',
33
+ // },
34
+ actionRoot: {
35
+ padding: '8px 8px 8px 16px',
36
+ },
37
+ icons: {
38
+ marginLeft: 'auto',
39
+ },
40
+ expand: {
41
+ padding: '8px 8px',
42
+ transform: 'rotate(0deg)',
43
+ transition: theme.transitions.create('transform', {
44
+ duration: theme.transitions.duration.shortest,
45
+ }),
46
+ },
47
+ expandOpen: {
48
+ transform: 'rotate(180deg)',
49
+ },
50
+ collapse: {
51
+ padding: 16,
52
+ },
53
+ checkIcon: {
54
+ fontSize: 20,
55
+ color: '#b3b3b3',
56
+ paddingRight: 4,
57
+ },
58
+ button: {
59
+ padding: 0,
60
+ textTransform: 'none',
61
+ },
62
+ }));
63
+ const AggregationNotification = React.forwardRef((props, ref) => {
64
+ const classes = useStyles();
65
+ const { closeSnackbar } = useSnackbar();
66
+ const expanded = true;
67
+ // Aktualizované props pro novou verzi AG Grid aggregací
68
+ const { count, sum, max, min, avg, square, cubic, earliest, latest, rows, cols } = props.messageInfo;
69
+ const length = count || 0;
70
+ const isDate = earliest && latest;
71
+ const handleDismiss = () => {
72
+ closeSnackbar(props.id);
73
+ };
74
+ return (_jsxs(Card, { className: classes.card, ref: ref, children: [_jsxs(CardActions, { classes: { root: classes.actionRoot }, children: [_jsxs(Typography, { variant: "subtitle2", children: ["Ozna\u010Deno ", rows, " \u0159\u00E1dk\u016F, ", cols, " sloupc\u016F (", length, " bun\u011Bk)"] }), _jsx("div", { className: classes.icons, children: _jsx(IconButton, { className: classes.expand, onClick: handleDismiss, children: _jsx(CloseIcon, {}) }) })] }), _jsxs(Collapse, { in: expanded, timeout: "auto", unmountOnExit: true, children: [props.showNumber && count > 0 ? (_jsxs(Paper, { className: classes.collapse, children: [!isNaN(parseFloat(count)) ? (_jsxs("span", { children: [_jsx("b", { children: "Po\u010Det:" }), " ", parseFloat(count)] })) : (_jsx("span", {})), !isNaN(parseFloat(sum)) ? (_jsxs("span", { className: "ml-2", children: [_jsx("b", { children: "Sou\u010Det:" }), " ", parseFloat(sum).toFixed(2)] })) : (_jsx("span", {})), !isNaN(parseFloat(min)) ? (_jsxs("span", { className: "ml-2", children: [_jsx("b", { children: "Min:" }), " ", parseFloat(min).toFixed(2)] })) : (_jsx("span", {})), !isNaN(parseFloat(max)) ? (_jsxs("span", { className: "ml-2", children: [_jsx("b", { children: "Max:" }), " ", parseFloat(max).toFixed(2)] })) : (_jsx("span", {})), !isNaN(parseFloat(avg)) ? (_jsxs("span", { className: "ml-2", children: [_jsx("b", { children: "Pr\u016Fm\u011Br:" }), " ", parseFloat(avg).toFixed(2)] })) : (_jsx("span", {})), !isNaN(parseFloat(square)) ? (_jsxs("span", { className: "ml-2", children: [_jsx("b", { children: "2D:" }), " ", parseFloat(square).toFixed(2)] })) : (_jsx("span", {})), !isNaN(parseFloat(cubic)) ? (_jsxs("span", { className: "ml-2", children: [_jsx("b", { children: "3D:" }), " ", parseFloat(cubic).toFixed(2)] })) : (_jsx("span", {}))] })) : (_jsx("div", {})), props.showDate && isDate ? (_jsxs(Paper, { className: classes.collapse, children: [_jsxs("span", { children: [_jsx("b", { children: "Nejd\u0159\u00EDve:" }), " ", moment(earliest).format("DD.MM.YY HH:mm:ss")] }), _jsxs("span", { className: "ml-2", children: [_jsx("b", { children: "Nejpozd\u011Bji:" }), " ", moment(latest).format("DD.MM.YY HH:mm:ss")] })] })) : (_jsx("div", {}))] })] }));
75
+ });
76
+ AggregationNotification.propTypes = {
77
+ id: PropTypes.number.isRequired,
78
+ };
79
+ export default AggregationNotification;
107
80
  //# sourceMappingURL=AggregationNotification.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AggregationNotification.js","sourceRoot":"","sources":["../AggregationNotification.js"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,sCAAsC;AACtC,uCAAuC;AACvC,yDAAyD;AACzD,2CAA2C;AAC3C,qDAAqD;AACrD,+CAA+C;AAC/C,yDAAyD;AACzD,6CAA6C;AAC7C,2DAA2D;AAC3D,iDAAiD;AACjD,yDAAyD;AACzD,oDAAoD;AACpD,8DAA8D;AAC9D,gEAAgE;AAChE,+BAA+B;AAE/B,2CAA2C;AAC3C,cAAc;AACd,2BAA2B;AAC3B,mC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AAC;AACN,CAAC,CAAC,CAAC;AAEH,uBAAuB,CAAC,SAAS,GAAG;IAChC,EAAE,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;CAClC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -1,25 +1 @@
1
- export default function Aggregations(gridRef: any): {
2
- sum?: undefined;
3
- min?: undefined;
4
- max?: undefined;
5
- avg?: undefined;
6
- count?: undefined;
7
- square?: undefined;
8
- cubic?: undefined;
9
- earliest?: undefined;
10
- latest?: undefined;
11
- rows?: undefined;
12
- cols?: undefined;
13
- } | {
14
- sum: null;
15
- min: null;
16
- max: null;
17
- avg: null;
18
- count: number;
19
- square: number;
20
- cubic: number;
21
- earliest: undefined;
22
- latest: undefined;
23
- rows: number;
24
- cols: number;
25
- };
1
+ export default function Aggregations(gridRef: any): {};