@sisense/sdk-ui 1.5.0 → 1.7.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/ai-context-provider.d.ts +1 -0
- package/dist/ai/api/chat-api-provider.d.ts +1 -1
- package/dist/ai/api/chat-history.d.ts +18 -0
- package/dist/ai/api/chat-rest-api.d.ts +3 -0
- package/dist/ai/api/errors.d.ts +4 -1
- package/dist/ai/api/hooks.d.ts +2 -13
- package/dist/ai/api/types.d.ts +21 -19
- package/dist/ai/chat-config.d.ts +10 -3
- package/dist/ai/chat-intro-blurb.d.ts +4 -0
- package/dist/ai/chat-style-provider.d.ts +15 -0
- package/dist/ai/chatbot.d.ts +8 -0
- package/dist/ai/{error-page.d.ts → common/error-container.d.ts} +1 -1
- package/dist/ai/get-nlg-query-result.d.ts +3 -3
- package/dist/ai/index.d.ts +2 -0
- package/dist/ai/messages/feedback-wrapper.d.ts +2 -1
- package/dist/ai/messages/insights-message.d.ts +6 -1
- package/dist/ai/messages/message-list-resolver.d.ts +1 -2
- package/dist/ai/messages/message-resolver.d.ts +1 -3
- package/dist/ai/messages/nlq-message-group.d.ts +10 -0
- package/dist/ai/suggestions/index.d.ts +1 -1
- package/dist/ai/suggestions/suggestion-item.d.ts +1 -2
- package/dist/ai/suggestions/suggestion-list.d.ts +1 -1
- package/dist/ai/suggestions/suggestions-with-intro.d.ts +2 -2
- package/dist/ai/translators/code-templates.d.ts +11 -0
- package/dist/ai/translators/generate-code.d.ts +9 -0
- package/dist/ai/translators/index.d.ts +4 -0
- package/dist/ai/translators/model-translator.d.ts +50 -0
- package/dist/ai/translators/query-translator.d.ts +122 -0
- package/dist/ai/translators/translate-props-to-code.d.ts +8 -0
- package/dist/ai/translators/types.d.ts +105 -0
- package/dist/ai/translators/use-get-data-source.d.ts +12 -0
- package/dist/ai/translators/utils.d.ts +2 -0
- package/dist/ai/use-chat-session.d.ts +10 -3
- package/dist/ai/use-get-nlg-query-result.d.ts +6 -6
- package/dist/ai/use-get-query-recommendations.d.ts +1 -0
- package/dist/ai.js +7037 -3332
- package/dist/alert-box/alert-box.d.ts +1 -1
- package/dist/app/client-application.d.ts +27 -0
- package/dist/app/settings/settings.d.ts +1 -1
- package/dist/area-chart.d.ts +1 -0
- package/dist/areamap-chart.d.ts +1 -0
- package/dist/bar-chart.d.ts +3 -0
- package/dist/boxplot-chart.d.ts +1 -0
- package/dist/boxplot-utils.d.ts +3 -1
- package/dist/chart/chart.d.ts +1 -0
- package/dist/chart-options-processor/translations/base-design-options.d.ts +1 -0
- package/dist/chart-options-processor/translations/tooltip-utils.d.ts +1 -0
- package/dist/charts/indicator/indicator-legacy-chart-options/legacy-chart-options-to-theme-settings-dictionary.d.ts +2 -0
- package/dist/charts/indicator/indicator-legacy-chart-options/override-with-value-color.d.ts +1 -2
- package/dist/column-chart.d.ts +4 -0
- package/dist/common/components/loading-indicator.d.ts +2 -0
- package/dist/common/hooks/use-fetch.d.ts +42 -0
- package/dist/const.d.ts +1 -0
- package/dist/dashboard-widget/dashboard-widget.d.ts +2 -0
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +5 -0
- package/dist/dashboard-widget/translate-widget-filters.d.ts +1 -0
- package/dist/dashboard-widget/types.d.ts +3 -2
- package/dist/dynamic-size-container/dynamic-size-container.d.ts +4 -3
- package/dist/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -0
- package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +1 -0
- package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +1 -0
- package/dist/filters/components/member-filter-tile/member-filter-tile.d.ts +1 -0
- package/dist/formulas/use-get-shared-formula.d.ts +2 -0
- package/dist/funnel-chart.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6680 -37439
- package/dist/indicator-chart.d.ts +1 -0
- package/dist/line-chart.d.ts +1 -0
- package/dist/models/dashboard/get-dashboard-models.d.ts +1 -3
- package/dist/models/dashboard/translate-dashboard.d.ts +1 -1
- package/dist/models/dashboard/types.d.ts +17 -0
- package/dist/models/dashboard/use-get-dashboard-model.d.ts +2 -0
- package/dist/models/dashboard/use-get-dashboard-models.d.ts +2 -0
- package/dist/models/widget/use-get-widget-model.d.ts +2 -0
- package/dist/models/widget/widget-model.d.ts +11 -1
- package/dist/pie-chart.d.ts +1 -0
- package/dist/pivot-table/formatters/data-cell-formatters/data-cell-value-formatter.d.ts +3 -0
- package/dist/pivot-table/formatters/data-cell-formatters/index.d.ts +1 -0
- package/dist/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +3 -0
- package/dist/pivot-table/formatters/header-cell-formatters/index.d.ts +1 -0
- package/dist/pivot-table/formatters/index.d.ts +2 -0
- package/dist/pivot-table/formatters/types.d.ts +4 -0
- package/dist/pivot-table/formatters/utils.d.ts +5 -0
- package/dist/pivot-table/pivot-table.d.ts +1 -0
- package/dist/pivot-table/sorting-utils.d.ts +56 -0
- package/dist/pivot-table/use-apply-pivot-table-formatting.d.ts +11 -0
- package/dist/pivot-table/use-get-pivot-table-query.d.ts +1 -1
- package/dist/polar-chart.d.ts +1 -0
- package/dist/props.d.ts +5 -4
- package/dist/query/execute-query.d.ts +5 -5
- package/dist/query-execution/execute-query-by-widget-id.d.ts +2 -0
- package/dist/query-execution/execute-query.d.ts +1 -0
- package/dist/query-execution/index.d.ts +2 -1
- package/dist/query-execution/query-params-comparator.d.ts +8 -0
- package/dist/query-execution/types.d.ts +7 -0
- package/dist/query-execution/use-execute-csv-query.d.ts +1 -0
- package/dist/query-execution/use-execute-pivot-query.d.ts +1 -0
- package/dist/query-execution/use-execute-query-by-widget-id.d.ts +2 -0
- package/dist/query-execution/use-execute-query.d.ts +4 -10
- package/dist/query-execution/use-query-cache.d.ts +10 -0
- package/dist/scatter-chart.d.ts +1 -0
- package/dist/scattermap-chart.d.ts +1 -0
- package/dist/sisense-context/sisense-context-provider.d.ts +1 -0
- package/dist/sisense-context/sisense-query-client-provider.d.ts +2 -0
- package/dist/sunburst-chart.d.ts +1 -0
- package/dist/table/table.d.ts +1 -0
- package/dist/theme-provider/theme-provider.d.ts +7 -0
- package/dist/treemap-chart.d.ts +1 -0
- package/dist/types.d.ts +2 -2
- package/dist/useQuery-aa258c0d.js +121301 -0
- package/dist/utils/create-cache.d.ts +33 -0
- package/dist/widgets/chart-widget.d.ts +1 -0
- package/dist/widgets/common/context-menu.d.ts +5 -0
- package/dist/widgets/common/drilldown-breadcrumbs/drilldown-breadcrumbs.d.ts +5 -0
- package/dist/widgets/drilldown-widget.d.ts +1 -0
- package/package.json +14 -9
- package/dist/chart-data-processor/utils.d.ts +0 -10
- package/dist/utils/not-available-value.d.ts +0 -3
- package/dist/with-tracking-0799ec25.js +0 -78081
|
@@ -28,6 +28,24 @@ export type AppConfig = {
|
|
|
28
28
|
* Loading Indicator Configurations
|
|
29
29
|
*/
|
|
30
30
|
loadingIndicatorConfig?: LoadingIndicatorConfig;
|
|
31
|
+
/**
|
|
32
|
+
* Query Cache Configurations
|
|
33
|
+
*
|
|
34
|
+
* This feature is in alpha.
|
|
35
|
+
*/
|
|
36
|
+
queryCacheConfig?: {
|
|
37
|
+
/**
|
|
38
|
+
* Whether to enable query caching
|
|
39
|
+
*
|
|
40
|
+
* If not specified, the default value is `false`
|
|
41
|
+
*/
|
|
42
|
+
enabled?: boolean;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Query limit (max rows count that will be fetched in query)
|
|
46
|
+
* @default 20000
|
|
47
|
+
*/
|
|
48
|
+
queryLimit?: number;
|
|
31
49
|
};
|
|
32
50
|
/**
|
|
33
51
|
* Stands for a Sisense Client Application which connects to a Sisense Environment
|
|
@@ -55,6 +73,15 @@ export declare class ClientApplication {
|
|
|
55
73
|
* Gets the application settings
|
|
56
74
|
*/
|
|
57
75
|
settings: AppSettings;
|
|
76
|
+
/**
|
|
77
|
+
* Gets the module to control query cache
|
|
78
|
+
*/
|
|
79
|
+
queryCache: {
|
|
80
|
+
/**
|
|
81
|
+
* Clears the query cache
|
|
82
|
+
*/
|
|
83
|
+
clear: () => void;
|
|
84
|
+
};
|
|
58
85
|
/**
|
|
59
86
|
* Construct new Sisense Client Application
|
|
60
87
|
*
|
|
@@ -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'>, useDefaultPalette
|
|
24
|
+
export declare function getSettings(customConfig: ConfigurableAppSettings, httpClient: Pick<HttpClient, 'get'>, useDefaultPalette?: boolean): Promise<AppSettings>;
|
|
25
25
|
export {};
|
package/dist/area-chart.d.ts
CHANGED
|
@@ -26,5 +26,6 @@ import { AreaChartProps } from './props';
|
|
|
26
26
|
* <img src="media://area-chart-example-1.png" width="800"/>
|
|
27
27
|
* @param props - Area chart properties
|
|
28
28
|
* @returns Area Chart component
|
|
29
|
+
* @group Charts
|
|
29
30
|
*/
|
|
30
31
|
export declare const AreaChart: import("react").FunctionComponent<AreaChartProps>;
|
package/dist/areamap-chart.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { AreamapChartProps } from './props';
|
|
|
20
20
|
* ```
|
|
21
21
|
* @param props - Areamap chart properties
|
|
22
22
|
* @returns Areamap Chart component
|
|
23
|
+
* @group Charts
|
|
23
24
|
* @beta
|
|
24
25
|
*/
|
|
25
26
|
export declare const AreamapChart: import("react").FunctionComponent<AreamapChartProps>;
|
package/dist/bar-chart.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { BarChartProps } from './props';
|
|
|
3
3
|
/**
|
|
4
4
|
* A React component representing categorical data with horizontal rectangular bars,
|
|
5
5
|
* whose lengths are proportional to the values that they represent.
|
|
6
|
+
* You can also break up the values by another category or groups.
|
|
7
|
+
*
|
|
6
8
|
* See [Bar Chart](https://docs.sisense.com/main/SisenseLinux/bar-chart.htm) for more information.
|
|
7
9
|
*
|
|
8
10
|
* @example
|
|
@@ -25,5 +27,6 @@ import { BarChartProps } from './props';
|
|
|
25
27
|
* <img src="media://bar-chart-example-1.png" width="800"/>
|
|
26
28
|
* @param props - Bar chart properties
|
|
27
29
|
* @returns Bar Chart component
|
|
30
|
+
* @group Charts
|
|
28
31
|
*/
|
|
29
32
|
export declare const BarChart: import("react").FunctionComponent<BarChartProps>;
|
package/dist/boxplot-chart.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ import { BoxplotChartProps } from './props';
|
|
|
31
31
|
* <img src="media://boxplot-chart-example-1.png" width="600px" />
|
|
32
32
|
* @param props - Boxplot chart properties
|
|
33
33
|
* @returns Boxplot Chart component
|
|
34
|
+
* @group Charts
|
|
34
35
|
* @beta
|
|
35
36
|
*/
|
|
36
37
|
export declare const BoxplotChart: import("react").FunctionComponent<BoxplotChartProps>;
|
package/dist/boxplot-utils.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Attribute, Measure, Filter, QueryResultData, DataSource } from '@sisense/sdk-data';
|
|
2
2
|
import { ClientApplication } from './app/client-application.js';
|
|
3
|
+
import { executeQuery as executeQueryFunction } from './query/execute-query.js';
|
|
3
4
|
import { BoxplotChartCustomDataOptions, BoxplotChartDataOptionsInternal } from './chart-data-options/types.js';
|
|
4
5
|
/**
|
|
5
6
|
* Processes box whisker data and outliers data to combine them into a single data set.
|
|
@@ -17,6 +18,7 @@ export declare const boxWhiskerProcessResultInternal: (boxWhiskerData: QueryResu
|
|
|
17
18
|
* @param {QueryResultData} outliersData - The data for the outliers.
|
|
18
19
|
* @param {BoxplotChartCustomDataOptions} [dataOptions] - Optional data options for customizing data processing.
|
|
19
20
|
* @returns {QueryResultData} The combined data with outliers included in the box whisker plot.
|
|
21
|
+
* @group Chart Utilities
|
|
20
22
|
*/
|
|
21
23
|
export declare function boxWhiskerProcessResult(boxWhiskerData: QueryResultData, outliersData: QueryResultData, dataOptions?: BoxplotChartCustomDataOptions): QueryResultData;
|
|
22
24
|
export declare const executeBoxplotQuery: ({ app, chartDataOptions, dataSource, attributes, measures, filters, highlights, }: {
|
|
@@ -27,4 +29,4 @@ export declare const executeBoxplotQuery: ({ app, chartDataOptions, dataSource,
|
|
|
27
29
|
measures: Measure[];
|
|
28
30
|
filters?: Filter[] | undefined;
|
|
29
31
|
highlights?: Filter[] | undefined;
|
|
30
|
-
}) => Promise<QueryResultData>;
|
|
32
|
+
}, executeQuery: typeof executeQueryFunction) => Promise<QueryResultData>;
|
package/dist/chart/chart.d.ts
CHANGED
|
@@ -76,5 +76,6 @@ export declare const shouldSkipSisenseContextWaiting: (props: ChartProps) => boo
|
|
|
76
76
|
* <img src="media://chart-local-data-example-1.png" width="800px" />
|
|
77
77
|
* @param props - Chart properties
|
|
78
78
|
* @returns Chart component representing a chart type as specified in `ChartProps.`{@link ChartProps.chartType | chartType}
|
|
79
|
+
* @group Charts
|
|
79
80
|
*/
|
|
80
81
|
export declare const Chart: import("react").FunctionComponent<ChartProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DesignOptions } from './types';
|
|
2
2
|
import { Merge } from '../../utils/utility-types';
|
|
3
3
|
export declare const SERIES_CAPACITY = 50;
|
|
4
|
+
export declare const PIE_SERIES_CAPACITY = 1000;
|
|
4
5
|
export declare const SCATTER_CATEGORIES_CAPACITY = 500;
|
|
5
6
|
export declare const CATEGORIES_CAPACITY = 100000;
|
|
6
7
|
export declare const BaseDesignOptions: Merge<DesignOptions>;
|
|
@@ -2,6 +2,7 @@ import { Category, Value } from '../../chart-data-options/types.js';
|
|
|
2
2
|
export declare const isXValueNumeric: (dataOptionX: Value | Category | undefined) => boolean | "";
|
|
3
3
|
export declare const formatTooltipValue: (dataOption: Value | Category | undefined, value: number | undefined, displayValue: string) => string;
|
|
4
4
|
export declare const formatTooltipXValue: (dataOption: Value | Category | undefined, value: number | string | undefined, displayValue: string) => string;
|
|
5
|
+
export declare function isTooltipPercentValueSupported(options: Value | undefined): boolean;
|
|
5
6
|
export type TooltipSettings = {
|
|
6
7
|
enabled?: boolean;
|
|
7
8
|
animation?: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IndicatorChartDataOptions, ConditionalDataColorOptions, DataColorOptions, UniformDataColorOptions } from '../../../types';
|
|
2
2
|
import { LegacyIndicatorChartOptions } from '../types';
|
|
3
|
-
import { IndicatorTypeOptions } from './indicator-legacy-chart-options';
|
|
4
3
|
/**
|
|
5
4
|
* Type that represents allowed color options for an indicator.
|
|
6
5
|
*/
|
|
@@ -25,7 +24,7 @@ export declare function getValueColorOptions(dataOptions: IndicatorChartDataOpti
|
|
|
25
24
|
* @param typeOptions - Describe indicator type and subtype.
|
|
26
25
|
* @returns The modified legacy indicator chart options.
|
|
27
26
|
*/
|
|
28
|
-
export declare function overrideWithValueColor(colorOptions: DataColorOptions, value: number, legacyChartOptions: LegacyIndicatorChartOptions
|
|
27
|
+
export declare function overrideWithValueColor(colorOptions: DataColorOptions, value: number, legacyChartOptions: LegacyIndicatorChartOptions): LegacyIndicatorChartOptions;
|
|
29
28
|
/**
|
|
30
29
|
* Checks if the color options are allowed for an indicator.
|
|
31
30
|
*
|
package/dist/column-chart.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ import { ColumnChartProps } from './props';
|
|
|
3
3
|
/**
|
|
4
4
|
* A React component representing categorical data with vertical rectangular bars
|
|
5
5
|
* whose heights are proportional to the values that they represent.
|
|
6
|
+
*
|
|
7
|
+
* The chart can include multiple values on both the X and Y-axis, as well as a break down by categories displayed on the Y-axis.
|
|
8
|
+
*
|
|
6
9
|
* See [Column Chart](https://docs.sisense.com/main/SisenseLinux/column-chart.htm) for more information.
|
|
7
10
|
*
|
|
8
11
|
* @example
|
|
@@ -25,5 +28,6 @@ import { ColumnChartProps } from './props';
|
|
|
25
28
|
* <img src="media://column-chart-example-1.png" width="800"/>
|
|
26
29
|
* @param props - Column chart properties
|
|
27
30
|
* @returns Column Chart component
|
|
31
|
+
* @group Charts
|
|
28
32
|
*/
|
|
29
33
|
export declare const ColumnChart: import("react").FunctionComponent<ColumnChartProps>;
|
|
@@ -3,8 +3,10 @@ import { CompleteThemeSettings } from '../../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Component that displays a loading indicator.
|
|
5
5
|
*
|
|
6
|
+
* @param themeSettings - Theme settings to use for the loading indicator.
|
|
6
7
|
* @param onCancel - Function to call when cancel is clicked.
|
|
7
8
|
* @returns A loading indicator with optional cancel.
|
|
9
|
+
* @internal
|
|
8
10
|
*/
|
|
9
11
|
export declare const LoadingIndicator: ({ themeSettings, onCancel, }: {
|
|
10
12
|
themeSettings?: {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type UseQueryResult as TanstackUseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
/**
|
|
3
|
+
* Additional request configuration options for the `useFetch` hook.
|
|
4
|
+
*/
|
|
5
|
+
export type RequestConfig = {
|
|
6
|
+
/**
|
|
7
|
+
* Indicates that the request body is not a JSON object.
|
|
8
|
+
*/
|
|
9
|
+
nonJSONBody?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Indicates that the response should be treated as a Blob.
|
|
12
|
+
*/
|
|
13
|
+
returnBlob?: boolean;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The result of the `useFetch` hook.
|
|
17
|
+
* Return value of the `useQuery` hook from `@tanstack/react-query`.
|
|
18
|
+
* @link https://tanstack.com/query/v4/docs/framework/react/reference/useQuery
|
|
19
|
+
*
|
|
20
|
+
* @template TData - The type of the data returned by the fetch request
|
|
21
|
+
* @template TError - The type of the error returned by the fetch request
|
|
22
|
+
*/
|
|
23
|
+
export type UseQueryResult<TData, TError> = TanstackUseQueryResult<TData, TError>;
|
|
24
|
+
/**
|
|
25
|
+
* React hook that allows to make authorized fetch request to any Sisense API.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
```tsx
|
|
29
|
+
const { data, isLoading, error } = useFetch<unknown, Error>('api/v1/elasticubes/getElasticubes', {
|
|
30
|
+
method: 'POST',
|
|
31
|
+
});
|
|
32
|
+
```
|
|
33
|
+
* @param path - The endpoint path to fetch data from. This should be a relative path like '/api/v1/endpoint'.
|
|
34
|
+
* @param init - The request init object
|
|
35
|
+
* @param options - The additional request options
|
|
36
|
+
* @returns Query state that contains the status of the query execution, the result data, or the error if any occurred
|
|
37
|
+
* @group Fusion Embed
|
|
38
|
+
*/
|
|
39
|
+
export declare const useFetch: <TData = unknown, TError = unknown>(path: string, init?: RequestInit | undefined, options?: {
|
|
40
|
+
requestConfig?: RequestConfig | undefined;
|
|
41
|
+
enabled?: boolean | undefined;
|
|
42
|
+
} | undefined) => UseQueryResult<TData, TError>;
|
package/dist/const.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const QUERY_DEFAULT_LIMIT = 20000;
|
|
@@ -4,5 +4,10 @@ import { Panel, PanelItem, WidgetType, WidgetStyle, BoxplotWidgetStyle } from '.
|
|
|
4
4
|
import { WidgetDataOptions } from '../models';
|
|
5
5
|
export declare function createDimensionalElementFromJaql(jaql: Jaql, format?: PanelItem['format']): import("@sisense/sdk-data").Filter | DimensionalCalculatedMeasure | DimensionalBaseMeasure | DimensionalAttribute;
|
|
6
6
|
export declare function createDataColumn(item: PanelItem, customPaletteColors?: Color[]): StyledMeasureColumn | StyledColumn;
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare const createDataOptionsFromPanels: (panels: Panel[], variantColors: Color[]) => {
|
|
9
|
+
[key: string]: any[];
|
|
10
|
+
};
|
|
11
|
+
export declare function createColumnsFromPanelItems(panels: Panel[], panelName: string, customPaletteColors?: Color[]): (StyledMeasureColumn | StyledColumn)[];
|
|
7
12
|
export declare function extractBoxplotBoxType(style: BoxplotWidgetStyle): "iqr" | "extremums" | "standardDeviation";
|
|
8
13
|
export declare function extractDataOptions(widgetType: WidgetType, panels: Panel[], style: WidgetStyle, customPaletteColors?: Color[]): WidgetDataOptions;
|
|
@@ -24,6 +24,7 @@ export declare function extractFilterModelFromJaql(jaql: FilterJaql): {
|
|
|
24
24
|
*
|
|
25
25
|
* @param jaql - The filter JAQL object.
|
|
26
26
|
* @returns - The created Filter object.
|
|
27
|
+
* @internal
|
|
27
28
|
*/
|
|
28
29
|
export declare function createFilterFromJaql(jaql: FilterJaql, instanceid?: string): Filter;
|
|
29
30
|
/**
|
|
@@ -10,11 +10,11 @@ export type CategoricalWidgetType = 'chart/pie' | 'chart/funnel' | 'treemap' | '
|
|
|
10
10
|
/**
|
|
11
11
|
* The type of a widget on a dashboard that is a variant of tabular widget.
|
|
12
12
|
*/
|
|
13
|
-
export type TabularWidgetType = 'tablewidget' | 'tablewidgetagg';
|
|
13
|
+
export type TabularWidgetType = 'tablewidget' | 'tablewidgetagg' | 'pivot2';
|
|
14
14
|
/**
|
|
15
15
|
* The type of a widget on a dashboard.
|
|
16
16
|
*/
|
|
17
|
-
export type WidgetType = CartesianWidgetType | CategoricalWidgetType | 'chart/scatter' | 'indicator' | TabularWidgetType | 'chart/boxplot' | 'map/scatter' | 'map/area';
|
|
17
|
+
export type WidgetType = CartesianWidgetType | CategoricalWidgetType | 'chart/scatter' | 'indicator' | TabularWidgetType | 'chart/boxplot' | 'map/scatter' | 'map/area' | 'plugin';
|
|
18
18
|
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' | 'boxplot/full' | 'boxplot/hollow' | 'map/scatter' | 'areamap/world' | 'areamap/usa';
|
|
19
19
|
export declare enum WidgetDashboardFilterMode {
|
|
20
20
|
FILTER = "filter",
|
|
@@ -220,6 +220,7 @@ export type FunnelWidgetStyle = BaseWidgetStyle & {
|
|
|
220
220
|
decimals: boolean;
|
|
221
221
|
};
|
|
222
222
|
};
|
|
223
|
+
export type PluginStyle = any;
|
|
223
224
|
export type TableWidgetStyle = {
|
|
224
225
|
'colors/columns': boolean;
|
|
225
226
|
'colors/headers': boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
type ContainerSize = {
|
|
2
|
+
export type ContainerSize = {
|
|
3
3
|
width: number;
|
|
4
4
|
height: number;
|
|
5
5
|
};
|
|
@@ -7,6 +7,8 @@ export type DynamicSizeContainerProps = {
|
|
|
7
7
|
children: React.ReactNode | ((size: ContainerSize) => React.ReactNode);
|
|
8
8
|
defaultSize: ContainerSize;
|
|
9
9
|
size?: Partial<ContainerSize>;
|
|
10
|
+
rerenderOnResize?: boolean;
|
|
11
|
+
onSizeChange?: (size: ContainerSize) => void;
|
|
10
12
|
};
|
|
11
13
|
/**
|
|
12
14
|
* A container component that adjusts its content size according to provided sizes
|
|
@@ -18,5 +20,4 @@ export type DynamicSizeContainerProps = {
|
|
|
18
20
|
* @param {DynamicSizeContainerProps} props - DynamicSizeContainer properties.
|
|
19
21
|
* @returns {JSX.Element} The DynamicSizeContainer component.
|
|
20
22
|
*/
|
|
21
|
-
export declare const DynamicSizeContainer: ({ children, defaultSize, size, }: DynamicSizeContainerProps) => JSX.Element;
|
|
22
|
-
export {};
|
|
23
|
+
export declare const DynamicSizeContainer: ({ children, defaultSize, size, rerenderOnResize, onSizeChange, }: DynamicSizeContainerProps) => JSX.Element;
|
|
@@ -40,5 +40,6 @@ export type CriteriaFilterType = NumericFilter | TextFilter | RankingFilter | Ex
|
|
|
40
40
|
* <img src="media://criteria-filter-tile-example-1.png" width="300px" />
|
|
41
41
|
* @param props - Criteria filter tile props
|
|
42
42
|
* @returns Criteria filter tile component
|
|
43
|
+
* @group Filter Tiles
|
|
43
44
|
*/
|
|
44
45
|
export declare const CriteriaFilterTile: import("react").FunctionComponent<CriteriaFilterTileProps>;
|
package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts
CHANGED
|
@@ -67,5 +67,6 @@ export interface DateRangeFilterTileProps {
|
|
|
67
67
|
* <img src="media://date-filter-example-1.png" width="800px" />
|
|
68
68
|
* @param props - Date Range Filter Tile Props
|
|
69
69
|
* @returns Date Range Filter Tile component
|
|
70
|
+
* @group Filter Tiles
|
|
70
71
|
*/
|
|
71
72
|
export declare const DateRangeFilterTile: import("react").FunctionComponent<DateRangeFilterTileProps>;
|
package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts
CHANGED
|
@@ -32,5 +32,6 @@ export interface RelativeDateFilterTileProps {
|
|
|
32
32
|
*
|
|
33
33
|
* @param props - Relative date filter tile props
|
|
34
34
|
* @returns Relative date filter tile component
|
|
35
|
+
* @group Filter Tiles
|
|
35
36
|
*/
|
|
36
37
|
export declare const RelativeDateFilterTile: import("react").FunctionComponent<RelativeDateFilterTileProps>;
|
|
@@ -44,5 +44,6 @@ export interface MemberFilterTileProps {
|
|
|
44
44
|
* <img src="media://member-filter-tile-example-1.png" width="300px" />
|
|
45
45
|
* @param props - Member filter tile props
|
|
46
46
|
* @returns Member filter tile component
|
|
47
|
+
* @group Filter Tiles
|
|
47
48
|
*/
|
|
48
49
|
export declare const MemberFilterTile: FunctionComponent<MemberFilterTileProps>;
|
|
@@ -86,6 +86,8 @@ export type SharedFormulaSuccessState = {
|
|
|
86
86
|
* @param params - {@link UseGetSharedFormulaParams}
|
|
87
87
|
* @param dataSource - Data source in Sisense instance
|
|
88
88
|
* @returns Formula load state that contains the status of the execution, the result formula, or the error if any
|
|
89
|
+
* @group Fusion Embed
|
|
90
|
+
* @fusionEmbed
|
|
89
91
|
*/
|
|
90
92
|
export declare const useGetSharedFormula: (params: UseGetSharedFormulaParams) => SharedFormulaState;
|
|
91
93
|
/**
|
package/dist/funnel-chart.d.ts
CHANGED
|
@@ -43,5 +43,6 @@ import { FunnelChartProps } from './props';
|
|
|
43
43
|
* Note that the chart sorts the measure, `Unique Users`, in descending order by default.
|
|
44
44
|
* @param props - Funnel chart properties
|
|
45
45
|
* @returns Funnel Chart component
|
|
46
|
+
* @group Charts
|
|
46
47
|
*/
|
|
47
48
|
export declare const FunnelChart: import("react").FunctionComponent<FunnelChartProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -42,3 +42,8 @@ export * from './filters';
|
|
|
42
42
|
export * from './formulas';
|
|
43
43
|
export { trackHook } from './decorators/hook-decorators';
|
|
44
44
|
export * from './common/hooks/data-load-state-reducer';
|
|
45
|
+
export { createDataOptionsFromPanels } from './dashboard-widget/translate-widget-data-options';
|
|
46
|
+
export { createFilterFromJaql } from './dashboard-widget/translate-widget-filters';
|
|
47
|
+
export { useThemeContext } from './theme-provider/theme-provider';
|
|
48
|
+
export { LoadingIndicator } from './common/components/loading-indicator';
|
|
49
|
+
export { useFetch, type RequestConfig, type UseQueryResult } from './common/hooks/use-fetch';
|