@sisense/sdk-ui 2.28.0 → 2.30.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.
Files changed (260) hide show
  1. package/dist/ai.cjs +57 -57
  2. package/dist/ai.js +767 -797
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +1310 -1230
  5. package/dist/analytics-composer.cjs +7 -7
  6. package/dist/analytics-composer.js +19 -18
  7. package/dist/apply-styled-options-to-query-BK1NnV4P.js +6453 -0
  8. package/dist/apply-styled-options-to-query-Dl8vVNxo.cjs +1 -0
  9. package/dist/{index-C77YCBVd.js → index-DCYw3JUB.js} +29 -7
  10. package/dist/index-DTvxJdqZ.cjs +1 -0
  11. package/dist/index.cjs +611 -518
  12. package/dist/index.js +26556 -24829
  13. package/dist/index.umd.js +952 -829
  14. package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/utils.d.ts +1 -1
  15. package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-container.d.ts +1 -1
  16. package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header-config.d.ts +127 -0
  17. package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header-targets.d.ts +30 -0
  18. package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header-title.d.ts +20 -0
  19. package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header.d.ts +10 -1
  20. package/dist/packages/sdk-ui/src/domains/dashboarding/constants.d.ts +2 -2
  21. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-helpers.d.ts +21 -0
  22. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-model.d.ts +7 -0
  23. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +45 -3
  24. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +10 -1
  25. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +36 -1
  26. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +2 -0
  27. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-module/dashboard-module.d.ts +34 -0
  28. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-module/types.d.ts +58 -0
  29. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/use-duplicate-widget-menu-item.d.ts +7 -0
  30. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-dashboard-header-menu-item.d.ts +9 -0
  31. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-updates-persistence.d.ts +27 -0
  32. package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/deep-merge.d.ts +17 -0
  33. package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/types.d.ts +26 -1
  34. package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/update-types.d.ts +51 -0
  35. package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +18 -7
  36. package/dist/packages/sdk-ui/src/domains/dashboarding/utils.d.ts +9 -0
  37. package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/add-measure-data-browser.d.ts +11 -0
  38. package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/add-measure-popover.d.ts +14 -0
  39. package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/measure-ranking-title.d.ts +21 -0
  40. package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/measures.d.ts +13 -0
  41. package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +2 -1
  42. package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +1 -0
  43. package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor-context.d.ts +1 -0
  44. package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor-popover.d.ts +2 -1
  45. package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor.d.ts +2 -1
  46. package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/numeric-condition-section/types.d.ts +5 -0
  47. package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/index.d.ts +3 -0
  48. package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/ranking-condition-controls.d.ts +33 -0
  49. package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/ranking-condition-utils.d.ts +13 -0
  50. package/dist/packages/sdk-ui/src/domains/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +2 -1
  51. package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-collapsible.d.ts +22 -4
  52. package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-top-slot-shell.d.ts +2 -0
  53. package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-trigger-button.d.ts +17 -0
  54. package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative-interactive.d.ts +20 -2
  55. package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative.d.ts +11 -9
  56. package/dist/packages/sdk-ui/src/domains/narrative/core/build-narrative-request.d.ts +1 -1
  57. package/dist/packages/sdk-ui/src/domains/narrative/core/get-narrative-dimensions-and-measures.d.ts +2 -2
  58. package/dist/packages/sdk-ui/src/domains/narrative/core/get-widget-narrative-from-widget-props.d.ts +18 -0
  59. package/dist/packages/sdk-ui/src/domains/narrative/core/to-nlg-api-verbosity.d.ts +7 -0
  60. package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-options.d.ts +101 -23
  61. package/dist/packages/sdk-ui/src/domains/narrative/core/widget-props-to-narrative-params.d.ts +35 -32
  62. package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-get-widget-narrative.d.ts +11 -22
  63. package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-line-height.d.ts +10 -0
  64. package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-widget-narrative-state.d.ts +8 -9
  65. package/dist/packages/sdk-ui/src/domains/query-execution/core/execute-query.d.ts +34 -1
  66. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/excel-export/build-jaql-excel-export.d.ts +13 -5
  67. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/excel-export/build-xlsx-export-payload.d.ts +5 -0
  68. 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
  69. package/dist/packages/sdk-ui/src/domains/query-execution/types.d.ts +55 -3
  70. package/dist/packages/sdk-ui/src/domains/shared/header/header-item-size.d.ts +30 -0
  71. package/dist/packages/sdk-ui/src/domains/shared/header/header-items-renderer.d.ts +19 -0
  72. package/dist/packages/sdk-ui/src/domains/shared/header/header-spacer-item.d.ts +9 -0
  73. package/dist/packages/sdk-ui/src/domains/shared/header/index.d.ts +6 -0
  74. package/dist/packages/sdk-ui/src/domains/shared/header/resolve-header-items.d.ts +17 -0
  75. package/dist/packages/sdk-ui/src/domains/shared/header/types.d.ts +98 -0
  76. package/dist/packages/sdk-ui/src/domains/shared/header/use-resolved-header-items.d.ts +10 -0
  77. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/areamap-chart/data/areamap-data.d.ts +3 -1
  78. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +0 -1
  79. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data.d.ts +3 -1
  80. 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
  81. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +3 -1
  82. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data/index.d.ts +3 -1
  83. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data/index.d.ts +3 -1
  84. 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
  85. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/alerts/index.d.ts +5 -0
  86. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/data/index.d.ts +22 -0
  87. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/data-options/index.d.ts +33 -0
  88. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/design-options/index.d.ts +21 -0
  89. 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
  90. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/sankey-chart-builder.d.ts +3 -0
  91. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/sankey-node-colors.d.ts +10 -0
  92. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/types.d.ts +38 -0
  93. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/types.d.ts +2 -1
  94. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/types.d.ts +12 -9
  95. package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/formatters/data-cell-formatters/data-cell-value-formatter.d.ts +1 -1
  96. package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +1 -1
  97. package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/hooks/use-pivot-data-loading.d.ts +1 -0
  98. package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/resolve-pivot-container-size.d.ts +28 -0
  99. package/dist/packages/sdk-ui/src/domains/visualizations/components/sankey-chart.d.ts +30 -0
  100. package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/helpers/format-numbers.d.ts +1 -1
  101. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/cartesian-data.d.ts +1 -1
  102. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/categorical-data.d.ts +1 -1
  103. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/chart-data-service.d.ts +1 -1
  104. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/filter-and-aggregate-chart-data.d.ts +2 -2
  105. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/scatter-data.d.ts +2 -2
  106. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/types.d.ts +2 -1
  107. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/apply-styled-options-to-query.d.ts +4 -4
  108. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/types.d.ts +74 -30
  109. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/utils.d.ts +4 -4
  110. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/chart-options-service.d.ts +3 -0
  111. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/tooltip.d.ts +1 -1
  112. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/design-options.d.ts +10 -1
  113. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/funnel-plot-options.d.ts +1 -1
  114. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/number-format-config.d.ts +12 -0
  115. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/pie-plot-options.d.ts +2 -1
  116. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +1 -1
  117. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-options.d.ts +1 -1
  118. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +2 -2
  119. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/types.d.ts +12 -3
  120. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/filter-to-readable-label.d.ts +14 -0
  121. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/index.d.ts +1 -0
  122. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-definition.d.ts +5 -0
  123. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-pill.d.ts +5 -0
  124. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/truncate-pill-label.d.ts +10 -0
  125. package/dist/packages/sdk-ui/src/domains/widgets/change-events.d.ts +6 -0
  126. package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +8 -1
  127. package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-chart-widget-excel-download.d.ts +1 -1
  128. package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-chart-widget-narrative.d.ts +28 -0
  129. package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/types.d.ts +11 -0
  130. package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/use-custom-widget-excel-download.d.ts +1 -1
  131. package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/pivot-table-widget.d.ts +15 -0
  132. package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +7 -1
  133. package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/use-pivot-widget-excel-download.d.ts +1 -1
  134. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/index.d.ts +1 -0
  135. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/tabber.d.ts +17 -1
  136. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +41 -2
  137. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/widget-narrative-style.d.ts +31 -0
  138. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +36 -1
  139. package/dist/packages/sdk-ui/src/domains/widgets/helpers/excel-export-map-dimensions-measures.d.ts +17 -2
  140. package/dist/packages/sdk-ui/src/domains/widgets/helpers/number-format-config-to-numeric-mask.d.ts +5 -0
  141. package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-track-widget-init.d.ts +44 -0
  142. package/dist/packages/sdk-ui/src/domains/widgets/hooks/widget-entity-id.d.ts +30 -0
  143. package/dist/packages/sdk-ui/src/domains/widgets/hooks/widget-tracking-adapters.d.ts +41 -0
  144. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/widget-container.d.ts +7 -1
  145. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-style-utils.d.ts +29 -0
  146. package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/to-widget-dto-panels.d.ts +29 -1
  147. package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model.d.ts +6 -1
  148. package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-endpoints.d.ts +2 -2
  149. package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +2 -1
  150. package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +1 -7
  151. package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +1 -9
  152. package/dist/packages/sdk-ui/src/infra/app/types.d.ts +32 -0
  153. package/dist/packages/sdk-ui/src/infra/contexts/sisense-context/sisense-context-provider.d.ts +1 -1
  154. package/dist/packages/sdk-ui/src/infra/formatting/format-data-set.d.ts +21 -0
  155. package/dist/packages/sdk-ui/src/infra/formatting/format-date.d.ts +67 -0
  156. package/dist/packages/sdk-ui/src/infra/formatting/format-number.d.ts +24 -0
  157. package/dist/packages/sdk-ui/src/infra/formatting/index.d.ts +5 -0
  158. package/dist/packages/sdk-ui/src/infra/modules/build-module-graph.d.ts +31 -0
  159. package/dist/packages/sdk-ui/src/infra/modules/build-module-registry.d.ts +31 -0
  160. package/dist/packages/sdk-ui/src/infra/modules/core-module-providers-tree.d.ts +11 -0
  161. package/dist/packages/sdk-ui/src/infra/modules/core-module.d.ts +26 -0
  162. package/dist/packages/sdk-ui/src/infra/modules/index.d.ts +3 -0
  163. package/dist/packages/sdk-ui/src/infra/modules/module-provider.d.ts +17 -0
  164. package/dist/packages/sdk-ui/src/infra/modules/modules-context.d.ts +20 -0
  165. package/dist/packages/sdk-ui/src/infra/modules/types.d.ts +79 -0
  166. package/dist/packages/sdk-ui/src/infra/plugins/types.d.ts +34 -6
  167. package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/types.d.ts +219 -49
  168. package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/widget-plugin-registry.d.ts +3 -3
  169. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +22 -0
  170. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +22 -0
  171. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +22 -0
  172. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +22 -0
  173. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +22 -0
  174. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +22 -0
  175. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +22 -0
  176. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +22 -0
  177. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +22 -0
  178. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +22 -0
  179. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +22 -0
  180. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +22 -0
  181. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +22 -0
  182. package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +22 -0
  183. package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +44 -0
  184. package/dist/packages/sdk-ui/src/modules/ai/common/collapsible.d.ts +38 -2
  185. package/dist/packages/sdk-ui/src/modules/ai/get-nlg-insights-from-widget.d.ts +4 -13
  186. package/dist/packages/sdk-ui/src/modules/ai/index.d.ts +1 -1
  187. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/get-dimension-name.d.ts +9 -0
  188. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-to-json.d.ts +4 -3
  189. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/filters/get-filter-name.d.ts +10 -0
  190. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/filters/translate-filters-to-json.d.ts +3 -3
  191. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/get-query-element-summary.d.ts +23 -0
  192. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/measures/get-measure-name.d.ts +10 -0
  193. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/measures/translate-measures-to-json.d.ts +4 -3
  194. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/index.d.ts +3 -1
  195. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-from-json.d.ts +1 -1
  196. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-to-json.d.ts +4 -3
  197. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/adapters.d.ts +3 -2
  198. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/index.d.ts +1 -1
  199. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/process-measured-value.d.ts +14 -0
  200. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +70 -9
  201. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/widget/helpers/to-widget-props.d.ts +3 -3
  202. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/widget/helpers/translate-envelope-widget-from-json.d.ts +2 -3
  203. package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +1 -18
  204. package/dist/packages/sdk-ui/src/props.d.ts +55 -2
  205. package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +6 -1
  206. package/dist/packages/sdk-ui/src/public-api/beta.d.ts +6 -0
  207. package/dist/packages/sdk-ui/src/public-api/internal.d.ts +1 -1
  208. package/dist/packages/sdk-ui/src/public-api/public.d.ts +3 -1
  209. package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +5 -3
  210. package/dist/packages/sdk-ui/src/shared/components/loading-overlay.d.ts +1 -0
  211. package/dist/packages/sdk-ui/src/shared/hooks/use-element-height.d.ts +19 -0
  212. package/dist/packages/sdk-ui/src/shared/hooks/use-synced-state.d.ts +23 -2
  213. package/dist/packages/sdk-ui/src/shared/utils/filter-relations.d.ts +8 -0
  214. package/dist/packages/sdk-ui/src/shared/utils/gradient.d.ts +5 -0
  215. package/dist/packages/sdk-ui/src/types.d.ts +78 -6
  216. package/dist/{use-hover-B6VmMb06.js → quota-notification-DqabeDbO.js} +24790 -22993
  217. package/dist/quota-notification-gYE6PTWA.cjs +750 -0
  218. package/dist/translations/de-de.cjs +1 -1
  219. package/dist/translations/de-de.js +27 -5
  220. package/dist/translations/en-us.cjs +1 -1
  221. package/dist/translations/en-us.js +1 -1
  222. package/dist/translations/es-ar.cjs +1 -1
  223. package/dist/translations/es-ar.js +27 -5
  224. package/dist/translations/es-es.cjs +1 -1
  225. package/dist/translations/es-es.js +27 -5
  226. package/dist/translations/fr-fr.cjs +1 -1
  227. package/dist/translations/fr-fr.js +27 -5
  228. package/dist/translations/it-it.cjs +1 -1
  229. package/dist/translations/it-it.js +29 -7
  230. package/dist/translations/ja-jp.cjs +1 -1
  231. package/dist/translations/ja-jp.js +27 -5
  232. package/dist/translations/ko-kr.cjs +1 -1
  233. package/dist/translations/ko-kr.js +27 -5
  234. package/dist/translations/nl-nl.cjs +1 -1
  235. package/dist/translations/nl-nl.js +29 -7
  236. package/dist/translations/pt-br.cjs +1 -1
  237. package/dist/translations/pt-br.js +27 -5
  238. package/dist/translations/ru-ru.cjs +1 -1
  239. package/dist/translations/ru-ru.js +27 -5
  240. package/dist/translations/tr-tr.cjs +1 -1
  241. package/dist/translations/tr-tr.js +27 -5
  242. package/dist/translations/zh-cn.cjs +1 -1
  243. package/dist/translations/zh-cn.js +27 -5
  244. package/dist/{types-CzgBH2kL.cjs → types-DSNnndG6.cjs} +1 -1
  245. package/dist/types-DecTaxy7.js +74 -0
  246. package/dist/{utils-BwGnDoB0.cjs → utils-Cpeyj9TN.cjs} +52 -52
  247. package/dist/{utils-CsV-iYtb.js → utils-L-HO2pCd.js} +2521 -2469
  248. package/dist/{widget-composer-C72Io-3c.cjs → widget-composer-CyWQaInf.cjs} +1 -1
  249. package/dist/{widget-composer-Bv_OVu1o.js → widget-composer-u6NMLm1C.js} +3 -3
  250. package/package.json +9 -8
  251. package/dist/apply-styled-options-to-query-23D9br-S.cjs +0 -1
  252. package/dist/apply-styled-options-to-query-BagjzMqm.js +0 -5992
  253. package/dist/dimensions-Bn1EaWiP.js +0 -204
  254. package/dist/dimensions-D8r34WRI.cjs +0 -1
  255. package/dist/index-C9G8giSk.cjs +0 -1
  256. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-dashboard-header-toolbar.d.ts +0 -25
  257. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-scroll-persistence.d.ts +0 -16
  258. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/with-navigator-scroll-save.d.ts +0 -10
  259. package/dist/types-D3fPN43o.js +0 -74
  260. package/dist/use-hover-CaSOzp0i.cjs +0 -720
