@sisense/sdk-ui 2.12.0 → 2.14.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.cjs +19 -19
- package/dist/ai.js +623 -613
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +252 -217
- package/dist/analytics-composer.cjs +18 -18
- package/dist/analytics-composer.js +18 -9
- package/dist/{derive-chart-family-mugR7Ty1.cjs → derive-chart-family-DJUpWKOP.cjs} +69 -64
- package/dist/{derive-chart-family-YIDiS_iY.js → derive-chart-family-D_bylSQy.js} +8340 -8069
- package/dist/{dimensions-DmRfLrT-.js → dimensions-CTUJhW-M.js} +1 -1
- package/dist/{dimensions-CyzZ0dbM.cjs → dimensions-CdNGgk9I.cjs} +1 -1
- package/dist/execute-query-CNt566O5.cjs +1 -0
- package/dist/{execute-query-BCEeyd9s.js → execute-query-DyjkDYHG.js} +1494 -1431
- package/dist/index.cjs +24 -24
- package/dist/index.js +7449 -7168
- package/dist/index.umd.js +351 -349
- package/dist/packages/sdk-ui/src/ai/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +22 -1
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +3 -2
- package/dist/packages/sdk-ui/src/app/settings/settings.d.ts +49 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +12 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/index.d.ts +25 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options/continuous-axes-options.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options/helpers.d.ts +24 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options/split-axes-options.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/chart-options.d.ts +9 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/index.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/calendar-data-generator.d.ts +12 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/series-options.d.ts +9 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-per-chart-instance.d.ts +13 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +16 -3
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-chart-options.d.ts +7 -6
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/calendar-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/design-options/index.d.ts +14 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/design-options/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/design-options/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +12 -15
- package/dist/packages/sdk-ui/src/chart-options-processor/series-labels.d.ts +17 -17
- package/dist/packages/sdk-ui/src/chart-options-processor/stack-labels.d.ts +18 -22
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +4 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +3 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +7 -6
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts +12 -17
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/legend-section.d.ts +3 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-plot-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-labels.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +3 -2
- package/dist/packages/sdk-ui/src/common/components/menu/context-menu/context-menu.d.ts +1 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/helpers.d.ts +11 -0
- package/dist/packages/sdk-ui/src/dashboard/components/toolbar/edit-toggle.d.ts +25 -0
- package/dist/packages/sdk-ui/src/dashboard/constants.d.ts +2 -2
- package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +0 -30
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +3 -2
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +25 -10
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +83 -11
- package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +1 -1
- package/dist/packages/sdk-ui/src/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +15 -3
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +3 -2
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +1 -10
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +5 -5
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator/tabber.d.ts +21 -0
- package/dist/packages/sdk-ui/src/models/widget/{widget-model-translator.d.ts → widget-model-translator/widget-model-translator.d.ts} +15 -15
- package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +6 -0
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +7 -1
- package/dist/packages/sdk-ui/src/props.d.ts +8 -20
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +2 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/types.d.ts +157 -107
- package/dist/packages/sdk-ui/src/utils/gradient.d.ts +396 -0
- package/dist/packages/sdk-ui/src/utils/omit-undefined.d.ts +21 -0
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options/tabber.d.ts +23 -0
- package/dist/packages/sdk-ui/src/widget-by-id/{translate-widget-style-options.d.ts → translate-widget-style-options/translate-widget-style-options.d.ts} +4 -4
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +38 -3
- package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +30 -2
- package/dist/packages/sdk-ui/src/widgets/tabber/tabber-buttons-widget.d.ts +8 -0
- package/dist/packages/sdk-ui/src/widgets/tabber/types.d.ts +110 -0
- package/dist/{types-CevYjGN4.cjs → types-D1qM-ltg.cjs} +1 -1
- package/dist/{types-DVAfvbpR.js → types-DglXXR-Q.js} +1 -1
- package/dist/{use-common-filters-DIF4c8WP.js → use-common-filters-BGrn7zoW.js} +22269 -21424
- package/dist/use-common-filters-DxzCHhgF.cjs +846 -0
- package/dist/{widget-composer-C0lZpwN6.cjs → widget-composer-C24YJEek.cjs} +6 -10
- package/dist/{widget-composer-BB5Jrgae.js → widget-composer-lBv40CFf.js} +132 -135
- package/package.json +7 -7
- package/dist/execute-query-Xt9drS3G.cjs +0 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/highcharts-options-builder.d.ts +0 -8
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options.d.ts +0 -12
- package/dist/packages/sdk-ui/src/widgets/tabber-widget.d.ts +0 -41
- package/dist/use-common-filters-BXdnB4GI.cjs +0 -845
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { AnyObject, DataSource, Filter, FilterRelations } from '@sisense/sdk-data';
|
|
2
2
|
import { DashboardSettings } from '../../api/types/dashboard-dto';
|
|
3
3
|
import { DashboardLayoutOptions } from '../../dashboard';
|
|
4
|
-
import {
|
|
4
|
+
import { TabbersConfig } from '../../dashboard/hooks/use-tabber';
|
|
5
|
+
import { DashboardStyleOptions, WidgetModel } from '../../models';
|
|
5
6
|
import { type WidgetsOptions } from './types';
|
|
7
|
+
/**
|
|
8
|
+
* Configuration data for a dashboard model.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export interface DashboardModelConfig {
|
|
13
|
+
/**
|
|
14
|
+
* Configuration for tabber widgets in the dashboard.
|
|
15
|
+
*/
|
|
16
|
+
tabbers?: TabbersConfig;
|
|
17
|
+
}
|
|
6
18
|
/**
|
|
7
19
|
* Model of Sisense Fusion dashboard defined in the abstractions of Compose SDK.
|
|
8
20
|
*
|
|
@@ -51,11 +63,11 @@ export interface DashboardModel {
|
|
|
51
63
|
*/
|
|
52
64
|
widgetsOptions: WidgetsOptions;
|
|
53
65
|
/**
|
|
54
|
-
*
|
|
66
|
+
* Dashboard configuration.
|
|
55
67
|
*
|
|
56
68
|
* @internal
|
|
57
69
|
*/
|
|
58
|
-
|
|
70
|
+
config: DashboardModelConfig;
|
|
59
71
|
/**
|
|
60
72
|
* Dashboard settings.
|
|
61
73
|
*
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Dimension, Filter, FilterRelations, FilterRelationsModel, FilterRelationsModelNode, Measure } from '@sisense/sdk-data';
|
|
2
2
|
import { RestApi } from '../../api/rest-api';
|
|
3
3
|
import { JtdTarget, TriggerMethod } from '../../dashboard/hooks/jtd/jtd-types';
|
|
4
|
+
import { TabbersConfig } from '../../dashboard/hooks/use-tabber';
|
|
4
5
|
import { Panel, WidgetDto } from '../../widget-by-id/types';
|
|
5
6
|
import { type CascadingFilterDto, DashboardDto, type FilterDto, type LayoutDto } from '../../api/types/dashboard-dto';
|
|
6
|
-
import type {
|
|
7
|
+
import type { WidgetsOptions, WidgetsPanelColumnLayout } from './types';
|
|
7
8
|
export declare const translateLayout: (layout: LayoutDto) => WidgetsPanelColumnLayout;
|
|
8
9
|
export declare function extractDashboardFilters(dashboardFilters: Array<FilterDto | CascadingFilterDto>, filterRelationsModel?: FilterRelationsModel | FilterRelationsModelNode): Filter[] | FilterRelations;
|
|
9
10
|
export declare const getJtdNavigateType: (widget: WidgetDto) => TriggerMethod;
|
|
@@ -19,7 +20,7 @@ export declare function extractPivotTargetsConfigFromWidgetDto(widget: WidgetDto
|
|
|
19
20
|
location: 'row' | 'column' | 'value';
|
|
20
21
|
} | Measure, JtdTarget[]> | undefined;
|
|
21
22
|
export declare function translateWidgetsOptions(widgets?: WidgetDto[]): WidgetsOptions;
|
|
22
|
-
export declare function translateTabbersOptions(widgets?: WidgetDto[]):
|
|
23
|
+
export declare function translateTabbersOptions(widgets?: WidgetDto[]): TabbersConfig;
|
|
23
24
|
/**
|
|
24
25
|
* Replace all shared formulas, which defined by id references, in the dashboard with their actual values.
|
|
25
26
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommonFiltersOptions } from '../../common-filters/types';
|
|
2
2
|
import type { JumpToDashboardConfig, JumpToDashboardConfigForPivot } from '../../dashboard/hooks/jtd/jtd-types';
|
|
3
|
-
import { ColorPaletteTheme
|
|
3
|
+
import { ColorPaletteTheme } from '../../types';
|
|
4
4
|
export type { CommonFiltersOptions, CommonFiltersApplyMode, FiltersIgnoringRules, } from '../../common-filters/types';
|
|
5
5
|
/**
|
|
6
6
|
* Part of Dashboard layout, which describes how widgets are arranged in a cell
|
|
@@ -81,15 +81,6 @@ export type WidgetsOptions = Record<WidgetId, {
|
|
|
81
81
|
*/
|
|
82
82
|
jtdConfig?: JumpToDashboardConfig | JumpToDashboardConfigForPivot;
|
|
83
83
|
}>;
|
|
84
|
-
/**
|
|
85
|
-
* Options for TabberWidets in a dashboard
|
|
86
|
-
*
|
|
87
|
-
* This property actually moves responsibility on the layout management from the tabber widgets to the dashboard,
|
|
88
|
-
* storing all the tabbers configs in the single place
|
|
89
|
-
*
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
92
|
-
export type TabbersOptions = Record<WidgetId, TabberConfig>;
|
|
93
84
|
/**
|
|
94
85
|
* Style options for the dashboard.
|
|
95
86
|
*/
|
package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Authenticator } from '@sisense/sdk-rest-client';
|
|
2
|
-
import {
|
|
2
|
+
import { DashboardChangeEvent } from '../../../dashboard/types';
|
|
3
3
|
import { UseDashboardModelAction } from '../../../models';
|
|
4
4
|
/**
|
|
5
|
-
* Convert a dashboard change
|
|
5
|
+
* Convert a dashboard change event to a use dashboard model action.
|
|
6
6
|
*
|
|
7
|
-
* @param
|
|
8
|
-
* @returns The useDashboardModel action or null if the
|
|
7
|
+
* @param event - The dashboard change event to convert
|
|
8
|
+
* @returns The useDashboardModel action or null if the event is not supported
|
|
9
9
|
* @internal
|
|
10
10
|
*/
|
|
11
|
-
export declare function
|
|
11
|
+
export declare function dashboardChangeEventToUseDashboardModelAction(event: DashboardChangeEvent): UseDashboardModelAction | null;
|
|
12
12
|
/**
|
|
13
13
|
* Check if the persistence is supported and log a warning if it is not.
|
|
14
14
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './widget-model-translator';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GenericDataOptions, TabberButtonsWidgetStyleOptions } from '../../../types.js';
|
|
2
|
+
import { Panel, WidgetDto } from '../../../widget-by-id/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Processes officially supported tabber custom widgets (WidgetsTabber).
|
|
5
|
+
* Pure function that creates data and style options for the TabberButtonsWidget.
|
|
6
|
+
* Maps from DTO widget type ('WidgetsTabber') to CSDK widget type ('tabber-buttons').
|
|
7
|
+
*
|
|
8
|
+
* @param params - Parameters for processing tabber widget
|
|
9
|
+
* @returns Object containing fusion type, custom type, data options, style options, and custom options
|
|
10
|
+
*/
|
|
11
|
+
export declare const processTabberWidget: (params: {
|
|
12
|
+
panels: Panel[];
|
|
13
|
+
widgetDto: WidgetDto;
|
|
14
|
+
variantColors: string[];
|
|
15
|
+
}) => {
|
|
16
|
+
fusionWidgetType: 'custom';
|
|
17
|
+
customWidgetType: 'tabber-buttons';
|
|
18
|
+
dataOptions: GenericDataOptions;
|
|
19
|
+
styleOptions: TabberButtonsWidgetStyleOptions;
|
|
20
|
+
customOptions: Record<string, any>;
|
|
21
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { JaqlDataSourceForDto } from '@sisense/sdk-data';
|
|
2
|
-
import { AppSettings } from '
|
|
3
|
-
import { ChartProps, ChartWidgetProps, CommonWidgetProps, CustomWidgetProps, PivotTableProps, PivotTableWidgetProps, TableProps, TableWidgetProps, TextWidgetProps, WidgetProps } from '
|
|
4
|
-
import { ExecutePivotQueryParams, ExecuteQueryParams } from '
|
|
5
|
-
import { CompleteThemeSettings } from '
|
|
6
|
-
import { WidgetDto } from '
|
|
7
|
-
import { WidgetModel } from '
|
|
2
|
+
import { AppSettings } from '../../../app/settings/settings.js';
|
|
3
|
+
import { ChartProps, ChartWidgetProps, CommonWidgetProps, CustomWidgetProps, PivotTableProps, PivotTableWidgetProps, TableProps, TableWidgetProps, TextWidgetProps, WidgetProps } from '../../../props';
|
|
4
|
+
import { ExecutePivotQueryParams, ExecuteQueryParams } from '../../../query-execution';
|
|
5
|
+
import { CompleteThemeSettings } from '../../../types.js';
|
|
6
|
+
import { WidgetDto } from '../../../widget-by-id/types.js';
|
|
7
|
+
import { WidgetModel } from '../widget-model.js';
|
|
8
8
|
/**
|
|
9
9
|
* Translates a {@link WidgetModel} to the parameters for executing a query for the widget.
|
|
10
10
|
*
|
|
@@ -92,16 +92,16 @@ export declare function toChartWidgetProps(widgetModel: WidgetModel): ChartWidge
|
|
|
92
92
|
*/
|
|
93
93
|
export declare function toTableWidgetProps(widgetModel: WidgetModel): TableWidgetProps;
|
|
94
94
|
/**
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
* Translates a {@link WidgetModel} to the props for rendering a pivot table widget.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```tsx
|
|
99
|
+
* <PivotTableWidget {...widgetModelTranslator.toPivotTableWidgetProps(widgetModel)} />
|
|
100
|
+
* ```
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
* Note: this method is not supported for chart or table widgets.
|
|
103
|
+
* Use {@link toChartWidgetProps} instead for getting props for the <ChartWidget> component.
|
|
104
|
+
*/
|
|
105
105
|
export declare function toPivotTableWidgetProps(widgetModel: WidgetModel): PivotTableWidgetProps;
|
|
106
106
|
/**
|
|
107
107
|
* Translates a {@link WidgetModel} to the props for rendering a text widget.
|
|
@@ -48,6 +48,12 @@ export interface WidgetModel {
|
|
|
48
48
|
* Widget style options.
|
|
49
49
|
*/
|
|
50
50
|
styleOptions: WidgetStyleOptions;
|
|
51
|
+
/**
|
|
52
|
+
* Custom widget options. Only present for custom widgets.
|
|
53
|
+
*
|
|
54
|
+
* Contains widget-specific configuration that doesn't fit into standard style or data options.
|
|
55
|
+
*/
|
|
56
|
+
customOptions?: Record<string, any>;
|
|
51
57
|
/**
|
|
52
58
|
* Widget filters.
|
|
53
59
|
*/
|
|
@@ -14,17 +14,23 @@ type PivotRenderOptions = {
|
|
|
14
14
|
themeSettings: CompleteThemeSettings;
|
|
15
15
|
/** The size of the pivot table container. */
|
|
16
16
|
size: ContainerSize | null;
|
|
17
|
+
/** Allow html in pivot table cells */
|
|
18
|
+
allowHtml?: boolean;
|
|
17
19
|
/** Callback to handle total height change. */
|
|
18
20
|
onTotalHeightChange?: (totalHeight: number) => void;
|
|
19
21
|
/** Callback to handle data point click. */
|
|
20
22
|
onDataPointClick?: PivotTableDataPointEventHandler;
|
|
21
23
|
/** Callback to handle data point context menu. */
|
|
22
24
|
onDataPointContextMenu?: PivotTableDataPointEventHandler;
|
|
25
|
+
/** The page size */
|
|
26
|
+
pageSize: number;
|
|
27
|
+
/** Callback to handle page size. */
|
|
28
|
+
onPageSizeChange: (newPageSize: number) => void;
|
|
23
29
|
};
|
|
24
30
|
/**
|
|
25
31
|
* A hook that renders the pivot table.
|
|
26
32
|
*/
|
|
27
|
-
export declare function useRenderPivot({ pivotBuilder, dataOptions, styleOptions, themeSettings, size, onTotalHeightChange, onDataPointClick, onDataPointContextMenu, }: PivotRenderOptions): {
|
|
33
|
+
export declare function useRenderPivot({ pivotBuilder, dataOptions, styleOptions, themeSettings, size, allowHtml, onTotalHeightChange, onDataPointClick, onDataPointContextMenu, pageSize, onPageSizeChange, }: PivotRenderOptions): {
|
|
28
34
|
pivotElement: JSX.Element | null;
|
|
29
35
|
};
|
|
30
36
|
export {};
|
|
@@ -9,9 +9,10 @@ import { Hierarchy } from './models';
|
|
|
9
9
|
import { type CustomDataCellFormatter, type CustomHeaderCellFormatter } from './pivot-table/formatters/types';
|
|
10
10
|
import { ExecuteQueryParams, QueryByWidgetIdState } from './query-execution';
|
|
11
11
|
import { ExecuteQueryResult } from './query-execution/types';
|
|
12
|
-
import { AreamapDataPoint, AreamapStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, BoxplotDataPoint, BoxplotStyleOptions, CalendarHeatmapDataPoint, CalendarHeatmapStyleOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ChartDataPoints, ChartStyleOptions, ChartType, ChartWidgetStyleOptions, CustomDrilldownResult, CustomWidgetStyleOptions, DataPoint, DrilldownOptions, DrilldownSelection, FunnelStyleOptions, GenericDataOptions, IndicatorDataPoint, IndicatorRenderOptions, IndicatorStyleOptions, LineStyleOptions, MenuAlignment, MenuItemSection, MenuPosition, PieStyleOptions, PivotTableDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, PolarStyleOptions, RegularChartStyleOptions, RegularChartType, ScatterDataPoint, ScattermapDataPoint, ScattermapStyleOptions, ScatterStyleOptions, StackableStyleOptions, SunburstStyleOptions,
|
|
12
|
+
import { AreamapDataPoint, AreamapStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, BoxplotDataPoint, BoxplotStyleOptions, CalendarHeatmapDataPoint, CalendarHeatmapStyleOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ChartDataPoints, ChartStyleOptions, ChartType, ChartWidgetStyleOptions, CustomDrilldownResult, CustomWidgetStyleOptions, DataPoint, DrilldownOptions, DrilldownSelection, FunnelStyleOptions, GenericDataOptions, IndicatorDataPoint, IndicatorRenderOptions, IndicatorStyleOptions, LineStyleOptions, MenuAlignment, MenuItemSection, MenuPosition, PieStyleOptions, PivotTableDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, PolarStyleOptions, RegularChartStyleOptions, RegularChartType, ScatterDataPoint, ScattermapDataPoint, ScattermapStyleOptions, ScatterStyleOptions, StackableStyleOptions, SunburstStyleOptions, TableStyleOptions, TableWidgetStyleOptions, TabularChartStyleOptions, TextWidgetDataPoint, TextWidgetStyleOptions, ThemeOid, ThemeSettings, TreemapStyleOptions, WidgetByIdStyleOptions } from './types';
|
|
13
13
|
import { DistributiveOmit } from './utils/utility-types/distributive-omit';
|
|
14
14
|
import { FiltersMergeStrategy } from './widget-by-id/types';
|
|
15
|
+
export type { TabberButtonsWidgetProps } from './widgets/tabber/types';
|
|
15
16
|
export type { MenuItemSection, HighchartsOptions };
|
|
16
17
|
/**
|
|
17
18
|
* Configurations and authentication for Sisense Context.
|
|
@@ -1419,6 +1420,12 @@ export interface CustomWidgetProps {
|
|
|
1419
1420
|
* @category Widget
|
|
1420
1421
|
*/
|
|
1421
1422
|
description?: string;
|
|
1423
|
+
/**
|
|
1424
|
+
* Specific options for the custom widget.
|
|
1425
|
+
*
|
|
1426
|
+
* @category Widget
|
|
1427
|
+
*/
|
|
1428
|
+
customOptions?: Record<string, any>;
|
|
1422
1429
|
}
|
|
1423
1430
|
/**
|
|
1424
1431
|
* A utility type that combines widget-specific properties (`BaseWidget`)
|
|
@@ -1721,25 +1728,6 @@ export interface DrilldownWidgetProps {
|
|
|
1721
1728
|
*/
|
|
1722
1729
|
children: (customDrilldownResult: CustomDrilldownResult) => ReactNode;
|
|
1723
1730
|
}
|
|
1724
|
-
/**
|
|
1725
|
-
* Tabber widget props designed to be a current state and is provided by use-tabber hook
|
|
1726
|
-
*
|
|
1727
|
-
* @internal
|
|
1728
|
-
*/
|
|
1729
|
-
export type TabberWidgetExtraProps = {
|
|
1730
|
-
onTabSelected: (tab: number) => void;
|
|
1731
|
-
selectedTab: number;
|
|
1732
|
-
};
|
|
1733
|
-
/**
|
|
1734
|
-
* Tabber widget props
|
|
1735
|
-
*
|
|
1736
|
-
* @internal
|
|
1737
|
-
*/
|
|
1738
|
-
export type TabberWidgetProps = {
|
|
1739
|
-
styleOptions?: TabberStyleProps;
|
|
1740
|
-
description?: string;
|
|
1741
|
-
width?: string;
|
|
1742
|
-
} & TabberWidgetExtraProps;
|
|
1743
1731
|
/**
|
|
1744
1732
|
* Params of the {@link useGetSharedFormula} hook
|
|
1745
1733
|
*
|
|
@@ -380,6 +380,8 @@ export declare const resources: {
|
|
|
380
380
|
viewMode: string;
|
|
381
381
|
showFilters: string;
|
|
382
382
|
hideFilters: string;
|
|
383
|
+
columns: string;
|
|
384
|
+
column: string;
|
|
383
385
|
};
|
|
384
386
|
};
|
|
385
387
|
jumpToDashboard: {
|
|
@@ -770,6 +772,8 @@ export declare const resources: {
|
|
|
770
772
|
viewMode: string;
|
|
771
773
|
showFilters: string;
|
|
772
774
|
hideFilters: string;
|
|
775
|
+
columns: string;
|
|
776
|
+
column: string;
|
|
773
777
|
};
|
|
774
778
|
};
|
|
775
779
|
jumpToDashboard: {
|