@dhis2/analytics 26.0.7 → 26.0.9

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 (737) hide show
  1. package/build/cjs/__demo__/CalculationModal.stories.js +0 -5
  2. package/build/cjs/__demo__/DimensionsPanel.stories.js +0 -7
  3. package/build/cjs/__demo__/DynamicDimension.stories.js +0 -4
  4. package/build/cjs/__demo__/FileMenu.stories.js +2 -7
  5. package/build/cjs/__demo__/Filter.stories.js +0 -10
  6. package/build/cjs/__demo__/FixedPeriodSelect.stories.js +0 -6
  7. package/build/cjs/__demo__/OpenFileDialog.stories.js +1 -9
  8. package/build/cjs/__demo__/OrgUnitDimension.stories.js +1 -9
  9. package/build/cjs/__demo__/PeriodDimension.stories.js +0 -5
  10. package/build/cjs/__demo__/PivotTable.stories.js +100 -104
  11. package/build/cjs/__demo__/Toolbar.stories.js +0 -6
  12. package/build/cjs/__fixtures__/fixtures.js +0 -7
  13. package/build/cjs/api/__tests__/dimensions.spec.js +0 -3
  14. package/build/cjs/api/analytics/Analytics.js +1 -12
  15. package/build/cjs/api/analytics/AnalyticsAggregate.js +2 -9
  16. package/build/cjs/api/analytics/AnalyticsBase.js +8 -21
  17. package/build/cjs/api/analytics/AnalyticsEnrollments.js +0 -5
  18. package/build/cjs/api/analytics/AnalyticsEvents.js +3 -11
  19. package/build/cjs/api/analytics/AnalyticsRequest.js +15 -34
  20. package/build/cjs/api/analytics/AnalyticsRequestBase.js +7 -28
  21. package/build/cjs/api/analytics/AnalyticsRequestDimensionsMixin.js +3 -16
  22. package/build/cjs/api/analytics/AnalyticsRequestFiltersMixin.js +3 -16
  23. package/build/cjs/api/analytics/AnalyticsRequestPropertiesMixin.js +55 -140
  24. package/build/cjs/api/analytics/AnalyticsResponse.js +21 -45
  25. package/build/cjs/api/analytics/AnalyticsResponseHeader.js +0 -6
  26. package/build/cjs/api/analytics/__mocks__/DataEngine.js +0 -5
  27. package/build/cjs/api/analytics/__tests__/Analytics.spec.js +0 -5
  28. package/build/cjs/api/analytics/__tests__/AnalyticsAggregate.spec.js +11 -8
  29. package/build/cjs/api/analytics/__tests__/AnalyticsBase.spec.js +0 -2
  30. package/build/cjs/api/analytics/__tests__/AnalyticsEnrollments.spec.js +0 -7
  31. package/build/cjs/api/analytics/__tests__/AnalyticsEvents.spec.js +0 -7
  32. package/build/cjs/api/analytics/__tests__/AnalyticsRequest.spec.js +17 -19
  33. package/build/cjs/api/analytics/__tests__/AnalyticsRequestBase.spec.js +4 -9
  34. package/build/cjs/api/analytics/__tests__/AnalyticsResponse.spec.js +3 -5
  35. package/build/cjs/api/analytics/__tests__/AnalyticsResponseHeader.spec.js +2 -4
  36. package/build/cjs/api/analytics/utils.js +1 -3
  37. package/build/cjs/api/dimensions.js +41 -91
  38. package/build/cjs/api/index.js +1 -2
  39. package/build/cjs/api/organisationUnits.js +5 -16
  40. package/build/cjs/assets/AssignedCategoriesIcon.js +0 -4
  41. package/build/cjs/assets/DimensionItemIcons/CalculationIcon.js +0 -4
  42. package/build/cjs/assets/DimensionItemIcons/DataElementIcon.js +0 -4
  43. package/build/cjs/assets/DimensionItemIcons/GenericIcon.js +0 -4
  44. package/build/cjs/assets/DimensionItemIcons/PeriodIcon.js +0 -4
  45. package/build/cjs/assets/DynamicDimensionIcon.js +0 -4
  46. package/build/cjs/assets/FormulaIcon.js +0 -4
  47. package/build/cjs/components/AboutAOUnit/AboutAOUnit.js +19 -47
  48. package/build/cjs/components/AboutAOUnit/styles/AboutAOUnit.style.js +1 -3
  49. package/build/cjs/components/AboutAOUnit/utils.js +0 -5
  50. package/build/cjs/components/CachedDataQueryProvider.js +0 -17
  51. package/build/cjs/components/DataDimension/Calculation/CalculationModal.js +26 -73
  52. package/build/cjs/components/DataDimension/Calculation/DataElementOption.js +6 -19
  53. package/build/cjs/components/DataDimension/Calculation/DataElementSelector.js +16 -51
  54. package/build/cjs/components/DataDimension/Calculation/DndContext.js +6 -36
  55. package/build/cjs/components/DataDimension/Calculation/DragHandleIcon.js +0 -4
  56. package/build/cjs/components/DataDimension/Calculation/DraggingItem.js +3 -15
  57. package/build/cjs/components/DataDimension/Calculation/DropZone.js +1 -12
  58. package/build/cjs/components/DataDimension/Calculation/FormulaField.js +5 -21
  59. package/build/cjs/components/DataDimension/Calculation/FormulaItem.js +13 -41
  60. package/build/cjs/components/DataDimension/Calculation/MathOperatorSelector.js +4 -14
  61. package/build/cjs/components/DataDimension/Calculation/Operator.js +5 -18
  62. package/build/cjs/components/DataDimension/Calculation/styles/CalculationModal.style.js +1 -3
  63. package/build/cjs/components/DataDimension/Calculation/styles/DataElementOption.style.js +1 -3
  64. package/build/cjs/components/DataDimension/Calculation/styles/DataElementSelector.style.js +1 -3
  65. package/build/cjs/components/DataDimension/Calculation/styles/DraggingItem.style.js +1 -3
  66. package/build/cjs/components/DataDimension/Calculation/styles/DropZone.style.js +1 -3
  67. package/build/cjs/components/DataDimension/Calculation/styles/FormulaField.style.js +1 -3
  68. package/build/cjs/components/DataDimension/Calculation/styles/FormulaItem.style.js +1 -3
  69. package/build/cjs/components/DataDimension/Calculation/styles/MathOperatorSelector.style.js +1 -3
  70. package/build/cjs/components/DataDimension/Calculation/styles/Operator.style.js +1 -3
  71. package/build/cjs/components/DataDimension/DataDimension.js +1 -11
  72. package/build/cjs/components/DataDimension/DataTypeSelector.js +3 -14
  73. package/build/cjs/components/DataDimension/DetailSelector.js +2 -13
  74. package/build/cjs/components/DataDimension/GroupSelector.js +7 -26
  75. package/build/cjs/components/DataDimension/ItemSelector.js +45 -94
  76. package/build/cjs/components/DataDimension/MetricSelector.js +3 -14
  77. package/build/cjs/components/DataDimension/styles/DataTypeSelector.style.js +1 -3
  78. package/build/cjs/components/DataDimension/styles/DetailSelector.style.js +1 -3
  79. package/build/cjs/components/DataDimension/styles/GroupSelector.style.js +1 -3
  80. package/build/cjs/components/DataDimension/styles/MetricSelector.style.js +1 -3
  81. package/build/cjs/components/DimensionMenu.js +18 -35
  82. package/build/cjs/components/DimensionsPanel/DimensionsPanel.js +5 -19
  83. package/build/cjs/components/DimensionsPanel/List/DimensionItem.js +11 -32
  84. package/build/cjs/components/DimensionsPanel/List/DimensionList.js +11 -30
  85. package/build/cjs/components/DimensionsPanel/List/OptionsButton.js +0 -6
  86. package/build/cjs/components/DimensionsPanel/List/RecommendedIcon.js +0 -8
  87. package/build/cjs/components/DimensionsPanel/List/__tests__/DimensionItem.spec.js +0 -7
  88. package/build/cjs/components/DimensionsPanel/List/styles/DimensionItem.style.js +0 -2
  89. package/build/cjs/components/DimensionsPanel/List/styles/DimensionList.style.js +2 -4
  90. package/build/cjs/components/DimensionsPanel/List/styles/RecommendedIcon.style.js +0 -2
  91. package/build/cjs/components/DimensionsPanel/__tests__/DimensionsPanel.spec.js +0 -8
  92. package/build/cjs/components/DimensionsPanel/styles/DimensionsPanel.style.js +1 -3
  93. package/build/cjs/components/DynamicDimension/DynamicDimension.js +4 -23
  94. package/build/cjs/components/DynamicDimension/ItemSelector.js +15 -41
  95. package/build/cjs/components/DynamicDimension/styles/DynamicDimension.style.js +1 -3
  96. package/build/cjs/components/FileMenu/DeleteDialog.js +0 -12
  97. package/build/cjs/components/FileMenu/FileMenu.js +0 -29
  98. package/build/cjs/components/FileMenu/FileMenu.styles.js +2 -4
  99. package/build/cjs/components/FileMenu/GetLinkDialog.js +5 -15
  100. package/build/cjs/components/FileMenu/GetLinkDialog.styles.js +1 -3
  101. package/build/cjs/components/FileMenu/RenameDialog.js +1 -17
  102. package/build/cjs/components/FileMenu/SaveAsDialog.js +3 -16
  103. package/build/cjs/components/FileMenu/__tests__/DeleteDialog.spec.js +1 -9
  104. package/build/cjs/components/FileMenu/__tests__/FileMenu.spec.js +28 -51
  105. package/build/cjs/components/FileMenu/__tests__/GetLinkDialog.spec.js +0 -9
  106. package/build/cjs/components/FileMenu/__tests__/RenameDialog.spec.js +1 -9
  107. package/build/cjs/components/FileMenu/__tests__/SaveAsDialog.spec.js +1 -9
  108. package/build/cjs/components/FileMenu/utils.js +4 -19
  109. package/build/cjs/components/Filter/Filter.js +1 -9
  110. package/build/cjs/components/Filter/__tests__/Filter.spec.js +0 -8
  111. package/build/cjs/components/Filter/styles/Filter.style.js +1 -3
  112. package/build/cjs/components/Interpretations/InterpretationModal/Comment.js +0 -12
  113. package/build/cjs/components/Interpretations/InterpretationModal/CommentAddForm.js +1 -14
  114. package/build/cjs/components/Interpretations/InterpretationModal/CommentDeleteButton.js +1 -11
  115. package/build/cjs/components/Interpretations/InterpretationModal/CommentUpdateForm.js +2 -14
  116. package/build/cjs/components/Interpretations/InterpretationModal/InterpretationModal.js +2 -26
  117. package/build/cjs/components/Interpretations/InterpretationModal/InterpretationThread.js +0 -15
  118. package/build/cjs/components/Interpretations/InterpretationModal/index.js +0 -1
  119. package/build/cjs/components/Interpretations/InterpretationModal/useModalContentWidth.js +0 -7
  120. package/build/cjs/components/Interpretations/InterpretationsUnit/InterpretationForm.js +2 -15
  121. package/build/cjs/components/Interpretations/InterpretationsUnit/InterpretationList.js +1 -16
  122. package/build/cjs/components/Interpretations/InterpretationsUnit/InterpretationsUnit.js +2 -15
  123. package/build/cjs/components/Interpretations/InterpretationsUnit/index.js +0 -1
  124. package/build/cjs/components/Interpretations/common/Interpretation/Interpretation.js +0 -13
  125. package/build/cjs/components/Interpretations/common/Interpretation/InterpretationDeleteButton.js +0 -10
  126. package/build/cjs/components/Interpretations/common/Interpretation/InterpretationSharingLink.js +1 -11
  127. package/build/cjs/components/Interpretations/common/Interpretation/InterpretationUpdateForm.js +1 -14
  128. package/build/cjs/components/Interpretations/common/Interpretation/index.js +0 -2
  129. package/build/cjs/components/Interpretations/common/Interpretation/useLike.js +1 -7
  130. package/build/cjs/components/Interpretations/common/Message/Message.js +1 -10
  131. package/build/cjs/components/Interpretations/common/Message/MessageButtonStrip.js +1 -8
  132. package/build/cjs/components/Interpretations/common/Message/MessageEditorContainer.js +1 -8
  133. package/build/cjs/components/Interpretations/common/Message/MessageIconButton.js +5 -13
  134. package/build/cjs/components/Interpretations/common/Message/MessageInput.js +2 -10
  135. package/build/cjs/components/Interpretations/common/Message/MessageStatsBar.js +1 -8
  136. package/build/cjs/components/Interpretations/common/Message/index.js +0 -6
  137. package/build/cjs/components/Interpretations/common/RichTextEditor/RichTextEditor.js +15 -35
  138. package/build/cjs/components/Interpretations/common/RichTextEditor/index.js +0 -1
  139. package/build/cjs/components/Interpretations/common/RichTextEditor/markdownHandler.js +4 -22
  140. package/build/cjs/components/Interpretations/common/RichTextEditor/styles/RichTextEditor.style.js +3 -5
  141. package/build/cjs/components/Interpretations/common/UserMention/UserList.js +1 -9
  142. package/build/cjs/components/Interpretations/common/UserMention/UserMentionWrapper.js +18 -46
  143. package/build/cjs/components/Interpretations/common/UserMention/styles/UserMentionWrapper.style.js +1 -6
  144. package/build/cjs/components/Interpretations/common/UserMention/useUserSearchResults.js +1 -9
  145. package/build/cjs/components/Interpretations/common/index.js +0 -6
  146. package/build/cjs/components/LegendKey/LegendKey.js +9 -17
  147. package/build/cjs/components/LegendKey/styles/LegendKey.style.js +1 -3
  148. package/build/cjs/components/OfflineTooltip.js +1 -12
  149. package/build/cjs/components/OpenFileDialog/CreatedByFilter.js +1 -8
  150. package/build/cjs/components/OpenFileDialog/CustomSelectOption.js +2 -13
  151. package/build/cjs/components/OpenFileDialog/DateField.js +0 -6
  152. package/build/cjs/components/OpenFileDialog/FileList.js +0 -8
  153. package/build/cjs/components/OpenFileDialog/NameFilter.js +0 -7
  154. package/build/cjs/components/OpenFileDialog/OpenFileDialog.js +29 -64
  155. package/build/cjs/components/OpenFileDialog/OpenFileDialog.styles.js +1 -3
  156. package/build/cjs/components/OpenFileDialog/PaginationControls.js +0 -7
  157. package/build/cjs/components/OpenFileDialog/VisTypeFilter.js +0 -10
  158. package/build/cjs/components/OpenFileDialog/styles/CustomSelectOption.style.js +1 -3
  159. package/build/cjs/components/OpenFileDialog/utils.js +0 -5
  160. package/build/cjs/components/Options/VisualizationOptions.js +0 -16
  161. package/build/cjs/components/Options/styles/VisualizationOptions.style.js +11 -14
  162. package/build/cjs/components/OrgUnitDimension/OrgUnitDimension.js +12 -47
  163. package/build/cjs/components/OrgUnitDimension/styles/OrgUnitDimension.style.js +1 -3
  164. package/build/cjs/components/PeriodDimension/FixedPeriodFilter.js +5 -16
  165. package/build/cjs/components/PeriodDimension/FixedPeriodSelect.js +5 -27
  166. package/build/cjs/components/PeriodDimension/PeriodDimension.js +0 -11
  167. package/build/cjs/components/PeriodDimension/PeriodTransfer.js +12 -41
  168. package/build/cjs/components/PeriodDimension/RelativePeriodFilter.js +2 -13
  169. package/build/cjs/components/PeriodDimension/__tests__/FixedPeriodSingleSelect.spec.js +0 -7
  170. package/build/cjs/components/PeriodDimension/__tests__/PeriodDimension.spec.js +0 -7
  171. package/build/cjs/components/PeriodDimension/__tests__/PeriodSelector.spec.js +0 -7
  172. package/build/cjs/components/PeriodDimension/__tests__/fixedPeriods.spec.js +2 -2
  173. package/build/cjs/components/PeriodDimension/__tests__/utils.spec.js +0 -3
  174. package/build/cjs/components/PeriodDimension/styles/FixedPeriodSelect.style.js +1 -3
  175. package/build/cjs/components/PeriodDimension/styles/PeriodFilter.style.js +1 -3
  176. package/build/cjs/components/PeriodDimension/utils/fixedPeriods.js +2 -35
  177. package/build/cjs/components/PeriodDimension/utils/index.js +0 -2
  178. package/build/cjs/components/PeriodDimension/utils/relativePeriods.js +0 -19
  179. package/build/cjs/components/PivotTable/PivotTable.js +0 -15
  180. package/build/cjs/components/PivotTable/PivotTableBody.js +0 -8
  181. package/build/cjs/components/PivotTable/PivotTableCell.js +4 -14
  182. package/build/cjs/components/PivotTable/PivotTableClippedAxis.js +0 -5
  183. package/build/cjs/components/PivotTable/PivotTableColumnHeaderCell.js +4 -18
  184. package/build/cjs/components/PivotTable/PivotTableColumnHeaders.js +0 -11
  185. package/build/cjs/components/PivotTable/PivotTableContainer.js +2 -11
  186. package/build/cjs/components/PivotTable/PivotTableDimensionLabelCell.js +4 -16
  187. package/build/cjs/components/PivotTable/PivotTableEmptyCell.js +3 -10
  188. package/build/cjs/components/PivotTable/PivotTableEmptyRow.js +0 -7
  189. package/build/cjs/components/PivotTable/PivotTableEngineContext.js +0 -10
  190. package/build/cjs/components/PivotTable/PivotTableHead.js +0 -7
  191. package/build/cjs/components/PivotTable/PivotTableHeaderCell.js +0 -5
  192. package/build/cjs/components/PivotTable/PivotTableRow.js +0 -11
  193. package/build/cjs/components/PivotTable/PivotTableRowHeaderCell.js +2 -10
  194. package/build/cjs/components/PivotTable/PivotTableSortIcon.js +2 -14
  195. package/build/cjs/components/PivotTable/PivotTableTitleRow.js +2 -13
  196. package/build/cjs/components/PivotTable/PivotTableTitleRows.js +0 -9
  197. package/build/cjs/components/PivotTable/PivotTableValueCell.js +4 -19
  198. package/build/cjs/components/PivotTable/icons/SortIconAscending.js +0 -4
  199. package/build/cjs/components/PivotTable/icons/SortIconDescending.js +0 -4
  200. package/build/cjs/components/PivotTable/icons/SortIconIdle.js +0 -4
  201. package/build/cjs/components/PivotTable/styles/PivotTable.style.js +3 -6
  202. package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuBar.js +0 -14
  203. package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuDropdown.js +1 -14
  204. package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuList.js +1 -16
  205. package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuListItem.js +4 -21
  206. package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuListItem.styles.js +1 -3
  207. package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuBar.spec.js +0 -50
  208. package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuDropdown.spec.js +1 -4
  209. package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuList.spec.js +2 -6
  210. package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuListItem.spec.js +1 -6
  211. package/build/cjs/components/Toolbar/HoverMenuBar/index.js +0 -4
  212. package/build/cjs/components/Toolbar/InterpretationsAndDetailsToggler.js +1 -10
  213. package/build/cjs/components/Toolbar/MenuButton.styles.js +1 -3
  214. package/build/cjs/components/Toolbar/Toolbar.js +1 -8
  215. package/build/cjs/components/Toolbar/ToolbarSidebar.js +1 -9
  216. package/build/cjs/components/Toolbar/UpdateButton.js +2 -13
  217. package/build/cjs/components/Toolbar/__tests__/InterpretationsAndDetailsToggler.spec.js +0 -5
  218. package/build/cjs/components/Toolbar/__tests__/Toolbar.spec.js +0 -4
  219. package/build/cjs/components/Toolbar/__tests__/ToolbarSidebar.spec.js +0 -4
  220. package/build/cjs/components/Toolbar/__tests__/UpdateButton.spec.js +0 -5
  221. package/build/cjs/components/Toolbar/index.js +0 -6
  222. package/build/cjs/components/TransferOption.js +7 -20
  223. package/build/cjs/components/TranslationDialog/TranslationModal/LocalesSelect.js +2 -12
  224. package/build/cjs/components/TranslationDialog/TranslationModal/TranslationForm.js +3 -27
  225. package/build/cjs/components/TranslationDialog/TranslationModal/TranslationModal.js +0 -12
  226. package/build/cjs/components/TranslationDialog/TranslationModal/TranslationModalActions.js +0 -11
  227. package/build/cjs/components/TranslationDialog/TranslationModal/useTranslationsResults.js +1 -7
  228. package/build/cjs/components/TranslationDialog/index.js +0 -1
  229. package/build/cjs/components/VisTypeIcon.js +0 -24
  230. package/build/cjs/components/styles/DimensionSelector.style.js +1 -3
  231. package/build/cjs/components/styles/DimensionsPanel.style.js +0 -2
  232. package/build/cjs/components/styles/TransferOption.style.js +1 -3
  233. package/build/cjs/index.js +0 -84
  234. package/build/cjs/locales/es/translations.json +7 -7
  235. package/build/cjs/locales/index.js +1 -74
  236. package/build/cjs/locales/km/translations.json +4 -3
  237. package/build/cjs/modules/__tests__/expressions.spec.js +4 -4
  238. package/build/cjs/modules/__tests__/getAdaptedUiLayoutByType.spec.js +0 -4
  239. package/build/cjs/modules/__tests__/getColorByValueFromLegendSet.spec.js +1 -2
  240. package/build/cjs/modules/__tests__/getOuLevelAndGroupText.spec.js +0 -1
  241. package/build/cjs/modules/__tests__/hash.spec.js +0 -2
  242. package/build/cjs/modules/__tests__/parseExpression.spec.js +0 -1
  243. package/build/cjs/modules/__tests__/renderValue.spec.js +19 -13
  244. package/build/cjs/modules/axis.js +1 -17
  245. package/build/cjs/modules/dataSets.js +0 -3
  246. package/build/cjs/modules/dataTypes.js +0 -9
  247. package/build/cjs/modules/dimensionListItem.js +0 -24
  248. package/build/cjs/modules/expressions.js +2 -21
  249. package/build/cjs/modules/fontStyle.js +15 -27
  250. package/build/cjs/modules/getAdaptedUiLayoutByType.js +7 -39
  251. package/build/cjs/modules/getOuLevelAndGroupText.js +0 -18
  252. package/build/cjs/modules/hash.js +0 -10
  253. package/build/cjs/modules/layout/__tests__/axisGetAllItems.spec.js +0 -2
  254. package/build/cjs/modules/layout/__tests__/axisGetDimension.spec.js +0 -3
  255. package/build/cjs/modules/layout/__tests__/axisGetDimensionIds.spec.js +0 -5
  256. package/build/cjs/modules/layout/__tests__/axisHasDataDimension.spec.js +0 -2
  257. package/build/cjs/modules/layout/__tests__/axisHasDimension.spec.js +0 -3
  258. package/build/cjs/modules/layout/__tests__/axisHasOuDimension.spec.js +0 -2
  259. package/build/cjs/modules/layout/__tests__/axisHasPeriodDimension.spec.js +0 -2
  260. package/build/cjs/modules/layout/__tests__/axisIsEmpty.spec.js +0 -2
  261. package/build/cjs/modules/layout/__tests__/dimensionCreate.spec.js +0 -5
  262. package/build/cjs/modules/layout/__tests__/dimensionGetId.spec.js +0 -3
  263. package/build/cjs/modules/layout/__tests__/dimensionGetItemIds.spec.js +0 -4
  264. package/build/cjs/modules/layout/__tests__/dimensionGetItems.spec.js +0 -3
  265. package/build/cjs/modules/layout/__tests__/dimensionHasRelativeItems.spec.js +0 -2
  266. package/build/cjs/modules/layout/__tests__/dimensionIs.spec.js +0 -3
  267. package/build/cjs/modules/layout/__tests__/dimensionIsEmpty.spec.js +0 -2
  268. package/build/cjs/modules/layout/__tests__/dimensionIsValid.spec.js +0 -2
  269. package/build/cjs/modules/layout/__tests__/itemGetId.spec.js +0 -3
  270. package/build/cjs/modules/layout/__tests__/itemIsValid.spec.js +0 -2
  271. package/build/cjs/modules/layout/__tests__/layoutFilterDimensions.spec.js +0 -5
  272. package/build/cjs/modules/layout/__tests__/layoutGetAllAxes.spec.js +0 -2
  273. package/build/cjs/modules/layout/__tests__/layoutGetAllDimensions.spec.js +0 -2
  274. package/build/cjs/modules/layout/__tests__/layoutGetAllItemIds.spec.js +0 -3
  275. package/build/cjs/modules/layout/__tests__/layoutGetAllItems.spec.js +0 -2
  276. package/build/cjs/modules/layout/__tests__/layoutGetAxisIdDimensionIdsObject.spec.js +0 -4
  277. package/build/cjs/modules/layout/__tests__/layoutGetDimension.spec.js +0 -3
  278. package/build/cjs/modules/layout/__tests__/layoutGetDimensionIdItemIdsObject.spec.js +0 -6
  279. package/build/cjs/modules/layout/__tests__/layoutGetDimensionItems.spec.js +0 -3
  280. package/build/cjs/modules/layout/__tests__/layoutHasDataDimension.spec.js +2 -4
  281. package/build/cjs/modules/layout/__tests__/layoutHasDimension.spec.js +2 -5
  282. package/build/cjs/modules/layout/__tests__/layoutHasDynamicDimension.spec.js +2 -4
  283. package/build/cjs/modules/layout/__tests__/layoutHasPeriodDimension.spec.js +2 -4
  284. package/build/cjs/modules/layout/__tests__/layoutReplaceDimension.spec.js +0 -3
  285. package/build/cjs/modules/layout/axis.js +5 -3
  286. package/build/cjs/modules/layout/axisGetAllItems.js +0 -3
  287. package/build/cjs/modules/layout/axisGetDimension.js +0 -4
  288. package/build/cjs/modules/layout/axisGetDimensionIds.js +0 -4
  289. package/build/cjs/modules/layout/axisHasDataDimension.js +0 -4
  290. package/build/cjs/modules/layout/axisHasDimension.js +0 -3
  291. package/build/cjs/modules/layout/axisHasOuDimension.js +0 -4
  292. package/build/cjs/modules/layout/axisHasPeriodDimension.js +0 -4
  293. package/build/cjs/modules/layout/axisHasRelativeItems.js +0 -3
  294. package/build/cjs/modules/layout/axisIsEmpty.js +0 -2
  295. package/build/cjs/modules/layout/dimension.js +3 -5
  296. package/build/cjs/modules/layout/dimensionCreate.js +0 -3
  297. package/build/cjs/modules/layout/dimensionGetId.js +1 -5
  298. package/build/cjs/modules/layout/dimensionGetItemIds.js +0 -4
  299. package/build/cjs/modules/layout/dimensionGetItems.js +0 -4
  300. package/build/cjs/modules/layout/dimensionHasRelativeItems.js +0 -5
  301. package/build/cjs/modules/layout/dimensionIs.js +0 -3
  302. package/build/cjs/modules/layout/dimensionIsEmpty.js +0 -3
  303. package/build/cjs/modules/layout/dimensionIsValid.js +0 -9
  304. package/build/cjs/modules/layout/item.js +3 -5
  305. package/build/cjs/modules/layout/itemGetId.js +0 -3
  306. package/build/cjs/modules/layout/itemIsValid.js +0 -5
  307. package/build/cjs/modules/layout/layout.js +0 -3
  308. package/build/cjs/modules/layout/layoutFilterDimensions.js +0 -6
  309. package/build/cjs/modules/layout/layoutGetAllAxes.js +0 -3
  310. package/build/cjs/modules/layout/layoutGetAllDimensions.js +0 -3
  311. package/build/cjs/modules/layout/layoutGetAllItemIds.js +0 -4
  312. package/build/cjs/modules/layout/layoutGetAllItems.js +0 -4
  313. package/build/cjs/modules/layout/layoutGetAxisIdDimensionIdsObject.js +0 -5
  314. package/build/cjs/modules/layout/layoutGetDimension.js +0 -4
  315. package/build/cjs/modules/layout/layoutGetDimensionIdItemIdsObject.js +0 -5
  316. package/build/cjs/modules/layout/layoutGetDimensionItems.js +0 -4
  317. package/build/cjs/modules/layout/layoutHasDataDimension.js +0 -4
  318. package/build/cjs/modules/layout/layoutHasDimension.js +0 -3
  319. package/build/cjs/modules/layout/layoutHasDynamicDimension.js +0 -5
  320. package/build/cjs/modules/layout/layoutHasPeriodDimension.js +0 -4
  321. package/build/cjs/modules/layout/layoutReplaceDimension.js +0 -8
  322. package/build/cjs/modules/layout/testResources.js +7 -9
  323. package/build/cjs/modules/layoutUiRules/__tests__/rules.spec.js +6 -14
  324. package/build/cjs/modules/layoutUiRules/index.js +0 -2
  325. package/build/cjs/modules/layoutUiRules/rules.js +10 -26
  326. package/build/cjs/modules/layoutUiRules/rulesHelper.js +1 -11
  327. package/build/cjs/modules/layoutUiRules/rulesUtils.js +6 -16
  328. package/build/cjs/modules/legends.js +0 -8
  329. package/build/cjs/modules/list.js +0 -4
  330. package/build/cjs/modules/ouIdHelper/__tests__/index.spec.js +0 -1
  331. package/build/cjs/modules/ouIdHelper/index.js +2 -8
  332. package/build/cjs/modules/ouLevelUtils/__tests__/index.spec.js +0 -1
  333. package/build/cjs/modules/ouLevelUtils/index.js +0 -13
  334. package/build/cjs/modules/outliers/__tests__/index.spec.js +0 -1
  335. package/build/cjs/modules/outliers/__tests__/iqr.spec.js +0 -1
  336. package/build/cjs/modules/outliers/__tests__/modZScore.spec.js +0 -1
  337. package/build/cjs/modules/outliers/__tests__/xyStats.spec.js +0 -1
  338. package/build/cjs/modules/outliers/index.js +6 -28
  339. package/build/cjs/modules/outliers/iqr.js +0 -19
  340. package/build/cjs/modules/outliers/modZScore.js +10 -34
  341. package/build/cjs/modules/outliers/normalization.js +2 -9
  342. package/build/cjs/modules/outliers/xyStats.js +0 -4
  343. package/build/cjs/modules/outliers/zScore.js +0 -13
  344. package/build/cjs/modules/pivotTable/AdaptiveClippingController.js +4 -33
  345. package/build/cjs/modules/pivotTable/PivotTableEngine.js +20 -190
  346. package/build/cjs/modules/pivotTable/applyLegendSet.js +0 -23
  347. package/build/cjs/modules/pivotTable/clipAxis.js +3 -6
  348. package/build/cjs/modules/pivotTable/clipPartitionedAxis.js +0 -8
  349. package/build/cjs/modules/pivotTable/getHeaderForDisplay.js +0 -9
  350. package/build/cjs/modules/pivotTable/isColorBright.js +0 -6
  351. package/build/cjs/modules/pivotTable/measureText.js +5 -21
  352. package/build/cjs/modules/pivotTable/parseValue.js +0 -4
  353. package/build/cjs/modules/pivotTable/useParentSize.js +0 -11
  354. package/build/cjs/modules/pivotTable/useScrollPosition.js +0 -7
  355. package/build/cjs/modules/pivotTable/useSortableColumns.js +0 -7
  356. package/build/cjs/modules/pivotTable/useTableClipping.js +0 -6
  357. package/build/cjs/modules/predefinedDimensions.js +2 -18
  358. package/build/cjs/modules/relativeItems/__tests__/index.spec.js +0 -2
  359. package/build/cjs/modules/relativeItems/index.js +0 -5
  360. package/build/cjs/modules/renderValue.js +0 -18
  361. package/build/cjs/modules/utils.js +0 -5
  362. package/build/cjs/modules/valueTypes.js +1 -3
  363. package/build/cjs/modules/visTypeToLayoutType.js +0 -5
  364. package/build/cjs/modules/visTypes.js +1 -27
  365. package/build/cjs/visualizations/config/adapters/dhis_dhis/index.js +2 -8
  366. package/build/cjs/visualizations/config/adapters/dhis_dhis/subtitle/__tests__/index.spec.js +0 -3
  367. package/build/cjs/visualizations/config/adapters/dhis_dhis/subtitle/__tests__/singleValue.spec.js +0 -2
  368. package/build/cjs/visualizations/config/adapters/dhis_dhis/subtitle/index.js +0 -11
  369. package/build/cjs/visualizations/config/adapters/dhis_dhis/subtitle/singleValue.js +0 -3
  370. package/build/cjs/visualizations/config/adapters/dhis_dhis/title/__tests__/index.spec.js +0 -3
  371. package/build/cjs/visualizations/config/adapters/dhis_dhis/title/__tests__/singleValue.spec.js +0 -2
  372. package/build/cjs/visualizations/config/adapters/dhis_dhis/title/index.js +0 -10
  373. package/build/cjs/visualizations/config/adapters/dhis_dhis/title/singleValue.js +0 -4
  374. package/build/cjs/visualizations/config/adapters/dhis_dhis/type.js +0 -3
  375. package/build/cjs/visualizations/config/adapters/dhis_dhis/value/index.js +3 -7
  376. package/build/cjs/visualizations/config/adapters/dhis_highcharts/addTrendLines.js +30 -113
  377. package/build/cjs/visualizations/config/adapters/dhis_highcharts/axis.js +6 -37
  378. package/build/cjs/visualizations/config/adapters/dhis_highcharts/chart.js +0 -5
  379. package/build/cjs/visualizations/config/adapters/dhis_highcharts/customAxes.js +8 -10
  380. package/build/cjs/visualizations/config/adapters/dhis_highcharts/getAxisTitle.js +1 -8
  381. package/build/cjs/visualizations/config/adapters/dhis_highcharts/getCategories.js +0 -3
  382. package/build/cjs/visualizations/config/adapters/dhis_highcharts/getCumulativeData.js +6 -15
  383. package/build/cjs/visualizations/config/adapters/dhis_highcharts/getFormatter.js +0 -3
  384. package/build/cjs/visualizations/config/adapters/dhis_highcharts/getScatterData.js +0 -2
  385. package/build/cjs/visualizations/config/adapters/dhis_highcharts/getSortedConfig.js +7 -19
  386. package/build/cjs/visualizations/config/adapters/dhis_highcharts/getStackedData.js +0 -4
  387. package/build/cjs/visualizations/config/adapters/dhis_highcharts/getSteps.js +0 -3
  388. package/build/cjs/visualizations/config/adapters/dhis_highcharts/getTextAlignOption.js +0 -7
  389. package/build/cjs/visualizations/config/adapters/dhis_highcharts/getTrimmedConfig.js +4 -31
  390. package/build/cjs/visualizations/config/adapters/dhis_highcharts/getTwoCategorySplitSerieData.js +0 -2
  391. package/build/cjs/visualizations/config/adapters/dhis_highcharts/index.js +21 -56
  392. package/build/cjs/visualizations/config/adapters/dhis_highcharts/legend.js +1 -8
  393. package/build/cjs/visualizations/config/adapters/dhis_highcharts/legendSet.js +5 -14
  394. package/build/cjs/visualizations/config/adapters/dhis_highcharts/noData.js +0 -1
  395. package/build/cjs/visualizations/config/adapters/dhis_highcharts/pane/gauge.js +0 -1
  396. package/build/cjs/visualizations/config/adapters/dhis_highcharts/pane/index.js +0 -5
  397. package/build/cjs/visualizations/config/adapters/dhis_highcharts/plotOptions.js +1 -15
  398. package/build/cjs/visualizations/config/adapters/dhis_highcharts/series/gauge.js +0 -5
  399. package/build/cjs/visualizations/config/adapters/dhis_highcharts/series/index.js +13 -48
  400. package/build/cjs/visualizations/config/adapters/dhis_highcharts/series/pie.js +0 -1
  401. package/build/cjs/visualizations/config/adapters/dhis_highcharts/series/scatter.js +9 -11
  402. package/build/cjs/visualizations/config/adapters/dhis_highcharts/subtitle/gauge.js +0 -3
  403. package/build/cjs/visualizations/config/adapters/dhis_highcharts/subtitle/index.js +3 -18
  404. package/build/cjs/visualizations/config/adapters/dhis_highcharts/title/index.js +1 -18
  405. package/build/cjs/visualizations/config/adapters/dhis_highcharts/title/scatter.js +1 -5
  406. package/build/cjs/visualizations/config/adapters/dhis_highcharts/title/yearOverYear.js +0 -6
  407. package/build/cjs/visualizations/config/adapters/dhis_highcharts/type.js +0 -9
  408. package/build/cjs/visualizations/config/adapters/dhis_highcharts/xAxis/index.js +1 -28
  409. package/build/cjs/visualizations/config/adapters/dhis_highcharts/xAxis/radar.js +0 -11
  410. package/build/cjs/visualizations/config/adapters/dhis_highcharts/xAxis/scatter.js +0 -12
  411. package/build/cjs/visualizations/config/adapters/dhis_highcharts/xAxis/twoCategory.js +4 -11
  412. package/build/cjs/visualizations/config/adapters/dhis_highcharts/xAxis/yearOnYear.js +0 -11
  413. package/build/cjs/visualizations/config/adapters/dhis_highcharts/yAxis/gauge.js +3 -28
  414. package/build/cjs/visualizations/config/adapters/dhis_highcharts/yAxis/index.js +8 -37
  415. package/build/cjs/visualizations/config/adapters/index.js +0 -4
  416. package/build/cjs/visualizations/config/generators/dhis/index.js +0 -8
  417. package/build/cjs/visualizations/config/generators/dhis/singleValue.js +41 -70
  418. package/build/cjs/visualizations/config/generators/highcharts/index.js +9 -24
  419. package/build/cjs/visualizations/config/generators/index.js +0 -4
  420. package/build/cjs/visualizations/config/index.js +9 -22
  421. package/build/cjs/visualizations/config/validators/dhis/index.js +0 -1
  422. package/build/cjs/visualizations/config/validators/index.js +0 -4
  423. package/build/cjs/visualizations/index.js +0 -10
  424. package/build/cjs/visualizations/store/adapters/dhis_dhis/index.js +3 -13
  425. package/build/cjs/visualizations/store/adapters/dhis_dhis/singleValue.js +0 -1
  426. package/build/cjs/visualizations/store/adapters/dhis_highcharts/gauge.js +0 -1
  427. package/build/cjs/visualizations/store/adapters/dhis_highcharts/index.js +8 -26
  428. package/build/cjs/visualizations/store/adapters/dhis_highcharts/pie.js +0 -2
  429. package/build/cjs/visualizations/store/adapters/dhis_highcharts/twoCategory.js +3 -6
  430. package/build/cjs/visualizations/store/adapters/dhis_highcharts/yearOnYear.js +3 -4
  431. package/build/cjs/visualizations/store/adapters/index.js +0 -4
  432. package/build/cjs/visualizations/store/index.js +2 -12
  433. package/build/cjs/visualizations/store/validators/dhis/index.js +6 -22
  434. package/build/cjs/visualizations/store/validators/index.js +0 -4
  435. package/build/cjs/visualizations/util/__tests__/getFilterText.spec.js +0 -2
  436. package/build/cjs/visualizations/util/axes.js +0 -2
  437. package/build/cjs/visualizations/util/axisId.js +1 -3
  438. package/build/cjs/visualizations/util/colors/colorSets.js +0 -4
  439. package/build/cjs/visualizations/util/colors/gradientColorGenerator.js +3 -10
  440. package/build/cjs/visualizations/util/colors/index.js +0 -3
  441. package/build/cjs/visualizations/util/getFilterText.js +4 -13
  442. package/build/es/__demo__/DimensionsPanel.stories.js +0 -2
  443. package/build/es/__demo__/FileMenu.stories.js +2 -1
  444. package/build/es/__demo__/Filter.stories.js +0 -5
  445. package/build/es/__demo__/OpenFileDialog.stories.js +1 -3
  446. package/build/es/__demo__/OrgUnitDimension.stories.js +1 -3
  447. package/build/es/__demo__/PivotTable.stories.js +100 -57
  448. package/build/es/__demo__/Toolbar.stories.js +0 -2
  449. package/build/es/__fixtures__/fixtures.js +0 -5
  450. package/build/es/api/__tests__/dimensions.spec.js +0 -2
  451. package/build/es/api/analytics/Analytics.js +2 -6
  452. package/build/es/api/analytics/AnalyticsAggregate.js +3 -7
  453. package/build/es/api/analytics/AnalyticsBase.js +8 -17
  454. package/build/es/api/analytics/AnalyticsEnrollments.js +1 -3
  455. package/build/es/api/analytics/AnalyticsEvents.js +4 -9
  456. package/build/es/api/analytics/AnalyticsRequest.js +16 -27
  457. package/build/es/api/analytics/AnalyticsRequestBase.js +8 -25
  458. package/build/es/api/analytics/AnalyticsRequestDimensionsMixin.js +4 -14
  459. package/build/es/api/analytics/AnalyticsRequestFiltersMixin.js +4 -14
  460. package/build/es/api/analytics/AnalyticsRequestPropertiesMixin.js +57 -138
  461. package/build/es/api/analytics/AnalyticsResponse.js +21 -41
  462. package/build/es/api/analytics/AnalyticsResponseHeader.js +0 -5
  463. package/build/es/api/analytics/__mocks__/DataEngine.js +0 -4
  464. package/build/es/api/analytics/__tests__/AnalyticsAggregate.spec.js +11 -1
  465. package/build/es/api/analytics/__tests__/AnalyticsRequest.spec.js +17 -15
  466. package/build/es/api/analytics/__tests__/AnalyticsRequestBase.spec.js +4 -6
  467. package/build/es/api/analytics/__tests__/AnalyticsResponse.spec.js +3 -1
  468. package/build/es/api/analytics/__tests__/AnalyticsResponseHeader.spec.js +2 -1
  469. package/build/es/api/analytics/utils.js +1 -1
  470. package/build/es/api/dimensions.js +43 -78
  471. package/build/es/api/index.js +1 -0
  472. package/build/es/api/organisationUnits.js +5 -4
  473. package/build/es/assets/AssignedCategoriesIcon.js +0 -2
  474. package/build/es/assets/DynamicDimensionIcon.js +0 -2
  475. package/build/es/assets/FormulaIcon.js +0 -2
  476. package/build/es/components/AboutAOUnit/AboutAOUnit.js +19 -31
  477. package/build/es/components/AboutAOUnit/styles/AboutAOUnit.style.js +1 -1
  478. package/build/es/components/CachedDataQueryProvider.js +0 -7
  479. package/build/es/components/DataDimension/Calculation/CalculationModal.js +26 -54
  480. package/build/es/components/DataDimension/Calculation/DataElementOption.js +6 -10
  481. package/build/es/components/DataDimension/Calculation/DataElementSelector.js +16 -35
  482. package/build/es/components/DataDimension/Calculation/DndContext.js +6 -28
  483. package/build/es/components/DataDimension/Calculation/DraggingItem.js +3 -5
  484. package/build/es/components/DataDimension/Calculation/DropZone.js +1 -5
  485. package/build/es/components/DataDimension/Calculation/FormulaField.js +5 -8
  486. package/build/es/components/DataDimension/Calculation/FormulaItem.js +13 -26
  487. package/build/es/components/DataDimension/Calculation/MathOperatorSelector.js +4 -6
  488. package/build/es/components/DataDimension/Calculation/Operator.js +5 -9
  489. package/build/es/components/DataDimension/Calculation/styles/CalculationModal.style.js +1 -1
  490. package/build/es/components/DataDimension/Calculation/styles/DataElementOption.style.js +1 -1
  491. package/build/es/components/DataDimension/Calculation/styles/DataElementSelector.style.js +1 -1
  492. package/build/es/components/DataDimension/Calculation/styles/DraggingItem.style.js +1 -1
  493. package/build/es/components/DataDimension/Calculation/styles/DropZone.style.js +1 -1
  494. package/build/es/components/DataDimension/Calculation/styles/FormulaField.style.js +1 -1
  495. package/build/es/components/DataDimension/Calculation/styles/FormulaItem.style.js +1 -1
  496. package/build/es/components/DataDimension/Calculation/styles/MathOperatorSelector.style.js +1 -1
  497. package/build/es/components/DataDimension/Calculation/styles/Operator.style.js +1 -1
  498. package/build/es/components/DataDimension/DataDimension.js +1 -5
  499. package/build/es/components/DataDimension/DataTypeSelector.js +3 -6
  500. package/build/es/components/DataDimension/DetailSelector.js +2 -4
  501. package/build/es/components/DataDimension/GroupSelector.js +7 -12
  502. package/build/es/components/DataDimension/ItemSelector.js +45 -74
  503. package/build/es/components/DataDimension/MetricSelector.js +3 -3
  504. package/build/es/components/DataDimension/styles/DataTypeSelector.style.js +1 -1
  505. package/build/es/components/DataDimension/styles/DetailSelector.style.js +1 -1
  506. package/build/es/components/DataDimension/styles/GroupSelector.style.js +1 -1
  507. package/build/es/components/DataDimension/styles/MetricSelector.style.js +1 -1
  508. package/build/es/components/DimensionMenu.js +18 -24
  509. package/build/es/components/DimensionsPanel/DimensionsPanel.js +5 -10
  510. package/build/es/components/DimensionsPanel/List/DimensionItem.js +11 -21
  511. package/build/es/components/DimensionsPanel/List/DimensionList.js +11 -21
  512. package/build/es/components/DimensionsPanel/List/OptionsButton.js +0 -2
  513. package/build/es/components/DimensionsPanel/List/RecommendedIcon.js +0 -2
  514. package/build/es/components/DimensionsPanel/List/__tests__/DimensionItem.spec.js +0 -3
  515. package/build/es/components/DimensionsPanel/List/styles/DimensionList.style.js +2 -2
  516. package/build/es/components/DimensionsPanel/__tests__/DimensionsPanel.spec.js +0 -3
  517. package/build/es/components/DimensionsPanel/styles/DimensionsPanel.style.js +1 -1
  518. package/build/es/components/DynamicDimension/DynamicDimension.js +4 -10
  519. package/build/es/components/DynamicDimension/ItemSelector.js +15 -29
  520. package/build/es/components/DynamicDimension/styles/DynamicDimension.style.js +1 -1
  521. package/build/es/components/FileMenu/DeleteDialog.js +0 -2
  522. package/build/es/components/FileMenu/FileMenu.js +0 -12
  523. package/build/es/components/FileMenu/FileMenu.styles.js +2 -2
  524. package/build/es/components/FileMenu/GetLinkDialog.js +5 -4
  525. package/build/es/components/FileMenu/GetLinkDialog.styles.js +1 -1
  526. package/build/es/components/FileMenu/RenameDialog.js +1 -5
  527. package/build/es/components/FileMenu/SaveAsDialog.js +3 -3
  528. package/build/es/components/FileMenu/__tests__/DeleteDialog.spec.js +1 -4
  529. package/build/es/components/FileMenu/__tests__/FileMenu.spec.js +28 -20
  530. package/build/es/components/FileMenu/__tests__/GetLinkDialog.spec.js +0 -3
  531. package/build/es/components/FileMenu/__tests__/RenameDialog.spec.js +1 -4
  532. package/build/es/components/FileMenu/__tests__/SaveAsDialog.spec.js +1 -4
  533. package/build/es/components/FileMenu/utils.js +4 -10
  534. package/build/es/components/Filter/Filter.js +1 -3
  535. package/build/es/components/Filter/__tests__/Filter.spec.js +0 -3
  536. package/build/es/components/Filter/styles/Filter.style.js +1 -1
  537. package/build/es/components/Interpretations/InterpretationModal/Comment.js +0 -2
  538. package/build/es/components/Interpretations/InterpretationModal/CommentAddForm.js +1 -1
  539. package/build/es/components/Interpretations/InterpretationModal/CommentDeleteButton.js +1 -3
  540. package/build/es/components/Interpretations/InterpretationModal/CommentUpdateForm.js +2 -2
  541. package/build/es/components/Interpretations/InterpretationModal/InterpretationModal.js +2 -13
  542. package/build/es/components/Interpretations/InterpretationModal/InterpretationThread.js +0 -3
  543. package/build/es/components/Interpretations/InterpretationModal/useModalContentWidth.js +0 -3
  544. package/build/es/components/Interpretations/InterpretationsUnit/InterpretationForm.js +2 -2
  545. package/build/es/components/Interpretations/InterpretationsUnit/InterpretationList.js +1 -8
  546. package/build/es/components/Interpretations/InterpretationsUnit/InterpretationsUnit.js +2 -2
  547. package/build/es/components/Interpretations/common/Interpretation/InterpretationDeleteButton.js +0 -2
  548. package/build/es/components/Interpretations/common/Interpretation/InterpretationSharingLink.js +1 -3
  549. package/build/es/components/Interpretations/common/Interpretation/InterpretationUpdateForm.js +1 -1
  550. package/build/es/components/Interpretations/common/Interpretation/useLike.js +1 -5
  551. package/build/es/components/Interpretations/common/Message/Message.js +1 -3
  552. package/build/es/components/Interpretations/common/Message/MessageButtonStrip.js +1 -3
  553. package/build/es/components/Interpretations/common/Message/MessageEditorContainer.js +1 -3
  554. package/build/es/components/Interpretations/common/Message/MessageIconButton.js +6 -8
  555. package/build/es/components/Interpretations/common/Message/MessageInput.js +2 -4
  556. package/build/es/components/Interpretations/common/Message/MessageStatsBar.js +1 -3
  557. package/build/es/components/Interpretations/common/RichTextEditor/RichTextEditor.js +15 -23
  558. package/build/es/components/Interpretations/common/RichTextEditor/markdownHandler.js +4 -19
  559. package/build/es/components/Interpretations/common/RichTextEditor/styles/RichTextEditor.style.js +3 -3
  560. package/build/es/components/Interpretations/common/UserMention/UserList.js +1 -2
  561. package/build/es/components/Interpretations/common/UserMention/UserMentionWrapper.js +18 -33
  562. package/build/es/components/Interpretations/common/UserMention/styles/UserMentionWrapper.style.js +1 -2
  563. package/build/es/components/Interpretations/common/UserMention/useUserSearchResults.js +1 -2
  564. package/build/es/components/LegendKey/LegendKey.js +9 -11
  565. package/build/es/components/LegendKey/styles/LegendKey.style.js +1 -1
  566. package/build/es/components/OfflineTooltip.js +1 -3
  567. package/build/es/components/OpenFileDialog/CreatedByFilter.js +3 -1
  568. package/build/es/components/OpenFileDialog/CustomSelectOption.js +2 -4
  569. package/build/es/components/OpenFileDialog/OpenFileDialog.js +29 -45
  570. package/build/es/components/OpenFileDialog/OpenFileDialog.styles.js +1 -1
  571. package/build/es/components/OpenFileDialog/styles/CustomSelectOption.style.js +1 -1
  572. package/build/es/components/Options/VisualizationOptions.js +0 -8
  573. package/build/es/components/Options/styles/VisualizationOptions.style.js +11 -12
  574. package/build/es/components/OrgUnitDimension/OrgUnitDimension.js +12 -31
  575. package/build/es/components/OrgUnitDimension/styles/OrgUnitDimension.style.js +1 -1
  576. package/build/es/components/PeriodDimension/FixedPeriodFilter.js +5 -7
  577. package/build/es/components/PeriodDimension/FixedPeriodSelect.js +5 -17
  578. package/build/es/components/PeriodDimension/PeriodDimension.js +0 -4
  579. package/build/es/components/PeriodDimension/PeriodTransfer.js +12 -25
  580. package/build/es/components/PeriodDimension/RelativePeriodFilter.js +2 -4
  581. package/build/es/components/PeriodDimension/__tests__/FixedPeriodSingleSelect.spec.js +0 -3
  582. package/build/es/components/PeriodDimension/__tests__/PeriodDimension.spec.js +0 -3
  583. package/build/es/components/PeriodDimension/__tests__/PeriodSelector.spec.js +0 -3
  584. package/build/es/components/PeriodDimension/__tests__/fixedPeriods.spec.js +2 -1
  585. package/build/es/components/PeriodDimension/styles/FixedPeriodSelect.style.js +1 -1
  586. package/build/es/components/PeriodDimension/styles/PeriodFilter.style.js +1 -1
  587. package/build/es/components/PeriodDimension/utils/fixedPeriods.js +2 -23
  588. package/build/es/components/PeriodDimension/utils/relativePeriods.js +0 -11
  589. package/build/es/components/PivotTable/PivotTable.js +0 -2
  590. package/build/es/components/PivotTable/PivotTableCell.js +4 -6
  591. package/build/es/components/PivotTable/PivotTableColumnHeaderCell.js +4 -7
  592. package/build/es/components/PivotTable/PivotTableContainer.js +2 -2
  593. package/build/es/components/PivotTable/PivotTableDimensionLabelCell.js +4 -9
  594. package/build/es/components/PivotTable/PivotTableEmptyCell.js +3 -4
  595. package/build/es/components/PivotTable/PivotTableRowHeaderCell.js +2 -2
  596. package/build/es/components/PivotTable/PivotTableSortIcon.js +2 -2
  597. package/build/es/components/PivotTable/PivotTableTitleRow.js +2 -2
  598. package/build/es/components/PivotTable/PivotTableTitleRows.js +0 -1
  599. package/build/es/components/PivotTable/PivotTableValueCell.js +4 -6
  600. package/build/es/components/PivotTable/styles/PivotTable.style.js +3 -3
  601. package/build/es/components/Toolbar/HoverMenuBar/HoverMenuBar.js +0 -7
  602. package/build/es/components/Toolbar/HoverMenuBar/HoverMenuDropdown.js +1 -1
  603. package/build/es/components/Toolbar/HoverMenuBar/HoverMenuList.js +1 -7
  604. package/build/es/components/Toolbar/HoverMenuBar/HoverMenuListItem.js +4 -9
  605. package/build/es/components/Toolbar/HoverMenuBar/HoverMenuListItem.styles.js +1 -1
  606. package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuBar.spec.js +0 -2
  607. package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuDropdown.spec.js +1 -0
  608. package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuList.spec.js +2 -2
  609. package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuListItem.spec.js +1 -0
  610. package/build/es/components/Toolbar/InterpretationsAndDetailsToggler.js +1 -1
  611. package/build/es/components/Toolbar/MenuButton.styles.js +1 -1
  612. package/build/es/components/Toolbar/Toolbar.js +1 -1
  613. package/build/es/components/Toolbar/ToolbarSidebar.js +1 -1
  614. package/build/es/components/Toolbar/UpdateButton.js +2 -2
  615. package/build/es/components/Toolbar/__tests__/InterpretationsAndDetailsToggler.spec.js +0 -1
  616. package/build/es/components/Toolbar/__tests__/UpdateButton.spec.js +0 -1
  617. package/build/es/components/TransferOption.js +7 -11
  618. package/build/es/components/TranslationDialog/TranslationModal/LocalesSelect.js +2 -3
  619. package/build/es/components/TranslationDialog/TranslationModal/TranslationForm.js +3 -15
  620. package/build/es/components/TranslationDialog/TranslationModal/TranslationModalActions.js +0 -2
  621. package/build/es/components/TranslationDialog/TranslationModal/useTranslationsResults.js +1 -1
  622. package/build/es/components/VisTypeIcon.js +0 -17
  623. package/build/es/components/styles/DimensionSelector.style.js +1 -1
  624. package/build/es/components/styles/TransferOption.style.js +1 -1
  625. package/build/es/index.js +53 -19
  626. package/build/es/locales/es/translations.json +7 -7
  627. package/build/es/locales/km/translations.json +4 -3
  628. package/build/es/modules/__tests__/expressions.spec.js +4 -3
  629. package/build/es/modules/__tests__/getColorByValueFromLegendSet.spec.js +1 -1
  630. package/build/es/modules/__tests__/renderValue.spec.js +19 -10
  631. package/build/es/modules/axis.js +1 -8
  632. package/build/es/modules/dataTypes.js +0 -3
  633. package/build/es/modules/dimensionListItem.js +0 -12
  634. package/build/es/modules/expressions.js +2 -6
  635. package/build/es/modules/fontStyle.js +16 -16
  636. package/build/es/modules/getAdaptedUiLayoutByType.js +7 -22
  637. package/build/es/modules/getOuLevelAndGroupText.js +0 -10
  638. package/build/es/modules/hash.js +0 -3
  639. package/build/es/modules/layout/__tests__/layoutHasDataDimension.spec.js +2 -1
  640. package/build/es/modules/layout/__tests__/layoutHasDimension.spec.js +2 -1
  641. package/build/es/modules/layout/__tests__/layoutHasDynamicDimension.spec.js +2 -1
  642. package/build/es/modules/layout/__tests__/layoutHasPeriodDimension.spec.js +2 -1
  643. package/build/es/modules/layout/axis.js +6 -2
  644. package/build/es/modules/layout/dimension.js +6 -2
  645. package/build/es/modules/layout/dimensionGetId.js +1 -2
  646. package/build/es/modules/layout/dimensionIsValid.js +0 -5
  647. package/build/es/modules/layout/item.js +6 -2
  648. package/build/es/modules/layout/itemIsValid.js +0 -1
  649. package/build/es/modules/layout/layoutGetAxisIdDimensionIdsObject.js +0 -1
  650. package/build/es/modules/layout/layoutReplaceDimension.js +0 -3
  651. package/build/es/modules/layout/testResources.js +12 -4
  652. package/build/es/modules/layoutUiRules/__tests__/rules.spec.js +8 -12
  653. package/build/es/modules/layoutUiRules/rules.js +11 -11
  654. package/build/es/modules/layoutUiRules/rulesHelper.js +3 -1
  655. package/build/es/modules/layoutUiRules/rulesUtils.js +6 -4
  656. package/build/es/modules/legends.js +0 -2
  657. package/build/es/modules/ouIdHelper/index.js +2 -8
  658. package/build/es/modules/ouLevelUtils/index.js +0 -7
  659. package/build/es/modules/outliers/index.js +6 -17
  660. package/build/es/modules/outliers/iqr.js +0 -9
  661. package/build/es/modules/outliers/modZScore.js +13 -9
  662. package/build/es/modules/outliers/normalization.js +3 -5
  663. package/build/es/modules/outliers/xyStats.js +0 -2
  664. package/build/es/modules/outliers/zScore.js +0 -2
  665. package/build/es/modules/pivotTable/AdaptiveClippingController.js +4 -29
  666. package/build/es/modules/pivotTable/PivotTableEngine.js +20 -179
  667. package/build/es/modules/pivotTable/applyLegendSet.js +0 -19
  668. package/build/es/modules/pivotTable/clipAxis.js +3 -2
  669. package/build/es/modules/pivotTable/clipPartitionedAxis.js +0 -6
  670. package/build/es/modules/pivotTable/getHeaderForDisplay.js +0 -7
  671. package/build/es/modules/pivotTable/isColorBright.js +0 -4
  672. package/build/es/modules/pivotTable/measureText.js +5 -18
  673. package/build/es/modules/pivotTable/parseValue.js +0 -2
  674. package/build/es/modules/pivotTable/useParentSize.js +0 -5
  675. package/build/es/modules/pivotTable/useScrollPosition.js +0 -2
  676. package/build/es/modules/pivotTable/useSortableColumns.js +0 -3
  677. package/build/es/modules/predefinedDimensions.js +2 -1
  678. package/build/es/modules/renderValue.js +0 -15
  679. package/build/es/modules/valueTypes.js +1 -0
  680. package/build/es/modules/visTypes.js +1 -3
  681. package/build/es/visualizations/config/adapters/dhis_dhis/index.js +2 -2
  682. package/build/es/visualizations/config/adapters/dhis_dhis/subtitle/index.js +0 -7
  683. package/build/es/visualizations/config/adapters/dhis_dhis/title/index.js +0 -6
  684. package/build/es/visualizations/config/adapters/dhis_dhis/title/singleValue.js +0 -1
  685. package/build/es/visualizations/config/adapters/dhis_dhis/type.js +0 -1
  686. package/build/es/visualizations/config/adapters/dhis_dhis/value/index.js +3 -3
  687. package/build/es/visualizations/config/adapters/dhis_highcharts/addTrendLines.js +30 -101
  688. package/build/es/visualizations/config/adapters/dhis_highcharts/axis.js +6 -19
  689. package/build/es/visualizations/config/adapters/dhis_highcharts/chart.js +0 -2
  690. package/build/es/visualizations/config/adapters/dhis_highcharts/customAxes.js +8 -7
  691. package/build/es/visualizations/config/adapters/dhis_highcharts/getAxisTitle.js +1 -3
  692. package/build/es/visualizations/config/adapters/dhis_highcharts/getCumulativeData.js +6 -11
  693. package/build/es/visualizations/config/adapters/dhis_highcharts/getScatterData.js +0 -1
  694. package/build/es/visualizations/config/adapters/dhis_highcharts/getSortedConfig.js +7 -12
  695. package/build/es/visualizations/config/adapters/dhis_highcharts/getStackedData.js +0 -2
  696. package/build/es/visualizations/config/adapters/dhis_highcharts/getTextAlignOption.js +0 -4
  697. package/build/es/visualizations/config/adapters/dhis_highcharts/getTrimmedConfig.js +4 -26
  698. package/build/es/visualizations/config/adapters/dhis_highcharts/getTwoCategorySplitSerieData.js +0 -1
  699. package/build/es/visualizations/config/adapters/dhis_highcharts/index.js +21 -32
  700. package/build/es/visualizations/config/adapters/dhis_highcharts/legend.js +1 -4
  701. package/build/es/visualizations/config/adapters/dhis_highcharts/legendSet.js +5 -6
  702. package/build/es/visualizations/config/adapters/dhis_highcharts/pane/index.js +0 -1
  703. package/build/es/visualizations/config/adapters/dhis_highcharts/plotOptions.js +1 -9
  704. package/build/es/visualizations/config/adapters/dhis_highcharts/series/gauge.js +0 -1
  705. package/build/es/visualizations/config/adapters/dhis_highcharts/series/index.js +13 -32
  706. package/build/es/visualizations/config/adapters/dhis_highcharts/series/scatter.js +9 -6
  707. package/build/es/visualizations/config/adapters/dhis_highcharts/subtitle/gauge.js +2 -1
  708. package/build/es/visualizations/config/adapters/dhis_highcharts/subtitle/index.js +3 -10
  709. package/build/es/visualizations/config/adapters/dhis_highcharts/title/index.js +1 -9
  710. package/build/es/visualizations/config/adapters/dhis_highcharts/title/scatter.js +1 -2
  711. package/build/es/visualizations/config/adapters/dhis_highcharts/title/yearOverYear.js +0 -3
  712. package/build/es/visualizations/config/adapters/dhis_highcharts/type.js +0 -7
  713. package/build/es/visualizations/config/adapters/dhis_highcharts/xAxis/index.js +1 -11
  714. package/build/es/visualizations/config/adapters/dhis_highcharts/xAxis/radar.js +0 -3
  715. package/build/es/visualizations/config/adapters/dhis_highcharts/xAxis/scatter.js +0 -1
  716. package/build/es/visualizations/config/adapters/dhis_highcharts/xAxis/twoCategory.js +4 -3
  717. package/build/es/visualizations/config/adapters/dhis_highcharts/xAxis/yearOnYear.js +0 -4
  718. package/build/es/visualizations/config/adapters/dhis_highcharts/yAxis/gauge.js +3 -14
  719. package/build/es/visualizations/config/adapters/dhis_highcharts/yAxis/index.js +8 -23
  720. package/build/es/visualizations/config/generators/dhis/index.js +0 -4
  721. package/build/es/visualizations/config/generators/dhis/singleValue.js +42 -67
  722. package/build/es/visualizations/config/generators/highcharts/index.js +11 -15
  723. package/build/es/visualizations/config/index.js +9 -15
  724. package/build/es/visualizations/config/validators/index.js +0 -2
  725. package/build/es/visualizations/index.js +0 -6
  726. package/build/es/visualizations/store/adapters/dhis_dhis/index.js +3 -9
  727. package/build/es/visualizations/store/adapters/dhis_highcharts/index.js +8 -17
  728. package/build/es/visualizations/store/adapters/dhis_highcharts/pie.js +0 -1
  729. package/build/es/visualizations/store/adapters/dhis_highcharts/twoCategory.js +5 -4
  730. package/build/es/visualizations/store/adapters/dhis_highcharts/yearOnYear.js +3 -3
  731. package/build/es/visualizations/store/index.js +2 -8
  732. package/build/es/visualizations/store/validators/dhis/index.js +6 -17
  733. package/build/es/visualizations/store/validators/index.js +0 -2
  734. package/build/es/visualizations/util/axisId.js +1 -1
  735. package/build/es/visualizations/util/colors/gradientColorGenerator.js +3 -8
  736. package/build/es/visualizations/util/getFilterText.js +4 -7
  737. package/package.json +6 -7
