@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.
@@ -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'>, isWat: boolean): Promise<AppSettings>;
24
+ export declare function getSettings(customConfig: ConfigurableAppSettings, httpClient: Pick<HttpClient, 'get'>, useDefaultPalette: boolean): Promise<AppSettings>;
25
25
  export {};
@@ -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
@@ -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("packages/sdk-data/dist").Attribute[];
5
- measures: import("packages/sdk-data/dist").Measure[];
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 'packages/sdk-ui/src/chart-data-options/types';
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[];
@@ -1,5 +1,5 @@
1
1
  import leaflet from 'leaflet';
2
- import { ScattermapMarkers } from 'packages/sdk-ui/src/types';
2
+ import { ScattermapMarkers } from '../../../../types';
3
3
  type PrepareMarkerOptionsProps = {
4
4
  color: string;
5
5
  size: number;
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';