@sisense/sdk-ui 1.11.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/ai/api/chat-rest-api.d.ts +3 -4
  2. package/dist/ai/api/hooks.d.ts +2 -2
  3. package/dist/ai/api/types.d.ts +2 -16
  4. package/dist/ai/buttons/scroll-to-bottom-button.d.ts +3 -0
  5. package/dist/ai/buttons/thumbs-down-button.d.ts +2 -1
  6. package/dist/ai/buttons/thumbs-up-button.d.ts +2 -1
  7. package/dist/ai/chat-config.d.ts +18 -0
  8. package/dist/ai/chat-dropup.d.ts +2 -1
  9. package/dist/ai/chat-input.d.ts +3 -1
  10. package/dist/ai/common/constants.d.ts +1 -0
  11. package/dist/ai/common/icon-button.d.ts +2 -3
  12. package/dist/ai/common/tooltip.d.ts +2 -2
  13. package/dist/ai/data-topics/data-topic-list.d.ts +0 -1
  14. package/dist/ai/icons/light-bulb-icon.d.ts +1 -3
  15. package/dist/ai/icons/scroll-to-bottom-icon.d.ts +1 -0
  16. package/dist/ai/index.d.ts +1 -0
  17. package/dist/ai/messages/clickable-message.d.ts +2 -1
  18. package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
  19. package/dist/ai/messages/text-message.d.ts +5 -0
  20. package/dist/ai/scroll-to-bottom.d.ts +7 -0
  21. package/dist/ai/use-last-nlq-response.d.ts +19 -0
  22. package/dist/ai.cjs +471 -0
  23. package/dist/ai.js +1143 -1228
  24. package/dist/api/types/dashboard-dto.d.ts +2 -1
  25. package/dist/app/client-application.d.ts +1 -0
  26. package/dist/chart/helpers/use-chart-renderer-props.d.ts +1 -0
  27. package/dist/chart/helpers/use-synced-data.d.ts +1 -1
  28. package/dist/chart-options-processor/chart-options-service.d.ts +4 -0
  29. package/dist/chart-options-processor/subtype-to-design-options.d.ts +13 -1
  30. package/dist/chart-options-processor/translations/funnel-plot-options.d.ts +2 -1
  31. package/dist/chart-options-processor/translations/pie-plot-options.d.ts +2 -1
  32. package/dist/chart-options-processor/translations/tooltip-utils.d.ts +2 -0
  33. package/dist/common/components/loading-indicator.d.ts +17 -4
  34. package/dist/common/components/loading-overlay.d.ts +1 -0
  35. package/dist/common/hooks/use-fetch.d.ts +1 -1
  36. package/dist/common/hooks/use-has-changed.d.ts +9 -0
  37. package/dist/common/hooks/use-should-load.d.ts +12 -0
  38. package/dist/common-filters/common-filters-connector.d.ts +9 -0
  39. package/dist/common-filters/selection-utils.d.ts +11 -0
  40. package/dist/common-filters/types.d.ts +14 -0
  41. package/dist/common-filters/use-common-filters.d.ts +13 -0
  42. package/dist/common-filters/utils.d.ts +9 -0
  43. package/dist/common-filters/widget-header-clear-selection-button.d.ts +3 -0
  44. package/dist/dashboard/components/content-panel.d.ts +41 -0
  45. package/dist/dashboard/components/dashboard-container.d.ts +2 -0
  46. package/dist/dashboard/components/dashboard-header.d.ts +2 -0
  47. package/dist/dashboard/components/plugin-service.d.ts +21 -0
  48. package/dist/dashboard/constants.d.ts +2 -0
  49. package/dist/dashboard/dashboard-by-id.d.ts +7 -0
  50. package/dist/dashboard/dashboard.d.ts +8 -0
  51. package/dist/dashboard/types.d.ts +44 -0
  52. package/dist/dashboard/utils.d.ts +2 -0
  53. package/dist/dashboard-widget/translate-dashboard-filters.d.ts +4772 -2
  54. package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
  55. package/dist/dashboard-widget/translate-widget-filters.d.ts +200 -37
  56. package/dist/dashboard-widget/types.d.ts +1 -0
  57. package/dist/dashboard-widget/utils.d.ts +3 -1
  58. package/dist/dynamic-size-container/dynamic-size-container.d.ts +8 -0
  59. package/dist/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +25 -0
  60. package/dist/filters/components/cascading-filter-tile/cascading-level-filter.d.ts +21 -0
  61. package/dist/filters/components/cascading-filter-tile/index.d.ts +1 -0
  62. package/dist/filters/components/common/date-range-field-button.d.ts +3 -6
  63. package/dist/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +2 -2
  64. package/dist/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +6 -0
  65. package/dist/filters/components/custom-filter-tile.d.ts +43 -0
  66. package/dist/filters/components/date-filter/date-filter/date-filter.d.ts +15 -0
  67. package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-display.d.ts +6 -0
  68. package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +12 -0
  69. package/dist/filters/components/date-filter/date-range-filter-tile/editable-date-range-filter.d.ts +14 -0
  70. package/dist/filters/components/date-filter/date-range-filter-tile/use-date-limits.d.ts +1 -2
  71. package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +8 -2
  72. package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +4 -4
  73. package/dist/filters/components/filter-tile.d.ts +21 -1
  74. package/dist/filters/components/filters-panel/filters-panel-tile.d.ts +4 -2
  75. package/dist/filters/components/filters-panel/filters-panel.d.ts +4 -2
  76. package/dist/filters/components/icons/arrow-icon.d.ts +6 -0
  77. package/dist/filters/components/icons/double-arrow-icon.d.ts +6 -0
  78. package/dist/filters/components/member-filter-tile/member-filter-tile.d.ts +4 -1
  79. package/dist/filters/components/member-filter-tile/member-list.d.ts +1 -1
  80. package/dist/filters/hooks/use-synchronized-filter.d.ts +12 -0
  81. package/dist/filters/index.d.ts +2 -0
  82. package/dist/filters/utils.d.ts +7 -0
  83. package/dist/highcharts-memorized.d.ts +1 -1
  84. package/dist/index.cjs +830 -0
  85. package/dist/index.d.ts +2 -0
  86. package/dist/index.js +25012 -20426
  87. package/dist/models/dashboard/dashboard-model.d.ts +66 -0
  88. package/dist/models/dashboard/get-dashboard-model.d.ts +3 -1
  89. package/dist/models/dashboard/get-dashboard-models.d.ts +2 -1
  90. package/dist/models/dashboard/index.d.ts +1 -1
  91. package/dist/models/dashboard/translate-dashboard-utils.d.ts +7 -0
  92. package/dist/models/dashboard/types.d.ts +5 -14
  93. package/dist/models/dashboard/use-get-dashboard-model.d.ts +1 -1
  94. package/dist/models/dashboard/use-get-dashboard-models.d.ts +1 -1
  95. package/dist/models/widget/get-widget-model.d.ts +2 -1
  96. package/dist/models/widget/translate-widget.d.ts +5 -2
  97. package/dist/models/widget/types.d.ts +9 -0
  98. package/dist/models/widget/widget-model.d.ts +31 -1
  99. package/dist/query/query-result-date-formatting.d.ts +1 -0
  100. package/dist/query-execution/query-params-comparator.d.ts +1 -7
  101. package/dist/query-execution/use-execute-pivot-query.d.ts +2 -5
  102. package/dist/query-execution/use-execute-query-by-widget-id.d.ts +3 -4
  103. package/dist/translation/resources/en.d.ts +5 -0
  104. package/dist/translation/resources/index.d.ts +10 -0
  105. package/dist/types.d.ts +40 -13
  106. package/dist/useQuery-C8plkncQ.cjs +603 -0
  107. package/dist/{debounce-BbwkW3DX.js → useQuery-D5W0RM1R.js} +21443 -21103
  108. package/dist/utils/create-cache.d.ts +0 -1
  109. package/dist/utils/utility-types.d.ts +1 -0
  110. package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
  111. package/package.json +12 -8
  112. package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +0 -2
  113. package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +0 -2
  114. package/dist/ai/messages/clear-history-success-message.d.ts +0 -1
  115. package/dist/filters/components/icons/arrow-right-icon.d.ts +0 -2
  116. package/dist/filters/components/icons/double-arrow-right-icon.d.ts +0 -2
  117. package/dist/models/dashboard/translate-dashboard.d.ts +0 -4
