@sisense/sdk-ui 1.15.1 → 1.17.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 +50 -50
- package/dist/ai.js +133 -132
- package/dist/analytics-composer/index.d.ts +1 -0
- package/dist/analytics-composer/translators/code-templates.d.ts +11 -0
- package/dist/analytics-composer/translators/generate-code.d.ts +18 -0
- package/dist/analytics-composer/translators/index.d.ts +3 -0
- package/dist/analytics-composer/translators/model-translator.d.ts +48 -0
- package/dist/analytics-composer/translators/query-templates.d.ts +1 -0
- package/dist/analytics-composer/translators/query-translator.d.ts +134 -0
- package/dist/analytics-composer/translators/translate-filters-to-code.d.ts +2 -0
- package/dist/analytics-composer/translators/translate-props-to-code.d.ts +8 -0
- package/dist/analytics-composer/translators/types.d.ts +95 -0
- package/dist/analytics-composer/translators/utils.d.ts +13 -0
- package/dist/analytics-composer.cjs +239 -0
- package/dist/analytics-composer.d.ts +1 -0
- package/dist/analytics-composer.js +5435 -0
- package/dist/api/rest-api.d.ts +5 -0
- package/dist/api/types/dashboard-dto.d.ts +8 -0
- package/dist/api/types/palette-dto.d.ts +9 -0
- package/dist/app/client-application.d.ts +22 -2
- package/dist/app/settings/settings.d.ts +5 -0
- package/dist/app/settings/types/features.d.ts +6 -0
- package/dist/chart/advanced-chart.d.ts +7 -0
- package/dist/chart-data/advanced-analytics-data.d.ts +50 -0
- package/dist/chart-data/types.d.ts +2 -1
- package/dist/chart-data-options/types.d.ts +35 -4
- package/dist/chart-data-processor/table-processor.d.ts +1 -1
- package/dist/chart-options-processor/advanced-chart-options.d.ts +24 -0
- package/dist/chart-options-processor/cartesian-chart-options.d.ts +2 -1
- package/dist/chart-options-processor/chart-options-service.d.ts +5 -0
- package/dist/chart-options-processor/common-highcharts-option-service.d.ts +2 -1
- package/dist/chart-options-processor/translations/axis-section.d.ts +2 -2
- package/dist/chart-options-processor/translations/legend-section.d.ts +2 -0
- package/dist/chart-options-processor/translations/tooltip-utils.d.ts +1 -0
- package/dist/chart-options-processor/translations/tooltip.d.ts +4 -2
- package/dist/charts/map-charts/scattermap/utils/map.d.ts +6 -2
- package/dist/charts/map-charts/scattermap/utils/markers.d.ts +1 -1
- package/dist/charts/table/data-table-wrapper.d.ts +1 -1
- package/dist/charts/table/helpers/calc-column-widths.d.ts +1 -1
- package/dist/charts/table/types.d.ts +0 -1
- package/dist/common/components/loading-indicator.d.ts +27 -0
- package/dist/common/hooks/use-has-changed.d.ts +1 -1
- package/dist/common/hooks/use-tracking.d.ts +7 -0
- package/dist/common-filters/cascading-utils.d.ts +30 -0
- package/dist/common-filters/common-filters-connector.d.ts +7 -1
- package/dist/common-filters/selection-utils.d.ts +1 -1
- package/dist/common-filters/types.d.ts +17 -6
- package/dist/common-filters/utils.d.ts +2 -5
- package/dist/dashboard/dashboard-by-id.d.ts +8 -3
- package/dist/dashboard/dashboard.d.ts +8 -4
- package/dist/dashboard/index.d.ts +1 -1
- package/dist/dashboard/types.d.ts +13 -7
- package/dist/dashboard-widget/dashboard-widget.d.ts +2 -0
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
- package/dist/dashboard-widget/translate-widget-drilldown-options.d.ts +2 -2
- package/dist/dashboard-widget/translate-widget-style-options.d.ts +11 -2
- package/dist/dashboard-widget/types.d.ts +29 -8
- package/dist/dashboard-widget/utils.d.ts +8 -0
- package/dist/decorators/component-decorators/with-tracking/error-tracker.d.ts +3 -0
- package/dist/filters/components/date-filter/date-filter/date-filter.d.ts +1 -0
- package/dist/filters/components/filters-panel/filters-panel.d.ts +2 -1
- package/dist/get-widget-options-D4UHj7o5.cjs +198 -0
- package/dist/get-widget-options-D88MkBTJ.js +37924 -0
- package/dist/index.cjs +183 -208
- package/dist/index.d.ts +3 -3
- package/dist/index.js +20621 -24251
- package/dist/models/dashboard/dashboard-model.d.ts +10 -2
- package/dist/models/dashboard/get-dashboard-model.d.ts +13 -2
- package/dist/models/dashboard/types.d.ts +21 -2
- package/dist/models/dashboard/use-get-dashboard-model.d.ts +2 -0
- package/dist/models/dashboard/use-get-dashboard-models.d.ts +2 -0
- package/dist/models/widget/get-widget-model.d.ts +13 -2
- package/dist/models/widget/translate-widget.d.ts +10 -1
- package/dist/models/widget/use-get-widget-model.d.ts +2 -0
- package/dist/models/widget/widget-model.d.ts +5 -3
- package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +16 -15
- package/dist/pivot-table/{use-apply-pivot-table-formatting.d.ts → hooks/use-apply-pivot-table-formatting.d.ts} +1 -1
- package/dist/pivot-table/{use-get-pivot-table-query.d.ts → hooks/use-get-pivot-table-query.d.ts} +4 -8
- package/dist/pivot-table/hooks/use-pivot-data-loading.d.ts +15 -0
- package/dist/pivot-table/hooks/use-pivot-data-service.d.ts +10 -0
- package/dist/pivot-table/{use-pivot-table-data-options-internal.d.ts → hooks/use-pivot-table-data-options-internal.d.ts} +2 -2
- package/dist/pivot-table/hooks/use-render-pivot.d.ts +24 -0
- package/dist/pivot-table/pivot-table.d.ts +2 -2
- package/dist/props.d.ts +45 -10
- package/dist/query-execution/execute-query-by-widget-id.d.ts +2 -0
- package/dist/query-execution/index.d.ts +1 -1
- package/dist/query-execution/types.d.ts +11 -2
- package/dist/query-execution/use-execute-query-by-widget-id.d.ts +5 -5
- package/dist/sisense-context/sisense-context.d.ts +2 -0
- package/dist/theme-provider/default-theme-settings.d.ts +2 -0
- package/dist/themes/legacy-design-settings.d.ts +14 -0
- package/dist/translation/resources/en.d.ts +9 -0
- package/dist/translation/resources/index.d.ts +18 -0
- package/dist/types.d.ts +89 -9
- package/dist/useQuery-C6PPvTP0.js +43462 -0
- package/dist/useQuery-ChZNmTT3.cjs +433 -0
- package/dist/utils/color/color-interpolation.d.ts +9 -0
- package/dist/utils/combine-handlers.d.ts +3 -0
- package/dist/utils/filters.d.ts +14 -0
- package/dist/widgets/common/drilldown-connector.d.ts +19 -0
- package/dist/widgets/common/{custom-drilldown.d.ts → use-drilldown.d.ts} +7 -3
- package/dist/widgets/common/widget-container.d.ts +2 -2
- package/dist/widgets/common/widget-header-info-button.d.ts +2 -2
- package/dist/widgets/common/widget-header.d.ts +2 -2
- package/dist/widgets/common/widget-style-utils.d.ts +5 -4
- package/dist/widgets/use-highlight-selection.d.ts +10 -0
- package/package.json +18 -9
- package/dist/filters/utils.d.ts +0 -7
- package/dist/useQuery-B-49RH93.js +0 -76791
- package/dist/useQuery-C2MQvc4S.cjs +0 -603
- package/dist/widgets/chart-widget-deprecated.d.ts +0 -30
- package/dist/widgets/common/drilldown.d.ts +0 -25
- package/dist/widgets/common/use-widget-drilldown.d.ts +0 -2
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { DashboardProps } from '../dashboard/types';
|
|
2
3
|
/**
|
|
3
|
-
* React component that renders a dashboard
|
|
4
|
-
* Include inside logic of applying common filters to widgets
|
|
4
|
+
* React component that renders a dashboard whose elements are customizable. It includes internal logic of applying common filters to widgets.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* **Note:** Dashboard extensions based on JS scripts and add-ons in Fusion are not supported.
|
|
7
|
+
*
|
|
8
|
+
* @group Fusion Embed
|
|
9
|
+
* @fusionEmbed
|
|
10
|
+
* @alpha
|
|
7
11
|
*/
|
|
8
|
-
export declare const Dashboard:
|
|
12
|
+
export declare const Dashboard: import("react").FunctionComponent<DashboardProps>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Layout, WidgetFilterOptions, WidgetModel } from '../models';
|
|
1
|
+
import { DashboardStyleOptions, Layout, WidgetFilterOptions, WidgetModel } from '../models';
|
|
2
2
|
import { DataSource, Filter } from '@sisense/sdk-data';
|
|
3
|
+
export type { DashboardStyleOptions, Layout } from '../models';
|
|
3
4
|
/**
|
|
4
5
|
* Props for the DashboardById component
|
|
5
|
-
*
|
|
6
|
-
* @internal
|
|
7
6
|
*/
|
|
8
7
|
export interface DashboardByIdProps {
|
|
8
|
+
/**
|
|
9
|
+
* The OID of the dashboard to render.
|
|
10
|
+
*/
|
|
9
11
|
dashboardOid: string;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* Props for the DashboardLayout component
|
|
13
|
-
*
|
|
14
|
-
* @internal
|
|
15
15
|
*/
|
|
16
16
|
export interface DashboardLayoutProps {
|
|
17
17
|
title: string;
|
|
@@ -23,16 +23,22 @@ export interface DashboardLayoutProps {
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Props for the Dashboard component
|
|
26
|
-
*
|
|
27
|
-
* @internal
|
|
28
26
|
*/
|
|
29
27
|
export interface DashboardProps {
|
|
28
|
+
/** The title of the dashboard */
|
|
30
29
|
title: string;
|
|
30
|
+
/** The layout of the dashboard */
|
|
31
31
|
layout: Layout;
|
|
32
|
+
/** The widgets to render in the dashboard */
|
|
32
33
|
widgets: WidgetModel[];
|
|
34
|
+
/** The dashboard filters to be applied to each of the widgets based on the widget filter options */
|
|
33
35
|
filters: Filter[];
|
|
36
|
+
/** The default data source to use for the dashboard */
|
|
34
37
|
defaultDataSource?: DataSource;
|
|
38
|
+
/** The filter options for each of the widgets */
|
|
35
39
|
widgetFilterOptions?: WidgetFilterOptions;
|
|
40
|
+
/** The style options for the dashboard */
|
|
41
|
+
styleOptions: DashboardStyleOptions;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Props for the Dashboard Header component
|
|
@@ -7,6 +7,8 @@ import { DashboardWidgetProps } from '../props';
|
|
|
7
7
|
* To learn more about using Sisense Fusion Widgets in Compose SDK,
|
|
8
8
|
* see [Sisense Fusion Widgets](/guides/sdk/guides/charts/guide-fusion-widgets.html).
|
|
9
9
|
*
|
|
10
|
+
* **Note:** Widget extensions based on JS scripts and add-ons in Fusion are not supported.
|
|
11
|
+
*
|
|
10
12
|
* ## Example
|
|
11
13
|
*
|
|
12
14
|
* Display two dashboard widgets from a Fusion Embed instance.
|
|
@@ -2,7 +2,7 @@ import { DimensionalBaseMeasure, DimensionalAttribute, DimensionalCalculatedMeas
|
|
|
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']): import("@sisense/sdk-data").Filter |
|
|
5
|
+
export declare function createDimensionalElementFromJaql(jaql: Jaql, format?: PanelItem['format']): import("@sisense/sdk-data").Filter | DimensionalAttribute | DimensionalCalculatedMeasure | DimensionalBaseMeasure;
|
|
6
6
|
export declare function createDataColumn(item: PanelItem, customPaletteColors?: Color[]): StyledMeasureColumn | StyledColumn;
|
|
7
7
|
/** @internal */
|
|
8
8
|
export declare const createDataOptionsFromPanels: (panels: Panel[], variantColors: Color[]) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Panel, WidgetType } from './types';
|
|
1
|
+
import { Panel, PanelItem, WidgetType } from './types';
|
|
2
2
|
import { DrilldownOptions } from '../types';
|
|
3
|
-
export declare const extractDrilldownOptions: (widgetType: WidgetType, panels: Panel[]) => DrilldownOptions;
|
|
3
|
+
export declare const extractDrilldownOptions: (widgetType: WidgetType, panels: Panel[], drillHistory?: PanelItem[], enableDrillToAnywhere?: boolean) => DrilldownOptions;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import { ChartStyleOptions, TableStyleOptions, NumericBarIndicatorStyleOptions, NumericSimpleIndicatorStyleOptions, GaugeIndicatorStyleOptions, PivotTableStyleOptions } from '../types';
|
|
2
|
-
import { Panel, WidgetStyle, WidgetSubtype, WidgetType, TableWidgetStyle, IndicatorWidgetStyle, PivotWidgetStyle } from './types';
|
|
1
|
+
import { ChartStyleOptions, TableStyleOptions, NumericBarIndicatorStyleOptions, NumericSimpleIndicatorStyleOptions, GaugeIndicatorStyleOptions, PivotTableStyleOptions, WidgetStyleOptions } from '../types';
|
|
2
|
+
import { Panel, WidgetStyle, WidgetSubtype, WidgetType, TableWidgetStyle, IndicatorWidgetStyle, PivotWidgetStyle, WidgetDesign } from './types';
|
|
3
3
|
export declare function extractTableChartStyleOptions(widgetStyle: TableWidgetStyle): TableStyleOptions;
|
|
4
4
|
export declare const getIndicatorTypeSpecificOptions: (widgetSubtype: WidgetSubtype, widgetStyle: IndicatorWidgetStyle) => NumericSimpleIndicatorStyleOptions | NumericBarIndicatorStyleOptions | GaugeIndicatorStyleOptions;
|
|
5
5
|
export declare function extractPivotTableStyleOptions(widgetStyle: PivotWidgetStyle): PivotTableStyleOptions;
|
|
6
6
|
export declare function extractStyleOptions<WType extends WidgetType>(widgetType: WType, widgetSubtype: WidgetSubtype, style: WidgetStyle, panels: Panel[]): ChartStyleOptions | TableStyleOptions;
|
|
7
|
+
/**
|
|
8
|
+
* Merges the widget style with the widget design
|
|
9
|
+
*
|
|
10
|
+
* @param widgetStyle - The widget style
|
|
11
|
+
* @param widgetDesign - The widget design
|
|
12
|
+
* @param isWidgetDesignStyleEnabled - The flag to enable the widget design style
|
|
13
|
+
* @returns The merged widget style
|
|
14
|
+
*/
|
|
15
|
+
export declare function getStyleWithWigetDesign(widgetStyle: ChartStyleOptions | TableStyleOptions, widgetDesign?: WidgetDesign, isWidgetDesignStyleEnabled?: boolean): WidgetStyleOptions;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { WidgetContainerStyleOptions } from '../types';
|
|
2
|
+
import { LEGACY_DESIGN_TYPES } from './../themes/legacy-design-settings';
|
|
1
3
|
import { Jaql, JaqlSortDirection } from '@sisense/sdk-data';
|
|
2
4
|
/**
|
|
3
5
|
* The type of a widget on a dashboard that is a variant of Cartesian widget.
|
|
@@ -42,6 +44,7 @@ export interface WidgetDto {
|
|
|
42
44
|
metadata: {
|
|
43
45
|
ignore?: FiltersIgnoringRules;
|
|
44
46
|
panels: Panel[];
|
|
47
|
+
drillHistory?: PanelItem[];
|
|
45
48
|
};
|
|
46
49
|
style: WidgetStyle;
|
|
47
50
|
title: string;
|
|
@@ -49,8 +52,22 @@ export interface WidgetDto {
|
|
|
49
52
|
options?: {
|
|
50
53
|
dashboardFiltersMode: `${WidgetDashboardFilterMode}`;
|
|
51
54
|
selector: boolean;
|
|
55
|
+
drillToAnywhere?: boolean;
|
|
52
56
|
};
|
|
53
57
|
}
|
|
58
|
+
export type WidgetDesign = {
|
|
59
|
+
widgetBackgroundColor: string;
|
|
60
|
+
widgetSpacing: keyof typeof LEGACY_DESIGN_TYPES;
|
|
61
|
+
widgetCornerRadius: keyof typeof LEGACY_DESIGN_TYPES;
|
|
62
|
+
widgetShadow: keyof typeof LEGACY_DESIGN_TYPES;
|
|
63
|
+
widgetBorderEnabled: boolean;
|
|
64
|
+
widgetBorderColor: string;
|
|
65
|
+
widgetTitleColor: string;
|
|
66
|
+
widgetTitleAlignment: keyof typeof LEGACY_DESIGN_TYPES;
|
|
67
|
+
widgetTitleDividerEnabled: boolean;
|
|
68
|
+
widgetTitleDividerColor: string;
|
|
69
|
+
widgetTitleBackgroundColor: string;
|
|
70
|
+
};
|
|
54
71
|
export type FiltersIgnoringRules = {
|
|
55
72
|
dimensions?: string[];
|
|
56
73
|
ids: string[];
|
|
@@ -105,6 +122,8 @@ export type PanelItem = {
|
|
|
105
122
|
members?: PanelMembersFormat;
|
|
106
123
|
subtotal?: boolean;
|
|
107
124
|
databars?: boolean;
|
|
125
|
+
width?: number;
|
|
126
|
+
colorIndex?: number;
|
|
108
127
|
};
|
|
109
128
|
jaql: Jaql;
|
|
110
129
|
disabled?: boolean;
|
|
@@ -185,7 +204,7 @@ type BaseWidgetStyle = {
|
|
|
185
204
|
enabled: boolean;
|
|
186
205
|
};
|
|
187
206
|
};
|
|
188
|
-
export type CartesianWidgetStyle = BaseWidgetStyle & {
|
|
207
|
+
export type CartesianWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions & {
|
|
189
208
|
seriesLabels: LabelsStyle;
|
|
190
209
|
xAxis: AxisStyle & {
|
|
191
210
|
x2Title?: AxisTitleStyle;
|
|
@@ -201,7 +220,7 @@ export type CartesianWidgetStyle = BaseWidgetStyle & {
|
|
|
201
220
|
fill: string;
|
|
202
221
|
};
|
|
203
222
|
};
|
|
204
|
-
export type PolarWidgetStyle = BaseWidgetStyle & {
|
|
223
|
+
export type PolarWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions & {
|
|
205
224
|
categories?: AxisStyle;
|
|
206
225
|
axis?: AxisStyle;
|
|
207
226
|
};
|
|
@@ -210,12 +229,12 @@ type ScatterMarkerSize = {
|
|
|
210
229
|
min: number;
|
|
211
230
|
max: number;
|
|
212
231
|
};
|
|
213
|
-
export type ScatterWidgetStyle = BaseWidgetStyle & {
|
|
232
|
+
export type ScatterWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions & {
|
|
214
233
|
xAxis: AxisStyle;
|
|
215
234
|
yAxis: AxisStyle;
|
|
216
235
|
markerSize?: ScatterMarkerSize;
|
|
217
236
|
};
|
|
218
|
-
export type FunnelWidgetStyle = BaseWidgetStyle & {
|
|
237
|
+
export type FunnelWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions & {
|
|
219
238
|
size: string;
|
|
220
239
|
type: string;
|
|
221
240
|
direction: string;
|
|
@@ -233,7 +252,7 @@ export type TableWidgetStyle = {
|
|
|
233
252
|
'colors/headers': boolean;
|
|
234
253
|
'colors/rows': boolean;
|
|
235
254
|
};
|
|
236
|
-
export type IndicatorWidgetStyle = {
|
|
255
|
+
export type IndicatorWidgetStyle = WidgetContainerStyleOptions & {
|
|
237
256
|
'indicator/gauge': {
|
|
238
257
|
subtype: string;
|
|
239
258
|
skin: string;
|
|
@@ -309,7 +328,7 @@ export type SunburstWidgetStyle = {
|
|
|
309
328
|
'tooltip/contribution': boolean;
|
|
310
329
|
'tooltip/value': boolean;
|
|
311
330
|
};
|
|
312
|
-
export type BoxplotWidgetStyle = {
|
|
331
|
+
export type BoxplotWidgetStyle = WidgetContainerStyleOptions & {
|
|
313
332
|
xAxis: AxisStyle;
|
|
314
333
|
yAxis: AxisStyle;
|
|
315
334
|
whisker: {
|
|
@@ -321,7 +340,7 @@ export type BoxplotWidgetStyle = {
|
|
|
321
340
|
enabled: boolean;
|
|
322
341
|
};
|
|
323
342
|
};
|
|
324
|
-
export type ScattermapWidgetStyle = {
|
|
343
|
+
export type ScattermapWidgetStyle = WidgetContainerStyleOptions & {
|
|
325
344
|
markers: {
|
|
326
345
|
fill: 'filled' | 'filled-light' | 'hollow' | 'hollow-bold';
|
|
327
346
|
size: {
|
|
@@ -333,7 +352,9 @@ export type ScattermapWidgetStyle = {
|
|
|
333
352
|
};
|
|
334
353
|
/** Currently, WidgetStyle for areamap is an empty object */
|
|
335
354
|
export type AreamapWidgetStyle = {};
|
|
336
|
-
export type WidgetStyle =
|
|
355
|
+
export type WidgetStyle = {
|
|
356
|
+
widgetDesign?: WidgetDesign;
|
|
357
|
+
} & (CartesianWidgetStyle | PolarWidgetStyle | FunnelWidgetStyle | ScatterWidgetStyle | TableWidgetStyle | IndicatorWidgetStyle | TreemapWidgetStyle | SunburstWidgetStyle | BoxplotWidgetStyle | ScattermapWidgetStyle | AreamapWidgetStyle | PivotWidgetStyle);
|
|
337
358
|
export declare enum FiltersMergeStrategyEnum {
|
|
338
359
|
WIDGET_FIRST = "widgetFirst",
|
|
339
360
|
CODE_FIRST = "codeFirst",
|
|
@@ -19,6 +19,14 @@ export declare function getRootPanelItem(item: PanelItem): PanelItem;
|
|
|
19
19
|
* @internal
|
|
20
20
|
*/
|
|
21
21
|
export declare function getSortType(jaqlSort: `${JaqlSortDirection}` | undefined): SortDirection;
|
|
22
|
+
/**
|
|
23
|
+
* Gets a unique identifier for a filter, combining its attribute expression and granularity if available.
|
|
24
|
+
*
|
|
25
|
+
* @param {Filter} filter - The filter object to generate the unique identifier for.
|
|
26
|
+
* @returns {string} - The unique identifier for the filter.
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare function getFilterCompareId(filter: Filter): string;
|
|
22
30
|
/**
|
|
23
31
|
* Merges two arrays of filter objects, prioritizing 'targetFilters' over 'sourceFilters',
|
|
24
32
|
* and removes duplicates based on filter compare id.
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { ErrorEventOptions } from '@sisense/sdk-tracking';
|
|
1
2
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
3
|
import { Component, ReactNode } from 'react';
|
|
3
4
|
import { SisenseContextPayload } from '../../../sisense-context/sisense-context';
|
|
4
5
|
type ErrorTrackerProps = {
|
|
5
6
|
children: ReactNode;
|
|
7
|
+
handler: (options: ErrorEventOptions) => Promise<void>;
|
|
6
8
|
componentName: string;
|
|
7
9
|
};
|
|
8
10
|
export declare class ErrorTracker extends Component<ErrorTrackerProps, {
|
|
@@ -10,6 +12,7 @@ export declare class ErrorTracker extends Component<ErrorTrackerProps, {
|
|
|
10
12
|
}> {
|
|
11
13
|
componentName: string;
|
|
12
14
|
context: SisenseContextPayload;
|
|
15
|
+
handler: (options: ErrorEventOptions) => Promise<void>;
|
|
13
16
|
httpClient?: HttpClient;
|
|
14
17
|
postponedErrors: Error[];
|
|
15
18
|
constructor(props: ErrorTrackerProps);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { DataSource, Filter } from '@sisense/sdk-data';
|
|
2
3
|
/**
|
|
3
4
|
* Props of the {@link FiltersPanel} component
|
|
@@ -17,4 +18,4 @@ export type FiltersPanelProps = {
|
|
|
17
18
|
*
|
|
18
19
|
* @internal
|
|
19
20
|
*/
|
|
20
|
-
export declare const FiltersPanel:
|
|
21
|
+
export declare const FiltersPanel: import("react").FunctionComponent<FiltersPanelProps>;
|