@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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type DataSource } from '@sisense/sdk-data';
|
|
2
|
+
import type { ChartDataOptions, PivotTableDataOptions } from '../../../domains/visualizations/core/chart-data-options/types';
|
|
3
|
+
import type { GenericDataOptions } from '../../../types';
|
|
4
|
+
import type { WidgetType } from '../components/widget/types';
|
|
5
|
+
/** Union of every widget's `dataOptions` shape (chart, pivot, custom). */
|
|
6
|
+
type WidgetDataOptions = ChartDataOptions | PivotTableDataOptions | GenericDataOptions;
|
|
7
|
+
/**
|
|
8
|
+
* Resolves a stable, unique `entityId` for a widget tracking event.
|
|
9
|
+
*
|
|
10
|
+
* Prefers the widget's own `id` (the Fusion widget OID when loaded via `WidgetById` /
|
|
11
|
+
* `DashboardById`, or the user-supplied id when composed). When no id is available — e.g. a
|
|
12
|
+
* standalone `<ChartWidget>` — it falls back to a deterministic hash of the widget's identity:
|
|
13
|
+
* its type, name, title, the column names of its `dataOptions`, and its data source. Two
|
|
14
|
+
* structurally identical standalone widgets therefore resolve to the same id, which is the
|
|
15
|
+
* desired behavior for adoption tracking. The fallback is prefixed with `hash:` so downstream
|
|
16
|
+
* consumers can tell a generated identifier apart from a real widget id/OID.
|
|
17
|
+
*
|
|
18
|
+
* Typed with a generic + intersection so callers pass their concrete widget prop type while the
|
|
19
|
+
* optional `id` / `dataOptions` / `dataSource` are read uniformly (e.g. `TextWidgetProps` declares
|
|
20
|
+
* none of them).
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export declare const getWidgetEntityId: <P extends object>(props: P & {
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
title?: string | undefined;
|
|
27
|
+
dataOptions?: WidgetDataOptions | undefined;
|
|
28
|
+
dataSource?: DataSource | undefined;
|
|
29
|
+
}, widgetType: WidgetType, widgetName: string) => string;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ChartWidgetProps } from '../../../domains/widgets/components/chart-widget/types';
|
|
2
|
+
import type { CustomWidgetProps } from '../../../domains/widgets/components/custom-widget/types';
|
|
3
|
+
/**
|
|
4
|
+
* Resolves the `widgetName` tracking field for a chart widget — the visualization subtype
|
|
5
|
+
* (e.g. `'line'`, `'column'`, `'pie'`, `'streamgraph'`).
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare const getChartWidgetName: (props: Pick<ChartWidgetProps, 'chartType'>) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Resolves the `widgetName` tracking field for a pivot table widget.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare const getPivotWidgetName: () => string;
|
|
16
|
+
/**
|
|
17
|
+
* Resolves the `widgetName` tracking field for a text widget.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export declare const getTextWidgetName: () => string;
|
|
22
|
+
/**
|
|
23
|
+
* Resolves the `widgetName` tracking field for a custom widget — the registered plugin name
|
|
24
|
+
* (e.g. `'my-org-bullet-chart'`).
|
|
25
|
+
*
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export declare const getCustomWidgetName: (props: Pick<CustomWidgetProps, 'customWidgetType'>) => string;
|
|
29
|
+
/**
|
|
30
|
+
* Reads the widget's user-facing title from props if present, otherwise `null`.
|
|
31
|
+
*
|
|
32
|
+
* Typed with a generic + intersection so callers preserve their concrete widget prop type
|
|
33
|
+
* (`ChartWidgetProps`, `PivotTableWidgetProps`, …) while making the contract — "I read an
|
|
34
|
+
* optional `title`" — explicit. The intersection sidesteps the weak-type heuristic that
|
|
35
|
+
* would otherwise reject `TextWidgetProps`, which declares no `title`.
|
|
36
|
+
*
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
export declare const getWidgetTitle: <P extends object>(props: P & {
|
|
40
|
+
title?: string | undefined;
|
|
41
|
+
}) => string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompleteThemeSettingsInternal, WidgetContainerStyleOptions } from '../../../types';
|
|
2
2
|
export declare enum WidgetCornerRadius {
|
|
3
3
|
'None' = "",
|
|
4
4
|
'Large' = "30px",
|
|
@@ -11,4 +11,33 @@ export declare enum WidgetSpaceAround {
|
|
|
11
11
|
'Medium' = "10px",
|
|
12
12
|
'Small' = "5px"
|
|
13
13
|
}
|
|
14
|
-
export declare const getShadowValue: (styleOptions: WidgetContainerStyleOptions | undefined, themeSettings:
|
|
14
|
+
export declare const getShadowValue: (styleOptions: WidgetContainerStyleOptions | undefined, themeSettings: CompleteThemeSettingsInternal) => string;
|
|
15
|
+
/**
|
|
16
|
+
* Resolves the effective "space around" value, in pixels, that the widget container applies
|
|
17
|
+
* as padding on each side. Reads from the widget's style options first, then falls back to
|
|
18
|
+
* the theme's widget settings.
|
|
19
|
+
*
|
|
20
|
+
* @param styleOptions - The widget container style options.
|
|
21
|
+
* @param themeSettings - The complete theme settings.
|
|
22
|
+
* @returns The space around value in pixels (0 when unset or "None").
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getSpaceAroundPx: (styleOptions: WidgetContainerStyleOptions | undefined, themeSettings: CompleteThemeSettingsInternal) => number;
|
|
26
|
+
/**
|
|
27
|
+
* Calculates the total non-content vertical space, in pixels, that the widget container reserves —
|
|
28
|
+
* the header (when visible) plus the top and bottom "space around" padding.
|
|
29
|
+
*
|
|
30
|
+
* Auto-sized widget content must add this overhead to its measured content height so that the
|
|
31
|
+
* visible content area (after the container subtracts its padding and header) matches the
|
|
32
|
+
* content's intended height. Without it, the bottom of the content is clipped by the container's
|
|
33
|
+
* `overflow: hidden`.
|
|
34
|
+
*
|
|
35
|
+
* @param options - The overhead height options.
|
|
36
|
+
* @returns The total overhead height in pixels.
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
export declare const getWidgetOverheadHeight: ({ styleOptions, themeSettings, hasHeader, }: {
|
|
40
|
+
styleOptions: WidgetContainerStyleOptions | undefined;
|
|
41
|
+
themeSettings: CompleteThemeSettingsInternal;
|
|
42
|
+
hasHeader: boolean;
|
|
43
|
+
}) => number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
2
|
import { AppSettings } from '../../../infra/app/settings/settings';
|
|
3
|
-
import {
|
|
3
|
+
import { CompleteThemeSettingsInternal } from '../../../types';
|
|
4
4
|
import { WidgetModel } from './widget-model';
|
|
5
5
|
/**
|
|
6
6
|
* Retrieves a widget model by its OID.
|
|
@@ -13,4 +13,4 @@ import { WidgetModel } from './widget-model';
|
|
|
13
13
|
* @returns The widget model
|
|
14
14
|
* @internal
|
|
15
15
|
*/
|
|
16
|
-
export declare function getWidgetModel(httpClient: HttpClient, dashboardOid: string, widgetOid: string, themeSettings?:
|
|
16
|
+
export declare function getWidgetModel(httpClient: HttpClient, dashboardOid: string, widgetOid: string, themeSettings?: CompleteThemeSettingsInternal, appSettings?: AppSettings): Promise<WidgetModel>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AreamapChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, IndicatorChartDataOptions, PivotTableDataOptions, ScatterChartDataOptions, ScattermapChartDataOptions, TableDataOptionsInternal } from '../../../../domains/visualizations/core/chart-data-options/types.js';
|
|
1
|
+
import { AreamapChartDataOptions, BoxplotChartDataOptions, CalendarHeatmapChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, IndicatorChartDataOptions, PivotTableDataOptions, ScatterChartDataOptions, ScattermapChartDataOptions, TableDataOptionsInternal } from '../../../../domains/visualizations/core/chart-data-options/types.js';
|
|
2
2
|
import { Panel } from '../../../../domains/widgets/components/widget-by-id/types.js';
|
|
3
3
|
import type { GenericDataOptions } from '../../../../types.js';
|
|
4
4
|
import { ScattermapStyleOptions } from '../../../../types.js';
|
|
@@ -169,6 +169,34 @@ export declare function toScattermapPanels(dataOptions: ScattermapChartDataOptio
|
|
|
169
169
|
* @internal
|
|
170
170
|
*/
|
|
171
171
|
export declare function toAreamapPanels(dataOptions: AreamapChartDataOptions): Panel[];
|
|
172
|
+
/**
|
|
173
|
+
* Builds DTO panels for a boxplot chart widget. Emits `category` (0 or 1 attribute)
|
|
174
|
+
* and `value` (the single target numeric attribute, treated as an attribute — not a
|
|
175
|
+
* measure — to match the inverse read in `extractBoxplotChartDataOptions`). The
|
|
176
|
+
* derived box/whisker measures live on `style.whisker` rather than on panels, so
|
|
177
|
+
* they are written by {@link toBoxplotWidgetStyle} instead.
|
|
178
|
+
*
|
|
179
|
+
* @param dataOptions - Boxplot chart data options from the WidgetModel
|
|
180
|
+
* @returns Fusion panels in fixed order: category, value
|
|
181
|
+
* @internal
|
|
182
|
+
*/
|
|
183
|
+
export declare function toBoxplotPanels(dataOptions: BoxplotChartDataOptions): Panel[];
|
|
184
|
+
/**
|
|
185
|
+
* Builds DTO panels for a calendar-heatmap widget. The Fusion `heatmap` manifest declares
|
|
186
|
+
* `date` (single attribute) and `color` (single measure) panels — both are always emitted,
|
|
187
|
+
* matching the inverse read in {@link extractCaledarHeatmapChartDataOptions}: an empty
|
|
188
|
+
* `items: []` array is written when a slot has no column so Fusion's renderer can locate
|
|
189
|
+
* each declared panel by name.
|
|
190
|
+
*
|
|
191
|
+
* Note: the DTO panel name for the measure slot is `color`, not `value` — the SDK's
|
|
192
|
+
* {@link CalendarHeatmapChartDataOptions.value} is read from / written to the panel named
|
|
193
|
+
* `color`.
|
|
194
|
+
*
|
|
195
|
+
* @param dataOptions - Calendar heatmap chart data options from the WidgetModel
|
|
196
|
+
* @returns Fusion panels: date, color
|
|
197
|
+
* @internal
|
|
198
|
+
*/
|
|
199
|
+
export declare function toCalendarHeatmapPanels(dataOptions: CalendarHeatmapChartDataOptions): Panel[];
|
|
172
200
|
/**
|
|
173
201
|
* Builds DTO panels for a plugin / custom widget. Each key in {@link GenericDataOptions}
|
|
174
202
|
* becomes one panel; every Column is normalised then converted to a JAQL panel item via
|
|
@@ -10,7 +10,7 @@ import { WidgetDto } from '../../../../domains/widgets/components/widget-by-id/t
|
|
|
10
10
|
import { WidgetProps } from '../../../../domains/widgets/components/widget/types';
|
|
11
11
|
import { AppSettings } from '../../../../infra/app/settings/settings.js';
|
|
12
12
|
import { ChartProps, PivotTableProps, TableProps } from '../../../../props';
|
|
13
|
-
import {
|
|
13
|
+
import { CompleteThemeSettingsInternal } from '../../../../types.js';
|
|
14
14
|
import { WidgetModel } from '../widget-model';
|
|
15
15
|
/**
|
|
16
16
|
* Translates a {@link WidgetModel} to the parameters for executing a query for the widget.
|
|
@@ -160,7 +160,7 @@ export declare function toJtdConfig(widgetModel: WidgetModel): JumpToDashboardCo
|
|
|
160
160
|
* @returns The widget model
|
|
161
161
|
* @internal
|
|
162
162
|
*/
|
|
163
|
-
export declare function fromWidgetDto(widgetDto: WidgetDto, themeSettings?:
|
|
163
|
+
export declare function fromWidgetDto(widgetDto: WidgetDto, themeSettings?: CompleteThemeSettingsInternal, appSettings?: AppSettings): WidgetModel;
|
|
164
164
|
/**
|
|
165
165
|
* Creates a {@link WidgetModel} from a {@link ChartWidgetProps}.
|
|
166
166
|
*
|
|
@@ -212,4 +212,4 @@ export declare function fromWidgetProps(widgetProps: WidgetProps): WidgetModel;
|
|
|
212
212
|
*
|
|
213
213
|
* @sisenseInternal
|
|
214
214
|
*/
|
|
215
|
-
export declare function toWidgetDto(widgetModel: WidgetModel, dataSource?: JaqlDataSourceForDto, themeSettings?:
|
|
215
|
+
export declare function toWidgetDto(widgetModel: WidgetModel, dataSource?: JaqlDataSourceForDto, themeSettings?: CompleteThemeSettingsInternal, appSettings?: AppSettings): WidgetDto;
|
|
@@ -25,6 +25,7 @@ type GetDashboardsOptions = {
|
|
|
25
25
|
type GetDashboardOptions = {
|
|
26
26
|
fields?: string[];
|
|
27
27
|
sharedMode?: boolean;
|
|
28
|
+
adminAccess?: boolean;
|
|
28
29
|
};
|
|
29
30
|
export declare class RestApi {
|
|
30
31
|
private httpClient;
|
|
@@ -55,7 +56,7 @@ export declare class RestApi {
|
|
|
55
56
|
/**
|
|
56
57
|
* Get a specific dashboard using the legacy API version
|
|
57
58
|
*/
|
|
58
|
-
getDashboardLegacy: (dashboardOid: string) => Promise<DashboardDto | undefined>;
|
|
59
|
+
getDashboardLegacy: (dashboardOid: string, options?: GetDashboardOptions) => Promise<DashboardDto | undefined>;
|
|
59
60
|
/**
|
|
60
61
|
* Get all widgets of a specific dashboard
|
|
61
62
|
*/
|
|
@@ -123,6 +124,13 @@ export declare class RestApi {
|
|
|
123
124
|
count?: number;
|
|
124
125
|
searchValue?: string;
|
|
125
126
|
}) => Promise<DataSourceField[] | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* Export JAQL query results as an XLSX file (binary response).
|
|
129
|
+
*
|
|
130
|
+
* @param body - JSON payload for the JAQL export API
|
|
131
|
+
* @returns XLSX file as a {@link Blob}
|
|
132
|
+
*/
|
|
133
|
+
exportJaqlToXlsx: (body: object) => Promise<Blob | undefined>;
|
|
126
134
|
}
|
|
127
135
|
export declare const useRestApi: () => {
|
|
128
136
|
restApi: RestApi | undefined;
|
|
@@ -2,18 +2,33 @@ import { HttpClient } from '@sisense/sdk-rest-client';
|
|
|
2
2
|
import { AppConfig, ThemeSettings } from '../../../types';
|
|
3
3
|
import { LegacyDesignSettings } from '../../themes/legacy-design-settings.js';
|
|
4
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
|
+
naturalResponseEnabled: boolean;
|
|
12
|
+
queryDefinition: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Loose, forward-compatible shape of `ai.featureFlags`. Known flags are strongly typed
|
|
16
|
+
* (see {@link KnownAiFeatureFlags}); arbitrary string-keyed flags are type-allowed
|
|
17
|
+
* for forward compatibility (unknown keys are readable as `boolean | undefined`)
|
|
18
|
+
* without requiring a CSDK type bump.
|
|
19
|
+
*
|
|
20
|
+
* @sisenseInternal
|
|
21
|
+
*/
|
|
22
|
+
export type AiFeatureFlags = KnownAiFeatureFlags & {
|
|
23
|
+
[flag: string]: boolean | undefined;
|
|
24
|
+
};
|
|
5
25
|
/**
|
|
6
26
|
* AI-related slice derived from globals (`serverFeatures` + deployment props),
|
|
7
27
|
* aligned with admin UI paths such as `ai.featureFlags.*`, `ai.featureModelType`,
|
|
8
|
-
*
|
|
28
|
+
* and `ai.quotaNotification`.
|
|
9
29
|
*/
|
|
10
30
|
type AiSettingsSlice = {
|
|
11
|
-
featureFlags:
|
|
12
|
-
completionV2: boolean;
|
|
13
|
-
naturalResponseEnabled: boolean;
|
|
14
|
-
nlqV3Enabled: boolean;
|
|
15
|
-
queryDefinition: boolean;
|
|
16
|
-
};
|
|
31
|
+
featureFlags: AiFeatureFlags;
|
|
17
32
|
/**
|
|
18
33
|
* Only when `serverFeatures.aiAssistant` exists.
|
|
19
34
|
* If the block is present but omits this field, defaults to `customer_byok`.
|
|
@@ -21,10 +36,6 @@ type AiSettingsSlice = {
|
|
|
21
36
|
*/
|
|
22
37
|
featureModelType?: string;
|
|
23
38
|
quotaNotification: boolean;
|
|
24
|
-
aiStudio: {
|
|
25
|
-
realtime: boolean;
|
|
26
|
-
usageDisplay: boolean;
|
|
27
|
-
};
|
|
28
39
|
};
|
|
29
40
|
/**
|
|
30
41
|
* Application settings
|
|
@@ -112,6 +123,8 @@ type ServerSettings = {
|
|
|
112
123
|
lastName?: string;
|
|
113
124
|
/** From `api/globals` `user.email`. */
|
|
114
125
|
email?: string;
|
|
126
|
+
/** From `api/globals` `user.baseRoleName`. */
|
|
127
|
+
baseRoleName?: string;
|
|
115
128
|
};
|
|
116
129
|
/**
|
|
117
130
|
* Raw Fusion `designSettings` from `api/globals` (before palette / theme conversion).
|
|
@@ -122,22 +122,14 @@ type CloudCDNFeature = Feature<'cloudCDN'>;
|
|
|
122
122
|
type OnboardingFeature = Feature<'onboarding'>;
|
|
123
123
|
type AiAssistantFeature = Feature<'aiAssistant', {
|
|
124
124
|
unified?: boolean;
|
|
125
|
-
nlqV3Enabled?: boolean;
|
|
126
|
-
isNlqV3Enabled?: boolean;
|
|
127
125
|
naturalResponseEnabled?: boolean;
|
|
128
126
|
queryDefinition?: boolean;
|
|
129
|
-
completionV2?: boolean;
|
|
130
127
|
sharedFormulasEnabled?: boolean;
|
|
131
128
|
aiAccessControl?: string;
|
|
132
129
|
quotaNotification?: boolean;
|
|
133
130
|
featureModelType?: string;
|
|
134
131
|
}>;
|
|
135
|
-
type AiStudioFeature = Feature<'aiStudio'
|
|
136
|
-
realtime?: boolean;
|
|
137
|
-
usageDisplay?: boolean;
|
|
138
|
-
isRealtimeEnabled?: boolean;
|
|
139
|
-
isUsageDisplayEnabled?: boolean;
|
|
140
|
-
}>;
|
|
132
|
+
type AiStudioFeature = Feature<'aiStudio'>;
|
|
141
133
|
type NewNavigationBetaFeature = Feature<'newNavigationBeta'>;
|
|
142
134
|
type ApiTelemetryFeature = Feature<'apiTelemetry'>;
|
|
143
135
|
export type Features = (AlertingFeature | LiveQueryFeature | NlqFeature | PivotFeature | CustomCodeFeature | CustomCodeTransformationFeature | BuildDestinationFeature | VersionHistoryFeature | EmbedCodeFeature | LiveCustomColumnFeature | ExportingEngineV2Feature | ExportingXlsxV2Feature | ExportingCsvFeature | ConnectionManagementFeature | SisenseLightFeature | WizardSqlEditorFeature | MultiTenancyFeature | BloxFeature | FunnelFeature | Cloud360Feature | BreakByToggleFeature | GitIntegrationFeature | InfusionFeature | InfusionWebClientFeature | NotebooksFeature | AdminWebClientFeature | DateTimeFiltersFeature | TextFiltersFeature | NumericFiltersFeature | FilterRelationsEnabledFeature | TimeLevelSupportEnabledFeature | SyncDashboardEventsFeature | UserProfileFeature | ScatterFeature | CustomFontsFeature | PreferWidgetImageServerExportFeature | NewAdminUIFeature | SharedFormulasFeature | SideBarFeature | InfusionTokenEndpointFeature | ExplanationsForIndicatorWidgetsFeature | ExplanationsForCategoricalWidgetsFeature | WidgetDesignStyleFeature | FiscalOnFeature | ReactAnalyticsWidgetEditorFeature | DynamicSQLFeature | NewCustomConnectorFeature | CrossTenantPerspectivesFeature | EnableDatamodelPerspectiveFeature | AlwaysDirectRelationsFeature | ModelStatisticsFeature | ExportingCsvFormattedFeature | FlexibleTooltipsFeature | DimensionalModelingFeature | CloudCDNFeature | OnboardingFeature | AiAssistantFeature | AiStudioFeature | NewNavigationBetaFeature | ApiTelemetryFeature)[];
|
|
@@ -3,6 +3,7 @@ import { PivotQueryClient } from '@sisense/sdk-pivot-query-client';
|
|
|
3
3
|
import { QueryClient } from '@sisense/sdk-query-client';
|
|
4
4
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
5
5
|
import { TrackingEventDetails } from '@sisense/sdk-tracking';
|
|
6
|
+
import type { Locale } from 'date-fns';
|
|
6
7
|
import { DateConfig, LoadingIndicatorConfig, TranslationConfig } from '../../types';
|
|
7
8
|
import { AppSettings } from './settings/settings';
|
|
8
9
|
/**
|
|
@@ -190,6 +191,19 @@ export type AppConfig = {
|
|
|
190
191
|
*/
|
|
191
192
|
alwaysShowResultsPerPage?: boolean;
|
|
192
193
|
};
|
|
194
|
+
/**
|
|
195
|
+
* Configuration of the default number formatting for visualizations.
|
|
196
|
+
*
|
|
197
|
+
* @sisenseInternal
|
|
198
|
+
*/
|
|
199
|
+
defaultNumberFormatting?: {
|
|
200
|
+
/**
|
|
201
|
+
* If `false`, raw values are displayed without applying the default number formatting configuration.
|
|
202
|
+
*
|
|
203
|
+
* @default true
|
|
204
|
+
*/
|
|
205
|
+
enabled?: boolean;
|
|
206
|
+
};
|
|
193
207
|
};
|
|
194
208
|
};
|
|
195
209
|
/**
|
package/dist/packages/sdk-ui/src/infra/contexts/sisense-context/sisense-context-provider.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FunctionComponent, PropsWithChildren } from 'react';
|
|
1
|
+
import { type FunctionComponent, type PropsWithChildren } from 'react';
|
|
2
2
|
import { SisenseContextProviderProps } from '../../../props';
|
|
3
3
|
/**
|
|
4
4
|
* Sisense Context Provider Component allowing you to connect to
|
|
@@ -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;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Data, QueryResultData } from '@sisense/sdk-data';
|
|
2
|
+
import { CommonDataOptions } from '../../domains/visualizations/core/chart-data-options/types';
|
|
3
|
+
import { FormatDateOptions } from './format-date';
|
|
4
|
+
/**
|
|
5
|
+
* Options for {@link formatDataSet}.
|
|
6
|
+
*/
|
|
7
|
+
export type FormatDataSetOptions = FormatDateOptions;
|
|
8
|
+
/**
|
|
9
|
+
* Formats a data set by applying the number and date formatting declared in `dataOptions` to a data set.
|
|
10
|
+
* Writes the formatted result into each affected cell's `text` property.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* const formattedData = formatDataSet(data, dataOptions);
|
|
14
|
+
*
|
|
15
|
+
* @param data - Query result or user-provided data set.
|
|
16
|
+
* @param dataOptions - Any chart, pivot, or custom-widget data options.
|
|
17
|
+
* @param options - Formatting options.
|
|
18
|
+
* @returns A new data set with formatted `text` values on affected cells.
|
|
19
|
+
* @group Formatting
|
|
20
|
+
*/
|
|
21
|
+
export declare function formatDataSet<DataSet extends QueryResultData | Data>(data: DataSet, dataOptions: CommonDataOptions, options?: FormatDataSetOptions): DataSet;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { Locale } from 'date-fns';
|
|
2
|
+
import type { DateConfig } from '../../domains/query-execution/core/date-formats';
|
|
3
|
+
/**
|
|
4
|
+
* Options for {@link formatDate}.
|
|
5
|
+
*/
|
|
6
|
+
export type FormatDateOptions = {
|
|
7
|
+
/**
|
|
8
|
+
* A [date-fns Locale](https://date-fns.org/v2.30.0/docs/Locale) for language-specific formatting.
|
|
9
|
+
* Defaults to 'en-US'.
|
|
10
|
+
*/
|
|
11
|
+
locale?: Locale;
|
|
12
|
+
/**
|
|
13
|
+
* Fiscal year, timezone, and date-level configuration.
|
|
14
|
+
*/
|
|
15
|
+
dateConfig?: DateConfig;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Formats a single date value (Date instance or ISO 8601 string) using the
|
|
19
|
+
* provided format mask.
|
|
20
|
+
*
|
|
21
|
+
* Accepts standard [date-fns format tokens](https://date-fns.org/v2.30.0/docs/format)
|
|
22
|
+
* plus the SDK's extended Angular-style masks (locale-aware; examples use en-US):
|
|
23
|
+
*
|
|
24
|
+
* ```
|
|
25
|
+
* shortDate → '3/15/26' (M/d/yy)
|
|
26
|
+
* mediumDate → 'Mar 15, 2026' (MMM d, y)
|
|
27
|
+
* longDate → 'March 15, 2026' (MMMM d, y)
|
|
28
|
+
* fullDate → 'Sunday, March 15, 2026' (EEEE, MMMM d, y)
|
|
29
|
+
* shortTime → '1:45 PM' (h:mm a)
|
|
30
|
+
* mediumTime → '1:45:00 PM' (h:mm:ss a)
|
|
31
|
+
* short → '3/15/26 1:45 PM' (M/d/yy h:mm a)
|
|
32
|
+
* medium → 'Mar 15, 2026 1:45:00 PM' (MMM d, y h:mm:ss a)
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* Returns the input unchanged if it matches the reserved "not available" value (`'N\A'`).
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* formatDate(new Date('2026-03-15'), 'MM/yyyy');
|
|
39
|
+
* // returns '03/2026'
|
|
40
|
+
*
|
|
41
|
+
* formatDate('2026-03-15T13:45:00Z', 'shortDate');
|
|
42
|
+
* // returns '3/15/26' (en-US locale)
|
|
43
|
+
*
|
|
44
|
+
* formatDate('2026-03-15T13:45:00Z', 'mediumDate');
|
|
45
|
+
* // returns 'Mar 15, 2026'
|
|
46
|
+
*
|
|
47
|
+
* @param value - Date value to format.
|
|
48
|
+
* @param format - Format mask string (date-fns tokens or SDK extended masks).
|
|
49
|
+
* @param options - Optional locale and date configuration.
|
|
50
|
+
* @returns Formatted date string.
|
|
51
|
+
* @group Formatting
|
|
52
|
+
*/
|
|
53
|
+
export declare function formatDate(value: Date | string, format: string, options?: FormatDateOptions): string;
|
|
54
|
+
/**
|
|
55
|
+
* Returns a default date-format mask for a given granularity level from {@link @sisense/sdk-data!DateLevels | `DateLevels`}
|
|
56
|
+
*
|
|
57
|
+
* Falls back to default `'fullDate'` for unknown or absent granularities.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* getDefaultDateFormat('months'); // 'MM/yyyy'
|
|
61
|
+
* getDefaultDateFormat('years'); // 'yyyy'
|
|
62
|
+
* getDefaultDateFormat('days'); // 'shortDate'
|
|
63
|
+
* @param granularity - Optional granularity string.
|
|
64
|
+
* @returns A date-format mask string.
|
|
65
|
+
* @group Formatting
|
|
66
|
+
*/
|
|
67
|
+
export declare function getDefaultDateFormat(granularity?: string): string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { NumberFormatConfig } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Formats a single numeric value using the provided {@link NumberFormatConfig}.
|
|
4
|
+
*
|
|
5
|
+
* Missing config falls back to defaults:
|
|
6
|
+
* Numbers type, auto decimal scale, thousand separator enabled, all abbreviations (K/M/B/T) enabled.
|
|
7
|
+
*
|
|
8
|
+
* Returns an empty string when `value` is `NaN`.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* formatNumber(1234567);
|
|
12
|
+
* // returns '1.23M'
|
|
13
|
+
*
|
|
14
|
+
* formatNumber(0.42, { name: 'Percent', decimalScale: 1 });
|
|
15
|
+
* // returns '42.0%'
|
|
16
|
+
*
|
|
17
|
+
* formatNumber(1500, { name: 'Currency', symbol: '€', prefix: true });
|
|
18
|
+
* // returns '€1.5K'
|
|
19
|
+
* @param value - The numeric value to format.
|
|
20
|
+
* @param config - Formatting configuration.
|
|
21
|
+
* @returns Formatted string representation of the value.
|
|
22
|
+
* @group Formatting
|
|
23
|
+
*/
|
|
24
|
+
export declare function formatNumber(value: number, config?: NumberFormatConfig): string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { formatNumber } from './format-number';
|
|
2
|
+
export { formatDate, getDefaultDateFormat } from './format-date';
|
|
3
|
+
export { formatDataSet } from './format-data-set';
|
|
4
|
+
export type { FormatDateOptions } from './format-date';
|
|
5
|
+
export type { FormatDataSetOptions } from './format-data-set';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Module } from './types.js';
|
|
2
|
+
/** Normalised view of a `ModuleRequirement`. */
|
|
3
|
+
interface NormalizedRequirement {
|
|
4
|
+
name: string;
|
|
5
|
+
optional: boolean;
|
|
6
|
+
requiredVersion?: string;
|
|
7
|
+
}
|
|
8
|
+
/** A module after graph resolution, with its normalised requirements attached. */
|
|
9
|
+
export interface ResolvedModule {
|
|
10
|
+
module: Module;
|
|
11
|
+
requirements: NormalizedRequirement[];
|
|
12
|
+
/**
|
|
13
|
+
* Names of soft requirements that were absent or version-incompatible at boot.
|
|
14
|
+
* Integrations targeting these names are silently dropped.
|
|
15
|
+
*/
|
|
16
|
+
missingOptionalTargets: Set<string>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Builds the validated, topologically-ordered module graph from the given roots.
|
|
20
|
+
*
|
|
21
|
+
* - Recursively expands `includes` and dedupes by `name` (versions must match).
|
|
22
|
+
* - Validates every hard `requires` target is present and its version satisfies
|
|
23
|
+
* any declared `requiredVersion`.
|
|
24
|
+
* - Drops contributions to soft requirements (`optional: true`) that are missing
|
|
25
|
+
* or version-incompatible.
|
|
26
|
+
* - Validates each integration targets a declared requirement and a known field
|
|
27
|
+
* on the target's `api`.
|
|
28
|
+
* - Returns modules sorted so each appears after its requirements.
|
|
29
|
+
*/
|
|
30
|
+
export declare const buildModuleGraph: (modules: ReadonlyArray<Module>) => ResolvedModule[];
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Module } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Modules API registry.
|
|
4
|
+
*
|
|
5
|
+
* Each registry is an opaque value produced by the owning module's
|
|
6
|
+
* `ApiField.createRegistry` and written to by every contributor's
|
|
7
|
+
* `ApiField.register`. Keyed by `(moduleName, fieldName)` to keep field names
|
|
8
|
+
* scoped to their owning module.
|
|
9
|
+
*/
|
|
10
|
+
export interface ModulesApiRegistry {
|
|
11
|
+
/** Returns the registry for a module's API field, or `undefined` if absent. */
|
|
12
|
+
get(moduleName: string, fieldName: string): unknown;
|
|
13
|
+
/** Whether the given module's API field has a registry in this store. */
|
|
14
|
+
has(moduleName: string, fieldName: string): boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Result of building a module registry from a set of user-provided modules. */
|
|
17
|
+
export interface ModulesRegistry {
|
|
18
|
+
/** Registered modules array (in topological order) */
|
|
19
|
+
modules: Module[];
|
|
20
|
+
/** Modules api registry. */
|
|
21
|
+
apiRegistry: ModulesApiRegistry;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Builds a per-`ModuleProvider` registry from the given user-provided modules.
|
|
25
|
+
*
|
|
26
|
+
* - Always includes `CoreModule`.
|
|
27
|
+
* - Builds and validates the module graph (`buildModuleGraph`).
|
|
28
|
+
* - Creates a fresh registry per API field via `ApiField.createRegistry`.
|
|
29
|
+
* - Applies every contribution in topological order via `ApiField.register`.
|
|
30
|
+
*/
|
|
31
|
+
export declare const buildModuleRegistry: (modules?: ReadonlyArray<Module>) => ModulesRegistry;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type FunctionComponent, type PropsWithChildren } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Registers providers passed via the `core.providers` API.
|
|
4
|
+
*
|
|
5
|
+
* The registry is read from the enclosing `ModuleProvider`, so each
|
|
6
|
+
* `SisenseContextProvider` instance mounts only the providers contributed by
|
|
7
|
+
* the modules it registered. Providers are mounted in registration
|
|
8
|
+
* (topological) order — the first entry is the outermost wrapper.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
export declare const CoreModuleProvidersTree: FunctionComponent<PropsWithChildren>;
|