@dhis2/analytics 21.0.0-alpha.1 → 21.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/CHANGELOG.md +2775 -0
  2. package/build/cjs/__demo__/Filter.stories.js +2 -2
  3. package/build/cjs/__demo__/FixedPeriodSelect.stories.js +2 -2
  4. package/build/cjs/__demo__/OpenFileDialog.stories.js +1 -1
  5. package/build/cjs/__demo__/OrgUnitDimension.stories.js +17 -8
  6. package/build/cjs/__demo__/PivotTable.stories.js +2 -2
  7. package/build/cjs/api/analytics/AnalyticsBase.js +1 -1
  8. package/build/cjs/api/analytics/AnalyticsRequest.js +1 -1
  9. package/build/cjs/api/analytics/AnalyticsRequestBase.js +3 -3
  10. package/build/cjs/api/analytics/AnalyticsRequestPropertiesMixin.js +7 -7
  11. package/build/cjs/api/analytics/AnalyticsResponse.js +2 -2
  12. package/build/cjs/api/analytics/__tests__/AnalyticsAggregate.spec.js +1 -11
  13. package/build/cjs/api/analytics/__tests__/AnalyticsRequest.spec.js +9 -9
  14. package/build/cjs/api/analytics/__tests__/AnalyticsRequestBase.spec.js +4 -4
  15. package/build/cjs/api/analytics/utils.js +1 -1
  16. package/build/cjs/api/dimensions.js +37 -37
  17. package/build/cjs/api/organisationUnits.js +5 -5
  18. package/build/cjs/components/AboutAOUnit/AboutAOUnit.js +226 -0
  19. package/build/cjs/components/AboutAOUnit/styles/AboutAOUnit.style.js +13 -0
  20. package/build/cjs/components/DataDimension/DataTypesSelector.js +3 -3
  21. package/build/cjs/components/DataDimension/DetailSelector.js +2 -2
  22. package/build/cjs/components/DataDimension/GroupSelector.js +9 -9
  23. package/build/cjs/components/DataDimension/ItemSelector.js +19 -19
  24. package/build/cjs/components/DataDimension/MetricSelector.js +3 -3
  25. package/build/cjs/components/DataDimension/styles/DataTypesSelector.style.js +1 -1
  26. package/build/cjs/components/DataDimension/styles/DetailSelector.style.js +1 -1
  27. package/build/cjs/components/DataDimension/styles/GroupSelector.style.js +1 -1
  28. package/build/cjs/components/DataDimension/styles/MetricSelector.style.js +1 -1
  29. package/build/cjs/components/DimensionMenu.js +10 -10
  30. package/build/cjs/components/DimensionsPanel/DimensionsPanel.js +2 -2
  31. package/build/cjs/components/DimensionsPanel/List/DimensionItem.js +5 -5
  32. package/build/cjs/components/DimensionsPanel/List/DimensionLabel.js +2 -2
  33. package/build/cjs/components/DimensionsPanel/List/DimensionList.js +10 -10
  34. package/build/cjs/components/DimensionsPanel/List/styles/DimensionList.style.js +1 -1
  35. package/build/cjs/components/DimensionsPanel/styles/DimensionsPanel.style.js +1 -1
  36. package/build/cjs/components/DynamicDimension/DynamicDimension.js +4 -4
  37. package/build/cjs/components/DynamicDimension/ItemSelector.js +8 -8
  38. package/build/cjs/components/DynamicDimension/styles/DynamicDimension.style.js +1 -1
  39. package/build/cjs/components/FileMenu/DeleteDialog.js +4 -4
  40. package/build/cjs/components/FileMenu/FileMenu.js +7 -7
  41. package/build/cjs/components/FileMenu/FileMenu.styles.js +1 -1
  42. package/build/cjs/components/FileMenu/GetLinkDialog.js +3 -3
  43. package/build/cjs/components/FileMenu/RenameDialog.js +4 -4
  44. package/build/cjs/components/FileMenu/SaveAsDialog.js +4 -4
  45. package/build/cjs/components/FileMenu/__tests__/DeleteDialog.spec.js +1 -1
  46. package/build/cjs/components/FileMenu/__tests__/RenameDialog.spec.js +1 -1
  47. package/build/cjs/components/FileMenu/__tests__/SaveAsDialog.spec.js +1 -1
  48. package/build/cjs/components/FileMenu/utils.js +3 -3
  49. package/build/cjs/components/Filter/Filter.js +1 -1
  50. package/build/cjs/components/Filter/styles/Filter.style.js +1 -1
  51. package/build/cjs/components/LegendKey/LegendKey.js +9 -9
  52. package/build/cjs/components/LegendKey/styles/LegendKey.style.js +1 -1
  53. package/build/cjs/components/OpenFileDialog/CustomSelectOption.js +2 -2
  54. package/build/cjs/components/OpenFileDialog/OpenFileDialog.js +21 -21
  55. package/build/cjs/components/OpenFileDialog/OpenFileDialog.styles.js +1 -1
  56. package/build/cjs/components/OpenFileDialog/styles/CustomSelectOption.style.js +1 -1
  57. package/build/cjs/components/Options/VisualizationOptions.js +2 -2
  58. package/build/cjs/components/Options/styles/VisualizationOptions.style.js +10 -10
  59. package/build/cjs/components/OrgUnitDimension/OrgUnitDimension.js +90 -20
  60. package/build/cjs/components/OrgUnitDimension/styles/OrgUnitDimension.style.js +2 -2
  61. package/build/cjs/components/PeriodDimension/FixedPeriodFilter.js +5 -5
  62. package/build/cjs/components/PeriodDimension/FixedPeriodSelect.js +6 -6
  63. package/build/cjs/components/PeriodDimension/PeriodTransfer.js +11 -11
  64. package/build/cjs/components/PeriodDimension/RelativePeriodFilter.js +2 -2
  65. package/build/cjs/components/PeriodDimension/styles/FixedPeriodSelect.style.js +1 -1
  66. package/build/cjs/components/PeriodDimension/styles/PeriodFilter.style.js +1 -1
  67. package/build/cjs/components/PeriodDimension/utils/fixedPeriods.js +49 -49
  68. package/build/cjs/components/PivotTable/PivotTable.js +2 -2
  69. package/build/cjs/components/PivotTable/PivotTableCell.js +3 -3
  70. package/build/cjs/components/PivotTable/PivotTableColumnHeaderCell.js +2 -2
  71. package/build/cjs/components/PivotTable/PivotTableContainer.js +2 -2
  72. package/build/cjs/components/PivotTable/PivotTableEngineContext.js +2 -2
  73. package/build/cjs/components/PivotTable/PivotTableSortIcon.js +2 -2
  74. package/build/cjs/components/PivotTable/PivotTableTitleRow.js +4 -4
  75. package/build/cjs/components/PivotTable/PivotTableValueCell.js +2 -2
  76. package/build/cjs/components/PivotTable/styles/PivotTable.style.js +3 -3
  77. package/build/cjs/components/TransferOption.js +7 -7
  78. package/build/cjs/components/styles/DimensionSelector.style.js +1 -1
  79. package/build/cjs/components/styles/TransferOption.style.js +1 -1
  80. package/build/cjs/index.js +28 -2
  81. package/build/cjs/locales/en/translations.json +26 -0
  82. package/build/cjs/modules/axis.js +1 -1
  83. package/build/cjs/modules/layoutUiRules/rules.js +1 -1
  84. package/build/cjs/modules/list.js +25 -0
  85. package/build/cjs/modules/ouIdHelper/index.js +2 -2
  86. package/build/cjs/modules/pivotTable/PivotTableEngine.js +3 -3
  87. package/build/cjs/modules/pivotTable/measureText.js +1 -1
  88. package/build/cjs/modules/visTypes.js +1 -1
  89. package/build/cjs/visualizations/config/adapters/dhis_highcharts/addTrendLines.js +1 -1
  90. package/build/cjs/visualizations/config/adapters/dhis_highcharts/axis.js +2 -2
  91. package/build/cjs/visualizations/config/adapters/dhis_highcharts/getAxisTitle.js +1 -1
  92. package/build/cjs/visualizations/config/adapters/dhis_highcharts/index.js +2 -2
  93. package/build/cjs/visualizations/config/adapters/dhis_highcharts/legend.js +8 -19
  94. package/build/cjs/visualizations/config/adapters/dhis_highcharts/legendSet.js +1 -1
  95. package/build/cjs/visualizations/config/adapters/dhis_highcharts/plotOptions.js +1 -1
  96. package/build/cjs/visualizations/config/adapters/dhis_highcharts/subtitle/index.js +1 -1
  97. package/build/cjs/visualizations/config/adapters/dhis_highcharts/title/index.js +1 -1
  98. package/build/cjs/visualizations/config/adapters/dhis_highcharts/title/scatter.js +1 -1
  99. package/build/cjs/visualizations/config/adapters/dhis_highcharts/xAxis/index.js +1 -1
  100. package/build/cjs/visualizations/config/adapters/dhis_highcharts/yAxis/gauge.js +3 -3
  101. package/build/cjs/visualizations/config/adapters/dhis_highcharts/yAxis/index.js +2 -2
  102. package/build/cjs/visualizations/config/generators/dhis/singleValue.js +5 -5
  103. package/build/cjs/visualizations/config/index.js +3 -3
  104. package/build/cjs/visualizations/store/adapters/dhis_dhis/index.js +1 -1
  105. package/build/cjs/visualizations/store/adapters/dhis_highcharts/index.js +1 -1
  106. package/build/cjs/visualizations/store/adapters/dhis_highcharts/twoCategory.js +1 -1
  107. package/build/cjs/visualizations/store/index.js +2 -2
  108. package/build/cjs/visualizations/util/__tests__/getFilterText.spec.js +1 -1
  109. package/build/cjs/visualizations/util/axisId.js +1 -1
  110. package/build/cjs/visualizations/util/getFilterText.js +4 -12
  111. package/build/es/__demo__/OpenFileDialog.stories.js +1 -1
  112. package/build/es/__demo__/OrgUnitDimension.stories.js +15 -6
  113. package/build/es/api/analytics/AnalyticsBase.js +1 -1
  114. package/build/es/api/analytics/AnalyticsRequest.js +1 -1
  115. package/build/es/api/analytics/AnalyticsRequestBase.js +3 -3
  116. package/build/es/api/analytics/AnalyticsRequestPropertiesMixin.js +7 -7
  117. package/build/es/api/analytics/AnalyticsResponse.js +2 -2
  118. package/build/es/api/analytics/__tests__/AnalyticsAggregate.spec.js +1 -11
  119. package/build/es/api/analytics/__tests__/AnalyticsRequest.spec.js +9 -9
  120. package/build/es/api/analytics/__tests__/AnalyticsRequestBase.spec.js +4 -4
  121. package/build/es/api/analytics/utils.js +1 -1
  122. package/build/es/api/dimensions.js +39 -39
  123. package/build/es/api/organisationUnits.js +5 -5
  124. package/build/es/components/AboutAOUnit/AboutAOUnit.js +203 -0
  125. package/build/es/components/AboutAOUnit/styles/AboutAOUnit.style.js +4 -0
  126. package/build/es/components/DataDimension/DataTypesSelector.js +3 -3
  127. package/build/es/components/DataDimension/DetailSelector.js +2 -2
  128. package/build/es/components/DataDimension/GroupSelector.js +7 -7
  129. package/build/es/components/DataDimension/ItemSelector.js +17 -17
  130. package/build/es/components/DataDimension/MetricSelector.js +3 -3
  131. package/build/es/components/DataDimension/styles/DataTypesSelector.style.js +1 -1
  132. package/build/es/components/DataDimension/styles/DetailSelector.style.js +1 -1
  133. package/build/es/components/DataDimension/styles/GroupSelector.style.js +1 -1
  134. package/build/es/components/DataDimension/styles/MetricSelector.style.js +1 -1
  135. package/build/es/components/DimensionMenu.js +10 -10
  136. package/build/es/components/DimensionsPanel/List/DimensionItem.js +3 -3
  137. package/build/es/components/DimensionsPanel/List/DimensionList.js +8 -8
  138. package/build/es/components/DimensionsPanel/List/styles/DimensionList.style.js +1 -1
  139. package/build/es/components/DimensionsPanel/styles/DimensionsPanel.style.js +1 -1
  140. package/build/es/components/DynamicDimension/DynamicDimension.js +4 -4
  141. package/build/es/components/DynamicDimension/ItemSelector.js +6 -6
  142. package/build/es/components/DynamicDimension/styles/DynamicDimension.style.js +1 -1
  143. package/build/es/components/FileMenu/DeleteDialog.js +1 -1
  144. package/build/es/components/FileMenu/FileMenu.js +4 -4
  145. package/build/es/components/FileMenu/FileMenu.styles.js +1 -1
  146. package/build/es/components/FileMenu/GetLinkDialog.js +2 -2
  147. package/build/es/components/FileMenu/RenameDialog.js +1 -1
  148. package/build/es/components/FileMenu/SaveAsDialog.js +1 -1
  149. package/build/es/components/FileMenu/__tests__/DeleteDialog.spec.js +1 -1
  150. package/build/es/components/FileMenu/__tests__/RenameDialog.spec.js +1 -1
  151. package/build/es/components/FileMenu/__tests__/SaveAsDialog.spec.js +1 -1
  152. package/build/es/components/FileMenu/utils.js +3 -3
  153. package/build/es/components/Filter/Filter.js +1 -1
  154. package/build/es/components/Filter/styles/Filter.style.js +1 -1
  155. package/build/es/components/LegendKey/LegendKey.js +9 -9
  156. package/build/es/components/LegendKey/styles/LegendKey.style.js +1 -1
  157. package/build/es/components/OpenFileDialog/CustomSelectOption.js +2 -2
  158. package/build/es/components/OpenFileDialog/OpenFileDialog.js +19 -19
  159. package/build/es/components/OpenFileDialog/OpenFileDialog.styles.js +1 -1
  160. package/build/es/components/OpenFileDialog/styles/CustomSelectOption.style.js +1 -1
  161. package/build/es/components/Options/styles/VisualizationOptions.style.js +10 -10
  162. package/build/es/components/OrgUnitDimension/OrgUnitDimension.js +88 -19
  163. package/build/es/components/OrgUnitDimension/styles/OrgUnitDimension.style.js +2 -2
  164. package/build/es/components/PeriodDimension/FixedPeriodFilter.js +5 -5
  165. package/build/es/components/PeriodDimension/FixedPeriodSelect.js +8 -8
  166. package/build/es/components/PeriodDimension/PeriodTransfer.js +9 -9
  167. package/build/es/components/PeriodDimension/RelativePeriodFilter.js +2 -2
  168. package/build/es/components/PeriodDimension/styles/FixedPeriodSelect.style.js +1 -1
  169. package/build/es/components/PeriodDimension/styles/PeriodFilter.style.js +1 -1
  170. package/build/es/components/PeriodDimension/utils/fixedPeriods.js +49 -49
  171. package/build/es/components/PivotTable/PivotTableCell.js +3 -3
  172. package/build/es/components/PivotTable/PivotTableColumnHeaderCell.js +2 -2
  173. package/build/es/components/PivotTable/PivotTableContainer.js +2 -2
  174. package/build/es/components/PivotTable/PivotTableSortIcon.js +2 -2
  175. package/build/es/components/PivotTable/PivotTableTitleRow.js +2 -2
  176. package/build/es/components/PivotTable/styles/PivotTable.style.js +3 -3
  177. package/build/es/components/TransferOption.js +17 -17
  178. package/build/es/components/styles/DimensionSelector.style.js +1 -1
  179. package/build/es/components/styles/TransferOption.style.js +1 -1
  180. package/build/es/index.js +3 -2
  181. package/build/es/locales/en/translations.json +26 -0
  182. package/build/es/modules/axis.js +1 -1
  183. package/build/es/modules/layoutUiRules/rules.js +1 -1
  184. package/build/es/modules/list.js +13 -0
  185. package/build/es/modules/ouIdHelper/index.js +2 -2
  186. package/build/es/modules/pivotTable/PivotTableEngine.js +3 -3
  187. package/build/es/modules/pivotTable/measureText.js +1 -1
  188. package/build/es/modules/visTypes.js +1 -1
  189. package/build/es/visualizations/config/adapters/dhis_highcharts/addTrendLines.js +1 -1
  190. package/build/es/visualizations/config/adapters/dhis_highcharts/axis.js +2 -2
  191. package/build/es/visualizations/config/adapters/dhis_highcharts/getAxisTitle.js +1 -1
  192. package/build/es/visualizations/config/adapters/dhis_highcharts/legend.js +8 -19
  193. package/build/es/visualizations/config/adapters/dhis_highcharts/legendSet.js +1 -1
  194. package/build/es/visualizations/config/adapters/dhis_highcharts/plotOptions.js +1 -1
  195. package/build/es/visualizations/config/adapters/dhis_highcharts/subtitle/index.js +1 -1
  196. package/build/es/visualizations/config/adapters/dhis_highcharts/title/index.js +1 -1
  197. package/build/es/visualizations/config/adapters/dhis_highcharts/title/scatter.js +1 -1
  198. package/build/es/visualizations/config/adapters/dhis_highcharts/xAxis/index.js +1 -1
  199. package/build/es/visualizations/config/adapters/dhis_highcharts/yAxis/gauge.js +3 -3
  200. package/build/es/visualizations/config/adapters/dhis_highcharts/yAxis/index.js +2 -2
  201. package/build/es/visualizations/config/generators/dhis/singleValue.js +5 -5
  202. package/build/es/visualizations/config/index.js +3 -3
  203. package/build/es/visualizations/store/adapters/dhis_dhis/index.js +1 -1
  204. package/build/es/visualizations/store/adapters/dhis_highcharts/index.js +1 -1
  205. package/build/es/visualizations/store/adapters/dhis_highcharts/twoCategory.js +1 -1
  206. package/build/es/visualizations/store/index.js +2 -2
  207. package/build/es/visualizations/util/__tests__/getFilterText.spec.js +1 -1
  208. package/build/es/visualizations/util/axisId.js +1 -1
  209. package/build/es/visualizations/util/getFilterText.js +5 -13
  210. package/package.json +4 -4
  211. package/build/cjs/components/OrgUnitDimension/OrgUnitDimensionOld.js +0 -244
  212. package/build/es/components/OrgUnitDimension/OrgUnitDimensionOld.js +0 -220
