@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,3 +0,0 @@
1
- export default AggregationNotification;
2
- declare const AggregationNotification: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
3
- import React from 'react';
@@ -1,5 +1,8 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
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
- // fontWeight: 'bold',
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 { count, sum, max, min, avg, square, cubic, earliest, latest, rows, cols } = props.messageInfo;
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
- 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", {}))] })] }));
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,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,QAAQ,MAAM,4BAA4B,CAAC;AAClD,OAAO,KAAK,MAAM,yBAAyB,CAAC;AAC5C,OAAO,UAAU,MAAM,8BAA8B,CAAC;AACtD,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,WAAW,MAAM,+BAA+B,CAAC;AACxD,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,UAAU,MAAM,8BAA8B,CAAC;AACtD,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,cAAc,MAAM,+BAA+B,CA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CAAC,gBAAM,SAAS,EAAC,MAAM,aAAC,8BAAU,OAAE,UAAU,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAQ,CAAC,IAChH,CACX,CAAC,CAAC,CAAC,CAAC,eAAO,CAAC,EAEZ,KAAK,CAAC,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,CACxB,MAAC,KAAK,IAAC,SAAS,EAAE,OAAO,CAAC,QAAQ,aAC9B,2BAAM,8CAAgB,OAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,IAAQ,EAC5E,gBAAM,SAAS,EAAC,MAAM,aAAC,2CAAkB,OAAE,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,IAAQ,IACzF,CACX,CAAC,CAAC,CAAC,CAAC,eAAO,CAAC,IACN,IACR,CACV,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,uBAAuB,CAAC,SAAS,GAAG;IAChC,EAAE,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;CAClC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
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.35",
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.35"
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.53",
19
+ "@bit.rhplus/ui.grid": "0.0.54",
24
20
  "@bit.rhplus/linq": "0.0.8"
25
21
  },
26
22
  "devDependencies": {