@sisense/sdk-ui 2.13.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.
Files changed (64) hide show
  1. package/dist/ai.cjs +2 -2
  2. package/dist/ai.js +6 -6
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +4 -4
  5. package/dist/analytics-composer.cjs +1 -1
  6. package/dist/analytics-composer.js +6 -6
  7. package/dist/{derive-chart-family-Ca1NT5US.cjs → derive-chart-family-DJUpWKOP.cjs} +53 -44
  8. package/dist/{derive-chart-family-BcASqlOf.js → derive-chart-family-D_bylSQy.js} +9047 -8934
  9. package/dist/{dimensions-DOxD1XtL.js → dimensions-CTUJhW-M.js} +1 -1
  10. package/dist/{dimensions-DCT9XInO.cjs → dimensions-CdNGgk9I.cjs} +1 -1
  11. package/dist/execute-query-CNt566O5.cjs +1 -0
  12. package/dist/{execute-query-JhI9RXe_.js → execute-query-DyjkDYHG.js} +1033 -1016
  13. package/dist/index.cjs +24 -24
  14. package/dist/index.js +6337 -6279
  15. package/dist/index.umd.js +348 -338
  16. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +12 -4
  17. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/index.d.ts +25 -1
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/index.d.ts +3 -3
  24. 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
  25. 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
  26. 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
  27. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +2 -1
  28. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +2 -1
  29. 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
  30. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +16 -3
  31. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +4 -4
  32. 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
  33. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/calendar-utils.d.ts +1 -1
  34. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/design-options/index.d.ts +14 -0
  35. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/design-options/index.d.ts +3 -0
  36. package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +5 -0
  37. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +0 -3
  38. package/dist/packages/sdk-ui/src/chart-options-processor/series-labels.d.ts +0 -3
  39. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +4 -2
  40. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +5 -4
  41. package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts +12 -17
  42. package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-labels.d.ts +2 -2
  43. package/dist/packages/sdk-ui/src/common/components/menu/context-menu/context-menu.d.ts +1 -0
  44. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/helpers.d.ts +11 -0
  45. package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +0 -30
  46. package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +3 -2
  47. package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
  48. package/dist/packages/sdk-ui/src/dashboard/types.d.ts +76 -4
  49. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +5 -5
  50. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +3 -1
  51. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +2 -0
  52. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +4 -0
  53. package/dist/packages/sdk-ui/src/types.d.ts +108 -52
  54. package/dist/{types-Cl0_Tfey.cjs → types-D1qM-ltg.cjs} +1 -1
  55. package/dist/{types-CnFd03Ga.js → types-DglXXR-Q.js} +1 -1
  56. package/dist/{use-common-filters-qFWk1Ia5.js → use-common-filters-BGrn7zoW.js} +21904 -21098
  57. package/dist/use-common-filters-DxzCHhgF.cjs +846 -0
  58. package/dist/{widget-composer-C7ZAcFHK.cjs → widget-composer-C24YJEek.cjs} +5 -5
  59. package/dist/{widget-composer-ovIwmgin.js → widget-composer-lBv40CFf.js} +131 -130
  60. package/package.json +7 -7
  61. package/dist/execute-query-CvH_36GC.cjs +0 -1
  62. 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
  63. 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
  64. package/dist/use-common-filters-WTVrWfsY.cjs +0 -845
@@ -1,3 +1,4 @@
1
+ import { MenuItemSection } from '../../index';
1
2
  /**
2
3
  * @internal
3
4
  */
