@sisense/sdk-ui 1.1.0 → 1.2.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/chat-rest-api.d.ts +2 -2
- package/dist/ai/api/hooks.d.ts +2 -2
- package/dist/ai/api/types.d.ts +21 -21
- package/dist/ai/messages/get-widget-options.d.ts +3 -3
- package/dist/ai.js +689 -682
- package/dist/app/client-application.d.ts +5 -0
- package/dist/app/settings/settings.d.ts +1 -1
- package/dist/areamap-chart.d.ts +0 -3
- package/dist/boxplot-chart.d.ts +0 -2
- package/dist/chart-data/types.d.ts +3 -0
- package/dist/chart-data-options/get-translated-data-options.d.ts +2 -2
- package/dist/chart-data-options/types.d.ts +2 -0
- package/dist/charts/map-charts/scattermap/utils/location.d.ts +1 -1
- package/dist/charts/map-charts/scattermap/utils/markers.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12970 -6939
- package/dist/query/execute-query.d.ts +17 -2
- package/dist/query-execution/index.d.ts +2 -1
- package/dist/query-execution/pivot-query-state-reducer.d.ts +2 -0
- package/dist/query-execution/types.d.ts +134 -1
- package/dist/query-execution/use-execute-pivot-query.d.ts +54 -0
- package/dist/scattermap-chart.d.ts +0 -2
- package/dist/{table-widget-4275c061.js → table-widget-65f3e04e.js} +8056 -8008
- package/dist/widgets/common/custom-drilldown.d.ts +3 -0
- package/package.json +7 -6
|
@@ -4,6 +4,7 @@ import { DataSource } from '@sisense/sdk-data';
|
|
|
4
4
|
import { SisenseContextProviderProps } from '../props';
|
|
5
5
|
import { DateConfig } from '../query/date-formats';
|
|
6
6
|
import { AppSettings } from './settings/settings';
|
|
7
|
+
import { PivotClient } from '@sisense/sdk-pivot-client';
|
|
7
8
|
/**
|
|
8
9
|
* Application configuration
|
|
9
10
|
*/
|
|
@@ -33,6 +34,10 @@ export declare class ClientApplication {
|
|
|
33
34
|
* Gets the underlying HTTP Client
|
|
34
35
|
*/
|
|
35
36
|
readonly httpClient: HttpClient;
|
|
37
|
+
/**
|
|
38
|
+
* Gets the underlying Pivot Client
|
|
39
|
+
*/
|
|
40
|
+
readonly pivotClient: PivotClient;
|
|
36
41
|
/**
|
|
37
42
|
* Gets the underlying Query Client
|
|
38
43
|
*/
|
|
@@ -21,5 +21,5 @@ type ServerSettings = {
|
|
|
21
21
|
* @param isWat - Whether the application is running with WAT authentication
|
|
22
22
|
* @returns - Application settings
|
|
23
23
|
*/
|
|
24
|
-
export declare function getSettings(customConfig: ConfigurableAppSettings, httpClient: Pick<HttpClient, 'get'>,
|
|
24
|
+
export declare function getSettings(customConfig: ConfigurableAppSettings, httpClient: Pick<HttpClient, 'get'>, useDefaultPalette: boolean): Promise<AppSettings>;
|
|
25
25
|
export {};
|
package/dist/areamap-chart.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ import { AreamapChartProps } from './props';
|
|
|
4
4
|
* A React component for visualizing geographical data as polygons on a map.
|
|
5
5
|
* See [Areamap Chart](https://docs.sisense.com/main/SisenseLinux/area-map.htm) for more information.
|
|
6
6
|
*
|
|
7
|
-
* This component is still in beta.
|
|
8
|
-
*
|
|
9
7
|
* @example
|
|
10
8
|
* An example of using the component to visualize the `Sample ECommerce` data source:
|
|
11
9
|
* ```tsx
|
|
@@ -20,7 +18,6 @@ import { AreamapChartProps } from './props';
|
|
|
20
18
|
* }}
|
|
21
19
|
* />
|
|
22
20
|
* ```
|
|
23
|
-
*
|
|
24
21
|
* @param props - Areamap chart properties
|
|
25
22
|
* @returns Areamap Chart component
|
|
26
23
|
* @beta
|
package/dist/boxplot-chart.d.ts
CHANGED
|
@@ -5,8 +5,6 @@ import { BoxplotChartProps } from './props';
|
|
|
5
5
|
* and center of a data set along an axis.
|
|
6
6
|
* See [Boxplot Chart](https://docs.sisense.com/main/SisenseLinux/box-and-whisker-plot.htm) for more information.
|
|
7
7
|
*
|
|
8
|
-
* This component is still in beta.
|
|
9
|
-
*
|
|
10
8
|
* @example
|
|
11
9
|
* An example of using the component to visualize the `Sample ECommerce` data source:
|
|
12
10
|
* ```tsx
|
|
@@ -111,6 +111,7 @@ export type IndicatorChartData = {
|
|
|
111
111
|
};
|
|
112
112
|
/**
|
|
113
113
|
* Raw GeoDataElement from data
|
|
114
|
+
*
|
|
114
115
|
* @internal
|
|
115
116
|
*/
|
|
116
117
|
export type RawGeoDataElement = {
|
|
@@ -120,6 +121,7 @@ export type RawGeoDataElement = {
|
|
|
120
121
|
};
|
|
121
122
|
/**
|
|
122
123
|
* GeoDataElement with color property, calculated from `originalValue`
|
|
124
|
+
*
|
|
123
125
|
* @internal
|
|
124
126
|
*/
|
|
125
127
|
export type GeoDataElement = RawGeoDataElement & {
|
|
@@ -127,6 +129,7 @@ export type GeoDataElement = RawGeoDataElement & {
|
|
|
127
129
|
};
|
|
128
130
|
/**
|
|
129
131
|
* Fact final data that will be passed to Areamap-component to render
|
|
132
|
+
*
|
|
130
133
|
* @internal
|
|
131
134
|
*/
|
|
132
135
|
export type AreamapData = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChartDataOptions, ChartType } from '../types';
|
|
2
2
|
export declare function getTranslatedDataOptions(dataOptions: ChartDataOptions, chartType: ChartType): {
|
|
3
3
|
chartDataOptions: import("./types").ChartDataOptionsInternal;
|
|
4
|
-
attributes: import("
|
|
5
|
-
measures: import("
|
|
4
|
+
attributes: import("@sisense/sdk-data").Attribute[];
|
|
5
|
+
measures: import("@sisense/sdk-data").Measure[];
|
|
6
6
|
};
|
|
@@ -326,6 +326,8 @@ export interface ScattermapColumn extends StyledColumn {
|
|
|
326
326
|
export interface ScattermapChartDataOptions {
|
|
327
327
|
/**
|
|
328
328
|
* Columns (or attributes) whose values represent locations on the map.
|
|
329
|
+
* Support field(s) that contain geographic data (Country, City, State/Province, etc)
|
|
330
|
+
* To visualize latitude and longitude data, you have to add one field containing latitude data, and another field containing longitude data, in this order.
|
|
329
331
|
*/
|
|
330
332
|
geo: (Column | StyledColumn | ScattermapColumn)[];
|
|
331
333
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScattermapLocationLevel } from '
|
|
1
|
+
import { ScattermapLocationLevel } from '../../../../chart-data-options/types';
|
|
2
2
|
export declare const LOCATION_DELIMITER = ",";
|
|
3
3
|
export declare function combineLocationNames(names: string[]): string;
|
|
4
4
|
export declare function splitLocationName(combinedLocation: string): string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './query-execution';
|
|
|
11
11
|
export { executeQuery } from './query/execute-query';
|
|
12
12
|
export { SisenseContextProvider } from './sisense-context/sisense-context-provider';
|
|
13
13
|
export { DrilldownWidget } from './widgets/drilldown-widget';
|
|
14
|
+
export { processDrilldownSelections } from './widgets/common/custom-drilldown';
|
|
14
15
|
export { ChartWidget } from './widgets/chart-widget';
|
|
15
16
|
export { TableWidget } from './widgets/table-widget';
|
|
16
17
|
export { ContextMenu } from './widgets/common/context-menu';
|