@vizzly/dashboard 0.15.0-dev-3d764e5c2346be462bbcf7327369903e64b96b40 → 0.15.1-dev-7c85efb9d70a7b5e5367d265c0b48faf46ecac6e
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 +1 -1
- package/dist/charts/src/FunnelChart/FunnelChart.d.ts +0 -1
- package/dist/charts/src/ScatterChart/ScatterChart.d.ts +2 -2
- package/dist/charts/src/XYChart/types.d.ts +0 -3
- package/dist/charts/src/useXAxisLabelCount.d.ts +1 -1
- package/dist/charts/src/v2/components/AreaChart/AreaChart.d.ts +0 -1
- package/dist/charts/src/v2/components/Axis/AxisBottom.d.ts +1 -2
- package/dist/charts/src/v2/components/Axis/AxisLeft.d.ts +3 -3
- package/dist/charts/src/v2/components/BarChart/BarChart.d.ts +4 -6
- package/dist/charts/src/v2/components/BubbleChart/BubbleChart.d.ts +1 -1
- package/dist/charts/src/v2/components/ChartWrapper/ChartWrapper.d.ts +2 -4
- package/dist/charts/src/v2/components/ComboChart/ComboChart.d.ts +0 -1
- package/dist/charts/src/v2/components/LineChart/LineChart.d.ts +7 -12
- package/dist/charts/src/v2/components/RadarChart/Polygons.d.ts +1 -1
- package/dist/charts/src/v2/components/RadarChart/types.d.ts +0 -4
- package/dist/charts/src/v2/components/Tooltip/CrosshairCircle.d.ts +1 -1
- package/dist/charts/src/v2/components/Tooltip/Tooltip.d.ts +1 -2
- package/dist/charts/src/v2/components/WaterfallChart/Tooltip.d.ts +2 -2
- package/dist/charts/src/v2/components/WaterfallChart/WaterfallChart.d.ts +2 -4
- package/dist/charts/src/v2/components/hooks/useBottomAxisBaselineShift.d.ts +10 -0
- package/dist/charts/src/v2/index.d.ts +2 -4
- package/dist/charts/src/v2/utils/buildMargin.d.ts +0 -1
- package/dist/charts/src/v2/utils/components/BarGroup.d.ts +5 -9
- package/dist/charts/src/v2/utils/components/BarStacked.d.ts +5 -10
- package/dist/charts/src/v2/utils/getBarFill.d.ts +1 -1
- package/dist/charts/src/v2/utils/getTooltipData.d.ts +5 -5
- package/dist/{shared-ui → dashboard}/src/SetupError.d.ts +2 -2
- package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/GlobalProvider.d.ts +2 -4
- package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/buildImplementationMeta.d.ts +1 -1
- package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/useGlobalProvider.d.ts +43 -75
- package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/useOnDashboardLoadCallback.d.ts +2 -3
- package/dist/{shared-ui → dashboard}/src/contexts/SessionContext/useSessionContext.d.ts +0 -1
- package/dist/dashboard/src/index.d.ts +0 -1
- package/dist/dashboard/src/types.d.ts +128 -1
- package/dist/dashboard.cjs.development.js +15053 -18233
- package/dist/dashboard.cjs.production.min.js +1 -1
- package/dist/dashboard.esm.js +15073 -18258
- package/dist/results-driver/src/driver/VizzlyQuery/AdditionalFilter/toQueries.d.ts +3 -7
- package/dist/results-driver/src/driver/VizzlyQuery/AreaChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/AreaChartV2/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/BarChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/BarChartV2/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/BasicTable/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/FunnelChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/LineChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/LineChartV2/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/PieChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/PivotTable/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/RadarChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/RichText/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/SunburstChart/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/WaterfallChart/toQueries.d.ts +3 -9
- package/dist/results-driver/src/driver/VizzlyQuery/buildVizzlyQuery.d.ts +5 -5
- package/dist/results-driver/src/driver/VizzlyQuery/commonToQueries.d.ts +1 -1
- package/dist/results-driver/src/types.d.ts +0 -2
- package/dist/services/src/index.d.ts +0 -5
- package/dist/shared-logic/src/AdditionalFilter/AdditionalFilter.d.ts +7 -9
- package/dist/shared-logic/src/AdditionalFilter/FilterConfig.d.ts +3 -14
- package/dist/shared-logic/src/AdditionalFilter/toQueryAttributesFilter.d.ts +2 -2
- package/dist/shared-logic/src/AdditionalFilter/types.d.ts +2 -6
- package/dist/shared-logic/src/BarChartV2/buildBarChartRepresentation.d.ts +1 -1
- package/dist/shared-logic/src/BubbleChart/types.d.ts +0 -7
- package/dist/shared-logic/src/BubbleChartV2/buildBubbleChartRepresentation.d.ts +7 -5
- package/dist/shared-logic/src/BubbleChartV2/getScaleAndTicks.d.ts +3 -4
- package/dist/shared-logic/src/BubbleChartV2/types.d.ts +0 -10
- package/dist/shared-logic/src/Callbacks/cell.funcs.d.ts +1 -1
- package/dist/shared-logic/src/ChartsV2/adjustTicks.d.ts +4 -7
- package/dist/shared-logic/src/ChartsV2/types.d.ts +0 -2
- package/dist/shared-logic/src/ComboChartV2/buildComboChartRepresentation.d.ts +3 -3
- package/dist/shared-logic/src/Component/setAttributes.d.ts +1 -1
- package/dist/shared-logic/src/Component/sharedSchemas.d.ts +0 -2
- package/dist/shared-logic/src/Component/types.d.ts +7 -44
- package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +15 -17
- package/dist/shared-logic/src/CustomField/AggregateMath/index.d.ts +1 -2
- package/dist/shared-logic/src/CustomField/Conditional/index.d.ts +2 -2
- package/dist/shared-logic/src/CustomField/CustomField.d.ts +1 -2
- package/dist/shared-logic/src/CustomField/CustomMetric/build.d.ts +1 -1
- package/dist/shared-logic/src/CustomField/CustomMetric/combineFilters.d.ts +2 -0
- package/dist/shared-logic/src/CustomField/DateCalculation/index.d.ts +1 -2
- package/dist/shared-logic/src/CustomField/Percentage/index.d.ts +5 -6
- package/dist/shared-logic/src/CustomField/RoundedNumber/index.d.ts +1 -2
- package/dist/shared-logic/src/CustomField/Rules/index.d.ts +2 -2
- package/dist/shared-logic/src/CustomField/SimpleMath/index.d.ts +1 -1
- package/dist/shared-logic/src/CustomField/types.d.ts +1 -6
- package/dist/shared-logic/src/DataPanelConfig/types.d.ts +1 -1
- package/dist/shared-logic/src/DataSet/DataSet.d.ts +1 -1
- package/dist/shared-logic/src/DataTable/resultToPivotTableRepresentation.d.ts +1 -2
- package/dist/shared-logic/src/Field/Field.d.ts +3 -4
- package/dist/shared-logic/src/Filter/Filter.d.ts +10 -0
- package/dist/shared-logic/src/Filter/Where.d.ts +6 -0
- package/dist/shared-logic/src/Filter/combineFilters.d.ts +1 -0
- package/dist/shared-logic/src/Filter/types.d.ts +4 -2
- package/dist/shared-logic/src/FormatPanelConfig/types.d.ts +1 -3
- package/dist/shared-logic/src/Generate/query.d.ts +3 -3
- package/dist/shared-logic/src/JSQueryEngine/types.d.ts +8 -2
- package/dist/shared-logic/src/Query/Query.d.ts +22 -0
- package/dist/shared-logic/src/Query/buildFromQueryAttributes.d.ts +3 -3
- package/dist/shared-logic/src/Query/types.d.ts +109 -6
- package/dist/shared-logic/src/Result/Result.d.ts +2 -2
- package/dist/shared-logic/src/Result/formattedResultToSeries.d.ts +1 -1
- package/dist/shared-logic/src/TimeDimension/TimeDimension.d.ts +1 -3
- package/dist/shared-logic/src/ValueAlias/ValueAlias.d.ts +1 -2
- package/dist/shared-logic/src/VizzlyState/index.d.ts +0 -2
- package/dist/shared-logic/src/WaterfallChart/buildWaterfallChartRepresentation.d.ts +3 -7
- package/dist/shared-logic/src/WaterfallChart/getRepresentationData.d.ts +2 -5
- package/dist/shared-logic/src/WaterfallChart/getYTicks.d.ts +1 -1
- package/dist/shared-logic/src/WaterfallChart/types.d.ts +0 -1
- package/dist/shared-logic/src/api/queryEngine/getRunQueriesCallback.d.ts +1 -2
- package/dist/shared-logic/src/api/vizzly/aiHelpers/view.d.ts +1 -1
- package/dist/shared-logic/src/getComponentInterface.d.ts +1 -1
- package/dist/shared-logic/src/utils/feedback.d.ts +2 -2
- package/dist/shared-ui/src/api/useQueryEffect.d.ts +4 -5
- package/dist/shared-ui/src/base/ListView/index.d.ts +2 -2
- package/dist/shared-ui/src/base/Panel/Panel.d.ts +1 -1
- package/dist/shared-ui/src/base/Section/Section.d.ts +1 -1
- package/dist/shared-ui/src/base/Table/Table.d.ts +1 -1
- package/dist/shared-ui/src/components/AdditionalFilter/AdvancedPicker/AdvancedSelectFilter.d.ts +1 -1
- package/dist/shared-ui/src/components/AdditionalFilter/FiltersModal.d.ts +1 -1
- package/dist/shared-ui/src/components/AdditionalFilter/asyncLoadFilterOptions.d.ts +1 -2
- package/dist/shared-ui/src/components/AdditionalFilter/labelWidth.d.ts +0 -15
- package/dist/shared-ui/src/components/AreaChart/AreaChartView.d.ts +1 -1
- package/dist/shared-ui/src/components/BarChartV2/BarChartV2View.d.ts +3 -3
- package/dist/shared-ui/src/components/BubbleChart/BubbleChartView.d.ts +1 -1
- package/dist/shared-ui/src/components/ChartHelper.d.ts +1 -1
- package/dist/shared-ui/src/components/ComboChart/ComboChartView.d.ts +1 -1
- package/dist/shared-ui/src/components/Component/types.d.ts +3 -2
- package/dist/shared-ui/src/components/Component.d.ts +2 -0
- package/dist/shared-ui/src/components/DataTable/DataTableRow.d.ts +1 -1
- package/dist/shared-ui/src/components/DataTable/buildTableRepresentation.d.ts +1 -2
- package/dist/shared-ui/src/components/DataTable/helpers.d.ts +1 -2
- package/dist/shared-ui/src/components/Drilldown/useDrilldownSelection.d.ts +1 -1
- package/dist/shared-ui/src/components/FormatPropsEditor/FormatPanelFromConfig.d.ts +1 -1
- package/dist/shared-ui/src/components/HeadlineStats/HeadlineStats.d.ts +2 -2
- 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/PieChart/PieChartView.d.ts +4 -4
- package/dist/shared-ui/src/components/Progress/ProgressView.d.ts +1 -1
- package/dist/shared-ui/src/components/ScatterChart/ScatterChartView.d.ts +1 -1
- package/dist/shared-ui/src/components/SingleStat/SingleStatView.d.ts +1 -1
- package/dist/shared-ui/src/components/Studio/StudioApp/Cell.d.ts +2 -0
- package/dist/shared-ui/src/components/Studio/StudioContexts.d.ts +1 -1
- package/dist/shared-ui/src/components/SunburstChart/SunburstChartView.d.ts +2 -5
- package/dist/shared-ui/src/components/SunburstChart/convertDataToSunburstData.d.ts +2 -8
- package/dist/shared-ui/src/components/WaterfallChart/WaterfallChartView.d.ts +3 -3
- package/dist/shared-ui/src/components/useComponentEffect.d.ts +2 -2
- package/dist/shared-ui/src/contexts/DashboardBehaviour/context.d.ts +2 -2
- package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +14 -19
- package/dist/shared-ui/src/contexts/DashboardContext/context.d.ts +1 -4
- package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +41 -27
- package/dist/shared-ui/src/headlessui/components/switch/switch.d.ts +1 -1
- package/dist/shared-ui/src/headlessui/hooks/use-disposables.d.ts +1 -1
- package/dist/shared-ui/src/headlessui/utils/disposables.d.ts +1 -1
- package/dist/shared-ui/src/hooks/useVizzly.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/Rules/RulesModal.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/types.d.ts +4 -4
- package/dist/shared-ui/src/library/DataPanel/CustomMetricsInput.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/sections/index.d.ts +0 -1
- package/dist/shared-ui/src/library/Editor/useEditor.d.ts +2 -0
- package/dist/shared-ui/src/library/Library/ComponentInLibrary.d.ts +1 -0
- package/dist/shared-ui/src/library/Library/Library.d.ts +4 -0
- package/dist/shared-ui/src/library/Library/types.d.ts +2 -0
- package/dist/shared-ui/src/library/StylePanel/AxisPreferenceSection.d.ts +1 -1
- package/package.json +3 -4
- package/dist/charts/src/ScatterChart/types.d.ts +0 -32
- package/dist/charts/src/v2/components/DataLabel/DataLabel.d.ts +0 -11
- package/dist/charts/src/v2/components/DataLabel/index.d.ts +0 -1
- package/dist/charts/src/v2/components/GridColumns/GridRows.d.ts +0 -10
- package/dist/charts/src/v2/components/HorizontalBarChart/HorizontalBarChart.d.ts +0 -27
- package/dist/charts/src/v2/components/HorizontalBarChart/getTooltipDataForHorizontalChart.d.ts +0 -25
- package/dist/charts/src/v2/components/HorizontalBarChart/index.d.ts +0 -1
- package/dist/charts/src/v2/components/HorizontalBarChart/useScalesForHorizontalChart.d.ts +0 -4
- package/dist/charts/src/v2/components/QuadrantOverlay/QuadrantOverlay.d.ts +0 -10
- package/dist/charts/src/v2/components/QuadrantOverlay/index.d.ts +0 -2
- package/dist/charts/src/v2/components/RadarChart/RadarCrosshairCircle.d.ts +0 -19
- package/dist/charts/src/v2/components/RadarChart/shared.d.ts +0 -2
- package/dist/charts/src/v2/components/VerticalGoalLine/VerticalGoalLine.d.ts +0 -11
- package/dist/charts/src/v2/components/VerticalGoalLine/VerticalGoalLines.d.ts +0 -11
- package/dist/charts/src/v2/components/VerticalGoalLine/index.d.ts +0 -2
- package/dist/charts/src/v2/components/WaterfallChart/waterfall.utils.d.ts +0 -2
- package/dist/charts/src/v2/components/hooks/useGroupingAxisBaselineShift.d.ts +0 -11
- package/dist/charts/src/v2/utils/components/HorizontalBarGroup.d.ts +0 -28
- package/dist/charts/src/v2/utils/components/HorizontalBarStacked.d.ts +0 -23
- package/dist/charts/src/v2/utils/getRadarTooltipData.d.ts +0 -21
- package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChartV2/toQueries.d.ts +0 -4
- package/dist/shared-logic/src/AliasFields/types.d.ts +0 -5
- package/dist/shared-logic/src/ChartsV2/convertToStackedPercentages.d.ts +0 -1
- package/dist/shared-logic/src/CustomField/AliasField/index.d.ts +0 -7
- package/dist/shared-logic/src/CustomField/CustomMetric/combineForCustomMetricFilters.d.ts +0 -2
- package/dist/shared-logic/src/CustomField/constants.d.ts +0 -15
- package/dist/shared-logic/src/DataLabel/index.d.ts +0 -17
- package/dist/shared-logic/src/HorizontalBarChartV2/attributesSchema.d.ts +0 -3
- package/dist/shared-logic/src/HorizontalBarChartV2/buildHorizontalBarChartRepresentation.d.ts +0 -41
- package/dist/shared-logic/src/HorizontalBarChartV2/constants.d.ts +0 -3
- package/dist/shared-logic/src/HorizontalBarChartV2/index.d.ts +0 -4
- package/dist/shared-logic/src/HorizontalBarChartV2/setAttributes.d.ts +0 -4
- package/dist/shared-logic/src/HorizontalBarChartV2/types.d.ts +0 -41
- package/dist/shared-logic/src/PivotConfigForMetricAxis/index.d.ts +0 -3
- package/dist/shared-logic/src/Result/formattedResultToSeriesForMetricAxis.d.ts +0 -25
- package/dist/shared-ui/src/components/HorizontalBarChartV2/HorizontalBarChartV2.d.ts +0 -3
- package/dist/shared-ui/src/components/HorizontalBarChartV2/HorizontalBarChartV2View.d.ts +0 -17
- package/dist/shared-ui/src/components/HorizontalBarChartV2/index.d.ts +0 -2
- package/dist/shared-ui/src/contexts/AliasFields/useInteractiveFields.d.ts +0 -6
- package/dist/shared-ui/src/contexts/GlobalProvider/GlobalProvider.test.d.ts +0 -1
- package/dist/shared-ui/src/errors/InvalidProperty.d.ts +0 -5
- package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/DateComparisonModal.d.ts +0 -12
- package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/Rules.d.ts +0 -11
- package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/types.d.ts +0 -13
- package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/useCustomMetric.d.ts +0 -17
- package/dist/shared-ui/src/library/DataPanel/sections/DateComparisonSection.d.ts +0 -8
- package/dist/shared-ui/src/library/StylePanel/Quadrant/QuadrantSection.d.ts +0 -6
- package/dist/shared-ui/src/types/dashboard.d.ts +0 -130
- /package/dist/charts/src/v2/components/{GridColumns → GridRows}/shared.d.ts +0 -0
- /package/dist/{shared-ui → dashboard}/src/contexts/SessionContext/getStrategy.d.ts +0 -0
- /package/dist/{shared-ui → dashboard}/src/contexts/SessionContext/index.d.ts +0 -0
- /package/dist/{shared-ui → dashboard}/src/contexts/useDashboardStrategy/runStrategy.d.ts +0 -0
- /package/dist/{shared-ui → dashboard}/src/contexts/useDashboardStrategy/types.d.ts +0 -0
- /package/dist/{shared-ui → dashboard}/src/contexts/useDashboardStrategy.d.ts +0 -0
- /package/dist/{shared-ui → dashboard}/src/contexts/useScheduledReports.d.ts +0 -0
- /package/dist/{shared-ui → dashboard}/src/errors/FailedToSaveError.d.ts +0 -0
|
@@ -29,8 +29,6 @@ export declare type MapColorsSection = Section<'mapColors'>;
|
|
|
29
29
|
export declare type WaterfallColorsSection = Section<'waterfallColors'>;
|
|
30
30
|
export declare type HeadlineSection = Section<'headline'>;
|
|
31
31
|
export declare type RichTextFormatSection = Section<'richText'>;
|
|
32
|
-
export interface QuadrantsSection extends Section<'quadrants'> {
|
|
33
|
-
}
|
|
34
32
|
export interface ConditionalFormattingSection extends Section<'conditionalFormatting'> {
|
|
35
33
|
ruleType: FormattingRuleType;
|
|
36
34
|
subSection?: {
|
|
@@ -44,5 +42,5 @@ export interface ProgressTypeSection<T> extends Omit<Section<T>, 'type'> {
|
|
|
44
42
|
progressType?: Omit<Section<T>, 'type'>;
|
|
45
43
|
}
|
|
46
44
|
export declare type ProgressTypesSection = Section<'progressType'> & ProgressTypeSection<'progressType'>;
|
|
47
|
-
export declare type FormatPanelSection = HeadingSection | FormatSection | ChartStylesSection | PrefixSection | AxisLabelsSection | LabelsSection | MapColorsSection | WaterfallColorsSection |
|
|
45
|
+
export declare type FormatPanelSection = HeadingSection | FormatSection | ChartStylesSection | PrefixSection | AxisLabelsSection | LabelsSection | MapColorsSection | WaterfallColorsSection | ConditionalFormattingSection | GoalLineSection | ProgressTypesSection | HeadlineSection | RichTextFormatSection | Section<'trends'>;
|
|
48
46
|
export declare type FormatPanelConfig = Array<FormatPanelSection>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Params } from '../../../results-driver/src/types';
|
|
2
|
-
import { DataSet } from '../DataSet/types';
|
|
3
|
-
import { Query } from '../Query/types';
|
|
4
1
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
5
2
|
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
3
|
+
import { DataSet } from '../DataSet/types';
|
|
4
|
+
import { Query } from '../Query/types';
|
|
5
|
+
import { Params } from '../../../results-driver/src/types';
|
|
6
6
|
export declare function prepareGeneratedQueryAttributes(dataSets: Array<DataSet>, queryEngineConfig: QueryEngineConfig, seed?: number, generateCount?: number): Array<QueryAttributes & {
|
|
7
7
|
dataSet: DataSet;
|
|
8
8
|
}>;
|
|
@@ -2,5 +2,11 @@ import { Query, SubQuery } from '../Query/types';
|
|
|
2
2
|
export declare type DataMap = {
|
|
3
3
|
[key: string]: string | boolean | number | Date | null | string[];
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
export declare type
|
|
5
|
+
declare type JSQueryEngineOperator = '>' | '<' | '=' | '!=' | '>=' | '<=' | 'is_one_of' | 'is_not_one_of' | 'starts_with' | 'ends_with' | 'contains_substring' | 'does_not_contain_substring';
|
|
6
|
+
export declare type JSQueryEngineTimeFunction = 'month' | 'year' | 'quarter' | 'week' | 'day' | 'hour' | 'minute' | 'second';
|
|
7
|
+
export declare type JSQueryEngineAggregateFunction = 'countDistinct' | 'count' | 'mean' | 'sum' | 'min' | 'max' | 'none';
|
|
8
|
+
export declare type JSQueryEngineFunction = JSQueryEngineTimeFunction | JSQueryEngineAggregateFunction;
|
|
9
|
+
export declare type JSQueryEngineMathsOp = '*' | '-' | '/' | '+';
|
|
10
|
+
export declare type JSQueryEngineSubQuery = SubQuery<JSQueryEngineFunction, JSQueryEngineOperator, JSQueryEngineMathsOp>;
|
|
11
|
+
export declare type JSQueryEngineQuery = Query<JSQueryEngineFunction, JSQueryEngineOperator, JSQueryEngineMathsOp>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PreAggregatedQuery, PreparedQuery, Query } from './types';
|
|
2
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
|
+
import { QueryEngineConfig, SupportedFeature as SupportedFeatureType } from '../QueryEngineConfig/types';
|
|
4
|
+
import { DataSet } from '../DataSet/types';
|
|
5
|
+
import { Result } from '../Result/types';
|
|
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) => {
|
|
7
|
+
query: Query<string, string, string>;
|
|
8
|
+
measureDescription: import("./types").MeasureDescription[];
|
|
9
|
+
};
|
|
10
|
+
export declare const hasDimensions: (query: {
|
|
11
|
+
group: Query['group'];
|
|
12
|
+
}) => boolean;
|
|
13
|
+
export declare const buildPreAggregatedPreparedQuery: (query: PreAggregatedQuery, dataSet: DataSet) => {
|
|
14
|
+
query: PreAggregatedQuery;
|
|
15
|
+
resultFields: Result.Field[];
|
|
16
|
+
};
|
|
17
|
+
export declare const buildUniqueArrayValuesPreparedQuery: (dataSetId: string, dataSetField: DataSet['fields'][number], optionsFilters?: import("./types").QueryNameSpace.Filter<import("./types").QueryNameSpace.FieldDefinition<string, string, string>, string>[][] | undefined) => {
|
|
18
|
+
query: PreparedQuery;
|
|
19
|
+
resultFields: Result.Field[];
|
|
20
|
+
};
|
|
21
|
+
export declare const buildFilterQuery: (dataSet: DataSet, fieldId: string, optionsFilters?: QueryAttributes.Filter[] | undefined, optionsOrders?: QueryAttributes.Order[] | undefined) => QueryAttributes;
|
|
22
|
+
export declare const supportsFeature: (queryEngineConfig: QueryEngineConfig, feature: SupportedFeatureType) => boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Params } from '../../../results-driver/src/types';
|
|
2
|
-
import { DataSet } from '../DataSet/types';
|
|
3
1
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
4
2
|
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
5
3
|
import { MeasureDescription, Query } from './types';
|
|
6
|
-
|
|
4
|
+
import { DataSet } from '../DataSet/types';
|
|
5
|
+
import { Params } from '../../../results-driver/src/types';
|
|
6
|
+
export declare const buildFromQueryAttributes: (dataSet: DataSet, measureAttr: QueryAttributes.Measure[], orderAttr: QueryAttributes.Order[], dimensionAttr: QueryAttributes.Dimension[], timeDimensionAttr: QueryAttributes.TimeDimension | null, limitAttr: QueryAttributes.Limit | undefined, offsetAttr: QueryAttributes.Offset | undefined, queryEngineConfig: QueryEngineConfig, params: Params, prebuiltFilters?: QueryAttributes.Filter[][] | undefined) => {
|
|
7
7
|
query: Query;
|
|
8
8
|
measureDescription: Array<MeasureDescription>;
|
|
9
9
|
};
|
|
@@ -1,15 +1,108 @@
|
|
|
1
1
|
import { DataSet } from '../DataSet/types';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export declare namespace QueryNameSpace {
|
|
3
|
+
/**
|
|
4
|
+
* Which direction should the values be sorted in?
|
|
5
|
+
*/
|
|
6
|
+
type SortDirection = 'asc' | 'desc';
|
|
7
|
+
/**
|
|
8
|
+
* ID of the field. This is the same ID that is used in
|
|
9
|
+
* the data sets.
|
|
10
|
+
*/
|
|
11
|
+
type Field = string;
|
|
12
|
+
/**
|
|
13
|
+
* Index of the measure to group the aggregates on.
|
|
14
|
+
* Index starts from 0.
|
|
15
|
+
*/
|
|
16
|
+
type Group = {
|
|
17
|
+
index: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Index of the measure to sort the results by.
|
|
21
|
+
* Index starts from 0.
|
|
22
|
+
*/
|
|
23
|
+
type Order = {
|
|
24
|
+
index: number;
|
|
25
|
+
direction: SortDirection;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Defines filters to apply on the query. This can be thought of
|
|
29
|
+
* as the WHERE clause in a SQL statement.
|
|
30
|
+
*/
|
|
31
|
+
type Filter<Field, ComparisonOperator> = {
|
|
32
|
+
field: Field | BasicType;
|
|
33
|
+
op: ComparisonOperator;
|
|
34
|
+
value: any;
|
|
35
|
+
};
|
|
36
|
+
type SecureFilterGuard<ComparisonOperator> = {
|
|
37
|
+
fieldId: string;
|
|
38
|
+
op: ComparisonOperator;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Limit the number of results returned from the query.
|
|
42
|
+
*/
|
|
43
|
+
type Limit = number;
|
|
44
|
+
/**
|
|
45
|
+
* Sets the offset of results to return.
|
|
46
|
+
*/
|
|
47
|
+
type Offset = number;
|
|
48
|
+
type Cases<SupportedFunction = string, ComparisonOperator = string, MathsOp = string> = {
|
|
49
|
+
returns: BasicType | {
|
|
50
|
+
type: 'field';
|
|
51
|
+
value: string;
|
|
52
|
+
function: SupportedFunction;
|
|
53
|
+
};
|
|
54
|
+
filter: QueryNameSpace.Filter<QueryNameSpace.FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>, ComparisonOperator>[][];
|
|
55
|
+
};
|
|
56
|
+
type BasicType = {
|
|
57
|
+
type: 'number';
|
|
58
|
+
value: number;
|
|
59
|
+
} | {
|
|
60
|
+
type: 'string';
|
|
61
|
+
value: string;
|
|
62
|
+
} | {
|
|
63
|
+
type: 'null';
|
|
64
|
+
} | {
|
|
65
|
+
type: 'boolean';
|
|
66
|
+
value: boolean | null;
|
|
67
|
+
};
|
|
68
|
+
type ComplexType<SupportedFunction = string, ComparisonOperator = string, MathsOp = string> = {
|
|
69
|
+
type: 'field';
|
|
70
|
+
value: string;
|
|
71
|
+
function: SupportedFunction;
|
|
72
|
+
} | {
|
|
73
|
+
type: 'switchField';
|
|
74
|
+
value: {
|
|
75
|
+
cases: Cases<SupportedFunction, ComparisonOperator, MathsOp>[];
|
|
76
|
+
};
|
|
77
|
+
} | {
|
|
78
|
+
type: 'subquery';
|
|
79
|
+
value: SubQuery<SupportedFunction, ComparisonOperator, MathsOp>;
|
|
80
|
+
} | {
|
|
81
|
+
type: 'maths';
|
|
82
|
+
left: FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>;
|
|
83
|
+
op: MathsOp;
|
|
84
|
+
right: FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>;
|
|
85
|
+
} | {
|
|
86
|
+
type: 'date_maths';
|
|
87
|
+
left: FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>;
|
|
88
|
+
op: MathsOp;
|
|
89
|
+
right: FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>;
|
|
90
|
+
} | {
|
|
91
|
+
type: 'function';
|
|
92
|
+
function: SupportedFunction;
|
|
93
|
+
value: FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>;
|
|
94
|
+
};
|
|
95
|
+
type FieldDefinition<SupportedFunction = string, ComparisonOperator = string, MathsOp = string> = BasicType | ComplexType<SupportedFunction, ComparisonOperator, MathsOp>;
|
|
96
|
+
}
|
|
4
97
|
export declare type MeasureDescription = {
|
|
5
98
|
/** What is the underlying field of the data set? */
|
|
6
99
|
field: DataSet.Field;
|
|
7
100
|
/** What function was applied? */
|
|
8
101
|
functionId: string;
|
|
9
102
|
};
|
|
10
|
-
export declare type SubQuery = {
|
|
11
|
-
measure: [QueryNameSpace.FieldDefinition];
|
|
12
|
-
filter:
|
|
103
|
+
export declare type SubQuery<SupportedFunction = string, ComparisonOperator = string, MathsOp = string> = {
|
|
104
|
+
measure: [QueryNameSpace.FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>];
|
|
105
|
+
filter: QueryNameSpace.Filter<QueryNameSpace.FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>, ComparisonOperator>[][];
|
|
13
106
|
};
|
|
14
107
|
/** For when a query cannot be generalised into the TraditionalQuery format. We can provide a very specific query for a specific purpose. */
|
|
15
108
|
declare type BasePreparedQuery<PreparedQueryType> = {
|
|
@@ -30,6 +123,16 @@ export declare type PreAggregatedQuery = BasePreparedQuery<'preAggregated'> & {
|
|
|
30
123
|
};
|
|
31
124
|
};
|
|
32
125
|
export declare type PreparedQuery = UniqueArrayValuesQuery | PreAggregatedQuery;
|
|
33
|
-
|
|
126
|
+
/** Most commonly used query format. */
|
|
127
|
+
export declare type Query<SupportedFunction = string, ComparisonOperator = string, MathsOp = string> = {
|
|
128
|
+
type: 'query';
|
|
34
129
|
timeZone?: string;
|
|
130
|
+
dataSetId: string;
|
|
131
|
+
measure: Array<QueryNameSpace.FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>>;
|
|
132
|
+
filter: QueryNameSpace.Filter<QueryNameSpace.FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>, ComparisonOperator>[][];
|
|
133
|
+
order: Array<QueryNameSpace.Order>;
|
|
134
|
+
group: Array<QueryNameSpace.Group>;
|
|
135
|
+
limit?: QueryNameSpace.Limit;
|
|
136
|
+
offset?: QueryNameSpace.Offset;
|
|
35
137
|
};
|
|
138
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as Measure from '../Measure';
|
|
2
|
-
import { SupportedAggregates } from '../Aggregate';
|
|
3
2
|
import { DataType } from '../Field/types';
|
|
3
|
+
import { Result } from './types';
|
|
4
|
+
import { SupportedAggregates } from '../Aggregate';
|
|
4
5
|
import { PivotConfig } from '../PivotConfig/types';
|
|
5
6
|
import { QueryAttributes as QueryAttributesType } from '../QueryAttributes/types';
|
|
6
|
-
import { Result } from './types';
|
|
7
7
|
export declare type RawResult = {
|
|
8
8
|
content: any[][];
|
|
9
9
|
fields: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DataType } from '@vizzly/sqlbuilder-public';
|
|
2
1
|
import { PivotConfig } from '../PivotConfig/types';
|
|
3
2
|
import { FormattedResult } from './types';
|
|
3
|
+
import { DataType } from '@vizzly/sqlbuilder-public';
|
|
4
4
|
declare type Key = {
|
|
5
5
|
key: string;
|
|
6
6
|
keyFormatted: string;
|
|
@@ -3,8 +3,6 @@ import { QueryAttributes } from '../QueryAttributes/types';
|
|
|
3
3
|
export declare const id: (metric: QueryAttributes.TimeDimension) => string;
|
|
4
4
|
export declare const decodeId: (metric: string, supportedTimeTruncFunctions: SupportedTimeTruncFunctions) => QueryAttributes.TimeDimension | null;
|
|
5
5
|
export declare const vizzlyManagedTimeDimensions: SupportedTimeTruncFunctions;
|
|
6
|
-
declare
|
|
7
|
-
export declare const supportedTimeTruncFunctions: (keys?: SupportedTimeFunctions[] | undefined) => SupportedTimeTruncFunctions;
|
|
6
|
+
export declare const supportedTimeTruncFunctions: (keys?: import("../JSQueryEngine/types").JSQueryEngineTimeFunction[] | undefined) => SupportedTimeTruncFunctions;
|
|
8
7
|
export declare const isSupportedTimeTruncFunction: (supportedTimeFunctions: SupportedTimeTruncFunctions, proposedFunction: string) => boolean;
|
|
9
8
|
export declare const getPublicName: (id: keyof typeof vizzlyManagedTimeDimensions) => string;
|
|
10
|
-
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const build: (value: string | number | null, valueAlias?: {
|
|
3
|
-
[id: string]:
|
|
2
|
+
[id: string]: string | number;
|
|
4
3
|
} | import("./types").ValueAliasFunction | undefined, options?: {
|
|
5
4
|
fieldId?: string | null | undefined;
|
|
6
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;
|
|
@@ -2,7 +2,6 @@ import { AdditionalFilter, Field } from '../AdditionalFilter/types';
|
|
|
2
2
|
import { SelectedDrilldown } from '../Drilldown/Drilldown';
|
|
3
3
|
import { FeatureToggles } from '../FeatureToggle/types';
|
|
4
4
|
import { VariableList } from '../Variables/types';
|
|
5
|
-
import { AliasFields } from '../AliasFields/types';
|
|
6
5
|
declare type UpdateFilterType = {
|
|
7
6
|
properties: Partial<Omit<AdditionalFilter, 'appliesToFields'>> & {
|
|
8
7
|
appliesToFields: Array<Field>;
|
|
@@ -17,7 +16,6 @@ export declare type StateOptions = {
|
|
|
17
16
|
removeFilter?: Array<Field>;
|
|
18
17
|
featureToggles?: Partial<FeatureToggles>;
|
|
19
18
|
variables?: VariableList;
|
|
20
|
-
aliasFields?: AliasFields;
|
|
21
19
|
};
|
|
22
20
|
export declare type Resizing = {
|
|
23
21
|
timeout?: number;
|
|
@@ -3,19 +3,15 @@ import { PivotConfig } from '../PivotConfig/types';
|
|
|
3
3
|
import { Result } from '../Result/types';
|
|
4
4
|
import { ValueAlias } from '../ValueAlias/types';
|
|
5
5
|
import { DateTimeFormatter, NumberFormatter, Step, WaterfallChartRepresentation } from './types';
|
|
6
|
-
import { RulesField } from '../CustomField/types';
|
|
7
|
-
import { QueryAttributes } from '../QueryAttributes/types';
|
|
8
6
|
export declare type WaterfallChartRepresentationArgs = {
|
|
9
7
|
approxYAxisLabelCount: number;
|
|
10
8
|
axisTitles?: Component.AxisTitles;
|
|
11
|
-
comparison: RulesField | null;
|
|
12
9
|
dateTimeFormatOptions: {
|
|
13
10
|
[id: string]: DateTimeFormatter;
|
|
14
11
|
};
|
|
15
12
|
defaultFormats: () => {
|
|
16
13
|
[functionId: string]: string;
|
|
17
14
|
};
|
|
18
|
-
measure: QueryAttributes.Measure[];
|
|
19
15
|
nullValue?: string;
|
|
20
16
|
numberFormatOptions: {
|
|
21
17
|
[id: string]: NumberFormatter;
|
|
@@ -25,14 +21,14 @@ export declare type WaterfallChartRepresentationArgs = {
|
|
|
25
21
|
showTotalBar: boolean;
|
|
26
22
|
valueAlias?: ValueAlias;
|
|
27
23
|
xAxisFormat: FormatType;
|
|
28
|
-
xAxisPostfix: string;
|
|
29
24
|
xAxisPrefix: string;
|
|
25
|
+
xAxisPostfix: string;
|
|
30
26
|
yAxisFormat: FormatType;
|
|
31
|
-
yAxisPostfix: string;
|
|
32
27
|
yAxisPrefix: string;
|
|
28
|
+
yAxisPostfix: string;
|
|
33
29
|
};
|
|
34
30
|
export declare type WaterfallChartRepresentationResult = {
|
|
35
31
|
waterfallChartRepresentation: WaterfallChartRepresentation;
|
|
36
32
|
waterfallChartSteps: Step[];
|
|
37
33
|
};
|
|
38
|
-
export declare const buildWaterfallChartRepresentation: ({ approxYAxisLabelCount, axisTitles,
|
|
34
|
+
export declare const buildWaterfallChartRepresentation: ({ approxYAxisLabelCount, axisTitles, dateTimeFormatOptions, defaultFormats, nullValue, numberFormatOptions, pivotConfig, result, showTotalBar, valueAlias, xAxisFormat, xAxisPrefix, xAxisPostfix, yAxisFormat, yAxisPrefix, yAxisPostfix, }: WaterfallChartRepresentationArgs) => WaterfallChartRepresentationResult;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Tick } from '../ChartsV2/types';
|
|
2
|
-
import {
|
|
3
|
-
import { FormattedChartData, Result } from '../Result/types';
|
|
2
|
+
import { FormattedChartData } from '../Result/types';
|
|
4
3
|
import { Data, Step } from './types';
|
|
5
4
|
export declare type GetRepresentationDataArgs = {
|
|
6
5
|
content: FormattedChartData[][];
|
|
@@ -9,10 +8,8 @@ export declare type GetRepresentationDataArgs = {
|
|
|
9
8
|
approxYAxisLabelCount: number;
|
|
10
9
|
showTotalBar: boolean;
|
|
11
10
|
formattingFunctionY: (value: any) => string;
|
|
12
|
-
comparison: RulesField | null;
|
|
13
|
-
metricField: Result.Field | undefined;
|
|
14
11
|
};
|
|
15
|
-
export declare const getRepresentationData: (
|
|
12
|
+
export declare const getRepresentationData: ({ content, xKey, yKey, approxYAxisLabelCount, showTotalBar, formattingFunctionY, }: GetRepresentationDataArgs) => {
|
|
16
13
|
data: Data[];
|
|
17
14
|
steps: Step[];
|
|
18
15
|
xTicks: Tick<string>[];
|
|
@@ -5,4 +5,4 @@ export declare type GetYTicksArgs = {
|
|
|
5
5
|
approxYAxisLabelCount: number;
|
|
6
6
|
formattingFunctionY: (value: any) => string;
|
|
7
7
|
};
|
|
8
|
-
export declare const getYTicks: ({ yMinValue, yMaxValue, approxYAxisLabelCount, formattingFunctionY
|
|
8
|
+
export declare const getYTicks: ({ yMinValue, yMaxValue, approxYAxisLabelCount, formattingFunctionY }: GetYTicksArgs) => Tick<number>[];
|
|
@@ -55,7 +55,6 @@ export declare type WaterfallChartRepresentation = Omit<BaseChartRepresentation,
|
|
|
55
55
|
export declare type WaterfallChartOptions = {
|
|
56
56
|
showTooltipRoundedTotal: boolean;
|
|
57
57
|
showLegend: boolean;
|
|
58
|
-
showLabels: boolean;
|
|
59
58
|
removeStroke: boolean;
|
|
60
59
|
axis: {
|
|
61
60
|
showXAxisLabels: boolean;
|
|
@@ -8,7 +8,6 @@ import { Result } from '../../Result/types';
|
|
|
8
8
|
import { DataSet } from '../../DataSet/types';
|
|
9
9
|
import { IdentityConfig as IdentityConfigType } from '../../IdentityConfig/types';
|
|
10
10
|
import { VariableList } from '../../Variables/types';
|
|
11
|
-
import { AliasFields } from '../../AliasFields/types';
|
|
12
11
|
declare type CallbackError = null;
|
|
13
12
|
export declare type runQueriesCallback = (queries: Component.Attributes | AdditionalFilter | QueryAttributes[] | [PreparedQuery], params: {
|
|
14
13
|
dataSets: DataSet[];
|
|
@@ -16,7 +15,7 @@ export declare type runQueriesCallback = (queries: Component.Attributes | Additi
|
|
|
16
15
|
dataAccessToken?: string;
|
|
17
16
|
filterConfig?: FilterConfig;
|
|
18
17
|
}) => Promise<(Result | null)[] | Array<Result['content'] | null> | CallbackError>;
|
|
19
|
-
declare const getRunQueriesCallback: (identityConfig: IdentityConfigType, queryEngineConfig: QueryEngineConfigType, timeRangeOptions: TimeRangeOptions, variables: VariableList,
|
|
18
|
+
declare const getRunQueriesCallback: (identityConfig: IdentityConfigType, queryEngineConfig: QueryEngineConfigType, timeRangeOptions: TimeRangeOptions, variables: VariableList, runQueries?: ((queries: import("../../../../shared-logic/src/Query/types").Query<string, string, string>[], params: {
|
|
20
19
|
dataSets: import("../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../shared-logic/src/DataSet/types").DataSet.Field>[];
|
|
21
20
|
abortSignal?: AbortSignal | undefined;
|
|
22
21
|
dataAccessToken?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BasicTableComponentInterface } from './BasicTable';
|
|
2
1
|
import { Component, ComponentType } from './Component/types';
|
|
3
2
|
import { ComponentInterface, ComponentInterfaceConfig } from './ComponentInterface/types';
|
|
3
|
+
import { BasicTableComponentInterface } from './BasicTable';
|
|
4
4
|
declare function getComponentInterface(type: 'custom', config?: ComponentInterfaceConfig): ComponentInterface<Component.CustomViewAttributes>;
|
|
5
5
|
declare function getComponentInterface(type: 'pieChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.PieChartAttributes>;
|
|
6
6
|
declare function getComponentInterface(type: 'bubbleChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.BubbleChartAttributes>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Component } from '../../src/Component/types';
|
|
2
|
-
export declare const getGroupingFeedbackMessage: (attributes: Component.Attributes) => string;
|
|
2
|
+
export declare const getGroupingFeedbackMessage: (attributes: Component.Attributes) => string | null;
|
|
3
3
|
export declare const chartHasDimensions: (attributes: Component.Attributes) => boolean;
|
|
4
|
-
export declare const createFeedback: (attribute: Component.Attributes) => string | true;
|
|
4
|
+
export declare const createFeedback: (attribute: Component.Attributes) => string | true | null;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { VizzlyComponents } from '../types';
|
|
2
|
+
import { Result } from '../../../shared-logic/src/Result/types';
|
|
1
3
|
import { FilterConfig } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
2
4
|
import { DataSet } from '../../../shared-logic/src/DataSet/types';
|
|
3
|
-
import { Result } from '../../../shared-logic/src/Result/types';
|
|
4
|
-
import { UseVariableState } from '../contexts/Variables/types';
|
|
5
|
-
import { VizzlyComponents } from '../types';
|
|
6
5
|
import { QueryableEntity } from './useQueryEffect/types';
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
import { UseVariableState } from '../contexts/Variables/types';
|
|
7
|
+
export declare const useQueryEffect: (queries: QueryableEntity, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, onResultsCallback: (results: Array<Result | null>) => void, filterConfig: FilterConfig, dataSet: DataSet, componentType?: "progress" | "areaChart" | "areaChartV2" | "barChart" | "barChartV2" | "basicTable" | "bubbleChart" | "bubbleChartV2" | "comboChart" | "comboChartV2" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "lineChartV2" | "mercatorMap" | "pieChart" | "radarChart" | "richText" | "scatterChart" | "singleStat" | "sunburstChart" | "waterfallChart" | undefined, variables?: UseVariableState | undefined) => {
|
|
9
8
|
queriesAreChanging: boolean;
|
|
10
9
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const List: import("react").FunctionComponent<{
|
|
3
3
|
children: import("react").ReactNode;
|
|
4
|
-
as?: "symbol" | "object" | "filter" | "
|
|
4
|
+
as?: "symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "menuitem" | "legend" | "desc" | "title" | "big" | "link" | "sup" | "header" | "select" | "input" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "ins" | "kbd" | "keygen" | "label" | "li" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "slot" | "script" | "section" | "source" | "span" | "strong" | "summary" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | undefined;
|
|
5
5
|
paddingRight?: string | number | (string & {}) | undefined;
|
|
6
6
|
}> & {
|
|
7
7
|
Cell: import("react").ForwardRefExoticComponent<{
|
|
@@ -25,7 +25,7 @@ export declare const List: import("react").FunctionComponent<{
|
|
|
25
25
|
}>;
|
|
26
26
|
Heading: import("react").FunctionComponent<{
|
|
27
27
|
children: import("react").ReactNode;
|
|
28
|
-
as?: "symbol" | "object" | "filter" | "
|
|
28
|
+
as?: "symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "menuitem" | "legend" | "desc" | "title" | "big" | "link" | "sup" | "header" | "select" | "input" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "ins" | "kbd" | "keygen" | "label" | "li" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "slot" | "script" | "section" | "source" | "span" | "strong" | "summary" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | undefined;
|
|
29
29
|
themeClassName?: import("../..").VizzlyTheming.FontStyle | undefined;
|
|
30
30
|
className?: string | undefined;
|
|
31
31
|
id?: string | undefined;
|
|
@@ -4,7 +4,7 @@ export declare const Panel: React.ForwardRefExoticComponent<{
|
|
|
4
4
|
testId?: string | undefined;
|
|
5
5
|
vizzlyPrefix?: string | undefined;
|
|
6
6
|
transform?: boolean | undefined;
|
|
7
|
-
role?:
|
|
7
|
+
role?: (string & {}) | "grid" | "none" | "button" | "checkbox" | "listbox" | "radio" | "region" | "cell" | "table" | "row" | "menu" | "listitem" | "menubar" | "menuitem" | "progressbar" | "separator" | "tab" | "tabpanel" | "toolbar" | "tooltip" | "treeitem" | "scrollbar" | "heading" | "search" | "link" | "article" | "dialog" | "figure" | "form" | "img" | "main" | "option" | "switch" | "alert" | "alertdialog" | "application" | "banner" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "directory" | "document" | "feed" | "gridcell" | "group" | "list" | "log" | "marquee" | "math" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "presentation" | "radiogroup" | "rowgroup" | "rowheader" | "searchbox" | "slider" | "spinbutton" | "status" | "tablist" | "term" | "textbox" | "timer" | "tree" | "treegrid" | undefined;
|
|
8
8
|
onHover?: ((active: boolean) => void) | undefined;
|
|
9
9
|
width?: CSSProperties['width'];
|
|
10
10
|
padding?: CSSProperties['padding'];
|
|
@@ -14,7 +14,7 @@ export declare const Section: React.FunctionComponent<RawSectionProps> & {
|
|
|
14
14
|
Panel: React.FunctionComponent<{
|
|
15
15
|
title?: string | ReactNode;
|
|
16
16
|
children: ReactNode;
|
|
17
|
-
as?: "symbol" | "object" | "filter" | "
|
|
17
|
+
as?: "symbol" | "object" | "clipPath" | "filter" | "mask" | "marker" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "menuitem" | "legend" | "desc" | "title" | "big" | "link" | "sup" | "header" | "select" | "input" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "ins" | "kbd" | "keygen" | "label" | "li" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "slot" | "script" | "section" | "source" | "span" | "strong" | "summary" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | undefined;
|
|
18
18
|
}>;
|
|
19
19
|
Container: React.FunctionComponent<{
|
|
20
20
|
children: ReactNode;
|
|
@@ -58,7 +58,7 @@ export declare const Table: import("react").ForwardRefExoticComponent<{
|
|
|
58
58
|
onSort?: (() => void) | undefined;
|
|
59
59
|
onChange?: (() => void) | undefined;
|
|
60
60
|
label: string;
|
|
61
|
-
direction?: "
|
|
61
|
+
direction?: "asc" | "desc" | undefined;
|
|
62
62
|
showTooltip?: boolean | undefined;
|
|
63
63
|
testIdPrefix?: string | undefined;
|
|
64
64
|
sortLabel?: string | undefined;
|
package/dist/shared-ui/src/components/AdditionalFilter/AdvancedPicker/AdvancedSelectFilter.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ export declare const AdvancedSelectFilter: (props: import("react").PropsWithChil
|
|
|
6
6
|
dataSets: import("../../../../../dashboard/src").DataSet<import("../../../../../dashboard/src").DataSet.Field>[];
|
|
7
7
|
onChange: (filter: NumericFilter | MultiSelectFilterType) => void;
|
|
8
8
|
showClearBtn?: boolean | undefined;
|
|
9
|
-
type: Pick<import("../../../../../shared-logic/src/Field/types").DataType, number | "
|
|
9
|
+
type: Pick<import("../../../../../shared-logic/src/Field/types").DataType, number | "replace" | "fixed" | "repeat" | "slice" | "small" | "sub" | "bold" | "blink" | "toString" | "charAt" | "charCodeAt" | "concat" | "indexOf" | "lastIndexOf" | "localeCompare" | "match" | "search" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "length" | "substr" | "valueOf" | "codePointAt" | "includes" | "endsWith" | "normalize" | "startsWith" | "anchor" | "big" | "fontcolor" | "fontsize" | "italics" | "link" | "strike" | "sup" | "padStart" | "padEnd" | "trimEnd" | "trimStart" | "trimLeft" | "trimRight" | "matchAll" | "replaceAll" | "at">;
|
|
10
10
|
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
11
11
|
}>) => JSX.Element;
|
|
@@ -11,7 +11,7 @@ export declare const FiltersModal: FunctionComponent<{
|
|
|
11
11
|
show: boolean;
|
|
12
12
|
onClose: () => void;
|
|
13
13
|
source: 'local' | 'global';
|
|
14
|
-
onDeleteItem: (
|
|
14
|
+
onDeleteItem: (index: number) => void;
|
|
15
15
|
onUpdate: (payload: FilterInputPayload) => void;
|
|
16
16
|
}>;
|
|
17
17
|
export declare function updateFilters(filters: AdditionalFilter[], payload: FilterInputPayload): AdditionalFilter[];
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { VizzlyComponents } from '../../types';
|
|
3
2
|
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
4
3
|
export declare const asyncLoadFilterOptions: <T extends {
|
|
5
4
|
label: string | number | Function;
|
|
6
5
|
value: string | number;
|
|
7
6
|
}>(filter: AdditionalFilter, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, valueAlias?: {
|
|
8
|
-
[id: string]:
|
|
7
|
+
[id: string]: string | number;
|
|
9
8
|
} | import("../../../../shared-logic/src/ValueAlias/types").ValueAliasFunction | undefined) => (abortSignal: AbortSignal) => Promise<T[]>;
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { VizzlyTheming } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Calculates the width of the given text by creating a temporary HTML element and measuring its offsetWidth.
|
|
5
|
-
* @param text - The text string to measure.
|
|
6
|
-
* @param element - The HTML element type to use for measurement (e.g., 'span').
|
|
7
|
-
* @param styles - Optional styling properties, including fontSize and fontWeight.
|
|
8
|
-
* @returns The calculated width of the text in pixels.
|
|
9
|
-
* OBS: For every function call you should use useMemo to avoid infinitely re-renders (especially in Google Chrome).
|
|
10
|
-
*/
|
|
11
3
|
export declare const calculateTextWidth: (text: string, element: keyof JSX.IntrinsicElements, styles?: {
|
|
12
4
|
fontSize?: CSSProperties['fontSize'];
|
|
13
5
|
fontWeight?: CSSProperties['fontWeight'];
|
|
@@ -18,11 +10,4 @@ export declare const getFontProperties: (element: HTMLElement) => {
|
|
|
18
10
|
fontSize: string;
|
|
19
11
|
letterSpacing: string;
|
|
20
12
|
};
|
|
21
|
-
/**
|
|
22
|
-
* Calculates the width of a label text, ensuring a minimum width.
|
|
23
|
-
* @param label - The text label to measure.
|
|
24
|
-
* @param labelStyles - Optional styling properties from the theme, including fontSize and fontWeight.
|
|
25
|
-
* @returns The calculated width in pixels, with a minimum of 124 (100 + 24 for padding).
|
|
26
|
-
* OBS: For every function call you should use useMemo to avoid infinitely re-renders (especially in Google Chrome).
|
|
27
|
-
*/
|
|
28
13
|
export declare function calculateLabelWidth(label: string, labelStyles?: VizzlyTheming.Select): number;
|
|
@@ -15,6 +15,6 @@ export declare type AreaChartViewProps = VizzlyComponents.ViewProps<Component.Ar
|
|
|
15
15
|
export declare const defaultProps: Omit<Component.AreaChartAttributes, 'dataSetId'>;
|
|
16
16
|
declare const memoized: React.MemoExoticComponent<{
|
|
17
17
|
(props: AreaChartViewProps): JSX.Element;
|
|
18
|
-
defaultProps: Pick<Component.AreaChartAttributes, "
|
|
18
|
+
defaultProps: Pick<Component.AreaChartAttributes, "filter" | "order" | "offset" | "measure" | "dimension" | "timeDimension" | "limit" | "type" | "viewId" | "displayTitle" | "displaySubject" | "protectedByOrganisation" | "tags" | "stacked" | "conditionalFormattingRules" | "xAxisPrefix" | "yAxisPrefix" | "xAxisPostfix" | "yAxisPostfix" | "xAxisFormat" | "yAxisFormat" | "approxXAxisLabelCount" | "approxYAxisLabelCount" | "drilldown" | "legend" | "parameters" | "goalLines" | "axisTitles" | "headline" | "lineCurve">;
|
|
19
19
|
}>;
|
|
20
20
|
export default memoized;
|