@dhis2/analytics 22.0.0-alpha.1 → 22.0.0-alpha.2
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/build/cjs/components/OpenFileDialog/OpenFileDialog.js +2 -2
- package/build/cjs/components/OpenFileDialog/styles/FileList.style.js +10 -0
- package/build/cjs/index.js +4 -4
- package/build/cjs/modules/visTypes.js +7 -7
- package/build/cjs/visualizations/package-lock.json +1788 -0
- package/build/es/components/OpenFileDialog/OpenFileDialog.js +3 -3
- package/build/es/components/OpenFileDialog/styles/FileList.style.js +3 -0
- package/build/es/index.js +1 -1
- package/build/es/modules/visTypes.js +4 -4
- package/build/es/visualizations/package-lock.json +1788 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { Box, Modal, ModalTitle, ModalContent, DataTable, DataTableHead, DataTab
|
|
|
5
5
|
import isEqual from 'lodash/isEqual';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
8
|
-
import {
|
|
8
|
+
import { VIS_TYPE_GROUP_ALL, VIS_TYPE_GROUP_CHARTS } from '../../modules/visTypes.js';
|
|
9
9
|
import { CreatedByFilter, CREATED_BY_ALL, CREATED_BY_ALL_BUT_CURRENT_USER, CREATED_BY_CURRENT_USER } from './CreatedByFilter.js';
|
|
10
10
|
import { FileList } from './FileList.js';
|
|
11
11
|
import { NameFilter } from './NameFilter.js';
|
|
@@ -87,10 +87,10 @@ export const OpenFileDialog = ({
|
|
|
87
87
|
|
|
88
88
|
if (filters.visType) {
|
|
89
89
|
switch (filters.visType) {
|
|
90
|
-
case
|
|
90
|
+
case VIS_TYPE_GROUP_ALL:
|
|
91
91
|
break;
|
|
92
92
|
|
|
93
|
-
case
|
|
93
|
+
case VIS_TYPE_GROUP_CHARTS:
|
|
94
94
|
queryFilters.push('type:!eq:PIVOT_TABLE');
|
|
95
95
|
break;
|
|
96
96
|
|
package/build/es/index.js
CHANGED
|
@@ -68,7 +68,7 @@ export { itemIsValid } from './modules/layout/itemIsValid.js'; // Modules: visTy
|
|
|
68
68
|
|
|
69
69
|
export { getLayoutTypeByVisType } from './modules/visTypeToLayoutType.js'; // Modules: visTypes
|
|
70
70
|
|
|
71
|
-
export {
|
|
71
|
+
export { VIS_TYPE_GROUP_ALL, VIS_TYPE_GROUP_CHARTS, VIS_TYPE_COLUMN, VIS_TYPE_STACKED_COLUMN, VIS_TYPE_BAR, VIS_TYPE_STACKED_BAR, VIS_TYPE_LINE, VIS_TYPE_AREA, VIS_TYPE_STACKED_AREA, VIS_TYPE_PIE, VIS_TYPE_RADAR, VIS_TYPE_GAUGE, VIS_TYPE_BUBBLE, VIS_TYPE_YEAR_OVER_YEAR_LINE, VIS_TYPE_YEAR_OVER_YEAR_COLUMN, VIS_TYPE_SINGLE_VALUE, VIS_TYPE_PIVOT_TABLE, VIS_TYPE_SCATTER, VIS_TYPE_LINE_LIST, visTypeDisplayNames, visTypeIcons, getDisplayNameByVisType, defaultVisType, isStacked, isMultiType, isYearOverYear, isDualAxisType, isSingleValue, isTwoCategoryChartType, isLegendSetType, isColumnBasedType, isVerticalType } from './modules/visTypes.js'; // Modules: layoutTypes
|
|
72
72
|
|
|
73
73
|
export { LAYOUT_TYPE_DEFAULT, LAYOUT_TYPE_PIE, LAYOUT_TYPE_SINGLE_VALUE, LAYOUT_TYPE_YEAR_OVER_YEAR, LAYOUT_TYPE_PIVOT_TABLE, LAYOUT_TYPE_SCATTER } from './modules/layoutTypes.js'; // Modules: layoutUiRules
|
|
74
74
|
|
|
@@ -17,8 +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
|
|
21
|
-
export const
|
|
20
|
+
export const VIS_TYPE_GROUP_ALL = 'ALL';
|
|
21
|
+
export const VIS_TYPE_GROUP_CHARTS = 'CHARTS';
|
|
22
22
|
export const visTypeDisplayNames = {
|
|
23
23
|
[VIS_TYPE_PIVOT_TABLE]: i18n.t('Pivot table'),
|
|
24
24
|
[VIS_TYPE_COLUMN]: i18n.t('Column'),
|
|
@@ -36,8 +36,8 @@ export const visTypeDisplayNames = {
|
|
|
36
36
|
[VIS_TYPE_SINGLE_VALUE]: i18n.t('Single value'),
|
|
37
37
|
[VIS_TYPE_SCATTER]: i18n.t('Scatter'),
|
|
38
38
|
[VIS_TYPE_LINE_LIST]: i18n.t('Line list'),
|
|
39
|
-
[
|
|
40
|
-
[
|
|
39
|
+
[VIS_TYPE_GROUP_ALL]: i18n.t('All types'),
|
|
40
|
+
[VIS_TYPE_GROUP_CHARTS]: i18n.t('All charts')
|
|
41
41
|
};
|
|
42
42
|
export const visTypeIcons = {
|
|
43
43
|
[VIS_TYPE_PIVOT_TABLE]: IconTable24,
|