@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
|
@@ -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
|
*/
|
|
@@ -109,8 +110,7 @@ export type SeriesLabelsTextStyle = Omit<TextStyle, 'pointerEvents' | 'textOverf
|
|
|
109
110
|
*/
|
|
110
111
|
color?: 'contrast' | string;
|
|
111
112
|
};
|
|
112
|
-
|
|
113
|
-
export type SeriesLabels = {
|
|
113
|
+
export type SeriesLabelsBase = {
|
|
114
114
|
/** Boolean flag that defines if series labels should be shown on the chart */
|
|
115
115
|
enabled: boolean;
|
|
116
116
|
/**
|
|
@@ -118,36 +118,6 @@ export type SeriesLabels = {
|
|
|
118
118
|
* Note that due to a more complex structure, backgrounds, borders and padding will be lost on a rotated data label
|
|
119
119
|
* */
|
|
120
120
|
rotation?: number;
|
|
121
|
-
/**
|
|
122
|
-
* Boolean flag that defines if value should be shown in series labels
|
|
123
|
-
* (if not specified, value will be shown by default)
|
|
124
|
-
*/
|
|
125
|
-
showValue?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Boolean flag that defines if percentage should be shown in series labels
|
|
128
|
-
* (only applicable for subtypes that support percentage, like "stacked100")
|
|
129
|
-
*/
|
|
130
|
-
showPercentage?: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* Text to be shown before the series labels
|
|
133
|
-
*/
|
|
134
|
-
prefix?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Text to be shown after the series labels
|
|
137
|
-
*/
|
|
138
|
-
suffix?: string;
|
|
139
|
-
/**
|
|
140
|
-
* If `true`, series labels appear inside bars/columns instead of at the datapoints. Not applicable for some chart types e.g. line, area
|
|
141
|
-
*/
|
|
142
|
-
alignInside?: boolean;
|
|
143
|
-
/**
|
|
144
|
-
* The horizontal alignment of the data label compared to the point
|
|
145
|
-
*/
|
|
146
|
-
align?: 'left' | 'center' | 'right';
|
|
147
|
-
/**
|
|
148
|
-
* The vertical alignment of the data label
|
|
149
|
-
*/
|
|
150
|
-
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
151
121
|
/**
|
|
152
122
|
* Styling for labels text
|
|
153
123
|
*/
|
|
@@ -155,11 +125,11 @@ export type SeriesLabels = {
|
|
|
155
125
|
/**
|
|
156
126
|
* Background color of the labels. `auto` uses the same color as the data point
|
|
157
127
|
*/
|
|
158
|
-
backgroundColor?: 'auto' | string;
|
|
128
|
+
backgroundColor?: 'auto' | string | GradientColor;
|
|
159
129
|
/**
|
|
160
130
|
* Color of the labels border
|
|
161
131
|
*/
|
|
162
|
-
borderColor?: string;
|
|
132
|
+
borderColor?: string | GradientColor;
|
|
163
133
|
/**
|
|
164
134
|
* Border radius in pixels applied to the labels border, if visible
|
|
165
135
|
*
|
|
@@ -187,11 +157,49 @@ export type SeriesLabels = {
|
|
|
187
157
|
*/
|
|
188
158
|
yOffset?: number;
|
|
189
159
|
/**
|
|
190
|
-
*
|
|
160
|
+
* Text to be shown before the series labels
|
|
161
|
+
*/
|
|
162
|
+
prefix?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Text to be shown after the series labels
|
|
165
|
+
*/
|
|
166
|
+
suffix?: string;
|
|
167
|
+
};
|
|
168
|
+
export type SeriesLabelsAligning = {
|
|
169
|
+
/**
|
|
170
|
+
* If `true`, series labels appear inside bars/columns instead of at the datapoints. Not applicable for some chart types e.g. line, area
|
|
171
|
+
*/
|
|
172
|
+
alignInside?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* The horizontal alignment of the data label compared to the point
|
|
191
175
|
*
|
|
192
|
-
*
|
|
176
|
+
* For some chart types, this will only apply when `alignInside` is `true`.
|
|
193
177
|
*/
|
|
194
|
-
|
|
178
|
+
align?: 'left' | 'center' | 'right';
|
|
179
|
+
/**
|
|
180
|
+
* The vertical alignment of the data label
|
|
181
|
+
*
|
|
182
|
+
* For some chart types, this will only apply when `alignInside` is `true`.
|
|
183
|
+
*/
|
|
184
|
+
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
185
|
+
};
|
|
186
|
+
/** Options that define series labels - titles/names identifying data series in a chart. */
|
|
187
|
+
export type SeriesLabels = SeriesLabelsBase & SeriesLabelsAligning & {
|
|
188
|
+
/**
|
|
189
|
+
* Boolean flag that defines if value should be shown in series labels
|
|
190
|
+
* (if not specified, default is determined by chart type)
|
|
191
|
+
*/
|
|
192
|
+
showValue?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Boolean flag that defines if percentage should be shown in series labels
|
|
195
|
+
* (only applicable for subtypes that support percentage, like "stacked100")
|
|
196
|
+
*/
|
|
197
|
+
showPercentage?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Boolean flag that defines if percentage should be shown with decimals
|
|
200
|
+
* (will work only if `showPercentage` is `true`)
|
|
201
|
+
*/
|
|
202
|
+
showPercentDecimals?: boolean;
|
|
195
203
|
};
|
|
196
204
|
/**
|
|
197
205
|
* Text styling options for total labels.
|
|
@@ -235,11 +243,11 @@ export type TotalLabels = {
|
|
|
235
243
|
/**
|
|
236
244
|
* Background color of the labels. `auto` uses the same color as the data point
|
|
237
245
|
*/
|
|
238
|
-
backgroundColor?: 'auto' | string;
|
|
246
|
+
backgroundColor?: 'auto' | string | GradientColor;
|
|
239
247
|
/**
|
|
240
248
|
* Color of the labels border
|
|
241
249
|
*/
|
|
242
|
-
borderColor?: string;
|
|
250
|
+
borderColor?: string | GradientColor;
|
|
243
251
|
/**
|
|
244
252
|
* Border radius in pixels applied to the labels border, if visible
|
|
245
253
|
*
|
|
@@ -365,11 +373,11 @@ export type LegendOptions = {
|
|
|
365
373
|
/** Padding inside the legend, in pixels */
|
|
366
374
|
padding?: number;
|
|
367
375
|
/** Background color of the legend */
|
|
368
|
-
backgroundColor?: string;
|
|
376
|
+
backgroundColor?: string | GradientColor;
|
|
369
377
|
/** Width of the legend border in pixels */
|
|
370
378
|
borderWidth?: number;
|
|
371
379
|
/** Color of the legend border */
|
|
372
|
-
borderColor?: string;
|
|
380
|
+
borderColor?: string | GradientColor;
|
|
373
381
|
/**
|
|
374
382
|
* Border radius in pixels applied to the legend border, if visible.
|
|
375
383
|
*
|
|
@@ -523,10 +531,6 @@ export interface BaseStyleOptions extends ReservedStyleOptions {
|
|
|
523
531
|
* Configuration for legend - a key that provides information about the data series or colors used in chart
|
|
524
532
|
* */
|
|
525
533
|
legend?: LegendOptions;
|
|
526
|
-
/**
|
|
527
|
-
* Configuration for series labels - titles/names identifying data series in a chart
|
|
528
|
-
*/
|
|
529
|
-
seriesLabels?: SeriesLabels;
|
|
530
534
|
/** Data limit for series or categories that will be plotted */
|
|
531
535
|
dataLimits?: DataLimits;
|
|
532
536
|
/**
|
|
@@ -590,6 +594,10 @@ export interface LineStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
|
|
|
590
594
|
* - `right` - step occurs after the point
|
|
591
595
|
*/
|
|
592
596
|
stepPosition?: 'left' | 'center' | 'right';
|
|
597
|
+
/**
|
|
598
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
599
|
+
*/
|
|
600
|
+
seriesLabels?: SeriesLabels;
|
|
593
601
|
}
|
|
594
602
|
/** Configuration options that define functional style of the various elements of AreaRangeChart */
|
|
595
603
|
export interface AreaRangeStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
@@ -604,6 +612,10 @@ export interface AreaRangeStyleOptions extends BaseStyleOptions, BaseAxisStyleOp
|
|
|
604
612
|
line?: LineOptions;
|
|
605
613
|
/** Subtype of AreaRangeChart */
|
|
606
614
|
subtype?: AreaRangeSubtype;
|
|
615
|
+
/**
|
|
616
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
617
|
+
*/
|
|
618
|
+
seriesLabels?: SeriesLabels;
|
|
607
619
|
}
|
|
608
620
|
/** Configuration options that define functional style of the various elements of AreaChart */
|
|
609
621
|
export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
@@ -618,6 +630,10 @@ export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
|
|
|
618
630
|
line?: LineOptions;
|
|
619
631
|
/** Subtype of AreaChart*/
|
|
620
632
|
subtype?: AreaSubtype;
|
|
633
|
+
/**
|
|
634
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
635
|
+
*/
|
|
636
|
+
seriesLabels?: SeriesLabels;
|
|
621
637
|
/**
|
|
622
638
|
* Configuration for total labels
|
|
623
639
|
* Only supported for stacked chart subtypes
|
|
@@ -628,6 +644,10 @@ export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
|
|
|
628
644
|
export interface StackableStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
629
645
|
/** Subtype of stackable chart */
|
|
630
646
|
subtype?: StackableSubtype;
|
|
647
|
+
/**
|
|
648
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
649
|
+
*/
|
|
650
|
+
seriesLabels?: SeriesLabels;
|
|
631
651
|
/**
|
|
632
652
|
* Configuration for total labels
|
|
633
653
|
* Only supported for stacked chart subtypes
|
|
@@ -659,33 +679,92 @@ export interface StackableStyleOptions extends BaseStyleOptions, BaseAxisStyleOp
|
|
|
659
679
|
borderRadius?: number | string;
|
|
660
680
|
};
|
|
661
681
|
}
|
|
682
|
+
/**
|
|
683
|
+
* Configuration for percentage labels
|
|
684
|
+
* Percentage labels are shown on top of series slices
|
|
685
|
+
*/
|
|
686
|
+
export type PiePercentageLabels = {
|
|
687
|
+
/**
|
|
688
|
+
* Boolean flag that defines if percentage label should be shown
|
|
689
|
+
*/
|
|
690
|
+
enabled: boolean;
|
|
691
|
+
/**
|
|
692
|
+
* Boolean flag that defines if percentage label should be shown with decimals
|
|
693
|
+
*/
|
|
694
|
+
showDecimals?: boolean;
|
|
695
|
+
};
|
|
696
|
+
export type PieSeriesLabels = SeriesLabelsBase & {
|
|
697
|
+
/**
|
|
698
|
+
* Boolean flag that defines if value should be shown in series labels
|
|
699
|
+
* (if not specified, default is determined by chart type)
|
|
700
|
+
*/
|
|
701
|
+
showValue?: boolean;
|
|
702
|
+
/**
|
|
703
|
+
* Boolean flag that defines if the category should be shown
|
|
704
|
+
* @default `true`
|
|
705
|
+
*/
|
|
706
|
+
showCategory?: boolean;
|
|
707
|
+
/**
|
|
708
|
+
* Configuration for percentage labels
|
|
709
|
+
* Percentage labels are shown on top of series slices
|
|
710
|
+
* Styling from series labels are not applied to percentage labels
|
|
711
|
+
*/
|
|
712
|
+
percentageLabels?: PiePercentageLabels;
|
|
713
|
+
/**
|
|
714
|
+
* Styling for labels text
|
|
715
|
+
*/
|
|
716
|
+
textStyle?: Omit<TextStyle, 'pointerEvents' | 'textOverflow'>;
|
|
717
|
+
};
|
|
662
718
|
/** Configuration options that define functional style of the various elements of Pie chart */
|
|
663
|
-
export interface PieStyleOptions extends
|
|
719
|
+
export interface PieStyleOptions extends BaseStyleOptions {
|
|
664
720
|
/**
|
|
665
721
|
* Configuration that defines the ability of the Pie chart to collapse (convolve) and
|
|
666
722
|
* hide part of the data under the single category "Others".
|
|
667
723
|
*/
|
|
668
724
|
convolution?: Convolution;
|
|
669
|
-
/**
|
|
725
|
+
/**
|
|
726
|
+
* Configuration that defines behavior of data labels on Pie chart
|
|
727
|
+
*
|
|
728
|
+
* @deprecated
|
|
729
|
+
* Use seriesLabels instead
|
|
730
|
+
*/
|
|
670
731
|
labels?: Labels;
|
|
671
732
|
/** Subtype of Pie chart*/
|
|
672
733
|
subtype?: PieSubtype;
|
|
734
|
+
/**
|
|
735
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
736
|
+
*/
|
|
737
|
+
seriesLabels?: PieSeriesLabels;
|
|
738
|
+
}
|
|
739
|
+
export interface FunnelSeriesLabels extends SeriesLabels {
|
|
740
|
+
/** Boolean flag that defines if category names should be shown in series labels */
|
|
741
|
+
showCategory?: boolean;
|
|
673
742
|
}
|
|
674
743
|
/** Configuration options that define functional style of the various elements of FunnelChart */
|
|
675
|
-
export interface FunnelStyleOptions extends
|
|
744
|
+
export interface FunnelStyleOptions extends BaseStyleOptions {
|
|
676
745
|
/** Visual size of the lowest slice (degree of funnel narrowing from highest to lowest slices)*/
|
|
677
746
|
funnelSize?: FunnelSize;
|
|
678
747
|
/** Visual type of the lowest slice of FunnelChart */
|
|
679
748
|
funnelType?: FunnelType;
|
|
680
749
|
/** Direction of FunnelChart narrowing */
|
|
681
750
|
funnelDirection?: FunnelDirection;
|
|
682
|
-
/**
|
|
751
|
+
/**
|
|
752
|
+
* Configuration that defines behavior of data labels on FunnelChart
|
|
753
|
+
*
|
|
754
|
+
* @deprecated Use seriesLabels instead
|
|
755
|
+
*/
|
|
683
756
|
labels?: Labels;
|
|
684
757
|
/** Subtype of FunnelChart*/
|
|
685
758
|
subtype?: never;
|
|
759
|
+
/** Configuration for series labels */
|
|
760
|
+
seriesLabels?: FunnelSeriesLabels;
|
|
686
761
|
}
|
|
687
762
|
/** Configuration options that define functional style of the various elements of PolarChart */
|
|
688
763
|
export interface PolarStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
764
|
+
/**
|
|
765
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
766
|
+
*/
|
|
767
|
+
seriesLabels?: SeriesLabels;
|
|
689
768
|
/** Subtype of PolarChart*/
|
|
690
769
|
subtype?: PolarSubtype;
|
|
691
770
|
}
|
|
@@ -870,15 +949,21 @@ export interface GaugeIndicatorStyleOptions extends BaseIndicatorStyleOptions {
|
|
|
870
949
|
/** Bar height for gauge indicator in ticker mode */
|
|
871
950
|
tickerBarHeight?: number;
|
|
872
951
|
}
|
|
952
|
+
export type ScatterSeriesLabels = SeriesLabelsBase & SeriesLabelsAligning;
|
|
873
953
|
/** Configuration options that define functional style of the various elements of ScatterChart */
|
|
874
|
-
export interface ScatterStyleOptions extends
|
|
954
|
+
export interface ScatterStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
875
955
|
/** Subtype of ScatterChart*/
|
|
876
956
|
subtype?: never;
|
|
877
957
|
markerSize?: ScatterMarkerSize;
|
|
958
|
+
seriesLabels?: ScatterSeriesLabels;
|
|
878
959
|
}
|
|
960
|
+
export type TreemapSeriesLabels = (SeriesLabelsBase & SeriesLabelsAligning) | (SeriesLabelsBase & SeriesLabelsAligning)[];
|
|
879
961
|
/** Configuration options that define functional style of the various elements of TreemapChart */
|
|
880
|
-
export interface TreemapStyleOptions extends
|
|
881
|
-
/**
|
|
962
|
+
export interface TreemapStyleOptions extends BaseStyleOptions {
|
|
963
|
+
/**
|
|
964
|
+
* Labels options object
|
|
965
|
+
* @deprecated Please use `seriesLabels` instead
|
|
966
|
+
*/
|
|
882
967
|
labels?: {
|
|
883
968
|
/** Array with single label options objects (order of items relative to dataOptions.category) */
|
|
884
969
|
category?: {
|
|
@@ -886,6 +971,10 @@ export interface TreemapStyleOptions extends Omit<BaseStyleOptions, 'seriesLabel
|
|
|
886
971
|
enabled?: boolean;
|
|
887
972
|
}[];
|
|
888
973
|
};
|
|
974
|
+
/**
|
|
975
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
976
|
+
*/
|
|
977
|
+
seriesLabels?: TreemapSeriesLabels;
|
|
889
978
|
/** Tooltip options object */
|
|
890
979
|
tooltip?: {
|
|
891
980
|
/** Define mode of data showing */
|
|
@@ -893,7 +982,7 @@ export interface TreemapStyleOptions extends Omit<BaseStyleOptions, 'seriesLabel
|
|
|
893
982
|
};
|
|
894
983
|
}
|
|
895
984
|
/** Configuration options that define functional style of the various elements of the SunburstChart component */
|
|
896
|
-
export interface SunburstStyleOptions extends
|
|
985
|
+
export interface SunburstStyleOptions extends BaseStyleOptions {
|
|
897
986
|
/** Labels options object */
|
|
898
987
|
labels?: {
|
|
899
988
|
/** Array with single label options objects (order of items relative to dataOptions.category) */
|
|
@@ -912,6 +1001,10 @@ export interface SunburstStyleOptions extends Omit<BaseStyleOptions, 'seriesLabe
|
|
|
912
1001
|
export interface BoxplotStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
913
1002
|
/** Subtype of the BoxplotChart component*/
|
|
914
1003
|
subtype?: BoxplotSubtype;
|
|
1004
|
+
/**
|
|
1005
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
1006
|
+
*/
|
|
1007
|
+
seriesLabels?: SeriesLabels;
|
|
915
1008
|
}
|
|
916
1009
|
/**
|
|
917
1010
|
* Type of map to display on the AreamapChart component
|
|
@@ -978,10 +1071,20 @@ export type CalendarHeatmapCellLabels = {
|
|
|
978
1071
|
color?: string | 'contrast';
|
|
979
1072
|
};
|
|
980
1073
|
};
|
|
1074
|
+
/**
|
|
1075
|
+
* Calendar heatmap chart subtype
|
|
1076
|
+
*/
|
|
1077
|
+
export type CalendarHeatmapSubtype = 'calendar-heatmap/split' | 'calendar-heatmap/continuous';
|
|
981
1078
|
/**
|
|
982
1079
|
* Configuration options that define functional style of the various elements of calendar-heatmap chart
|
|
983
1080
|
*/
|
|
984
1081
|
export interface CalendarHeatmapStyleOptions extends Pick<BaseStyleOptions, 'width' | 'height'> {
|
|
1082
|
+
/**
|
|
1083
|
+
* {@inheritDoc CalendarHeatmapSubtype}
|
|
1084
|
+
*
|
|
1085
|
+
* @default 'calendar-heatmap/split'
|
|
1086
|
+
*/
|
|
1087
|
+
subtype?: CalendarHeatmapSubtype;
|
|
985
1088
|
/**
|
|
986
1089
|
* {@inheritDoc CalendarHeatmapViewType}
|
|
987
1090
|
*/
|
|
@@ -2358,59 +2461,6 @@ export type TranslationConfig = {
|
|
|
2358
2461
|
*/
|
|
2359
2462
|
customTranslations?: CustomTranslationObject[];
|
|
2360
2463
|
};
|
|
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
2464
|
/** @internal */
|
|
2415
2465
|
export type CustomContextProviderProps<P> = SoftUnion<{
|
|
2416
2466
|
context: P;
|