@@ -1,4 +1,5 @@
1
1
  import { DataSource, Filter, FilterRelations } from '@sisense/sdk-data';
2
+ import type { VisualizationStateUpdate } from '../../../../infra/plugins/widget-plugins/types';
2
3
  import { CustomWidgetEventProps, CustomWidgetStyleOptions, GenericDataOptions } from '../../../../types';
3
4
  import { WidgetConfig } from '../widget/types';
4
5
  /**
@@ -77,4 +78,14 @@ export interface CustomWidgetProps extends CustomWidgetEventProps {
77
78
  * @category Widget
78
79
  */
79
80
  customOptions?: Record<string, any>;
81
+ /**
82
+ * Emit a partial state update to be persisted through the dashboard
83
+ * persistence layer. Injected by the dashboard composition layer
84
+ * (`useWidgetUpdatesPersistence`) and forwarded to the plugin visualization
85
+ * component as {@link CustomVisualizationProps.onChange}.
86
+ *
87
+ * @category Widget
88
+ * @internal
89
+ */
90
+ onChange?: (update: VisualizationStateUpdate) => void;
80
91
  }
@@ -1,6 +1,6 @@
1
1
  import type { WidgetHeaderConfig } from '../../../../domains/widgets/shared/widget-header/types.js';
2
2
  import type { CustomWidgetProps } from './types.js';
