@dhis2/analytics 20.6.3 → 21.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/build/cjs/__demo__/Filter.stories.js +2 -2
  2. package/build/cjs/__demo__/FixedPeriodSelect.stories.js +2 -2
  3. package/build/cjs/__demo__/OpenFileDialog.stories.js +1 -1
  4. package/build/cjs/__demo__/OrgUnitDimension.stories.js +95 -0
  5. package/build/cjs/__demo__/PivotTable.stories.js +2 -2
  6. package/build/cjs/api/analytics/AnalyticsBase.js +1 -1
  7. package/build/cjs/api/analytics/AnalyticsRequest.js +1 -1
  8. package/build/cjs/api/analytics/AnalyticsRequestBase.js +3 -3
  9. package/build/cjs/api/analytics/AnalyticsRequestPropertiesMixin.js +7 -7
  10. package/build/cjs/api/analytics/AnalyticsResponse.js +2 -2
  11. package/build/cjs/api/analytics/__tests__/AnalyticsAggregate.spec.js +11 -1
  12. package/build/cjs/api/analytics/__tests__/AnalyticsRequest.spec.js +9 -9
  13. package/build/cjs/api/analytics/__tests__/AnalyticsRequestBase.spec.js +4 -4
  14. package/build/cjs/api/analytics/utils.js +1 -1
  15. package/build/cjs/api/dimensions.js +37 -37
  16. package/build/cjs/api/organisationUnits.js +100 -46
  17. package/build/cjs/components/DataDimension/DataTypesSelector.js +3 -3
  18. package/build/cjs/components/DataDimension/DetailSelector.js +2 -2
  19. package/build/cjs/components/DataDimension/GroupSelector.js +9 -9
  20. package/build/cjs/components/DataDimension/ItemSelector.js +19 -19
  21. package/build/cjs/components/DataDimension/MetricSelector.js +3 -3
  22. package/build/cjs/components/DataDimension/styles/DataTypesSelector.style.js +1 -1
  23. package/build/cjs/components/DataDimension/styles/DetailSelector.style.js +1 -1
  24. package/build/cjs/components/DataDimension/styles/GroupSelector.style.js +1 -1
  25. package/build/cjs/components/DataDimension/styles/MetricSelector.style.js +1 -1
  26. package/build/cjs/components/DimensionMenu.js +10 -10
  27. package/build/cjs/components/DimensionsPanel/DimensionsPanel.js +2 -2
  28. package/build/cjs/components/DimensionsPanel/List/DimensionItem.js +5 -5
  29. package/build/cjs/components/DimensionsPanel/List/DimensionLabel.js +2 -2
  30. package/build/cjs/components/DimensionsPanel/List/DimensionList.js +10 -10
  31. package/build/cjs/components/DimensionsPanel/List/styles/DimensionList.style.js +1 -1
  32. package/build/cjs/components/DimensionsPanel/styles/DimensionsPanel.style.js +1 -1
  33. package/build/cjs/components/DynamicDimension/DynamicDimension.js +4 -4
  34. package/build/cjs/components/DynamicDimension/ItemSelector.js +8 -8
  35. package/build/cjs/components/DynamicDimension/styles/DynamicDimension.style.js +1 -1
  36. package/build/cjs/components/FileMenu/DeleteDialog.js +4 -4
  37. package/build/cjs/components/FileMenu/FileMenu.js +7 -7
  38. package/build/cjs/components/FileMenu/FileMenu.styles.js +1 -1
  39. package/build/cjs/components/FileMenu/GetLinkDialog.js +3 -3
  40. package/build/cjs/components/FileMenu/RenameDialog.js +4 -4
  41. package/build/cjs/components/FileMenu/SaveAsDialog.js +4 -4
  42. package/build/cjs/components/FileMenu/__tests__/DeleteDialog.spec.js +1 -1
  43. package/build/cjs/components/FileMenu/__tests__/RenameDialog.spec.js +1 -1
  44. package/build/cjs/components/FileMenu/__tests__/SaveAsDialog.spec.js +1 -1
  45. package/build/cjs/components/FileMenu/utils.js +3 -3
  46. package/build/cjs/components/Filter/Filter.js +1 -1
  47. package/build/cjs/components/Filter/styles/Filter.style.js +1 -1
  48. package/build/cjs/components/LegendKey/LegendKey.js +9 -9
  49. package/build/cjs/components/LegendKey/styles/LegendKey.style.js +1 -1
  50. package/build/cjs/components/OpenFileDialog/CustomSelectOption.js +2 -2
  51. package/build/cjs/components/OpenFileDialog/OpenFileDialog.js +21 -21
  52. package/build/cjs/components/OpenFileDialog/OpenFileDialog.styles.js +1 -1
  53. package/build/cjs/components/OpenFileDialog/styles/CustomSelectOption.style.js +1 -1
  54. package/build/cjs/components/Options/VisualizationOptions.js +2 -2
  55. package/build/cjs/components/Options/styles/VisualizationOptions.style.js +10 -10
  56. package/build/cjs/components/OrgUnitDimension/OrgUnitDimension.js +168 -203
  57. package/build/cjs/components/OrgUnitDimension/OrgUnitDimensionOld.js +244 -0
  58. package/build/cjs/components/OrgUnitDimension/styles/OrgUnitDimension.style.js +5 -2
  59. package/build/cjs/components/PeriodDimension/FixedPeriodFilter.js +5 -5
  60. package/build/cjs/components/PeriodDimension/FixedPeriodSelect.js +6 -6
  61. package/build/cjs/components/PeriodDimension/PeriodTransfer.js +11 -11
  62. package/build/cjs/components/PeriodDimension/RelativePeriodFilter.js +2 -2
  63. package/build/cjs/components/PeriodDimension/styles/FixedPeriodSelect.style.js +1 -1
  64. package/build/cjs/components/PeriodDimension/styles/PeriodFilter.style.js +1 -1
  65. package/build/cjs/components/PeriodDimension/utils/fixedPeriods.js +49 -49
  66. package/build/cjs/components/PivotTable/PivotTable.js +2 -2
  67. package/build/cjs/components/PivotTable/PivotTableCell.js +3 -3
  68. package/build/cjs/components/PivotTable/PivotTableColumnHeaderCell.js +2 -2
  69. package/build/cjs/components/PivotTable/PivotTableContainer.js +2 -2
  70. package/build/cjs/components/PivotTable/PivotTableEngineContext.js +2 -2
  71. package/build/cjs/components/PivotTable/PivotTableSortIcon.js +2 -2
  72. package/build/cjs/components/PivotTable/PivotTableTitleRow.js +4 -4
  73. package/build/cjs/components/PivotTable/PivotTableValueCell.js +2 -2
  74. package/build/cjs/components/PivotTable/styles/PivotTable.style.js +3 -3
  75. package/build/cjs/components/TransferOption.js +7 -7
  76. package/build/cjs/components/styles/DimensionSelector.style.js +1 -1
  77. package/build/cjs/components/styles/TransferOption.style.js +1 -1
  78. package/build/cjs/index.js +6 -6
  79. package/build/cjs/locales/en/translations.json +5 -0
  80. package/build/cjs/locales/ru/translations.json +1 -1
  81. package/build/cjs/locales/zh/translations.json +7 -7
  82. package/build/cjs/modules/axis.js +1 -1
  83. package/build/cjs/modules/layoutUiRules/rules.js +1 -1
  84. package/build/cjs/modules/ouIdHelper/index.js +9 -3
  85. package/build/cjs/modules/pivotTable/PivotTableEngine.js +3 -3
  86. package/build/cjs/modules/pivotTable/measureText.js +1 -1
  87. package/build/cjs/modules/relativeItems/index.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 +19 -8
  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/axisId.js +1 -1
  109. package/build/cjs/visualizations/util/getFilterText.js +3 -3
  110. package/build/es/__demo__/OpenFileDialog.stories.js +1 -1
  111. package/build/es/__demo__/OrgUnitDimension.stories.js +84 -0
  112. package/build/es/api/analytics/AnalyticsBase.js +1 -1
  113. package/build/es/api/analytics/AnalyticsRequest.js +1 -1
  114. package/build/es/api/analytics/AnalyticsRequestBase.js +3 -3
  115. package/build/es/api/analytics/AnalyticsRequestPropertiesMixin.js +7 -7
  116. package/build/es/api/analytics/AnalyticsResponse.js +2 -2
  117. package/build/es/api/analytics/__tests__/AnalyticsAggregate.spec.js +11 -1
  118. package/build/es/api/analytics/__tests__/AnalyticsRequest.spec.js +9 -9
  119. package/build/es/api/analytics/__tests__/AnalyticsRequestBase.spec.js +4 -4
  120. package/build/es/api/analytics/utils.js +1 -1
  121. package/build/es/api/dimensions.js +39 -39
  122. package/build/es/api/organisationUnits.js +93 -43
  123. package/build/es/components/DataDimension/DataTypesSelector.js +3 -3
  124. package/build/es/components/DataDimension/DetailSelector.js +2 -2
  125. package/build/es/components/DataDimension/GroupSelector.js +7 -7
  126. package/build/es/components/DataDimension/ItemSelector.js +17 -17
  127. package/build/es/components/DataDimension/MetricSelector.js +3 -3
  128. package/build/es/components/DataDimension/styles/DataTypesSelector.style.js +1 -1
  129. package/build/es/components/DataDimension/styles/DetailSelector.style.js +1 -1
  130. package/build/es/components/DataDimension/styles/GroupSelector.style.js +1 -1
  131. package/build/es/components/DataDimension/styles/MetricSelector.style.js +1 -1
  132. package/build/es/components/DimensionMenu.js +10 -10
  133. package/build/es/components/DimensionsPanel/List/DimensionItem.js +3 -3
  134. package/build/es/components/DimensionsPanel/List/DimensionList.js +8 -8
  135. package/build/es/components/DimensionsPanel/List/styles/DimensionList.style.js +1 -1
  136. package/build/es/components/DimensionsPanel/styles/DimensionsPanel.style.js +1 -1
  137. package/build/es/components/DynamicDimension/DynamicDimension.js +4 -4
  138. package/build/es/components/DynamicDimension/ItemSelector.js +6 -6
  139. package/build/es/components/DynamicDimension/styles/DynamicDimension.style.js +1 -1
  140. package/build/es/components/FileMenu/DeleteDialog.js +1 -1
  141. package/build/es/components/FileMenu/FileMenu.js +4 -4
  142. package/build/es/components/FileMenu/FileMenu.styles.js +1 -1
  143. package/build/es/components/FileMenu/GetLinkDialog.js +2 -2
  144. package/build/es/components/FileMenu/RenameDialog.js +1 -1
  145. package/build/es/components/FileMenu/SaveAsDialog.js +1 -1
  146. package/build/es/components/FileMenu/__tests__/DeleteDialog.spec.js +1 -1
  147. package/build/es/components/FileMenu/__tests__/RenameDialog.spec.js +1 -1
  148. package/build/es/components/FileMenu/__tests__/SaveAsDialog.spec.js +1 -1
  149. package/build/es/components/FileMenu/utils.js +3 -3
  150. package/build/es/components/Filter/Filter.js +1 -1
  151. package/build/es/components/Filter/styles/Filter.style.js +1 -1
  152. package/build/es/components/LegendKey/LegendKey.js +9 -9
  153. package/build/es/components/LegendKey/styles/LegendKey.style.js +1 -1
  154. package/build/es/components/OpenFileDialog/CustomSelectOption.js +2 -2
  155. package/build/es/components/OpenFileDialog/OpenFileDialog.js +19 -19
  156. package/build/es/components/OpenFileDialog/OpenFileDialog.styles.js +1 -1
  157. package/build/es/components/OpenFileDialog/styles/CustomSelectOption.style.js +1 -1
  158. package/build/es/components/Options/styles/VisualizationOptions.style.js +10 -10
  159. package/build/es/components/OrgUnitDimension/OrgUnitDimension.js +168 -204
  160. package/build/es/components/OrgUnitDimension/OrgUnitDimensionOld.js +220 -0
  161. package/build/es/components/OrgUnitDimension/styles/OrgUnitDimension.style.js +3 -2
  162. package/build/es/components/PeriodDimension/FixedPeriodFilter.js +5 -5
  163. package/build/es/components/PeriodDimension/FixedPeriodSelect.js +3 -3
  164. package/build/es/components/PeriodDimension/PeriodTransfer.js +9 -9
  165. package/build/es/components/PeriodDimension/RelativePeriodFilter.js +2 -2
  166. package/build/es/components/PeriodDimension/styles/FixedPeriodSelect.style.js +1 -1
  167. package/build/es/components/PeriodDimension/styles/PeriodFilter.style.js +1 -1
  168. package/build/es/components/PeriodDimension/utils/fixedPeriods.js +49 -49
  169. package/build/es/components/PivotTable/PivotTableCell.js +3 -3
  170. package/build/es/components/PivotTable/PivotTableColumnHeaderCell.js +2 -2
  171. package/build/es/components/PivotTable/PivotTableContainer.js +2 -2
  172. package/build/es/components/PivotTable/PivotTableSortIcon.js +2 -2
  173. package/build/es/components/PivotTable/PivotTableTitleRow.js +2 -2
  174. package/build/es/components/PivotTable/styles/PivotTable.style.js +3 -3
  175. package/build/es/components/TransferOption.js +6 -6
  176. package/build/es/components/styles/DimensionSelector.style.js +1 -1
  177. package/build/es/components/styles/TransferOption.style.js +1 -1
  178. package/build/es/index.js +1 -1
  179. package/build/es/locales/en/translations.json +5 -0
  180. package/build/es/locales/ru/translations.json +1 -1
  181. package/build/es/locales/zh/translations.json +7 -7
  182. package/build/es/modules/axis.js +1 -1
  183. package/build/es/modules/layoutUiRules/rules.js +1 -1
  184. package/build/es/modules/ouIdHelper/index.js +5 -2
  185. package/build/es/modules/pivotTable/PivotTableEngine.js +3 -3
  186. package/build/es/modules/pivotTable/measureText.js +1 -1
  187. package/build/es/modules/relativeItems/index.js +2 -2
  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 +19 -8
  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/axisId.js +1 -1
  208. package/build/es/visualizations/util/getFilterText.js +3 -3
  209. package/package.json +2 -1
  210. package/CHANGELOG.md +0 -2742
  211. package/build/cjs/api/organisationUnits-dataEngine.js +0 -119
  212. package/build/cjs/components/OrgUnitDimension/__tests__/OrgUnitDimension.spec.js +0 -96
  213. package/build/es/api/organisationUnits-dataEngine.js +0 -96
  214. package/build/es/components/OrgUnitDimension/__tests__/OrgUnitDimension.spec.js +0 -86
