@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,53 @@
|
|
|
1
|
+
import { BarChartRepresentation } from '../BarChartV2/types';
|
|
2
|
+
import { LineChartRepresentation } from '../LineChartV2/types';
|
|
3
|
+
import { Result as ResultType } from '../../../shared-logic/src/Result/types';
|
|
4
|
+
export declare function buildComboChartRepresentation(xKeyField: ResultType.Field | undefined, barChartRepresentation: BarChartRepresentation, lineChartRepresentation: LineChartRepresentation): {
|
|
5
|
+
x: {
|
|
6
|
+
scale: {
|
|
7
|
+
min: number;
|
|
8
|
+
max: number;
|
|
9
|
+
dataType: import("../Field/types").DataType;
|
|
10
|
+
key: string | null;
|
|
11
|
+
ordering: "asc" | "desc" | null;
|
|
12
|
+
} | {
|
|
13
|
+
min: null;
|
|
14
|
+
max: null;
|
|
15
|
+
dataType: import("../Field/types").DataType;
|
|
16
|
+
key: string | null;
|
|
17
|
+
ordering: "asc" | "desc" | null;
|
|
18
|
+
};
|
|
19
|
+
ticks: import("../ChartsV2/types").Tick<string | number | Date>[];
|
|
20
|
+
postfix: string;
|
|
21
|
+
prefix: string;
|
|
22
|
+
title: string | null;
|
|
23
|
+
key: string;
|
|
24
|
+
};
|
|
25
|
+
keys: {};
|
|
26
|
+
y: {
|
|
27
|
+
scale: {
|
|
28
|
+
max: number;
|
|
29
|
+
min: number;
|
|
30
|
+
dataType: import("../Field/types").DataType;
|
|
31
|
+
key: string | null;
|
|
32
|
+
ordering: "asc" | "desc" | null;
|
|
33
|
+
};
|
|
34
|
+
ticks: import("../ChartsV2/types").Tick<number>[];
|
|
35
|
+
barKeys: string[];
|
|
36
|
+
lineKeys: string[];
|
|
37
|
+
postfix: string;
|
|
38
|
+
prefix: string;
|
|
39
|
+
title: string | null;
|
|
40
|
+
keys: string[];
|
|
41
|
+
};
|
|
42
|
+
lines: {
|
|
43
|
+
definitions: import("../ChartsV2/types").ShapeDefinition<import("../LineChartV2/types").LineStyles>[];
|
|
44
|
+
data: import("../ChartsV2/types").Datum[];
|
|
45
|
+
conditionalFormattingRules: import("../ChartsV2/types").ConditionalFormattingRule[];
|
|
46
|
+
};
|
|
47
|
+
bars: {
|
|
48
|
+
definitions: import("../ChartsV2/types").ShapeDefinition<import("../BarChartV2/types").BarStyles>[];
|
|
49
|
+
data: import("../ChartsV2/types").Datum[];
|
|
50
|
+
conditionalFormattingRules: import("../ChartsV2/types").ConditionalFormattingRule[];
|
|
51
|
+
};
|
|
52
|
+
goalLines: import("../ChartsV2/types").GoalLine[];
|
|
53
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { ComponentInterfaceConfig } from '../ComponentInterface/types';
|
|
3
|
+
declare const _default: (config: ComponentInterfaceConfig) => (chart: Component.ComboChartV2Attributes, partial: Partial<Component.ComboChartV2Attributes>) => Component.ComboChartV2Attributes;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BarStyles } from '../BarChartV2/types';
|
|
2
|
+
import { ShapeDefinition, ConditionalFormattingRule, GoalLine, BaseChartRepresentation, KeyId, Axis, Datum } from '../ChartsV2/types';
|
|
3
|
+
import { LineStyles } from '../LineChartV2/types';
|
|
4
|
+
export declare type ComboYAxis = Axis<number, {
|
|
5
|
+
lineKeys: KeyId[];
|
|
6
|
+
barKeys: KeyId[];
|
|
7
|
+
}>;
|
|
8
|
+
export interface ComboChartRepresentation extends Omit<BaseChartRepresentation, 'y' | 'data'> {
|
|
9
|
+
goalLines: GoalLine[];
|
|
10
|
+
bars: {
|
|
11
|
+
definitions: ShapeDefinition<BarStyles>[];
|
|
12
|
+
data: Datum[];
|
|
13
|
+
conditionalFormattingRules: ConditionalFormattingRule[];
|
|
14
|
+
};
|
|
15
|
+
lines: {
|
|
16
|
+
definitions: ShapeDefinition<LineStyles>[];
|
|
17
|
+
data: Datum[];
|
|
18
|
+
conditionalFormattingRules: ConditionalFormattingRule[];
|
|
19
|
+
};
|
|
20
|
+
y: ComboYAxis;
|
|
21
|
+
}
|
|
@@ -7,5 +7,5 @@ export declare const removeUnusedOrderFieldsFromTimeSeriesComponent: <T extends
|
|
|
7
7
|
timeDimension?: QueryAttributes.TimeDimension | null | undefined;
|
|
8
8
|
dimension: Array<QueryAttributes.Dimension>;
|
|
9
9
|
}>(attributes: T) => T;
|
|
10
|
-
declare const setAttributes: <Attributes extends Component.Attributes>(attributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.LineChartV2Attributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes>, partialAttributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.LineChartV2Attributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes>, schema: Joi.ObjectSchema<any>) => Attributes;
|
|
10
|
+
declare const setAttributes: <Attributes extends Component.Attributes>(attributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.BubbleChartAttributes> | Partial<Component.BubbleChartV2Attributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.LineChartV2Attributes> | Partial<Component.BarChartV2Attributes> | Partial<Component.AreaChartV2Attributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.SunburstChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes> | Partial<Component.WaterfallChartAttributes> | Partial<Component.RadarChartAttributes> | Partial<Component.ComboChartV2Attributes>, partialAttributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.BubbleChartAttributes> | Partial<Component.BubbleChartV2Attributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.LineChartV2Attributes> | Partial<Component.BarChartV2Attributes> | Partial<Component.AreaChartV2Attributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.SunburstChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes> | Partial<Component.WaterfallChartAttributes> | Partial<Component.RadarChartAttributes> | Partial<Component.ComboChartV2Attributes>, schema: Joi.ObjectSchema<any>) => Attributes;
|
|
11
11
|
export default setAttributes;
|
|
@@ -45,6 +45,7 @@ export declare const timeDimensionQuerySchema: (queryEngineConfig: QueryEngineCo
|
|
|
45
45
|
offset: Joi.NumberSchema<number>;
|
|
46
46
|
};
|
|
47
47
|
export declare const lineCurveSchema: Joi.StringSchema<string>;
|
|
48
|
+
export declare const areaCurveSchema: Joi.StringSchema<string>;
|
|
48
49
|
export declare const protectedFieldsMeasure: (queryEngineConfig: QueryEngineConfig) => Joi.ArraySchema<any[]>;
|
|
49
50
|
export declare const protectedFieldsDimension: (queryEngineConfig: QueryEngineConfig) => Joi.ArraySchema<any[]>;
|
|
50
51
|
export declare const parametersSchema: (queryEngineConfig: QueryEngineConfig, attributeSchemaOptions: ComponentInterfaceConfig['attributesSchemaOptions']) => Joi.ObjectSchema<any>;
|
|
@@ -11,10 +11,11 @@ import { DataSet } from '../DataSet/types';
|
|
|
11
11
|
export declare type getNumberFormatter = (formatterId: string | undefined | null) => (number: number) => string;
|
|
12
12
|
export declare type FormatType = string | null;
|
|
13
13
|
export declare type ApproxAxisLabelCount = 'auto' | number;
|
|
14
|
-
export declare type ComponentType = 'areaChart' | 'barChart' | 'basicTable' | 'comboChart' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat';
|
|
14
|
+
export declare type ComponentType = 'areaChart' | 'areaChartV2' | 'barChart' | 'barChartV2' | 'basicTable' | 'bubbleChart' | 'bubbleChartV2' | 'comboChart' | 'comboChartV2' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'radarChart' | 'richText' | 'scatterChart' | 'singleStat' | 'sunburstChart' | 'waterfallChart';
|
|
15
15
|
export declare const componentTypes: string[];
|
|
16
16
|
export declare namespace Component {
|
|
17
17
|
export type LineCurve = 'natural' | 'straight' | 'step' | 'stepBefore' | 'stepAfter' | 'dotted';
|
|
18
|
+
export type AreaCurve = 'natural' | 'straight' | 'step';
|
|
18
19
|
export type RawComponent = Omit<Component, 'queries' | 'results' | 'span'> & {
|
|
19
20
|
colSpan?: number;
|
|
20
21
|
};
|
|
@@ -145,6 +146,29 @@ export declare namespace Component {
|
|
|
145
146
|
};
|
|
146
147
|
axisTitles?: AxisTitles;
|
|
147
148
|
};
|
|
149
|
+
export type ComboChartV2Attributes = BaseAttributes & Omit<BaseQueryAttributes, 'measure' | 'dimension'> & {
|
|
150
|
+
type: 'comboChartV2';
|
|
151
|
+
barMeasure: QueryAttributes.Measure[];
|
|
152
|
+
lineMeasure: QueryAttributes.Measure[];
|
|
153
|
+
barDimension: QueryAttributes.Dimension[];
|
|
154
|
+
lineDimension: QueryAttributes.Dimension[];
|
|
155
|
+
stacked?: false;
|
|
156
|
+
xAxisPrefix: string;
|
|
157
|
+
yAxisPrefix: string;
|
|
158
|
+
xAxisPostfix: string;
|
|
159
|
+
yAxisPostfix: string;
|
|
160
|
+
xAxisFormat: FormatType;
|
|
161
|
+
yAxisFormat: FormatType;
|
|
162
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
163
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
164
|
+
legend: boolean;
|
|
165
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
166
|
+
conditionalFormattingRules?: {
|
|
167
|
+
bar?: Array<ConditionalFormatting.Rule>;
|
|
168
|
+
line?: Array<ConditionalFormatting.Rule>;
|
|
169
|
+
};
|
|
170
|
+
axisTitles?: AxisTitles;
|
|
171
|
+
};
|
|
148
172
|
export type LineChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
149
173
|
type: 'lineChart';
|
|
150
174
|
stacked?: boolean | '100%';
|
|
@@ -187,6 +211,47 @@ export declare namespace Component {
|
|
|
187
211
|
headline?: Headline;
|
|
188
212
|
trends?: Array<Trends>;
|
|
189
213
|
};
|
|
214
|
+
export type AreaChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
|
|
215
|
+
type: 'areaChartV2';
|
|
216
|
+
stacked: boolean;
|
|
217
|
+
xAxisPrefix: string;
|
|
218
|
+
yAxisPrefix: string;
|
|
219
|
+
xAxisPostfix: string;
|
|
220
|
+
yAxisPostfix: string;
|
|
221
|
+
xAxisFormat: FormatType;
|
|
222
|
+
yAxisFormat: FormatType;
|
|
223
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
224
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
225
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
226
|
+
drilldown: QueryAttributes.Dimension[];
|
|
227
|
+
legend: boolean;
|
|
228
|
+
parameters?: Parameters;
|
|
229
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
230
|
+
axisTitles?: AxisTitles;
|
|
231
|
+
headline?: Headline;
|
|
232
|
+
trends?: Array<Trends>;
|
|
233
|
+
lineCurve: AreaCurve;
|
|
234
|
+
};
|
|
235
|
+
export type BarChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
|
|
236
|
+
type: 'barChartV2';
|
|
237
|
+
stacked?: boolean;
|
|
238
|
+
xAxisPrefix: string;
|
|
239
|
+
yAxisPrefix: string;
|
|
240
|
+
xAxisPostfix: string;
|
|
241
|
+
yAxisPostfix: string;
|
|
242
|
+
xAxisFormat: FormatType;
|
|
243
|
+
yAxisFormat: FormatType;
|
|
244
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
245
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
246
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
247
|
+
drilldown: QueryAttributes.Dimension[];
|
|
248
|
+
legend: boolean;
|
|
249
|
+
parameters?: Parameters;
|
|
250
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
251
|
+
axisTitles?: AxisTitles;
|
|
252
|
+
headline?: Headline;
|
|
253
|
+
drilldownOptions: Array<DrilldownOptions> | undefined;
|
|
254
|
+
};
|
|
190
255
|
export type PieChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
191
256
|
type: 'pieChart';
|
|
192
257
|
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
@@ -197,6 +262,15 @@ export declare namespace Component {
|
|
|
197
262
|
parameters?: Parameters;
|
|
198
263
|
drilldownOptions: Array<DrilldownOptions> | undefined;
|
|
199
264
|
};
|
|
265
|
+
export type SunburstChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
266
|
+
type: 'sunburstChart';
|
|
267
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
268
|
+
labelsAsPercentage: boolean;
|
|
269
|
+
legend: boolean;
|
|
270
|
+
labels?: boolean;
|
|
271
|
+
labelFormat: FormatType;
|
|
272
|
+
parameters?: Parameters;
|
|
273
|
+
};
|
|
200
274
|
export type AreaChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
201
275
|
type: 'areaChart';
|
|
202
276
|
stacked?: boolean | '100%';
|
|
@@ -332,8 +406,77 @@ export declare namespace Component {
|
|
|
332
406
|
goalLines?: Array<Component.GoalLine.Rule>;
|
|
333
407
|
axisTitles?: AxisTitles;
|
|
334
408
|
};
|
|
335
|
-
export type
|
|
336
|
-
|
|
409
|
+
export type BubbleChartAttributes = BaseAttributes & Omit<BaseQueryAttributes, 'measure'> & {
|
|
410
|
+
type: 'bubbleChart';
|
|
411
|
+
xMeasure: QueryAttributes.Measure | null;
|
|
412
|
+
yMeasure: QueryAttributes.Measure | null;
|
|
413
|
+
zMeasure?: QueryAttributes.Measure | null;
|
|
414
|
+
legend: boolean;
|
|
415
|
+
xAxisPrefix: string;
|
|
416
|
+
yAxisPrefix: string;
|
|
417
|
+
xAxisPostfix: string;
|
|
418
|
+
yAxisPostfix: string;
|
|
419
|
+
xAxisFormat: FormatType;
|
|
420
|
+
yAxisFormat: FormatType;
|
|
421
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
422
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
423
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
424
|
+
axisTitles?: AxisTitles;
|
|
425
|
+
};
|
|
426
|
+
export type BubbleChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
|
|
427
|
+
type: 'bubbleChartV2';
|
|
428
|
+
stacked?: boolean | '100%';
|
|
429
|
+
zMeasure: QueryAttributes.Measure[];
|
|
430
|
+
xMeasure: QueryAttributes.Measure[];
|
|
431
|
+
xAxisPrefix: string;
|
|
432
|
+
yAxisPrefix: string;
|
|
433
|
+
xAxisPostfix: string;
|
|
434
|
+
yAxisPostfix: string;
|
|
435
|
+
lineCurve: LineCurve;
|
|
436
|
+
xAxisFormat: FormatType;
|
|
437
|
+
yAxisFormat: FormatType;
|
|
438
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
439
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
440
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
441
|
+
drilldown: QueryAttributes.Dimension[];
|
|
442
|
+
legend: boolean;
|
|
443
|
+
parameters?: Parameters;
|
|
444
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
445
|
+
axisTitles?: AxisTitles;
|
|
446
|
+
headline?: Headline;
|
|
447
|
+
trends?: Array<Trends>;
|
|
448
|
+
};
|
|
449
|
+
export type RadarChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
450
|
+
type: 'radarChart';
|
|
451
|
+
legend: boolean;
|
|
452
|
+
xAxisPrefix: string;
|
|
453
|
+
yAxisPrefix: string;
|
|
454
|
+
xAxisPostfix: string;
|
|
455
|
+
yAxisPostfix: string;
|
|
456
|
+
xAxisFormat: FormatType;
|
|
457
|
+
yAxisFormat: FormatType;
|
|
458
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
459
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
460
|
+
};
|
|
461
|
+
export type WaterfallChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
462
|
+
type: 'waterfallChart';
|
|
463
|
+
xAxisPrefix: string;
|
|
464
|
+
yAxisPrefix: string;
|
|
465
|
+
xAxisPostfix: string;
|
|
466
|
+
yAxisPostfix: string;
|
|
467
|
+
xAxisFormat: FormatType;
|
|
468
|
+
yAxisFormat: FormatType;
|
|
469
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
470
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
471
|
+
legend: boolean;
|
|
472
|
+
parameters?: Parameters;
|
|
473
|
+
axisTitles?: AxisTitles;
|
|
474
|
+
headline?: Headline;
|
|
475
|
+
increaseColor: string;
|
|
476
|
+
decreaseColor: string;
|
|
477
|
+
};
|
|
478
|
+
export type ViewType = 'areaChart' | 'barChart' | 'basicTable' | 'bubbleChart' | 'bubbleChartV2' | 'comboChart' | 'comboChartV2' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'areaChartV2' | 'barChartV2' | 'mercatorMap' | 'pieChart' | 'sunburstChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat' | 'waterfallChart' | 'radarChart';
|
|
479
|
+
export type Attributes = AreaChartAttributes | BarChartAttributes | BasicTableAttributes | BubbleChartAttributes | BubbleChartV2Attributes | ComboChartAttributes | CustomViewAttributes | DataTableAttributes | FunnelChartAttributes | HorizontalBarChartAttributes | LineChartAttributes | LineChartV2Attributes | BarChartV2Attributes | AreaChartV2Attributes | MercatorMapAttributes | PieChartAttributes | SunburstChartAttributes | ProgressAttributes | RichTextAttributes | ScatterChartAttributes | SingleStatAttributes | WaterfallChartAttributes | RadarChartAttributes | ComboChartV2Attributes;
|
|
337
480
|
export interface RenderTableCell {
|
|
338
481
|
viewId: string;
|
|
339
482
|
type: 'basicTable' | 'dataTable';
|
|
@@ -371,7 +514,7 @@ export declare namespace Component {
|
|
|
371
514
|
};
|
|
372
515
|
}
|
|
373
516
|
export interface ChartOnViewClick extends BaseOnViewClick {
|
|
374
|
-
type: 'barChart' | 'horizontalBarChart' | 'pieChart';
|
|
517
|
+
type: 'barChart' | 'horizontalBarChart' | 'pieChart' | 'sunburstChart';
|
|
375
518
|
clicked: {
|
|
376
519
|
grouping?: Array<ReturnedField>;
|
|
377
520
|
value?: ReturnedField;
|
|
@@ -393,8 +536,9 @@ export declare namespace Component {
|
|
|
393
536
|
};
|
|
394
537
|
export type ValueAliasOptions = {
|
|
395
538
|
fieldId?: string;
|
|
396
|
-
value: string | number;
|
|
539
|
+
value: string | number | null;
|
|
397
540
|
filter?: AdditionalFilter;
|
|
541
|
+
dataSetId?: string;
|
|
398
542
|
};
|
|
399
543
|
export type Parameters = {
|
|
400
544
|
measure?: ParameterMeasure;
|
|
@@ -2,5 +2,9 @@ import { QueryAttributes } from '../QueryAttributes/types';
|
|
|
2
2
|
import { Component } from './types';
|
|
3
3
|
export declare const usedMeasures: (attrs: Partial<Component.Attributes | QueryAttributes>) => QueryAttributes['measure'];
|
|
4
4
|
export declare const usedDimensions: (attrs: Partial<Component.Attributes | QueryAttributes>) => QueryAttributes['dimension'];
|
|
5
|
-
declare const usedFields: (attrs: Partial<Component.Attributes | QueryAttributes>) =>
|
|
5
|
+
declare const usedFields: (attrs: Partial<Component.Attributes | QueryAttributes>) => Array<{
|
|
6
|
+
dataSetId: string;
|
|
7
|
+
fieldId: string;
|
|
8
|
+
function: string;
|
|
9
|
+
}>;
|
|
6
10
|
export default usedFields;
|
|
@@ -19,6 +19,7 @@ declare type SubSectionDef = {
|
|
|
19
19
|
bar?: SubSection<'metrics'>;
|
|
20
20
|
xAxis?: SubSection<'metrics'>;
|
|
21
21
|
yAxis?: SubSection<'metrics'>;
|
|
22
|
+
zAxis?: SubSection<'metrics'>;
|
|
22
23
|
};
|
|
23
24
|
export declare type Pagination = {
|
|
24
25
|
options: number[];
|
|
@@ -28,6 +29,7 @@ export interface DataPanelNamespaces {
|
|
|
28
29
|
views: Section<'views'>;
|
|
29
30
|
fields?: Section<'fields'>;
|
|
30
31
|
field_y_axis?: Section<'fieldCollector'>;
|
|
32
|
+
field_z_axis?: Section<'fieldCollector'>;
|
|
31
33
|
field_rows?: Section<'fieldCollector'>;
|
|
32
34
|
field_columns?: Section<'fieldCollector'>;
|
|
33
35
|
field_metrics?: Section<'fieldCollector'>;
|
|
@@ -56,13 +58,19 @@ export interface FormatPanelNamespaces {
|
|
|
56
58
|
'x.postfix': SubSection<'axisLabels'>;
|
|
57
59
|
'x.format': SubSection<'axisLabels'>;
|
|
58
60
|
'x.count': SubSection<'axisLabels'>;
|
|
59
|
-
'x.axis_title'
|
|
61
|
+
'x.axis_title'?: SubSection<'axisLabels'>;
|
|
60
62
|
y: SubSection<'axisLabels'>;
|
|
61
63
|
'y.prefix': SubSection<'axisLabels'>;
|
|
62
64
|
'y.postfix': SubSection<'axisLabels'>;
|
|
63
65
|
'y.format': SubSection<'axisLabels'>;
|
|
64
66
|
'y.count': SubSection<'axisLabels'>;
|
|
65
|
-
'y.axis_title'
|
|
67
|
+
'y.axis_title'?: SubSection<'axisLabels'>;
|
|
68
|
+
z?: SubSection<'axisLabels'>;
|
|
69
|
+
'z.prefix'?: SubSection<'axisLabels'>;
|
|
70
|
+
'z.postfix'?: SubSection<'axisLabels'>;
|
|
71
|
+
'z.format'?: SubSection<'axisLabels'>;
|
|
72
|
+
'z.count'?: SubSection<'axisLabels'>;
|
|
73
|
+
'z.axis_title'?: SubSection<'axisLabels'>;
|
|
66
74
|
};
|
|
67
75
|
};
|
|
68
76
|
stats_labels?: Section<'statsLabels'> & {
|
|
@@ -99,6 +107,7 @@ export interface FormatPanelNamespaces {
|
|
|
99
107
|
};
|
|
100
108
|
goal_line?: Section<'goalLine'>;
|
|
101
109
|
map_colors?: Section<'mapColors'>;
|
|
110
|
+
waterfall_colors?: Section<'waterfallColors'>;
|
|
102
111
|
headline?: Section<'headline'>;
|
|
103
112
|
trends?: Section<'trends'>;
|
|
104
113
|
prefixes?: Section<'prefixes'>;
|
|
@@ -109,5 +118,5 @@ export interface FormatPanelNamespaces {
|
|
|
109
118
|
};
|
|
110
119
|
};
|
|
111
120
|
}
|
|
112
|
-
export declare type ComponentNamespace = 'area_chart' | 'bar_chart' | 'basic_table' | 'combo_chart' | 'custom' | 'fields' | 'funnel_chart' | 'headline' | 'horizontal_bar_chart' | 'line_chart' | 'mercator_map' | 'pie_chart' | 'pivot_table' | 'progress' | 'rich_text' | 'scatter_chart' | 'single_stat';
|
|
121
|
+
export declare type ComponentNamespace = 'area_chart' | 'bar_chart' | 'basic_table' | 'bubble_chart' | 'combo_chart' | 'custom' | 'fields' | 'funnel_chart' | 'headline' | 'horizontal_bar_chart' | 'line_chart' | 'mercator_map' | 'pie_chart' | 'sunburst_chart' | 'pivot_table' | 'progress' | 'rich_text' | 'scatter_chart' | 'single_stat' | 'waterfall_chart' | 'radar_chart';
|
|
113
122
|
export {};
|
|
@@ -34,11 +34,12 @@ export interface ComponentInterface<Hydrated = any, Dumped = any> extends Dumpab
|
|
|
34
34
|
roundedNumbers: boolean;
|
|
35
35
|
dateCalculations: boolean;
|
|
36
36
|
conditional: boolean;
|
|
37
|
-
|
|
37
|
+
customBuild: Array<AcceptedTypes> | false;
|
|
38
38
|
};
|
|
39
39
|
supportedFeatures: {
|
|
40
40
|
parameters: boolean;
|
|
41
41
|
colorGradient: boolean;
|
|
42
42
|
};
|
|
43
|
+
supportedAggregations?: Array<string>;
|
|
43
44
|
}
|
|
44
45
|
export declare type LoadComponentInterface<Hydrated, Dumped> = (config: ComponentInterfaceConfig) => ComponentInterface<Hydrated, Dumped>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
2
|
+
export declare type ComparisonFilter = {
|
|
3
|
+
op: QueryAttributes.Operator;
|
|
4
|
+
value: QueryAttributes.Filter['value'];
|
|
5
|
+
};
|
|
6
|
+
export declare const compare: (filter: ComparisonFilter, recordValue: unknown) => any;
|
|
7
|
+
export declare const conditionIsMet: (filter: ComparisonFilter, value: number | string | boolean) => boolean;
|
|
@@ -11,7 +11,7 @@ export declare const isAggregateMathField: (field: DataSetType.Field) => field i
|
|
|
11
11
|
export declare const isPercentageField: (field: DataSetType.Field) => field is PercentageField;
|
|
12
12
|
export declare const isRules: (field: DataSetType.Field) => field is RulesField;
|
|
13
13
|
export declare const isConditional: (field: DataSetType.Field) => field is ConditionalField;
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const isCustomBuildMetric: (field: DataSetType.Field) => field is MetricField;
|
|
15
15
|
export declare const isDateCalculation: (field: DataSetType.Field) => field is DateCalculationField;
|
|
16
16
|
export declare const getCustomFieldCategory: (field: CustomField) => CustomFieldCategory;
|
|
17
17
|
export declare const isCustomField: (field: DataSetType.Field) => field is CustomField;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { DataSet } from '../../DataSet/types';
|
|
2
|
-
import { Query
|
|
3
|
-
import * as Filter from '../../Filter';
|
|
4
|
-
import * as Types from './types';
|
|
2
|
+
import { Query } from '../../Query/types';
|
|
5
3
|
import { QueryAttributes } from '../../QueryAttributes/types';
|
|
6
4
|
import { Params } from '../../../../results-driver/src/types';
|
|
7
5
|
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
8
|
-
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const buildNumber: (numberInput: Types.NumberInput) => QueryNameSpace.FieldDefinition<string, string, string>;
|
|
11
|
-
export declare const buildField: (field: Types.Field) => QueryNameSpace.FieldDefinition<string, string, string>;
|
|
6
|
+
import { MetricField } from '../types';
|
|
7
|
+
export declare const build: (measureAttribute: QueryAttributes.Measure, customField: MetricField, dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params) => Query['measure'][number];
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { QueryAttributes } from '../../QueryAttributes/types';
|
|
5
|
-
import { Params } from '../../../../results-driver/src/types';
|
|
6
|
-
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
7
|
-
import { MetricField } from '../types';
|
|
8
|
-
export declare const init: (publicName: string, metric: Types.Metric, queryEngineConfig: QueryEngineConfig) => MetricField;
|
|
9
|
-
export declare const build: (measureAttribute: QueryAttributes.Measure, customField: MetricField, dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params) => Query['measure'][number];
|
|
10
|
-
export declare const validate: (field: MetricField) => boolean;
|
|
1
|
+
export * from './init';
|
|
2
|
+
export * from './build';
|
|
3
|
+
export * from './validate';
|
|
@@ -4,13 +4,15 @@ export declare enum PropertyType {
|
|
|
4
4
|
IfLogic = "ifLogic",
|
|
5
5
|
NumberInput = "number",
|
|
6
6
|
Variable = "variable",
|
|
7
|
-
Field = "field"
|
|
7
|
+
Field = "field",
|
|
8
|
+
Aggregate = "aggregate"
|
|
9
|
+
}
|
|
10
|
+
export declare enum OperatorType {
|
|
11
|
+
Divide = "/",
|
|
12
|
+
Multiply = "*",
|
|
13
|
+
Subtract = "-",
|
|
14
|
+
Add = "+"
|
|
8
15
|
}
|
|
9
|
-
export declare type Operator = {
|
|
10
|
-
type: PropertyType.Operator;
|
|
11
|
-
op: OperatorType;
|
|
12
|
-
values: Array<Operator | NumberInput | Field | Variable | IfLogic>;
|
|
13
|
-
};
|
|
14
16
|
export declare type NumberInput = {
|
|
15
17
|
type: PropertyType.NumberInput;
|
|
16
18
|
value: number | undefined;
|
|
@@ -24,18 +26,22 @@ export declare type Field = {
|
|
|
24
26
|
fieldId: string;
|
|
25
27
|
function: string;
|
|
26
28
|
};
|
|
29
|
+
export declare type Aggregate = {
|
|
30
|
+
type: PropertyType.Aggregate;
|
|
31
|
+
fieldId: string;
|
|
32
|
+
function?: string;
|
|
33
|
+
};
|
|
27
34
|
export declare type IfLogic = {
|
|
28
35
|
type: PropertyType.IfLogic;
|
|
29
36
|
cases: Array<{
|
|
30
37
|
filter: Array<QueryAttributes.Filter[]>;
|
|
31
|
-
returns: Operator | NumberInput | Field | Variable | IfLogic | undefined;
|
|
38
|
+
returns: Operator | NumberInput | Field | Variable | IfLogic | Aggregate | undefined;
|
|
32
39
|
}>;
|
|
33
|
-
else: Operator | NumberInput | Field | Variable | IfLogic | undefined;
|
|
40
|
+
else: Operator | NumberInput | Field | Variable | IfLogic | undefined | Aggregate;
|
|
34
41
|
};
|
|
35
|
-
export declare type
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
+
export declare type Operator = {
|
|
43
|
+
type: PropertyType.Operator;
|
|
44
|
+
op: OperatorType;
|
|
45
|
+
values: Array<Operator | NumberInput | Field | Variable | IfLogic | Aggregate>;
|
|
46
|
+
};
|
|
47
|
+
export declare type Metric = Operator | IfLogic | Aggregate | NumberInput | Field;
|
|
@@ -3,22 +3,15 @@ import { BaseField, DataType, NonDateTimeField } from '../Field/types';
|
|
|
3
3
|
import { Rules } from './Rules/types';
|
|
4
4
|
import { Metric } from './CustomMetric/types';
|
|
5
5
|
declare type BaseCustomField = Omit<NonDateTimeField, 'dashboardFilterGroups'>;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare type ConditionalField = BaseCustomField & Conditional;
|
|
11
|
-
export declare type MetricField = BaseCustomField & {
|
|
12
|
-
metric: Metric;
|
|
6
|
+
declare type SimpleMath = {
|
|
7
|
+
leftFieldId: string;
|
|
8
|
+
operator: MathOperator;
|
|
9
|
+
rightFieldId: string;
|
|
13
10
|
};
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
declare type RoundedNumber = {
|
|
12
|
+
roundToDecimalPlaces: 0 | 2;
|
|
13
|
+
fieldId: string;
|
|
16
14
|
};
|
|
17
|
-
export interface RulesField extends BaseField {
|
|
18
|
-
rules: Rules[];
|
|
19
|
-
dataType: 'string';
|
|
20
|
-
}
|
|
21
|
-
export declare type CustomField = PercentageField | SimpleMathField | AggregateMathField | RulesField | RoundedNumberField | DateCalculationField | ConditionalField | MetricField;
|
|
22
15
|
export declare type Conditional = {
|
|
23
16
|
fieldId: string;
|
|
24
17
|
function: string;
|
|
@@ -55,25 +48,36 @@ export declare type AggregateMath = {
|
|
|
55
48
|
/** @deprecated ignore this outside of upcasting */
|
|
56
49
|
rightAggregate?: string;
|
|
57
50
|
};
|
|
58
|
-
export declare type SimpleMath = {
|
|
59
|
-
leftFieldId: string;
|
|
60
|
-
operator: MathOperator;
|
|
61
|
-
rightFieldId: string;
|
|
62
|
-
};
|
|
63
|
-
export declare type RoundedNumber = {
|
|
64
|
-
roundToDecimalPlaces: 0 | 2;
|
|
65
|
-
fieldId: string;
|
|
66
|
-
};
|
|
67
51
|
export declare type DateCalculation = {
|
|
68
52
|
leftFieldId: string;
|
|
69
53
|
rightFieldId: string;
|
|
70
54
|
dateCalculationFunction: 'seconds_between' | 'minutes_between' | 'hours_between' | 'days_between';
|
|
71
55
|
};
|
|
56
|
+
export declare type PercentageField = BaseCustomField & Percentage;
|
|
57
|
+
export declare type RoundedNumberField = BaseCustomField & RoundedNumber;
|
|
58
|
+
export declare type DateCalculationField = BaseCustomField & DateCalculation;
|
|
59
|
+
export declare type AggregateMathField = BaseCustomField & AggregateMath;
|
|
60
|
+
export declare type ConditionalField = BaseCustomField & Conditional;
|
|
61
|
+
export declare type MetricField = BaseCustomField & {
|
|
62
|
+
metric: Metric;
|
|
63
|
+
};
|
|
64
|
+
export declare type SimpleMathField = BaseCustomField & SimpleMath & {
|
|
65
|
+
dataType: 'number';
|
|
66
|
+
};
|
|
67
|
+
export declare type RulesField = BaseField & {
|
|
68
|
+
rules: Rules[];
|
|
69
|
+
dataType: 'string';
|
|
70
|
+
};
|
|
71
|
+
export declare type CustomBuildMetricField = BaseField & {
|
|
72
|
+
metricAttributes: Metric;
|
|
73
|
+
dataType: 'number';
|
|
74
|
+
};
|
|
75
|
+
export declare type CustomField = PercentageField | SimpleMathField | AggregateMathField | RulesField | RoundedNumberField | DateCalculationField | ConditionalField | MetricField | CustomBuildMetricField;
|
|
72
76
|
export declare type MathOperator = '*' | '-' | '/' | '+';
|
|
73
|
-
export declare type CustomFieldCategory = 'percentage' | 'math' | 'rules' | 'roundedNumber' | 'dateCalculation' | 'conditional' | '
|
|
77
|
+
export declare type CustomFieldCategory = 'percentage' | 'math' | 'rules' | 'roundedNumber' | 'dateCalculation' | 'conditional' | 'customBuildMetric';
|
|
74
78
|
export declare enum AcceptedTypes {
|
|
75
79
|
Maths = "maths",
|
|
76
|
-
IfStatement = "ifStatement"
|
|
80
|
+
IfStatement = "ifStatement",
|
|
81
|
+
Aggregates = "aggregates"
|
|
77
82
|
}
|
|
78
|
-
export declare type MaybeOldCustomField = CustomField;
|
|
79
83
|
export {};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { FilterConfig } from '../AdditionalFilter/types';
|
|
2
3
|
import { Component } from '../Component/types';
|
|
3
|
-
import { QueryAttributes } from '../QueryAttributes/types';
|
|
4
4
|
export declare type CustomView = StaticCustomView | SelectableCustomView;
|
|
5
|
-
export declare type DataSetDashboardFilters = {
|
|
6
|
-
[dataSetId: string]: QueryAttributes.Filter[][];
|
|
7
|
-
};
|
|
8
5
|
export declare type CustomViewCallbackParams = {
|
|
9
|
-
dashboardFilters: DataSetDashboardFilters;
|
|
10
6
|
attributes?: Component.CustomViewAttributes;
|
|
7
|
+
filterConfig: FilterConfig;
|
|
11
8
|
};
|
|
12
9
|
export declare type BaseCustomView = {
|
|
13
10
|
id: string;
|