@@ -1,11 +1,11 @@
1
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
-
1
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
3
4
  import { DndContext, DragOverlay, useSensor, useSensors, PointerSensor as DndKitPointerSensor } from '@dnd-kit/core';
4
5
  import PropTypes from 'prop-types';
5
6
  import React, { useState } from 'react';
6
7
  import DraggingItem from './DraggingItem.js';
7
8
  export const OPTIONS_PANEL = 'Sortable';
8
-
9
9
  const getIntersectionRatio = (entry, target) => {
10
10
  const top = Math.max(target.top, entry.top);
11
11
  const left = Math.max(target.left, entry.left);
@@ -13,7 +13,6 @@ const getIntersectionRatio = (entry, target) => {
13
13
  const bottom = Math.min(target.top + target.height, entry.top + entry.height);
14
14
  const width = right - left;
15
15
  const height = bottom - top;
16
-
17
16
  if (left < right && top < bottom) {
18
17
  const targetArea = target.width * target.height;
19
18
  const entryArea = entry.width * entry.height;
@@ -22,10 +21,8 @@ const getIntersectionRatio = (entry, target) => {
22
21
  return Number(intersectionRatio.toFixed(4));
23
22
  } // Rectangles do not overlap, or overlap has an area of zero (edge/corner overlap)
24
23
 
25
-
26
24
  return 0;
27
25
  };
28
-
29
26
  const sortCollisionsDesc = (_ref, _ref2) => {
30
27
  let {
31
28
  data: {
@@ -39,13 +36,13 @@ const sortCollisionsDesc = (_ref, _ref2) => {
39
36
  } = _ref2;
40
37
  return b - a;
41
38
  };
42
-
43
39
  const rectIntersectionCustom = _ref3 => {
44
40
  let {
45
41
  pointerCoordinates,
46
42
  droppableContainers
47
43
  } = _ref3;
48
44
  // create a rect around the pointerCoords for calculating the intersection
45
+
49
46
  const pointerRectWidth = 40;
50
47
  const pointerRectHeight = 40;
51
48
  const pointerRect = {
@@ -57,7 +54,6 @@ const rectIntersectionCustom = _ref3 => {
57
54
  right: pointerCoordinates.x + pointerRectWidth / 2
58
55
  };
59
56
  const collisions = [];
60
-
61
57
  for (const droppableContainer of droppableContainers) {
62
58
  const {
63
59
  id,
@@ -65,10 +61,8 @@ const rectIntersectionCustom = _ref3 => {
65
61
  current: rect
66
62
  }
67
63
  } = droppableContainer;
68
-
69
64
  if (rect) {
70
65
  const intersectionRatio = getIntersectionRatio(rect, pointerRect);
71
-
72
66
  if (intersectionRatio > 0) {
73
67
  collisions.push({
74
68
  id,
@@ -80,38 +74,30 @@ const rectIntersectionCustom = _ref3 => {
80
74
  }
81
75
  }
82
76
  }
83
-
84
77
  return collisions.sort(sortCollisionsDesc);
85
78
  };
86
-
87
79
  const isInteractiveElement = el => {
88
80
  const interactiveElements = ['button', 'input', 'textarea', 'select', 'option'];
89
-
90
81
  if (interactiveElements.includes(el.tagName.toLowerCase())) {
91
82
  return true;
92
83
  }
93
-
94
84
  return false;
95
- }; // disable dragging if user is in an input
96
-
85
+ };
97
86
 
87
+ // disable dragging if user is in an input
98
88
  class PointerSensor extends DndKitPointerSensor {}
99
-
100
89
  _defineProperty(PointerSensor, "activators", [{
101
90
  eventName: 'onPointerDown',
102
91
  handler: _ref7 => {
103
92
  let {
104
93
  nativeEvent: event
105
94
  } = _ref7;
106
-
107
95
  if (!event.isPrimary || event.button !== 0 || isInteractiveElement(event.target)) {
108
96
  return false;
109
97
  }
110
-
111
98
  return true;
112
99
  }
113
100
  }]);
114
-
115
101
  const OuterDndContext = _ref4 => {
116
102
  let {
117
103
  children,
@@ -125,7 +111,6 @@ const OuterDndContext = _ref4 => {
125
111
  }
126
112
  });
127
113
  const sensors = useSensors(sensor);
128
-
129
114
  const handleDragStart = _ref5 => {
130
115
  let {
131
116
  active
@@ -133,25 +118,20 @@ const OuterDndContext = _ref4 => {
133
118
  setDraggingItem(active.data.current);
134
119
  onDragStart && onDragStart();
135
120
  };
136
-
137
121
  const handleDragCancel = () => {
138
122
  setDraggingItem(null);
139
123
  };
140
-
141
124
  const handleDragEnd = _ref6 => {
142
125
  var _over$data, _over$data$current, _over$data$current$so, _over$data$current2, _over$data$current3;
143
-
144
126
  let {
145
127
  active,
146
128
  over
147
129
  } = _ref6;
148
-
149
130
  if (!(over !== null && over !== void 0 && over.id) || (over === null || over === void 0 ? void 0 : (_over$data = over.data) === null || _over$data === void 0 ? void 0 : (_over$data$current = _over$data.current) === null || _over$data$current === void 0 ? void 0 : (_over$data$current$so = _over$data$current.sortable) === null || _over$data$current$so === void 0 ? void 0 : _over$data$current$so.containerId) === OPTIONS_PANEL || !active.data.current) {
150
131
  // dropped over non-droppable or over options panel
151
132
  handleDragCancel();
152
133
  return;
153
134
  }
154
-
155
135
  const item = {
156
136
  id: active.id,
157
137
  sourceContainerId: active.data.current.sortable.containerId,
@@ -172,7 +152,6 @@ const OuterDndContext = _ref4 => {
172
152
  });
173
153
  setDraggingItem(null);
174
154
  };
175
-
176
155
  return /*#__PURE__*/React.createElement(DndContext, {
177
156
  collisionDetection: rectIntersectionCustom,
178
157
  onDragStart: handleDragStart,
@@ -185,7 +164,6 @@ const OuterDndContext = _ref4 => {
185
164
  className: "dragOverlay"
186
165
  }, /*#__PURE__*/React.createElement(DraggingItem, draggingItem)) : null));
187
166
  };
188
-
189
167
  OuterDndContext.propTypes = {
190
168
  onDragEnd: PropTypes.func.isRequired,
191
169
  children: PropTypes.node,
@@ -7,7 +7,6 @@ import { getIcon } from '../../../modules/dimensionListItem.js';
7
7
  import { EXPRESSION_TYPE_DATA, EXPRESSION_TYPE_NUMBER, EXPRESSION_TYPE_OPERATOR } from '../../../modules/expressions.js';
8
8
  import styles from './styles/DraggingItem.style.js';
9
9
  import formulaItemStyles from './styles/FormulaItem.style.js';
10
-
11
10
  const DraggingItem = _ref => {
12
11
  let {
13
12
  label,
@@ -16,22 +15,21 @@ const DraggingItem = _ref => {
16
15
  } = _ref;
17
16
  const displayLabel = type === EXPRESSION_TYPE_NUMBER ? value || label : label;
18
17
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
19
- className: "jsx-".concat(styles.__hash, " jsx-").concat(formulaItemStyles.__hash) + " " + (cx('dragging', 'content', {
18
+ className: `jsx-${styles.__hash} jsx-${formulaItemStyles.__hash}` + " " + (cx('dragging', 'content', {
20
19
  operator: type === EXPRESSION_TYPE_OPERATOR,
21
20
  number: type === EXPRESSION_TYPE_NUMBER,
22
21
  data: type === EXPRESSION_TYPE_DATA
23
22
  }) || "")
24
23
  }, type === EXPRESSION_TYPE_DATA && /*#__PURE__*/React.createElement("span", {
25
- className: "jsx-".concat(styles.__hash, " jsx-").concat(formulaItemStyles.__hash) + " " + "icon"
24
+ className: `jsx-${styles.__hash} jsx-${formulaItemStyles.__hash}` + " " + "icon"
26
25
  }, getIcon(DIMENSION_TYPE_DATA_ELEMENT)), /*#__PURE__*/React.createElement("span", {
27
- className: "jsx-".concat(styles.__hash, " jsx-").concat(formulaItemStyles.__hash) + " " + "label"
26
+ className: `jsx-${styles.__hash} jsx-${formulaItemStyles.__hash}` + " " + "label"
28
27
  }, displayLabel)), /*#__PURE__*/React.createElement(_JSXStyle, {
29
28
  id: styles.__hash
30
29
  }, styles), /*#__PURE__*/React.createElement(_JSXStyle, {
31
30
  id: formulaItemStyles.__hash
32
31
  }, formulaItemStyles));
33
32
  };
34
-
35
33
  DraggingItem.propTypes = {
36
34
  label: PropTypes.string,
37
35
  type: PropTypes.string,
@@ -4,7 +4,6 @@ import cx from 'classnames';
4
4
  import PropTypes from 'prop-types';
5
5
  import React from 'react';
6
6
  import styles from './styles/DropZone.style.js';
7
-
8
7
  const DropZone = _ref => {
9
8
  let {
10
9
  firstElementId,
@@ -18,16 +17,14 @@ const DropZone = _ref => {
18
17
  id: 'firstdropzone'
19
18
  });
20
19
  let draggingOver = false;
21
-
22
20
  if (overLastDropZone && !firstElementId) {
23
21
  draggingOver = true;
24
22
  } else {
25
23
  draggingOver = firstElementId === (active === null || active === void 0 ? void 0 : active.id) ? false : isOver;
26
24
  }
27
-
28
25
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
29
26
  ref: setNodeRef,
30
- className: "jsx-".concat(styles.__hash) + " " + (cx('first-dropzone', {
27
+ className: `jsx-${styles.__hash}` + " " + (cx('first-dropzone', {
31
28
  'dragging-over': draggingOver,
32
29
  empty: !firstElementId
33
30
  }) || "")
@@ -35,7 +32,6 @@ const DropZone = _ref => {
35
32
  id: styles.__hash
36
33
  }, styles));
37
34
  };
38
-
39
35
  DropZone.propTypes = {
40
36
  firstElementId: PropTypes.string,
41
37
  overLastDropZone: PropTypes.bool
@@ -11,16 +11,14 @@ import FormulaItem from './FormulaItem.js';
11
11
  import styles from './styles/FormulaField.style.js';
12
12
  export const LAST_DROPZONE_ID = 'lastdropzone';
13
13
  export const FORMULA_BOX_ID = 'formulabox';
14
-
15
14
  const Placeholder = () => /*#__PURE__*/React.createElement("div", {
16
15
  "data-test": "placeholder",
17
- className: "jsx-".concat(styles.__hash) + " " + "placeholder"
16
+ className: `jsx-${styles.__hash}` + " " + "placeholder"
18
17
  }, /*#__PURE__*/React.createElement(FormulaIcon, null), /*#__PURE__*/React.createElement("span", {
19
- className: "jsx-".concat(styles.__hash) + " " + "help-text"
18
+ className: `jsx-${styles.__hash}` + " " + "help-text"
20
19
  }, i18n.t('Drag items here, or double click in the list, to start building a calculation formula')), /*#__PURE__*/React.createElement(_JSXStyle, {
21
20
  id: styles.__hash
22
21
  }, styles));
23
-
24
22
  const FormulaField = _ref => {
25
23
  let {
26
24
  items = [],
@@ -40,13 +38,13 @@ const FormulaField = _ref => {
40
38
  const itemIds = items.map(item => item.id);
41
39
  const overLastDropZone = (over === null || over === void 0 ? void 0 : over.id) === LAST_DROPZONE_ID;
42
40
  return /*#__PURE__*/React.createElement("div", {
43
- className: "jsx-".concat(styles.__hash) + " " + "container"
41
+ className: `jsx-${styles.__hash}` + " " + "container"
44
42
  }, /*#__PURE__*/React.createElement("div", {
45
- className: "jsx-".concat(styles.__hash) + " " + "border"
43
+ className: `jsx-${styles.__hash}` + " " + "border"
46
44
  }), /*#__PURE__*/React.createElement("div", {
47
45
  ref: setLastDropzoneRef,
48
46
  "data-test": "formula-field",
49
- className: "jsx-".concat(styles.__hash) + " " + "formula-field"
47
+ className: `jsx-${styles.__hash}` + " " + "formula-field"
50
48
  }, loading && /*#__PURE__*/React.createElement(Center, null, /*#__PURE__*/React.createElement(CircularLoader, {
51
49
  small: true
52
50
  })), !loading && itemIds && /*#__PURE__*/React.createElement(SortableContext, {
@@ -80,7 +78,6 @@ const FormulaField = _ref => {
80
78
  id: styles.__hash
81
79
  }, styles));
82
80
  };
83
-
84
81
  FormulaField.propTypes = {
85
82
  onChange: PropTypes.func.isRequired,
86
83
  onClick: PropTypes.func.isRequired,
@@ -1,7 +1,5 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
-
3
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
-
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
3
  import { Tooltip } from '@dhis2/ui';
6
4
  import { useSortable } from '@dnd-kit/sortable';
7
5
  import { CSS } from '@dnd-kit/utilities';
@@ -17,7 +15,6 @@ const BEFORE = 'BEFORE';
17
15
  const AFTER = 'AFTER';
18
16
  const maxMsBetweenClicks = 300;
19
17
  const TAG_INPUT = 'INPUT';
20
-
21
18
  const FormulaItem = _ref => {
22
19
  let {
23
20
  id,
@@ -73,7 +70,6 @@ const FormulaItem = _ref => {
73
70
  transition
74
71
  } : undefined;
75
72
  let insertPosition;
76
-
77
73
  if ((over === null || over === void 0 ? void 0 : over.id) === id) {
78
74
  // This item is being hovered over by the item being dragged
79
75
  if (activeIndex === -1) {
@@ -89,7 +85,6 @@ const FormulaItem = _ref => {
89
85
  } else if (isLast && overLastDropZone) {
90
86
  insertPosition = AFTER;
91
87
  }
92
-
93
88
  const handleClick = e => {
94
89
  const tagname = e.target.tagName;
95
90
  clearTimeout(clickTimeoutId);
@@ -102,34 +97,30 @@ const FormulaItem = _ref => {
102
97
  }, maxMsBetweenClicks);
103
98
  setClickTimeoutId(to);
104
99
  };
105
-
106
100
  const handleDoubleClick = e => {
107
101
  clearTimeout(clickTimeoutId);
108
102
  setClickTimeoutId(null);
109
-
110
103
  if (e.target.tagName !== TAG_INPUT) {
111
104
  onDoubleClick(id);
112
105
  } else {
113
106
  inputRef.current && inputRef.current.focus();
114
107
  }
115
108
  };
116
-
117
109
  const handleChange = e => onChange({
118
110
  itemId: id,
119
111
  value: e.target.value
120
112
  });
121
-
122
113
  const getContent = () => {
123
114
  if (type === EXPRESSION_TYPE_NUMBER) {
124
115
  return /*#__PURE__*/React.createElement("div", {
125
- className: "jsx-".concat(styles.__hash) + " " + (cx('content', 'number', {
116
+ className: `jsx-${styles.__hash}` + " " + (cx('content', 'number', {
126
117
  highlighted: isHighlighted
127
118
  }) || "")
128
119
  }, DragHandleIcon, /*#__PURE__*/React.createElement("span", {
129
- className: "jsx-".concat(styles.__hash) + " " + "number-positioner"
120
+ className: `jsx-${styles.__hash}` + " " + "number-positioner"
130
121
  }, /*#__PURE__*/React.createElement("span", {
131
122
  "aria-hidden": "true",
132
- className: "jsx-".concat(styles.__hash) + " " + "number-width"
123
+ className: `jsx-${styles.__hash}` + " " + "number-width"
133
124
  }, value), /*#__PURE__*/React.createElement("input", {
134
125
  id: id,
135
126
  name: label,
@@ -137,51 +128,48 @@ const FormulaItem = _ref => {
137
128
  value: value,
138
129
  type: "number",
139
130
  ref: inputRef,
140
- className: "jsx-".concat(styles.__hash) + " " + "input"
131
+ className: `jsx-${styles.__hash}` + " " + "input"
141
132
  })), /*#__PURE__*/React.createElement(_JSXStyle, {
142
133
  id: styles.__hash
143
134
  }, styles));
144
135
  }
145
-
146
136
  if (type === EXPRESSION_TYPE_DATA) {
147
137
  return /*#__PURE__*/React.createElement(Tooltip, {
148
138
  content: label,
149
139
  placement: "bottom"
150
140
  }, /*#__PURE__*/React.createElement("div", {
151
- className: "jsx-".concat(styles.__hash) + " " + (cx('content', 'data', {
141
+ className: `jsx-${styles.__hash}` + " " + (cx('content', 'data', {
152
142
  highlighted: isHighlighted
153
143
  }) || "")
154
144
  }, /*#__PURE__*/React.createElement("span", {
155
- className: "jsx-".concat(styles.__hash) + " " + "icon"
145
+ className: `jsx-${styles.__hash}` + " " + "icon"
156
146
  }, getIcon(DIMENSION_TYPE_DATA_ELEMENT)), /*#__PURE__*/React.createElement("span", {
157
- className: "jsx-".concat(styles.__hash) + " " + "label"
147
+ className: `jsx-${styles.__hash}` + " " + "label"
158
148
  }, label), /*#__PURE__*/React.createElement(_JSXStyle, {
159
149
  id: styles.__hash
160
150
  }, styles)));
161
151
  }
162
-
163
152
  return /*#__PURE__*/React.createElement("div", {
164
- className: "jsx-".concat(styles.__hash) + " " + (cx('content', 'operator', {
153
+ className: `jsx-${styles.__hash}` + " " + (cx('content', 'operator', {
165
154
  highlighted: isHighlighted
166
155
  }) || "")
167
156
  }, /*#__PURE__*/React.createElement("span", {
168
- className: "jsx-".concat(styles.__hash) + " " + "label"
157
+ className: `jsx-${styles.__hash}` + " " + "label"
169
158
  }, label), /*#__PURE__*/React.createElement(_JSXStyle, {
170
159
  id: styles.__hash
171
160
  }, styles));
172
161
  };
173
-
174
162
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
175
163
  ref: setNodeRef,
176
164
  style: style,
177
- className: "jsx-".concat(styles.__hash) + " " + (cx({
165
+ className: `jsx-${styles.__hash}` + " " + (cx({
178
166
  'last-item': isLast
179
167
  }) || "")
180
168
  }, /*#__PURE__*/React.createElement("div", _extends({}, attributes, listeners, {
181
169
  onClick: handleClick,
182
170
  onDoubleClick: handleDoubleClick,
183
- "data-test": "formula-item-".concat(id),
184
- className: "jsx-".concat(styles.__hash) + " " + (cx('formula-item', {
171
+ "data-test": `formula-item-${id}`,
172
+ className: `jsx-${styles.__hash}` + " " + (cx('formula-item', {
185
173
  inactive: !isDragging,
186
174
  insertBefore: insertPosition === BEFORE,
187
175
  insertAfter: insertPosition === AFTER
@@ -190,7 +178,6 @@ const FormulaItem = _ref => {
190
178
  id: styles.__hash
191
179
  }, styles));
192
180
  };
193
-
194
181
  FormulaItem.propTypes = {
195
182
  id: PropTypes.string.isRequired,
196
183
  label: PropTypes.string.isRequired,
@@ -5,18 +5,17 @@ import i18n from '../../../locales/index.js';
5
5
  import { getOperators } from '../../../modules/expressions.js';
6
6
  import DraggableOperator from './Operator.js';
7
7
  import styles from './styles/MathOperatorSelector.style.js';
8
-
9
8
  const MathOperatorSelector = _ref => {
10
9
  let {
11
10
  onDoubleClick
12
11
  } = _ref;
13
12
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
14
- className: "jsx-".concat(styles.__hash) + " " + "wrapper"
13
+ className: `jsx-${styles.__hash}` + " " + "wrapper"
15
14
  }, /*#__PURE__*/React.createElement("h4", {
16
- className: "jsx-".concat(styles.__hash) + " " + "sub-header"
15
+ className: `jsx-${styles.__hash}` + " " + "sub-header"
17
16
  }, i18n.t('Math operators')), /*#__PURE__*/React.createElement("div", {
18
17
  "data-test": "operators-list",
19
- className: "jsx-".concat(styles.__hash) + " " + "operators"
18
+ className: `jsx-${styles.__hash}` + " " + "operators"
20
19
  }, getOperators().map((_ref2, index) => {
21
20
  let {
22
21
  label,
@@ -24,7 +23,7 @@ const MathOperatorSelector = _ref => {
24
23
  type
25
24
  } = _ref2;
26
25
  return /*#__PURE__*/React.createElement(DraggableOperator, {
27
- key: "".concat(label, "-").concat(index),
26
+ key: `${label}-${index}`,
28
27
  label: label,
29
28
  value: value,
30
29
  type: type,
@@ -35,7 +34,6 @@ const MathOperatorSelector = _ref => {
35
34
  id: styles.__hash
36
35
  }, styles));
37
36
  };
38
-
39
37
  MathOperatorSelector.propTypes = {
40
38
  onDoubleClick: PropTypes.func.isRequired
41
39
  };
@@ -1,7 +1,5 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
-
3
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
-
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
3
  import { useSortable } from '@dnd-kit/sortable';
6
4
  import { CSS } from '@dnd-kit/utilities';
7
5
  import cx from 'classnames';
@@ -10,7 +8,6 @@ import React from 'react';
10
8
  import { EXPRESSION_TYPE_NUMBER, EXPRESSION_TYPE_OPERATOR } from '../../../modules/expressions.js';
11
9
  import formulaItemStyles from './styles/FormulaItem.style.js';
12
10
  import styles from './styles/Operator.style.js';
13
-
14
11
  const Operator = _ref => {
15
12
  let {
16
13
  label,
@@ -29,7 +26,7 @@ const Operator = _ref => {
29
26
  setNodeRef,
30
27
  transform
31
28
  } = useSortable({
32
- id: "operator-".concat(label),
29
+ id: `operator-${label}`,
33
30
  data
34
31
  });
35
32
  const style = {
@@ -38,23 +35,22 @@ const Operator = _ref => {
38
35
  return /*#__PURE__*/React.createElement("div", _extends({}, attributes, listeners, {
39
36
  ref: setNodeRef,
40
37
  style: style,
41
- className: "jsx-".concat(formulaItemStyles.__hash, " jsx-").concat(styles.__hash) + " " + (listeners && listeners.className != null && listeners.className || attributes && attributes.className != null && attributes.className || "")
38
+ className: `jsx-${formulaItemStyles.__hash} jsx-${styles.__hash}` + " " + (listeners && listeners.className != null && listeners.className || attributes && attributes.className != null && attributes.className || "")
42
39
  }), /*#__PURE__*/React.createElement("div", {
43
40
  "data-test": "operator",
44
41
  onDoubleClick: () => onDoubleClick(data),
45
- className: "jsx-".concat(formulaItemStyles.__hash, " jsx-").concat(styles.__hash) + " " + (cx('content', {
42
+ className: `jsx-${formulaItemStyles.__hash} jsx-${styles.__hash}` + " " + (cx('content', {
46
43
  operator: type === EXPRESSION_TYPE_OPERATOR,
47
44
  number: type === EXPRESSION_TYPE_NUMBER
48
45
  }) || "")
49
46
  }, /*#__PURE__*/React.createElement("span", {
50
- className: "jsx-".concat(formulaItemStyles.__hash, " jsx-").concat(styles.__hash)
47
+ className: `jsx-${formulaItemStyles.__hash} jsx-${styles.__hash}`
51
48
  }, label)), /*#__PURE__*/React.createElement(_JSXStyle, {
52
49
  id: formulaItemStyles.__hash
53
50
  }, formulaItemStyles), /*#__PURE__*/React.createElement(_JSXStyle, {
54
51
  id: styles.__hash
55
52
  }, styles));
56
53
  };
57
-
58
54
  Operator.propTypes = {
59
55
  label: PropTypes.string.isRequired,
60
56
  type: PropTypes.string.isRequired,
@@ -1,4 +1,4 @@
1
1
  import { colors, spacers } from '@dhis2/ui';
2
- const _defaultExport = [".header.jsx-1005744271{background:".concat(colors.grey200, ";padding:").concat(spacers.dp16, ";font-weight:normal;}"), ".header-icon.jsx-1005744271{padding:0 ".concat(spacers.dp8, ";vertical-align:text-bottom;line-height:14px;}"), ".actions-wrapper.jsx-1005744271{margin-top:".concat(spacers.dp16, ";margin-bottom:").concat(spacers.dp16, ";margin-left:").concat(spacers.dp4, ";}"), ".button-container.jsx-1005744271{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".validate-button.jsx-1005744271{margin-bottom:".concat(spacers.dp4, ";}"), ".remove-button.jsx-1005744271{margin-right:".concat(spacers.dp8, ";}"), ".delete-button.jsx-1005744271{margin-right:".concat(spacers.dp8, ";}"), ".content.jsx-1005744271{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".left-section.jsx-1005744271{width:45%;}", ".right-section.jsx-1005744271{width:55%;padding-left:".concat(spacers.dp8, ";font-size:14px;}"), ".validation-message.jsx-1005744271{margin-left:".concat(spacers.dp8, ";}"), ".validation-error.jsx-1005744271{color:".concat(colors.red500, ";}"), ".validation-success.jsx-1005744271{color:".concat(colors.green500, ";}"), ".name-input.jsx-1005744271{margin-top:".concat(spacers.dp12, ";}")];
2
+ const _defaultExport = [`.header.jsx-1005744271{background:${colors.grey200};padding:${spacers.dp16};font-weight:normal;}`, `.header-icon.jsx-1005744271{padding:0 ${spacers.dp8};vertical-align:text-bottom;line-height:14px;}`, `.actions-wrapper.jsx-1005744271{margin-top:${spacers.dp16};margin-bottom:${spacers.dp16};margin-left:${spacers.dp4};}`, ".button-container.jsx-1005744271{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", `.validate-button.jsx-1005744271{margin-bottom:${spacers.dp4};}`, `.remove-button.jsx-1005744271{margin-right:${spacers.dp8};}`, `.delete-button.jsx-1005744271{margin-right:${spacers.dp8};}`, ".content.jsx-1005744271{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".left-section.jsx-1005744271{width:45%;}", `.right-section.jsx-1005744271{width:55%;padding-left:${spacers.dp8};font-size:14px;}`, `.validation-message.jsx-1005744271{margin-left:${spacers.dp8};}`, `.validation-error.jsx-1005744271{color:${colors.red500};}`, `.validation-success.jsx-1005744271{color:${colors.green500};}`, `.name-input.jsx-1005744271{margin-top:${spacers.dp12};}`];
3
3
  _defaultExport.__hash = "1005744271";
4
4
  export default _defaultExport;
@@ -1,4 +1,4 @@
1
1
  import { spacers, colors } from '@dhis2/ui';
2
- const _defaultExport = [".wrapper.jsx-2286537164{margin-top:".concat(spacers.dp4, ";}"), ".wrapper.jsx-2286537164:last-child{margin-bottom:".concat(spacers.dp4, ";}"), ".draggable-item.jsx-2286537164{cursor:pointer;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".chip.jsx-2286537164{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;background:".concat(colors.grey200, ";font-size:14px;padding:2px ").concat(spacers.dp8, " 2px 2px;border-radius:3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}"), ".chip.jsx-2286537164:hover{background:".concat(colors.grey300, ";}"), ".icon.jsx-2286537164,.label.jsx-2286537164{line-height:18px;}", ".icon.jsx-2286537164{margin-right:2px;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;vertical-align:text-bottom;padding-top:1px;}"];
2
+ const _defaultExport = [`.wrapper.jsx-2286537164{margin-top:${spacers.dp4};}`, `.wrapper.jsx-2286537164:last-child{margin-bottom:${spacers.dp4};}`, ".draggable-item.jsx-2286537164{cursor:pointer;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", `.chip.jsx-2286537164{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;background:${colors.grey200};font-size:14px;padding:2px ${spacers.dp8} 2px 2px;border-radius:3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}`, `.chip.jsx-2286537164:hover{background:${colors.grey300};}`, ".icon.jsx-2286537164,.label.jsx-2286537164{line-height:18px;}", ".icon.jsx-2286537164{margin-right:2px;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;vertical-align:text-bottom;padding-top:1px;}"];
3
3
  _defaultExport.__hash = "2286537164";
4
4
  export default _defaultExport;
@@ -1,4 +1,4 @@
1
1
  import { colors, spacers } from '@dhis2/ui';
2
- const _defaultExport = [".dimension-list-container.jsx-4262244129{position:relative;}", ".dimension-list-scrollbox.jsx-4262244129{position:relative;width:100%;height:337px;overflow:hidden;overflow-y:auto;border:1px solid ".concat(colors.grey400, ";}"), ".dimension-list-scroller.jsx-4262244129{position:relative;min-height:1px;padding:0 ".concat(spacers.dp4, ";}"), ".dimension-list-scroller.loading.jsx-4262244129{-webkit-filter:blur(2px);filter:blur(2px);}", ".scroll-detector.jsx-4262244129{boxsizing:border-box;width:100%;height:100px;position:absolute;bottom:0;left:0;z-index:-1;}", ".dimension-list-overlay.jsx-4262244129{position:absolute;width:100%;height:100%;z-index:2;top:0;left:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}", ".filter-wrapper.jsx-4262244129{padding:".concat(spacers.dp8, ";border:1px solid ").concat(colors.grey400, ";border-bottom:0;}"), ".selector-wrapper.jsx-4262244129{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:".concat(spacers.dp4, ";}"), ".sub-header.jsx-4262244129{font-size:14px;font-weight:normal;margin:0 0 ".concat(spacers.dp4, ";}"), ".group-select.jsx-4262244129{width:50%;margin-top:".concat(spacers.dp4, ";}"), ".empty-list.jsx-4262244129{text-align:center;font-size:14px;line-height:16px;margin:".concat(spacers.dp24, " 0 0;color:").concat(colors.grey700, ";}")];
2
+ const _defaultExport = [".dimension-list-container.jsx-4262244129{position:relative;}", `.dimension-list-scrollbox.jsx-4262244129{position:relative;width:100%;height:337px;overflow:hidden;overflow-y:auto;border:1px solid ${colors.grey400};}`, `.dimension-list-scroller.jsx-4262244129{position:relative;min-height:1px;padding:0 ${spacers.dp4};}`, ".dimension-list-scroller.loading.jsx-4262244129{-webkit-filter:blur(2px);filter:blur(2px);}", ".scroll-detector.jsx-4262244129{boxsizing:border-box;width:100%;height:100px;position:absolute;bottom:0;left:0;z-index:-1;}", ".dimension-list-overlay.jsx-4262244129{position:absolute;width:100%;height:100%;z-index:2;top:0;left:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}", `.filter-wrapper.jsx-4262244129{padding:${spacers.dp8};border:1px solid ${colors.grey400};border-bottom:0;}`, `.selector-wrapper.jsx-4262244129{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:${spacers.dp4};}`, `.sub-header.jsx-4262244129{font-size:14px;font-weight:normal;margin:0 0 ${spacers.dp4};}`, `.group-select.jsx-4262244129{width:50%;margin-top:${spacers.dp4};}`, `.empty-list.jsx-4262244129{text-align:center;font-size:14px;line-height:16px;margin:${spacers.dp24} 0 0;color:${colors.grey700};}`];
3
3
  _defaultExport.__hash = "4262244129";
4
4
  export default _defaultExport;
@@ -1,4 +1,4 @@
1
1
  import { colors, spacers } from '@dhis2/ui';
2
- const _defaultExport = [".dragging.jsx-2818590818{border:2px solid ".concat(colors.blue500, ";cursor:-webkit-grab;cursor:-moz-grab;cursor:grab;}"), ".number.jsx-2818590818{padding:0 ".concat(spacers.dp8, ";}")];
2
+ const _defaultExport = [`.dragging.jsx-2818590818{border:2px solid ${colors.blue500};cursor:-webkit-grab;cursor:-moz-grab;cursor:grab;}`, `.number.jsx-2818590818{padding:0 ${spacers.dp8};}`];
3
3
  _defaultExport.__hash = "2818590818";
4
4
  export default _defaultExport;
@@ -1,4 +1,4 @@
1
1
  import { colors } from '@dhis2/ui';
2
- const _defaultExport = [".first-dropzone.jsx-3773517794{position:absolute;top:0;left:0;z-index:-1;width:24px;height:28px;background-color:transparent;}", ".dragging-over.jsx-3773517794{z-index:100;}", ".empty.jsx-3773517794{position:relative;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;z-index:100;margin-left:-10px;margin-top:-4px;}", ".dragging-over.jsx-3773517794::before,.dragging-over.jsx-3773517794::after{content:'';position:absolute;}", ".dragging-over.jsx-3773517794::before{top:10px;width:4px;left:4px;height:18px;background-color:".concat(colors.blue500, ";}"), ".dragging-over.jsx-3773517794::after{top:0;left:0;width:12px;height:12px;border:4px solid ".concat(colors.blue500, ";background:transparent;border-radius:12px;}")];
2
+ const _defaultExport = [".first-dropzone.jsx-3773517794{position:absolute;top:0;left:0;z-index:-1;width:24px;height:28px;background-color:transparent;}", ".dragging-over.jsx-3773517794{z-index:100;}", ".empty.jsx-3773517794{position:relative;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;z-index:100;margin-left:-10px;margin-top:-4px;}", ".dragging-over.jsx-3773517794::before,.dragging-over.jsx-3773517794::after{content:'';position:absolute;}", `.dragging-over.jsx-3773517794::before{top:10px;width:4px;left:4px;height:18px;background-color:${colors.blue500};}`, `.dragging-over.jsx-3773517794::after{top:0;left:0;width:12px;height:12px;border:4px solid ${colors.blue500};background:transparent;border-radius:12px;}`];
3
3
  _defaultExport.__hash = "3773517794";
4
4
  export default _defaultExport;
@@ -1,4 +1,4 @@
1
1
  import { colors, spacers } from '@dhis2/ui';
2
- const _defaultExport = [".formula-field.jsx-926760428{border-right:2px solid ".concat(colors.grey200, ";height:180px;overflow:auto;padding:6px 12px;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-align-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:").concat(spacers.dp4, " ").concat(spacers.dp8, ";width:100%;}"), ".container.jsx-926760428{position:relative;}", ".border.jsx-926760428{position:absolute;top:0;left:6px;height:180px;width:calc(100% - 6px);border-left:2px solid ".concat(colors.grey200, ";border-top:2px solid ").concat(colors.grey200, ";border-bottom:2px solid ").concat(colors.grey200, ";}"), ".placeholder.jsx-926760428{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:".concat(spacers.dp8, ";-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin-top:-28px;padding:0 ").concat(spacers.dp32, ";}"), ".help-text.jsx-926760428{color:".concat(colors.grey600, ";font-size:14px;line-height:19px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}")];
2
+ const _defaultExport = [`.formula-field.jsx-926760428{border-right:2px solid ${colors.grey200};height:180px;overflow:auto;padding:6px 12px;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-align-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:${spacers.dp4} ${spacers.dp8};width:100%;}`, ".container.jsx-926760428{position:relative;}", `.border.jsx-926760428{position:absolute;top:0;left:6px;height:180px;width:calc(100% - 6px);border-left:2px solid ${colors.grey200};border-top:2px solid ${colors.grey200};border-bottom:2px solid ${colors.grey200};}`, `.placeholder.jsx-926760428{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:${spacers.dp8};-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin-top:-28px;padding:0 ${spacers.dp32};}`, `.help-text.jsx-926760428{color:${colors.grey600};font-size:14px;line-height:19px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}`];
3
3
  _defaultExport.__hash = "926760428";
4
4
  export default _defaultExport;
@@ -1,4 +1,4 @@
1
1
  import { colors, spacers, theme } from '@dhis2/ui';
2
- const _defaultExport = [".formula-item.jsx-255634210{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}", ".formula-item.jsx-255634210:not(.inactive){opacity:0.5;}", ".content.jsx-255634210{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:24px;font-size:14px;border-radius:3px;background:".concat(colors.grey200, ";}"), ".icon.jsx-255634210{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;margin-right:2px;}", ".operator.jsx-255634210{padding:0;width:24px;}", ".data.jsx-255634210,.number.jsx-255634210{padding:0 ".concat(spacers.dp8, " 0 2px;}"), ".operator.jsx-255634210 .label.jsx-255634210{margin-bottom:1px;}", ".data.jsx-255634210 .label.jsx-255634210{max-width:280px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}", ".number-positioner.jsx-255634210{position:relative;line-height:18px;}", ".number-width.jsx-255634210{padding:0 24px 0 0;visibility:hidden;}", ".input.jsx-255634210{position:absolute;width:100%;left:0;background-color:transparent;border:1px dashed #a0adba;padding:0 0 0 2px;}", ".input.jsx-255634210:hover,.input.jsx-255634210:focus{background:white;border:1px solid rgba(0,0,0,0.2);}", ".highlighted.jsx-255634210{background:".concat(theme.secondary800, ";color:").concat(colors.white, ";}"), ".highlighted.jsx-255634210 .input.jsx-255634210{color:".concat(colors.white, ";}"), ".highlighted.jsx-255634210 .input.jsx-255634210:hover,.highlighted.jsx-255634210 .input.jsx-255634210:active,.highlighted.jsx-255634210 .input.jsx-255634210:focus{color:".concat(colors.grey900, ";}"), ".highlighted.jsx-255634210 .icon path{fill:".concat(colors.white, ";}"), ".inactive.insertBefore.jsx-255634210 .content.jsx-255634210::before,.inactive.insertAfter.jsx-255634210 .content.jsx-255634210::before,.inactive.insertBefore.jsx-255634210 .content.jsx-255634210::after,.inactive.insertAfter.jsx-255634210 .content.jsx-255634210::after{content:'';position:absolute;z-index:100;}", ".content.jsx-255634210::before{top:6px;bottom:0;width:4px;background-color:".concat(colors.blue500, ";}"), ".content.jsx-255634210::after{top:-4px;width:12px;height:12px;border:4px solid ".concat(colors.blue500, ";background:transparent;border-radius:12px;}"), ".last-item.jsx-255634210{-webkit-flex:1;-ms-flex:1;flex:1;}", ".insertBefore.jsx-255634210 .content.jsx-255634210::before{left:-6px;}", ".insertBefore.jsx-255634210 .content.jsx-255634210::after{left:-10px;}", ".insertAfter.jsx-255634210 .content.jsx-255634210::before{right:-6px;}", ".insertAfter.jsx-255634210 .content.jsx-255634210::after{right:-10px;}"];
2
+ const _defaultExport = [".formula-item.jsx-255634210{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}", ".formula-item.jsx-255634210:not(.inactive){opacity:0.5;}", `.content.jsx-255634210{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:24px;font-size:14px;border-radius:3px;background:${colors.grey200};}`, ".icon.jsx-255634210{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;margin-right:2px;}", ".operator.jsx-255634210{padding:0;width:24px;}", `.data.jsx-255634210,.number.jsx-255634210{padding:0 ${spacers.dp8} 0 2px;}`, ".operator.jsx-255634210 .label.jsx-255634210{margin-bottom:1px;}", ".data.jsx-255634210 .label.jsx-255634210{max-width:280px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}", ".number-positioner.jsx-255634210{position:relative;line-height:18px;}", ".number-width.jsx-255634210{padding:0 24px 0 0;visibility:hidden;}", ".input.jsx-255634210{position:absolute;width:100%;left:0;background-color:transparent;border:1px dashed #a0adba;padding:0 0 0 2px;}", ".input.jsx-255634210:hover,.input.jsx-255634210:focus{background:white;border:1px solid rgba(0,0,0,0.2);}", `.highlighted.jsx-255634210{background:${theme.secondary800};color:${colors.white};}`, `.highlighted.jsx-255634210 .input.jsx-255634210{color:${colors.white};}`, `.highlighted.jsx-255634210 .input.jsx-255634210:hover,.highlighted.jsx-255634210 .input.jsx-255634210:active,.highlighted.jsx-255634210 .input.jsx-255634210:focus{color:${colors.grey900};}`, `.highlighted.jsx-255634210 .icon path{fill:${colors.white};}`, ".inactive.insertBefore.jsx-255634210 .content.jsx-255634210::before,.inactive.insertAfter.jsx-255634210 .content.jsx-255634210::before,.inactive.insertBefore.jsx-255634210 .content.jsx-255634210::after,.inactive.insertAfter.jsx-255634210 .content.jsx-255634210::after{content:'';position:absolute;z-index:100;}", `.content.jsx-255634210::before{top:6px;bottom:0;width:4px;background-color:${colors.blue500};}`, `.content.jsx-255634210::after{top:-4px;width:12px;height:12px;border:4px solid ${colors.blue500};background:transparent;border-radius:12px;}`, ".last-item.jsx-255634210{-webkit-flex:1;-ms-flex:1;flex:1;}", ".insertBefore.jsx-255634210 .content.jsx-255634210::before{left:-6px;}", ".insertBefore.jsx-255634210 .content.jsx-255634210::after{left:-10px;}", ".insertAfter.jsx-255634210 .content.jsx-255634210::before{right:-6px;}", ".insertAfter.jsx-255634210 .content.jsx-255634210::after{right:-10px;}"];
3
3
  _defaultExport.__hash = "255634210";
4
4
  export default _defaultExport;
@@ -1,4 +1,4 @@
1
1
  import { colors, spacers } from '@dhis2/ui';
2
- const _defaultExport = [".wrapper.jsx-1314592703{border:1px solid ".concat(colors.grey400, ";margin-top:").concat(spacers.dp8, ";}"), ".operators.jsx-1314592703{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:".concat(spacers.dp4, ";padding:").concat(spacers.dp4, ";border-top:1px solid ").concat(colors.grey400, ";}"), ".sub-header.jsx-1314592703{font-size:14px;font-weight:normal;margin:".concat(spacers.dp4, " ").concat(spacers.dp8, ";}")];
2
+ const _defaultExport = [`.wrapper.jsx-1314592703{border:1px solid ${colors.grey400};margin-top:${spacers.dp8};}`, `.operators.jsx-1314592703{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:${spacers.dp4};padding:${spacers.dp4};border-top:1px solid ${colors.grey400};}`, `.sub-header.jsx-1314592703{font-size:14px;font-weight:normal;margin:${spacers.dp4} ${spacers.dp8};}`];
3
3
  _defaultExport.__hash = "1314592703";
4
4
  export default _defaultExport;
@@ -1,4 +1,4 @@
1
1
  import { colors, spacers } from '@dhis2/ui';
2
- const _defaultExport = [".number.jsx-2117397001{padding:0 ".concat(spacers.dp8, ";}"), ".operator.jsx-2117397001:hover,.number.jsx-2117397001:hover{background:".concat(colors.grey300, ";}")];
2
+ const _defaultExport = [`.number.jsx-2117397001{padding:0 ${spacers.dp8};}`, `.operator.jsx-2117397001:hover,.number.jsx-2117397001:hover{background:${colors.grey300};}`];
3
3
  _defaultExport.__hash = "2117397001";
4
4
  export default _defaultExport;