@sisense/sdk-ui 2.27.0 → 2.29.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 +1693 -1339
- package/dist/analytics-composer.cjs +73 -73
- package/dist/analytics-composer.js +23 -17
- package/dist/apply-styled-options-to-query-CaP4IMrQ.js +6379 -0
- package/dist/apply-styled-options-to-query-D5D8pRl2.cjs +1 -0
- 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 +406 -406
- package/dist/index.js +23197 -22359
- package/dist/index.umd.js +719 -720
- 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 +9 -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/translate-dashboard-utils.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 +12 -3
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +29 -1
- 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/hooks/use-widget-updates-persistence.d.ts +27 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/deep-merge.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/types.d.ts +15 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/update-types.d.ts +51 -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/data.d.ts +0 -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/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-data/filter-and-aggregate-chart-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/types.d.ts +27 -23
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/utils.d.ts +4 -4
- 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/visualizations/core/query-definition/filter-to-readable-label.d.ts +14 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-definition.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-pill.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/truncate-pill-label.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/widgets/change-events.d.ts +6 -0
- 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 +20 -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 +15 -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 +43 -4
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +6 -0
- 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-track-widget-init.d.ts +44 -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/hooks/widget-entity-id.d.ts +30 -0
- package/dist/packages/sdk-ui/src/domains/widgets/hooks/widget-tracking-adapters.d.ts +41 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-style-utils.d.ts +31 -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 +29 -1
- 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 +9 -1
- package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +24 -11
- package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +1 -9
- package/dist/packages/sdk-ui/src/infra/app/types.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/contexts/sisense-context/sisense-context-provider.d.ts +1 -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/formatting/format-data-set.d.ts +21 -0
- package/dist/packages/sdk-ui/src/infra/formatting/format-date.d.ts +67 -0
- package/dist/packages/sdk-ui/src/infra/formatting/format-number.d.ts +24 -0
- package/dist/packages/sdk-ui/src/infra/formatting/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/infra/modules/build-module-graph.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/modules/build-module-registry.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/modules/core-module-providers-tree.d.ts +11 -0
- package/dist/packages/sdk-ui/src/infra/modules/core-module.d.ts +26 -0
- package/dist/packages/sdk-ui/src/infra/modules/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/modules/module-provider.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/modules/modules-context.d.ts +20 -0
- package/dist/packages/sdk-ui/src/infra/modules/types.d.ts +79 -0
- package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/types.d.ts +52 -2
- package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/widget-plugin-registry.d.ts +3 -3
- 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/constructs/dimensions/get-dimension-name.d.ts +9 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-to-json.d.ts +4 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/filters/get-filter-name.d.ts +10 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/filters/translate-filters-to-json.d.ts +3 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/get-query-element-summary.d.ts +23 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/measures/get-measure-name.d.ts +10 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/measures/translate-measures-to-json.d.ts +4 -3
- 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 +7 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-from-json.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-to-json.d.ts +4 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/adapters.d.ts +3 -5
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/index.d.ts +1 -1
- 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 +197 -7
- 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 +19 -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 +7 -23
- 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 +20 -2
- package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +3 -0
- package/dist/packages/sdk-ui/src/public-api/internal.d.ts +1 -1
- package/dist/packages/sdk-ui/src/public-api/public.d.ts +5 -2
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +2 -2
- package/dist/packages/sdk-ui/src/shared/components/loading-indicator.d.ts +2 -2
- package/dist/packages/sdk-ui/src/shared/components/loading-overlay.d.ts +1 -0
- package/dist/packages/sdk-ui/src/shared/hooks/use-element-height.d.ts +19 -0
- package/dist/packages/sdk-ui/src/shared/hooks/use-synced-state.d.ts +23 -2
- package/dist/packages/sdk-ui/src/shared/utils/filter-relations.d.ts +8 -0
- package/dist/packages/sdk-ui/src/shared/utils/gradient.d.ts +5 -0
- 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-7YG0uOzO.js +74 -0
- package/dist/{types-Cq47e5cy.cjs → types-DlYJ_DZ0.cjs} +1 -1
- package/dist/{use-hover-D_mBUhp9.cjs → use-hover-CANskYrn.cjs} +129 -130
- package/dist/{use-hover-CkmV6eu9.js → use-hover-Dju4Dcv3.js} +13079 -12635
- package/dist/{utils-Db3U6oHa.js → utils-BKRpWUGm.js} +1063 -1060
- package/dist/{utils-DM5vp1gw.cjs → utils-C4PIba42.cjs} +10 -10
- package/dist/{widget-composer-CZ0_bPXK.cjs → widget-composer-BXEyx308.cjs} +7 -7
- package/dist/{widget-composer-BiGVKN49.js → widget-composer-DRDw1oBF.js} +258 -206
- package/package.json +11 -8
- package/dist/apply-styled-options-to-query-BzMAmDnD.js +0 -5979
- package/dist/apply-styled-options-to-query-k10gkPCG.cjs +0 -1
- package/dist/dimensions-C3WSSE5j.js +0 -204
- package/dist/dimensions-huCJK0y6.cjs +0 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-scroll-persistence.d.ts +0 -16
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/with-navigator-scroll-save.d.ts +0 -10
- package/dist/types-CzqDZ83C.js +0 -74
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JaqlDataSourceForDto,
|
|
1
|
+
import { JaqlDataSourceForDto, MetadataItem } from '@sisense/sdk-data';
|
|
2
2
|
import type { DashboardByIdConfig } from '../../domains/dashboarding';
|
|
3
3
|
import { DashboardProps } from '../../domains/dashboarding/types.js';
|
|
4
4
|
import { ExecutePivotQueryParams, ExecuteQueryParams } from '../../domains/query-execution/index.js';
|
|
@@ -319,17 +319,6 @@ export type NlqTranslationInput<DataType, ContextType> = {
|
|
|
319
319
|
data: DataType;
|
|
320
320
|
context: ContextType;
|
|
321
321
|
};
|
|
322
|
-
/**
|
|
323
|
-
* Response JSON generated by the new NLQ API.
|
|
324
|
-
*
|
|
325
|
-
* @internal
|
|
326
|
-
*/
|
|
327
|
-
export type NlqResponseJSON = {
|
|
328
|
-
dimensions: JSONArray;
|
|
329
|
-
measures: JSONArray;
|
|
330
|
-
filters: JSONArray;
|
|
331
|
-
highlights?: JSONArray;
|
|
332
|
-
};
|
|
333
322
|
/**
|
|
334
323
|
* Data schema context for translation
|
|
335
324
|
*
|
|
@@ -342,21 +331,16 @@ export interface DataSchemaContext {
|
|
|
342
331
|
tables: NormalizedTable[];
|
|
343
332
|
}
|
|
344
333
|
/**
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
* @internal
|
|
348
|
-
*/
|
|
349
|
-
export type QueryInput = NlqTranslationInput<NlqResponseJSON, DataSchemaContext>;
|
|
350
|
-
/**
|
|
351
|
-
* Context information for error generation
|
|
334
|
+
* Context used when building translation errors (before message is attached).
|
|
352
335
|
*
|
|
353
336
|
* @internal
|
|
354
337
|
*/
|
|
355
338
|
export type NlqTranslationErrorContext = {
|
|
356
|
-
/**
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
339
|
+
/**
|
|
340
|
+
* Structural location in the JSON being translated, using pathPrefix notation.
|
|
341
|
+
* e.g. "widgets[0].dataOptions.category[0]" or "filters[0]"
|
|
342
|
+
*/
|
|
343
|
+
path: string;
|
|
360
344
|
/** The complete original input that caused the error */
|
|
361
345
|
input: unknown;
|
|
362
346
|
};
|
|
@@ -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
|
*
|
|
@@ -9,6 +9,7 @@ import { HighchartsOptions } from './domains/visualizations/core/chart-options-p
|
|
|
9
9
|
import type { ChartWidgetProps } from './domains/widgets/components/chart-widget/types';
|
|
10
10
|
import { FiltersMergeStrategy } from './domains/widgets/components/widget-by-id/types';
|
|
11
11
|
import { type AppConfig } from './infra/app/types';
|
|
12
|
+
import type { Module } from './infra/modules';
|
|
12
13
|
import type { Plugin } from './infra/plugins/types';
|
|
13
14
|
import { AreamapDataPoint, AreamapStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, BoxplotDataPoint, BoxplotStyleOptions, CalendarHeatmapDataPoint, CalendarHeatmapStyleOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ChartDataPoints, ChartStyleOptions, ChartType, CustomDrilldownResult, DataPoint, DrilldownOptions, DrilldownSelection, FunnelStyleOptions, IndicatorDataPoint, IndicatorRenderOptions, IndicatorStyleOptions, LineStyleOptions, MenuAlignment, MenuItemSection, MenuPosition, PieStyleOptions, PivotTableDataPoint, PivotTableDrilldownOptions, PivotTableStyleOptions, PolarStyleOptions, RegularChartStyleOptions, RegularChartType, ScatterDataPoint, ScattermapDataPoint, ScattermapStyleOptions, ScatterStyleOptions, StackableStyleOptions, StreamgraphStyleOptions, SunburstStyleOptions, TableStyleOptions, TabularChartStyleOptions, TextWidgetDataPoint, ThemeConfig, ThemeOid, ThemeSettings, TreemapStyleOptions, WidgetByIdStyleOptions } from './types';
|
|
14
15
|
export type { TabberButtonsWidgetProps } from './domains/widgets/components/tabber-buttons-widget/types';
|
|
@@ -167,6 +168,14 @@ export interface SisenseContextProviderProps {
|
|
|
167
168
|
* @internal
|
|
168
169
|
*/
|
|
169
170
|
plugins?: Plugin[];
|
|
171
|
+
/**
|
|
172
|
+
* Array of modules to register.
|
|
173
|
+
*
|
|
174
|
+
* @category Sisense App
|
|
175
|
+
*
|
|
176
|
+
* @alpha
|
|
177
|
+
*/
|
|
178
|
+
modules?: Module[];
|
|
170
179
|
}
|
|
171
180
|
/**
|
|
172
181
|
* Props for {@link ExecuteQuery} component.
|
|
@@ -622,6 +631,9 @@ export interface BaseChartProps extends BaseChartEventProps {
|
|
|
622
631
|
* NOTE that the filter dimensions used in highlights must match those defined in the
|
|
623
632
|
* `dataOptions` of the chart. Otherwise, the filters will be applied as regular slice filters.
|
|
624
633
|
*
|
|
634
|
+
* NOTE that highlight filters in the "Include all" state are silently omitted from the
|
|
635
|
+
* query. To clear a highlight, remove it from the array.
|
|
636
|
+
*
|
|
625
637
|
* (1) Array of {@link Filter} returned from filter factory functions, such as
|
|
626
638
|
* {@link @sisense/sdk-data!filterFactory.greaterThan | `greaterThan()`} and {@link @sisense/sdk-data!filterFactory.members | `members()`}.
|
|
627
639
|
*
|
|
@@ -971,7 +983,10 @@ export interface PivotTableProps {
|
|
|
971
983
|
*/
|
|
972
984
|
filters?: Filter[] | FilterRelations;
|
|
973
985
|
/**
|
|
974
|
-
* Filters that will highlight query results
|
|
986
|
+
* Filters that will highlight query results.
|
|
987
|
+
*
|
|
988
|
+
* NOTE that highlight filters in the "Include all" state are silently omitted from the
|
|
989
|
+
* query. To clear a highlight, remove it from the array.
|
|
975
990
|
*
|
|
976
991
|
* @category Data
|
|
977
992
|
*/
|
|
@@ -1094,7 +1109,10 @@ export interface WidgetByIdProps extends Omit<ChartWidgetProps, 'dataSource' | '
|
|
|
1094
1109
|
*/
|
|
1095
1110
|
filters?: Filter[];
|
|
1096
1111
|
/**
|
|
1097
|
-
* Highlight filters that will highlight results that pass filter criteria
|
|
1112
|
+
* Highlight filters that will highlight results that pass filter criteria.
|
|
1113
|
+
*
|
|
1114
|
+
* NOTE that highlight filters in the "Include all" state are silently omitted from the
|
|
1115
|
+
* query. To clear a highlight, remove it from the array.
|
|
1098
1116
|
*
|
|
1099
1117
|
* @category Data
|
|
1100
1118
|
*/
|
|
@@ -9,4 +9,7 @@ export type { ThemeConfig } from '../types';
|
|
|
9
9
|
export { type TranslationDictionary, PACKAGE_NAMESPACE as translationNamespace, } from '../infra/translation/resources';
|
|
10
10
|
export { CascadingFilterTile, type CascadingFilterTileProps, } from '../domains/filters/components/cascading-filter-tile';
|
|
11
11
|
export { CustomFilterTile, type CustomFilterTileProps, } from '../domains/filters/components/custom-filter-tile';
|
|
12
|
+
export { useSyncedState, type UseSyncedStateOptions } from '../shared/hooks/use-synced-state';
|
|
12
13
|
export { isIndicatorRenderOptions, isHighchartsOptions, type HighchartsOptions, type CalendarHeatmapChartEventProps, } from '../props';
|
|
14
|
+
export type { Module, ModuleRequirement } from '../infra/modules/types.js';
|
|
15
|
+
export { useModuleApiRegistry } from '../infra/modules/modules-context.js';
|
|
@@ -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
|
/**
|
|
@@ -93,7 +94,9 @@ export * as dashboardModelTranslator from '../domains/dashboarding/dashboard-mod
|
|
|
93
94
|
export * as dashboardHelpers from '../domains/dashboarding/dashboard-helpers';
|
|
94
95
|
export type { EmptyObject } from '../shared/utils/utility-types';
|
|
95
96
|
export { useFetch, type RequestConfig, type UseQueryResult } from '../shared/hooks/use-fetch';
|
|
96
|
-
export type { StyledColumn, SeriesStyleOptions, StyledMeasureColumn, CartesianChartDataOptions, CategoricalChartDataOptions, IndicatorChartDataOptions, ScatterChartDataOptions, AreamapChartDataOptions, CalendarHeatmapChartDataOptions, TableDataOptions, TabularChartDataOptions, PivotTableDataOptions, ScattermapLocationLevel, ScattermapChartDataOptions, BoxWhiskerType, BoxplotChartDataOptions, BoxplotChartCustomDataOptions, AreaRangeMeasureColumn, RangeChartDataOptions, ChartDataOptions, RegularChartDataOptions, } from '../domains/visualizations/core/chart-data-options/types';
|
|
97
|
+
export type { StyledColumn, SeriesStyleOptions, StyledMeasureColumn, CartesianChartDataOptions, CategoricalChartDataOptions, IndicatorChartDataOptions, ScatterChartDataOptions, AreamapChartDataOptions, CalendarHeatmapChartDataOptions, TableDataOptions, TabularChartDataOptions, PivotTableDataOptions, ScattermapLocationLevel, ScattermapChartDataOptions, BoxWhiskerType, BoxplotChartDataOptions, BoxplotChartCustomDataOptions, AreaRangeMeasureColumn, RangeChartDataOptions, ChartDataOptions, RegularChartDataOptions, CommonDataOptions, } from '../domains/visualizations/core/chart-data-options/types';
|
|
98
|
+
export { formatNumber, formatDate, getDefaultDateFormat, formatDataSet } from '../infra/formatting';
|
|
99
|
+
export type { FormatDateOptions, FormatDataSetOptions } from '../infra/formatting';
|
|
97
100
|
export type { TabberButtonsWidgetProps, SisenseContextProviderProps, ExecuteQueryProps, ThemeProviderProps, BeforeRenderHandler, IndicatorBeforeRenderHandler, ChartDataPointsEventHandler, DataPointsEventHandler, DataPointEventHandler, ScatterDataPointEventHandler, ScatterDataPointsEventHandler, AreamapDataPointEventHandler, ScattermapDataPointEventHandler, BoxplotDataPointEventHandler, IndicatorDataPointEventHandler, CalendarHeatmapDataPointEventHandler, CalendarHeatmapDataPointsEventHandler, PivotTableDataPointEventHandler, ChartEventProps, ChartProps, AreaChartProps, StreamgraphChartProps, BarChartProps, ColumnChartProps, FunnelChartProps, LineChartProps, PieChartProps, PolarChartProps, IndicatorChartProps, TableProps, PivotTableProps, ScatterChartProps, WidgetByIdProps, ExecuteQueryByWidgetIdProps, TreemapChartProps, SunburstChartProps, BoxplotChartProps, ScattermapChartProps, AreamapChartProps, AreaRangeChartProps, ContextMenuProps, DrilldownBreadcrumbsProps, DrilldownWidgetConfig, DrilldownWidgetProps, CalendarHeatmapChartProps, } from '../props';
|
|
98
101
|
export type { AutoZoomNavigatorScrollerLocation } from '../domains/widgets/components/widget-by-id/types';
|
|
99
102
|
export type { SortDirection, PivotRowsSort, AppConfig, DateConfig, CalendarDayOfWeek, IndicatorComponents, ScatterMarkerSize, LegendPosition, Coordinates, TableColorOptions, IndicatorRenderOptions, GeoDataElement, RawGeoDataElement, CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, CalendarHeatmapChartType, TableType, TableChartType, RangeChartType, TextStyle, DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, AreaSubtype, AreaRangeSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, MonthOfYear, DayOfWeek, DateLevel, TabberButtonsWidgetStyleOptions, TabberButtonsWidgetCustomOptions, Color, ColorPaletteTheme, Navigator, LineWidth, DashStyle, EndCapType, LineOptions, Markers, X2Title, SeriesLabelsTextStyle, SeriesLabelsBase, SeriesLabelsAligning, SeriesLabels, TotalLabelsTextStyle, TotalLabels, LegendTitleOptions, LegendItemsOptions, LegendSymbolsOptions, LegendOptions, Legend, Labels, AxisLabel, Convolution, DataLimits, LineStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, StreamgraphStyleOptions, StackableStyleOptions, PiePercentageLabels, PieSeriesLabels, PieStyleOptions, FunnelSeriesLabels, FunnelStyleOptions, PolarStyleOptions, IndicatorStyleOptions, TableStyleOptions, TabularChartStyleOptions, PivotTableStyleOptions, NumericSimpleIndicatorStyleOptions, NumericBarIndicatorStyleOptions, GaugeIndicatorStyleOptions, ScatterSeriesLabels, ScatterStyleOptions, TreemapSeriesLabels, TreemapStyleOptions, SunburstSeriesLabelsBase, SunburstSeriesLabels, SunburstStyleOptions, BoxplotStyleOptions, AreamapType, AreamapStyleOptions, ScattermapMarkers, ScattermapStyleOptions, CalendarHeatmapCellLabels, CalendarHeatmapSubtype, CalendarHeatmapStyleOptions, CalendarHeatmapViewType, ChartStyleOptions, RegularChartStyleOptions, ValueToColorMap, MultiColumnValueToColorMap, ChartType, RegularChartType, SeriesChartType, DecimalScale, NumberFormatConfig, ThemeOid, ChartThemeSettings, AiChatThemeSettings, ThemeSettingsFontSource, ThemeSettingsFont, FontsLoaderSettings, TypographyThemeSettings, GeneralThemeSettings, SpaceSizes, RadiusSizes, ShadowsTypes, AlignmentTypes, WidgetThemeSettings, FilterThemeSettings, ThemeSettings, WidgetStyleOptions, WidgetContainerStyleOptions, WidgetByIdStyleOptions, ChartWidgetStyleOptions, PivotTableWidgetStyleOptions, TextWidgetStyleOptions, CustomWidgetStyleOptions, DrilldownOptions, PivotTableDrilldownOptions, PivotTableSelectableDrilldownOptions, PivotTableNonSelectableDrilldownOptions, DrilldownSelection, DataOptionLocation, ChartDataPoints, ChartDataPoint, DataPoint, DataPointEntry, BasicDataPointEntry, AttributeDataPointEntry, MeasureDataPointEntry, ScatterDataPoint, BoxplotDataPoint, IndicatorDataPoint, CalendarHeatmapDataPoint, PivotTableDataPoint, AreamapDataPoint, ScattermapDataPoint, CustomWidgetDataPoint, CustomWidgetDataPointEventHandler, CustomWidgetDataPointContextMenuHandler, CustomWidgetDataPointsEventHandler, CustomWidgetEventProps, AbstractDataPointWithEntries, MenuPosition, MenuItemSection, CustomDrilldownResult, LoadingIndicatorConfig, GenericDataOptions, NestedTranslationResources, CustomTranslationObject, TranslationConfig, } from '../types';
|
|
@@ -14,13 +14,13 @@ 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';
|
|
21
21
|
export type { QuotaNotificationOptions, QuotaApiResponse, QuotaState, } from '../shared/hooks/use-quota-notification.js';
|
|
22
22
|
export type { Plugin } from '../infra/plugins/types.js';
|
|
23
|
-
export type { WidgetPlugin, CustomVisualization, CustomVisualizationProps, CustomVisualizationStyleOptions, CustomVisualizationEventProps, CustomVisualizationDataPoint, CustomVisualizationDataPointEventHandler, CustomVisualizationDataPointContextMenuHandler, CustomVisualizationDataPointsEventHandler, DesignPanelProps, DesignPanel, } from '../infra/plugins/widget-plugins/types.js';
|
|
23
|
+
export type { WidgetPlugin, CustomVisualization, CustomVisualizationProps, VisualizationStateUpdate, CustomVisualizationStyleOptions, CustomVisualizationEventProps, CustomVisualizationDataPoint, CustomVisualizationDataPointEventHandler, CustomVisualizationDataPointContextMenuHandler, CustomVisualizationDataPointsEventHandler, DesignPanelProps, DesignPanel, } from '../infra/plugins/widget-plugins/types.js';
|
|
24
24
|
export { LoadingIndicator } from '../shared/components/loading-indicator.js';
|
|
25
25
|
export { DataSchemaBrowser } from '../domains/data-browser/data-schema-browser/data-schema-browser.js';
|
|
26
26
|
export { type NarrativeQueryParams } from '../domains/narrative/core/build-narrative-request.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;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Observes an HTML element's height via `ResizeObserver` and reports the latest
|
|
3
|
+
* measured height in CSS pixels.
|
|
4
|
+
*
|
|
5
|
+
* Returns a callback ref to attach to the target element and the current height.
|
|
6
|
+
* Height is `0` while no element is attached. The observer is re-bound when the
|
|
7
|
+
* attached node changes and disconnected on unmount.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const { ref, height } = useElementHeight<HTMLDivElement>();
|
|
12
|
+
* return <div ref={ref}>{height}px</div>;
|
|
13
|
+
* ```
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare function useElementHeight<T extends HTMLElement = HTMLElement>(): {
|
|
17
|
+
ref: (node: T | null) => void;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Options for {@link useSyncedState}.
|
|
4
|
+
*
|
|
5
|
+
* @alpha
|
|
6
|
+
*/
|
|
7
|
+
export type UseSyncedStateOptions<T> = {
|
|
3
8
|
/**
|
|
4
9
|
* A callback function that is triggered when the state is updated via the local setter,
|
|
5
10
|
* but not through synchronization with `syncValue`.
|
|
@@ -14,6 +19,22 @@ type UseSyncedStateOptions<T> = {
|
|
|
14
19
|
/**
|
|
15
20
|
* A custom React hook that behaves like the regular `useState`, but also synchronizes the state
|
|
16
21
|
* with an external `syncValue`.
|
|
22
|
+
*
|
|
23
|
+
* @param syncValue - The external value to synchronize with. When this value changes (as
|
|
24
|
+
* determined by `syncCompareFn`), the local state is updated to match it.
|
|
25
|
+
* @param options - Optional configuration object.
|
|
26
|
+
* @param options.onLocalStateChange - Callback invoked whenever the local state is updated via
|
|
27
|
+
* the returned setter (not triggered by external `syncValue` synchronization).
|
|
28
|
+
* @param options.syncCompareFn - Custom equality function used to detect changes in `syncValue`.
|
|
29
|
+
* Defaults to a deep equality check via `isEqual` from lodash-es. See {@link UseSyncedStateOptions}.
|
|
30
|
+
* @returns A tuple of `[localState, setState]` — the current local state and a setter that
|
|
31
|
+
* both updates state and fires `onLocalStateChange`.
|
|
32
|
+
* @example
|
|
33
|
+
* ```tsx
|
|
34
|
+
* const [localState, setLocalState] = useSyncedState(externalValue, {
|
|
35
|
+
* onLocalStateChange: (s) => console.log('local update', s),
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
* @alpha
|
|
17
39
|
*/
|
|
18
40
|
export declare function useSyncedState<T>(syncValue: T, { onLocalStateChange, syncCompareFn }?: UseSyncedStateOptions<T>): [T, Dispatch<SetStateAction<T>>];
|
|
19
|
-
export {};
|
|
@@ -9,6 +9,14 @@ export declare enum FiltersMergeStrategyEnum {
|
|
|
9
9
|
CODE_ONLY = "codeOnly"
|
|
10
10
|
}
|
|
11
11
|
export type FiltersMergeStrategy = `${FiltersMergeStrategyEnum}`;
|
|
12
|
+
/**
|
|
13
|
+
* Returns true if any node in the filter-relations tree uses an OR operator.
|
|
14
|
+
* Used to decide whether to show the AND/OR Formula tile — AND-only trees are the default
|
|
15
|
+
* behavior and don't warrant a visible indicator.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export declare function hasOrOperator(relations: FilterRelationsRules): boolean;
|
|
12
20
|
/**
|
|
13
21
|
* Textual representation of filter relations for debugging purposes.
|
|
14
22
|
* Returns string like "(([Gender] AND [Country]) OR [Condition])".
|
|
@@ -178,6 +178,7 @@ export type GradientColor = LinearGradientColor | RadialGradientColor;
|
|
|
178
178
|
*
|
|
179
179
|
* @param value - The value to check
|
|
180
180
|
* @returns True if the value is a linear gradient
|
|
181
|
+
* @group Styling
|
|
181
182
|
*/
|
|
182
183
|
export declare const isLinearGradient: (value: any) => value is LinearGradientColor;
|
|
183
184
|
/**
|
|
@@ -185,6 +186,7 @@ export declare const isLinearGradient: (value: any) => value is LinearGradientCo
|
|
|
185
186
|
*
|
|
186
187
|
* @param value - The value to check
|
|
187
188
|
* @returns True if the value is a radial gradient
|
|
189
|
+
* @group Styling
|
|
188
190
|
*/
|
|
189
191
|
export declare const isRadialGradient: (value: any) => value is RadialGradientColor;
|
|
190
192
|
/**
|
|
@@ -192,6 +194,7 @@ export declare const isRadialGradient: (value: any) => value is RadialGradientCo
|
|
|
192
194
|
*
|
|
193
195
|
* @param value - The value to check
|
|
194
196
|
* @returns True if the value is a gradient
|
|
197
|
+
* @group Styling
|
|
195
198
|
*/
|
|
196
199
|
export declare const isGradient: (value: any) => value is GradientColor;
|
|
197
200
|
/**
|
|
@@ -315,6 +318,7 @@ export declare const RadialGradientPresets: {
|
|
|
315
318
|
* ]
|
|
316
319
|
* );
|
|
317
320
|
* ```
|
|
321
|
+
* @group Styling
|
|
318
322
|
*/
|
|
319
323
|
export declare const createLinearGradient: (direction: LinearGradientDirection, stops: readonly GradientStop[]) => LinearGradientColor;
|
|
320
324
|
/**
|
|
@@ -334,6 +338,7 @@ export declare const createLinearGradient: (direction: LinearGradientDirection,
|
|
|
334
338
|
* ]
|
|
335
339
|
* );
|
|
336
340
|
* ```
|
|
341
|
+
* @group Styling
|
|
337
342
|
*/
|
|
338
343
|
export declare const createRadialGradient: (center: RadialGradientConfig, stops: readonly GradientStop[]) => RadialGradientColor;
|
|
339
344
|
/**
|
|
@@ -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?: {
|