@dhis2/analytics 23.8.4 → 23.8.7

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.
Files changed (327) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/build/cjs/__demo__/FileMenu.stories.js +4 -2
  3. package/build/cjs/__demo__/Filter.stories.js +2 -2
  4. package/build/cjs/__demo__/FixedPeriodSelect.stories.js +2 -2
  5. package/build/cjs/__demo__/OpenFileDialog.stories.js +4 -2
  6. package/build/cjs/__demo__/OrgUnitDimension.stories.js +2 -2
  7. package/build/cjs/__demo__/PivotTable.stories.js +206 -153
  8. package/build/cjs/api/__tests__/dimensions.spec.js +2 -1
  9. package/build/cjs/api/analytics/Analytics.js +8 -7
  10. package/build/cjs/api/analytics/AnalyticsBase.js +58 -43
  11. package/build/cjs/api/analytics/AnalyticsRequest.js +2 -1
  12. package/build/cjs/api/analytics/AnalyticsRequestBase.js +22 -17
  13. package/build/cjs/api/analytics/AnalyticsRequestPropertiesMixin.js +38 -19
  14. package/build/cjs/api/analytics/AnalyticsResponseHeader.js +7 -5
  15. package/build/cjs/api/analytics/__tests__/AnalyticsRequest.spec.js +2 -1
  16. package/build/cjs/api/dimensions.js +150 -120
  17. package/build/cjs/api/organisationUnits.js +36 -24
  18. package/build/cjs/components/AboutAOUnit/AboutAOUnit.js +22 -13
  19. package/build/cjs/components/AboutAOUnit/styles/AboutAOUnit.style.js +2 -2
  20. package/build/cjs/components/CachedDataQueryProvider.js +8 -7
  21. package/build/cjs/components/DataDimension/DataDimension.js +8 -6
  22. package/build/cjs/components/DataDimension/DataTypeSelector.js +6 -5
  23. package/build/cjs/components/DataDimension/DetailSelector.js +6 -5
  24. package/build/cjs/components/DataDimension/GroupSelector.js +12 -11
  25. package/build/cjs/components/DataDimension/ItemSelector.js +87 -73
  26. package/build/cjs/components/DataDimension/MetricSelector.js +6 -5
  27. package/build/cjs/components/DimensionMenu.js +14 -13
  28. package/build/cjs/components/DimensionsPanel/DimensionsPanel.js +4 -4
  29. package/build/cjs/components/DimensionsPanel/List/DimensionItem.js +4 -4
  30. package/build/cjs/components/DimensionsPanel/List/DimensionLabel.js +4 -4
  31. package/build/cjs/components/DimensionsPanel/List/DimensionList.js +4 -4
  32. package/build/cjs/components/DimensionsPanel/List/OptionsButton.js +10 -7
  33. package/build/cjs/components/DimensionsPanel/List/RecommendedIcon.js +14 -11
  34. package/build/cjs/components/DynamicDimension/DynamicDimension.js +9 -8
  35. package/build/cjs/components/DynamicDimension/ItemSelector.js +58 -44
  36. package/build/cjs/components/FileMenu/DeleteDialog.js +16 -12
  37. package/build/cjs/components/FileMenu/FileMenu.js +19 -18
  38. package/build/cjs/components/FileMenu/GetLinkDialog.js +6 -5
  39. package/build/cjs/components/FileMenu/RenameDialog.js +38 -25
  40. package/build/cjs/components/FileMenu/SaveAsDialog.js +21 -14
  41. package/build/cjs/components/FileMenu/utils.js +1 -1
  42. package/build/cjs/components/Filter/Filter.js +22 -19
  43. package/build/cjs/components/LegendKey/LegendKey.js +4 -3
  44. package/build/cjs/components/OpenFileDialog/CreatedByFilter.js +26 -20
  45. package/build/cjs/components/OpenFileDialog/CustomSelectOption.js +26 -23
  46. package/build/cjs/components/OpenFileDialog/DateField.js +4 -3
  47. package/build/cjs/components/OpenFileDialog/FileList.js +22 -19
  48. package/build/cjs/components/OpenFileDialog/NameFilter.js +21 -15
  49. package/build/cjs/components/OpenFileDialog/OpenFileDialog.js +43 -35
  50. package/build/cjs/components/OpenFileDialog/PaginationControls.js +28 -22
  51. package/build/cjs/components/OpenFileDialog/VisTypeFilter.js +37 -28
  52. package/build/cjs/components/OpenFileDialog/utils.js +1 -1
  53. package/build/cjs/components/Options/VisualizationOptions.js +46 -36
  54. package/build/cjs/components/Options/styles/VisualizationOptions.style.js +1 -1
  55. package/build/cjs/components/OrgUnitDimension/OrgUnitDimension.js +50 -34
  56. package/build/cjs/components/PeriodDimension/FixedPeriodFilter.js +22 -15
  57. package/build/cjs/components/PeriodDimension/FixedPeriodSelect.js +19 -14
  58. package/build/cjs/components/PeriodDimension/PeriodDimension.js +8 -6
  59. package/build/cjs/components/PeriodDimension/PeriodTransfer.js +24 -19
  60. package/build/cjs/components/PeriodDimension/RelativePeriodFilter.js +30 -24
  61. package/build/cjs/components/PeriodDimension/utils/fixedPeriods.js +1 -1
  62. package/build/cjs/components/PeriodDimension/utils/index.js +6 -2
  63. package/build/cjs/components/PeriodDimension/utils/relativePeriods.js +1 -1
  64. package/build/cjs/components/PivotTable/PivotTable.js +10 -9
  65. package/build/cjs/components/PivotTable/PivotTableBody.js +29 -20
  66. package/build/cjs/components/PivotTable/PivotTableCell.js +9 -8
  67. package/build/cjs/components/PivotTable/PivotTableClippedAxis.js +17 -14
  68. package/build/cjs/components/PivotTable/PivotTableColumnHeaderCell.js +8 -7
  69. package/build/cjs/components/PivotTable/PivotTableColumnHeaders.js +29 -22
  70. package/build/cjs/components/PivotTable/PivotTableContainer.js +6 -5
  71. package/build/cjs/components/PivotTable/PivotTableDimensionLabelCell.js +5 -4
  72. package/build/cjs/components/PivotTable/PivotTableEmptyCell.js +3 -2
  73. package/build/cjs/components/PivotTable/PivotTableEmptyRow.js +5 -4
  74. package/build/cjs/components/PivotTable/PivotTableEngineContext.js +7 -6
  75. package/build/cjs/components/PivotTable/PivotTableHead.js +16 -13
  76. package/build/cjs/components/PivotTable/PivotTableHeaderCell.js +9 -8
  77. package/build/cjs/components/PivotTable/PivotTableRow.js +27 -20
  78. package/build/cjs/components/PivotTable/PivotTableRowHeaderCell.js +6 -5
  79. package/build/cjs/components/PivotTable/PivotTableSortIcon.js +5 -4
  80. package/build/cjs/components/PivotTable/PivotTableTitleRow.js +9 -8
  81. package/build/cjs/components/PivotTable/PivotTableTitleRows.js +5 -4
  82. package/build/cjs/components/PivotTable/PivotTableValueCell.js +8 -7
  83. package/build/cjs/components/PivotTable/styles/PivotTable.style.js +1 -1
  84. package/build/cjs/components/TransferOption.js +15 -13
  85. package/build/cjs/components/TranslationDialog/TranslationModal/LocalesSelect.js +28 -19
  86. package/build/cjs/components/TranslationDialog/TranslationModal/TranslationForm.js +25 -18
  87. package/build/cjs/components/TranslationDialog/TranslationModal/TranslationModal.js +9 -8
  88. package/build/cjs/components/TranslationDialog/TranslationModal/TranslationModalActions.js +17 -14
  89. package/build/cjs/components/TranslationDialog/TranslationModal/useTranslationsResults.js +4 -3
  90. package/build/cjs/components/VisTypeIcon.js +6 -5
  91. package/build/cjs/index.js +464 -464
  92. package/build/cjs/locales/ar/translations.json +1 -1
  93. package/build/cjs/locales/ar_EG/translations.json +1 -1
  94. package/build/cjs/locales/ar_IQ/translations.json +1 -1
  95. package/build/cjs/locales/ckb/translations.json +1 -1
  96. package/build/cjs/locales/cs/translations.json +1 -1
  97. package/build/cjs/locales/da/translations.json +1 -1
  98. package/build/cjs/locales/en/translations.json +1 -1
  99. package/build/cjs/locales/es/translations.json +1 -1
  100. package/build/cjs/locales/fr/translations.json +1 -1
  101. package/build/cjs/locales/id/translations.json +1 -1
  102. package/build/cjs/locales/km/translations.json +1 -1
  103. package/build/cjs/locales/lo/translations.json +1 -1
  104. package/build/cjs/locales/my/translations.json +1 -1
  105. package/build/cjs/locales/nb/translations.json +1 -1
  106. package/build/cjs/locales/nl/translations.json +30 -30
  107. package/build/cjs/locales/prs/translations.json +1 -1
  108. package/build/cjs/locales/ps/translations.json +1 -1
  109. package/build/cjs/locales/pt/translations.json +1 -1
  110. package/build/cjs/locales/pt_BR/translations.json +1 -1
  111. package/build/cjs/locales/ru/translations.json +1 -1
  112. package/build/cjs/locales/sv/translations.json +1 -1
  113. package/build/cjs/locales/tet/translations.json +1 -1
  114. package/build/cjs/locales/tg/translations.json +1 -1
  115. package/build/cjs/locales/uk/translations.json +1 -1
  116. package/build/cjs/locales/ur/translations.json +1 -1
  117. package/build/cjs/locales/uz/translations.json +1 -1
  118. package/build/cjs/locales/uz_Latn/translations.json +1 -1
  119. package/build/cjs/locales/vi/translations.json +1 -1
  120. package/build/cjs/locales/zh/translations.json +1 -1
  121. package/build/cjs/locales/zh_CN/translations.json +1 -1
  122. package/build/cjs/modules/axis.js +1 -1
  123. package/build/cjs/modules/dataSets.js +1 -1
  124. package/build/cjs/modules/dataTypes.js +2 -2
  125. package/build/cjs/modules/dimensionSelectorHelper.js +1 -1
  126. package/build/cjs/modules/fontStyle.js +1 -1
  127. package/build/cjs/modules/layout/axis.js +1 -1
  128. package/build/cjs/modules/layout/dimension.js +1 -1
  129. package/build/cjs/modules/layout/dimensionCreate.js +3 -1
  130. package/build/cjs/modules/layout/dimensionIsValid.js +5 -3
  131. package/build/cjs/modules/layout/item.js +1 -1
  132. package/build/cjs/modules/layout/testResources.js +1 -1
  133. package/build/cjs/modules/layoutTypes.js +1 -1
  134. package/build/cjs/modules/layoutUiRules/index.js +20 -20
  135. package/build/cjs/modules/layoutUiRules/rules.js +1 -1
  136. package/build/cjs/modules/layoutUiRules/rulesHelper.js +2 -1
  137. package/build/cjs/modules/layoutUiRules/rulesUtils.js +1 -1
  138. package/build/cjs/modules/legends.js +1 -1
  139. package/build/cjs/modules/outliers/index.js +4 -2
  140. package/build/cjs/modules/outliers/iqr.js +8 -5
  141. package/build/cjs/modules/outliers/modZScore.js +15 -7
  142. package/build/cjs/modules/outliers/zScore.js +5 -4
  143. package/build/cjs/modules/pivotTable/AdaptiveClippingController.js +17 -12
  144. package/build/cjs/modules/pivotTable/PivotTableEngine.js +57 -44
  145. package/build/cjs/modules/pivotTable/clipAxis.js +8 -7
  146. package/build/cjs/modules/pivotTable/clipPartitionedAxis.js +10 -9
  147. package/build/cjs/modules/pivotTable/getHeaderForDisplay.js +9 -8
  148. package/build/cjs/modules/pivotTable/measureText.js +10 -7
  149. package/build/cjs/modules/pivotTable/pivotTableConstants.js +1 -1
  150. package/build/cjs/modules/pivotTable/useParentSize.js +2 -1
  151. package/build/cjs/modules/pivotTable/useScrollPosition.js +2 -1
  152. package/build/cjs/modules/pivotTable/useTableClipping.js +7 -6
  153. package/build/cjs/modules/predefinedDimensions.js +2 -2
  154. package/build/cjs/modules/relativeItems/index.js +4 -1
  155. package/build/cjs/modules/valueTypes.js +1 -1
  156. package/build/cjs/modules/visTypes.js +1 -1
  157. package/build/cjs/visualizations/config/adapters/dhis_dhis/index.js +7 -6
  158. package/build/cjs/visualizations/config/adapters/dhis_highcharts/addTrendLines.js +9 -4
  159. package/build/cjs/visualizations/config/adapters/dhis_highcharts/axis.js +5 -2
  160. package/build/cjs/visualizations/config/adapters/dhis_highcharts/customAxes.js +9 -5
  161. package/build/cjs/visualizations/config/adapters/dhis_highcharts/getTrimmedConfig.js +4 -3
  162. package/build/cjs/visualizations/config/adapters/dhis_highcharts/index.js +11 -9
  163. package/build/cjs/visualizations/config/adapters/dhis_highcharts/legend.js +32 -28
  164. package/build/cjs/visualizations/config/adapters/dhis_highcharts/legendSet.js +24 -20
  165. package/build/cjs/visualizations/config/adapters/dhis_highcharts/plotOptions.js +9 -8
  166. package/build/cjs/visualizations/config/adapters/dhis_highcharts/xAxis/index.js +1 -1
  167. package/build/cjs/visualizations/config/adapters/dhis_highcharts/yAxis/gauge.js +3 -1
  168. package/build/cjs/visualizations/config/generators/dhis/singleValue.js +28 -24
  169. package/build/cjs/visualizations/config/generators/highcharts/index.js +5 -1
  170. package/build/cjs/visualizations/config/index.js +13 -11
  171. package/build/cjs/visualizations/config/validators/dhis/index.js +4 -3
  172. package/build/cjs/visualizations/index.js +6 -2
  173. package/build/cjs/visualizations/store/adapters/dhis_dhis/index.js +7 -6
  174. package/build/cjs/visualizations/store/adapters/dhis_highcharts/index.js +8 -7
  175. package/build/cjs/visualizations/store/index.js +18 -15
  176. package/build/cjs/visualizations/store/validators/dhis/index.js +7 -5
  177. package/build/cjs/visualizations/util/colors/colorSets.js +1 -1
  178. package/build/cjs/visualizations/util/colors/themes.js +1 -1
  179. package/build/cjs/visualizations/util/getFilterText.js +9 -6
  180. package/build/es/__demo__/FileMenu.stories.js +4 -2
  181. package/build/es/__demo__/OpenFileDialog.stories.js +4 -2
  182. package/build/es/__demo__/PivotTable.stories.js +204 -151
  183. package/build/es/api/__tests__/dimensions.spec.js +2 -1
  184. package/build/es/api/analytics/Analytics.js +8 -7
  185. package/build/es/api/analytics/AnalyticsBase.js +58 -43
  186. package/build/es/api/analytics/AnalyticsRequest.js +2 -1
  187. package/build/es/api/analytics/AnalyticsRequestBase.js +22 -17
  188. package/build/es/api/analytics/AnalyticsRequestPropertiesMixin.js +38 -19
  189. package/build/es/api/analytics/AnalyticsResponseHeader.js +7 -5
  190. package/build/es/api/analytics/__tests__/AnalyticsRequest.spec.js +2 -1
  191. package/build/es/api/dimensions.js +149 -119
  192. package/build/es/api/organisationUnits.js +35 -23
  193. package/build/es/components/AboutAOUnit/AboutAOUnit.js +20 -11
  194. package/build/es/components/AboutAOUnit/styles/AboutAOUnit.style.js +2 -2
  195. package/build/es/components/CachedDataQueryProvider.js +6 -5
  196. package/build/es/components/DataDimension/DataDimension.js +8 -6
  197. package/build/es/components/DataDimension/DataTypeSelector.js +6 -5
  198. package/build/es/components/DataDimension/DetailSelector.js +6 -5
  199. package/build/es/components/DataDimension/GroupSelector.js +10 -9
  200. package/build/es/components/DataDimension/ItemSelector.js +85 -71
  201. package/build/es/components/DataDimension/MetricSelector.js +6 -5
  202. package/build/es/components/DimensionMenu.js +14 -13
  203. package/build/es/components/DimensionsPanel/DimensionsPanel.js +2 -2
  204. package/build/es/components/DimensionsPanel/List/DimensionItem.js +2 -2
  205. package/build/es/components/DimensionsPanel/List/DimensionLabel.js +2 -2
  206. package/build/es/components/DimensionsPanel/List/DimensionList.js +2 -2
  207. package/build/es/components/DimensionsPanel/List/OptionsButton.js +10 -7
  208. package/build/es/components/DimensionsPanel/List/RecommendedIcon.js +14 -11
  209. package/build/es/components/DynamicDimension/DynamicDimension.js +9 -8
  210. package/build/es/components/DynamicDimension/ItemSelector.js +56 -42
  211. package/build/es/components/FileMenu/DeleteDialog.js +14 -10
  212. package/build/es/components/FileMenu/FileMenu.js +17 -16
  213. package/build/es/components/FileMenu/GetLinkDialog.js +6 -5
  214. package/build/es/components/FileMenu/RenameDialog.js +36 -23
  215. package/build/es/components/FileMenu/SaveAsDialog.js +19 -12
  216. package/build/es/components/Filter/Filter.js +22 -19
  217. package/build/es/components/LegendKey/LegendKey.js +4 -3
  218. package/build/es/components/OpenFileDialog/CreatedByFilter.js +26 -20
  219. package/build/es/components/OpenFileDialog/CustomSelectOption.js +26 -23
  220. package/build/es/components/OpenFileDialog/DateField.js +4 -3
  221. package/build/es/components/OpenFileDialog/FileList.js +22 -19
  222. package/build/es/components/OpenFileDialog/NameFilter.js +21 -15
  223. package/build/es/components/OpenFileDialog/OpenFileDialog.js +41 -33
  224. package/build/es/components/OpenFileDialog/PaginationControls.js +28 -22
  225. package/build/es/components/OpenFileDialog/VisTypeFilter.js +37 -28
  226. package/build/es/components/Options/VisualizationOptions.js +43 -33
  227. package/build/es/components/OrgUnitDimension/OrgUnitDimension.js +48 -32
  228. package/build/es/components/PeriodDimension/FixedPeriodFilter.js +22 -15
  229. package/build/es/components/PeriodDimension/FixedPeriodSelect.js +17 -12
  230. package/build/es/components/PeriodDimension/PeriodDimension.js +8 -6
  231. package/build/es/components/PeriodDimension/PeriodTransfer.js +22 -17
  232. package/build/es/components/PeriodDimension/RelativePeriodFilter.js +30 -24
  233. package/build/es/components/PeriodDimension/utils/index.js +5 -1
  234. package/build/es/components/PivotTable/PivotTable.js +8 -7
  235. package/build/es/components/PivotTable/PivotTableBody.js +29 -20
  236. package/build/es/components/PivotTable/PivotTableCell.js +9 -8
  237. package/build/es/components/PivotTable/PivotTableClippedAxis.js +17 -14
  238. package/build/es/components/PivotTable/PivotTableColumnHeaderCell.js +8 -7
  239. package/build/es/components/PivotTable/PivotTableColumnHeaders.js +29 -22
  240. package/build/es/components/PivotTable/PivotTableContainer.js +6 -5
  241. package/build/es/components/PivotTable/PivotTableDimensionLabelCell.js +5 -4
  242. package/build/es/components/PivotTable/PivotTableEmptyCell.js +3 -2
  243. package/build/es/components/PivotTable/PivotTableEmptyRow.js +5 -4
  244. package/build/es/components/PivotTable/PivotTableEngineContext.js +5 -4
  245. package/build/es/components/PivotTable/PivotTableHead.js +16 -13
  246. package/build/es/components/PivotTable/PivotTableHeaderCell.js +9 -8
  247. package/build/es/components/PivotTable/PivotTableRow.js +27 -20
  248. package/build/es/components/PivotTable/PivotTableRowHeaderCell.js +6 -5
  249. package/build/es/components/PivotTable/PivotTableSortIcon.js +5 -4
  250. package/build/es/components/PivotTable/PivotTableTitleRow.js +7 -6
  251. package/build/es/components/PivotTable/PivotTableTitleRows.js +5 -4
  252. package/build/es/components/PivotTable/PivotTableValueCell.js +6 -5
  253. package/build/es/components/TransferOption.js +15 -13
  254. package/build/es/components/TranslationDialog/TranslationModal/LocalesSelect.js +28 -19
  255. package/build/es/components/TranslationDialog/TranslationModal/TranslationForm.js +23 -16
  256. package/build/es/components/TranslationDialog/TranslationModal/TranslationModal.js +7 -6
  257. package/build/es/components/TranslationDialog/TranslationModal/TranslationModalActions.js +17 -14
  258. package/build/es/components/TranslationDialog/TranslationModal/useTranslationsResults.js +4 -3
  259. package/build/es/components/VisTypeIcon.js +6 -5
  260. package/build/es/locales/ar/translations.json +1 -1
  261. package/build/es/locales/ar_EG/translations.json +1 -1
  262. package/build/es/locales/ar_IQ/translations.json +1 -1
  263. package/build/es/locales/ckb/translations.json +1 -1
  264. package/build/es/locales/cs/translations.json +1 -1
  265. package/build/es/locales/da/translations.json +1 -1
  266. package/build/es/locales/en/translations.json +1 -1
  267. package/build/es/locales/es/translations.json +1 -1
  268. package/build/es/locales/fr/translations.json +1 -1
  269. package/build/es/locales/id/translations.json +1 -1
  270. package/build/es/locales/km/translations.json +1 -1
  271. package/build/es/locales/lo/translations.json +1 -1
  272. package/build/es/locales/my/translations.json +1 -1
  273. package/build/es/locales/nb/translations.json +1 -1
  274. package/build/es/locales/nl/translations.json +30 -30
  275. package/build/es/locales/prs/translations.json +1 -1
  276. package/build/es/locales/ps/translations.json +1 -1
  277. package/build/es/locales/pt/translations.json +1 -1
  278. package/build/es/locales/pt_BR/translations.json +1 -1
  279. package/build/es/locales/ru/translations.json +1 -1
  280. package/build/es/locales/sv/translations.json +1 -1
  281. package/build/es/locales/tet/translations.json +1 -1
  282. package/build/es/locales/tg/translations.json +1 -1
  283. package/build/es/locales/uk/translations.json +1 -1
  284. package/build/es/locales/ur/translations.json +1 -1
  285. package/build/es/locales/uz/translations.json +1 -1
  286. package/build/es/locales/uz_Latn/translations.json +1 -1
  287. package/build/es/locales/vi/translations.json +1 -1
  288. package/build/es/locales/zh/translations.json +1 -1
  289. package/build/es/locales/zh_CN/translations.json +1 -1
  290. package/build/es/modules/layout/dimensionCreate.js +3 -1
  291. package/build/es/modules/layout/dimensionIsValid.js +5 -3
  292. package/build/es/modules/outliers/index.js +3 -1
  293. package/build/es/modules/outliers/iqr.js +7 -4
  294. package/build/es/modules/outliers/modZScore.js +14 -6
  295. package/build/es/modules/outliers/zScore.js +4 -3
  296. package/build/es/modules/pivotTable/AdaptiveClippingController.js +17 -12
  297. package/build/es/modules/pivotTable/PivotTableEngine.js +57 -44
  298. package/build/es/modules/pivotTable/clipAxis.js +8 -7
  299. package/build/es/modules/pivotTable/clipPartitionedAxis.js +10 -9
  300. package/build/es/modules/pivotTable/getHeaderForDisplay.js +9 -8
  301. package/build/es/modules/pivotTable/measureText.js +10 -7
  302. package/build/es/modules/pivotTable/useParentSize.js +2 -1
  303. package/build/es/modules/pivotTable/useScrollPosition.js +2 -1
  304. package/build/es/modules/pivotTable/useTableClipping.js +7 -6
  305. package/build/es/modules/predefinedDimensions.js +1 -1
  306. package/build/es/modules/relativeItems/index.js +4 -1
  307. package/build/es/visualizations/config/adapters/dhis_dhis/index.js +6 -5
  308. package/build/es/visualizations/config/adapters/dhis_highcharts/addTrendLines.js +8 -3
  309. package/build/es/visualizations/config/adapters/dhis_highcharts/axis.js +4 -1
  310. package/build/es/visualizations/config/adapters/dhis_highcharts/customAxes.js +6 -2
  311. package/build/es/visualizations/config/adapters/dhis_highcharts/getTrimmedConfig.js +4 -3
  312. package/build/es/visualizations/config/adapters/dhis_highcharts/index.js +9 -7
  313. package/build/es/visualizations/config/adapters/dhis_highcharts/legend.js +32 -28
  314. package/build/es/visualizations/config/adapters/dhis_highcharts/legendSet.js +23 -19
  315. package/build/es/visualizations/config/adapters/dhis_highcharts/plotOptions.js +9 -8
  316. package/build/es/visualizations/config/adapters/dhis_highcharts/yAxis/gauge.js +3 -1
  317. package/build/es/visualizations/config/generators/dhis/singleValue.js +28 -24
  318. package/build/es/visualizations/config/generators/highcharts/index.js +5 -1
  319. package/build/es/visualizations/config/index.js +13 -11
  320. package/build/es/visualizations/config/validators/dhis/index.js +4 -3
  321. package/build/es/visualizations/index.js +5 -1
  322. package/build/es/visualizations/store/adapters/dhis_dhis/index.js +7 -6
  323. package/build/es/visualizations/store/adapters/dhis_highcharts/index.js +8 -7
  324. package/build/es/visualizations/store/index.js +18 -15
  325. package/build/es/visualizations/store/validators/dhis/index.js +7 -5
  326. package/build/es/visualizations/util/getFilterText.js +9 -6
  327. package/package.json +11 -11