3
- export type UseCustomWidgetExcelDownloadParams = Pick<CustomWidgetProps, 'title' | 'dataOptions' | 'filters' | 'highlights' | 'config' | 'dataSource' | 'customWidgetType' | 'id'> & {
3
+ export type UseCustomWidgetExcelDownloadParams = Pick<CustomWidgetProps, 'title' | 'dataOptions' | 'filters' | 'config' | 'dataSource' | 'customWidgetType' | 'id'> & {
4
4
  baseHeaderConfig: WidgetHeaderConfig;
5
5
  };
6
6
  export type UseCustomWidgetExcelDownloadResult = {
@@ -1,5 +1,20 @@
1
1
  import { type FunctionComponent } from 'react';
2
2
  import { PivotTableWidgetProps } from './types';
3
+ /**
4
+ * Computes the outer widget height in auto-height mode.
5
+ *
6
+ * The inner pivot reports only its own table height. The widget reserves additional vertical
7
+ * space above the pivot — the container chrome (header + `spaceAround` padding) and
8
+ * the optional top slot (e.g. drilldown breadcrumbs, narrative-above). Callers must
9
+ * sum all such non-pivot reserved space into `reservedHeight` so that pagination at the bottom of
10
+ * the pivot remains reachable.
11
+ *
12
+ * @param pivotTableHeight - The measured content height of the pivot table.
13
+ * @param reservedHeight - The total non-pivot vertical space the widget reserves (chrome + topSlot).
14
+ * @returns The total widget height in pixels, or `undefined` when the content height is unknown.
15
+ * @internal
16
+ */
17
+ export declare function calcPivotTableWidgetHeight(pivotTableHeight: number | undefined, reservedHeight: number): number | undefined;
3
18
  /**
4
19
  * React component extending `PivotTable` to support widget style options.
5
20
  *
@@ -4,7 +4,7 @@ import type { CustomDataCellFormatter, CustomHeaderCellFormatter } from '../../.
4
4
  import { PivotTableDataOptions } from '../../../../domains/visualizations/core/chart-data-options/types';
5
5
  import type { PivotTableWidgetChangeEvent, PivotTableWidgetDrilldownSelectionsChangedEvent } from '../../../../domains/widgets/change-events';
6
6
  import type { PivotTableDataPointEventHandler } from '../../../../props';
7
- import { PivotTableDrilldownOptions, PivotTableWidgetStyleOptions } from '../../../../types';
7
+ import { PivotTableDrilldownOptions, PivotTableWidgetStyleOptions, WidgetAiOptions } from '../../../../types';
8
8
  import { WidgetConfig } from '../widget/types';
9
9
  export type { PivotTableWidgetChangeEvent, PivotTableWidgetDrilldownSelectionsChangedEvent };
10
10
  /**
@@ -43,6 +43,12 @@ export interface PivotTableWidgetProps {
43
43
  * @category Widget
44
44
  */
45
45
  styleOptions?: PivotTableWidgetStyleOptions;
46
+ /**
47
+ * Configuration for AI-powered widget features such as automated narrative generation
48
+ * @alpha
49
+ * @category Widget
50
+ */
51
+ aiOptions?: WidgetAiOptions;
46
52
  /**
47
53
  * Widget configuration (e.g. header toolbar menu)
48
54
  *
@@ -1,6 +1,6 @@
1
1
  import type { WidgetHeaderConfig } from '../../../../domains/widgets/shared/widget-header/types.js';
2
2
  import type { PivotTableWidgetProps } from './types.js';
3
- export type UsePivotWidgetExcelDownloadParams = Pick<PivotTableWidgetProps, 'title' | 'dataOptions' | 'config' | 'dataSource' | 'filters' | 'highlights' | 'id'> & {
3
+ export type UsePivotWidgetExcelDownloadParams = Pick<PivotTableWidgetProps, 'title' | 'dataOptions' | 'config' | 'dataSource' | 'filters' | 'id'> & {
4
4
  baseHeaderConfig: WidgetHeaderConfig;
5
5
  };
6
6
  export type UsePivotWidgetExcelDownloadResult = {
@@ -2,3 +2,4 @@ export * from './apply-partial-dto-style.js';
2
2
  export * from './extract-unsupported-style-options.js';
3
3
  export * from './translate-widget-style-options.js';
4
4
  export * from './to-widget-dto-style.js';
5
+ export * from './widget-narrative-style.js';
@@ -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,8 @@
1
1
  import type { PivotGrandTotals } from '@sisense/sdk-data';
2
+ import type { BoxWhiskerType } from '../../../../../domains/visualizations/core/chart-data-options/types.js';
2
3
  import { AppSettings } from '../../../../../infra/app/settings/settings.js';
3
- import type { AreamapType, AreaStyleOptions, AxisLabel, 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 { AxisStyle, CartesianWidgetStyle, FunnelWidgetStyle, PivotWidgetStyle, PolarWidgetStyle, ScattermapWidgetStyle, ScatterWidgetStyle, SunburstWidgetStyle, TableWidgetStyle, TreemapWidgetStyle, WidgetDesign, WidgetStyle, WidgetSubtype } from '../types.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';
5
+ import type { AxisStyle, BoxplotWidgetStyle, CalendarHeatmapWidgetStyle, CartesianWidgetStyle, FunnelWidgetStyle, PivotWidgetStyle, PolarWidgetStyle, ScattermapWidgetStyle, ScatterWidgetStyle, SunburstWidgetStyle, TableWidgetStyle, TreemapWidgetStyle, WidgetDesign, WidgetStyle, WidgetSubtype } from '../types.js';
5
6
  /**
6
7
  * Maps SDK legend options to Fusion DTO legend style.
7
8
  *
@@ -211,6 +212,44 @@ export declare function toScattermapWidgetStyle(styleOptions: ScattermapStyleOpt
211
212
  * @internal
212
213
  */
213
214
  export declare function toAreamapSubtype(mapType?: AreamapType): 'areamap/world' | 'areamap/usa';
215
+ /**
216
+ * Converts boxplot style options to Fusion BoxplotWidgetStyle DTO.
217
+ * Inverse of `extractBoxplotChartStyleOptions`.
218
+ *
219
+ * The whisker algorithm (`boxType`) and `outliersEnabled` flag live on
220
+ * {@link BoxplotChartDataOptions} in the WidgetModel rather than on `styleOptions`,
221
+ * so they are passed in separately. `boxType` defaults to `'iqr'` — the same default
222
+ * the boxplot translator falls back to when no whisker flag is selected.
223
+ *
224
+ * @param styleOptions - Boxplot style options from WidgetModel.styleOptions
225
+ * @param boxType - Whisker algorithm from WidgetModel.dataOptions.boxType
226
+ * @param outliersEnabled - Whether to render boxplot outliers
227
+ * @returns Fusion BoxplotWidgetStyle for the widget DTO
228
+ * @internal
229
+ */
230
+ export declare function toBoxplotWidgetStyle(styleOptions: BoxplotStyleOptions, boxType?: BoxWhiskerType, outliersEnabled?: boolean): BoxplotWidgetStyle;
231
+ /**
232
+ * Converts calendar-heatmap style options to Fusion CalendarHeatmapWidgetStyle DTO.
233
+ * Inverse of {@link extractCalendarHeatmapChartStyleOptions}.
234
+ *
235
+ * Only the fields the inverse extractor reads are round-trippable. Cosmetic fields
236
+ * that the extractor synthesizes from {@link CALENDAR_HEATMAP_DEFAULTS}
237
+ * (`monthLabels.enabled`, `weekends.cellColor`, `weekends.hideValues`,
238
+ * `pagination.enabled`) are not written back because the Fusion DTO has no fields
239
+ * for them.
240
+ *
241
+ * The CSDK `subtype` (`'calendar-heatmap/split' | 'calendar-heatmap/continuous'`)
242
+ * is NOT the DTO `subtype` — the DTO uses `'heatmap'` and encodes view as the
243
+ * `'view/weekly'` / `'view/monthly'` style flags.
244
+ *
245
+ * `pagination.startMonth` is emitted as `{year, month}` because Fusion's startMonth
246
+ * object form is the canonical write shape; the string form is read-only legacy input.
247
+ *
248
+ * @param styleOptions - Calendar heatmap style options from WidgetModel.styleOptions
249
+ * @returns Fusion CalendarHeatmapWidgetStyle for the widget DTO
250
+ * @internal
251
+ */
252
+ export declare function toCalendarHeatmapWidgetStyle(styleOptions: CalendarHeatmapStyleOptions): CalendarHeatmapWidgetStyle;
214
253
  /**
215
254
  * Converts table style options to Fusion TableWidgetStyle DTO.
216
255
  * Used when serializing a table widget back to WidgetDto.
@@ -0,0 +1,31 @@
1
+ import type { WidgetDtoNarration, WidgetStyle } from '../../../../../domains/widgets/components/widget-by-id/types.js';
2
+ import type { WidgetNarrativeOptions } from '../../../../../types.js';
3
+ /**
4
+ * Maps Fusion `style.narration` into SDK {@link WidgetNarrativeOptions},
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 extractWidgetNarrativeOptionsFromDto(dto: WidgetDtoNarration | undefined): WidgetNarrativeOptions | undefined;
15
+ /**
16
+ * Builds Fusion `style.narration` from SDK {@link WidgetNarrativeOptions} only (typed fields).
17
+ *
18
+ * @param narrative - SDK narrative slice from {@link WidgetAiOptions.narrative}
19
+ * @returns Narration DTO, or `undefined` when nothing should be written
20
+ * @internal
21
+ */
22
+ export declare function narrativeOptionsToWidgetDtoNarration(narrative: WidgetNarrativeOptions | 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.aiOptions}
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: WidgetNarrativeOptions | undefined): WidgetStyle;
@@ -77,6 +77,12 @@ export interface WidgetDto {
77
77
  supportsHierarchies?: boolean;
78
78
  imageColumns?: number[];
79
79
  };
80
+ /**
81
+ * Custom-widget-specific runtime options bag, persisted across reloads for
82
+ * custom (plugin) widgets. Round-trips opaquely between the Fusion DTO and the
83
+ * CSDK widget model's `customOptions`.
84
+ */
85
+ customOptions?: Record<string, unknown>;
80
86
  source?: any;
81
87
  owner?: string;
82
88
  userId?: string;
@@ -562,9 +568,38 @@ export type CalendarHeatmapWidgetStyle = {
562
568
  month: number;
563
569
  };
564
570
  };
