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