@sisense/sdk-ui 2.27.0 → 2.28.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 +1 -1
- package/dist/ai.js +5 -5
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +1322 -1021
- package/dist/analytics-composer.cjs +73 -73
- package/dist/analytics-composer.js +22 -17
- package/dist/{apply-styled-options-to-query-k10gkPCG.cjs → apply-styled-options-to-query-23D9br-S.cjs} +1 -1
- package/dist/{apply-styled-options-to-query-BzMAmDnD.js → apply-styled-options-to-query-BagjzMqm.js} +835 -822
- package/dist/{dimensions-C3WSSE5j.js → dimensions-Bn1EaWiP.js} +1 -1
- package/dist/{dimensions-huCJK0y6.cjs → dimensions-D8r34WRI.cjs} +1 -1
- package/dist/{index-D7mHzfx0.js → index-C77YCBVd.js} +4 -1
- package/dist/{index-BX9p-XrU.cjs → index-C9G8giSk.cjs} +1 -1
- package/dist/index.cjs +298 -298
- package/dist/index.js +11807 -11687
- package/dist/index.umd.js +663 -664
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/const.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/dashboard-model-translator.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-model.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-models.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-excel-download.d.ts +23 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/excel-export/build-jaql-excel-export.d.ts +48 -0
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/excel-export/build-xlsx-export-payload.d.ts +33 -0
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/excel-query-state-reducer.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/use-excel-query-params-changed.d.ts +8 -0
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/use-execute-excel-query.d.ts +8 -0
- package/dist/packages/sdk-ui/src/domains/query-execution/index.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/query-execution/types.d.ts +97 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/components/scattermap/utils/map.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/with-calendar-heatmap-data-coloring.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/build-highchart-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/formatters/data-cell-formatters/data-cell-color-formatter.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/helpers/prepare-pivot-styling-props.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/hooks/use-render-pivot.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/helpers/get-cell-styles.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/types.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/styles/get-custom-pagination-styles.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/boxplot-chart-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/cartesian/cartesian-chart-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/cartesian/utils/axis/axis-builders.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/cartesian/utils/axis/axis-settings.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/cartesian/utils/axis/axis-transformers.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/cartesian/utils/series-processor.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/category-chart-options/category-chart-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/category-chart-options/funnel-chart-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/category-chart-options/pie-chart-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/category-chart-options/treemap-chart-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/chart-options-service.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/common-highcharts-option-service.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/range-chart-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/scatter-chart-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/theme-option-service.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/funnel-series.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/pie-plot-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/pie-series.d.ts +4 -4
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/scatter-series.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-series.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/treemap/treemap-labels.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/treemap/treemap-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/treemap/treemap-series.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-chart-widget-excel-download.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/types.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/use-custom-widget-excel-download.d.ts +16 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/pivot-table-widget.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +9 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/use-pivot-widget-excel-download.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget/types.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/download-blob-as-file.d.ts +14 -0
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/excel-export-map-dimensions-measures.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-excel-query-file-loader.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-with-excel-download-menu-item.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-style-utils.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/get-widget-model.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/widget-model-translator.d.ts +3 -3
- package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +7 -0
- package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +25 -6
- package/dist/packages/sdk-ui/src/infra/contexts/theme-provider/custom-theme-provider.d.ts +2 -2
- package/dist/packages/sdk-ui/src/infra/contexts/theme-provider/default-theme-settings.d.ts +2 -2
- package/dist/packages/sdk-ui/src/infra/contexts/theme-provider/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/infra/contexts/theme-provider/theme-context.d.ts +3 -3
- package/dist/packages/sdk-ui/src/infra/contexts/theme-provider/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/infra/contexts/theme-provider/use-theme-settings.d.ts +2 -2
- package/dist/packages/sdk-ui/src/infra/contexts/theme-provider/use-theme.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/themes/legacy-design-settings.d.ts +4 -4
- package/dist/packages/sdk-ui/src/infra/themes/theme-loader.d.ts +4 -4
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/modules/ai/ai-disclaimer.d.ts +2 -2
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/dashboard/translate-dashboard-from-json.d.ts +17 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/dashboard/translate-dashboard-to-json.d.ts +15 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/index.d.ts +5 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/adapters.d.ts +0 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/custom-formula/process-custom-formula.d.ts +2 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/factory-function-processors.d.ts +0 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/filter-processors.d.ts +8 -4
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/error-path.d.ts +37 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/translation-helpers.d.ts +36 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +131 -2
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/widget/helpers/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/widget/helpers/to-widget-props.d.ts +27 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/widget/helpers/translate-custom-widget-filters-from-json.d.ts +12 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/widget/helpers/translate-envelope-widget-from-json.d.ts +20 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/widget/helpers/validate-widget-json.d.ts +8 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/widget/helpers/widget-id.d.ts +17 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/widget/translate-widget-from-json.d.ts +19 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/widget/translate-widget-to-json.d.ts +18 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +6 -5
- package/dist/packages/sdk-ui/src/modules/analytics-composer/widget/chart-options/get-widget-options.d.ts +12 -0
- package/dist/packages/sdk-ui/src/props.d.ts +11 -2
- package/dist/packages/sdk-ui/src/public-api/internal.d.ts +1 -1
- package/dist/packages/sdk-ui/src/public-api/public.d.ts +2 -1
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +1 -1
- package/dist/packages/sdk-ui/src/shared/components/loading-indicator.d.ts +2 -2
- package/dist/packages/sdk-ui/src/types.d.ts +217 -1
- package/dist/translations/de-de.cjs +1 -1
- package/dist/translations/de-de.js +5 -2
- package/dist/translations/en-us.cjs +1 -1
- package/dist/translations/en-us.js +1 -1
- package/dist/translations/es-ar.cjs +1 -1
- package/dist/translations/es-ar.js +5 -2
- package/dist/translations/es-es.cjs +1 -1
- package/dist/translations/es-es.js +5 -2
- package/dist/translations/fr-fr.cjs +1 -1
- package/dist/translations/fr-fr.js +5 -2
- package/dist/translations/it-it.cjs +1 -1
- package/dist/translations/it-it.js +5 -2
- package/dist/translations/ja-jp.cjs +1 -1
- package/dist/translations/ja-jp.js +5 -2
- package/dist/translations/ko-kr.cjs +1 -1
- package/dist/translations/ko-kr.js +5 -2
- package/dist/translations/nl-nl.cjs +1 -1
- package/dist/translations/nl-nl.js +5 -2
- package/dist/translations/pt-br.cjs +1 -1
- package/dist/translations/pt-br.js +5 -2
- package/dist/translations/ru-ru.cjs +1 -1
- package/dist/translations/ru-ru.js +5 -2
- package/dist/translations/tr-tr.cjs +1 -1
- package/dist/translations/tr-tr.js +5 -2
- package/dist/translations/zh-cn.cjs +1 -1
- package/dist/translations/zh-cn.js +5 -2
- package/dist/{types-Cq47e5cy.cjs → types-CzgBH2kL.cjs} +1 -1
- package/dist/{types-CzqDZ83C.js → types-D3fPN43o.js} +1 -1
- package/dist/{use-hover-CkmV6eu9.js → use-hover-B6VmMb06.js} +10428 -10063
- package/dist/{use-hover-D_mBUhp9.cjs → use-hover-CaSOzp0i.cjs} +128 -129
- package/dist/{utils-DM5vp1gw.cjs → utils-BwGnDoB0.cjs} +3 -3
- package/dist/{utils-Db3U6oHa.js → utils-CsV-iYtb.js} +3 -3
- package/dist/{widget-composer-BiGVKN49.js → widget-composer-Bv_OVu1o.js} +258 -206
- package/dist/{widget-composer-CZ0_bPXK.cjs → widget-composer-C72Io-3c.cjs} +7 -7
- package/package.json +10 -8
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { type Arg, type ArgValue, Attribute, Filter, FilterRelations, type FunctionCall, JaqlDataSourceForDto, JSONArray, Measure, PivotGrandTotals } from '@sisense/sdk-data';
|
|
2
|
+
import type { CommonFiltersOptions } from '../../../domains/dashboarding/common-filters/types.js';
|
|
3
|
+
import type { DashboardConfig, DashboardLayoutOptions, DashboardStyleOptions } from '../../../domains/dashboarding/types.js';
|
|
2
4
|
import { CategoryStyle, SeriesStyle, ValueStyle } from '../../../domains/visualizations/core/chart-data-options/types.js';
|
|
3
|
-
import type {
|
|
5
|
+
import type { WidgetConfig, WidgetType } from '../../../domains/widgets/components/widget/types.js';
|
|
6
|
+
import type { CustomWidgetStyleOptions, PivotTableStyleOptions, TextWidgetStyleOptions } from '../../../types.js';
|
|
4
7
|
import { DataSchemaContext, NlqTranslationInput } from '../types.js';
|
|
5
8
|
import type { SchemaIndex } from './shared/utils/schema-index.js';
|
|
6
9
|
/**
|
|
@@ -49,8 +52,12 @@ export type NodeInput = NlqTranslationInput<FunctionCall, FunctionContext>;
|
|
|
49
52
|
export type ArgInput = NlqTranslationInput<Arg, ArgContext>;
|
|
50
53
|
/**
|
|
51
54
|
* Custom processor function signature.
|
|
55
|
+
*
|
|
56
|
+
* Implementations must not mutate `processedArgs`. Returns the argument list to pass to
|
|
57
|
+
* `executeFunction`—typically the same array reference when only validating, or a new array when
|
|
58
|
+
* normalizing or replacing nested values.
|
|
52
59
|
*/
|
|
53
|
-
export type CustomFunctionProcessor = (processedArgs: ProcessedArg[], context: FunctionContext) =>
|
|
60
|
+
export type CustomFunctionProcessor = (processedArgs: ProcessedArg[], context: FunctionContext) => ProcessedArg[];
|
|
54
61
|
/**
|
|
55
62
|
* Type guard: value is a non-null object (Record<string, unknown>).
|
|
56
63
|
* @internal
|
|
@@ -209,3 +216,125 @@ export interface PivotTableJSON {
|
|
|
209
216
|
* @internal
|
|
210
217
|
*/
|
|
211
218
|
export type PivotTableInput = NlqTranslationInput<PivotTableJSON, DataSchemaContext>;
|
|
219
|
+
/**
|
|
220
|
+
* Mirrors `WithCommonWidgetProps` for the JSON layer
|
|
221
|
+
*/
|
|
222
|
+
type WithCommonWidgetJSON<Base, Type extends WidgetType> = Base & {
|
|
223
|
+
widgetType: Type;
|
|
224
|
+
readonly id: string;
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* Data source in NLQ JSON — title only. Full JAQL details live in {@link DataSchemaContext}.
|
|
228
|
+
*
|
|
229
|
+
* @internal
|
|
230
|
+
*/
|
|
231
|
+
export type DataSourceJSON = string;
|
|
232
|
+
/**
|
|
233
|
+
* JSON representation of a chart widget
|
|
234
|
+
*
|
|
235
|
+
* @internal
|
|
236
|
+
*/
|
|
237
|
+
export type ChartWidgetJSON = ChartJSON & {
|
|
238
|
+
title?: string;
|
|
239
|
+
description?: string;
|
|
240
|
+
dataSource?: DataSourceJSON;
|
|
241
|
+
config?: WidgetConfig;
|
|
242
|
+
highlightSelectionDisabled?: boolean;
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* JSON representation of a pivot table widget.
|
|
246
|
+
*
|
|
247
|
+
* @internal
|
|
248
|
+
*/
|
|
249
|
+
export type PivotTableWidgetJSON = PivotTableJSON & {
|
|
250
|
+
title?: string;
|
|
251
|
+
description?: string;
|
|
252
|
+
dataSource?: DataSourceJSON;
|
|
253
|
+
config?: WidgetConfig;
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* JSON representation of a text widget
|
|
257
|
+
*
|
|
258
|
+
* @internal
|
|
259
|
+
*/
|
|
260
|
+
export type TextWidgetJSON = {
|
|
261
|
+
styleOptions: TextWidgetStyleOptions;
|
|
262
|
+
config?: WidgetConfig;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* JSON representation of a custom/plugin widget payload.
|
|
266
|
+
* `dataOptions` is passed through as opaque JSON — `GenericDataOptions` cannot be reliably
|
|
267
|
+
* round-tripped without custom-widget-specific schema knowledge.
|
|
268
|
+
* Only `filters` and `highlights` are translated; all other fields are pass-through.
|
|
269
|
+
* `widgetType` and `id` are added on `WidgetJSON` via `WithCommonWidgetJSON`.
|
|
270
|
+
*
|
|
271
|
+
* @internal
|
|
272
|
+
*/
|
|
273
|
+
export type CustomWidgetJSON = {
|
|
274
|
+
customWidgetType: string;
|
|
275
|
+
title?: string;
|
|
276
|
+
description?: string;
|
|
277
|
+
dataSource?: DataSourceJSON;
|
|
278
|
+
config?: WidgetConfig;
|
|
279
|
+
filters?: FunctionCall[];
|
|
280
|
+
highlights?: FunctionCall[];
|
|
281
|
+
/** Opaque pass-through — GenericDataOptions serialized as plain JSON */
|
|
282
|
+
dataOptions?: Record<string, unknown>;
|
|
283
|
+
styleOptions?: CustomWidgetStyleOptions;
|
|
284
|
+
customOptions?: Record<string, unknown>;
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* Dashboard-level options for a specific widget in NLQ JSON.
|
|
288
|
+
* Excludes non-JSON-safe fields such as `jtdConfig` (Map / Filter objects).
|
|
289
|
+
*
|
|
290
|
+
* @internal
|
|
291
|
+
*/
|
|
292
|
+
export type SpecificWidgetOptionsJSON = {
|
|
293
|
+
filtersOptions?: CommonFiltersOptions;
|
|
294
|
+
partialDtoOptions?: {
|
|
295
|
+
options?: Record<string, unknown>;
|
|
296
|
+
style?: Record<string, unknown>;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* Widget options map for NLQ dashboard JSON.
|
|
301
|
+
*
|
|
302
|
+
* @internal
|
|
303
|
+
*/
|
|
304
|
+
export type WidgetsOptionsJSON = Record<string, SpecificWidgetOptionsJSON>;
|
|
305
|
+
/**
|
|
306
|
+
* Discriminated union of all NLQ widget JSON representations.
|
|
307
|
+
* Mirrors the `WidgetProps` discriminated union in serializable JSON form.
|
|
308
|
+
*
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
export type WidgetJSON = WithCommonWidgetJSON<ChartWidgetJSON, 'chart'> | WithCommonWidgetJSON<PivotTableWidgetJSON, 'pivot'> | WithCommonWidgetJSON<TextWidgetJSON, 'text'> | WithCommonWidgetJSON<CustomWidgetJSON, 'custom'>;
|
|
312
|
+
/**
|
|
313
|
+
* JSON representation of a dashboard.
|
|
314
|
+
*
|
|
315
|
+
* @internal
|
|
316
|
+
*/
|
|
317
|
+
export interface DashboardJSON {
|
|
318
|
+
id?: string;
|
|
319
|
+
title?: string;
|
|
320
|
+
filters?: FunctionCall[];
|
|
321
|
+
widgets: WidgetJSON[];
|
|
322
|
+
layoutOptions?: DashboardLayoutOptions;
|
|
323
|
+
config?: DashboardConfig;
|
|
324
|
+
/** Data source title only — schema details live in {@link DataSchemaContext}. */
|
|
325
|
+
defaultDataSource?: DataSourceJSON;
|
|
326
|
+
styleOptions?: DashboardStyleOptions;
|
|
327
|
+
widgetsOptions?: WidgetsOptionsJSON;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Input type for widget translation (JSON → CSDK).
|
|
331
|
+
*
|
|
332
|
+
* @internal
|
|
333
|
+
*/
|
|
334
|
+
export type WidgetInput = NlqTranslationInput<WidgetJSON, DataSchemaContext>;
|
|
335
|
+
/**
|
|
336
|
+
* Input type for dashboard translation (JSON → CSDK).
|
|
337
|
+
*
|
|
338
|
+
* @internal
|
|
339
|
+
*/
|
|
340
|
+
export type DashboardInput = NlqTranslationInput<DashboardJSON, DataSchemaContext>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { translateCustomWidgetFiltersFromJSON } from './translate-custom-widget-filters-from-json.js';
|
|
2
|
+
export { translateEnvelopeWidgetFromJSON } from './translate-envelope-widget-from-json.js';
|
|
3
|
+
export { toChartWidgetProps, toPivotTableWidgetProps } from './to-widget-props.js';
|
|
4
|
+
export type { WidgetMeta } from './to-widget-props.js';
|
|
5
|
+
export { validateWidgetType } from './validate-widget-json.js';
|
|
6
|
+
export { hasRequiredWidgetId, missingWidgetIdError } from './widget-id.js';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { WidgetConfig, WidgetProps } from '../../../../../domains/widgets/components/widget/types.js';
|
|
2
|
+
import type { ChartProps, PivotTableProps } from '../../../../../props.js';
|
|
3
|
+
import type { DataSourceJSON } from '../../types.js';
|
|
4
|
+
export type WidgetMeta = {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly title?: string;
|
|
7
|
+
readonly description?: string;
|
|
8
|
+
readonly dataSource?: DataSourceJSON;
|
|
9
|
+
readonly config?: WidgetConfig;
|
|
10
|
+
readonly highlightSelectionDisabled?: boolean;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Maps chart component props (with `dataSet`) to chart widget props (with `dataSource`).
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const toChartWidgetProps: (chartProps: ChartProps, meta: WidgetMeta) => Extract<WidgetProps, {
|
|
18
|
+
widgetType: 'chart';
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Maps pivot table component props (with `dataSet`) to pivot widget props (with `dataSource`).
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const toPivotTableWidgetProps: (pivotProps: PivotTableProps, meta: WidgetMeta) => Extract<WidgetProps, {
|
|
26
|
+
widgetType: 'pivot';
|
|
27
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Filter, FilterRelations, FunctionCall } from '@sisense/sdk-data';
|
|
2
|
+
import type { DataSchemaContext, NlqTranslationResult } from '../../../types.js';
|
|
3
|
+
export type CustomWidgetFiltersTranslation = {
|
|
4
|
+
readonly filters?: Filter[] | FilterRelations;
|
|
5
|
+
readonly highlights?: Filter[];
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Translates custom-widget filters and highlights from NLQ JSON to CSDK filters.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare const translateCustomWidgetFiltersFromJSON: (filters: FunctionCall[] | undefined, highlights: FunctionCall[] | undefined, context: DataSchemaContext) => NlqTranslationResult<CustomWidgetFiltersTranslation>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { WidgetConfig } from '../../../../../domains/widgets/components/widget/types.js';
|
|
2
|
+
import type { DataSchemaContext, NlqTranslationInput, NlqTranslationResult } from '../../../types.js';
|
|
3
|
+
import type { DataSourceJSON } from '../../types.js';
|
|
4
|
+
import type { WidgetMeta } from './to-widget-props.js';
|
|
5
|
+
type WidgetEnvelopeJSON = {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly title?: string;
|
|
8
|
+
readonly description?: string;
|
|
9
|
+
readonly dataSource?: DataSourceJSON;
|
|
10
|
+
readonly config?: WidgetConfig;
|
|
11
|
+
readonly highlightSelectionDisabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Strips widget envelope fields and delegates to a chart/pivot sub-translator,
|
|
15
|
+
* then maps component props to widget props with metadata.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export declare const translateEnvelopeWidgetFromJSON: <TWidgetJSON extends WidgetEnvelopeJSON, TPayload, TComponentProps, TWidgetProps>(widgetJSON: TWidgetJSON, context: DataSchemaContext, translate: (input: NlqTranslationInput<TPayload, DataSchemaContext>) => NlqTranslationResult<TComponentProps>, toWidgetProps: (props: TComponentProps, meta: WidgetMeta) => TWidgetProps) => NlqTranslationResult<TWidgetProps>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { NlqTranslationError } from '../../../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Validates that widget JSON includes a supported `widgetType`.
|
|
4
|
+
*
|
|
5
|
+
* @param rawInput - Raw widget JSON object
|
|
6
|
+
* @returns Validation error, or `null` when `widgetType` is present and valid
|
|
7
|
+
*/
|
|
8
|
+
export declare function validateWidgetType(rawInput: unknown): NlqTranslationError | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { NlqTranslationError } from '../../../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Builds a translation error when widget JSON is missing a required `id`.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare const missingWidgetIdError: (input: unknown) => NlqTranslationError;
|
|
8
|
+
/**
|
|
9
|
+
* Narrows widget JSON to require a present `id`.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare const hasRequiredWidgetId: <T extends {
|
|
14
|
+
id?: string | undefined;
|
|
15
|
+
}>(widget: T) => widget is T & {
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { WidgetProps } from '../../../../domains/widgets/components/widget/types.js';
|
|
2
|
+
import type { NlqTranslationResult } from '../../types.js';
|
|
3
|
+
import type { WidgetInput } from '../types.js';
|
|
4
|
+
/**
|
|
5
|
+
* Translates NLQ WidgetJSON format to CSDK widget props.
|
|
6
|
+
* Direction: JSON → CSDK
|
|
7
|
+
*
|
|
8
|
+
* Dispatches to the appropriate sub-translator based on `widgetType`:
|
|
9
|
+
* - `'chart'` → `translateChartFromJSON`
|
|
10
|
+
* - `'pivot'` → `translatePivotTableFromJSON`
|
|
11
|
+
* - `'text'` → pass-through (no data translation)
|
|
12
|
+
* - `'custom'` → filters/highlights translated; dataOptions passed through as opaque JSON
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* @param input - WidgetInput containing widgetJSON and data schema context
|
|
16
|
+
* @returns NlqTranslationResult with WidgetProps or errors
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export declare const translateWidgetFromJSON: (input: WidgetInput) => NlqTranslationResult<WidgetProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { WidgetProps } from '../../../../domains/widgets/components/widget/types.js';
|
|
2
|
+
import type { NlqTranslationResult } from '../../types.js';
|
|
3
|
+
import type { WidgetJSON } from '../types.js';
|
|
4
|
+
/**
|
|
5
|
+
* Translates CSDK widget props to NLQ WidgetJSON format.
|
|
6
|
+
* Direction: CSDK → JSON
|
|
7
|
+
*
|
|
8
|
+
* Dispatches to the appropriate sub-translator based on `widgetType`:
|
|
9
|
+
* - `'chart'` → `translateChartToJSON`
|
|
10
|
+
* - `'pivot'` → `translatePivotTableToJSON`
|
|
11
|
+
* - `'text'` → pass-through of styleOptions
|
|
12
|
+
* - `'custom'` → filters/highlights translated; dataOptions passed through as opaque JSON
|
|
13
|
+
*
|
|
14
|
+
* @param widgetProps - Widget props with widgetType discriminant (id required)
|
|
15
|
+
* @returns NlqTranslationResult with WidgetJSON or errors
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const translateWidgetToJSON: (widgetProps: WidgetProps) => NlqTranslationResult<WidgetJSON>;
|
|
@@ -348,15 +348,16 @@ export interface DataSchemaContext {
|
|
|
348
348
|
*/
|
|
349
349
|
export type QueryInput = NlqTranslationInput<NlqResponseJSON, DataSchemaContext>;
|
|
350
350
|
/**
|
|
351
|
-
* Context
|
|
351
|
+
* Context used when building translation errors (before message is attached).
|
|
352
352
|
*
|
|
353
353
|
* @internal
|
|
354
354
|
*/
|
|
355
355
|
export type NlqTranslationErrorContext = {
|
|
356
|
-
/**
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
356
|
+
/**
|
|
357
|
+
* Structural location in the JSON being translated, using pathPrefix notation.
|
|
358
|
+
* e.g. "widgets[0].dataOptions.category[0]" or "filters[0]"
|
|
359
|
+
*/
|
|
360
|
+
path: string;
|
|
360
361
|
/** The complete original input that caused the error */
|
|
361
362
|
input: unknown;
|
|
362
363
|
};
|
|
@@ -15,6 +15,18 @@ export declare const getChartRecommendationsOrDefault: (response: ExpandedQueryM
|
|
|
15
15
|
* @internal
|
|
16
16
|
*/
|
|
17
17
|
export declare const getChartDataOptions: (metadataItems: MetadataItem[], chartFamily: string, axesMapping: AxesMapping) => ChartDataOptions;
|
|
18
|
+
/**
|
|
19
|
+
* Minimal chart style overrides for consumers that persist widget props without merged SDK defaults.
|
|
20
|
+
* Compose merges these with per-chart defaults at render time (`extendStyleOptionsWithDefaults`).
|
|
21
|
+
*
|
|
22
|
+
* This function is used by buildChartEngine in sdk-ai-core
|
|
23
|
+
*
|
|
24
|
+
* @param chartType - chart type
|
|
25
|
+
* @param axesMapping - axes mapping
|
|
26
|
+
* @returns partial style options
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const getMinimalChartStyleOptions: (chartType: ChartType, axesMapping: AxesMapping) => Partial<ChartStyleOptions>;
|
|
18
30
|
/**
|
|
19
31
|
* Get chart style options for the chart widget.
|
|
20
32
|
*
|
|
@@ -622,6 +622,9 @@ export interface BaseChartProps extends BaseChartEventProps {
|
|
|
622
622
|
* NOTE that the filter dimensions used in highlights must match those defined in the
|
|
623
623
|
* `dataOptions` of the chart. Otherwise, the filters will be applied as regular slice filters.
|
|
624
624
|
*
|
|
625
|
+
* NOTE that highlight filters in the "Include all" state are silently omitted from the
|
|
626
|
+
* query. To clear a highlight, remove it from the array.
|
|
627
|
+
*
|
|
625
628
|
* (1) Array of {@link Filter} returned from filter factory functions, such as
|
|
626
629
|
* {@link @sisense/sdk-data!filterFactory.greaterThan | `greaterThan()`} and {@link @sisense/sdk-data!filterFactory.members | `members()`}.
|
|
627
630
|
*
|
|
@@ -971,7 +974,10 @@ export interface PivotTableProps {
|
|
|
971
974
|
*/
|
|
972
975
|
filters?: Filter[] | FilterRelations;
|
|
973
976
|
/**
|
|
974
|
-
* Filters that will highlight query results
|
|
977
|
+
* Filters that will highlight query results.
|
|
978
|
+
*
|
|
979
|
+
* NOTE that highlight filters in the "Include all" state are silently omitted from the
|
|
980
|
+
* query. To clear a highlight, remove it from the array.
|
|
975
981
|
*
|
|
976
982
|
* @category Data
|
|
977
983
|
*/
|
|
@@ -1094,7 +1100,10 @@ export interface WidgetByIdProps extends Omit<ChartWidgetProps, 'dataSource' | '
|
|
|
1094
1100
|
*/
|
|
1095
1101
|
filters?: Filter[];
|
|
1096
1102
|
/**
|
|
1097
|
-
* Highlight filters that will highlight results that pass filter criteria
|
|
1103
|
+
* Highlight filters that will highlight results that pass filter criteria.
|
|
1104
|
+
*
|
|
1105
|
+
* NOTE that highlight filters in the "Include all" state are silently omitted from the
|
|
1106
|
+
* query. To clear a highlight, remove it from the array.
|
|
1098
1107
|
*
|
|
1099
1108
|
* @category Data
|
|
1100
1109
|
*/
|
|
@@ -14,7 +14,7 @@ export { getWidgetModel } from '../domains/widgets/widget-model';
|
|
|
14
14
|
export { getHierarchyModels } from '../domains/drilldown/hierarchy-model';
|
|
15
15
|
export { getThemeSettingsByOid } from '../infra/themes/theme-loader';
|
|
16
16
|
export { getDefaultThemeSettings } from '../infra/contexts/theme-provider/default-theme-settings';
|
|
17
|
-
export { type
|
|
17
|
+
export { type CompleteThemeSettingsInternal } from '../types';
|
|
18
18
|
export { updateDrilldownSelections } from '../domains/drilldown/hooks/use-drilldown-core';
|
|
19
19
|
export { getSelectionTitleMenuItem, getDrilldownMenuItems, } from '../domains/drilldown/hooks/use-drilldown';
|
|
20
20
|
export { processDrilldownSelections } from '../domains/drilldown/hooks/use-drilldown-core';
|
|
@@ -61,7 +61,8 @@ export { type FilterVariant } from '../domains/filters/components/common/filter-
|
|
|
61
61
|
export { useGetFilterMembers, type GetFilterMembersParams, type FilterMembersState, type FilterMembersLoadingState, type FilterMembersSuccessState, type FilterMembersErrorState, type GetFilterMembersResult, type GetFilterMembersData, } from '../domains/filters/hooks/use-get-filter-members';
|
|
62
62
|
export { useGetSharedFormula, type GetSharedFormulaParams, type UseGetSharedFormulaParams, type SharedFormulaState, type SharedFormulaLoadingState, type SharedFormulaErrorState, type SharedFormulaSuccessState, } from '../domains/formulas';
|
|
63
63
|
export { useGetDataSourceDimensions, type GetDataSourceDimensionsParams, type DataSourceDimensionsState, type DataSourceDimensionsLoadingState, type DataSourceDimensionsErrorState, type DataSourceDimensionsSuccessState, } from '../domains/data-browser/data-source-dimensional-model';
|
|
64
|
-
export { ThemeProvider } from '../infra/contexts/theme-provider';
|
|
64
|
+
export { ThemeProvider, useTheme } from '../infra/contexts/theme-provider';
|
|
65
|
+
export type { CompleteThemeSettings } from '../types';
|
|
65
66
|
export { LoadingOverlay, type LoadingOverlayProps } from '../shared/components/loading-overlay';
|
|
66
67
|
export { ContextMenu } from '../shared/components/menu/context-menu/context-menu';
|
|
67
68
|
/**
|
|
@@ -14,7 +14,7 @@ export { createDataOptionsFromPanels } from '../domains/widgets/components/widge
|
|
|
14
14
|
export { extractCombinedFilters } from '../domains/widgets/components/widget-by-id/translate-dashboard-filters';
|
|
15
15
|
export { useThemeContext } from '../infra/contexts/theme-provider';
|
|
16
16
|
export { useAppSettings } from '../shared/hooks/use-app-settings';
|
|
17
|
-
export type { AppSettings } from '../infra/app/settings/settings';
|
|
17
|
+
export type { AiFeatureFlags, AppSettings } from '../infra/app/settings/settings';
|
|
18
18
|
export { QuotaNotification } from '../shared/components/quota-notification/quota-notification.js';
|
|
19
19
|
export type { QuotaNotificationProps } from '../shared/components/quota-notification/quota-notification.js';
|
|
20
20
|
export { useQuotaNotification } from '../shared/hooks/use-quota-notification.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompleteThemeSettingsInternal } from '../../types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Component that displays a loading indicator.
|
|
4
4
|
*
|
|
@@ -12,6 +12,6 @@ import { CompleteThemeSettings } from '../../types.js';
|
|
|
12
12
|
* @sisenseInternal
|
|
13
13
|
*/
|
|
14
14
|
export declare const LoadingIndicator: ({ themeSettings, onCancel, }: {
|
|
15
|
-
themeSettings?:
|
|
15
|
+
themeSettings?: CompleteThemeSettingsInternal | undefined;
|
|
16
16
|
onCancel?: (() => void) | undefined;
|
|
17
17
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1965,11 +1965,227 @@ export interface ThemeSettings {
|
|
|
1965
1965
|
*
|
|
1966
1966
|
* @internal
|
|
1967
1967
|
*/
|
|
1968
|
-
export type
|
|
1968
|
+
export type CompleteThemeSettingsInternal = DeepRequired<Omit<ThemeSettings, 'typography'>> & {
|
|
1969
1969
|
typography: DeepRequired<Omit<TypographyThemeSettings, 'fontsLoader'>> & {
|
|
1970
1970
|
fontsLoader?: FontsLoaderSettings;
|
|
1971
1971
|
};
|
|
1972
1972
|
};
|
|
1973
|
+
/**
|
|
1974
|
+
* Resolved theme returned by {@link useTheme}.
|
|
1975
|
+
*
|
|
1976
|
+
* Contains all theme values after defaults are applied. Unlike {@link ThemeSettings}
|
|
1977
|
+
* (where every field is optional), every field here is guaranteed to be present.
|
|
1978
|
+
*/
|
|
1979
|
+
export type CompleteThemeSettings = {
|
|
1980
|
+
/** Chart theme settings */
|
|
1981
|
+
chart: {
|
|
1982
|
+
/** Text color */
|
|
1983
|
+
textColor: string;
|
|
1984
|
+
/** Secondary text color */
|
|
1985
|
+
secondaryTextColor: string;
|
|
1986
|
+
/** Background color */
|
|
1987
|
+
backgroundColor: string;
|
|
1988
|
+
/** Animation options */
|
|
1989
|
+
animation: {
|
|
1990
|
+
/** Chart initialization animation options */
|
|
1991
|
+
init: {
|
|
1992
|
+
/** Animation duration in milliseconds */
|
|
1993
|
+
duration: number | 'auto';
|
|
1994
|
+
};
|
|
1995
|
+
/** Chart redraw animation options */
|
|
1996
|
+
redraw: {
|
|
1997
|
+
/** Animation duration in milliseconds */
|
|
1998
|
+
duration: number | 'auto';
|
|
1999
|
+
};
|
|
2000
|
+
};
|
|
2001
|
+
};
|
|
2002
|
+
/** Collection of colors used to color various elements */
|
|
2003
|
+
palette: {
|
|
2004
|
+
/** Set of colors used to color chart elements */
|
|
2005
|
+
variantColors: Color[];
|
|
2006
|
+
};
|
|
2007
|
+
/** Text theme settings */
|
|
2008
|
+
typography: {
|
|
2009
|
+
/** Font family name to style component text */
|
|
2010
|
+
fontFamily: string;
|
|
2011
|
+
/** Primary text color */
|
|
2012
|
+
primaryTextColor: string;
|
|
2013
|
+
/** Secondary text color */
|
|
2014
|
+
secondaryTextColor: string;
|
|
2015
|
+
/** Hyperlink color */
|
|
2016
|
+
hyperlinkColor: string;
|
|
2017
|
+
/** Hyperlink hover color */
|
|
2018
|
+
hyperlinkHoverColor: string;
|
|
2019
|
+
/** Settings for font loading */
|
|
2020
|
+
fontsLoader?: FontsLoaderSettings;
|
|
2021
|
+
};
|
|
2022
|
+
/** General theme settings */
|
|
2023
|
+
general: {
|
|
2024
|
+
/** Main color used for various elements like primary buttons, switches, etc. */
|
|
2025
|
+
brandColor: string;
|
|
2026
|
+
/** Background color used for elements like tiles, etc. */
|
|
2027
|
+
backgroundColor: string;
|
|
2028
|
+
/** Text color for primary buttons */
|
|
2029
|
+
primaryButtonTextColor: string;
|
|
2030
|
+
/** Hover color for primary buttons */
|
|
2031
|
+
primaryButtonHoverColor: string;
|
|
2032
|
+
};
|
|
2033
|
+
/** Widget theme settings */
|
|
2034
|
+
widget: {
|
|
2035
|
+
/** Space between widget container edge and the chart */
|
|
2036
|
+
spaceAround: SpaceSizes;
|
|
2037
|
+
/** Corner radius of the widget container */
|
|
2038
|
+
cornerRadius: RadiusSizes;
|
|
2039
|
+
/** Shadow level of the widget container */
|
|
2040
|
+
shadow: ShadowsTypes;
|
|
2041
|
+
/** Widget container border toggle */
|
|
2042
|
+
border: boolean;
|
|
2043
|
+
/** Widget container border color */
|
|
2044
|
+
borderColor: string;
|
|
2045
|
+
/** Widget header styles */
|
|
2046
|
+
header: {
|
|
2047
|
+
/** Header title text color */
|
|
2048
|
+
titleTextColor: string;
|
|
2049
|
+
/** Header title alignment */
|
|
2050
|
+
titleAlignment: AlignmentTypes;
|
|
2051
|
+
/** Header title font size */
|
|
2052
|
+
titleFontSize: number;
|
|
2053
|
+
/** Toggle of the divider line between widget header and chart */
|
|
2054
|
+
dividerLine: boolean;
|
|
2055
|
+
/** Divider line color */
|
|
2056
|
+
dividerLineColor: string;
|
|
2057
|
+
/** Header background color */
|
|
2058
|
+
backgroundColor: string;
|
|
2059
|
+
};
|
|
2060
|
+
};
|
|
2061
|
+
/** Filter theme settings */
|
|
2062
|
+
filter: {
|
|
2063
|
+
panel: {
|
|
2064
|
+
/** Title color */
|
|
2065
|
+
titleColor: string;
|
|
2066
|
+
/** Background color */
|
|
2067
|
+
backgroundColor: string;
|
|
2068
|
+
/** Divider line color for the filter panel */
|
|
2069
|
+
dividerLineColor: string;
|
|
2070
|
+
/** Divider line width for the filter panel */
|
|
2071
|
+
dividerLineWidth: number;
|
|
2072
|
+
};
|
|
2073
|
+
};
|
|
2074
|
+
/** Theme settings specific to the AI Chatbot component */
|
|
2075
|
+
aiChat: {
|
|
2076
|
+
/** Background color of the chatbot */
|
|
2077
|
+
backgroundColor: string;
|
|
2078
|
+
/** Text color of the chatbot */
|
|
2079
|
+
primaryTextColor: string;
|
|
2080
|
+
/** Secondary text color of the chatbot */
|
|
2081
|
+
secondaryTextColor: string;
|
|
2082
|
+
/** Primary font size for text in the chatbot */
|
|
2083
|
+
primaryFontSize: [fontSize: string, lineHeight: string];
|
|
2084
|
+
/** Border of the chatbot */
|
|
2085
|
+
border: false | string;
|
|
2086
|
+
/** Border radius of the chatbot */
|
|
2087
|
+
borderRadius: false | string;
|
|
2088
|
+
/** Settings for the main chat body */
|
|
2089
|
+
body: {
|
|
2090
|
+
paddingLeft: string;
|
|
2091
|
+
paddingRight: string;
|
|
2092
|
+
paddingTop: string;
|
|
2093
|
+
paddingBottom: string;
|
|
2094
|
+
gapBetweenMessages: string;
|
|
2095
|
+
};
|
|
2096
|
+
/** Settings for the chat footer */
|
|
2097
|
+
footer: {
|
|
2098
|
+
paddingLeft: string;
|
|
2099
|
+
paddingRight: string;
|
|
2100
|
+
paddingTop: string;
|
|
2101
|
+
paddingBottom: string;
|
|
2102
|
+
};
|
|
2103
|
+
/** Settings for user chat messages */
|
|
2104
|
+
userMessages: {
|
|
2105
|
+
backgroundColor: string;
|
|
2106
|
+
};
|
|
2107
|
+
/** Settings for system chat messages */
|
|
2108
|
+
systemMessages: {
|
|
2109
|
+
backgroundColor: string;
|
|
2110
|
+
};
|
|
2111
|
+
/** Settings for the chatbot input */
|
|
2112
|
+
input: {
|
|
2113
|
+
backgroundColor: string;
|
|
2114
|
+
focus: {
|
|
2115
|
+
outlineColor: string;
|
|
2116
|
+
};
|
|
2117
|
+
};
|
|
2118
|
+
/** Settings for the chatbot header */
|
|
2119
|
+
header: {
|
|
2120
|
+
backgroundColor: string;
|
|
2121
|
+
textColor: string;
|
|
2122
|
+
};
|
|
2123
|
+
/** Settings for chatbot dropup */
|
|
2124
|
+
dropup: {
|
|
2125
|
+
backgroundColor: string;
|
|
2126
|
+
boxShadow: string;
|
|
2127
|
+
borderRadius: string;
|
|
2128
|
+
headers: {
|
|
2129
|
+
textColor: string;
|
|
2130
|
+
hover: {
|
|
2131
|
+
backgroundColor: string;
|
|
2132
|
+
};
|
|
2133
|
+
};
|
|
2134
|
+
items: {
|
|
2135
|
+
textColor: string;
|
|
2136
|
+
hover: {
|
|
2137
|
+
backgroundColor: string;
|
|
2138
|
+
};
|
|
2139
|
+
};
|
|
2140
|
+
};
|
|
2141
|
+
/** Settings for the chatbot suggestions */
|
|
2142
|
+
suggestions: {
|
|
2143
|
+
textColor: string;
|
|
2144
|
+
backgroundColor: string;
|
|
2145
|
+
border: string;
|
|
2146
|
+
borderGradient: [string, string] | null;
|
|
2147
|
+
borderRadius: string;
|
|
2148
|
+
hover: {
|
|
2149
|
+
textColor: string;
|
|
2150
|
+
backgroundColor: string;
|
|
2151
|
+
};
|
|
2152
|
+
loadingGradient: [string, string];
|
|
2153
|
+
gap: string;
|
|
2154
|
+
};
|
|
2155
|
+
/** Settings for the chatbot clickable messages */
|
|
2156
|
+
clickableMessages: {
|
|
2157
|
+
textColor: string;
|
|
2158
|
+
backgroundColor: string;
|
|
2159
|
+
border: false | string;
|
|
2160
|
+
borderGradient: [string, string] | null;
|
|
2161
|
+
hover: {
|
|
2162
|
+
textColor: string;
|
|
2163
|
+
backgroundColor: string;
|
|
2164
|
+
};
|
|
2165
|
+
};
|
|
2166
|
+
/** Settings for the data topics screen */
|
|
2167
|
+
dataTopics: {
|
|
2168
|
+
backgroundColor: string;
|
|
2169
|
+
items: {
|
|
2170
|
+
textColor: string;
|
|
2171
|
+
backgroundColor: string;
|
|
2172
|
+
};
|
|
2173
|
+
};
|
|
2174
|
+
/** Settings for the chatbot icons */
|
|
2175
|
+
icons: {
|
|
2176
|
+
color: string;
|
|
2177
|
+
feedbackIcons: {
|
|
2178
|
+
hoverColor: string;
|
|
2179
|
+
};
|
|
2180
|
+
};
|
|
2181
|
+
/** Settings for the chatbot tooltips */
|
|
2182
|
+
tooltips: {
|
|
2183
|
+
backgroundColor: string;
|
|
2184
|
+
textColor: string;
|
|
2185
|
+
boxShadow: string;
|
|
2186
|
+
};
|
|
2187
|
+
};
|
|
2188
|
+
};
|
|
1973
2189
|
/** @alpha */
|
|
1974
2190
|
export type ThemeConfig = {
|
|
1975
2191
|
cssSelectorPrefix?: {
|