@@ -33,9 +33,9 @@ var _index2 = require("./utils/index.js");
33
33
 
34
34
  var _relativePeriods = require("./utils/relativePeriods");
35
35
 
36
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
36
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
37
37
 
38
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
38
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
39
39
 
40
40
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
41
41
 
@@ -79,13 +79,13 @@ const PeriodTransfer = ({
79
79
  const renderLeftHeader = () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.TabBar, null, /*#__PURE__*/_react.default.createElement(_ui.Tab, {
80
80
  selected: isRelative,
81
81
  onClick: () => onIsRelativeClick(true),
82
- dataTest: `${dataTest}-relative-periods-button`
82
+ dataTest: "".concat(dataTest, "-relative-periods-button")
83
83
  }, _index.default.t('Relative periods')), /*#__PURE__*/_react.default.createElement(_ui.Tab, {
84
84
  selected: !isRelative,
85
85
  onClick: () => onIsRelativeClick(false),
86
- dataTest: `${dataTest}-fixed-periods-button`
86
+ dataTest: "".concat(dataTest, "-fixed-periods-button")
87
87
  }, _index.default.t('Fixed periods'))), /*#__PURE__*/_react.default.createElement("div", {
88
- className: `jsx-${_DimensionSelector.default.__hash}` + " " + "filterContainer"
88
+ className: "jsx-".concat(_DimensionSelector.default.__hash) + " " + "filterContainer"
89
89
  }, isRelative ? /*#__PURE__*/_react.default.createElement(_RelativePeriodFilter.default, {
90
90
  currentFilter: relativeFilter.periodType,
91
91
  onSelectFilter: filter => {
@@ -94,7 +94,7 @@ const PeriodTransfer = ({
94
94
  });
95
95
  setAllPeriods((0, _relativePeriods.getRelativePeriodsOptionsById)(filter).getPeriods());
96
96
  },
97
- dataTest: `${dataTest}-relative-period-filter`,
97
+ dataTest: "".concat(dataTest, "-relative-period-filter"),
98
98
  excludedPeriodTypes: excludedPeriodTypes
99
99
  }) : /*#__PURE__*/_react.default.createElement(_FixedPeriodFilter.default, {
100
100
  currentPeriodType: fixedFilter.periodType,
@@ -111,14 +111,14 @@ const PeriodTransfer = ({
111
111
  year
112
112
  });
113
113
  },
114
- dataTest: `${dataTest}-fixed-period-filter`,
114
+ dataTest: "".concat(dataTest, "-fixed-period-filter"),
115
115
  excludedPeriodTypes: excludedPeriodTypes
116
116
  })), /*#__PURE__*/_react.default.createElement(_style.default, {
117
117
  id: _DimensionSelector.default.__hash
118
118
  }, _DimensionSelector.default));
