@dhis2/analytics 26.9.0 → 26.9.3
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/build/cjs/__demo__/CalculationModal.stories.js +38 -16
- package/build/cjs/__demo__/DimensionsPanel.stories.js +65 -27
- package/build/cjs/__demo__/DynamicDimension.stories.js +30 -12
- package/build/cjs/__demo__/FileMenu.stories.js +27 -10
- package/build/cjs/__demo__/Filter.stories.js +20 -10
- package/build/cjs/__demo__/FixedPeriodSelect.stories.js +35 -17
- package/build/cjs/__demo__/InterpretationsUnit.stories.js +22 -11
- package/build/cjs/__demo__/OpenFileDialog.stories.js +44 -27
- package/build/cjs/__demo__/OrgUnitDimension.stories.js +103 -54
- package/build/cjs/__demo__/PeriodDimension.stories.js +64 -23
- package/build/cjs/__demo__/PivotTable.stories.js +413 -210
- package/build/cjs/__demo__/SingleValue.stories.js +37 -59
- package/build/cjs/__demo__/Toolbar.stories.js +44 -34
- package/build/cjs/__fixtures__/fixtures.js +2 -3
- package/build/cjs/api/analytics/Analytics.js +2 -3
- package/build/cjs/api/analytics/AnalyticsAggregate.js +2 -3
- package/build/cjs/api/analytics/AnalyticsBase.js +2 -3
- package/build/cjs/api/analytics/AnalyticsEnrollments.js +2 -3
- package/build/cjs/api/analytics/AnalyticsEvents.js +2 -3
- package/build/cjs/api/analytics/AnalyticsRequest.js +2 -3
- package/build/cjs/api/analytics/AnalyticsRequestBase.js +2 -3
- package/build/cjs/api/analytics/AnalyticsRequestDimensionsMixin.js +2 -3
- package/build/cjs/api/analytics/AnalyticsRequestFiltersMixin.js +2 -3
- package/build/cjs/api/analytics/AnalyticsRequestPropertiesMixin.js +2 -3
- package/build/cjs/api/analytics/AnalyticsResponse.js +2 -4
- package/build/cjs/api/analytics/AnalyticsResponseHeader.js +1 -2
- package/build/cjs/api/analytics/AnalyticsTrackedEntities.js +2 -3
- package/build/cjs/api/analytics/__tests__/Analytics.spec.js +1 -1
- package/build/cjs/api/analytics/__tests__/AnalyticsAggregate.spec.js +1 -1
- package/build/cjs/api/analytics/__tests__/AnalyticsBase.spec.js +2 -2
- package/build/cjs/api/analytics/__tests__/AnalyticsEnrollments.spec.js +1 -1
- package/build/cjs/api/analytics/__tests__/AnalyticsEvents.spec.js +1 -1
- package/build/cjs/api/analytics/__tests__/AnalyticsRequest.spec.js +1 -1
- package/build/cjs/api/analytics/__tests__/AnalyticsRequestBase.spec.js +1 -1
- package/build/cjs/api/analytics/__tests__/AnalyticsResponse.spec.js +1 -1
- package/build/cjs/api/analytics/__tests__/AnalyticsResponseHeader.spec.js +1 -1
- package/build/cjs/api/dimensions.js +11 -21
- package/build/cjs/api/expression.js +5 -9
- package/build/cjs/assets/AssignedCategoriesIcon.js +2 -3
- package/build/cjs/assets/DimensionItemIcons/CalculationIcon.js +3 -4
- package/build/cjs/assets/DimensionItemIcons/DataElementIcon.js +3 -4
- package/build/cjs/assets/DimensionItemIcons/GenericIcon.js +3 -4
- package/build/cjs/assets/DimensionItemIcons/PeriodIcon.js +3 -4
- package/build/cjs/assets/DynamicDimensionIcon.js +2 -3
- package/build/cjs/assets/FormulaIcon.js +2 -3
- package/build/cjs/components/AboutAOUnit/AboutAOUnit.js +4 -5
- package/build/cjs/components/AboutAOUnit/styles/AboutAOUnit.style.js +1 -2
- package/build/cjs/components/AboutAOUnit/utils.js +7 -13
- package/build/cjs/components/CachedDataQueryProvider.js +3 -3
- package/build/cjs/components/DataDimension/Calculation/CalculationModal.js +4 -5
- package/build/cjs/components/DataDimension/Calculation/DataElementOption.js +3 -4
- package/build/cjs/components/DataDimension/Calculation/DataElementSelector.js +4 -5
- package/build/cjs/components/DataDimension/Calculation/DndContext.js +8 -10
- package/build/cjs/components/DataDimension/Calculation/DragHandleIcon.js +3 -4
- package/build/cjs/components/DataDimension/Calculation/DraggingItem.js +2 -3
- package/build/cjs/components/DataDimension/Calculation/DropZone.js +2 -3
- package/build/cjs/components/DataDimension/Calculation/FormulaField.js +4 -7
- package/build/cjs/components/DataDimension/Calculation/FormulaItem.js +5 -6
- package/build/cjs/components/DataDimension/Calculation/MathOperatorSelector.js +2 -3
- package/build/cjs/components/DataDimension/Calculation/Operator.js +3 -4
- package/build/cjs/components/DataDimension/Calculation/styles/CalculationModal.style.js +1 -2
- package/build/cjs/components/DataDimension/Calculation/styles/DataElementOption.style.js +1 -2
- package/build/cjs/components/DataDimension/Calculation/styles/DataElementSelector.style.js +1 -2
- package/build/cjs/components/DataDimension/Calculation/styles/DraggingItem.style.js +1 -2
- package/build/cjs/components/DataDimension/Calculation/styles/DropZone.style.js +1 -2
- package/build/cjs/components/DataDimension/Calculation/styles/FormulaField.style.js +1 -2
- package/build/cjs/components/DataDimension/Calculation/styles/FormulaItem.style.js +1 -2
- package/build/cjs/components/DataDimension/Calculation/styles/MathOperatorSelector.style.js +1 -2
- package/build/cjs/components/DataDimension/Calculation/styles/Operator.style.js +1 -2
- package/build/cjs/components/DataDimension/DataDimension.js +4 -5
- package/build/cjs/components/DataDimension/DataTypeSelector.js +2 -3
- package/build/cjs/components/DataDimension/DetailSelector.js +2 -3
- package/build/cjs/components/DataDimension/GroupSelector.js +4 -5
- package/build/cjs/components/DataDimension/ItemSelector.js +5 -7
- package/build/cjs/components/DataDimension/MetricSelector.js +2 -3
- package/build/cjs/components/DataDimension/styles/DataTypeSelector.style.js +1 -2
- package/build/cjs/components/DataDimension/styles/DetailSelector.style.js +1 -2
- package/build/cjs/components/DataDimension/styles/GroupSelector.style.js +1 -2
- package/build/cjs/components/DataDimension/styles/MetricSelector.style.js +1 -2
- package/build/cjs/components/DimensionMenu.js +5 -6
- package/build/cjs/components/DimensionsPanel/DimensionsPanel.js +7 -8
- package/build/cjs/components/DimensionsPanel/List/DimensionItem.js +8 -9
- package/build/cjs/components/DimensionsPanel/List/DimensionList.js +7 -8
- package/build/cjs/components/DimensionsPanel/List/OptionsButton.js +2 -3
- package/build/cjs/components/DimensionsPanel/List/RecommendedIcon.js +2 -3
- package/build/cjs/components/DimensionsPanel/List/__tests__/DimensionItem.spec.js +2 -2
- package/build/cjs/components/DimensionsPanel/List/styles/DimensionItem.style.js +1 -2
- package/build/cjs/components/DimensionsPanel/List/styles/DimensionList.style.js +1 -2
- package/build/cjs/components/DimensionsPanel/List/styles/RecommendedIcon.style.js +2 -3
- package/build/cjs/components/DimensionsPanel/__tests__/DimensionsPanel.spec.js +2 -2
- package/build/cjs/components/DimensionsPanel/styles/DimensionsPanel.style.js +2 -3
- package/build/cjs/components/DynamicDimension/DynamicDimension.js +3 -5
- package/build/cjs/components/DynamicDimension/ItemSelector.js +5 -7
- package/build/cjs/components/DynamicDimension/styles/DynamicDimension.style.js +1 -2
- package/build/cjs/components/FileMenu/DeleteDialog.js +3 -3
- package/build/cjs/components/FileMenu/FileMenu.js +4 -5
- package/build/cjs/components/FileMenu/FileMenu.styles.js +2 -4
- package/build/cjs/components/FileMenu/GetLinkDialog.js +1 -1
- package/build/cjs/components/FileMenu/GetLinkDialog.styles.js +1 -2
- package/build/cjs/components/FileMenu/RenameDialog.js +3 -3
- package/build/cjs/components/FileMenu/SaveAsDialog.js +3 -3
- package/build/cjs/components/FileMenu/__tests__/DeleteDialog.spec.js +2 -2
- package/build/cjs/components/FileMenu/__tests__/FileMenu.spec.js +2 -2
- package/build/cjs/components/FileMenu/__tests__/GetLinkDialog.spec.js +2 -2
- package/build/cjs/components/FileMenu/__tests__/RenameDialog.spec.js +2 -2
- package/build/cjs/components/FileMenu/__tests__/SaveAsDialog.spec.js +2 -2
- package/build/cjs/components/FileMenu/utils.js +6 -11
- package/build/cjs/components/Filter/Filter.js +2 -3
- package/build/cjs/components/Filter/__tests__/Filter.spec.js +2 -2
- package/build/cjs/components/Filter/styles/Filter.style.js +1 -2
- package/build/cjs/components/Interpretations/InterpretationModal/Comment.js +3 -3
- package/build/cjs/components/Interpretations/InterpretationModal/CommentAddForm.js +3 -3
- package/build/cjs/components/Interpretations/InterpretationModal/CommentDeleteButton.js +3 -3
- package/build/cjs/components/Interpretations/InterpretationModal/CommentUpdateForm.js +3 -3
- package/build/cjs/components/Interpretations/InterpretationModal/InterpretationModal.js +3 -3
- package/build/cjs/components/Interpretations/InterpretationModal/InterpretationThread.js +3 -3
- package/build/cjs/components/Interpretations/InterpretationsUnit/InterpretationForm.js +3 -3
- package/build/cjs/components/Interpretations/InterpretationsUnit/InterpretationList.js +1 -1
- package/build/cjs/components/Interpretations/InterpretationsUnit/InterpretationsUnit.js +4 -5
- package/build/cjs/components/Interpretations/common/Interpretation/Interpretation.js +3 -3
- package/build/cjs/components/Interpretations/common/Interpretation/InterpretationDeleteButton.js +1 -1
- package/build/cjs/components/Interpretations/common/Interpretation/InterpretationSharingLink.js +3 -3
- package/build/cjs/components/Interpretations/common/Interpretation/InterpretationUpdateForm.js +3 -3
- package/build/cjs/components/Interpretations/common/Message/Message.js +1 -1
- package/build/cjs/components/Interpretations/common/Message/MessageButtonStrip.js +1 -1
- package/build/cjs/components/Interpretations/common/Message/MessageEditorContainer.js +1 -1
- package/build/cjs/components/Interpretations/common/Message/MessageIconButton.js +1 -1
- package/build/cjs/components/Interpretations/common/Message/MessageInput.js +5 -6
- package/build/cjs/components/Interpretations/common/Message/MessageStatsBar.js +1 -1
- package/build/cjs/components/LegendKey/LegendKey.js +2 -3
- package/build/cjs/components/LegendKey/styles/LegendKey.style.js +1 -2
- package/build/cjs/components/OfflineTooltip.js +1 -1
- package/build/cjs/components/OpenFileDialog/CreatedByFilter.js +5 -9
- package/build/cjs/components/OpenFileDialog/CustomSelectOption.js +2 -3
- package/build/cjs/components/OpenFileDialog/DateField.js +2 -3
- package/build/cjs/components/OpenFileDialog/FileList.js +2 -3
- package/build/cjs/components/OpenFileDialog/NameFilter.js +2 -3
- package/build/cjs/components/OpenFileDialog/OpenFileDialog.js +4 -5
- package/build/cjs/components/OpenFileDialog/OpenFileDialog.styles.js +1 -2
- package/build/cjs/components/OpenFileDialog/PaginationControls.js +2 -3
- package/build/cjs/components/OpenFileDialog/VisTypeFilter.js +2 -3
- package/build/cjs/components/OpenFileDialog/styles/CustomSelectOption.style.js +1 -2
- package/build/cjs/components/OpenFileDialog/utils.js +5 -9
- package/build/cjs/components/Options/VisualizationOptions.js +4 -5
- package/build/cjs/components/Options/styles/VisualizationOptions.style.js +17 -32
- package/build/cjs/components/OrgUnitDimension/OrgUnitDimension.js +6 -10
- package/build/cjs/components/OrgUnitDimension/__tests__/OrgUnitDimension.spec.js +60 -0
- package/build/cjs/components/OrgUnitDimension/__tests__/__snapshots__/OrgUnitDimension.spec.js.snap +94 -0
- package/build/cjs/components/OrgUnitDimension/styles/OrgUnitDimension.style.js +1 -2
- package/build/cjs/components/PeriodDimension/FixedPeriodFilter.js +2 -3
- package/build/cjs/components/PeriodDimension/FixedPeriodSelect.js +7 -8
- package/build/cjs/components/PeriodDimension/PeriodDimension.js +2 -3
- package/build/cjs/components/PeriodDimension/PeriodTransfer.js +5 -6
- package/build/cjs/components/PeriodDimension/RelativePeriodFilter.js +2 -3
- package/build/cjs/components/PeriodDimension/__tests__/FixedPeriodSingleSelect.spec.js +2 -2
- package/build/cjs/components/PeriodDimension/__tests__/PeriodDimension.spec.js +2 -2
- package/build/cjs/components/PeriodDimension/__tests__/PeriodSelector.spec.js +2 -2
- package/build/cjs/components/PeriodDimension/styles/FixedPeriodSelect.style.js +1 -2
- package/build/cjs/components/PeriodDimension/styles/PeriodFilter.style.js +1 -2
- package/build/cjs/components/PeriodDimension/utils/fixedPeriods.js +1 -2
- package/build/cjs/components/PeriodDimension/utils/index.js +19 -38
- package/build/cjs/components/PeriodDimension/utils/relativePeriods.js +1 -1
- package/build/cjs/components/PivotTable/PivotTable.js +4 -5
- package/build/cjs/components/PivotTable/PivotTableBody.js +1 -1
- package/build/cjs/components/PivotTable/PivotTableCell.js +3 -4
- package/build/cjs/components/PivotTable/PivotTableClippedAxis.js +1 -1
- package/build/cjs/components/PivotTable/PivotTableColumnHeaderCell.js +1 -1
- package/build/cjs/components/PivotTable/PivotTableColumnHeaders.js +1 -1
- package/build/cjs/components/PivotTable/PivotTableContainer.js +2 -3
- package/build/cjs/components/PivotTable/PivotTableDimensionLabelCell.js +1 -1
- package/build/cjs/components/PivotTable/PivotTableEmptyCell.js +3 -4
- package/build/cjs/components/PivotTable/PivotTableEmptyRow.js +1 -1
- package/build/cjs/components/PivotTable/PivotTableEngineContext.js +4 -5
- package/build/cjs/components/PivotTable/PivotTableHead.js +1 -1
- package/build/cjs/components/PivotTable/PivotTableHeaderCell.js +1 -1
- package/build/cjs/components/PivotTable/PivotTableRow.js +1 -1
- package/build/cjs/components/PivotTable/PivotTableRowHeaderCell.js +1 -1
- package/build/cjs/components/PivotTable/PivotTableSortIcon.js +1 -1
- package/build/cjs/components/PivotTable/PivotTableTitleRow.js +3 -3
- package/build/cjs/components/PivotTable/PivotTableTitleRows.js +1 -1
- package/build/cjs/components/PivotTable/PivotTableValueCell.js +3 -3
- package/build/cjs/components/PivotTable/icons/SortIconAscending.js +1 -1
- package/build/cjs/components/PivotTable/icons/SortIconDescending.js +1 -1
- package/build/cjs/components/PivotTable/icons/SortIconIdle.js +1 -1
- package/build/cjs/components/PivotTable/styles/PivotTable.style.js +3 -6
- package/build/cjs/components/RichText/Editor/Editor.js +4 -5
- package/build/cjs/components/RichText/Editor/__tests__/Editor.spec.js +2 -2
- package/build/cjs/components/RichText/Editor/markdownHandler.js +9 -18
- package/build/cjs/components/RichText/Editor/styles/Editor.style.js +4 -8
- package/build/cjs/components/RichText/Parser/MdParser.js +1 -1
- package/build/cjs/components/RichText/Parser/Parser.js +3 -3
- package/build/cjs/components/RichText/Parser/__tests__/Parser.spec.js +2 -2
- package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuBar.js +3 -3
- package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuDropdown.js +3 -3
- package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuList.js +3 -3
- package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuListItem.js +4 -4
- package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuListItem.styles.js +1 -2
- package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuBar.spec.js +4 -4
- package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuDropdown.spec.js +3 -3
- package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuList.spec.js +7 -7
- package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuListItem.spec.js +5 -5
- package/build/cjs/components/Toolbar/InterpretationsAndDetailsToggler.js +1 -1
- package/build/cjs/components/Toolbar/MenuButton.styles.js +1 -2
- package/build/cjs/components/Toolbar/Toolbar.js +1 -1
- package/build/cjs/components/Toolbar/ToolbarSidebar.js +1 -1
- package/build/cjs/components/Toolbar/UpdateButton.js +2 -2
- package/build/cjs/components/Toolbar/__tests__/InterpretationsAndDetailsToggler.spec.js +6 -6
- package/build/cjs/components/Toolbar/__tests__/Toolbar.spec.js +3 -3
- package/build/cjs/components/Toolbar/__tests__/ToolbarSidebar.spec.js +4 -4
- package/build/cjs/components/Toolbar/__tests__/UpdateButton.spec.js +5 -5
- package/build/cjs/components/TransferOption.js +1 -1
- package/build/cjs/components/TranslationDialog/TranslationModal/LocalesSelect.js +1 -1
- package/build/cjs/components/TranslationDialog/TranslationModal/TranslationForm.js +3 -3
- package/build/cjs/components/TranslationDialog/TranslationModal/TranslationModal.js +3 -3
- package/build/cjs/components/TranslationDialog/TranslationModal/TranslationModalActions.js +1 -1
- package/build/cjs/components/TranslationDialog/TranslationModal/useTranslationsResults.js +1 -1
- package/build/cjs/components/UserMention/UserList.js +1 -1
- package/build/cjs/components/UserMention/UserMentionWrapper.js +3 -4
- package/build/cjs/components/UserMention/styles/UserMentionWrapper.style.js +4 -6
- package/build/cjs/components/UserMention/useUserSearchResults.js +1 -1
- package/build/cjs/components/VisTypeIcon.js +2 -3
- package/build/cjs/components/styles/DimensionSelector.style.js +1 -2
- package/build/cjs/components/styles/DimensionsPanel.style.js +2 -3
- package/build/cjs/components/styles/OfflineTooltip.style.js +1 -2
- package/build/cjs/components/styles/TransferOption.style.js +1 -2
- package/build/cjs/index.js +3 -3
- package/build/cjs/locales/index.js +2 -3
- package/build/cjs/locales/pt/translations.json +251 -242
- package/build/cjs/locales/vi/translations.json +16 -12
- package/build/cjs/locales/zh/translations.json +2 -0
- package/build/cjs/modules/__tests__/getOuLevelAndGroupText.spec.js +9 -0
- package/build/cjs/modules/axis.js +1 -1
- package/build/cjs/modules/dataSets.js +8 -14
- package/build/cjs/modules/dataTypes.js +24 -47
- package/build/cjs/modules/dimensionListItem.js +1 -1
- package/build/cjs/modules/dimensionSelectorHelper.js +3 -6
- package/build/cjs/modules/expressions.js +6 -11
- package/build/cjs/modules/fontStyle.js +19 -37
- package/build/cjs/modules/getAdaptedUiLayoutByType.js +1 -1
- package/build/cjs/modules/getOuLevelAndGroupText.js +5 -2
- package/build/cjs/modules/hash.js +1 -1
- package/build/cjs/modules/layout/axis.js +10 -16
- package/build/cjs/modules/layout/dimension.js +11 -19
- package/build/cjs/modules/layout/item.js +5 -7
- package/build/cjs/modules/layout/layout.js +3 -4
- package/build/cjs/modules/layout/testResources.js +39 -71
- package/build/cjs/modules/layoutTypes.js +8 -16
- package/build/cjs/modules/layoutUiRules/rules.js +4 -7
- package/build/cjs/modules/legends.js +4 -8
- package/build/cjs/modules/list.js +1 -1
- package/build/cjs/modules/ouIdHelper/index.js +5 -9
- package/build/cjs/modules/outliers/index.js +13 -25
- package/build/cjs/modules/outliers/iqr.js +5 -9
- package/build/cjs/modules/outliers/modZScore.js +2 -3
- package/build/cjs/modules/outliers/normalization.js +2 -2
- package/build/cjs/modules/outliers/zScore.js +2 -3
- package/build/cjs/modules/pivotTable/AdaptiveClippingController.js +3 -3
- package/build/cjs/modules/pivotTable/PivotTableEngine.js +4 -4
- package/build/cjs/modules/pivotTable/clipAxis.js +1 -1
- package/build/cjs/modules/pivotTable/pivotTableConstants.js +32 -62
- package/build/cjs/modules/pivotTable/useParentSize.js +1 -1
- package/build/cjs/modules/pivotTable/useScrollPosition.js +1 -1
- package/build/cjs/modules/pivotTable/useSortableColumns.js +0 -1
- package/build/cjs/modules/predefinedDimensions.js +6 -11
- package/build/cjs/modules/valueTypes.js +21 -42
- package/build/cjs/modules/visTypes.js +24 -47
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/addTrendLines.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/axis.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/chart/default.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/chart/index.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/chart/singleValue.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/customAxes.js +2 -4
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/customSVGOptions/index.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/customSVGOptions/singleValue/getSingleValueFormattedValue.js +1 -2
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/events/index.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/events/loadCustomSVG/index.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/events/loadCustomSVG/singleValue/constants.js +1 -2
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/events/loadCustomSVG/singleValue/index.js +1 -2
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/events/loadCustomSVG/singleValue/styles.js +3 -5
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/exporting.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/getAxisTitle.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/getCategories.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/getCumulativeData.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/getFormatter.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/getSortedConfig.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/getSteps.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/getTrimmedConfig.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/index.js +3 -3
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/legendSet.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/pane/index.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/plotOptions.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/series/index.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/series/scatter.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/subtitle/__tests__/singleValue.spec.js +1 -2
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/subtitle/gauge.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/subtitle/index.js +5 -5
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/subtitle/singleValue.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/title/index.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/title/scatter.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/title/singleValue.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/title/yearOverYear.js +3 -3
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/xAxis/index.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/xAxis/radar.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/xAxis/scatter.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/xAxis/twoCategory.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/xAxis/yearOnYear.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/yAxis/gauge.js +1 -1
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/yAxis/index.js +3 -3
- package/build/cjs/visualizations/config/adapters/index.js +3 -4
- package/build/cjs/visualizations/config/generators/highcharts/index.js +1 -5
- package/build/cjs/visualizations/config/generators/index.js +3 -4
- package/build/cjs/visualizations/config/index.js +1 -1
- package/build/cjs/visualizations/config/validators/index.js +3 -4
- package/build/cjs/visualizations/index.js +2 -3
- package/build/cjs/visualizations/store/adapters/dhis_highcharts/index.js +1 -1
- package/build/cjs/visualizations/store/adapters/dhis_highcharts/twoCategory.js +1 -1
- package/build/cjs/visualizations/store/adapters/index.js +3 -4
- package/build/cjs/visualizations/store/index.js +1 -1
- package/build/cjs/visualizations/store/validators/dhis/index.js +1 -1
- package/build/cjs/visualizations/store/validators/index.js +3 -4
- package/build/cjs/visualizations/util/__tests__/getFilterText.spec.js +1 -1
- package/build/cjs/visualizations/util/colors/colorSets.js +11 -20
- package/build/cjs/visualizations/util/colors/themes.js +3 -5
- package/build/es/__demo__/CalculationModal.stories.js +20 -6
- package/build/es/__demo__/DimensionsPanel.stories.js +43 -17
- package/build/es/__demo__/DynamicDimension.stories.js +18 -7
- package/build/es/__demo__/FileMenu.stories.js +15 -5
- package/build/es/__demo__/Filter.stories.js +8 -3
- package/build/es/__demo__/FixedPeriodSelect.stories.js +18 -7
- package/build/es/__demo__/InterpretationsUnit.stories.js +10 -5
- package/build/es/__demo__/OpenFileDialog.stories.js +34 -26
- package/build/es/__demo__/OrgUnitDimension.stories.js +61 -26
- package/build/es/__demo__/PeriodDimension.stories.js +44 -13
- package/build/es/__demo__/PivotTable.stories.js +249 -99
- package/build/es/__demo__/SingleValue.stories.js +10 -37
- package/build/es/__demo__/Toolbar.stories.js +8 -3
- package/build/es/api/analytics/AnalyticsResponse.js +0 -1
- package/build/es/components/DataDimension/Calculation/DataElementOption.js +1 -1
- package/build/es/components/DataDimension/Calculation/DndContext.js +3 -3
- package/build/es/components/DataDimension/Calculation/FormulaItem.js +1 -1
- package/build/es/components/DataDimension/Calculation/Operator.js +1 -1
- package/build/es/components/DataDimension/ItemSelector.js +1 -2
- package/build/es/components/DimensionMenu.js +3 -3
- package/build/es/components/DimensionsPanel/DimensionsPanel.js +3 -3
- package/build/es/components/DimensionsPanel/List/DimensionItem.js +4 -4
- package/build/es/components/DimensionsPanel/List/DimensionList.js +3 -3
- package/build/es/components/DimensionsPanel/List/__tests__/DimensionItem.spec.js +1 -1
- package/build/es/components/DimensionsPanel/__tests__/DimensionsPanel.spec.js +1 -1
- package/build/es/components/DynamicDimension/ItemSelector.js +1 -2
- package/build/es/components/FileMenu/__tests__/DeleteDialog.spec.js +1 -1
- package/build/es/components/FileMenu/__tests__/FileMenu.spec.js +1 -1
- package/build/es/components/FileMenu/__tests__/GetLinkDialog.spec.js +1 -1
- package/build/es/components/FileMenu/__tests__/RenameDialog.spec.js +1 -1
- package/build/es/components/FileMenu/__tests__/SaveAsDialog.spec.js +1 -1
- package/build/es/components/Filter/__tests__/Filter.spec.js +1 -1
- package/build/es/components/Interpretations/common/Message/MessageInput.js +1 -1
- package/build/es/components/OrgUnitDimension/OrgUnitDimension.js +2 -5
- package/build/es/components/OrgUnitDimension/__tests__/OrgUnitDimension.spec.js +57 -0
- package/build/es/components/OrgUnitDimension/__tests__/__snapshots__/OrgUnitDimension.spec.js.snap +94 -0
- package/build/es/components/PeriodDimension/FixedPeriodSelect.js +3 -3
- package/build/es/components/PeriodDimension/PeriodTransfer.js +1 -1
- package/build/es/components/PeriodDimension/__tests__/FixedPeriodSingleSelect.spec.js +1 -1
- package/build/es/components/PeriodDimension/__tests__/PeriodDimension.spec.js +1 -1
- package/build/es/components/PeriodDimension/__tests__/PeriodSelector.spec.js +1 -1
- package/build/es/components/PeriodDimension/utils/fixedPeriods.js +0 -1
- package/build/es/components/PivotTable/PivotTableCell.js +1 -1
- package/build/es/components/PivotTable/PivotTableEmptyCell.js +1 -1
- package/build/es/components/RichText/Editor/__tests__/Editor.spec.js +1 -1
- package/build/es/components/RichText/Parser/__tests__/Parser.spec.js +1 -1
- package/build/es/components/Toolbar/HoverMenuBar/HoverMenuListItem.js +1 -1
- package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuBar.spec.js +3 -3
- package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuDropdown.spec.js +2 -2
- package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuList.spec.js +6 -6
- package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuListItem.spec.js +4 -4
- package/build/es/components/Toolbar/UpdateButton.js +1 -1
- package/build/es/components/Toolbar/__tests__/InterpretationsAndDetailsToggler.spec.js +5 -5
- package/build/es/components/Toolbar/__tests__/Toolbar.spec.js +2 -2
- package/build/es/components/Toolbar/__tests__/ToolbarSidebar.spec.js +3 -3
- package/build/es/components/Toolbar/__tests__/UpdateButton.spec.js +4 -4
- package/build/es/components/UserMention/UserMentionWrapper.js +0 -1
- package/build/es/locales/pt/translations.json +251 -242
- package/build/es/locales/vi/translations.json +16 -12
- package/build/es/locales/zh/translations.json +2 -0
- package/build/es/modules/__tests__/getOuLevelAndGroupText.spec.js +9 -0
- package/build/es/modules/getOuLevelAndGroupText.js +4 -1
- package/build/es/modules/pivotTable/AdaptiveClippingController.js +3 -3
- package/build/es/modules/pivotTable/PivotTableEngine.js +3 -3
- package/build/es/modules/pivotTable/useSortableColumns.js +0 -1
- package/build/es/visualizations/config/adapters/dhis_highcharts/events/loadCustomSVG/singleValue/index.js +1 -2
- package/build/es/visualizations/config/adapters/dhis_highcharts/events/loadCustomSVG/singleValue/styles.js +2 -3
- package/build/es/visualizations/config/adapters/dhis_highcharts/plotOptions.js +2 -2
- package/build/es/visualizations/config/adapters/dhis_highcharts/series/scatter.js +2 -2
- package/build/es/visualizations/config/adapters/dhis_highcharts/subtitle/__tests__/singleValue.spec.js +0 -1
- package/build/es/visualizations/config/adapters/dhis_highcharts/subtitle/index.js +1 -1
- package/build/es/visualizations/config/adapters/dhis_highcharts/title/yearOverYear.js +1 -1
- package/build/es/visualizations/config/adapters/dhis_highcharts/xAxis/radar.js +2 -2
- package/build/es/visualizations/config/adapters/dhis_highcharts/yAxis/index.js +1 -1
- package/build/es/visualizations/config/generators/highcharts/index.js +0 -4
- package/package.json +13 -11
- package/build/cjs/visualizations/config/generators/highcharts/pdfExportBugFixPlugin/index.js +0 -13
- package/build/cjs/visualizations/config/generators/highcharts/pdfExportBugFixPlugin/nonASCIIFont.js +0 -17
- package/build/cjs/visualizations/config/generators/highcharts/pdfExportBugFixPlugin/textShadow.js +0 -289
- package/build/es/visualizations/config/generators/highcharts/pdfExportBugFixPlugin/index.js +0 -6
- package/build/es/visualizations/config/generators/highcharts/pdfExportBugFixPlugin/nonASCIIFont.js +0 -11
- package/build/es/visualizations/config/generators/highcharts/pdfExportBugFixPlugin/textShadow.js +0 -283
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"About this map": "",
|
|
19
19
|
"About this line list": "",
|
|
20
20
|
"About this visualization": "",
|
|
21
|
+
"About this event chart": "",
|
|
22
|
+
"About this event report": "",
|
|
21
23
|
"This app could not retrieve required data.": "",
|
|
22
24
|
"Network error": "Lỗi mạng",
|
|
23
25
|
"Data / Edit calculation": "",
|
|
@@ -132,17 +134,6 @@
|
|
|
132
134
|
"Manage sharing": "Quản lý chia sẻ",
|
|
133
135
|
"Could not update interpretation": "",
|
|
134
136
|
"Enter interpretation text": "",
|
|
135
|
-
"Bold text": "",
|
|
136
|
-
"Italic text": "",
|
|
137
|
-
"Link to a URL": "",
|
|
138
|
-
"Mention a user": "",
|
|
139
|
-
"Add emoji": "",
|
|
140
|
-
"Preview": "Xem thử",
|
|
141
|
-
"Back to write mode": "",
|
|
142
|
-
"Too many results. Try refining the search.": "",
|
|
143
|
-
"Search for a user": "",
|
|
144
|
-
"Searching for \"{{- searchText}}\"": "",
|
|
145
|
-
"No results found": "Không tìm thấy kết quả nào",
|
|
146
137
|
"Not available offline": "",
|
|
147
138
|
"Created by": "Được tạo bởi",
|
|
148
139
|
"Anyone": "Bất kỳ ai",
|
|
@@ -215,7 +206,7 @@
|
|
|
215
206
|
"Quarterly": "Hàng quý",
|
|
216
207
|
"Six-monthly": "Hàng 6 tháng",
|
|
217
208
|
"Six-monthly April": "Hàng 6 tháng - tháng 4",
|
|
218
|
-
"Yearly": "
|
|
209
|
+
"Yearly": "Hàng năm",
|
|
219
210
|
"Financial year (Start November)": "Năm tài chính (Bắt đầu từ tháng 11)",
|
|
220
211
|
"Financial year (Start October)": "Năm Tài Chính - Tháng 10",
|
|
221
212
|
"Financial year (Start July)": "Năm Tài Chính - Tháng 7",
|
|
@@ -271,6 +262,14 @@
|
|
|
271
262
|
"Six-months": "Sáu-tháng",
|
|
272
263
|
"Financial Years": "Năm tài chính",
|
|
273
264
|
"Years": "Năm",
|
|
265
|
+
"Value: {{value}}": "",
|
|
266
|
+
"Bold text": "",
|
|
267
|
+
"Italic text": "",
|
|
268
|
+
"Link to a URL": "",
|
|
269
|
+
"Mention a user": "",
|
|
270
|
+
"Add emoji": "",
|
|
271
|
+
"Preview": "Xem thử",
|
|
272
|
+
"Back to write mode": "",
|
|
274
273
|
"Interpretations and details": "",
|
|
275
274
|
"Translating to": "",
|
|
276
275
|
"Choose a locale": "",
|
|
@@ -281,6 +280,10 @@
|
|
|
281
280
|
"Cannot save while offline": "",
|
|
282
281
|
"Could not load translations": "",
|
|
283
282
|
"Retry": "",
|
|
283
|
+
"Too many results. Try refining the search.": "",
|
|
284
|
+
"Search for a user": "",
|
|
285
|
+
"Searching for \"{{- searchText}}\"": "",
|
|
286
|
+
"No results found": "Không tìm thấy kết quả nào",
|
|
284
287
|
"Series": "Chuỗi Dữ Liệu",
|
|
285
288
|
"Category": "Phân loại",
|
|
286
289
|
"Filter": "Lọc",
|
|
@@ -350,6 +353,7 @@
|
|
|
350
353
|
"{{thresholdFactor}} × Modified Z-score high": "",
|
|
351
354
|
"{{thresholdFactor}} × Z-score low": "",
|
|
352
355
|
"{{thresholdFactor}} × Z-score high": "",
|
|
356
|
+
"Not applicable": "",
|
|
353
357
|
"Data": "Lấy dữ liệu",
|
|
354
358
|
"Organisation unit": "Đơn vị",
|
|
355
359
|
"Assigned Categories": "Phân loại được chỉ định",
|
|
@@ -262,6 +262,7 @@
|
|
|
262
262
|
"Six-months": "六个月",
|
|
263
263
|
"Financial Years": "财政年度",
|
|
264
264
|
"Years": "年",
|
|
265
|
+
"Value: {{value}}": "值{{value}}",
|
|
265
266
|
"Bold text": "粗体文字",
|
|
266
267
|
"Italic text": "斜体文字",
|
|
267
268
|
"Link to a URL": "链接到 URL",
|
|
@@ -352,6 +353,7 @@
|
|
|
352
353
|
"{{thresholdFactor}} × Modified Z-score high": "{{thresholdFactor}}×修改后的Z分数高值",
|
|
353
354
|
"{{thresholdFactor}} × Z-score low": "{{thresholdFactor}}×Z分数低",
|
|
354
355
|
"{{thresholdFactor}} × Z-score high": "{{thresholdFactor}}×Z分数高",
|
|
356
|
+
"Not applicable": "不适用",
|
|
355
357
|
"Data": "数据",
|
|
356
358
|
"Organisation unit": "机构",
|
|
357
359
|
"Assigned Categories": "指定的分类",
|
|
@@ -51,4 +51,13 @@ describe('getOuLevelAndGroupText', () => {
|
|
|
51
51
|
}];
|
|
52
52
|
expect(getOuLevelAndGroupText(filter, metaData)).toEqual('Fruit and Veggies groups - Second floor levels');
|
|
53
53
|
});
|
|
54
|
+
it('grabs name for user orgunits from items when not present in metaData', () => {
|
|
55
|
+
filter.items = [{
|
|
56
|
+
id: 'USER_ORGUNIT',
|
|
57
|
+
name: 'User organisation unit'
|
|
58
|
+
}, {
|
|
59
|
+
id: 'LEVEL-2nd-floor'
|
|
60
|
+
}];
|
|
61
|
+
expect(getOuLevelAndGroupText(filter, metaData)).toEqual('Second floor levels in User organisation unit');
|
|
62
|
+
});
|
|
54
63
|
});
|
|
@@ -20,7 +20,10 @@ export const getOuLevelAndGroupText = (filter, metaData) => {
|
|
|
20
20
|
return filterFragments.join(' - ');
|
|
21
21
|
};
|
|
22
22
|
const getLevelAndGroupText = (items, metaData, isLevel) => {
|
|
23
|
-
const getNameFromMetadata = id =>
|
|
23
|
+
const getNameFromMetadata = id => {
|
|
24
|
+
var _items$find;
|
|
25
|
+
return metaData.items[id] ? metaData.items[id].name : ((_items$find = items.find(item => item.id === id)) === null || _items$find === void 0 ? void 0 : _items$find.name) || id;
|
|
26
|
+
};
|
|
24
27
|
const dynamicOuItems = items.filter(item => isLevel ? ouIdHelper.hasLevelPrefix(item.id) : ouIdHelper.hasGroupPrefix(item.id));
|
|
25
28
|
const lastItem = dynamicOuItems.length > 1 ? dynamicOuItems.pop() : null;
|
|
26
29
|
const dynamicOuNames = dynamicOuItems.map(item => getNameFromMetadata(ouIdHelper.removePrefix(item.id))).join(', ');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function _defineProperty(
|
|
2
|
-
function _toPropertyKey(
|
|
3
|
-
function _toPrimitive(
|
|
1
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
import { measureTextWithWrapping } from './measureText.js';
|
|
5
5
|
import { CLIPPED_AXIS_PARTITION_SIZE_PX, CLIPPED_CELL_MIN_SIZE } from './pivotTableConstants.js';
|
|
6
6
|
export class AdaptiveClippingController {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function _defineProperty(
|
|
2
|
-
function _toPropertyKey(
|
|
3
|
-
function _toPrimitive(
|
|
1
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
import i18n from '@dhis2/d2-i18n';
|
|
5
5
|
import times from 'lodash/times';
|
|
6
6
|
import { DIMENSION_TYPE_DATA, DIMENSION_TYPE_DATA_ELEMENT_GROUP_SET, DIMENSION_TYPE_ORGANISATION_UNIT, DIMENSION_TYPE_PERIOD } from '../dataTypes.js';
|
|
@@ -4,14 +4,13 @@ import { getAvailableSpace } from './getAvailableSpace.js';
|
|
|
4
4
|
import { positionElements } from './positionElements.js';
|
|
5
5
|
import { DynamicStyles } from './styles.js';
|
|
6
6
|
export default function loadSingleValueSVG() {
|
|
7
|
-
var _this$userOptions;
|
|
8
7
|
const {
|
|
9
8
|
formattedValue,
|
|
10
9
|
icon,
|
|
11
10
|
subText,
|
|
12
11
|
fontColor
|
|
13
12
|
} = this.userOptions.customSVGOptions;
|
|
14
|
-
const dynamicStyles = new DynamicStyles(
|
|
13
|
+
const dynamicStyles = new DynamicStyles();
|
|
15
14
|
const valueElement = this.renderer.text(formattedValue).attr('data-test', 'visualization-primary-value').css({
|
|
16
15
|
color: fontColor,
|
|
17
16
|
visibility: 'hidden'
|
|
@@ -69,15 +69,14 @@ const spacings = [{
|
|
|
69
69
|
}];
|
|
70
70
|
export const MIN_SIDE_WHITESPACE = 4;
|
|
71
71
|
export class DynamicStyles {
|
|
72
|
-
constructor(
|
|
72
|
+
constructor() {
|
|
73
73
|
this.currentIndex = 0;
|
|
74
|
-
this.isPdfExport = isPdfExport;
|
|
75
74
|
}
|
|
76
75
|
getStyle() {
|
|
77
76
|
return {
|
|
78
77
|
value: {
|
|
79
78
|
...valueStyles[this.currentIndex],
|
|
80
|
-
'font-weight':
|
|
79
|
+
'font-weight': '300'
|
|
81
80
|
},
|
|
82
81
|
subText: subTextStyles[this.currentIndex],
|
|
83
82
|
spacing: spacings[this.currentIndex]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import i18n from '../../../../locales/index.js';
|
|
2
2
|
import { VIS_TYPE_COLUMN, VIS_TYPE_SCATTER, VIS_TYPE_STACKED_COLUMN, VIS_TYPE_BAR, VIS_TYPE_STACKED_BAR } from '../../../../modules/visTypes.js';
|
|
3
3
|
const MAX_LABELS = 10;
|
|
4
|
-
export default
|
|
4
|
+
export default _ref => {
|
|
5
5
|
let {
|
|
6
6
|
visType,
|
|
7
7
|
xAxisName,
|
|
@@ -66,4 +66,4 @@ export default (_ref => {
|
|
|
66
66
|
default:
|
|
67
67
|
return null;
|
|
68
68
|
}
|
|
69
|
-
}
|
|
69
|
+
};
|
|
@@ -2,7 +2,7 @@ import i18n from '../../../../../locales/index.js';
|
|
|
2
2
|
const DEFAULT_COLOR = '#a8bf24';
|
|
3
3
|
const OUTLIER_COLOR = 'red';
|
|
4
4
|
const POINT_MARKER_SYMBOL = 'circle';
|
|
5
|
-
export default
|
|
5
|
+
export default extraOptions => {
|
|
6
6
|
const series = [];
|
|
7
7
|
if (extraOptions.outlierHelper) {
|
|
8
8
|
var _helper$vars$normaliz;
|
|
@@ -78,4 +78,4 @@ export default (extraOptions => {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
return series;
|
|
81
|
-
}
|
|
81
|
+
};
|
|
@@ -19,7 +19,7 @@ const DASHBOARD_SUBTITLE = {
|
|
|
19
19
|
function getDefault(layout, dashboard, filterTitle) {
|
|
20
20
|
return dashboard || isString(layout.title) ? filterTitle : undefined;
|
|
21
21
|
}
|
|
22
|
-
export default function (series, layout, metaData, extraOptions) {
|
|
22
|
+
export default function subtitle(series, layout, metaData, extraOptions) {
|
|
23
23
|
if (layout.hideSubtitle) {
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import getFilterText from '../../../../util/getFilterText.js';
|
|
2
|
-
export default function (layout, metaData, dashboard) {
|
|
2
|
+
export default function yearOverYear(layout, metaData, dashboard) {
|
|
3
3
|
const titleFragments = [];
|
|
4
4
|
if (layout.columns && layout.columns.length && !dashboard) {
|
|
5
5
|
titleFragments.push(getFilterText(layout.columns, metaData));
|
|
@@ -3,11 +3,11 @@ import { FONT_STYLE_HORIZONTAL_AXIS_TITLE, TEXT_ALIGN_CENTER } from '../../../..
|
|
|
3
3
|
import { isVerticalType, VIS_TYPE_RADAR } from '../../../../../modules/visTypes.js';
|
|
4
4
|
import { getTextAlignOption } from '../getTextAlignOption.js';
|
|
5
5
|
import { getDefault } from './index.js';
|
|
6
|
-
export default (
|
|
6
|
+
export default (store, layout) => {
|
|
7
7
|
var _config$title;
|
|
8
8
|
const config = getDefault(store, layout);
|
|
9
9
|
if (isString((_config$title = config.title) === null || _config$title === void 0 ? void 0 : _config$title.text) && config.title.align === getTextAlignOption(TEXT_ALIGN_CENTER, FONT_STYLE_HORIZONTAL_AXIS_TITLE, isVerticalType(VIS_TYPE_RADAR))) {
|
|
10
10
|
config.title.textAlign = 'right';
|
|
11
11
|
}
|
|
12
12
|
return config;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
@@ -99,7 +99,7 @@ function getDefault(layout, series, extraOptions) {
|
|
|
99
99
|
});
|
|
100
100
|
return axes;
|
|
101
101
|
}
|
|
102
|
-
export default function (layout, series, extraOptions) {
|
|
102
|
+
export default function yAxis(layout, series, extraOptions) {
|
|
103
103
|
switch (layout.type) {
|
|
104
104
|
case VIS_TYPE_SINGLE_VALUE:
|
|
105
105
|
return null;
|
|
@@ -3,20 +3,16 @@ import HM from 'highcharts/highcharts-more';
|
|
|
3
3
|
import HB from 'highcharts/modules/boost';
|
|
4
4
|
import HE from 'highcharts/modules/exporting';
|
|
5
5
|
import HNDTD from 'highcharts/modules/no-data-to-display';
|
|
6
|
-
import HOE from 'highcharts/modules/offline-exporting';
|
|
7
6
|
import HPF from 'highcharts/modules/pattern-fill';
|
|
8
7
|
import HSG from 'highcharts/modules/solid-gauge';
|
|
9
|
-
import PEBFP from './pdfExportBugFixPlugin/index.js';
|
|
10
8
|
|
|
11
9
|
// apply
|
|
12
10
|
HM(H);
|
|
13
11
|
HSG(H);
|
|
14
12
|
HNDTD(H);
|
|
15
13
|
HE(H);
|
|
16
|
-
HOE(H);
|
|
17
14
|
HPF(H);
|
|
18
15
|
HB(H);
|
|
19
|
-
PEBFP(H);
|
|
20
16
|
|
|
21
17
|
/* Whitelist some additional SVG attributes here. Without this,
|
|
22
18
|
* the PDF export for the SingleValue visualization breaks. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2/analytics",
|
|
3
|
-
"version": "26.9.
|
|
3
|
+
"version": "26.9.3",
|
|
4
4
|
"main": "./build/cjs/index.js",
|
|
5
5
|
"module": "./build/es/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "d2-app-scripts build",
|
|
23
|
-
"build-storybook": "build
|
|
24
|
-
"start-storybook": "
|
|
23
|
+
"build-storybook": "storybook build",
|
|
24
|
+
"start-storybook": "storybook dev --port 5000",
|
|
25
25
|
"start": "yarn start-storybook",
|
|
26
26
|
"test": "d2-app-scripts test",
|
|
27
27
|
"lint": "d2-style check",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@dhis2/app-runtime": "^3.9.0",
|
|
34
|
-
"@dhis2/cli-app-scripts": "^
|
|
35
|
-
"@dhis2/cli-style": "^10.4
|
|
34
|
+
"@dhis2/cli-app-scripts": "^11.7.4",
|
|
35
|
+
"@dhis2/cli-style": "^10.7.4",
|
|
36
36
|
"@dhis2/d2-i18n": "^1.1.0",
|
|
37
37
|
"@dhis2/ui": "^9.4.4",
|
|
38
|
-
"@
|
|
39
|
-
"@storybook/
|
|
40
|
-
"@storybook/
|
|
41
|
-
"@storybook/react": "^
|
|
38
|
+
"@mihkeleidast/storybook-addon-source": "^1.0.1",
|
|
39
|
+
"@storybook/preset-create-react-app": "^8.3.6",
|
|
40
|
+
"@storybook/react": "^8.3.6",
|
|
41
|
+
"@storybook/react-webpack5": "^8.3.6",
|
|
42
42
|
"@testing-library/jest-dom": "^5.16.5",
|
|
43
43
|
"@testing-library/react": "^12.1.5",
|
|
44
44
|
"enzyme": "^3.9.0",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"fs-extra": "^10.1.0",
|
|
47
47
|
"jest-enzyme": "^7.0.2",
|
|
48
48
|
"prop-types": "^15",
|
|
49
|
+
"storybook": "^8.3.6",
|
|
49
50
|
"styled-jsx": "^4.0.1"
|
|
50
51
|
},
|
|
51
52
|
"peerDependencies": {
|
|
@@ -64,7 +65,7 @@
|
|
|
64
65
|
"@dnd-kit/utilities": "^3.2.1",
|
|
65
66
|
"@react-hook/debounce": "^4.0.0",
|
|
66
67
|
"classnames": "^2.3.1",
|
|
67
|
-
"crypto-js": "^4.
|
|
68
|
+
"crypto-js": "^4.2.0",
|
|
68
69
|
"d2-utilizr": "^0.2.16",
|
|
69
70
|
"d3-color": "^1.2.3",
|
|
70
71
|
"highcharts": "^10.3.3",
|
|
@@ -75,7 +76,8 @@
|
|
|
75
76
|
"resize-observer-polyfill": "^1.5.1"
|
|
76
77
|
},
|
|
77
78
|
"resolutions": {
|
|
78
|
-
"@dhis2/ui": "^9.2.0"
|
|
79
|
+
"@dhis2/ui": "^9.2.0",
|
|
80
|
+
"eslint": "^7.32.0"
|
|
79
81
|
},
|
|
80
82
|
"files": [
|
|
81
83
|
"build"
|
package/build/cjs/visualizations/config/generators/highcharts/pdfExportBugFixPlugin/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
var _nonASCIIFont = _interopRequireDefault(require("./nonASCIIFont.js"));
|
|
8
|
-
var _textShadow = _interopRequireDefault(require("./textShadow.js"));
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
function _default(H) {
|
|
11
|
-
(0, _textShadow.default)(H);
|
|
12
|
-
(0, _nonASCIIFont.default)(H);
|
|
13
|
-
}
|
package/build/cjs/visualizations/config/generators/highcharts/pdfExportBugFixPlugin/nonASCIIFont.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
/* This is a workaround for https://github.com/highcharts/highcharts/issues/22008
|
|
8
|
-
* We add some transparent text in a non-ASCII script to the chart to prevent
|
|
9
|
-
* the chart from being exported in a serif font */
|
|
10
|
-
|
|
11
|
-
function _default(H) {
|
|
12
|
-
H.addEvent(H.Chart, 'load', function () {
|
|
13
|
-
this.renderer.text('모', 20, 20).attr({
|
|
14
|
-
opacity: 0
|
|
15
|
-
}).add();
|
|
16
|
-
});
|
|
17
|
-
}
|