@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,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BubbleChartProps } from './types';
|
|
3
|
+
import { FormatterProps } from '../types';
|
|
4
|
+
import { ChartRef } from '../utils/chartRendering';
|
|
5
|
+
export declare const BubbleChart: React.ForwardRefExoticComponent<Pick<BubbleChartProps, "height" | "width" | "horizontal" | "x" | "approxXAxisLabelCount" | "approxYAxisLabelCount" | "legend" | "axisTitles" | "lineCurve" | "trends" | "data" | "z" | "onClick" | "theme" | "colors" | "keys" | "goalLine" | "idPrefix" | "uniqueId" | "forceXAxisAsTime" | "annotate" | "formatSeriesName" | "sparkline" | "threshold" | "removeStroke" | "formatXAxisLabel" | "formatYAxisLabel" | "popOverMenuStyles" | "datumFormatter" | "lineStyle"> & FormatterProps & React.RefAttributes<ChartRef>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BubbleChart';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ChartData, ChartProps, ColorFormatterByDatum, ColorFormatterByKey } from '../types';
|
|
2
|
+
import { GenerateAnnotationType } from '../XYChart/logic/annotations';
|
|
3
|
+
import { AxisTitles, Datum, GoalLine, ThresholdType, Props as VizzlyXYChartProps } from '../XYChart';
|
|
4
|
+
export interface BubbleChartProps extends ChartProps {
|
|
5
|
+
uniqueId: string;
|
|
6
|
+
x: string;
|
|
7
|
+
z: string;
|
|
8
|
+
keys: string[];
|
|
9
|
+
colors: string[];
|
|
10
|
+
data: Array<ChartData>;
|
|
11
|
+
sparkline?: boolean;
|
|
12
|
+
forceXAxisAsTime?: VizzlyXYChartProps['forceXAxisAsTime'];
|
|
13
|
+
annotate?: Array<GenerateAnnotationType>;
|
|
14
|
+
lineCurve?: VizzlyXYChartProps['lineCurve'];
|
|
15
|
+
formatSeriesName: VizzlyXYChartProps['formatSeriesName'];
|
|
16
|
+
formatter: ColorFormatterByKey;
|
|
17
|
+
datumFormatter?: ColorFormatterByDatum;
|
|
18
|
+
onClick?: (value: Datum | undefined) => void;
|
|
19
|
+
goalLine?: GoalLine[];
|
|
20
|
+
axisTitles?: AxisTitles;
|
|
21
|
+
threshold?: Array<ThresholdType>;
|
|
22
|
+
idPrefix: VizzlyXYChartProps['idPrefix'];
|
|
23
|
+
trends?: {
|
|
24
|
+
data: Array<ChartData>;
|
|
25
|
+
keys: string[];
|
|
26
|
+
colors?: string[];
|
|
27
|
+
opacity?: number[];
|
|
28
|
+
strokeWidth?: number[];
|
|
29
|
+
strokeDasharray?: string | number[];
|
|
30
|
+
};
|
|
31
|
+
lineStyle?: 'dotted';
|
|
32
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type ChartType = 'bar' | 'area' | 'lines' | 'scatter' | 'pie' | 'trend';
|
|
1
|
+
export declare type ChartType = 'bar' | 'area' | 'lines' | 'scatter' | 'pie' | 'trend' | 'bubble';
|
|
@@ -12,6 +12,8 @@ export declare type BarStyleOverrides = {
|
|
|
12
12
|
export interface Props extends ChartProps, FormatterProps {
|
|
13
13
|
uniqueId: string;
|
|
14
14
|
x: string;
|
|
15
|
+
z?: string;
|
|
16
|
+
isBubble?: boolean;
|
|
15
17
|
sharedTooltip?: boolean;
|
|
16
18
|
yAxisOrientation?: 'left' | 'right';
|
|
17
19
|
sparkline?: boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartTheme } from '../../../types';
|
|
3
|
+
import { AreaChartRepresentation, CurveTypes } from '../../../../../shared-logic/src/AreaChartV2/types';
|
|
4
|
+
export declare type AreaChartProps = {
|
|
5
|
+
uniqueId: string;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
chart: AreaChartRepresentation;
|
|
9
|
+
theme?: ChartTheme;
|
|
10
|
+
options: {
|
|
11
|
+
stacked: boolean;
|
|
12
|
+
curve: CurveTypes;
|
|
13
|
+
showRoundedTotal: boolean;
|
|
14
|
+
showLegend: boolean;
|
|
15
|
+
removeStroke: boolean;
|
|
16
|
+
axis: {
|
|
17
|
+
showXAxisLabels: boolean;
|
|
18
|
+
showYAxisLabels: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const AreaChart: ({ chart, options, theme, width, height, uniqueId }: AreaChartProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AREA_GRADIENT_ID_PREFIX = "area-gradient";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AreaChart } from './AreaChart';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseXAxis } from '../../../../../shared-logic/src/ChartsV2/types';
|
|
3
|
+
import { Margin } from '../../utils/buildMargin';
|
|
4
|
+
import { ChartThemeCSS } from '../../utils/getChartThemeCSS';
|
|
5
|
+
import { DataType } from '../../../../../shared-logic/src/Field/types';
|
|
6
|
+
import { ScaleBand, ScaleLinear, ScaleTime, ScalePoint } from '@visx/vendor/d3-scale';
|
|
7
|
+
export declare type AxisBottomProps = {
|
|
8
|
+
x: BaseXAxis;
|
|
9
|
+
margin: Margin;
|
|
10
|
+
baselineShift?: number;
|
|
11
|
+
themeCSS: ChartThemeCSS;
|
|
12
|
+
show?: boolean;
|
|
13
|
+
removeStroke?: boolean;
|
|
14
|
+
xScaleDataType?: DataType;
|
|
15
|
+
xScale: ScaleBand<string> | ScaleBand<Date> | ScaleBand<number> | ScaleLinear<number, number, never> | ScalePoint<string> | ScaleTime<number, number, never> | null;
|
|
16
|
+
height: number;
|
|
17
|
+
};
|
|
18
|
+
export declare function AxisBottom({ x, margin, themeCSS, show, removeStroke, xScaleDataType, xScale, height, baselineShift }: AxisBottomProps): JSX.Element | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { Margin } from '../../utils/buildMargin';
|
|
3
|
+
import { BaseYAxis } from '../../../../../shared-logic/src/ChartsV2/types';
|
|
4
|
+
import { ScaleLinear } from '@visx/vendor/d3-scale';
|
|
5
|
+
import { ChartThemeCSS } from '../../utils/getChartThemeCSS';
|
|
6
|
+
import { ComboYAxis } from '../../../../../shared-logic/src/ComboChartV2/types';
|
|
7
|
+
export declare const AxisLeft: FunctionComponent<{
|
|
8
|
+
show: boolean;
|
|
9
|
+
y: BaseYAxis | ComboYAxis;
|
|
10
|
+
margin: Margin;
|
|
11
|
+
stroke?: string;
|
|
12
|
+
yScale: ScaleLinear<number, number, never>;
|
|
13
|
+
ticks: number[];
|
|
14
|
+
themeCSS: ChartThemeCSS;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BarChartRepresentation } from '../../../../../shared-logic/src/BarChartV2/types';
|
|
3
|
+
import { ChartTheme } from '../../../types';
|
|
4
|
+
import { ChartOnViewClick } from '../../../../../shared-logic/src/ChartsV2/types';
|
|
5
|
+
export declare type BarChartProps = {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
theme?: ChartTheme;
|
|
9
|
+
chart: BarChartRepresentation;
|
|
10
|
+
options: {
|
|
11
|
+
stacked: boolean;
|
|
12
|
+
showRoundedTotal: boolean;
|
|
13
|
+
showLegend: boolean;
|
|
14
|
+
removeStroke: boolean;
|
|
15
|
+
axis: {
|
|
16
|
+
showXAxisLabels: boolean;
|
|
17
|
+
showYAxisLabels: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
onClick: (params: ChartOnViewClick) => void;
|
|
21
|
+
enableHover?: boolean;
|
|
22
|
+
numberOfDimensions: number;
|
|
23
|
+
};
|
|
24
|
+
export declare const BarChart: ({ chart, width, height, options, theme, onClick, enableHover, numberOfDimensions }: BarChartProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BarChart } from './BarChart';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Datum } from '../../../../../shared-logic/src/DatumKey';
|
|
2
|
+
export declare function useBarXScale(xScaleDataType: string, innerWidth: number, xScaleKey: string | null, data: Datum[]): import("@visx/vendor/d3-scale").ScaleBand<number> | import("@visx/vendor/d3-scale").ScaleBand<string> | import("@visx/vendor/d3-scale").ScaleBand<Date> | null;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartTheme } from '../../../types';
|
|
3
|
+
import { BubbleChartRepresentation } from '../../../../../shared-logic/src/BubbleChart/types';
|
|
4
|
+
import { DataType } from '../../../../../shared-logic/src/Field/types';
|
|
5
|
+
import { ConditionalFormattingRule } from '../../../../../shared-logic/src/ChartsV2/types';
|
|
6
|
+
import { ScaleLinear, ScalePoint, ScaleTime } from '@visx/vendor/d3-scale';
|
|
7
|
+
export declare type BubbleChartProps = {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
chart: BubbleChartRepresentation;
|
|
11
|
+
theme?: ChartTheme;
|
|
12
|
+
options: {
|
|
13
|
+
showRoundedTotal: boolean;
|
|
14
|
+
showLegend: boolean;
|
|
15
|
+
removeStroke: boolean;
|
|
16
|
+
axis: {
|
|
17
|
+
showXAxisLabels: boolean;
|
|
18
|
+
showYAxisLabels: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const BubbleChart: ({ chart, options, theme, width, height }: BubbleChartProps) => JSX.Element;
|
|
23
|
+
export declare function Bubbles({ yKeys, data, xScaleKey, xScale, yScale, chart, }: {
|
|
24
|
+
yKeys: string[];
|
|
25
|
+
conditionalFormattingRules: ConditionalFormattingRule[];
|
|
26
|
+
data: Array<{
|
|
27
|
+
[x: string]: string | number;
|
|
28
|
+
}>;
|
|
29
|
+
visibleYKeys: string[];
|
|
30
|
+
xScaleKey: string;
|
|
31
|
+
xScaleDataType: DataType;
|
|
32
|
+
xScale: ScalePoint<string> | ScaleTime<number, number, never> | ScaleLinear<number, number, never>;
|
|
33
|
+
yScale: ScaleLinear<number, number, never>;
|
|
34
|
+
chart: BubbleChartRepresentation;
|
|
35
|
+
}): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BubbleChart } from './BubbleChart';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ChartWrapper: (props: {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
showLegend: boolean;
|
|
7
|
+
onMouseMove?: React.MouseEventHandler<SVGSVGElement>;
|
|
8
|
+
onMouseLeave?: React.MouseEventHandler<SVGSVGElement>;
|
|
9
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartTheme } from '../../../types';
|
|
3
|
+
import { ComboChartRepresentation } from '../../../../../shared-logic/src/ComboChartV2/types';
|
|
4
|
+
export declare type ComboChartProps = {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
theme?: ChartTheme;
|
|
8
|
+
chart: ComboChartRepresentation;
|
|
9
|
+
options: {
|
|
10
|
+
stacked: boolean;
|
|
11
|
+
showRoundedTotal: boolean;
|
|
12
|
+
showLegend: boolean;
|
|
13
|
+
removeStroke: boolean;
|
|
14
|
+
axis: {
|
|
15
|
+
showXAxisLabels: boolean;
|
|
16
|
+
showYAxisLabels: boolean;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
enableHover?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare const ComboChart: ({ chart, width, height, options, theme }: ComboChartProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { GoalLine as GoalLineType } from '../../../../../shared-logic/src/
|
|
2
|
+
import { GoalLine as GoalLineType } from '../../../../../shared-logic/src/ChartsV2/types';
|
|
3
3
|
interface GoalLineProps {
|
|
4
4
|
goalLine: GoalLineType;
|
|
5
5
|
innerWidth: number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GoalLine as GoalLineType } from '../../../../../shared-logic/src/ChartsV2/types';
|
|
3
|
+
import { Margin } from '../../utils/buildMargin';
|
|
4
|
+
export declare const shouldUpdate: (previousProps: any, nextProps: any) => boolean;
|
|
5
|
+
declare const _default: import("react").NamedExoticComponent<{
|
|
6
|
+
goalLines: GoalLineType[];
|
|
7
|
+
y: (value: number) => number;
|
|
8
|
+
margin: Margin;
|
|
9
|
+
width: number;
|
|
10
|
+
}>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { ScaleLinear } from '@visx/vendor/d3-scale';
|
|
3
|
+
export declare const GridRows: FunctionComponent<{
|
|
4
|
+
ticks: number[];
|
|
5
|
+
yScale: ScaleLinear<number, number, never>;
|
|
6
|
+
removeStroke?: boolean;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
themeCSS: any;
|
|
10
|
+
}>;
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { ShapeDefinition, ConditionalFormattingRule, Key } from '../../../../../shared-logic/src/ChartsV2/types';
|
|
3
|
+
import { BarStyles } from '../../../../../shared-logic/src/BarChartV2/types';
|
|
4
|
+
import { LineStyles } from '../../../../../shared-logic/src/LineChartV2/types';
|
|
5
|
+
import { AreaStyles } from '../../../../../shared-logic/src/AreaChartV2/types';
|
|
6
|
+
import { BubbleStyles } from '../../../../../shared-logic/src/BubbleChartV2/types';
|
|
7
|
+
declare type Item<T> = {
|
|
8
|
+
legendItems: Array<ShapeDefinition<T>>;
|
|
5
9
|
visibleYKeys: Array<string>;
|
|
10
|
+
conditionalFormattingRules: Array<ConditionalFormattingRule>;
|
|
11
|
+
};
|
|
12
|
+
export declare type LegendProps<T> = {
|
|
13
|
+
setVisibleYKeys?: React.Dispatch<React.SetStateAction<Array<string>>>;
|
|
6
14
|
keys: {
|
|
7
15
|
[key: string]: Key;
|
|
8
16
|
};
|
|
9
|
-
legendItems: Array<LegendItemType>;
|
|
10
|
-
conditionalFormattingRules: Array<ConditionalFormattingRule>;
|
|
11
17
|
marginLeft: number;
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
items: Item<T>[];
|
|
19
|
+
};
|
|
20
|
+
export declare const Legend: ({ keys, setVisibleYKeys, marginLeft, items, }: LegendProps<BarStyles | LineStyles | AreaStyles | BubbleStyles>) => JSX.Element;
|
|
14
21
|
export {};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ConditionalFormattingRule } from '../../../../../../shared-logic/src/
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { ShapeDefinition, ConditionalFormattingRule } from '../../../../../../shared-logic/src/ChartsV2/types';
|
|
3
|
+
import { LineStyles } from '../../../../../../shared-logic/src/LineChartV2/types';
|
|
4
|
+
import { BarStyles } from '../../../../../../shared-logic/src/BarChartV2/types';
|
|
5
|
+
import { AreaStyles } from '../../../../../../shared-logic/src/AreaChartV2/types';
|
|
6
|
+
import { BubbleStyles } from '../../../../../../shared-logic/src/BubbleChartV2/types';
|
|
7
|
+
interface LegendItemProps<T> extends ShapeDefinition<T> {
|
|
5
8
|
onClick: () => void;
|
|
6
9
|
visible: boolean;
|
|
7
10
|
yKeyFormatted: string | undefined;
|
|
8
11
|
conditionalFormattingRules: Array<ConditionalFormattingRule>;
|
|
9
12
|
}
|
|
10
|
-
export declare const LegendItem: ({ yKey, yKeyFormatted, color, style, onClick, visible, conditionalFormattingRules, }: LegendItemProps) => JSX.Element;
|
|
13
|
+
export declare const LegendItem: ({ yKey, yKeyFormatted, color, style, onClick, visible, conditionalFormattingRules, }: LegendItemProps<BarStyles | LineStyles | AreaStyles | BubbleStyles>) => JSX.Element;
|
|
11
14
|
export {};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { ShapeDefinition } from '../../../../../../shared-logic/src/ChartsV2/types';
|
|
3
|
+
import { LineStyles } from '../../../../../../shared-logic/src/LineChartV2/types';
|
|
4
|
+
export declare const LegendItemBox: ({ color, style }: ShapeDefinition<LineStyles>) => JSX.Element;
|
|
5
|
+
export declare const LegendItemSquare: ({ color }: {
|
|
6
|
+
color: string;
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
export declare const LegendItemTriangle: ({ color }: {
|
|
9
|
+
color: string;
|
|
10
|
+
}) => JSX.Element;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ChartTheme } from '../../../types';
|
|
3
|
-
import { LineChartRepresentation } from '../../../../../shared-logic/src/LineChartV2/types';
|
|
3
|
+
import { LineChartRepresentation, LineStyles } from '../../../../../shared-logic/src/LineChartV2/types';
|
|
4
|
+
import { DataType } from '../../../../../shared-logic/src/Field/types';
|
|
5
|
+
import { ChartDataDefinition, ConditionalFormattingRule, ShapeDefinition } from '../../../../../shared-logic/src/ChartsV2/types';
|
|
6
|
+
import { ScaleLinear, ScaleTime, ScalePoint } from '@visx/vendor/d3-scale';
|
|
4
7
|
export declare type LineChartProps = {
|
|
5
8
|
width: number;
|
|
6
9
|
height: number;
|
|
@@ -18,3 +21,15 @@ export declare type LineChartProps = {
|
|
|
18
21
|
};
|
|
19
22
|
};
|
|
20
23
|
export declare const LineChart: ({ chart, options, theme, width, height }: LineChartProps) => JSX.Element;
|
|
24
|
+
export declare function Lines({ yKeys, visibleYKeys, data, xScaleKey, xScaleDataType, xScale, yScale, lines, curve, conditionalFormattingRules, }: {
|
|
25
|
+
yKeys: string[];
|
|
26
|
+
lines: ShapeDefinition<LineStyles>[];
|
|
27
|
+
conditionalFormattingRules: ConditionalFormattingRule[];
|
|
28
|
+
curve: any;
|
|
29
|
+
data: ChartDataDefinition[];
|
|
30
|
+
visibleYKeys: string[];
|
|
31
|
+
xScaleKey: string;
|
|
32
|
+
xScaleDataType: DataType;
|
|
33
|
+
xScale: ScalePoint<string> | ScaleTime<number, number, never> | ScaleLinear<number, number, never>;
|
|
34
|
+
yScale: ScaleLinear<number, number, never>;
|
|
35
|
+
}): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RadarChart } from './RadarChart';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { RadarChartOptions, RadarChartRepresentation } from '../../../../../shared-logic/src/RadarChart/types';
|
|
2
|
+
import { ChartTheme } from '../../../types';
|
|
3
|
+
import { ChartThemeCSS } from '../../utils/getChartThemeCSS';
|
|
4
|
+
declare type SinglePolygonPoints = {
|
|
5
|
+
points: {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
}[];
|
|
9
|
+
pointString: string;
|
|
10
|
+
};
|
|
11
|
+
export declare type SinglePolygonProps = {
|
|
12
|
+
polygonPoints: SinglePolygonPoints;
|
|
13
|
+
colors: string;
|
|
14
|
+
isVisible: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare type PolygonProps = {
|
|
17
|
+
chart: RadarChartRepresentation;
|
|
18
|
+
radius: number;
|
|
19
|
+
visibleYKeys: string[];
|
|
20
|
+
};
|
|
21
|
+
export declare type RadarShapeProps = {
|
|
22
|
+
chart: RadarChartRepresentation;
|
|
23
|
+
radius: number;
|
|
24
|
+
themeCSS: ChartThemeCSS;
|
|
25
|
+
};
|
|
26
|
+
export declare type RadarChartProps = {
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
theme?: ChartTheme;
|
|
30
|
+
chart: RadarChartRepresentation;
|
|
31
|
+
options: RadarChartOptions;
|
|
32
|
+
};
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { ConditionalFormattingRule } from '../../../../../shared-logic/src/ChartsV2/types';
|
|
3
|
+
import { ChartThresholdTheme } from '../../../types';
|
|
4
|
+
import { Margin } from '../../utils/buildMargin';
|
|
5
|
+
export declare const ThresholdArea: FunctionComponent<{
|
|
6
|
+
rules: ConditionalFormattingRule[];
|
|
7
|
+
height: number;
|
|
8
|
+
width: number;
|
|
9
|
+
margin: Margin;
|
|
10
|
+
idPrefix: string;
|
|
11
|
+
theme?: ChartThresholdTheme;
|
|
12
|
+
uniqueId: string;
|
|
13
|
+
yScale: (value: number) => number;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ConditionalFormattingRule } from '../../../../../shared-logic/src/ChartsV2/types';
|
|
2
|
+
export declare const thresholdId: (args: ConditionalFormattingRule, idPrefix: string, position: 'above' | 'below' | 'intermediate', uniqueId: string) => string;
|
|
3
|
+
export declare function buildClipPathId(rule: ConditionalFormattingRule, idPrefix: string, uniqueId: string): string;
|
|
4
|
+
export declare function getRule(rules: ConditionalFormattingRule[], yKey: string): ConditionalFormattingRule[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { Margin } from '../../utils/buildMargin';
|
|
3
|
+
import { DataItem, ShapeDefinition } from '../../../../../shared-logic/src/ChartsV2/types';
|
|
4
|
+
import { DataType } from '../../../../../shared-logic/src/Field/types';
|
|
5
|
+
import { AreaStyles } from '../../../../../shared-logic/src/AreaChartV2/types';
|
|
6
|
+
import { BubbleStyles } from '../../../../../shared-logic/src/BubbleChartV2/types';
|
|
7
|
+
import { LineStyles } from '../../../../../shared-logic/src/LineChartV2/types';
|
|
8
|
+
export declare const CrosshairCircle: FunctionComponent<{
|
|
9
|
+
dataType: DataType;
|
|
10
|
+
yKeys: string[];
|
|
11
|
+
tooltipData: {
|
|
12
|
+
[keyId: string]: DataItem;
|
|
13
|
+
};
|
|
14
|
+
xKey: string | null;
|
|
15
|
+
margin: Margin;
|
|
16
|
+
legendItems: ShapeDefinition<AreaStyles | LineStyles | BubbleStyles>[];
|
|
17
|
+
conditionalFormattingRules: any;
|
|
18
|
+
visibleYKeys: string[];
|
|
19
|
+
yScale: (yKey: string) => number;
|
|
20
|
+
xScale: (value: string | number | Date) => number | undefined;
|
|
21
|
+
}>;
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { ConditionalFormattingRule, DataItem, Key
|
|
3
|
-
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { ShapeDefinition, ConditionalFormattingRule, DataItem, Key } from '../../../../../shared-logic/src/ChartsV2/types';
|
|
3
|
+
import { LineStyles } from '../../../../../shared-logic/src/LineChartV2/types';
|
|
4
|
+
import { BarStyles } from '../../../../../shared-logic/src/BarChartV2/types';
|
|
5
|
+
import { AreaStyles } from '../../../../../shared-logic/src/AreaChartV2/types';
|
|
6
|
+
import { BubbleStyles } from '../../../../../shared-logic/src/BubbleChartV2/types';
|
|
7
|
+
interface TooltipProps<T> {
|
|
4
8
|
keys: {
|
|
5
9
|
[key: string]: Key;
|
|
6
10
|
};
|
|
7
|
-
legendItems: Array<LegendItem>;
|
|
8
11
|
showRoundedTotal: boolean;
|
|
9
12
|
tooltipData: {
|
|
10
13
|
[keyId: string]: DataItem;
|
|
11
14
|
};
|
|
12
15
|
tooltipLeft: number;
|
|
13
16
|
tooltipTop: number;
|
|
14
|
-
visibleYKeys: string[];
|
|
15
17
|
xKey: string;
|
|
16
|
-
yKeys
|
|
17
|
-
|
|
18
|
+
yKeys?: string[];
|
|
19
|
+
items: {
|
|
20
|
+
legendItems: Array<ShapeDefinition<T>>;
|
|
21
|
+
conditionalFormattingRules: Array<ConditionalFormattingRule>;
|
|
22
|
+
visibleYKeys: string[];
|
|
23
|
+
}[];
|
|
18
24
|
theme: CSSProperties;
|
|
19
25
|
}
|
|
20
|
-
export declare const Tooltip: ({ keys,
|
|
26
|
+
export declare const Tooltip: ({ keys, showRoundedTotal, tooltipData, tooltipLeft, tooltipTop, xKey, yKeys, theme, items, }: TooltipProps<LineStyles | BarStyles | AreaStyles | BubbleStyles>) => React.ReactPortal;
|
|
21
27
|
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type LegendProps = {
|
|
3
|
+
showLegend: boolean;
|
|
4
|
+
margin: {
|
|
5
|
+
top: number;
|
|
6
|
+
right: number;
|
|
7
|
+
bottom: number;
|
|
8
|
+
left: number;
|
|
9
|
+
leftTitleOffset: number;
|
|
10
|
+
bottomTitleOffset: number;
|
|
11
|
+
};
|
|
12
|
+
increaseColor: string;
|
|
13
|
+
decreaseColor: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const Legend: ({ showLegend, margin, increaseColor, decreaseColor }: LegendProps) => JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { DataItem } from '../../../../../shared-logic/src/WaterfallChart/types';
|
|
3
|
+
export declare type TooltipProps = {
|
|
4
|
+
showTooltip: boolean;
|
|
5
|
+
tooltipData: {
|
|
6
|
+
[keyId: string]: DataItem;
|
|
7
|
+
} | null | undefined;
|
|
8
|
+
tooltipLeft: number;
|
|
9
|
+
tooltipTop: number;
|
|
10
|
+
xKey: string;
|
|
11
|
+
yKey: string;
|
|
12
|
+
theme: CSSProperties;
|
|
13
|
+
};
|
|
14
|
+
export declare const Tooltip: ({ showTooltip, tooltipData, tooltipLeft, tooltipTop, xKey, yKey, theme, }: TooltipProps) => JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartTheme } from '../../../types';
|
|
3
|
+
import { Step, WaterfallChartOptions, WaterfallChartRepresentation } from '../../../../../shared-logic/src/WaterfallChart/types';
|
|
4
|
+
export declare type WaterfallChartProps = {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
chart: WaterfallChartRepresentation;
|
|
8
|
+
steps: Step[];
|
|
9
|
+
options: WaterfallChartOptions;
|
|
10
|
+
theme?: ChartTheme;
|
|
11
|
+
increaseColor: string;
|
|
12
|
+
decreaseColor: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const WaterfallChart: ({ height, width, options, chart, steps, theme, increaseColor, decreaseColor, }: WaterfallChartProps) => JSX.Element | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare type UseBottomAxisBaseLineShiftProps = {
|
|
2
|
+
showDetailedSubGroupingLabels: boolean;
|
|
3
|
+
hasBottomTitle: boolean;
|
|
4
|
+
hasLeftTitle: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const useBottomAxisBaseLineShift: ({ showDetailedSubGroupingLabels, hasBottomTitle, hasLeftTitle, }: UseBottomAxisBaseLineShiftProps) => {
|
|
7
|
+
bottomAxisBaselineShift: number;
|
|
8
|
+
bottomOffset: number;
|
|
9
|
+
leftOffset: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare type UseTooltipParams<TooltipData> = {
|
|
2
|
+
tooltipOpen: boolean;
|
|
3
|
+
tooltipLeft?: number;
|
|
4
|
+
tooltipTop?: number;
|
|
5
|
+
lineLeft?: number;
|
|
6
|
+
tooltipData?: TooltipData;
|
|
7
|
+
updateTooltip: (args: UpdateTooltipArgs<TooltipData>) => void;
|
|
8
|
+
showTooltip: (args: ShowTooltipArgs<TooltipData>) => void;
|
|
9
|
+
hideTooltip: () => void;
|
|
10
|
+
};
|
|
11
|
+
declare type UseTooltipState<TooltipData> = Pick<UseTooltipParams<TooltipData>, 'tooltipOpen' | 'tooltipLeft' | 'tooltipTop' | 'lineLeft' | 'tooltipData'>;
|
|
12
|
+
declare type ValueOrFunc<T> = T | ((t: T) => T);
|
|
13
|
+
declare type ShowTooltipArgs<TooltipData> = ValueOrFunc<Omit<UseTooltipState<TooltipData>, 'tooltipOpen'>>;
|
|
14
|
+
declare type UpdateTooltipArgs<TooltipData> = ValueOrFunc<UseTooltipState<TooltipData>>;
|
|
15
|
+
export default function useTooltip<TooltipData = {}>(initialTooltipState?: Partial<UseTooltipParams<TooltipData>>): UseTooltipParams<TooltipData>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ShapeDefinition } from '../../../../../shared-logic/src/ChartsV2/types';
|
|
3
|
+
export declare function useVisibleYKeys<T>(areas: ShapeDefinition<T>[]): {
|
|
4
|
+
visibleYKeys: string[];
|
|
5
|
+
setVisibleYKeys: import("react").Dispatch<import("react").SetStateAction<string[]>>;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BAR_RADIUS = 2;
|