@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
|
@@ -2,6 +2,7 @@ import { Component as ComponentType } from '../Component/types';
|
|
|
2
2
|
import { DataSet } from '../DataSet/types';
|
|
3
3
|
import { CustomField } from '../CustomField/types';
|
|
4
4
|
import { Dashboard, SaveableDashboardDefinition, ImportableDashboard } from './types';
|
|
5
|
+
import { FieldUsage } from '@vizzly/api-client';
|
|
5
6
|
export * from './saveableDashboardDefinitionSchema';
|
|
6
7
|
export * from './fromRaw';
|
|
7
8
|
export declare const indexOfDataSet: (dashboard: Dashboard, dataSetId: string) => number;
|
|
@@ -35,3 +36,4 @@ export declare const VIZZLY_EDITOR_ID = "vizzly_editor";
|
|
|
35
36
|
export declare function updateWithProgrammaticDashboard(allDashboards: Dashboard[], programmaticDashboards: Dashboard[]): Dashboard[];
|
|
36
37
|
export declare const addUniqueLibraryComponents: (programmaticLibrary: ComponentType[], dashboardLibrary: ComponentType[]) => ComponentType[];
|
|
37
38
|
export declare const checkAndReturnProgrammaticDashboardId: (dashboards: Dashboard[]) => string | undefined;
|
|
39
|
+
export declare const getFieldUsage: (dashboardDefinition: SaveableDashboardDefinition, dataSets: DataSet[]) => FieldUsage;
|
|
@@ -9,7 +9,7 @@ export declare type Section<Type> = ConstSection<Type> & {
|
|
|
9
9
|
declare type MetricOptions = {
|
|
10
10
|
allowsMultiple?: boolean;
|
|
11
11
|
maximumMetricsAllowed?: number;
|
|
12
|
-
propKey?: 'xMeasure' | 'yMeasure' | 'measure' | 'barMeasure' | 'lineMeasure';
|
|
12
|
+
propKey?: 'xMeasure' | 'yMeasure' | 'zMeasure' | 'measure' | 'barMeasure' | 'lineMeasure';
|
|
13
13
|
filterFieldOptions?: FieldFilterOptions;
|
|
14
14
|
};
|
|
15
15
|
export declare type FieldCollectorOptions<Attrs> = {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { DataSet } from './types';
|
|
2
2
|
import { CustomField, SimpleMathField } from '../CustomField/types';
|
|
3
3
|
import { DateTimeField, NonDateTimeField } from '../Field/types';
|
|
4
|
-
import { PreAggregatedQuery
|
|
4
|
+
import { PreAggregatedQuery } from '../Query/types';
|
|
5
5
|
import * as Field from '../Field/Field';
|
|
6
|
-
import FieldNotFoundInDataSet from '../errors/FieldNotFoundInDataSet';
|
|
7
6
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
8
7
|
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
9
8
|
import { ComponentType } from '../Component/types';
|
|
@@ -24,13 +23,12 @@ export declare const hasDateTimeFields: (dataSet: DataSet) => boolean;
|
|
|
24
23
|
export declare const getPlaceholder: (dataSet: DataSet, field: string | null) => string;
|
|
25
24
|
export declare const takeFieldsForDimension: (dataSet: DataSet) => DataSet.Field[];
|
|
26
25
|
export declare const takeFieldsForMeasure: (dataSet: DataSet, componentType: ComponentType) => DataSet.Field[];
|
|
27
|
-
export declare const validateQueries: (dataSet: DataSet, queries: Query[]) => undefined | FieldNotFoundInDataSet;
|
|
28
26
|
/**
|
|
29
27
|
* Return all custom fields for a data set, and optionally
|
|
30
28
|
* provide the componentType to ensure the custom fields which are returned
|
|
31
29
|
* are also supported by the componentType.
|
|
32
30
|
*/
|
|
33
|
-
export declare const takeCustomFields: (dataSet: DataSet, componentType?: "progress" | "areaChart" | "barChart" | "basicTable" | "comboChart" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "lineChartV2" | "mercatorMap" | "pieChart" | "richText" | "scatterChart" | "singleStat" | undefined) => CustomField[];
|
|
31
|
+
export declare const takeCustomFields: (dataSet: DataSet, componentType?: "progress" | "areaChart" | "areaChartV2" | "barChart" | "barChartV2" | "basicTable" | "bubbleChart" | "bubbleChartV2" | "comboChart" | "comboChartV2" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "lineChartV2" | "mercatorMap" | "pieChart" | "radarChart" | "richText" | "scatterChart" | "singleStat" | "sunburstChart" | "waterfallChart" | undefined) => CustomField[];
|
|
34
32
|
export declare const takeNonCustomFields: (dataSet: DataSet) => Array<NonDateTimeField | DateTimeField | SimpleMathField>;
|
|
35
33
|
export declare const takeNonPercentageCustomFields: (dataSet: DataSet) => Array<NonDateTimeField | DateTimeField | SimpleMathField>;
|
|
36
34
|
export declare const removeCustomFields: (dataSet: DataSet) => DataSet;
|
|
@@ -8,6 +8,8 @@ export declare type FieldFilterOptions = {
|
|
|
8
8
|
removeAggregateMaths?: boolean;
|
|
9
9
|
removeDateCalculations?: boolean;
|
|
10
10
|
removeConditional?: boolean;
|
|
11
|
+
removeCustomBuildMetric?: boolean;
|
|
12
|
+
removeAggregateCustomBuildMetric?: boolean;
|
|
11
13
|
onlyDimensions?: boolean;
|
|
12
14
|
onlyMeasures?: boolean;
|
|
13
15
|
forComponent?: ComponentType;
|
|
@@ -2,7 +2,6 @@ import { TextOverride } from '../../../shared-logic/src/Translations/types';
|
|
|
2
2
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
3
|
import { Result as ResultType } from '../Result/types';
|
|
4
4
|
import { TableRepresentation } from './types';
|
|
5
|
-
export declare const resultToPivotTableRepresentation: (result: ResultType, dimension: QueryAttributes['dimension'], measure: QueryAttributes['measure'], dataSetId: string,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}) => string | null | undefined) | undefined, textOverride?: TextOverride | undefined, hiddenFields?: string[] | undefined) => TableRepresentation;
|
|
5
|
+
export declare const resultToPivotTableRepresentation: (result: ResultType, dimension: QueryAttributes['dimension'], measure: QueryAttributes['measure'], dataSetId: string, textOverride?: TextOverride | undefined, hiddenFields?: string[] | undefined, valueAlias?: {
|
|
6
|
+
[id: string]: string | number;
|
|
7
|
+
} | import("../ValueAlias/types").ValueAliasFunction | undefined) => TableRepresentation;
|
|
@@ -3,3 +3,4 @@ import { DecodingFunctionsToCheck } from '../Field';
|
|
|
3
3
|
export declare const id: (metric: QueryAttributes.Dimension) => string;
|
|
4
4
|
export declare const isPivot: (dimensions: QueryAttributes.Dimension[], pivot: 'x' | 'y') => boolean;
|
|
5
5
|
export declare const findDimension: (dimensions: QueryAttributes.Dimension[], fieldId: string, functionsToCheck: DecodingFunctionsToCheck) => QueryAttributes.Dimension;
|
|
6
|
+
export declare const isDateTime: (dimension: QueryAttributes.Dimension) => boolean;
|
|
@@ -20,3 +20,4 @@ export declare const listComponentTypesUsed: (display: Display) => ComponentType
|
|
|
20
20
|
export declare const isComponentEmpty: (component: Component | EmptyCell | HeaderComponent) => component is EmptyCell;
|
|
21
21
|
export declare function isDisplayComponentsEmpty(display: Display): boolean;
|
|
22
22
|
export declare const moveDisplayToNewIndex: (display: DisplayRow[], movingIndex: number, destinationIndex: number) => DisplayRow[];
|
|
23
|
+
export declare const countNonHeaderRows: (display: Display) => number;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
1
2
|
import { DataSet } from '../DataSet/types';
|
|
3
|
+
import { Datum, ParsedDatumKey } from '../DatumKey';
|
|
4
|
+
import * as Dimension from '../Dimension';
|
|
2
5
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
6
|
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
4
|
-
import { Component } from '../Component/types';
|
|
5
|
-
import { Datum, ParsedDatumKey } from '../DatumKey';
|
|
6
7
|
export declare const updateTimeDimension: (dataSet: DataSet, option: QueryAttributes.TimeDimension & {
|
|
7
8
|
function?: string;
|
|
8
9
|
}) => QueryAttributes.TimeDimension | null;
|
|
9
10
|
export declare type DrilldownField = Component.DrilldownOptions & {
|
|
10
|
-
value: string;
|
|
11
|
+
value: string | number | Date;
|
|
11
12
|
};
|
|
12
13
|
export declare type SelectedDrilldown = {
|
|
13
14
|
newField: Component.DrilldownOptions;
|
|
14
15
|
existingField?: DrilldownField;
|
|
15
16
|
};
|
|
16
|
-
export declare const newDimensions: (dataSet: DataSet, existingField: DrilldownField | undefined, option: QueryAttributes.Dimension, dimension: QueryAttributes.Dimension[]) => QueryAttributes.Dimension[];
|
|
17
|
-
export declare const updateFilter: (existingFilters: QueryAttributes.Filter[][], data: any[][], existingField: DrilldownField | undefined, timeDimension: QueryAttributes.TimeDimension | null, dimension?: QueryAttributes.Dimension[] | undefined) => QueryAttributes.Filter[][];
|
|
17
|
+
export declare const newDimensions: (dataSet: DataSet, existingField: DrilldownField | undefined, option: QueryAttributes.Dimension, dimension: QueryAttributes.Dimension[], hasDateTimeInDimension?: boolean | undefined) => QueryAttributes.Dimension[];
|
|
18
|
+
export declare const updateFilter: (existingFilters: QueryAttributes.Filter[][], data: any[][], queryEngineConfig: QueryEngineConfig, existingField: DrilldownField | undefined, timeDimension: QueryAttributes.TimeDimension | null, dimension?: QueryAttributes.Dimension[] | undefined) => QueryAttributes.Filter[][];
|
|
18
19
|
export declare const drilldownDepthReached: (drilldownSelections: SelectedDrilldown[]) => boolean;
|
|
19
20
|
export declare const updatedOrder: (existingOrder: QueryAttributes.Order[], dataSet: DataSet, existingField: DrilldownField | undefined, option: QueryAttributes.Dimension | QueryAttributes.TimeDimension) => QueryAttributes.Order[];
|
|
20
21
|
export declare const validDrilldownProperties: (dataSet: DataSet, drilldown: SelectedDrilldown) => boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare type FeatureToggles = {
|
|
2
2
|
showGlobalFilters: boolean;
|
|
3
|
+
hideToolbar: boolean;
|
|
3
4
|
showResetButton: boolean;
|
|
4
5
|
parameters: boolean;
|
|
5
6
|
canManageGlobalFilters: boolean;
|
|
@@ -20,14 +21,11 @@ export declare type FeatureToggles = {
|
|
|
20
21
|
allowDateCalculationsCustomField: boolean;
|
|
21
22
|
allowPercentagesCustomField: boolean;
|
|
22
23
|
allowRulesCustomField: boolean;
|
|
23
|
-
allowCalculatedField: boolean;
|
|
24
24
|
allowConditionalCustomField: boolean;
|
|
25
|
+
allowCustomBuildField: boolean;
|
|
25
26
|
/** Show/Hide the Date and Time Filter
|
|
26
27
|
* @default false */
|
|
27
28
|
showDateAndTimeFilter: boolean;
|
|
28
|
-
/** Show/Hide the Simple Multi Select Filter
|
|
29
|
-
* @default false */
|
|
30
|
-
simpleMultiSelectFilter: boolean;
|
|
31
29
|
/** Show/Hide the Date Filter
|
|
32
30
|
* @default true */
|
|
33
31
|
showDateFilter: boolean;
|
|
@@ -97,16 +97,6 @@ export declare const isArrayDataType: (field: {
|
|
|
97
97
|
}) => boolean;
|
|
98
98
|
export declare const supportedTransformationFunctions: (keys?: (string | number)[] | undefined) => SupportedTransformationFunctions;
|
|
99
99
|
export declare const supportedAggregatesFunction: (queryEngineConfig: QueryEngineConfig, dataType: DataType, supportedAggregateOptions?: string[] | undefined) => SupportedAggregateOption[];
|
|
100
|
-
declare
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}) => string | null | undefined;
|
|
104
|
-
export declare const nullValue: (dataSetId: string, dimensions: QueryAttributes.Dimension[] | null, timeDimension: QueryAttributes.TimeDimension | null, nullValueAlias?: NullValueAlias | undefined, textOverride?: TextOverride | undefined, textOverrideKey?: string | undefined) => string | undefined;
|
|
105
|
-
export declare const nullValueWithFieldId: ({ dataSetId, fieldId, nullValueAlias, textOverride, textOverrideKey, }: {
|
|
106
|
-
dataSetId: string;
|
|
107
|
-
fieldId: string;
|
|
108
|
-
nullValueAlias?: NullValueAlias | undefined;
|
|
109
|
-
textOverride?: TextOverride | undefined;
|
|
110
|
-
textOverrideKey?: string | undefined;
|
|
111
|
-
}) => string | undefined;
|
|
112
|
-
export {};
|
|
100
|
+
export declare const checkForNullValue: (dataSetId: string, dimensions: QueryAttributes.Dimension[] | null, timeDimension: QueryAttributes.TimeDimension | null, textOverride?: TextOverride | undefined, valueAlias?: {
|
|
101
|
+
[id: string]: string | number;
|
|
102
|
+
} | import("../ValueAlias/types").ValueAliasFunction | undefined, textOverrideKey?: string | undefined) => string | undefined;
|
|
@@ -26,6 +26,7 @@ export declare type AxisLabelsSection = Section<'axisLabels'> & {
|
|
|
26
26
|
export declare type LabelsSection = Section<'statsLabels'> & LabelSection<'statsLabels'>;
|
|
27
27
|
export declare type PrefixSection = Section<'prefixes'>;
|
|
28
28
|
export declare type MapColorsSection = Section<'mapColors'>;
|
|
29
|
+
export declare type WaterfallColorsSection = Section<'waterfallColors'>;
|
|
29
30
|
export declare type HeadlineSection = Section<'headline'>;
|
|
30
31
|
export declare type RichTextFormatSection = Section<'richText'>;
|
|
31
32
|
export interface ConditionalFormattingSection extends Section<'conditionalFormatting'> {
|
|
@@ -41,5 +42,5 @@ export interface ProgressTypeSection<T> extends Omit<Section<T>, 'type'> {
|
|
|
41
42
|
progressType?: Omit<Section<T>, 'type'>;
|
|
42
43
|
}
|
|
43
44
|
export declare type ProgressTypesSection = Section<'progressType'> & ProgressTypeSection<'progressType'>;
|
|
44
|
-
export declare type FormatPanelSection = HeadingSection | FormatSection | ChartStylesSection | PrefixSection | AxisLabelsSection | LabelsSection | MapColorsSection | ConditionalFormattingSection | GoalLineSection | ProgressTypesSection | HeadlineSection | RichTextFormatSection | Section<'trends'>;
|
|
45
|
+
export declare type FormatPanelSection = HeadingSection | FormatSection | ChartStylesSection | PrefixSection | AxisLabelsSection | LabelsSection | MapColorsSection | WaterfallColorsSection | ConditionalFormattingSection | GoalLineSection | ProgressTypesSection | HeadlineSection | RichTextFormatSection | Section<'trends'>;
|
|
45
46
|
export declare type FormatPanelConfig = Array<FormatPanelSection>;
|
|
@@ -2,7 +2,6 @@ import { DataSet as DataSetType } from '../DataSet/types';
|
|
|
2
2
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
3
|
import { SupportedAggregates } from '../Aggregate';
|
|
4
4
|
import { Component, FormatType } from '../Component/types';
|
|
5
|
-
export declare function measureIsSuitableFunc(dataSet: DataSetType, item: QueryAttributes.Measure, supportedAggregates: SupportedAggregates, includes?: Component.HeadlineFunction): boolean;
|
|
6
5
|
export declare function defineMeasuresForSingleStat(measure: QueryAttributes.Measure[], supportedAggregates: SupportedAggregates, dataSet: DataSetType, func?: Component.HeadlineFunction): QueryAttributes.Measure[];
|
|
7
6
|
export declare function buildSingleStatProperties(measure: QueryAttributes.Measure[], value?: string | FormatType): {
|
|
8
7
|
[fieldIdAndAggregate: string]: string;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { LineChartRepresentation } from './types';
|
|
3
3
|
import { ValueAlias } from '../ValueAlias/types';
|
|
4
4
|
import { Result } from '../Result/types';
|
|
5
5
|
import { PivotConfig } from '../PivotConfig/types';
|
|
6
6
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
7
7
|
import { Component, FormatType } from '../Component/types';
|
|
8
8
|
import { seriesLabelFormatter } from '../Result/formattedResultToSeries';
|
|
9
|
+
import { DateTimeFormatter, NumberFormatter } from '../ChartsV2/types';
|
|
9
10
|
interface buildLineChartRepresentationArgs {
|
|
10
11
|
axisTitles?: Component.AxisTitles;
|
|
11
|
-
colors
|
|
12
|
+
colors: CSSProperties['color'][];
|
|
12
13
|
conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
|
|
13
14
|
dateTimeFormatOptions: {
|
|
14
15
|
[id: string]: DateTimeFormatter;
|
|
@@ -1,78 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
export declare type Operator = string;
|
|
4
|
-
export declare type ConditionalFormattingRule = {
|
|
5
|
-
operator: Operator;
|
|
6
|
-
value: any;
|
|
7
|
-
color: string;
|
|
8
|
-
yKey: KeyId;
|
|
9
|
-
};
|
|
10
|
-
export declare type Axis<SupportedVizzlyDataTypes, AxisKeys> = {
|
|
11
|
-
ticks: Tick<SupportedVizzlyDataTypes>[];
|
|
12
|
-
scale: {
|
|
13
|
-
dataType: DataType;
|
|
14
|
-
key: KeyId | null;
|
|
15
|
-
ordering: 'asc' | 'desc' | null;
|
|
16
|
-
min: SupportedVizzlyDataTypes | null;
|
|
17
|
-
max: SupportedVizzlyDataTypes | null;
|
|
18
|
-
};
|
|
19
|
-
postfix: string;
|
|
20
|
-
prefix: string;
|
|
21
|
-
title: string | null;
|
|
22
|
-
} & AxisKeys;
|
|
23
|
-
export declare type LegendItemStyleLine = {
|
|
24
|
-
type: 'line';
|
|
25
|
-
strokeDasharray: string | number | null;
|
|
26
|
-
strokeWidth: number;
|
|
27
|
-
};
|
|
28
|
-
export declare type LegendItem = {
|
|
29
|
-
yKey: KeyId;
|
|
30
|
-
color: string;
|
|
31
|
-
style: LegendItemStyleLine;
|
|
32
|
-
};
|
|
33
|
-
export declare type Key = {
|
|
34
|
-
key: KeyId;
|
|
35
|
-
keyFormatted: string;
|
|
36
|
-
dataType: DataType;
|
|
37
|
-
};
|
|
38
|
-
export declare type Tick<DataType> = {
|
|
39
|
-
value: DataType;
|
|
40
|
-
formattedValue: string | null;
|
|
41
|
-
scaleValue: DataType | null;
|
|
42
|
-
};
|
|
43
|
-
export declare type LineChartRepresentation = {
|
|
44
|
-
keys: {
|
|
45
|
-
[key: KeyId]: Key;
|
|
46
|
-
};
|
|
47
|
-
x: Axis<Date | string | number, {
|
|
48
|
-
key: KeyId;
|
|
49
|
-
}>;
|
|
50
|
-
y: Axis<number, {
|
|
51
|
-
keys: KeyId[];
|
|
52
|
-
}>;
|
|
1
|
+
import { ShapeDefinition, ConditionalFormattingRule, GoalLine, BaseChartRepresentation } from '../ChartsV2/types';
|
|
2
|
+
export interface LineChartRepresentation extends BaseChartRepresentation {
|
|
53
3
|
conditionalFormattingRules: ConditionalFormattingRule[];
|
|
54
4
|
goalLines: GoalLine[];
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
export declare type DataItem = {
|
|
61
|
-
value: number | string | null;
|
|
62
|
-
formattedValue: string | null;
|
|
63
|
-
};
|
|
64
|
-
export declare type GoalLine = {
|
|
65
|
-
value: number;
|
|
66
|
-
formattedValue: string | null;
|
|
67
|
-
color: string;
|
|
68
|
-
strokeStyle?: 'dashed' | 'solid';
|
|
5
|
+
lines: ShapeDefinition<LineStyles>[];
|
|
6
|
+
}
|
|
7
|
+
export declare type LineStyles = {
|
|
8
|
+
type: 'line';
|
|
9
|
+
strokeDasharray: string | number | null;
|
|
69
10
|
strokeWidth: number;
|
|
70
11
|
};
|
|
71
|
-
export declare type DateTimeFormatter = {
|
|
72
|
-
formatter: (date: Date) => string;
|
|
73
|
-
description: string;
|
|
74
|
-
};
|
|
75
|
-
export declare type NumberFormatter = {
|
|
76
|
-
formatter: (number: number | undefined | null, noValueReplacement?: string) => string;
|
|
77
|
-
description: string;
|
|
78
|
-
};
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { PreAggregatedQuery, PreparedQuery, Query
|
|
1
|
+
import { PreAggregatedQuery, PreparedQuery, Query } from './types';
|
|
2
2
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
3
|
import { QueryEngineConfig, SupportedFeature as SupportedFeatureType } from '../QueryEngineConfig/types';
|
|
4
4
|
import { DataSet } from '../DataSet/types';
|
|
5
5
|
import { Result } from '../Result/types';
|
|
6
|
-
import { AdditionalFilter, TimeRangeOptions } from '../AdditionalFilter/types';
|
|
7
|
-
import { DataSetDashboardFilters } from '../CustomView/types';
|
|
8
|
-
export { validate } from './validate';
|
|
9
|
-
export declare const isValidMathsOp: (value: string) => value is import("../CustomField/types").MathOperator;
|
|
10
|
-
export declare const containsSubquery: (measures: Query['measure']) => boolean;
|
|
11
|
-
export declare const containsAggregates: (query: Query | SubQuery) => boolean;
|
|
12
|
-
export declare const hasGroups: (query: Query) => boolean;
|
|
13
|
-
export declare const setQueryLimit: (query: Query, limit: number) => Query;
|
|
14
|
-
export declare const isRunnable: (query: Query | null, queryEngineConfig: QueryEngineConfig) => boolean;
|
|
15
|
-
export declare const takeRunnableQueries: (queries: (Query | null)[], queryEngineConfig: QueryEngineConfig) => Query<string, string, string>[];
|
|
16
6
|
export declare const build: (dataSet: DataSet<DataSet.Field>, measureAttr: QueryAttributes.Measure[], orderAttr: QueryAttributes.Order[], dimensionAttr: QueryAttributes.Dimension[], timeDimensionAttr: QueryAttributes.TimeDimension | null, limitAttr: number | undefined, offsetAttr: number | undefined, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../results-driver/src/types").Params, prebuiltFilters?: QueryAttributes.Filter[][] | undefined) => {
|
|
17
7
|
query: Query<string, string, string>;
|
|
18
8
|
measureDescription: import("./types").MeasureDescription[];
|
|
@@ -20,7 +10,6 @@ export declare const build: (dataSet: DataSet<DataSet.Field>, measureAttr: Query
|
|
|
20
10
|
export declare const hasDimensions: (query: {
|
|
21
11
|
group: Query['group'];
|
|
22
12
|
}) => boolean;
|
|
23
|
-
export declare const getMeasures: (query: Query) => Query['measure'];
|
|
24
13
|
export declare const buildPreAggregatedPreparedQuery: (query: PreAggregatedQuery, dataSet: DataSet) => {
|
|
25
14
|
query: PreAggregatedQuery;
|
|
26
15
|
resultFields: Result.Field[];
|
|
@@ -30,7 +19,4 @@ export declare const buildUniqueArrayValuesPreparedQuery: (dataSetId: string, da
|
|
|
30
19
|
resultFields: Result.Field[];
|
|
31
20
|
};
|
|
32
21
|
export declare const buildFilterQuery: (dataSet: DataSet, fieldId: string, optionsFilters?: QueryAttributes.Filter[] | undefined, optionsOrders?: QueryAttributes.Order[] | undefined) => QueryAttributes;
|
|
33
|
-
export declare const requiredFields: (query: Query) => Array<string>;
|
|
34
22
|
export declare const supportsFeature: (queryEngineConfig: QueryEngineConfig, feature: SupportedFeatureType) => boolean;
|
|
35
|
-
export declare const toDataSetDashboardFilters: (dataSets: DataSet[], additionalFilters: AdditionalFilter[], dateFilterOptions: TimeRangeOptions) => DataSetDashboardFilters;
|
|
36
|
-
export declare function addGlobalFiltersToQueries(queries: QueryAttributes[], dashboardFilters?: DataSetDashboardFilters): QueryAttributes[];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { FormatType } from '../Component/types';
|
|
3
|
+
import { Result } from '../Result/types';
|
|
4
|
+
import { DateTimeFormatter, NumberFormatter } from '../ChartsV2/types';
|
|
5
|
+
import { PivotConfig } from '../PivotConfig/types';
|
|
6
|
+
import { ValueAlias } from '../ValueAlias/types';
|
|
7
|
+
import { RadarChartRepresentation } from './types';
|
|
8
|
+
import { seriesLabelFormatter } from '../Result/formattedResultToSeries';
|
|
9
|
+
interface buildRadarChartRepresentationArgs {
|
|
10
|
+
result: Result;
|
|
11
|
+
xAxisFormat: FormatType;
|
|
12
|
+
xAxisPostfix: string;
|
|
13
|
+
xAxisPrefix: string;
|
|
14
|
+
yAxisFormat: FormatType;
|
|
15
|
+
yAxisPostfix: string;
|
|
16
|
+
yAxisPrefix: string;
|
|
17
|
+
colors: CSSProperties['color'][];
|
|
18
|
+
dateTimeFormatOptions: {
|
|
19
|
+
[id: string]: DateTimeFormatter;
|
|
20
|
+
};
|
|
21
|
+
defaultFormats: () => {
|
|
22
|
+
[functionId: string]: string;
|
|
23
|
+
};
|
|
24
|
+
nullValue?: string;
|
|
25
|
+
numberFormatOptions: {
|
|
26
|
+
[id: string]: NumberFormatter;
|
|
27
|
+
};
|
|
28
|
+
pivotConfig: PivotConfig;
|
|
29
|
+
valueAlias?: ValueAlias;
|
|
30
|
+
approxYAxisLabelCount: number;
|
|
31
|
+
seriesLabelFormatter: seriesLabelFormatter;
|
|
32
|
+
}
|
|
33
|
+
export declare const buildRadarChartRepresentation: ({ result, xAxisFormat, xAxisPostfix, xAxisPrefix, yAxisFormat, yAxisPostfix, yAxisPrefix, colors, dateTimeFormatOptions, defaultFormats, nullValue, numberFormatOptions, pivotConfig, valueAlias, approxYAxisLabelCount, seriesLabelFormatter, }: buildRadarChartRepresentationArgs) => RadarChartRepresentation;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataType } from '../Field/types';
|
|
2
|
+
import { FormattedResult } from '../Result/types';
|
|
3
|
+
export declare const getMinAndMax: ({ data, keys, dataType, }: {
|
|
4
|
+
data: FormattedResult['contentMapped'];
|
|
5
|
+
keys: Array<string>;
|
|
6
|
+
dataType: DataType;
|
|
7
|
+
}) => {
|
|
8
|
+
max: null;
|
|
9
|
+
min: null;
|
|
10
|
+
} | {
|
|
11
|
+
max: number;
|
|
12
|
+
min: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DataType } from '../Field/types';
|
|
2
|
+
import { FormattedResult } from '../Result/types';
|
|
3
|
+
import { KeyId, Tick } from '../ChartsV2/types';
|
|
4
|
+
declare type FormattingFunction = (value: any, nullValueAlias?: string) => string;
|
|
5
|
+
interface GetScaleAndTicksArgs {
|
|
6
|
+
data: FormattedResult['contentMapped'];
|
|
7
|
+
xKey: string | null;
|
|
8
|
+
xScaleDataType: DataType;
|
|
9
|
+
yKeys: string[];
|
|
10
|
+
nullValue: string | undefined;
|
|
11
|
+
tickCountYAxis: number;
|
|
12
|
+
formattingFunctionX: FormattingFunction;
|
|
13
|
+
formattingFunctionY: FormattingFunction;
|
|
14
|
+
}
|
|
15
|
+
interface GetScaleAndTicksReturn {
|
|
16
|
+
x: {
|
|
17
|
+
ticks: Array<Tick<Date | string | number>>;
|
|
18
|
+
scale: {
|
|
19
|
+
max: number | Date | null;
|
|
20
|
+
min: number | Date | null;
|
|
21
|
+
key: KeyId | null;
|
|
22
|
+
dataType: DataType;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
y: {
|
|
26
|
+
ticks: Array<Tick<number>>;
|
|
27
|
+
scale: {
|
|
28
|
+
max: number;
|
|
29
|
+
min: number;
|
|
30
|
+
key: null;
|
|
31
|
+
ordering: 'asc' | 'desc';
|
|
32
|
+
dataType: 'number';
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export declare const getScaleAndTicks: ({ data, xKey, yKeys, xScaleDataType, nullValue, tickCountYAxis, formattingFunctionX, formattingFunctionY, }: GetScaleAndTicksArgs) => GetScaleAndTicksReturn;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { ComponentInterfaceConfig } from '../ComponentInterface/types';
|
|
3
|
+
declare const _default: (config: ComponentInterfaceConfig) => (radarChart: Component.RadarChartAttributes, partial: Partial<Component.RadarChartAttributes>) => Component.RadarChartAttributes;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BaseChartRepresentation, ShapeDefinition, Tick } from '../ChartsV2/types';
|
|
2
|
+
import { DataType } from '../Field/types';
|
|
3
|
+
export declare type KeyId = string;
|
|
4
|
+
export declare type Operator = string;
|
|
5
|
+
export declare type Axis<SupportedVizzlyDataTypes, AxisKeys> = {
|
|
6
|
+
ticks: Tick<SupportedVizzlyDataTypes>[];
|
|
7
|
+
scale: {
|
|
8
|
+
dataType: DataType;
|
|
9
|
+
key: KeyId | null;
|
|
10
|
+
ordering: 'asc' | 'desc' | null;
|
|
11
|
+
min: SupportedVizzlyDataTypes | null;
|
|
12
|
+
max: SupportedVizzlyDataTypes | null;
|
|
13
|
+
};
|
|
14
|
+
postfix: string;
|
|
15
|
+
prefix: string;
|
|
16
|
+
title: string | null;
|
|
17
|
+
} & AxisKeys;
|
|
18
|
+
export declare type LinesItemStyleLine = {
|
|
19
|
+
type: 'line';
|
|
20
|
+
strokeDasharray: string | number | null;
|
|
21
|
+
strokeWidth: number;
|
|
22
|
+
};
|
|
23
|
+
export declare type Key = {
|
|
24
|
+
key: KeyId;
|
|
25
|
+
keyFormatted: string;
|
|
26
|
+
dataType: DataType;
|
|
27
|
+
};
|
|
28
|
+
export interface RadarChartRepresentation extends BaseChartRepresentation {
|
|
29
|
+
lines: ShapeDefinition<LinesItemStyleLine>[];
|
|
30
|
+
}
|
|
31
|
+
export declare type DataItem = {
|
|
32
|
+
value: number | string | null;
|
|
33
|
+
formattedValue: string | null;
|
|
34
|
+
};
|
|
35
|
+
export declare type Data = {
|
|
36
|
+
[keyId: string]: DataItem;
|
|
37
|
+
};
|
|
38
|
+
export declare type RadarChartOptions = {
|
|
39
|
+
showRoundedTotal: boolean;
|
|
40
|
+
showLegend: boolean;
|
|
41
|
+
removeStroke: boolean;
|
|
42
|
+
axis: {
|
|
43
|
+
showYAxisLabels: boolean;
|
|
44
|
+
showXAxisLabels: boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { Query } from '../Query/types';
|
|
2
1
|
import * as Measure from '../Measure';
|
|
3
2
|
import { DataType } from '../Field/types';
|
|
4
3
|
import { Result } from './types';
|
|
5
4
|
import { SupportedAggregates } from '../Aggregate';
|
|
6
|
-
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
7
5
|
import { PivotConfig } from '../PivotConfig/types';
|
|
8
6
|
import { QueryAttributes as QueryAttributesType } from '../QueryAttributes/types';
|
|
9
7
|
export declare type RawResult = {
|
|
@@ -38,6 +36,5 @@ export declare const getLabel: (result: Result | null, fieldId: string, supporte
|
|
|
38
36
|
export declare const isLoading: (result: Result | null | undefined) => result is undefined;
|
|
39
37
|
export declare const hasFailed: (result: Result | null | undefined) => result is null;
|
|
40
38
|
export declare const isEmpty: (result: Result | null | undefined) => boolean;
|
|
41
|
-
export declare const validate: (result: Result, query: Query, params: QueryEngineConfig) => void;
|
|
42
39
|
export declare const to100PercentResultSet: (resultSet: Array<TimeSeriesResultSet>) => Array<TimeSeriesResultSet>;
|
|
43
40
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ValueAliasFunctionV2 } from '../ValueAlias/types';
|
|
2
2
|
import { FormattedResult, Result } from './types';
|
|
3
|
-
import { DateTimeFormatter, NumberFormatter } from '../
|
|
4
|
-
export declare type
|
|
3
|
+
import { DateTimeFormatter, NumberFormatter } from '../ChartsV2/types';
|
|
4
|
+
export declare type FormatResultArgs = {
|
|
5
5
|
defaultFormats: () => {
|
|
6
6
|
[functionId: string]: string;
|
|
7
7
|
};
|
|
@@ -33,4 +33,4 @@ export declare type formatResultArgs = {
|
|
|
33
33
|
* When provided with a result, and formatting parameters, it returns a
|
|
34
34
|
* populated result including the formatted value to show.
|
|
35
35
|
*/
|
|
36
|
-
export declare const formatResult: (result: Result, params:
|
|
36
|
+
export declare const formatResult: (result: Result, params: FormatResultArgs) => FormattedResult;
|
|
@@ -7,9 +7,10 @@ declare type Key = {
|
|
|
7
7
|
dataType: DataType;
|
|
8
8
|
outputDataType: DataType;
|
|
9
9
|
};
|
|
10
|
-
declare type
|
|
10
|
+
declare type FormattedResultToSeriesReturn = {
|
|
11
11
|
yKeys: string[];
|
|
12
12
|
xKeys: string[];
|
|
13
|
+
zKey: string;
|
|
13
14
|
keys: {
|
|
14
15
|
[keyId: string]: Key;
|
|
15
16
|
};
|
|
@@ -20,5 +21,5 @@ export declare type seriesLabelFormatter = (params: {
|
|
|
20
21
|
yPivotFields: FormattedResult['fields'];
|
|
21
22
|
row: FormattedResult['contentMapped'][number];
|
|
22
23
|
}) => string;
|
|
23
|
-
export declare const formattedResultToSeries: (formattedResult: FormattedResult, pivotConfig: PivotConfig, seriesLabelFormatter: seriesLabelFormatter) =>
|
|
24
|
+
export declare const formattedResultToSeries: (formattedResult: FormattedResult, pivotConfig: PivotConfig, seriesLabelFormatter: seriesLabelFormatter, zFieldId?: string | undefined) => FormattedResultToSeriesReturn;
|
|
24
25
|
export {};
|
|
@@ -19,16 +19,14 @@ export declare type Result = {
|
|
|
19
19
|
* Result, but with extra information baked into the
|
|
20
20
|
* content to determine how it should be displayed.
|
|
21
21
|
*/
|
|
22
|
+
export declare type FormattedChartData = {
|
|
23
|
+
formattedValue: string;
|
|
24
|
+
value: any;
|
|
25
|
+
};
|
|
22
26
|
export declare type FormattedResult = {
|
|
23
|
-
content:
|
|
24
|
-
value: any;
|
|
25
|
-
formattedValue: string;
|
|
26
|
-
}[][];
|
|
27
|
+
content: FormattedChartData[][];
|
|
27
28
|
contentMapped: Array<{
|
|
28
|
-
[key: string]:
|
|
29
|
-
value: any;
|
|
30
|
-
formattedValue: string;
|
|
31
|
-
};
|
|
29
|
+
[key: string]: FormattedChartData;
|
|
32
30
|
}>;
|
|
33
31
|
fields: Result.Field[];
|
|
34
32
|
hasMoreResults?: boolean | null;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { LoadComponentInterface } from '../ComponentInterface/types';
|
|
3
|
+
declare const SunburstChart: LoadComponentInterface<Component.SunburstChartAttributes, Component.SunburstChartAttributes>;
|
|
4
|
+
export default SunburstChart;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export declare const build: (value: string | number, valueAlias?: {
|
|
1
|
+
export declare const build: (value: string | number | null, valueAlias?: {
|
|
2
2
|
[id: string]: string | number;
|
|
3
3
|
} | import("./types").ValueAliasFunction | undefined, options?: {
|
|
4
4
|
fieldId?: string | null | undefined;
|
|
5
5
|
filter?: import("../AdditionalFilter/types").NumericFilter | import("../AdditionalFilter/types").SingleSelectFilter | import("../AdditionalFilter/types").DateFilter | import("../AdditionalFilter/types").DateAndTimeFilter | import("../AdditionalFilter/types").DateTimeFilter | import("../AdditionalFilter/types").MultiSelectFilter | import("../AdditionalFilter/types").AdvancedFilter | undefined;
|
|
6
|
-
|
|
6
|
+
dataSetId?: string | undefined;
|
|
7
|
+
} | undefined) => string | number | null | undefined;
|