@sisense/sdk-ui 2.26.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 +35 -35
- package/dist/ai.js +792 -800
- 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-23D9br-S.cjs +1 -0
- package/dist/{apply-styled-options-to-query-Bzt2GrgO.js → apply-styled-options-to-query-BagjzMqm.js} +1064 -1046
- package/dist/{dimensions-Ce2zWFrs.js → dimensions-Bn1EaWiP.js} +1 -1
- package/dist/{dimensions-u3w5qNF0.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 +404 -404
- package/dist/index.js +18353 -17959
- package/dist/index.umd.js +687 -688
- 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 +4 -3
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-models.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +16 -4
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/types.d.ts +9 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +10 -3
- 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/drilldown/hooks/use-drilldown.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/drilldown/hooks/use-hierarchies-loader.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/filters/components/custom-filter-tile.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-options.d.ts +11 -4
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-props-to-narrative-params.d.ts +51 -1
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-get-widget-narrative.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-widget-narrative-state.d.ts +2 -2
- 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/areamap-chart/data/areamap-data.d.ts +1 -1
- 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/chart/types.d.ts +3 -1
- 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/pivot-table/sorting-utils.d.ts +4 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/hooks/use-table-data.d.ts +3 -1
- 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-data-options/translate-data-options.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/validate-data-options/validate-data-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/apply-event-handlers.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 +3 -39
- 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 +5 -3
- 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/series-labels.d.ts +1 -1
- 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 +4 -4
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-options.d.ts +5 -5
- 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/visualizations/core/query-definition/query-definition-style-constants.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-definition.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-params-to-view-model.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/pivot-table-widget/use-with-pivot-table-widget-drilldown.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/utils.d.ts +0 -5
- 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/apply-partial-dto-style.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/extract-unsupported-style-options.d.ts +31 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/index.d.ts +2 -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/components/widget-by-id/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/utils.d.ts +1 -1
- 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/to-widget-dto-panels.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/widget-model-translator.d.ts +40 -3
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model.d.ts +12 -0
- package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-endpoints.d.ts +13 -7
- 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 +62 -4
- package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +2 -0
- package/dist/packages/sdk-ui/src/infra/app/types.d.ts +0 -1
- 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/plugins/widget-plugins/types.d.ts +16 -11
- 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 +4 -1
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +7 -1
- package/dist/packages/sdk-ui/src/modules/ai/ai-disclaimer.d.ts +2 -2
- package/dist/packages/sdk-ui/src/modules/ai/api/chat-rest-api.d.ts +1 -1
- 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/query/translate-query-from-json.d.ts +5 -5
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-to-jaql.d.ts +4 -4
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-to-json.d.ts +5 -5
- 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 +132 -3
- 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 +15 -6
- package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +5 -0
- package/dist/packages/sdk-ui/src/public-api/internal.d.ts +12 -1
- package/dist/packages/sdk-ui/src/public-api/public.d.ts +24 -21
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +3 -3
- package/dist/packages/sdk-ui/src/shared/components/loading-indicator.d.ts +2 -2
- package/dist/packages/sdk-ui/src/shared/components/menu/context-menu/menu.d.ts +1 -1
- package/dist/packages/sdk-ui/src/types.d.ts +220 -4
- 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-COBvZZm_.cjs → types-CzgBH2kL.cjs} +1 -1
- package/dist/{types-D6jCGncV.js → types-D3fPN43o.js} +1 -1
- package/dist/{use-hover-B1HPf4hF.js → use-hover-B6VmMb06.js} +11779 -11336
- package/dist/{use-hover-CaQrW_gv.cjs → use-hover-CaSOzp0i.cjs} +129 -130
- package/dist/{utils-CAubp1g1.cjs → utils-BwGnDoB0.cjs} +23 -23
- package/dist/{utils-BQtueE3Z.js → utils-CsV-iYtb.js} +2410 -2439
- package/dist/{widget-composer-BAJFWk3t.js → widget-composer-Bv_OVu1o.js} +275 -223
- package/dist/{widget-composer-C75b-E6W.cjs → widget-composer-C72Io-3c.cjs} +7 -7
- package/package.json +11 -8
- package/dist/apply-styled-options-to-query-COD9fRYD.cjs +0 -1
- package/dist/packages/sdk-ui/src/domains/drilldown/hooks/use-synced-drilldown-paths-manager.d.ts +0 -113
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JaqlDataSourceForDto } from '@sisense/sdk-data';
|
|
2
|
+
import type { JumpToDashboardConfig, JumpToDashboardConfigForPivot } from '../../../../domains/dashboarding/hooks/jtd/jtd-types.js';
|
|
2
3
|
import { ExecutePivotQueryParams, ExecuteQueryParams } from '../../../../domains/query-execution/index.js';
|
|
3
4
|
import { ChartWidgetProps } from '../../../../domains/widgets/components/chart-widget/types';
|
|
4
5
|
import { CommonWidgetProps } from '../../../../domains/widgets/components/common-widget/types';
|
|
@@ -9,7 +10,7 @@ import { WidgetDto } from '../../../../domains/widgets/components/widget-by-id/t
|
|
|
9
10
|
import { WidgetProps } from '../../../../domains/widgets/components/widget/types';
|
|
10
11
|
import { AppSettings } from '../../../../infra/app/settings/settings.js';
|
|
11
12
|
import { ChartProps, PivotTableProps, TableProps } from '../../../../props';
|
|
12
|
-
import {
|
|
13
|
+
import { CompleteThemeSettingsInternal } from '../../../../types.js';
|
|
13
14
|
import { WidgetModel } from '../widget-model';
|
|
14
15
|
/**
|
|
15
16
|
* Translates a {@link WidgetModel} to the parameters for executing a query for the widget.
|
|
@@ -130,6 +131,26 @@ export declare function toCommonWidgetProps(widgetModel: WidgetModel): CommonWid
|
|
|
130
131
|
* ```
|
|
131
132
|
*/
|
|
132
133
|
export declare function toWidgetProps(widgetModel: WidgetModel): WidgetProps;
|
|
134
|
+
/**
|
|
135
|
+
* Returns Jump to Dashboard configuration for a {@link WidgetModel} that was built from
|
|
136
|
+
* Fusion via {@link fromWidgetDto}.
|
|
137
|
+
*
|
|
138
|
+
* @param widgetModel - The {@link WidgetModel} built from Fusion via {@link fromWidgetDto};
|
|
139
|
+
*
|
|
140
|
+
* @returns `JumpToDashboardConfig`, `JumpToDashboardConfigForPivot`, or `null` when the model is not
|
|
141
|
+
* Fusion-sourced, or the widget has no versioned JTD.
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* ```tsx
|
|
145
|
+
* const widgetProps = widgetModelTranslator.toWidgetProps(widgetModel);
|
|
146
|
+
* const jtdConfig = widgetModelTranslator.toJtdConfig(widgetModel);
|
|
147
|
+
* // When jtdConfig is non-null, pass widgetProps and jtdConfig to useJtdWidget; otherwise render the widget with widgetProps alone.
|
|
148
|
+
* ```
|
|
149
|
+
*
|
|
150
|
+
* @sisenseInternal
|
|
151
|
+
* @alpha
|
|
152
|
+
*/
|
|
153
|
+
export declare function toJtdConfig(widgetModel: WidgetModel): JumpToDashboardConfig | JumpToDashboardConfigForPivot | null;
|
|
133
154
|
/**
|
|
134
155
|
* Creates a {@link WidgetModel} from a widget DTO.
|
|
135
156
|
*
|
|
@@ -139,7 +160,7 @@ export declare function toWidgetProps(widgetModel: WidgetModel): WidgetProps;
|
|
|
139
160
|
* @returns The widget model
|
|
140
161
|
* @internal
|
|
141
162
|
*/
|
|
142
|
-
export declare function fromWidgetDto(widgetDto: WidgetDto, themeSettings?:
|
|
163
|
+
export declare function fromWidgetDto(widgetDto: WidgetDto, themeSettings?: CompleteThemeSettingsInternal, appSettings?: AppSettings): WidgetModel;
|
|
143
164
|
/**
|
|
144
165
|
* Creates a {@link WidgetModel} from a {@link ChartWidgetProps}.
|
|
145
166
|
*
|
|
@@ -156,6 +177,22 @@ export declare function fromChartWidgetProps(chartWidgetProps: ChartWidgetProps)
|
|
|
156
177
|
* @internal
|
|
157
178
|
*/
|
|
158
179
|
export declare function fromPivotTableWidgetProps(pivotTableWidgetProps: PivotTableWidgetProps): WidgetModel;
|
|
180
|
+
/**
|
|
181
|
+
* Creates a {@link WidgetModel} from a {@link TextWidgetProps}.
|
|
182
|
+
*
|
|
183
|
+
* @param textWidgetProps - The TextWidgetProps to be converted to a widget model
|
|
184
|
+
* @returns WidgetModel
|
|
185
|
+
* @internal
|
|
186
|
+
*/
|
|
187
|
+
export declare function fromTextWidgetProps(textWidgetProps: TextWidgetProps): WidgetModel;
|
|
188
|
+
/**
|
|
189
|
+
* Creates a {@link WidgetModel} from a {@link CustomWidgetProps}.
|
|
190
|
+
*
|
|
191
|
+
* @param customWidgetProps - The CustomWidgetProps to be converted to a widget model
|
|
192
|
+
* @returns WidgetModel
|
|
193
|
+
* @internal
|
|
194
|
+
*/
|
|
195
|
+
export declare function fromCustomWidgetProps(customWidgetProps: CustomWidgetProps): WidgetModel;
|
|
159
196
|
/**
|
|
160
197
|
* Creates a {@link WidgetModel} from a {@link WidgetProps}.
|
|
161
198
|
*
|
|
@@ -175,4 +212,4 @@ export declare function fromWidgetProps(widgetProps: WidgetProps): WidgetModel;
|
|
|
175
212
|
*
|
|
176
213
|
* @sisenseInternal
|
|
177
214
|
*/
|
|
178
|
-
export declare function toWidgetDto(widgetModel: WidgetModel, dataSource?: JaqlDataSourceForDto, themeSettings?:
|
|
215
|
+
export declare function toWidgetDto(widgetModel: WidgetModel, dataSource?: JaqlDataSourceForDto, themeSettings?: CompleteThemeSettingsInternal, appSettings?: AppSettings): WidgetDto;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DataSource, Filter } from '@sisense/sdk-data';
|
|
2
2
|
import { EmptyObject } from '@sisense/sdk-query-client/src/helpers/utility-types';
|
|
3
|
+
import type { JumpToDashboardConfig, JumpToDashboardConfigForPivot } from '../../../domains/dashboarding/hooks/jtd/jtd-types';
|
|
3
4
|
import { ChartDataOptions, PivotTableDataOptions } from '../../../domains/visualizations/core/chart-data-options/types';
|
|
4
5
|
import { ChartType, DrilldownOptions, PivotTableDrilldownOptions, WidgetStyleOptions } from '../../../types';
|
|
5
6
|
import type { WidgetType } from '../components/widget/types';
|
|
@@ -70,5 +71,16 @@ export interface WidgetModel {
|
|
|
70
71
|
* Widget drilldown options.
|
|
71
72
|
*/
|
|
72
73
|
drilldownOptions: DrilldownOptions | PivotTableDrilldownOptions;
|
|
74
|
+
/**
|
|
75
|
+
* Jump to Dashboard configuration for this widget, when the model was built from a Fusion
|
|
76
|
+
* `WidgetDto` via `fromWidgetDto`. Populated with the same translation as dashboard
|
|
77
|
+
* `fromDashboardDto` uses for `widgetsOptions` (via `translateWidgetsOptions` →
|
|
78
|
+
* `jumpToDashboardConfigFromWidgetDto`). Omitted or `undefined` when the model is not
|
|
79
|
+
* Fusion-sourced (e.g. from widget props) or the widget has no versioned JTD.
|
|
80
|
+
*
|
|
81
|
+
* @see {@link widgetModelTranslator.toJtdConfig}
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
jtdConfig?: JumpToDashboardConfig | JumpToDashboardConfigForPivot;
|
|
73
85
|
}
|
|
74
86
|
export declare const isWidgetModel: (widget: any) => widget is WidgetModel;
|
|
@@ -10,17 +10,23 @@ export declare const LEGACY_NARRATIVE_ENDPOINT = "api/v2/ai/nlg/queryResult";
|
|
|
10
10
|
* @internal
|
|
11
11
|
*/
|
|
12
12
|
export type GetNarrativeOptions = {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
canGenerateNarrativeViaAI?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* When provided and the primary request returns a 400, the request is retried once with this
|
|
16
|
+
* fallback payload. Intended for trend/forecast stripping when the backend cannot handle them.
|
|
17
|
+
*/
|
|
18
|
+
fallbackRequestOn400?: NarrativeRequest;
|
|
15
19
|
};
|
|
16
20
|
/**
|
|
17
|
-
* Fetches Narrative. Single place for endpoint logic:
|
|
18
|
-
*
|
|
21
|
+
* Fetches Narrative. Single place for endpoint logic: when `canGenerateNarrativeViaAI` is truthy,
|
|
22
|
+
* try the unified endpoint first and fall back to legacy on 404; otherwise hit legacy directly.
|
|
23
|
+
* When `fallbackRequestOn400` is provided and the primary request returns a 400, the request is
|
|
24
|
+
* retried once with the fallback payload.
|
|
19
25
|
*
|
|
20
26
|
* @param httpClient - HttpClient instance
|
|
21
27
|
* @param request - Narration request payload
|
|
22
|
-
* @param options - Optional; `
|
|
23
|
-
* @returns Promise with narration
|
|
28
|
+
* @param options - Optional; `canGenerateNarrativeViaAI` (typically from `app.settings.narrative`)
|
|
29
|
+
* @returns Promise that resolves with narration JSON or `undefined` (same semantics as `HttpClient.post`)
|
|
24
30
|
* @internal
|
|
25
31
|
*/
|
|
26
|
-
export declare function getNarrative(httpClient: HttpClient, request: NarrativeRequest, options?: GetNarrativeOptions): Promise<NarrativeResponse>;
|
|
32
|
+
export declare function getNarrative(httpClient: HttpClient, request: NarrativeRequest, options?: GetNarrativeOptions): Promise<NarrativeResponse | undefined>;
|
|
@@ -123,6 +123,13 @@ export declare class RestApi {
|
|
|
123
123
|
count?: number;
|
|
124
124
|
searchValue?: string;
|
|
125
125
|
}) => Promise<DataSourceField[] | undefined>;
|
|
126
|
+
/**
|
|
127
|
+
* Export JAQL query results as an XLSX file (binary response).
|
|
128
|
+
*
|
|
129
|
+
* @param body - JSON payload for the JAQL export API
|
|
130
|
+
* @returns XLSX file as a {@link Blob}
|
|
131
|
+
*/
|
|
132
|
+
exportJaqlToXlsx: (body: object) => Promise<Blob | undefined>;
|
|
126
133
|
}
|
|
127
134
|
export declare const useRestApi: () => {
|
|
128
135
|
restApi: RestApi | undefined;
|
|
@@ -1,6 +1,48 @@
|
|
|
1
1
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
2
|
import { AppConfig, ThemeSettings } from '../../../types';
|
|
3
|
+
import { LegacyDesignSettings } from '../../themes/legacy-design-settings.js';
|
|
3
4
|
import { FeatureMap } from './types/features.js';
|
|
5
|
+
/**
|
|
6
|
+
* Known AI feature flags exposed on {@link AppSettings} `ai.featureFlags`.
|
|
7
|
+
* Add a flag here when you want first-class typing/autocomplete for it; otherwise
|
|
8
|
+
* it still surfaces via the index signature on {@link AiFeatureFlags}.
|
|
9
|
+
*/
|
|
10
|
+
type KnownAiFeatureFlags = {
|
|
11
|
+
completionV2: boolean;
|
|
12
|
+
naturalResponseEnabled: boolean;
|
|
13
|
+
nlqV3Enabled: boolean;
|
|
14
|
+
queryDefinition: boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Loose, forward-compatible shape of `ai.featureFlags`. Known flags are strongly typed
|
|
18
|
+
* (see {@link KnownAiFeatureFlags}); arbitrary string-keyed flags are type-allowed
|
|
19
|
+
* for forward compatibility (unknown keys are readable as `boolean | undefined`)
|
|
20
|
+
* without requiring a CSDK type bump.
|
|
21
|
+
*
|
|
22
|
+
* @sisenseInternal
|
|
23
|
+
*/
|
|
24
|
+
export type AiFeatureFlags = KnownAiFeatureFlags & {
|
|
25
|
+
[flag: string]: boolean | undefined;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* AI-related slice derived from globals (`serverFeatures` + deployment props),
|
|
29
|
+
* aligned with admin UI paths such as `ai.featureFlags.*`, `ai.featureModelType`,
|
|
30
|
+
* `ai.quotaNotification`, and `ai.aiStudio.*`.
|
|
31
|
+
*/
|
|
32
|
+
type AiSettingsSlice = {
|
|
33
|
+
featureFlags: AiFeatureFlags;
|
|
34
|
+
/**
|
|
35
|
+
* Only when `serverFeatures.aiAssistant` exists.
|
|
36
|
+
* If the block is present but omits this field, defaults to `customer_byok`.
|
|
37
|
+
* When the AI Assistant feature is absent from globals, this stays unset (`undefined`).
|
|
38
|
+
*/
|
|
39
|
+
featureModelType?: string;
|
|
40
|
+
quotaNotification: boolean;
|
|
41
|
+
aiStudio: {
|
|
42
|
+
realtime: boolean;
|
|
43
|
+
usageDisplay: boolean;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
4
46
|
/**
|
|
5
47
|
* Application settings
|
|
6
48
|
*
|
|
@@ -64,13 +106,12 @@ type ServerSettings = {
|
|
|
64
106
|
serverLanguage: string;
|
|
65
107
|
serverVersion: string;
|
|
66
108
|
serverFeatures: FeatureMap;
|
|
109
|
+
ai: AiSettingsSlice;
|
|
67
110
|
narrative: {
|
|
68
111
|
/** From `api/v2/settings/ai` narration.enabled */
|
|
69
112
|
isEnabled: boolean;
|
|
70
|
-
/**
|
|
71
|
-
|
|
72
|
-
/** Computed: unlimited (API sisenseAIEnabled or props) or credit-based narratives */
|
|
73
|
-
isSisenseAiEnabled: boolean;
|
|
113
|
+
/** Computed from `narrationUnified` and the unlimited or credit-based narrative entitlements. */
|
|
114
|
+
canGenerateNarrativeViaAI: boolean;
|
|
74
115
|
};
|
|
75
116
|
user: {
|
|
76
117
|
tenant: {
|
|
@@ -82,6 +123,23 @@ type ServerSettings = {
|
|
|
82
123
|
* @internal
|
|
83
124
|
*/
|
|
84
125
|
permissions: RoleManifest;
|
|
126
|
+
/** From `api/globals` `user.firstName` — for embedded UIs (e.g. assistant greeting). */
|
|
127
|
+
firstName?: string;
|
|
128
|
+
/** From `api/globals` `user.lastName`. */
|
|
129
|
+
lastName?: string;
|
|
130
|
+
/** From `api/globals` `user.email`. */
|
|
131
|
+
email?: string;
|
|
132
|
+
/** From `api/globals` `user.baseRoleName`. */
|
|
133
|
+
baseRoleName?: string;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Raw Fusion `designSettings` from `api/globals` (before palette / theme conversion).
|
|
137
|
+
* Use for CSS variable derivation that mirrors the main Fusion app; see also {@link ServerSettings.serverThemeSettings}.
|
|
138
|
+
*/
|
|
139
|
+
fusionDesignSettings: LegacyDesignSettings;
|
|
140
|
+
/** Subset of `globals.brand` needed by embedded chrome (e.g. documentation link). */
|
|
141
|
+
fusionBrand: {
|
|
142
|
+
documentationUrl: string | null;
|
|
85
143
|
};
|
|
86
144
|
};
|
|
87
145
|
/**
|
|
@@ -125,6 +125,8 @@ type AiAssistantFeature = Feature<'aiAssistant', {
|
|
|
125
125
|
nlqV3Enabled?: boolean;
|
|
126
126
|
isNlqV3Enabled?: boolean;
|
|
127
127
|
naturalResponseEnabled?: boolean;
|
|
128
|
+
queryDefinition?: boolean;
|
|
129
|
+
completionV2?: boolean;
|
|
128
130
|
sharedFormulasEnabled?: boolean;
|
|
129
131
|
aiAccessControl?: string;
|
|
130
132
|
quotaNotification?: boolean;
|
|
@@ -137,7 +137,6 @@ export type AppConfig = {
|
|
|
137
137
|
* Widgets that are configured using an older version of Jump To Dashboard, or via scripts, are not supported.
|
|
138
138
|
*
|
|
139
139
|
* Known limitations:
|
|
140
|
-
* - Jump To Dashboard is not currently supported for Pivot widgets.
|
|
141
140
|
* - Target dashboards are always opened in a popup window, options to open in new tab and new window are not supported.
|
|
142
141
|
* - Show 'Header' and 'Dashboards panel' options are not supported (only relevant to Fusion).
|
|
143
142
|
* - 'Reset filters after JTD' is not supported, since changes are never saved to the target dashboard using Compose SDK.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { CompleteThemeSettingsInternal, CustomContextProviderProps } from '../../../types';
|
|
3
3
|
/** @internal */
|
|
4
4
|
export type CustomThemeProviderProps = CustomContextProviderProps<{
|
|
5
|
-
themeSettings:
|
|
5
|
+
themeSettings: CompleteThemeSettingsInternal;
|
|
6
6
|
skipTracking?: boolean;
|
|
7
7
|
}>;
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompleteThemeSettingsInternal } from '../../../types';
|
|
2
2
|
export declare const DEFAULT_DIVIDER_COLOR = "#F2F2F2";
|
|
3
3
|
export declare const DEFAULT_DIVIDER_WIDTH = 4;
|
|
4
4
|
export declare const DEFAULT_DASHBOARD_BORDER_COLOR = "#D5D5D5";
|
|
@@ -19,4 +19,4 @@ export declare const DEFAULT_HYPERLINK_HOVER_COLOR = "#1FCCF3";
|
|
|
19
19
|
* @returns Theme settings object
|
|
20
20
|
* @internal
|
|
21
21
|
*/
|
|
22
|
-
export declare const getDefaultThemeSettings: (isDarkMode?: boolean) =>
|
|
22
|
+
export declare const getDefaultThemeSettings: (isDarkMode?: boolean) => CompleteThemeSettingsInternal;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { CompleteThemeSettingsInternal, ThemeConfig } from '../../../types';
|
|
3
3
|
export declare const ThemeContext: import("react").Context<{
|
|
4
|
-
themeSettings:
|
|
4
|
+
themeSettings: CompleteThemeSettingsInternal;
|
|
5
5
|
config?: ThemeConfig | undefined;
|
|
6
6
|
}>;
|
|
7
7
|
/**
|
|
@@ -12,6 +12,6 @@ export declare const ThemeContext: import("react").Context<{
|
|
|
12
12
|
* @sisenseInternal
|
|
13
13
|
*/
|
|
14
14
|
export declare const useThemeContext: () => {
|
|
15
|
-
themeSettings:
|
|
15
|
+
themeSettings: CompleteThemeSettingsInternal;
|
|
16
16
|
config?: ThemeConfig | undefined;
|
|
17
17
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompleteThemeSettingsInternal } from '../../../types';
|
|
2
2
|
/**
|
|
3
3
|
* Themable interface for styled components that require theme settings.
|
|
4
4
|
*/
|
|
5
5
|
export type Themable = {
|
|
6
|
-
theme:
|
|
6
|
+
theme: CompleteThemeSettingsInternal;
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompleteThemeSettingsInternal, ThemeOid, ThemeSettings } from '../../../types';
|
|
2
2
|
/**
|
|
3
3
|
* Returns the theme settings for the given theme OID or theme settings and error if it happened.
|
|
4
4
|
*
|
|
@@ -9,4 +9,4 @@ import { CompleteThemeSettings, ThemeOid, ThemeSettings } from '../../../types';
|
|
|
9
9
|
* @param userTheme Theme OID or theme settings object
|
|
10
10
|
* @returns Theme settings and error if it happened
|
|
11
11
|
*/
|
|
12
|
-
export declare function useThemeSettings(userTheme?: ThemeOid | ThemeSettings): [
|
|
12
|
+
export declare function useThemeSettings(userTheme?: ThemeOid | ThemeSettings): [CompleteThemeSettingsInternal, null] | [null, Error];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CompleteThemeSettings } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the resolved theme from the nearest {@link ThemeProvider}.
|
|
4
|
+
* Falls back to the default theme when no provider is present.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* const { palette, typography, widget } = useTheme();
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* @returns Resolved {@link CompleteThemeSettings}
|
|
12
|
+
* @group Contexts
|
|
13
|
+
*/
|
|
14
|
+
export declare const useTheme: () => CompleteThemeSettings;
|
|
@@ -8,7 +8,7 @@ import type { BasePluginInfo } from '../types';
|
|
|
8
8
|
*
|
|
9
9
|
* @sisenseInternal
|
|
10
10
|
*/
|
|
11
|
-
export interface WidgetPlugin<Props
|
|
11
|
+
export interface WidgetPlugin<Props extends CustomVisualizationProps = CustomVisualizationProps> extends BasePluginInfo {
|
|
12
12
|
/**
|
|
13
13
|
* The type of plugin
|
|
14
14
|
*/
|
|
@@ -56,8 +56,17 @@ export interface WidgetPlugin<Props = CustomVisualizationProps, StyleOptions = C
|
|
|
56
56
|
* Definition of the design panel for the custom widget
|
|
57
57
|
*/
|
|
58
58
|
designPanel?: {
|
|
59
|
-
Component?: DesignPanel<
|
|
59
|
+
Component?: DesignPanel<NonNullable<Props['styleOptions']>>;
|
|
60
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* The icon of the custom widget to be displayed in the widget selector
|
|
63
|
+
* @example
|
|
64
|
+
* ```tsx
|
|
65
|
+
* const MyWidgetIcon = () => <PieChartIcon />;
|
|
66
|
+
* ```
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
icon?: () => ReactNode;
|
|
61
70
|
/**
|
|
62
71
|
* Definition of the data panel for the custom widget
|
|
63
72
|
*/
|
|
@@ -118,16 +127,12 @@ export interface WidgetPlugin<Props = CustomVisualizationProps, StyleOptions = C
|
|
|
118
127
|
* Whether the items can be formatted
|
|
119
128
|
*/
|
|
120
129
|
canFormat?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Whether the items can be colored
|
|
132
|
+
*/
|
|
133
|
+
canColor?: boolean;
|
|
121
134
|
}[];
|
|
122
135
|
};
|
|
123
|
-
/**
|
|
124
|
-
* The icon of the custom widget to be displayed in the widget selector
|
|
125
|
-
* @example
|
|
126
|
-
* ```tsx
|
|
127
|
-
* const MyWidgetIcon = () => <PieChartIcon />;
|
|
128
|
-
* ```
|
|
129
|
-
*/
|
|
130
|
-
icon?: () => ReactNode;
|
|
131
136
|
};
|
|
132
137
|
};
|
|
133
138
|
}
|
|
@@ -139,7 +144,7 @@ export interface WidgetPlugin<Props = CustomVisualizationProps, StyleOptions = C
|
|
|
139
144
|
*
|
|
140
145
|
* @sisenseInternal
|
|
141
146
|
*/
|
|
142
|
-
export type AnyWidgetPlugin = WidgetPlugin<any
|
|
147
|
+
export type AnyWidgetPlugin = WidgetPlugin<any>;
|
|
143
148
|
/**
|
|
144
149
|
* Props passed to a user-defined custom visualization component.
|
|
145
150
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompleteThemeSettingsInternal, ThemeOid } from '../../types.js';
|
|
2
2
|
/**
|
|
3
|
-
* Legacy analog of
|
|
3
|
+
* Legacy analog of CompleteThemeSettingsInternal used in Sisense UI.
|
|
4
4
|
*/
|
|
5
5
|
export type LegacyDesignSettings = {
|
|
6
6
|
oid: ThemeOid;
|
|
@@ -88,11 +88,11 @@ export declare const LEGACY_DESIGN_TYPES: {
|
|
|
88
88
|
dark: string;
|
|
89
89
|
};
|
|
90
90
|
/**
|
|
91
|
-
* Converts legacy (used in Sisense UI) design settings and
|
|
91
|
+
* Converts legacy (used in Sisense UI) design settings and its palette object to CompleteThemeSettingsInternal.
|
|
92
92
|
*
|
|
93
93
|
* @param legacyDesignSettings - legacy design settings.
|
|
94
94
|
* @param legacyPalette - legacy palette object.
|
|
95
95
|
* @returns
|
|
96
96
|
*/
|
|
97
|
-
export declare function convertToThemeSettings(legacyDesignSettings: LegacyDesignSettings, legacyPalette: LegacyPalette, domainUrl: string):
|
|
97
|
+
export declare function convertToThemeSettings(legacyDesignSettings: LegacyDesignSettings, legacyPalette: LegacyPalette, domainUrl: string): CompleteThemeSettingsInternal;
|
|
98
98
|
export declare function getPaletteName(legacyDesignSettings: LegacyDesignSettings): string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
|
-
import type {
|
|
2
|
+
import type { CompleteThemeSettingsInternal, ThemeOid } from '../../types';
|
|
3
3
|
import { type LegacyPalette } from './legacy-design-settings';
|
|
4
4
|
/**
|
|
5
|
-
* Fetches theme settings from the Sisense instance and converts them to
|
|
5
|
+
* Fetches theme settings from the Sisense instance and converts them to CompleteThemeSettingsInternal.
|
|
6
6
|
*
|
|
7
7
|
* @param themeOid - Theme oid.
|
|
8
8
|
* @param httpClient - Sisense REST API client.
|
|
9
|
-
* @returns
|
|
9
|
+
* @returns CompleteThemeSettingsInternal from server.
|
|
10
10
|
* @internal
|
|
11
11
|
*/
|
|
12
|
-
export declare function getThemeSettingsByOid(themeOid: ThemeOid, httpClient: Pick<HttpClient, 'get' | 'url'>): Promise<
|
|
12
|
+
export declare function getThemeSettingsByOid(themeOid: ThemeOid, httpClient: Pick<HttpClient, 'get' | 'url'>): Promise<CompleteThemeSettingsInternal>;
|
|
13
13
|
export declare function getLegacyPalette(paletteName: string, httpClient: Pick<HttpClient, 'get'>): Promise<LegacyPalette>;
|
|
@@ -222,6 +222,9 @@ export declare const translation: {
|
|
|
222
222
|
distributeEqualWidth: string;
|
|
223
223
|
download: string;
|
|
224
224
|
csvFile: string;
|
|
225
|
+
excelFile: string;
|
|
226
|
+
repeatRowsRecommended: string;
|
|
227
|
+
mergeRows: string;
|
|
225
228
|
};
|
|
226
229
|
};
|
|
227
230
|
customWidgets: {
|
|
@@ -459,6 +462,6 @@ export declare const translation: {
|
|
|
459
462
|
*
|
|
460
463
|
* const customTranslationResources: Partial<TranslationDictionary> = {
|
|
461
464
|
* ```
|
|
462
|
-
* @
|
|
465
|
+
* @alpha
|
|
463
466
|
*/
|
|
464
467
|
export type TranslationDictionary = typeof translation;
|
|
@@ -4,7 +4,7 @@ export type { TranslationDictionary };
|
|
|
4
4
|
* A reference to the namespace of the translation resources.
|
|
5
5
|
* This namespace is used to access the translation resources in the i18next instance.
|
|
6
6
|
*
|
|
7
|
-
* @
|
|
7
|
+
* @alpha
|
|
8
8
|
*/
|
|
9
9
|
export declare const PACKAGE_NAMESPACE: "sdkUi";
|
|
10
10
|
export declare const resources: {
|
|
@@ -232,6 +232,9 @@ export declare const resources: {
|
|
|
232
232
|
distributeEqualWidth: string;
|
|
233
233
|
download: string;
|
|
234
234
|
csvFile: string;
|
|
235
|
+
excelFile: string;
|
|
236
|
+
repeatRowsRecommended: string;
|
|
237
|
+
mergeRows: string;
|
|
235
238
|
};
|
|
236
239
|
};
|
|
237
240
|
customWidgets: {
|
|
@@ -681,6 +684,9 @@ export declare const resources: {
|
|
|
681
684
|
distributeEqualWidth: string;
|
|
682
685
|
download: string;
|
|
683
686
|
csvFile: string;
|
|
687
|
+
excelFile: string;
|
|
688
|
+
repeatRowsRecommended: string;
|
|
689
|
+
mergeRows: string;
|
|
684
690
|
};
|
|
685
691
|
};
|
|
686
692
|
customWidgets: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompleteThemeSettingsInternal } from '../..';
|
|
2
2
|
export default function AiDisclaimer({ theme }: {
|
|
3
|
-
theme:
|
|
3
|
+
theme: CompleteThemeSettingsInternal;
|
|
4
4
|
}): import("react/jsx-runtime").JSX.Element;
|