@sisense/sdk-ui 2.9.0 → 2.10.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 +31 -31
- package/dist/ai.js +27 -27
- package/dist/analytics-composer/node.cjs +3 -1
- package/dist/analytics-composer/node.js +514 -378
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/derive-chart-family-B1on_xkS.cjs +170 -0
- package/dist/derive-chart-family-BllGhqsW.js +29469 -0
- package/dist/{dimensions-CVJeJ8mi.cjs → dimensions-BYqdB-Q8.cjs} +1 -1
- package/dist/{dimensions-B2jz151s.js → dimensions-D-Z9sitz.js} +1 -1
- package/dist/execute-query-CABqVn7C.cjs +1 -0
- package/dist/{execute-query-agpyzZz6.js → execute-query-CGLL9vXX.js} +269 -247
- package/dist/index.cjs +25 -26
- package/dist/index.js +7945 -7469
- package/dist/index.umd.js +383 -374
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/common.d.ts +14 -0
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-dimensions.d.ts +2 -2
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-filters.d.ts +5 -5
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-measures.d.ts +3 -3
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/calendar-heatmap-chart.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/calendar-heatmap-chart-builder.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +87 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/data-options.d.ts +54 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +33 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/design-options.d.ts +22 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/highcharts-options-builder.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/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 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/extras-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/legend-options.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/plot-options.d.ts +9 -0
- 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 +35 -0
- 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 -0
- 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 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/tooltip-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +26 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/calendar-pagination.d.ts +30 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/helpers.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +25 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +14 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-chart-options.d.ts +55 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-navigation.d.ts +33 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/types.d.ts +13 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data-options.d.ts +5 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/legend.d.ts +3 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +22 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +13 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/alerts/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data/index.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data-options/index.d.ts +32 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/design-options/index.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/pie-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/highcharts-based-chart-renderer.d.ts +2 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/use-extra-config.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +10 -9
- package/dist/packages/sdk-ui/src/chart-data/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-data-options/translate-data-options.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +19 -2
- package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-categorical-data-options.d.ts +14 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +4 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/{category-chart-options.d.ts → category-chart-options/category-chart-options.d.ts} +9 -5
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/funnel-chart-options.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/pie-chart-options.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/treemap-chart-options.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +26 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/scatter-chart-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +1 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +6 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +18 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/legend-section.d.ts +28 -14
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-series.d.ts +34 -6
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +5 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +50 -6
- package/dist/packages/sdk-ui/src/common/formatters/create-date-formatter.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/hooks/useDateFormatter.d.ts +7 -0
- package/dist/packages/sdk-ui/src/common/icons/double-arrow-end-icon.d.ts +6 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +0 -19
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-filters.d.ts +12 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-formatters.d.ts +18 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-handlers.d.ts +23 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-widget-transforms.d.ts +29 -0
- package/dist/packages/sdk-ui/src/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +1 -0
- package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +2 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/types.d.ts +0 -1
- package/dist/packages/sdk-ui/src/polar-chart.d.ts +1 -1
- package/dist/packages/sdk-ui/src/props.d.ts +72 -7
- package/dist/packages/sdk-ui/src/sisense-chart/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +1 -0
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +11 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +22 -0
- package/dist/packages/sdk-ui/src/types.d.ts +254 -16
- package/dist/packages/sdk-ui/src/utils/combine-handlers.d.ts +19 -0
- package/dist/packages/sdk-ui/src/utils/utility-types/transformer.d.ts +8 -0
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +4 -6
- package/dist/{types-BYUVZb6u.js → types-BRtWk8uC.js} +1 -1
- package/dist/{types-QUSMO7gF.cjs → types-Ds0KtTJF.cjs} +1 -1
- package/dist/use-common-filters-D8tEa9zb.js +91245 -0
- package/dist/use-common-filters-hw1WKPCY.cjs +844 -0
- package/dist/{widget-composer-CGp5yOny.cjs → widget-composer-B7zeAa_D.cjs} +1 -1
- package/dist/{widget-composer-BG4HonVl.js → widget-composer-DL0xPtlC.js} +3 -3
- package/package.json +9 -9
- package/dist/derive-chart-family-BLG1sO1D.js +0 -86946
- package/dist/derive-chart-family-QPmz5DJ3.cjs +0 -656
- package/dist/execute-query-Cp3se7Yb.cjs +0 -1
- package/dist/packages/sdk-ui/src/utils/__development-utils__/highcharts-options-builder-collector.d.ts +0 -61
- package/dist/packages/sdk-ui/src/utils/__development-utils__/input-output-collector.d.ts +0 -125
- package/dist/use-common-filters-DmdADAhl.cjs +0 -350
- package/dist/use-common-filters-wo5IRF5u.js +0 -31972
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PolarChartProps } from './props';
|
|
3
3
|
/**
|
|
4
|
-
* A React component comparing multiple categories/variables with a
|
|
4
|
+
* A React component comparing multiple categories/variables with a spatial perspective in a radial chart.
|
|
5
5
|
*
|
|
6
6
|
* ## Example
|
|
7
7
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Attribute, Filter, Measure, DataSource, Data, QueryResultData, FilterRelations } from '@sisense/sdk-data';
|
|
2
|
-
import { ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ThemeSettings, PolarStyleOptions, PieStyleOptions, StackableStyleOptions, LineStyleOptions, AreaStyleOptions, FunnelStyleOptions, ScatterStyleOptions, ChartStyleOptions, ChartType, IndicatorStyleOptions, DrilldownOptions, ThemeOid, TreemapStyleOptions, CustomDrilldownResult, MenuPosition, MenuAlignment, MenuItemSection, SunburstStyleOptions, ChartWidgetStyleOptions, TableWidgetStyleOptions, WidgetByIdStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, DataPoint, ScatterDataPoint, AreamapDataPoint, BoxplotDataPoint, ChartDataPoints, ScattermapDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, RegularChartType, RegularChartStyleOptions, TabularChartStyleOptions, TableStyleOptions, AreaRangeStyleOptions, DrilldownSelection, TextWidgetStyleOptions, GenericDataOptions, IndicatorRenderOptions, TabberStyleProps, IndicatorDataPoint, TextWidgetDataPoint, CustomWidgetStyleOptions, PivotTableDataPoint } from './types';
|
|
2
|
+
import { ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ThemeSettings, PolarStyleOptions, PieStyleOptions, StackableStyleOptions, LineStyleOptions, AreaStyleOptions, FunnelStyleOptions, ScatterStyleOptions, ChartStyleOptions, ChartType, IndicatorStyleOptions, DrilldownOptions, ThemeOid, TreemapStyleOptions, CustomDrilldownResult, MenuPosition, MenuAlignment, MenuItemSection, SunburstStyleOptions, ChartWidgetStyleOptions, TableWidgetStyleOptions, WidgetByIdStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, DataPoint, ScatterDataPoint, AreamapDataPoint, BoxplotDataPoint, ChartDataPoints, ScattermapDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, RegularChartType, RegularChartStyleOptions, TabularChartStyleOptions, TableStyleOptions, AreaRangeStyleOptions, DrilldownSelection, TextWidgetStyleOptions, GenericDataOptions, IndicatorRenderOptions, TabberStyleProps, IndicatorDataPoint, TextWidgetDataPoint, CustomWidgetStyleOptions, PivotTableDataPoint, CalendarHeatmapStyleOptions, CalendarHeatmapDataPoint } from './types';
|
|
3
3
|
import { type CustomDataCellFormatter, type CustomHeaderCellFormatter } from './pivot-table/formatters/types';
|
|
4
4
|
import { HighchartsOptions } from './chart-options-processor/chart-options-service';
|
|
5
5
|
import { ComponentType, PropsWithChildren, ReactNode } from 'react';
|
|
6
|
-
import { IndicatorChartDataOptions, BoxplotChartCustomDataOptions, BoxplotChartDataOptions, ScatterChartDataOptions, TableDataOptions, ScattermapChartDataOptions, AreamapChartDataOptions, PivotTableDataOptions, RegularChartDataOptions, TabularChartDataOptions, RangeChartDataOptions } from './chart-data-options/types';
|
|
6
|
+
import { IndicatorChartDataOptions, BoxplotChartCustomDataOptions, BoxplotChartDataOptions, ScatterChartDataOptions, TableDataOptions, ScattermapChartDataOptions, AreamapChartDataOptions, PivotTableDataOptions, RegularChartDataOptions, TabularChartDataOptions, RangeChartDataOptions, CalendarHeatmapChartDataOptions } from './chart-data-options/types';
|
|
7
7
|
import { AppConfig } from './app/client-application';
|
|
8
8
|
import { ExecuteQueryParams, QueryByWidgetIdState } from './query-execution';
|
|
9
9
|
import { FiltersMergeStrategy } from './widget-by-id/types';
|
|
@@ -44,7 +44,7 @@ export interface SisenseContextProviderProps {
|
|
|
44
44
|
*/
|
|
45
45
|
ssoEnabled?: boolean;
|
|
46
46
|
/**
|
|
47
|
-
* Token for [bearer authentication](https://sisense.
|
|
47
|
+
* Token for [bearer authentication](https://developer.sisense.com/guides/restApi/using-rest-api.html).
|
|
48
48
|
*
|
|
49
49
|
* To signify that the token is pending (e.g., being generated), set the value to `null`. This is supported for React and Vue only.
|
|
50
50
|
*
|
|
@@ -297,6 +297,26 @@ export type IndicatorDataPointEventHandler = (
|
|
|
297
297
|
point: IndicatorDataPoint,
|
|
298
298
|
/** Native MouseEvent */
|
|
299
299
|
nativeEvent: MouseEvent) => void;
|
|
300
|
+
/**
|
|
301
|
+
* Click handler for when a calendar-heatmap data point is clicked
|
|
302
|
+
*
|
|
303
|
+
* @alpha
|
|
304
|
+
*/
|
|
305
|
+
export type CalendarHeatmapDataPointEventHandler = (
|
|
306
|
+
/** Data point that was clicked */
|
|
307
|
+
point: CalendarHeatmapDataPoint,
|
|
308
|
+
/** Native PointerEvent */
|
|
309
|
+
nativeEvent: PointerEvent) => void;
|
|
310
|
+
/**
|
|
311
|
+
* Click handler for when multiple calendar-heatmap data points are selected.
|
|
312
|
+
*
|
|
313
|
+
* @alpha
|
|
314
|
+
*/
|
|
315
|
+
export type CalendarHeatmapDataPointsEventHandler = (
|
|
316
|
+
/** Data points that were selected */
|
|
317
|
+
points: CalendarHeatmapDataPoint[],
|
|
318
|
+
/** Native MouseEvent */
|
|
319
|
+
nativeEvent: MouseEvent) => void;
|
|
300
320
|
/**
|
|
301
321
|
* Click handler for when text widget is clicked.
|
|
302
322
|
*
|
|
@@ -458,6 +478,32 @@ interface IndicatorChartEventProps extends BaseChartEventProps {
|
|
|
458
478
|
*/
|
|
459
479
|
onDataPointClick?: IndicatorDataPointEventHandler;
|
|
460
480
|
}
|
|
481
|
+
/**
|
|
482
|
+
* Event props for CalendarHeatmap chart which uses CalendarHeatmapDataPoint type
|
|
483
|
+
* to describe data points for events.
|
|
484
|
+
*
|
|
485
|
+
* @internal
|
|
486
|
+
*/
|
|
487
|
+
export interface CalendarHeatmapChartEventProps extends BaseChartEventProps, HighchartsBasedChartEventProps {
|
|
488
|
+
/**
|
|
489
|
+
* Click handler callback for a data point
|
|
490
|
+
*
|
|
491
|
+
* @category Callbacks
|
|
492
|
+
*/
|
|
493
|
+
onDataPointClick?: CalendarHeatmapDataPointEventHandler;
|
|
494
|
+
/**
|
|
495
|
+
* Context menu handler callback for a data point
|
|
496
|
+
*
|
|
497
|
+
* @category Callbacks
|
|
498
|
+
*/
|
|
499
|
+
onDataPointContextMenu?: CalendarHeatmapDataPointEventHandler;
|
|
500
|
+
/**
|
|
501
|
+
* Handler callback for selection of multiple data points
|
|
502
|
+
*
|
|
503
|
+
* @category Callbacks
|
|
504
|
+
*/
|
|
505
|
+
onDataPointsSelected?: CalendarHeatmapDataPointsEventHandler;
|
|
506
|
+
}
|
|
461
507
|
/**
|
|
462
508
|
* Base Chart Props to be extended by {@link ChartProps}
|
|
463
509
|
*
|
|
@@ -472,7 +518,7 @@ export interface BaseChartProps extends BaseChartEventProps {
|
|
|
472
518
|
*
|
|
473
519
|
* (1) Sisense data source name as a string. For example, `'Sample ECommerce'`. Typically, you
|
|
474
520
|
* retrieve the data source name from a data model you create using the `get-data-model`
|
|
475
|
-
* {@link https://sisense.
|
|
521
|
+
* {@link https://developer.sisense.com/guides/sdk/guides/cli.html | command} of the Compose SDK CLI. The chart
|
|
476
522
|
* connects to the data source, executes a query, and loads the data as specified in
|
|
477
523
|
* `dataOptions`, `filters`, and `highlights`.
|
|
478
524
|
*
|
|
@@ -565,19 +611,19 @@ interface ChartEventProps extends BaseChartEventProps {
|
|
|
565
611
|
*
|
|
566
612
|
* @category Callbacks
|
|
567
613
|
*/
|
|
568
|
-
onDataPointClick?: DataPointEventHandler | ScatterDataPointEventHandler | AreamapDataPointEventHandler | BoxplotDataPointEventHandler | ScattermapDataPointEventHandler | IndicatorDataPointEventHandler;
|
|
614
|
+
onDataPointClick?: DataPointEventHandler | ScatterDataPointEventHandler | AreamapDataPointEventHandler | BoxplotDataPointEventHandler | ScattermapDataPointEventHandler | IndicatorDataPointEventHandler | CalendarHeatmapDataPointEventHandler;
|
|
569
615
|
/**
|
|
570
616
|
* Context menu handler callback for a data point
|
|
571
617
|
*
|
|
572
618
|
* @category Callbacks
|
|
573
619
|
*/
|
|
574
|
-
onDataPointContextMenu?: DataPointEventHandler | ScatterDataPointEventHandler | BoxplotDataPointEventHandler;
|
|
620
|
+
onDataPointContextMenu?: DataPointEventHandler | ScatterDataPointEventHandler | BoxplotDataPointEventHandler | CalendarHeatmapDataPointEventHandler;
|
|
575
621
|
/**
|
|
576
622
|
* Handler callback for selection of multiple data points
|
|
577
623
|
*
|
|
578
624
|
* @category Callbacks
|
|
579
625
|
*/
|
|
580
|
-
onDataPointsSelected?: DataPointsEventHandler | ScatterDataPointsEventHandler;
|
|
626
|
+
onDataPointsSelected?: DataPointsEventHandler | ScatterDataPointsEventHandler | CalendarHeatmapDataPointsEventHandler;
|
|
581
627
|
/**
|
|
582
628
|
* A callback that allows you to customize the underlying chart element before it is rendered. The returned options are then used when rendering the chart.
|
|
583
629
|
*
|
|
@@ -1717,3 +1763,22 @@ export interface UseGetSharedFormulaParams extends HookEnableParam {
|
|
|
1717
1763
|
*/
|
|
1718
1764
|
dataSource?: DataSource;
|
|
1719
1765
|
}
|
|
1766
|
+
/**
|
|
1767
|
+
* Props of the {@link CalendarHeatmapChart} component.
|
|
1768
|
+
*
|
|
1769
|
+
* @internal
|
|
1770
|
+
*/
|
|
1771
|
+
export interface CalendarHeatmapChartProps extends BaseChartProps, CalendarHeatmapChartEventProps {
|
|
1772
|
+
/**
|
|
1773
|
+
* Configurations for how to interpret and present the data passed to the chart
|
|
1774
|
+
*
|
|
1775
|
+
* @category Chart
|
|
1776
|
+
*/
|
|
1777
|
+
dataOptions: CalendarHeatmapChartDataOptions;
|
|
1778
|
+
/**
|
|
1779
|
+
* Configurations for how to style and present a chart's data.
|
|
1780
|
+
*
|
|
1781
|
+
* @category Chart
|
|
1782
|
+
*/
|
|
1783
|
+
styleOptions?: CalendarHeatmapStyleOptions;
|
|
1784
|
+
}
|
|
@@ -2,9 +2,9 @@ import { ChartDataOptionsInternal } from '../chart-data-options/types';
|
|
|
2
2
|
import { ChartData } from '../chart-data/types.js';
|
|
3
3
|
import { ChartDesignOptions } from '../chart-options-processor/translations/types.js';
|
|
4
4
|
import { BeforeRenderHandler } from '../props.js';
|
|
5
|
-
import { BoxplotChartType, BoxplotDataPoint, CartesianChartType, CategoricalChartType, DataPoint, ScatterChartType, ScatterDataPoint } from '../types.js';
|
|
5
|
+
import { BoxplotChartType, BoxplotDataPoint, CalendarHeatmapDataPoint, CartesianChartType, CategoricalChartType, DataPoint, ScatterChartType, ScatterDataPoint } from '../types.js';
|
|
6
6
|
export type SisenseChartDataPointsEventHandler = (points: SisenseChartDataPoint[], nativeEvent: MouseEvent) => void;
|
|
7
|
-
export type SisenseChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint;
|
|
7
|
+
export type SisenseChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint | CalendarHeatmapDataPoint;
|
|
8
8
|
export type SisenseChartDataPointEventHandler = (point: SisenseChartDataPoint, nativeEvent: PointerEvent) => void;
|
|
9
9
|
export interface SisenseChartProps {
|
|
10
10
|
chartType: SisenseChartType;
|
|
@@ -10,6 +10,7 @@ export declare const DEFAULT_FILTER_PANEL_DIVIDER_LINE_WIDTH = 1;
|
|
|
10
10
|
export declare const DEFAULT_FILTER_PANEL_BORDER_COLOR = "#DADADA";
|
|
11
11
|
export declare const DEFAULT_FILTER_PANEL_BORDER_WIDTH = 1;
|
|
12
12
|
export declare const DEFAULT_TITLE_FONT_SIZE = 15;
|
|
13
|
+
export declare const DEFAULT_HYPERLINK_COLOR = "#1FAFF3";
|
|
13
14
|
/**
|
|
14
15
|
* Returns default theme settings, which can be used as base for custom theme options.
|
|
15
16
|
*
|
|
@@ -373,6 +373,17 @@ export declare const translation: {
|
|
|
373
373
|
jumpToDashboard: {
|
|
374
374
|
defaultCaption: string;
|
|
375
375
|
jumpableTooltip: string;
|
|
376
|
+
noDrillTargets: string;
|
|
377
|
+
};
|
|
378
|
+
calendarHeatmap: {
|
|
379
|
+
navigation: {
|
|
380
|
+
firstMonth: string;
|
|
381
|
+
lastMonth: string;
|
|
382
|
+
previousMonth: string;
|
|
383
|
+
nextMonth: string;
|
|
384
|
+
previousGroup: string;
|
|
385
|
+
nextGroup: string;
|
|
386
|
+
};
|
|
376
387
|
};
|
|
377
388
|
};
|
|
378
389
|
/**
|
|
@@ -383,6 +383,17 @@ export declare const resources: {
|
|
|
383
383
|
jumpToDashboard: {
|
|
384
384
|
defaultCaption: string;
|
|
385
385
|
jumpableTooltip: string;
|
|
386
|
+
noDrillTargets: string;
|
|
387
|
+
};
|
|
388
|
+
calendarHeatmap: {
|
|
389
|
+
navigation: {
|
|
390
|
+
firstMonth: string;
|
|
391
|
+
lastMonth: string;
|
|
392
|
+
previousMonth: string;
|
|
393
|
+
nextMonth: string;
|
|
394
|
+
previousGroup: string;
|
|
395
|
+
nextGroup: string;
|
|
396
|
+
};
|
|
386
397
|
};
|
|
387
398
|
};
|
|
388
399
|
uk: {
|
|
@@ -760,6 +771,17 @@ export declare const resources: {
|
|
|
760
771
|
jumpToDashboard: {
|
|
761
772
|
defaultCaption: string;
|
|
762
773
|
jumpableTooltip: string;
|
|
774
|
+
noDrillTargets: string;
|
|
775
|
+
};
|
|
776
|
+
calendarHeatmap: {
|
|
777
|
+
navigation: {
|
|
778
|
+
firstMonth: string;
|
|
779
|
+
lastMonth: string;
|
|
780
|
+
previousMonth: string;
|
|
781
|
+
nextMonth: string;
|
|
782
|
+
previousGroup: string;
|
|
783
|
+
nextGroup: string;
|
|
784
|
+
};
|
|
763
785
|
};
|
|
764
786
|
};
|
|
765
787
|
};
|
|
@@ -4,7 +4,7 @@ import { AreaSubtype, BoxplotSubtype, LineSubtype, PieSubtype, PolarSubtype, Sta
|
|
|
4
4
|
import { IndicatorComponents, TableColorOptions } from './chart-options-processor/translations/design-options';
|
|
5
5
|
import { FunnelDirection, FunnelSize, FunnelType } from './chart-options-processor/translations/funnel-plot-options';
|
|
6
6
|
import { ScatterMarkerSize } from './chart-options-processor/translations/scatter-plot-options';
|
|
7
|
-
import { CartesianChartType, ScatterChartType, CategoricalChartType, IndicatorChartType, TableType, AreamapChartType, BoxplotChartType, ScattermapChartType, RangeChartType, TableChartType } from './chart-options-processor/translations/types';
|
|
7
|
+
import { CartesianChartType, ScatterChartType, CategoricalChartType, IndicatorChartType, TableType, AreamapChartType, BoxplotChartType, ScattermapChartType, CalendarHeatmapChartType, RangeChartType, TableChartType, TextStyle } from './chart-options-processor/translations/types';
|
|
8
8
|
import { DataPointsEventHandler } from './props';
|
|
9
9
|
import { LegendPosition } from './chart-options-processor/translations/legend-section';
|
|
10
10
|
import { Coordinates } from './charts/map-charts/scattermap/types';
|
|
@@ -25,9 +25,9 @@ export declare enum SizeMeasurement {
|
|
|
25
25
|
PERCENT = "%",
|
|
26
26
|
PIXEL = "px"
|
|
27
27
|
}
|
|
28
|
-
export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
|
|
28
|
+
export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, CalendarHeatmapChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
|
|
29
29
|
export type { DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, } from './chart-data/data-coloring/types';
|
|
30
|
-
export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, TableChartType, AreaSubtype, AreaRangeSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, Coordinates, RangeChartType, TableColorOptions, };
|
|
30
|
+
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, };
|
|
31
31
|
export type { MonthOfYear, DayOfWeek, DateLevel } from './query/date-formats/apply-date-format';
|
|
32
32
|
export type { IndicatorRenderOptions } from './charts/indicator/indicator-render-options';
|
|
33
33
|
/**
|
|
@@ -53,6 +53,42 @@ export type LineWidth = {
|
|
|
53
53
|
/** Line width type */
|
|
54
54
|
width: 'thin' | 'bold' | 'thick';
|
|
55
55
|
};
|
|
56
|
+
/** Configuration that defines line dash type */
|
|
57
|
+
export type DashStyle = 'Solid' | 'ShortDash' | 'ShortDot' | 'ShortDashDot' | 'ShortDashDotDot' | 'Dot' | 'Dash' | 'LongDash' | 'DashDot' | 'LongDashDot' | 'LongDashDotDot';
|
|
58
|
+
/** Configuration that defines line end cap type */
|
|
59
|
+
export type EndCapType = 'Round' | 'Square';
|
|
60
|
+
/**
|
|
61
|
+
* Configuration options for styling lines in charts.
|
|
62
|
+
*
|
|
63
|
+
* This type is used to customize the visual appearance of lines in various chart types
|
|
64
|
+
* including Line charts, Area charts, and AreaRange charts.
|
|
65
|
+
*/
|
|
66
|
+
export type LineOptions = {
|
|
67
|
+
/**
|
|
68
|
+
* Width of the line in pixels.
|
|
69
|
+
*/
|
|
70
|
+
width?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Dash pattern for the line.
|
|
73
|
+
*
|
|
74
|
+
* Defines the visual pattern of the line.
|
|
75
|
+
*/
|
|
76
|
+
dashStyle?: DashStyle;
|
|
77
|
+
/**
|
|
78
|
+
* Style of the line end caps.
|
|
79
|
+
*
|
|
80
|
+
* Controls how the ends of lines are rendered:
|
|
81
|
+
* - `'Round'`: Rounded ends for a softer appearance
|
|
82
|
+
* - `'Square'`: Sharp, flat ends for a crisp appearance
|
|
83
|
+
*/
|
|
84
|
+
endCap?: EndCapType;
|
|
85
|
+
/**
|
|
86
|
+
* Whether to apply a shadow effect to the line.
|
|
87
|
+
*
|
|
88
|
+
* When enabled, adds a subtle shadow behind the line for enhanced.
|
|
89
|
+
*/
|
|
90
|
+
shadow?: boolean;
|
|
91
|
+
};
|
|
56
92
|
/** Options that define markers - symbols or data points that highlight specific values. */
|
|
57
93
|
export type Markers = {
|
|
58
94
|
/** Boolean flag that defines if markers should be shown on the chart */
|
|
@@ -96,13 +132,159 @@ export type TotalLabels = {
|
|
|
96
132
|
/** Rotation of total labels (in degrees) */
|
|
97
133
|
rotation?: number;
|
|
98
134
|
};
|
|
99
|
-
/**
|
|
100
|
-
|
|
135
|
+
/**
|
|
136
|
+
* Configuration for the legend title
|
|
137
|
+
*/
|
|
138
|
+
export interface LegendTitleOptions {
|
|
139
|
+
/** Whether the legend title is enabled */
|
|
140
|
+
enabled?: boolean;
|
|
141
|
+
/** The text content of the legend title */
|
|
142
|
+
text?: string;
|
|
143
|
+
/** Styling for the legend title */
|
|
144
|
+
textStyle?: TextStyle;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Configuration for individual legend items
|
|
148
|
+
*/
|
|
149
|
+
export interface LegendItemsOptions {
|
|
150
|
+
/**
|
|
151
|
+
* Layout direction for legend items
|
|
152
|
+
*
|
|
153
|
+
* Can be one of 'horizontal' or 'vertical' or 'proximate'.
|
|
154
|
+
* When 'proximate', the legend items will be placed as close as possible to the graphs they're representing, except in inverted charts or when the legend position doesn't allow it.
|
|
155
|
+
*/
|
|
156
|
+
layout?: 'horizontal' | 'vertical' | 'proximate';
|
|
157
|
+
/** Distance between legend items in pixels */
|
|
158
|
+
distance?: number;
|
|
159
|
+
/** Top margin applied to each legend item, in pixels */
|
|
160
|
+
marginTop?: number;
|
|
161
|
+
/** Bottom margin applied to each legend item, in pixels */
|
|
162
|
+
marginBottom?: number;
|
|
163
|
+
/**
|
|
164
|
+
* Width of legend items, in pixels.
|
|
165
|
+
*
|
|
166
|
+
* @default undefined
|
|
167
|
+
*/
|
|
168
|
+
width?: number;
|
|
169
|
+
/** Styling for legend items text */
|
|
170
|
+
textStyle?: TextStyle;
|
|
171
|
+
/**
|
|
172
|
+
* Styling for legend items on hover
|
|
173
|
+
*
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
176
|
+
hoverTextStyle?: TextStyle;
|
|
177
|
+
/**
|
|
178
|
+
* Styling for hidden legend items
|
|
179
|
+
*
|
|
180
|
+
* @internal
|
|
181
|
+
*/
|
|
182
|
+
hiddenTextStyle?: TextStyle;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Configuration for legend symbols
|
|
186
|
+
*/
|
|
187
|
+
export interface LegendSymbolsOptions {
|
|
188
|
+
/** Width of the legend symbol in pixels */
|
|
189
|
+
width?: number;
|
|
190
|
+
/** Height of the legend symbol in pixels */
|
|
191
|
+
height?: number;
|
|
192
|
+
/**
|
|
193
|
+
* If true, the `width` of the symbol will be the same as the `height`.
|
|
194
|
+
*
|
|
195
|
+
* @default true
|
|
196
|
+
*/
|
|
197
|
+
squared?: boolean;
|
|
198
|
+
/** Border radius applied to symbols. Set to half of the `height` value to create a circle*/
|
|
199
|
+
radius?: number;
|
|
200
|
+
/** Padding between the symbol and text of each legend item, in pixels */
|
|
201
|
+
padding?: number;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Options that define legend - a key that provides information about the data series or colors used in chart.
|
|
205
|
+
*/
|
|
206
|
+
export type LegendOptions = {
|
|
101
207
|
/** Boolean flag that defines if legend should be shown on the chart */
|
|
102
208
|
enabled: boolean;
|
|
103
|
-
/**
|
|
209
|
+
/**
|
|
210
|
+
* Position of the legend
|
|
211
|
+
*
|
|
212
|
+
* @deprecated Please use `align`, `verticalAlign` and `items.layout` properties instead
|
|
213
|
+
*/
|
|
104
214
|
position?: LegendPosition;
|
|
215
|
+
/** Horizontal alignment of the legend */
|
|
216
|
+
align?: 'left' | 'center' | 'right';
|
|
217
|
+
/** Vertical alignment of the legend */
|
|
218
|
+
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
219
|
+
/**
|
|
220
|
+
* Maximum height of the legend in pixels.
|
|
221
|
+
* When the maximum height is exceeded by the number of items in the legend, scroll navigation arrows will appear
|
|
222
|
+
*/
|
|
223
|
+
maxHeight?: number;
|
|
224
|
+
/** Margin in pixels between the legend and the axis labels or plot area */
|
|
225
|
+
margin?: number;
|
|
226
|
+
/** Padding inside the legend, in pixels */
|
|
227
|
+
padding?: number;
|
|
228
|
+
/** Background color of the legend */
|
|
229
|
+
backgroundColor?: string;
|
|
230
|
+
/** Width of the legend border in pixels */
|
|
231
|
+
borderWidth?: number;
|
|
232
|
+
/** Color of the legend border */
|
|
233
|
+
borderColor?: string;
|
|
234
|
+
/**
|
|
235
|
+
* Border radius in pixels applied to the legend border, if visible.
|
|
236
|
+
*
|
|
237
|
+
* @default 0
|
|
238
|
+
*/
|
|
239
|
+
borderRadius?: number;
|
|
240
|
+
/**
|
|
241
|
+
* Whether to show shadow on the legend
|
|
242
|
+
*
|
|
243
|
+
* @internal
|
|
244
|
+
*/
|
|
245
|
+
shadow?: boolean;
|
|
246
|
+
/** If `true`, the order of legend items is reversed.
|
|
247
|
+
*
|
|
248
|
+
* @default false
|
|
249
|
+
*/
|
|
250
|
+
reversed?: boolean;
|
|
251
|
+
/**
|
|
252
|
+
* If `true`, legend items are displayed right-to-left.
|
|
253
|
+
*
|
|
254
|
+
* @default false
|
|
255
|
+
*/
|
|
256
|
+
rtl?: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* If `true`, the legend can float over the chart.
|
|
259
|
+
*
|
|
260
|
+
* @default false
|
|
261
|
+
*/
|
|
262
|
+
floating?: boolean;
|
|
263
|
+
/** Width of the legend, specified in pixels e.g. `200` or percentage of the chart width e.g. `'30%'` */
|
|
264
|
+
width?: number | string;
|
|
265
|
+
/** Configuration for the legend title */
|
|
266
|
+
title?: LegendTitleOptions;
|
|
267
|
+
/** Configuration for legend items */
|
|
268
|
+
items?: LegendItemsOptions;
|
|
269
|
+
/** Configuration for legend symbols in pixels */
|
|
270
|
+
symbols?: LegendSymbolsOptions;
|
|
271
|
+
/**
|
|
272
|
+
* Horizontal offset of the legend in pixels, relative to its horizontal alignment specified via `align`.
|
|
273
|
+
*
|
|
274
|
+
* @default 0
|
|
275
|
+
*/
|
|
276
|
+
xOffset?: number;
|
|
277
|
+
/**
|
|
278
|
+
* Vertical offset of the legend in pixels, relative to its vertical alignment specified via `verticalAlign`.
|
|
279
|
+
*
|
|
280
|
+
* @default 0
|
|
281
|
+
*/
|
|
282
|
+
yOffset?: number;
|
|
105
283
|
};
|
|
284
|
+
/**
|
|
285
|
+
* Alias for LegendOptions for backward compatibility
|
|
286
|
+
*/
|
|
287
|
+
export type Legend = LegendOptions;
|
|
106
288
|
/** Configuration that defines behavior of data labels on chart */
|
|
107
289
|
export type Labels = {
|
|
108
290
|
/** Boolean flag that defines if categories names should be shown */
|
|
@@ -198,8 +380,10 @@ export interface DataLimits {
|
|
|
198
380
|
* @internal
|
|
199
381
|
*/
|
|
200
382
|
export interface BaseStyleOptions extends ReservedStyleOptions {
|
|
201
|
-
/**
|
|
202
|
-
|
|
383
|
+
/**
|
|
384
|
+
* Configuration for legend - a key that provides information about the data series or colors used in chart
|
|
385
|
+
* */
|
|
386
|
+
legend?: LegendOptions;
|
|
203
387
|
/**
|
|
204
388
|
* Configuration for series labels - titles/names identifying data series in a chart
|
|
205
389
|
*
|
|
@@ -253,8 +437,15 @@ export interface BaseAxisStyleOptions {
|
|
|
253
437
|
export type CartesianStyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions;
|
|
254
438
|
/** Configuration options that define functional style of the various elements of LineChart */
|
|
255
439
|
export interface LineStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
256
|
-
/**
|
|
440
|
+
/**
|
|
441
|
+
* Configuration that defines line width
|
|
442
|
+
*
|
|
443
|
+
* @deprecated
|
|
444
|
+
* Use line.width instead
|
|
445
|
+
*/
|
|
257
446
|
lineWidth?: LineWidth;
|
|
447
|
+
/** Configuration that defines line style */
|
|
448
|
+
line?: LineOptions;
|
|
258
449
|
/** Subtype of LineChart */
|
|
259
450
|
subtype?: LineSubtype;
|
|
260
451
|
/**
|
|
@@ -271,15 +462,29 @@ export interface LineStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
|
|
|
271
462
|
}
|
|
272
463
|
/** Configuration options that define functional style of the various elements of AreaRangeChart */
|
|
273
464
|
export interface AreaRangeStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
274
|
-
/**
|
|
465
|
+
/**
|
|
466
|
+
* Configuration that defines line width
|
|
467
|
+
*
|
|
468
|
+
* @deprecated
|
|
469
|
+
* Use line.width instead
|
|
470
|
+
*/
|
|
275
471
|
lineWidth?: LineWidth;
|
|
472
|
+
/** Configuration that defines line style */
|
|
473
|
+
line?: LineOptions;
|
|
276
474
|
/** Subtype of AreaRangeChart */
|
|
277
475
|
subtype?: AreaRangeSubtype;
|
|
278
476
|
}
|
|
279
477
|
/** Configuration options that define functional style of the various elements of AreaChart */
|
|
280
478
|
export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
281
|
-
/**
|
|
479
|
+
/**
|
|
480
|
+
* Configuration that defines line width
|
|
481
|
+
*
|
|
482
|
+
* @deprecated
|
|
483
|
+
* Use line.width instead
|
|
484
|
+
*/
|
|
282
485
|
lineWidth?: LineWidth;
|
|
486
|
+
/** Configuration that defines line style */
|
|
487
|
+
line?: LineOptions;
|
|
283
488
|
/** Subtype of AreaChart*/
|
|
284
489
|
subtype?: AreaSubtype;
|
|
285
490
|
}
|
|
@@ -574,12 +779,27 @@ export interface ScattermapStyleOptions extends Pick<BaseStyleOptions, 'width' |
|
|
|
574
779
|
subtype?: never;
|
|
575
780
|
markers?: ScattermapMarkers;
|
|
576
781
|
}
|
|
782
|
+
/**
|
|
783
|
+
* Configuration options that define functional style of the various elements of CalendarHeatmapChart
|
|
784
|
+
*
|
|
785
|
+
* @alpha
|
|
786
|
+
*/
|
|
787
|
+
export interface CalendarHeatmapStyleOptions extends Pick<BaseStyleOptions, 'width' | 'height'> {
|
|
788
|
+
/**
|
|
789
|
+
* {@inheritDoc CalendarHeatmapViewType}
|
|
790
|
+
*/
|
|
791
|
+
viewType?: CalendarHeatmapViewType;
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* View type determines how many months to display: 'month' (1), 'quarter' (3), 'half-year' (6), 'year' (12)
|
|
795
|
+
*/
|
|
796
|
+
export type CalendarHeatmapViewType = 'month' | 'quarter' | 'half-year' | 'year';
|
|
577
797
|
/**
|
|
578
798
|
* Configuration options that define functional style of the various elements of chart.
|
|
579
799
|
*/
|
|
580
800
|
export type ChartStyleOptions = RegularChartStyleOptions | TabularChartStyleOptions;
|
|
581
801
|
/** Style options for regular chart types */
|
|
582
|
-
export type RegularChartStyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions | PieStyleOptions | FunnelStyleOptions | PolarStyleOptions | IndicatorStyleOptions | ScatterStyleOptions | TreemapStyleOptions | SunburstStyleOptions | BoxplotStyleOptions | AreamapStyleOptions | ScattermapStyleOptions | AreaRangeStyleOptions;
|
|
802
|
+
export type RegularChartStyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions | PieStyleOptions | FunnelStyleOptions | PolarStyleOptions | IndicatorStyleOptions | ScatterStyleOptions | TreemapStyleOptions | SunburstStyleOptions | BoxplotStyleOptions | AreamapStyleOptions | ScattermapStyleOptions | AreaRangeStyleOptions | CalendarHeatmapStyleOptions;
|
|
583
803
|
/** Mapping of each of the chart value series to colors. */
|
|
584
804
|
export type ValueToColorMap = {
|
|
585
805
|
[value: string]: string;
|
|
@@ -591,7 +811,7 @@ export type MultiColumnValueToColorMap = {
|
|
|
591
811
|
/**
|
|
592
812
|
* Chart type of one of the supported chart families
|
|
593
813
|
*/
|
|
594
|
-
export type ChartType = CartesianChartType | CategoricalChartType | ScatterChartType | IndicatorChartType | AreamapChartType | BoxplotChartType | ScattermapChartType | RangeChartType | TableChartType;
|
|
814
|
+
export type ChartType = CartesianChartType | CategoricalChartType | ScatterChartType | IndicatorChartType | AreamapChartType | BoxplotChartType | ScattermapChartType | CalendarHeatmapChartType | RangeChartType | TableChartType;
|
|
595
815
|
/** Chart type of the regular charts */
|
|
596
816
|
export type RegularChartType = Exclude<ChartType, TableChartType>;
|
|
597
817
|
/**
|
|
@@ -888,6 +1108,8 @@ export interface TypographyThemeSettings {
|
|
|
888
1108
|
primaryTextColor?: string;
|
|
889
1109
|
/** Secondary text color */
|
|
890
1110
|
secondaryTextColor?: string;
|
|
1111
|
+
/** Hyperlink color */
|
|
1112
|
+
hyperlinkColor?: string;
|
|
891
1113
|
/** Settings for font loading */
|
|
892
1114
|
fontsLoader?: FontsLoaderSettings;
|
|
893
1115
|
}
|
|
@@ -1367,17 +1589,17 @@ export type DrilldownSelection = {
|
|
|
1367
1589
|
/**
|
|
1368
1590
|
* Data points in a chart. Array of data points of the same data point type.
|
|
1369
1591
|
*/
|
|
1370
|
-
export type ChartDataPoints = DataPoint[] | ScatterDataPoint[] | BoxplotDataPoint[] | AreamapDataPoint[] | ScattermapDataPoint[];
|
|
1592
|
+
export type ChartDataPoints = DataPoint[] | ScatterDataPoint[] | BoxplotDataPoint[] | AreamapDataPoint[] | ScattermapDataPoint[] | CalendarHeatmapDataPoint[];
|
|
1371
1593
|
/**
|
|
1372
1594
|
* Abstract data point in a chart - union of all types of data points.
|
|
1373
1595
|
*/
|
|
1374
|
-
export type ChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint | AreamapDataPoint | ScattermapDataPoint;
|
|
1596
|
+
export type ChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint | AreamapDataPoint | ScattermapDataPoint | CalendarHeatmapDataPoint;
|
|
1375
1597
|
/**
|
|
1376
1598
|
* Abstract data point in a chart that based on Highcharts.
|
|
1377
1599
|
*
|
|
1378
1600
|
* @internal
|
|
1379
1601
|
*/
|
|
1380
|
-
export type HighchartsBasedChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint;
|
|
1602
|
+
export type HighchartsBasedChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint | CalendarHeatmapDataPoint;
|
|
1381
1603
|
/**
|
|
1382
1604
|
* Abstract event handler for data point click event
|
|
1383
1605
|
*
|
|
@@ -1490,6 +1712,22 @@ export type IndicatorDataPoint = {
|
|
|
1490
1712
|
max?: DataPointEntry;
|
|
1491
1713
|
};
|
|
1492
1714
|
};
|
|
1715
|
+
/**
|
|
1716
|
+
* Data point in a CalendarHeatmap chart.
|
|
1717
|
+
*
|
|
1718
|
+
* @alpha
|
|
1719
|
+
*/
|
|
1720
|
+
export type CalendarHeatmapDataPoint = {
|
|
1721
|
+
/**
|
|
1722
|
+
* A collection of data point entries that represents values for all related `dataOptions`.
|
|
1723
|
+
*
|
|
1724
|
+
* @internal
|
|
1725
|
+
*/
|
|
1726
|
+
entries?: {
|
|
1727
|
+
date: DataPointEntry;
|
|
1728
|
+
value?: DataPointEntry;
|
|
1729
|
+
};
|
|
1730
|
+
};
|
|
1493
1731
|
/**
|
|
1494
1732
|
* Data point that represents the entire Text widget data.
|
|
1495
1733
|
*
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
import { RenderTitleHandler, RenderToolbarHandler, TextWidgetRenderToolbarHandler } from '../types';
|
|
1
2
|
type AnyFunction = (...args: any[]) => any;
|
|
2
3
|
export declare function combineHandlers<Handler extends AnyFunction>(handlers: (Handler | undefined)[], chainHandlers?: boolean): Handler;
|
|
4
|
+
/**
|
|
5
|
+
* Compose multiple RenderToolbarHandler functions into one.
|
|
6
|
+
* Each handler gets a chance to modify the toolbar.
|
|
7
|
+
* If it returns `null`, the previous toolbar is passed to the next handler.
|
|
8
|
+
*/
|
|
9
|
+
export declare function composeToolbarHandlers(...handlers: (RenderToolbarHandler | undefined)[]): RenderToolbarHandler;
|
|
10
|
+
/**
|
|
11
|
+
* Compose multiple TextWidgetRenderToolbarHandler functions into one.
|
|
12
|
+
* Each handler gets a chance to modify the toolbar.
|
|
13
|
+
* If it returns `null`, the previous toolbar is passed to the next handler.
|
|
14
|
+
*/
|
|
15
|
+
export declare function composeTextWidgetToolbarHandlers(...handlers: (TextWidgetRenderToolbarHandler | undefined)[]): TextWidgetRenderToolbarHandler;
|
|
16
|
+
/**
|
|
17
|
+
* Compose multiple RenderTitleHandler functions into one.
|
|
18
|
+
* Each handler gets a chance to modify the title.
|
|
19
|
+
* If it returns `null`, the previous tile is passed to the next handler.
|
|
20
|
+
*/
|
|
21
|
+
export declare function composeTitleHandlers(...handlers: (RenderTitleHandler | undefined)[]): RenderTitleHandler;
|
|
3
22
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context-based transformer type for pure functional transformations
|
|
3
|
+
*/
|
|
4
|
+
export type ContextfulTransformer<T, C = void> = (ctx: C) => (input: Readonly<T>) => T;
|
|
5
|
+
/**
|
|
6
|
+
* Contextless transformer type for pure functional transformations
|
|
7
|
+
*/
|
|
8
|
+
export type Transformer<T> = (input: Readonly<T>) => T;
|
|
@@ -520,6 +520,9 @@ export type JtdDrillTarget = {
|
|
|
520
520
|
caption: string;
|
|
521
521
|
id: string;
|
|
522
522
|
};
|
|
523
|
+
export type JtdPivotDrillTarget = JtdDrillTarget & {
|
|
524
|
+
pivotDimensions: string[];
|
|
525
|
+
};
|
|
523
526
|
export type JtdConfigDto = {
|
|
524
527
|
drilledDashboardPrefix: string;
|
|
525
528
|
drilledDashboardsFolderPrefix: string;
|
|
@@ -536,12 +539,7 @@ export type JtdConfigDto = {
|
|
|
536
539
|
drillToDashboardNavigateTypeCharts: number;
|
|
537
540
|
drillToDashboardNavigateTypeOthers: number;
|
|
538
541
|
drilledDashboardDisplayType: number;
|
|
539
|
-
dashboardIds: Array<
|
|
540
|
-
oid: string;
|
|
541
|
-
caption: string;
|
|
542
|
-
id: string;
|
|
543
|
-
dashboardTitle: string;
|
|
544
|
-
}>;
|
|
542
|
+
dashboardIds: Array<JtdDrillTarget | JtdPivotDrillTarget>;
|
|
545
543
|
modalWindowResize: boolean;
|
|
546
544
|
modalWindowMeasurement?: SizeMeasurement;
|
|
547
545
|
modalWindowWidth?: number;
|