@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
|
@@ -3,7 +3,10 @@ import { ClientApplication } from '../app/client-application';
|
|
|
3
3
|
export type SisenseContextPayload = {
|
|
4
4
|
isInitialized: boolean;
|
|
5
5
|
app?: ClientApplication;
|
|
6
|
-
|
|
6
|
+
tracking: {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
packageName: string;
|
|
9
|
+
};
|
|
7
10
|
};
|
|
8
11
|
export declare const SisenseContext: import("react").Context<SisenseContextPayload>;
|
|
9
12
|
export declare const useSisenseContext: () => SisenseContextPayload;
|
|
@@ -38,7 +38,7 @@ export declare const useThemeContext: () => {
|
|
|
38
38
|
* For comparison, indicator chart with default theme settings:
|
|
39
39
|
*
|
|
40
40
|
* <img src="media://indicator-chart-example-1.png" width="400px" />
|
|
41
|
-
* @see {@link ThemeSettings} and
|
|
41
|
+
* @see {@link ThemeSettings} and IndicatorChart
|
|
42
42
|
* @param props - Theme provider props
|
|
43
43
|
* @returns A Theme Provider component
|
|
44
44
|
*/
|
package/dist/types.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export type { AppConfig } from './app/client-application';
|
|
|
14
14
|
export type { DateConfig } from './query/date-formats';
|
|
15
15
|
export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
|
|
16
16
|
export type { DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, } from './chart-data/data-coloring/types';
|
|
17
|
-
export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, };
|
|
17
|
+
export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, Coordinates, };
|
|
18
18
|
export type { MonthOfYear, DayOfWeek, DateLevel } from './query/date-formats/apply-date-format';
|
|
19
19
|
/**
|
|
20
20
|
* @internal
|
|
@@ -205,18 +205,18 @@ export interface BaseAxisStyleOptions {
|
|
|
205
205
|
/** Configuration for second Y axis */
|
|
206
206
|
y2Axis?: AxisLabel;
|
|
207
207
|
}
|
|
208
|
-
/** Configuration options that define functional style of the various elements of
|
|
208
|
+
/** Configuration options that define functional style of the various elements of LineChart */
|
|
209
209
|
export interface LineStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
210
210
|
/** Configuration that defines line width */
|
|
211
211
|
lineWidth?: LineWidth;
|
|
212
|
-
/** Subtype of
|
|
212
|
+
/** Subtype of LineChart */
|
|
213
213
|
subtype?: LineSubtype;
|
|
214
214
|
}
|
|
215
|
-
/** Configuration options that define functional style of the various elements of
|
|
215
|
+
/** Configuration options that define functional style of the various elements of AreaChart */
|
|
216
216
|
export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
217
217
|
/** Configuration that defines line width */
|
|
218
218
|
lineWidth?: LineWidth;
|
|
219
|
-
/** Subtype of
|
|
219
|
+
/** Subtype of AreaChart*/
|
|
220
220
|
subtype?: AreaSubtype;
|
|
221
221
|
}
|
|
222
222
|
/** Configuration options that define functional style of the various elements of stackable charts, like Column or Bar */
|
|
@@ -236,25 +236,25 @@ export interface PieStyleOptions extends BaseStyleOptions {
|
|
|
236
236
|
/** Subtype of Pie chart*/
|
|
237
237
|
subtype?: PieSubtype;
|
|
238
238
|
}
|
|
239
|
-
/** Configuration options that define functional style of the various elements of
|
|
239
|
+
/** Configuration options that define functional style of the various elements of FunnelChart */
|
|
240
240
|
export interface FunnelStyleOptions extends BaseStyleOptions {
|
|
241
241
|
/** Visual size of the lowest slice (degree of funnel narrowing from highest to lowest slices)*/
|
|
242
242
|
funnelSize?: FunnelSize;
|
|
243
|
-
/** Visual type of the lowest slice of
|
|
243
|
+
/** Visual type of the lowest slice of FunnelChart */
|
|
244
244
|
funnelType?: FunnelType;
|
|
245
|
-
/** Direction of
|
|
245
|
+
/** Direction of FunnelChart narrowing */
|
|
246
246
|
funnelDirection?: FunnelDirection;
|
|
247
|
-
/** Configuration that defines behavior of data labels on
|
|
247
|
+
/** Configuration that defines behavior of data labels on FunnelChart */
|
|
248
248
|
labels?: Labels;
|
|
249
|
-
/** Subtype of
|
|
249
|
+
/** Subtype of FunnelChart*/
|
|
250
250
|
subtype?: never;
|
|
251
251
|
}
|
|
252
|
-
/** Configuration options that define functional style of the various elements of
|
|
252
|
+
/** Configuration options that define functional style of the various elements of PolarChart */
|
|
253
253
|
export interface PolarStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
254
|
-
/** Subtype of
|
|
254
|
+
/** Subtype of PolarChart*/
|
|
255
255
|
subtype?: PolarSubtype;
|
|
256
256
|
}
|
|
257
|
-
/** Configuration options that define functional style of the various elements of
|
|
257
|
+
/** Configuration options that define functional style of the various elements of IndicatorChart */
|
|
258
258
|
export type IndicatorStyleOptions = (NumericSimpleIndicatorStyleOptions | NumericBarIndicatorStyleOptions | GaugeIndicatorStyleOptions) & {
|
|
259
259
|
/**
|
|
260
260
|
* Total width of the component, which is considered in the following order of priority:
|
|
@@ -274,7 +274,7 @@ export type IndicatorStyleOptions = (NumericSimpleIndicatorStyleOptions | Numeri
|
|
|
274
274
|
*/
|
|
275
275
|
height?: number;
|
|
276
276
|
};
|
|
277
|
-
/** Configuration options that define functional style of the various elements of
|
|
277
|
+
/** Configuration options that define functional style of the various elements of the Table Component */
|
|
278
278
|
export interface TableStyleOptions {
|
|
279
279
|
/**
|
|
280
280
|
* Boolean flag whether to fill header cells with background color
|
|
@@ -313,7 +313,7 @@ export interface TableStyleOptions {
|
|
|
313
313
|
*/
|
|
314
314
|
height?: number;
|
|
315
315
|
}
|
|
316
|
-
/** Configuration options that define functional style of the various elements of
|
|
316
|
+
/** Configuration options that define functional style of the various elements of the PivotTable component */
|
|
317
317
|
export interface PivotTableStyleOptions {
|
|
318
318
|
/**
|
|
319
319
|
* Boolean flag whether to fill header cells with background color
|
|
@@ -366,31 +366,31 @@ export interface BaseIndicatorStyleOptions {
|
|
|
366
366
|
/** Boolean flag to force render indicator in ticker mode regardless of display size */
|
|
367
367
|
forceTickerView?: boolean;
|
|
368
368
|
}
|
|
369
|
-
/** Configuration options that define functional style of the various elements of Numeric Simple
|
|
369
|
+
/** Configuration options that define functional style of the various elements of Numeric Simple IndicatorChart */
|
|
370
370
|
export interface NumericSimpleIndicatorStyleOptions extends BaseIndicatorStyleOptions {
|
|
371
371
|
subtype: 'indicator/numeric';
|
|
372
372
|
numericSubtype: 'numericSimple';
|
|
373
373
|
skin: 'vertical' | 'horizontal';
|
|
374
374
|
}
|
|
375
|
-
/** Configuration options that define functional style of the various elements of Numeric Bar
|
|
375
|
+
/** Configuration options that define functional style of the various elements of Numeric Bar IndicatorChart */
|
|
376
376
|
export interface NumericBarIndicatorStyleOptions extends BaseIndicatorStyleOptions {
|
|
377
377
|
subtype: 'indicator/numeric';
|
|
378
378
|
numericSubtype: 'numericBar';
|
|
379
379
|
}
|
|
380
|
-
/** Configuration options that define functional style of the various elements of Gauge
|
|
380
|
+
/** Configuration options that define functional style of the various elements of Gauge IndicatorChart */
|
|
381
381
|
export interface GaugeIndicatorStyleOptions extends BaseIndicatorStyleOptions {
|
|
382
382
|
subtype: 'indicator/gauge';
|
|
383
383
|
skin: 1 | 2;
|
|
384
384
|
/** Bar height for gauge indicator in ticker mode */
|
|
385
385
|
tickerBarHeight?: number;
|
|
386
386
|
}
|
|
387
|
-
/** Configuration options that define functional style of the various elements of
|
|
387
|
+
/** Configuration options that define functional style of the various elements of ScatterChart */
|
|
388
388
|
export interface ScatterStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
389
|
-
/** Subtype of
|
|
389
|
+
/** Subtype of ScatterChart*/
|
|
390
390
|
subtype?: never;
|
|
391
391
|
markerSize?: ScatterMarkerSize;
|
|
392
392
|
}
|
|
393
|
-
/** Configuration options that define functional style of the various elements of
|
|
393
|
+
/** Configuration options that define functional style of the various elements of TreemapChart */
|
|
394
394
|
export interface TreemapStyleOptions extends BaseStyleOptions {
|
|
395
395
|
/** Labels options object */
|
|
396
396
|
labels?: {
|
|
@@ -406,7 +406,7 @@ export interface TreemapStyleOptions extends BaseStyleOptions {
|
|
|
406
406
|
mode?: 'value' | 'contribution';
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
/** Configuration options that define functional style of the various elements of
|
|
409
|
+
/** Configuration options that define functional style of the various elements of the SunburstChart component */
|
|
410
410
|
export interface SunburstStyleOptions extends BaseStyleOptions {
|
|
411
411
|
/** Labels options object */
|
|
412
412
|
labels?: {
|
|
@@ -422,20 +422,20 @@ export interface SunburstStyleOptions extends BaseStyleOptions {
|
|
|
422
422
|
mode?: 'value' | 'contribution';
|
|
423
423
|
};
|
|
424
424
|
}
|
|
425
|
-
/** Configuration options that define functional style of the various elements of
|
|
425
|
+
/** Configuration options that define functional style of the various elements of the BoxplotChart component */
|
|
426
426
|
export interface BoxplotStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
427
|
-
/** Subtype of
|
|
427
|
+
/** Subtype of the BoxplotChart component*/
|
|
428
428
|
subtype?: BoxplotSubtype;
|
|
429
429
|
}
|
|
430
430
|
/**
|
|
431
|
-
* Type of map to display on
|
|
431
|
+
* Type of map to display on the AreamapChart component
|
|
432
432
|
*/
|
|
433
433
|
export type AreamapType = 'world' | 'usa';
|
|
434
434
|
/**
|
|
435
|
-
* Configuration options that define functional style of the various elements of
|
|
435
|
+
* Configuration options that define functional style of the various elements of the AreamapChart component
|
|
436
436
|
*/
|
|
437
437
|
export interface AreamapStyleOptions extends Pick<BaseStyleOptions, 'width' | 'height'> {
|
|
438
|
-
/** Type of map to display on
|
|
438
|
+
/** Type of map to display on the AreamapChart component */
|
|
439
439
|
mapType?: AreamapType;
|
|
440
440
|
}
|
|
441
441
|
/**
|
|
@@ -454,7 +454,7 @@ export type ScattermapMarkers = {
|
|
|
454
454
|
maxSize?: number;
|
|
455
455
|
};
|
|
456
456
|
};
|
|
457
|
-
/** Configuration options that define functional style of the various elements of
|
|
457
|
+
/** Configuration options that define functional style of the various elements of ScattermapChart */
|
|
458
458
|
export interface ScattermapStyleOptions extends Pick<BaseStyleOptions, 'width' | 'height'> {
|
|
459
459
|
subtype?: never;
|
|
460
460
|
markers?: ScattermapMarkers;
|
|
@@ -627,7 +627,7 @@ export interface WidgetStyleOptions {
|
|
|
627
627
|
renderToolbar?: (onRefresh: () => void) => JSX.Element;
|
|
628
628
|
};
|
|
629
629
|
}
|
|
630
|
-
/** Style settings defining the look and feel of
|
|
630
|
+
/** Style settings defining the look and feel of DashboardWidget */
|
|
631
631
|
export interface DashboardWidgetStyleOptions extends WidgetStyleOptions {
|
|
632
632
|
/**
|
|
633
633
|
* Total width of the component, which is considered in the following order of priority:
|
|
@@ -647,7 +647,7 @@ export interface DashboardWidgetStyleOptions extends WidgetStyleOptions {
|
|
|
647
647
|
*/
|
|
648
648
|
height?: number;
|
|
649
649
|
}
|
|
650
|
-
/** Style settings defining the look and feel of
|
|
650
|
+
/** Style settings defining the look and feel of ChartWidget */
|
|
651
651
|
export type ChartWidgetStyleOptions = ChartStyleOptions & WidgetStyleOptions;
|
|
652
652
|
/**
|
|
653
653
|
* Style settings defining the look and feel of TableWidget}
|
|
@@ -847,7 +847,7 @@ export type SeriesWithAlerts<T> = {
|
|
|
847
847
|
};
|
|
848
848
|
/**
|
|
849
849
|
* Context menu position coordinates
|
|
850
|
-
* Used in {@link
|
|
850
|
+
* Used in {@link ContextMenuProps} component
|
|
851
851
|
*/
|
|
852
852
|
export type MenuPosition = {
|
|
853
853
|
/** Horizontal position */
|
|
@@ -857,7 +857,7 @@ export type MenuPosition = {
|
|
|
857
857
|
};
|
|
858
858
|
/**
|
|
859
859
|
* Context menu section
|
|
860
|
-
* Used in {@link
|
|
860
|
+
* Used in {@link ContextMenuProps} component
|
|
861
861
|
*/
|
|
862
862
|
export type MenuItemSection = {
|
|
863
863
|
/** Optional section title */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FunctionComponent } from 'react';
|
|
2
2
|
import { TableWidgetProps } from '../props';
|
|
3
3
|
/**
|
|
4
|
-
* The TableWidget component extending the
|
|
4
|
+
* The TableWidget component extending the Table component to support widget style options.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* Example of using the `Widget` component to
|