@vizzly/dashboard 0.14.3 → 0.14.4-dev-e20496d46b8f1db9142fb978a46d77efd06b995f
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/PieChart/PieChart.d.ts +2 -2
- package/dist/charts/src/types.d.ts +3 -2
- package/dist/charts/src/utils/buildTooltipStyles.d.ts +3 -4
- package/dist/charts/src/v2/components/GoalLine/GoalLine.d.ts +15 -0
- package/dist/charts/src/v2/components/GoalLine/index.d.ts +1 -0
- package/dist/charts/src/v2/components/Legend/Legend.d.ts +14 -0
- package/dist/charts/src/v2/components/Legend/LegendItem/LegendItem.d.ts +11 -0
- package/dist/charts/src/v2/components/Legend/LegendItem/index.d.ts +1 -0
- package/dist/charts/src/v2/components/Legend/LegendItemBox/LegendItemBox.d.ts +3 -0
- package/dist/charts/src/v2/components/Legend/LegendItemBox/index.d.ts +1 -0
- package/dist/charts/src/v2/components/Legend/index.d.ts +1 -0
- package/dist/charts/src/v2/components/LineChart/LineChart.d.ts +20 -0
- package/dist/charts/src/v2/components/LineChart/buildMargin.d.ts +9 -0
- package/dist/charts/src/v2/components/LineChart/index.d.ts +1 -0
- package/dist/charts/src/v2/components/Tooltip/Tooltip.d.ts +21 -0
- package/dist/charts/src/v2/components/Tooltip/index.d.ts +1 -0
- package/dist/charts/src/v2/constants/COLORS.d.ts +1 -0
- package/dist/charts/src/v2/index.d.ts +1 -0
- package/dist/charts/src/v2/types.d.ts +1 -0
- package/dist/charts/src/v2/utils/addTrendAndForecast.d.ts +21 -0
- package/dist/charts/src/v2/utils/flattenData.d.ts +14 -0
- package/dist/charts/src/v2/utils/getChartThemeCSS.d.ts +9 -0
- package/dist/charts/src/v2/utils/getClipArea.d.ts +16 -0
- package/dist/charts/src/v2/utils/getColor.d.ts +9 -0
- package/dist/charts/src/v2/utils/getTooltipData.d.ts +30 -0
- package/dist/charts/src/v2/utils/getTrend.d.ts +24 -0
- package/dist/charts/src/v2/utils/index.d.ts +7 -0
- package/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +12 -30
- package/dist/index.js +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/AreaChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/BarChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/BasicTable/toQueries.d.ts +1 -1
- 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 +4 -0
- 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/RichText/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/commonToQueries.d.ts +1 -1
- package/dist/services/src/index.d.ts +0 -1
- package/dist/shared-logic/src/AdditionalFilter/AdditionalFilter.d.ts +1 -1
- package/dist/shared-logic/src/AdditionalFilter/constants.d.ts +0 -3
- package/dist/shared-logic/src/AdditionalFilter/types.d.ts +0 -1
- package/dist/shared-logic/src/Component/setAttributes.d.ts +1 -1
- package/dist/shared-logic/src/Component/types.d.ts +24 -3
- package/dist/shared-logic/src/ComponentInterface/types.d.ts +2 -0
- package/dist/shared-logic/src/CustomField/CustomField.d.ts +3 -2
- package/dist/shared-logic/src/CustomField/CustomMetric/build.d.ts +11 -0
- package/dist/shared-logic/src/CustomField/CustomMetric/combineFilters.d.ts +2 -0
- package/dist/shared-logic/src/CustomField/CustomMetric/index.d.ts +10 -0
- package/dist/shared-logic/src/CustomField/CustomMetric/mockDataSet.d.ts +2 -0
- package/dist/shared-logic/src/CustomField/types.d.ts +10 -2
- package/dist/shared-logic/src/DataSet/DataSet.d.ts +1 -1
- package/dist/shared-logic/src/FeatureToggle/types.d.ts +4 -0
- package/dist/shared-logic/src/Filter/combineFilters.d.ts +1 -0
- package/dist/shared-logic/src/Filter/relative.d.ts +2 -1
- package/dist/shared-logic/src/LineChartV2/adjustTicks.d.ts +3 -0
- package/dist/shared-logic/src/LineChartV2/attributesSchema.d.ts +3 -0
- package/dist/shared-logic/src/LineChartV2/buildLineChartRepresentation.d.ts +39 -0
- package/dist/shared-logic/src/LineChartV2/buildTrendAndForecast.d.ts +25 -0
- package/dist/shared-logic/src/LineChartV2/constants.d.ts +3 -0
- package/dist/shared-logic/src/LineChartV2/getAxisFormattingFunction.d.ts +13 -0
- package/dist/shared-logic/src/LineChartV2/getConditionalFormatting.d.ts +7 -0
- package/dist/shared-logic/src/LineChartV2/getData.d.ts +18 -0
- package/dist/shared-logic/src/LineChartV2/getGoalLines.d.ts +10 -0
- package/dist/shared-logic/src/LineChartV2/getMinAndMax.d.ts +14 -0
- package/dist/shared-logic/src/LineChartV2/getScaleAndTicks.d.ts +50 -0
- package/dist/shared-logic/src/LineChartV2/getStyleDefinition.d.ts +8 -0
- package/dist/shared-logic/src/LineChartV2/getTrendsAndForecastsData.d.ts +41 -0
- package/dist/shared-logic/src/LineChartV2/getXScale.d.ts +18 -0
- package/dist/shared-logic/src/LineChartV2/index.d.ts +4 -0
- package/dist/shared-logic/src/LineChartV2/prepareData.d.ts +34 -0
- package/dist/shared-logic/src/LineChartV2/setAttributes.d.ts +4 -0
- package/dist/shared-logic/src/LineChartV2/types.d.ts +79 -0
- package/dist/shared-logic/src/Logger/Logger.d.ts +2 -0
- package/dist/shared-logic/src/Result/Result.d.ts +0 -1
- package/dist/shared-logic/src/Result/types.d.ts +2 -0
- package/dist/shared-logic/src/Variables/Variables.d.ts +1 -0
- package/dist/shared-logic/src/getComponentInterface.d.ts +1 -0
- package/dist/shared-ui/src/api/useQueryEffect.d.ts +1 -1
- package/dist/shared-ui/src/base/MultiSelect.d.ts +1 -0
- package/dist/shared-ui/src/base/Select/Control.d.ts +1 -0
- package/dist/shared-ui/src/base/layout/Flex.styles.d.ts +1 -0
- package/dist/shared-ui/src/components/ComboChart/ComboChartView.d.ts +1 -4
- package/dist/shared-ui/src/components/CustomMetric/CustomMetric.d.ts +5 -2
- package/dist/shared-ui/src/components/CustomMetric/CustomMetricField.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/CustomMetricVariable.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/MetricOverview.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/OperatorIcon.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/buildCustomMetric.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/formatFormula.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/init.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/{pickAvailableItems.d.ts → items.d.ts} +13 -3
- package/dist/shared-ui/src/components/HeadlineStats/HeadlineStats.d.ts +2 -1
- package/dist/shared-ui/src/components/ItemPicker/ItemPicker.d.ts +4 -4
- package/dist/shared-ui/src/components/LineChartV2/LineChartV2.d.ts +22 -0
- package/dist/shared-ui/src/components/LineChartV2/LineChartV2View.d.ts +17 -0
- package/dist/shared-ui/src/components/LineChartV2/index.d.ts +2 -0
- package/dist/shared-ui/src/components/Studio/StudioModals.d.ts +1 -1
- package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +1 -1
- package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +7 -1
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/CustomMetric/CustomMetricModal.d.ts +3 -0
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/CustomMetric/types.d.ts +3 -0
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/CustomMetric/useCustomMetric.d.ts +16 -0
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/customMetricText.d.ts +3 -11
- package/dist/shared-ui/src/library/DataPanel/CustomMetricsInput.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/SortInput/formatTitleWithAggregate.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/SortInput.d.ts +2 -0
- package/dist/shared-ui/src/library/DataPanel/Trends/TrendsInput.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/Trends/types.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/removeHiddenFieldsFromAttributes.d.ts +6 -0
- package/package.json +3 -3
- package/dist/shared-ui/src/library/DataPanel/deleteRemovedHiddenFieldsFromAttributes.ts.d.ts +0 -6
- /package/dist/{shared-ui/src/components → shared-logic/src/CustomField}/CustomMetric/types.d.ts +0 -0
- /package/dist/shared-ui/src/components/CustomMetric/{pickAvailableItems.test.d.ts → items.test.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
2
|
+
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
|
+
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
1
|
+
export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
|
|
2
2
|
queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
|
|
3
3
|
resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
|
|
4
4
|
};
|
|
@@ -4,7 +4,7 @@ import { Query as QueryType } from '../../../../shared-logic/src/Query/types';
|
|
|
4
4
|
import { QueryEngineConfig } from '../../../../shared-logic/src/QueryEngineConfig/types';
|
|
5
5
|
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
6
6
|
import { Params } from '../../types';
|
|
7
|
-
export declare const commonToQueries: (attributes: Component.AreaChartAttributes | Component.BarChartAttributes | Component.DataTableAttributes | Component.BasicTableAttributes | Component.HorizontalBarChartAttributes | Component.LineChartAttributes | Component.PieChartAttributes | Component.FunnelChartAttributes | Component.RichTextAttributes, dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params) => {
|
|
7
|
+
export declare const commonToQueries: (attributes: Component.AreaChartAttributes | Component.BarChartAttributes | Component.DataTableAttributes | Component.BasicTableAttributes | Component.HorizontalBarChartAttributes | Component.LineChartAttributes | Component.LineChartV2Attributes | Component.PieChartAttributes | Component.FunnelChartAttributes | Component.RichTextAttributes, dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params) => {
|
|
8
8
|
queries: QueryType[];
|
|
9
9
|
resultFields: Result.Field[][];
|
|
10
10
|
};
|
|
@@ -90,7 +90,6 @@ declare class VizzlyServices {
|
|
|
90
90
|
query(queries: Query[], params?: QueryParams): Promise<QueryResponse>;
|
|
91
91
|
static upcastDashboard(dashboard: DashboardFromAPI, dataSets: DataSet[], queryEngineConfig: QueryEngineConfig): Array<DashboardLogic.Dashboard>;
|
|
92
92
|
static filterDashboards(dashboards: DashboardLogic.Dashboard[], options: FilterDashboardOptions): DashboardLogic.Dashboard[];
|
|
93
|
-
static validateDashboard(dashboard: unknown): void;
|
|
94
93
|
updateGlobalLibrary(params: UpdateGlobalLibraryParams): Promise<GlobalLibrary | undefined>;
|
|
95
94
|
private static eventBusController;
|
|
96
95
|
/**
|
|
@@ -15,7 +15,7 @@ export declare function removeBrokenFiltersThenLoad(filters: AdditionalFilter[],
|
|
|
15
15
|
} | undefined): AdditionalFilter[];
|
|
16
16
|
export declare const dump: (hydrated: AdditionalFilter) => AdditionalFilter;
|
|
17
17
|
export declare const load: (dumped: AdditionalFilter, componentInterfaceConfig?: import("../ComponentInterface/types").ComponentInterfaceConfig | undefined) => AdditionalFilter;
|
|
18
|
-
export declare const toRelativeQueryAttributesFilters: (filters: DateAndTimeFilter | DateFilter, startDate?: Date | undefined) => QueryAttributes.Filter[];
|
|
18
|
+
export declare const toRelativeQueryAttributesFilters: (filters: DateAndTimeFilter | DateFilter, dataSet: DataSet, startDate?: Date | undefined) => QueryAttributes.Filter[];
|
|
19
19
|
export declare const hasActiveFilter: (additionalFilters: AdditionalFilter[]) => boolean;
|
|
20
20
|
export declare const getTitle: (additionalFilter: AdditionalFilter, dataSets: DataSet[], textOverride?: TextOverride | undefined) => string;
|
|
21
21
|
export declare const requiredFiltersAreSet: (filter: AdditionalFilter | AdditionalFilter[]) => boolean;
|
|
@@ -8,9 +8,6 @@ export declare const DATE_TIME_FILTER = "dateTimeFilter";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const DATE_AND_TIME_FILTER = "dateAndTimeFilter";
|
|
10
10
|
export declare const SINGLE_SELECT_FILTER = "singleSelectFilter";
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated The "multiSelectFilter" has been deprecated. Use "advancedFilter".
|
|
13
|
-
*/
|
|
14
11
|
export declare const MULTI_SELECT_FILTER = "multiSelectFilter";
|
|
15
12
|
/**
|
|
16
13
|
* @deprecated The "numericFilter" has been deprecated. Use "advancedFilter".
|
|
@@ -19,7 +19,6 @@ declare type BaseAdditionalFilter<T extends AdditionalFilterType> = {
|
|
|
19
19
|
* NOTE:
|
|
20
20
|
* - The "dateTimeFilter" type value has been deprecated. Use "dateFilter".
|
|
21
21
|
* - The "dateAndTimeFilter" type value has been deprecated. Use "dateFilter".
|
|
22
|
-
* - The "multiSelectFilter" type value has been deprecated. Use "advancedFilter".
|
|
23
22
|
* - The "numericFilter" type value has been deprecated. Use "advancedFilter".
|
|
24
23
|
*/
|
|
25
24
|
type: T;
|
|
@@ -7,5 +7,5 @@ export declare const removeUnusedOrderFieldsFromTimeSeriesComponent: <T extends
|
|
|
7
7
|
timeDimension?: QueryAttributes.TimeDimension | null | undefined;
|
|
8
8
|
dimension: Array<QueryAttributes.Dimension>;
|
|
9
9
|
}>(attributes: T) => T;
|
|
10
|
-
declare const setAttributes: <Attributes extends Component.Attributes>(attributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes>, partialAttributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes>, schema: Joi.ObjectSchema<any>) => Attributes;
|
|
10
|
+
declare const setAttributes: <Attributes extends Component.Attributes>(attributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.LineChartV2Attributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes>, partialAttributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.LineChartV2Attributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes>, schema: Joi.ObjectSchema<any>) => Attributes;
|
|
11
11
|
export default setAttributes;
|
|
@@ -12,7 +12,7 @@ import { DataSet } from '../DataSet/types';
|
|
|
12
12
|
export declare type getNumberFormatter = (formatterId: string | undefined | null) => (number: number) => string;
|
|
13
13
|
export declare type FormatType = string | null;
|
|
14
14
|
export declare type ApproxAxisLabelCount = 'auto' | number;
|
|
15
|
-
export declare type ComponentType = 'areaChart' | 'barChart' | 'basicTable' | 'comboChart' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'mercatorMap' | 'pieChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat';
|
|
15
|
+
export declare type ComponentType = 'areaChart' | 'barChart' | 'basicTable' | 'comboChart' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat';
|
|
16
16
|
export declare const componentTypes: string[];
|
|
17
17
|
export declare namespace Component {
|
|
18
18
|
export type LineCurve = 'natural' | 'straight' | 'step' | 'stepBefore' | 'stepAfter' | 'dotted';
|
|
@@ -167,6 +167,27 @@ export declare namespace Component {
|
|
|
167
167
|
headline?: Headline;
|
|
168
168
|
trends?: Array<Trends>;
|
|
169
169
|
};
|
|
170
|
+
export type LineChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
|
|
171
|
+
type: 'lineChartV2';
|
|
172
|
+
stacked?: boolean | '100%';
|
|
173
|
+
xAxisPrefix: string;
|
|
174
|
+
yAxisPrefix: string;
|
|
175
|
+
xAxisPostfix: string;
|
|
176
|
+
yAxisPostfix: string;
|
|
177
|
+
lineCurve: LineCurve;
|
|
178
|
+
xAxisFormat: FormatType;
|
|
179
|
+
yAxisFormat: FormatType;
|
|
180
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
181
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
182
|
+
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
183
|
+
drilldown: QueryAttributes.Dimension[];
|
|
184
|
+
legend: boolean;
|
|
185
|
+
parameters?: Parameters;
|
|
186
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
187
|
+
axisTitles?: AxisTitles;
|
|
188
|
+
headline?: Headline;
|
|
189
|
+
trends?: Array<Trends>;
|
|
190
|
+
};
|
|
170
191
|
export type PieChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
171
192
|
type: 'pieChart';
|
|
172
193
|
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
@@ -312,8 +333,8 @@ export declare namespace Component {
|
|
|
312
333
|
goalLines?: Array<Component.GoalLine.Rule>;
|
|
313
334
|
axisTitles?: AxisTitles;
|
|
314
335
|
};
|
|
315
|
-
export type ViewType = 'areaChart' | 'barChart' | 'basicTable' | 'comboChart' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'mercatorMap' | 'pieChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat';
|
|
316
|
-
export type Attributes = AreaChartAttributes | BarChartAttributes | BasicTableAttributes | ComboChartAttributes | CustomViewAttributes | DataTableAttributes | FunnelChartAttributes | HorizontalBarChartAttributes | LineChartAttributes | MercatorMapAttributes | PieChartAttributes | ProgressAttributes | RichTextAttributes | ScatterChartAttributes | SingleStatAttributes;
|
|
336
|
+
export type ViewType = 'areaChart' | 'barChart' | 'basicTable' | 'comboChart' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat';
|
|
337
|
+
export type Attributes = AreaChartAttributes | BarChartAttributes | BasicTableAttributes | ComboChartAttributes | CustomViewAttributes | DataTableAttributes | FunnelChartAttributes | HorizontalBarChartAttributes | LineChartAttributes | LineChartV2Attributes | MercatorMapAttributes | PieChartAttributes | ProgressAttributes | RichTextAttributes | ScatterChartAttributes | SingleStatAttributes;
|
|
317
338
|
export interface RenderTableCell {
|
|
318
339
|
viewId: string;
|
|
319
340
|
type: 'basicTable' | 'dataTable';
|
|
@@ -8,6 +8,7 @@ import DataSetNotFound from '../errors/DataSetNotFound';
|
|
|
8
8
|
import CorruptedView from '../errors/CorruptedView';
|
|
9
9
|
import { ComponentInterfaceConfig } from './types/ComponentInterfaceConfig';
|
|
10
10
|
import { ComponentNamespace } from './types/namespaces.types';
|
|
11
|
+
import { AcceptedTypes } from '../CustomField/types';
|
|
11
12
|
export * from './types/ComponentInterfaceConfig';
|
|
12
13
|
export interface ComponentInterface<Hydrated = any, Dumped = any> extends Dumpable<Hydrated, Dumped> {
|
|
13
14
|
title: string;
|
|
@@ -33,6 +34,7 @@ export interface ComponentInterface<Hydrated = any, Dumped = any> extends Dumpab
|
|
|
33
34
|
roundedNumbers: boolean;
|
|
34
35
|
dateCalculations: boolean;
|
|
35
36
|
conditional: boolean;
|
|
37
|
+
calculatedField: Array<AcceptedTypes> | false;
|
|
36
38
|
};
|
|
37
39
|
supportedFeatures: {
|
|
38
40
|
parameters: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataSet as DataSetType } from '../DataSet/types';
|
|
2
|
-
import { AggregateMathField, ConditionalField, CustomField, PercentageField, RoundedNumberField, RulesField, SimpleMathField } from '../CustomField/types';
|
|
2
|
+
import { AggregateMathField, ConditionalField, CustomField, DateCalculationField, MetricField, PercentageField, RoundedNumberField, RulesField, SimpleMathField } from '../CustomField/types';
|
|
3
3
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
4
4
|
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
5
5
|
import { Query } from '../Query/types';
|
|
@@ -11,7 +11,8 @@ export declare const isAggregateMathField: (field: DataSetType.Field) => field i
|
|
|
11
11
|
export declare const isPercentageField: (field: DataSetType.Field) => field is PercentageField;
|
|
12
12
|
export declare const isRules: (field: DataSetType.Field) => field is RulesField;
|
|
13
13
|
export declare const isConditional: (field: DataSetType.Field) => field is ConditionalField;
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const isMetric: (field: DataSetType.Field) => field is MetricField;
|
|
15
|
+
export declare const isDateCalculation: (field: DataSetType.Field) => field is DateCalculationField;
|
|
15
16
|
export declare const getCustomFieldCategory: (field: CustomField) => CustomFieldCategory;
|
|
16
17
|
export declare const isCustomField: (field: DataSetType.Field) => field is CustomField;
|
|
17
18
|
/**
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DataSet } from '../../DataSet/types';
|
|
2
|
+
import { Query, QueryNameSpace } from '../../Query/types';
|
|
3
|
+
import * as Filter from '../../Filter';
|
|
4
|
+
import * as Types from './types';
|
|
5
|
+
import { QueryAttributes } from '../../QueryAttributes/types';
|
|
6
|
+
import { Params } from '../../../../results-driver/src/types';
|
|
7
|
+
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
8
|
+
export declare const buildOperator: (operator: Types.Operator, dataSet: DataSet, params: Params, measureAttribute?: QueryAttributes.Measure | undefined) => Query['measure'][number];
|
|
9
|
+
export declare const buildIfLogic: (ifLogic: Types.IfLogic, dataSet: DataSet, localAndDashboardFilters: QueryAttributes.Filter[], queryEngineConfig: QueryEngineConfig, params: Params, measureAttribute?: QueryAttributes.Measure | undefined) => QueryNameSpace.FieldDefinition<string, string, string>;
|
|
10
|
+
export declare const buildNumber: (numberInput: Types.NumberInput) => QueryNameSpace.FieldDefinition<string, string, string>;
|
|
11
|
+
export declare const buildField: (field: Types.Field) => QueryNameSpace.FieldDefinition<string, string, string>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DataSet } from '../../DataSet/types';
|
|
2
|
+
import { Query } from '../../Query/types';
|
|
3
|
+
import * as Types from './types';
|
|
4
|
+
import { QueryAttributes } from '../../QueryAttributes/types';
|
|
5
|
+
import { Params } from '../../../../results-driver/src/types';
|
|
6
|
+
import { QueryEngineConfig } from '../../QueryEngineConfig/types';
|
|
7
|
+
import { MetricField } from '../types';
|
|
8
|
+
export declare const init: (publicName: string, metric: Types.Metric, queryEngineConfig: QueryEngineConfig) => MetricField;
|
|
9
|
+
export declare const build: (measureAttribute: QueryAttributes.Measure, customField: MetricField, dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params) => Query['measure'][number];
|
|
10
|
+
export declare const validate: (field: MetricField) => boolean;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
2
2
|
import { BaseField, DataType, NonDateTimeField } from '../Field/types';
|
|
3
3
|
import { Rules } from './Rules/types';
|
|
4
|
+
import { Metric } from './CustomMetric/types';
|
|
4
5
|
declare type BaseCustomField = Omit<NonDateTimeField, 'dashboardFilterGroups'>;
|
|
5
6
|
export declare type PercentageField = BaseCustomField & Percentage;
|
|
6
7
|
export declare type RoundedNumberField = BaseCustomField & RoundedNumber;
|
|
7
8
|
export declare type DateCalculationField = BaseCustomField & DateCalculation;
|
|
8
9
|
export declare type AggregateMathField = BaseCustomField & AggregateMath;
|
|
9
10
|
export declare type ConditionalField = BaseCustomField & Conditional;
|
|
11
|
+
export declare type MetricField = BaseCustomField & {
|
|
12
|
+
metric: Metric;
|
|
13
|
+
};
|
|
10
14
|
export declare type SimpleMathField = BaseCustomField & SimpleMath & {
|
|
11
15
|
dataType: 'number';
|
|
12
16
|
};
|
|
@@ -14,7 +18,7 @@ export interface RulesField extends BaseField {
|
|
|
14
18
|
rules: Rules[];
|
|
15
19
|
dataType: 'string';
|
|
16
20
|
}
|
|
17
|
-
export declare type CustomField = PercentageField | SimpleMathField | AggregateMathField | RulesField | RoundedNumberField | DateCalculationField | ConditionalField;
|
|
21
|
+
export declare type CustomField = PercentageField | SimpleMathField | AggregateMathField | RulesField | RoundedNumberField | DateCalculationField | ConditionalField | MetricField;
|
|
18
22
|
export declare type Conditional = {
|
|
19
23
|
fieldId: string;
|
|
20
24
|
function: string;
|
|
@@ -66,6 +70,10 @@ export declare type DateCalculation = {
|
|
|
66
70
|
dateCalculationFunction: 'seconds_between' | 'minutes_between' | 'hours_between' | 'days_between';
|
|
67
71
|
};
|
|
68
72
|
export declare type MathOperator = '*' | '-' | '/' | '+';
|
|
69
|
-
export declare type CustomFieldCategory = 'percentage' | 'math' | 'rules' | 'roundedNumber' | 'dateCalculation' | 'conditional';
|
|
73
|
+
export declare type CustomFieldCategory = 'percentage' | 'math' | 'rules' | 'roundedNumber' | 'dateCalculation' | 'conditional' | 'calculatedField';
|
|
74
|
+
export declare enum AcceptedTypes {
|
|
75
|
+
Maths = "maths",
|
|
76
|
+
IfStatement = "ifStatement"
|
|
77
|
+
}
|
|
70
78
|
export declare type MaybeOldCustomField = CustomField;
|
|
71
79
|
export {};
|
|
@@ -30,7 +30,7 @@ export declare const validateQueries: (dataSet: DataSet, queries: Query[]) => un
|
|
|
30
30
|
* provide the componentType to ensure the custom fields which are returned
|
|
31
31
|
* are also supported by the componentType.
|
|
32
32
|
*/
|
|
33
|
-
export declare const takeCustomFields: (dataSet: DataSet, componentType?: "progress" | "areaChart" | "barChart" | "basicTable" | "comboChart" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "mercatorMap" | "pieChart" | "richText" | "scatterChart" | "singleStat" | undefined) => CustomField[];
|
|
33
|
+
export declare const takeCustomFields: (dataSet: DataSet, componentType?: "progress" | "areaChart" | "barChart" | "basicTable" | "comboChart" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "lineChartV2" | "mercatorMap" | "pieChart" | "richText" | "scatterChart" | "singleStat" | undefined) => CustomField[];
|
|
34
34
|
export declare const takeNonCustomFields: (dataSet: DataSet) => Array<NonDateTimeField | DateTimeField | SimpleMathField>;
|
|
35
35
|
export declare const takeNonPercentageCustomFields: (dataSet: DataSet) => Array<NonDateTimeField | DateTimeField | SimpleMathField>;
|
|
36
36
|
export declare const removeCustomFields: (dataSet: DataSet) => DataSet;
|
|
@@ -20,10 +20,14 @@ export declare type FeatureToggles = {
|
|
|
20
20
|
allowDateCalculationsCustomField: boolean;
|
|
21
21
|
allowPercentagesCustomField: boolean;
|
|
22
22
|
allowRulesCustomField: boolean;
|
|
23
|
+
allowCalculatedField: boolean;
|
|
23
24
|
allowConditionalCustomField: boolean;
|
|
24
25
|
/** Show/Hide the Date and Time Filter
|
|
25
26
|
* @default false */
|
|
26
27
|
showDateAndTimeFilter: boolean;
|
|
28
|
+
/** Show/Hide the Simple Multi Select Filter
|
|
29
|
+
* @default false */
|
|
30
|
+
simpleMultiSelectFilter: boolean;
|
|
27
31
|
/** Show/Hide the Date Filter
|
|
28
32
|
* @default true */
|
|
29
33
|
showDateFilter: boolean;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
2
2
|
export declare const combineFilters: (array1: QueryAttributes.Filter[][], array2: QueryAttributes.Filter[][]) => QueryAttributes.Filter[][];
|
|
3
|
+
export declare function combineForCustomMetricFilters(filters: QueryAttributes.Filter[][] | undefined, customFilters: QueryAttributes.Filter[][] | undefined): QueryAttributes.Filter[][];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DataSet as DataSetType } from '../DataSet/types';
|
|
1
2
|
import { Field } from '../AdditionalFilter/types';
|
|
2
3
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
4
|
import { TextOverride } from '../Translations/types';
|
|
@@ -50,5 +51,5 @@ export declare function isRelative(value: any): boolean;
|
|
|
50
51
|
export declare function isRelativeDateDefined(value: RelativeDate): boolean;
|
|
51
52
|
export declare const init: () => RelativeDate;
|
|
52
53
|
export declare const calculateRelativeDate: (relativeDate: RelativeDate, startDate?: Date | undefined) => Date;
|
|
53
|
-
export declare const buildRelativeRange: (relativeFilters: QueryAttributes.Filter[][], appliesToFields?: Field[] | undefined) => QueryAttributes.Filter[][];
|
|
54
|
+
export declare const buildRelativeRange: (relativeFilters: QueryAttributes.Filter[][], dataSet: DataSetType, appliesToFields?: Field[] | undefined) => QueryAttributes.Filter[][];
|
|
54
55
|
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { DateTimeFormatter, LineChartRepresentation, NumberFormatter } from './types';
|
|
3
|
+
import { ValueAlias } from '../ValueAlias/types';
|
|
4
|
+
import { Result } from '../Result/types';
|
|
5
|
+
import { PivotConfig } from '../PivotConfig/types';
|
|
6
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
7
|
+
import { Component, FormatType } from '../Component/types';
|
|
8
|
+
interface buildLineChartRepresentationArgs {
|
|
9
|
+
axisTitles?: Component.AxisTitles;
|
|
10
|
+
colors?: CSSProperties['color'][];
|
|
11
|
+
conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
|
|
12
|
+
dateTimeFormatOptions: {
|
|
13
|
+
[id: string]: DateTimeFormatter;
|
|
14
|
+
};
|
|
15
|
+
defaultFormats: () => {
|
|
16
|
+
[functionId: string]: string;
|
|
17
|
+
};
|
|
18
|
+
dimensions: QueryAttributes.Dimension[];
|
|
19
|
+
goalLineAttributes: Component.GoalLine.Rule[];
|
|
20
|
+
measures: QueryAttributes.Measure[];
|
|
21
|
+
nullValue?: string;
|
|
22
|
+
numberFormatOptions: {
|
|
23
|
+
[id: string]: NumberFormatter;
|
|
24
|
+
};
|
|
25
|
+
order: QueryAttributes.Order[];
|
|
26
|
+
pivotConfig: PivotConfig;
|
|
27
|
+
result: Result;
|
|
28
|
+
trendsAndForecasts?: Component.Trends[];
|
|
29
|
+
valueAlias?: ValueAlias;
|
|
30
|
+
xAxisFormat: FormatType;
|
|
31
|
+
xAxisPostfix: string;
|
|
32
|
+
xAxisPrefix: string;
|
|
33
|
+
yAxisFormat: FormatType;
|
|
34
|
+
yAxisPostfix: string;
|
|
35
|
+
yAxisPrefix: string;
|
|
36
|
+
approxYAxisLabelCount: number;
|
|
37
|
+
}
|
|
38
|
+
export declare const buildLineChartRepresentation: ({ axisTitles, colors, conditionalFormattingAttributes, dateTimeFormatOptions, defaultFormats, dimensions, goalLineAttributes, measures, nullValue, numberFormatOptions, order, pivotConfig, result, trendsAndForecasts, xAxisFormat, xAxisPostfix, xAxisPrefix, yAxisFormat, yAxisPostfix, yAxisPrefix, approxYAxisLabelCount, }: buildLineChartRepresentationArgs) => LineChartRepresentation;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DataItem, KeyId } from './types';
|
|
2
|
+
export declare type AcceptedTrendTimeUnit = 'week' | 'quarter' | 'year' | 'month';
|
|
3
|
+
interface getTrendArgs {
|
|
4
|
+
data: Array<{
|
|
5
|
+
[key: KeyId]: DataItem;
|
|
6
|
+
}>;
|
|
7
|
+
forecastUnits: number;
|
|
8
|
+
xKey: string;
|
|
9
|
+
yKey: string;
|
|
10
|
+
timeUnit: AcceptedTrendTimeUnit;
|
|
11
|
+
includeForecast: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const buildTrendAndForecast: ({ data, forecastUnits, xKey, yKey, timeUnit, includeForecast }: getTrendArgs) => {
|
|
14
|
+
trendData: {
|
|
15
|
+
date: string;
|
|
16
|
+
value: number;
|
|
17
|
+
}[];
|
|
18
|
+
trendKey: string;
|
|
19
|
+
forecastData: {
|
|
20
|
+
date: string;
|
|
21
|
+
value: number;
|
|
22
|
+
}[];
|
|
23
|
+
forecastKey: string;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DateTimeFormatter, NumberFormatter } from './types';
|
|
2
|
+
import { FormatType } from '../Component/types';
|
|
3
|
+
interface getAxisFormattingFunctionArgs {
|
|
4
|
+
numberFormatOptions: {
|
|
5
|
+
[id: string]: NumberFormatter;
|
|
6
|
+
};
|
|
7
|
+
dateTimeFormatOptions: {
|
|
8
|
+
[id: string]: DateTimeFormatter;
|
|
9
|
+
};
|
|
10
|
+
formatFunctionId: FormatType;
|
|
11
|
+
}
|
|
12
|
+
export declare const getAxisFormattingFunction: ({ formatFunctionId, numberFormatOptions, dateTimeFormatOptions, }: getAxisFormattingFunctionArgs) => ((number: number | null | undefined, noValueReplacement?: string | undefined) => string) | ((date: Date) => string) | ((value: string) => string);
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConditionalFormattingRule } from './types';
|
|
2
|
+
import { Component } from '../Component/types';
|
|
3
|
+
interface getConditionalFormattingArgs {
|
|
4
|
+
conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
|
|
5
|
+
}
|
|
6
|
+
export declare const getConditionalFormatting: ({ conditionalFormattingAttributes, }: getConditionalFormattingArgs) => ConditionalFormattingRule[];
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DataItem, KeyId } from './types';
|
|
2
|
+
interface getDataArgs {
|
|
3
|
+
data: {
|
|
4
|
+
[key: string]: Date | number | string | null;
|
|
5
|
+
}[];
|
|
6
|
+
xKey: KeyId | undefined;
|
|
7
|
+
nullValue: string | undefined;
|
|
8
|
+
xAxisPostfix: string;
|
|
9
|
+
xAxisPrefix: string;
|
|
10
|
+
yAxisPostfix: string;
|
|
11
|
+
yAxisPrefix: string;
|
|
12
|
+
formattingFunctionX: (value: any, noValueReplacement?: string) => string;
|
|
13
|
+
formattingFunctionY: (value: any, noValueReplacement?: string) => string;
|
|
14
|
+
}
|
|
15
|
+
export declare const getData: ({ data, xKey, formattingFunctionX, formattingFunctionY, nullValue, xAxisPostfix, xAxisPrefix, yAxisPostfix, yAxisPrefix, }: getDataArgs) => {
|
|
16
|
+
[keyId: string]: DataItem;
|
|
17
|
+
}[];
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GoalLine } from './types';
|
|
2
|
+
import { Component } from '../Component/types';
|
|
3
|
+
interface getGoalLinesArgs {
|
|
4
|
+
goalLineAttributes: Component.GoalLine.Rule[];
|
|
5
|
+
formattingFunctionY: (value: any) => string;
|
|
6
|
+
yAxisPostfix: string | undefined;
|
|
7
|
+
yAxisPrefix: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare const getGoalLines: ({ goalLineAttributes, formattingFunctionY, yAxisPostfix, yAxisPrefix, }: getGoalLinesArgs) => GoalLine[];
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DataType } from '../Field/types';
|
|
2
|
+
export declare const getMinAndMax: ({ data, key, dataType, }: {
|
|
3
|
+
data: {
|
|
4
|
+
[key: string]: string | number | Date | null;
|
|
5
|
+
}[];
|
|
6
|
+
key: string | null;
|
|
7
|
+
dataType: DataType;
|
|
8
|
+
}) => {
|
|
9
|
+
max: null;
|
|
10
|
+
min: null;
|
|
11
|
+
} | {
|
|
12
|
+
max: number;
|
|
13
|
+
min: number;
|
|
14
|
+
};
|