eionet2-dashboard 3.2.1 → 3.2.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.
- package/CHANGELOG.md +37 -0
- package/Jenkinsfile +2 -5
- package/api/getGraphData/index.js +3 -4
- package/package.json +2 -2
- package/tabs/package-lock.json +2927 -1866
- package/tabs/package.json +3 -3
- package/tabs/public/auth-start.html +2 -2
- package/tabs/src/components/App.test.jsx +67 -0
- package/tabs/src/components/BottomMenu.test.jsx +94 -0
- package/tabs/src/components/CustomColumnResizeIcon.jsx +1 -1
- package/tabs/src/components/CustomColumnResizeIcon.test.jsx +17 -0
- package/tabs/src/components/CustomDrawer.test.jsx +14 -0
- package/tabs/src/components/EventDialogTitle.test.jsx +25 -0
- package/tabs/src/components/HtmlBox.test.jsx +41 -0
- package/tabs/src/components/Privacy.test.jsx +11 -0
- package/tabs/src/components/ResizableGrid.test.jsx +64 -0
- package/tabs/src/components/Tab.test.jsx +463 -0
- package/tabs/src/components/TabConfig.test.jsx +27 -0
- package/tabs/src/components/TabPanel.test.jsx +31 -0
- package/tabs/src/components/TermsOfUse.test.jsx +11 -0
- package/tabs/src/components/UnderConstruction.test.jsx +13 -0
- package/tabs/src/components/UserMenu.test.jsx +53 -0
- package/tabs/src/components/activity/Activity.test.jsx +218 -0
- package/tabs/src/components/activity/ConsultationList.test.jsx +114 -0
- package/tabs/src/components/activity/EventList.test.jsx +164 -0
- package/tabs/src/components/activity/GroupsTags.test.jsx +23 -0
- package/tabs/src/components/activity/ObligationList.test.jsx +46 -0
- package/tabs/src/components/activity/PublicationList.test.jsx +46 -0
- package/tabs/src/components/activity/Reporting.test.jsx +11 -0
- package/tabs/src/components/event_rating/EventRating.test.jsx +63 -0
- package/tabs/src/components/event_rating/EventRatingDialog.test.jsx +28 -0
- package/tabs/src/components/event_registration/Approval.test.jsx +25 -0
- package/tabs/src/components/event_registration/ApprovalDialog.test.jsx +25 -0
- package/tabs/src/components/event_registration/ApprovalList.test.jsx +36 -0
- package/tabs/src/components/event_registration/EventExternalRegistration.test.jsx +219 -0
- package/tabs/src/components/event_registration/EventRegistration.test.jsx +208 -0
- package/tabs/src/components/my_country/AtAGlance.test.jsx +157 -0
- package/tabs/src/components/my_country/CountryMembers.test.jsx +117 -0
- package/tabs/src/components/my_country/CountryProgress.test.jsx +21 -0
- package/tabs/src/components/my_country/DataReporters.jsx +2 -3
- package/tabs/src/components/my_country/DataReporters.test.jsx +155 -0
- package/tabs/src/components/my_country/FullCircularProgress.test.jsx +19 -0
- package/tabs/src/components/my_country/GroupView.test.jsx +165 -0
- package/tabs/src/components/my_country/GroupsBoard.test.jsx +30 -0
- package/tabs/src/components/my_country/IndicatorCard.test.jsx +27 -0
- package/tabs/src/components/my_country/ManagementBoard.test.jsx +119 -0
- package/tabs/src/components/my_country/MyCountry.test.jsx +220 -0
- package/tabs/src/components/my_country/ProgressGauge.test.jsx +34 -0
- package/tabs/src/components/my_country/ScientificCommittee.test.jsx +11 -0
- package/tabs/src/components/my_country/UserCard.test.jsx +24 -0
- package/tabs/src/components/my_country/YearlyProgress.test.jsx +33 -0
- package/tabs/src/components/self_service/UserEdit.test.jsx +213 -0
- package/tabs/src/data/apiProvider.test.js +228 -0
- package/tabs/src/data/icsHelper.test.js +76 -0
- package/tabs/src/data/provider.test.js +351 -0
- package/tabs/src/data/reportingProvider.test.js +103 -0
- package/tabs/src/data/selfServiceProvider.test.js +108 -0
- package/tabs/src/data/selfServiceSharepointProvider.test.js +100 -0
- package/tabs/src/data/sharepointProvider.test.js +669 -0
- package/tabs/src/data/validator.test.js +34 -2
- package/tabs/yarn.lock +415 -414
- package/tabs/src/components/CustomGridToolbar.jsx +0 -202
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
// import * as React from 'react';
|
|
2
|
-
// import { styled } from '@mui/material/styles';
|
|
3
|
-
// import {
|
|
4
|
-
// DataGrid,
|
|
5
|
-
// Toolbar,
|
|
6
|
-
// ToolbarButton,
|
|
7
|
-
// ColumnsPanelTrigger,
|
|
8
|
-
// FilterPanelTrigger,
|
|
9
|
-
// ExportCsv,
|
|
10
|
-
// ExportPrint,
|
|
11
|
-
// QuickFilter,
|
|
12
|
-
// QuickFilterControl,
|
|
13
|
-
// QuickFilterClear,
|
|
14
|
-
// QuickFilterTrigger,
|
|
15
|
-
// } from '@mui/x-data-grid';
|
|
16
|
-
// import { useDemoData } from '@mui/x-data-grid-generator';
|
|
17
|
-
// import Tooltip from '@mui/material/Tooltip';
|
|
18
|
-
// import Menu from '@mui/material/Menu';
|
|
19
|
-
// import Badge from '@mui/material/Badge';
|
|
20
|
-
// import ViewColumnIcon from '@mui/icons-material/ViewColumn';
|
|
21
|
-
// import FilterListIcon from '@mui/icons-material/FilterList';
|
|
22
|
-
// import FileDownloadIcon from '@mui/icons-material/FileDownload';
|
|
23
|
-
// import MenuItem from '@mui/material/MenuItem';
|
|
24
|
-
// import Divider from '@mui/material/Divider';
|
|
25
|
-
// import TextField from '@mui/material/TextField';
|
|
26
|
-
// import InputAdornment from '@mui/material/InputAdornment';
|
|
27
|
-
// import CancelIcon from '@mui/icons-material/Cancel';
|
|
28
|
-
// import SearchIcon from '@mui/icons-material/Search';
|
|
29
|
-
// import Typography from '@mui/material/Typography';
|
|
30
|
-
|
|
31
|
-
// type OwnerState = {
|
|
32
|
-
// expanded: boolean;
|
|
33
|
-
// };
|
|
34
|
-
|
|
35
|
-
// const StyledQuickFilter = styled(QuickFilter)({
|
|
36
|
-
// display: 'grid',
|
|
37
|
-
// alignItems: 'center',
|
|
38
|
-
// });
|
|
39
|
-
|
|
40
|
-
// const StyledToolbarButton = styled(ToolbarButton)<{ ownerState: OwnerState }>(
|
|
41
|
-
// ({ theme, ownerState }) => ({
|
|
42
|
-
// gridArea: '1 / 1',
|
|
43
|
-
// width: 'min-content',
|
|
44
|
-
// height: 'min-content',
|
|
45
|
-
// zIndex: 1,
|
|
46
|
-
// opacity: ownerState.expanded ? 0 : 1,
|
|
47
|
-
// pointerEvents: ownerState.expanded ? 'none' : 'auto',
|
|
48
|
-
// transition: theme.transitions.create(['opacity']),
|
|
49
|
-
// }),
|
|
50
|
-
// );
|
|
51
|
-
|
|
52
|
-
// const StyledTextField = styled(TextField)<{
|
|
53
|
-
// ownerState: OwnerState;
|
|
54
|
-
// }>(({ theme, ownerState }) => ({
|
|
55
|
-
// gridArea: '1 / 1',
|
|
56
|
-
// overflowX: 'clip',
|
|
57
|
-
// width: ownerState.expanded ? 260 : 'var(--trigger-width)',
|
|
58
|
-
// opacity: ownerState.expanded ? 1 : 0,
|
|
59
|
-
// transition: theme.transitions.create(['width', 'opacity']),
|
|
60
|
-
// }));
|
|
61
|
-
|
|
62
|
-
// function CustomToolbar() {
|
|
63
|
-
// const [exportMenuOpen, setExportMenuOpen] = React.useState(false);
|
|
64
|
-
// const exportMenuTriggerRef = React.useRef<HTMLButtonElement>(null);
|
|
65
|
-
|
|
66
|
-
// return (
|
|
67
|
-
// <Toolbar>
|
|
68
|
-
// <Typography fontWeight="medium" sx={{ flex: 1, mx: 0.5 }}>
|
|
69
|
-
// Toolbar
|
|
70
|
-
// </Typography>
|
|
71
|
-
|
|
72
|
-
// <Tooltip title="Columns">
|
|
73
|
-
// <ColumnsPanelTrigger render={<ToolbarButton />}>
|
|
74
|
-
// <ViewColumnIcon fontSize="small" />
|
|
75
|
-
// </ColumnsPanelTrigger>
|
|
76
|
-
// </Tooltip>
|
|
77
|
-
|
|
78
|
-
// <Tooltip title="Filters">
|
|
79
|
-
// <FilterPanelTrigger
|
|
80
|
-
// render={(props, state) => (
|
|
81
|
-
// <ToolbarButton {...props} color="default">
|
|
82
|
-
// <Badge badgeContent={state.filterCount} color="primary" variant="dot">
|
|
83
|
-
// <FilterListIcon fontSize="small" />
|
|
84
|
-
// </Badge>
|
|
85
|
-
// </ToolbarButton>
|
|
86
|
-
// )}
|
|
87
|
-
// />
|
|
88
|
-
// </Tooltip>
|
|
89
|
-
|
|
90
|
-
// <Divider orientation="vertical" variant="middle" flexItem sx={{ mx: 0.5 }} />
|
|
91
|
-
|
|
92
|
-
// <Tooltip title="Export">
|
|
93
|
-
// <ToolbarButton
|
|
94
|
-
// ref={exportMenuTriggerRef}
|
|
95
|
-
// id="export-menu-trigger"
|
|
96
|
-
// aria-controls="export-menu"
|
|
97
|
-
// aria-haspopup="true"
|
|
98
|
-
// aria-expanded={exportMenuOpen ? 'true' : undefined}
|
|
99
|
-
// onClick={() => setExportMenuOpen(true)}
|
|
100
|
-
// >
|
|
101
|
-
// <FileDownloadIcon fontSize="small" />
|
|
102
|
-
// </ToolbarButton>
|
|
103
|
-
// </Tooltip>
|
|
104
|
-
|
|
105
|
-
// <Menu
|
|
106
|
-
// id="export-menu"
|
|
107
|
-
// anchorEl={exportMenuTriggerRef.current}
|
|
108
|
-
// open={exportMenuOpen}
|
|
109
|
-
// onClose={() => setExportMenuOpen(false)}
|
|
110
|
-
// anchorOrigin={{ vertical: 'bottom', horizontal: 'right' }}
|
|
111
|
-
// transformOrigin={{ vertical: 'top', horizontal: 'right' }}
|
|
112
|
-
// slotProps={{
|
|
113
|
-
// list: {
|
|
114
|
-
// 'aria-labelledby': 'export-menu-trigger',
|
|
115
|
-
// },
|
|
116
|
-
// }}
|
|
117
|
-
// >
|
|
118
|
-
// <ExportPrint render={<MenuItem />} onClick={() => setExportMenuOpen(false)}>
|
|
119
|
-
// Print
|
|
120
|
-
// </ExportPrint>
|
|
121
|
-
// <ExportCsv render={<MenuItem />} onClick={() => setExportMenuOpen(false)}>
|
|
122
|
-
// Download as CSV
|
|
123
|
-
// </ExportCsv>
|
|
124
|
-
// {/* Available to MUI X Premium users */}
|
|
125
|
-
// {/* <ExportExcel render={<MenuItem />}>
|
|
126
|
-
// Download as Excel
|
|
127
|
-
// </ExportExcel> */}
|
|
128
|
-
// </Menu>
|
|
129
|
-
|
|
130
|
-
// <StyledQuickFilter>
|
|
131
|
-
// <QuickFilterTrigger
|
|
132
|
-
// render={(triggerProps, state) => (
|
|
133
|
-
// <Tooltip title="Search" enterDelay={0}>
|
|
134
|
-
// <StyledToolbarButton
|
|
135
|
-
// {...triggerProps}
|
|
136
|
-
// ownerState={{ expanded: state.expanded }}
|
|
137
|
-
// color="default"
|
|
138
|
-
// aria-disabled={state.expanded}
|
|
139
|
-
// >
|
|
140
|
-
// <SearchIcon fontSize="small" />
|
|
141
|
-
// </StyledToolbarButton>
|
|
142
|
-
// </Tooltip>
|
|
143
|
-
// )}
|
|
144
|
-
// />
|
|
145
|
-
// <QuickFilterControl
|
|
146
|
-
// render={({ ref, ...controlProps }, state) => (
|
|
147
|
-
// <StyledTextField
|
|
148
|
-
// {...controlProps}
|
|
149
|
-
// ownerState={{ expanded: state.expanded }}
|
|
150
|
-
// inputRef={ref}
|
|
151
|
-
// aria-label="Search"
|
|
152
|
-
// placeholder="Search..."
|
|
153
|
-
// size="small"
|
|
154
|
-
// slotProps={{
|
|
155
|
-
// input: {
|
|
156
|
-
// startAdornment: (
|
|
157
|
-
// <InputAdornment position="start">
|
|
158
|
-
// <SearchIcon fontSize="small" />
|
|
159
|
-
// </InputAdornment>
|
|
160
|
-
// ),
|
|
161
|
-
// endAdornment: state.value ? (
|
|
162
|
-
// <InputAdornment position="end">
|
|
163
|
-
// <QuickFilterClear
|
|
164
|
-
// edge="end"
|
|
165
|
-
// size="small"
|
|
166
|
-
// aria-label="Clear search"
|
|
167
|
-
// material={{ sx: { marginRight: -0.75 } }}
|
|
168
|
-
// >
|
|
169
|
-
// <CancelIcon fontSize="small" />
|
|
170
|
-
// </QuickFilterClear>
|
|
171
|
-
// </InputAdornment>
|
|
172
|
-
// ) : null,
|
|
173
|
-
// ...controlProps.slotProps?.input,
|
|
174
|
-
// },
|
|
175
|
-
// ...controlProps.slotProps,
|
|
176
|
-
// }}
|
|
177
|
-
// />
|
|
178
|
-
// )}
|
|
179
|
-
// />
|
|
180
|
-
// </StyledQuickFilter>
|
|
181
|
-
// </Toolbar>
|
|
182
|
-
// );
|
|
183
|
-
// }
|
|
184
|
-
|
|
185
|
-
// export default function GridToolbar() {
|
|
186
|
-
// const { data, loading } = useDemoData({
|
|
187
|
-
// dataSet: 'Commodity',
|
|
188
|
-
// rowLength: 10,
|
|
189
|
-
// maxColumns: 10,
|
|
190
|
-
// });
|
|
191
|
-
|
|
192
|
-
// return (
|
|
193
|
-
// <div style={{ height: 400, width: '100%' }}>
|
|
194
|
-
// <DataGrid
|
|
195
|
-
// {...data}
|
|
196
|
-
// loading={loading}
|
|
197
|
-
// slots={{ toolbar: CustomToolbar }}
|
|
198
|
-
// showToolbar
|
|
199
|
-
// />
|
|
200
|
-
// </div>
|
|
201
|
-
// );
|
|
202
|
-
// }
|