@sisense/sdk-ui 2.29.0 → 2.31.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 +57 -57
- package/dist/ai.js +767 -797
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +1871 -1324
- package/dist/analytics-composer.cjs +2 -2
- package/dist/analytics-composer.js +8 -8
- package/dist/apply-styled-options-to-query-BddNnNsW.js +7028 -0
- package/dist/apply-styled-options-to-query-BrP6xVFh.cjs +1 -0
- package/dist/index-BcggtLDg.js +847 -0
- package/dist/{index-C77YCBVd.js → index-DCYw3JUB.js} +29 -7
- package/dist/index-DTvxJdqZ.cjs +1 -0
- package/dist/index-DhUTJSni.cjs +1 -0
- package/dist/index.cjs +614 -495
- package/dist/index.js +27269 -26507
- package/dist/index.umd.js +1035 -810
- package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-container.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header/constants.d.ts +16 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header/dashboard-header-config.d.ts +122 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header/dashboard-header-targets.d.ts +26 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header/dashboard-header-title.d.ts +20 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header/dashboard-header.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/toolbar/edit-toggle.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/toolbar/filter-toggle.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/constants.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-helpers.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +43 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-module/dashboard-module.d.ts +34 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-module/types.d.ts +65 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/use-duplicate-widget-menu-item.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-dashboard-header-menu-item.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-edit-mode-with-history.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-updates-persistence.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/types.d.ts +11 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/update-types.d.ts +4 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +44 -16
- package/dist/packages/sdk-ui/src/domains/dashboarding/utils.d.ts +33 -1
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/add-measure-data-browser.d.ts +11 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/add-measure-popover.d.ts +14 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/measure-ranking-title.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/measures.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor-context.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor-popover.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/numeric-condition-section/types.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/ranking-condition-controls.d.ts +33 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/ranking-condition-utils.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filters-panel/filters-panel.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-collapsible.d.ts +22 -4
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-top-slot-shell.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-trigger-button.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative-interactive.d.ts +20 -2
- package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative.d.ts +11 -9
- package/dist/packages/sdk-ui/src/domains/narrative/core/build-narrative-request.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/narrative/core/get-narrative-dimensions-and-measures.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/narrative/core/get-widget-narrative-from-widget-props.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/to-nlg-api-verbosity.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-config.d.ts +114 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-props-to-narrative-params.d.ts +35 -32
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-get-widget-narrative.d.ts +11 -22
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-line-height.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-widget-narrative-state.d.ts +8 -9
- package/dist/packages/sdk-ui/src/domains/query-execution/core/execute-query.d.ts +34 -1
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/excel-export/build-jaql-excel-export.d.ts +13 -5
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/excel-export/build-xlsx-export-payload.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query-by-widget-id/use-execute-query-by-widget-id.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/query-execution/types.d.ts +55 -3
- package/dist/packages/sdk-ui/src/domains/shared/header/header-item-cell.d.ts +25 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/header-item-size.d.ts +31 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/header-items-renderer.d.ts +23 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/header-spacer-item.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/resolve-header-items.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/types.d.ts +98 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/use-resolved-header-items.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/areamap-chart/data/areamap-data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/helpers/chart-data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data/index.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data/index.d.ts +3 -1
- 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 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/alerts/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/data/index.d.ts +22 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/data-options/index.d.ts +33 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/design-options/index.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/highchart-options/highcharts-options-builder.d.ts +3 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/sankey-chart-builder.d.ts +3 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/sankey-node-colors.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/types.d.ts +38 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/types.d.ts +12 -9
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/formatters/data-cell-formatters/data-cell-value-formatter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/hooks/use-pivot-data-loading.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/resolve-pivot-container-size.d.ts +28 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/sankey-chart.d.ts +30 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/helpers/calc-column-widths.d.ts +19 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/helpers/format-numbers.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/styles/style-constants.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/types.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/cartesian-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/categorical-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/chart-data-service.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/scatter-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/apply-styled-options-to-query.d.ts +4 -4
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/types.d.ts +46 -7
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/chart-options-service.d.ts +4 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/design-options.d.ts +40 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/funnel-plot-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/number-format-config.d.ts +12 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/pie-plot-options.d.ts +2 -1
- 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 +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/types.d.ts +12 -3
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +1 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-chart-widget-excel-download.d.ts +2 -3
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-chart-widget-narrative.d.ts +28 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/use-custom-widget-excel-download.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/pivot-table-widget.d.ts +4 -4
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +1 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/use-pivot-widget-excel-download.d.ts +2 -3
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget/types.d.ts +25 -9
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-dashboard-filters.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/categorical-labels-style.d.ts +94 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/series-label-affix-style.d.ts +59 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/tabber.d.ts +17 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +13 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/widget-narrative-style.d.ts +31 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +102 -2
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/excel-export-map-dimensions-measures.d.ts +17 -2
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/number-format-config-to-numeric-mask.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/widget-container.d.ts +7 -1
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model.d.ts +6 -2
- package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-endpoints.d.ts +2 -2
- package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +11 -0
- package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +1 -3
- package/dist/packages/sdk-ui/src/infra/app/types.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/decorators/component-decorators/with-tracking/use-track-component-init.d.ts +8 -0
- package/dist/packages/sdk-ui/src/infra/modules/types.d.ts +24 -5
- package/dist/packages/sdk-ui/src/infra/plugins/types.d.ts +34 -6
- package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/types.d.ts +180 -54
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +44 -0
- package/dist/packages/sdk-ui/src/modules/ai/common/collapsible.d.ts +38 -2
- package/dist/packages/sdk-ui/src/modules/ai/get-nlg-insights-from-widget.d.ts +4 -13
- package/dist/packages/sdk-ui/src/modules/ai/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/custom-formula/validate-custom-formula.d.ts +11 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/datetime-filter-processors.d.ts +6 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/measure-processors.d.ts +16 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/process-measured-value.d.ts +14 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/schema-index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/datetime-member-validation.d.ts +2 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/datetime-range-validation.d.ts +2 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/datetime-relative-validation.d.ts +1 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/datetime-validation-utils.d.ts +40 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/flatten-filters.d.ts +5 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/normalize-member-for-granularity.d.ts +5 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/query-datetime-validation.d.ts +7 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +16 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/widget/to-widget-code.d.ts +1 -1
- package/dist/packages/sdk-ui/src/props.d.ts +46 -3
- package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +0 -2
- package/dist/packages/sdk-ui/src/public-api/beta.d.ts +8 -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 +4 -1
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +4 -3
- package/dist/packages/sdk-ui/src/shared/components/alert/alert.d.ts +1 -50
- package/dist/packages/sdk-ui/src/shared/components/alert/index.d.ts +2 -2
- package/dist/packages/sdk-ui/src/shared/components/no-results-overlay/images/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/shared/components/quota-notification/quota-notification.d.ts +3 -10
- package/dist/packages/sdk-ui/src/shared/components/radio.d.ts +1 -0
- package/dist/packages/sdk-ui/src/shared/hooks/use-synced-state.d.ts +6 -7
- package/dist/packages/sdk-ui/src/shared/icons/warning-icon.d.ts +2 -3
- package/dist/packages/sdk-ui/src/shared/icons/x-circle-icon.d.ts +2 -3
- package/dist/packages/sdk-ui/src/shared/utils/color/color-interpolation.d.ts +1 -1
- package/dist/packages/sdk-ui/src/shared/utils/color/colorjs.d.ts +36 -0
- package/dist/packages/sdk-ui/src/shared/utils/gradient.d.ts +3 -2
- package/dist/packages/sdk-ui/src/types.d.ts +89 -6
- package/dist/{use-hover-Dju4Dcv3.js → quota-notification-BMxiL8zu.js} +23452 -22126
- package/dist/quota-notification-CsGmQ05h.cjs +750 -0
- package/dist/translations/de-de.cjs +1 -1
- package/dist/translations/de-de.js +27 -5
- 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 +27 -5
- package/dist/translations/es-es.cjs +1 -1
- package/dist/translations/es-es.js +27 -5
- package/dist/translations/fr-fr.cjs +1 -1
- package/dist/translations/fr-fr.js +27 -5
- package/dist/translations/it-it.cjs +1 -1
- package/dist/translations/it-it.js +29 -7
- package/dist/translations/ja-jp.cjs +1 -1
- package/dist/translations/ja-jp.js +27 -5
- package/dist/translations/ko-kr.cjs +1 -1
- package/dist/translations/ko-kr.js +27 -5
- package/dist/translations/nl-nl.cjs +1 -1
- package/dist/translations/nl-nl.js +29 -7
- package/dist/translations/pt-br.cjs +1 -1
- package/dist/translations/pt-br.js +27 -5
- package/dist/translations/ru-ru.cjs +1 -1
- package/dist/translations/ru-ru.js +27 -5
- package/dist/translations/tr-tr.cjs +1 -1
- package/dist/translations/tr-tr.js +27 -5
- package/dist/translations/zh-cn.cjs +1 -1
- package/dist/translations/zh-cn.js +27 -5
- package/dist/{types-7YG0uOzO.js → types-BB6n10Af.js} +1 -1
- package/dist/{types-DlYJ_DZ0.cjs → types-CMUXHDie.cjs} +1 -1
- package/dist/{utils-BKRpWUGm.js → utils-C39pRlFD.js} +14298 -13977
- package/dist/utils-CL2eytnK.cjs +180 -0
- package/dist/{widget-composer-BXEyx308.cjs → widget-composer-DDulWu8l.cjs} +85 -10
- package/dist/{widget-composer-DRDw1oBF.js → widget-composer-DrfnZQa0.js} +350 -259
- package/package.json +13 -16
- package/dist/apply-styled-options-to-query-CaP4IMrQ.js +0 -6379
- package/dist/apply-styled-options-to-query-D5D8pRl2.cjs +0 -1
- package/dist/index-C9G8giSk.cjs +0 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header.d.ts +0 -3
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-dashboard-header-toolbar.d.ts +0 -25
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-options.d.ts +0 -36
- package/dist/packages/sdk-ui/src/shared/hooks/use-quota-warning-dismissed.d.ts +0 -8
- package/dist/use-hover-CANskYrn.cjs +0 -720
- package/dist/utils-C4PIba42.cjs +0 -179
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { FunnelSeriesLabels, PieSeriesLabels, SeriesLabelsBase } from '../../../../../types';
|
|
2
|
+
/** Fusion funnel/pie `style.labels` including value-label formatting fields. */
|
|
3
|
+
export type CategoricalFusionLabels = {
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
categories: boolean;
|
|
6
|
+
percent: boolean;
|
|
7
|
+
value: boolean;
|
|
8
|
+
decimals: boolean;
|
|
9
|
+
rotation?: number;
|
|
10
|
+
customRotation?: number | null;
|
|
11
|
+
prefix?: string;
|
|
12
|
+
suffix?: string;
|
|
13
|
+
backgroundColor?: string | null;
|
|
14
|
+
backgroundPadding?: number | null;
|
|
15
|
+
borderColor?: string | null;
|
|
16
|
+
borderWidth?: number | null;
|
|
17
|
+
borderRadius?: number | null;
|
|
18
|
+
xOffset?: number | null;
|
|
19
|
+
yOffset?: number | null;
|
|
20
|
+
};
|
|
21
|
+
export type CategoricalFusionLabelsDto = {
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
categories: boolean;
|
|
24
|
+
percent: boolean;
|
|
25
|
+
value: boolean;
|
|
26
|
+
decimals: boolean;
|
|
27
|
+
rotation: number;
|
|
28
|
+
customRotation: number | null;
|
|
29
|
+
prefix: string;
|
|
30
|
+
suffix: string;
|
|
31
|
+
backgroundColor: string | null;
|
|
32
|
+
backgroundPadding: number;
|
|
33
|
+
borderColor: string | null;
|
|
34
|
+
borderWidth: number;
|
|
35
|
+
borderRadius: number;
|
|
36
|
+
xOffset: number;
|
|
37
|
+
yOffset: number;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Resolves effective label rotation from Fusion DTO (customRotation overrides preset).
|
|
41
|
+
*
|
|
42
|
+
* @param labels - Fusion categorical labels DTO fragment
|
|
43
|
+
* @returns Effective rotation in degrees
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
export declare function getFusionCategoricalLabelsRotation(labels: CategoricalFusionLabels): number;
|
|
47
|
+
/**
|
|
48
|
+
* Maps Fusion label formatting fields to CSDK seriesLabels styling props.
|
|
49
|
+
*
|
|
50
|
+
* @param labels - Fusion categorical labels DTO fragment
|
|
51
|
+
* @returns Partial series label styling props derived from Fusion formatting fields
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
export declare function extractCategoricalLabelFormatting(labels: CategoricalFusionLabels): Pick<SeriesLabelsBase, 'rotation' | 'prefix' | 'suffix' | 'backgroundColor' | 'padding' | 'borderColor' | 'borderWidth' | 'borderRadius' | 'xOffset' | 'yOffset'>;
|
|
55
|
+
/**
|
|
56
|
+
* Builds CSDK pie series labels from Fusion funnel/pie `style.labels`.
|
|
57
|
+
*
|
|
58
|
+
* @param labels - Fusion categorical labels DTO
|
|
59
|
+
* @returns Pie series labels configuration
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
export declare function buildPieSeriesLabelsFromFusionLabels(labels: CategoricalFusionLabels): PieSeriesLabels;
|
|
63
|
+
/**
|
|
64
|
+
* Builds CSDK funnel series labels from Fusion funnel/pie `style.labels`.
|
|
65
|
+
*
|
|
66
|
+
* @param labels - Fusion categorical labels DTO
|
|
67
|
+
* @returns Funnel series labels configuration
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
export declare function buildFunnelSeriesLabelsFromFusionLabels(labels: CategoricalFusionLabels): FunnelSeriesLabels;
|
|
71
|
+
type CategoricalSeriesLabels = PieSeriesLabels | FunnelSeriesLabels;
|
|
72
|
+
export declare const DEFAULT_CATEGORICAL_FUSION_LABEL_FORMATTING: {
|
|
73
|
+
readonly rotation: 0;
|
|
74
|
+
readonly customRotation: null;
|
|
75
|
+
readonly prefix: "";
|
|
76
|
+
readonly suffix: "";
|
|
77
|
+
readonly backgroundColor: null;
|
|
78
|
+
readonly backgroundPadding: 2;
|
|
79
|
+
readonly borderColor: null;
|
|
80
|
+
readonly borderWidth: 1;
|
|
81
|
+
readonly borderRadius: 0;
|
|
82
|
+
readonly xOffset: 0;
|
|
83
|
+
readonly yOffset: 0;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Maps CSDK seriesLabels back to Fusion funnel/pie `style.labels` DTO.
|
|
87
|
+
*
|
|
88
|
+
* @param labels - Partial Fusion categorical labels DTO fragment, if any
|
|
89
|
+
* @param seriesLabels - CSDK pie or funnel series label options
|
|
90
|
+
* @returns Fusion categorical labels DTO with formatting defaults applied
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
export declare function toFusionCategoricalLabelsFromSeriesLabels(labels: Partial<CategoricalFusionLabels> | undefined, seriesLabels: CategoricalSeriesLabels | undefined): CategoricalFusionLabelsDto;
|
|
94
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { SeriesLabelsBase } from '../../../../../types';
|
|
2
|
+
/** Fusion widget `seriesLabels` / categorical `labels` affix formatting fields. */
|
|
3
|
+
export type FusionSeriesLabelAffix = {
|
|
4
|
+
prefix?: string;
|
|
5
|
+
suffix?: string;
|
|
6
|
+
backgroundColor?: string | null;
|
|
7
|
+
backgroundPadding?: number | null;
|
|
8
|
+
borderColor?: string | null;
|
|
9
|
+
borderWidth?: number | null;
|
|
10
|
+
borderRadius?: number | null;
|
|
11
|
+
xOffset?: number | null;
|
|
12
|
+
yOffset?: number | null;
|
|
13
|
+
};
|
|
14
|
+
type PublicSeriesLabelAffix = Pick<SeriesLabelsBase, 'prefix' | 'suffix' | 'backgroundColor' | 'padding' | 'borderColor' | 'borderWidth' | 'borderRadius' | 'xOffset' | 'yOffset'>;
|
|
15
|
+
/**
|
|
16
|
+
* Clearable affix fields used during Fusion → StyleOptions translation.
|
|
17
|
+
* `null` means an explicit reset; normalized away before public StyleOptions.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export type InternalSeriesLabelAffix = {
|
|
22
|
+
[K in keyof PublicSeriesLabelAffix]?: PublicSeriesLabelAffix[K] | null;
|
|
23
|
+
};
|
|
24
|
+
type SeriesLabelColor = NonNullable<SeriesLabelsBase['backgroundColor']>;
|
|
25
|
+
/**
|
|
26
|
+
* Maps internal affix fields (which may carry explicit `null` clears) to public
|
|
27
|
+
* StyleOptions fields. Cleared values are omitted from the public shape.
|
|
28
|
+
*
|
|
29
|
+
* @param affix - Internal affix fragment, possibly containing explicit clears
|
|
30
|
+
* @returns Public series label affix fields safe for StyleOptions
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export declare function toPublicSeriesLabelAffixFields(affix: Partial<InternalSeriesLabelAffix>): Partial<PublicSeriesLabelAffix>;
|
|
34
|
+
/**
|
|
35
|
+
* Maps CSDK series label color to Fusion string color; gradients and `auto` are not supported.
|
|
36
|
+
*
|
|
37
|
+
* @param color - CSDK series label color value
|
|
38
|
+
* @returns Fusion-compatible color string, or `undefined` when not representable
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
export declare const toFusionSeriesLabelColor: (color: SeriesLabelColor | string | null | undefined) => string | null | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Maps Fusion series label affix fields to internal CSDK affix props.
|
|
44
|
+
* Each field is mapped independently so pie/funnel and cartesian charts share the same rules.
|
|
45
|
+
*
|
|
46
|
+
* @param labels - Fusion series label affix fragment
|
|
47
|
+
* @returns Partial internal affix props; may include explicit `null` clears
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
export declare function extractSeriesLabelAffixFromFusion(labels: FusionSeriesLabelAffix): Partial<InternalSeriesLabelAffix>;
|
|
51
|
+
/**
|
|
52
|
+
* Maps CSDK seriesLabels affix fields to a Fusion DTO fragment.
|
|
53
|
+
*
|
|
54
|
+
* @param seriesLabels - CSDK series label affix fields
|
|
55
|
+
* @returns Fusion series label affix fragment
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
export declare function toFusionSeriesLabelAffixFromSdk(seriesLabels: Partial<PublicSeriesLabelAffix> | undefined): FusionSeriesLabelAffix;
|
|
59
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TabberButtonsWidgetStyleOptions } from '../../../../../types.js';
|
|
1
|
+
import { TabberButtonsWidgetCustomOptions, TabberButtonsWidgetStyleOptions } from '../../../../../types.js';
|
|
2
2
|
import { TabberWidgetDto, TabberWidgetDtoStyle } from '../types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Extracts style options from TabberWidgetDtoStyle.
|
|
@@ -21,3 +21,19 @@ export declare function extractTabberButtonsWidgetCustomOptions(tabberDto: Tabbe
|
|
|
21
21
|
tabNames: string[];
|
|
22
22
|
activeTab: number;
|
|
23
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Builds the tabber DTO style from CSDK tabber style and custom options.
|
|
26
|
+
* Inverse of {@link extractTabberButtonsWidgetStyleOptions} and
|
|
27
|
+
* {@link extractTabberButtonsWidgetCustomOptions}: re-encodes the lowercase enum
|
|
28
|
+
* values back to uppercase, reconstructs the `useSelectedBkg`/`useUnselectedBkg`
|
|
29
|
+
* flags from the presence of the corresponding background colors, and
|
|
30
|
+
* re-materializes `tabs`/`activeTab` from the custom options.
|
|
31
|
+
*
|
|
32
|
+
* Note: `displayWidgetIds`/`hideWidgetIds` are not represented in the CSDK
|
|
33
|
+
* widget model, so the re-materialized tabs carry empty id lists.
|
|
34
|
+
*
|
|
35
|
+
* @param styleOptions - The tabber style options from WidgetModel.styleOptions
|
|
36
|
+
* @param customOptions - The tabber custom options from WidgetModel.customOptions
|
|
37
|
+
* @returns The tabber widget style for the DTO
|
|
38
|
+
*/
|
|
39
|
+
export declare function toTabberWidgetStyle(styleOptions: TabberButtonsWidgetStyleOptions, customOptions: TabberButtonsWidgetCustomOptions): TabberWidgetDtoStyle;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PivotGrandTotals } from '@sisense/sdk-data';
|
|
2
2
|
import type { BoxWhiskerType } from '../../../../../domains/visualizations/core/chart-data-options/types.js';
|
|
3
3
|
import { AppSettings } from '../../../../../infra/app/settings/settings.js';
|
|
4
|
-
import type { AreamapType, AreaStyleOptions, AxisLabel, BoxplotStyleOptions, CalendarHeatmapStyleOptions, CompleteThemeSettingsInternal, DataLimits, FunnelStyleOptions, IndicatorStyleOptions, LegendOptions, LineStyleOptions, LineWidth, Markers, Navigator, PieStyleOptions, PivotTableWidgetStyleOptions, PolarStyleOptions, ScattermapStyleOptions, ScatterStyleOptions, SeriesLabels, StackableStyleOptions, SunburstStyleOptions, TableStyleOptions, TreemapStyleOptions, WidgetStyleOptions } from '../../../../../types.js';
|
|
4
|
+
import type { AreamapType, AreaStyleOptions, AxisLabel, BoxplotStyleOptions, CalendarHeatmapStyleOptions, CompleteThemeSettingsInternal, DataLimits, FunnelStyleOptions, IndicatorStyleOptions, LegendOptions, LineOptions, LineStyleOptions, LineWidth, Markers, Navigator, PieStyleOptions, PivotTableWidgetStyleOptions, PolarStyleOptions, ScattermapStyleOptions, ScatterStyleOptions, SeriesLabels, StackableStyleOptions, SunburstStyleOptions, TableStyleOptions, TreemapStyleOptions, WidgetStyleOptions } from '../../../../../types.js';
|
|
5
5
|
import type { AxisStyle, BoxplotWidgetStyle, CalendarHeatmapWidgetStyle, CartesianWidgetStyle, FunnelWidgetStyle, PivotWidgetStyle, PolarWidgetStyle, ScattermapWidgetStyle, ScatterWidgetStyle, SunburstWidgetStyle, TableWidgetStyle, TreemapWidgetStyle, WidgetDesign, WidgetStyle, WidgetSubtype } from '../types.js';
|
|
6
6
|
/**
|
|
7
7
|
* Maps SDK legend options to Fusion DTO legend style.
|
|
@@ -42,6 +42,18 @@ export type LineWidthToken = (typeof LINE_WIDTH_TOKENS)[number];
|
|
|
42
42
|
export declare function toLineWidthStyle(lineWidth?: LineWidth | {
|
|
43
43
|
width?: string | number;
|
|
44
44
|
}): CartesianWidgetStyle['lineWidth'];
|
|
45
|
+
/**
|
|
46
|
+
* Maps CSDK line.width (px) to Fusion lineWidth.customWidth on DTO.
|
|
47
|
+
*
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
export declare function toLineCustomWidthStyle(line?: LineOptions): number | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Maps SDK line dash options to Fusion DTO line style.
|
|
53
|
+
*
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
export declare function toLineDashStyle(line?: LineOptions): CartesianWidgetStyle['line'];
|
|
45
57
|
/**
|
|
46
58
|
* Maps SDK markers options to Fusion DTO markers style.
|
|
47
59
|
*
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { WidgetNarrativeConfig } from '../../../../../domains/narrative/core/widget-narrative-config';
|
|
2
|
+
import type { WidgetDtoNarration, WidgetStyle } from '../../../../../domains/widgets/components/widget-by-id/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Maps Fusion `style.narration` into SDK {@link WidgetNarrativeConfig},
|
|
5
|
+
* including `feedback` when present on the DTO.
|
|
6
|
+
*
|
|
7
|
+
* Reads boolean `autoShow`; legacy string `displayMode` (`onLoad` / `onClick`) is still accepted for
|
|
8
|
+
* older payloads when `autoShow` is absent.
|
|
9
|
+
*
|
|
10
|
+
* @param dto - Fusion narration payload, if any
|
|
11
|
+
* @returns Partial narrative options, or `undefined` when absent or empty
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare function extractWidgetNarrativeConfigFromDto(dto: WidgetDtoNarration | undefined): WidgetNarrativeConfig | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Builds Fusion `style.narration` from SDK {@link WidgetNarrativeConfig} only (typed fields).
|
|
17
|
+
*
|
|
18
|
+
* @param narrative - SDK narrative slice from {@link WidgetConfig.narrative}
|
|
19
|
+
* @returns Narration DTO, or `undefined` when nothing should be written
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare function narrativeConfigToWidgetDtoNarration(narrative: WidgetNarrativeConfig | undefined): WidgetDtoNarration | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Merges narrative options onto a Fusion widget `style` object for {@link toWidgetDto}.
|
|
25
|
+
*
|
|
26
|
+
* @param baseStyle - Chart or pivot style object without narration
|
|
27
|
+
* @param narrative - SDK narrative from {@link WidgetModel.config}
|
|
28
|
+
* @returns `WidgetStyle` with narration merged, or base style unchanged when narrative is absent
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export declare function mergeWidgetStyleWithNarrativeForDto(baseStyle: WidgetStyle, narrative: WidgetNarrativeConfig | undefined): WidgetStyle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseJaql, FormulaContext, FormulaJaql, Jaql, JaqlDataSource, JaqlSortDirection } from '@sisense/sdk-data';
|
|
2
2
|
import { JtdConfigDto } from '../../../../domains/dashboarding/hooks/jtd/jtd-types';
|
|
3
|
-
import { WidgetContainerStyleOptions } from '../../../../types';
|
|
3
|
+
import { DashStyle, WidgetContainerStyleOptions } from '../../../../types';
|
|
4
4
|
import { HierarchyId } from '../../../../domains/drilldown/hierarchy-model';
|
|
5
5
|
import { LEGACY_DESIGN_TYPES } from '../../../../infra/themes/legacy-design-settings';
|
|
6
6
|
/**
|
|
@@ -322,6 +322,26 @@ export type PanelColorFormatConditionOperator = '<' | '>' | '≤' | '<=' | '≥'
|
|
|
322
322
|
type LabelsStyle = {
|
|
323
323
|
enabled: boolean;
|
|
324
324
|
rotation: number;
|
|
325
|
+
/** Custom rotation in degrees from Fusion design panel. Overrides rotation when set. */
|
|
326
|
+
customRotation?: number | null;
|
|
327
|
+
/** Text prepended to each value label. */
|
|
328
|
+
prefix?: string;
|
|
329
|
+
/** Text appended to each value label. */
|
|
330
|
+
suffix?: string;
|
|
331
|
+
/** Background color behind each value label. */
|
|
332
|
+
backgroundColor?: string | null;
|
|
333
|
+
/** Padding in pixels around value label text when background color is set. */
|
|
334
|
+
backgroundPadding?: number | null;
|
|
335
|
+
/** Border color around each value label. */
|
|
336
|
+
borderColor?: string | null;
|
|
337
|
+
/** Border width in pixels when border color is set. */
|
|
338
|
+
borderWidth?: number | null;
|
|
339
|
+
/** Border radius in pixels when border color is set. */
|
|
340
|
+
borderRadius?: number | null;
|
|
341
|
+
/** Horizontal offset of value labels in pixels. */
|
|
342
|
+
xOffset?: number | null;
|
|
343
|
+
/** Vertical offset of value labels in pixels. */
|
|
344
|
+
yOffset?: number | null;
|
|
325
345
|
/**
|
|
326
346
|
* @internal
|
|
327
347
|
*/
|
|
@@ -377,6 +397,17 @@ export type CartesianWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions
|
|
|
377
397
|
y2Axis?: AxisStyle;
|
|
378
398
|
lineWidth?: {
|
|
379
399
|
width: string;
|
|
400
|
+
/** Custom line width in px from Fusion design panel. Overrides width when > 0. */
|
|
401
|
+
customWidth?: number | null;
|
|
402
|
+
};
|
|
403
|
+
/** CSDK-compatible line stroke options (e.g. dashStyle, width from styleOptions.line). */
|
|
404
|
+
line?: {
|
|
405
|
+
dashStyle?: DashStyle;
|
|
406
|
+
width?: number;
|
|
407
|
+
};
|
|
408
|
+
/** Fusion design-panel dash style token (`lineType`). Maps to CSDK `line.dashStyle`; not curve line type (straight/smooth). */
|
|
409
|
+
lineStyle?: {
|
|
410
|
+
lineType?: string;
|
|
380
411
|
};
|
|
381
412
|
markers?: {
|
|
382
413
|
enabled: boolean;
|
|
@@ -413,6 +444,17 @@ export type FunnelWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions &
|
|
|
413
444
|
percent: boolean;
|
|
414
445
|
value: boolean;
|
|
415
446
|
decimals: boolean;
|
|
447
|
+
rotation?: number;
|
|
448
|
+
customRotation?: number | null;
|
|
449
|
+
prefix?: string;
|
|
450
|
+
suffix?: string;
|
|
451
|
+
backgroundColor?: string | null;
|
|
452
|
+
backgroundPadding?: number | null;
|
|
453
|
+
borderColor?: string | null;
|
|
454
|
+
borderWidth?: number | null;
|
|
455
|
+
borderRadius?: number | null;
|
|
456
|
+
xOffset?: number | null;
|
|
457
|
+
yOffset?: number | null;
|
|
416
458
|
};
|
|
417
459
|
};
|
|
418
460
|
export type PieWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions & {
|
|
@@ -422,6 +464,17 @@ export type PieWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions & {
|
|
|
422
464
|
percent: boolean;
|
|
423
465
|
value: boolean;
|
|
424
466
|
decimals: boolean;
|
|
467
|
+
rotation?: number;
|
|
468
|
+
customRotation?: number | null;
|
|
469
|
+
prefix?: string;
|
|
470
|
+
suffix?: string;
|
|
471
|
+
backgroundColor?: string | null;
|
|
472
|
+
backgroundPadding?: number | null;
|
|
473
|
+
borderColor?: string | null;
|
|
474
|
+
borderWidth?: number | null;
|
|
475
|
+
borderRadius?: number | null;
|
|
476
|
+
xOffset?: number | null;
|
|
477
|
+
yOffset?: number | null;
|
|
425
478
|
};
|
|
426
479
|
dataLimits?: DataLimits;
|
|
427
480
|
convolution?: {
|
|
@@ -439,6 +492,24 @@ export type TableWidgetStyle = {
|
|
|
439
492
|
'width/content': boolean;
|
|
440
493
|
'width/window': boolean;
|
|
441
494
|
pageSize: number;
|
|
495
|
+
/**
|
|
496
|
+
* Live table UI state written by Fusion's table widget. `colResize.columns` is the
|
|
497
|
+
* authoritative source of on-screen column widths — unlike `panels.items[].colSize`
|
|
498
|
+
* (a write-once snapshot that goes stale once a column is disabled/re-enabled), it's
|
|
499
|
+
* kept in sync with the table's currently visible columns.
|
|
500
|
+
*/
|
|
501
|
+
tableState?: {
|
|
502
|
+
colResize?: {
|
|
503
|
+
/** Pixel widths (e.g. `'84.3906px'`), one per visible column, in display order. */
|
|
504
|
+
columns: string[];
|
|
505
|
+
/**
|
|
506
|
+
* Total table width in pixels at resize time. Fusion renders each column as
|
|
507
|
+
* `(columnPx / sum(columns)) × tableSize`, so this must stay in sync with the
|
|
508
|
+
* sum of `columns` for absolute pixel rendering.
|
|
509
|
+
*/
|
|
510
|
+
tableSize?: number;
|
|
511
|
+
};
|
|
512
|
+
};
|
|
442
513
|
};
|
|
443
514
|
export type IndicatorWidgetStyle = WidgetContainerStyleOptions & {
|
|
444
515
|
'indicator/gauge': {
|
|
@@ -568,9 +639,38 @@ export type CalendarHeatmapWidgetStyle = {
|
|
|
568
639
|
month: number;
|
|
569
640
|
};
|
|
570
641
|
};
|
|
642
|
+
/**
|
|
643
|
+
* Fusion `style.narration` payload (chart widgets and others that support narration).
|
|
644
|
+
*
|
|
645
|
+
* @internal
|
|
646
|
+
*/
|
|
647
|
+
export type WidgetDtoNarration = {
|
|
648
|
+
enabled?: boolean;
|
|
649
|
+
/** Placement string from Fusion; maps to SDK `displayLocation`. */
|
|
650
|
+
display?: string;
|
|
651
|
+
format?: string;
|
|
652
|
+
verbosity?: string;
|
|
653
|
+
up_sentiment?: string;
|
|
654
|
+
aggregation?: string;
|
|
655
|
+
labels?: readonly {
|
|
656
|
+
id: string;
|
|
657
|
+
title: string;
|
|
658
|
+
singular: string;
|
|
659
|
+
plural: string;
|
|
660
|
+
}[];
|
|
661
|
+
includeTrendAndForecast?: boolean;
|
|
662
|
+
/** When `true`, narrative is shown as soon as the widget loads */
|
|
663
|
+
autoShow?: boolean;
|
|
664
|
+
/** Narrative feedback actions */
|
|
665
|
+
feedback?: {
|
|
666
|
+
enabled?: boolean;
|
|
667
|
+
};
|
|
668
|
+
/** Fraction (0–1) of the content area height reserved for the narrative; maps to SDK `height`. */
|
|
669
|
+
size?: number;
|
|
670
|
+
};
|
|
571
671
|
export type WidgetStyle = {
|
|
572
672
|
widgetDesign?: WidgetDesign;
|
|
573
|
-
narration?:
|
|
673
|
+
narration?: WidgetDtoNarration;
|
|
574
674
|
} & (CartesianWidgetStyle | PolarWidgetStyle | FunnelWidgetStyle | PieWidgetStyle | ScatterWidgetStyle | TableWidgetStyle | IndicatorWidgetStyle | TreemapWidgetStyle | SunburstWidgetStyle | BoxplotWidgetStyle | ScattermapWidgetStyle | AreamapWidgetStyle | PivotWidgetStyle | CalendarHeatmapWidgetStyle | TextWidgetDtoStyle | TabberWidgetDtoStyle);
|
|
575
675
|
export declare enum FiltersMergeStrategyEnum {
|
|
576
676
|
WIDGET_FIRST = "widgetFirst",
|
package/dist/packages/sdk-ui/src/domains/widgets/helpers/excel-export-map-dimensions-measures.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import { type Attribute, type Measure } from '@sisense/sdk-data';
|
|
1
|
+
import { type Attribute, type CalculatedMeasureColumn, type Measure, type MeasureColumn } from '@sisense/sdk-data';
|
|
2
|
+
import type { StyledMeasureColumn } from '../../../domains/visualizations/core/chart-data-options/types.js';
|
|
3
|
+
import type { NumberFormatConfig } from '../../../types';
|
|
4
|
+
export type MeasureWithExcelExportFormat = Measure & {
|
|
5
|
+
readonly excelNumberFormatConfig?: NumberFormatConfig;
|
|
6
|
+
};
|
|
7
|
+
type MeasureColumnInput = MeasureColumn | CalculatedMeasureColumn | StyledMeasureColumn;
|
|
2
8
|
/**
|
|
3
9
|
* Returns attributes prepared for Excel JAQL export: dimensional level attributes without an
|
|
4
10
|
* explicit display format receive a level-appropriate default so the backend renders human-readable
|
|
@@ -15,4 +21,13 @@ export declare function mapAttributesForExcelExport(attributes: readonly Attribu
|
|
|
15
21
|
* @param measures - Raw measures from chart or pivot translation
|
|
16
22
|
* @returns New array of measures safe to pass as export measures
|
|
17
23
|
*/
|
|
18
|
-
export declare function mapMeasuresForExcelExport(measures: readonly Measure[]):
|
|
24
|
+
export declare function mapMeasuresForExcelExport(measures: readonly Measure[]): MeasureWithExcelExportFormat[];
|
|
25
|
+
/**
|
|
26
|
+
* Maps a styled measure column to a measure for Excel export, preserving `numberFormatConfig`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function mapMeasureColumnForExcelExport(column: MeasureColumnInput): MeasureWithExcelExportFormat;
|
|
29
|
+
/**
|
|
30
|
+
* Maps measure columns to measures for Excel export, preserving per-column `numberFormatConfig`.
|
|
31
|
+
*/
|
|
32
|
+
export declare function mapMeasureColumnsForExcelExport(columns: readonly MeasureColumnInput[]): MeasureWithExcelExportFormat[];
|
|
33
|
+
export {};
|
package/dist/packages/sdk-ui/src/domains/widgets/helpers/number-format-config-to-numeric-mask.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { NumberFormatConfig } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Converts Compose {@link NumberFormatConfig} to a Fusion numeric mask for XLSX export metadata.
|
|
4
|
+
*/
|
|
5
|
+
export declare function numberFormatConfigToNumericMask(config: NumberFormatConfig): Record<string, unknown>;
|
package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/widget-container.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import { type ReactNode, type RefObject } from 'react';
|
|
2
2
|
import { WidgetContainerStyleOptions } from '../../../../types';
|
|
3
3
|
import { TitleEditorConfig, WidgetHeaderConfig } from '../widget-header/types.js';
|
|
4
4
|
export interface WidgetContainerProps {
|
|
@@ -16,6 +16,12 @@ export interface WidgetContainerProps {
|
|
|
16
16
|
bottomSlot?: ReactNode;
|
|
17
17
|
children: ReactNode;
|
|
18
18
|
onRefresh?: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* Ref attached to the content area below the header (topSlot + chart + bottomSlot).
|
|
21
|
+
* Use to measure the available height for narrative-to-chart ratio calculations.
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
contentAreaRef?: RefObject<HTMLDivElement | null>;
|
|
19
25
|
}
|
|
20
26
|
/** @internal */
|
|
21
27
|
export declare const WidgetContainer: React.FC<WidgetContainerProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DataSource, Filter } from '@sisense/sdk-data';
|
|
2
|
-
import { EmptyObject } from '@sisense/sdk-query-client/src/helpers/utility-types';
|
|
3
2
|
import type { JumpToDashboardConfig, JumpToDashboardConfigForPivot } from '../../../domains/dashboarding/hooks/jtd/jtd-types';
|
|
4
3
|
import { ChartDataOptions, PivotTableDataOptions } from '../../../domains/visualizations/core/chart-data-options/types';
|
|
4
|
+
import { EmptyObject } from '../../../shared/utils/utility-types';
|
|
5
5
|
import { ChartType, DrilldownOptions, PivotTableDrilldownOptions, WidgetStyleOptions } from '../../../types';
|
|
6
|
-
import type { WidgetType } from '../components/widget/types';
|
|
6
|
+
import type { WidgetConfig, WidgetType } from '../components/widget/types';
|
|
7
7
|
/**
|
|
8
8
|
* Widget data options.
|
|
9
9
|
*/
|
|
@@ -49,6 +49,10 @@ export interface WidgetModel {
|
|
|
49
49
|
* Widget style options.
|
|
50
50
|
*/
|
|
51
51
|
styleOptions: WidgetStyleOptions;
|
|
52
|
+
/**
|
|
53
|
+
* Widget configuration.
|
|
54
|
+
*/
|
|
55
|
+
config?: WidgetConfig;
|
|
52
56
|
/**
|
|
53
57
|
* Custom widget options. Only present for custom widgets.
|
|
54
58
|
*
|
|
@@ -24,9 +24,9 @@ export type GetNarrativeOptions = {
|
|
|
24
24
|
* retried once with the fallback payload.
|
|
25
25
|
*
|
|
26
26
|
* @param httpClient - HttpClient instance
|
|
27
|
-
* @param request -
|
|
27
|
+
* @param request - Narrative request payload
|
|
28
28
|
* @param options - Optional; `canGenerateNarrativeViaAI` (typically from `app.settings.narrative`)
|
|
29
|
-
* @returns Promise that resolves with
|
|
29
|
+
* @returns Promise that resolves with narrative JSON or `undefined` (same semantics as `HttpClient.post`)
|
|
30
30
|
* @internal
|
|
31
31
|
*/
|
|
32
32
|
export declare function getNarrative(httpClient: HttpClient, request: NarrativeRequest, options?: GetNarrativeOptions): Promise<NarrativeResponse | undefined>;
|
|
@@ -101,11 +101,22 @@ type ServerSettings = {
|
|
|
101
101
|
serverVersion: string;
|
|
102
102
|
serverFeatures: FeatureMap;
|
|
103
103
|
ai: AiSettingsSlice;
|
|
104
|
+
/**
|
|
105
|
+
* Whether this is a Sisense-managed (cloud) deployment.
|
|
106
|
+
* From `api/globals` props.isManagedService; `false` for on-prem.
|
|
107
|
+
*/
|
|
108
|
+
isManaged: boolean;
|
|
104
109
|
narrative: {
|
|
105
110
|
/** From `api/v2/settings/ai` narration.enabled */
|
|
106
111
|
isEnabled: boolean;
|
|
107
112
|
/** Computed from `narrationUnified` and the unlimited or credit-based narrative entitlements. */
|
|
108
113
|
canGenerateNarrativeViaAI: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Narrative text provider from the license (`api/globals` props.narrationProvider).
|
|
116
|
+
* `arria` is the legacy 3rd-party engine served only via `POST /api/v1/narration/widget`,
|
|
117
|
+
* which CSDK does not support; `sisenseAI` uses the AI endpoints CSDK can call.
|
|
118
|
+
*/
|
|
119
|
+
provider?: 'arria' | 'sisenseAI';
|
|
109
120
|
};
|
|
110
121
|
user: {
|
|
111
122
|
tenant: {
|
|
@@ -35,8 +35,6 @@ type BuildDestinationFeature = Feature<'buildDestination', {
|
|
|
35
35
|
type VersionHistoryFeature = Feature<'versionHistory'>;
|
|
36
36
|
type EmbedCodeFeature = Feature<'embedCode'>;
|
|
37
37
|
type LiveCustomColumnFeature = Feature<'liveCustomColumn'>;
|
|
38
|
-
type ExportingEngineV2Feature = Feature<'exportingEngineV2'>;
|
|
39
|
-
type ExportingXlsxV2Feature = Feature<'exportingXlsxV2'>;
|
|
40
38
|
type ExportingCsvFeature = Feature<'exportingCsv', {
|
|
41
39
|
localized: boolean;
|
|
42
40
|
}>;
|
|
@@ -132,7 +130,7 @@ type AiAssistantFeature = Feature<'aiAssistant', {
|
|
|
132
130
|
type AiStudioFeature = Feature<'aiStudio'>;
|
|
133
131
|
type NewNavigationBetaFeature = Feature<'newNavigationBeta'>;
|
|
134
132
|
type ApiTelemetryFeature = Feature<'apiTelemetry'>;
|
|
135
|
-
export type Features = (AlertingFeature | LiveQueryFeature | NlqFeature | PivotFeature | CustomCodeFeature | CustomCodeTransformationFeature | BuildDestinationFeature | VersionHistoryFeature | EmbedCodeFeature | LiveCustomColumnFeature |
|
|
133
|
+
export type Features = (AlertingFeature | LiveQueryFeature | NlqFeature | PivotFeature | CustomCodeFeature | CustomCodeTransformationFeature | BuildDestinationFeature | VersionHistoryFeature | EmbedCodeFeature | LiveCustomColumnFeature | 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)[];
|
|
136
134
|
export type FeatureByKey<K extends string> = Extract<Features[number], {
|
|
137
135
|
key: K;
|
|
138
136
|
}>;
|
|
@@ -160,6 +160,23 @@ export type AppConfig = {
|
|
|
160
160
|
*/
|
|
161
161
|
enabled?: boolean;
|
|
162
162
|
};
|
|
163
|
+
/**
|
|
164
|
+
* Configuration of the Narrative feature for widgets
|
|
165
|
+
*/
|
|
166
|
+
narrativeConfig?: {
|
|
167
|
+
/**
|
|
168
|
+
* Whether to enable or disable the Widget Narrative feature
|
|
169
|
+
*
|
|
170
|
+
* When `true`, the Widget Narrative feature is enabled if the Fusion server supports it.
|
|
171
|
+
*
|
|
172
|
+
* When `false`, the Widget Narrative feature is disabled.
|
|
173
|
+
*
|
|
174
|
+
* Note: The Widget Narrative feature requires Sisense Intelligence Narratives to be enabled on the connected Sisense Fusion environment.
|
|
175
|
+
*
|
|
176
|
+
* @default true
|
|
177
|
+
*/
|
|
178
|
+
enabled?: boolean;
|
|
179
|
+
};
|
|
163
180
|
/**
|
|
164
181
|
* Global configuration for some specific aspects of data visualizations.
|
|
165
182
|
*/
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { TrackingDecoratorConfig } from './with-tracking';
|
|
3
3
|
type TrackingComponentConfig = TrackingDecoratorConfig;
|
|
4
|
+
type TrackingContextValue = {
|
|
5
|
+
skipNested: boolean;
|
|
6
|
+
};
|
|
4
7
|
export declare const TrackingContextProvider: ({ skipNested, children, }: {
|
|
5
8
|
children: ReactNode;
|
|
6
9
|
skipNested?: boolean | undefined;
|
|
7
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* Reads whether the current subtree is already inside a tracking context — i.e. an ancestor
|
|
13
|
+
* component is being tracked, so nested components must not fire their own init event.
|
|
14
|
+
*/
|
|
15
|
+
export declare const useTrackingContext: () => TrackingContextValue;
|
|
8
16
|
export declare const useTrackComponentInit: <P extends {}>(trackingComponentConfig: TrackingComponentConfig, props: P) => void;
|
|
9
17
|
export {};
|
|
@@ -13,14 +13,30 @@ export interface ApiField<TValue, TRegistry> {
|
|
|
13
13
|
*/
|
|
14
14
|
export type ApiSchema = Record<string, ApiField<any, any>>;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* A module definition which represents a named, versioned unit of Compose SDK functionality which could be consumed separately.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
* A module can require other modules (`requires`), include other modules (`includes`),
|
|
19
|
+
* contribute to the API of the modules it requires (`integrations`), and declare its own
|
|
20
|
+
* API for other modules to contribute to (`api`).
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* A module that contributes a customization to the built-in `dashboard` module:
|
|
24
|
+
* ```ts
|
|
25
|
+
* const dashboardBadgeModule: Module = {
|
|
26
|
+
* name: 'dashboard-badge',
|
|
27
|
+
* version: '1.0.0',
|
|
28
|
+
* requires: ['dashboard'],
|
|
29
|
+
* integrations: {
|
|
30
|
+
* dashboard: { customizations: [addBadgeToDashboardHeader] },
|
|
31
|
+
* },
|
|
32
|
+
* };
|
|
33
|
+
* ```
|
|
34
|
+
* @beta
|
|
19
35
|
*/
|
|
20
36
|
export interface Module<TSchema = any> {
|
|
21
37
|
/** Unique module identifier, e.g. `'dashboard'`. */
|
|
22
38
|
name: string;
|
|
23
|
-
/**
|
|
39
|
+
/** Semver version of the module (e.g. `'1.0.0'`), validated against `requiredVersion` constraints declared by other modules. */
|
|
24
40
|
version: string;
|
|
25
41
|
/**
|
|
26
42
|
* Modules this module integrates with.
|
|
@@ -30,10 +46,13 @@ export interface Module<TSchema = any> {
|
|
|
30
46
|
* - `{ ..., requiredVersion: '^2.0.0' }` → optional semver range constraint.
|
|
31
47
|
*/
|
|
32
48
|
requires?: ReadonlyArray<ModuleRequirement>;
|
|
33
|
-
/** Modules this one ships as part of its own feature */
|
|
49
|
+
/** Modules this one ships as part of its own feature. */
|
|
34
50
|
includes?: ReadonlyArray<Module>;
|
|
35
51
|
/**
|
|
36
52
|
* Declarative contributions to other modules, keyed by target module name.
|
|
53
|
+
*
|
|
54
|
+
* Every target must be declared in {@link requires}; contributions to
|
|
55
|
+
* undeclared modules throw at startup.
|
|
37
56
|
*/
|
|
38
57
|
integrations?: Record<string, unknown>;
|
|
39
58
|
/** Producer-side API declaration; defines registries other modules contribute to. */
|
|
@@ -42,7 +61,7 @@ export interface Module<TSchema = any> {
|
|
|
42
61
|
/**
|
|
43
62
|
* Hard or soft requirement on another module, optionally version-constrained.
|
|
44
63
|
*
|
|
45
|
-
* @
|
|
64
|
+
* @beta
|
|
46
65
|
*/
|
|
47
66
|
export type ModuleRequirement = string | {
|
|
48
67
|
name: string;
|