@@ -11,14 +12,14 @@ export interface DashboardHeaderToolbarMenuItem {
11
12
  * @internal
12
13
  */
13
14
  export interface UseDashboardHeaderToolbarProps {
14
- menuItems: DashboardHeaderToolbarMenuItem[];
15
+ menuItemSections: MenuItemSection[];
15
16
  toolbarComponents?: JSX.Element[];
16
17
  }
17
18
  /**
18
19
  * Hook that returns a toolbar element for dashboard header
19
20
  * @internal
20
21
  */
21
- export declare const useDashboardHeaderToolbar: ({ menuItems, toolbarComponents, }: UseDashboardHeaderToolbarProps) => {
22
+ export declare const useDashboardHeaderToolbar: ({ menuItemSections, toolbarComponents, }: UseDashboardHeaderToolbarProps) => {
22
23
  toolbar: () => import("react/jsx-runtime").JSX.Element;
23
24
  };
24
25
  export default useDashboardHeaderToolbar;
@@ -3,4 +3,4 @@ export { Dashboard } from './dashboard';
3
3
  export { useComposedDashboard, useComposedDashboardInternal, type ComposableDashboardProps, type UseComposedDashboardOptions, type ComposedDashboardResult, } from './use-composed-dashboard';
4
4
  export { useDashboardTheme, type DashboardThemeParams } from './use-dashboard-theme';
5
5
  export * from './hooks';
6
- export type { DashboardByIdProps, DashboardProps, DashboardLayoutOptions, DashboardStyleOptions, DashboardConfig, DashboardByIdConfig, WidgetsPanelConfig, EditModeConfig, DashboardFiltersPanelConfig, TabbersConfig, TabberConfig, TabberTabConfig, } from './types';
6
+ export type { DashboardByIdProps, DashboardProps, DashboardLayoutOptions, DashboardStyleOptions, DashboardConfig, DashboardByIdConfig, WidgetsPanelConfig, EditModeConfig, DashboardFiltersPanelConfig, TabbersConfig, TabberConfig, TabberTabConfig, DashboardChangeEvent, DashboardFiltersUpdatedEvent, DashboardFiltersPanelCollapseChangedEvent, DashboardWidgetsPanelLayoutUpdatedEvent, DashboardWidgetsPanelIsEditingChangedEvent, DashboardWidgetsDeletedEvent, } from './types';
@@ -1,12 +1,81 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { DataSource, Filter, FilterRelations } from '@sisense/sdk-data';
3
- import { DashboardChangeAction } from '../dashboard/dashboard';
4
3
  import { TabbersConfig } from '../dashboard/hooks/use-tabber';
5
4
  import { FiltersPanelConfig } from '../filters/components/filters-panel/types';
6
5
  import { DashboardStyleOptions, WidgetsOptions, WidgetsPanelLayout } from '../models';
7
6
  import { WidgetProps } from '../props';
8
7
  export type { DashboardStyleOptions, WidgetsPanelColumnLayout, WidgetsPanelLayout, WidgetsPanelCell, WidgetsPanelRow, WidgetsPanelColumn, } from '../models';
9
8
  export type { TabbersConfig, TabberConfig, TabberTabConfig } from '../dashboard/hooks/use-tabber';
9
+ /**
10
+ * Event triggered when dashboard filters are updated.
11
+ */
12
+ export interface DashboardFiltersUpdatedEvent {
13
+ /** Event type */
14
+ type: 'filters/updated';
15
+ /** New filters or filter relations after the update*/
16
+ payload: Filter[] | FilterRelations;
17
+ }
18
+ /**
19
+ * Event triggered when the filters panel collapsed state changes.
20
+ */
21
+ export interface DashboardFiltersPanelCollapseChangedEvent {
22
+ /** Event type */
23
+ type: 'filtersPanel/collapse/changed';
24
+ /** Is the filters panel collapsed? */
25
+ payload: boolean;
26
+ }
27
+ /**
28
+ * Event triggered when the widgets panel layout is updated.
29
+ *
30
+ * @remarks
31
+ * When `config.widgetsPanel.editMode.applyChangesAsBatch.enabled` is `true` (default),
32
+ * this event is only triggered when the user applies changes (clicks "Apply"),
33
+ * not during the editing process. When `false`, this event is triggered immediately
34
+ * after each layout change.
35
+ */
36
+ export interface DashboardWidgetsPanelLayoutUpdatedEvent {
37
+ /** Event type */
38
+ type: 'widgetsPanel/layout/updated';
39
+ /** The new widgets panel layout */
40
+ payload: WidgetsPanelLayout;
41
+ }
42
+ /**
43
+ * Event triggered when the edit mode state changes.
44
+ */
45
+ export interface DashboardWidgetsPanelIsEditingChangedEvent {
46
+ /** Event type */
47
+ type: 'widgetsPanel/editMode/isEditing/changed';
48
+ /** Is the widgets panel layout in editing state? */
49
+ payload: boolean;
50
+ }
51
+ /**
52
+ * Event triggered when widgets are deleted from the dashboard.
53
+ *
54
+ * @remarks
55
+ * When `config.widgetsPanel.editMode.applyChangesAsBatch.enabled` is `true` (default),
56
+ * this event is only triggered when the user applies changes (clicks "Apply"),
57
+ * not during the editing process. When `false`, this event is triggered immediately
58
+ * after widgets are deleted.
59
+ */
60
+ export interface DashboardWidgetsDeletedEvent {
61
+ /**
62
+ * Event type */
63
+ type: 'widgets/deleted';
64
+ /** The oids of the widgets deleted */
65
+ payload: string[];
66
+ }
67
+ /**
68
+ * Events that can be triggered by the Dashboard component
69
+ *
70
+ * @example
71
+ *
72
+ * Example of a filters update event:
73
+ *
74
+ * ```ts
75
+ * { type: 'filters/updated', payload: filters }
76
+ * ```
77
+ */
78
+ export type DashboardChangeEvent = DashboardFiltersUpdatedEvent | DashboardFiltersPanelCollapseChangedEvent | DashboardWidgetsPanelLayoutUpdatedEvent | DashboardWidgetsPanelIsEditingChangedEvent | DashboardWidgetsDeletedEvent;
10
79
  /**
11
80
  * Props of the {@link DashboardById} component.
12
81
  */
@@ -36,7 +105,7 @@ export interface DashboardContainerProps {
36
105
  *
37
106
  * @internal
38
107
  */
39
- onChange?: (action: DashboardChangeAction) => void;
108
+ onChange?: (event: DashboardChangeEvent) => void;
40
109
  }
41
110
  /**
42
111
  * Dashboard filters panel configuration
@@ -233,9 +302,12 @@ export interface DashboardProps {
233
302
  /**
234
303
  * Callback to receive changes
235
304
  *
236
- * @internal
305
+ * This callback is invoked when the dashboard state changes, such as filter updates,
306
+ * layout changes, or widget deletions. See {@link DashboardChangeEvent} for all possible event types.
307
+ *
308
+ * @param event The event that occurred
237
309
  */
238
- onChange?: (action: DashboardChangeAction) => void;
310
+ onChange?: (event: DashboardChangeEvent) => void;
239
311
  }
240
312
  /**
241
313
  * Props for the Dashboard Header component
@@ -1,14 +1,14 @@
1
1
  import { Authenticator } from '@sisense/sdk-rest-client';
2
- import { DashboardChangeAction } from '../../../dashboard/dashboard';
2
+ import { DashboardChangeEvent } from '../../../dashboard/types';
3
3
  import { UseDashboardModelAction } from '../../../models';
4
4
  /**
5
- * Convert a dashboard change action to a use dashboard model action.
5
+ * Convert a dashboard change event to a use dashboard model action.
6
6
  *
7
- * @param action - The dashboard change action to convert
8
- * @returns The useDashboardModel action or null if the action is not supported
7
+ * @param event - The dashboard change event to convert
8
+ * @returns The useDashboardModel action or null if the event is not supported
9
9
  * @internal
10
10
  */
11
- export declare function dashboardChangeActionToUseDashboardModelAction(action: DashboardChangeAction): UseDashboardModelAction | null;
11
+ export declare function dashboardChangeEventToUseDashboardModelAction(event: DashboardChangeEvent): UseDashboardModelAction | null;
12
12
  /**
13
13
  * Check if the persistence is supported and log a warning if it is not.
14
14
  *
@@ -14,6 +14,8 @@ type PivotRenderOptions = {
14
14
  themeSettings: CompleteThemeSettings;
15
15
  /** The size of the pivot table container. */
16
16
  size: ContainerSize | null;
17
+ /** Allow html in pivot table cells */
18
+ allowHtml?: boolean;
17
19
  /** Callback to handle total height change. */
18
20
  onTotalHeightChange?: (totalHeight: number) => void;
19
21
  /** Callback to handle data point click. */
@@ -28,7 +30,7 @@ type PivotRenderOptions = {
28
30
  /**
29
31
  * A hook that renders the pivot table.
30
32
  */
31
- export declare function useRenderPivot({ pivotBuilder, dataOptions, styleOptions, themeSettings, size, onTotalHeightChange, onDataPointClick, onDataPointContextMenu, pageSize, onPageSizeChange, }: PivotRenderOptions): {
33
+ export declare function useRenderPivot({ pivotBuilder, dataOptions, styleOptions, themeSettings, size, allowHtml, onTotalHeightChange, onDataPointClick, onDataPointContextMenu, pageSize, onPageSizeChange, }: PivotRenderOptions): {
32
34
  pivotElement: JSX.Element | null;
33
35
  };
34
36
  export {};
@@ -370,6 +370,8 @@ export declare const translation: {
370
370
  viewMode: string;
371
371
  showFilters: string;
372
372
  hideFilters: string;
373
+ columns: string;
374
+ column: string;
373
375
  };
374
376
  };
375
377
  jumpToDashboard: {
@@ -380,6 +380,8 @@ export declare const resources: {
380
380
  viewMode: string;
381
381
  showFilters: string;
382
382
  hideFilters: string;
383
+ columns: string;
384
+ column: string;
383
385
  };
384
386
  };
385
387
  jumpToDashboard: {
@@ -770,6 +772,8 @@ export declare const resources: {
770
772
  viewMode: string;
771
773
  showFilters: string;
772
774
  hideFilters: string;
775
+ columns: string;
776
+ column: string;
773
777
  };
774
778
  };
775
779
  jumpToDashboard: {
@@ -110,8 +110,7 @@ export type SeriesLabelsTextStyle = Omit<TextStyle, 'pointerEvents' | 'textOverf
110
110
  */
111
111
  color?: 'contrast' | string;
112
112
  };
113
- /** Options that define series labels - titles/names identifying data series in a chart. */
114
- export type SeriesLabels = {
113
+ export type SeriesLabelsBase = {
115
114
  /** Boolean flag that defines if series labels should be shown on the chart */
116
115
  enabled: boolean;
117
116
  /**
@@ -119,41 +118,6 @@ export type SeriesLabels = {
119
118
  * Note that due to a more complex structure, backgrounds, borders and padding will be lost on a rotated data label
120
119
  * */
121
120
  rotation?: number;
122
- /**
123
- * Boolean flag that defines if value should be shown in series labels
124
- * (if not specified, default is determined by chart type)
125
- */
126
- showValue?: boolean;
127
- /**
128
- * Boolean flag that defines if percentage should be shown in series labels
129
- * (only applicable for subtypes that support percentage, like "stacked100")
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;
137
- /**
138
- * Text to be shown before the series labels
139
- */
140
- prefix?: string;
141
- /**
142
- * Text to be shown after the series labels
143
- */
144
- suffix?: string;
145
- /**
146
- * If `true`, series labels appear inside bars/columns instead of at the datapoints. Not applicable for some chart types e.g. line, area
147
- */
148
- alignInside?: boolean;
149
- /**
150
- * The horizontal alignment of the data label compared to the point
151
- */
152
- align?: 'left' | 'center' | 'right';
153
- /**
154
- * The vertical alignment of the data label
155
- */
156
- verticalAlign?: 'top' | 'middle' | 'bottom';
157
121
  /**
158
122
  * Styling for labels text
159
123
  */
@@ -193,11 +157,49 @@ export type SeriesLabels = {
193
157
  */
194
158
  yOffset?: number;
195
159
  /**
196
- * The animation delay time in milliseconds. Set to 0 to render the data labels immediately
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
197
175
  *
198
- * @internal
176
+ * For some chart types, this will only apply when `alignInside` is `true`.
199
177
  */
200
- delay?: number;
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;
201
203
  };
202
204
  /**
203
205
  * Text styling options for total labels.
@@ -529,10 +531,6 @@ export interface BaseStyleOptions extends ReservedStyleOptions {
529
531
  * Configuration for legend - a key that provides information about the data series or colors used in chart
530
532
  * */
531
533
  legend?: LegendOptions;
532
- /**
533
- * Configuration for series labels - titles/names identifying data series in a chart
534
- */
535
- seriesLabels?: SeriesLabels;
536
534
  /** Data limit for series or categories that will be plotted */
537
535
  dataLimits?: DataLimits;
538
536
  /**
@@ -596,6 +594,10 @@ export interface LineStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
596
594
  * - `right` - step occurs after the point
597
595
  */
598
596
  stepPosition?: 'left' | 'center' | 'right';
597
+ /**
598
+ * Configuration for series labels - titles/names identifying data series in a chart
599
+ */
600
+ seriesLabels?: SeriesLabels;
599
601
  }
600
602
  /** Configuration options that define functional style of the various elements of AreaRangeChart */
601
603
  export interface AreaRangeStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
@@ -610,6 +612,10 @@ export interface AreaRangeStyleOptions extends BaseStyleOptions, BaseAxisStyleOp
610
612
  line?: LineOptions;
611
613
  /** Subtype of AreaRangeChart */
612
614
  subtype?: AreaRangeSubtype;
615
+ /**
616
+ * Configuration for series labels - titles/names identifying data series in a chart
617
+ */
618
+ seriesLabels?: SeriesLabels;
613
619
  }
614
620
  /** Configuration options that define functional style of the various elements of AreaChart */
615
621
  export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
@@ -624,6 +630,10 @@ export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
624
630
  line?: LineOptions;
625
631
  /** Subtype of AreaChart*/
626
632
  subtype?: AreaSubtype;
633
+ /**
634
+ * Configuration for series labels - titles/names identifying data series in a chart
635
+ */
636
+ seriesLabels?: SeriesLabels;
627
637
  /**
628
638
  * Configuration for total labels
629
639
  * Only supported for stacked chart subtypes
@@ -634,6 +644,10 @@ export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
634
644
  export interface StackableStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
635
645
  /** Subtype of stackable chart */
636
646
  subtype?: StackableSubtype;
647
+ /**
648
+ * Configuration for series labels - titles/names identifying data series in a chart
649
+ */
650
+ seriesLabels?: SeriesLabels;
637
651
  /**
638
652
  * Configuration for total labels
639
653
  * Only supported for stacked chart subtypes
@@ -679,7 +693,12 @@ export type PiePercentageLabels = {
679
693
  */
680
694
  showDecimals?: boolean;
681
695
  };
682
- export type PieSeriesLabels = Omit<SeriesLabels, 'showPercentage' | 'showPercentDecimals' | 'alignInside' | 'align' | 'verticalAlign'> & {
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;
683
702
  /**
684
703
  * Boolean flag that defines if the category should be shown
685
704
  * @default `true`
@@ -717,21 +736,35 @@ export interface PieStyleOptions extends BaseStyleOptions {
717
736
  */
718
737
  seriesLabels?: PieSeriesLabels;
719
738
  }
739
+ export interface FunnelSeriesLabels extends SeriesLabels {
740
+ /** Boolean flag that defines if category names should be shown in series labels */
741
+ showCategory?: boolean;
742
+ }
720
743
  /** Configuration options that define functional style of the various elements of FunnelChart */
721
- export interface FunnelStyleOptions extends Omit<BaseStyleOptions, 'seriesLabels'> {
744
+ export interface FunnelStyleOptions extends BaseStyleOptions {
722
745
  /** Visual size of the lowest slice (degree of funnel narrowing from highest to lowest slices)*/
723
746
  funnelSize?: FunnelSize;
724
747
  /** Visual type of the lowest slice of FunnelChart */
725
748
  funnelType?: FunnelType;
726
749
  /** Direction of FunnelChart narrowing */
727
750
  funnelDirection?: FunnelDirection;
728
- /** Configuration that defines behavior of data labels on FunnelChart */
751
+ /**
752
+ * Configuration that defines behavior of data labels on FunnelChart
753
+ *
754
+ * @deprecated Use seriesLabels instead
755
+ */
729
756
  labels?: Labels;
730
757
  /** Subtype of FunnelChart*/
731
758
  subtype?: never;
759
+ /** Configuration for series labels */
760
+ seriesLabels?: FunnelSeriesLabels;
732
761
  }
733
762
  /** Configuration options that define functional style of the various elements of PolarChart */
734
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;
735
768
  /** Subtype of PolarChart*/
736
769
  subtype?: PolarSubtype;
737
770
  }
@@ -916,16 +949,21 @@ export interface GaugeIndicatorStyleOptions extends BaseIndicatorStyleOptions {
916
949
  /** Bar height for gauge indicator in ticker mode */
917
950
  tickerBarHeight?: number;
918
951
  }
952
+ export type ScatterSeriesLabels = SeriesLabelsBase & SeriesLabelsAligning;
919
953
  /** Configuration options that define functional style of the various elements of ScatterChart */
920
- export interface ScatterStyleOptions extends Omit<BaseStyleOptions, 'seriesLabels'>, BaseAxisStyleOptions {
954
+ export interface ScatterStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
921
955
  /** Subtype of ScatterChart*/
922
956
  subtype?: never;
923
957
  markerSize?: ScatterMarkerSize;
924
- seriesLabels?: Omit<SeriesLabels, 'showValue' | 'showPercentage' | 'showPercentDecimals'>;
958
+ seriesLabels?: ScatterSeriesLabels;
925
959
  }
960
+ export type TreemapSeriesLabels = (SeriesLabelsBase & SeriesLabelsAligning) | (SeriesLabelsBase & SeriesLabelsAligning)[];
926
961
  /** Configuration options that define functional style of the various elements of TreemapChart */
927
- export interface TreemapStyleOptions extends Omit<BaseStyleOptions, 'seriesLabels'> {
928
- /** Labels options object */
962
+ export interface TreemapStyleOptions extends BaseStyleOptions {
963
+ /**
964
+ * Labels options object
965
+ * @deprecated Please use `seriesLabels` instead
966
+ */
929
967
  labels?: {
930
968
  /** Array with single label options objects (order of items relative to dataOptions.category) */
931
969
  category?: {
@@ -933,6 +971,10 @@ export interface TreemapStyleOptions extends Omit<BaseStyleOptions, 'seriesLabel
933
971
  enabled?: boolean;
934
972
  }[];
935
973
  };
974
+ /**
975
+ * Configuration for series labels - titles/names identifying data series in a chart
976
+ */
977
+ seriesLabels?: TreemapSeriesLabels;
936
978
  /** Tooltip options object */
937
979
  tooltip?: {
938
980
  /** Define mode of data showing */
@@ -940,7 +982,7 @@ export interface TreemapStyleOptions extends Omit<BaseStyleOptions, 'seriesLabel
940
982
  };
941
983
  }
942
984
  /** Configuration options that define functional style of the various elements of the SunburstChart component */
943
- export interface SunburstStyleOptions extends Omit<BaseStyleOptions, 'seriesLabels'> {
985
+ export interface SunburstStyleOptions extends BaseStyleOptions {
944
986
  /** Labels options object */
945
987
  labels?: {
946
988
  /** Array with single label options objects (order of items relative to dataOptions.category) */
@@ -959,6 +1001,10 @@ export interface SunburstStyleOptions extends Omit<BaseStyleOptions, 'seriesLabe
959
1001
  export interface BoxplotStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
960
1002
  /** Subtype of the BoxplotChart component*/
961
1003
  subtype?: BoxplotSubtype;
1004
+ /**
1005
+ * Configuration for series labels - titles/names identifying data series in a chart
1006
+ */
1007
+ seriesLabels?: SeriesLabels;
962
1008
  }
963
1009
  /**
964
1010
  * Type of map to display on the AreamapChart component
@@ -1025,10 +1071,20 @@ export type CalendarHeatmapCellLabels = {
1025
1071
  color?: string | 'contrast';
1026
1072
  };
1027
1073
  };
1074
+ /**
1075
+ * Calendar heatmap chart subtype
1076
+ */
1077
+ export type CalendarHeatmapSubtype = 'calendar-heatmap/split' | 'calendar-heatmap/continuous';
1028
1078
  /**
1029
1079
  * Configuration options that define functional style of the various elements of calendar-heatmap chart
1030
1080
  */
1031
1081
  export interface CalendarHeatmapStyleOptions extends Pick<BaseStyleOptions, 'width' | 'height'> {
1082
+ /**
1083
+ * {@inheritDoc CalendarHeatmapSubtype}
1084
+ *
1085
+ * @default 'calendar-heatmap/split'
1086
+ */
1087
+ subtype?: CalendarHeatmapSubtype;
1032
1088
  /**
1033
1089
  * {@inheritDoc CalendarHeatmapViewType}
1034
1090
  */
@@ -1 +1 @@
1
- "use strict";const a=require("./execute-query-CvH_36GC.cjs");class s extends a.DimensionalElement{constructor(e,r){var i;super((i=e.jaql.title)!==null&&i!==void 0?i:"",r),this.__serializable="JaqlElement",this.expression=e.jaql.dim||e.jaql.formula,this.metadataItem=e,e.jaql.agg?this.aggregation=e.jaql.agg:delete this.aggregation,e.jaql.formula?this.formula=e.jaql.formula:delete this.formula,e.jaql.sort?this.sortType=a.getSortType(e.jaql.sort):delete this.sortType,this.skipValidation=!0}get id(){return this.expression}jaql(e){return e===!0?this.metadataItem.jaql:this.metadataItem}serialize(){const e=super.serialize();return e.metadataItem=this.metadataItem,e.type=this.type,e}}const l={text:a.MetadataTypes.TextAttribute,numeric:a.MetadataTypes.NumericAttribute,datetime:a.MetadataTypes.DateLevel},d=t=>t&&t.__serializable==="JaqlElement";function n(t){var e;return new s(t,(e=l[t.jaql.datatype])!==null&&e!==void 0?e:"numeric")}function o(t){const{jaql:e}=t;if(e.formula)return a.createCalculatedMeasureHelper(e);const r=a.getGranularityFromJaql(e);return"agg"in e&&e.dim&&e.datatype?a.createMeasureHelper({expression:e.dim,dataType:e.datatype,agg:e.agg||"",granularity:r,format:void 0,sort:e.sort,title:e.title,dataSource:e.datasource}):e.dim&&e.datatype?a.createAttributeHelper({expression:e.dim,dataType:e.datatype,granularity:r,sort:e.sort,title:e.title,panel:t.panel,dataSource:e.datasource}):n(t)}const u={jaql:{datasource:{title:"",type:"elasticube"},metadata:[]},queryTitle:"",chartRecommendations:{}},m={model:"",metadata:[],chart:{},queryTitle:""},c=t=>"widgetProps"in t,p=t=>"dashboardOid"in t&&"widgetOid"in t,g=t=>"dashboardProps"in t,y=t=>"dashboardOid"in t;exports.EMPTY_EXPANDED_QUERY_MODEL=u;exports.EMPTY_SIMPLE_QUERY_MODEL=m;exports.JaqlElement=s;exports.createDimensionalElementFromMetadataItem=o;exports.isByIdDashboardCodeParams=y;exports.isByIdWidgetCodeParams=p;exports.isClientSideDashboardCodeParams=g;exports.isClientSideWidgetCodeParams=c;exports.isJaqlElement=d;
1
+ "use strict";const a=require("./execute-query-CNt566O5.cjs");class s extends a.DimensionalElement{constructor(e,r){var i;super((i=e.jaql.title)!==null&&i!==void 0?i:"",r),this.__serializable="JaqlElement",this.expression=e.jaql.dim||e.jaql.formula,this.metadataItem=e,e.jaql.agg?this.aggregation=e.jaql.agg:delete this.aggregation,e.jaql.formula?this.formula=e.jaql.formula:delete this.formula,e.jaql.sort?this.sortType=a.getSortType(e.jaql.sort):delete this.sortType,this.skipValidation=!0}get id(){return this.expression}jaql(e){return e===!0?this.metadataItem.jaql:this.metadataItem}serialize(){const e=super.serialize();return e.metadataItem=this.metadataItem,e.type=this.type,e}}const l={text:a.MetadataTypes.TextAttribute,numeric:a.MetadataTypes.NumericAttribute,datetime:a.MetadataTypes.DateLevel},d=t=>t&&t.__serializable==="JaqlElement";function n(t){var e;return new s(t,(e=l[t.jaql.datatype])!==null&&e!==void 0?e:"numeric")}function o(t){const{jaql:e}=t;if(e.formula)return a.createCalculatedMeasureHelper(e);const r=a.getGranularityFromJaql(e);return"agg"in e&&e.dim&&e.datatype?a.createMeasureHelper({expression:e.dim,dataType:e.datatype,agg:e.agg||"",granularity:r,format:void 0,sort:e.sort,title:e.title,dataSource:e.datasource}):e.dim&&e.datatype?a.createAttributeHelper({expression:e.dim,dataType:e.datatype,granularity:r,sort:e.sort,title:e.title,panel:t.panel,dataSource:e.datasource}):n(t)}const u={jaql:{datasource:{title:"",type:"elasticube"},metadata:[]},queryTitle:"",chartRecommendations:{}},m={model:"",metadata:[],chart:{},queryTitle:""},c=t=>"widgetProps"in t,p=t=>"dashboardOid"in t&&"widgetOid"in t,g=t=>"dashboardProps"in t,y=t=>"dashboardOid"in t;exports.EMPTY_EXPANDED_QUERY_MODEL=u;exports.EMPTY_SIMPLE_QUERY_MODEL=m;exports.JaqlElement=s;exports.createDimensionalElementFromMetadataItem=o;exports.isByIdDashboardCodeParams=y;exports.isByIdWidgetCodeParams=p;exports.isClientSideDashboardCodeParams=g;exports.isClientSideWidgetCodeParams=c;exports.isJaqlElement=d;
@@ -1,4 +1,4 @@
1
- import { f as i, g as l, h as n, i as o, D as d, k as u, M as s } from "./execute-query-JhI9RXe_.js";
1
+ import { f as i, g as l, h as n, i as o, D as d, k as u, M as s } from "./execute-query-DyjkDYHG.js";
2
2
  class m extends d {
3
3
  constructor(e, t) {
4
4
  var r;