@vizzly/dashboard 0.14.4 → 0.15.0-dev-4c548c2a9cdc29d779838ea3325029fe7e640235
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/dist/charts/src/BubbleChart/BubbleChart.d.ts +5 -0
- package/dist/charts/src/BubbleChart/VizzlyBubbleChart.d.ts +3 -0
- package/dist/charts/src/BubbleChart/index.d.ts +1 -0
- package/dist/charts/src/BubbleChart/types.d.ts +32 -0
- package/dist/charts/src/Legend/types.d.ts +1 -1
- package/dist/charts/src/XYChart/types.d.ts +2 -0
- package/dist/charts/src/v2/components/AreaChart/AreaChart.d.ts +22 -0
- package/dist/charts/src/v2/components/AreaChart/contants.d.ts +1 -0
- package/dist/charts/src/v2/components/AreaChart/index.d.ts +1 -0
- package/dist/charts/src/v2/components/Axis/AxisBottom.d.ts +18 -0
- package/dist/charts/src/v2/components/Axis/AxisLeft.d.ts +15 -0
- package/dist/charts/src/v2/components/Axis/shared.d.ts +2 -0
- package/dist/charts/src/v2/components/BarChart/BarChart.d.ts +24 -0
- package/dist/charts/src/v2/components/BarChart/index.d.ts +1 -0
- package/dist/charts/src/v2/components/BarChart/useBarXScale.d.ts +2 -0
- package/dist/charts/src/v2/components/BubbleChart/BubbleChart.d.ts +35 -0
- package/dist/charts/src/v2/components/BubbleChart/index.d.ts +1 -0
- package/dist/charts/src/v2/components/ChartWrapper/ChartWrapper.d.ts +9 -0
- package/dist/charts/src/v2/components/ComboChart/ComboChart.d.ts +21 -0
- package/dist/charts/src/v2/components/GoalLine/GoalLine.d.ts +1 -1
- package/dist/charts/src/v2/components/GoalLine/GoalLines.d.ts +11 -0
- package/dist/charts/src/v2/components/GridRows/GridRows.d.ts +10 -0
- package/dist/charts/src/v2/components/GridRows/shared.d.ts +2 -0
- package/dist/charts/src/v2/components/Legend/Legend.d.ts +14 -7
- package/dist/charts/src/v2/components/Legend/LegendItem/LegendItem.d.ts +7 -4
- package/dist/charts/src/v2/components/Legend/LegendItemBox/LegendItemBox.d.ts +9 -2
- package/dist/charts/src/v2/components/LineChart/LineChart.d.ts +16 -1
- package/dist/charts/src/v2/components/RadarChart/Grid.d.ts +3 -0
- package/dist/charts/src/v2/components/RadarChart/MiddleLine.d.ts +7 -0
- package/dist/charts/src/v2/components/RadarChart/Polygons.d.ts +3 -0
- package/dist/charts/src/v2/components/RadarChart/RadarChart.d.ts +3 -0
- package/dist/charts/src/v2/components/RadarChart/index.d.ts +1 -0
- package/dist/charts/src/v2/components/RadarChart/types.d.ts +33 -0
- package/dist/charts/src/v2/components/Threshold/ThresholdArea.d.ts +14 -0
- package/dist/charts/src/v2/components/Threshold/threshold.utils.d.ts +4 -0
- package/dist/charts/src/v2/components/Tooltip/CrosshairCircle.d.ts +21 -0
- package/dist/charts/src/v2/components/Tooltip/Line.d.ts +7 -0
- package/dist/charts/src/v2/components/Tooltip/Tooltip.d.ts +14 -8
- package/dist/charts/src/v2/components/WaterfallChart/Legend.d.ts +15 -0
- package/dist/charts/src/v2/components/WaterfallChart/Tooltip.d.ts +14 -0
- package/dist/charts/src/v2/components/WaterfallChart/WaterfallChart.d.ts +14 -0
- package/dist/charts/src/v2/components/WaterfallChart/index.d.ts +2 -0
- package/dist/charts/src/v2/components/hooks/useBottomAxisBaselineShift.d.ts +10 -0
- package/dist/charts/src/v2/components/hooks/useFlattenedData.d.ts +4 -0
- package/dist/charts/src/v2/components/hooks/useTooltip.d.ts +16 -0
- package/dist/charts/src/v2/components/hooks/useVisibleKey.d.ts +6 -0
- package/dist/charts/src/v2/components/hooks/useYScale.d.ts +2 -0
- package/dist/charts/src/v2/constants/BORDER_RADIUS.d.ts +1 -0
- package/dist/charts/src/v2/constants/PADDING.d.ts +4 -0
- package/dist/charts/src/v2/index.d.ts +4 -0
- package/dist/charts/src/v2/utils/addTrendAndForecast.d.ts +1 -1
- package/dist/charts/src/v2/utils/buildMargin.d.ts +10 -0
- package/dist/charts/src/v2/utils/components/BarGroup.d.ts +24 -0
- package/dist/charts/src/v2/utils/components/BarStacked.d.ts +18 -0
- package/dist/charts/src/v2/utils/flattenData.d.ts +1 -1
- package/dist/charts/src/v2/utils/getBarFill.d.ts +3 -0
- package/dist/charts/src/v2/utils/getClipArea.d.ts +1 -1
- package/dist/charts/src/v2/utils/getColor.d.ts +1 -1
- package/dist/charts/src/v2/utils/getTooltipData.d.ts +8 -6
- package/dist/charts/src/v2/utils/getTrend.d.ts +1 -1
- package/dist/charts/src/v2/utils/useableId.d.ts +1 -0
- package/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +18 -42
- package/dist/dashboard/src/errors/FailedToSaveError.d.ts +3 -0
- package/dist/dashboard/src/index.d.ts +2 -0
- package/dist/dashboard/src/types.d.ts +1 -1
- package/dist/dashboard.cjs.development.js +76502 -0
- package/dist/dashboard.cjs.production.min.js +1 -0
- package/dist/dashboard.esm.js +76551 -0
- package/dist/index.js +8 -1
- package/dist/results-driver/src/driver/VizzlyQuery/AreaChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/AreaChartV2/toQueries.d.ts +4 -0
- package/dist/results-driver/src/driver/VizzlyQuery/BarChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/BarChartV2/toQueries.d.ts +4 -0
- package/dist/results-driver/src/driver/VizzlyQuery/BasicTable/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/BubbleChart/toQueries.d.ts +10 -0
- package/dist/results-driver/src/driver/VizzlyQuery/BubbleChartV2/toQueries.d.ts +10 -0
- package/dist/results-driver/src/driver/VizzlyQuery/ComboChartV2/toQueries.d.ts +10 -0
- package/dist/results-driver/src/driver/VizzlyQuery/FunnelChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/LineChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/LineChartV2/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/PieChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/PivotTable/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/RadarChart/toQueries.d.ts +4 -0
- package/dist/results-driver/src/driver/VizzlyQuery/RichText/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/SunburstChart/toQueries.d.ts +4 -0
- package/dist/results-driver/src/driver/VizzlyQuery/WaterfallChart/toQueries.d.ts +4 -0
- package/dist/results-driver/src/driver/VizzlyQuery/buildVizzlyQuery.d.ts +5 -0
- package/dist/results-driver/src/driver/VizzlyQuery/commonToQueries.d.ts +1 -1
- package/dist/services/src/Services/View.d.ts +17 -1
- package/dist/services/src/index.d.ts +6 -2
- package/dist/shared-logic/src/AreaChartV2/attributesSchema.d.ts +3 -0
- package/dist/shared-logic/src/AreaChartV2/buildAreaChartRepresentation.d.ts +40 -0
- package/dist/shared-logic/src/AreaChartV2/constants.d.ts +3 -0
- package/dist/shared-logic/src/AreaChartV2/index.d.ts +4 -0
- package/dist/shared-logic/src/AreaChartV2/setAttributes.d.ts +4 -0
- package/dist/shared-logic/src/AreaChartV2/types.d.ts +12 -0
- package/dist/shared-logic/src/BarChartV2/attributesSchema.d.ts +3 -0
- package/dist/shared-logic/src/BarChartV2/buildBarChartRepresentation.d.ts +41 -0
- package/dist/shared-logic/src/BarChartV2/constants.d.ts +3 -0
- package/dist/shared-logic/src/BarChartV2/index.d.ts +4 -0
- package/dist/shared-logic/src/BarChartV2/setAttributes.d.ts +4 -0
- package/dist/shared-logic/src/BarChartV2/types.d.ts +9 -0
- package/dist/shared-logic/src/BubbleChart/attributesSchema.d.ts +3 -0
- package/dist/shared-logic/src/BubbleChart/constants.d.ts +3 -0
- package/dist/shared-logic/src/{LineChartV2 → BubbleChart}/getScaleAndTicks.d.ts +2 -1
- package/dist/shared-logic/src/BubbleChart/index.d.ts +4 -0
- package/dist/shared-logic/src/BubbleChart/setAttributes.d.ts +4 -0
- package/dist/shared-logic/src/BubbleChart/types.d.ts +79 -0
- package/dist/shared-logic/src/BubbleChartV2/attributesSchema.d.ts +3 -0
- package/dist/shared-logic/src/BubbleChartV2/buildBubbleChartRepresentation.d.ts +40 -0
- package/dist/shared-logic/src/BubbleChartV2/buildTrendAndForecast.d.ts +25 -0
- package/dist/shared-logic/src/BubbleChartV2/constants.d.ts +3 -0
- package/dist/shared-logic/src/BubbleChartV2/getConditionalFormatting.d.ts +7 -0
- package/dist/shared-logic/src/BubbleChartV2/getGoalLines.d.ts +8 -0
- package/dist/shared-logic/src/BubbleChartV2/getMinAndMax.d.ts +15 -0
- package/dist/shared-logic/src/BubbleChartV2/getScaleAndTicks.d.ts +42 -0
- package/dist/shared-logic/src/BubbleChartV2/getStyleDefinition.d.ts +8 -0
- package/dist/shared-logic/src/BubbleChartV2/getTrendsAndForecastsData.d.ts +41 -0
- package/dist/shared-logic/src/BubbleChartV2/index.d.ts +4 -0
- package/dist/shared-logic/src/BubbleChartV2/setAttributes.d.ts +4 -0
- package/dist/shared-logic/src/BubbleChartV2/types.d.ts +79 -0
- package/dist/shared-logic/src/ChartsV2/adjustTicks.d.ts +9 -0
- package/dist/shared-logic/src/ChartsV2/buildFieldFormatMaps.d.ts +12 -0
- package/dist/shared-logic/src/ChartsV2/fillMissingKeysForChartData.d.ts +4 -0
- package/dist/shared-logic/src/ChartsV2/formattingFunctionAxis.d.ts +2 -0
- package/dist/shared-logic/src/ChartsV2/getConditionalFormatting.d.ts +7 -0
- package/dist/shared-logic/src/ChartsV2/getGoalLines.d.ts +8 -0
- package/dist/shared-logic/src/ChartsV2/getStackedMinAndMax.d.ts +16 -0
- package/dist/shared-logic/src/ChartsV2/getStackedScaleAndTicks.d.ts +43 -0
- package/dist/shared-logic/src/ChartsV2/getStyleDefinition.d.ts +9 -0
- package/dist/shared-logic/src/{LineChartV2 → ChartsV2}/getTrendsAndForecastsData.d.ts +1 -1
- package/dist/shared-logic/src/ChartsV2/getXKeyField.d.ts +3 -0
- package/dist/shared-logic/src/ChartsV2/types.d.ts +95 -0
- package/dist/shared-logic/src/ComboChart/upcast.d.ts +1 -2
- package/dist/shared-logic/src/ComboChartV2/adjustColors.d.ts +1 -0
- package/dist/shared-logic/src/ComboChartV2/attributesSchema.d.ts +3 -0
- package/dist/shared-logic/src/ComboChartV2/buildComboChartRepresentation.d.ts +53 -0
- package/dist/shared-logic/src/ComboChartV2/constants.d.ts +3 -0
- package/dist/shared-logic/src/ComboChartV2/index.d.ts +4 -0
- package/dist/shared-logic/src/ComboChartV2/setAttributes.d.ts +4 -0
- package/dist/shared-logic/src/ComboChartV2/types.d.ts +21 -0
- package/dist/shared-logic/src/Component/setAttributes.d.ts +1 -1
- package/dist/shared-logic/src/Component/sharedSchemas.d.ts +1 -0
- package/dist/shared-logic/src/Component/types.d.ts +149 -5
- package/dist/shared-logic/src/Component/usedFields.d.ts +5 -1
- package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +12 -3
- package/dist/shared-logic/src/ComponentInterface/types.d.ts +2 -1
- package/dist/shared-logic/src/ConditionalFormatting/utils.d.ts +7 -0
- package/dist/shared-logic/src/CustomField/CustomField.d.ts +1 -1
- package/dist/shared-logic/src/CustomField/CustomMetric/__mocks__/mockDataSet.d.ts +2 -0
- package/dist/shared-logic/src/CustomField/CustomMetric/build.d.ts +3 -7
- package/dist/shared-logic/src/CustomField/CustomMetric/index.d.ts +3 -10
- package/dist/shared-logic/src/CustomField/CustomMetric/init.d.ts +4 -0
- package/dist/shared-logic/src/CustomField/CustomMetric/types.d.ts +21 -15
- package/dist/shared-logic/src/CustomField/CustomMetric/validate.d.ts +2 -0
- package/dist/shared-logic/src/CustomField/index.d.ts +1 -0
- package/dist/shared-logic/src/CustomField/metricValuesHaveAggregates.d.ts +2 -0
- package/dist/shared-logic/src/CustomField/types.d.ts +30 -26
- package/dist/shared-logic/src/CustomView/types.d.ts +2 -5
- package/dist/shared-logic/src/Dashboard/Dashboard.d.ts +2 -0
- package/dist/shared-logic/src/Dashboard/fromRaw.d.ts +1 -0
- package/dist/shared-logic/src/Dashboard/types.d.ts +1 -0
- package/dist/shared-logic/src/DataPanelConfig/types.d.ts +1 -1
- package/dist/shared-logic/src/DataSet/DataSet.d.ts +2 -4
- package/dist/shared-logic/src/DataSet/fieldFilterOptions.d.ts +2 -0
- package/dist/shared-logic/src/DataTable/resultToPivotTableRepresentation.d.ts +3 -4
- package/dist/shared-logic/src/Dimension/Dimension.d.ts +1 -0
- package/dist/shared-logic/src/Display/Display.d.ts +1 -0
- package/dist/shared-logic/src/Drilldown/Drilldown.d.ts +6 -5
- package/dist/shared-logic/src/FeatureToggle/types.d.ts +2 -4
- package/dist/shared-logic/src/Field/Field.d.ts +3 -13
- package/dist/shared-logic/src/FormatPanelConfig/types.d.ts +2 -1
- package/dist/shared-logic/src/Headline/headline.utils.d.ts +0 -1
- package/dist/shared-logic/src/LineChartV2/buildLineChartRepresentation.d.ts +3 -2
- package/dist/shared-logic/src/LineChartV2/types.d.ts +7 -74
- package/dist/shared-logic/src/PivotConfig/types.d.ts +1 -0
- package/dist/shared-logic/src/Query/Query.d.ts +1 -15
- package/dist/shared-logic/src/RadarChart/adjustTicks.d.ts +3 -0
- package/dist/shared-logic/src/RadarChart/attributesSchema.d.ts +3 -0
- package/dist/shared-logic/src/RadarChart/buildRadarChartRepresentation.d.ts +34 -0
- package/dist/shared-logic/src/RadarChart/constants.d.ts +3 -0
- package/dist/shared-logic/src/RadarChart/getMinAndMax.d.ts +13 -0
- package/dist/shared-logic/src/RadarChart/getScaleAndTicks.d.ts +37 -0
- package/dist/shared-logic/src/RadarChart/index.d.ts +4 -0
- package/dist/shared-logic/src/RadarChart/setAttributes.d.ts +4 -0
- package/dist/shared-logic/src/RadarChart/types.d.ts +46 -0
- package/dist/shared-logic/src/Result/Result.d.ts +0 -3
- package/dist/shared-logic/src/Result/formatResult.d.ts +3 -3
- package/dist/shared-logic/src/Result/formattedResultToSeries.d.ts +3 -2
- package/dist/shared-logic/src/Result/types.d.ts +6 -8
- package/dist/shared-logic/src/SunburstChart/attributesSchema.d.ts +3 -0
- package/dist/shared-logic/src/SunburstChart/constants.d.ts +3 -0
- package/dist/shared-logic/src/SunburstChart/index.d.ts +4 -0
- package/dist/shared-logic/src/ValueAlias/ValueAlias.d.ts +3 -2
- package/dist/shared-logic/src/WaterfallChart/adjustTicks.d.ts +3 -0
- package/dist/shared-logic/src/WaterfallChart/attributesSchema.d.ts +3 -0
- package/dist/shared-logic/src/WaterfallChart/buildWaterfallChartRepresentation.d.ts +34 -0
- package/dist/shared-logic/src/WaterfallChart/constants.d.ts +3 -0
- package/dist/shared-logic/src/WaterfallChart/getNiceInterval.d.ts +1 -0
- package/dist/shared-logic/src/WaterfallChart/getRepresentationData.d.ts +19 -0
- package/dist/shared-logic/src/WaterfallChart/getYTicks.d.ts +8 -0
- package/dist/shared-logic/src/WaterfallChart/index.d.ts +4 -0
- package/dist/shared-logic/src/WaterfallChart/setAttributes.d.ts +4 -0
- package/dist/shared-logic/src/WaterfallChart/types.d.ts +71 -0
- package/dist/shared-logic/src/api/queryEngine/getRunQueriesCallback.d.ts +1 -1
- package/dist/shared-logic/src/getComponentInterface.d.ts +8 -0
- package/dist/shared-ui/src/api/useQueryEffect.d.ts +1 -1
- package/dist/shared-ui/src/base/ListView/ListItem.d.ts +0 -1
- package/dist/shared-ui/src/base/ListView/index.d.ts +1 -1
- package/dist/shared-ui/src/base/Select/Control.d.ts +0 -1
- package/dist/shared-ui/src/base/Select/Wrapper.d.ts +0 -1
- package/dist/shared-ui/src/components/AreaChartV2/AreaChartV2.d.ts +3 -0
- package/dist/shared-ui/src/components/AreaChartV2/AreaChartV2View.d.ts +17 -0
- package/dist/shared-ui/src/components/AreaChartV2/index.d.ts +2 -0
- package/dist/shared-ui/src/components/BarChartV2/BarChartV2.d.ts +3 -0
- package/dist/shared-ui/src/components/BarChartV2/BarChartV2View.d.ts +23 -0
- package/dist/shared-ui/src/components/BarChartV2/index.d.ts +2 -0
- package/dist/shared-ui/src/components/BubbleChart/BubbleChart.d.ts +3 -0
- package/dist/shared-ui/src/components/BubbleChart/BubbleChartView.d.ts +16 -0
- package/dist/shared-ui/src/components/BubbleChart/index.d.ts +2 -0
- package/dist/shared-ui/src/components/BubbleChartV2/BubbleChartV2.d.ts +3 -0
- package/dist/shared-ui/src/components/BubbleChartV2/BubbleChartV2View.d.ts +17 -0
- package/dist/shared-ui/src/components/BubbleChartV2/index.d.ts +2 -0
- package/dist/shared-ui/src/components/ChartHelper.d.ts +1 -0
- package/dist/shared-ui/src/components/ComboChartV2/ComboChartV2.d.ts +3 -0
- package/dist/shared-ui/src/components/ComboChartV2/ComboChartViewV2.d.ts +32 -0
- package/dist/shared-ui/src/components/Component/types.d.ts +14 -0
- package/dist/shared-ui/src/components/Component.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/CustomMetricAggregate.d.ts +12 -0
- package/dist/shared-ui/src/components/CustomMetric/MetricOverview.d.ts +2 -0
- package/dist/shared-ui/src/components/CustomMetric/buildAggregateItems.d.ts +3 -0
- package/dist/shared-ui/src/components/CustomMetric/buildCustomMetric.d.ts +12 -8
- package/dist/shared-ui/src/components/CustomMetric/buildFieldsAndAggregates.d.ts +9 -0
- package/dist/shared-ui/src/components/CustomMetric/buildLogicItems.d.ts +2 -0
- package/dist/shared-ui/src/components/CustomMetric/buildOperatorItems.d.ts +2 -0
- package/dist/shared-ui/src/components/CustomMetric/formatFormula.d.ts +2 -1
- package/dist/shared-ui/src/components/CustomMetric/init.d.ts +7 -5
- package/dist/shared-ui/src/components/CustomMetric/items.d.ts +6 -45
- package/dist/shared-ui/src/components/DataTable/buildConditionalFormattingBoundaries.d.ts +1 -0
- package/dist/shared-ui/src/components/DataTable/buildTableRepresentation.d.ts +5 -5
- package/dist/shared-ui/src/components/DataTable/resizing.d.ts +1 -3
- package/dist/shared-ui/src/components/DragAndDrop/DndWrapper.d.ts +0 -11
- package/dist/shared-ui/src/components/DragAndDrop/WidthChangingDnd.d.ts +0 -2
- package/dist/shared-ui/src/components/Drilldown/useDrilldownSelection.d.ts +4 -3
- package/dist/shared-ui/src/components/HeadlineStats/HeadlineStats.d.ts +2 -2
- package/dist/shared-ui/src/components/Icons/ComponentIcons.d.ts +4 -0
- package/dist/shared-ui/src/components/ItemPicker/ItemPicker.d.ts +4 -1
- package/dist/shared-ui/src/components/LineChart/LineChartView.d.ts +1 -1
- package/dist/shared-ui/src/components/MercatorMap/View.d.ts +1 -1
- package/dist/shared-ui/src/components/Parameters/useParameters.d.ts +1 -1
- package/dist/shared-ui/src/components/RadarChart/RadarChart.d.ts +3 -0
- package/dist/shared-ui/src/components/RadarChart/RadarChartView.d.ts +9 -0
- package/dist/shared-ui/src/components/RadarChart/index.d.ts +2 -0
- package/dist/shared-ui/src/components/Studio/StudioApp/Cell.d.ts +1 -0
- package/dist/shared-ui/src/components/Studio/StudioApp/DragHandle.d.ts +1 -10
- package/dist/shared-ui/src/components/Studio/StudioApp/insertRowAbove.funcs.d.ts +2 -2
- package/dist/shared-ui/src/components/SunburstChart/Partition.d.ts +13 -0
- package/dist/shared-ui/src/components/SunburstChart/SunburstChart.d.ts +3 -0
- package/dist/shared-ui/src/components/SunburstChart/SunburstChartView.d.ts +14 -0
- package/dist/shared-ui/src/components/SunburstChart/convertDataToSunburstData.d.ts +11 -0
- package/dist/shared-ui/src/components/SunburstChart/index.d.ts +2 -0
- package/dist/shared-ui/src/components/WaterfallChart/WaterfallChart.d.ts +3 -0
- package/dist/shared-ui/src/components/WaterfallChart/WaterfallChartView.d.ts +6 -0
- package/dist/shared-ui/src/components/WaterfallChart/index.d.ts +2 -0
- package/dist/shared-ui/src/contexts/DashboardBehaviour/context.d.ts +0 -1
- package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +0 -4
- package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +3 -4
- package/dist/shared-ui/src/contexts/ThemeProvider/default.theme.d.ts +1 -0
- package/dist/shared-ui/src/hooks/useDraggable.d.ts +17 -0
- package/dist/shared-ui/src/hooks/useMoveComponentDrag.d.ts +11 -0
- package/dist/shared-ui/src/hooks/useResizableRow.d.ts +30 -0
- package/dist/shared-ui/src/hooks/useSubscription.d.ts +1 -1
- package/dist/shared-ui/src/library/ConditionalFormatting.d.ts +2 -8
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/CustomMetric/useCustomMetric.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/CustomMetricsInput.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/FieldCollectorInput.d.ts +7 -7
- package/dist/shared-ui/src/library/DataPanel/MeasuresInput.d.ts +2 -1
- package/dist/shared-ui/src/library/ResizableRowCell.d.ts +1 -0
- package/dist/shared-ui/src/library/StylePanel/WaterfallColorsSection.d.ts +7 -0
- package/dist/shared-ui/src/library/effectHooks/useCheckIfPageClosing.d.ts +2 -0
- package/package.json +22 -12
- package/dist/charts/src/v2/components/LineChart/buildMargin.d.ts +0 -9
- package/dist/shared-logic/src/CustomField/CustomMetric/mockDataSet.d.ts +0 -2
- package/dist/shared-logic/src/Headline/index.d.ts +0 -5
- package/dist/shared-logic/src/LineChartV2/adjustTicks.d.ts +0 -3
- package/dist/shared-logic/src/Query/validate.d.ts +0 -13
- package/dist/shared-logic/src/Result/ValidationLogic.d.ts +0 -7
- package/dist/shared-ui/src/base/Dragging/DragLayer.d.ts +0 -12
- package/dist/shared-ui/src/base/Dragging/DropArea.d.ts +0 -9
- package/dist/shared-ui/src/base/Dragging/index.d.ts +0 -3
- package/dist/shared-ui/src/base/Dragging/useDropZone.d.ts +0 -6
- package/dist/shared-ui/src/base/ListView/useReOrderDrag.d.ts +0 -7
- /package/dist/shared-logic/src/{LineChartV2 → BubbleChart}/getAxisFormattingFunction.d.ts +0 -0
- /package/dist/shared-logic/src/{LineChartV2 → BubbleChart}/getConditionalFormatting.d.ts +0 -0
- /package/dist/shared-logic/src/{LineChartV2 → BubbleChart}/getGoalLines.d.ts +0 -0
- /package/dist/shared-logic/src/{LineChartV2 → BubbleChart}/getMinAndMax.d.ts +0 -0
- /package/dist/shared-logic/src/{LineChartV2 → BubbleChart}/getStyleDefinition.d.ts +0 -0
- /package/dist/shared-logic/src/{LineChartV2 → ChartsV2}/buildTrendAndForecast.d.ts +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Component, FormatType } from '../Component/types';
|
|
2
|
+
import { PivotConfig } from '../PivotConfig/types';
|
|
3
|
+
import { Result } from '../Result/types';
|
|
4
|
+
import { ValueAlias } from '../ValueAlias/types';
|
|
5
|
+
import { DateTimeFormatter, NumberFormatter, Step, WaterfallChartRepresentation } from './types';
|
|
6
|
+
export declare type WaterfallChartRepresentationArgs = {
|
|
7
|
+
approxYAxisLabelCount: number;
|
|
8
|
+
axisTitles?: Component.AxisTitles;
|
|
9
|
+
dateTimeFormatOptions: {
|
|
10
|
+
[id: string]: DateTimeFormatter;
|
|
11
|
+
};
|
|
12
|
+
defaultFormats: () => {
|
|
13
|
+
[functionId: string]: string;
|
|
14
|
+
};
|
|
15
|
+
nullValue?: string;
|
|
16
|
+
numberFormatOptions: {
|
|
17
|
+
[id: string]: NumberFormatter;
|
|
18
|
+
};
|
|
19
|
+
pivotConfig: PivotConfig;
|
|
20
|
+
result: Result;
|
|
21
|
+
showTotalBar: boolean;
|
|
22
|
+
valueAlias?: ValueAlias;
|
|
23
|
+
xAxisFormat: FormatType;
|
|
24
|
+
xAxisPrefix: string;
|
|
25
|
+
xAxisPostfix: string;
|
|
26
|
+
yAxisFormat: FormatType;
|
|
27
|
+
yAxisPrefix: string;
|
|
28
|
+
yAxisPostfix: string;
|
|
29
|
+
};
|
|
30
|
+
export declare type WaterfallChartRepresentationResult = {
|
|
31
|
+
waterfallChartRepresentation: WaterfallChartRepresentation;
|
|
32
|
+
waterfallChartSteps: Step[];
|
|
33
|
+
};
|
|
34
|
+
export declare const buildWaterfallChartRepresentation: ({ approxYAxisLabelCount, axisTitles, dateTimeFormatOptions, defaultFormats, nullValue, numberFormatOptions, pivotConfig, result, showTotalBar, valueAlias, xAxisFormat, xAxisPrefix, xAxisPostfix, yAxisFormat, yAxisPrefix, yAxisPostfix, }: WaterfallChartRepresentationArgs) => WaterfallChartRepresentationResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getNiceInterval(interval: number): number;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Tick } from '../ChartsV2/types';
|
|
2
|
+
import { FormattedChartData } from '../Result/types';
|
|
3
|
+
import { Data, Step } from './types';
|
|
4
|
+
export declare type GetRepresentationDataArgs = {
|
|
5
|
+
content: FormattedChartData[][];
|
|
6
|
+
xKey: string;
|
|
7
|
+
yKey: string;
|
|
8
|
+
approxYAxisLabelCount: number;
|
|
9
|
+
showTotalBar: boolean;
|
|
10
|
+
formattingFunctionY: (value: any) => string;
|
|
11
|
+
};
|
|
12
|
+
export declare const getRepresentationData: ({ content, xKey, yKey, approxYAxisLabelCount, showTotalBar, formattingFunctionY, }: GetRepresentationDataArgs) => {
|
|
13
|
+
data: Data[];
|
|
14
|
+
steps: Step[];
|
|
15
|
+
xTicks: Tick<string>[];
|
|
16
|
+
yTicks: Tick<number>[];
|
|
17
|
+
yMinValue: number;
|
|
18
|
+
yMaxValue: number;
|
|
19
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Tick } from '../ChartsV2/types';
|
|
2
|
+
export declare type GetYTicksArgs = {
|
|
3
|
+
yMinValue: number;
|
|
4
|
+
yMaxValue: number;
|
|
5
|
+
approxYAxisLabelCount: number;
|
|
6
|
+
formattingFunctionY: (value: any) => string;
|
|
7
|
+
};
|
|
8
|
+
export declare const getYTicks: ({ yMinValue, yMaxValue, approxYAxisLabelCount, formattingFunctionY }: GetYTicksArgs) => Tick<number>[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { LoadComponentInterface } from '../ComponentInterface/types';
|
|
3
|
+
declare const WaterfallChart: LoadComponentInterface<Component.WaterfallChartAttributes, Component.WaterfallChartAttributes>;
|
|
4
|
+
export default WaterfallChart;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { ComponentInterfaceConfig } from '../ComponentInterface/types';
|
|
3
|
+
declare const _default: (config: ComponentInterfaceConfig) => (waterfallChart: Component.WaterfallChartAttributes, partial: Partial<Component.WaterfallChartAttributes>) => Component.WaterfallChartAttributes;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { BaseChartRepresentation, Tick } from '../ChartsV2/types';
|
|
2
|
+
import { DataType } from '../Field/types';
|
|
3
|
+
export declare type KeyId = string;
|
|
4
|
+
export declare type Operator = string;
|
|
5
|
+
export declare type ConditionalFormattingRule = {
|
|
6
|
+
operator: Operator;
|
|
7
|
+
value: any;
|
|
8
|
+
color: string;
|
|
9
|
+
yKey: KeyId;
|
|
10
|
+
};
|
|
11
|
+
export declare type Axis<SupportedVizzlyDataTypes, AxisKeys> = {
|
|
12
|
+
ticks: Tick<SupportedVizzlyDataTypes>[];
|
|
13
|
+
scale: {
|
|
14
|
+
dataType: DataType;
|
|
15
|
+
key: KeyId | null;
|
|
16
|
+
ordering: 'asc' | 'desc' | null;
|
|
17
|
+
min: SupportedVizzlyDataTypes | null;
|
|
18
|
+
max: SupportedVizzlyDataTypes | null;
|
|
19
|
+
};
|
|
20
|
+
postfix: string;
|
|
21
|
+
prefix: string;
|
|
22
|
+
title: string | null;
|
|
23
|
+
} & AxisKeys;
|
|
24
|
+
export declare type Key = {
|
|
25
|
+
key: KeyId;
|
|
26
|
+
keyFormatted: string;
|
|
27
|
+
dataType: DataType;
|
|
28
|
+
};
|
|
29
|
+
export declare type DataItem = {
|
|
30
|
+
value: number | string | null;
|
|
31
|
+
formattedValue: string | null;
|
|
32
|
+
};
|
|
33
|
+
export declare type Data = {
|
|
34
|
+
[keyId: string]: DataItem;
|
|
35
|
+
};
|
|
36
|
+
export declare type Step = {
|
|
37
|
+
x: Date | string | number | null;
|
|
38
|
+
y: number;
|
|
39
|
+
start: number;
|
|
40
|
+
end: number;
|
|
41
|
+
};
|
|
42
|
+
export declare type DateTimeFormatter = {
|
|
43
|
+
formatter: (date: Date) => string;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
export declare type NumberFormatter = {
|
|
47
|
+
formatter: (number: number | undefined | null, noValueReplacement?: string) => string;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
export declare type WaterfallChartRepresentation = Omit<BaseChartRepresentation, 'y'> & {
|
|
51
|
+
y: Axis<number, {
|
|
52
|
+
key: KeyId;
|
|
53
|
+
}>;
|
|
54
|
+
};
|
|
55
|
+
export declare type WaterfallChartOptions = {
|
|
56
|
+
showTooltipRoundedTotal: boolean;
|
|
57
|
+
showLegend: boolean;
|
|
58
|
+
removeStroke: boolean;
|
|
59
|
+
axis: {
|
|
60
|
+
showXAxisLabels: boolean;
|
|
61
|
+
showYAxisLabels: boolean;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export declare type LegendItemStyle = {
|
|
65
|
+
type: 'bar';
|
|
66
|
+
};
|
|
67
|
+
export declare type LegendItem = {
|
|
68
|
+
yKey: KeyId;
|
|
69
|
+
color: string;
|
|
70
|
+
style: LegendItemStyle;
|
|
71
|
+
};
|
|
@@ -19,7 +19,7 @@ declare const getRunQueriesCallback: (identityConfig: IdentityConfigType, queryE
|
|
|
19
19
|
dataSets: import("../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../shared-logic/src/DataSet/types").DataSet.Field>[];
|
|
20
20
|
abortSignal?: AbortSignal | undefined;
|
|
21
21
|
dataAccessToken?: string | undefined;
|
|
22
|
-
filterConfig?: import("
|
|
22
|
+
filterConfig?: import("@vizzly/services/src").FilterConfig | undefined;
|
|
23
23
|
}) => Promise<(import("../../../../shared-logic/src/Result/types").Result | any[][] | null)[] | null>) | undefined, data?: loadDataCallback | undefined, queryEngineEndpoint?: string | {
|
|
24
24
|
endpoint: string;
|
|
25
25
|
dynamicConfig?: Object | undefined;
|
|
@@ -3,6 +3,9 @@ import { ComponentInterface, ComponentInterfaceConfig } from './ComponentInterfa
|
|
|
3
3
|
import { BasicTableComponentInterface } from './BasicTable';
|
|
4
4
|
declare function getComponentInterface(type: 'custom', config?: ComponentInterfaceConfig): ComponentInterface<Component.CustomViewAttributes>;
|
|
5
5
|
declare function getComponentInterface(type: 'pieChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.PieChartAttributes>;
|
|
6
|
+
declare function getComponentInterface(type: 'bubbleChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.BubbleChartAttributes>;
|
|
7
|
+
declare function getComponentInterface(type: 'bubbleChartV2', config?: ComponentInterfaceConfig): ComponentInterface<Component.BubbleChartV2Attributes>;
|
|
8
|
+
declare function getComponentInterface(type: 'sunburstChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.SunburstChartAttributes>;
|
|
6
9
|
declare function getComponentInterface(type: 'scatterChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.ScatterChartAttributes>;
|
|
7
10
|
declare function getComponentInterface(type: 'mercatorMap', config?: ComponentInterfaceConfig): ComponentInterface<Component.MercatorMapAttributes>;
|
|
8
11
|
declare function getComponentInterface(type: 'singleStat', config?: ComponentInterfaceConfig): ComponentInterface<Component.SingleStatAttributes>;
|
|
@@ -14,7 +17,12 @@ declare function getComponentInterface(type: 'horizontalBarChart', config?: Comp
|
|
|
14
17
|
declare function getComponentInterface(type: 'areaChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.AreaChartAttributes>;
|
|
15
18
|
declare function getComponentInterface(type: 'lineChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.LineChartAttributes>;
|
|
16
19
|
declare function getComponentInterface(type: 'lineChartV2', config?: ComponentInterfaceConfig): ComponentInterface<Component.LineChartV2Attributes>;
|
|
20
|
+
declare function getComponentInterface(type: 'barChartV2', config?: ComponentInterfaceConfig): ComponentInterface<Component.BarChartV2Attributes>;
|
|
21
|
+
declare function getComponentInterface(type: 'areaChartV2', config?: ComponentInterfaceConfig): ComponentInterface<Component.AreaChartV2Attributes>;
|
|
22
|
+
declare function getComponentInterface(type: 'comboChartV2', config?: ComponentInterfaceConfig): ComponentInterface<Component.ComboChartV2Attributes>;
|
|
17
23
|
declare function getComponentInterface(type: 'barChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.BarChartAttributes>;
|
|
18
24
|
declare function getComponentInterface(type: 'funnelChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.FunnelChartAttributes>;
|
|
25
|
+
declare function getComponentInterface(type: 'waterfallChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.WaterfallChartAttributes>;
|
|
26
|
+
declare function getComponentInterface(type: 'radarChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.RadarChartAttributes>;
|
|
19
27
|
declare function getComponentInterface(type: ComponentType, config?: ComponentInterfaceConfig): ComponentInterface<Component.Attributes>;
|
|
20
28
|
export default getComponentInterface;
|
|
@@ -4,6 +4,6 @@ import { FilterConfig } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
|
4
4
|
import { DataSet } from '../../../shared-logic/src/DataSet/types';
|
|
5
5
|
import { QueryableEntity } from './useQueryEffect/types';
|
|
6
6
|
import { UseVariableState } from '../contexts/Variables/types';
|
|
7
|
-
export declare const useQueryEffect: (queries: QueryableEntity, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, onResultsCallback: (results: Array<Result | null>) => void, filterConfig: FilterConfig, dataSet: DataSet, componentType?: "progress" | "areaChart" | "barChart" | "basicTable" | "comboChart" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "lineChartV2" | "mercatorMap" | "pieChart" | "richText" | "scatterChart" | "singleStat" | undefined, variables?: UseVariableState | undefined) => {
|
|
7
|
+
export declare const useQueryEffect: (queries: QueryableEntity, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, onResultsCallback: (results: Array<Result | null>) => void, filterConfig: FilterConfig, dataSet: DataSet, componentType?: "progress" | "areaChart" | "areaChartV2" | "barChart" | "barChartV2" | "basicTable" | "bubbleChart" | "bubbleChartV2" | "comboChart" | "comboChartV2" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "lineChartV2" | "mercatorMap" | "pieChart" | "radarChart" | "richText" | "scatterChart" | "singleStat" | "sunburstChart" | "waterfallChart" | undefined, variables?: UseVariableState | undefined) => {
|
|
8
8
|
queriesAreChanging: boolean;
|
|
9
9
|
};
|
|
@@ -18,11 +18,11 @@ export declare const List: import("react").FunctionComponent<{
|
|
|
18
18
|
empty?: string | number | (string & {}) | undefined;
|
|
19
19
|
disabled?: boolean | undefined;
|
|
20
20
|
}>;
|
|
21
|
+
Item: any;
|
|
21
22
|
Container: import("react").FunctionComponent<{
|
|
22
23
|
hasDeleteIcon?: boolean | undefined;
|
|
23
24
|
children?: import("react").ReactNode;
|
|
24
25
|
}>;
|
|
25
|
-
Item: any;
|
|
26
26
|
Heading: import("react").FunctionComponent<{
|
|
27
27
|
children: import("react").ReactNode;
|
|
28
28
|
as?: "symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "menuitem" | "legend" | "desc" | "title" | "big" | "link" | "sup" | "header" | "select" | "input" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "ins" | "kbd" | "keygen" | "label" | "li" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "slot" | "script" | "section" | "source" | "span" | "strong" | "summary" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | undefined;
|
|
@@ -20,7 +20,6 @@ declare type Props = VizzlyComponents.ComponentOverrides.Props.Select & {
|
|
|
20
20
|
onFreeTextSelected?: () => void;
|
|
21
21
|
onClick?: (() => void) | undefined;
|
|
22
22
|
formatLabel?: (label: string | number) => string | number;
|
|
23
|
-
nullValueAlias?: string;
|
|
24
23
|
};
|
|
25
24
|
export declare const PROPS_AS_CLASSNAMES: CustomThemeClassNamespaces[];
|
|
26
25
|
declare const _default: (props: Props) => JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { VizzlyComponents } from '../../types';
|
|
3
|
+
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
4
|
+
import { Dashboard } from '../../../../shared-logic/src/Dashboard/types';
|
|
5
|
+
import { IdPrefix, DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
|
|
6
|
+
import { HeadlineStatsProps } from '../HeadlineStats/HeadlineStats';
|
|
7
|
+
export declare type AreaChartV2ViewProps = Omit<VizzlyComponents.ViewProps<{
|
|
8
|
+
attributes: Component.AreaChartV2Attributes;
|
|
9
|
+
}>, 'supportedTimeTruncFunctions' | 'supportedTransformationFunctions' | 'supportedAggregates'>;
|
|
10
|
+
export declare const AreaChartV2View: (props: AreaChartV2ViewProps & {
|
|
11
|
+
dashboard?: Dashboard;
|
|
12
|
+
library?: boolean;
|
|
13
|
+
numberFormatOptions: DashboardBehaviour['numberFormatOptions'];
|
|
14
|
+
dateTimeFormatOptions: DashboardBehaviour['dateTimeFormatOptions'];
|
|
15
|
+
propsForHeadline: HeadlineStatsProps;
|
|
16
|
+
idPrefix: IdPrefix;
|
|
17
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { VizzlyComponents } from '../../types';
|
|
3
|
+
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
4
|
+
import { Dashboard } from '../../../../shared-logic/src/Dashboard/types';
|
|
5
|
+
import { IdPrefix, DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
|
|
6
|
+
import { HeadlineStatsProps } from '../HeadlineStats/HeadlineStats';
|
|
7
|
+
import * as Drilldown from '../../../../shared-logic/src/Drilldown/Drilldown';
|
|
8
|
+
export declare type BarChartV2ViewProps = Omit<VizzlyComponents.ViewProps<{
|
|
9
|
+
attributes: Component.BarChartV2Attributes;
|
|
10
|
+
}>, 'supportedTimeTruncFunctions' | 'supportedTransformationFunctions' | 'supportedAggregates'>;
|
|
11
|
+
export declare const BarChartV2View: (props: Pick<VizzlyComponents.ViewProps<{
|
|
12
|
+
attributes: Component.BarChartV2Attributes;
|
|
13
|
+
}, import("../../../../shared-logic/src/Component/types").Component.Attributes>, "id" | "dataSet" | "localFilters" | "queriesAreChanging" | "result" | "library" | "defaultFormats" | "setLocalFilters" | "setPartialAttributes" | "sm" | "attributes"> & {
|
|
14
|
+
dashboard?: Dashboard | undefined;
|
|
15
|
+
library?: boolean | undefined;
|
|
16
|
+
numberFormatOptions: DashboardBehaviour['numberFormatOptions'];
|
|
17
|
+
dateTimeFormatOptions: DashboardBehaviour['dateTimeFormatOptions'];
|
|
18
|
+
propsForHeadline: HeadlineStatsProps;
|
|
19
|
+
idPrefix: IdPrefix;
|
|
20
|
+
onDrilldownChange: (payload: Drilldown.SelectedDrilldown) => void;
|
|
21
|
+
drilldownSelections: Drilldown.SelectedDrilldown[];
|
|
22
|
+
onResetDrilldown: () => void;
|
|
23
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { VizzlyComponents } from '../../types';
|
|
3
|
+
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
4
|
+
import { DashboardBehaviour, IdPrefix } from '../../contexts/DashboardBehaviour/types';
|
|
5
|
+
export declare const defaultProps: Omit<ComponentType.BubbleChartAttributes, 'dataSetId'>;
|
|
6
|
+
export declare type BubbleChartViewProps = VizzlyComponents.ViewProps<ComponentType.BubbleChartAttributes> & {
|
|
7
|
+
library?: boolean;
|
|
8
|
+
numberFormatOptions: DashboardBehaviour['numberFormatOptions'];
|
|
9
|
+
dateTimeFormatOptions: DashboardBehaviour['dateTimeFormatOptions'];
|
|
10
|
+
idPrefix: IdPrefix;
|
|
11
|
+
};
|
|
12
|
+
declare const memoized: React.MemoExoticComponent<{
|
|
13
|
+
(props: BubbleChartViewProps): JSX.Element | null;
|
|
14
|
+
defaultProps: Pick<ComponentType.BubbleChartAttributes, "filter" | "order" | "offset" | "dimension" | "timeDimension" | "limit" | "type" | "viewId" | "displayTitle" | "displaySubject" | "protectedByOrganisation" | "tags" | "xAxisPrefix" | "yAxisPrefix" | "xAxisPostfix" | "yAxisPostfix" | "xAxisFormat" | "yAxisFormat" | "approxXAxisLabelCount" | "approxYAxisLabelCount" | "legend" | "goalLines" | "axisTitles" | "zMeasure" | "xMeasure" | "yMeasure">;
|
|
15
|
+
}>;
|
|
16
|
+
export default memoized;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { VizzlyComponents } from '../../types';
|
|
3
|
+
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
4
|
+
import { Dashboard } from '../../../../shared-logic/src/Dashboard/types';
|
|
5
|
+
import { IdPrefix, DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
|
|
6
|
+
import { HeadlineStatsProps } from '../HeadlineStats/HeadlineStats';
|
|
7
|
+
export declare type BubbleChartV2ViewProps = Omit<VizzlyComponents.ViewProps<{
|
|
8
|
+
attributes: Component.BubbleChartV2Attributes;
|
|
9
|
+
}>, 'supportedTimeTruncFunctions' | 'supportedTransformationFunctions' | 'supportedAggregates'>;
|
|
10
|
+
export declare const BubbleChartV2View: (props: BubbleChartV2ViewProps & {
|
|
11
|
+
dashboard?: Dashboard;
|
|
12
|
+
library?: boolean;
|
|
13
|
+
numberFormatOptions: DashboardBehaviour['numberFormatOptions'];
|
|
14
|
+
dateTimeFormatOptions: DashboardBehaviour['dateTimeFormatOptions'];
|
|
15
|
+
propsForHeadline: HeadlineStatsProps;
|
|
16
|
+
idPrefix: IdPrefix;
|
|
17
|
+
}) => JSX.Element;
|
|
@@ -6,6 +6,7 @@ import { DashboardBehaviour, LabelFormat } from '../contexts/DashboardBehaviour/
|
|
|
6
6
|
import { ConditionalFormattingOption } from '../../../charts/src/Legend/Legend';
|
|
7
7
|
import { ConditionalFormattingBoundary } from './DataTable/buildConditionalFormattingBoundaries';
|
|
8
8
|
import { TextOverride } from '../../../shared-logic/src/Translations/types';
|
|
9
|
+
import * as ConditionalFormatting from '../../../shared-logic/src/ConditionalFormatting/utils';
|
|
9
10
|
export declare type AxisLabelConfig = {
|
|
10
11
|
prefix?: string;
|
|
11
12
|
postfix?: string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { VizzlyComponents } from '../../types';
|
|
3
|
+
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
4
|
+
import { Result as ResultType } from '../../../../shared-logic/src/Result/types';
|
|
5
|
+
import { IdPrefix } from '../../contexts/DashboardBehaviour/types';
|
|
6
|
+
import { Dashboard } from '../../../../shared-logic/src/Dashboard';
|
|
7
|
+
export declare type ComboChartViewProps = Omit<VizzlyComponents.ViewProps<{
|
|
8
|
+
attributes: Component.ComboChartV2Attributes;
|
|
9
|
+
}>, 'result' | 'supportedTransformationFunctions' | 'goalLines'> & {
|
|
10
|
+
lineResult: ResultType | null;
|
|
11
|
+
barResult: ResultType | null;
|
|
12
|
+
id: string;
|
|
13
|
+
idPrefix: IdPrefix;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import("react").MemoExoticComponent<(props: Pick<VizzlyComponents.ViewProps<{
|
|
16
|
+
attributes: Component.ComboChartV2Attributes;
|
|
17
|
+
}, import("../../../../shared-logic/src/Component/types").Component.Attributes>, "id" | "dataSet" | "supportedAggregates" | "supportedTimeTruncFunctions" | "localFilters" | "queriesAreChanging" | "library" | "defaultFormats" | "setLocalFilters" | "setPartialAttributes" | "sm" | "attributes"> & {
|
|
18
|
+
lineResult: ResultType | null;
|
|
19
|
+
barResult: ResultType | null;
|
|
20
|
+
id: string;
|
|
21
|
+
idPrefix: IdPrefix;
|
|
22
|
+
} & {
|
|
23
|
+
dashboard?: Dashboard | undefined;
|
|
24
|
+
library?: boolean | undefined;
|
|
25
|
+
numberFormatOptions: {
|
|
26
|
+
[id: string]: import("../../contexts/DashboardBehaviour/types").NumberFormatter;
|
|
27
|
+
};
|
|
28
|
+
dateTimeFormatOptions: {
|
|
29
|
+
[id: string]: import("../../contexts/DashboardBehaviour/types").DateTimeFormatter;
|
|
30
|
+
};
|
|
31
|
+
}) => JSX.Element>;
|
|
32
|
+
export default _default;
|
|
@@ -27,6 +27,10 @@ interface ChartPropsWithAttributesUpdate<T> extends BaseChartProps<T> {
|
|
|
27
27
|
export declare type ScatterChartProps = ChartPropsWithPartialAttributes<ComponentType.ScatterChartAttributes> & {
|
|
28
28
|
sm?: boolean;
|
|
29
29
|
};
|
|
30
|
+
export declare type BubbleChartProps = ChartPropsWithPartialAttributes<ComponentType.BubbleChartAttributes> & {
|
|
31
|
+
sm?: boolean;
|
|
32
|
+
};
|
|
33
|
+
export declare type BubbleChartV2Props = ChartPropsWithPartialAttributes<ComponentType.BubbleChartV2Attributes> & ChartPropsWithAttributesUpdate<ComponentType.BubbleChartV2Attributes>;
|
|
30
34
|
export declare type BarChartProps = ChartPropsWithPartialAttributes<ComponentType.BarChartAttributes> & ChartPropsWithAttributesUpdate<ComponentType.BarChartAttributes | ComponentType.HorizontalBarChartAttributes> & {
|
|
31
35
|
sm?: boolean;
|
|
32
36
|
onViewClick?: (data: ComponentType.ChartOnViewClick, query: ComponentType.OnViewClickQuery) => void;
|
|
@@ -39,9 +43,15 @@ export declare type LineChartProps = ChartPropsWithPartialAttributes<ComponentTy
|
|
|
39
43
|
sm?: boolean;
|
|
40
44
|
};
|
|
41
45
|
export declare type LineChartV2Props = ChartPropsWithPartialAttributes<ComponentType.LineChartV2Attributes> & ChartPropsWithAttributesUpdate<ComponentType.LineChartV2Attributes>;
|
|
46
|
+
export declare type AreaChartV2Props = ChartPropsWithPartialAttributes<ComponentType.AreaChartV2Attributes> & ChartPropsWithAttributesUpdate<ComponentType.AreaChartV2Attributes>;
|
|
47
|
+
export declare type BarChartV2Props = ChartPropsWithPartialAttributes<ComponentType.BarChartV2Attributes> & ChartPropsWithAttributesUpdate<ComponentType.BarChartV2Attributes>;
|
|
48
|
+
export declare type RadarChartProps = ChartPropsWithPartialAttributes<ComponentType.RadarChartAttributes> & ChartPropsWithAttributesUpdate<ComponentType.RadarChartAttributes>;
|
|
42
49
|
export declare type PieChartProps = ChartPropsWithPartialAttributes<ComponentType.PieChartAttributes> & {
|
|
43
50
|
editor?: boolean;
|
|
44
51
|
};
|
|
52
|
+
export declare type SunburstChartProps = ChartPropsWithPartialAttributes<ComponentType.SunburstChartAttributes> & {
|
|
53
|
+
editor?: boolean;
|
|
54
|
+
};
|
|
45
55
|
export declare type SingleStatProps = ChartPropsWithPartialAttributes<ComponentType.SingleStatAttributes> & ChartPropsWithAttributesUpdate<ComponentType.SingleStatAttributes>;
|
|
46
56
|
export declare type ProgressProps = ChartPropsWithPartialAttributes<ComponentType.ProgressAttributes> & {
|
|
47
57
|
height?: number;
|
|
@@ -54,6 +64,9 @@ export declare type DataTableProps = ChartPropsWithPartialAttributes<ComponentTy
|
|
|
54
64
|
export declare type ComboChartProps = ChartPropsWithPartialAttributes<ComponentType.ComboChartAttributes> & {
|
|
55
65
|
sm?: boolean;
|
|
56
66
|
};
|
|
67
|
+
export declare type ComboChartV2Props = ChartPropsWithPartialAttributes<ComponentType.ComboChartV2Attributes> & {
|
|
68
|
+
sm?: boolean;
|
|
69
|
+
};
|
|
57
70
|
export declare type MercatorMapProps = BaseChartProps<ComponentType.MercatorMapAttributes> & {
|
|
58
71
|
onPositionChange: (newPosition: MapPosition) => void;
|
|
59
72
|
};
|
|
@@ -64,4 +77,5 @@ export declare type FunnelChartProps = ChartPropsWithPartialAttributes<Component
|
|
|
64
77
|
export declare type RichTextProps = ChartPropsWithPartialAttributes<ComponentType.RichTextAttributes> & ChartPropsWithAttributesUpdate<ComponentType.RichTextAttributes> & {
|
|
65
78
|
editor?: boolean;
|
|
66
79
|
};
|
|
80
|
+
export declare type WaterfallChartProps = ChartPropsWithPartialAttributes<ComponentType.WaterfallChartAttributes> & ChartPropsWithAttributesUpdate<ComponentType.WaterfallChartAttributes>;
|
|
67
81
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { VizzlyComponents } from '../types';
|
|
3
|
+
import { AdditionalFilter } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
3
4
|
import { Component as ComponentType } from '../../../shared-logic/src/Component/types';
|
|
4
5
|
import { Result } from '../../../shared-logic/src/Result/types';
|
|
5
|
-
import { AdditionalFilter } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
6
6
|
export declare type ComponentProps = {
|
|
7
7
|
id: string;
|
|
8
8
|
component: ComponentType;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import * as Types from '../../../../shared-logic/src/CustomField/CustomMetric/types';
|
|
3
|
+
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
4
|
+
import { ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
5
|
+
export declare const CustomMetricAggregate: FunctionComponent<{
|
|
6
|
+
dataSet: DataSetType;
|
|
7
|
+
onDeleteItem: () => void;
|
|
8
|
+
id: string;
|
|
9
|
+
onChange: (aggregate: Types.Aggregate) => void;
|
|
10
|
+
componentType: ComponentType;
|
|
11
|
+
measure: Types.Aggregate;
|
|
12
|
+
}>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import * as Types from '../../../../shared-logic/src/CustomField/CustomMetric/types';
|
|
3
|
+
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
3
4
|
export declare const MetricOverview: FunctionComponent<{
|
|
4
5
|
metric: Types.Metric | undefined;
|
|
6
|
+
dataSet: DataSetType;
|
|
5
7
|
}>;
|
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
import { PickerThing } from '../ItemPicker/ItemPicker';
|
|
2
2
|
import * as Types from '../../../../shared-logic/src/CustomField/CustomMetric/types';
|
|
3
|
-
export declare function updateOperatorValue(value: Types.Operator, index: number, item: Types.Operator | Types.NumberInput | Types.Field | Types.Variable | Types.IfLogic): {
|
|
3
|
+
export declare function updateOperatorValue(value: Types.Operator, index: number, item: Types.Operator | Types.NumberInput | Types.Field | Types.Variable | Types.IfLogic | Types.Aggregate): {
|
|
4
4
|
type: Types.PropertyType.Operator;
|
|
5
5
|
op: Types.OperatorType;
|
|
6
|
-
values: (Types.Operator | Types.IfLogic | Types.NumberInput | Types.Field | Types.Variable)[];
|
|
6
|
+
values: (Types.Operator | Types.IfLogic | Types.Aggregate | Types.NumberInput | Types.Field | Types.Variable)[];
|
|
7
7
|
};
|
|
8
8
|
export declare function deleteOperatorValue(value: Types.Operator, index: number): {
|
|
9
9
|
type: Types.PropertyType.Operator;
|
|
10
10
|
op: Types.OperatorType;
|
|
11
|
-
values: (Types.Operator | Types.IfLogic | Types.NumberInput | Types.Field | Types.Variable)[];
|
|
11
|
+
values: (Types.Operator | Types.IfLogic | Types.Aggregate | Types.NumberInput | Types.Field | Types.Variable)[];
|
|
12
12
|
};
|
|
13
|
-
export declare function addToOperator(value: Types.Operator | Types.IfLogic | Types.NumberInput | Types.Field | Types.Variable, selected: PickerThing | undefined): {
|
|
13
|
+
export declare function addToOperator(value: Types.Operator | Types.IfLogic | Types.NumberInput | Types.Field | Types.Variable | Types.Aggregate, selected: PickerThing | undefined): {
|
|
14
14
|
type: Types.PropertyType.Operator;
|
|
15
15
|
op: Types.OperatorType;
|
|
16
|
-
values: (Types.Operator | Types.IfLogic | Types.NumberInput | Types.Field | Types.Variable)[];
|
|
16
|
+
values: (Types.Operator | Types.IfLogic | Types.Aggregate | Types.NumberInput | Types.Field | Types.Variable)[];
|
|
17
17
|
} | {
|
|
18
18
|
type: Types.PropertyType.IfLogic;
|
|
19
19
|
cases: {
|
|
20
20
|
filter: import("../../../../shared-logic/src/QueryAttributes/types").QueryAttributes.Filter[][];
|
|
21
|
-
returns: Types.Operator | Types.IfLogic | Types.NumberInput | Types.Field | Types.Variable | undefined;
|
|
21
|
+
returns: Types.Operator | Types.IfLogic | Types.Aggregate | Types.NumberInput | Types.Field | Types.Variable | undefined;
|
|
22
22
|
}[];
|
|
23
|
-
else: Types.Operator | Types.IfLogic | Types.NumberInput | Types.Field | Types.Variable | undefined;
|
|
23
|
+
else: Types.Operator | Types.IfLogic | Types.Aggregate | Types.NumberInput | Types.Field | Types.Variable | undefined;
|
|
24
|
+
} | {
|
|
25
|
+
type: Types.PropertyType.Aggregate;
|
|
26
|
+
fieldId: string;
|
|
27
|
+
function?: string | undefined;
|
|
24
28
|
} | {
|
|
25
29
|
type: Types.PropertyType.NumberInput;
|
|
26
30
|
value: number | undefined;
|
|
@@ -32,4 +36,4 @@ export declare function addToOperator(value: Types.Operator | Types.IfLogic | Ty
|
|
|
32
36
|
type: Types.PropertyType.Variable;
|
|
33
37
|
value: string;
|
|
34
38
|
};
|
|
35
|
-
export declare function addToIfStatement(selected: PickerThing | undefined): Types.Operator | Types.NumberInput | Types.Field | Types.Variable | Types.IfLogic | undefined;
|
|
39
|
+
export declare function addToIfStatement(selected: PickerThing | undefined): Types.Operator | Types.NumberInput | Types.Field | Types.Variable | Types.IfLogic | Types.Aggregate | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AcceptedTypes } from '../../../../shared-logic/src/CustomField/types';
|
|
2
|
+
import { PickerItem } from '../ItemPicker/ItemPicker';
|
|
3
|
+
import * as Types from '../../../../shared-logic/src/CustomField/CustomMetric/types';
|
|
4
|
+
import { DataSet } from '../../../../shared-logic/src/DataSet/types';
|
|
5
|
+
export declare function buildFieldsAndAggregates(value: Types.Operator | Types.IfLogic | Types.Aggregate, dataSet: DataSet, supportedTypes: AcceptedTypes[], parentHasAggregate?: boolean, parentHasField?: boolean): {
|
|
6
|
+
updatedItems: PickerItem[];
|
|
7
|
+
updatedParentHasAggregate: boolean;
|
|
8
|
+
updatedParentHasField: any;
|
|
9
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import * as Types from '../../../../shared-logic/src/CustomField/CustomMetric/types';
|
|
2
2
|
import { TextOverride } from '../../../../shared-logic/src/Translations/types';
|
|
3
|
-
|
|
3
|
+
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
4
|
+
export declare const formatFormula: (obj: Types.Operator | Types.NumberInput | Types.Field | Types.Variable | Types.IfLogic | Types.Aggregate | undefined, isNested: boolean | undefined, textOverride: TextOverride, dataSet: DataSetType) => string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { PickerThing } from '../ItemPicker/ItemPicker';
|
|
1
2
|
import * as Types from '../../../../shared-logic/src/CustomField/CustomMetric/types';
|
|
2
|
-
export declare const initMetric: (selected?:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
3
|
+
export declare const initMetric: (selected?: PickerThing | undefined) => Types.Metric | undefined;
|
|
4
|
+
export declare const initIfLogic: () => Types.Operator | Types.IfLogic;
|
|
5
|
+
export declare const initOperator: (op: Types.OperatorType) => Types.Operator | Types.IfLogic;
|
|
6
|
+
export declare const initAggregate: (fieldId: string) => Types.Aggregate;
|
|
7
|
+
export declare const initField: (fieldId: string) => Types.Field;
|
|
8
|
+
export declare const initNumberInput: () => Types.NumberInput;
|