@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
|
@@ -1,46 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as Types from '../../../../shared-logic/src/CustomField/CustomMetric/types';
|
|
3
1
|
import { AcceptedTypes } from '../../../../shared-logic/src/CustomField/types';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
title: string;
|
|
11
|
-
id: string;
|
|
12
|
-
})[];
|
|
13
|
-
declare type ItemSelection = {
|
|
14
|
-
[key: string]: (Types.OperatorType | Types.PropertyType)[];
|
|
15
|
-
};
|
|
16
|
-
export declare const pickAvailableItems: (selection: ItemSelection) => ({
|
|
17
|
-
things: any;
|
|
18
|
-
title: string;
|
|
19
|
-
id: string;
|
|
20
|
-
} | {
|
|
21
|
-
things: any;
|
|
22
|
-
title: string;
|
|
23
|
-
id: string;
|
|
24
|
-
})[];
|
|
25
|
-
export declare const availableItems: () => ({
|
|
26
|
-
title: string;
|
|
27
|
-
id: string;
|
|
28
|
-
things: {
|
|
29
|
-
id: Types.OperatorType;
|
|
30
|
-
type: Types.PropertyType;
|
|
31
|
-
title: string;
|
|
32
|
-
icon: JSX.Element;
|
|
33
|
-
subtext: string;
|
|
34
|
-
}[];
|
|
35
|
-
} | {
|
|
36
|
-
title: string;
|
|
37
|
-
id: string;
|
|
38
|
-
things: {
|
|
39
|
-
id: Types.PropertyType;
|
|
40
|
-
type: Types.PropertyType;
|
|
41
|
-
title: string;
|
|
42
|
-
icon: JSX.Element;
|
|
43
|
-
subtext: string;
|
|
44
|
-
}[];
|
|
45
|
-
})[];
|
|
46
|
-
export {};
|
|
2
|
+
import { DataSet } from '../../../../shared-logic/src/DataSet/types';
|
|
3
|
+
export declare const getInitialUsableItems: (supportedTypes: Array<AcceptedTypes>, dataSet: DataSet) => (import("../ItemPicker/ItemPicker").PickerItem | undefined)[];
|
|
4
|
+
export declare const getUsableMathItems: (supportedTypes: Array<AcceptedTypes>) => import("../ItemPicker/ItemPicker").PickerItem | undefined;
|
|
5
|
+
export declare const getUsableAggregateItems: (supportedTypes: Array<AcceptedTypes>, dataSet: DataSet) => import("../ItemPicker/ItemPicker").PickerItem | undefined;
|
|
6
|
+
export declare const getUsableFieldItems: (dataSet: DataSet) => import("../ItemPicker/ItemPicker").PickerItem;
|
|
7
|
+
export declare const getUsableLogicItems: (supportedTypes: Array<AcceptedTypes>) => import("../ItemPicker/ItemPicker").PickerItem | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
2
2
|
import { Result as ResultType } from '../../../../shared-logic/src/Result/types';
|
|
3
|
+
import * as ConditionalFormatting from '../../../../shared-logic/src/ConditionalFormatting/utils';
|
|
3
4
|
export declare type ConditionalFormattingBoundary = Component.ConditionalFormatting.Rule & {
|
|
4
5
|
boundaries?: number[];
|
|
5
6
|
};
|
|
@@ -6,8 +6,9 @@ import { Component } from '../../../../shared-logic/src/Component/types';
|
|
|
6
6
|
import { TextOverride } from '../../../../shared-logic/src/Translations/types';
|
|
7
7
|
import { DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
|
|
8
8
|
import { DataTableViewProps } from './DataTableView';
|
|
9
|
+
import { ValueAlias } from '../../../../shared-logic/src/ValueAlias/types';
|
|
9
10
|
export * from './headerFormatting';
|
|
10
|
-
export declare const buildTableRepresentation: ({ type, result, exportNames, prefixes, dateTimeFormat, dateTimeFormatOptions, numberFormat, numberFormatOptions, supportedAggregates, supportedTimeTruncFunctions, labelFormat, nullReplacement, measure, xMeasure, yMeasure, dimension, viewId, dataSetId,
|
|
11
|
+
export declare const buildTableRepresentation: ({ type, result, exportNames, prefixes, dateTimeFormat, dateTimeFormatOptions, numberFormat, numberFormatOptions, supportedAggregates, supportedTimeTruncFunctions, labelFormat, nullReplacement, measure, xMeasure, yMeasure, dimension, viewId, dataSetId, textOverride, hiddenFields, valueAlias, }: {
|
|
11
12
|
type: string;
|
|
12
13
|
result: ResultType | null | undefined;
|
|
13
14
|
exportNames: DataTableViewProps['exportNames'] | undefined;
|
|
@@ -26,12 +27,11 @@ export declare const buildTableRepresentation: ({ type, result, exportNames, pre
|
|
|
26
27
|
dimension?: QueryAttributes.Dimension[] | undefined;
|
|
27
28
|
viewId?: string | undefined;
|
|
28
29
|
dataSetId: string;
|
|
29
|
-
nullValueAlias?: ((params: {
|
|
30
|
-
dataSetId: string;
|
|
31
|
-
fieldId: string;
|
|
32
|
-
}) => string | null | undefined) | undefined;
|
|
33
30
|
textOverride?: TextOverride | undefined;
|
|
34
31
|
hiddenFields?: string[] | undefined;
|
|
32
|
+
valueAlias?: {
|
|
33
|
+
[id: string]: string | number;
|
|
34
|
+
} | import("../../../../shared-logic/src/ValueAlias/types").ValueAliasFunction | undefined;
|
|
35
35
|
}) => TableRepresentation | null;
|
|
36
36
|
export declare const formatTableContent: (fields: Array<{
|
|
37
37
|
id: string;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export declare function buildDefaultColumnWidth(tableWidth: number, numberOfColumns: number): number;
|
|
2
|
-
export declare const useResizingColumn: () =>
|
|
3
|
-
[x: string]: number;
|
|
4
|
-
} | undefined;
|
|
2
|
+
export declare const useResizingColumn: () => void;
|
|
5
3
|
export declare function buildColumnWidth(datumKey: string, sizing: {
|
|
6
4
|
[keyId: string]: {
|
|
7
5
|
width?: number | undefined;
|
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { DragDropManager } from 'dnd-core';
|
|
3
|
-
import { HTML5BackendImpl } from '@vizzly/dnd-backend';
|
|
4
|
-
import { HTML5BackendContext, HTML5BackendOptions } from '@vizzly/dnd-backend';
|
|
5
|
-
export declare const HTML5Backend: (manager: DragDropManager, context: HTML5BackendContext, options: HTML5BackendOptions | undefined) => HTML5BackendImpl;
|
|
6
|
-
export declare const DndProvider: FunctionComponent<{
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
id: string;
|
|
9
|
-
}>;
|
|
10
2
|
export declare const ComponentDndWrapper: FunctionComponent<{
|
|
11
3
|
children: React.ReactNode;
|
|
12
4
|
disable: boolean;
|
|
13
5
|
}>;
|
|
14
|
-
export declare const DndModal: FunctionComponent<{
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
}>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DisplayRow } from '../../../../shared-logic/src/Display/types';
|
|
3
2
|
export declare const WidthChangingDnd: (props: {
|
|
4
3
|
dropIndex: number;
|
|
5
4
|
colWidth: number;
|
|
6
5
|
active: boolean;
|
|
7
|
-
onDrop: (cellIndex: number, moved: number, displayRow: DisplayRow) => void;
|
|
8
6
|
}) => JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
3
3
|
import { DataSet } from '../../../../shared-logic/src/DataSet/types';
|
|
4
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
5
4
|
import * as Drilldown from '../../../../shared-logic/src/Drilldown/Drilldown';
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import { QueryEngineConfig } from '../../../../shared-logic/src/QueryEngineConfig/types';
|
|
6
|
+
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
7
|
+
export declare type AcceptedDrilldownAttributes = Component.PieChartAttributes | Component.BarChartAttributes | Component.HorizontalBarChartAttributes | Component.BarChartV2Attributes;
|
|
8
|
+
export declare function useDrilldownSelection(results: (Result | null)[], attributes: AcceptedDrilldownAttributes, setAttributes: (newAttributes: AcceptedDrilldownAttributes) => void, dataSet: DataSet, queryEngineConfig: QueryEngineConfig, hasDateTimeInDimension?: boolean): {
|
|
8
9
|
onDrilldownChange: ({ existingField, newField }: Drilldown.SelectedDrilldown) => void;
|
|
9
10
|
setDrilldownSelections: import("react").Dispatch<import("react").SetStateAction<Drilldown.SelectedDrilldown[]>>;
|
|
10
11
|
drilldownSelections: Drilldown.SelectedDrilldown[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import { AreaChartProps, BarChartProps, FunnelChartProps, LineChartProps, LineChartV2Props } from '../Component/types';
|
|
3
|
-
export declare type HeadlineStatsProps = LineChartProps | BarChartProps | AreaChartProps | FunnelChartProps | LineChartV2Props;
|
|
2
|
+
import { AreaChartProps, AreaChartV2Props, BarChartProps, BarChartV2Props, FunnelChartProps, LineChartProps, LineChartV2Props, BubbleChartV2Props } from '../Component/types';
|
|
3
|
+
export declare type HeadlineStatsProps = LineChartProps | BarChartProps | AreaChartProps | FunnelChartProps | LineChartV2Props | BarChartV2Props | BubbleChartV2Props | AreaChartV2Props;
|
|
4
4
|
export declare const HeadlineStats: FunctionComponent<HeadlineStatsProps>;
|
|
@@ -2,17 +2,21 @@
|
|
|
2
2
|
export declare const RichText: (props: any) => JSX.Element;
|
|
3
3
|
export declare const AreaChart: (props: any) => JSX.Element;
|
|
4
4
|
export declare const PieChart: (props: any) => JSX.Element;
|
|
5
|
+
export declare const SunburstChart: (props: any) => JSX.Element;
|
|
5
6
|
export declare const BarChart: (props: any) => JSX.Element;
|
|
6
7
|
export declare const HorizontalBarChart: (props: any) => JSX.Element;
|
|
7
8
|
export declare const DataTable: (props: any) => JSX.Element;
|
|
8
9
|
export declare const LineChart: (props: any) => JSX.Element;
|
|
9
10
|
export declare const RouteMap: (props: any) => JSX.Element;
|
|
10
11
|
export declare const ScatterChart: (props: any) => JSX.Element;
|
|
12
|
+
export declare const BubbleChart: (props: any) => JSX.Element;
|
|
11
13
|
export declare const Funnel: (props: any) => JSX.Element;
|
|
12
14
|
export declare const SelectFilter: (props: any) => JSX.Element;
|
|
13
15
|
export declare const SingleStat: (props: any) => JSX.Element;
|
|
14
16
|
export declare const ComboChart: (props: any) => JSX.Element;
|
|
17
|
+
export declare const RadarChart: (props: any) => JSX.Element;
|
|
15
18
|
export declare const MercatorMap: (props: any) => JSX.Element;
|
|
16
19
|
export declare const ProgressIcon: (props?: {
|
|
17
20
|
color?: string | undefined;
|
|
18
21
|
} | undefined) => JSX.Element;
|
|
22
|
+
export declare const WaterfallChart: (props: any) => JSX.Element;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { ListViewItem } from '../../base/ListView/types';
|
|
3
|
+
import * as Types from '../../../../shared-logic/src/CustomField/CustomMetric/types';
|
|
3
4
|
export declare type PickerThing = ListViewItem<{
|
|
4
5
|
type?: string;
|
|
5
|
-
}
|
|
6
|
+
}> & {
|
|
7
|
+
type: Types.PropertyType;
|
|
8
|
+
};
|
|
6
9
|
export declare type PickerItem = {
|
|
7
10
|
id: string;
|
|
8
11
|
title: string;
|
|
@@ -20,7 +20,7 @@ declare const memoized: React.NamedExoticComponent<{
|
|
|
20
20
|
};
|
|
21
21
|
localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[];
|
|
22
22
|
setLocalFilters: (localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[]) => void;
|
|
23
|
-
setPartialAttributes: (updates: Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes>) => void;
|
|
23
|
+
setPartialAttributes: (updates: Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BubbleChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RadarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartV2Attributes>) => void;
|
|
24
24
|
sm?: boolean | undefined;
|
|
25
25
|
dataSet: import("../../../../dashboard/src").DataSet<import("../../../../dashboard/src").DataSet.Field>;
|
|
26
26
|
} & {
|
|
@@ -17,7 +17,7 @@ declare const _default: (props: {
|
|
|
17
17
|
};
|
|
18
18
|
localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[];
|
|
19
19
|
setLocalFilters: (localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[]) => void;
|
|
20
|
-
setPartialAttributes: (updates: Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes>) => void;
|
|
20
|
+
setPartialAttributes: (updates: Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BubbleChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RadarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartV2Attributes>) => void;
|
|
21
21
|
sm?: boolean | undefined;
|
|
22
22
|
dataSet: import("../../../../dashboard/src").DataSet<import("../../../../dashboard/src").DataSet.Field>;
|
|
23
23
|
} & {
|
|
@@ -28,7 +28,7 @@ export declare function updateMetric(state: Partial<Component.Parameters>, measu
|
|
|
28
28
|
export declare function updateGroup(state: Partial<Component.Parameters>, group: Component.ParameterGroup): {
|
|
29
29
|
updatedMetrics: {
|
|
30
30
|
group: {
|
|
31
|
-
[x: string]: (QueryAttributes.
|
|
31
|
+
[x: string]: (QueryAttributes.Dimension | QueryAttributes.TimeDimension | null | undefined)[];
|
|
32
32
|
};
|
|
33
33
|
measure?: Component.ParameterMeasure | undefined;
|
|
34
34
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { VizzlyComponents } from '../../types';
|
|
3
|
+
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
4
|
+
export declare type RadarChartViewProps = VizzlyComponents.ViewProps<Component.RadarChartAttributes> & {
|
|
5
|
+
headline?: string;
|
|
6
|
+
parameters?: any;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: React.NamedExoticComponent<RadarChartViewProps>;
|
|
9
|
+
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, CSSProperties } from 'react';
|
|
2
|
-
import { ConnectDragSource } from 'react-dnd';
|
|
3
2
|
declare type Props = {
|
|
4
|
-
dragSource?:
|
|
3
|
+
dragSource?: any;
|
|
5
4
|
active: boolean;
|
|
6
5
|
enabled: boolean;
|
|
7
6
|
top?: number;
|
|
@@ -10,12 +9,4 @@ declare type Props = {
|
|
|
10
9
|
};
|
|
11
10
|
export declare const MoveComponentDragHandle: (props: Props) => JSX.Element;
|
|
12
11
|
export declare const DragHandle: FunctionComponent<Omit<Props, 'dragSource' | 'enabled'>>;
|
|
13
|
-
export declare const useMoveComponentDrag: (rowIndex: number, cellIndex: number) => [{
|
|
14
|
-
adjust: import("react-dnd").XYCoord | null;
|
|
15
|
-
isDragging: boolean;
|
|
16
|
-
}, import("react-dnd").DragElementWrapper<import("react-dnd").DragSourceOptions>, import("react-dnd").DragElementWrapper<import("react-dnd").DragPreviewOptions>];
|
|
17
|
-
export declare const useMoveRow: (currentRowIndex: number) => [{
|
|
18
|
-
adjust: import("react-dnd").XYCoord | null;
|
|
19
|
-
isDragging: boolean;
|
|
20
|
-
}, import("react-dnd").DragElementWrapper<import("react-dnd").DragSourceOptions>, import("react-dnd").DragElementWrapper<import("react-dnd").DragPreviewOptions>];
|
|
21
12
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Display } from '../../../../../shared-logic/src/Display/types';
|
|
1
|
+
import { Display as DisplayType } from '../../../../../shared-logic/src/Display/types';
|
|
2
2
|
import { VizzlyTheming } from '../../../../../shared-logic/src/Theme/types';
|
|
3
|
-
export declare function canShowInsertAboveOption(theme: VizzlyTheming.Base | undefined, display:
|
|
3
|
+
export declare function canShowInsertAboveOption(theme: VizzlyTheming.Base | undefined, display: DisplayType): boolean | 0 | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type PartitionProps = {
|
|
3
|
+
top?: number;
|
|
4
|
+
left?: number;
|
|
5
|
+
className?: string;
|
|
6
|
+
root: any;
|
|
7
|
+
size?: [number, number];
|
|
8
|
+
round?: boolean;
|
|
9
|
+
padding?: number;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export default function Partition({ top, left, className, root, size, round, padding, children }: PartitionProps): JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
3
|
+
import { FormatResultArgs } from '../../../../shared-logic/src/Result/formatResult';
|
|
4
|
+
import { VizzlyComponents } from '../../types';
|
|
5
|
+
export declare type SunburstProps = Pick<VizzlyComponents.ViewProps<{
|
|
6
|
+
attributes: Component.SunburstChartAttributes;
|
|
7
|
+
}>, 'attributes' | 'result' | 'dataSet' | 'localFilters' | 'setLocalFilters' | 'setPartialAttributes' | 'library'> & {
|
|
8
|
+
formatResultParams: FormatResultArgs;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const SunburstChartView: (props: SunburstProps) => JSX.Element;
|
|
13
|
+
declare const memoized: React.MemoExoticComponent<(props: SunburstProps) => JSX.Element>;
|
|
14
|
+
export default memoized;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FormattedResult } from '../../../../shared-logic/src/Result/types';
|
|
2
|
+
declare type SunburstNode = {
|
|
3
|
+
name: string;
|
|
4
|
+
children?: SunburstNode[];
|
|
5
|
+
hierarchy: string;
|
|
6
|
+
value?: number;
|
|
7
|
+
parents: string[];
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const convertDataToSunburstData: (formattedData: FormattedResult) => SunburstNode;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { VizzlyComponents } from '../../types';
|
|
3
|
+
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
4
|
+
export declare type WaterfallChartViewProps = VizzlyComponents.ViewProps<Component.WaterfallChartAttributes>;
|
|
5
|
+
declare const _default: React.NamedExoticComponent<VizzlyComponents.ViewProps<Component.WaterfallChartAttributes, import("../../../../shared-logic/src/Component/types").Component.Attributes>>;
|
|
6
|
+
export default _default;
|
|
@@ -27,7 +27,6 @@ export interface DashboardBehaviourProps {
|
|
|
27
27
|
valueAlias?: DashboardBehaviourType['valueAlias'];
|
|
28
28
|
componentOverrides: Partial<VizzlyComponents.ComponentOverrides>;
|
|
29
29
|
variables?: UseVariableState;
|
|
30
|
-
nullValueAlias?: DashboardBehaviourType['nullValueAlias'];
|
|
31
30
|
scheduledReports?: DashboardBehaviourType['scheduledReports'];
|
|
32
31
|
onScheduledReportChange?: DashboardBehaviourType['onScheduledReportChange'];
|
|
33
32
|
}
|
|
@@ -116,10 +116,6 @@ export declare type DashboardBehaviour = {
|
|
|
116
116
|
onSave: (dashboard: Dashboard, abortSignal?: AbortSignal) => void;
|
|
117
117
|
onOpenConfigManagerUi: undefined | (() => void);
|
|
118
118
|
dashboardFilters: (dataSets: Array<DataSet>, userDefinedDashboardFilters: DashboardFilters) => DashboardFilters;
|
|
119
|
-
nullValueAlias?: (params: {
|
|
120
|
-
dataSetId: string;
|
|
121
|
-
fieldId: string;
|
|
122
|
-
}) => string | null | undefined;
|
|
123
119
|
onDashboardFilterChange: (additionalFilters: AdditionalFilter[]) => void;
|
|
124
120
|
onDashboardLoad?: (dashboard: DashboardCallback) => void;
|
|
125
121
|
onViewClick?: (data: Component.OnViewClick, loadUnderlyingData?: Component.OnViewClickQuery) => void;
|
|
@@ -23,7 +23,6 @@ import { ConditionalFormattingModalProps } from '../../library/StylePanel/Condit
|
|
|
23
23
|
import { TrendLinesModalProps } from '../../library/DataPanel/Trends/types';
|
|
24
24
|
import { GoalLineModalProps } from '../../library/StylePanel/GoalLine/types';
|
|
25
25
|
import { ItemPickerProps } from '../../components/ItemPicker/ItemPicker';
|
|
26
|
-
import { CustomMetricModalProps } from '../../library/DataPanel/CustomFieldInput/CustomMetric/types';
|
|
27
26
|
export declare enum ModalType {
|
|
28
27
|
Drilldown = "drilldown",
|
|
29
28
|
AdvancedFilter = "advancedFilter",
|
|
@@ -40,8 +39,8 @@ export declare enum ModalType {
|
|
|
40
39
|
ConditionalFormatting = "conditionalFormatting",
|
|
41
40
|
TrendLines = "trendLines",
|
|
42
41
|
GoalLines = "goalLines",
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
ItemPicker = "itemPicker",
|
|
43
|
+
CustomMetricBuilder = "customMetricBuilder"
|
|
45
44
|
}
|
|
46
45
|
export declare type EditorModalPropsMap = {
|
|
47
46
|
[ModalType.Drilldown]: DrilldownModalProps;
|
|
@@ -59,8 +58,8 @@ export declare type EditorModalPropsMap = {
|
|
|
59
58
|
[ModalType.ConditionalFormatting]: ConditionalFormattingModalProps;
|
|
60
59
|
[ModalType.TrendLines]: TrendLinesModalProps;
|
|
61
60
|
[ModalType.GoalLines]: GoalLineModalProps;
|
|
62
|
-
[ModalType.CalculatedField]: CustomMetricModalProps;
|
|
63
61
|
[ModalType.ItemPicker]: ItemPickerProps;
|
|
62
|
+
[ModalType.CustomMetricBuilder]: BaseCustomMetricModals<CustomField>;
|
|
64
63
|
};
|
|
65
64
|
declare type ModalChanges<T extends ModalType> = {
|
|
66
65
|
modal: T;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ThemeVersion } from '../../../../shared-logic/src/Theme/types';
|
|
2
2
|
import { VizzlyTheming } from '../../types';
|
|
3
|
+
export declare const DEFAULT_CHART_COLORS: string[];
|
|
3
4
|
export declare const loadDefaultTheme: (version: ThemeVersion) => VizzlyTheming.Base;
|
|
4
5
|
export declare const COMMON_BORDER_COLOR: string;
|
|
5
6
|
export declare const defaultThemeV2: VizzlyTheming.Base;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type Moved = {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
};
|
|
6
|
+
export declare type useDraggableParams = {
|
|
7
|
+
initialData?: any;
|
|
8
|
+
onMoved?: (moved: Moved, initialData: any) => void;
|
|
9
|
+
onStart?: (initialData: any) => void;
|
|
10
|
+
onEnd?: (initialData: any) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const useDraggable: (params: useDraggableParams) => {
|
|
13
|
+
draggableRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
14
|
+
isDragging: boolean;
|
|
15
|
+
moved: Moved | null;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type useDraggableParams = {
|
|
3
|
+
initialData: {
|
|
4
|
+
rowIndex: number;
|
|
5
|
+
cellIndex: number;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare const useMoveComponentDrag: (params: useDraggableParams) => {
|
|
9
|
+
dragContentRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
10
|
+
dragHandleRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DisplayRow } from '../../../shared-logic/src/Display/types';
|
|
3
|
+
declare type params = {
|
|
4
|
+
displayRow: DisplayRow;
|
|
5
|
+
colWidth: number;
|
|
6
|
+
onColSpanChange: (colSpans: Array<{
|
|
7
|
+
colSpan: number;
|
|
8
|
+
}>) => void;
|
|
9
|
+
persistRowHeight: (rowHeight: number) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const useResizableRow: (params: params) => {
|
|
12
|
+
activeCell: number | null;
|
|
13
|
+
setActiveCell: import("react").Dispatch<import("react").SetStateAction<number | null>>;
|
|
14
|
+
activeRow: number | null;
|
|
15
|
+
setActiveRow: import("react").Dispatch<import("react").SetStateAction<number | null>>;
|
|
16
|
+
isDraggingComponentWidth: boolean;
|
|
17
|
+
setIsDraggingComponentWidth: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
18
|
+
widthAdjustments: {
|
|
19
|
+
[cell: number]: number;
|
|
20
|
+
};
|
|
21
|
+
setWidthAdjustments: import("react").Dispatch<import("react").SetStateAction<{
|
|
22
|
+
[cell: number]: number;
|
|
23
|
+
}>>;
|
|
24
|
+
rowHeightAdjustment: number;
|
|
25
|
+
setRowHeightAdjustment: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
26
|
+
onCellWidthChangeFinalised: (cellIndex: number) => void;
|
|
27
|
+
moveType: string | null;
|
|
28
|
+
persistRowHeight: () => void;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SubscriberOptions } from '../../../shared-logic/src/VizzlyState';
|
|
2
|
-
export declare function useSubscription(callback: (data: SubscriberOptions) => void, idOverride?: string): void;
|
|
2
|
+
export declare function useSubscription(callback: (data: SubscriberOptions) => void, idOverride?: string, deps?: any[]): void;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Component } from '../../../shared-logic/src/Component/types';
|
|
3
|
-
import
|
|
3
|
+
import * as ConditionalFormatting from '../../../shared-logic/src/ConditionalFormatting/utils';
|
|
4
4
|
export declare function getFormattedByRule({ type, value }: Component.ConditionalFormatting.DisplayRule): React.CSSProperties;
|
|
5
|
-
export declare type ComparisonFilter = {
|
|
6
|
-
op: QueryAttributes.Operator;
|
|
7
|
-
value: QueryAttributes.Filter['value'];
|
|
8
|
-
};
|
|
9
|
-
export declare const compare: (filter: ComparisonFilter, recordValue: unknown) => any;
|
|
10
|
-
export declare const conditionIsMet: (filter: ComparisonFilter, value: number | string | boolean) => boolean;
|
|
11
5
|
export declare function getFormattedCellClass({ filter, cellValue, type, value, }: Component.ConditionalFormatting.DisplayRule & {
|
|
12
6
|
cellValue: number | string;
|
|
13
|
-
filter: ComparisonFilter;
|
|
7
|
+
filter: ConditionalFormatting.ComparisonFilter;
|
|
14
8
|
}): React.CSSProperties;
|
package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/CustomMetric/useCustomMetric.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const useCustomMetric: (queryEngineConfig: QueryEngineConfig, ini
|
|
|
9
9
|
publicName: string;
|
|
10
10
|
onChange: (partial: Partial<WipCustomMetricField>) => void;
|
|
11
11
|
resetState: () => void;
|
|
12
|
-
metric: import("../../../../../../shared-logic/src/CustomField/CustomMetric/types").Operator | import("../../../../../../shared-logic/src/CustomField/CustomMetric/types").IfLogic | undefined;
|
|
12
|
+
metric: import("../../../../../../shared-logic/src/CustomField/CustomMetric/types").Operator | import("../../../../../../shared-logic/src/CustomField/CustomMetric/types").IfLogic | import("../../../../../../shared-logic/src/CustomField/CustomMetric/types").Aggregate | import("../../../../../../shared-logic/src/CustomField/CustomMetric/types").NumberInput | import("../../../../../../shared-logic/src/CustomField/CustomMetric/types").Field | undefined;
|
|
13
13
|
isEditing: boolean;
|
|
14
14
|
disabled: boolean;
|
|
15
15
|
handleUpsert: () => void;
|
|
@@ -10,4 +10,4 @@ export declare const CustomMetricsInput: FunctionComponent<{
|
|
|
10
10
|
queryEngineConfig: QueryEngineConfig;
|
|
11
11
|
componentType: ComponentType;
|
|
12
12
|
}>;
|
|
13
|
-
export declare const mapCategoryToModalType: (category?: "rules" | "math" | "percentage" | "roundedNumber" | "dateCalculation" | "conditional" | "
|
|
13
|
+
export declare const mapCategoryToModalType: (category?: "rules" | "math" | "percentage" | "roundedNumber" | "dateCalculation" | "conditional" | "customBuildMetric" | undefined) => ModalType | undefined;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
2
|
+
import { SupportedTimeTruncFunctions } from '@vizzly/semantic-layer-public';
|
|
3
3
|
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
4
4
|
import { FieldCollectorOptions } from '../../../../shared-logic/src/DataPanelConfig/types';
|
|
5
|
-
import { QueryEngineConfig } from '../../../../shared-logic/src/QueryEngineConfig/types';
|
|
6
5
|
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
7
|
-
import
|
|
6
|
+
import * as Field from '../../../../shared-logic/src/Field';
|
|
8
7
|
import { QueryAttributes } from '../../../../shared-logic/src/QueryAttributes/types';
|
|
9
|
-
import {
|
|
8
|
+
import { QueryEngineConfig } from '../../../../shared-logic/src/QueryEngineConfig/types';
|
|
9
|
+
import { FieldFilterOptions } from '../../../../shared-logic/src/DataSet/fieldFilterOptions';
|
|
10
10
|
import { InitValue } from '../../base/ListView/ListView';
|
|
11
|
-
import { VizzlyComponents } from '../../types';
|
|
12
11
|
import { ListViewItem } from '../../base/ListView/types';
|
|
12
|
+
import { VizzlyComponents } from '../../types';
|
|
13
13
|
declare type FieldCollectorInputFieldValue = QueryAttributes['measure'][number] | QueryAttributes['dimension'][number];
|
|
14
14
|
declare type SelectOptionType = {
|
|
15
15
|
value: any;
|
|
@@ -26,7 +26,7 @@ declare type Props = VizzlyComponents.ManagePartialAttributes<Component.Attribut
|
|
|
26
26
|
export declare const FieldCollectorInput: (inputProps: Props) => JSX.Element;
|
|
27
27
|
export declare const getDateTimeSelectOptions: (allowedGranularities: string[], supportedTimeTruncFunctions: SupportedTimeTruncFunctions) => SelectOptionType[];
|
|
28
28
|
export declare function handleCreateNewField(values: (QueryAttributes.Dimension | QueryAttributes.Measure)[], purpose: string, queryEngineConfig: QueryEngineConfig, onChange: (values: FieldCollectorInputFieldValue[]) => void): (field: DataSetType.Field) => void;
|
|
29
|
-
export declare function buildDimensionFromField(purpose: string, field: DataSetType.Field, queryEngineConfig: QueryEngineConfig): QueryAttributes.
|
|
29
|
+
export declare function buildDimensionFromField(purpose: string, field: DataSetType.Field, queryEngineConfig: QueryEngineConfig): QueryAttributes.Dimension | QueryAttributes.Measure;
|
|
30
30
|
export declare function buildFieldsToPickFrom(dataSet: DataSetType, fieldFilterOptions: FieldFilterOptions | undefined, preventDuplicates: boolean | undefined, values: (QueryAttributes.Measure | QueryAttributes.Dimension)[]): InitValue<DataSetType.Field>[];
|
|
31
|
-
export declare function buildFieldCollectorItems(values: (QueryAttributes.Measure | QueryAttributes.Dimension)[], dataSet: DataSetType, purpose: string, queryEngineConfig: QueryEngineConfig, onChange: (values: FieldCollectorInputFieldValue[]) => void): ListViewItem<any>[];
|
|
31
|
+
export declare function buildFieldCollectorItems(values: (QueryAttributes.Measure | QueryAttributes.Dimension)[], dataSet: DataSetType, purpose: string, queryEngineConfig: QueryEngineConfig, onChange: (values: FieldCollectorInputFieldValue[]) => void, supportedAggregations?: string[]): ListViewItem<any>[];
|
|
32
32
|
export {};
|
|
@@ -10,7 +10,7 @@ import { ListViewItem } from '../../base/ListView/types';
|
|
|
10
10
|
declare type Props = VizzlyComponents.ManagePartialAttributes<{
|
|
11
11
|
[key: string]: any;
|
|
12
12
|
}> & {
|
|
13
|
-
propKey?: 'xMeasure' | 'yMeasure' | 'measure' | 'barMeasure' | 'lineMeasure';
|
|
13
|
+
propKey?: 'xMeasure' | 'yMeasure' | 'zMeasure' | 'measure' | 'barMeasure' | 'lineMeasure';
|
|
14
14
|
allowsMultiple?: boolean;
|
|
15
15
|
maxAllowed?: number;
|
|
16
16
|
supportedAggregates: DashboardBehaviour['queryEngineConfig']['supportedAggregates'];
|
|
@@ -23,6 +23,7 @@ declare type Props = VizzlyComponents.ManagePartialAttributes<{
|
|
|
23
23
|
onNewMeasureFilterAggregate?: (field: DataSetType.Field) => SupportedAggregates;
|
|
24
24
|
label?: string;
|
|
25
25
|
disableRemove?: boolean;
|
|
26
|
+
onDeleteItem?: () => void;
|
|
26
27
|
};
|
|
27
28
|
export declare const MeasuresInput: (inputProps: Props) => JSX.Element;
|
|
28
29
|
export declare const isMeasureInProtectedFields: (fieldToCheck: QueryAttributes.Measure, arrayToSearch?: QueryAttributes.Measure[] | undefined) => boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { VizzlyComponents } from '../../types';
|
|
3
|
+
import { WaterfallColorsSection as WaterfallColorsSectionType } from '../../../../shared-logic/src/FormatPanelConfig/types';
|
|
4
|
+
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
5
|
+
declare type Props = VizzlyComponents.ComponentOverrides.Props.SectionProps<WaterfallColorsSectionType> & VizzlyComponents.EditorSectionProps<Component.Attributes>;
|
|
6
|
+
export declare const WaterfallColorsSection: FunctionComponent<Props>;
|
|
7
|
+
export {};
|