@sisense/sdk-ui 0.13.0 → 0.14.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/api/types/dashboard-dto.d.ts +11 -4
- package/dist/chart-data-options/types.d.ts +11 -5
- package/dist/chart-options-processor/translations/axis-section.d.ts +1 -0
- package/dist/chart-options-processor/translations/scatter-series.d.ts +1 -0
- package/dist/chart-options-processor/translations/sunburst/sunburst-series.d.ts +2 -1
- package/dist/chart-options-processor/translations/translations-to-highcharts.d.ts +3 -2
- package/dist/dashboard-widget/translate-dashboard-filters.d.ts +13 -0
- package/dist/dashboard-widget/translate-panel-color-format.d.ts +3 -2
- package/dist/dashboard-widget/translate-widget-filters.d.ts +31 -0
- package/dist/dashboard-widget/types.d.ts +17 -2
- package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +48 -0
- package/dist/dashboard-widget/utils.d.ts +1 -1
- package/dist/decorators/{with-tracking → component-decorators/with-tracking}/error-tracker.d.ts +1 -1
- package/dist/decorators/hook-decorators/index.d.ts +1 -0
- package/dist/decorators/hook-decorators/with-tracking.d.ts +2 -0
- package/dist/filters/components/common/basic-input.d.ts +8 -0
- package/dist/filters/components/common/index.d.ts +1 -0
- package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +1 -1
- package/dist/filters/components/filter-tile.d.ts +2 -2
- package/dist/filters/components/member-filter-tile/member-filter-tile.d.ts +1 -1
- package/dist/funnel-chart.d.ts +1 -1
- package/dist/highcharts-memorized.d.ts +6 -0
- package/dist/index.js +20253 -19999
- package/dist/indicator-chart.d.ts +1 -1
- package/dist/models/dashboard/use-get-dashboard-model.d.ts +5 -0
- package/dist/models/dashboard/use-get-dashboard-models.d.ts +6 -1
- package/dist/pie-chart.d.ts +1 -1
- package/dist/props.d.ts +36 -8
- package/dist/query-execution/use-execute-query-by-widget-id.d.ts +18 -5
- package/dist/query-execution/use-execute-query.d.ts +10 -6
- package/dist/scatter-chart.d.ts +1 -1
- package/dist/treemap-chart.d.ts +1 -2
- package/dist/types.d.ts +7 -3
- package/dist/widgets/chart-widget.d.ts +2 -2
- package/dist/widgets/common/drilldown.d.ts +1 -1
- package/dist/widgets/table-widget.d.ts +1 -2
- package/package.json +7 -6
- /package/dist/decorators/{as-sisense-component.d.ts → component-decorators/as-sisense-component.d.ts} +0 -0
- /package/dist/decorators/{with-default-translations.d.ts → component-decorators/with-default-translations.d.ts} +0 -0
- /package/dist/decorators/{with-error-boundary.d.ts → component-decorators/with-error-boundary.d.ts} +0 -0
- /package/dist/decorators/{with-sisense-context-validation.d.ts → component-decorators/with-sisense-context-validation.d.ts} +0 -0
- /package/dist/decorators/{with-tracking → component-decorators/with-tracking}/index.d.ts +0 -0
- /package/dist/decorators/{with-tracking → component-decorators/with-tracking}/use-track-component-init.d.ts +0 -0
- /package/dist/decorators/{with-tracking → component-decorators/with-tracking}/with-tracking.d.ts +0 -0
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { WidgetDto, Datasource, FilterJaql } from '../../dashboard-widget/types';
|
|
2
|
-
type Filter = {
|
|
2
|
+
export type Filter = {
|
|
3
|
+
isCascading?: false;
|
|
3
4
|
jaql: FilterJaql;
|
|
4
|
-
|
|
5
|
+
instanceid?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type CascadingFilter = {
|
|
9
|
+
isCascading: true;
|
|
10
|
+
levels: FilterJaql[];
|
|
11
|
+
instanceid?: string;
|
|
12
|
+
disabled?: boolean;
|
|
5
13
|
};
|
|
6
14
|
export type DashboardDto = {
|
|
7
15
|
oid: string;
|
|
8
16
|
title: string;
|
|
9
17
|
datasource: Datasource;
|
|
10
18
|
widgets?: WidgetDto[];
|
|
11
|
-
filters?: Filter
|
|
19
|
+
filters?: Array<Filter | CascadingFilter>;
|
|
12
20
|
};
|
|
13
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DataColorOptions } from '../chart-data/series-data-color-service';
|
|
2
|
-
import type { NumberFormatConfig, SeriesChartType, SortDirection, ValueToColorMap } from '../types';
|
|
2
|
+
import type { NumberFormatConfig, SeriesChartType, SortDirection, ValueToColorMap, MultiColumnValueToColorMap } from '../types';
|
|
3
3
|
import { Column, MeasureColumn, CalculatedMeasureColumn } from '@sisense/sdk-data';
|
|
4
4
|
/**
|
|
5
5
|
* Styles for a category/column when visualized in a chart
|
|
@@ -13,6 +13,9 @@ export interface CategoryStyle {
|
|
|
13
13
|
* Date format.
|
|
14
14
|
*
|
|
15
15
|
* See [ECMAScript Date Time String Format](https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-date-time-string-format)
|
|
16
|
+
*
|
|
17
|
+
* Note that 'YYYY' and 'DD' have been disabled since they often get confused with 'yyyy' and 'dd'
|
|
18
|
+
* and can produce unexpected results.
|
|
16
19
|
*/
|
|
17
20
|
dateFormat?: string;
|
|
18
21
|
/** Boolean flag to toggle continuous timeline on this date column. */
|
|
@@ -100,6 +103,8 @@ export type ValueStyle = {
|
|
|
100
103
|
enabled?: boolean;
|
|
101
104
|
/** Boolean flag whether null values are treated as zeros in the chart */
|
|
102
105
|
treatNullDataAsZeros?: boolean;
|
|
106
|
+
/** Boolean flag whether to connect a graph line across null points or render a gap */
|
|
107
|
+
connectNulls?: boolean;
|
|
103
108
|
};
|
|
104
109
|
/**
|
|
105
110
|
* Wrapped {@link @sisense/sdk-data!MeasureColumn | Measure Column} with styles
|
|
@@ -198,8 +203,9 @@ export interface CategoricalChartDataOptions {
|
|
|
198
203
|
category: (Column | StyledColumn)[];
|
|
199
204
|
/**
|
|
200
205
|
* Optional mapping of each of the series to colors.
|
|
206
|
+
* ({@link MultiColumnValueToColorMap} used only for {@link SunburstChart})
|
|
201
207
|
*/
|
|
202
|
-
seriesToColorMap?: ValueToColorMap;
|
|
208
|
+
seriesToColorMap?: ValueToColorMap | MultiColumnValueToColorMap;
|
|
203
209
|
}
|
|
204
210
|
/**
|
|
205
211
|
* Configuration for how to query aggregate data and assign data
|
|
@@ -281,13 +287,13 @@ export declare function isMeasureColumn(arg: AnyColumn): arg is MeasureColumn |
|
|
|
281
287
|
* Configuration for how to query data and assign data to {@link Table}.
|
|
282
288
|
*
|
|
283
289
|
*/
|
|
284
|
-
export
|
|
290
|
+
export interface TableDataOptions {
|
|
285
291
|
/**
|
|
286
292
|
* Columns (or attributes) whose values represent data columns in table
|
|
287
293
|
*
|
|
288
294
|
*/
|
|
289
295
|
columns: (Column | StyledColumn | MeasureColumn | CalculatedMeasureColumn | StyledMeasureColumn)[];
|
|
290
|
-
}
|
|
296
|
+
}
|
|
291
297
|
/**
|
|
292
298
|
* Configuration for querying aggregate data and assigning data to chart encodings.
|
|
293
299
|
*
|
|
@@ -323,7 +329,7 @@ export interface CartesianChartDataOptionsInternal {
|
|
|
323
329
|
export interface CategoricalChartDataOptionsInternal {
|
|
324
330
|
y: Value[];
|
|
325
331
|
breakBy: Category[];
|
|
326
|
-
seriesToColorMap?: ValueToColorMap;
|
|
332
|
+
seriesToColorMap?: ValueToColorMap | MultiColumnValueToColorMap;
|
|
327
333
|
}
|
|
328
334
|
/** @internal */
|
|
329
335
|
export interface ScatterChartDataOptionsInternal {
|
|
@@ -99,6 +99,7 @@ export type AxisPlotBand = {
|
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
export declare const getCategoricalCompareValue: (value: CategoricalXValues) => number;
|
|
102
|
+
export declare const getDateFormatter: (category: Category, dateFormatter?: ((date: Date, format: string) => string) | undefined) => (time: number) => string;
|
|
102
103
|
export declare const getXAxisDatetimeSettings: (axis: Axis, category: Category, values: number[], dateFormatter?: ((date: Date, format: string) => string) | undefined) => AxisSettings[];
|
|
103
104
|
export declare const getXAxisSettings: (axis: Axis, axis2: Axis | undefined, categories: string[], plotBands: PlotBand[], xAxisOrientation: AxisOrientation, chartDataOptions: ChartDataOptionsInternal, chartType: ChartType) => AxisSettings[];
|
|
104
105
|
export declare const getYAxisSettings: (axis: Axis, axis2: Axis | undefined, axisMinMax: AxisMinMax, axis2MinMax: AxisMinMax, showTotal: boolean, chartDataOptions: ChartDataOptionsInternal) => AxisSettings[];
|
|
@@ -18,6 +18,7 @@ export interface AxisComputedProperties {
|
|
|
18
18
|
maskedBreakByColor?: string;
|
|
19
19
|
maskedSize?: string;
|
|
20
20
|
color?: string;
|
|
21
|
+
selected?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export declare const handleNumberValue: (cell: ComparableData) => number | null;
|
|
23
24
|
export declare const buildScatterSeries: (data: ScatterDataTable, categoriesMap: ScatterAxisCategoriesMap, dataOptions?: ScatterChartDataOptionsInternal, themeSettings?: CompleteThemeSettings, seriesCapacity?: number) => SeriesWithAlerts<SeriesType[]>;
|
|
@@ -10,7 +10,7 @@ export declare function prepareSunburstDataItems(chartData: CategoricalChartData
|
|
|
10
10
|
levelsCount: number;
|
|
11
11
|
};
|
|
12
12
|
} | {
|
|
13
|
-
color:
|
|
13
|
+
color: any;
|
|
14
14
|
name?: string | undefined;
|
|
15
15
|
y?: number | null | undefined;
|
|
16
16
|
x?: number | null | undefined;
|
|
@@ -22,6 +22,7 @@ export declare function prepareSunburstDataItems(chartData: CategoricalChartData
|
|
|
22
22
|
lineWidth?: number | undefined;
|
|
23
23
|
} | undefined;
|
|
24
24
|
selected?: boolean | undefined;
|
|
25
|
+
sliced?: boolean | undefined;
|
|
25
26
|
custom?: {
|
|
26
27
|
[k: string]: unknown;
|
|
27
28
|
number1?: number | undefined;
|
|
@@ -26,6 +26,7 @@ export type SeriesPointStructure = {
|
|
|
26
26
|
lineWidth?: number;
|
|
27
27
|
};
|
|
28
28
|
selected?: boolean;
|
|
29
|
+
sliced?: boolean;
|
|
29
30
|
custom?: {
|
|
30
31
|
number1?: number;
|
|
31
32
|
string1?: string;
|
|
@@ -61,7 +62,7 @@ export declare const addStackingIfSpecified: (chartType: ChartType, designOption
|
|
|
61
62
|
* @param index -
|
|
62
63
|
*/
|
|
63
64
|
export declare const indexMapWhenOnlyY: (categories: string[], index: number) => (0 | -1)[];
|
|
64
|
-
export declare const formatSeriesContinuousXAxis: (series: CategoricalSeriesValues, indexMap: number[], treatNullDataAsZeros: boolean, interval: number, maxCategories: number) => HighchartsSeriesValues;
|
|
65
|
+
export declare const formatSeriesContinuousXAxis: (series: CategoricalSeriesValues, indexMap: number[], treatNullDataAsZeros: boolean, interval: number, maxCategories: number, dateFormatter: (time: number) => string) => HighchartsSeriesValues;
|
|
65
66
|
export declare const formatSeries: (series: CategoricalSeriesValues, indexMap: number[], treatNullDataAsZeros: boolean, categories?: string[], categoryColors?: string[]) => HighchartsSeriesValues;
|
|
66
67
|
export declare const adjustMinWhenColumnBar: (chartType: ChartType, autoMinMax: AxisMinMax) => {
|
|
67
68
|
min: number;
|
|
@@ -71,5 +72,5 @@ export declare const autoCalculateYAxisMinMax: (chartType: ChartType, chartData:
|
|
|
71
72
|
min: number;
|
|
72
73
|
max: number;
|
|
73
74
|
};
|
|
74
|
-
export declare const determineYAxisOptions: (chartData: ChartData, dataOptions: ChartDataOptionsInternal) => [number[], (HighchartsType | undefined)[], boolean[]];
|
|
75
|
+
export declare const determineYAxisOptions: (chartData: ChartData, dataOptions: ChartDataOptionsInternal) => [number[], (HighchartsType | undefined)[], boolean[], boolean[]];
|
|
75
76
|
export declare const getColorSetting: (dataOptions: CartesianChartDataOptionsInternal | CategoricalChartDataOptionsInternal, key: string) => string | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DashboardDto } from '../api/types/dashboard-dto';
|
|
2
|
+
import { WidgetDto } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Extracts dashboard filters applicable to a widget.
|
|
5
|
+
*
|
|
6
|
+
* @param {DashboardDto} dashboard - The dashboard containing the filters.
|
|
7
|
+
* @param {WidgetDto} widget - The widget to extract filters from.
|
|
8
|
+
* @returns {Object} An object containing an array of filters and an array of highlights.
|
|
9
|
+
*/
|
|
10
|
+
export declare function extractDashboardFiltersForWidget(dashboard: DashboardDto, widget: WidgetDto): {
|
|
11
|
+
filters: import("packages/sdk-data/dist").Filter[];
|
|
12
|
+
highlights: import("packages/sdk-data/dist").Filter[];
|
|
13
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DataColorOptions } from '../chart-data/series-data-color-service';
|
|
2
|
-
import { CompleteThemeSettings, ValueToColorMap } from '../types';
|
|
3
|
-
import { PanelColorFormat, PanelMembersFormat } from './types';
|
|
2
|
+
import { CompleteThemeSettings, ValueToColorMap, MultiColumnValueToColorMap } from '../types';
|
|
3
|
+
import { PanelColorFormat, PanelItem, PanelMembersFormat } from './types';
|
|
4
4
|
export declare const createValueColorOptions: (format?: PanelColorFormat, themeSettings?: CompleteThemeSettings) => DataColorOptions | undefined;
|
|
5
5
|
export declare const createValueToColorMap: (membersFormat: PanelMembersFormat) => ValueToColorMap;
|
|
6
|
+
export declare const createValueToColorMultiColumnsMap: (items: PanelItem[]) => MultiColumnValueToColorMap;
|
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
import { Filter } from '@sisense/sdk-data';
|
|
2
2
|
import { FilterJaql, Panel } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Extracts filter model components from a FilterJaql object.
|
|
5
|
+
*
|
|
6
|
+
* @param {FilterJaql} jaql - The FilterJaql object.
|
|
7
|
+
* @returns {object} - An object containing the extracted filter model components, including filter, backgroundFilter, and turnOffMembersFilter.
|
|
8
|
+
*/
|
|
9
|
+
export declare function extractFilterModelFromJaql(jaql: FilterJaql): {
|
|
10
|
+
filter: {
|
|
11
|
+
all: true;
|
|
12
|
+
} | {
|
|
13
|
+
members: string[];
|
|
14
|
+
} | {
|
|
15
|
+
exclude: {
|
|
16
|
+
members: string[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
backgroundFilter: import("./types").BackgroundFilter | ({
|
|
20
|
+
exclude: {
|
|
21
|
+
members: string[];
|
|
22
|
+
};
|
|
23
|
+
} & {
|
|
24
|
+
turnedOff: boolean;
|
|
25
|
+
}) | undefined;
|
|
26
|
+
turnOffMembersFilter: ({
|
|
27
|
+
exclude: {
|
|
28
|
+
members: string[];
|
|
29
|
+
};
|
|
30
|
+
} & {
|
|
31
|
+
turnedOff: boolean;
|
|
32
|
+
}) | undefined;
|
|
33
|
+
};
|
|
3
34
|
/**
|
|
4
35
|
* Creates a Filter from a FilterJaql object.
|
|
5
36
|
*
|
|
@@ -14,6 +14,10 @@ export declare const enum WidgetType {
|
|
|
14
14
|
TableWithAggregation = "tablewidgetagg"
|
|
15
15
|
}
|
|
16
16
|
export type WidgetSubtype = 'area/basic' | 'area/stacked' | 'area/stacked100' | 'area/spline' | 'area/stackedspline' | 'area/stackedspline100' | 'bar/classic' | 'bar/stacked' | 'bar/stacked100' | 'column/classic' | 'column/stackedcolumn' | 'column/stackedcolumn100' | 'line/basic' | 'line/spline' | 'pie/classic' | 'pie/donut' | 'pie/ring' | 'column/polar' | 'area/polar' | 'line/polar' | 'indicator/numeric' | 'indicator/gauge' | 'bubble/scatter' | 'treemap' | 'sunburst';
|
|
17
|
+
export declare enum WidgetDashboardFilterMode {
|
|
18
|
+
FILTER = "filter",
|
|
19
|
+
SELECT = "select"
|
|
20
|
+
}
|
|
17
21
|
export type Datasource = {
|
|
18
22
|
title: string;
|
|
19
23
|
id: string;
|
|
@@ -32,12 +36,21 @@ export interface WidgetDto {
|
|
|
32
36
|
subtype: WidgetSubtype | string;
|
|
33
37
|
datasource: Datasource;
|
|
34
38
|
metadata: {
|
|
39
|
+
ignore?: FiltersIgnoringRules;
|
|
35
40
|
panels: Panel[];
|
|
36
41
|
};
|
|
37
42
|
style: WidgetStyle;
|
|
38
43
|
title: string;
|
|
39
44
|
desc: string;
|
|
45
|
+
options?: {
|
|
46
|
+
dashboardFiltersMode: `${WidgetDashboardFilterMode}`;
|
|
47
|
+
};
|
|
40
48
|
}
|
|
49
|
+
export type FiltersIgnoringRules = {
|
|
50
|
+
dimensions?: string[];
|
|
51
|
+
ids: string[];
|
|
52
|
+
all: boolean;
|
|
53
|
+
};
|
|
41
54
|
export declare const enum DataType {
|
|
42
55
|
TEXT = "text",
|
|
43
56
|
NUMERIC = "numeric",
|
|
@@ -70,7 +83,7 @@ export type FormulaJaql = {
|
|
|
70
83
|
formula: string;
|
|
71
84
|
context?: Record<FormulaID, FormulaContext>;
|
|
72
85
|
};
|
|
73
|
-
type IncludeAllFilter = {
|
|
86
|
+
export type IncludeAllFilter = {
|
|
74
87
|
all: true;
|
|
75
88
|
};
|
|
76
89
|
export type IncludeMembersFilter = {
|
|
@@ -83,7 +96,9 @@ type ExcludeMembersFilter = {
|
|
|
83
96
|
};
|
|
84
97
|
export type MembersFilter = IncludeMembersFilter | ExcludeMembersFilter;
|
|
85
98
|
type BaseFilter = IncludeAllFilter | MembersFilter;
|
|
86
|
-
type BackgroundFilter = BaseFilter
|
|
99
|
+
export type BackgroundFilter = BaseFilter & {
|
|
100
|
+
level?: 'string';
|
|
101
|
+
};
|
|
87
102
|
type TurnOffMembersFilter = ExcludeMembersFilter & {
|
|
88
103
|
turnedOff: boolean;
|
|
89
104
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { RestApi } from '../api/rest-api';
|
|
2
|
+
import { DashboardDto } from '../api/types/dashboard-dto';
|
|
3
|
+
import { WidgetDto } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Fetches a Widget DTO model and, optionally, a Dashboard DTO model.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*
|
|
9
|
+
* @param {Object} options - The options for fetching the DTO models.
|
|
10
|
+
* @param {string} options.widgetOid - The OID of the widget to fetch.
|
|
11
|
+
* @param {string} options.dashboardOid - The OID of the dashboard to which the widget belongs.
|
|
12
|
+
* @param {boolean} [options.includeDashboard] - (Optional) Whether to include the associated dashboard.
|
|
13
|
+
* @param {RestApi} options.api - The RestApi instance to use for fetching.
|
|
14
|
+
* @returns {Promise<{widget: WidgetDto, dashboard?: DashboardDto}>} A promise that resolves to an object containing the Widget DTO and optionally the Dashboard DTO.
|
|
15
|
+
*/
|
|
16
|
+
export declare const fetchWidgetDtoModel: ({ widgetOid, dashboardOid, includeDashboard, api, }: {
|
|
17
|
+
widgetOid: string;
|
|
18
|
+
dashboardOid: string;
|
|
19
|
+
includeDashboard?: boolean | undefined;
|
|
20
|
+
api: RestApi;
|
|
21
|
+
}) => Promise<{
|
|
22
|
+
widget: WidgetDto;
|
|
23
|
+
dashboard: DashboardDto | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Custom hook for fetching Widget DTO and Dashboard DTO models.
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*
|
|
30
|
+
* @param {Object} options - The options for fetching the DTO models.
|
|
31
|
+
* @param {string} options.widgetOid - The OID of the widget to fetch.
|
|
32
|
+
* @param {string} options.dashboardOid - The OID of the dashboard to which the widget belongs.
|
|
33
|
+
* @param {boolean} [options.includeDashboard] - (Optional) Whether to include the associated dashboard.
|
|
34
|
+
* @returns {{
|
|
35
|
+
* widget: WidgetDto,
|
|
36
|
+
* dashboard?: DashboardDto,
|
|
37
|
+
* error: Error
|
|
38
|
+
* }} An object containing the Widget DTO, optionally the Dashboard DTO, and an error if fetching fails.
|
|
39
|
+
*/
|
|
40
|
+
export declare const useFetchWidgetDtoModel: ({ widgetOid, dashboardOid, includeDashboard, }: {
|
|
41
|
+
widgetOid: string;
|
|
42
|
+
dashboardOid: string;
|
|
43
|
+
includeDashboard?: boolean | undefined;
|
|
44
|
+
}) => {
|
|
45
|
+
error: Error | undefined;
|
|
46
|
+
widget?: WidgetDto | undefined;
|
|
47
|
+
dashboard?: DashboardDto | undefined;
|
|
48
|
+
};
|
|
@@ -12,7 +12,7 @@ export declare function getRootPanelItem(item: PanelItem): PanelItem;
|
|
|
12
12
|
export declare function getSortType(jaqlSort: JaqlSortDirection | undefined): SortDirection;
|
|
13
13
|
/**
|
|
14
14
|
* Merges two arrays of filter objects, prioritizing 'targetFilters' over 'sourceFilters',
|
|
15
|
-
* and removes duplicates based on filter
|
|
15
|
+
* and removes duplicates based on filter compare id
|
|
16
16
|
*
|
|
17
17
|
* @param {Filter[]} [sourceFilters=[]] - The source array of filter objects.
|
|
18
18
|
* @param {Filter[]} [targetFilters=[]] - The target array of filter objects.
|
package/dist/decorators/{with-tracking → component-decorators/with-tracking}/error-tracker.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
2
|
import { Component, ReactNode } from 'react';
|
|
3
|
-
import { SisenseContextPayload } from '
|
|
3
|
+
import { SisenseContextPayload } from '../../../sisense-context/sisense-context';
|
|
4
4
|
type ErrorTrackerProps = {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
componentName: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './with-tracking';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type FunctionComponent, type InputHTMLAttributes } from 'react';
|
|
2
|
+
type BasicInputProps = {
|
|
3
|
+
variant?: 'white' | 'grey';
|
|
4
|
+
label: string;
|
|
5
|
+
callback: (value: string) => void;
|
|
6
|
+
} & InputHTMLAttributes<HTMLInputElement>;
|
|
7
|
+
export declare const BasicInput: FunctionComponent<BasicInputProps>;
|
|
8
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { LinkButton, PrimaryButton, SecondaryButton } from './buttons';
|
|
2
2
|
export { Checkbox } from './checkbox';
|
|
3
|
+
export { BasicInput } from './basic-input';
|
|
3
4
|
export { Input } from './input';
|
|
4
5
|
export { Radio } from './radio';
|
|
5
6
|
export { SisenseSwitchButton } from './switch';
|
package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface DateRangeFilterTileProps {
|
|
|
12
12
|
/**
|
|
13
13
|
* Data source the query is run against - e.g. `Sample ECommerce`
|
|
14
14
|
*
|
|
15
|
-
* If not specified, the query will use the `defaultDataSource` specified in the parent
|
|
15
|
+
* If not specified, the query will use the `defaultDataSource` specified in the parent Sisense Context.
|
|
16
16
|
*/
|
|
17
17
|
dataSource?: DataSource;
|
|
18
18
|
/**
|
|
@@ -2,8 +2,8 @@ import type { FunctionComponent, ReactNode } from 'react';
|
|
|
2
2
|
interface Props {
|
|
3
3
|
title: string;
|
|
4
4
|
renderContent: (collapsed: boolean, tileDisabled: boolean) => ReactNode;
|
|
5
|
-
disabled
|
|
6
|
-
onToggleDisabled
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onToggleDisabled?: () => void;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Generic component that owns common functionality of a filter "tile" like
|
|
@@ -9,7 +9,7 @@ export interface MemberFilterTileProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* Data source the query is run against - e.g. `Sample ECommerce`
|
|
11
11
|
*
|
|
12
|
-
* If not specified, the query will use the `defaultDataSource` specified in the parent
|
|
12
|
+
* If not specified, the query will use the `defaultDataSource` specified in the parent Sisense Context.
|
|
13
13
|
*/
|
|
14
14
|
dataSource?: DataSource;
|
|
15
15
|
/** Attribute to filter on. A query will be run to fetch all this attribute's members */
|
package/dist/funnel-chart.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FunnelChartProps } from './props';
|
|
3
3
|
/**
|
|
4
|
-
* A React component representing data progressively decreasing in size or quantity through a
|
|
4
|
+
* A React component representing data progressively decreasing in size or quantity through a funnel shape.
|
|
5
5
|
* See [Funnel Chart](https://docs.sisense.com/main/SisenseLinux/funnel-chart.htm) for more information.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HighchartsOptionsInternal } from './chart-options-processor/chart-options-service';
|
|
3
|
+
export declare const HighchartsReactMemoized: import("react").MemoExoticComponent<({ options, immutable, }: {
|
|
4
|
+
options: HighchartsOptionsInternal;
|
|
5
|
+
immutable: boolean | null | undefined;
|
|
6
|
+
}) => JSX.Element>;
|