@@ -4,20 +4,24 @@ import { onError } from './index.js'; // Query definitions
4
4
 
5
5
  export const dimensionsQuery = {
6
6
  resource: 'dimensions',
7
- params: ({
8
- nameProp
9
- }) => ({
10
- fields: "id,".concat(nameProp, "~rename(name),dimensionType,dataDimensionType"),
11
- order: "".concat(nameProp, ":asc"),
12
- paging: false
13
- })
7
+ params: _ref => {
8
+ let {
9
+ nameProp
10
+ } = _ref;
11
+ return {
12
+ fields: "id,".concat(nameProp, "~rename(name),dimensionType,dataDimensionType"),
13
+ order: "".concat(nameProp, ":asc"),
14
+ paging: false
15
+ };
16
+ }
14
17
  };
15
18
  const recommendedDimensionsQuery = {
16
19
  resource: 'dimensions/recommendations',
17
- params: ({
18
- dxIds,
19
- ouIds
20
- }) => {
20
+ params: _ref2 => {
21
+ let {
22
+ dxIds,
23
+ ouIds
24
+ } = _ref2;
21
25
  const dimensions = [];
22
26
 
23
27
  if (dxIds.length) {
@@ -36,12 +40,13 @@ const recommendedDimensionsQuery = {
36
40
  };
37
41
  export const dataItemsQuery = {
38
42
  resource: 'dataItems',
39
- params: ({
40
- nameProp,
41
- filter,
42
- searchTerm,
43
- page
44
- }) => {
43
+ params: _ref3 => {
44
+ let {
45
+ nameProp,
46
+ filter,
47
+ searchTerm,
48
+ page
49
+ } = _ref3;
45
50
  const filters = []; // TODO: Extract all of this logic out of the query?
46
51
 
47
52
  if ((filter === null || filter === void 0 ? void 0 : filter.dataType) === DIMENSION_TYPE_EVENT_DATA_ITEM) {
@@ -69,12 +74,13 @@ export const dataItemsQuery = {
69
74
  };
70
75
  export const indicatorsQuery = {
71
76
  resource: 'indicators',
72
- params: ({
73
- nameProp,
74
- filter,
75
- searchTerm,
76
- page
77
- }) => {
77
+ params: _ref4 => {
78
+ let {
79
+ nameProp,
80
+ filter,
81
+ searchTerm,
82
+ page
83
+ } = _ref4;
78
84
  const filters = [];
79
85
 
80
86
  if (filter !== null && filter !== void 0 && filter.group && filter.group !== DIMENSION_TYPE_ALL) {
@@ -96,22 +102,26 @@ export const indicatorsQuery = {
96
102
  };
97
103
  export const indicatorGroupsQuery = {
98
104
  resource: 'indicatorGroups',
99
- params: ({
100
- nameProp
101
- }) => ({
102
- fields: "id,".concat(nameProp, "~rename(name)"),
103
- order: "".concat(nameProp, ":asc"),
104
- paging: false
105
- })
105
+ params: _ref5 => {
106
+ let {
107
+ nameProp
108
+ } = _ref5;
109
+ return {
110
+ fields: "id,".concat(nameProp, "~rename(name)"),
111
+ order: "".concat(nameProp, ":asc"),
112
+ paging: false
113
+ };
114
+ }
106
115
  };
107
116
  export const dataElementsQuery = {
108
117
  resource: 'dataElements',
109
- params: ({
110
- nameProp,
111
- filter,
112
- searchTerm,
113
- page
114
- }) => {
118
+ params: _ref6 => {
119
+ let {
120
+ nameProp,
121
+ filter,
122
+ searchTerm,
123
+ page
124
+ } = _ref6;
115
125
  const idField = (filter === null || filter === void 0 ? void 0 : filter.group) === DIMENSION_TYPE_ALL ? 'id' : 'dimensionItem~rename(id)';
116
126
  const filters = ['domainType:eq:AGGREGATE'];
117
127
 
@@ -134,24 +144,31 @@ export const dataElementsQuery = {
134
144
  };
135
145
  export const dataElementGroupsQuery = {
136
146
  resource: 'dataElementGroups',
137
- params: ({
138
- nameProp
139
- }) => ({
140
- fields: "id,".concat(nameProp, "~rename(name)"),
141
- order: "".concat(nameProp, ":asc"),
142
- paging: false
143
- })
147
+ params: _ref7 => {
148
+ let {
149
+ nameProp
150
+ } = _ref7;
151
+ return {
152
+ fields: "id,".concat(nameProp, "~rename(name)"),
153
+ order: "".concat(nameProp, ":asc"),
154
+ paging: false
155
+ };
156
+ }
144
157
  };
145
158
  export const itemsByDimensionQuery = {
146
159
  resource: "dimensions",
147
- id: ({
148
- id
149
- }) => "".concat(id, "/items"),
150
- params: ({
151
- searchTerm,
152
- page,
153
- nameProp
154
- }) => {
160
+ id: _ref8 => {
161
+ let {
162
+ id
163
+ } = _ref8;
164
+ return "".concat(id, "/items");
165
+ },
166
+ params: _ref9 => {
167
+ let {
168
+ searchTerm,
169
+ page,
170
+ nameProp
171
+ } = _ref9;
155
172
  const filters = [];
156
173
 
157
174
  if (searchTerm) {
@@ -169,12 +186,13 @@ export const itemsByDimensionQuery = {
169
186
  };
170
187
  export const dataElementOperandsQuery = {
171
188
  resource: 'dataElementOperands',
172
- params: ({
173
- nameProp,
174
- filter,
175
- searchTerm,
176
- page
177
- }) => {
189
+ params: _ref10 => {
190
+ let {
191
+ nameProp,
192
+ filter,
193
+ searchTerm,
194
+ page
195
+ } = _ref10;
178
196
  const idField = (filter === null || filter === void 0 ? void 0 : filter.group) === DIMENSION_TYPE_ALL ? 'id' : 'dimensionItem~rename(id)';
179
197
  const filters = [];
180
198
 
@@ -197,12 +215,13 @@ export const dataElementOperandsQuery = {
197
215
  };
198
216
  export const dataSetsQuery = {
199
217
  resource: 'dataSets',
200
- params: ({
201
- nameProp,
202
- searchTerm,
203
- filter,
204
- page
205
- }) => {
218
+ params: _ref11 => {
219
+ let {
220
+ nameProp,
221
+ searchTerm,
222
+ filter,
223
+ page
224
+ } = _ref11;
206
225
  const filters = [];
207
226
 
208
227
  if (searchTerm) {
@@ -230,13 +249,16 @@ export const dataSetsQuery = {
230
249
  };
231
250
  export const programsQuery = {
232
251
  resource: 'programs',
233
- params: ({
234
- nameProp
235
- }) => ({
236
- fields: "id,".concat(nameProp, "~rename(name)"),
237
- order: "".concat(nameProp, ":asc"),
238
- paging: false
239
- })
252
+ params: _ref12 => {
253
+ let {
254
+ nameProp
255
+ } = _ref12;
256
+ return {
257
+ fields: "id,".concat(nameProp, "~rename(name)"),
258
+ order: "".concat(nameProp, ":asc"),
259
+ paging: false
260
+ };
261
+ }
240
262
  }; // Fetch functions
241
263
 
242
264
  export const apiFetchDimensions = async (dataEngine, nameProp) => {
@@ -262,13 +284,15 @@ export const apiFetchRecommendedIds = async (dataEngine, dxIds, ouIds) => {
262
284
  });
263
285
  return recommendedDimensionsData.recommendedDimensions.dimensions.map(item => item.id);
264
286
  };
265
- export const apiFetchOptions = ({
266
- dataEngine,
267
- nameProp,
268
- filter,
269
- searchTerm,
270
- page
271
- }) => {
287
+ export const apiFetchOptions = _ref13 => {
288
+ let {
289
+ dataEngine,
290
+ nameProp,
291
+ filter,
292
+ searchTerm,
293
+ page
294
+ } = _ref13;
295
+
272
296
  switch (filter === null || filter === void 0 ? void 0 : filter.dataType) {
273
297
  case DIMENSION_TYPE_INDICATOR:
274
298
  {
@@ -386,13 +410,14 @@ export const apiFetchGroups = async (dataEngine, dataType, nameProp) => {
386
410
  }
387
411
  };
388
412
 
389
- const fetchIndicators = async ({
390
- dataEngine,
391
- nameProp,
392
- filter,
393
- searchTerm,
394
- page
395
- }) => {
413
+ const fetchIndicators = async _ref14 => {
414
+ let {
415
+ dataEngine,
416
+ nameProp,
417
+ filter,
418
+ searchTerm,
419
+ page
420
+ } = _ref14;
396
421
  const indicatorsData = await dataEngine.query({
397
422
  indicators: indicatorsQuery
398
423
  }, {
@@ -408,13 +433,14 @@ const fetchIndicators = async ({
408
433
  return formatResponse(response.indicators, response.pager);
409
434
  };
410
435
 
411
- const fetchDataItems = async ({
412
- dataEngine,
413
- nameProp,
414
- filter,
415
- searchTerm,
416
- page
417
- }) => {
436
+ const fetchDataItems = async _ref15 => {
437
+ let {
438
+ dataEngine,
439
+ nameProp,
440
+ filter,
441
+ searchTerm,
442
+ page
443
+ } = _ref15;
418
444
  const dataItemsData = await dataEngine.query({
419
445
  dataItems: dataItemsQuery
420
446
  }, {
@@ -435,13 +461,14 @@ const formatResponse = (dimensionItems, pager) => ({
435
461
  nextPage: pager.nextPage ? pager.page + 1 : null
436
462
  });
437
463
 
438
- const fetchDataElements = async ({
439
- dataEngine,
440
- nameProp,
441
- filter,
442
- searchTerm,
443
- page
444
- }) => {
464
+ const fetchDataElements = async _ref16 => {
465
+ let {
466
+ dataEngine,
467
+ nameProp,
468
+ filter,
469
+ searchTerm,
470
+ page
471
+ } = _ref16;
445
472
  const dataElementsData = await dataEngine.query({
446
473
  dataElements: dataElementsQuery
447
474
  }, {
@@ -457,13 +484,14 @@ const fetchDataElements = async ({
457
484
  return formatResponse(response.dataElements, response.pager);
458
485
  };
459
486
 
460
- export const apiFetchItemsByDimension = async ({
461
- dataEngine,
462
- dimensionId,
463
- searchTerm,
464
- page,
465
- nameProp
466
- }) => {
487
+ export const apiFetchItemsByDimension = async _ref17 => {
488
+ let {
489
+ dataEngine,
490
+ dimensionId,
491
+ searchTerm,
492
+ page,
493
+ nameProp
494
+ } = _ref17;
467
495
  const itemsByDimensionData = await dataEngine.query({
468
496
  itemsByDimensions: itemsByDimensionQuery
469
497
  }, {
@@ -479,13 +507,14 @@ export const apiFetchItemsByDimension = async ({
479
507
  return formatResponse(response.items, response.pager);
480
508
  };
481
509
 
482
- const fetchDataElementOperands = async ({
483
- dataEngine,
484
- nameProp,
485
- filter,
486
- searchTerm,
487
- page
488
- }) => {
510
+ const fetchDataElementOperands = async _ref18 => {
511
+ let {
512
+ dataEngine,
513
+ nameProp,
514
+ filter,
515
+ searchTerm,
516
+ page
517
+ } = _ref18;
489
518
  const dataElementOperandsData = await dataEngine.query({
490
519
  dataElementOperands: dataElementOperandsQuery
491
520
  }, {
@@ -501,13 +530,14 @@ const fetchDataElementOperands = async ({
501
530
  return formatResponse(response.dataElementOperands, response.pager);
502
531
  };
503
532
 
504
- const fetchDataSets = async ({
505
- dataEngine,
506
- nameProp,
507
- searchTerm,
508
- filter,
509
- page
510
- }) => {
533
+ const fetchDataSets = async _ref19 => {
534
+ let {
535
+ dataEngine,
536
+ nameProp,
537
+ searchTerm,
538
+ filter,
539
+ page
540
+ } = _ref19;
511
541
  const dataSetsData = await dataEngine.query({
512
542
  dataSets: dataSetsQuery
513
543
  }, {
@@ -1,21 +1,27 @@
1
1
  import { onError } from './index.js';
2
2
  const orgUnitLevelsQuery = {
3
3
  resource: 'organisationUnitLevels',
4
- params: ({
5
- displayNameProp = 'displayName'
6
- } = {}) => ({
7
- fields: "id,level,".concat(displayNameProp, "~rename(displayName),name"),
8
- paging: false
9
- })
4
+ params: function () {
5
+ let {
6
+ displayNameProp = 'displayName'
7
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8
+ return {
9
+ fields: "id,level,".concat(displayNameProp, "~rename(displayName),name"),
10
+ paging: false
11
+ };
12
+ }
10
13
  };
11
14
  const orgUnitGroupsQuery = {
12
15
  resource: 'organisationUnitGroups',
13
- params: ({
14
- displayNameProp = 'displayName'
15
- } = {}) => ({
16
- fields: "id,".concat(displayNameProp, "~rename(displayName),name"),
17
- paging: false
18
- })
16
+ params: function () {
17
+ let {
18
+ displayNameProp = 'displayName'
19
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
20
+ return {
21
+ fields: "id,".concat(displayNameProp, "~rename(displayName),name"),
22
+ paging: false
23
+ };
24
+ }
19
25
  };
20
26
  const orgUnitRootsQuery = {
21
27
  resource: 'organisationUnits',
@@ -27,20 +33,26 @@ const orgUnitRootsQuery = {
27
33
  };
28
34
  const orgUnitsQuery = {
29
35
  resource: 'organisationUnits',
30
- params: ({
31
- displayNameProp
32
- }) => ({
33
- fields: "id,path,".concat(displayNameProp, "~rename(displayName),children::isNotEmpty"),
34
- level: 1,
35
- userDataViewFallback: true,
36
- paging: false
37
- })
36
+ params: _ref => {
37
+ let {
38
+ displayNameProp
39
+ } = _ref;
40
+ return {
41
+ fields: "id,path,".concat(displayNameProp, "~rename(displayName),children::isNotEmpty"),
42
+ level: 1,
43
+ userDataViewFallback: true,
44
+ paging: false
45
+ };
46
+ }
38
47
  };
39
48
  const orgUnitQuery = {
40
49
  resource: 'organisationUnits',
41
- id: ({
42
- id
43
- }) => id,
50
+ id: _ref2 => {
51
+ let {
52
+ id
53
+ } = _ref2;
54
+ return id;
55
+ },
44
56
  params: {
45
57
  fields: 'id,level,displayName~rename(name),path,parent[id,displayName~rename(name)],children[level]',
46
58
  userDataViewFallback: true,
@@ -14,18 +14,24 @@ const READ_AND_WRITE = 'rw';
14
14
  const getQueries = type => ({
15
15
  ao: {
16
16
  resource: type,
17
- id: ({
18
- id
19
- }) => id,
17
+ id: _ref => {
18
+ let {
19
+ id
20
+ } = _ref;
21
+ return id;
22
+ },
20
23
  params: {
21
24
  fields: 'id,displayDescription,created,createdBy[displayName],lastUpdated,subscribed,publicAccess,userAccesses[displayName,access],userGroupAccesses[displayName,access]'
22
25
  }
23
26
  },
24
27
  dataStatistics: {
25
28
  resource: 'dataStatistics/favorites',
26
- id: ({
27
- id
28
- }) => id
29
+ id: _ref2 => {
30
+ let {
31
+ id
32
+ } = _ref2;
33
+ return id;
34
+ }
29
35
  }
30
36
  });
31
37
 
@@ -39,10 +45,11 @@ const getUnsubscribeMutation = (type, id) => ({
39
45
  type: 'delete'
40
46
  });
41
47
 
42
- const AboutAOUnit = ({
43
- type,
44
- id
45
- }) => {
48
+ const AboutAOUnit = _ref3 => {
49
+ let {
50
+ type,
51
+ id
52
+ } = _ref3;
46
53
  const [isExpanded, setIsExpanded] = useState(true);
47
54
  const queries = useMemo(() => getQueries(type), []);
48
55
  const {
@@ -127,7 +134,9 @@ const AboutAOUnit = ({
127
134
  }, /*#__PURE__*/React.createElement("div", {
128
135
  onClick: () => setIsExpanded(!isExpanded),
129
136
  className: "jsx-".concat(styles.__hash) + " " + "header"
130
- }, i18n.t('About this visualization'), isExpanded ? /*#__PURE__*/React.createElement(IconChevronUp24, {
137
+ }, /*#__PURE__*/React.createElement("span", {
138
+ className: "jsx-".concat(styles.__hash) + " " + "title"
139
+ }, i18n.t('About this visualization')), isExpanded ? /*#__PURE__*/React.createElement(IconChevronUp24, {
131
140
  color: colors.grey700
132
141
  }) : /*#__PURE__*/React.createElement(IconChevronDown24, {
133
142
  color: colors.grey700
@@ -1,4 +1,4 @@
1
1
  import { colors, spacers } from '@dhis2/ui';
2
- const _defaultExport = [".container.jsx-633421833{padding:".concat(spacers.dp16, ";border-bottom:1px solid ").concat(colors.grey400, ";background-color:").concat(colors.white, ";}"), ".expanded.jsx-633421833{padding-bottom:".concat(spacers.dp32, ";}"), ".loader.jsx-633421833{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}", ".header.jsx-633421833{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:".concat(spacers.dp16, ";font-weight:500;line-height:21px;color:").concat(colors.grey900, ";}"), ".content.jsx-633421833{font-size:14px;line-height:18px;color:".concat(colors.grey900, ";}"), ".detailLine.jsx-633421833{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:0;padding:".concat(spacers.dp12, " 0 0 0;gap:").concat(spacers.dp8, ";}"), ".detailLine.jsx-633421833 svg.jsx-633421833{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}", ".noDescription.jsx-633421833{color:".concat(colors.grey600, ";}"), ".subsection.jsx-633421833{margin-top:".concat(spacers.dp24, ";}"), ".subsectionTitle.jsx-633421833{color:".concat(colors.grey700, ";font-weight:500;}"), ".subscriptionLabel.jsx-633421833{margin:".concat(spacers.dp12, " 0 ").concat(spacers.dp8, " 0;}"), ".subsection.jsx-633421833 button.jsx-633421833{margin-top:".concat(spacers.dp8, ";}")];
3
- _defaultExport.__hash = "633421833";
2
+ const _defaultExport = [".container.jsx-1596217846{position:relative;padding:".concat(spacers.dp16, ";border-bottom:1px solid ").concat(colors.grey400, ";background-color:").concat(colors.white, ";}"), ".expanded.jsx-1596217846{padding-bottom:".concat(spacers.dp32, ";}"), ".loader.jsx-1596217846{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}", ".header.jsx-1596217846{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer;}", ".title.jsx-1596217846{font-size:16px;font-weight:500;line-height:21px;color:".concat(colors.grey900, ";}"), ".content.jsx-1596217846{font-size:14px;line-height:18px;color:".concat(colors.grey900, ";}"), ".detailLine.jsx-1596217846{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:0;padding:".concat(spacers.dp12, " 0 0 0;gap:").concat(spacers.dp8, ";}"), ".detailLine.jsx-1596217846 svg.jsx-1596217846{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}", ".noDescription.jsx-1596217846{color:".concat(colors.grey600, ";}"), ".subsection.jsx-1596217846{margin-top:".concat(spacers.dp24, ";}"), ".subsectionTitle.jsx-1596217846{color:".concat(colors.grey700, ";font-weight:500;}"), ".subscriptionLabel.jsx-1596217846{margin:".concat(spacers.dp12, " 0 ").concat(spacers.dp8, " 0;}"), ".subsection.jsx-1596217846 button.jsx-1596217846{margin-top:".concat(spacers.dp8, ";}")];
3
+ _defaultExport.__hash = "1596217846";
4
4
  export default _defaultExport;
@@ -5,11 +5,12 @@ import PropTypes from 'prop-types';
5
5
  import React, { createContext, useContext } from 'react';
6
6
  const CachedDataQueryCtx = /*#__PURE__*/createContext({});
7
7
 
8
- const CachedDataQueryProvider = ({
9
- query,
10
- dataTransformation,
11
- children
12
- }) => {
8
+ const CachedDataQueryProvider = _ref => {
9
+ let {
10
+ query,
11
+ dataTransformation,
12
+ children
13
+ } = _ref;
13
14
  const {
14
15
  data: rawData,
15
16
  ...rest
@@ -3,12 +3,14 @@ import React from 'react';
3
3
  import { DIMENSION_ID_DATA } from '../../modules/predefinedDimensions.js';
4
4
  import ItemSelector from './ItemSelector.js';
5
5
 
6
- const DataDimension = ({
7
- onSelect,
8
- selectedDimensions,
9
- displayNameProp,
10
- infoBoxMessage
11
- }) => {
6
+ const DataDimension = _ref => {
7
+ let {
8
+ onSelect,
9
+ selectedDimensions,
10
+ displayNameProp,
11
+ infoBoxMessage
12
+ } = _ref;
13
+
12
14
  const onSelectItems = selectedItem => onSelect({
13
15
  dimensionId: DIMENSION_ID_DATA,
14
16
  items: selectedItem.map(item => ({
@@ -6,13 +6,14 @@ import i18n from '../../locales/index.js';
6
6
  import { DIMENSION_TYPE_ALL, dataTypeMap as dataTypes } from '../../modules/dataTypes.js';
7
7
  import styles from './styles/DataTypeSelector.style.js';
8
8
 
9
- const DataTypeSelector = ({
10
- currentDataType,
11
- onChange,
12
- dataTest
13
- }) => {
9
+ const DataTypeSelector = _ref => {
14
10
  var _dataTypes$currentDat;
15
11
 
12
+ let {
13
+ currentDataType,
14
+ onChange,
15
+ dataTest
16
+ } = _ref;
16
17
  return /*#__PURE__*/React.createElement("div", {
17
18
  className: "jsx-".concat(styles.__hash) + " " + "container"
18
19
  }, /*#__PURE__*/React.createElement(SingleSelectField, {
@@ -11,11 +11,12 @@ const getOptions = () => ({
11
11
  [DETAIL]: i18n.t('Details only')
12
12
  });
13
13
 
14
- export const DetailSelector = ({
15
- currentValue,
16
- onChange,
17
- dataTest
18
- }) => {
14
+ export const DetailSelector = _ref => {
15
+ let {
16
+ currentValue,
17
+ onChange,
18
+ dataTest
19
+ } = _ref;
19
20
  const options = getOptions();
20
21
  return /*#__PURE__*/React.createElement("div", {
21
22
  className: "jsx-".concat(styles.__hash) + " " + "detail-container"
@@ -10,17 +10,18 @@ import { DetailSelector } from './DetailSelector.js';
10
10
  import { MetricSelector } from './MetricSelector.js';
11
11
  import styles from './styles/GroupSelector.style.js';
12
12
 
13
- const GroupSelector = ({
14
- dataType,
15
- currentGroup,
16
- onGroupChange,
17
- dataTest,
18
- displayNameProp,
19
- currentSubGroup,
20
- onSubGroupChange
21
- }) => {
13
+ const GroupSelector = _ref => {
22
14
  var _dataTypes$dataType, _dataTypes$dataType2, _dataTypes$dataType3, _dataTypes$dataType4, _dataTypes$dataType5, _dataTypes$dataType6, _dataTypes$dataType7;
23
15
 
16
+ let {
17
+ dataType,
18
+ currentGroup,
19
+ onGroupChange,
20
+ dataTest,
21
+ displayNameProp,
22
+ currentSubGroup,
23
+ onSubGroupChange
24
+ } = _ref;
24
25
  const dataEngine = useDataEngine();
25
26
  const [groups, setGroups] = useState([]);
26
27
  const [isLoading, setIsLoading] = useState(true);