@dhis2/analytics 21.5.0 → 21.6.0
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/components/OpenFileDialog/OpenFileDialog.js +1 -1
- package/build/cjs/index.js +12 -0
- package/build/cjs/locales/zh/translations.json +8 -8
- package/build/cjs/visualizations/util/colors/colorSets.js +11 -1
- package/build/es/components/OpenFileDialog/OpenFileDialog.js +1 -1
- package/build/es/index.js +1 -1
- package/build/es/locales/zh/translations.json +8 -8
- package/build/es/visualizations/util/colors/colorSets.js +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
# [21.6.0](https://github.com/dhis2/analytics/compare/v21.5.2...v21.6.0) (2022-06-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* export color set consts ([#1248](https://github.com/dhis2/analytics/issues/1248)) ([7b384c0](https://github.com/dhis2/analytics/commit/7b384c0f8119a1dac2c3e006c7d5d4c74afe23ad))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add basic and extended color sets ([#1242](https://github.com/dhis2/analytics/issues/1242)) ([58bdb21](https://github.com/dhis2/analytics/commit/58bdb211704523b59825d2585e01ad516ba88d7b))
|
|
12
|
+
|
|
13
|
+
## [21.5.2](https://github.com/dhis2/analytics/compare/v21.5.1...v21.5.2) (2022-04-04)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* filter on displayName to get objects in current language DHIS2-13015 ([#1196](https://github.com/dhis2/analytics/issues/1196)) ([40fbf0b](https://github.com/dhis2/analytics/commit/40fbf0b33e009617b6f407c904824d89b16fecf0))
|
|
19
|
+
|
|
20
|
+
## [21.5.1](https://github.com/dhis2/analytics/compare/v21.5.0...v21.5.1) (2022-01-27)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* **translations:** sync translations from transifex (master) ([bf92db5](https://github.com/dhis2/analytics/commit/bf92db54fd0e36e93f11e5249be61531fdbb8eef))
|
|
26
|
+
|
|
1
27
|
# [21.5.0](https://github.com/dhis2/analytics/compare/v21.4.2...v21.5.0) (2022-01-25)
|
|
2
28
|
|
|
3
29
|
|
|
@@ -122,7 +122,7 @@ const OpenFileDialog = ({
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
if (filters.searchTerm) {
|
|
125
|
-
queryFilters.push("
|
|
125
|
+
queryFilters.push("displayName:ilike:".concat(filters.searchTerm));
|
|
126
126
|
} // for ER 2.38 only show line list ER types
|
|
127
127
|
|
|
128
128
|
|
package/build/cjs/index.js
CHANGED
|
@@ -981,6 +981,18 @@ Object.defineProperty(exports, "COLOR_SET_DEFAULT", {
|
|
|
981
981
|
return _colorSets.COLOR_SET_DEFAULT;
|
|
982
982
|
}
|
|
983
983
|
});
|
|
984
|
+
Object.defineProperty(exports, "COLOR_SET_BASIC", {
|
|
985
|
+
enumerable: true,
|
|
986
|
+
get: function () {
|
|
987
|
+
return _colorSets.COLOR_SET_BASIC;
|
|
988
|
+
}
|
|
989
|
+
});
|
|
990
|
+
Object.defineProperty(exports, "COLOR_SET_EXTENDED", {
|
|
991
|
+
enumerable: true,
|
|
992
|
+
get: function () {
|
|
993
|
+
return _colorSets.COLOR_SET_EXTENDED;
|
|
994
|
+
}
|
|
995
|
+
});
|
|
984
996
|
Object.defineProperty(exports, "COLOR_SET_BRIGHT", {
|
|
985
997
|
enumerable: true,
|
|
986
998
|
get: function () {
|
|
@@ -114,13 +114,13 @@
|
|
|
114
114
|
"No event reports found. Click New event report to get started.": "未找到事件报告。单击新建事件报告开始。",
|
|
115
115
|
"No event reports found. Try adjusting your search or filter options to find what you're looking for.": "未找到事件报告。尝试调整您的搜索或过滤选项以找到您要查找的内容。",
|
|
116
116
|
"New event report": "新建事件报告",
|
|
117
|
-
"Open an event visualization": "",
|
|
118
|
-
"Loading event visualizations": "",
|
|
119
|
-
"Couldn't load event visualizations": "",
|
|
120
|
-
"There was a problem loading event visualizations. Try again or contact your system administrator.": "",
|
|
121
|
-
"No event visualizations found. Click New event visualization to get started.": "",
|
|
122
|
-
"No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "",
|
|
123
|
-
"New event visualization": "",
|
|
117
|
+
"Open an event visualization": "打开事件可视化",
|
|
118
|
+
"Loading event visualizations": "加载事件可视化",
|
|
119
|
+
"Couldn't load event visualizations": "无法加载事件可视化应用",
|
|
120
|
+
"There was a problem loading event visualizations. Try again or contact your system administrator.": "加载事件可视化时出现问题。重试或联系您的系统管理员。",
|
|
121
|
+
"No event visualizations found. Click New event visualization to get started.": "未找到事件可视化。单击新建事件可视化开始。",
|
|
122
|
+
"No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "未找到事件可视化。尝试调整您的搜索或过滤选项以找到您要查找的内容。",
|
|
123
|
+
"New event visualization": "新的事件可视化",
|
|
124
124
|
"Options": "选项",
|
|
125
125
|
"Hide": "隐藏",
|
|
126
126
|
"Update": "更新",
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
"Choose a locale to translate from the menu above": "从上面的菜单中选择要翻译的语言环境",
|
|
232
232
|
"Translate: {{objectName}}": "翻译:{{objectName}}",
|
|
233
233
|
"Save translations": "保存翻译",
|
|
234
|
-
"Could not load translations": "",
|
|
234
|
+
"Could not load translations": "无法加载翻译",
|
|
235
235
|
"Retry": "重试",
|
|
236
236
|
"Series": "系列",
|
|
237
237
|
"Category": "分类",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.colorSets = exports.COLOR_SET_PATTERNS = exports.COLOR_SET_COLOR_BLIND = exports.COLOR_SET_GRAY = exports.COLOR_SET_DARK = exports.COLOR_SET_BRIGHT = exports.COLOR_SET_DEFAULT = void 0;
|
|
6
|
+
exports.colorSets = exports.COLOR_SET_PATTERNS = exports.COLOR_SET_COLOR_BLIND = exports.COLOR_SET_GRAY = exports.COLOR_SET_DARK = exports.COLOR_SET_BRIGHT = exports.COLOR_SET_EXTENDED = exports.COLOR_SET_BASIC = exports.COLOR_SET_DEFAULT = void 0;
|
|
7
7
|
|
|
8
8
|
var _highcharts = _interopRequireDefault(require("highcharts"));
|
|
9
9
|
|
|
@@ -14,6 +14,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
14
14
|
(0, _patternFill.default)(_highcharts.default);
|
|
15
15
|
const COLOR_SET_DEFAULT = 'DEFAULT';
|
|
16
16
|
exports.COLOR_SET_DEFAULT = COLOR_SET_DEFAULT;
|
|
17
|
+
const COLOR_SET_BASIC = 'BASIC';
|
|
18
|
+
exports.COLOR_SET_BASIC = COLOR_SET_BASIC;
|
|
19
|
+
const COLOR_SET_EXTENDED = 'EXTENDED';
|
|
20
|
+
exports.COLOR_SET_EXTENDED = COLOR_SET_EXTENDED;
|
|
17
21
|
const COLOR_SET_BRIGHT = 'BRIGHT';
|
|
18
22
|
exports.COLOR_SET_BRIGHT = COLOR_SET_BRIGHT;
|
|
19
23
|
const COLOR_SET_DARK = 'DARK';
|
|
@@ -28,6 +32,12 @@ const colorSets = {
|
|
|
28
32
|
[COLOR_SET_DEFAULT]: {
|
|
29
33
|
colors: ['#a8bf24', '#518cc3', '#d74554', '#ff9e21', '#968f8f', '#ba3ba1', '#ffda54', '#45beae', '#b98037', '#676767', '#6b2dd4', '#47792c', '#fcbdbd', '#830000', '#a5ffc0', '#000078', '#817c00', '#bdf023', '#fffac4']
|
|
30
34
|
},
|
|
35
|
+
[COLOR_SET_BASIC]: {
|
|
36
|
+
colors: ['#348F41', '#9F2241', '#DDDDDD', '#B4A269']
|
|
37
|
+
},
|
|
38
|
+
[COLOR_SET_EXTENDED]: {
|
|
39
|
+
colors: ['#194F90', '#AE1857', '#5B7E96', '#FFB71B', '#1DCAD3', '#FF5C35', '#8F4899', '#DAE343', '#385CAD', '#E81F76', '#009383', '#522B39']
|
|
40
|
+
},
|
|
31
41
|
[COLOR_SET_BRIGHT]: {
|
|
32
42
|
colors: ['#fd7f6f', '#8bd3c7', '#beb9db', '#7eb0d5', '#ffb55a', '#fdcce5', '#ffffaf', '#d9d9d9', '#bd7ebe', '#cbecc4', '#9fe778', '#ffef65']
|
|
33
43
|
},
|
|
@@ -96,7 +96,7 @@ export const OpenFileDialog = ({
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
if (filters.searchTerm) {
|
|
99
|
-
queryFilters.push("
|
|
99
|
+
queryFilters.push("displayName:ilike:".concat(filters.searchTerm));
|
|
100
100
|
} // for ER 2.38 only show line list ER types
|
|
101
101
|
|
|
102
102
|
|
package/build/es/index.js
CHANGED
|
@@ -82,7 +82,7 @@ export { LEGEND_DISPLAY_STRATEGY_BY_DATA_ITEM, LEGEND_DISPLAY_STRATEGY_FIXED, LE
|
|
|
82
82
|
|
|
83
83
|
export { renderValue as formatValue } from './modules/pivotTable/renderValue.js'; // Utils: colorSets
|
|
84
84
|
|
|
85
|
-
export { COLOR_SET_DEFAULT, COLOR_SET_BRIGHT, COLOR_SET_DARK, COLOR_SET_GRAY, COLOR_SET_COLOR_BLIND, COLOR_SET_PATTERNS, colorSets } from './visualizations/util/colors/colorSets.js'; // Utils: periods
|
|
85
|
+
export { COLOR_SET_DEFAULT, COLOR_SET_BASIC, COLOR_SET_EXTENDED, COLOR_SET_BRIGHT, COLOR_SET_DARK, COLOR_SET_GRAY, COLOR_SET_COLOR_BLIND, COLOR_SET_PATTERNS, colorSets } from './visualizations/util/colors/colorSets.js'; // Utils: periods
|
|
86
86
|
|
|
87
87
|
export { DAILY, WEEKLY, WEEKLYWED, WEEKLYTHU, WEEKLYSAT, WEEKLYSUN, BIWEEKLY, MONTHLY, BIMONTHLY, QUARTERLY, SIXMONTHLY, SIXMONTHLYAPR, YEARLY, FINANCIAL, FYNOV, FYOCT, FYJUL, FYAPR } from './components/PeriodDimension/utils/index.js';
|
|
88
88
|
export { getRelativePeriodsOptionsById } from './components/PeriodDimension/utils/relativePeriods.js';
|
|
@@ -114,13 +114,13 @@
|
|
|
114
114
|
"No event reports found. Click New event report to get started.": "未找到事件报告。单击新建事件报告开始。",
|
|
115
115
|
"No event reports found. Try adjusting your search or filter options to find what you're looking for.": "未找到事件报告。尝试调整您的搜索或过滤选项以找到您要查找的内容。",
|
|
116
116
|
"New event report": "新建事件报告",
|
|
117
|
-
"Open an event visualization": "",
|
|
118
|
-
"Loading event visualizations": "",
|
|
119
|
-
"Couldn't load event visualizations": "",
|
|
120
|
-
"There was a problem loading event visualizations. Try again or contact your system administrator.": "",
|
|
121
|
-
"No event visualizations found. Click New event visualization to get started.": "",
|
|
122
|
-
"No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "",
|
|
123
|
-
"New event visualization": "",
|
|
117
|
+
"Open an event visualization": "打开事件可视化",
|
|
118
|
+
"Loading event visualizations": "加载事件可视化",
|
|
119
|
+
"Couldn't load event visualizations": "无法加载事件可视化应用",
|
|
120
|
+
"There was a problem loading event visualizations. Try again or contact your system administrator.": "加载事件可视化时出现问题。重试或联系您的系统管理员。",
|
|
121
|
+
"No event visualizations found. Click New event visualization to get started.": "未找到事件可视化。单击新建事件可视化开始。",
|
|
122
|
+
"No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "未找到事件可视化。尝试调整您的搜索或过滤选项以找到您要查找的内容。",
|
|
123
|
+
"New event visualization": "新的事件可视化",
|
|
124
124
|
"Options": "选项",
|
|
125
125
|
"Hide": "隐藏",
|
|
126
126
|
"Update": "更新",
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
"Choose a locale to translate from the menu above": "从上面的菜单中选择要翻译的语言环境",
|
|
232
232
|
"Translate: {{objectName}}": "翻译:{{objectName}}",
|
|
233
233
|
"Save translations": "保存翻译",
|
|
234
|
-
"Could not load translations": "",
|
|
234
|
+
"Could not load translations": "无法加载翻译",
|
|
235
235
|
"Retry": "重试",
|
|
236
236
|
"Series": "系列",
|
|
237
237
|
"Category": "分类",
|
|
@@ -2,6 +2,8 @@ import H from 'highcharts';
|
|
|
2
2
|
import HPF from 'highcharts/modules/pattern-fill';
|
|
3
3
|
HPF(H);
|
|
4
4
|
export const COLOR_SET_DEFAULT = 'DEFAULT';
|
|
5
|
+
export const COLOR_SET_BASIC = 'BASIC';
|
|
6
|
+
export const COLOR_SET_EXTENDED = 'EXTENDED';
|
|
5
7
|
export const COLOR_SET_BRIGHT = 'BRIGHT';
|
|
6
8
|
export const COLOR_SET_DARK = 'DARK';
|
|
7
9
|
export const COLOR_SET_GRAY = 'GRAY';
|
|
@@ -11,6 +13,12 @@ export const colorSets = {
|
|
|
11
13
|
[COLOR_SET_DEFAULT]: {
|
|
12
14
|
colors: ['#a8bf24', '#518cc3', '#d74554', '#ff9e21', '#968f8f', '#ba3ba1', '#ffda54', '#45beae', '#b98037', '#676767', '#6b2dd4', '#47792c', '#fcbdbd', '#830000', '#a5ffc0', '#000078', '#817c00', '#bdf023', '#fffac4']
|
|
13
15
|
},
|
|
16
|
+
[COLOR_SET_BASIC]: {
|
|
17
|
+
colors: ['#348F41', '#9F2241', '#DDDDDD', '#B4A269']
|
|
18
|
+
},
|
|
19
|
+
[COLOR_SET_EXTENDED]: {
|
|
20
|
+
colors: ['#194F90', '#AE1857', '#5B7E96', '#FFB71B', '#1DCAD3', '#FF5C35', '#8F4899', '#DAE343', '#385CAD', '#E81F76', '#009383', '#522B39']
|
|
21
|
+
},
|
|
14
22
|
[COLOR_SET_BRIGHT]: {
|
|
15
23
|
colors: ['#fd7f6f', '#8bd3c7', '#beb9db', '#7eb0d5', '#ffb55a', '#fdcce5', '#ffffaf', '#d9d9d9', '#bd7ebe', '#cbecc4', '#9fe778', '#ffef65']
|
|
16
24
|
},
|