571
+ /**
572
+ * Fusion `style.narration` payload (chart widgets and others that support narration).
573
+ *
574
+ * @internal
575
+ */
576
+ export type WidgetDtoNarration = {
577
+ enabled?: boolean;
578
+ /** Placement string from Fusion; maps to SDK `displayLocation`. */
579
+ display?: string;
580
+ format?: string;
581
+ verbosity?: string;
582
+ up_sentiment?: string;
583
+ aggregation?: string;
584
+ labels?: readonly {
585
+ id: string;
586
+ title: string;
587
+ singular: string;
588
+ plural: string;
589
+ }[];
590
+ includeTrendAndForecast?: boolean;
591
+ /** When `true`, narrative is shown as soon as the widget loads */
592
+ autoShow?: boolean;
593
+ /** Narrative feedback actions */
594
+ feedback?: {
595
+ enabled?: boolean;
596
+ };
597
+ /** Fraction (0–1) of the content area height reserved for the narrative; maps to SDK `height`. */
598
+ size?: number;
599
+ };
565
600
  export type WidgetStyle = {
566
601
  widgetDesign?: WidgetDesign;
567
- narration?: any;
602
+ narration?: WidgetDtoNarration;
568
603
  } & (CartesianWidgetStyle | PolarWidgetStyle | FunnelWidgetStyle | PieWidgetStyle | ScatterWidgetStyle | TableWidgetStyle | IndicatorWidgetStyle | TreemapWidgetStyle | SunburstWidgetStyle | BoxplotWidgetStyle | ScattermapWidgetStyle | AreamapWidgetStyle | PivotWidgetStyle | CalendarHeatmapWidgetStyle | TextWidgetDtoStyle | TabberWidgetDtoStyle);