119
119
 
120
120
  const renderRightHeader = () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", {
121
- className: `jsx-${_DimensionSelector.default.__hash}` + " " + "rightHeader"
121
+ className: "jsx-".concat(_DimensionSelector.default.__hash) + " " + "rightHeader"
122
122
  }, _index.default.t('Selected Periods')), /*#__PURE__*/_react.default.createElement(_style.default, {
123
123
  id: _DimensionSelector.default.__hash
124
124
  }, _DimensionSelector.default));
@@ -129,7 +129,7 @@ const PeriodTransfer = ({
129
129
  };
130
130
 
131
131
  const renderEmptySelection = () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", {
132
- className: `jsx-${_DimensionSelector.default.__hash}` + " " + "emptyList"
132
+ className: "jsx-".concat(_DimensionSelector.default.__hash) + " " + "emptyList"
133
133
  }, _index.default.t('No periods selected')), /*#__PURE__*/_react.default.createElement(_style.default, {
134
134
  id: _DimensionSelector.default.__hash
135
135
  }, _DimensionSelector.default));
@@ -163,9 +163,9 @@ const PeriodTransfer = ({
163
163
  })),
164
164
  renderOption: props => /*#__PURE__*/_react.default.createElement(_TransferOption.TransferOption, _extends({}, props, {
165
165
  icon: _PeriodIcon.default,
166
- dataTest: `${dataTest}-transfer-option`
166
+ dataTest: "".concat(dataTest, "-transfer-option")
167
167
  })),