@@ -0,0 +1,66 @@
1
+ import { DataSource, Filter } from '@sisense/sdk-data';
2
+ import { Layout, WidgetModel } from '../../models';
3
+ import type { DashboardDto } from '../../api/types/dashboard-dto';
4
+ import { DashboardProps } from '../../dashboard/types';
5
+ import { type WidgetFilterOptions } from './types';
6
+ import { CompleteThemeSettings } from '../../types';
7
+ /**
8
+ * Model of Sisense dashboard defined in the abstractions of Compose SDK.
9
+ *
10
+ * @group Fusion Embed
11
+ * @fusionEmbed
12
+ */
13
+ export declare class DashboardModel {
14
+ /**
15
+ * Unique identifier of the dashboard.
16
+ */
17
+ oid: string;
18
+ /**
19
+ * Dashboard title.
20
+ */
21
+ title: string;
22
+ /**
23
+ * Dashboard data source details.
24
+ */
25
+ dataSource: DataSource;
26
+ /**
27
+ * Dashboard widgets.
28
+ */
29
+ widgets: WidgetModel[];
30
+ /**
31
+ * Dashboard layout.
32
+ *
33
+ * @internal
34
+ */
35
+ layout: Layout;
36
+ /**
37
+ * Dashboard filters.
38
+ *
39
+ * @internal
40
+ */
41
+ filters: Filter[];
42
+ /**
43
+ * Dashboard filters options per each widget.
44
+ *
45
+ * @internal
46
+ */
47
+ widgetFilterOptions: WidgetFilterOptions;
48
+ /**
49
+ * Creates a new dashboard model.
50
+ *
51
+ * @param dashboardDto - The widget DTO to be converted to a widget model
52
+ * @param themeSettings - Optional theme settings
53
+ * @internal
54
+ */
55
+ constructor(dashboardDto: DashboardDto, themeSettings?: CompleteThemeSettings);
56
+ /**
57
+ * Returns the props to be used for rendering a dashboard.
58
+ *
59
+ * @example
60
+ * ```tsx
61
+ * <Dashboard {...dashboard.getDashboardProps()} />
62
+ * ```
63
+ * @internal
64
+ */
65
+ getDashboardProps(): DashboardProps;
66
+ }
@@ -1,4 +1,6 @@
1
1
  import { HttpClient } from '@sisense/sdk-rest-client';