@@ -19,9 +19,9 @@ var _PivotTableEmptyCell = require("./PivotTableEmptyCell");
19
19
 
20
20
  var _PivotTableEngineContext = require("./PivotTableEngineContext");
21
21
 
22
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
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); }
23
23
 
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; }
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; }
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:".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;}"];
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;}"];
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 ".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;}"];
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;}"];
16
16
  exports.cell = cell;
17
17
  cell.__hash = "1789008308";
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;}")];
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;}`];
19
19
  exports.sortIcon = sortIcon;
20
20
  sortIcon.__hash = "2877616992";
@@ -7,12 +7,12 @@ exports.TransferOption = void 0;
7
7
 
8
8
  var _style = _interopRequireDefault(require("styled-jsx/style"));
9
9
 
10
- var _propTypes = _interopRequireDefault(require("@dhis2/prop-types"));
11
-
12
10
  var _ui = require("@dhis2/ui");
13
11
 
14
12
  var _classnames = _interopRequireDefault(require("classnames"));
15
13
 
14
+ var _propTypes = _interopRequireDefault(require("prop-types"));
15
+
16
16
  var _react = _interopRequireDefault(require("react"));
17
17
 
18
18
  var _TransferOption = _interopRequireDefault(require("./styles/TransferOption.style"));
@@ -47,17 +47,17 @@ const TransferOption = ({
47
47
  value
48
48
  }, event);
49
49
  },
50
- "data-test": "".concat(dataTest, "-content"),
51
- className: "jsx-".concat(_TransferOption.default.__hash) + " " + ((0, _classnames.default)('chip', {
50
+ "data-test": `${dataTest}-content`,
51
+ className: `jsx-${_TransferOption.default.__hash}` + " " + ((0, _classnames.default)('chip', {
52
52
  highlighted,
53
53
  disabled,
54
54
  selected,
55
55
  inactive: active !== undefined && !active
56
56
  }) || "")
57
57
  }, /*#__PURE__*/_react.default.createElement("span", {
58
- className: "jsx-".concat(_TransferOption.default.__hash) + " " + "icon"
58
+ className: `jsx-${_TransferOption.default.__hash}` + " " + "icon"
59
59
  }, icon), /*#__PURE__*/_react.default.createElement("span", {
60
- className: "jsx-".concat(_TransferOption.default.__hash) + " " + "label"
60
+ className: `jsx-${_TransferOption.default.__hash}` + " " + "label"
61
61
  }, label), /*#__PURE__*/_react.default.createElement(_style.default, {
62
62
  id: _TransferOption.default.__hash
63
63
  }, _TransferOption.default));
@@ -67,7 +67,7 @@ const TransferOption = ({
67
67
  "data-test": dataTest,
68
68
  className: "wrapper"
69
69
  }, tooltipText ? /*#__PURE__*/_react.default.createElement(_ui.Tooltip, {
70
- key: "".concat(value),
70
+ key: `${value}`,
71
71
  content: tooltipText,
72
72
  placement: 'top',
73
73
  openDelay: 750,
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  var _ui = require("@dhis2/ui");
9
9
 
10
- const _defaultExport = [".filterContainer.jsx-2057111968{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:".concat(_ui.spacers.dp12, ";margin-top:").concat(_ui.spacers.dp8, ";}"), ".emptyList.jsx-2057111968{text-align:center;font-size:14px;line-height:16px;margin:".concat(_ui.spacers.dp24, " 0 0;color:").concat(_ui.colors.grey700, ";}"), ".rightHeader.jsx-2057111968{font-size:14px;font-weight:400;}", ".leftHeader.jsx-2057111968{padding:".concat(_ui.spacers.dp12, " ").concat(_ui.spacers.dp4, ";}"), ".info-container.jsx-2057111968{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:".concat(_ui.spacers.dp8, ";padding:").concat(_ui.spacers.dp8, ";background-color:").concat(_ui.colors.grey200, ";border-radius:3px;}"), ".info-text.jsx-2057111968{padding-left:".concat(_ui.spacers.dp8, ";color:").concat(_ui.colors.grey900, ";font-size:12px;line-height:16px;}")];
10
+ const _defaultExport = [`.filterContainer.jsx-2057111968{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:${_ui.spacers.dp12};margin-top:${_ui.spacers.dp8};}`, `.emptyList.jsx-2057111968{text-align:center;font-size:14px;line-height:16px;margin:${_ui.spacers.dp24} 0 0;color:${_ui.colors.grey700};}`, ".rightHeader.jsx-2057111968{font-size:14px;font-weight:400;}", `.leftHeader.jsx-2057111968{padding:${_ui.spacers.dp12} ${_ui.spacers.dp4};}`, `.info-container.jsx-2057111968{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:${_ui.spacers.dp8};padding:${_ui.spacers.dp8};background-color:${_ui.colors.grey200};border-radius:3px;}`, `.info-text.jsx-2057111968{padding-left:${_ui.spacers.dp8};color:${_ui.colors.grey900};font-size:12px;line-height:16px;}`];
11
11
  _defaultExport.__hash = "2057111968";
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 = [".wrapper.jsx-3199850788:last-child{margin-bottom:".concat(_ui.spacers.dp4, ";}"), ".chip.jsx-3199850788{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;background:".concat(_ui.colors.grey200, ";font-size:14px;line-height:16px;padding:2px ").concat(_ui.spacers.dp8, " 2px ").concat(_ui.spacers.dp4, ";margin:").concat(_ui.spacers.dp4, " ").concat(_ui.spacers.dp8, " 0 ").concat(_ui.spacers.dp8, ";border-radius:3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}"), ".chip.jsx-3199850788:hover{background:".concat(_ui.colors.grey300, ";}"), ".selected.jsx-3199850788{background:".concat(_ui.theme.secondary100, ";color:").concat(_ui.theme.secondary900, ";}"), ".selected.jsx-3199850788 .icon path{fill:".concat(_ui.theme.secondary700, ";}"), ".selected.jsx-3199850788:hover{background:#c9edeb;}", ".highlighted.jsx-3199850788,.highlighted.jsx-3199850788:hover{background:".concat(_ui.theme.secondary800, ";color:").concat(_ui.colors.white, ";}"), ".highlighted.jsx-3199850788 .icon path{fill:".concat(_ui.colors.white, ";}"), ".disabled.jsx-3199850788{opacity:0.3;cursor:not-allowed;}", ".inactive.jsx-3199850788{opacity:0.3;}", ".icon.jsx-3199850788,.label.jsx-3199850788{line-height:18px;}", ".icon.jsx-3199850788{margin-right:".concat(_ui.spacers.dp4, ";display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;vertical-align:text-bottom;padding-top:1px;}"), ".label.jsx-3199850788{font-size:14px;}"];
10
+ const _defaultExport = [`.wrapper.jsx-3199850788:last-child{margin-bottom:${_ui.spacers.dp4};}`, `.chip.jsx-3199850788{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;background:${_ui.colors.grey200};font-size:14px;line-height:16px;padding:2px ${_ui.spacers.dp8} 2px ${_ui.spacers.dp4};margin:${_ui.spacers.dp4} ${_ui.spacers.dp8} 0 ${_ui.spacers.dp8};border-radius:3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}`, `.chip.jsx-3199850788:hover{background:${_ui.colors.grey300};}`, `.selected.jsx-3199850788{background:${_ui.theme.secondary100};color:${_ui.theme.secondary900};}`, `.selected.jsx-3199850788 .icon path{fill:${_ui.theme.secondary700};}`, ".selected.jsx-3199850788:hover{background:#c9edeb;}", `.highlighted.jsx-3199850788,.highlighted.jsx-3199850788:hover{background:${_ui.theme.secondary800};color:${_ui.colors.white};}`, `.highlighted.jsx-3199850788 .icon path{fill:${_ui.colors.white};}`, ".disabled.jsx-3199850788{opacity:0.3;cursor:not-allowed;}", ".inactive.jsx-3199850788{opacity:0.3;}", ".icon.jsx-3199850788,.label.jsx-3199850788{line-height:18px;}", `.icon.jsx-3199850788{margin-right:${_ui.spacers.dp4};display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;vertical-align:text-bottom;padding-top:1px;}`, ".label.jsx-3199850788{font-size:14px;}"];
11
11
  _defaultExport.__hash = "3199850788";
12
12
  var _default = _defaultExport;
13
13
  exports.default = _default;
@@ -108,19 +108,19 @@ Object.defineProperty(exports, "apiFetchRecommendedIds", {
108
108
  Object.defineProperty(exports, "apiFetchOrganisationUnitLevels", {
109
109
  enumerable: true,
110
110
  get: function () {
111
- return _organisationUnitsDataEngine.apiFetchOrganisationUnitLevels;
111
+ return _organisationUnits.apiFetchOrganisationUnitLevels;
112
112
  }
113
113
  });
114
114
  Object.defineProperty(exports, "apiFetchOrganisationUnitRoots", {
115
115
  enumerable: true,
116
116
  get: function () {
117
- return _organisationUnitsDataEngine.apiFetchOrganisationUnitRoots;
117
+ return _organisationUnits.apiFetchOrganisationUnitRoots;
118
118
  }
119
119
  });
120
120
  Object.defineProperty(exports, "apiFetchOrganisationUnit", {
121
121
  enumerable: true,
122
122
  get: function () {
123
- return _organisationUnitsDataEngine.apiFetchOrganisationUnit;
123
+ return _organisationUnits.apiFetchOrganisationUnit;
124
124
  }
125
125
  });
126
126
  Object.defineProperty(exports, "getAxisName", {
@@ -1146,7 +1146,7 @@ var _Analytics = _interopRequireDefault(require("./api/analytics/Analytics"));
1146
1146
 
1147
1147
  var _dimensions = require("./api/dimensions");
1148
1148
 
1149
- var _organisationUnitsDataEngine = require("./api/organisationUnits-dataEngine");
1149
+ var _organisationUnits = require("./api/organisationUnits");
1150
1150
 
1151
1151
  var _axis = require("./modules/axis");
1152
1152
 
@@ -1254,8 +1254,8 @@ var _fixedPeriods = require("./components/PeriodDimension/utils/fixedPeriods");
1254
1254
 
1255
1255
  var _VisualizationOptions = _interopRequireDefault(require("./components/Options/VisualizationOptions"));
1256
1256
 
1257
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
1257
+ 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); }
1258
1258
 
1259
- 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; }
1259
+ 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; }
1260
1260
 
1261
1261
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -101,6 +101,11 @@
101
101
  "Options": "Options",
102
102
  "Hide": "Hide",
103
103
  "Update": "Update",
104
+ "User organisation unit": "User organisation unit",
105
+ "User sub-units": "User sub-units",
106
+ "User sub-x2-units": "User sub-x2-units",
107
+ "Select a level": "Select a level",
108
+ "Select a group": "Select a group",
104
109
  "Period type": "Period type",
105
110
  "Year": "Year",
106
111
  "Select year": "Select year",
@@ -76,7 +76,7 @@
76
76
  "There was a problem loading items. Try again or contact your system administrator.": "",
77
77
  "No items found. Create a new to get started.": "",
78
78
  "No items found. Try adjusting your search or filter options to find what you're looking for.": "",
79
- "Create new": "",
79
+ "Create new": "Создать новый",
80
80
  "Open a visualization": "",
81
81
  "Loading visualizations": "",
82
82
  "Couldn't load visualizations": "",
@@ -91,13 +91,13 @@
91
91
  "No maps found. Click New map to get started.": "未找到地图。单击新地图开始。",
92
92
  "No maps found. Try adjusting your search or filter options to find what you're looking for.": "未找到地图。尝试调整您的搜索或过滤选项以找到您要查找的内容。",
93
93
  "New map": "新地图",
94
- "Open an event report": "",
95
- "Loading event reports": "",
96
- "Couldn't load event reports": "",
97
- "There was a problem loading event reports. Try again or contact your system administrator.": "",
98
- "No event reports found. Click New event report to get started.": "",
99
- "No event reports found. Try adjusting your search or filter options to find what you're looking for.": "",
100
- "New event report": "",
94
+ "Open an event report": "打开事件报告",
95
+ "Loading event reports": "加载事件报告",
96
+ "Couldn't load event reports": "无法加载事件报告",
97
+ "There was a problem loading event reports. Try again or contact your system administrator.": "加载事件报告时出现问题。重试或联系您的系统管理员。",
98
+ "No event reports found. Click New event report to get started.": "未找到事件报告。单击新建事件报告开始。",
99
+ "No event reports found. Try adjusting your search or filter options to find what you're looking for.": "未找到事件报告。尝试调整您的搜索或过滤选项以找到您要查找的内容。",
100
+ "New event report": "新建事件报告",
101
101
  "Options": "选项",
102
102
  "Hide": "隐藏",
103
103
  "Update": "更新",
@@ -44,7 +44,7 @@ const getAxisNameByLayoutType = (axisId, layoutType) => {
44
44
  const name = getAxisNamesByLayoutType(layoutType)[axisId];
45
45
 
46
46
  if (!name) {
47
- throw new Error("".concat(axisId, " is not a valid axis id"));
47
+ throw new Error(`${axisId} is not a valid axis id`);
48
48
  }
49
49
 
50
50
  return name;
@@ -111,7 +111,7 @@ const getRulesByVisType = visType => {
111
111
  const rules = visTypeToRules[visType];
112
112
 
113
113
  if (!rules) {
114
- throw new Error("".concat(visType, " is not a known visualization type"));
114
+ throw new Error(`${visType} is not a known visualization type`);
115
115
  }
116
116
 
117
117
  return rules;
@@ -3,9 +3,15 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ouIdHelper = void 0;
6
+ exports.ouIdHelper = exports.USER_ORG_UNIT_GRANDCHILDREN = exports.USER_ORG_UNIT_CHILDREN = exports.USER_ORG_UNIT = void 0;
7
7
  const LEVEL_ID_PREFIX = 'LEVEL';
8
8
  const GROUP_ID_PREFIX = 'OU_GROUP';
9
+ const USER_ORG_UNIT = 'USER_ORGUNIT';
10
+ exports.USER_ORG_UNIT = USER_ORG_UNIT;
11
+ const USER_ORG_UNIT_CHILDREN = 'USER_ORGUNIT_CHILDREN';
12
+ exports.USER_ORG_UNIT_CHILDREN = USER_ORG_UNIT_CHILDREN;
13
+ const USER_ORG_UNIT_GRANDCHILDREN = 'USER_ORGUNIT_GRANDCHILDREN';
14
+ exports.USER_ORG_UNIT_GRANDCHILDREN = USER_ORG_UNIT_GRANDCHILDREN;
9
15
 
10
16
  const hasGroupPrefix = id => id.substr(0, GROUP_ID_PREFIX.length) === GROUP_ID_PREFIX;
11
17
 
@@ -18,8 +24,8 @@ const stripGroupPrefix = id => hasGroupPrefix(id) ? id.substr(GROUP_ID_PREFIX.le
18
24
  const removePrefix = id => stripGroupPrefix(stripLevelPrefix(id));
19
25
 
20
26
  const ouIdHelper = Object.freeze({
21
- addLevelPrefix: id => "".concat(LEVEL_ID_PREFIX, "-").concat(removePrefix(id)),
22
- addGroupPrefix: id => "".concat(GROUP_ID_PREFIX, "-").concat(removePrefix(id)),
27
+ addLevelPrefix: id => `${LEVEL_ID_PREFIX}-${removePrefix(id)}`,
28
+ addGroupPrefix: id => `${GROUP_ID_PREFIX}-${removePrefix(id)}`,
23
29
  removePrefix,
24
30
  hasGroupPrefix,
25
31
  hasLevelPrefix
@@ -369,7 +369,7 @@ class PivotTableEngine {
369
369
  }
370
370
 
371
371
  if (rowLevel === lastRowLevel && this.dimensionLookup.rows[lastRowLevel] && columnLevel === lastColumnLevel && this.dimensionLookup.columns[lastColumnLevel]) {
372
- return "".concat(this.dimensionLookup.rows[lastRowLevel].meta.name, " / ").concat(this.dimensionLookup.columns[lastColumnLevel].meta.name);
372
+ return `${this.dimensionLookup.rows[lastRowLevel].meta.name} / ${this.dimensionLookup.columns[lastColumnLevel].meta.name}`;
373
373
  }
374
374
 
375
375
  if (lastRowLevel === -1) {
@@ -963,12 +963,12 @@ class PivotTableEngine {
963
963
 
964
964
  sort(column, order) {
965
965
  if (order !== _pivotTableConstants.SORT_ORDER_ASCENDING && order !== _pivotTableConstants.SORT_ORDER_DESCENDING) {
966
- console.warn("Invalid sort order ".concat(order));
966
+ console.warn(`Invalid sort order ${order}`);
967
967
  return;
968
968
  }
969
969
 
970
970
  if (!this.isSortable(column)) {
971
- console.warn("Invalid sort column ".concat(column));
971
+ console.warn(`Invalid sort column ${column}`);
972
972
  return;
973
973
  }
974
974
 
@@ -15,7 +15,7 @@ const getContext = fontSize => {
15
15
  }
16
16
 
17
17
  const ctx = canvas.getContext('2d');
18
- ctx.font = "".concat(fontSize, "px Roboto, Arial, sans-serif");
18
+ ctx.font = `${fontSize}px Roboto, Arial, sans-serif`;
19
19
  return ctx;
20
20
  };
21
21
 
@@ -11,6 +11,6 @@ var _ouIdHelper = require("../ouIdHelper");
11
11
 
12
12
  var _predefinedDimensions = require("../predefinedDimensions");
13
13
 
14
- const hasRelativeItems = (dimension, itemIds = []) => dimension === _predefinedDimensions.DIMENSION_ID_ASSIGNED_CATEGORIES || dimension === _predefinedDimensions.DIMENSION_ID_ORGUNIT && Array.isArray(itemIds) && itemIds.some(id => _ouIdHelper.ouIdHelper.hasLevelPrefix(id) || _ouIdHelper.ouIdHelper.hasGroupPrefix(id) || ['USER_ORGUNIT', 'USER_ORGUNIT_CHILDREN', 'USER_ORGUNIT_GRAND_CHILDREN'].includes(id)) || dimension === _predefinedDimensions.DIMENSION_ID_PERIOD && Array.isArray(itemIds) && itemIds.some(id => (0, _relativePeriods.getRelativePeriodIds)().includes(id));
14
+ const hasRelativeItems = (dimension, itemIds = []) => dimension === _predefinedDimensions.DIMENSION_ID_ASSIGNED_CATEGORIES || dimension === _predefinedDimensions.DIMENSION_ID_ORGUNIT && Array.isArray(itemIds) && itemIds.some(id => _ouIdHelper.ouIdHelper.hasLevelPrefix(id) || _ouIdHelper.ouIdHelper.hasGroupPrefix(id) || [_ouIdHelper.USER_ORG_UNIT, _ouIdHelper.USER_ORG_UNIT_CHILDREN, _ouIdHelper.USER_ORG_UNIT_GRANDCHILDREN].includes(id)) || dimension === _predefinedDimensions.DIMENSION_ID_PERIOD && Array.isArray(itemIds) && itemIds.some(id => (0, _relativePeriods.getRelativePeriodIds)().includes(id));
15
15
 
16
16
  exports.hasRelativeItems = hasRelativeItems;
@@ -102,7 +102,7 @@ const getDisplayNameByVisType = visType => {
102
102
  const displayName = visTypeDisplayNames[visType];
103
103
 
104
104
  if (!displayName) {
105
- throw new Error("".concat(visType, " is not a valid visualization type"));
105
+ throw new Error(`${visType} is not a valid visualization type`);
106
106
  }
107
107
 
108
108
  return displayName;
@@ -97,7 +97,7 @@ function getTwoCategoryTrendLines(layout, series, isStacked) {
97
97
  });
98
98
  } else {
99
99
  series.forEach(seriesObj => {
100
- const trendlineSerieId = "trendline-".concat(seriesObj.id);
100
+ const trendlineSerieId = `trendline-${seriesObj.id}`;
101
101
  newSeries.push(seriesObj);
102
102
 
103
103
  if (!seriesObj.custom.isTwoCategoryFakeSerie) {
@@ -34,7 +34,7 @@ const getPlotLineLabelStyle = fontStyle => ({
34
34
  y: -7,
35
35
  style: {
36
36
  color: fontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_COLOR],
37
- fontSize: "".concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "px"),
37
+ fontSize: `${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}px`,
38
38
  fontWeight: fontStyle[_fontStyle.FONT_STYLE_OPTION_BOLD] ? _fontStyle.FONT_STYLE_OPTION_BOLD : 'normal',
39
39
  fontStyle: fontStyle[_fontStyle.FONT_STYLE_OPTION_ITALIC] ? _fontStyle.FONT_STYLE_OPTION_ITALIC : 'normal'
40
40
  }
@@ -128,7 +128,7 @@ const getLabels = axis => {
128
128
  return {
129
129
  style: {
130
130
  color: fontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_COLOR],
131
- fontSize: "".concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "px"),
131
+ fontSize: `${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}px`,
132
132
  fontWeight: fontStyle[_fontStyle.FONT_STYLE_OPTION_BOLD] ? _fontStyle.FONT_STYLE_OPTION_BOLD : 'normal',
133
133
  fontStyle: fontStyle[_fontStyle.FONT_STYLE_OPTION_ITALIC] ? _fontStyle.FONT_STYLE_OPTION_ITALIC : 'normal'
134
134
  },
@@ -20,7 +20,7 @@ const getTitleStyle = (fontStyle, titleType, visType) => fontStyle ? {
20
20
  margin: 15,
21
21
  style: {
22
22
  color: fontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_COLOR],
23
- fontSize: "".concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "px"),
23
+ fontSize: `${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}px`,
24
24
  fontWeight: fontStyle[_fontStyle.FONT_STYLE_OPTION_BOLD] ? _fontStyle.FONT_STYLE_OPTION_BOLD : 'normal',
25
25
  fontStyle: fontStyle[_fontStyle.FONT_STYLE_OPTION_ITALIC] ? _fontStyle.FONT_STYLE_OPTION_ITALIC : 'normal'
26
26
  }
@@ -47,9 +47,9 @@ var _xAxis = _interopRequireDefault(require("./xAxis"));
47
47
 
48
48
  var _yAxis = _interopRequireDefault(require("./yAxis"));
49
49
 
50
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
50
+ 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); }
51
51
 
52
- 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; }
52
+ 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; }
53
53
 
54
54
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
55
55
 
@@ -35,7 +35,7 @@ function getItemStyle(fontStyle, dashboard) {
35
35
  fontWeight: 'normal'
36
36
  }, dashboard ? DASHBOARD_ITEM_STYLE : {
37
37
  color: fontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_COLOR],
38
- fontSize: "".concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "px"),
38
+ fontSize: `${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}px`,
39
39
  fontWeight: fontStyle[_fontStyle.FONT_STYLE_OPTION_BOLD] ? _fontStyle.FONT_STYLE_OPTION_BOLD : 'normal',
40
40
  fontStyle: fontStyle[_fontStyle.FONT_STYLE_OPTION_ITALIC] ? _fontStyle.FONT_STYLE_OPTION_ITALIC : 'normal'
41
41
  })
@@ -86,22 +86,33 @@ const formatLabel = ({
86
86
 
87
87
  if ((!seriesId || seriesId.startsWith('trendline')) && seriesType === (0, _type.default)(_visTypes.VIS_TYPE_LINE).type) {
88
88
  // trendline
89
- result.push("<span style=\"height: ".concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 6.5, "px; width: ").concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "px; background-color: ").concat(seriesColor, "; display: inline-block;\"></span>"));
90
- result.push("<span style=\"margin-left: 8px\" class=\"data-test-series-key-item-name\">".concat(seriesName, "</span>"));
89
+ result.push(`<span style="height: ${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 6.5}px; width: ${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}px; background-color: ${seriesColor}; display: inline-block;"></span>`);
90
+ result.push(`<span style="margin-left: 8px" class="data-test-series-key-item-name">${seriesName}</span>`);
91
91
  } else if (legendSet !== null && legendSet !== void 0 && (_legendSet$legends = legendSet.legends) !== null && _legendSet$legends !== void 0 && _legendSet$legends.length && (0, _visTypes.isLegendSetType)(visType) && seriesType !== (0, _type.default)(_visTypes.VIS_TYPE_LINE).type) {
92
92
  // item with legend set
93
- legendSet.legends.sort((a, b) => a.startValue - b.startValue).forEach((legend, index) => result.push("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "\" height=\"").concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "\" version=\"1.1\" style=\"margin-right:-5px; z-index: ").concat(legendSet.legends.length - index, "\" class=\"data-test-series-key-item-bullet\">\n <circle cx=\"").concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2, "\" cy=\"").concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2, "\" r=\"").concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2, "\" fill=\"").concat(legend.color, "\"></circle>\n </svg>")));
94
- result.push("<span style=\"margin-left: 8px\" class=\"data-test-series-key-item-name\">".concat(seriesName, "</span>"));
93
+ legendSet.legends.sort((a, b) => a.startValue - b.startValue).forEach((legend, index) => result.push(`<svg xmlns="http://www.w3.org/2000/svg" width="${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}" height="${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}" version="1.1" style="margin-right:-5px; z-index: ${legendSet.legends.length - index}" class="data-test-series-key-item-bullet">
94
+ <circle cx="${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2}" cy="${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2}" r="${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2}" fill="${legend.color}"></circle>
95
+ </svg>`));
96
+ result.push(`<span style="margin-left: 8px" class="data-test-series-key-item-name">${seriesName}</span>`);
95
97
  } else {
96
98
  // regular item (not a trendline, no applied legend set)
97
99
  if ((seriesColor === null || seriesColor === void 0 ? void 0 : seriesColor.patternIndex) !== undefined) {
98
100
  const pattern = _colorSets.colorSets[_colorSets.COLOR_SET_PATTERNS].patterns[seriesColor.patternIndex];
99
- result.push("<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"height: ".concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "px; width: ").concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "px; display: inline-block; margin-right:5px\" class=\"data-test-series-key-item-bullet\">\n <defs>\n <pattern id=\"pattern").concat(seriesColor.patternIndex, "\" patternUnits=\"userSpaceOnUse\" width=\"").concat(pattern.width, "\" height=\"").concat(pattern.height, "\">\n <path stroke=\"").concat(pattern.color, "\" d=\"").concat(pattern.path, "\"/>\n </pattern>\n </defs>\n <circle cx=\"").concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2, "\" cy=\"").concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2, "\" r=\"").concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2, "\" fill=\"url(#pattern").concat(seriesColor.patternIndex, ")\"/>\n </svg>"));
101
+ result.push(`<svg xmlns="http://www.w3.org/2000/svg" style="height: ${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}px; width: ${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}px; display: inline-block; margin-right:5px" class="data-test-series-key-item-bullet">
102
+ <defs>
103
+ <pattern id="pattern${seriesColor.patternIndex}" patternUnits="userSpaceOnUse" width="${pattern.width}" height="${pattern.height}">
104
+ <path stroke="${pattern.color}" d="${pattern.path}"/>
105
+ </pattern>
106
+ </defs>
107
+ <circle cx="${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2}" cy="${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2}" r="${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2}" fill="url(#pattern${seriesColor.patternIndex})"/>
108
+ </svg>`);
100
109
  } else {
101
- result.push("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "\" height=\"").concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "\" version=\"1.1\" style=\"margin-right:5px\" class=\"data-test-series-key-item-bullet\">\n <circle cx=\"").concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2, "\" cy=\"").concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2, "\" r=\"").concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2, "\" fill=\"").concat(seriesColor, "\"></circle>\n </svg>"));
110
+ result.push(`<svg xmlns="http://www.w3.org/2000/svg" width="${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}" height="${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}" version="1.1" style="margin-right:5px" class="data-test-series-key-item-bullet">
111
+ <circle cx="${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2}" cy="${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2}" r="${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE] / 2}" fill="${seriesColor}"></circle>
112
+ </svg>`);
102
113
  }
103
114
 
104
- result.push("<span class=\"data-test-series-key-item-name\">".concat(seriesName, "</span>"));
115
+ result.push(`<span class="data-test-series-key-item-name">${seriesName}</span>`);
105
116
  }
106
117
 
107
118
  result.push('</div>');
@@ -43,7 +43,7 @@ exports.applyLegendSet = applyLegendSet;
43
43
 
44
44
  const getLegendSetTooltip = () => ({
45
45
  pointFormatter: function () {
46
- return "<span style=\"color:".concat(this.color, "\">\u25CF</span> ").concat(this.series.name, ": <b>").concat(this.y, "</b><br>") + (this.legend ? "".concat(this.legendSet, ": <b>").concat(this.legend, "</b>") : "".concat(_index.default.t('No legend for this series')));
46
+ return `<span style="color:${this.color}">●</span> ${this.series.name}: <b>${this.y}</b><br>` + (this.legend ? `${this.legendSet}: <b>${this.legend}</b>` : `${_index.default.t('No legend for this series')}`);
47
47
  }
48
48
  });
49
49
 
@@ -41,7 +41,7 @@ var _default = ({
41
41
  }));
42
42
  }
43
43
 
44
- return "".concat(labels.map(label => "<b>".concat(label, "</b><br>")).join('')).concat(yAxisName, ": ").concat(y, "<br>").concat(xAxisName, ": ").concat(x);
44
+ return `${labels.map(label => `<b>${label}</b><br>`).join('')}${yAxisName}: ${y}<br>${xAxisName}: ${x}`;
45
45
  };
46
46
 
47
47
  switch (visType) {
@@ -73,7 +73,7 @@ function _default(series, layout, metaData, dashboard) {
73
73
  style: {
74
74
  // DHIS2-578: dynamically truncate subtitle when it's taking more than 1 line
75
75
  color: fontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_COLOR],
76
- fontSize: "".concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "px"),
76
+ fontSize: `${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}px`,
77
77
  fontWeight: fontStyle[_fontStyle.FONT_STYLE_OPTION_BOLD] ? _fontStyle.FONT_STYLE_OPTION_BOLD : 'normal',
78
78
  fontStyle: fontStyle[_fontStyle.FONT_STYLE_OPTION_ITALIC] ? _fontStyle.FONT_STYLE_OPTION_ITALIC : 'normal',
79
79
  whiteSpace: 'nowrap',
@@ -77,7 +77,7 @@ function _default(layout, metaData, dashboard) {
77
77
  align: (0, _getTextAlignOption.getTextAlignOption)(fontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_ALIGN], _fontStyle.FONT_STYLE_VISUALIZATION_TITLE, (0, _visTypes.isVerticalType)(layout.type)),
78
78
  style: {
79
79
  color: fontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_COLOR],
80
- fontSize: "".concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "px"),
80
+ fontSize: `${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}px`,
81
81
  fontWeight: fontStyle[_fontStyle.FONT_STYLE_OPTION_BOLD] ? _fontStyle.FONT_STYLE_OPTION_BOLD : 'normal',
82
82
  fontStyle: fontStyle[_fontStyle.FONT_STYLE_OPTION_ITALIC] ? _fontStyle.FONT_STYLE_OPTION_ITALIC : 'normal',
83
83
  whiteSpace: 'nowrap',
@@ -14,6 +14,6 @@ function _default(layout, metaData, dashboard) {
14
14
 
15
15
  if ((_layout$rows = layout.rows) !== null && _layout$rows !== void 0 && _layout$rows.length && (_layout$columns = layout.columns) !== null && _layout$columns !== void 0 && _layout$columns.length && !dashboard) {
16
16
  const columns = (0, _getFilterText.default)(layout.columns, metaData).split(', ');
17
- return "".concat((0, _getFilterText.default)(layout.rows, metaData), ": ").concat(columns[0], " - ").concat(columns[1]);
17
+ return `${(0, _getFilterText.default)(layout.rows, metaData)}: ${columns[0]} - ${columns[1]}`;
18
18
  }
19
19
  }
@@ -44,7 +44,7 @@ const getLabels = axis => {
44
44
  return {
45
45
  style: {
46
46
  color: fontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_COLOR],
47
- fontSize: "".concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "px"),
47
+ fontSize: `${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}px`,
48
48
  fontWeight: fontStyle[_fontStyle.FONT_STYLE_OPTION_BOLD] ? _fontStyle.FONT_STYLE_OPTION_BOLD : 'normal',
49
49
  fontStyle: fontStyle[_fontStyle.FONT_STYLE_OPTION_ITALIC] ? _fontStyle.FONT_STYLE_OPTION_ITALIC : 'normal'
50
50
  },
@@ -68,12 +68,12 @@ function getPlotLine(regressionLine = {}, defaultLabel) {
68
68
  color: fontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_COLOR] || '#000',
69
69
  ...(label && {
70
70
  label: {
71
- text: "".concat(label, ": ").concat(value),
71
+ text: `${label}: ${value}`,
72
72
  verticalAlign,
73
73
  y,
74
74
  style: {
75
75
  color: fontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_COLOR],
76
- fontSize: "".concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "px"),
76
+ fontSize: `${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}px`,
77
77
  fontWeight: fontStyle[_fontStyle.FONT_STYLE_OPTION_BOLD] ? _fontStyle.FONT_STYLE_OPTION_BOLD : 'normal',
78
78
  fontStyle: fontStyle[_fontStyle.FONT_STYLE_OPTION_ITALIC] ? _fontStyle.FONT_STYLE_OPTION_ITALIC : 'normal'
79
79
  }
@@ -90,7 +90,7 @@ const getLabels = axis => {
90
90
  y: parseInt(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], 10) + 7,
91
91
  style: {
92
92
  color: fontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_COLOR],
93
- fontSize: "".concat(fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "px"),
93
+ fontSize: `${fontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}px`,
94
94
  fontWeight: fontStyle[_fontStyle.FONT_STYLE_OPTION_BOLD] ? _fontStyle.FONT_STYLE_OPTION_BOLD : 'normal',
95
95
  fontStyle: fontStyle[_fontStyle.FONT_STYLE_OPTION_ITALIC] ? _fontStyle.FONT_STYLE_OPTION_ITALIC : 'normal'
96
96
  }
@@ -73,9 +73,9 @@ function getDefault(layout, series, extraOptions) {
73
73
  var _axis$title;
74
74
 
75
75
  rl.title = { ...rl.title,
76
- text: "".concat(rl.title.text, " - ").concat(((_axis$title = axis.title) === null || _axis$title === void 0 ? void 0 : _axis$title.text) || _locales.default.t('Axis {{axisId}}', {
76
+ text: `${rl.title.text} - ${((_axis$title = axis.title) === null || _axis$title === void 0 ? void 0 : _axis$title.text) || _locales.default.t('Axis {{axisId}}', {
77
77
  axisId: axis.index + 1
78
- }))
78
+ })}`
79
79
  };
80
80
  }
81
81
  });
@@ -24,7 +24,7 @@ const generateValueSVG = ({
24
24
  const textSize = 300;
25
25
  const svgValue = document.createElementNS(svgNS, 'svg');
26
26
  svgValue.setAttribute('xmlns', svgNS);
27
- svgValue.setAttribute('viewBox', "0 -".concat(textSize + 50, " ").concat(textSize * 0.75 * formattedValue.length, " ").concat(textSize + 200));
27
+ svgValue.setAttribute('viewBox', `0 -${textSize + 50} ${textSize * 0.75 * formattedValue.length} ${textSize + 200}`);
28
28
 
29
29
  if (y) {
30
30
  svgValue.setAttribute('y', y);
@@ -52,7 +52,7 @@ const generateValueSVG = ({
52
52
  if (subText) {
53
53
  const svgSubText = document.createElementNS(svgNS, 'svg');
54
54
  const subTextSize = 40;
55
- svgSubText.setAttribute('viewBox', "0 -50 ".concat(textSize * 0.75 * formattedValue.length, " ").concat(textSize + 200));
55
+ svgSubText.setAttribute('viewBox', `0 -50 ${textSize * 0.75 * formattedValue.length} ${textSize + 200}`);
56
56
 
57
57
  if (y) {
58
58
  svgSubText.setAttribute('y', y);
@@ -146,7 +146,7 @@ const generateDVItem = (config, {
146
146
  const svgNS = 'http://www.w3.org/2000/svg';
147
147
  const svg = document.createElementNS(svgNS, 'svg');
148
148
  svg.setAttribute('xmlns', svgNS);
149
- svg.setAttribute('viewBox', "0 0 ".concat(width, " ").concat(height));
149
+ svg.setAttribute('viewBox', `0 0 ${width} ${height}`);
150
150
  svg.setAttribute('width', '100%');
151
151
  svg.setAttribute('height', '100%');
152
152
  svg.setAttribute('data-test', 'visualization-container');
@@ -155,7 +155,7 @@ const generateDVItem = (config, {
155
155
  title.setAttribute('x', getXFromTextAlign(titleFontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_ALIGN]));
156
156
  title.setAttribute('y', 28);
157
157
  title.setAttribute('text-anchor', getTextAnchorFromTextAlign(titleFontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_ALIGN]));
158
- title.setAttribute('font-size', "".concat(titleFontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "px"));
158
+ title.setAttribute('font-size', `${titleFontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}px`);
159
159
  title.setAttribute('font-weight', titleFontStyle[_fontStyle.FONT_STYLE_OPTION_BOLD] ? _fontStyle.FONT_STYLE_OPTION_BOLD : 'normal');
160
160
  title.setAttribute('font-style', titleFontStyle[_fontStyle.FONT_STYLE_OPTION_ITALIC] ? _fontStyle.FONT_STYLE_OPTION_ITALIC : 'normal');
161
161
  title.setAttribute('fill', titleFontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_COLOR]);
@@ -172,7 +172,7 @@ const generateDVItem = (config, {
172
172
  subtitle.setAttribute('y', 28);
173
173
  subtitle.setAttribute('dy', 22);
174
174
  subtitle.setAttribute('text-anchor', getTextAnchorFromTextAlign(subtitleFontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_ALIGN]));
175
- subtitle.setAttribute('font-size', "".concat(subtitleFontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE], "px"));
175
+ subtitle.setAttribute('font-size', `${subtitleFontStyle[_fontStyle.FONT_STYLE_OPTION_FONT_SIZE]}px`);
176
176
  subtitle.setAttribute('font-weight', subtitleFontStyle[_fontStyle.FONT_STYLE_OPTION_BOLD] ? _fontStyle.FONT_STYLE_OPTION_BOLD : 'normal');
177
177
  subtitle.setAttribute('font-style', subtitleFontStyle[_fontStyle.FONT_STYLE_OPTION_ITALIC] ? _fontStyle.FONT_STYLE_OPTION_ITALIC : 'normal');
178
178
  subtitle.setAttribute('fill', subtitleFontStyle[_fontStyle.FONT_STYLE_OPTION_TEXT_COLOR]);