@dhis2/analytics 28.0.3 → 28.0.5
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__/DataDimension.stories.js +1 -2
- package/build/cjs/__demo__/Filter.stories.js +1 -2
- package/build/cjs/__demo__/FixedPeriodSelect.stories.js +1 -2
- package/build/cjs/__demo__/OpenFileDialog.stories.js +19 -1
- package/build/cjs/__demo__/OrgUnitDimension.stories.js +1 -2
- package/build/cjs/__demo__/PivotTable.stories.js +166 -224
- package/build/cjs/__demo__/ScatterPlotPdfExport.stories.js +1 -2
- package/build/cjs/__demo__/SingleValue.stories.js +1 -2
- package/build/cjs/__demo__/Toolbar.stories.js +1 -2
- package/build/cjs/api/__tests__/dimensions.spec.js +1 -2
- package/build/cjs/api/analytics/Analytics.js +8 -9
- package/build/cjs/api/analytics/AnalyticsBase.js +58 -77
- package/build/cjs/api/analytics/AnalyticsRequest.js +1 -2
- package/build/cjs/api/analytics/AnalyticsRequestBase.js +18 -21
- package/build/cjs/api/analytics/AnalyticsRequestPropertiesMixin.js +19 -38
- package/build/cjs/api/analytics/AnalyticsResponseHeader.js +5 -7
- package/build/cjs/api/analytics/__tests__/AnalyticsBase.spec.js +9 -12
- package/build/cjs/api/analytics/__tests__/AnalyticsRequest.spec.js +8 -2
- package/build/cjs/api/analytics/utils.js +11 -17
- package/build/cjs/api/dimensions.js +119 -148
- package/build/cjs/api/expression.js +39 -60
- package/build/cjs/api/organisationUnits.js +23 -35
- package/build/cjs/components/AboutAOUnit/AboutAOUnit.js +12 -20
- package/build/cjs/components/CachedDataQueryProvider.js +7 -9
- package/build/cjs/components/DashboardPluginWrapper/DashboardPluginWrapper.js +18 -22
- package/build/cjs/components/DataDimension/Calculation/CalculationModal.js +44 -61
- package/build/cjs/components/DataDimension/Calculation/DataElementOption.js +5 -6
- package/build/cjs/components/DataDimension/Calculation/DataElementSelector.js +29 -38
- package/build/cjs/components/DataDimension/Calculation/DndContext.js +29 -37
- package/build/cjs/components/DataDimension/Calculation/DraggingItem.js +5 -6
- package/build/cjs/components/DataDimension/Calculation/DropZone.js +4 -5
- package/build/cjs/components/DataDimension/Calculation/FormulaField.js +29 -32
- package/build/cjs/components/DataDimension/Calculation/FormulaItem.js +14 -16
- package/build/cjs/components/DataDimension/Calculation/MathOperatorSelector.js +23 -29
- package/build/cjs/components/DataDimension/Calculation/Operator.js +6 -7
- package/build/cjs/components/DataDimension/DataDimension.js +20 -32
- package/build/cjs/components/DataDimension/Info/CalculationInfo.js +14 -22
- package/build/cjs/components/DataDimension/Info/DataElementInfo.js +23 -36
- package/build/cjs/components/DataDimension/Info/DataElementOperandInfo.js +30 -44
- package/build/cjs/components/DataDimension/Info/DataSetInfo.js +26 -39
- package/build/cjs/components/DataDimension/Info/EventDataItemInfo.js +21 -34
- package/build/cjs/components/DataDimension/Info/IndicatorInfo.js +21 -32
- package/build/cjs/components/DataDimension/Info/InfoPopover.js +6 -7
- package/build/cjs/components/DataDimension/Info/InfoTable.js +39 -52
- package/build/cjs/components/DataDimension/Info/OptionInfo.js +13 -20
- package/build/cjs/components/DataDimension/Info/ProgramIndicatorInfo.js +46 -58
- package/build/cjs/components/DataDimension/ItemOptionsSelector/ItemOptionsSelector.js +22 -32
- package/build/cjs/components/DataDimension/ItemSelector/DataTypeSelector.js +6 -7
- package/build/cjs/components/DataDimension/ItemSelector/DetailSelector.js +5 -6
- package/build/cjs/components/DataDimension/ItemSelector/GroupSelector.js +10 -12
- package/build/cjs/components/DataDimension/ItemSelector/ItemSelector.js +86 -104
- package/build/cjs/components/DataDimension/ItemSelector/MetricSelector.js +5 -6
- package/build/cjs/components/DataDimension/SourceEmptyPlaceholder.js +10 -13
- package/build/cjs/components/DataDimension/TransferOption.js +35 -39
- package/build/cjs/components/DimensionMenu.js +13 -14
- package/build/cjs/components/DimensionsPanel/DimensionsPanel.js +8 -9
- package/build/cjs/components/DimensionsPanel/List/DimensionItem.js +12 -13
- package/build/cjs/components/DimensionsPanel/List/DimensionList.js +12 -11
- package/build/cjs/components/DimensionsPanel/List/OptionsButton.js +8 -11
- package/build/cjs/components/DimensionsPanel/List/RecommendedIcon.js +10 -13
- package/build/cjs/components/DimensionsPanel/List/__tests__/DimensionItem.spec.js +48 -41
- package/build/cjs/components/DimensionsPanel/List/__tests__/__snapshots__/DimensionItem.spec.js.snap +110 -114
- package/build/cjs/components/DimensionsPanel/__tests__/DimensionsPanel.spec.js +36 -33
- package/build/cjs/components/DynamicDimension/DynamicDimension.js +9 -13
- package/build/cjs/components/DynamicDimension/ItemSelector.js +25 -38
- package/build/cjs/components/FileMenu/DeleteDialog.js +11 -16
- package/build/cjs/components/FileMenu/FileMenu.js +19 -30
- package/build/cjs/components/FileMenu/GetLinkDialog.js +7 -7
- package/build/cjs/components/FileMenu/RenameDialog.js +13 -21
- package/build/cjs/components/FileMenu/SaveAsDialog.js +13 -21
- package/build/cjs/components/FileMenu/__tests__/DeleteDialog.spec.js +24 -27
- package/build/cjs/components/FileMenu/__tests__/FileMenu.spec.js +55 -31
- package/build/cjs/components/FileMenu/__tests__/GetLinkDialog.spec.js +35 -39
- package/build/cjs/components/FileMenu/__tests__/RenameDialog.spec.js +17 -11
- package/build/cjs/components/FileMenu/__tests__/SaveAsDialog.spec.js +44 -37
- package/build/cjs/components/FileMenu/utils.js +10 -12
- package/build/cjs/components/Filter/Filter.js +21 -27
- package/build/cjs/components/Filter/__tests__/Filter.spec.js +29 -34
- package/build/cjs/components/Interpretations/InterpretationModal/Comment.js +8 -10
- package/build/cjs/components/Interpretations/InterpretationModal/CommentAddForm.js +10 -15
- package/build/cjs/components/Interpretations/InterpretationModal/CommentDeleteButton.js +10 -15
- package/build/cjs/components/Interpretations/InterpretationModal/CommentUpdateForm.js +12 -17
- package/build/cjs/components/Interpretations/InterpretationModal/InterpretationModal.js +19 -25
- package/build/cjs/components/Interpretations/InterpretationModal/InterpretationThread.js +12 -14
- package/build/cjs/components/Interpretations/InterpretationsUnit/InterpretationForm.js +12 -17
- package/build/cjs/components/Interpretations/InterpretationsUnit/InterpretationList.js +10 -11
- package/build/cjs/components/Interpretations/InterpretationsUnit/InterpretationsUnit.js +23 -33
- package/build/cjs/components/Interpretations/common/Interpretation/Interpretation.js +13 -15
- package/build/cjs/components/Interpretations/common/Interpretation/InterpretationDeleteButton.js +7 -11
- package/build/cjs/components/Interpretations/common/Interpretation/InterpretationSharingLink.js +5 -7
- package/build/cjs/components/Interpretations/common/Interpretation/InterpretationUpdateForm.js +15 -23
- package/build/cjs/components/Interpretations/common/Interpretation/useLike.js +5 -6
- package/build/cjs/components/Interpretations/common/Message/Message.js +6 -7
- package/build/cjs/components/Interpretations/common/Message/MessageButtonStrip.js +8 -11
- package/build/cjs/components/Interpretations/common/Message/MessageEditorContainer.js +18 -21
- package/build/cjs/components/Interpretations/common/Message/MessageIconButton.js +34 -40
- package/build/cjs/components/Interpretations/common/Message/MessageInput.js +1 -2
- package/build/cjs/components/Interpretations/common/Message/MessageStatsBar.js +8 -11
- package/build/cjs/components/LegendKey/LegendKey.js +3 -4
- package/build/cjs/components/OfflineTooltip.js +18 -26
- package/build/cjs/components/OpenFileDialog/CreatedByFilter.js +28 -26
- package/build/cjs/components/OpenFileDialog/CustomSelectOption.js +23 -26
- package/build/cjs/components/OpenFileDialog/DateField.js +3 -4
- package/build/cjs/components/OpenFileDialog/FileList.js +19 -22
- package/build/cjs/components/OpenFileDialog/NameFilter.js +15 -21
- package/build/cjs/components/OpenFileDialog/OpenFileDialog.js +50 -79
- package/build/cjs/components/OpenFileDialog/PaginationControls.js +22 -28
- package/build/cjs/components/OpenFileDialog/VisTypeFilter.js +65 -36
- package/build/cjs/components/OpenFileDialog/__tests__/OpenFileDialog.spec.js +51 -0
- package/build/cjs/components/Options/VisualizationOptions.js +35 -46
- package/build/cjs/components/OrgUnitDimension/OrgUnitDimension.js +38 -60
- package/build/cjs/components/OrgUnitDimension/__tests__/OrgUnitDimension.spec.js +78 -44
- package/build/cjs/components/PeriodDimension/FixedPeriodFilter.js +17 -25
- package/build/cjs/components/PeriodDimension/FixedPeriodSelect.js +15 -21
- package/build/cjs/components/PeriodDimension/PeriodDimension.js +9 -12
- package/build/cjs/components/PeriodDimension/PeriodTransfer.js +49 -63
- package/build/cjs/components/PeriodDimension/RelativePeriodFilter.js +25 -30
- package/build/cjs/components/PeriodDimension/__tests__/FixedPeriodSingleSelect.spec.js +14 -21
- package/build/cjs/components/PeriodDimension/__tests__/PeriodDimension.spec.js +27 -23
- package/build/cjs/components/PeriodDimension/utils/fixedPeriods.js +6 -7
- package/build/cjs/components/PeriodDimension/utils/index.js +1 -5
- package/build/cjs/components/PivotTable/PivotTable.js +8 -10
- package/build/cjs/components/PivotTable/PivotTableBody.js +20 -29
- package/build/cjs/components/PivotTable/PivotTableCell.js +8 -12
- package/build/cjs/components/PivotTable/PivotTableClippedAxis.js +14 -17
- package/build/cjs/components/PivotTable/PivotTableColumnHeaderCell.js +7 -8
- package/build/cjs/components/PivotTable/PivotTableColumnHeaders.js +22 -29
- package/build/cjs/components/PivotTable/PivotTableContainer.js +5 -6
- package/build/cjs/components/PivotTable/PivotTableDimensionLabelCell.js +4 -5
- package/build/cjs/components/PivotTable/PivotTableEmptyCell.js +3 -4
- package/build/cjs/components/PivotTable/PivotTableEmptyRow.js +4 -5
- package/build/cjs/components/PivotTable/PivotTableEngineContext.js +5 -7
- package/build/cjs/components/PivotTable/PivotTableHead.js +13 -16
- package/build/cjs/components/PivotTable/PivotTableHeaderCell.js +8 -9
- package/build/cjs/components/PivotTable/PivotTableRow.js +20 -27
- package/build/cjs/components/PivotTable/PivotTableRowHeaderCell.js +5 -6
- package/build/cjs/components/PivotTable/PivotTableSortIcon.js +4 -5
- package/build/cjs/components/PivotTable/PivotTableTitleRow.js +19 -24
- package/build/cjs/components/PivotTable/PivotTableTitleRows.js +4 -5
- package/build/cjs/components/PivotTable/PivotTableValueCell.js +6 -8
- package/build/cjs/components/RichText/Editor/Editor.js +70 -85
- package/build/cjs/components/RichText/Editor/__tests__/Editor.spec.js +6 -7
- package/build/cjs/components/RichText/Parser/Parser.js +5 -10
- package/build/cjs/components/RichText/Parser/__tests__/MdParser.spec.js +1 -1
- package/build/cjs/components/RichText/Parser/__tests__/Parser.spec.js +22 -23
- package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuBar.js +20 -24
- package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuDropdown.js +8 -13
- package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuList.js +9 -17
- package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuListItem.js +11 -16
- package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuBar.spec.js +56 -47
- package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuDropdown.spec.js +8 -8
- package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuList.spec.js +30 -23
- package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuListItem.spec.js +23 -17
- package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/__snapshots__/HoverMenuList.spec.js.snap +63 -0
- package/build/cjs/components/Toolbar/InterpretationsAndDetailsToggler.js +17 -21
- package/build/cjs/components/Toolbar/Toolbar.js +10 -16
- package/build/cjs/components/Toolbar/ToolbarSidebar.js +12 -18
- package/build/cjs/components/Toolbar/UpdateButton.js +18 -24
- package/build/cjs/components/Toolbar/__tests__/InterpretationsAndDetailsToggler.spec.js +19 -18
- package/build/cjs/components/Toolbar/__tests__/Toolbar.spec.js +8 -8
- package/build/cjs/components/Toolbar/__tests__/ToolbarSidebar.spec.js +14 -11
- package/build/cjs/components/Toolbar/__tests__/UpdateButton.spec.js +16 -14
- package/build/cjs/components/TransferOption.js +14 -15
- package/build/cjs/components/TranslationDialog/TranslationModal/LocalesSelect.js +19 -27
- package/build/cjs/components/TranslationDialog/TranslationModal/TranslationForm.js +17 -25
- package/build/cjs/components/TranslationDialog/TranslationModal/TranslationModal.js +9 -10
- package/build/cjs/components/TranslationDialog/TranslationModal/TranslationModalActions.js +18 -27
- package/build/cjs/components/TranslationDialog/TranslationModal/__tests__/TranslationModal.spec.js +25 -16
- package/build/cjs/components/TranslationDialog/TranslationModal/useTranslationsResults.js +3 -4
- package/build/cjs/components/UserMention/UserList.js +6 -7
- package/build/cjs/components/UserMention/UserMentionWrapper.js +13 -20
- package/build/cjs/components/UserMention/useUserSearchResults.js +12 -16
- package/build/cjs/components/VisTypeIcon.js +5 -6
- package/build/cjs/index.js +38 -39
- package/build/cjs/locales/ar_IQ/translations.json +20 -11
- package/build/cjs/locales/cs/translations.json +2 -0
- package/build/cjs/locales/en/translations.json +1 -0
- package/build/cjs/locales/es/translations.json +2 -0
- package/build/cjs/locales/fr/translations.json +2 -0
- package/build/cjs/locales/id/translations.json +20 -11
- package/build/cjs/locales/index.js +62 -62
- package/build/cjs/locales/lo/translations.json +2 -0
- package/build/cjs/locales/nb/translations.json +2 -0
- package/build/cjs/locales/prs/translations.json +2 -0
- package/build/cjs/locales/ps/translations.json +2 -0
- package/build/cjs/locales/pt/translations.json +2 -0
- package/build/cjs/locales/pt_BR/translations.json +2 -0
- package/build/cjs/locales/ru/translations.json +2 -0
- package/build/cjs/locales/si/translations.json +20 -11
- package/build/cjs/locales/sv/translations.json +20 -11
- package/build/cjs/locales/tet/translations.json +20 -11
- package/build/cjs/locales/tg/translations.json +2 -0
- package/build/cjs/locales/uk/translations.json +2 -0
- package/build/cjs/locales/ur/translations.json +2 -0
- package/build/cjs/locales/uz_UZ_Cyrl/translations.json +2 -0
- package/build/cjs/locales/uz_UZ_Latn/translations.json +4 -2
- package/build/cjs/locales/vi/translations.json +2 -0
- package/build/cjs/locales/zh/translations.json +2 -0
- package/build/cjs/locales/zh_CN/translations.json +17 -15
- package/build/cjs/modules/__tests__/expressions.spec.js +4 -5
- package/build/cjs/modules/__tests__/isNumeric.spec.js +33 -0
- package/build/cjs/modules/dimensionListItem.js +4 -5
- package/build/cjs/modules/expressions.js +3 -9
- package/build/cjs/modules/getPWAInstallationStatus.js +7 -9
- package/build/cjs/modules/layout/dimensionCreate.js +1 -3
- package/build/cjs/modules/layout/dimensionIsValid.js +3 -4
- package/build/cjs/modules/legends.js +5 -6
- package/build/cjs/modules/outliers/index.js +5 -6
- package/build/cjs/modules/outliers/iqr.js +4 -6
- package/build/cjs/modules/outliers/modZScore.js +6 -14
- package/build/cjs/modules/outliers/zScore.js +3 -4
- package/build/cjs/modules/pivotTable/AdaptiveClippingController.js +12 -16
- package/build/cjs/modules/pivotTable/PivotTableEngine.js +48 -59
- package/build/cjs/modules/pivotTable/clipAxis.js +7 -8
- package/build/cjs/modules/pivotTable/clipPartitionedAxis.js +9 -10
- package/build/cjs/modules/pivotTable/getHeaderForDisplay.js +8 -9
- package/build/cjs/modules/pivotTable/measureText.js +7 -9
- package/build/cjs/modules/pivotTable/useParentSize.js +1 -2
- package/build/cjs/modules/pivotTable/useScrollPosition.js +1 -2
- package/build/cjs/modules/pivotTable/useTableClipping.js +6 -7
- package/build/cjs/modules/relativeItems/index.js +1 -4
- package/build/cjs/modules/renderValue.js +1 -2
- package/build/cjs/modules/utils.js +11 -2
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/addTrendLines.js +3 -8
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/axis.js +7 -10
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/customAxes.js +2 -5
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/customSVGOptions/index.js +7 -8
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/customSVGOptions/singleValue/getSingleValueBackgroundColor.js +1 -2
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/customSVGOptions/singleValue/index.js +6 -7
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/getFormatter.js +2 -3
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/getSteps.js +2 -3
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/getTrimmedConfig.js +3 -4
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/index.js +8 -10
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/legend.js +6 -7
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/legendSet.js +22 -26
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/plotOptions.js +8 -9
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/series/index.js +18 -20
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/series/pie.js +1 -4
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/subtitle/index.js +1 -2
- package/build/cjs/visualizations/config/adapters/dhis_highcharts/yAxis/gauge.js +1 -3
- package/build/cjs/visualizations/config/index.js +11 -12
- package/build/cjs/visualizations/config/validators/dhis/index.js +3 -4
- package/build/cjs/visualizations/index.js +1 -4
- package/build/cjs/visualizations/store/adapters/dhis_highcharts/index.js +7 -8
- package/build/cjs/visualizations/store/index.js +15 -17
- package/build/cjs/visualizations/store/validators/dhis/index.js +5 -6
- package/build/cjs/visualizations/util/getFilterText.js +3 -6
- package/build/cjs/visualizations/util/shouldUseContrastColor.js +1 -2
- package/build/es/__demo__/OpenFileDialog.stories.js +17 -0
- package/build/es/__demo__/PivotTable.stories.js +165 -222
- package/build/es/api/__tests__/dimensions.spec.js +1 -2
- package/build/es/api/analytics/Analytics.js +8 -9
- package/build/es/api/analytics/AnalyticsBase.js +58 -77
- package/build/es/api/analytics/AnalyticsRequest.js +1 -2
- package/build/es/api/analytics/AnalyticsRequestBase.js +18 -21
- package/build/es/api/analytics/AnalyticsRequestPropertiesMixin.js +19 -38
- package/build/es/api/analytics/AnalyticsResponseHeader.js +5 -7
- package/build/es/api/analytics/__tests__/AnalyticsBase.spec.js +8 -10
- package/build/es/api/analytics/__tests__/AnalyticsRequest.spec.js +8 -2
- package/build/es/api/analytics/utils.js +11 -17
- package/build/es/api/dimensions.js +119 -148
- package/build/es/api/expression.js +39 -60
- package/build/es/api/organisationUnits.js +23 -35
- package/build/es/components/AboutAOUnit/AboutAOUnit.js +11 -18
- package/build/es/components/CachedDataQueryProvider.js +6 -7
- package/build/es/components/DashboardPluginWrapper/DashboardPluginWrapper.js +17 -20
- package/build/es/components/DataDimension/Calculation/CalculationModal.js +43 -59
- package/build/es/components/DataDimension/Calculation/DataElementOption.js +5 -6
- package/build/es/components/DataDimension/Calculation/DataElementSelector.js +28 -36
- package/build/es/components/DataDimension/Calculation/DndContext.js +28 -35
- package/build/es/components/DataDimension/Calculation/DraggingItem.js +5 -6
- package/build/es/components/DataDimension/Calculation/DropZone.js +4 -5
- package/build/es/components/DataDimension/Calculation/FormulaField.js +29 -32
- package/build/es/components/DataDimension/Calculation/FormulaItem.js +13 -14
- package/build/es/components/DataDimension/Calculation/MathOperatorSelector.js +23 -29
- package/build/es/components/DataDimension/Calculation/Operator.js +6 -7
- package/build/es/components/DataDimension/DataDimension.js +19 -30
- package/build/es/components/DataDimension/Info/CalculationInfo.js +13 -20
- package/build/es/components/DataDimension/Info/DataElementInfo.js +23 -36
- package/build/es/components/DataDimension/Info/DataElementOperandInfo.js +29 -42
- package/build/es/components/DataDimension/Info/DataSetInfo.js +26 -39
- package/build/es/components/DataDimension/Info/EventDataItemInfo.js +21 -34
- package/build/es/components/DataDimension/Info/IndicatorInfo.js +20 -30
- package/build/es/components/DataDimension/Info/InfoPopover.js +6 -7
- package/build/es/components/DataDimension/Info/InfoTable.js +39 -52
- package/build/es/components/DataDimension/Info/OptionInfo.js +13 -20
- package/build/es/components/DataDimension/Info/ProgramIndicatorInfo.js +45 -56
- package/build/es/components/DataDimension/ItemOptionsSelector/ItemOptionsSelector.js +21 -30
- package/build/es/components/DataDimension/ItemSelector/DataTypeSelector.js +6 -7
- package/build/es/components/DataDimension/ItemSelector/DetailSelector.js +5 -6
- package/build/es/components/DataDimension/ItemSelector/GroupSelector.js +9 -10
- package/build/es/components/DataDimension/ItemSelector/ItemSelector.js +85 -102
- package/build/es/components/DataDimension/ItemSelector/MetricSelector.js +5 -6
- package/build/es/components/DataDimension/SourceEmptyPlaceholder.js +10 -13
- package/build/es/components/DataDimension/TransferOption.js +35 -39
- package/build/es/components/DimensionMenu.js +13 -14
- package/build/es/components/DimensionsPanel/DimensionsPanel.js +7 -7
- package/build/es/components/DimensionsPanel/List/DimensionItem.js +11 -11
- package/build/es/components/DimensionsPanel/List/DimensionList.js +11 -9
- package/build/es/components/DimensionsPanel/List/OptionsButton.js +8 -11
- package/build/es/components/DimensionsPanel/List/RecommendedIcon.js +10 -13
- package/build/es/components/DimensionsPanel/List/__tests__/DimensionItem.spec.js +47 -40
- package/build/es/components/DimensionsPanel/List/__tests__/__snapshots__/DimensionItem.spec.js.snap +110 -114
- package/build/es/components/DimensionsPanel/__tests__/DimensionsPanel.spec.js +35 -32
- package/build/es/components/DynamicDimension/DynamicDimension.js +9 -13
- package/build/es/components/DynamicDimension/ItemSelector.js +24 -36
- package/build/es/components/FileMenu/DeleteDialog.js +10 -14
- package/build/es/components/FileMenu/FileMenu.js +18 -28
- package/build/es/components/FileMenu/GetLinkDialog.js +7 -7
- package/build/es/components/FileMenu/RenameDialog.js +12 -19
- package/build/es/components/FileMenu/SaveAsDialog.js +12 -19
- package/build/es/components/FileMenu/__tests__/DeleteDialog.spec.js +23 -26
- package/build/es/components/FileMenu/__tests__/FileMenu.spec.js +56 -32
- package/build/es/components/FileMenu/__tests__/GetLinkDialog.spec.js +34 -38
- package/build/es/components/FileMenu/__tests__/RenameDialog.spec.js +18 -12
- package/build/es/components/FileMenu/__tests__/SaveAsDialog.spec.js +43 -36
- package/build/es/components/FileMenu/utils.js +10 -12
- package/build/es/components/Filter/Filter.js +21 -27
- package/build/es/components/Filter/__tests__/Filter.spec.js +28 -33
- package/build/es/components/Interpretations/InterpretationModal/Comment.js +7 -8
- package/build/es/components/Interpretations/InterpretationModal/CommentAddForm.js +9 -13
- package/build/es/components/Interpretations/InterpretationModal/CommentDeleteButton.js +9 -13
- package/build/es/components/Interpretations/InterpretationModal/CommentUpdateForm.js +11 -15
- package/build/es/components/Interpretations/InterpretationModal/InterpretationModal.js +18 -23
- package/build/es/components/Interpretations/InterpretationModal/InterpretationThread.js +11 -12
- package/build/es/components/Interpretations/InterpretationsUnit/InterpretationForm.js +11 -15
- package/build/es/components/Interpretations/InterpretationsUnit/InterpretationList.js +10 -11
- package/build/es/components/Interpretations/InterpretationsUnit/InterpretationsUnit.js +22 -31
- package/build/es/components/Interpretations/common/Interpretation/Interpretation.js +12 -13
- package/build/es/components/Interpretations/common/Interpretation/InterpretationDeleteButton.js +7 -11
- package/build/es/components/Interpretations/common/Interpretation/InterpretationSharingLink.js +4 -5
- package/build/es/components/Interpretations/common/Interpretation/InterpretationUpdateForm.js +14 -21
- package/build/es/components/Interpretations/common/Interpretation/useLike.js +5 -6
- package/build/es/components/Interpretations/common/Message/Message.js +6 -7
- package/build/es/components/Interpretations/common/Message/MessageButtonStrip.js +8 -11
- package/build/es/components/Interpretations/common/Message/MessageEditorContainer.js +18 -21
- package/build/es/components/Interpretations/common/Message/MessageIconButton.js +34 -40
- package/build/es/components/Interpretations/common/Message/MessageStatsBar.js +8 -11
- package/build/es/components/LegendKey/LegendKey.js +3 -4
- package/build/es/components/OfflineTooltip.js +18 -26
- package/build/es/components/OpenFileDialog/CreatedByFilter.js +26 -25
- package/build/es/components/OpenFileDialog/CustomSelectOption.js +23 -26
- package/build/es/components/OpenFileDialog/DateField.js +3 -4
- package/build/es/components/OpenFileDialog/FileList.js +19 -22
- package/build/es/components/OpenFileDialog/NameFilter.js +15 -21
- package/build/es/components/OpenFileDialog/OpenFileDialog.js +49 -78
- package/build/es/components/OpenFileDialog/PaginationControls.js +22 -28
- package/build/es/components/OpenFileDialog/VisTypeFilter.js +64 -36
- package/build/es/components/OpenFileDialog/__tests__/OpenFileDialog.spec.js +49 -0
- package/build/es/components/Options/VisualizationOptions.js +34 -44
- package/build/es/components/OrgUnitDimension/OrgUnitDimension.js +37 -58
- package/build/es/components/OrgUnitDimension/__tests__/OrgUnitDimension.spec.js +77 -43
- package/build/es/components/PeriodDimension/FixedPeriodFilter.js +17 -25
- package/build/es/components/PeriodDimension/FixedPeriodSelect.js +14 -19
- package/build/es/components/PeriodDimension/PeriodDimension.js +9 -12
- package/build/es/components/PeriodDimension/PeriodTransfer.js +48 -61
- package/build/es/components/PeriodDimension/RelativePeriodFilter.js +25 -30
- package/build/es/components/PeriodDimension/__tests__/FixedPeriodSingleSelect.spec.js +13 -20
- package/build/es/components/PeriodDimension/__tests__/PeriodDimension.spec.js +26 -22
- package/build/es/components/PeriodDimension/utils/fixedPeriods.js +6 -7
- package/build/es/components/PeriodDimension/utils/index.js +1 -5
- package/build/es/components/PivotTable/PivotTable.js +7 -8
- package/build/es/components/PivotTable/PivotTableBody.js +20 -29
- package/build/es/components/PivotTable/PivotTableCell.js +8 -12
- package/build/es/components/PivotTable/PivotTableClippedAxis.js +14 -17
- package/build/es/components/PivotTable/PivotTableColumnHeaderCell.js +7 -8
- package/build/es/components/PivotTable/PivotTableColumnHeaders.js +22 -29
- package/build/es/components/PivotTable/PivotTableContainer.js +5 -6
- package/build/es/components/PivotTable/PivotTableDimensionLabelCell.js +4 -5
- package/build/es/components/PivotTable/PivotTableEmptyCell.js +3 -4
- package/build/es/components/PivotTable/PivotTableEmptyRow.js +4 -5
- package/build/es/components/PivotTable/PivotTableEngineContext.js +4 -5
- package/build/es/components/PivotTable/PivotTableHead.js +13 -16
- package/build/es/components/PivotTable/PivotTableHeaderCell.js +8 -9
- package/build/es/components/PivotTable/PivotTableRow.js +20 -27
- package/build/es/components/PivotTable/PivotTableRowHeaderCell.js +5 -6
- package/build/es/components/PivotTable/PivotTableSortIcon.js +4 -5
- package/build/es/components/PivotTable/PivotTableTitleRow.js +18 -22
- package/build/es/components/PivotTable/PivotTableTitleRows.js +4 -5
- package/build/es/components/PivotTable/PivotTableValueCell.js +5 -6
- package/build/es/components/RichText/Editor/Editor.js +69 -83
- package/build/es/components/RichText/Editor/__tests__/Editor.spec.js +7 -8
- package/build/es/components/RichText/Parser/Parser.js +4 -8
- package/build/es/components/RichText/Parser/__tests__/MdParser.spec.js +1 -1
- package/build/es/components/RichText/Parser/__tests__/Parser.spec.js +21 -22
- package/build/es/components/Toolbar/HoverMenuBar/HoverMenuBar.js +20 -23
- package/build/es/components/Toolbar/HoverMenuBar/HoverMenuDropdown.js +7 -11
- package/build/es/components/Toolbar/HoverMenuBar/HoverMenuList.js +8 -15
- package/build/es/components/Toolbar/HoverMenuBar/HoverMenuListItem.js +10 -14
- package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuBar.spec.js +57 -48
- package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuDropdown.spec.js +7 -7
- package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuList.spec.js +27 -20
- package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuListItem.spec.js +21 -15
- package/build/es/components/Toolbar/HoverMenuBar/__tests__/__snapshots__/HoverMenuList.spec.js.snap +63 -0
- package/build/es/components/Toolbar/InterpretationsAndDetailsToggler.js +17 -21
- package/build/es/components/Toolbar/Toolbar.js +10 -16
- package/build/es/components/Toolbar/ToolbarSidebar.js +12 -18
- package/build/es/components/Toolbar/UpdateButton.js +18 -24
- package/build/es/components/Toolbar/__tests__/InterpretationsAndDetailsToggler.spec.js +18 -17
- package/build/es/components/Toolbar/__tests__/Toolbar.spec.js +7 -7
- package/build/es/components/Toolbar/__tests__/ToolbarSidebar.spec.js +13 -10
- package/build/es/components/Toolbar/__tests__/UpdateButton.spec.js +15 -13
- package/build/es/components/TransferOption.js +14 -15
- package/build/es/components/TranslationDialog/TranslationModal/LocalesSelect.js +19 -27
- package/build/es/components/TranslationDialog/TranslationModal/TranslationForm.js +16 -23
- package/build/es/components/TranslationDialog/TranslationModal/TranslationModal.js +8 -8
- package/build/es/components/TranslationDialog/TranslationModal/TranslationModalActions.js +18 -27
- package/build/es/components/TranslationDialog/TranslationModal/__tests__/TranslationModal.spec.js +24 -15
- package/build/es/components/TranslationDialog/TranslationModal/useTranslationsResults.js +3 -4
- package/build/es/components/UserMention/UserList.js +6 -7
- package/build/es/components/UserMention/UserMentionWrapper.js +12 -18
- package/build/es/components/UserMention/useUserSearchResults.js +12 -16
- package/build/es/components/VisTypeIcon.js +5 -6
- package/build/es/locales/ar_IQ/translations.json +20 -11
- package/build/es/locales/cs/translations.json +2 -0
- package/build/es/locales/en/translations.json +1 -0
- package/build/es/locales/es/translations.json +2 -0
- package/build/es/locales/fr/translations.json +2 -0
- package/build/es/locales/id/translations.json +20 -11
- package/build/es/locales/lo/translations.json +2 -0
- package/build/es/locales/nb/translations.json +2 -0
- package/build/es/locales/prs/translations.json +2 -0
- package/build/es/locales/ps/translations.json +2 -0
- package/build/es/locales/pt/translations.json +2 -0
- package/build/es/locales/pt_BR/translations.json +2 -0
- package/build/es/locales/ru/translations.json +2 -0
- package/build/es/locales/si/translations.json +20 -11
- package/build/es/locales/sv/translations.json +20 -11
- package/build/es/locales/tet/translations.json +20 -11
- package/build/es/locales/tg/translations.json +2 -0
- package/build/es/locales/uk/translations.json +2 -0
- package/build/es/locales/ur/translations.json +2 -0
- package/build/es/locales/uz_UZ_Cyrl/translations.json +2 -0
- package/build/es/locales/uz_UZ_Latn/translations.json +4 -2
- package/build/es/locales/vi/translations.json +2 -0
- package/build/es/locales/zh/translations.json +2 -0
- package/build/es/locales/zh_CN/translations.json +17 -15
- package/build/es/modules/__tests__/expressions.spec.js +4 -5
- package/build/es/modules/__tests__/isNumeric.spec.js +31 -0
- package/build/es/modules/dimensionListItem.js +4 -5
- package/build/es/modules/expressions.js +3 -9
- package/build/es/modules/getPWAInstallationStatus.js +7 -9
- package/build/es/modules/layout/dimensionCreate.js +1 -3
- package/build/es/modules/layout/dimensionIsValid.js +3 -4
- package/build/es/modules/legends.js +5 -6
- package/build/es/modules/outliers/index.js +2 -3
- package/build/es/modules/outliers/iqr.js +4 -6
- package/build/es/modules/outliers/modZScore.js +6 -14
- package/build/es/modules/outliers/zScore.js +3 -4
- package/build/es/modules/pivotTable/AdaptiveClippingController.js +12 -16
- package/build/es/modules/pivotTable/PivotTableEngine.js +48 -59
- package/build/es/modules/pivotTable/clipAxis.js +7 -8
- package/build/es/modules/pivotTable/clipPartitionedAxis.js +9 -10
- package/build/es/modules/pivotTable/getHeaderForDisplay.js +8 -9
- package/build/es/modules/pivotTable/measureText.js +7 -9
- package/build/es/modules/pivotTable/useParentSize.js +1 -2
- package/build/es/modules/pivotTable/useScrollPosition.js +1 -2
- package/build/es/modules/pivotTable/useTableClipping.js +6 -7
- package/build/es/modules/relativeItems/index.js +1 -4
- package/build/es/modules/renderValue.js +1 -2
- package/build/es/modules/utils.js +9 -1
- package/build/es/visualizations/config/adapters/dhis_highcharts/addTrendLines.js +3 -8
- package/build/es/visualizations/config/adapters/dhis_highcharts/axis.js +2 -5
- package/build/es/visualizations/config/adapters/dhis_highcharts/customAxes.js +2 -5
- package/build/es/visualizations/config/adapters/dhis_highcharts/customSVGOptions/index.js +7 -8
- package/build/es/visualizations/config/adapters/dhis_highcharts/customSVGOptions/singleValue/getSingleValueBackgroundColor.js +1 -2
- package/build/es/visualizations/config/adapters/dhis_highcharts/customSVGOptions/singleValue/index.js +6 -7
- package/build/es/visualizations/config/adapters/dhis_highcharts/getFormatter.js +1 -1
- package/build/es/visualizations/config/adapters/dhis_highcharts/getSteps.js +1 -1
- package/build/es/visualizations/config/adapters/dhis_highcharts/getTrimmedConfig.js +3 -4
- package/build/es/visualizations/config/adapters/dhis_highcharts/index.js +7 -8
- package/build/es/visualizations/config/adapters/dhis_highcharts/legend.js +6 -7
- package/build/es/visualizations/config/adapters/dhis_highcharts/legendSet.js +22 -26
- package/build/es/visualizations/config/adapters/dhis_highcharts/plotOptions.js +8 -9
- package/build/es/visualizations/config/adapters/dhis_highcharts/series/index.js +18 -20
- package/build/es/visualizations/config/adapters/dhis_highcharts/series/pie.js +1 -4
- package/build/es/visualizations/config/adapters/dhis_highcharts/yAxis/gauge.js +1 -3
- package/build/es/visualizations/config/index.js +11 -12
- package/build/es/visualizations/config/validators/dhis/index.js +3 -4
- package/build/es/visualizations/index.js +1 -4
- package/build/es/visualizations/store/adapters/dhis_highcharts/index.js +7 -8
- package/build/es/visualizations/store/index.js +15 -17
- package/build/es/visualizations/store/validators/dhis/index.js +5 -6
- package/build/es/visualizations/util/getFilterText.js +3 -6
- package/build/es/visualizations/util/shouldUseContrastColor.js +1 -2
- package/package.json +13 -15
- package/build/cjs/components/OrgUnitDimension/__tests__/__snapshots__/OrgUnitDimension.spec.js.snap +0 -89
- package/build/cjs/components/PeriodDimension/__tests__/PeriodSelector.spec.js +0 -29
- package/build/cjs/components/PeriodDimension/__tests__/__snapshots__/FixedPeriodSingleSelect.spec.js.snap +0 -93
- package/build/cjs/components/PeriodDimension/__tests__/__snapshots__/PeriodDimension.spec.js.snap +0 -17
- package/build/cjs/components/PeriodDimension/__tests__/__snapshots__/PeriodSelector.spec.js.snap +0 -89
- package/build/es/components/OrgUnitDimension/__tests__/__snapshots__/OrgUnitDimension.spec.js.snap +0 -89
- package/build/es/components/PeriodDimension/__tests__/PeriodSelector.spec.js +0 -26
- package/build/es/components/PeriodDimension/__tests__/__snapshots__/FixedPeriodSingleSelect.spec.js.snap +0 -93
- package/build/es/components/PeriodDimension/__tests__/__snapshots__/PeriodDimension.spec.js.snap +0 -17
- package/build/es/components/PeriodDimension/__tests__/__snapshots__/PeriodSelector.spec.js.snap +0 -89
|
@@ -71,28 +71,22 @@ const PivotTableOptionsWrapper = story => {
|
|
|
71
71
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Checkbox, {
|
|
72
72
|
label: "Use fixed column headers",
|
|
73
73
|
checked: pivotTableOptions.fixColumnHeaders,
|
|
74
|
-
onChange:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
fixColumnHeaders: checked
|
|
81
|
-
});
|
|
82
|
-
},
|
|
74
|
+
onChange: ({
|
|
75
|
+
checked
|
|
76
|
+
}) => setPivotTableOptions({
|
|
77
|
+
...pivotTableOptions,
|
|
78
|
+
fixColumnHeaders: checked
|
|
79
|
+
}),
|
|
83
80
|
dense: true
|
|
84
81
|
}), /*#__PURE__*/React.createElement(Checkbox, {
|
|
85
82
|
label: "Use fixed row headers",
|
|
86
83
|
checked: pivotTableOptions.fixRowHeaders,
|
|
87
|
-
onChange:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
fixRowHeaders: checked
|
|
94
|
-
});
|
|
95
|
-
},
|
|
84
|
+
onChange: ({
|
|
85
|
+
checked
|
|
86
|
+
}) => setPivotTableOptions({
|
|
87
|
+
...pivotTableOptions,
|
|
88
|
+
fixRowHeaders: checked
|
|
89
|
+
}),
|
|
96
90
|
dense: true
|
|
97
91
|
}), /*#__PURE__*/React.createElement(Divider, null)), story({
|
|
98
92
|
pivotTableOptions
|
|
@@ -102,10 +96,9 @@ export default {
|
|
|
102
96
|
title: 'PivotTable',
|
|
103
97
|
decorators: [PivotTableOptionsWrapper]
|
|
104
98
|
};
|
|
105
|
-
export const Simple = (_,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
} = _ref3;
|
|
99
|
+
export const Simple = (_, {
|
|
100
|
+
pivotTableOptions
|
|
101
|
+
}) => {
|
|
109
102
|
const visualization = {
|
|
110
103
|
...simpleVisualization,
|
|
111
104
|
...visualizationReset,
|
|
@@ -124,10 +117,9 @@ export const Simple = (_, _ref3) => {
|
|
|
124
117
|
Simple.story = {
|
|
125
118
|
name: 'simple'
|
|
126
119
|
};
|
|
127
|
-
export const SimpleCommaDgs = (_,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
} = _ref4;
|
|
120
|
+
export const SimpleCommaDgs = (_, {
|
|
121
|
+
pivotTableOptions
|
|
122
|
+
}) => {
|
|
131
123
|
const visualization = {
|
|
132
124
|
...simpleVisualization,
|
|
133
125
|
...visualizationReset,
|
|
@@ -147,10 +139,9 @@ export const SimpleCommaDgs = (_, _ref4) => {
|
|
|
147
139
|
SimpleCommaDgs.story = {
|
|
148
140
|
name: 'simple - comma DGS'
|
|
149
141
|
};
|
|
150
|
-
export const SimpleTitleSubtitleFilter = (_,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
} = _ref5;
|
|
142
|
+
export const SimpleTitleSubtitleFilter = (_, {
|
|
143
|
+
pivotTableOptions
|
|
144
|
+
}) => {
|
|
154
145
|
const visualization = {
|
|
155
146
|
...simpleVisualization,
|
|
156
147
|
...visualizationReset,
|
|
@@ -171,10 +162,9 @@ export const SimpleTitleSubtitleFilter = (_, _ref5) => {
|
|
|
171
162
|
SimpleTitleSubtitleFilter.story = {
|
|
172
163
|
name: 'simple - title / subtitle / filter'
|
|
173
164
|
};
|
|
174
|
-
export const SimpleColumn = (_,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
} = _ref6;
|
|
165
|
+
export const SimpleColumn = (_, {
|
|
166
|
+
pivotTableOptions
|
|
167
|
+
}) => {
|
|
178
168
|
const visualization = {
|
|
179
169
|
...simpleVisualization,
|
|
180
170
|
...visualizationReset,
|
|
@@ -195,10 +185,9 @@ export const SimpleColumn = (_, _ref6) => {
|
|
|
195
185
|
SimpleColumn.story = {
|
|
196
186
|
name: 'simple - column %'
|
|
197
187
|
};
|
|
198
|
-
export const SimpleRow = (_,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
} = _ref7;
|
|
188
|
+
export const SimpleRow = (_, {
|
|
189
|
+
pivotTableOptions
|
|
190
|
+
}) => {
|
|
202
191
|
const visualization = {
|
|
203
192
|
...diseaseWeeksVisualization,
|
|
204
193
|
...visualizationReset,
|
|
@@ -218,10 +207,9 @@ export const SimpleRow = (_, _ref7) => {
|
|
|
218
207
|
SimpleRow.story = {
|
|
219
208
|
name: 'simple - row %'
|
|
220
209
|
};
|
|
221
|
-
export const SimpleDataAsFilter = (_,
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
} = _ref8;
|
|
210
|
+
export const SimpleDataAsFilter = (_, {
|
|
211
|
+
pivotTableOptions
|
|
212
|
+
}) => {
|
|
225
213
|
const visualization = {
|
|
226
214
|
...simpleVisualization,
|
|
227
215
|
...visualizationReset,
|
|
@@ -242,10 +230,9 @@ export const SimpleDataAsFilter = (_, _ref8) => {
|
|
|
242
230
|
SimpleDataAsFilter.story = {
|
|
243
231
|
name: 'simple - data as filter'
|
|
244
232
|
};
|
|
245
|
-
export const SimpleNoColumns = (_,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
} = _ref9;
|
|
233
|
+
export const SimpleNoColumns = (_, {
|
|
234
|
+
pivotTableOptions
|
|
235
|
+
}) => {
|
|
249
236
|
const visualization = {
|
|
250
237
|
...simpleVisualization,
|
|
251
238
|
...visualizationReset,
|
|
@@ -270,10 +257,9 @@ export const SimpleNoColumns = (_, _ref9) => {
|
|
|
270
257
|
SimpleNoColumns.story = {
|
|
271
258
|
name: 'simple - no columns'
|
|
272
259
|
};
|
|
273
|
-
export const SimpleNoColumnsSingleCell = (_,
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
} = _ref10;
|
|
260
|
+
export const SimpleNoColumnsSingleCell = (_, {
|
|
261
|
+
pivotTableOptions
|
|
262
|
+
}) => {
|
|
277
263
|
const visualization = {
|
|
278
264
|
...simpleVisualization,
|
|
279
265
|
...visualizationReset,
|
|
@@ -296,10 +282,9 @@ export const SimpleNoColumnsSingleCell = (_, _ref10) => {
|
|
|
296
282
|
SimpleNoColumnsSingleCell.story = {
|
|
297
283
|
name: 'simple - no columns (single cell)'
|
|
298
284
|
};
|
|
299
|
-
export const SimpleNoColumnsDeep = (_,
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
} = _ref11;
|
|
285
|
+
export const SimpleNoColumnsDeep = (_, {
|
|
286
|
+
pivotTableOptions
|
|
287
|
+
}) => {
|
|
303
288
|
const visualization = {
|
|
304
289
|
...simpleVisualization,
|
|
305
290
|
...visualizationReset,
|
|
@@ -323,10 +308,9 @@ export const SimpleNoColumnsDeep = (_, _ref11) => {
|
|
|
323
308
|
SimpleNoColumnsDeep.story = {
|
|
324
309
|
name: 'simple - no columns (deep)'
|
|
325
310
|
};
|
|
326
|
-
export const SimpleNoColumnsLabel = (_,
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
} = _ref12;
|
|
311
|
+
export const SimpleNoColumnsLabel = (_, {
|
|
312
|
+
pivotTableOptions
|
|
313
|
+
}) => {
|
|
330
314
|
const visualization = {
|
|
331
315
|
...simpleVisualization,
|
|
332
316
|
...visualizationReset,
|
|
@@ -352,10 +336,9 @@ export const SimpleNoColumnsLabel = (_, _ref12) => {
|
|
|
352
336
|
SimpleNoColumnsLabel.story = {
|
|
353
337
|
name: 'simple - no columns (label)'
|
|
354
338
|
};
|
|
355
|
-
export const SimpleNoRowsSmall = (_,
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
} = _ref13;
|
|
339
|
+
export const SimpleNoRowsSmall = (_, {
|
|
340
|
+
pivotTableOptions
|
|
341
|
+
}) => {
|
|
359
342
|
const visualization = {
|
|
360
343
|
...simpleVisualization,
|
|
361
344
|
...visualizationReset,
|
|
@@ -381,10 +364,9 @@ export const SimpleNoRowsSmall = (_, _ref13) => {
|
|
|
381
364
|
SimpleNoRowsSmall.story = {
|
|
382
365
|
name: 'simple - no rows (small)'
|
|
383
366
|
};
|
|
384
|
-
export const SimpleNoRowsLarge = (_,
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
} = _ref14;
|
|
367
|
+
export const SimpleNoRowsLarge = (_, {
|
|
368
|
+
pivotTableOptions
|
|
369
|
+
}) => {
|
|
388
370
|
const visualization = {
|
|
389
371
|
...simpleVisualization,
|
|
390
372
|
...visualizationReset,
|
|
@@ -410,10 +392,9 @@ export const SimpleNoRowsLarge = (_, _ref14) => {
|
|
|
410
392
|
SimpleNoRowsLarge.story = {
|
|
411
393
|
name: 'simple - no rows (large)'
|
|
412
394
|
};
|
|
413
|
-
export const SimpleAvgTotalAggregationTypeColumns = (_,
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
} = _ref15;
|
|
395
|
+
export const SimpleAvgTotalAggregationTypeColumns = (_, {
|
|
396
|
+
pivotTableOptions
|
|
397
|
+
}) => {
|
|
417
398
|
const visualization = {
|
|
418
399
|
...avgVisualization,
|
|
419
400
|
...visualizationReset,
|
|
@@ -434,10 +415,9 @@ export const SimpleAvgTotalAggregationTypeColumns = (_, _ref15) => {
|
|
|
434
415
|
SimpleAvgTotalAggregationTypeColumns.story = {
|
|
435
416
|
name: 'simple - avg totalAggregationType columns'
|
|
436
417
|
};
|
|
437
|
-
export const SimpleAvgTotalAggregationTypeRows = (_,
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
} = _ref16;
|
|
418
|
+
export const SimpleAvgTotalAggregationTypeRows = (_, {
|
|
419
|
+
pivotTableOptions
|
|
420
|
+
}) => {
|
|
441
421
|
const visualization = {
|
|
442
422
|
...avgVisualization,
|
|
443
423
|
...visualizationReset,
|
|
@@ -460,10 +440,9 @@ export const SimpleAvgTotalAggregationTypeRows = (_, _ref16) => {
|
|
|
460
440
|
SimpleAvgTotalAggregationTypeRows.story = {
|
|
461
441
|
name: 'simple - avg totalAggregationType rows'
|
|
462
442
|
};
|
|
463
|
-
export const Deep = (_,
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
} = _ref17;
|
|
443
|
+
export const Deep = (_, {
|
|
444
|
+
pivotTableOptions
|
|
445
|
+
}) => {
|
|
467
446
|
const visualization = {
|
|
468
447
|
...deepVisualization,
|
|
469
448
|
...visualizationReset,
|
|
@@ -483,10 +462,9 @@ export const Deep = (_, _ref17) => {
|
|
|
483
462
|
Deep.story = {
|
|
484
463
|
name: 'deep'
|
|
485
464
|
};
|
|
486
|
-
export const DeepFilter = (_,
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
} = _ref18;
|
|
465
|
+
export const DeepFilter = (_, {
|
|
466
|
+
pivotTableOptions
|
|
467
|
+
}) => {
|
|
490
468
|
const visualization = {
|
|
491
469
|
...deepWithFiltersVisualization,
|
|
492
470
|
...visualizationReset,
|
|
@@ -506,10 +484,9 @@ export const DeepFilter = (_, _ref18) => {
|
|
|
506
484
|
DeepFilter.story = {
|
|
507
485
|
name: 'deep - filter'
|
|
508
486
|
};
|
|
509
|
-
export const DeepTitleSubtitleFilter = (_,
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
} = _ref19;
|
|
487
|
+
export const DeepTitleSubtitleFilter = (_, {
|
|
488
|
+
pivotTableOptions
|
|
489
|
+
}) => {
|
|
513
490
|
const visualization = {
|
|
514
491
|
...deepVisualization,
|
|
515
492
|
...visualizationReset,
|
|
@@ -531,10 +508,9 @@ export const DeepTitleSubtitleFilter = (_, _ref19) => {
|
|
|
531
508
|
DeepTitleSubtitleFilter.story = {
|
|
532
509
|
name: 'deep - title / subtitle / filter'
|
|
533
510
|
};
|
|
534
|
-
export const DeepDimensionLabels = (_,
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
} = _ref20;
|
|
511
|
+
export const DeepDimensionLabels = (_, {
|
|
512
|
+
pivotTableOptions
|
|
513
|
+
}) => {
|
|
538
514
|
const visualization = {
|
|
539
515
|
...deepVisualization,
|
|
540
516
|
...visualizationReset,
|
|
@@ -553,10 +529,9 @@ export const DeepDimensionLabels = (_, _ref20) => {
|
|
|
553
529
|
DeepDimensionLabels.story = {
|
|
554
530
|
name: 'deep - dimension labels'
|
|
555
531
|
};
|
|
556
|
-
export const DeepSmallCompact = (_,
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
} = _ref21;
|
|
532
|
+
export const DeepSmallCompact = (_, {
|
|
533
|
+
pivotTableOptions
|
|
534
|
+
}) => {
|
|
560
535
|
const visualization = {
|
|
561
536
|
...deepVisualization,
|
|
562
537
|
...visualizationReset,
|
|
@@ -577,10 +552,9 @@ export const DeepSmallCompact = (_, _ref21) => {
|
|
|
577
552
|
DeepSmallCompact.story = {
|
|
578
553
|
name: 'deep - small / compact'
|
|
579
554
|
};
|
|
580
|
-
export const DeepLargeComfortable = (_,
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
} = _ref22;
|
|
555
|
+
export const DeepLargeComfortable = (_, {
|
|
556
|
+
pivotTableOptions
|
|
557
|
+
}) => {
|
|
584
558
|
const visualization = {
|
|
585
559
|
...deepVisualization,
|
|
586
560
|
...visualizationReset,
|
|
@@ -601,10 +575,9 @@ export const DeepLargeComfortable = (_, _ref22) => {
|
|
|
601
575
|
DeepLargeComfortable.story = {
|
|
602
576
|
name: 'deep - large / comfortable'
|
|
603
577
|
};
|
|
604
|
-
export const DeepRow = (_,
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
} = _ref23;
|
|
578
|
+
export const DeepRow = (_, {
|
|
579
|
+
pivotTableOptions
|
|
580
|
+
}) => {
|
|
608
581
|
const visualization = {
|
|
609
582
|
...deepVisualization,
|
|
610
583
|
...visualizationReset,
|
|
@@ -628,10 +601,9 @@ export const DeepRow = (_, _ref23) => {
|
|
|
628
601
|
DeepRow.story = {
|
|
629
602
|
name: 'deep - row %'
|
|
630
603
|
};
|
|
631
|
-
export const DeepColumn = (_,
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
} = _ref24;
|
|
604
|
+
export const DeepColumn = (_, {
|
|
605
|
+
pivotTableOptions
|
|
606
|
+
}) => {
|
|
635
607
|
const visualization = {
|
|
636
608
|
...deepVisualization,
|
|
637
609
|
...visualizationReset,
|
|
@@ -655,10 +627,9 @@ export const DeepColumn = (_, _ref24) => {
|
|
|
655
627
|
DeepColumn.story = {
|
|
656
628
|
name: 'deep - column %'
|
|
657
629
|
};
|
|
658
|
-
const ResizingPivotTable =
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
} = _ref25;
|
|
630
|
+
const ResizingPivotTable = ({
|
|
631
|
+
visualization
|
|
632
|
+
}) => {
|
|
662
633
|
const [size, setSize] = useState(() => ({
|
|
663
634
|
width: 400,
|
|
664
635
|
height: 300
|
|
@@ -689,10 +660,9 @@ const ResizingPivotTable = _ref25 => {
|
|
|
689
660
|
ResizingPivotTable.propTypes = {
|
|
690
661
|
visualization: PropTypes.object.isRequired
|
|
691
662
|
};
|
|
692
|
-
export const DeepResize = (_,
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
} = _ref26;
|
|
663
|
+
export const DeepResize = (_, {
|
|
664
|
+
pivotTableOptions
|
|
665
|
+
}) => {
|
|
696
666
|
const visualization = {
|
|
697
667
|
...deepVisualization,
|
|
698
668
|
...visualizationReset,
|
|
@@ -705,10 +675,9 @@ export const DeepResize = (_, _ref26) => {
|
|
|
705
675
|
DeepResize.story = {
|
|
706
676
|
name: 'deep - resize'
|
|
707
677
|
};
|
|
708
|
-
export const DeepTotals = (_,
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
} = _ref27;
|
|
678
|
+
export const DeepTotals = (_, {
|
|
679
|
+
pivotTableOptions
|
|
680
|
+
}) => {
|
|
712
681
|
const visualization = {
|
|
713
682
|
...deepVisualization,
|
|
714
683
|
...visualizationReset,
|
|
@@ -729,10 +698,9 @@ export const DeepTotals = (_, _ref27) => {
|
|
|
729
698
|
DeepTotals.story = {
|
|
730
699
|
name: 'deep - totals'
|
|
731
700
|
};
|
|
732
|
-
export const DeepSubtotals = (_,
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
} = _ref28;
|
|
701
|
+
export const DeepSubtotals = (_, {
|
|
702
|
+
pivotTableOptions
|
|
703
|
+
}) => {
|
|
736
704
|
const visualization = {
|
|
737
705
|
...deepVisualization,
|
|
738
706
|
...visualizationReset,
|
|
@@ -753,10 +721,9 @@ export const DeepSubtotals = (_, _ref28) => {
|
|
|
753
721
|
DeepSubtotals.story = {
|
|
754
722
|
name: 'deep - subtotals'
|
|
755
723
|
};
|
|
756
|
-
export const DeepAllTotals = (_,
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
} = _ref29;
|
|
724
|
+
export const DeepAllTotals = (_, {
|
|
725
|
+
pivotTableOptions
|
|
726
|
+
}) => {
|
|
760
727
|
const visualization = {
|
|
761
728
|
...deepVisualization,
|
|
762
729
|
...visualizationReset,
|
|
@@ -779,10 +746,9 @@ export const DeepAllTotals = (_, _ref29) => {
|
|
|
779
746
|
DeepAllTotals.story = {
|
|
780
747
|
name: 'deep - all totals'
|
|
781
748
|
};
|
|
782
|
-
export const SmallEmptyRowsShown = (_,
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
} = _ref30;
|
|
749
|
+
export const SmallEmptyRowsShown = (_, {
|
|
750
|
+
pivotTableOptions
|
|
751
|
+
}) => {
|
|
786
752
|
const visualization = {
|
|
787
753
|
...diseaseWeeksVisualization,
|
|
788
754
|
...visualizationReset,
|
|
@@ -805,10 +771,9 @@ export const SmallEmptyRowsShown = (_, _ref30) => {
|
|
|
805
771
|
SmallEmptyRowsShown.story = {
|
|
806
772
|
name: 'small empty rows - shown'
|
|
807
773
|
};
|
|
808
|
-
export const SmallEmptyRowsHidden = (_,
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
} = _ref31;
|
|
774
|
+
export const SmallEmptyRowsHidden = (_, {
|
|
775
|
+
pivotTableOptions
|
|
776
|
+
}) => {
|
|
812
777
|
const visualization = {
|
|
813
778
|
...diseaseWeeksVisualization,
|
|
814
779
|
...visualizationReset,
|
|
@@ -832,10 +797,9 @@ export const SmallEmptyRowsHidden = (_, _ref31) => {
|
|
|
832
797
|
SmallEmptyRowsHidden.story = {
|
|
833
798
|
name: 'small empty rows - hidden'
|
|
834
799
|
};
|
|
835
|
-
export const EmptyRowsShown = (_,
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
} = _ref32;
|
|
800
|
+
export const EmptyRowsShown = (_, {
|
|
801
|
+
pivotTableOptions
|
|
802
|
+
}) => {
|
|
839
803
|
const visualization = {
|
|
840
804
|
...emptyRowsVisualization,
|
|
841
805
|
...visualizationReset,
|
|
@@ -858,10 +822,9 @@ export const EmptyRowsShown = (_, _ref32) => {
|
|
|
858
822
|
EmptyRowsShown.story = {
|
|
859
823
|
name: 'empty rows - shown'
|
|
860
824
|
};
|
|
861
|
-
export const EmptyRowsHidden = (_,
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
} = _ref33;
|
|
825
|
+
export const EmptyRowsHidden = (_, {
|
|
826
|
+
pivotTableOptions
|
|
827
|
+
}) => {
|
|
865
828
|
const visualization = {
|
|
866
829
|
...emptyRowsVisualization,
|
|
867
830
|
...visualizationReset,
|
|
@@ -881,10 +844,9 @@ export const EmptyRowsHidden = (_, _ref33) => {
|
|
|
881
844
|
EmptyRowsHidden.story = {
|
|
882
845
|
name: 'empty rows - hidden'
|
|
883
846
|
};
|
|
884
|
-
export const EmptyColumnsShown = (_,
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
} = _ref34;
|
|
847
|
+
export const EmptyColumnsShown = (_, {
|
|
848
|
+
pivotTableOptions
|
|
849
|
+
}) => {
|
|
888
850
|
const visualization = {
|
|
889
851
|
...lastFiveYearsVisualization,
|
|
890
852
|
...pivotTableOptions,
|
|
@@ -903,10 +865,9 @@ export const EmptyColumnsShown = (_, _ref34) => {
|
|
|
903
865
|
EmptyColumnsShown.story = {
|
|
904
866
|
name: 'empty columns - shown'
|
|
905
867
|
};
|
|
906
|
-
export const EmptyColumnsHidden = (_,
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
} = _ref35;
|
|
868
|
+
export const EmptyColumnsHidden = (_, {
|
|
869
|
+
pivotTableOptions
|
|
870
|
+
}) => {
|
|
910
871
|
const visualization = {
|
|
911
872
|
...lastFiveYearsVisualization,
|
|
912
873
|
...pivotTableOptions,
|
|
@@ -925,10 +886,9 @@ export const EmptyColumnsHidden = (_, _ref35) => {
|
|
|
925
886
|
EmptyColumnsHidden.story = {
|
|
926
887
|
name: 'empty columns - hidden'
|
|
927
888
|
};
|
|
928
|
-
export const EmptyColumnsWeeklyShown = (_,
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
} = _ref36;
|
|
889
|
+
export const EmptyColumnsWeeklyShown = (_, {
|
|
890
|
+
pivotTableOptions
|
|
891
|
+
}) => {
|
|
932
892
|
const visualization = {
|
|
933
893
|
...weeklyColumnsVisualization,
|
|
934
894
|
...pivotTableOptions,
|
|
@@ -947,10 +907,9 @@ export const EmptyColumnsWeeklyShown = (_, _ref36) => {
|
|
|
947
907
|
EmptyColumnsWeeklyShown.story = {
|
|
948
908
|
name: 'empty columns (weekly) - shown'
|
|
949
909
|
};
|
|
950
|
-
export const CumulativeEmptyColumnsWeeklyShown = (_,
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
} = _ref37;
|
|
910
|
+
export const CumulativeEmptyColumnsWeeklyShown = (_, {
|
|
911
|
+
pivotTableOptions
|
|
912
|
+
}) => {
|
|
954
913
|
const visualization = {
|
|
955
914
|
...weeklyColumnsVisualization,
|
|
956
915
|
...pivotTableOptions,
|
|
@@ -970,10 +929,9 @@ export const CumulativeEmptyColumnsWeeklyShown = (_, _ref37) => {
|
|
|
970
929
|
CumulativeEmptyColumnsWeeklyShown.story = {
|
|
971
930
|
name: 'cumulative + empty columns (weekly) - shown'
|
|
972
931
|
};
|
|
973
|
-
export const EmptyColumnsWeeklyHidden = (_,
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
} = _ref38;
|
|
932
|
+
export const EmptyColumnsWeeklyHidden = (_, {
|
|
933
|
+
pivotTableOptions
|
|
934
|
+
}) => {
|
|
977
935
|
const visualization = {
|
|
978
936
|
...weeklyColumnsVisualization,
|
|
979
937
|
...pivotTableOptions,
|
|
@@ -992,10 +950,9 @@ export const EmptyColumnsWeeklyHidden = (_, _ref38) => {
|
|
|
992
950
|
EmptyColumnsWeeklyHidden.story = {
|
|
993
951
|
name: 'empty columns (weekly) - hidden'
|
|
994
952
|
};
|
|
995
|
-
export const CumulativeEmptyColumnsWeeklyHidden = (_,
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
} = _ref39;
|
|
953
|
+
export const CumulativeEmptyColumnsWeeklyHidden = (_, {
|
|
954
|
+
pivotTableOptions
|
|
955
|
+
}) => {
|
|
999
956
|
const visualization = {
|
|
1000
957
|
...weeklyColumnsVisualization,
|
|
1001
958
|
...pivotTableOptions,
|
|
@@ -1015,10 +972,9 @@ export const CumulativeEmptyColumnsWeeklyHidden = (_, _ref39) => {
|
|
|
1015
972
|
CumulativeEmptyColumnsWeeklyHidden.story = {
|
|
1016
973
|
name: 'cumulative + empty columns (weekly) - hidden'
|
|
1017
974
|
};
|
|
1018
|
-
export const EmptyColumnsAssignedCatsShown = (_,
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
} = _ref40;
|
|
975
|
+
export const EmptyColumnsAssignedCatsShown = (_, {
|
|
976
|
+
pivotTableOptions
|
|
977
|
+
}) => {
|
|
1022
978
|
const visualization = {
|
|
1023
979
|
...emptyColumnsVisualization,
|
|
1024
980
|
...visualizationReset,
|
|
@@ -1038,10 +994,9 @@ export const EmptyColumnsAssignedCatsShown = (_, _ref40) => {
|
|
|
1038
994
|
EmptyColumnsAssignedCatsShown.story = {
|
|
1039
995
|
name: 'empty columns + assigned cats (shown)'
|
|
1040
996
|
};
|
|
1041
|
-
export const EmptyColumnsAssignedCatsHidden = (_,
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
} = _ref41;
|
|
997
|
+
export const EmptyColumnsAssignedCatsHidden = (_, {
|
|
998
|
+
pivotTableOptions
|
|
999
|
+
}) => {
|
|
1045
1000
|
const visualization = {
|
|
1046
1001
|
...emptyColumnsVisualization,
|
|
1047
1002
|
...visualizationReset,
|
|
@@ -1061,10 +1016,9 @@ export const EmptyColumnsAssignedCatsHidden = (_, _ref41) => {
|
|
|
1061
1016
|
EmptyColumnsAssignedCatsHidden.story = {
|
|
1062
1017
|
name: 'empty columns + assigned cats (hidden)'
|
|
1063
1018
|
};
|
|
1064
|
-
export const LegendFixedLightFill = (_,
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
} = _ref42;
|
|
1019
|
+
export const LegendFixedLightFill = (_, {
|
|
1020
|
+
pivotTableOptions
|
|
1021
|
+
}) => {
|
|
1068
1022
|
const visualization = {
|
|
1069
1023
|
...targetVisualization,
|
|
1070
1024
|
...visualizationReset,
|
|
@@ -1092,10 +1046,9 @@ export const LegendFixedLightFill = (_, _ref42) => {
|
|
|
1092
1046
|
LegendFixedLightFill.story = {
|
|
1093
1047
|
name: 'legend - fixed (light fill)'
|
|
1094
1048
|
};
|
|
1095
|
-
export const LegendFixedDarkFill = (_,
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
} = _ref43;
|
|
1049
|
+
export const LegendFixedDarkFill = (_, {
|
|
1050
|
+
pivotTableOptions
|
|
1051
|
+
}) => {
|
|
1099
1052
|
const visualization = {
|
|
1100
1053
|
...targetVisualization,
|
|
1101
1054
|
...visualizationReset,
|
|
@@ -1124,10 +1077,9 @@ export const LegendFixedDarkFill = (_, _ref43) => {
|
|
|
1124
1077
|
LegendFixedDarkFill.story = {
|
|
1125
1078
|
name: 'legend - fixed (dark fill)'
|
|
1126
1079
|
};
|
|
1127
|
-
export const LegendFixedText = (_,
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
} = _ref44;
|
|
1080
|
+
export const LegendFixedText = (_, {
|
|
1081
|
+
pivotTableOptions
|
|
1082
|
+
}) => {
|
|
1131
1083
|
const visualization = {
|
|
1132
1084
|
...targetVisualization,
|
|
1133
1085
|
...visualizationReset,
|
|
@@ -1151,10 +1103,9 @@ export const LegendFixedText = (_, _ref44) => {
|
|
|
1151
1103
|
LegendFixedText.story = {
|
|
1152
1104
|
name: 'legend - fixed (text)'
|
|
1153
1105
|
};
|
|
1154
|
-
export const LegendFixedRow = (_,
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
} = _ref45;
|
|
1106
|
+
export const LegendFixedRow = (_, {
|
|
1107
|
+
pivotTableOptions
|
|
1108
|
+
}) => {
|
|
1158
1109
|
const visualization = {
|
|
1159
1110
|
...targetVisualization,
|
|
1160
1111
|
...visualizationReset,
|
|
@@ -1181,10 +1132,9 @@ export const LegendFixedRow = (_, _ref45) => {
|
|
|
1181
1132
|
LegendFixedRow.story = {
|
|
1182
1133
|
name: 'legend - fixed (% row)'
|
|
1183
1134
|
};
|
|
1184
|
-
export const LegendByDataItem = (_,
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
} = _ref46;
|
|
1135
|
+
export const LegendByDataItem = (_, {
|
|
1136
|
+
pivotTableOptions
|
|
1137
|
+
}) => {
|
|
1188
1138
|
const visualization = {
|
|
1189
1139
|
...targetVisualization,
|
|
1190
1140
|
...visualizationReset,
|
|
@@ -1215,10 +1165,9 @@ export const LegendByDataItem = (_, _ref46) => {
|
|
|
1215
1165
|
LegendByDataItem.story = {
|
|
1216
1166
|
name: 'legend - by data item'
|
|
1217
1167
|
};
|
|
1218
|
-
export const HierarchyNone = (_,
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
} = _ref47;
|
|
1168
|
+
export const HierarchyNone = (_, {
|
|
1169
|
+
pivotTableOptions
|
|
1170
|
+
}) => {
|
|
1222
1171
|
const visualization = {
|
|
1223
1172
|
...hierarchyVisualization,
|
|
1224
1173
|
...visualizationReset,
|
|
@@ -1242,10 +1191,9 @@ export const HierarchyNone = (_, _ref47) => {
|
|
|
1242
1191
|
HierarchyNone.story = {
|
|
1243
1192
|
name: 'hierarchy - none'
|
|
1244
1193
|
};
|
|
1245
|
-
export const HierarchyRows = (_,
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
} = _ref48;
|
|
1194
|
+
export const HierarchyRows = (_, {
|
|
1195
|
+
pivotTableOptions
|
|
1196
|
+
}) => {
|
|
1249
1197
|
const visualization = {
|
|
1250
1198
|
...hierarchyVisualization,
|
|
1251
1199
|
...visualizationReset,
|
|
@@ -1268,10 +1216,9 @@ export const HierarchyRows = (_, _ref48) => {
|
|
|
1268
1216
|
HierarchyRows.story = {
|
|
1269
1217
|
name: 'hierarchy - rows'
|
|
1270
1218
|
};
|
|
1271
|
-
export const HierarchyColumns = (_,
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
} = _ref49;
|
|
1219
|
+
export const HierarchyColumns = (_, {
|
|
1220
|
+
pivotTableOptions
|
|
1221
|
+
}) => {
|
|
1275
1222
|
const visualization = {
|
|
1276
1223
|
...hierarchyVisualization,
|
|
1277
1224
|
...visualizationReset,
|
|
@@ -1296,10 +1243,9 @@ export const HierarchyColumns = (_, _ref49) => {
|
|
|
1296
1243
|
HierarchyColumns.story = {
|
|
1297
1244
|
name: 'hierarchy - columns'
|
|
1298
1245
|
};
|
|
1299
|
-
export const Narrative = (_,
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
} = _ref50;
|
|
1246
|
+
export const Narrative = (_, {
|
|
1247
|
+
pivotTableOptions
|
|
1248
|
+
}) => {
|
|
1303
1249
|
const visualization = {
|
|
1304
1250
|
...narrativeVisualization,
|
|
1305
1251
|
...visualizationReset,
|
|
@@ -1320,10 +1266,9 @@ export const Narrative = (_, _ref50) => {
|
|
|
1320
1266
|
Narrative.story = {
|
|
1321
1267
|
name: 'narrative'
|
|
1322
1268
|
};
|
|
1323
|
-
export const NarrativeDataAsFilter = (_,
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
} = _ref51;
|
|
1269
|
+
export const NarrativeDataAsFilter = (_, {
|
|
1270
|
+
pivotTableOptions
|
|
1271
|
+
}) => {
|
|
1327
1272
|
const visualization = {
|
|
1328
1273
|
...narrativeVisualization,
|
|
1329
1274
|
...visualizationReset,
|
|
@@ -1350,10 +1295,9 @@ export const NarrativeDataAsFilter = (_, _ref51) => {
|
|
|
1350
1295
|
NarrativeDataAsFilter.story = {
|
|
1351
1296
|
name: 'narrative - data as filter'
|
|
1352
1297
|
};
|
|
1353
|
-
export const Degs = (_,
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
} = _ref52;
|
|
1298
|
+
export const Degs = (_, {
|
|
1299
|
+
pivotTableOptions
|
|
1300
|
+
}) => {
|
|
1357
1301
|
const visualization = {
|
|
1358
1302
|
...degsVisualization,
|
|
1359
1303
|
...visualizationReset,
|
|
@@ -1372,10 +1316,9 @@ export const Degs = (_, _ref52) => {
|
|
|
1372
1316
|
Degs.story = {
|
|
1373
1317
|
name: 'DEGS'
|
|
1374
1318
|
};
|
|
1375
|
-
export const TruncatedHeaderCell = (_,
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
} = _ref53;
|
|
1319
|
+
export const TruncatedHeaderCell = (_, {
|
|
1320
|
+
pivotTableOptions
|
|
1321
|
+
}) => {
|
|
1379
1322
|
const widths = [250, 200, 500];
|
|
1380
1323
|
const [width, setWidth] = useState(250);
|
|
1381
1324
|
const toggleWidth = () => setWidth(currentWidth => {
|