@dhis2/analytics 22.0.1 → 23.1.1
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 +26 -0
- package/build/cjs/__demo__/OpenFileDialog.stories.js +39 -6
- package/build/cjs/components/FileMenu/FileMenu.js +6 -0
- package/build/cjs/components/OpenFileDialog/CustomSelectOption.js +18 -4
- package/build/cjs/components/OpenFileDialog/FileList.js +5 -5
- package/build/cjs/components/OpenFileDialog/OpenFileDialog.js +26 -21
- package/build/cjs/components/OpenFileDialog/VisTypeFilter.js +17 -16
- package/build/cjs/components/OpenFileDialog/utils.js +33 -74
- package/build/cjs/index.js +22 -4
- package/build/cjs/locales/cs/translations.json +9 -9
- package/build/cjs/locales/en/translations.json +3 -21
- package/build/cjs/modules/visTypes.js +12 -21
- package/build/es/__demo__/OpenFileDialog.stories.js +38 -6
- package/build/es/components/FileMenu/FileMenu.js +6 -0
- package/build/es/components/OpenFileDialog/CustomSelectOption.js +17 -4
- package/build/es/components/OpenFileDialog/FileList.js +5 -5
- package/build/es/components/OpenFileDialog/OpenFileDialog.js +27 -23
- package/build/es/components/OpenFileDialog/VisTypeFilter.js +18 -14
- package/build/es/components/OpenFileDialog/utils.js +32 -71
- package/build/es/index.js +2 -2
- package/build/es/locales/cs/translations.json +9 -9
- package/build/es/locales/en/translations.json +3 -21
- package/build/es/modules/visTypes.js +9 -19
- package/package.json +1 -1
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"Unsubscribe": "Odhlásit odběr",
|
|
19
19
|
"Subscribe to get updates about new interpretations.": "Přihlaste se k odběru novinek o nových interpretacích.",
|
|
20
20
|
"Subscribe": "Odebírat",
|
|
21
|
-
"This app could not retrieve required data.": "",
|
|
22
|
-
"Network error": "",
|
|
21
|
+
"This app could not retrieve required data.": "Tato aplikace nemohla načíst požadovaná data.",
|
|
22
|
+
"Network error": "Chyba sítě",
|
|
23
23
|
"Data Type": "Typ dat",
|
|
24
24
|
"All types": "Všechny typy",
|
|
25
25
|
"Totals only": "Pouze součty",
|
|
@@ -119,13 +119,13 @@
|
|
|
119
119
|
"No event reports found. Click New event report to get started.": "Nebyly nalezeny žádné zprávy o událostech. Začněte kliknutím na Nový přehled událostí.",
|
|
120
120
|
"No event reports found. Try adjusting your search or filter options to find what you're looking for.": "Nebyly nalezeny žádné zprávy o událostech. Zkuste upravit možnosti vyhledávání nebo filtrování, abyste našli to, co hledáte.",
|
|
121
121
|
"New event report": "Nová zpráva o události",
|
|
122
|
-
"Open an event visualization": "",
|
|
123
|
-
"Loading event visualizations": "",
|
|
124
|
-
"Couldn't load event visualizations": "",
|
|
125
|
-
"There was a problem loading event visualizations. Try again or contact your system administrator.": "",
|
|
126
|
-
"No event visualizations found. Click New event visualization to get started.": "",
|
|
127
|
-
"No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "",
|
|
128
|
-
"New event visualization": "",
|
|
122
|
+
"Open an event visualization": "Otevřete vizualizaci události",
|
|
123
|
+
"Loading event visualizations": "Načítání vizualizací událostí",
|
|
124
|
+
"Couldn't load event visualizations": "Vizualizace událostí se nepodařilo načíst",
|
|
125
|
+
"There was a problem loading event visualizations. Try again or contact your system administrator.": "Při načítání vizualizací událostí došlo k problému. Zkuste to znovu nebo se obraťte na správce systému.",
|
|
126
|
+
"No event visualizations found. Click New event visualization to get started.": "Nebyly nalezeny žádné vizualizace událostí. Začněte kliknutím na Nová vizualizace události.",
|
|
127
|
+
"No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "Nebyly nalezeny žádné vizualizace událostí. Zkuste upravit možnosti vyhledávání nebo filtru, abyste našli to, co hledáte.",
|
|
128
|
+
"New event visualization": "Nová vizualizace události",
|
|
129
129
|
"Options": "Možnosti",
|
|
130
130
|
"Hide": "Skrýt",
|
|
131
131
|
"Update": "Aktualizovat",
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
"Anyone": "Anyone",
|
|
84
84
|
"Only you": "Only you",
|
|
85
85
|
"Others": "Others",
|
|
86
|
+
"Not supported by this app yet": "Not supported by this app yet",
|
|
86
87
|
"Filter by name": "Filter by name",
|
|
87
88
|
"Created": "Created",
|
|
88
89
|
"Last updated": "Last updated",
|
|
89
90
|
"Type": "Type",
|
|
90
91
|
"Clear filters": "Clear filters",
|
|
91
92
|
"{{firstItemIndex}}-{{lastItemIndex}} of {{totalNumberOfItems}}": "{{firstItemIndex}}-{{lastItemIndex}} of {{totalNumberOfItems}}",
|
|
92
|
-
"All charts": "All charts",
|
|
93
93
|
"Open": "Open",
|
|
94
94
|
"Couldn't load items": "Couldn't load items",
|
|
95
95
|
"There was a problem loading items. Try again or contact your system administrator.": "There was a problem loading items. Try again or contact your system administrator.",
|
|
@@ -110,13 +110,6 @@
|
|
|
110
110
|
"No maps found. Click New map to get started.": "No maps found. Click New map to get started.",
|
|
111
111
|
"No maps found. Try adjusting your search or filter options to find what you're looking for.": "No maps found. Try adjusting your search or filter options to find what you're looking for.",
|
|
112
112
|
"New map": "New map",
|
|
113
|
-
"Open an event report": "Open an event report",
|
|
114
|
-
"Loading event reports": "Loading event reports",
|
|
115
|
-
"Couldn't load event reports": "Couldn't load event reports",
|
|
116
|
-
"There was a problem loading event reports. Try again or contact your system administrator.": "There was a problem loading event reports. Try again or contact your system administrator.",
|
|
117
|
-
"No event reports found. Click New event report to get started.": "No event reports found. Click New event report to get started.",
|
|
118
|
-
"No event reports found. Try adjusting your search or filter options to find what you're looking for.": "No event reports found. Try adjusting your search or filter options to find what you're looking for.",
|
|
119
|
-
"New event report": "New event report",
|
|
120
113
|
"Open an event visualization": "Open an event visualization",
|
|
121
114
|
"Loading event visualizations": "Loading event visualizations",
|
|
122
115
|
"Couldn't load event visualizations": "Couldn't load event visualizations",
|
|
@@ -318,19 +311,8 @@
|
|
|
318
311
|
"Year over year (column)": "Year over year (column)",
|
|
319
312
|
"Single value": "Single value",
|
|
320
313
|
"Scatter": "Scatter",
|
|
321
|
-
"
|
|
322
|
-
"
|
|
323
|
-
"Compare parts of a whole against related elements vertically. Recommend data or org. unit as series.": "Compare parts of a whole against related elements vertically. Recommend data or org. unit as series.",
|
|
324
|
-
"Compare sizes of related elements horizontally. Recommend period as filter.": "Compare sizes of related elements horizontally. Recommend period as filter.",
|
|
325
|
-
"Compare parts of a whole against related elements horizontally. Recommend data or org. unit as series.": "Compare parts of a whole against related elements horizontally. Recommend data or org. unit as series.",
|
|
326
|
-
"Track or compare changes over time. Recommend period as category.": "Track or compare changes over time. Recommend period as category.",
|
|
327
|
-
"Track or compare parts of a whole over time. Recommend data as series and period as category.": "Track or compare parts of a whole over time. Recommend data as series and period as category.",
|
|
328
|
-
"Compare parts of a whole at a single point in time. Recommend period as filter.": "Compare parts of a whole at a single point in time. Recommend period as filter.",
|
|
329
|
-
"Compare several items against multiple variables.": "Compare several items against multiple variables.",
|
|
330
|
-
"Compare a percentage indicator against a 100% scale. Recommend period as filter.": "Compare a percentage indicator against a 100% scale. Recommend period as filter.",
|
|
331
|
-
"Compare changes over time between multiple time periods.": "Compare changes over time between multiple time periods.",
|
|
332
|
-
"Display a single value. Recommend relative period to show latest data.": "Display a single value. Recommend relative period to show latest data.",
|
|
333
|
-
"View the relationship between two data items at a place or time. Recommended for finding outliers.": "View the relationship between two data items at a place or time. Recommended for finding outliers.",
|
|
314
|
+
"Line list": "Line list",
|
|
315
|
+
"All charts": "All charts",
|
|
334
316
|
"{{seriesName}} (trend)": "{{seriesName}} (trend)",
|
|
335
317
|
"Trend": "Trend",
|
|
336
318
|
"No legend for this series": "No legend for this series",
|
|
@@ -17,6 +17,8 @@ export const VIS_TYPE_SINGLE_VALUE = 'SINGLE_VALUE';
|
|
|
17
17
|
export const VIS_TYPE_PIVOT_TABLE = 'PIVOT_TABLE';
|
|
18
18
|
export const VIS_TYPE_SCATTER = 'SCATTER';
|
|
19
19
|
export const VIS_TYPE_LINE_LIST = 'LINE_LIST';
|
|
20
|
+
export const VIS_TYPE_GROUP_ALL = 'ALL';
|
|
21
|
+
export const VIS_TYPE_GROUP_CHARTS = 'CHARTS';
|
|
20
22
|
export const visTypeDisplayNames = {
|
|
21
23
|
[VIS_TYPE_PIVOT_TABLE]: i18n.t('Pivot table'),
|
|
22
24
|
[VIS_TYPE_COLUMN]: i18n.t('Column'),
|
|
@@ -32,24 +34,10 @@ export const visTypeDisplayNames = {
|
|
|
32
34
|
[VIS_TYPE_YEAR_OVER_YEAR_LINE]: i18n.t('Year over year (line)'),
|
|
33
35
|
[VIS_TYPE_YEAR_OVER_YEAR_COLUMN]: i18n.t('Year over year (column)'),
|
|
34
36
|
[VIS_TYPE_SINGLE_VALUE]: i18n.t('Single value'),
|
|
35
|
-
[VIS_TYPE_SCATTER]: i18n.t('Scatter')
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
[
|
|
39
|
-
[VIS_TYPE_COLUMN]: i18n.t('Compare sizes of related elements vertically. Recommend period as filter.'),
|
|
40
|
-
[VIS_TYPE_STACKED_COLUMN]: i18n.t('Compare parts of a whole against related elements vertically. Recommend data or org. unit as series.'),
|
|
41
|
-
[VIS_TYPE_BAR]: i18n.t('Compare sizes of related elements horizontally. Recommend period as filter.'),
|
|
42
|
-
[VIS_TYPE_STACKED_BAR]: i18n.t('Compare parts of a whole against related elements horizontally. Recommend data or org. unit as series.'),
|
|
43
|
-
[VIS_TYPE_LINE]: i18n.t('Track or compare changes over time. Recommend period as category.'),
|
|
44
|
-
[VIS_TYPE_AREA]: i18n.t('Track or compare changes over time. Recommend period as category.'),
|
|
45
|
-
[VIS_TYPE_STACKED_AREA]: i18n.t('Track or compare parts of a whole over time. Recommend data as series and period as category.'),
|
|
46
|
-
[VIS_TYPE_PIE]: i18n.t('Compare parts of a whole at a single point in time. Recommend period as filter.'),
|
|
47
|
-
[VIS_TYPE_RADAR]: i18n.t('Compare several items against multiple variables.'),
|
|
48
|
-
[VIS_TYPE_GAUGE]: i18n.t('Compare a percentage indicator against a 100% scale. Recommend period as filter.'),
|
|
49
|
-
[VIS_TYPE_YEAR_OVER_YEAR_LINE]: i18n.t('Compare changes over time between multiple time periods.'),
|
|
50
|
-
[VIS_TYPE_YEAR_OVER_YEAR_COLUMN]: i18n.t('Compare changes over time between multiple time periods.'),
|
|
51
|
-
[VIS_TYPE_SINGLE_VALUE]: i18n.t('Display a single value. Recommend relative period to show latest data.'),
|
|
52
|
-
[VIS_TYPE_SCATTER]: i18n.t('View the relationship between two data items at a place or time. Recommended for finding outliers.')
|
|
37
|
+
[VIS_TYPE_SCATTER]: i18n.t('Scatter'),
|
|
38
|
+
[VIS_TYPE_LINE_LIST]: i18n.t('Line list'),
|
|
39
|
+
[VIS_TYPE_GROUP_ALL]: i18n.t('All types'),
|
|
40
|
+
[VIS_TYPE_GROUP_CHARTS]: i18n.t('All charts')
|
|
53
41
|
};
|
|
54
42
|
export const visTypeIcons = {
|
|
55
43
|
[VIS_TYPE_PIVOT_TABLE]: IconTable24,
|
|
@@ -66,7 +54,9 @@ export const visTypeIcons = {
|
|
|
66
54
|
[VIS_TYPE_YEAR_OVER_YEAR_LINE]: IconVisualizationLineMulti24,
|
|
67
55
|
[VIS_TYPE_YEAR_OVER_YEAR_COLUMN]: IconVisualizationColumnMulti24,
|
|
68
56
|
[VIS_TYPE_SINGLE_VALUE]: IconVisualizationSingleValue24,
|
|
69
|
-
[VIS_TYPE_SCATTER]: IconVisualizationScatter24
|
|
57
|
+
[VIS_TYPE_SCATTER]: IconVisualizationScatter24,
|
|
58
|
+
[VIS_TYPE_LINE_LIST]: IconTable24 // TODO different icon @joe
|
|
59
|
+
|
|
70
60
|
};
|
|
71
61
|
export const getDisplayNameByVisType = visType => {
|
|
72
62
|
const displayName = visTypeDisplayNames[visType];
|