@dhis2/analytics 28.0.3 → 28.0.4
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__/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 +9 -10
- package/build/cjs/components/DimensionsPanel/List/OptionsButton.js +8 -11
- package/build/cjs/components/DimensionsPanel/List/RecommendedIcon.js +10 -13
- 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__/FileMenu.spec.js +6 -2
- package/build/cjs/components/FileMenu/__tests__/GetLinkDialog.spec.js +7 -8
- package/build/cjs/components/FileMenu/utils.js +10 -12
- package/build/cjs/components/Filter/Filter.js +21 -27
- 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 +20 -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 +36 -45
- package/build/cjs/components/OpenFileDialog/PaginationControls.js +22 -28
- package/build/cjs/components/OpenFileDialog/VisTypeFilter.js +28 -37
- package/build/cjs/components/Options/VisualizationOptions.js +35 -46
- package/build/cjs/components/OrgUnitDimension/OrgUnitDimension.js +38 -60
- package/build/cjs/components/PeriodDimension/FixedPeriodFilter.js +16 -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 +24 -30
- package/build/cjs/components/PeriodDimension/__tests__/__snapshots__/FixedPeriodSingleSelect.spec.js.snap +0 -1
- package/build/cjs/components/PeriodDimension/__tests__/__snapshots__/PeriodDimension.spec.js.snap +0 -1
- 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/Parser/Parser.js +5 -10
- 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 +4 -5
- package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuList.spec.js +13 -11
- package/build/cjs/components/Toolbar/InterpretationsAndDetailsToggler.js +15 -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/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 +7 -9
- package/build/cjs/components/TranslationDialog/TranslationModal/TranslationModalActions.js +18 -27
- 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__/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 +8 -8
- package/build/es/components/DimensionsPanel/List/OptionsButton.js +8 -11
- package/build/es/components/DimensionsPanel/List/RecommendedIcon.js +10 -13
- 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__/FileMenu.spec.js +6 -2
- package/build/es/components/FileMenu/__tests__/GetLinkDialog.spec.js +7 -8
- package/build/es/components/FileMenu/utils.js +10 -12
- package/build/es/components/Filter/Filter.js +21 -27
- 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 +20 -26
- 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 +35 -43
- package/build/es/components/OpenFileDialog/PaginationControls.js +22 -28
- package/build/es/components/OpenFileDialog/VisTypeFilter.js +28 -37
- package/build/es/components/Options/VisualizationOptions.js +34 -44
- package/build/es/components/OrgUnitDimension/OrgUnitDimension.js +37 -58
- package/build/es/components/PeriodDimension/FixedPeriodFilter.js +16 -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 +24 -30
- package/build/es/components/PeriodDimension/__tests__/__snapshots__/FixedPeriodSingleSelect.spec.js.snap +0 -1
- package/build/es/components/PeriodDimension/__tests__/__snapshots__/PeriodDimension.spec.js.snap +0 -1
- 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/Parser/Parser.js +4 -8
- 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 +4 -5
- package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuList.spec.js +6 -4
- package/build/es/components/Toolbar/InterpretationsAndDetailsToggler.js +15 -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/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 +6 -7
- package/build/es/components/TranslationDialog/TranslationModal/TranslationModalActions.js +18 -27
- 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 +12 -12
|
@@ -9,29 +9,30 @@ var _ui = require("@dhis2/ui");
|
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _getPWAInstallationStatus = require("../../modules/getPWAInstallationStatus.js");
|
|
12
|
-
function
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
14
|
const LoadingMask = () => {
|
|
16
15
|
return /*#__PURE__*/_react.default.createElement(_ui.Layer, null, /*#__PURE__*/_react.default.createElement(_ui.CenteredContent, null, /*#__PURE__*/_react.default.createElement(_ui.CircularLoader, null)));
|
|
17
16
|
};
|
|
18
|
-
const CacheableSectionWrapper =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} = _ref;
|
|
17
|
+
const CacheableSectionWrapper = ({
|
|
18
|
+
id,
|
|
19
|
+
children,
|
|
20
|
+
isParentCached = false
|
|
21
|
+
}) => {
|
|
24
22
|
const {
|
|
25
23
|
startRecording,
|
|
26
24
|
isCached,
|
|
27
25
|
remove
|
|
28
26
|
} = (0, _appRuntime.useCacheableSection)(id);
|
|
29
27
|
(0, _react.useEffect)(() => {
|
|
30
|
-
|
|
28
|
+
const shouldStartRecording = isParentCached && !isCached;
|
|
29
|
+
const shouldRemove = !isParentCached && isCached;
|
|
30
|
+
if (shouldStartRecording) {
|
|
31
31
|
startRecording({
|
|
32
32
|
onError: console.error
|
|
33
33
|
});
|
|
34
|
-
}
|
|
34
|
+
}
|
|
35
|
+
if (shouldRemove) {
|
|
35
36
|
// Synchronize cache state on load or prop update
|
|
36
37
|
// -- a back-up to imperative `removeCachedData`
|
|
37
38
|
remove();
|
|
@@ -47,14 +48,13 @@ CacheableSectionWrapper.propTypes = {
|
|
|
47
48
|
id: _propTypes.default.string,
|
|
48
49
|
isParentCached: _propTypes.default.bool
|
|
49
50
|
};
|
|
50
|
-
const DashboardPluginWrapper =
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
} = _ref2;
|
|
51
|
+
const DashboardPluginWrapper = ({
|
|
52
|
+
onInstallationStatusChange = Function.prototype,
|
|
53
|
+
children,
|
|
54
|
+
cacheId,
|
|
55
|
+
isParentCached = false,
|
|
56
|
+
...props
|
|
57
|
+
}) => {
|
|
58
58
|
const {
|
|
59
59
|
pwaEnabled
|
|
60
60
|
} = (0, _appRuntime.useConfig)();
|
|
@@ -80,10 +80,6 @@ const DashboardPluginWrapper = _ref2 => {
|
|
|
80
80
|
})) : null;
|
|
81
81
|
};
|
|
82
82
|
exports.DashboardPluginWrapper = DashboardPluginWrapper;
|
|
83
|
-
DashboardPluginWrapper.defaultProps = {
|
|
84
|
-
isParentCached: false,
|
|
85
|
-
onInstallationStatusChange: Function.prototype
|
|
86
|
-
};
|
|
87
83
|
DashboardPluginWrapper.propTypes = {
|
|
88
84
|
cacheId: _propTypes.default.string,
|
|
89
85
|
children: _propTypes.default.func,
|
|
@@ -19,19 +19,18 @@ var _DndContext = _interopRequireWildcard(require("./DndContext.js"));
|
|
|
19
19
|
var _FormulaField = _interopRequireWildcard(require("./FormulaField.js"));
|
|
20
20
|
var _MathOperatorSelector = _interopRequireDefault(require("./MathOperatorSelector.js"));
|
|
21
21
|
var _CalculationModalStyle = _interopRequireDefault(require("./styles/CalculationModal.style.js"));
|
|
22
|
-
function
|
|
23
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
24
23
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
25
24
|
const FIRST_POSITION = 0;
|
|
26
25
|
const LAST_POSITION = -1;
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
const CALCULATION_PROP_DEFAULT = {};
|
|
27
|
+
const CalculationModal = ({
|
|
28
|
+
calculation = CALCULATION_PROP_DEFAULT,
|
|
29
|
+
onSave,
|
|
30
|
+
onClose,
|
|
31
|
+
onDelete,
|
|
32
|
+
displayNameProp
|
|
33
|
+
}) => {
|
|
35
34
|
const {
|
|
36
35
|
show: showError
|
|
37
36
|
} = (0, _appRuntime.useAlert)(error => error, {
|
|
@@ -57,29 +56,23 @@ const CalculationModal = _ref => {
|
|
|
57
56
|
const query = {
|
|
58
57
|
dataElements: {
|
|
59
58
|
resource: 'dataElements',
|
|
60
|
-
params:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
paging: false
|
|
68
|
-
};
|
|
69
|
-
}
|
|
59
|
+
params: ({
|
|
60
|
+
ids = []
|
|
61
|
+
}) => ({
|
|
62
|
+
fields: `id,${displayNameProp}~rename(name)`,
|
|
63
|
+
filter: `id:in:[${ids.join(',')}]`,
|
|
64
|
+
paging: false
|
|
65
|
+
})
|
|
70
66
|
},
|
|
71
67
|
dataElementOperands: {
|
|
72
68
|
resource: 'dataElementOperands',
|
|
73
|
-
params:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
paging: false
|
|
81
|
-
};
|
|
82
|
-
}
|
|
69
|
+
params: ({
|
|
70
|
+
ids = []
|
|
71
|
+
}) => ({
|
|
72
|
+
fields: `id,${displayNameProp}~rename(name)`,
|
|
73
|
+
filter: `id:in:[${ids.join(',')}]`,
|
|
74
|
+
paging: false
|
|
75
|
+
})
|
|
83
76
|
}
|
|
84
77
|
};
|
|
85
78
|
const {
|
|
@@ -124,13 +117,12 @@ const CalculationModal = _ref => {
|
|
|
124
117
|
const expressionStatus = validationOutput === null || validationOutput === void 0 ? void 0 : validationOutput.status;
|
|
125
118
|
const selectItem = itemId => setSelectedItemId(prevSelected => prevSelected !== itemId ? itemId : null);
|
|
126
119
|
const isLoading = isCreatingCalculation || isUpdatingCalculation || isDeletingCalculation || isSavingCalculation || isValidating;
|
|
127
|
-
const addItem =
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
} = _ref4;
|
|
120
|
+
const addItem = ({
|
|
121
|
+
label,
|
|
122
|
+
value,
|
|
123
|
+
type,
|
|
124
|
+
destIndex = LAST_POSITION
|
|
125
|
+
}) => {
|
|
134
126
|
if (isLoading) {
|
|
135
127
|
return null;
|
|
136
128
|
}
|
|
@@ -155,11 +147,10 @@ const CalculationModal = _ref => {
|
|
|
155
147
|
setFocusItemId(newItem.id);
|
|
156
148
|
}
|
|
157
149
|
};
|
|
158
|
-
const moveItem =
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
} = _ref5;
|
|
150
|
+
const moveItem = ({
|
|
151
|
+
sourceIndex,
|
|
152
|
+
destIndex
|
|
153
|
+
}) => {
|
|
163
154
|
if (isLoading) {
|
|
164
155
|
return null;
|
|
165
156
|
}
|
|
@@ -169,11 +160,10 @@ const CalculationModal = _ref => {
|
|
|
169
160
|
sourceList.splice(destIndex, 0, moved);
|
|
170
161
|
setExpressionArray(sourceList);
|
|
171
162
|
};
|
|
172
|
-
const setItemValue =
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
} = _ref6;
|
|
163
|
+
const setItemValue = ({
|
|
164
|
+
itemId,
|
|
165
|
+
value
|
|
166
|
+
}) => {
|
|
177
167
|
const updatedItems = expressionArray.map(item => item.id === itemId ? Object.assign({}, item, {
|
|
178
168
|
value
|
|
179
169
|
}) : item);
|
|
@@ -189,11 +179,10 @@ const CalculationModal = _ref => {
|
|
|
189
179
|
setSelectedItemId(null);
|
|
190
180
|
}
|
|
191
181
|
};
|
|
192
|
-
const addOrMoveDraggedItem =
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
} = _ref7;
|
|
182
|
+
const addOrMoveDraggedItem = ({
|
|
183
|
+
item,
|
|
184
|
+
destination
|
|
185
|
+
}) => {
|
|
197
186
|
const destContainerId = destination.containerId;
|
|
198
187
|
let destIndex = FIRST_POSITION;
|
|
199
188
|
if (item.sourceContainerId === _DndContext.OPTIONS_PANEL) {
|
|
@@ -334,12 +323,9 @@ const CalculationModal = _ref => {
|
|
|
334
323
|
}, /*#__PURE__*/_react.default.createElement(_ui.InputField, {
|
|
335
324
|
label: _index.default.t('Calculation name'),
|
|
336
325
|
helpText: _index.default.t('Shown in table headers and chart axes/legends'),
|
|
337
|
-
onChange:
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
} = _ref8;
|
|
341
|
-
return setName(value.substr(0, 50));
|
|
342
|
-
},
|
|
326
|
+
onChange: ({
|
|
327
|
+
value
|
|
328
|
+
}) => setName(value.substr(0, 50)),
|
|
343
329
|
value: name,
|
|
344
330
|
dataTest: "calculation-label",
|
|
345
331
|
dense: true
|
|
@@ -394,7 +380,4 @@ CalculationModal.propTypes = {
|
|
|
394
380
|
name: _propTypes.default.string
|
|
395
381
|
})
|
|
396
382
|
};
|
|
397
|
-
CalculationModal.defaultProps = {
|
|
398
|
-
calculation: {}
|
|
399
|
-
};
|
|
400
383
|
var _default = exports.default = CalculationModal;
|
|
@@ -15,12 +15,11 @@ var _expressions = require("../../../modules/expressions.js");
|
|
|
15
15
|
var _DataElementOptionStyle = _interopRequireDefault(require("./styles/DataElementOption.style.js"));
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
17
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
18
|
-
const DataElementOption =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} = _ref;
|
|
18
|
+
const DataElementOption = ({
|
|
19
|
+
label,
|
|
20
|
+
value,
|
|
21
|
+
onDoubleClick
|
|
22
|
+
}) => {
|
|
24
23
|
const data = {
|
|
25
24
|
label,
|
|
26
25
|
value,
|
|
@@ -17,20 +17,18 @@ var _index = _interopRequireDefault(require("../../../locales/index.js"));
|
|
|
17
17
|
var _dataTypes = require("../../../modules/dataTypes.js");
|
|
18
18
|
var _DataElementOption = _interopRequireDefault(require("./DataElementOption.js"));
|
|
19
19
|
var _DataElementSelectorStyle = _interopRequireDefault(require("./styles/DataElementSelector.style.js"));
|
|
20
|
-
function
|
|
21
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
22
21
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
23
22
|
const getOptions = () => ({
|
|
24
23
|
[_dataTypes.TOTALS]: _index.default.t('Totals only'),
|
|
25
24
|
[_dataTypes.DETAIL]: _index.default.t('Details only')
|
|
26
25
|
});
|
|
27
|
-
const GroupSelector =
|
|
26
|
+
const GroupSelector = ({
|
|
27
|
+
currentValue,
|
|
28
|
+
onChange,
|
|
29
|
+
displayNameProp
|
|
30
|
+
}) => {
|
|
28
31
|
var _dataTypes$DIMENSION_;
|
|
29
|
-
let {
|
|
30
|
-
currentValue,
|
|
31
|
-
onChange,
|
|
32
|
-
displayNameProp
|
|
33
|
-
} = _ref;
|
|
34
32
|
const dataEngine = (0, _appRuntime.useDataEngine)();
|
|
35
33
|
const [loading, setLoading] = (0, _react.useState)(true);
|
|
36
34
|
const [groups, setGroups] = (0, _react.useState)([]);
|
|
@@ -72,11 +70,10 @@ GroupSelector.propTypes = {
|
|
|
72
70
|
displayNameProp: _propTypes.default.string.isRequired,
|
|
73
71
|
onChange: _propTypes.default.func.isRequired
|
|
74
72
|
};
|
|
75
|
-
const DisaggregationSelector =
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
} = _ref2;
|
|
73
|
+
const DisaggregationSelector = ({
|
|
74
|
+
currentValue,
|
|
75
|
+
onChange
|
|
76
|
+
}) => {
|
|
80
77
|
const options = getOptions();
|
|
81
78
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
82
79
|
className: `jsx-${_DataElementSelectorStyle.default.__hash}` + " " + "group-select"
|
|
@@ -98,11 +95,10 @@ DisaggregationSelector.propTypes = {
|
|
|
98
95
|
currentValue: _propTypes.default.string.isRequired,
|
|
99
96
|
onChange: _propTypes.default.func.isRequired
|
|
100
97
|
};
|
|
101
|
-
const DataElementSelector =
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
} = _ref3;
|
|
98
|
+
const DataElementSelector = ({
|
|
99
|
+
displayNameProp,
|
|
100
|
+
onDoubleClick
|
|
101
|
+
}) => {
|
|
106
102
|
const dataEngine = (0, _appRuntime.useDataEngine)();
|
|
107
103
|
const [searchTerm, setSearchTerm] = (0, _react.useState)('');
|
|
108
104
|
const [group, setGroup] = (0, _react.useState)(_dataTypes.DIMENSION_TYPE_ALL);
|
|
@@ -159,10 +155,9 @@ const DataElementSelector = _ref3 => {
|
|
|
159
155
|
searchTermRef.current = newSearchTerm;
|
|
160
156
|
fetchData(true);
|
|
161
157
|
}, 500);
|
|
162
|
-
const onSearchChange =
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
} = _ref4;
|
|
158
|
+
const onSearchChange = ({
|
|
159
|
+
value
|
|
160
|
+
}) => {
|
|
166
161
|
const newSearchTerm = value;
|
|
167
162
|
setSearchTerm(newSearchTerm);
|
|
168
163
|
|
|
@@ -182,10 +177,9 @@ const DataElementSelector = _ref3 => {
|
|
|
182
177
|
pageRef.current = 1;
|
|
183
178
|
fetchData(true);
|
|
184
179
|
};
|
|
185
|
-
const onEndReached =
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
} = _ref5;
|
|
180
|
+
const onEndReached = ({
|
|
181
|
+
isIntersecting
|
|
182
|
+
}) => {
|
|
189
183
|
if (isIntersecting) {
|
|
190
184
|
// if hasNextPage is set it means at least 1 request already happened and there is
|
|
191
185
|
// another page, fetch the next page
|
|
@@ -242,18 +236,15 @@ const DataElementSelector = _ref3 => {
|
|
|
242
236
|
className: `jsx-${_DataElementSelectorStyle.default.__hash}` + " " + ((0, _classnames.default)('dimension-list-scroller', {
|
|
243
237
|
loading
|
|
244
238
|
}) || "")
|
|
245
|
-
}, Boolean(options.length) && options.map(
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
onDoubleClick: onDoubleClick
|
|
255
|
-
});
|
|
256
|
-
}), !loading && !options.length && /*#__PURE__*/_react.default.createElement("div", {
|
|
239
|
+
}, Boolean(options.length) && options.map(({
|
|
240
|
+
label,
|
|
241
|
+
value
|
|
242
|
+
}) => /*#__PURE__*/_react.default.createElement(_DataElementOption.default, {
|
|
243
|
+
key: value,
|
|
244
|
+
label: label,
|
|
245
|
+
value: value,
|
|
246
|
+
onDoubleClick: onDoubleClick
|
|
247
|
+
})), !loading && !options.length && /*#__PURE__*/_react.default.createElement("div", {
|
|
257
248
|
className: `jsx-${_DataElementSelectorStyle.default.__hash}` + " " + "empty-list"
|
|
258
249
|
}, searchTermRef.current ? _index.default.t('No data elements found for "{{- searchTerm}}"', {
|
|
259
250
|
searchTerm: searchTermRef.current
|
|
@@ -8,8 +8,7 @@ var _core = require("@dnd-kit/core");
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _DraggingItem = _interopRequireDefault(require("./DraggingItem.js"));
|
|
11
|
-
function
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
13
|
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; }
|
|
15
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
@@ -32,24 +31,21 @@ const getIntersectionRatio = (entry, target) => {
|
|
|
32
31
|
|
|
33
32
|
return 0;
|
|
34
33
|
};
|
|
35
|
-
const sortCollisionsDesc = (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
} = _ref2;
|
|
34
|
+
const sortCollisionsDesc = ({
|
|
35
|
+
data: {
|
|
36
|
+
value: a
|
|
37
|
+
}
|
|
38
|
+
}, {
|
|
39
|
+
data: {
|
|
40
|
+
value: b
|
|
41
|
+
}
|
|
42
|
+
}) => {
|
|
46
43
|
return b - a;
|
|
47
44
|
};
|
|
48
|
-
const rectIntersectionCustom =
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
} = _ref3;
|
|
45
|
+
const rectIntersectionCustom = ({
|
|
46
|
+
pointerCoordinates,
|
|
47
|
+
droppableContainers
|
|
48
|
+
}) => {
|
|
53
49
|
// create a rect around the pointerCoords for calculating the intersection
|
|
54
50
|
|
|
55
51
|
const pointerRectWidth = 40;
|
|
@@ -97,22 +93,20 @@ const isInteractiveElement = el => {
|
|
|
97
93
|
class PointerSensor extends _core.PointerSensor {}
|
|
98
94
|
_defineProperty(PointerSensor, "activators", [{
|
|
99
95
|
eventName: 'onPointerDown',
|
|
100
|
-
handler:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
} = _ref7;
|
|
96
|
+
handler: ({
|
|
97
|
+
nativeEvent: event
|
|
98
|
+
}) => {
|
|
104
99
|
if (!event.isPrimary || event.button !== 0 || isInteractiveElement(event.target)) {
|
|
105
100
|
return false;
|
|
106
101
|
}
|
|
107
102
|
return true;
|
|
108
103
|
}
|
|
109
104
|
}]);
|
|
110
|
-
const OuterDndContext =
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
} = _ref4;
|
|
105
|
+
const OuterDndContext = ({
|
|
106
|
+
children,
|
|
107
|
+
onDragEnd,
|
|
108
|
+
onDragStart
|
|
109
|
+
}) => {
|
|
116
110
|
const [draggingItem, setDraggingItem] = (0, _react.useState)(null);
|
|
117
111
|
const sensor = (0, _core.useSensor)(PointerSensor, {
|
|
118
112
|
activationConstraint: {
|
|
@@ -120,22 +114,20 @@ const OuterDndContext = _ref4 => {
|
|
|
120
114
|
}
|
|
121
115
|
});
|
|
122
116
|
const sensors = (0, _core.useSensors)(sensor);
|
|
123
|
-
const handleDragStart =
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
} = _ref5;
|
|
117
|
+
const handleDragStart = ({
|
|
118
|
+
active
|
|
119
|
+
}) => {
|
|
127
120
|
setDraggingItem(active.data.current);
|
|
128
121
|
onDragStart && onDragStart();
|
|
129
122
|
};
|
|
130
123
|
const handleDragCancel = () => {
|
|
131
124
|
setDraggingItem(null);
|
|
132
125
|
};
|
|
133
|
-
const handleDragEnd =
|
|
126
|
+
const handleDragEnd = ({
|
|
127
|
+
active,
|
|
128
|
+
over
|
|
129
|
+
}) => {
|
|
134
130
|
var _over$data, _over$data$current, _over$data$current$so, _over$data$current2, _over$data$current3;
|
|
135
|
-
let {
|
|
136
|
-
active,
|
|
137
|
-
over
|
|
138
|
-
} = _ref6;
|
|
139
131
|
if (!(over !== null && over !== void 0 && over.id) || (over === null || over === void 0 ? void 0 : (_over$data = over.data) === null || _over$data === void 0 ? void 0 : (_over$data$current = _over$data.current) === null || _over$data$current === void 0 ? void 0 : (_over$data$current$so = _over$data$current.sortable) === null || _over$data$current$so === void 0 ? void 0 : _over$data$current$so.containerId) === OPTIONS_PANEL || !active.data.current) {
|
|
140
132
|
// dropped over non-droppable or over options panel
|
|
141
133
|
handleDragCancel();
|
|
@@ -14,12 +14,11 @@ var _expressions = require("../../../modules/expressions.js");
|
|
|
14
14
|
var _DraggingItemStyle = _interopRequireDefault(require("./styles/DraggingItem.style.js"));
|
|
15
15
|
var _FormulaItemStyle = _interopRequireDefault(require("./styles/FormulaItem.style.js"));
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
const DraggingItem =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} = _ref;
|
|
17
|
+
const DraggingItem = ({
|
|
18
|
+
label,
|
|
19
|
+
type,
|
|
20
|
+
value
|
|
21
|
+
}) => {
|
|
23
22
|
const displayLabel = type === _expressions.EXPRESSION_TYPE_NUMBER ? value || label : label;
|
|
24
23
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
25
24
|
className: `jsx-${_DraggingItemStyle.default.__hash} jsx-${_FormulaItemStyle.default.__hash}` + " " + ((0, _classnames.default)('dragging', 'content', {
|
|
@@ -11,11 +11,10 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
var _DropZoneStyle = _interopRequireDefault(require("./styles/DropZone.style.js"));
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
const DropZone =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} = _ref;
|
|
14
|
+
const DropZone = ({
|
|
15
|
+
firstElementId,
|
|
16
|
+
overLastDropZone
|
|
17
|
+
}) => {
|
|
19
18
|
const {
|
|
20
19
|
isOver,
|
|
21
20
|
setNodeRef,
|
|
@@ -26,16 +26,16 @@ const Placeholder = () => /*#__PURE__*/_react.default.createElement("div", {
|
|
|
26
26
|
}, _d2I18n.default.t('Drag items here, or double click in the list, to start building a calculation formula')), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
27
27
|
id: _FormulaFieldStyle.default.__hash
|
|
28
28
|
}, _FormulaFieldStyle.default));
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
const ITEMS_PROP_DEFAULT = [];
|
|
30
|
+
const FormulaField = ({
|
|
31
|
+
items = ITEMS_PROP_DEFAULT,
|
|
32
|
+
selectedItemId,
|
|
33
|
+
focusItemId,
|
|
34
|
+
onChange,
|
|
35
|
+
onClick,
|
|
36
|
+
onDoubleClick,
|
|
37
|
+
loading
|
|
38
|
+
}) => {
|
|
39
39
|
const {
|
|
40
40
|
over,
|
|
41
41
|
setNodeRef: setLastDropzoneRef
|
|
@@ -60,28 +60,25 @@ const FormulaField = _ref => {
|
|
|
60
60
|
}, /*#__PURE__*/_react.default.createElement(_DropZone.default, {
|
|
61
61
|
firstElementId: itemIds[0],
|
|
62
62
|
overLastDropZone: overLastDropZone
|
|
63
|
-
}), !items.length && /*#__PURE__*/_react.default.createElement(Placeholder, null), Boolean(items.length) && items.map((
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
overLastDropZone: overLastDropZone
|
|
83
|
-
});
|
|
84
|
-
}))), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
63
|
+
}), !items.length && /*#__PURE__*/_react.default.createElement(Placeholder, null), Boolean(items.length) && items.map(({
|
|
64
|
+
id,
|
|
65
|
+
label,
|
|
66
|
+
type,
|
|
67
|
+
value
|
|
68
|
+
}, index) => /*#__PURE__*/_react.default.createElement(_FormulaItem.default, {
|
|
69
|
+
key: id,
|
|
70
|
+
id: id,
|
|
71
|
+
label: label,
|
|
72
|
+
type: type,
|
|
73
|
+
value: value,
|
|
74
|
+
hasFocus: focusItemId === id,
|
|
75
|
+
isHighlighted: selectedItemId === id,
|
|
76
|
+
isLast: index === items.length - 1,
|
|
77
|
+
onChange: onChange,
|
|
78
|
+
onClick: onClick,
|
|
79
|
+
onDoubleClick: onDoubleClick,
|
|
80
|
+
overLastDropZone: overLastDropZone
|
|
81
|
+
})))), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
85
82
|
id: _FormulaFieldStyle.default.__hash
|
|
86
83
|
}, _FormulaFieldStyle.default));
|
|
87
84
|
};
|
|
@@ -16,28 +16,26 @@ var _dimensionListItem = require("../../../modules/dimensionListItem.js");
|
|
|
16
16
|
var _expressions = require("../../../modules/expressions.js");
|
|
17
17
|
var _DragHandleIcon = _interopRequireDefault(require("./DragHandleIcon.js"));
|
|
18
18
|
var _FormulaItemStyle = _interopRequireDefault(require("./styles/FormulaItem.style.js"));
|
|
19
|
-
function
|
|
20
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
21
20
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
22
21
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
23
22
|
const BEFORE = 'BEFORE';
|
|
24
23
|
const AFTER = 'AFTER';
|
|
25
24
|
const maxMsBetweenClicks = 300;
|
|
26
25
|
const TAG_INPUT = 'INPUT';
|
|
27
|
-
const FormulaItem =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} = _ref;
|
|
26
|
+
const FormulaItem = ({
|
|
27
|
+
id,
|
|
28
|
+
label,
|
|
29
|
+
value = '',
|
|
30
|
+
type,
|
|
31
|
+
isLast,
|
|
32
|
+
isHighlighted,
|
|
33
|
+
overLastDropZone,
|
|
34
|
+
onChange,
|
|
35
|
+
onClick,
|
|
36
|
+
onDoubleClick,
|
|
37
|
+
hasFocus
|
|
38
|
+
}) => {
|
|
41
39
|
const {
|
|
42
40
|
attributes,
|
|
43
41
|
listeners,
|