2
+ import { DashboardModel } from '../../models/dashboard/dashboard-model';
3
+ import { CompleteThemeSettings } from '../../types';
2
4
  export interface GetDashboardModelOptions {
3
5
  /**
4
6
  * Boolean flag whether to include widgets in the dashboard model
@@ -16,4 +18,4 @@ export interface GetDashboardModelOptions {
16
18
  includeFilters?: boolean;
17
19
  }
18
20
  /** @internal */
19
- export declare function getDashboardModel(http: HttpClient, dashboardOid: string, options?: GetDashboardModelOptions): Promise<import("./types").DashboardModel>;
21
+ export declare function getDashboardModel(http: HttpClient, dashboardOid: string, options?: GetDashboardModelOptions, themeSettings?: CompleteThemeSettings): Promise<DashboardModel>;
@@ -1,4 +1,5 @@
1
1
  import { HttpClient } from '@sisense/sdk-rest-client';
2
+ import { DashboardModel } from '../../models/dashboard/dashboard-model';
2
3
  export interface GetDashboardModelsOptions {
3
4
  /**
4
5
  * Dashboard title to search by
@@ -12,4 +13,4 @@ export interface GetDashboardModelsOptions {
12
13
  includeWidgets?: boolean;
13
14
  }
14
15
  /** @internal */
15
- export declare function getDashboardModels(http: HttpClient, options?: GetDashboardModelsOptions): Promise<import("./types.js").DashboardModel[]>;
16
+ export declare function getDashboardModels(http: HttpClient, options?: GetDashboardModelsOptions): Promise<DashboardModel[]>;
@@ -1,6 +1,6 @@
1
1
  export * from './types';
2
2
  export * from './get-dashboard-model';
3
3
  export * from './get-dashboard-models';
4
- export * from './translate-dashboard';
5
4
  export * from './use-get-dashboard-model';
6
5
  export * from './use-get-dashboard-models';
6
+ export * from './dashboard-model';
@@ -0,0 +1,7 @@
1
+ import { type Layout as SisenseLayout, type FilterDto, type CascadingFilterDto } from '../../api/types/dashboard-dto';
2
+ import type { Layout, WidgetFilterOptions } from './types';
3
+ import { Filter } from '@sisense/sdk-data';
4
+ import { WidgetDto } from '../../dashboard-widget/types';
5
+ export declare const translateLayout: (layout: SisenseLayout) => Layout;
6
+ export declare function extractDashboardFilters(dashboardFilters: Array<FilterDto | CascadingFilterDto>): Filter[];
7
+ export declare function translateWidgetFilterOptions(widgets?: WidgetDto[]): WidgetFilterOptions;
@@ -1,11 +1,10 @@
1
- import { type DataSource, Filter } from '@sisense/sdk-data';
2
- import { WidgetModel } from '../widget/widget-model';
1
+ import { CommonFiltersOptions } from '../../common-filters/types';
3
2
  /** @internal */
4
3
  export interface Layout {
5
4
  columns: {
6
5
  widthPercentage: number;
7
- cells: {
8
- subcells: {
6
+ rows: {
7
+ cells: {
9
8
  widthPercentage: number;
10
9
  height: number | string;
11
10
  widgetId: string;
@@ -13,13 +12,5 @@ export interface Layout {
13
12
  }[];
14
13
  }[];
15
14
  }
16
- export type DashboardModel = {
17
- oid: string;
18
- title: string;
19
- dataSource: DataSource;
20
- widgets?: WidgetModel[];
21
- /** @internal */
22
- layout?: Layout;
23
- /** @internal */
24
- filters?: Filter[];
25
- };
15
+ /** @internal */
16
+ export type WidgetFilterOptions = Record<string, CommonFiltersOptions>;
@@ -1,5 +1,5 @@
1
1
  import { DataState } from '../../common/hooks/data-load-state-reducer';
2
- import { type DashboardModel } from './types';
2
+ import { DashboardModel } from './dashboard-model';
3
3
  import { GetDashboardModelOptions } from './get-dashboard-model';
4
4
  import { HookEnableParam } from '../../common/hooks/types';
5
5
  /**
@@ -1,7 +1,7 @@
1
1
  import { DataState } from '../../common/hooks/data-load-state-reducer.js';
2
- import { type DashboardModel } from './types.js';
3
2
  import { HookEnableParam } from '../../common/hooks/types.js';
4
3
  import { GetDashboardModelsOptions } from './get-dashboard-models.js';
4
+ import { DashboardModel } from '../../models';
5
5
  /**
6
6
  * Parameters for {@link useGetDashboardModels} hook.
7
7
  */
@@ -1,4 +1,5 @@
1
1
  import { HttpClient } from '@sisense/sdk-rest-client';
2
2
  import { WidgetModel } from './widget-model';
3
+ import { CompleteThemeSettings } from '../../types';
3
4
  /** @internal */
4
- export declare function getWidgetModel(httpClient: HttpClient, dashboardOid: string, widgetOid: string): Promise<WidgetModel>;
5
+ export declare function getWidgetModel(httpClient: HttpClient, dashboardOid: string, widgetOid: string, themeSettings?: CompleteThemeSettings): Promise<WidgetModel>;
@@ -1,3 +1,6 @@
1
- import { WidgetDto } from '../../dashboard-widget/types';
1
+ import { CompleteThemeSettings } from '../../types';
2
+ import { WidgetDto, WidgetType } from '../../dashboard-widget/types';
3
+ import { WidgetTypeInternal } from './types';
2
4
  import { WidgetModel } from './widget-model';
3
- export declare function translateWidget(widget: WidgetDto): WidgetModel;
5
+ export declare function translateWidget(widget: WidgetDto, themeSettings?: CompleteThemeSettings): WidgetModel;
6
+ export declare function translateWidgetType(widgetType: WidgetType): WidgetTypeInternal;
@@ -0,0 +1,9 @@
1
+ import { ChartType } from '../../index';
2
+ /**
3
+ * Widget type
4
+ *
5
+ * todo: as a future refactoring need to replace existing `WidgetType` by current one
6
+ *
7
+ * @internal
8
+ */
9
+ export type WidgetTypeInternal = ChartType | 'pivot' | 'plugin';
@@ -3,7 +3,7 @@ import { ChartDataOptions, PivotTableDataOptions } from '../../chart-data-option
3
3
  import { Panel, WidgetDto, WidgetType } from '../../dashboard-widget/types';
4
4
  import { ChartProps, ChartWidgetProps, PivotTableProps, TableProps, TableWidgetProps, PivotTableWidgetProps } from '../../props';
5
5
  import { ExecutePivotQueryParams, ExecuteQueryParams } from '../../query-execution';
6
- import { ChartType, DrilldownOptions, ChartStyleOptions, TableStyleOptions, CompleteThemeSettings } from '../../types';
6
+ import { ChartType, DrilldownOptions, ChartStyleOptions, TableStyleOptions, CompleteThemeSettings, RenderToolbarHandler } from '../../types';
7
7
  /**
8
8
  * Widget data options.
9
9
  */
@@ -65,6 +65,18 @@ export declare class WidgetModel {
65
65
  * Widget drilldown options.
66
66
  */
67
67
  drilldownOptions: DrilldownOptions;
68
+ /**
69
+ * "onDataPointClick" handler for the constructed component
70
+ *
71
+ * @internal
72
+ */
73
+ componentDataPointClickHandler?: ChartProps['onDataPointClick'];
74
+ /**
75
+ * "onDataPointsSelected" handler for the constructed component
76
+ *
77
+ * @internal
78
+ */
79
+ componentDataPointsSelectedHandler?: ChartProps['onDataPointsSelected'];
68
80
  /**
69
81
  * Creates a new widget model.
70
82
  *
@@ -174,4 +186,22 @@ export declare class WidgetModel {
174
186
  * @internal
175
187
  */
176
188
  getPivotTableWidgetProps(): PivotTableWidgetProps;
189
+ /**
190
+ * Registers new "onDataPointClick" handler for the constructed component
191
+ *
192
+ * @internal
193
+ */
194
+ registerComponentDataPointClickHandler?(handler: NonNullable<ChartProps['onDataPointClick']>): void;
195
+ /**
196
+ * Registers new "onDataPointsSelected" handler for the constructed component
197
+ *
198
+ * @internal
199
+ */
200
+ registerComponentDataPointsSelectedHandler?(handler: NonNullable<ChartProps['onDataPointsSelected']>): void;
201
+ /**
202
+ * Registers new "renderToolbar" handler for the constructed component
203
+ *
204
+ * @internal
205
+ */
206
+ registerComponentRenderToolbarHandler?(handler: RenderToolbarHandler): void;
177
207
  }
@@ -1,4 +1,5 @@
1
1
  import { Data } from '@sisense/sdk-data';
2
2
  import type { DateConfig } from './date-formats';
3
3
  import type { QueryResultData } from '@sisense/sdk-data';
4
+ export declare function parseISOWithDefaultUTCOffset(dateString: string): Date;
4
5
  export declare function applyDateFormats(data: QueryResultData | Data, chartDataOptions: any, locale?: Locale, dateConfig?: DateConfig): QueryResultData | Data;
@@ -1,8 +1,2 @@
1
1
  import { ExecuteQueryParams } from '../index.js';
2
- /**
3
- * Checks if the query parameters have changed by deep comparison.
4
- *
5
- * @param prevParams - Previous query parameters
6
- * @param newParams - New query parameters
7
- */
8
- export declare function isQueryParamsChanged(prevParams: ExecuteQueryParams | undefined, newParams: ExecuteQueryParams): boolean;
2
+ export declare function useQueryParamsChanged(params: ExecuteQueryParams): boolean;
@@ -29,9 +29,6 @@ export declare function useExecutePivotQueryInternal(params: ExecutePivotQueryPa
29
29
  /**
30
30
  * Checks if the query parameters have changed by deep comparison.
31
31
  *
32
- * TODO refactor to reuse isQueryParamsChanged
33
- *
34
- * @param prevParams - Previous query parameters
35
- * @param newParams - New query parameters
32
+ * @param params - New query parameters
36
33
  */
37
- export declare function isPivotQueryParamsChanged(prevParams: ExecutePivotQueryParams | undefined, newParams: ExecutePivotQueryParams): boolean;
34
+ export declare function usePivotQueryParamsChanged(params: ExecutePivotQueryParams): boolean;
@@ -39,12 +39,11 @@ export declare const useExecuteQueryByWidgetId: (params: ExecuteQueryByWidgetIdP
39
39
  */
40
40
  export declare function useExecuteQueryByWidgetIdInternal(params: ExecuteQueryByWidgetIdParams): QueryByWidgetIdState;
41
41
  /**
42
- * Checks if the parameters have changed by deep comparison.
42
+ * Checks if the query parameters have changed by deep comparison.
43
43
  *
44
- * @param prevParams - Previous query parameters
45
- * @param newParams - New query parameters
44
+ * @param params - New query parameters
46
45
  */
47
- export declare function isParamsChanged(prevParams: ExecuteQueryByWidgetIdParams | undefined, newParams: ExecuteQueryByWidgetIdParams): boolean;
46
+ export declare function useParamsChanged(params: ExecuteQueryByWidgetIdParams): boolean;
48
47
  /** @internal */
49
48
  export declare function executeQueryByWidgetId({ widgetOid, dashboardOid, filters, highlights, filtersMergeStrategy, count, offset, includeDashboardFilters, app, onBeforeQuery, }: ExecuteQueryByWidgetIdParams & {
50
49
  app: ClientApplication;
@@ -35,6 +35,7 @@ export declare const translation: {
35
35
  };
36
36
  unknownFilterInFilterRelations: string;
37
37
  filterRelationsNotSupported: string;
38
+ invalidFilterType: string;
38
39
  };
39
40
  errorBoxText: string;
40
41
  chartNoData: string;
@@ -95,5 +96,9 @@ export declare const translation: {
95
96
  title: string;
96
97
  message: string;
97
98
  };
99
+ commonFilter: {
100
+ clearSelectionButton: string;
101
+ };
102
+ customFilterTileMessage: string;
98
103
  };
99
104
  export type TranslationDictionary = typeof translation;
@@ -39,6 +39,7 @@ export declare const resources: {
39
39
  };
40
40
  unknownFilterInFilterRelations: string;
41
41
  filterRelationsNotSupported: string;
42
+ invalidFilterType: string;
42
43
  };
43
44
  errorBoxText: string;
44
45
  chartNoData: string;
@@ -99,6 +100,10 @@ export declare const resources: {
99
100
  title: string;
100
101
  message: string;
101
102
  };
103
+ commonFilter: {
104
+ clearSelectionButton: string;
105
+ };
106
+ customFilterTileMessage: string;
102
107
  };
103
108
  uk: {
104
109
  errors: {
@@ -137,6 +142,7 @@ export declare const resources: {
137
142
  };
138
143
  unknownFilterInFilterRelations: string;
139
144
  filterRelationsNotSupported: string;
145
+ invalidFilterType: string;
140
146
  };
141
147
  errorBoxText: string;
142
148
  chartNoData: string;
@@ -197,5 +203,9 @@ export declare const resources: {
197
203
  title: string;
198
204
  message: string;
199
205
  };
206
+ commonFilter: {
207
+ clearSelectionButton: string;
208
+ };
209
+ customFilterTileMessage: string;
200
210
  };
201
211
  };
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { Attribute, MembersFilter } from '@sisense/sdk-data';
3
3
  import { DeepRequired } from 'ts-essentials';
4
- import { AreaSubtype, BoxplotSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype } from './chart-options-processor/subtype-to-design-options';
4
+ import { AreaSubtype, BoxplotSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, AreaRangeSubtype } from './chart-options-processor/subtype-to-design-options';
5
5
  import { IndicatorComponents, TableColorOptions } from './chart-options-processor/translations/design-options';
6
6
  import { FunnelDirection, FunnelSize, FunnelType } from './chart-options-processor/translations/funnel-plot-options';
7
7
  import { ScatterMarkerSize } from './chart-options-processor/translations/scatter-plot-options';
@@ -15,7 +15,7 @@ export type { AppConfig } from './app/client-application';
15
15
  export type { DateConfig } from './query/date-formats';
16
16
  export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
17
17
  export type { DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, } from './chart-data/data-coloring/types';
18
- export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, TableChartType, AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, Coordinates, RangeChartType, TableColorOptions, };
18
+ 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, };
19
19
  export type { MonthOfYear, DayOfWeek, DateLevel } from './query/date-formats/apply-date-format';
20
20
  /**
21
21
  * @internal
@@ -215,7 +215,10 @@ export interface LineStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
215
215
  }
216
216
  /** Configuration options that define functional style of the various elements of AreaRangeChart */
217
217
  export interface AreaRangeStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
218
+ /** Configuration that defines line width */
218
219
  lineWidth?: LineWidth;
220
+ /** Subtype of AreaRangeChart */
221
+ subtype?: AreaRangeSubtype;
219
222
  }
220
223
  /** Configuration options that define functional style of the various elements of AreaChart */
221
224
  export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
@@ -656,8 +659,6 @@ export interface ThemeSettings {
656
659
  };
657
660
  /**
658
661
  * Theme settings specific to the AI Chatbot component
659
- *
660
- * @internal
661
662
  */
662
663
  aiChat?: {
663
664
  /** Background color of the chatbot */
@@ -766,10 +767,10 @@ export interface ThemeSettings {
766
767
  borderRadius?: string;
767
768
  /** Setting to be applied on hover */
768
769
  hover?: {
769
- /** Background color of the chatbot suggestions on hover */
770
- backgroundColor?: string;
771
770
  /** Text color of the chatbot suggestions on hover */
772
771
  textColor?: string;
772
+ /** Background color of the chatbot suggestions on hover */
773
+ backgroundColor?: string;
773
774
  };
774
775
  /** 2-color gradient to be applied on suggestions loading animation */
775
776
  loadingGradient?: [string, string];
@@ -778,12 +779,14 @@ export interface ThemeSettings {
778
779
  };
779
780
  /** Settings for the chatbot clickable messages */
780
781
  clickableMessages?: {
781
- /** Background color of the chatbot clickable messages */
782
- backgroundColor?: string;
783
782
  /** Text color of the chatbot clickable messages */
784
783
  textColor?: string;
784
+ /** Background color of the chatbot clickable messages */
785
+ backgroundColor?: string;
785
786
  /** Border of the chatbot clickable messages */
786
787
  border?: false | string;
788
+ /** 2-color gradient to be applied on the border */
789
+ borderGradient?: [string, string] | null;
787
790
  /** Setting to be applied on hover */
788
791
  hover?: {
789
792
  /** Text color of the chatbot clickable messages on hover */
@@ -792,16 +795,37 @@ export interface ThemeSettings {
792
795
  backgroundColor?: string;
793
796
  };
794
797
  };
798
+ /** Settings for the data topics screen */
799
+ dataTopics?: {
800
+ /** Background color of the data topics screen */
801
+ backgroundColor?: string;
802
+ /** Settings for the individual data topic items */
803
+ items?: {
804
+ /** Text color of the data topic items */
805
+ textColor?: string;
806
+ /** Background color of the data topic items */
807
+ backgroundColor?: string;
808
+ };
809
+ };
795
810
  /** Settings for the chatbot icons */
796
811
  icons?: {
797
812
  /** Color of the chatbot icons */
798
813
  color?: string;
799
- /** Setting to be applied on hover */
800
- hover?: {
801
- /** Color of the chatbot icons on hover */
802
- color?: string;
814
+ /** Settings for feedback icons */
815
+ feedbackIcons?: {
816
+ /** Background color of the feedback icons on hover */
817
+ hoverColor?: string;
803
818
  };
804
819
  };
820
+ /** Settings for the chatbot tooltips */
821
+ tooltips?: {
822
+ /** Background color of the tooltips */
823
+ backgroundColor?: string;
824
+ /** Text color of the tooltips */
825
+ textColor?: string;
826
+ /** Box shadow of the tooltips */
827
+ boxShadow?: string;
828
+ };
805
829
  };
806
830
  }
807
831
  /**
@@ -851,9 +875,11 @@ export interface WidgetStyleOptions {
851
875
  *
852
876
  * @internal
853
877
  */
854
- renderToolbar?: (onRefresh: () => void) => JSX.Element | null;
878
+ renderToolbar?: RenderToolbarHandler;
855
879
  };
856
880
  }
881
+ /** @internal */
882
+ export type RenderToolbarHandler = (onRefresh: () => void, defaultToolbar: JSX.Element) => JSX.Element | null;
857
883
  /** Style settings defining the look and feel of DashboardWidget */
858
884
  export interface DashboardWidgetStyleOptions extends WidgetStyleOptions {
859
885
  /**
@@ -1031,6 +1057,7 @@ export type Series = {
1031
1057
  export type HighchartsPoint = {
1032
1058
  category: string;
1033
1059
  name?: string;
1060
+ state?: string;
1034
1061
  options: {
1035
1062
  name: string;
1036
1063
  custom: {