@sisense/sdk-ui 2.12.0 → 2.13.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 +18 -18
- package/dist/ai.js +622 -612
- 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-YIDiS_iY.js → derive-chart-family-BcASqlOf.js} +7537 -7379
- package/dist/{derive-chart-family-mugR7Ty1.cjs → derive-chart-family-Ca1NT5US.cjs} +49 -53
- package/dist/{dimensions-CyzZ0dbM.cjs → dimensions-DCT9XInO.cjs} +1 -1
- package/dist/{dimensions-DmRfLrT-.js → dimensions-DOxD1XtL.js} +1 -1
- package/dist/execute-query-CvH_36GC.cjs +1 -0
- package/dist/{execute-query-BCEeyd9s.js → execute-query-JhI9RXe_.js} +1263 -1217
- package/dist/index.cjs +23 -23
- package/dist/index.js +6431 -6208
- package/dist/index.umd.js +263 -271
- 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/categoricals/pie-chart/design-options/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +14 -14
- package/dist/packages/sdk-ui/src/chart-options-processor/series-labels.d.ts +20 -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/translations/axis-section.d.ts +3 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +3 -3
- 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/value-label-section.d.ts +3 -2
- 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/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 +7 -7
- 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/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 +5 -1
- package/dist/packages/sdk-ui/src/props.d.ts +8 -20
- package/dist/packages/sdk-ui/src/types.d.ts +57 -63
- 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-Cl0_Tfey.cjs} +1 -1
- package/dist/{types-DVAfvbpR.js → types-CnFd03Ga.js} +1 -1
- package/dist/{use-common-filters-BXdnB4GI.cjs → use-common-filters-WTVrWfsY.cjs} +174 -174
- package/dist/{use-common-filters-DIF4c8WP.js → use-common-filters-qFWk1Ia5.js} +11458 -11419
- package/dist/{widget-composer-C0lZpwN6.cjs → widget-composer-C7ZAcFHK.cjs} +2 -6
- package/dist/{widget-composer-BB5Jrgae.js → widget-composer-ovIwmgin.js} +4 -8
- package/package.json +7 -7
- package/dist/execute-query-Xt9drS3G.cjs +0 -1
- package/dist/packages/sdk-ui/src/widgets/tabber-widget.d.ts +0 -41
|
@@ -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
|
*/
|
|
@@ -20,11 +20,15 @@ type PivotRenderOptions = {
|
|
|
20
20
|
onDataPointClick?: PivotTableDataPointEventHandler;
|
|
21
21
|
/** Callback to handle data point context menu. */
|
|
22
22
|
onDataPointContextMenu?: PivotTableDataPointEventHandler;
|
|
23
|
+
/** The page size */
|
|
24
|
+
pageSize: number;
|
|
25
|
+
/** Callback to handle page size. */
|
|
26
|
+
onPageSizeChange: (newPageSize: number) => void;
|
|
23
27
|
};
|
|
24
28
|
/**
|
|
25
29
|
* A hook that renders the pivot table.
|
|
26
30
|
*/
|
|
27
|
-
export declare function useRenderPivot({ pivotBuilder, dataOptions, styleOptions, themeSettings, size, onTotalHeightChange, onDataPointClick, onDataPointContextMenu, }: PivotRenderOptions): {
|
|
31
|
+
export declare function useRenderPivot({ pivotBuilder, dataOptions, styleOptions, themeSettings, size, onTotalHeightChange, onDataPointClick, onDataPointContextMenu, pageSize, onPageSizeChange, }: PivotRenderOptions): {
|
|
28
32
|
pivotElement: JSX.Element | null;
|
|
29
33
|
};
|
|
30
34
|
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
|
*
|
|
@@ -2,7 +2,6 @@ import { CSSProperties, ReactNode } from 'react';
|
|
|
2
2
|
import type { Attribute, CalculatedMeasureColumn, Column, Measure, MeasureColumn, MembersFilter } from '@sisense/sdk-data';
|
|
3
3
|
import { DeepRequired } from 'ts-essentials';
|
|
4
4
|
import { Coordinates } from './charts/map-charts/scattermap/types';
|
|
5
|
-
import { TabCornerRadius, TabInterval, TabSize } from './widgets/tabber-widget';
|
|
6
5
|
import { Hierarchy, HierarchyId, StyledColumn, StyledMeasureColumn } from '.';
|
|
7
6
|
import { HighchartsOptionsInternal } from './chart-options-processor/chart-options-service';
|
|
8
7
|
import { AreaRangeSubtype, AreaSubtype, BoxplotSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype } from './chart-options-processor/subtype-to-design-options';
|
|
@@ -14,6 +13,7 @@ import { AreamapChartType, BoxplotChartType, CalendarHeatmapChartType, Cartesian
|
|
|
14
13
|
import { GeoDataElement, RawGeoDataElement } from './chart/restructured-charts/areamap-chart/types';
|
|
15
14
|
import { CalendarDayOfWeek } from './chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils';
|
|
16
15
|
import { DataPointsEventHandler } from './props';
|
|
16
|
+
import { GradientColor } from './utils/gradient';
|
|
17
17
|
import { SoftUnion } from './utils/utility-types';
|
|
18
18
|
export type { SortDirection, PivotRowsSort } from '@sisense/sdk-data';
|
|
19
19
|
export type { AppConfig } from './app/client-application';
|
|
@@ -24,6 +24,7 @@ export type { DataColorCondition, ConditionalDataColorOptions, DataColorOptions,
|
|
|
24
24
|
export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, CalendarHeatmapChartType, TableType, TableChartType, AreaSubtype, AreaRangeSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, Coordinates, RangeChartType, TableColorOptions, TextStyle, };
|
|
25
25
|
export type { MonthOfYear, DayOfWeek, DateLevel } from './query/date-formats/apply-date-format';
|
|
26
26
|
export type { IndicatorRenderOptions } from './charts/indicator/indicator-render-options';
|
|
27
|
+
export type { TabberButtonsWidgetStyleOptions, TabberButtonsWidgetCustomOptions, } from './widgets/tabber/types';
|
|
27
28
|
/**
|
|
28
29
|
* @internal
|
|
29
30
|
*/
|
|
@@ -120,7 +121,7 @@ export type SeriesLabels = {
|
|
|
120
121
|
rotation?: number;
|
|
121
122
|
/**
|
|
122
123
|
* Boolean flag that defines if value should be shown in series labels
|
|
123
|
-
* (if not specified,
|
|
124
|
+
* (if not specified, default is determined by chart type)
|
|
124
125
|
*/
|
|
125
126
|
showValue?: boolean;
|
|
126
127
|
/**
|
|
@@ -128,6 +129,11 @@ export type SeriesLabels = {
|
|
|
128
129
|
* (only applicable for subtypes that support percentage, like "stacked100")
|
|
129
130
|
*/
|
|
130
131
|
showPercentage?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Boolean flag that defines if percentage should be shown with decimals
|
|
134
|
+
* (will work only if `showPercentage` is `true`)
|
|
135
|
+
*/
|
|
136
|
+
showPercentDecimals?: boolean;
|
|
131
137
|
/**
|
|
132
138
|
* Text to be shown before the series labels
|
|
133
139
|
*/
|
|
@@ -155,11 +161,11 @@ export type SeriesLabels = {
|
|
|
155
161
|
/**
|
|
156
162
|
* Background color of the labels. `auto` uses the same color as the data point
|
|
157
163
|
*/
|
|
158
|
-
backgroundColor?: 'auto' | string;
|
|
164
|
+
backgroundColor?: 'auto' | string | GradientColor;
|
|
159
165
|
/**
|
|
160
166
|
* Color of the labels border
|
|
161
167
|
*/
|
|
162
|
-
borderColor?: string;
|
|
168
|
+
borderColor?: string | GradientColor;
|
|
163
169
|
/**
|
|
164
170
|
* Border radius in pixels applied to the labels border, if visible
|
|
165
171
|
*
|
|
@@ -235,11 +241,11 @@ export type TotalLabels = {
|
|
|
235
241
|
/**
|
|
236
242
|
* Background color of the labels. `auto` uses the same color as the data point
|
|
237
243
|
*/
|
|
238
|
-
backgroundColor?: 'auto' | string;
|
|
244
|
+
backgroundColor?: 'auto' | string | GradientColor;
|
|
239
245
|
/**
|
|
240
246
|
* Color of the labels border
|
|
241
247
|
*/
|
|
242
|
-
borderColor?: string;
|
|
248
|
+
borderColor?: string | GradientColor;
|
|
243
249
|
/**
|
|
244
250
|
* Border radius in pixels applied to the labels border, if visible
|
|
245
251
|
*
|
|
@@ -365,11 +371,11 @@ export type LegendOptions = {
|
|
|
365
371
|
/** Padding inside the legend, in pixels */
|
|
366
372
|
padding?: number;
|
|
367
373
|
/** Background color of the legend */
|
|
368
|
-
backgroundColor?: string;
|
|
374
|
+
backgroundColor?: string | GradientColor;
|
|
369
375
|
/** Width of the legend border in pixels */
|
|
370
376
|
borderWidth?: number;
|
|
371
377
|
/** Color of the legend border */
|
|
372
|
-
borderColor?: string;
|
|
378
|
+
borderColor?: string | GradientColor;
|
|
373
379
|
/**
|
|
374
380
|
* Border radius in pixels applied to the legend border, if visible.
|
|
375
381
|
*
|
|
@@ -659,17 +665,57 @@ export interface StackableStyleOptions extends BaseStyleOptions, BaseAxisStyleOp
|
|
|
659
665
|
borderRadius?: number | string;
|
|
660
666
|
};
|
|
661
667
|
}
|
|
668
|
+
/**
|
|
669
|
+
* Configuration for percentage labels
|
|
670
|
+
* Percentage labels are shown on top of series slices
|
|
671
|
+
*/
|
|
672
|
+
export type PiePercentageLabels = {
|
|
673
|
+
/**
|
|
674
|
+
* Boolean flag that defines if percentage label should be shown
|
|
675
|
+
*/
|
|
676
|
+
enabled: boolean;
|
|
677
|
+
/**
|
|
678
|
+
* Boolean flag that defines if percentage label should be shown with decimals
|
|
679
|
+
*/
|
|
680
|
+
showDecimals?: boolean;
|
|
681
|
+
};
|
|
682
|
+
export type PieSeriesLabels = Omit<SeriesLabels, 'showPercentage' | 'showPercentDecimals' | 'alignInside' | 'align' | 'verticalAlign'> & {
|
|
683
|
+
/**
|
|
684
|
+
* Boolean flag that defines if the category should be shown
|
|
685
|
+
* @default `true`
|
|
686
|
+
*/
|
|
687
|
+
showCategory?: boolean;
|
|
688
|
+
/**
|
|
689
|
+
* Configuration for percentage labels
|
|
690
|
+
* Percentage labels are shown on top of series slices
|
|
691
|
+
* Styling from series labels are not applied to percentage labels
|
|
692
|
+
*/
|
|
693
|
+
percentageLabels?: PiePercentageLabels;
|
|
694
|
+
/**
|
|
695
|
+
* Styling for labels text
|
|
696
|
+
*/
|
|
697
|
+
textStyle?: Omit<TextStyle, 'pointerEvents' | 'textOverflow'>;
|
|
698
|
+
};
|
|
662
699
|
/** Configuration options that define functional style of the various elements of Pie chart */
|
|
663
|
-
export interface PieStyleOptions extends
|
|
700
|
+
export interface PieStyleOptions extends BaseStyleOptions {
|
|
664
701
|
/**
|
|
665
702
|
* Configuration that defines the ability of the Pie chart to collapse (convolve) and
|
|
666
703
|
* hide part of the data under the single category "Others".
|
|
667
704
|
*/
|
|
668
705
|
convolution?: Convolution;
|
|
669
|
-
/**
|
|
706
|
+
/**
|
|
707
|
+
* Configuration that defines behavior of data labels on Pie chart
|
|
708
|
+
*
|
|
709
|
+
* @deprecated
|
|
710
|
+
* Use seriesLabels instead
|
|
711
|
+
*/
|
|
670
712
|
labels?: Labels;
|
|
671
713
|
/** Subtype of Pie chart*/
|
|
672
714
|
subtype?: PieSubtype;
|
|
715
|
+
/**
|
|
716
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
717
|
+
*/
|
|
718
|
+
seriesLabels?: PieSeriesLabels;
|
|
673
719
|
}
|
|
674
720
|
/** Configuration options that define functional style of the various elements of FunnelChart */
|
|
675
721
|
export interface FunnelStyleOptions extends Omit<BaseStyleOptions, 'seriesLabels'> {
|
|
@@ -875,6 +921,7 @@ export interface ScatterStyleOptions extends Omit<BaseStyleOptions, 'seriesLabel
|
|
|
875
921
|
/** Subtype of ScatterChart*/
|
|
876
922
|
subtype?: never;
|
|
877
923
|
markerSize?: ScatterMarkerSize;
|
|
924
|
+
seriesLabels?: Omit<SeriesLabels, 'showValue' | 'showPercentage' | 'showPercentDecimals'>;
|
|
878
925
|
}
|
|
879
926
|
/** Configuration options that define functional style of the various elements of TreemapChart */
|
|
880
927
|
export interface TreemapStyleOptions extends Omit<BaseStyleOptions, 'seriesLabels'> {
|
|
@@ -2358,59 +2405,6 @@ export type TranslationConfig = {
|
|
|
2358
2405
|
*/
|
|
2359
2406
|
customTranslations?: CustomTranslationObject[];
|
|
2360
2407
|
};
|
|
2361
|
-
/**
|
|
2362
|
-
* Single Tabber Widget tab object without styling
|
|
2363
|
-
*
|
|
2364
|
-
* @internal
|
|
2365
|
-
*/
|
|
2366
|
-
export type TabberTab = {
|
|
2367
|
-
displayWidgetIds: string[];
|
|
2368
|
-
title: string;
|
|
2369
|
-
};
|
|
2370
|
-
/**
|
|
2371
|
-
* Tabber widget DTO style property
|
|
2372
|
-
*
|
|
2373
|
-
* @internal
|
|
2374
|
-
*/
|
|
2375
|
-
export type TabberDtoStyle = Partial<TabberStyleProps> & {
|
|
2376
|
-
activeTab?: string;
|
|
2377
|
-
};
|
|
2378
|
-
/**
|
|
2379
|
-
* Configuration options that define style of the various elements of the Tabber component.
|
|
2380
|
-
*
|
|
2381
|
-
* @internal
|
|
2382
|
-
*/
|
|
2383
|
-
export type TabberStyleOptions = {
|
|
2384
|
-
descriptionColor: string;
|
|
2385
|
-
selectedBkgColor: string;
|
|
2386
|
-
selectedColor: string;
|
|
2387
|
-
showDescription: boolean;
|
|
2388
|
-
showSeparators: boolean;
|
|
2389
|
-
showTitle: boolean;
|
|
2390
|
-
tabCornerRadius: TabCornerRadius;
|
|
2391
|
-
tabsAlignment: string;
|
|
2392
|
-
tabsInterval: TabInterval;
|
|
2393
|
-
tabsSize: TabSize;
|
|
2394
|
-
unselectedBkgColor: string;
|
|
2395
|
-
unselectedColor: string;
|
|
2396
|
-
useSelectedBkg: boolean;
|
|
2397
|
-
useUnselectedBkg: boolean;
|
|
2398
|
-
};
|
|
2399
|
-
/**
|
|
2400
|
-
* Configuration options that defined tabber look and feel, including tabs and active tab.
|
|
2401
|
-
*
|
|
2402
|
-
* @internal
|
|
2403
|
-
*/
|
|
2404
|
-
export type TabberStyleProps = TabberStyleOptions & TabberConfig;
|
|
2405
|
-
/**
|
|
2406
|
-
* Tabber business logic configuration
|
|
2407
|
-
*
|
|
2408
|
-
* @internal
|
|
2409
|
-
*/
|
|
2410
|
-
export type TabberConfig = {
|
|
2411
|
-
tabs: TabberTab[];
|
|
2412
|
-
activeTab: number;
|
|
2413
|
-
};
|
|
2414
2408
|
/** @internal */
|
|
2415
2409
|
export type CustomContextProviderProps<P> = SoftUnion<{
|
|
2416
2410
|
context: P;
|