@dhis2/analytics 25.2.0 → 25.2.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/CHANGELOG.md +4065 -0
- package/build/cjs/__demo__/FileMenu.stories.js +6 -8
- package/build/cjs/components/FileMenu/FileMenu.js +59 -21
- package/build/cjs/components/FileMenu/__tests__/FileMenu.spec.js +194 -318
- package/build/cjs/components/Options/VisualizationOptions.js +1 -3
- package/build/cjs/index.js +46 -304
- package/build/cjs/locales/en/translations.json +0 -1
- package/build/cjs/locales/nl/translations.json +5 -4
- package/build/es/__demo__/FileMenu.stories.js +6 -7
- package/build/es/components/FileMenu/FileMenu.js +57 -20
- package/build/es/components/FileMenu/__tests__/FileMenu.spec.js +189 -293
- package/build/es/components/Options/VisualizationOptions.js +1 -3
- package/build/es/index.js +0 -1
- package/build/es/locales/en/translations.json +0 -1
- package/build/es/locales/nl/translations.json +5 -4
- package/package.json +1 -3
- package/build/cjs/__demo__/Toolbar.stories.js +0 -77
- package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuBar.js +0 -107
- package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuDropdown.js +0 -66
- package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuList.js +0 -94
- package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuListItem.js +0 -99
- package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuListItem.styles.js +0 -13
- package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuBar.spec.js +0 -219
- package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuDropdown.spec.js +0 -23
- package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuList.spec.js +0 -56
- package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuListItem.spec.js +0 -50
- package/build/cjs/components/Toolbar/HoverMenuBar/index.js +0 -37
- package/build/cjs/components/Toolbar/InterpretationsAndDetailsToggler.js +0 -50
- package/build/cjs/components/Toolbar/MenuButton.styles.js +0 -13
- package/build/cjs/components/Toolbar/Toolbar.js +0 -39
- package/build/cjs/components/Toolbar/ToolbarSidebar.js +0 -45
- package/build/cjs/components/Toolbar/UpdateButton.js +0 -57
- package/build/cjs/components/Toolbar/__tests__/InterpretationsAndDetailsToggler.spec.js +0 -50
- package/build/cjs/components/Toolbar/__tests__/Toolbar.spec.js +0 -24
- package/build/cjs/components/Toolbar/__tests__/ToolbarSidebar.spec.js +0 -30
- package/build/cjs/components/Toolbar/__tests__/UpdateButton.spec.js +0 -44
- package/build/cjs/components/Toolbar/index.js +0 -57
- package/build/es/__demo__/Toolbar.stories.js +0 -69
- package/build/es/components/Toolbar/HoverMenuBar/HoverMenuBar.js +0 -90
- package/build/es/components/Toolbar/HoverMenuBar/HoverMenuDropdown.js +0 -44
- package/build/es/components/Toolbar/HoverMenuBar/HoverMenuList.js +0 -75
- package/build/es/components/Toolbar/HoverMenuBar/HoverMenuListItem.js +0 -78
- package/build/es/components/Toolbar/HoverMenuBar/HoverMenuListItem.styles.js +0 -4
- package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuBar.spec.js +0 -168
- package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuDropdown.spec.js +0 -16
- package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuList.spec.js +0 -49
- package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuListItem.spec.js +0 -41
- package/build/es/components/Toolbar/HoverMenuBar/index.js +0 -4
- package/build/es/components/Toolbar/InterpretationsAndDetailsToggler.js +0 -33
- package/build/es/components/Toolbar/MenuButton.styles.js +0 -4
- package/build/es/components/Toolbar/Toolbar.js +0 -24
- package/build/es/components/Toolbar/ToolbarSidebar.js +0 -29
- package/build/es/components/Toolbar/UpdateButton.js +0 -38
- package/build/es/components/Toolbar/__tests__/InterpretationsAndDetailsToggler.spec.js +0 -43
- package/build/es/components/Toolbar/__tests__/Toolbar.spec.js +0 -17
- package/build/es/components/Toolbar/__tests__/ToolbarSidebar.spec.js +0 -23
- package/build/es/components/Toolbar/__tests__/UpdateButton.spec.js +0 -37
- package/build/es/components/Toolbar/index.js +0 -5
package/build/cjs/index.js
CHANGED
|
@@ -3,250 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
DataDimension: true,
|
|
8
|
-
PeriodDimension: true,
|
|
9
|
-
FixedPeriodSelect: true,
|
|
10
|
-
OrgUnitDimension: true,
|
|
11
|
-
DynamicDimension: true,
|
|
12
|
-
ALL_DYNAMIC_DIMENSION_ITEMS: true,
|
|
13
|
-
DimensionsPanel: true,
|
|
14
|
-
DimensionItem: true,
|
|
15
|
-
DimensionFilter: true,
|
|
16
|
-
DimensionMenu: true,
|
|
17
|
-
PivotTable: true,
|
|
18
|
-
FileMenu: true,
|
|
19
|
-
VisTypeIcon: true,
|
|
20
|
-
LegendKey: true,
|
|
21
|
-
AboutAOUnit: true,
|
|
22
|
-
InterpretationsUnit: true,
|
|
23
|
-
InterpretationModal: true,
|
|
24
|
-
TranslationDialog: true,
|
|
25
|
-
OfflineTooltip: true,
|
|
26
|
-
CachedDataQueryProvider: true,
|
|
27
|
-
useCachedDataQuery: true,
|
|
28
|
-
Analytics: true,
|
|
29
|
-
apiFetchDimensions: true,
|
|
30
|
-
apiFetchRecommendedIds: true,
|
|
31
|
-
apiFetchItemsByDimension: true,
|
|
32
|
-
apiFetchOrganisationUnitLevels: true,
|
|
33
|
-
apiFetchOrganisationUnitRoots: true,
|
|
34
|
-
apiFetchOrganisationUnit: true,
|
|
35
|
-
getAxisName: true,
|
|
36
|
-
getAxisNameByLayoutType: true,
|
|
37
|
-
hasCustomAxes: true,
|
|
38
|
-
DIMENSION_ID_DATA: true,
|
|
39
|
-
DIMENSION_ID_PERIOD: true,
|
|
40
|
-
DIMENSION_ID_ORGUNIT: true,
|
|
41
|
-
DIMENSION_ID_ASSIGNED_CATEGORIES: true,
|
|
42
|
-
DIMENSION_PROP_NO_ITEMS: true,
|
|
43
|
-
filterOutPredefinedDimensions: true,
|
|
44
|
-
getPredefinedDimensionProp: true,
|
|
45
|
-
getDimensionById: true,
|
|
46
|
-
getPredefinedDimensions: true,
|
|
47
|
-
getFixedDimensions: true,
|
|
48
|
-
getDynamicDimensions: true,
|
|
49
|
-
ouIdHelper: true,
|
|
50
|
-
USER_ORG_UNIT: true,
|
|
51
|
-
USER_ORG_UNIT_CHILDREN: true,
|
|
52
|
-
USER_ORG_UNIT_GRANDCHILDREN: true,
|
|
53
|
-
convertOuLevelsToUids: true,
|
|
54
|
-
getAdaptedUiLayoutByType: true,
|
|
55
|
-
hasRelativeItems: true,
|
|
56
|
-
LAYOUT: true,
|
|
57
|
-
layoutFilterDimensions: true,
|
|
58
|
-
layoutGetAllAxes: true,
|
|
59
|
-
layoutGetAllDimensions: true,
|
|
60
|
-
layoutGetAllItemIds: true,
|
|
61
|
-
layoutGetAllItems: true,
|
|
62
|
-
layoutGetAxisIdDimensionIdsObject: true,
|
|
63
|
-
layoutGetDimension: true,
|
|
64
|
-
layoutGetDimensionItems: true,
|
|
65
|
-
layoutReplaceDimension: true,
|
|
66
|
-
layoutGetDimensionIdItemIdsObject: true,
|
|
67
|
-
layoutHasDataDimension: true,
|
|
68
|
-
layoutHasDimension: true,
|
|
69
|
-
layoutHasDynamicDimension: true,
|
|
70
|
-
layoutHasPeriodDimension: true,
|
|
71
|
-
VALUE_TYPE_NUMBER: true,
|
|
72
|
-
VALUE_TYPE_UNIT_INTERVAL: true,
|
|
73
|
-
VALUE_TYPE_PERCENTAGE: true,
|
|
74
|
-
VALUE_TYPE_INTEGER: true,
|
|
75
|
-
VALUE_TYPE_INTEGER_POSITIVE: true,
|
|
76
|
-
VALUE_TYPE_INTEGER_NEGATIVE: true,
|
|
77
|
-
VALUE_TYPE_INTEGER_ZERO_OR_POSITIVE: true,
|
|
78
|
-
VALUE_TYPE_TEXT: true,
|
|
79
|
-
VALUE_TYPE_LONG_TEXT: true,
|
|
80
|
-
VALUE_TYPE_LETTER: true,
|
|
81
|
-
VALUE_TYPE_PHONE_NUMBER: true,
|
|
82
|
-
VALUE_TYPE_EMAIL: true,
|
|
83
|
-
VALUE_TYPE_USERNAME: true,
|
|
84
|
-
VALUE_TYPE_URL: true,
|
|
85
|
-
VALUE_TYPE_BOOLEAN: true,
|
|
86
|
-
VALUE_TYPE_TRUE_ONLY: true,
|
|
87
|
-
VALUE_TYPE_DATE: true,
|
|
88
|
-
VALUE_TYPE_TIME: true,
|
|
89
|
-
VALUE_TYPE_DATETIME: true,
|
|
90
|
-
VALUE_TYPE_ORGANISATION_UNIT: true,
|
|
91
|
-
VALUE_TYPE_AGE: true,
|
|
92
|
-
AXIS: true,
|
|
93
|
-
AXIS_ID_COLUMNS: true,
|
|
94
|
-
AXIS_ID_ROWS: true,
|
|
95
|
-
AXIS_ID_FILTERS: true,
|
|
96
|
-
DEFAULT_AXIS_IDS: true,
|
|
97
|
-
axisGetAllItems: true,
|
|
98
|
-
axisGetDimension: true,
|
|
99
|
-
axisGetDimensionIds: true,
|
|
100
|
-
axisHasDataDimension: true,
|
|
101
|
-
axisHasDimension: true,
|
|
102
|
-
axisHasPeriodDimension: true,
|
|
103
|
-
axisHasOuDimension: true,
|
|
104
|
-
axisIsEmpty: true,
|
|
105
|
-
DIMENSION: true,
|
|
106
|
-
DIMENSION_PROP_ID: true,
|
|
107
|
-
DIMENSION_PROP_ITEMS: true,
|
|
108
|
-
DIMENSION_PROPS: true,
|
|
109
|
-
dimensionCreate: true,
|
|
110
|
-
dimensionGetId: true,
|
|
111
|
-
dimensionGetItemIds: true,
|
|
112
|
-
dimensionGetItems: true,
|
|
113
|
-
dimensionIs: true,
|
|
114
|
-
dimensionIsEmpty: true,
|
|
115
|
-
dimensionIsValid: true,
|
|
116
|
-
ITEM: true,
|
|
117
|
-
ITEM_PROP_ID: true,
|
|
118
|
-
ITEM_PROPS: true,
|
|
119
|
-
itemGetId: true,
|
|
120
|
-
itemIsValid: true,
|
|
121
|
-
getLayoutTypeByVisType: true,
|
|
122
|
-
VIS_TYPE_GROUP_ALL: true,
|
|
123
|
-
VIS_TYPE_GROUP_CHARTS: true,
|
|
124
|
-
VIS_TYPE_COLUMN: true,
|
|
125
|
-
VIS_TYPE_STACKED_COLUMN: true,
|
|
126
|
-
VIS_TYPE_BAR: true,
|
|
127
|
-
VIS_TYPE_STACKED_BAR: true,
|
|
128
|
-
VIS_TYPE_LINE: true,
|
|
129
|
-
VIS_TYPE_AREA: true,
|
|
130
|
-
VIS_TYPE_STACKED_AREA: true,
|
|
131
|
-
VIS_TYPE_PIE: true,
|
|
132
|
-
VIS_TYPE_RADAR: true,
|
|
133
|
-
VIS_TYPE_GAUGE: true,
|
|
134
|
-
VIS_TYPE_BUBBLE: true,
|
|
135
|
-
VIS_TYPE_YEAR_OVER_YEAR_LINE: true,
|
|
136
|
-
VIS_TYPE_YEAR_OVER_YEAR_COLUMN: true,
|
|
137
|
-
VIS_TYPE_SINGLE_VALUE: true,
|
|
138
|
-
VIS_TYPE_PIVOT_TABLE: true,
|
|
139
|
-
VIS_TYPE_SCATTER: true,
|
|
140
|
-
VIS_TYPE_LINE_LIST: true,
|
|
141
|
-
visTypeDisplayNames: true,
|
|
142
|
-
visTypeIcons: true,
|
|
143
|
-
getDisplayNameByVisType: true,
|
|
144
|
-
defaultVisType: true,
|
|
145
|
-
isStacked: true,
|
|
146
|
-
isMultiType: true,
|
|
147
|
-
isYearOverYear: true,
|
|
148
|
-
isDualAxisType: true,
|
|
149
|
-
isSingleValue: true,
|
|
150
|
-
isTwoCategoryChartType: true,
|
|
151
|
-
isLegendSetType: true,
|
|
152
|
-
isColumnBasedType: true,
|
|
153
|
-
isVerticalType: true,
|
|
154
|
-
LAYOUT_TYPE_DEFAULT: true,
|
|
155
|
-
LAYOUT_TYPE_PIE: true,
|
|
156
|
-
LAYOUT_TYPE_SINGLE_VALUE: true,
|
|
157
|
-
LAYOUT_TYPE_YEAR_OVER_YEAR: true,
|
|
158
|
-
LAYOUT_TYPE_PIVOT_TABLE: true,
|
|
159
|
-
LAYOUT_TYPE_SCATTER: true,
|
|
160
|
-
LAYOUT_TYPE_LINE_LIST: true,
|
|
161
|
-
getAvailableAxes: true,
|
|
162
|
-
getDisallowedDimensions: true,
|
|
163
|
-
getAxisMaxNumberOfItems: true,
|
|
164
|
-
getAxisMaxNumberOfDimensions: true,
|
|
165
|
-
getAxisMinNumberOfDimensions: true,
|
|
166
|
-
hasAxisTooManyItems: true,
|
|
167
|
-
getAxisPerLockedDimension: true,
|
|
168
|
-
getAllLockedDimensionIds: true,
|
|
169
|
-
canDimensionBeAddedToAxis: true,
|
|
170
|
-
isDimensionLocked: true,
|
|
171
|
-
isAxisFull: true,
|
|
172
|
-
getTransferableDimension: true,
|
|
173
|
-
createVisualization: true,
|
|
174
|
-
FONT_STYLE_VISUALIZATION_TITLE: true,
|
|
175
|
-
FONT_STYLE_VISUALIZATION_SUBTITLE: true,
|
|
176
|
-
FONT_STYLE_HORIZONTAL_AXIS_TITLE: true,
|
|
177
|
-
FONT_STYLE_VERTICAL_AXIS_TITLE: true,
|
|
178
|
-
FONT_STYLE_LEGEND: true,
|
|
179
|
-
FONT_STYLE_AXIS_LABELS: true,
|
|
180
|
-
FONT_STYLE_REGRESSION_LINE_LABEL: true,
|
|
181
|
-
FONT_STYLE_OPTION_FONT: true,
|
|
182
|
-
FONT_STYLE_OPTION_FONT_SIZE: true,
|
|
183
|
-
FONT_STYLE_OPTION_BOLD: true,
|
|
184
|
-
FONT_STYLE_OPTION_ITALIC: true,
|
|
185
|
-
FONT_STYLE_OPTION_UNDERLINE: true,
|
|
186
|
-
FONT_STYLE_OPTION_TEXT_COLOR: true,
|
|
187
|
-
FONT_STYLE_OPTION_TEXT_ALIGN: true,
|
|
188
|
-
TEXT_ALIGN_LEFT: true,
|
|
189
|
-
TEXT_ALIGN_CENTER: true,
|
|
190
|
-
TEXT_ALIGN_RIGHT: true,
|
|
191
|
-
defaultFontStyle: true,
|
|
192
|
-
getFontSizeOptions: true,
|
|
193
|
-
getTextAlignOptions: true,
|
|
194
|
-
deleteFontStyleOption: true,
|
|
195
|
-
LEGEND_DISPLAY_STRATEGY_BY_DATA_ITEM: true,
|
|
196
|
-
LEGEND_DISPLAY_STRATEGY_FIXED: true,
|
|
197
|
-
LEGEND_DISPLAY_STYLE_FILL: true,
|
|
198
|
-
LEGEND_DISPLAY_STYLE_TEXT: true,
|
|
199
|
-
getColorByValueFromLegendSet: true,
|
|
200
|
-
formatValue: true,
|
|
201
|
-
COLOR_SET_DEFAULT: true,
|
|
202
|
-
COLOR_SET_BASIC: true,
|
|
203
|
-
COLOR_SET_EXTENDED: true,
|
|
204
|
-
COLOR_SET_BRIGHT: true,
|
|
205
|
-
COLOR_SET_DARK: true,
|
|
206
|
-
COLOR_SET_GRAY: true,
|
|
207
|
-
COLOR_SET_COLOR_BLIND: true,
|
|
208
|
-
COLOR_SET_PATTERNS: true,
|
|
209
|
-
colorSets: true,
|
|
210
|
-
DAILY: true,
|
|
211
|
-
WEEKLY: true,
|
|
212
|
-
WEEKLYWED: true,
|
|
213
|
-
WEEKLYTHU: true,
|
|
214
|
-
WEEKLYSAT: true,
|
|
215
|
-
WEEKLYSUN: true,
|
|
216
|
-
WEEKS_THIS_YEAR: true,
|
|
217
|
-
BIWEEKLY: true,
|
|
218
|
-
MONTHLY: true,
|
|
219
|
-
BIMONTHLY: true,
|
|
220
|
-
QUARTERLY: true,
|
|
221
|
-
SIXMONTHLY: true,
|
|
222
|
-
SIXMONTHLYAPR: true,
|
|
223
|
-
YEARLY: true,
|
|
224
|
-
FINANCIAL: true,
|
|
225
|
-
FYNOV: true,
|
|
226
|
-
FYOCT: true,
|
|
227
|
-
FYJUL: true,
|
|
228
|
-
FYAPR: true,
|
|
229
|
-
getRelativePeriodsOptionsById: true,
|
|
230
|
-
getFixedPeriodsOptionsById: true,
|
|
231
|
-
VisualizationOptions: true,
|
|
232
|
-
DIMENSION_TYPE_INDICATOR: true,
|
|
233
|
-
DIMENSION_TYPE_DATA_ELEMENT: true,
|
|
234
|
-
DIMENSION_TYPE_DATA_SET: true,
|
|
235
|
-
DIMENSION_TYPE_EVENT_DATA_ITEM: true,
|
|
236
|
-
DIMENSION_TYPE_PROGRAM_INDICATOR: true,
|
|
237
|
-
DIMENSION_TYPE_PROGRAM_DATA_ELEMENT: true,
|
|
238
|
-
DIMENSION_TYPE_PROGRAM_ATTRIBUTE: true,
|
|
239
|
-
DIMENSION_TYPE_DATA_ELEMENT_OPERAND: true,
|
|
240
|
-
DIMENSION_TYPE_CATEGORY: true,
|
|
241
|
-
DIMENSION_TYPE_CATEGORY_OPTION_GROUP_SET: true,
|
|
242
|
-
DIMENSION_TYPE_ALL: true,
|
|
243
|
-
DIMENSION_TYPE_DATA: true,
|
|
244
|
-
DIMENSION_TYPE_DATA_ELEMENT_GROUP_SET: true,
|
|
245
|
-
DIMENSION_TYPE_ORGANISATION_UNIT: true,
|
|
246
|
-
DIMENSION_TYPE_PERIOD: true,
|
|
247
|
-
DIMENSION_TYPE_ORGANISATION_UNIT_GROUP_SET: true,
|
|
248
|
-
DIMENSION_TYPE_EXPRESSION_DIMENSION_ITEM: true
|
|
249
|
-
};
|
|
250
6
|
Object.defineProperty(exports, "ALL_DYNAMIC_DIMENSION_ITEMS", {
|
|
251
7
|
enumerable: true,
|
|
252
8
|
get: function () {
|
|
@@ -292,13 +48,13 @@ Object.defineProperty(exports, "Analytics", {
|
|
|
292
48
|
Object.defineProperty(exports, "BIMONTHLY", {
|
|
293
49
|
enumerable: true,
|
|
294
50
|
get: function () {
|
|
295
|
-
return
|
|
51
|
+
return _index8.BIMONTHLY;
|
|
296
52
|
}
|
|
297
53
|
});
|
|
298
54
|
Object.defineProperty(exports, "BIWEEKLY", {
|
|
299
55
|
enumerable: true,
|
|
300
56
|
get: function () {
|
|
301
|
-
return
|
|
57
|
+
return _index8.BIWEEKLY;
|
|
302
58
|
}
|
|
303
59
|
});
|
|
304
60
|
Object.defineProperty(exports, "COLOR_SET_BASIC", {
|
|
@@ -358,7 +114,7 @@ Object.defineProperty(exports, "CachedDataQueryProvider", {
|
|
|
358
114
|
Object.defineProperty(exports, "DAILY", {
|
|
359
115
|
enumerable: true,
|
|
360
116
|
get: function () {
|
|
361
|
-
return
|
|
117
|
+
return _index8.DAILY;
|
|
362
118
|
}
|
|
363
119
|
});
|
|
364
120
|
Object.defineProperty(exports, "DEFAULT_AXIS_IDS", {
|
|
@@ -562,7 +318,7 @@ Object.defineProperty(exports, "DynamicDimension", {
|
|
|
562
318
|
Object.defineProperty(exports, "FINANCIAL", {
|
|
563
319
|
enumerable: true,
|
|
564
320
|
get: function () {
|
|
565
|
-
return
|
|
321
|
+
return _index8.FINANCIAL;
|
|
566
322
|
}
|
|
567
323
|
});
|
|
568
324
|
Object.defineProperty(exports, "FONT_STYLE_AXIS_LABELS", {
|
|
@@ -652,25 +408,25 @@ Object.defineProperty(exports, "FONT_STYLE_VISUALIZATION_TITLE", {
|
|
|
652
408
|
Object.defineProperty(exports, "FYAPR", {
|
|
653
409
|
enumerable: true,
|
|
654
410
|
get: function () {
|
|
655
|
-
return
|
|
411
|
+
return _index8.FYAPR;
|
|
656
412
|
}
|
|
657
413
|
});
|
|
658
414
|
Object.defineProperty(exports, "FYJUL", {
|
|
659
415
|
enumerable: true,
|
|
660
416
|
get: function () {
|
|
661
|
-
return
|
|
417
|
+
return _index8.FYJUL;
|
|
662
418
|
}
|
|
663
419
|
});
|
|
664
420
|
Object.defineProperty(exports, "FYNOV", {
|
|
665
421
|
enumerable: true,
|
|
666
422
|
get: function () {
|
|
667
|
-
return
|
|
423
|
+
return _index8.FYNOV;
|
|
668
424
|
}
|
|
669
425
|
});
|
|
670
426
|
Object.defineProperty(exports, "FYOCT", {
|
|
671
427
|
enumerable: true,
|
|
672
428
|
get: function () {
|
|
673
|
-
return
|
|
429
|
+
return _index8.FYOCT;
|
|
674
430
|
}
|
|
675
431
|
});
|
|
676
432
|
Object.defineProperty(exports, "FileMenu", {
|
|
@@ -796,7 +552,7 @@ Object.defineProperty(exports, "LegendKey", {
|
|
|
796
552
|
Object.defineProperty(exports, "MONTHLY", {
|
|
797
553
|
enumerable: true,
|
|
798
554
|
get: function () {
|
|
799
|
-
return
|
|
555
|
+
return _index8.MONTHLY;
|
|
800
556
|
}
|
|
801
557
|
});
|
|
802
558
|
Object.defineProperty(exports, "OfflineTooltip", {
|
|
@@ -826,19 +582,19 @@ Object.defineProperty(exports, "PivotTable", {
|
|
|
826
582
|
Object.defineProperty(exports, "QUARTERLY", {
|
|
827
583
|
enumerable: true,
|
|
828
584
|
get: function () {
|
|
829
|
-
return
|
|
585
|
+
return _index8.QUARTERLY;
|
|
830
586
|
}
|
|
831
587
|
});
|
|
832
588
|
Object.defineProperty(exports, "SIXMONTHLY", {
|
|
833
589
|
enumerable: true,
|
|
834
590
|
get: function () {
|
|
835
|
-
return
|
|
591
|
+
return _index8.SIXMONTHLY;
|
|
836
592
|
}
|
|
837
593
|
});
|
|
838
594
|
Object.defineProperty(exports, "SIXMONTHLYAPR", {
|
|
839
595
|
enumerable: true,
|
|
840
596
|
get: function () {
|
|
841
|
-
return
|
|
597
|
+
return _index8.SIXMONTHLYAPR;
|
|
842
598
|
}
|
|
843
599
|
});
|
|
844
600
|
Object.defineProperty(exports, "TEXT_ALIGN_CENTER", {
|
|
@@ -862,25 +618,25 @@ Object.defineProperty(exports, "TEXT_ALIGN_RIGHT", {
|
|
|
862
618
|
Object.defineProperty(exports, "TranslationDialog", {
|
|
863
619
|
enumerable: true,
|
|
864
620
|
get: function () {
|
|
865
|
-
return
|
|
621
|
+
return _index2.TranslationDialog;
|
|
866
622
|
}
|
|
867
623
|
});
|
|
868
624
|
Object.defineProperty(exports, "USER_ORG_UNIT", {
|
|
869
625
|
enumerable: true,
|
|
870
626
|
get: function () {
|
|
871
|
-
return
|
|
627
|
+
return _index3.USER_ORG_UNIT;
|
|
872
628
|
}
|
|
873
629
|
});
|
|
874
630
|
Object.defineProperty(exports, "USER_ORG_UNIT_CHILDREN", {
|
|
875
631
|
enumerable: true,
|
|
876
632
|
get: function () {
|
|
877
|
-
return
|
|
633
|
+
return _index3.USER_ORG_UNIT_CHILDREN;
|
|
878
634
|
}
|
|
879
635
|
});
|
|
880
636
|
Object.defineProperty(exports, "USER_ORG_UNIT_GRANDCHILDREN", {
|
|
881
637
|
enumerable: true,
|
|
882
638
|
get: function () {
|
|
883
|
-
return
|
|
639
|
+
return _index3.USER_ORG_UNIT_GRANDCHILDREN;
|
|
884
640
|
}
|
|
885
641
|
});
|
|
886
642
|
Object.defineProperty(exports, "VALUE_TYPE_AGE", {
|
|
@@ -1138,43 +894,43 @@ Object.defineProperty(exports, "VisualizationOptions", {
|
|
|
1138
894
|
Object.defineProperty(exports, "WEEKLY", {
|
|
1139
895
|
enumerable: true,
|
|
1140
896
|
get: function () {
|
|
1141
|
-
return
|
|
897
|
+
return _index8.WEEKLY;
|
|
1142
898
|
}
|
|
1143
899
|
});
|
|
1144
900
|
Object.defineProperty(exports, "WEEKLYSAT", {
|
|
1145
901
|
enumerable: true,
|
|
1146
902
|
get: function () {
|
|
1147
|
-
return
|
|
903
|
+
return _index8.WEEKLYSAT;
|
|
1148
904
|
}
|
|
1149
905
|
});
|
|
1150
906
|
Object.defineProperty(exports, "WEEKLYSUN", {
|
|
1151
907
|
enumerable: true,
|
|
1152
908
|
get: function () {
|
|
1153
|
-
return
|
|
909
|
+
return _index8.WEEKLYSUN;
|
|
1154
910
|
}
|
|
1155
911
|
});
|
|
1156
912
|
Object.defineProperty(exports, "WEEKLYTHU", {
|
|
1157
913
|
enumerable: true,
|
|
1158
914
|
get: function () {
|
|
1159
|
-
return
|
|
915
|
+
return _index8.WEEKLYTHU;
|
|
1160
916
|
}
|
|
1161
917
|
});
|
|
1162
918
|
Object.defineProperty(exports, "WEEKLYWED", {
|
|
1163
919
|
enumerable: true,
|
|
1164
920
|
get: function () {
|
|
1165
|
-
return
|
|
921
|
+
return _index8.WEEKLYWED;
|
|
1166
922
|
}
|
|
1167
923
|
});
|
|
1168
924
|
Object.defineProperty(exports, "WEEKS_THIS_YEAR", {
|
|
1169
925
|
enumerable: true,
|
|
1170
926
|
get: function () {
|
|
1171
|
-
return
|
|
927
|
+
return _index8.WEEKS_THIS_YEAR;
|
|
1172
928
|
}
|
|
1173
929
|
});
|
|
1174
930
|
Object.defineProperty(exports, "YEARLY", {
|
|
1175
931
|
enumerable: true,
|
|
1176
932
|
get: function () {
|
|
1177
|
-
return
|
|
933
|
+
return _index8.YEARLY;
|
|
1178
934
|
}
|
|
1179
935
|
});
|
|
1180
936
|
Object.defineProperty(exports, "apiFetchDimensions", {
|
|
@@ -1264,7 +1020,7 @@ Object.defineProperty(exports, "axisIsEmpty", {
|
|
|
1264
1020
|
Object.defineProperty(exports, "canDimensionBeAddedToAxis", {
|
|
1265
1021
|
enumerable: true,
|
|
1266
1022
|
get: function () {
|
|
1267
|
-
return
|
|
1023
|
+
return _index6.canDimensionBeAddedToAxis;
|
|
1268
1024
|
}
|
|
1269
1025
|
});
|
|
1270
1026
|
Object.defineProperty(exports, "colorSets", {
|
|
@@ -1276,13 +1032,13 @@ Object.defineProperty(exports, "colorSets", {
|
|
|
1276
1032
|
Object.defineProperty(exports, "convertOuLevelsToUids", {
|
|
1277
1033
|
enumerable: true,
|
|
1278
1034
|
get: function () {
|
|
1279
|
-
return
|
|
1035
|
+
return _index4.convertOuLevelsToUids;
|
|
1280
1036
|
}
|
|
1281
1037
|
});
|
|
1282
1038
|
Object.defineProperty(exports, "createVisualization", {
|
|
1283
1039
|
enumerable: true,
|
|
1284
1040
|
get: function () {
|
|
1285
|
-
return
|
|
1041
|
+
return _index7.createVisualization;
|
|
1286
1042
|
}
|
|
1287
1043
|
});
|
|
1288
1044
|
Object.defineProperty(exports, "defaultFontStyle", {
|
|
@@ -1366,31 +1122,31 @@ Object.defineProperty(exports, "getAdaptedUiLayoutByType", {
|
|
|
1366
1122
|
Object.defineProperty(exports, "getAllLockedDimensionIds", {
|
|
1367
1123
|
enumerable: true,
|
|
1368
1124
|
get: function () {
|
|
1369
|
-
return
|
|
1125
|
+
return _index6.getAllLockedDimensionIds;
|
|
1370
1126
|
}
|
|
1371
1127
|
});
|
|
1372
1128
|
Object.defineProperty(exports, "getAvailableAxes", {
|
|
1373
1129
|
enumerable: true,
|
|
1374
1130
|
get: function () {
|
|
1375
|
-
return
|
|
1131
|
+
return _index6.getAvailableAxes;
|
|
1376
1132
|
}
|
|
1377
1133
|
});
|
|
1378
1134
|
Object.defineProperty(exports, "getAxisMaxNumberOfDimensions", {
|
|
1379
1135
|
enumerable: true,
|
|
1380
1136
|
get: function () {
|
|
1381
|
-
return
|
|
1137
|
+
return _index6.getAxisMaxNumberOfDimensions;
|
|
1382
1138
|
}
|
|
1383
1139
|
});
|
|
1384
1140
|
Object.defineProperty(exports, "getAxisMaxNumberOfItems", {
|
|
1385
1141
|
enumerable: true,
|
|
1386
1142
|
get: function () {
|
|
1387
|
-
return
|
|
1143
|
+
return _index6.getAxisMaxNumberOfItems;
|
|
1388
1144
|
}
|
|
1389
1145
|
});
|
|
1390
1146
|
Object.defineProperty(exports, "getAxisMinNumberOfDimensions", {
|
|
1391
1147
|
enumerable: true,
|
|
1392
1148
|
get: function () {
|
|
1393
|
-
return
|
|
1149
|
+
return _index6.getAxisMinNumberOfDimensions;
|
|
1394
1150
|
}
|
|
1395
1151
|
});
|
|
1396
1152
|
Object.defineProperty(exports, "getAxisName", {
|
|
@@ -1408,7 +1164,7 @@ Object.defineProperty(exports, "getAxisNameByLayoutType", {
|
|
|
1408
1164
|
Object.defineProperty(exports, "getAxisPerLockedDimension", {
|
|
1409
1165
|
enumerable: true,
|
|
1410
1166
|
get: function () {
|
|
1411
|
-
return
|
|
1167
|
+
return _index6.getAxisPerLockedDimension;
|
|
1412
1168
|
}
|
|
1413
1169
|
});
|
|
1414
1170
|
Object.defineProperty(exports, "getColorByValueFromLegendSet", {
|
|
@@ -1426,7 +1182,7 @@ Object.defineProperty(exports, "getDimensionById", {
|
|
|
1426
1182
|
Object.defineProperty(exports, "getDisallowedDimensions", {
|
|
1427
1183
|
enumerable: true,
|
|
1428
1184
|
get: function () {
|
|
1429
|
-
return
|
|
1185
|
+
return _index6.getDisallowedDimensions;
|
|
1430
1186
|
}
|
|
1431
1187
|
});
|
|
1432
1188
|
Object.defineProperty(exports, "getDisplayNameByVisType", {
|
|
@@ -1492,13 +1248,13 @@ Object.defineProperty(exports, "getTextAlignOptions", {
|
|
|
1492
1248
|
Object.defineProperty(exports, "getTransferableDimension", {
|
|
1493
1249
|
enumerable: true,
|
|
1494
1250
|
get: function () {
|
|
1495
|
-
return
|
|
1251
|
+
return _index6.getTransferableDimension;
|
|
1496
1252
|
}
|
|
1497
1253
|
});
|
|
1498
1254
|
Object.defineProperty(exports, "hasAxisTooManyItems", {
|
|
1499
1255
|
enumerable: true,
|
|
1500
1256
|
get: function () {
|
|
1501
|
-
return
|
|
1257
|
+
return _index6.hasAxisTooManyItems;
|
|
1502
1258
|
}
|
|
1503
1259
|
});
|
|
1504
1260
|
Object.defineProperty(exports, "hasCustomAxes", {
|
|
@@ -1510,13 +1266,13 @@ Object.defineProperty(exports, "hasCustomAxes", {
|
|
|
1510
1266
|
Object.defineProperty(exports, "hasRelativeItems", {
|
|
1511
1267
|
enumerable: true,
|
|
1512
1268
|
get: function () {
|
|
1513
|
-
return
|
|
1269
|
+
return _index5.hasRelativeItems;
|
|
1514
1270
|
}
|
|
1515
1271
|
});
|
|
1516
1272
|
Object.defineProperty(exports, "isAxisFull", {
|
|
1517
1273
|
enumerable: true,
|
|
1518
1274
|
get: function () {
|
|
1519
|
-
return
|
|
1275
|
+
return _index6.isAxisFull;
|
|
1520
1276
|
}
|
|
1521
1277
|
});
|
|
1522
1278
|
Object.defineProperty(exports, "isColumnBasedType", {
|
|
@@ -1528,7 +1284,7 @@ Object.defineProperty(exports, "isColumnBasedType", {
|
|
|
1528
1284
|
Object.defineProperty(exports, "isDimensionLocked", {
|
|
1529
1285
|
enumerable: true,
|
|
1530
1286
|
get: function () {
|
|
1531
|
-
return
|
|
1287
|
+
return _index6.isDimensionLocked;
|
|
1532
1288
|
}
|
|
1533
1289
|
});
|
|
1534
1290
|
Object.defineProperty(exports, "isDualAxisType", {
|
|
@@ -1678,7 +1434,7 @@ Object.defineProperty(exports, "layoutReplaceDimension", {
|
|
|
1678
1434
|
Object.defineProperty(exports, "ouIdHelper", {
|
|
1679
1435
|
enumerable: true,
|
|
1680
1436
|
get: function () {
|
|
1681
|
-
return
|
|
1437
|
+
return _index3.ouIdHelper;
|
|
1682
1438
|
}
|
|
1683
1439
|
});
|
|
1684
1440
|
Object.defineProperty(exports, "useCachedDataQuery", {
|
|
@@ -1734,21 +1490,7 @@ var _InterpretationsUnit = require("./components/Interpretations/Interpretations
|
|
|
1734
1490
|
|
|
1735
1491
|
var _InterpretationModal = require("./components/Interpretations/InterpretationModal/InterpretationModal.js");
|
|
1736
1492
|
|
|
1737
|
-
var _index2 = require("./components/
|
|
1738
|
-
|
|
1739
|
-
Object.keys(_index2).forEach(function (key) {
|
|
1740
|
-
if (key === "default" || key === "__esModule") return;
|
|
1741
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
1742
|
-
if (key in exports && exports[key] === _index2[key]) return;
|
|
1743
|
-
Object.defineProperty(exports, key, {
|
|
1744
|
-
enumerable: true,
|
|
1745
|
-
get: function () {
|
|
1746
|
-
return _index2[key];
|
|
1747
|
-
}
|
|
1748
|
-
});
|
|
1749
|
-
});
|
|
1750
|
-
|
|
1751
|
-
var _index3 = require("./components/TranslationDialog/index.js");
|
|
1493
|
+
var _index2 = require("./components/TranslationDialog/index.js");
|
|
1752
1494
|
|
|
1753
1495
|
var _OfflineTooltip = require("./components/OfflineTooltip.js");
|
|
1754
1496
|
|
|
@@ -1764,13 +1506,13 @@ var _axis = require("./modules/axis.js");
|
|
|
1764
1506
|
|
|
1765
1507
|
var _predefinedDimensions = require("./modules/predefinedDimensions.js");
|
|
1766
1508
|
|
|
1767
|
-
var
|
|
1509
|
+
var _index3 = require("./modules/ouIdHelper/index.js");
|
|
1768
1510
|
|
|
1769
|
-
var
|
|
1511
|
+
var _index4 = require("./modules/ouLevelUtils/index.js");
|
|
1770
1512
|
|
|
1771
1513
|
var _getAdaptedUiLayoutByType = require("./modules/getAdaptedUiLayoutByType.js");
|
|
1772
1514
|
|
|
1773
|
-
var
|
|
1515
|
+
var _index5 = require("./modules/relativeItems/index.js");
|
|
1774
1516
|
|
|
1775
1517
|
var _layout = require("./modules/layout/layout.js");
|
|
1776
1518
|
|
|
@@ -1850,9 +1592,9 @@ var _visTypes = require("./modules/visTypes.js");
|
|
|
1850
1592
|
|
|
1851
1593
|
var _layoutTypes = require("./modules/layoutTypes.js");
|
|
1852
1594
|
|
|
1853
|
-
var
|
|
1595
|
+
var _index6 = require("./modules/layoutUiRules/index.js");
|
|
1854
1596
|
|
|
1855
|
-
var
|
|
1597
|
+
var _index7 = require("./visualizations/index.js");
|
|
1856
1598
|
|
|
1857
1599
|
var _fontStyle = require("./modules/fontStyle.js");
|
|
1858
1600
|
|
|
@@ -1862,7 +1604,7 @@ var _renderValue = require("./modules/renderValue.js");
|
|
|
1862
1604
|
|
|
1863
1605
|
var _colorSets = require("./visualizations/util/colors/colorSets.js");
|
|
1864
1606
|
|
|
1865
|
-
var
|
|
1607
|
+
var _index8 = require("./components/PeriodDimension/utils/index.js");
|
|
1866
1608
|
|
|
1867
1609
|
var _relativePeriods = require("./components/PeriodDimension/utils/relativePeriods.js");
|
|
1868
1610
|
|
|
@@ -267,7 +267,6 @@
|
|
|
267
267
|
"Six-months": "Six-months",
|
|
268
268
|
"Financial Years": "Financial Years",
|
|
269
269
|
"Years": "Years",
|
|
270
|
-
"Interpretations and details": "Interpretations and details",
|
|
271
270
|
"Translating to": "Translating to",
|
|
272
271
|
"Choose a locale": "Choose a locale",
|
|
273
272
|
"Base locale reference": "Base locale reference",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"Drag items here, or double click in the list, to start building a calculation formula": "",
|
|
45
45
|
"Math operators": "",
|
|
46
46
|
"Data Type": "",
|
|
47
|
-
"All types": "",
|
|
47
|
+
"All types": "Alle typen",
|
|
48
48
|
"Disaggregation": "",
|
|
49
49
|
"No data": "Geen gegevens",
|
|
50
50
|
"Search by data item name": "",
|
|
51
|
-
"No items selected": "",
|
|
51
|
+
"No items selected": "Geen items geselecteerd",
|
|
52
52
|
"Selected Items": "",
|
|
53
53
|
"No indicators found": "",
|
|
54
54
|
"No data sets found": "",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"No data sets found for \"{{- searchTerm}}\"": "",
|
|
59
59
|
"No event data items found for \"{{- searchTerm}}\"": "",
|
|
60
60
|
"No program indicators found for \"{{- searchTerm}}\"": "",
|
|
61
|
-
"Nothing found for \"{{- searchTerm}}\"": "",
|
|
61
|
+
"Nothing found for \"{{- searchTerm}}\"": "Niets gevonden voor \"{{- zoekTerm}}\"",
|
|
62
62
|
"Calculation": "",
|
|
63
63
|
"Metric type": "",
|
|
64
64
|
"All metrics": "",
|
|
65
|
-
"Move to {{axisName}}": "",
|
|
65
|
+
"Move to {{axisName}}": "Ga naar {{axisNaam}}",
|
|
66
66
|
"Add to {{axisName}}": "Voeg toe aan {{axisName}}",
|
|
67
67
|
"Not available for {{visualizationType}}": "",
|
|
68
68
|
"Remove Assigned Categories": "",
|
|
@@ -267,6 +267,7 @@
|
|
|
267
267
|
"Six-months": "",
|
|
268
268
|
"Financial Years": "",
|
|
269
269
|
"Years": "Jaren",
|
|
270
|
+
"Interpretations and details": "",
|
|
270
271
|
"Translating to": "",
|
|
271
272
|
"Choose a locale": "",
|
|
272
273
|
"Base locale reference": "",
|
|
@@ -2,7 +2,6 @@ import { Provider } from '@dhis2/app-runtime';
|
|
|
2
2
|
import { storiesOf } from '@storybook/react';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { FileMenu } from '../components/FileMenu/FileMenu.js';
|
|
5
|
-
import { HoverMenuBar } from '../components/Toolbar/index.js';
|
|
6
5
|
const configMock = {
|
|
7
6
|
baseUrl: 'http://localhost:8080',
|
|
8
7
|
apiVersion: 33
|
|
@@ -53,19 +52,19 @@ const visReadonlyObject = { ...visObject,
|
|
|
53
52
|
};
|
|
54
53
|
storiesOf('FileMenu', module).add('Simple', () => /*#__PURE__*/React.createElement(Provider, {
|
|
55
54
|
config: configMock
|
|
56
|
-
}, /*#__PURE__*/React.createElement(
|
|
55
|
+
}, /*#__PURE__*/React.createElement(FileMenu, {
|
|
57
56
|
currentUser: user,
|
|
58
57
|
fileType: "visualization"
|
|
59
|
-
})))
|
|
58
|
+
}))).add('With AO', () => /*#__PURE__*/React.createElement(Provider, {
|
|
60
59
|
config: configMock
|
|
61
|
-
}, /*#__PURE__*/React.createElement(
|
|
60
|
+
}, /*#__PURE__*/React.createElement(FileMenu, {
|
|
62
61
|
currentUser: user,
|
|
63
62
|
fileType: "visualization",
|
|
64
63
|
fileObject: visObject
|
|
65
|
-
})))
|
|
64
|
+
}))).add('With readonly AO', () => /*#__PURE__*/React.createElement(Provider, {
|
|
66
65
|
config: configMock
|
|
67
|
-
}, /*#__PURE__*/React.createElement(
|
|
66
|
+
}, /*#__PURE__*/React.createElement(FileMenu, {
|
|
68
67
|
currentUser: user,
|
|
69
68
|
fileType: "visualization",
|
|
70
69
|
fileObject: visReadonlyObject
|
|
71
|
-
})))
|
|
70
|
+
})));
|