@dhis2/analytics 23.10.3 → 23.11.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 CHANGED
@@ -1,3 +1,24 @@
1
+ ## [23.11.1](https://github.com/dhis2/analytics/compare/v23.11.0...v23.11.1) (2022-06-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **translations:** sync translations from transifex (master) ([f5e770a](https://github.com/dhis2/analytics/commit/f5e770a9757d775c886d9d8a8ab51ebc7c206e7d))
7
+
8
+ # [23.11.0](https://github.com/dhis2/analytics/compare/v23.10.4...v23.11.0) (2022-06-03)
9
+
10
+
11
+ ### Features
12
+
13
+ * export getColorByValueFromLegendSet ([#1249](https://github.com/dhis2/analytics/issues/1249)) ([6ce534d](https://github.com/dhis2/analytics/commit/6ce534d1d63d8aeac6ea44e7742681c10f57d709))
14
+
15
+ ## [23.10.4](https://github.com/dhis2/analytics/compare/v23.10.3...v23.10.4) (2022-05-31)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **translations:** sync translations from transifex (master) ([d09d69d](https://github.com/dhis2/analytics/commit/d09d69dd22984f3bbb4a2de4390eb61e4f867f35))
21
+
1
22
  ## [23.10.3](https://github.com/dhis2/analytics/compare/v23.10.2...v23.10.3) (2022-05-27)
2
23
 
3
24
 
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  var _ui = require("@dhis2/ui");
9
9
 
10
- const _defaultExport = [".container.jsx-3203773516{width:180px;background:".concat(_ui.colors.white, ";padding:").concat(_ui.spacers.dp8, ";border:1px solid ").concat(_ui.colors.grey400, ";}"), ".legendSet.jsx-3203773516{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-left:".concat(_ui.spacers.dp4, ";}"), ".legendSetName.jsx-3203773516{display:inline-block;font-size:13px;color:".concat(_ui.colors.grey700, ";margin-bottom:2px;}"), ".legend.jsx-3203773516{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:".concat(_ui.spacers.dp4, " 0 ").concat(_ui.spacers.dp4, " 6px;white-space:break-spaces;text-align:left;font-size:13px;}"), ".values.jsx-3203773516{color:".concat(_ui.colors.grey600, ";font-size:12px;padding-top:2px;}"), ".divider.jsx-3203773516{border-top:1px solid ".concat(_ui.colors.grey400, ";padding-top:").concat(_ui.spacers.dp8, ";margin-top:").concat(_ui.spacers.dp8, ";}")];
11
- _defaultExport.__hash = "3203773516";
10
+ const _defaultExport = [".container.jsx-2467849725{width:180px;background:".concat(_ui.colors.white, ";padding:").concat(_ui.spacers.dp8, ";}"), ".legendSet.jsx-2467849725{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-left:".concat(_ui.spacers.dp4, ";}"), ".legendSetName.jsx-2467849725{display:inline-block;font-size:13px;color:".concat(_ui.colors.grey700, ";margin-bottom:2px;}"), ".legend.jsx-2467849725{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:".concat(_ui.spacers.dp4, " 0 ").concat(_ui.spacers.dp4, " 6px;white-space:break-spaces;text-align:left;font-size:13px;}"), ".values.jsx-2467849725{color:".concat(_ui.colors.grey600, ";font-size:12px;padding-top:2px;}"), ".divider.jsx-2467849725{border-top:1px solid ".concat(_ui.colors.grey400, ";padding-top:").concat(_ui.spacers.dp8, ";margin-top:").concat(_ui.spacers.dp8, ";}")];
11
+ _defaultExport.__hash = "2467849725";
12
12
  var _default = _defaultExport;
13
13
  exports.default = _default;
@@ -1131,6 +1131,12 @@ Object.defineProperty(exports, "getAxisPerLockedDimension", {
1131
1131
  return _index5.getAxisPerLockedDimension;
1132
1132
  }
1133
1133
  });
1134
+ Object.defineProperty(exports, "getColorByValueFromLegendSet", {
1135
+ enumerable: true,
1136
+ get: function () {
1137
+ return _legends.getColorByValueFromLegendSet;
1138
+ }
1139
+ });
1134
1140
  Object.defineProperty(exports, "getDimensionById", {
1135
1141
  enumerable: true,
1136
1142
  get: function () {
@@ -61,9 +61,9 @@
61
61
  "Nothing found for {{searchTerm}}": "",
62
62
  "Delete {{fileType}}": "",
63
63
  "This {{fileType}} and related interpretations will be deleted. Continue?": "",
64
- "Cancel": "",
64
+ "Cancel": "Anulare",
65
65
  "Delete": "Lichidare",
66
- "File": "",
66
+ "File": "Fişier",
67
67
  "New": "Nou",
68
68
  "Open…": "",
69
69
  "Save": "salva",
@@ -142,11 +142,11 @@
142
142
  "Select a level": "",
143
143
  "Select a group": "",
144
144
  "Deselect all": "",
145
- "Period type": "",
146
- "Year": "",
145
+ "Period type": "Tipul perioadei",
146
+ "Year": "An",
147
147
  "Select year": "",
148
148
  "Period": "",
149
- "Relative periods": "",
149
+ "Relative periods": "Perioade relative",
150
150
  "Fixed periods": "",
151
151
  "Selected Periods": "",
152
152
  "No periods selected": "",
@@ -171,66 +171,66 @@
171
171
  "Weekly (Start Saturday)": "",
172
172
  "Weekly (Start Sunday)": "",
173
173
  "Bi-weekly": "",
174
- "Monthly": "",
174
+ "Monthly": "Lunar",
175
175
  "Bi-monthly": "",
176
- "Quarterly": "",
176
+ "Quarterly": "Trimestrial",
177
177
  "Six-monthly": "",
178
178
  "Six-monthly April": "",
179
- "Yearly": "",
179
+ "Yearly": "Anual",
180
180
  "Financial year (Start November)": "",
181
181
  "Financial year (Start October)": "",
182
182
  "Financial year (Start July)": "",
183
183
  "Financial year (Start April)": "",
184
184
  "Today": "Astăzi",
185
- "Yesterday": "",
186
- "Last 3 days": "",
187
- "Last 7 days": "",
188
- "Last 14 days": "",
185
+ "Yesterday": "Ieri",
186
+ "Last 3 days": "Ultimele 3 zile",
187
+ "Last 7 days": "Ultimele 7 zile",
188
+ "Last 14 days": "Ultimele 14 zile",
189
189
  "Last 30 days": "",
190
190
  "Last 60 days": "",
191
191
  "Last 90 days": "",
192
192
  "Last 180 days": "",
193
193
  "This week": "Săptămâna aceasta",
194
194
  "Last week": "Săptămâna trecută",
195
- "Last 4 weeks": "",
196
- "Last 12 weeks": "",
197
- "Last 52 weeks": "",
198
- "Weeks this year": "",
195
+ "Last 4 weeks": "Ultimele 4 săptămâni",
196
+ "Last 12 weeks": "Ultimele 12 săptămâni",
197
+ "Last 52 weeks": "Ultimele 52 de săptămâni",
198
+ "Weeks this year": "Săptămâni în anul curent",
199
199
  "This bi-week": "",
200
200
  "Last bi-week": "",
201
201
  "Last 4 bi-weeks": "",
202
202
  "This month": "Luna aceasta",
203
203
  "Last month": "Luna trecută",
204
204
  "Last 3 months": "Ultimele 3 luni",
205
- "Last 6 months": "",
206
- "Last 12 months": "",
207
- "Months this year": "",
205
+ "Last 6 months": "Ultimele 6 luni",
206
+ "Last 12 months": "Ultimele 12 luni",
207
+ "Months this year": "Luni în anul curent",
208
208
  "This bi-month": "",
209
209
  "Last bi-month": "",
210
210
  "Last 6 bi-months": "",
211
211
  "Bi-months this year": "",
212
212
  "This quarter": "",
213
- "Last quarter": "",
214
- "Last 4 quarters": "",
215
- "Quarters this year": "",
213
+ "Last quarter": "Ultimul trimestru",
214
+ "Last 4 quarters": "Ultimele 4 trimestre",
215
+ "Quarters this year": "Trimestre în anul curent",
216
216
  "This six-month": "",
217
- "Last six-month": "",
217
+ "Last six-month": "Ultimele șase luni",
218
218
  "Last 2 six-month": "",
219
219
  "This financial year": "",
220
- "Last financial year": "",
221
- "Last 5 financial years": "",
220
+ "Last financial year": "Ultimul an financiar",
221
+ "Last 5 financial years": "Ultimii 5 ani financiari",
222
222
  "This year": "",
223
- "Last year": "",
224
- "Last 5 years": "",
223
+ "Last year": "Anul trecut",
224
+ "Last 5 years": "Ultimii 5 ani",
225
225
  "Last 10 years": "",
226
226
  "Days": "Zile",
227
- "Weeks": "",
227
+ "Weeks": "Săptămâni",
228
228
  "Bi-weeks": "",
229
229
  "Months": "Luni",
230
- "Bi-months": "",
231
- "Quarters": "",
232
- "Six-months": "",
233
- "Financial Years": "",
230
+ "Bi-months": "Bi-lunar",
231
+ "Quarters": "Trimestre",
232
+ "Six-months": "Șase luni",
233
+ "Financial Years": "Ani financiari",
234
234
  "Years": "Ani",
235
235
  "Translating to": "",
236
236
  "Choose a locale": "",
@@ -251,21 +251,21 @@
251
251
  "Actual reports": "",
252
252
  "Actual reports on time": "",
253
253
  "Expected reports": "",
254
- "Program": "",
254
+ "Program": "Program",
255
255
  "Select a program": "",
256
256
  "Indicators": "Indicatori",
257
- "Indicator group": "",
257
+ "Indicator group": "Grup de indicatori",
258
258
  "All groups": "",
259
- "Indicator": "",
259
+ "Indicator": "Indicator",
260
260
  "No indicator groups found": "",
261
261
  "Loading indicator groups": "",
262
- "Data elements": "",
262
+ "Data elements": "Elemente de date",
263
263
  "Data element group": "",
264
264
  "Data element": "",
265
265
  "No data element groups found": "",
266
266
  "Loading data element groups": "",
267
267
  "Data sets": "",
268
- "Data set": "",
268
+ "Data set": "Set de date",
269
269
  "All data sets": "",
270
270
  "Loading data sets": "",
271
271
  "Event data items": "",
@@ -13,8 +13,12 @@ exports.LEGEND_DISPLAY_STYLE_FILL = LEGEND_DISPLAY_STYLE_FILL;
13
13
  const LEGEND_DISPLAY_STYLE_TEXT = 'TEXT';
14
14
  exports.LEGEND_DISPLAY_STYLE_TEXT = LEGEND_DISPLAY_STYLE_TEXT;
15
15
 
16
- const getLegendByValueFromLegendSet = (legendSet, value) => legendSet.legends.find(legend => value >= legend.startValue && value < legend.endValue // TODO: Confirm inclusive/exclusive bounds
17
- );
16
+ const getLegendByValueFromLegendSet = (legendSet, value) => {
17
+ var _legendSet$legends;
18
+
19
+ return legendSet === null || legendSet === void 0 ? void 0 : (_legendSet$legends = legendSet.legends) === null || _legendSet$legends === void 0 ? void 0 : _legendSet$legends.find(legend => value >= legend.startValue && value < legend.endValue // TODO: Confirm inclusive/exclusive bounds
20
+ );
21
+ };
18
22
 
19
23
  exports.getLegendByValueFromLegendSet = getLegendByValueFromLegendSet;
20
24
 
@@ -1,4 +1,4 @@
1
1
  import { spacers, colors } from '@dhis2/ui';
2
- const _defaultExport = [".container.jsx-3203773516{width:180px;background:".concat(colors.white, ";padding:").concat(spacers.dp8, ";border:1px solid ").concat(colors.grey400, ";}"), ".legendSet.jsx-3203773516{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-left:".concat(spacers.dp4, ";}"), ".legendSetName.jsx-3203773516{display:inline-block;font-size:13px;color:".concat(colors.grey700, ";margin-bottom:2px;}"), ".legend.jsx-3203773516{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:".concat(spacers.dp4, " 0 ").concat(spacers.dp4, " 6px;white-space:break-spaces;text-align:left;font-size:13px;}"), ".values.jsx-3203773516{color:".concat(colors.grey600, ";font-size:12px;padding-top:2px;}"), ".divider.jsx-3203773516{border-top:1px solid ".concat(colors.grey400, ";padding-top:").concat(spacers.dp8, ";margin-top:").concat(spacers.dp8, ";}")];
3
- _defaultExport.__hash = "3203773516";
2
+ const _defaultExport = [".container.jsx-2467849725{width:180px;background:".concat(colors.white, ";padding:").concat(spacers.dp8, ";}"), ".legendSet.jsx-2467849725{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-left:".concat(spacers.dp4, ";}"), ".legendSetName.jsx-2467849725{display:inline-block;font-size:13px;color:".concat(colors.grey700, ";margin-bottom:2px;}"), ".legend.jsx-2467849725{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:".concat(spacers.dp4, " 0 ").concat(spacers.dp4, " 6px;white-space:break-spaces;text-align:left;font-size:13px;}"), ".values.jsx-2467849725{color:".concat(colors.grey600, ";font-size:12px;padding-top:2px;}"), ".divider.jsx-2467849725{border-top:1px solid ".concat(colors.grey400, ";padding-top:").concat(spacers.dp8, ";margin-top:").concat(spacers.dp8, ";}")];
3
+ _defaultExport.__hash = "2467849725";
4
4
  export default _defaultExport;
package/build/es/index.js CHANGED
@@ -81,7 +81,7 @@ export { createVisualization } from './visualizations/index.js'; // Modules: fon
81
81
 
82
82
  export { FONT_STYLE_VISUALIZATION_TITLE, FONT_STYLE_VISUALIZATION_SUBTITLE, FONT_STYLE_HORIZONTAL_AXIS_TITLE, FONT_STYLE_VERTICAL_AXIS_TITLE, FONT_STYLE_LEGEND, FONT_STYLE_AXIS_LABELS, FONT_STYLE_REGRESSION_LINE_LABEL, FONT_STYLE_OPTION_FONT, FONT_STYLE_OPTION_FONT_SIZE, FONT_STYLE_OPTION_BOLD, FONT_STYLE_OPTION_ITALIC, FONT_STYLE_OPTION_UNDERLINE, FONT_STYLE_OPTION_TEXT_COLOR, FONT_STYLE_OPTION_TEXT_ALIGN, TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER, TEXT_ALIGN_RIGHT, defaultFontStyle, getFontSizeOptions, getTextAlignOptions, deleteFontStyleOption } from './modules/fontStyle.js'; // Modules: legend
83
83
 
84
- export { LEGEND_DISPLAY_STRATEGY_BY_DATA_ITEM, LEGEND_DISPLAY_STRATEGY_FIXED, LEGEND_DISPLAY_STYLE_FILL, LEGEND_DISPLAY_STYLE_TEXT } from './modules/legends.js'; // Modules: general
84
+ export { LEGEND_DISPLAY_STRATEGY_BY_DATA_ITEM, LEGEND_DISPLAY_STRATEGY_FIXED, LEGEND_DISPLAY_STYLE_FILL, LEGEND_DISPLAY_STYLE_TEXT, getColorByValueFromLegendSet } from './modules/legends.js'; // Modules: general
85
85
 
86
86
  export { renderValue as formatValue } from './modules/renderValue.js'; // Utils: colorSets
87
87
 
@@ -61,9 +61,9 @@
61
61
  "Nothing found for {{searchTerm}}": "",
62
62
  "Delete {{fileType}}": "",
63
63
  "This {{fileType}} and related interpretations will be deleted. Continue?": "",
64
- "Cancel": "",
64
+ "Cancel": "Anulare",
65
65
  "Delete": "Lichidare",
66
- "File": "",
66
+ "File": "Fişier",
67
67
  "New": "Nou",
68
68
  "Open…": "",
69
69
  "Save": "salva",
@@ -142,11 +142,11 @@
142
142
  "Select a level": "",
143
143
  "Select a group": "",
144
144
  "Deselect all": "",
145
- "Period type": "",
146
- "Year": "",
145
+ "Period type": "Tipul perioadei",
146
+ "Year": "An",
147
147
  "Select year": "",
148
148
  "Period": "",
149
- "Relative periods": "",
149
+ "Relative periods": "Perioade relative",
150
150
  "Fixed periods": "",
151
151
  "Selected Periods": "",
152
152
  "No periods selected": "",
@@ -171,66 +171,66 @@
171
171
  "Weekly (Start Saturday)": "",
172
172
  "Weekly (Start Sunday)": "",
173
173
  "Bi-weekly": "",
174
- "Monthly": "",
174
+ "Monthly": "Lunar",
175
175
  "Bi-monthly": "",
176
- "Quarterly": "",
176
+ "Quarterly": "Trimestrial",
177
177
  "Six-monthly": "",
178
178
  "Six-monthly April": "",
179
- "Yearly": "",
179
+ "Yearly": "Anual",
180
180
  "Financial year (Start November)": "",
181
181
  "Financial year (Start October)": "",
182
182
  "Financial year (Start July)": "",
183
183
  "Financial year (Start April)": "",
184
184
  "Today": "Astăzi",
185
- "Yesterday": "",
186
- "Last 3 days": "",
187
- "Last 7 days": "",
188
- "Last 14 days": "",
185
+ "Yesterday": "Ieri",
186
+ "Last 3 days": "Ultimele 3 zile",
187
+ "Last 7 days": "Ultimele 7 zile",
188
+ "Last 14 days": "Ultimele 14 zile",
189
189
  "Last 30 days": "",
190
190
  "Last 60 days": "",
191
191
  "Last 90 days": "",
192
192
  "Last 180 days": "",
193
193
  "This week": "Săptămâna aceasta",
194
194
  "Last week": "Săptămâna trecută",
195
- "Last 4 weeks": "",
196
- "Last 12 weeks": "",
197
- "Last 52 weeks": "",
198
- "Weeks this year": "",
195
+ "Last 4 weeks": "Ultimele 4 săptămâni",
196
+ "Last 12 weeks": "Ultimele 12 săptămâni",
197
+ "Last 52 weeks": "Ultimele 52 de săptămâni",
198
+ "Weeks this year": "Săptămâni în anul curent",
199
199
  "This bi-week": "",
200
200
  "Last bi-week": "",
201
201
  "Last 4 bi-weeks": "",
202
202
  "This month": "Luna aceasta",
203
203
  "Last month": "Luna trecută",
204
204
  "Last 3 months": "Ultimele 3 luni",
205
- "Last 6 months": "",
206
- "Last 12 months": "",
207
- "Months this year": "",
205
+ "Last 6 months": "Ultimele 6 luni",
206
+ "Last 12 months": "Ultimele 12 luni",
207
+ "Months this year": "Luni în anul curent",
208
208
  "This bi-month": "",
209
209
  "Last bi-month": "",
210
210
  "Last 6 bi-months": "",
211
211
  "Bi-months this year": "",
212
212
  "This quarter": "",
213
- "Last quarter": "",
214
- "Last 4 quarters": "",
215
- "Quarters this year": "",
213
+ "Last quarter": "Ultimul trimestru",
214
+ "Last 4 quarters": "Ultimele 4 trimestre",
215
+ "Quarters this year": "Trimestre în anul curent",
216
216
  "This six-month": "",
217
- "Last six-month": "",
217
+ "Last six-month": "Ultimele șase luni",
218
218
  "Last 2 six-month": "",
219
219
  "This financial year": "",
220
- "Last financial year": "",
221
- "Last 5 financial years": "",
220
+ "Last financial year": "Ultimul an financiar",
221
+ "Last 5 financial years": "Ultimii 5 ani financiari",
222
222
  "This year": "",
223
- "Last year": "",
224
- "Last 5 years": "",
223
+ "Last year": "Anul trecut",
224
+ "Last 5 years": "Ultimii 5 ani",
225
225
  "Last 10 years": "",
226
226
  "Days": "Zile",
227
- "Weeks": "",
227
+ "Weeks": "Săptămâni",
228
228
  "Bi-weeks": "",
229
229
  "Months": "Luni",
230
- "Bi-months": "",
231
- "Quarters": "",
232
- "Six-months": "",
233
- "Financial Years": "",
230
+ "Bi-months": "Bi-lunar",
231
+ "Quarters": "Trimestre",
232
+ "Six-months": "Șase luni",
233
+ "Financial Years": "Ani financiari",
234
234
  "Years": "Ani",
235
235
  "Translating to": "",
236
236
  "Choose a locale": "",
@@ -251,21 +251,21 @@
251
251
  "Actual reports": "",
252
252
  "Actual reports on time": "",
253
253
  "Expected reports": "",
254
- "Program": "",
254
+ "Program": "Program",
255
255
  "Select a program": "",
256
256
  "Indicators": "Indicatori",
257
- "Indicator group": "",
257
+ "Indicator group": "Grup de indicatori",
258
258
  "All groups": "",
259
- "Indicator": "",
259
+ "Indicator": "Indicator",
260
260
  "No indicator groups found": "",
261
261
  "Loading indicator groups": "",
262
- "Data elements": "",
262
+ "Data elements": "Elemente de date",
263
263
  "Data element group": "",
264
264
  "Data element": "",
265
265
  "No data element groups found": "",
266
266
  "Loading data element groups": "",
267
267
  "Data sets": "",
268
- "Data set": "",
268
+ "Data set": "Set de date",
269
269
  "All data sets": "",
270
270
  "Loading data sets": "",
271
271
  "Event data items": "",
@@ -2,8 +2,12 @@ export const LEGEND_DISPLAY_STRATEGY_BY_DATA_ITEM = 'BY_DATA_ITEM';
2
2
  export const LEGEND_DISPLAY_STRATEGY_FIXED = 'FIXED';
3
3
  export const LEGEND_DISPLAY_STYLE_FILL = 'FILL';
4
4
  export const LEGEND_DISPLAY_STYLE_TEXT = 'TEXT';
5
- export const getLegendByValueFromLegendSet = (legendSet, value) => legendSet.legends.find(legend => value >= legend.startValue && value < legend.endValue // TODO: Confirm inclusive/exclusive bounds
6
- );
5
+ export const getLegendByValueFromLegendSet = (legendSet, value) => {
6
+ var _legendSet$legends;
7
+
8
+ return legendSet === null || legendSet === void 0 ? void 0 : (_legendSet$legends = legendSet.legends) === null || _legendSet$legends === void 0 ? void 0 : _legendSet$legends.find(legend => value >= legend.startValue && value < legend.endValue // TODO: Confirm inclusive/exclusive bounds
9
+ );
10
+ };
7
11
  export const getColorByValueFromLegendSet = (legendSet, value) => {
8
12
  const legend = getLegendByValueFromLegendSet(legendSet, value);
9
13
  return legend && legend.color;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/analytics",
3
- "version": "23.10.3",
3
+ "version": "23.11.1",
4
4
  "main": "./build/cjs/index.js",
5
5
  "module": "./build/es/index.js",
6
6
  "exports": {
@@ -35,7 +35,7 @@
35
35
  "@dhis2/cli-app-scripts": "^9.0.0",
36
36
  "@dhis2/cli-style": "^10.4.1",
37
37
  "@dhis2/d2-i18n": "^1.1.0",
38
- "@dhis2/ui": "^8.2.5",
38
+ "@dhis2/ui": "^8.3.1",
39
39
  "@sambego/storybook-state": "^2.0.1",
40
40
  "@storybook/addons": "^6.1.14",
41
41
  "@storybook/preset-create-react-app": "^3.1.7",