@sisense/sdk-ui 1.4.0 → 1.5.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/api/types.d.ts +1 -2
- package/dist/ai/chatbot.d.ts +2 -2
- package/dist/ai/common/collapsible.d.ts +11 -0
- package/dist/ai/get-nlg-query-result.d.ts +9 -57
- package/dist/ai/icons/loading-dots-gif-base64.d.ts +2 -0
- package/dist/ai/index.d.ts +2 -2
- package/dist/ai/messages/insights-message.d.ts +1 -4
- package/dist/ai/use-get-nlg-query-result.d.ts +39 -71
- package/dist/ai/use-get-query-recommendations.d.ts +31 -34
- package/dist/ai.js +785 -756
- package/dist/boxplot-utils.d.ts +1 -1
- package/dist/chart-data-options/types.d.ts +3 -3
- package/dist/chart-data-processor/utils.d.ts +10 -0
- package/dist/chart-options-processor/subtype-to-design-options.d.ts +6 -6
- package/dist/charts/table/helpers/calc-column-widths.d.ts +1 -1
- package/dist/charts/table/styles/style-constants.d.ts +2 -2
- package/dist/common/components/loading-spinner.d.ts +5 -0
- package/dist/dashboard-widget/dashboard-widget.d.ts +4 -1
- package/dist/dashboard-widget/types.d.ts +1 -1
- package/dist/formulas/fetch-formula.d.ts +2 -2
- package/dist/index.js +5427 -5391
- package/dist/props.d.ts +195 -118
- package/dist/query-execution/types.d.ts +46 -16
- package/dist/sisense-context/sisense-context.d.ts +4 -1
- package/dist/theme-provider/theme-provider.d.ts +1 -1
- package/dist/types.d.ts +32 -32
- package/dist/utils/not-available-value.d.ts +3 -0
- package/dist/widgets/table-widget.d.ts +1 -1
- package/dist/{with-tracking-b583e949.js → with-tracking-0799ec25.js} +13822 -13749
- package/package.json +13 -13
- package/dist/ai/loading-page.d.ts +0 -2
package/dist/boxplot-utils.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare function boxWhiskerProcessResult(boxWhiskerData: QueryResultData,
|
|
|
22
22
|
export declare const executeBoxplotQuery: ({ app, chartDataOptions, dataSource, attributes, measures, filters, highlights, }: {
|
|
23
23
|
app: ClientApplication;
|
|
24
24
|
chartDataOptions: BoxplotChartDataOptionsInternal;
|
|
25
|
-
dataSource?:
|
|
25
|
+
dataSource?: DataSource | undefined;
|
|
26
26
|
attributes: Attribute[];
|
|
27
27
|
measures: Measure[];
|
|
28
28
|
filters?: Filter[] | undefined;
|
|
@@ -245,7 +245,7 @@ export interface CategoricalChartDataOptions {
|
|
|
245
245
|
category: (Column | StyledColumn)[];
|
|
246
246
|
/**
|
|
247
247
|
* Optional mapping of each of the series to colors.
|
|
248
|
-
* ({@link MultiColumnValueToColorMap} used only for
|
|
248
|
+
* ({@link MultiColumnValueToColorMap} used only for the Sunburst Chart component)
|
|
249
249
|
*/
|
|
250
250
|
seriesToColorMap?: ValueToColorMap | MultiColumnValueToColorMap;
|
|
251
251
|
}
|
|
@@ -336,7 +336,7 @@ export interface AreamapChartDataOptions {
|
|
|
336
336
|
*/
|
|
337
337
|
export declare function isMeasureColumn(arg: AnyColumn): arg is MeasureColumn | CalculatedMeasureColumn | StyledMeasureColumn;
|
|
338
338
|
/**
|
|
339
|
-
* Configuration for how to query data and assign data to
|
|
339
|
+
* Configuration for how to query data and assign data to Table.
|
|
340
340
|
*
|
|
341
341
|
*/
|
|
342
342
|
export interface TableDataOptions {
|
|
@@ -347,7 +347,7 @@ export interface TableDataOptions {
|
|
|
347
347
|
columns: (Column | StyledColumn | MeasureColumn | CalculatedMeasureColumn | StyledMeasureColumn)[];
|
|
348
348
|
}
|
|
349
349
|
/**
|
|
350
|
-
* Configuration for how to query data and assign data to
|
|
350
|
+
* Configuration for how to query data and assign data to PivotTable.
|
|
351
351
|
*
|
|
352
352
|
*/
|
|
353
353
|
export interface PivotTableDataOptions {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChartType } from '../types';
|
|
2
|
+
import { DataTable } from '../chart-data-processor/table-processor';
|
|
3
|
+
/**
|
|
4
|
+
* Remove rows with 'N/A' values for charts that do not support visualization of this type of value
|
|
5
|
+
*
|
|
6
|
+
* @param chartType - type of chart
|
|
7
|
+
* @param dataTable - Chart data table
|
|
8
|
+
* @returns Chart data table
|
|
9
|
+
*/
|
|
10
|
+
export declare function handleNAInTable(chartType: ChartType, dataTable: DataTable): DataTable;
|
|
@@ -4,7 +4,7 @@ import { AreamapType } from '../types';
|
|
|
4
4
|
/**
|
|
5
5
|
* Property of {@link LineStyleOptions}
|
|
6
6
|
*
|
|
7
|
-
* Subtype of
|
|
7
|
+
* Subtype of LineChart
|
|
8
8
|
*
|
|
9
9
|
* **Values**
|
|
10
10
|
*
|
|
@@ -16,7 +16,7 @@ export type LineSubtype = 'line/spline' | 'line/basic';
|
|
|
16
16
|
/**
|
|
17
17
|
* Property of {@link AreaStyleOptions}
|
|
18
18
|
*
|
|
19
|
-
* Subtype of
|
|
19
|
+
* Subtype of AreaChart
|
|
20
20
|
*
|
|
21
21
|
* **Values**
|
|
22
22
|
*
|
|
@@ -32,7 +32,7 @@ export type AreaSubtype = 'area/basic' | 'area/stacked' | 'area/stacked100' | 'a
|
|
|
32
32
|
/**
|
|
33
33
|
* Property of {@link StackableSubtype}
|
|
34
34
|
*
|
|
35
|
-
* Subtype of
|
|
35
|
+
* Subtype of BarChart
|
|
36
36
|
*
|
|
37
37
|
* **Values**
|
|
38
38
|
* - `bar/classic` - y axis values displayed vertically.
|
|
@@ -47,7 +47,7 @@ export type StackableSubtype = 'bar/classic' | 'bar/stacked' | 'bar/stacked100'
|
|
|
47
47
|
/**
|
|
48
48
|
* Property of {@link PieStyleOptions}
|
|
49
49
|
*
|
|
50
|
-
* Subtype of
|
|
50
|
+
* Subtype of PieChart
|
|
51
51
|
*
|
|
52
52
|
* **Values**
|
|
53
53
|
*
|
|
@@ -60,7 +60,7 @@ export type PieSubtype = 'pie/classic' | 'pie/donut' | 'pie/ring';
|
|
|
60
60
|
/**
|
|
61
61
|
* Property of {@link PolarStyleOptions}
|
|
62
62
|
*
|
|
63
|
-
* Subtype of
|
|
63
|
+
* Subtype of PolarChart
|
|
64
64
|
*
|
|
65
65
|
* **Values**
|
|
66
66
|
*
|
|
@@ -71,7 +71,7 @@ export type PieSubtype = 'pie/classic' | 'pie/donut' | 'pie/ring';
|
|
|
71
71
|
export type PolarSubtype = 'polar/column' | 'polar/area' | 'polar/line';
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
|
-
* Subtype of
|
|
74
|
+
* Subtype of IndicatorChart
|
|
75
75
|
*
|
|
76
76
|
* **Values**
|
|
77
77
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DataTable } from '../../../chart-data-processor/table-processor';
|
|
2
|
-
export declare const calcColumnWidths: (dataTable: DataTable, isLoading: boolean, columnsOptions: {
|
|
2
|
+
export declare const calcColumnWidths: (dataTable: DataTable, isLoading: boolean, isShowFieldTypeIcon: boolean, columnsOptions: {
|
|
3
3
|
isHtml: boolean;
|
|
4
4
|
}[], fontFamily?: string) => number[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const HEADER_HEIGHT = 26;
|
|
2
2
|
export declare const ROW_HEIGHT = 26;
|
|
3
|
-
export declare const HEADER_PADDING =
|
|
3
|
+
export declare const HEADER_PADDING = 36;
|
|
4
|
+
export declare const HEADER_TYPE_ICON_SPACING = 29;
|
|
4
5
|
export declare const DATA_PADDING = 24;
|
|
5
|
-
export declare const EXTRA_PIXELS = 8;
|
|
6
6
|
export declare const MAX_WIDTH = 350;
|
|
7
7
|
export declare const MIN_WIDTH = 126;
|
|
8
8
|
export declare const HEADER_ELLIPSIZED_LENGTH = 38;
|
|
@@ -2,7 +2,10 @@ import { type FunctionComponent } from 'react';
|
|
|
2
2
|
import { DashboardWidgetProps } from '../props';
|
|
3
3
|
/**
|
|
4
4
|
* The Dashboard Widget component, which is a thin wrapper on the {@link ChartWidget} component,
|
|
5
|
-
* used to render a widget created in
|
|
5
|
+
* is used to render a widget created in a Sisense Fusion instance.
|
|
6
|
+
*
|
|
7
|
+
* To learn more about using Sisense Fusion Widgets in Compose SDK,
|
|
8
|
+
* see [Sisense Fusion Widgets](/guides/sdk/guides/charts/guide-fusion-widgets.html).
|
|
6
9
|
*
|
|
7
10
|
* @example
|
|
8
11
|
* The example below renders a dashboard widget with the specified widget and dashboard OIDs.
|
|
@@ -73,7 +73,7 @@ export declare enum CurrencyPosition {
|
|
|
73
73
|
export type NumericMask = {
|
|
74
74
|
isdefault?: boolean;
|
|
75
75
|
abbreviations?: DecimalAbbreviations;
|
|
76
|
-
decimals?: 'auto' | number;
|
|
76
|
+
decimals?: 'auto' | number | string;
|
|
77
77
|
currency?: {
|
|
78
78
|
symbol: string;
|
|
79
79
|
position: CurrencyPosition;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClientApplication } from '../app/client-application.js';
|
|
2
|
-
import { DimensionalCalculatedMeasure } from '@sisense/sdk-data';
|
|
2
|
+
import { DataSource, DimensionalCalculatedMeasure } from '@sisense/sdk-data';
|
|
3
3
|
/**
|
|
4
4
|
* Fetch a formula by oid from the default Sisense instance
|
|
5
5
|
*
|
|
@@ -15,4 +15,4 @@ export declare function fetchFormulaByOid(oid: string, app: ClientApplication):
|
|
|
15
15
|
* @param name - Formula name/title in Sisense instance
|
|
16
16
|
* @param dataSource - Data source in Sisense instance
|
|
17
17
|
*/
|
|
18
|
-
export declare function fetchFormula(name: string, dataSource:
|
|
18
|
+
export declare function fetchFormula(name: string, dataSource: DataSource, app: ClientApplication): Promise<DimensionalCalculatedMeasure | null>;
|