168
- dataTest: `${dataTest}-transfer`
168
+ dataTest: "".concat(dataTest, "-transfer")
169
169
  });
170
170
  };
171
171
 
@@ -29,7 +29,7 @@ const RelativePeriodFilter = ({
29
29
  dataTest,
30
30
  excludedPeriodTypes
31
31
  }) => /*#__PURE__*/_react.default.createElement("div", {
32
- className: `jsx-${_PeriodFilter.default.__hash}` + " " + "leftSection"
32
+ className: "jsx-".concat(_PeriodFilter.default.__hash) + " " + "leftSection"
33
33
  }, /*#__PURE__*/_react.default.createElement(_ui.SingleSelectField, {
34
34
  label: _index.default.t('Period type'),
35
35
  onChange: ({
@@ -43,7 +43,7 @@ const RelativePeriodFilter = ({
43
43
  key: option.id,
44
44
  value: option.id,
45
45
  label: option.name,
46
- dataTest: `${dataTest}-option-${option.id}`
46
+ dataTest: "".concat(dataTest, "-option-").concat(option.id)
47
47
  }))), /*#__PURE__*/_react.default.createElement(_style.default, {
48
48
  id: _PeriodFilter.default.__hash
49
49
  }, _PeriodFilter.default));
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  var _ui = require("@dhis2/ui");
9
9
 
10
- const _defaultExport = [`.row.jsx-86888579{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:${_ui.spacers.dp8};}`];
10
+ const _defaultExport = [".row.jsx-86888579{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:".concat(_ui.spacers.dp8, ";}")];
11
11
  _defaultExport.__hash = "86888579";
12
12
  var _default = _defaultExport;
13
13
  exports.default = _default;
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  var _ui = require("@dhis2/ui");
9
9
 
10
- const _defaultExport = [".leftSection.jsx-2872988609{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".leftSection.jsx-2872988609>.filterElement,.rightSection.jsx-2872988609>.filterElement{margin:0;}", `.rightSection.jsx-2872988609{width:120px;margin-left:${_ui.spacers.dp8};}`];
10
+ const _defaultExport = [".leftSection.jsx-2872988609{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".leftSection.jsx-2872988609>.filterElement,.rightSection.jsx-2872988609>.filterElement{margin:0;}", ".rightSection.jsx-2872988609{width:120px;margin-left:".concat(_ui.spacers.dp8, ";}")];
11
11
  _defaultExport.__hash = "2872988609";
12
12
  var _default = _defaultExport;
13
13
  exports.default = _default;
@@ -61,7 +61,7 @@ const getDailyPeriodType = (formatYyyyMmDd, fnFilter) => {
61
61
  const isFilter = config.filterFuturePeriods;
62
62
  const isReverse = config.reversePeriods;
63
63
  const year = new Date(Date.now()).getFullYear() + offset;
64
- const date = new Date(`01 Jan ${year}`);
64
+ const date = new Date("01 Jan ".concat(year));
65
65
 
66
66
  while (date.getFullYear() === year) {
67
67
  const period = {};
@@ -110,14 +110,14 @@ const getWeeklyPeriodType = (formatYyyyMmDd, weekObj, fnFilter) => {
110
110
  while (date.getFullYear() <= year) {
111
111
  const period = {};
112
112
  period.startDate = formatYyyyMmDd(date);
113
- period.iso = `${year}${weekObj.shortName}W${week}`;
113
+ period.iso = "".concat(year).concat(weekObj.shortName, "W").concat(week);
114
114
  period.id = period.iso;
115
115
  date.setDate(date.getDate() + 6);
116
116
  period.endDate = formatYyyyMmDd(date);
117
117
  const weekNumber = week;
118
- period.name = `${_index.default.t('Week {{weekNumber}}', {
118
+ period.name = "".concat(_index.default.t('Week {{weekNumber}}', {
119
119
  weekNumber
120
- })} - ${period.startDate} - ${period.endDate}`; // if end date is Jan 4th or later, week belongs to next year
120
+ }), " - ").concat(period.startDate, " - ").concat(period.endDate); // if end date is Jan 4th or later, week belongs to next year
121
121
 
122
122
  if (date.getFullYear() > year && date.getDate() >= 4) {
123
123
  break;
@@ -141,7 +141,7 @@ const getBiWeeklyPeriodType = (formatYyyyMmDd, fnFilter) => {
141
141
  const isFilter = config.filterFuturePeriods;
142
142
  const isReverse = config.reversePeriods;
143
143
  const year = new Date(Date.now()).getFullYear() + offset;
144
- const date = new Date(`01 Jan ${year}`);
144
+ const date = new Date("01 Jan ".concat(year));
145
145
  const day = date.getDay();
146
146
  let biWeek = 1;
147
147
 
@@ -153,15 +153,15 @@ const getBiWeeklyPeriodType = (formatYyyyMmDd, fnFilter) => {
153
153
 
154
154
  while (date.getFullYear() <= year) {
155
155
  const period = {};
156
- period.iso = `${year}BiW${biWeek}`;
156
+ period.iso = "".concat(year, "BiW").concat(biWeek);
157
157
  period.id = period.iso;
158
158
  period.startDate = formatYyyyMmDd(date);
159
159
  date.setDate(date.getDate() + 13);
160
160
  period.endDate = formatYyyyMmDd(date);
161
161
  const biWeekNumber = biWeek;
162
- period.name = `${_index.default.t('Bi-Week {{biWeekNumber}}', {
162
+ period.name = "".concat(_index.default.t('Bi-Week {{biWeekNumber}}', {
163
163
  biWeekNumber
164
- })} - ${period.startDate} - ${period.endDate}`; // if end date is Jan 4th or later, biweek belongs to next year
164
+ }), " - ").concat(period.startDate, " - ").concat(period.endDate); // if end date is Jan 4th or later, biweek belongs to next year
165
165
 
166
166
  if (date.getFullYear() > year && date.getDate() >= 4) {
167
167
  break;
@@ -182,7 +182,7 @@ const getMonthlyPeriodType = (formatYyyyMmDd, fnFilter) => {
182
182
  const formatIso = date => {
183
183
  const y = date.getFullYear();
184
184
  let m = String(date.getMonth() + 1);
185
- m = m.length < 2 ? `0${m}` : m;
185
+ m = m.length < 2 ? "0".concat(m) : m;
186
186
  return y + m;
187
187
  };
188
188
 
@@ -192,7 +192,7 @@ const getMonthlyPeriodType = (formatYyyyMmDd, fnFilter) => {
192
192
  const isFilter = config.filterFuturePeriods;
193
193
  const isReverse = config.reversePeriods;
194
194
  const year = new Date(Date.now()).getFullYear() + offset;
195
- const date = new Date(`31 Dec ${year}`);
195
+ const date = new Date("31 Dec ".concat(year));
196
196
 
197
197
  while (date.getFullYear() === year) {
198
198
  const period = {};
@@ -200,7 +200,7 @@ const getMonthlyPeriodType = (formatYyyyMmDd, fnFilter) => {
200
200
  date.setDate(1);
201
201
  period.startDate = formatYyyyMmDd(date);
202
202
  const monthName = getMonthName(date.getMonth());
203
- period.name = `${monthName} ${year}`;
203
+ period.name = "".concat(monthName, " ").concat(year);
204
204
  period.iso = formatIso(date);
205
205
  period.id = period.iso;
206
206
  periods.push(period);
@@ -221,7 +221,7 @@ const getBiMonthlyPeriodType = (formatYyyyMmDd, fnFilter) => {
221
221
  const isFilter = config.filterFuturePeriods;
222
222
  const isReverse = config.reversePeriods;
223
223
  const year = new Date(Date.now()).getFullYear() + offset;
224
- const date = new Date(`31 Dec ${year}`);
224
+ const date = new Date("31 Dec ".concat(year));
225
225
  let index = 6;
226
226
 
227
227
  while (date.getFullYear() === year) {
@@ -233,8 +233,8 @@ const getBiMonthlyPeriodType = (formatYyyyMmDd, fnFilter) => {
233
233
  const monthStart = getMonthName(date.getMonth());
234
234
  const monthEnd = getMonthName(date.getMonth() + 1);
235
235
  const fullYear = date.getFullYear();
236
- period.name = `${monthStart} - ${monthEnd} ${fullYear}`;
237
- period.iso = `${year}0${index}B`;
236
+ period.name = "".concat(monthStart, " - ").concat(monthEnd, " ").concat(fullYear);
237
+ period.iso = "".concat(year, "0").concat(index, "B");
238
238
  period.id = period.iso;
239
239
  periods.push(period);
240
240
  date.setDate(0);
@@ -255,7 +255,7 @@ const getQuarterlyPeriodType = (formatYyyyMmDd, fnFilter) => {
255
255
  const isFilter = config.filterFuturePeriods;
256
256
  const isReverse = config.reversePeriods;
257
257
  const year = new Date(Date.now()).getFullYear() + offset;
258
- const date = new Date(`31 Dec ${year}`);
258
+ const date = new Date("31 Dec ".concat(year));
259
259
  let quarter = 4;
260
260
 
261
261
  while (date.getFullYear() === year) {
@@ -268,8 +268,8 @@ const getQuarterlyPeriodType = (formatYyyyMmDd, fnFilter) => {
268
268
  const monthStart = getMonthName(date.getMonth());
269
269
  const monthEnd = getMonthName(date.getMonth() + 2);
270
270
  const fullYear = date.getFullYear();
271
- period.name = `${monthStart} - ${monthEnd} ${fullYear}`;
272
- period.iso = `${year}Q${quarter}`;
271
+ period.name = "".concat(monthStart, " - ").concat(monthEnd, " ").concat(fullYear);
272
+ period.iso = "".concat(year, "Q").concat(quarter);
273
273
  period.id = period.iso;
274
274
  periods.push(period);
275
275
  date.setDate(0);
@@ -291,17 +291,17 @@ const getSixMonthlyPeriodType = fnFilter => {
291
291
  const isReverse = config.reversePeriods;
292
292
  const year = new Date(Date.now()).getFullYear() + offset;
293
293
  let period = {};
294
- period.startDate = `${year}-01-01`;
295
- period.endDate = `${year}-06-30`;
296
- period.name = `${getMonthName(0)} - ${getMonthName(5)} ${year}`;
297
- period.iso = `${year}S1`;
294
+ period.startDate = "".concat(year, "-01-01");
295
+ period.endDate = "".concat(year, "-06-30");
296
+ period.name = "".concat(getMonthName(0), " - ").concat(getMonthName(5), " ").concat(year);
297
+ period.iso = "".concat(year, "S1");
298
298
  period.id = period.iso;
299
299
  periods.push(period);
300
300
  period = {};
301
- period.startDate = `${year}-07-01`;
302
- period.endDate = `${year}-12-31`;
303
- period.name = `${getMonthName(6)} - ${getMonthName(11)} ${year}`;
304
- period.iso = `${year}S2`;
301
+ period.startDate = "".concat(year, "-07-01");
302
+ period.endDate = "".concat(year, "-12-31");
303
+ period.name = "".concat(getMonthName(6), " - ").concat(getMonthName(11), " ").concat(year);
304
+ period.iso = "".concat(year, "S2");
305
305
  period.id = period.iso;
306
306
  periods.push(period);
307
307
  periods = isFilter ? fnFilter(periods) : periods;
@@ -318,17 +318,17 @@ const getSixMonthlyAprilPeriodType = fnFilter => {
318
318
  const isReverse = config.reversePeriods;
319
319
  const year = new Date(Date.now()).getFullYear() + offset;
320
320
  let period = {};
321
- period.startDate = `${year}-04-01`;
322
- period.endDate = `${year}-09-30`;
323
- period.name = `${getMonthName(3)} - ${getMonthName(8)} ${year}`;
324
- period.iso = `${year}AprilS1`;
321
+ period.startDate = "".concat(year, "-04-01");
322
+ period.endDate = "".concat(year, "-09-30");
323
+ period.name = "".concat(getMonthName(3), " - ").concat(getMonthName(8), " ").concat(year);
324
+ period.iso = "".concat(year, "AprilS1");
325
325
  period.id = period.iso;
326
326
  periods.push(period);
327
327
  period = {};
328
- period.startDate = `${year}-10-01`;
329
- period.endDate = `${year + 1}-03-31`;
330
- period.name = `${getMonthName(9)} ${year} - ${getMonthName(2)} ${year + 1}`;
331
- period.iso = `${year}AprilS2`;
328
+ period.startDate = "".concat(year, "-10-01");
329
+ period.endDate = "".concat(year + 1, "-03-31");
330
+ period.name = "".concat(getMonthName(9), " ").concat(year, " - ").concat(getMonthName(2), " ").concat(year + 1);
331
+ period.iso = "".concat(year, "AprilS2");
332
332
  period.id = period.iso;
333
333
  periods.push(period);
334
334
  periods = isFilter ? fnFilter(periods) : periods;
@@ -344,7 +344,7 @@ const getYearlyPeriodType = (formatYyyyMmDd, fnFilter) => {
344
344
  const isFilter = config.filterFuturePeriods;
345
345
  const isReverse = config.reversePeriods;
346
346
  const year = new Date(Date.now()).getFullYear() + offset;
347
- const date = new Date(`31 Dec ${year}`);
347
+ const date = new Date("31 Dec ".concat(year));
348
348
 
349
349
  while (year - date.getFullYear() < 10) {
350
350
  const period = {};
@@ -373,7 +373,7 @@ const getFinancialOctoberPeriodType = (formatYyyyMmDd, fnFilter) => {
373
373
  const isFilter = config.filterFuturePeriods;
374
374
  const isReverse = config.reversePeriods;
375
375
  const year = new Date(Date.now()).getFullYear() + offset;
376
- const date = new Date(`30 Sep ${year + 1}`);
376
+ const date = new Date("30 Sep ".concat(year + 1));
377
377
 
378
378
  for (let i = 0; i < 10; i++) {
379
379
  const period = {};
@@ -383,8 +383,8 @@ const getFinancialOctoberPeriodType = (formatYyyyMmDd, fnFilter) => {
383
383
  period.startDate = formatYyyyMmDd(date);
384
384
  const yearStart = date.getFullYear();
385
385
  const yearEnd = date.getFullYear() + 1;
386
- period.name = `${getMonthName(9)} ${yearStart} - ${getMonthName(8)} ${yearEnd}`;
387
- period.id = `${date.getFullYear()}Oct`;
386
+ period.name = "".concat(getMonthName(9), " ").concat(yearStart, " - ").concat(getMonthName(8), " ").concat(yearEnd);
387
+ period.id = "".concat(date.getFullYear(), "Oct");
388
388
  periods.push(period);
389
389
  date.setDate(date.getDate() - 1);
390
390
  }
@@ -403,7 +403,7 @@ const getFinancialNovemberPeriodType = (formatYyyyMmDd, fnFilter) => {
403
403
  const isFilter = config.filterFuturePeriods;
404
404
  const isReverse = config.reversePeriods;
405
405
  const year = new Date(Date.now()).getFullYear() + offset;
406
- const date = new Date(`31 Oct ${year + 1}`);
406
+ const date = new Date("31 Oct ".concat(year + 1));
407
407
 
408
408
  for (let i = 0; i < 10; i++) {
409
409
  const period = {};
@@ -413,8 +413,8 @@ const getFinancialNovemberPeriodType = (formatYyyyMmDd, fnFilter) => {
413
413
  period.startDate = formatYyyyMmDd(date);
414
414
  const yearStart = date.getFullYear();
415
415
  const yearEnd = date.getFullYear() + 1;
416
- period.name = `${getMonthName(10)} ${yearStart} - ${getMonthName(9)} ${yearEnd}`;
417
- period.id = `${date.getFullYear()}Nov`;
416
+ period.name = "".concat(getMonthName(10), " ").concat(yearStart, " - ").concat(getMonthName(9), " ").concat(yearEnd);
417
+ period.id = "".concat(date.getFullYear(), "Nov");
418
418
  periods.push(period);
419
419
  date.setDate(date.getDate() - 1);
420
420
  }
@@ -433,7 +433,7 @@ const getFinancialJulyPeriodType = (formatYyyyMmDd, fnFilter) => {
433
433
  const isFilter = config.filterFuturePeriods;
434
434
  const isReverse = config.reversePeriods;
435
435
  const year = new Date(Date.now()).getFullYear() + offset;
436
- const date = new Date(`30 Jun ${year + 1}`);
436
+ const date = new Date("30 Jun ".concat(year + 1));
437
437
 
438
438
  for (let i = 0; i < 10; i++) {
439
439
  const period = {};
@@ -443,8 +443,8 @@ const getFinancialJulyPeriodType = (formatYyyyMmDd, fnFilter) => {
443
443
  period.startDate = formatYyyyMmDd(date);
444
444
  const yearStart = date.getFullYear();
445
445
  const yearEnd = date.getFullYear() + 1;
446
- period.name = `${getMonthName(6)} ${yearStart} - ${getMonthName(5)} ${yearEnd}`;
447
- period.id = `${date.getFullYear()}July`;
446
+ period.name = "".concat(getMonthName(6), " ").concat(yearStart, " - ").concat(getMonthName(5), " ").concat(yearEnd);
447
+ period.id = "".concat(date.getFullYear(), "July");
448
448
  periods.push(period);
449
449
  date.setDate(date.getDate() - 1);
450
450
  }
@@ -463,7 +463,7 @@ const getFinancialAprilPeriodType = (formatYyyyMmDd, fnFilter) => {
463
463
  const isFilter = config.filterFuturePeriods;
464
464
  const isReverse = config.reversePeriods;
465
465
  const year = new Date(Date.now()).getFullYear() + offset;
466
- const date = new Date(`31 Mar ${year + 1}`);
466
+ const date = new Date("31 Mar ".concat(year + 1));
467
467
 
468
468
  for (let i = 0; i < 10; i++) {
469
469
  const period = {};
@@ -473,8 +473,8 @@ const getFinancialAprilPeriodType = (formatYyyyMmDd, fnFilter) => {
473
473
  period.startDate = formatYyyyMmDd(date);
474
474
  const yearStart = date.getFullYear();
475
475
  const yearEnd = date.getFullYear() + 1;
476
- period.name = `${getMonthName(3)} ${yearStart} - ${getMonthName(2)} ${yearEnd}`;
477
- period.id = `${date.getFullYear()}April`;
476
+ period.name = "".concat(getMonthName(3), " ").concat(yearStart, " - ").concat(getMonthName(2), " ").concat(yearEnd);
477
+ period.id = "".concat(date.getFullYear(), "April");
478
478
  periods.push(period);
479
479
  date.setDate(date.getDate() - 1);
480
480
  }
@@ -490,9 +490,9 @@ const formatYyyyMmDd = date => {
490
490
  const y = date.getFullYear();
491
491
  let m = String(date.getMonth() + 1);
492
492
  let d = String(date.getDate());
493
- m = m.length < 2 ? `0${m}` : m;
494
- d = d.length < 2 ? `0${d}` : d;
495
- return `${y}-${m}-${d}`;
493
+ m = m.length < 2 ? "0".concat(m) : m;
494
+ d = d.length < 2 ? "0".concat(d) : d;
495
+ return "".concat(y, "-").concat(m, "-").concat(d);
496
496
  };
497
497
 
498
498
  const filterFuturePeriods = periods => {
@@ -25,9 +25,9 @@ var _PivotTableEngineContext = require("./PivotTableEngineContext");
25
25
 
26
26
  var _PivotTableHead = require("./PivotTableHead");
27
27
 
28
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
28
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
29
29
 
30
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
30
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
31
31
 
32
32
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
33
 
@@ -32,12 +32,12 @@ const PivotTableCell = /*#__PURE__*/_react.default.forwardRef(({
32
32
  const engine = (0, _PivotTableEngineContext.usePivotTableEngine)();
33
33
  style.width = style.minWidth = style.maxWidth = style.width;
34
34
  style.height = style.minHeight = style.maxHeight = style.height || engine.fontSize + engine.cellPadding * 2 + 2;
35
- const className = (0, _classnames.default)(classes, `fontsize-${engine.visualization.fontSize}`, `displaydensity-${engine.visualization.displayDensity}`);
35
+ const className = (0, _classnames.default)(classes, "fontsize-".concat(engine.visualization.fontSize), "displaydensity-".concat(engine.visualization.displayDensity));
36
36
  return isHeader ? /*#__PURE__*/_react.default.createElement("th", _extends({
37
37
  style: style,
38
38
  "data-test": dataTest
39
39
  }, props, {
40
- className: `jsx-${_PivotTable.cell.__hash}` + " " + (props && props.className != null && props.className || className || "")
40
+ className: "jsx-".concat(_PivotTable.cell.__hash) + " " + (props && props.className != null && props.className || className || "")
41
41
  }), /*#__PURE__*/_react.default.createElement(_style.default, {
42
42
  id: _PivotTable.cell.__hash
43
43
  }, _PivotTable.cell), children) : /*#__PURE__*/_react.default.createElement("td", _extends({
@@ -45,7 +45,7 @@ const PivotTableCell = /*#__PURE__*/_react.default.forwardRef(({
45
45
  style: style,
46
46
  "data-test": dataTest
47
47
  }, props, {
48
- className: `jsx-${_PivotTable.cell.__hash}` + " " + (props && props.className != null && props.className || className || "")
48
+ className: "jsx-".concat(_PivotTable.cell.__hash) + " " + (props && props.className != null && props.className || className || "")
49
49
  }), /*#__PURE__*/_react.default.createElement(_style.default, {
50
50
  id: _PivotTable.cell.__hash
51
51
  }, _PivotTable.cell), children);
@@ -69,10 +69,10 @@ const PivotTableColumnHeaderCell = ({
69
69
  }, /*#__PURE__*/_react.default.createElement(_style.default, {
70
70
  id: _PivotTable.cell.__hash
71
71
  }, _PivotTable.cell), /*#__PURE__*/_react.default.createElement("div", {
72
- className: `jsx-${_PivotTable.cell.__hash}` + " " + "column-header-inner"
72
+ className: "jsx-".concat(_PivotTable.cell.__hash) + " " + "column-header-inner"
73
73
  }, /*#__PURE__*/_react.default.createElement("span", {
74
74
  "data-test": "visualization-column-header",
75
- className: `jsx-${_PivotTable.cell.__hash}` + " " + "column-header-label"
75
+ className: "jsx-".concat(_PivotTable.cell.__hash) + " " + "column-header-label"
76
76
  }, header.label), isSortable ? /*#__PURE__*/_react.default.createElement(_PivotTableSortIcon.PivotTableSortIcon, {
77
77
  index: index,
78
78
  sortBy: sortBy
@@ -32,11 +32,11 @@ const PivotTableContainer = /*#__PURE__*/_react.default.forwardRef(({
32
32
  },
33
33
  ref: ref,
34
34
  "data-test": "visualization-container",
35
- className: `jsx-${_PivotTable.table.__hash}` + " " + "pivot-table-container"
35
+ className: "jsx-".concat(_PivotTable.table.__hash) + " " + "pivot-table-container"
36
36
  }, /*#__PURE__*/_react.default.createElement(_style.default, {
37
37
  id: _PivotTable.table.__hash
38
38
  }, _PivotTable.table), width === 0 || height === 0 ? null : /*#__PURE__*/_react.default.createElement("table", {
39
- className: `jsx-${_PivotTable.table.__hash}` + " " + ((0, _classnames.default)({
39
+ className: "jsx-".concat(_PivotTable.table.__hash) + " " + ((0, _classnames.default)({
40
40
  'fixed-headers': engine.options.fixColumnHeaders && engine.options.fixRowHeaders,
41
41
  'fixed-column-headers': engine.options.fixColumnHeaders && !engine.options.fixRowHeaders,
42
42
  'fixed-row-headers': engine.options.fixRowHeaders && !engine.options.fixColumnHeaders
@@ -9,9 +9,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
13
13
 
14
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
@@ -32,11 +32,11 @@ const PivotTableSortIcon = ({
32
32
  const engine = (0, _PivotTableEngineContext.usePivotTableEngine)();
33
33
  const SortIcon = (sortBy === null || sortBy === void 0 ? void 0 : sortBy.column) === index ? sortBy.order === _pivotTableConstants.SORT_ORDER_ASCENDING ? _SortIconAscending.SortIconAscending : _SortIconDescending.SortIconDescending : _SortIconIdle.SortIconIdle;
34
34
  return /*#__PURE__*/_react.default.createElement("span", {
35
- className: `jsx-${_PivotTable.sortIcon.__hash}` + " " + `fontsize-${engine.visualization.fontSize}`
35
+ className: "jsx-".concat(_PivotTable.sortIcon.__hash) + " " + "fontsize-".concat(engine.visualization.fontSize)
36
36
  }, /*#__PURE__*/_react.default.createElement(_style.default, {
37
37
  id: _PivotTable.sortIcon.__hash
38
38
  }, _PivotTable.sortIcon), /*#__PURE__*/_react.default.createElement(SortIcon, {
39
- className: `jsx-${_PivotTable.sortIcon.__hash}`
39
+ className: "jsx-".concat(_PivotTable.sortIcon.__hash)
40
40
  }));
41
41
  };
42
42
 
@@ -17,9 +17,9 @@ var _PivotTableEngineContext = require("./PivotTableEngineContext");
17
17
 
18
18
  var _PivotTable = require("./styles/PivotTable.style");
19
19
 
20
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
21
21
 
22
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
22
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
@@ -36,7 +36,7 @@ const PivotTableTitleRow = ({
36
36
  setPosition(Math.max(0, Math.min(scrollPosition.x, totalWidth - containerWidth)));
37
37
  }, [containerWidth, scrollPosition.x, totalWidth]);
38
38
  return /*#__PURE__*/_react.default.createElement("tr", {
39
- className: `jsx-${_PivotTable.cell.__hash}`
39
+ className: "jsx-".concat(_PivotTable.cell.__hash)
40
40
  }, /*#__PURE__*/_react.default.createElement(_style.default, {
41
41
  id: _PivotTable.cell.__hash
42
42
  }, _PivotTable.cell), /*#__PURE__*/_react.default.createElement(_PivotTableCell.PivotTableCell, {
@@ -50,7 +50,7 @@ const PivotTableTitleRow = ({
50
50
  textAlign: 'center'
51
51
  },
52
52
  "data-test": "visualization-title",
53
- className: `jsx-${_PivotTable.cell.__hash}`
53
+ className: "jsx-".concat(_PivotTable.cell.__hash)
54
54
  }, title)));
55
55
  };
56
56
 
@@ -19,9 +19,9 @@ var _PivotTableEmptyCell = require("./PivotTableEmptyCell");
19
19
 
20
20
  var _PivotTableEngineContext = require("./PivotTableEngineContext");
21
21
 
22
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
22
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
23
23
 
24
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
24
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
25
 
26
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
27
 
@@ -9,12 +9,12 @@ var _ui = require("@dhis2/ui");
9
9
 
10
10
  var _pivotTableConstants = require("../../../modules/pivotTable/pivotTableConstants");
11
11
 
12
- const table = [`div.pivot-table-container{font-family:'Roboto',Arial,sans-serif;overflow:auto;color:${_ui.colors.grey900};}`, `table{border-spacing:0;white-space:nowrap;box-sizing:border-box;text-align:center;border:1px solid ${_pivotTableConstants.BORDER_COLOR};border-width:1px 1px 0 0;}`, "table.fixed-headers{border-width:0 0 0 1px;}", "table.fixed-headers tr th,table.fixed-headers tr td{border-width:0 1px 1px 0;}", "table.fixed-column-headers{border-width:0 1px 0 0;}", "table.fixed-column-headers tr th,table.fixed-column-headers tr td{border-width:0 0 1px 1px;}", `table.fixed-headers thead tr:first-of-type th,table.fixed-column-headers thead tr:first-of-type th{border-top:1px solid ${_pivotTableConstants.BORDER_COLOR};}`, "table.fixed-row-headers{border-width:0 0 1px 1px;}", "table.fixed-row-headers tr th,table.fixed-row-headers tr td{border-width:1px 1px 0 0;}"];
12
+ const table = ["div.pivot-table-container{font-family:'Roboto',Arial,sans-serif;overflow:auto;color:".concat(_ui.colors.grey900, ";}"), "table{border-spacing:0;white-space:nowrap;box-sizing:border-box;text-align:center;border:1px solid ".concat(_pivotTableConstants.BORDER_COLOR, ";border-width:1px 1px 0 0;}"), "table.fixed-headers{border-width:0 0 0 1px;}", "table.fixed-headers tr th,table.fixed-headers tr td{border-width:0 1px 1px 0;}", "table.fixed-column-headers{border-width:0 1px 0 0;}", "table.fixed-column-headers tr th,table.fixed-column-headers tr td{border-width:0 0 1px 1px;}", "table.fixed-headers thead tr:first-of-type th,table.fixed-column-headers thead tr:first-of-type th{border-top:1px solid ".concat(_pivotTableConstants.BORDER_COLOR, ";}"), "table.fixed-row-headers{border-width:0 0 1px 1px;}", "table.fixed-row-headers tr th,table.fixed-row-headers tr td{border-width:1px 1px 0 0;}"];
13
13
  exports.table = table;
14
14
  table.__hash = "712241344";
15
- const cell = [`td.jsx-1789008308,th.jsx-1789008308{box-sizing:border-box;font-weight:normal;overflow:hidden;text-overflow:ellipsis;border:1px solid ${_pivotTableConstants.BORDER_COLOR};border-width:0 0 1px 1px;cursor:default;}`, "th.fixed-header.jsx-1789008308{position:-webkit-sticky;position:sticky;z-index:1;top:0;left:0;}", `.fontsize-SMALL.jsx-1789008308{font-size:${_pivotTableConstants.FONT_SIZE_SMALL}px;line-height:${_pivotTableConstants.FONT_SIZE_SMALL}px;}`, `.fontsize-NORMAL.jsx-1789008308{font-size:${_pivotTableConstants.FONT_SIZE_NORMAL}px;line-height:${_pivotTableConstants.FONT_SIZE_NORMAL}px;}`, `.fontsize-LARGE.jsx-1789008308{font-size:${_pivotTableConstants.FONT_SIZE_LARGE}px;line-height:${_pivotTableConstants.FONT_SIZE_LARGE}px;}`, `.displaydensity-COMPACT.jsx-1789008308{padding:${_pivotTableConstants.DISPLAY_DENSITY_PADDING_COMPACT}px;}`, `.displaydensity-NORMAL.jsx-1789008308{padding:${_pivotTableConstants.DISPLAY_DENSITY_PADDING_NORMAL}px;}`, `.displaydensity-COMFORTABLE.jsx-1789008308{padding:${_pivotTableConstants.DISPLAY_DENSITY_PADDING_COMFORTABLE}px;}`, ".column-header.jsx-1789008308{background-color:#dae6f8;}", "div.column-header-inner.jsx-1789008308{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-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;}", ".title.jsx-1789008308{font-weight:bold;background-color:#cddaed;}", ".row-header.jsx-1789008308{background-color:#dae6f8;}", ".row-header-hierarchy.jsx-1789008308{text-align:left;}", ".empty-header.jsx-1789008308{background-color:#cddaed;}", ".total-header.jsx-1789008308{background-color:#bac6d8;}", ".value.jsx-1789008308{background-color:#ffffff;}", ".TEXT.jsx-1789008308{text-align:left;}", ".NUMBER.jsx-1789008308{text-align:right;}", ".clickable.jsx-1789008308{cursor:pointer;}", ".value.jsx-1789008308:hover{background-color:#f3f3f3;}", ".subtotal.jsx-1789008308{background-color:#f4f4f4;}", ".total.jsx-1789008308{background-color:#d8d8d8;}", ".column-header-label.jsx-1789008308{overflow:hidden;text-overflow:ellipsis;}"];
15
+ const cell = ["td.jsx-1789008308,th.jsx-1789008308{box-sizing:border-box;font-weight:normal;overflow:hidden;text-overflow:ellipsis;border:1px solid ".concat(_pivotTableConstants.BORDER_COLOR, ";border-width:0 0 1px 1px;cursor:default;}"), "th.fixed-header.jsx-1789008308{position:-webkit-sticky;position:sticky;z-index:1;top:0;left:0;}", ".fontsize-SMALL.jsx-1789008308{font-size:".concat(_pivotTableConstants.FONT_SIZE_SMALL, "px;line-height:").concat(_pivotTableConstants.FONT_SIZE_SMALL, "px;}"), ".fontsize-NORMAL.jsx-1789008308{font-size:".concat(_pivotTableConstants.FONT_SIZE_NORMAL, "px;line-height:").concat(_pivotTableConstants.FONT_SIZE_NORMAL, "px;}"), ".fontsize-LARGE.jsx-1789008308{font-size:".concat(_pivotTableConstants.FONT_SIZE_LARGE, "px;line-height:").concat(_pivotTableConstants.FONT_SIZE_LARGE, "px;}"), ".displaydensity-COMPACT.jsx-1789008308{padding:".concat(_pivotTableConstants.DISPLAY_DENSITY_PADDING_COMPACT, "px;}"), ".displaydensity-NORMAL.jsx-1789008308{padding:".concat(_pivotTableConstants.DISPLAY_DENSITY_PADDING_NORMAL, "px;}"), ".displaydensity-COMFORTABLE.jsx-1789008308{padding:".concat(_pivotTableConstants.DISPLAY_DENSITY_PADDING_COMFORTABLE, "px;}"), ".column-header.jsx-1789008308{background-color:#dae6f8;}", "div.column-header-inner.jsx-1789008308{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-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;}", ".title.jsx-1789008308{font-weight:bold;background-color:#cddaed;}", ".row-header.jsx-1789008308{background-color:#dae6f8;}", ".row-header-hierarchy.jsx-1789008308{text-align:left;}", ".empty-header.jsx-1789008308{background-color:#cddaed;}", ".total-header.jsx-1789008308{background-color:#bac6d8;}", ".value.jsx-1789008308{background-color:#ffffff;}", ".TEXT.jsx-1789008308{text-align:left;}", ".NUMBER.jsx-1789008308{text-align:right;}", ".clickable.jsx-1789008308{cursor:pointer;}", ".value.jsx-1789008308:hover{background-color:#f3f3f3;}", ".subtotal.jsx-1789008308{background-color:#f4f4f4;}", ".total.jsx-1789008308{background-color:#d8d8d8;}", ".column-header-label.jsx-1789008308{overflow:hidden;text-overflow:ellipsis;}"];
16
16
  exports.cell = cell;
17
17
  cell.__hash = "1789008308";
18
- const sortIcon = [`.fontsize-SMALL.jsx-2877616992{height:${_pivotTableConstants.FONT_SIZE_SMALL}px;margin-bottom:1px;margin-left:5px;}`, `.fontsize-NORMAL.jsx-2877616992{height:${_pivotTableConstants.FONT_SIZE_NORMAL}px;max-height:11px;margin-bottom:2px;margin-left:6px;}`, `.fontsize-LARGE.jsx-2877616992{height:${_pivotTableConstants.FONT_SIZE_LARGE}px;margin-bottom:2px;margin-left:7px;}`];
18
+ const sortIcon = [".fontsize-SMALL.jsx-2877616992{height:".concat(_pivotTableConstants.FONT_SIZE_SMALL, "px;margin-bottom:1px;margin-left:5px;}"), ".fontsize-NORMAL.jsx-2877616992{height:".concat(_pivotTableConstants.FONT_SIZE_NORMAL, "px;max-height:11px;margin-bottom:2px;margin-left:6px;}"), ".fontsize-LARGE.jsx-2877616992{height:".concat(_pivotTableConstants.FONT_SIZE_LARGE, "px;margin-bottom:2px;margin-left:7px;}")];
19
19
  exports.sortIcon = sortIcon;
20
20
  sortIcon.__hash = "2877616992";