@sisense/sdk-ui 1.20.0 → 1.22.0
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/ai.cjs +67 -67
- package/dist/ai.js +895 -950
- package/dist/analytics-composer.cjs +18 -18
- package/dist/analytics-composer.js +595 -595
- package/dist/{get-widget-options-B9VkQy30.js → get-widget-options-DTIulxC2.js} +12387 -12162
- package/dist/{get-widget-options-CQuHmkuX.cjs → get-widget-options-DixoCEhn.cjs} +92 -92
- package/dist/index.cjs +125 -66
- package/dist/index.js +6907 -6448
- package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-get-nlg-query-result.d.ts +3 -1
- package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +4 -1
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +4 -0
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +57 -13
- package/dist/packages/sdk-ui/src/app/settings/settings.d.ts +5 -0
- package/dist/packages/sdk-ui/src/boxplot-utils.d.ts +6 -5
- package/dist/packages/sdk-ui/src/chart/chart.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart-data/advanced-analytics-data.d.ts +6 -42
- package/dist/packages/sdk-ui/src/chart-data/areamap-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/boxplot-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/cartesian-data.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-data/categorical-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/filter-and-aggregate-chart-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data/indicator-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/range-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data/scatter-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data/scattermap-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/table-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data-options/translate-boxplot-data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +37 -60
- package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +34 -19
- package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-data-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/data-points.d.ts +5 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/plot-bands.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +5 -5
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-axis.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-axis.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +5 -5
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/hooks/use-fetch.d.ts +2 -5
- package/dist/packages/sdk-ui/src/common/hooks/use-synced-state.d.ts +19 -0
- package/dist/packages/sdk-ui/src/common-filters/selection-utils.d.ts +9 -1
- package/dist/packages/sdk-ui/src/common-filters/use-common-filters.d.ts +4 -2
- package/dist/packages/sdk-ui/src/dashboard/components/HorizontalCollapse.d.ts +5 -0
- package/dist/packages/sdk-ui/src/dashboard/components/dashboard-header.d.ts +1 -0
- package/dist/packages/sdk-ui/src/dashboard/dashboard-by-id.d.ts +4 -1
- package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +91 -0
- package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +13 -1
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +18 -0
- package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +30 -0
- package/dist/packages/sdk-ui/src/dashboard/use-dashboard-theme.d.ts +40 -0
- package/dist/packages/sdk-ui/src/dashboard-widget/dashboard-widget.d.ts +2 -2
- package/dist/packages/sdk-ui/src/dashboard-widget/translate-widget-data-options.d.ts +13 -3
- package/dist/packages/sdk-ui/src/dashboard-widget/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard-widget/utils.d.ts +1 -0
- package/dist/packages/sdk-ui/src/decorators/hook-decorators/with-tracking.d.ts +3 -2
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-display.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel.d.ts +2 -2
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/unsupported-filter-tile.d.ts +12 -0
- package/dist/packages/sdk-ui/src/formulas/use-get-shared-formula.d.ts +3 -4
- package/dist/packages/sdk-ui/src/index.d.ts +16 -6
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model-translator.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/dashboard/get-dashboard-model.d.ts +0 -2
- package/dist/packages/sdk-ui/src/models/dashboard/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-dto-utils.d.ts +11 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +22 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model-reducer.d.ts +63 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model.d.ts +38 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-model.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-models.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/hierarchy/use-get-hierarchy-models.d.ts +3 -3
- package/dist/packages/sdk-ui/src/models/widget/use-get-widget-model.d.ts +3 -3
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +18 -1
- package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +1 -3
- package/dist/packages/sdk-ui/src/plugins-provider/types.d.ts +4 -4
- package/dist/packages/sdk-ui/src/plugins-provider/use-execute-plugin-query.d.ts +2 -2
- package/dist/packages/sdk-ui/src/props.d.ts +42 -23
- package/dist/packages/sdk-ui/src/query-execution/execute-query-by-widget-id.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/use-execute-csv-query.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/use-execute-pivot-query.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/use-execute-query-by-widget-id.d.ts +2 -2
- package/dist/packages/sdk-ui/src/query-execution/use-execute-query.d.ts +1 -1
- package/dist/packages/sdk-ui/src/translation/custom-translations-loader.d.ts +10 -0
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +98 -4
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +196 -8
- package/dist/packages/sdk-ui/src/types.d.ts +24 -3
- package/dist/packages/sdk-ui/src/widgets/chart-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-utils.d.ts +7 -0
- package/dist/packages/sdk-ui/src/widgets/common/{use-drilldown.d.ts → use-drilldown-core.d.ts} +7 -8
- package/dist/packages/sdk-ui/src/widgets/common-widget.d.ts +1 -0
- package/dist/packages/sdk-ui/src/widgets/hooks/use-drilldown.d.ts +25 -0
- package/dist/packages/sdk-ui/src/widgets/hooks/use-with-drilldown.d.ts +12 -0
- package/dist/packages/sdk-ui/src/widgets/pivot-table-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widgets/widget.d.ts +9 -0
- package/dist/{table-widget-D9gDMRyX.js → table-widget-CLL1iN3H.js} +14844 -14659
- package/dist/{table-widget-DXNtx9V_.cjs → table-widget-CYCcYqzZ.cjs} +179 -179
- package/package.json +9 -9
- package/dist/packages/sdk-ui/src/ai/api/errors.d.ts +0 -4
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-connector.d.ts +0 -19
package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-data-options.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartDataOptions, ChartDataOptionsInternal
|
|
1
|
+
import { ChartDataOptions, ChartDataOptionsInternal } from '../types';
|
|
2
2
|
import { ChartType } from '../../types';
|
|
3
3
|
import { Attribute, Data, Filter, Measure } from '@sisense/sdk-data';
|
|
4
4
|
import { DataTable } from '../../chart-data-processor/table-processor';
|
|
@@ -9,7 +9,7 @@ export type DataColumnNamesMapping = Record<string, string>;
|
|
|
9
9
|
* @param measures - An array of Value objects representing measures.
|
|
10
10
|
* @returns - The mapping of unique names to original names.
|
|
11
11
|
*/
|
|
12
|
-
export declare const generateUniqueDataColumnsNames: (measures:
|
|
12
|
+
export declare const generateUniqueDataColumnsNames: (measures: Measure[]) => DataColumnNamesMapping;
|
|
13
13
|
/**
|
|
14
14
|
* Applies default chart data options based on input chart type.
|
|
15
15
|
*/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { Measure } from '@sisense/sdk-data';
|
|
1
2
|
import { HighchartsPoint } from '../types';
|
|
2
3
|
import { SisenseChartDataPoint } from '../sisense-chart/types';
|
|
3
|
-
import {
|
|
4
|
-
export declare function getDataPointMetadata(dataOptionPath: string, dataOption:
|
|
5
|
-
measure?:
|
|
4
|
+
import { ChartDataOptionsInternal, StyledColumn, StyledMeasureColumn } from '..';
|
|
5
|
+
export declare function getDataPointMetadata(dataOptionPath: string, dataOption: StyledColumn | StyledMeasureColumn): {
|
|
6
|
+
measure?: Measure | undefined;
|
|
6
7
|
attribute?: import("@sisense/sdk-data").Attribute | undefined;
|
|
7
8
|
id: string;
|
|
8
|
-
dataOption:
|
|
9
|
+
dataOption: StyledColumn | StyledMeasureColumn;
|
|
9
10
|
};
|
|
10
11
|
export declare function getDataPoint(point: HighchartsPoint, dataOptions: ChartDataOptionsInternal): SisenseChartDataPoint;
|
|
@@ -7,7 +7,7 @@ type CategoryIndexMapPlotBands = {
|
|
|
7
7
|
indexMap: number[];
|
|
8
8
|
plotBands: PlotBand[];
|
|
9
9
|
};
|
|
10
|
-
export declare const applyNumberFormatToPlotBands: (
|
|
10
|
+
export declare const applyNumberFormatToPlotBands: (dataOptions: ChartDataOptionsInternal, categoryIndexMapPlotBands: CategoryIndexMapPlotBands) => CategoryIndexMapPlotBands;
|
|
11
11
|
/**
|
|
12
12
|
* This method returns three arrays to create chart options
|
|
13
13
|
* categories - values to display on the bottom X1 axis
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Stacking, Style } from '../chart-options-service';
|
|
2
|
-
import { ChartDataOptionsInternal,
|
|
2
|
+
import { ChartDataOptionsInternal, StyledColumn } from '../../chart-data-options/types';
|
|
3
3
|
import { ChartType } from '../../types';
|
|
4
4
|
import { CategoricalXValues } from '../../chart-data/types';
|
|
5
5
|
import { AxisClipped } from './translations-to-highcharts';
|
|
@@ -102,7 +102,7 @@ export type AxisPlotBand = {
|
|
|
102
102
|
};
|
|
103
103
|
export declare const getCategoricalCompareValue: (value: CategoricalXValues) => number;
|
|
104
104
|
export declare const getDefaultDateFormat: (granularity?: string) => "HH:mm:ss" | "yyyy" | "yyyy Q" | "MM/yyyy" | "ww yyyy" | "M/d/yy" | "HH" | "M/d/yy HH" | "HH:mm" | undefined;
|
|
105
|
-
export declare const getDateFormatter: (category:
|
|
106
|
-
export declare const getXAxisDatetimeSettings: (axis: Axis, category:
|
|
107
|
-
export declare const getXAxisSettings: (axis: Axis, axis2: Axis | undefined, categories: string[], plotBands: PlotBand[], xAxisOrientation: AxisOrientation,
|
|
108
|
-
export declare const getYAxisSettings: (axis: Axis, axis2: Axis | undefined, axisMinMax: AxisMinMax, axis2MinMax: AxisMinMax | undefined, showTotal: boolean,
|
|
105
|
+
export declare const getDateFormatter: (category: StyledColumn, dateFormatter?: ((date: Date, format: string) => string) | undefined) => (time: number) => string;
|
|
106
|
+
export declare const getXAxisDatetimeSettings: (axis: Axis, category: StyledColumn, values: number[], dateFormatter?: ((date: Date, format: string) => string) | undefined) => AxisSettings[];
|
|
107
|
+
export declare const getXAxisSettings: (axis: Axis, axis2: Axis | undefined, categories: string[], plotBands: PlotBand[], xAxisOrientation: AxisOrientation, dataOptions: ChartDataOptionsInternal, chartType: ChartType) => AxisSettings[];
|
|
108
|
+
export declare const getYAxisSettings: (axis: Axis, axis2: Axis | undefined, axisMinMax: AxisMinMax, axis2MinMax: AxisMinMax | undefined, showTotal: boolean, dataOptions: ChartDataOptionsInternal, stacking: Stacking | undefined) => [AxisSettings[], AxisClipped[]];
|
package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-axis.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BoxplotChartData } from '../../../chart-data/types';
|
|
2
2
|
import { Axis, AxisSettings } from '../axis-section';
|
|
3
|
-
import {
|
|
3
|
+
import { StyledColumn, StyledMeasureColumn } from '../../../chart-data-options/types';
|
|
4
4
|
export declare const commonColor = "#d1d1d7";
|
|
5
5
|
export declare const calculateYAxisMinMax: (chartData: BoxplotChartData) => {
|
|
6
6
|
min: number;
|
|
7
7
|
max: number;
|
|
8
8
|
};
|
|
9
|
-
export declare const getBoxplotXAxisSettings: (axis: Axis, categories: string[], axisDataOption?:
|
|
10
|
-
export declare const getBoxplotYAxisSettings: (axis: Axis, chartData: BoxplotChartData, axisDataOption?:
|
|
9
|
+
export declare const getBoxplotXAxisSettings: (axis: Axis, categories: string[], axisDataOption?: StyledColumn) => AxisSettings[];
|
|
10
|
+
export declare const getBoxplotYAxisSettings: (axis: Axis, chartData: BoxplotChartData, axisDataOption?: StyledMeasureColumn) => AxisSettings[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ScatterCategories } from '../../chart-data/types';
|
|
2
|
-
import { ScatterChartDataOptionsInternal,
|
|
2
|
+
import { ScatterChartDataOptionsInternal, StyledColumn, StyledMeasureColumn } from './../../chart-data-options/types';
|
|
3
3
|
import { Axis, AxisSettings } from './axis-section';
|
|
4
4
|
export declare const commonColor = "#d1d1d7";
|
|
5
|
-
export declare function scatterFormatter(axisAttribute:
|
|
5
|
+
export declare function scatterFormatter(axisAttribute: StyledColumn | StyledMeasureColumn | undefined, value: string | number, categories: (string | number)[] | undefined): string;
|
|
6
6
|
export declare const getScatterXAxisSettings: (xAxis: Axis, categories: ScatterCategories, scatterDataOptions: ScatterChartDataOptionsInternal) => AxisSettings[];
|
|
7
7
|
export declare const getScatterYAxisSettings: (yAxis: Axis, categories: ScatterCategories, scatterDataOptions: ScatterChartDataOptionsInternal) => AxisSettings[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const isXValueNumeric: (dataOptionX:
|
|
3
|
-
export declare const formatTooltipValue: (dataOption:
|
|
4
|
-
export declare const formatTooltipXValue: (dataOption:
|
|
5
|
-
export declare function isTooltipPercentValueSupported(options:
|
|
1
|
+
import { StyledMeasureColumn, StyledColumn } from '../../chart-data-options/types.js';
|
|
2
|
+
export declare const isXValueNumeric: (dataOptionX: StyledMeasureColumn | StyledColumn | undefined) => boolean | "";
|
|
3
|
+
export declare const formatTooltipValue: (dataOption: StyledMeasureColumn | StyledColumn | undefined, value: number | undefined, displayValue: string) => string;
|
|
4
|
+
export declare const formatTooltipXValue: (dataOption: StyledMeasureColumn | StyledColumn | undefined, value: number | string | undefined, displayValue: string) => string;
|
|
5
|
+
export declare function isTooltipPercentValueSupported(options: StyledMeasureColumn | undefined): boolean;
|
|
6
6
|
export type TooltipSettings = {
|
|
7
7
|
enabled?: boolean;
|
|
8
8
|
animation?: boolean;
|
|
@@ -75,7 +75,7 @@ export declare const addStackingIfSpecified: (chartType: ChartType, designOption
|
|
|
75
75
|
*/
|
|
76
76
|
export declare const indexMapWhenOnlyY: (categories: string[], index: number) => (-1 | 0)[];
|
|
77
77
|
export declare const formatSeriesContinuousXAxis: (series: CategoricalSeriesValues, indexMap: number[], treatNullDataAsZeros: boolean, interval: number, maxCategories: number, dateFormatter: (time: number) => string, yAxisSettings: AxisSettings, axisClipped: AxisClipped) => HighchartsSeriesValues;
|
|
78
|
-
export declare const formatSeries: (series: CategoricalSeriesValues, indexMap: number[], treatNullDataAsZeros: boolean, categories?: string[], categoryColors?: string[]) => HighchartsSeriesValues;
|
|
78
|
+
export declare const formatSeries: (series: CategoricalSeriesValues, indexMap: number[], treatNullDataAsZeros: boolean, categories?: string[], categoryColors?: string[], convertValuesToAbsolute?: boolean) => HighchartsSeriesValues;
|
|
79
79
|
export declare const adjustMinMaxWhenInvalid: (explicitAxis: AxisMinMax, autoMinMax: AxisMinMax) => {
|
|
80
80
|
min: number;
|
|
81
81
|
max: number;
|
|
@@ -3,7 +3,7 @@ import { IndicatorChartDesignOptions } from '../../chart-options-processor/trans
|
|
|
3
3
|
import { IndicatorChartData } from '../../chart-data/types';
|
|
4
4
|
import { LegacyIndicatorChartTypes } from './types';
|
|
5
5
|
export type IndicatorLegacyChartDataOptions = ReturnType<typeof createLegacyChartDataOptions>;
|
|
6
|
-
export declare const createLegacyChartDataOptions: (chartData: IndicatorChartData, chartDesignOptions: IndicatorChartDesignOptions,
|
|
6
|
+
export declare const createLegacyChartDataOptions: (chartData: IndicatorChartData, chartDesignOptions: IndicatorChartDesignOptions, dataOptions: IndicatorChartDataOptions) => {
|
|
7
7
|
type: LegacyIndicatorChartTypes;
|
|
8
8
|
skin: 1 | 2 | "vertical" | "horizontal";
|
|
9
9
|
title: {
|
|
@@ -16,7 +16,7 @@ export type RequestConfig = {
|
|
|
16
16
|
* The result of the `useFetch` hook.
|
|
17
17
|
* Return value of the `useQuery` hook from `@tanstack/react-query`.
|
|
18
18
|
*
|
|
19
|
-
* @
|
|
19
|
+
* @see https://tanstack.com/query/v4/docs/framework/react/reference/useQuery
|
|
20
20
|
* @template TData - The type of the data returned by the fetch request
|
|
21
21
|
* @template TError - The type of the error returned by the fetch request
|
|
22
22
|
*/
|
|
@@ -30,11 +30,8 @@ export type UseQueryResult<TData, TError> = TanstackUseQueryResult<TData, TError
|
|
|
30
30
|
method: 'POST',
|
|
31
31
|
});
|
|
32
32
|
```
|
|
33
|
-
* @param path - The endpoint path to fetch data from. This should be a relative path like '/api/v1/endpoint'.
|
|
34
|
-
* @param init - The request init object
|
|
35
|
-
* @param options - The additional request options
|
|
36
33
|
* @returns Query state that contains the status of the query execution, the result data, or the error if any occurred
|
|
37
|
-
* @group Fusion
|
|
34
|
+
* @group Fusion Assets
|
|
38
35
|
*/
|
|
39
36
|
export declare const useFetch: <TData = unknown, TError = unknown>(path: string, init?: RequestInit | undefined, options?: {
|
|
40
37
|
requestConfig?: RequestConfig | undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
type UseSyncedStateOptions<T> = {
|
|
3
|
+
/**
|
|
4
|
+
* A callback function that is triggered when the state is updated via the local setter,
|
|
5
|
+
* but not through synchronization with `syncValue`.
|
|
6
|
+
*/
|
|
7
|
+
onLocalStateChange?: (state: T) => void;
|
|
8
|
+
/**
|
|
9
|
+
* A custom comparison function to determine if the external `syncValue` is different
|
|
10
|
+
* from the current state. The default function performs a deep equality check using `isEqual`.
|
|
11
|
+
*/
|
|
12
|
+
syncCompareFn?: (currentState: T, syncValue: T) => boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* A custom React hook that behaves like the regular `useState`, but also synchronizes the state
|
|
16
|
+
* with an external `syncValue`.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useSyncedState<T>(syncValue: T, { onLocalStateChange, syncCompareFn }?: UseSyncedStateOptions<T>): [T, Dispatch<SetStateAction<T>>];
|
|
19
|
+
export {};
|
|
@@ -9,7 +9,15 @@ type DataSelection = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare function getWidgetSelections(widgetType: WidgetTypeInternal, dataOptions: ChartDataOptions | PivotTableDataOptions, points: Array<ChartDataPoint>): DataSelection[];
|
|
11
11
|
export declare function getSelectableWidgetAttributes(widgetType: WidgetTypeInternal, dataOptions: ChartDataOptions | PivotTableDataOptions): Attribute[];
|
|
12
|
-
|
|
12
|
+
type FiltersWithSelectionFlag = {
|
|
13
|
+
filters: Filter[];
|
|
14
|
+
isSelection: boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Creates a set of common filters based on the current selections, considering existing filters and
|
|
18
|
+
* the common filters unselection rules.
|
|
19
|
+
*/
|
|
20
|
+
export declare function createCommonFiltersOverSelections(selections: DataSelection[], existingCommonFilters: Filter[], allowPartialUnselection?: boolean): FiltersWithSelectionFlag;
|
|
13
21
|
export declare function getWidgetSelectionsTitleMenuItem(widgetType: WidgetTypeInternal, dataOptions: ChartDataOptions | PivotTableDataOptions, points: Array<ChartDataPoint>): MenuItemSection | null;
|
|
14
22
|
export declare function getSelectMenuItem(title: string, selectHandler: () => void): MenuItemSection;
|
|
15
23
|
export {};
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
import { type Filter } from '@sisense/sdk-data';
|
|
3
3
|
import { CommonFiltersOptions } from './types.js';
|
|
4
4
|
import { WidgetProps } from '../props.js';
|
|
5
|
-
import { OpenMenuFn } from '../common/components/menu/types.js';
|
|
5
|
+
import { BeforeMenuOpenHandler, OpenMenuFn } from '../common/components/menu/types.js';
|
|
6
6
|
/** @internal */
|
|
7
|
-
export declare const useCommonFilters: ({ initialFilters, openMenu, }?: {
|
|
7
|
+
export declare const useCommonFilters: ({ initialFilters, openMenu, onBeforeMenuOpen, onFiltersChange, }?: {
|
|
8
8
|
initialFilters?: Filter[] | undefined;
|
|
9
9
|
openMenu?: OpenMenuFn | undefined;
|
|
10
|
+
onBeforeMenuOpen?: BeforeMenuOpenHandler | undefined;
|
|
11
|
+
onFiltersChange?: ((filters: Filter[]) => void) | undefined;
|
|
10
12
|
}) => {
|
|
11
13
|
filters: Filter[];
|
|
12
14
|
setFilters: import("react").Dispatch<import("react").SetStateAction<Filter[]>>;
|
|
@@ -22,7 +22,10 @@ import { DashboardByIdProps } from './types';
|
|
|
22
22
|
|
|
23
23
|
export default CodeExample;
|
|
24
24
|
* ```
|
|
25
|
-
*
|
|
25
|
+
*
|
|
26
|
+
* To learn more about this and related dashboard components,
|
|
27
|
+
* see [Embedded Dashboards](/guides/sdk/guides/dashboards/index.html).
|
|
28
|
+
* @group Fusion Assets
|
|
26
29
|
* @fusionEmbed
|
|
27
30
|
* @beta
|
|
28
31
|
*/
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
import { DashboardProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new dashboard instance with its filters replaced by a new set of filters.
|
|
5
|
+
*
|
|
6
|
+
* This function does not modify the original dashboard; instead, it returns a new dashboard with the updated filters.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* Replace all filters on a dashboard with a new set of filters.
|
|
10
|
+
* ```ts
|
|
11
|
+
* const existingDashboard: DashboardProps = {...}
|
|
12
|
+
* const newFilters: Filter[] = [{...}, {...}, ...];
|
|
13
|
+
* const updatedDashboard = replaceFilters(existingDashboard, newFilters);
|
|
14
|
+
* ```
|
|
15
|
+
* @param dashboard - The original dashboard (`DashboardProps`) whose filters are to be replaced.
|
|
16
|
+
* @param newFilters - An array of new filters to set on the dashboard.
|
|
17
|
+
* @returns A new dashboard instance with the updated filters.
|
|
18
|
+
*/
|
|
19
|
+
export declare const replaceFilters: (dashboard: DashboardProps, newFilters: Filter[]) => DashboardProps;
|
|
20
|
+
/**
|
|
21
|
+
* Creates a new dashboard instance with an additional filter added to its existing filters.
|
|
22
|
+
*
|
|
23
|
+
* This function does not modify the original dashboard; instead, it returns a new dashboard with the added filter.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* Add a new filter to a dashboard.
|
|
27
|
+
* ```ts
|
|
28
|
+
* const existingDashboard: DashboardProps = {...};
|
|
29
|
+
* const newFilter: Filter = {...};
|
|
30
|
+
* const updatedDashboard = addFilter(existingDashboard, newFilter);
|
|
31
|
+
* ```
|
|
32
|
+
* @param dashboard - The original dashboard (`DashboardProps`) to which the filter will be added.
|
|
33
|
+
* @param newFilter - The filter to add to the dashboard.
|
|
34
|
+
* @returns A new dashboard instance with the new filter added.
|
|
35
|
+
*/
|
|
36
|
+
export declare const addFilter: (dashboard: DashboardProps, newFilter: Filter) => DashboardProps;
|
|
37
|
+
/**
|
|
38
|
+
* Creates a new dashboard instance with additional filters added to its existing filters.
|
|
39
|
+
*
|
|
40
|
+
* This function does not modify the original dashboard; instead, it returns a new dashboard with the added filters.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* Add multiple new filters to a dashboard.
|
|
44
|
+
* ```ts
|
|
45
|
+
* const existingDashboard: DashboardProps = {...};
|
|
46
|
+
* const newFilters: Filter[] = [{...}, {...}, ...];
|
|
47
|
+
* const updatedDashboard = addFilters(existingDashboard, newFilters);
|
|
48
|
+
* ```
|
|
49
|
+
* @param dashboard - The original dashboard (`DashboardProps`) to which the filters will be added.
|
|
50
|
+
* @param newFilters - An array of filters to add to the dashboard.
|
|
51
|
+
* @returns A new dashboard instance with the new filters added.
|
|
52
|
+
*/
|
|
53
|
+
export declare const addFilters: (dashboard: DashboardProps, newFilters: Filter[]) => DashboardProps;
|
|
54
|
+
/**
|
|
55
|
+
* Creates a new dashboard instance with a specific filter modified.
|
|
56
|
+
*
|
|
57
|
+
* This function searches for a filter with the same GUID as the provided `filterToModify` and replaces it with `newFilter`.
|
|
58
|
+
* This function does not modify the original dashboard; instead, it returns a new dashboard with the updated filters.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* Modify a filter in a dashboard.
|
|
62
|
+
* ```ts
|
|
63
|
+
* const existingDashboard: DashboardProps = {...};
|
|
64
|
+
* const filterToModify: Filter = {...};
|
|
65
|
+
* const newFilter: Filter = {...};
|
|
66
|
+
* const updatedDashboard = modifyFilter(existingDashboard, filterToModify, newFilter);
|
|
67
|
+
* ```
|
|
68
|
+
* @param dashboard - The original dashboard (`DashboardProps`) containing the filter to modify.
|
|
69
|
+
* @param filterToModify - The existing filter to be modified.
|
|
70
|
+
* @param newFilter - The new filter to replace the existing one.
|
|
71
|
+
* @returns A new dashboard instance with the specified filter modified.
|
|
72
|
+
*/
|
|
73
|
+
export declare const modifyFilter: (dashboard: DashboardProps, filterToModify: Filter, newFilter: Filter) => DashboardProps;
|
|
74
|
+
/**
|
|
75
|
+
* Creates a new dashboard instance with a specific filter removed.
|
|
76
|
+
*
|
|
77
|
+
* This function removes the filter with the same GUID as the provided filter from the dashboard's filters.
|
|
78
|
+
* This function does not modify the original dashboard; instead, it returns a new dashboard with the updated filters.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* Remove a filter from a dashboard.
|
|
82
|
+
* ```ts
|
|
83
|
+
* const existingDashboard: DashboardProps = {...};
|
|
84
|
+
* const filterToRemove: Filter = {...};
|
|
85
|
+
* const updatedDashboard = removeFilter(existingDashboard, filterToRemove);
|
|
86
|
+
* ```
|
|
87
|
+
* @param dashboard - The original dashboard (`DashboardProps`) from which to remove the filter.
|
|
88
|
+
* @param filter - The filter to be removed.
|
|
89
|
+
* @returns A new dashboard instance with the specified filter removed.
|
|
90
|
+
*/
|
|
91
|
+
export declare const removeFilter: (dashboard: DashboardProps, filter: Filter) => DashboardProps;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DashboardProps } from '../dashboard/types';
|
|
3
|
+
import { Filter } from '@sisense/sdk-data';
|
|
4
|
+
export declare enum DashboardChangeType {
|
|
5
|
+
/** Dashboard filters have been updated */
|
|
6
|
+
FILTERS_UPDATE = "FILTERS.UPDATE"
|
|
7
|
+
}
|
|
8
|
+
export type DashboardChangeAction = {
|
|
9
|
+
type: DashboardChangeType.FILTERS_UPDATE;
|
|
10
|
+
payload: Filter[];
|
|
11
|
+
};
|
|
3
12
|
/**
|
|
4
13
|
* React component that renders a dashboard whose elements are customizable. It includes internal logic of applying common filters to widgets.
|
|
5
14
|
*
|
|
@@ -30,7 +39,10 @@ const CodeExample = () => {
|
|
|
30
39
|
|
|
31
40
|
export default CodeExample;
|
|
32
41
|
* ```
|
|
33
|
-
*
|
|
42
|
+
*
|
|
43
|
+
* To learn more about this and related dashboard components,
|
|
44
|
+
* see [Embedded Dashboards](/guides/sdk/guides/dashboards/index.html).
|
|
45
|
+
* @group Dashboards
|
|
34
46
|
* @beta
|
|
35
47
|
*/
|
|
36
48
|
export declare const Dashboard: import("react").FunctionComponent<DashboardProps>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { DashboardById } from './dashboard-by-id';
|
|
2
2
|
export { Dashboard } from './dashboard';
|
|
3
|
+
export { useComposedDashboard, type ComposableDashboardProps, type UseComposedDashboardOptions, } from './use-composed-dashboard';
|
|
4
|
+
export { useDashboardTheme, type DashboardThemeParams } from './use-dashboard-theme';
|
|
3
5
|
export type { DashboardByIdProps, DashboardProps, DashboardLayoutOptions, DashboardStyleOptions, DashboardConfig, } from './types';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DashboardStyleOptions, WidgetsOptions, WidgetsPanelLayout } from '../models';
|
|
2
2
|
import { WidgetProps } from '../props';
|
|
3
3
|
import { DataSource, Filter } from '@sisense/sdk-data';
|
|
4
|
+
import { DashboardChangeAction } from '../dashboard/dashboard';
|
|
4
5
|
export type { DashboardStyleOptions, WidgetsPanelColumnLayout } from '../models';
|
|
5
6
|
/**
|
|
6
7
|
* Props for the DashboardById component
|
|
@@ -10,6 +11,17 @@ export interface DashboardByIdProps {
|
|
|
10
11
|
* The OID of the dashboard to render.
|
|
11
12
|
*/
|
|
12
13
|
dashboardOid: string;
|
|
14
|
+
/**
|
|
15
|
+
* Boolean flag indicating whether changes to the embedded dashboard should be saved to the dashboard in Fusion.
|
|
16
|
+
*
|
|
17
|
+
* If not specified, the default value is `false`.
|
|
18
|
+
*
|
|
19
|
+
* Limitations:
|
|
20
|
+
* - WAT authentication does not support persistence.
|
|
21
|
+
* - As an alpha feature, currently only changes to dashboard filters are persisted.
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
persist?: boolean;
|
|
13
25
|
}
|
|
14
26
|
/**
|
|
15
27
|
* Props for the DashboardContainer component
|
|
@@ -72,6 +84,12 @@ export interface DashboardProps {
|
|
|
72
84
|
widgetsOptions?: WidgetsOptions;
|
|
73
85
|
/** The style options for the dashboard */
|
|
74
86
|
styleOptions?: DashboardStyleOptions;
|
|
87
|
+
/**
|
|
88
|
+
* Callback to receive changes
|
|
89
|
+
*
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
onChange?: (action: DashboardChangeAction) => void;
|
|
75
93
|
}
|
|
76
94
|
/**
|
|
77
95
|
* Props for the Dashboard Header component
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DashboardProps } from './types.js';
|
|
2
|
+
import { Filter } from '@sisense/sdk-data';
|
|
3
|
+
export type ComposableDashboardProps = Pick<DashboardProps, 'filters' | 'widgets' | 'widgetsOptions'>;
|
|
4
|
+
export type UseComposedDashboardOptions = {
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
onFiltersChange?: (filters: Filter[]) => void;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* {@link useComposedDashboard} without tracking to be used inside other hooks or components in Compose SDK.
|
|
12
|
+
*
|
|
13
|
+
* @param params - Parameters of the composable dashboard props
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare function useComposedDashboardInternal<D extends ComposableDashboardProps | DashboardProps>(initialDashboard: D, { onFiltersChange }?: UseComposedDashboardOptions): {
|
|
17
|
+
dashboard: D;
|
|
18
|
+
setFilters: (filters: Filter[]) => void;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* React hook that takes in separate dashboard elements and
|
|
22
|
+
* composes them into a coordinated dashboard with change detection, cross filtering, and drill down.
|
|
23
|
+
*
|
|
24
|
+
* @group Dashboards
|
|
25
|
+
* @alpha
|
|
26
|
+
*/
|
|
27
|
+
export declare const useComposedDashboard: <D extends DashboardProps | ComposableDashboardProps>(args_0: D, args_1?: UseComposedDashboardOptions | undefined) => {
|
|
28
|
+
dashboard: D;
|
|
29
|
+
setFilters: (filters: Filter[]) => void;
|
|
30
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DashboardStyleOptions } from '../models';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export interface DashboardThemeParams {
|
|
6
|
+
styleOptions?: DashboardStyleOptions;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* {@link useDashboardTheme} without tracking to be used inside other hooks or components in Compose SDK.
|
|
10
|
+
*
|
|
11
|
+
* @param params - Parameters of the dashboard to be retrieved
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const useDashboardThemeInternal: ({ styleOptions }: DashboardThemeParams) => {
|
|
15
|
+
themeSettings: {
|
|
16
|
+
dashboard: {
|
|
17
|
+
backgroundColor: string;
|
|
18
|
+
dividerLineWidth: number;
|
|
19
|
+
dividerLineColor: string;
|
|
20
|
+
};
|
|
21
|
+
palette?: import("..").ColorPaletteTheme | undefined;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* React hook that returns dashboard theme settings
|
|
26
|
+
*
|
|
27
|
+
* @group Dashboards
|
|
28
|
+
* @alpha
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export declare const useDashboardTheme: (args_0: DashboardThemeParams) => {
|
|
32
|
+
themeSettings: {
|
|
33
|
+
dashboard: {
|
|
34
|
+
backgroundColor: string;
|
|
35
|
+
dividerLineWidth: number;
|
|
36
|
+
dividerLineColor: string;
|
|
37
|
+
};
|
|
38
|
+
palette?: import("..").ColorPaletteTheme | undefined;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -11,7 +11,7 @@ import { DashboardWidgetProps } from '../props';
|
|
|
11
11
|
*
|
|
12
12
|
* ## Example
|
|
13
13
|
*
|
|
14
|
-
* Display two dashboard widgets from a Fusion
|
|
14
|
+
* Display two dashboard widgets from a Fusion instance.
|
|
15
15
|
*
|
|
16
16
|
* <iframe
|
|
17
17
|
* src='https://csdk-playground.sisense.com/?example=fusion-assets%2Ffusion-widgets&mode=docs'
|
|
@@ -20,7 +20,7 @@ import { DashboardWidgetProps } from '../props';
|
|
|
20
20
|
* style='border:none;'
|
|
21
21
|
* />
|
|
22
22
|
*
|
|
23
|
-
* @group Fusion
|
|
23
|
+
* @group Fusion Assets
|
|
24
24
|
* @fusionEmbed
|
|
25
25
|
*/
|
|
26
26
|
export declare const DashboardWidget: FunctionComponent<DashboardWidgetProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DimensionalBaseMeasure, DimensionalAttribute, DimensionalCalculatedMeasure, Jaql, JaqlDataSource } from '@sisense/sdk-data';
|
|
1
|
+
import { DimensionalBaseMeasure, DimensionalAttribute, DimensionalCalculatedMeasure, Jaql, JaqlDataSource, Filter } from '@sisense/sdk-data';
|
|
2
2
|
import { StyledMeasureColumn, StyledColumn, Color } from '../types';
|
|
3
3
|
import { Panel, PanelItem, WidgetType, WidgetStyle, BoxplotWidgetStyle } from './types';
|
|
4
4
|
import { WidgetDataOptions } from '../models';
|
|
5
|
-
export declare function createDimensionalElementFromJaql(jaql: Jaql, format?: PanelItem['format']):
|
|
5
|
+
export declare function createDimensionalElementFromJaql(jaql: Jaql, format?: PanelItem['format']): Filter | DimensionalAttribute | DimensionalCalculatedMeasure | DimensionalBaseMeasure;
|
|
6
6
|
/** @internal */
|
|
7
7
|
export declare function applyStatisticalModels(dataOption: StyledMeasureColumn, statisticalModels?: {
|
|
8
8
|
forecast?: {
|
|
@@ -17,11 +17,21 @@ export declare function applyStatisticalModels(dataOption: StyledMeasureColumn,
|
|
|
17
17
|
trendType: string;
|
|
18
18
|
};
|
|
19
19
|
}): StyledMeasureColumn;
|
|
20
|
-
export declare function createDataColumn(item: PanelItem, customPaletteColors?: Color[]):
|
|
20
|
+
export declare function createDataColumn(item: PanelItem, customPaletteColors?: Color[]): StyledColumn | StyledMeasureColumn;
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare function createPanelItem(column: StyledColumn | StyledMeasureColumn): PanelItem;
|
|
21
23
|
/** @internal */
|
|
22
24
|
export declare const createDataOptionsFromPanels: (panels: Panel[], variantColors: Color[]) => {
|
|
23
25
|
[key: string]: any[];
|
|
24
26
|
};
|
|
27
|
+
export declare const createPanelsFromDataOptions: (dataOptions: {
|
|
28
|
+
[key: string]: any[];
|
|
29
|
+
}) => {
|
|
30
|
+
name: string;
|
|
31
|
+
items: {
|
|
32
|
+
jaql: any;
|
|
33
|
+
}[];
|
|
34
|
+
}[];
|
|
25
35
|
export declare function createColumnsFromPanelItems<ColumnType = StyledColumn | StyledMeasureColumn>(panels: Panel[], panelName: string, customPaletteColors?: Color[]): ColumnType[];
|
|
26
36
|
export declare function extractBoxplotBoxType(style: BoxplotWidgetStyle): "iqr" | "extremums" | "standardDeviation";
|
|
27
37
|
/**
|
|
@@ -95,7 +95,7 @@ export interface HierarchyDto {
|
|
|
95
95
|
levels: BaseJaql[];
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* The scroll location of the navigator scroller / auto zoom feature
|
|
99
99
|
*/
|
|
100
100
|
export type AutoZoomNavigatorScrollerLocation = {
|
|
101
101
|
min: number;
|
|
@@ -5,6 +5,7 @@ import { FiltersMergeStrategy, Panel, PanelItem, TextWidgetDtoStyle, WidgetStyle
|
|
|
5
5
|
import { ChartProps, ChartWidgetProps, PivotTableWidgetProps, PluginWidgetProps, RenderToolbarHandler, TextWidgetProps, CommonWidgetProps, WithWidgetType, WidgetProps } from '..';
|
|
6
6
|
import { WidgetTypeInternal } from '../models/widget/types';
|
|
7
7
|
export declare function getChartType(widgetType: WidgetType): ChartType;
|
|
8
|
+
export declare function getWidgetTypeFromChartType(chartType: ChartType): WidgetType;
|
|
8
9
|
export declare function getChartSubtype(widgetSubtype: WidgetSubtype): ChartSubtype | undefined;
|
|
9
10
|
type WidgetTypeOrString = string | WidgetType;
|
|
10
11
|
export declare function isSupportedWidgetType(widgetType: WidgetTypeOrString): widgetType is WidgetType;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ClientApplication } from '../../app/client-application';
|
|
2
2
|
export type HookDecorator<DecoratorConfig> = (decoratorConfig: DecoratorConfig) => <HookArgs extends any[], HookResult>(hook: (...args: HookArgs) => HookResult) => (...args: HookArgs) => HookResult;
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Tracks the hook event and sends it to the server.
|
|
5
|
+
*
|
|
6
6
|
* @param hookName - The name of the hook
|
|
7
7
|
* @param packageName - The name of the package
|
|
8
8
|
* @param app - The client application
|
|
9
9
|
* @param onFinally - The function to call after the tracking is done
|
|
10
|
+
* @internal
|
|
10
11
|
*/
|
|
11
12
|
export declare const trackHook: (hookName: string, packageName: string, app: ClientApplication, onFinally: () => void) => void;
|
|
12
13
|
export declare const withTracking: HookDecorator<string>;
|
package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export interface CriteriaFilterTileProps {
|
|
|
26
26
|
export type CriteriaFilterType = NumericFilter | TextFilter | RankingFilter | ExcludeFilter;
|
|
27
27
|
/**
|
|
28
28
|
* UI component that allows the user to filter numeric or text attributes according to
|
|
29
|
-
* a number of built-in operations defined in the
|
|
29
|
+
* a number of built-in operations defined in the numeric filter, text filter, or ranking filter.
|
|
30
30
|
*
|
|
31
31
|
* The arrangement prop determines whether the filter is rendered vertically or horizontally, with the latter intended for toolbar use and omitting title, enable/disable, and collapse/expand functionality.
|
|
32
32
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { DateRangeFilter } from '@sisense/sdk-data';
|
|
2
3
|
type DateRangeFilterDisplayProps = {
|
|
3
4
|
filter: DateRangeFilter;
|
|
4
5
|
};
|
|
5
|
-
export declare const DateRangeFilterDisplay:
|
|
6
|
+
export declare const DateRangeFilterDisplay: React.FC<DateRangeFilterDisplayProps>;
|
|
6
7
|
export {};
|
|
@@ -3,7 +3,6 @@ import { DataSource, Filter } from '@sisense/sdk-data';
|
|
|
3
3
|
/**
|
|
4
4
|
* Props of the {@link FiltersPanel} component
|
|
5
5
|
*
|
|
6
|
-
* @internal
|
|
7
6
|
*/
|
|
8
7
|
export type FiltersPanelProps = {
|
|
9
8
|
/** Array of filters to display */
|
|
@@ -16,6 +15,7 @@ export type FiltersPanelProps = {
|
|
|
16
15
|
/**
|
|
17
16
|
* Filters panel component that renders a list of filter tiles
|
|
18
17
|
*
|
|
19
|
-
* @
|
|
18
|
+
* @group Filter Tiles
|
|
19
|
+
* @alpha
|
|
20
20
|
*/
|
|
21
21
|
export declare const FiltersPanel: import("react").FunctionComponent<FiltersPanelProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { FiltersPanel } from './filters-panel';
|
|
1
|
+
export { FiltersPanel, type FiltersPanelProps } from './filters-panel';
|
|
2
2
|
export { FiltersPanelTile } from './filters-panel-tile';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FilterTileDesignOptions } from '../../filters/components/filter-tile';
|
|
2
|
+
import { Filter } from '@sisense/sdk-data';
|
|
3
|
+
export type UnsupportedFilterTileProps = {
|
|
4
|
+
filter: Filter;
|
|
5
|
+
design?: FilterTileDesignOptions;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Filter tile component that renders an unsupported filter (which is not recognized by the JAQL to Filter translation)
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare const UnsupportedFilterTile: ({ filter, design }: UnsupportedFilterTileProps) => import("react/jsx-runtime").JSX.Element;
|