569
604
  export declare enum FiltersMergeStrategyEnum {
570
605
  WIDGET_FIRST = "widgetFirst",
@@ -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[]): 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 {};
@@ -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>;
@@ -0,0 +1,44 @@
1
+ import type { WidgetType } from '../components/widget/types';
2
+ /**
3
+ * Fully resolved options for {@link useTrackWidgetInit}. The caller (a leaf widget) is
4
+ * responsible for deriving each field from its own props so the hook stays free of
5
+ * widget-shape concerns and runtime type casts.
6
+ *
7
+ * @internal
8
+ */
9
+ export type UseTrackWidgetInitOptions = {
10
+ /** Widget type (chart / pivot / text / custom). */
11
+ widgetType: WidgetType;
12
+ /** Resolved widget kind — chart subtype, plugin name, or fixed string for pivot/text. */
13
+ widgetName: string;
14
+ /** Widget title entered by the designer, or `null` if absent. */
15
+ widgetTitle: string | null;
16
+ /** Stable unique widget identifier — the widget id/OID when available, otherwise a content hash. */
17
+ entityId: string;
18
+ /**
19
+ * When `false`, the event is suppressed. Pass the caller's render preconditions here
20
+ * (e.g. `!!(chartType && dataOptions)` for `ChartWidget`) so we do not count mounts
21
+ * whose render body early-returns `null`. The event fires once when this flips to `true`.
22
+ *
23
+ * @default true
24
+ */
25
+ enabled?: boolean;
26
+ };
27
+ /**
28
+ * Fires the `sdkWidgetInit` tracking event exactly once per widget mount.
29
+ *
30
+ * Behavioral note: unlike `useTrackComponentInit`, this hook intentionally
31
+ * IGNORES `TrackingContextProvider`'s skip-nested signal. Widgets rendered inside
32
+ * a tracked parent (e.g. a `<Dashboard>`) must still emit `sdkWidgetInit`, since
33
+ * the event must count every widget render regardless of nesting.
34
+ *
35
+ * The payload includes envelope overrides (`eventType: 'action'`,
36
+ * `featureName: 'composesdk'`, `entityType: 'widget'`) that override the defaults
37
+ * set by `trackProductEvent`, as required by the data-tracking spec.
38
+ *
39
+ * `widgetTitle` is emitted as `null` rather than `undefined` when absent, matching the
40
+ * spec's "null or [empty]" wire convention.
41
+ *
42
+ * @internal
43
+ */
44
+ export declare const useTrackWidgetInit: (options: UseTrackWidgetInitOptions) => void;
@@ -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 { 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>;
@@ -12,3 +12,32 @@ export declare enum WidgetSpaceAround {
12
12
  'Small' = "5px"
13
13
  }
14
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,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
@@ -2,7 +2,7 @@ import { DataSource, Filter } from '@sisense/sdk-data';
2
2
  import { EmptyObject } from '@sisense/sdk-query-client/src/helpers/utility-types';
3
3
  import type { JumpToDashboardConfig, JumpToDashboardConfigForPivot } from '../../../domains/dashboarding/hooks/jtd/jtd-types';
4
4
  import { ChartDataOptions, PivotTableDataOptions } from '../../../domains/visualizations/core/chart-data-options/types';
5
- import { ChartType, DrilldownOptions, PivotTableDrilldownOptions, WidgetStyleOptions } from '../../../types';
5
+ import { ChartType, DrilldownOptions, PivotTableDrilldownOptions, WidgetAiOptions, WidgetStyleOptions } from '../../../types';
6
6
  import type { WidgetType } from '../components/widget/types';
7
7
  /**
8
8
  * Widget data options.
@@ -49,6 +49,11 @@ export interface WidgetModel {
49
49
  * Widget style options.
50
50
  */
51
51
  styleOptions: WidgetStyleOptions;
52
+ /**
53
+ * Configuration for AI-powered widget features such as automated narrative generation
54
+ * @alpha
55
+ */
56
+ aiOptions?: WidgetAiOptions;
52
57
  /**
53
58
  * Custom widget options. Only present for custom widgets.
54
59
  *
@@ -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 - Narration request payload
27
+ * @param request - Narrative request payload
28
28
  * @param options - Optional; `canGenerateNarrativeViaAI` (typically from `app.settings.narrative`)
29
- * @returns Promise that resolves with narration JSON or `undefined` (same semantics as `HttpClient.post`)
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>;
@@ -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
  */
@@ -8,9 +8,7 @@ import { FeatureMap } from './types/features.js';
8
8
  * it still surfaces via the index signature on {@link AiFeatureFlags}.
9
9
  */
10
10
  type KnownAiFeatureFlags = {
11
- completionV2: boolean;
12
11
  naturalResponseEnabled: boolean;
13
- nlqV3Enabled: boolean;
14
12
  queryDefinition: boolean;
15
13
  };
16
14
  /**
@@ -27,7 +25,7 @@ export type AiFeatureFlags = KnownAiFeatureFlags & {
27
25
  /**
28
26
  * AI-related slice derived from globals (`serverFeatures` + deployment props),
29
27
  * aligned with admin UI paths such as `ai.featureFlags.*`, `ai.featureModelType`,
30
- * `ai.quotaNotification`, and `ai.aiStudio.*`.
28
+ * and `ai.quotaNotification`.
31
29
  */
32
30
  type AiSettingsSlice = {
33
31
  featureFlags: AiFeatureFlags;
@@ -38,10 +36,6 @@ type AiSettingsSlice = {
38
36
  */
39
37
  featureModelType?: string;
40
38
  quotaNotification: boolean;
41
- aiStudio: {
42
- realtime: boolean;
43
- usageDisplay: boolean;
44
- };
45
39
  };
46
40
  /**
47
41
  * Application settings
@@ -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)[];