@sisense/sdk-ui 2.21.0 → 2.23.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 (234) hide show
  1. package/dist/ai.cjs +58 -58
  2. package/dist/ai.js +861 -844
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +2240 -1230
  5. package/dist/analytics-composer.cjs +47 -47
  6. package/dist/analytics-composer.js +135 -131
  7. package/dist/dimensions-2t18RSZC.cjs +1 -0
  8. package/dist/dimensions-C0BmtTH2.js +204 -0
  9. package/dist/execute-query-CHYTupEo.js +5866 -0
  10. package/dist/execute-query-DmAyVFF5.cjs +1 -0
  11. package/dist/{index-Ck90GjPy.js → index-DCAC0mJe.js} +33 -2
  12. package/dist/{index-0brX9D6q.cjs → index-Dx6wvLd3.cjs} +1 -1
  13. package/dist/index.cjs +423 -410
  14. package/dist/index.js +24905 -23677
  15. package/dist/index.umd.js +728 -675
  16. package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/const.d.ts +1 -0
  17. package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/smart-pointer-sensor.d.ts +17 -0
  18. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-model.d.ts +2 -1
  19. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/index.d.ts +1 -1
  20. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +8 -1
  21. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/types.d.ts +9 -2
  22. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/index.d.ts +4 -0
  23. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +13 -0
  24. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/{use-dashboard-model-reducer.d.ts → dashboard-model-reducer/types.d.ts} +43 -38
  25. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/use-dashboard-model-reducer.d.ts +9 -0
  26. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +29 -0
  27. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/use-dashboard-persistence.d.ts +6 -5
  28. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/duplicate-widget-utils.d.ts +34 -0
  29. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/index.d.ts +2 -0
  30. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/use-duplicate-widget-menu-item.d.ts +57 -0
  31. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-types.d.ts +1 -1
  32. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/rename-widget/use-widget-renaming.d.ts +34 -0
  33. package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +65 -2
  34. package/dist/packages/sdk-ui/src/domains/dashboarding/use-composed-dashboard.d.ts +15 -3
  35. package/dist/packages/sdk-ui/src/domains/dashboarding/use-dashboard-theme.d.ts +1 -1
  36. package/dist/packages/sdk-ui/src/domains/data-browser/add-filter-popover/add-filter-data-browser.d.ts +2 -1
  37. package/dist/packages/sdk-ui/src/domains/data-browser/data-schema-browser/data-schema-browser.d.ts +2 -1
  38. package/dist/packages/sdk-ui/src/domains/data-browser/dimensions-browser/types.d.ts +9 -1
  39. package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +7 -0
  40. package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/cascading-level-filter.d.ts +4 -1
  41. package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/use-cascadding-filter-tile-menu-items/use-cascadding-filter-tile-lock-menu-item.d.ts +13 -0
  42. package/dist/packages/sdk-ui/src/domains/filters/components/cascading-filter-tile/use-cascadding-filter-tile-menu-items/use-cascadding-filter-tile-menu-items.d.ts +14 -0
  43. package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +7 -0
  44. package/dist/packages/sdk-ui/src/domains/filters/components/custom-filter-tile.d.ts +7 -0
  45. package/dist/packages/sdk-ui/src/domains/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +7 -0
  46. package/dist/packages/sdk-ui/src/domains/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +7 -0
  47. package/dist/packages/sdk-ui/src/domains/filters/components/{filter-tile.d.ts → filter-tile/filter-tile.d.ts} +7 -0
  48. package/dist/packages/sdk-ui/src/domains/filters/components/filter-tile/index.d.ts +1 -0
  49. package/dist/packages/sdk-ui/src/domains/filters/components/filter-tile/types.d.ts +36 -0
  50. package/dist/packages/sdk-ui/src/domains/filters/components/filter-tile-container.d.ts +6 -0
  51. package/dist/packages/sdk-ui/src/domains/filters/components/filters-panel/types.d.ts +13 -0
  52. package/dist/packages/sdk-ui/src/domains/filters/components/index.d.ts +1 -1
  53. package/dist/packages/sdk-ui/src/domains/filters/components/member-filter-tile/member-filter-tile.d.ts +7 -0
  54. package/dist/packages/sdk-ui/src/domains/filters/components/unsupported-filter-tile.d.ts +10 -1
  55. package/dist/packages/sdk-ui/src/domains/filters/shared/clone-filter-and-toggle-locked.d.ts +7 -0
  56. package/dist/packages/sdk-ui/src/domains/filters/shared/filter-tile-menu-button.d.ts +10 -0
  57. package/dist/packages/sdk-ui/src/domains/filters/shared/use-filter-tile-menu-items/use-filter-tile-lock-menu-item.d.ts +15 -0
  58. package/dist/packages/sdk-ui/src/domains/filters/shared/use-filter-tile-menu-items/use-filter-tile-menu-items.d.ts +14 -0
  59. package/dist/packages/sdk-ui/src/domains/formulas/fetch-formula.d.ts +1 -1
  60. package/dist/packages/sdk-ui/src/domains/formulas/index.d.ts +0 -1
  61. package/dist/packages/sdk-ui/src/domains/formulas/use-get-shared-formula.d.ts +20 -7
  62. package/dist/packages/sdk-ui/src/domains/query-execution/core/execute-query.d.ts +1 -1
  63. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query-by-widget-id/use-execute-query-by-widget-id.d.ts +1 -1
  64. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-query-cache/use-query-cache.d.ts +2 -1
  65. package/dist/packages/sdk-ui/src/domains/visualizations/components/boxplot-chart/boxplot-utils.d.ts +1 -1
  66. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/helpers/get-load-data-function.d.ts +1 -1
  67. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/helpers/data-loading.d.ts +1 -1
  68. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/types.d.ts +1 -1
  69. package/dist/packages/sdk-ui/src/domains/widgets/change-events.d.ts +73 -0
  70. package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +12 -2
  71. package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +12 -2
  72. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-dashboard-filters.d.ts +3 -1
  73. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-data-options.d.ts +1 -1
  74. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/index.d.ts +1 -0
  75. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +63 -0
  76. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +1 -1
  77. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/utils.d.ts +3 -2
  78. package/dist/packages/sdk-ui/src/domains/widgets/event-to-delta.d.ts +17 -0
  79. package/dist/packages/sdk-ui/src/domains/widgets/helpers/header-menu-utils.d.ts +14 -4
  80. package/dist/packages/sdk-ui/src/domains/widgets/helpers/index.d.ts +2 -1
  81. package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-title-renaming.d.ts +27 -0
  82. package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-widget-header-management.d.ts +28 -0
  83. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/widget-container.d.ts +3 -1
  84. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/types.d.ts +32 -17
  85. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-header.d.ts +3 -1
  86. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-menu-button.d.ts +1 -1
  87. package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +4 -0
  88. package/dist/packages/sdk-ui/src/infra/api/types/dashboard-dto.d.ts +3 -2
  89. package/dist/packages/sdk-ui/src/infra/app/client-application.d.ts +6 -215
  90. package/dist/packages/sdk-ui/src/infra/app/helpers.d.ts +16 -0
  91. package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +3 -0
  92. package/dist/packages/sdk-ui/src/infra/app/settings/types/deployment-props.d.ts +4 -1
  93. package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +19 -1
  94. package/dist/packages/sdk-ui/src/infra/app/types.d.ts +236 -0
  95. package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/index.d.ts +5 -0
  96. package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/plugin-context.d.ts +15 -0
  97. package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/plugin-provider.d.ts +21 -0
  98. package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/types.d.ts +50 -0
  99. package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/validate-plugins.d.ts +9 -0
  100. package/dist/packages/sdk-ui/src/infra/contexts/sisense-context/sisense-context.d.ts +1 -1
  101. package/dist/packages/sdk-ui/src/infra/contexts/theme-provider/theme-context.d.ts +2 -1
  102. package/dist/packages/sdk-ui/src/infra/decorators/component-decorators/with-tracking/with-tracking.d.ts +1 -1
  103. package/dist/packages/sdk-ui/src/infra/decorators/hook-decorators/with-tracking.d.ts +1 -1
  104. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +31 -0
  105. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +31 -0
  106. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +31 -0
  107. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +31 -0
  108. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +31 -0
  109. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +31 -0
  110. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +31 -0
  111. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +31 -0
  112. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +31 -0
  113. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +31 -0
  114. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +31 -0
  115. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +31 -0
  116. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +31 -0
  117. package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +31 -0
  118. package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +62 -0
  119. package/dist/packages/sdk-ui/src/modules/ai/api/chat-rest-api.d.ts +2 -1
  120. package/dist/packages/sdk-ui/src/modules/ai/api/narration-endpoints.d.ts +2 -1
  121. package/dist/packages/sdk-ui/src/modules/ai/get-nlg-insights-from-widget.d.ts +1 -0
  122. package/dist/packages/sdk-ui/src/modules/ai/use-get-nlq-result.d.ts +1 -0
  123. package/dist/packages/sdk-ui/src/modules/ai/use-get-query-recommendations.d.ts +1 -0
  124. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/axis-type-detection.d.ts +17 -0
  125. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/chart-type-schemas.d.ts +37 -0
  126. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/index.d.ts +9 -0
  127. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/translate-data-options.d.ts +9 -0
  128. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/validate-chart-json.d.ts +19 -0
  129. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/translate-chart-from-json.d.ts +42 -0
  130. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/translate-chart-to-json.d.ts +41 -0
  131. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-from-json.d.ts +11 -0
  132. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-to-json.d.ts +22 -0
  133. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-filters-from-json.d.ts → constructs/filters/translate-filters-from-json.d.ts} +2 -2
  134. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-filters-to-json.d.ts → constructs/filters/translate-filters-to-json.d.ts} +1 -1
  135. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-measures-from-json.d.ts → constructs/measures/translate-measures-from-json.d.ts} +4 -4
  136. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/measures/translate-measures-to-json.d.ts +22 -0
  137. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/index.d.ts +8 -3
  138. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/index.d.ts +7 -0
  139. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/translate-data-options.d.ts +14 -0
  140. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/validate-pivot-table-json.d.ts +19 -0
  141. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/translate-pivot-table-from-json.d.ts +12 -0
  142. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/translate-pivot-table-to-json.d.ts +12 -0
  143. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/constants.d.ts +8 -0
  144. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-from-json.d.ts → query/translate-query-from-json.d.ts} +3 -3
  145. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-to-jaql.d.ts → query/translate-query-to-jaql.d.ts} +1 -1
  146. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-to-json.d.ts → query/translate-query-to-json.d.ts} +2 -2
  147. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/adapters.d.ts +19 -0
  148. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/index.d.ts +9 -0
  149. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/translate-axis-from-json.d.ts +24 -0
  150. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/translate-axis-to-json.d.ts +18 -0
  151. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/custom-formula/process-custom-formula.d.ts +1 -1
  152. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/custom-formula/validate-custom-formula.d.ts +13 -0
  153. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/execute-function.d.ts +1 -1
  154. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/factory-function-processors.d.ts +1 -1
  155. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/factory-function-schemas.d.ts +1 -1
  156. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/filter-processors.d.ts +1 -1
  157. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/formula-function-schemas.d.ts +25 -0
  158. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/process-arg.d.ts +1 -1
  159. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/process-node.d.ts +1 -1
  160. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/attribute-helpers.d.ts +50 -0
  161. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/fuzzy-match.d.ts +16 -0
  162. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{parse-compose-code.d.ts → shared/utils/parse-compose-code.d.ts} +1 -1
  163. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/schema-index.d.ts +49 -0
  164. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/translation-helpers.d.ts +31 -0
  165. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +115 -4
  166. package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +6 -6
  167. package/dist/packages/sdk-ui/src/props.d.ts +14 -21
  168. package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +1 -1
  169. package/dist/packages/sdk-ui/src/public-api/beta.d.ts +1 -1
  170. package/dist/packages/sdk-ui/src/public-api/internal.d.ts +9 -6
  171. package/dist/packages/sdk-ui/src/public-api/public.d.ts +2 -2
  172. package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +18 -5
  173. package/dist/packages/sdk-ui/src/shared/components/alert/alert.d.ts +91 -0
  174. package/dist/packages/sdk-ui/src/shared/components/alert/index.d.ts +2 -0
  175. package/dist/packages/sdk-ui/src/shared/components/grouped-items-browser/types.d.ts +7 -1
  176. package/dist/packages/sdk-ui/src/shared/components/inline-text-editor/inline-text-editor.d.ts +26 -0
  177. package/dist/packages/sdk-ui/src/shared/components/inline-text-editor/use-blur-on-pointer-down-outside.d.ts +11 -0
  178. package/dist/packages/sdk-ui/src/shared/components/loading-indicator.d.ts +2 -1
  179. package/dist/packages/sdk-ui/src/shared/components/menu/menu-button.d.ts +2 -1
  180. package/dist/packages/sdk-ui/src/shared/components/quota-notification/quota-notification.d.ts +32 -0
  181. package/dist/packages/sdk-ui/src/shared/hooks/use-app-settings.d.ts +12 -0
  182. package/dist/packages/sdk-ui/src/shared/hooks/use-quota-notification.d.ts +54 -0
  183. package/dist/packages/sdk-ui/src/shared/hooks/use-quota-warning-dismissed.d.ts +8 -0
  184. package/dist/packages/sdk-ui/src/shared/hooks/use-should-load.d.ts +1 -1
  185. package/dist/packages/sdk-ui/src/shared/hooks/use-with-change-detection.d.ts +5 -5
  186. package/dist/packages/sdk-ui/src/shared/icons/warning-icon.d.ts +6 -0
  187. package/dist/packages/sdk-ui/src/shared/icons/x-circle-icon.d.ts +6 -0
  188. package/dist/packages/sdk-ui/src/shared/types/menu-item.d.ts +17 -0
  189. package/dist/packages/sdk-ui/src/types.d.ts +3 -3
  190. package/dist/{use-common-filters-DBqRT0et.js → quota-notification-CVl0isIV.js} +18254 -16897
  191. package/dist/quota-notification-RAaHp-eO.cjs +713 -0
  192. package/dist/translations/de-de.cjs +1 -1
  193. package/dist/translations/de-de.js +34 -3
  194. package/dist/translations/en-us.cjs +1 -1
  195. package/dist/translations/en-us.js +1 -1
  196. package/dist/translations/es-ar.cjs +1 -1
  197. package/dist/translations/es-ar.js +34 -3
  198. package/dist/translations/es-es.cjs +1 -1
  199. package/dist/translations/es-es.js +34 -3
  200. package/dist/translations/fr-fr.cjs +1 -1
  201. package/dist/translations/fr-fr.js +34 -3
  202. package/dist/translations/it-it.cjs +1 -1
  203. package/dist/translations/it-it.js +34 -3
  204. package/dist/translations/ja-jp.cjs +1 -1
  205. package/dist/translations/ja-jp.js +34 -3
  206. package/dist/translations/ko-kr.cjs +1 -1
  207. package/dist/translations/ko-kr.js +34 -3
  208. package/dist/translations/nl-nl.cjs +1 -1
  209. package/dist/translations/nl-nl.js +34 -3
  210. package/dist/translations/pt-br.cjs +1 -1
  211. package/dist/translations/pt-br.js +34 -3
  212. package/dist/translations/ru-ru.cjs +1 -1
  213. package/dist/translations/ru-ru.js +34 -3
  214. package/dist/translations/tr-tr.cjs +1 -1
  215. package/dist/translations/tr-tr.js +34 -3
  216. package/dist/translations/zh-cn.cjs +1 -1
  217. package/dist/translations/zh-cn.js +34 -3
  218. package/dist/{types-Ockb-LJ0.js → types-B96nVbgX.js} +1 -1
  219. package/dist/{types-Ch9J6ycn.cjs → types-DZ4vWh8j.cjs} +1 -1
  220. package/dist/{utils-DH69_bUK.cjs → utils-CgV-jWWQ.cjs} +44 -44
  221. package/dist/{utils-BXDqo_yg.js → utils-ChqSLRbz.js} +2073 -2081
  222. package/dist/{widget-composer-DgCWcMJ1.cjs → widget-composer-Blul90Zb.cjs} +3 -3
  223. package/dist/{widget-composer-DfVCQL2G.js → widget-composer-Cf_CN3Ux.js} +8 -8
  224. package/package.json +12 -9
  225. package/dist/dimensions-DVGn8ORR.cjs +0 -1
  226. package/dist/dimensions-DuUqQgpi.js +0 -202
  227. package/dist/execute-query-B21bnb05.js +0 -5802
  228. package/dist/execute-query-BIkhszY1.cjs +0 -1
  229. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/common.d.ts +0 -84
  230. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-from-json.d.ts +0 -12
  231. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-to-json.d.ts +0 -13
  232. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-measures-to-json.d.ts +0 -13
  233. package/dist/use-common-filters-CXJN3RSs.cjs +0 -672
  234. /package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/{use-dasboard-model-utils.d.ts → use-dashboard-model-utils.d.ts} +0 -0
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Translates a single data options axis from JSON to CSDK format.
3
+ * Shared by chart and pivot-table translators.
4
+ *
5
+ * @internal
6
+ */
7
+ import type { Attribute, Measure } from '@sisense/sdk-data';
8
+ import type { StyledColumn, StyledMeasureColumn } from '../../../../../domains/visualizations/core/chart-data-options/types.js';
9
+ import type { NlqTranslationError } from '../../../types.js';
10
+ import type { InternalDataSchemaContext } from '../../types.js';
11
+ import { type AxisType } from './adapters.js';
12
+ export type { AxisType };
13
+ export type TranslatedAxis = (Attribute | StyledColumn)[] | (Measure | StyledMeasureColumn)[];
14
+ /**
15
+ * Translates a single axis from JSON to CSDK format.
16
+ *
17
+ * @param axisKey - The axis key (e.g. 'category', 'value', 'rows', 'columns')
18
+ * @param axisValue - The axis value (array or single item)
19
+ * @param axisType - Whether the axis contains dimensions or measures
20
+ * @param context - Schema context for translation
21
+ * @param translationErrors - Array to collect errors into
22
+ * @returns Translated array or null if translation failed
23
+ */
24
+ export declare function translateSingleAxisFromJSON(axisKey: string, axisValue: unknown, axisType: AxisType, context: InternalDataSchemaContext, translationErrors: NlqTranslationError[]): TranslatedAxis | null;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Translates a single data options axis from CSDK to JSON format.
3
+ * Shared by chart and pivot-table translators.
4
+ *
5
+ * @internal
6
+ */
7
+ import type { NlqTranslationResult } from '../../../types.js';
8
+ import type { DimensionItemJSON, MeasureItemJSON } from '../../types.js';
9
+ import type { AxisType } from './adapters.js';
10
+ /**
11
+ * Translates a single axis from CSDK to JSON format.
12
+ *
13
+ * @param axisKey - The axis key (for error messages)
14
+ * @param axisValue - The axis value (array or single item)
15
+ * @param axisType - Whether the axis contains dimensions or measures
16
+ * @returns NlqTranslationResult with translated JSON array
17
+ */
18
+ export declare function translateSingleAxisToJSON(axisKey: string, axisValue: unknown, axisType: AxisType): NlqTranslationResult<DimensionItemJSON[] | MeasureItemJSON[]>;
@@ -1,4 +1,4 @@
1
- import { FunctionContext, ProcessedArg } from '../../types.js';
1
+ import { FunctionContext, ProcessedArg } from '../../../types.js';
2
2
  /**
3
3
  * Custom processor for measureFactory.customFormula that:
4
4
  * - Validates formula bracket references match context keys
@@ -1,3 +1,4 @@
1
+ import type { SchemaIndex } from '../../utils/schema-index.js';
1
2
  export interface FormulaValidationResult {
2
3
  isValid: boolean;
3
4
  errors: string[];
@@ -14,7 +15,19 @@ export interface FormulaValidationOptions {
14
15
  allowEmptyFormula?: boolean;
15
16
  /** Custom error message prefix for better context */
16
17
  errorPrefix?: string;
18
+ /** When provided, time-diff args are validated as datetime dimensions and level-matched */
19
+ schemaIndex?: SchemaIndex;
17
20
  }
21
+ export interface TimeDiffCall {
22
+ functionName: string;
23
+ ref1: string;
24
+ ref2: string;
25
+ }
26
+ /**
27
+ * Extracts time-diff (or other two-arg bracket) calls from a formula string.
28
+ * Matches FUNC([ref1], [ref2]) for each function name in the set (case-insensitive).
29
+ */
30
+ export declare function parseTimeDiffCalls(formula: string, functionNames: readonly string[]): TimeDiffCall[];
18
31
  /**
19
32
  * Validates that all bracket references in a custom formula exist in the provided context
20
33
  * and provides helpful error messages for debugging.
@@ -1,4 +1,4 @@
1
- import { ProcessedArg, QueryElement } from '../types.js';
1
+ import { ProcessedArg, QueryElement } from '../../types.js';
2
2
  /**
3
3
  * Executes a factory function with validated arguments using direct factory access
4
4
  */
@@ -2,7 +2,7 @@
2
2
  * Custom processing registry for factory functions that require complex validation
3
3
  * and transformation beyond basic argument type checking.
4
4
  */
5
- import { CustomFunctionProcessor } from '../types.js';
5
+ import { CustomFunctionProcessor } from '../../types.js';
6
6
  /**
7
7
  * Registry mapping function paths to their custom processing functions.
8
8
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Comprehensive schema definitions for validating arguments to measureFactory and filterFactory functions.
3
3
  */
4
- import { ArgSchema } from '../types';
4
+ import { ArgSchema } from '../../types.js';
5
5
  export declare const FACTORY_FUNCTION_SCHEMAS: Record<string, ArgSchema[]>;
6
6
  /**
7
7
  * Utility functions for working with function schemas
@@ -1,4 +1,4 @@
1
- import { FunctionContext, ProcessedArg } from '../types.js';
1
+ import { FunctionContext, ProcessedArg } from '../../types.js';
2
2
  /**
3
3
  * Processes filters that accept string | number values
4
4
  * Used by: equals, doesntEqual
@@ -0,0 +1,25 @@
1
+ /** Category of formula function for validation and translation. */
2
+ export type FormulaFunctionCategory = 'time-diff' | 'aggregative' | 'math' | 'growth' | 'date';
3
+ /** Metadata for a formula function (e.g. DDIFF, SUM). */
4
+ export interface FormulaFunctionMeta {
5
+ category: FormulaFunctionCategory;
6
+ argCount: number;
7
+ /** Required date level for time-diff functions (e.g. DateLevels.Days for DDIFF). */
8
+ requiredDateLevel?: string;
9
+ /** Argument type constraint; 'datetime' means args must be datetime dimensions. */
10
+ argType?: 'datetime';
11
+ }
12
+ /** Registry keyed by formula function name (uppercase). */
13
+ export declare const FORMULA_FUNCTION_SCHEMAS: Record<string, FormulaFunctionMeta>;
14
+ /**
15
+ * Returns formula function names that are time-diff (SDIFF, MNDIFF, HDIFF, DDIFF, MDIFF, QDIFF, YDIFF).
16
+ */
17
+ export declare function getTimeDiffFormulaFunctions(): readonly string[];
18
+ /**
19
+ * Returns the required date level for a time-diff function, or undefined if not a time-diff function.
20
+ */
21
+ export declare function getRequiredDateLevel(formulaFunctionName: string): string | undefined;
22
+ /**
23
+ * Returns formula function names for a given category.
24
+ */
25
+ export declare function getFormulaFunctionsByCategory(category: FormulaFunctionCategory): readonly string[];
@@ -1,4 +1,4 @@
1
- import { ArgInput, ProcessedArg } from '../types.js';
1
+ import { ArgInput, ProcessedArg } from '../../types.js';
2
2
  /**
3
3
  * Processes a single argument based on its expected type schema
4
4
  *
@@ -1,4 +1,4 @@
1
- import { NodeInput, QueryElement } from '../types.js';
1
+ import { NodeInput, QueryElement } from '../../types.js';
2
2
  /**
3
3
  * Recursively processes a parsed JSON object to execute filterFactory and measureFactory functions.
4
4
  * It includes comprehensive validation based on function schemas.
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Attribute type predicates for filter validation.
3
+ *
4
+ * @internal
5
+ */
6
+ import { Attribute } from '@sisense/sdk-data';
7
+ /**
8
+ * Validates that an attribute is compatible with text values
9
+ *
10
+ * @param attribute - The attribute to validate
11
+ * @returns True if the attribute is a text type
12
+ */
13
+ export declare function isTextAttribute(attribute: Attribute): boolean;
14
+ /**
15
+ * Validates that an attribute is compatible with numeric values
16
+ *
17
+ * @param attribute - The attribute to validate
18
+ * @returns True if the attribute is a numeric type
19
+ */
20
+ export declare function isNumericAttribute(attribute: Attribute): boolean;
21
+ /**
22
+ * Validates that an attribute is a date/datetime type
23
+ *
24
+ * @param attribute - The attribute to validate
25
+ * @returns True if the attribute is a date/datetime type
26
+ */
27
+ export declare function isDateLevelAttribute(attribute: Attribute): boolean;
28
+ /**
29
+ * Validates that an attribute is compatible with text OR numeric values
30
+ * Used for filters like equals, doesntEqual that accept both text and number
31
+ *
32
+ * @param attribute - The attribute to validate
33
+ * @returns True if the attribute is text or numeric type
34
+ */
35
+ export declare function isTextOrNumericAttribute(attribute: Attribute): boolean;
36
+ /**
37
+ * Validates that an attribute is NOT a date type
38
+ * Used for filters that should not work with date attributes
39
+ *
40
+ * @param attribute - The attribute to validate
41
+ * @returns True if the attribute is not a date type
42
+ */
43
+ export declare function isNonDateLevelAttribute(attribute: Attribute): boolean;
44
+ /**
45
+ * Gets a display string for the attribute type
46
+ *
47
+ * @param attribute - The attribute to get the type display string for
48
+ * @returns A human-readable string representing the attribute type
49
+ */
50
+ export declare function getAttributeTypeDisplayString(attribute: Attribute): string;
@@ -0,0 +1,16 @@
1
+ /** Maximum edit distance for suggesting "Did you mean?" in error messages */
2
+ export declare const SUGGESTION_THRESHOLD = 3;
3
+ /**
4
+ * Finds the candidate with the smallest Levenshtein distance to the input.
5
+ * Used to enhance "not found" errors with "Did you mean 'X'?" when distance <= SUGGESTION_THRESHOLD.
6
+ *
7
+ * @param input - The string that was not found
8
+ * @param candidates - Array of valid candidates to match against
9
+ * @param getLabel - Function to extract the label string from each candidate
10
+ * @returns The best match and its distance, or undefined if candidates is empty
11
+ * @internal
12
+ */
13
+ export declare function findBestMatch<T>(input: string, candidates: readonly T[], getLabel: (c: T) => string): {
14
+ best: T;
15
+ distance: number;
16
+ } | undefined;
@@ -1,4 +1,4 @@
1
- import { FunctionCall } from './types.js';
1
+ import { FunctionCall } from '../../types.js';
2
2
  /**
3
3
  * Parses a composeCode string to FunctionCall format.
4
4
  *
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Schema index for efficient table/column lookups and dimensional name parsing.
3
+ *
4
+ * @internal
5
+ */
6
+ import { DateDimension, JaqlDataSourceForDto } from '@sisense/sdk-data';
7
+ import type { NormalizedColumn, NormalizedTable } from '../../../types.js';
8
+ /**
9
+ * Schema index for efficient table/column lookups and greedy matching
10
+ * @internal
11
+ */
12
+ export interface SchemaIndex {
13
+ /** Tables sorted by name length (descending) for greedy matching */
14
+ sortedTables: NormalizedTable[];
15
+ /** Columns sorted by name length (descending) per table for greedy matching */
16
+ tableColumnMap: Map<string, NormalizedColumn[]>;
17
+ /** O(1) table lookup by exact name */
18
+ tableMap: Map<string, NormalizedTable>;
19
+ /** O(1) column lookup: table name → (column name → column) */
20
+ columnMap: Map<string, Map<string, NormalizedColumn>>;
21
+ }
22
+ /**
23
+ * Creates a schema index with pre-sorted arrays and Maps for efficient lookups
24
+ *
25
+ * @param tables - Array of normalized tables
26
+ * @returns SchemaIndex with sorted arrays and Maps
27
+ * @internal
28
+ */
29
+ export declare function createSchemaIndex(tables: NormalizedTable[]): SchemaIndex;
30
+ /**
31
+ * Parses a dimensional name using schema-aware greedy matching to handle dots in table/column names
32
+ *
33
+ * @param dimensionalName - The dimensional name (e.g., "DM.Brand.io.Brand" or "DM.Commerce.Date.Years")
34
+ * @param schemaIndex - The schema index for efficient matching
35
+ * @returns Parsed result with matched table, column, and optional level
36
+ * @internal
37
+ */
38
+ export declare function parseDimensionalName(dimensionalName: string, schemaIndex: SchemaIndex): {
39
+ table: NormalizedTable;
40
+ column: NormalizedColumn;
41
+ level?: string;
42
+ };
43
+ /** Options for {@link createAttributeFromName} when translating custom formula context. */
44
+ export interface CreateAttributeFromNameOptions {
45
+ /** When the dimensional name has no date level, use this level for datetime columns (e.g. from time-diff function). */
46
+ inferredDateLevel?: string;
47
+ }
48
+ export declare function createAttributeFromName(attributeName: string, dataSource: JaqlDataSourceForDto, schemaIndex: SchemaIndex, options?: CreateAttributeFromNameOptions): import("@sisense/sdk-data").Attribute | import("@sisense/sdk-data").LevelAttribute;
49
+ export declare function createDateDimensionFromName(dateDimensionName: string, dataSource: JaqlDataSourceForDto, schemaIndex: SchemaIndex): DateDimension;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Translation result and JSON helpers.
3
+ *
4
+ * @internal
5
+ */
6
+ import { JSONValue } from '@sisense/sdk-data';
7
+ import type { NlqTranslationError, NlqTranslationResult } from '../../../types.js';
8
+ /**
9
+ * Recursively strips [[delimiters]] from all strings in a JSON structure.
10
+ * Transforms "DM.[[Commerce Sales]].[[Order Date]]" → "DM.Commerce Sales.Order Date"
11
+ *
12
+ * @param value - The JSON value to process
13
+ * @returns The value with all [[delimiters]] stripped from strings
14
+ * @internal
15
+ */
16
+ export declare function stripDelimitersFromJson<T extends JSONValue>(value: T): T;
17
+ export declare function getSuccessData<T>(result: NlqTranslationResult<T>): T;
18
+ export declare function getErrors<T>(result: NlqTranslationResult<T>): string[];
19
+ /**
20
+ * Helper function to collect structured errors from translation operations.
21
+ *
22
+ * Executes a translation function and collects any errors into the provided errors array.
23
+ * Returns the translated data if successful, or null if errors occurred.
24
+ *
25
+ * @param translateFn - Function that returns a NlqTranslationResult
26
+ * @param errors - Array to collect errors into
27
+ * @param mapError - Optional mapper to transform errors before pushing (e.g., add axis context for chart dataOptions)
28
+ * @returns The translated data if successful, or null if errors occurred
29
+ * @internal
30
+ */
31
+ export declare function collectTranslationErrors<T>(translateFn: () => NlqTranslationResult<T>, errors: NlqTranslationError[], mapError?: (e: NlqTranslationError) => NlqTranslationError): T | null;
@@ -1,7 +1,8 @@
1
- import { Filter, FilterRelations, JaqlDataSourceForDto, JSONArray, JSONValue, Measure } from '@sisense/sdk-data';
1
+ import { Attribute, Filter, FilterRelations, JaqlDataSourceForDto, JSONArray, Measure, PivotGrandTotals } from '@sisense/sdk-data';
2
2
  import { CategoryStyle, SeriesStyle, ValueStyle } from '../../../public-api/index.js';
3
- import { NlqTranslationInput } from '../types.js';
4
- import type { SchemaIndex } from './common.js';
3
+ import type { PivotTableStyleOptions } from '../../../types.js';
4
+ import { DataSchemaContext, NlqTranslationInput } from '../types.js';
5
+ import type { SchemaIndex } from './shared/utils/schema-index.js';
5
6
  /**
6
7
  * Internal context type that uses schemaIndex for efficient lookups
7
8
  * @internal
@@ -11,6 +12,8 @@ export interface InternalDataSchemaContext {
11
12
  dataSource: JaqlDataSourceForDto;
12
13
  /** Schema index for efficient table/column lookups */
13
14
  schemaIndex: SchemaIndex;
15
+ /** Chart type for axis-specific translation (e.g., pivot columns, boxplot value) */
16
+ chartType?: string;
14
17
  }
15
18
  export declare const DIMENSIONAL_NAME_PREFIX = "DM.";
16
19
  export type ArgType = 'string' | 'string[]' | 'number' | 'number[]' | 'boolean' | 'Attribute' | 'Attribute[]' | 'Measure' | 'BaseMeasure' | 'Measure[]' | 'Filter' | 'Filter[]' | 'FilterRelationsNode' | 'DateDimension' | 'LevelAttribute' | 'Measure | number' | 'Date | string' | 'string | number' | 'BaseFilterConfig' | 'MembersFilterConfig' | 'CustomFormulaContext' | 'any';
@@ -52,12 +55,35 @@ export type ArgInput = NlqTranslationInput<Arg, ArgContext>;
52
55
  * Custom processor function signature.
53
56
  */
54
57
  export type CustomFunctionProcessor = (processedArgs: ProcessedArg[], context: FunctionContext) => void;
55
- export declare function isFunctionCall(value: JSONValue): value is FunctionCall;
58
+ /**
59
+ * Type guard: value is a non-null object (Record<string, unknown>).
60
+ * @internal
61
+ */
62
+ export declare function isRecordStringUnknown(value: unknown): value is Record<string, unknown>;
63
+ export declare function isFunctionCall(value: unknown): value is FunctionCall;
56
64
  export declare function isFunctionCallArray(value: JSONArray): value is FunctionCall[];
57
65
  export declare function isFilterElement(arg: QueryElement): arg is Filter;
58
66
  export declare function isFilterRelationsElement(arg: QueryElement): arg is FilterRelations;
59
67
  export declare function isMeasureElement(arg: QueryElement): arg is Measure;
60
68
  export declare function isStringArray(value: JSONArray): value is string[];
69
+ /**
70
+ * Enriched dimension translation result. Style uses CategoryStyle (same as StyledColumn).
71
+ *
72
+ * @internal
73
+ */
74
+ export type DimensionTranslationItem = {
75
+ attribute: Attribute;
76
+ style?: CategoryStyle;
77
+ };
78
+ /**
79
+ * Enriched measure translation result. Style uses ValueStyle & SeriesStyle (same as StyledMeasureColumn).
80
+ *
81
+ * @internal
82
+ */
83
+ export type MeasureTranslationItem = {
84
+ measure: Measure;
85
+ style?: ValueStyle & SeriesStyle;
86
+ };
61
87
  /**
62
88
  * JSON-facing type for a styled dimension/attribute.
63
89
  * Reusable for query JSON and future chart JSON (translateChartFromJSON).
@@ -102,3 +128,88 @@ export declare function isStyledColumnJSON(value: unknown): value is StyledColum
102
128
  * @internal
103
129
  */
104
130
  export declare function isStyledMeasureColumnJSON(value: unknown): value is StyledMeasureColumnJSON;
131
+ /**
132
+ * JSON representation of chart data options.
133
+ * Maps axis names to arrays of dimension or measure items.
134
+ * Supports all chart types (cartesian, categorical, scatter, etc.).
135
+ *
136
+ * @internal
137
+ */
138
+ export interface DataOptionsJSON {
139
+ category?: DimensionItemJSON[];
140
+ /** Array for cartesian/categorical; single for calendar-heatmap */
141
+ value?: MeasureItemJSON[] | MeasureItemJSON;
142
+ breakBy?: DimensionItemJSON[];
143
+ x?: DimensionItemJSON | MeasureItemJSON;
144
+ y?: DimensionItemJSON | MeasureItemJSON;
145
+ breakByPoint?: DimensionItemJSON;
146
+ breakByColor?: DimensionItemJSON | MeasureItemJSON;
147
+ size?: MeasureItemJSON;
148
+ boxType?: MeasureItemJSON;
149
+ outliers?: MeasureItemJSON[];
150
+ geo?: DimensionItemJSON[];
151
+ colorBy?: MeasureItemJSON;
152
+ details?: DimensionItemJSON;
153
+ color?: MeasureItemJSON[];
154
+ date?: DimensionItemJSON;
155
+ columns?: (DimensionItemJSON | MeasureItemJSON)[];
156
+ rows?: DimensionItemJSON[];
157
+ values?: MeasureItemJSON[];
158
+ secondary?: MeasureItemJSON[];
159
+ min?: MeasureItemJSON[];
160
+ max?: MeasureItemJSON[];
161
+ }
162
+ /**
163
+ * JSON representation of a chart configuration from NLQ API.
164
+ * Matches the structure returned by NLQ v3 for chart recommendations.
165
+ * Reusable for chart JSON translation (translateChartFromJSON/translateChartToJSON).
166
+ *
167
+ * @internal
168
+ */
169
+ export interface ChartJSON {
170
+ /** Chart type (e.g., 'column', 'line', 'bar', 'pie', 'scatter') */
171
+ chartType: string;
172
+ /** Data options mapping chart axes to dimensions/measures */
173
+ dataOptions: DataOptionsJSON;
174
+ /** Optional style options for chart appearance (colors, legend, axes, etc.) */
175
+ styleOptions?: Record<string, unknown>;
176
+ /** Optional filters to apply to the chart data */
177
+ filters?: FunctionCall[];
178
+ /** Optional highlights (filter criteria) to apply to the chart */
179
+ highlights?: FunctionCall[];
180
+ }
181
+ /**
182
+ * Input type for chart translation (JSON → CSDK).
183
+ * Combines chartJSON with data schema context.
184
+ *
185
+ * @internal
186
+ */
187
+ export type ChartInput = NlqTranslationInput<ChartJSON, DataSchemaContext>;
188
+ /**
189
+ * JSON representation of pivot table data options.
190
+ *
191
+ * @internal
192
+ */
193
+ export interface PivotTableDataOptionsJSON {
194
+ rows?: DimensionItemJSON[];
195
+ columns?: DimensionItemJSON[];
196
+ values?: MeasureItemJSON[];
197
+ grandTotals?: PivotGrandTotals;
198
+ }
199
+ /**
200
+ * JSON representation of pivot table config from NLQ API.
201
+ *
202
+ * @internal
203
+ */
204
+ export interface PivotTableJSON {
205
+ dataOptions: PivotTableDataOptionsJSON;
206
+ styleOptions?: PivotTableStyleOptions;
207
+ filters?: FunctionCall[];
208
+ highlights?: FunctionCall[];
209
+ }
210
+ /**
211
+ * Input type for pivot table translation (JSON → CSDK).
212
+ *
213
+ * @internal
214
+ */
215
+ export type PivotTableInput = NlqTranslationInput<PivotTableJSON, DataSchemaContext>;
@@ -1,4 +1,4 @@
1
- import { JaqlDataSourceForDto, JSONArray, JSONValue, MetadataItem } from '@sisense/sdk-data';
1
+ import { JaqlDataSourceForDto, JSONArray, MetadataItem } from '@sisense/sdk-data';
2
2
  import type { DashboardByIdConfig } from '../../domains/dashboarding';
3
3
  import { DashboardProps } from '../../domains/dashboarding/types.js';
4
4
  import { ExecutePivotQueryParams, ExecuteQueryParams } from '../../domains/query-execution/index.js';
@@ -353,12 +353,12 @@ export type QueryInput = NlqTranslationInput<NlqResponseJSON, DataSchemaContext>
353
353
  * @internal
354
354
  */
355
355
  export type NlqTranslationErrorContext = {
356
- /** The category of the query element that failed (dimensions, measures, filters, highlights) */
357
- category: 'dimensions' | 'measures' | 'filters' | 'highlights';
358
- /** The index of the element within its category array */
359
- index: number;
356
+ /** The category of the query/chart element that failed (dimensions, measures, filters, highlights, dataOptions, chartType, styleOptions) */
357
+ category: 'dimensions' | 'measures' | 'filters' | 'highlights' | 'dataOptions' | 'chartType' | 'styleOptions';
358
+ /** The index of the element within its category array, or axis key for dataOptions (e.g. "category", "value") */
359
+ index: number | string;
360
360
  /** The complete original input that caused the error */
361
- input: JSONValue;
361
+ input: unknown;
362
362
  };
363
363
  /**
364
364
  * Structured error information for translation failures.
@@ -8,8 +8,8 @@ import { AreamapChartDataOptions, BoxplotChartCustomDataOptions, BoxplotChartDat
8
8
  import { HighchartsOptions } from './domains/visualizations/core/chart-options-processor/chart-options-service';
9
9
  import type { ChartWidgetProps } from './domains/widgets/components/chart-widget/types';
10
10
  import { FiltersMergeStrategy } from './domains/widgets/components/widget-by-id/types';
11
- import { AppConfig } from './infra/app/client-application';
12
- import { HookEnableParam } from './shared/hooks/types';
11
+ import { type AppConfig } from './infra/app/types';
12
+ import type { Plugin } from './infra/contexts/plugin-provider/types';
13
13
  import { AreamapDataPoint, AreamapStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, BoxplotDataPoint, BoxplotStyleOptions, CalendarHeatmapDataPoint, CalendarHeatmapStyleOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ChartDataPoints, ChartStyleOptions, ChartType, CustomDrilldownResult, DataPoint, DrilldownOptions, DrilldownSelection, FunnelStyleOptions, IndicatorDataPoint, IndicatorRenderOptions, IndicatorStyleOptions, LineStyleOptions, MenuAlignment, MenuItemSection, MenuPosition, PieStyleOptions, PivotTableDataPoint, PivotTableDrilldownOptions, PivotTableStyleOptions, PolarStyleOptions, RegularChartStyleOptions, RegularChartType, ScatterDataPoint, ScattermapDataPoint, ScattermapStyleOptions, ScatterStyleOptions, StackableStyleOptions, StreamgraphStyleOptions, SunburstStyleOptions, TableStyleOptions, TabularChartStyleOptions, TextWidgetDataPoint, ThemeConfig, ThemeOid, ThemeSettings, TreemapStyleOptions, WidgetByIdStyleOptions } from './types';
14
14
  export type { TabberButtonsWidgetProps } from './domains/widgets/components/tabber-buttons-widget/types';
15
15
  export type { WidgetProps, WidgetType, WithCommonWidgetProps, } from './domains/widgets/components/widget/types';
@@ -137,6 +137,18 @@ export interface SisenseContextProviderProps {
137
137
  * @internal
138
138
  */
139
139
  disableFusionPalette?: boolean;
140
+ /**
141
+ * Array of plugins to register.
142
+ *
143
+ * Plugins should satisfy the following conditions:
144
+ * - Name uniqueness (duplicates are skipped with a warning)
145
+ * - Version compatibility with the current SDK version
146
+ *
147
+ * @category Sisense App
148
+ *
149
+ * @internal
150
+ */
151
+ plugins?: Plugin[];
140
152
  }
141
153
  /**
142
154
  * Props for {@link ExecuteQuery} component.
@@ -1377,25 +1389,6 @@ export interface DrilldownWidgetProps {
1377
1389
  */
1378
1390
  children: (customDrilldownResult: CustomDrilldownResult) => ReactNode;
1379
1391
  }
1380
- /**
1381
- * Params of the {@link useGetSharedFormula} hook
1382
- *
1383
- * Can consist either of an oid or a name/dataSource pair
1384
- */
1385
- export interface UseGetSharedFormulaParams extends HookEnableParam {
1386
- /**
1387
- * Formula identifier
1388
- */
1389
- oid?: string;
1390
- /**
1391
- * Formula name
1392
- */
1393
- name?: string;
1394
- /**
1395
- * Data source - e.g. `Sample ECommerce`
1396
- */
1397
- dataSource?: DataSource;
1398
- }
1399
1392
  /**
1400
1393
  * Props of the {@link CalendarHeatmapChart} component.
1401
1394
  */
@@ -4,4 +4,4 @@
4
4
  * Alpha APIs are highly experimental and subject to change.
5
5
  * Not recommended for production use.
6
6
  */
7
- export { useQueryCache } from '../domains/query-execution/hooks/use-query-cache/use-query-cache';
7
+ export { useDashboardTheme } from '../domains/dashboarding/use-dashboard-theme.js';
@@ -4,4 +4,4 @@
4
4
  * Beta APIs are under evaluation and may change in future releases.
5
5
  * Not recommended for production use.
6
6
  */
7
- export {};
7
+ export { useQueryCache } from '../domains/query-execution/hooks/use-query-cache/use-query-cache';
@@ -4,11 +4,12 @@
4
4
  * Such APIs are for CSDK cross-packages usage only.
5
5
  * These APIs may change without notice and are not part of the public contract.
6
6
  */
7
- export { type ClientApplication, createClientApplication } from '../infra/app/client-application';
7
+ export { type ClientApplication } from '../infra/app/types';
8
+ export { createClientApplication } from '../infra/app/client-application';
8
9
  export { queryStateReducer } from '../domains/query-execution/hooks/shared/query-state-reducer';
9
10
  export { useExecuteCsvQueryInternal, useExecutePivotQueryInternal, executeQueryByWidgetId, } from '../domains/query-execution';
10
11
  export { executeCsvQuery, executePivotQuery, executeQuery, } from '../domains/query-execution/core/execute-query';
11
- export { useDashboardModel, getDashboardModel, getDashboardModels, translateToDashboardResponse, translateToDashboardsResponse, translateFiltersAndRelationsToDto, } from '../domains/dashboarding/dashboard-model';
12
+ export { useDashboardModel, getDashboardModel, getDashboardModels, translateToDashboardResponse, translateToDashboardsResponse, } from '../domains/dashboarding/dashboard-model';
12
13
  export { getWidgetModel } from '../domains/widgets/widget-model';
13
14
  export { getHierarchyModels } from '../domains/drilldown/hierarchy-model';
14
15
  export { getThemeSettingsByOid } from '../infra/themes/theme-loader';
@@ -18,12 +19,14 @@ export { getSelectionTitleMenuItem, getDrilldownMenuItems, } from '../domains/dr
18
19
  export { processDrilldownSelections } from '../domains/drilldown/hooks/use-drilldown-core';
19
20
  export { CommonWidget, type CommonWidgetProps } from '../domains/widgets/components/common-widget';
20
21
  export { TableWidget, type TableWidgetProps } from '../domains/widgets/components/table-widget';
21
- export * from '../infra/contexts/custom-widgets-provider/custom-widgets-provider-adapter';
22
+ export { CustomWidgetsProviderAdapter, type CustomWidgetsContextAdapter, type CustomWidgetsProviderAdapterProps, } from '../infra/contexts/custom-widgets-provider/custom-widgets-provider-adapter';
23
+ export { useGetSharedFormulaInternal } from '../domains/formulas/use-get-shared-formula';
22
24
  export { translateColumnToAttribute } from '../domains/visualizations/core/chart-data-options/utils';
23
25
  export { isSameAttribute } from '../shared/utils/filters';
24
- export { isChartWidgetProps, isPivotTableWidgetProps, isTextWidgetProps, isCustomWidgetProps, } from '../domains/widgets/components/widget-by-id/utils';
26
+ export { isTextWidgetProps, isCustomWidgetProps, } from '../domains/widgets/components/widget-by-id/utils';
25
27
  export { getChartType } from '../domains/widgets/components/widget-by-id/utils';
26
28
  export type { SoftUnion } from '../shared/utils/utility-types';
27
29
  export type { BeforeMenuOpenHandler } from '../infra/contexts/menu-provider/types';
28
- export * from '../shared/hooks/data-load-state-reducer';
29
- export * from '../domains/widgets/helpers';
30
+ export { type DataState, type DataLoadingState, type DataErrorState, type DataSuccessState, dataLoadStateReducer, } from '../shared/hooks/data-load-state-reducer';
31
+ export { trackHook } from '../infra/decorators/hook-decorators/with-tracking';
32
+ export { widgetHelpers } from '../domains/widgets/helpers';
@@ -50,11 +50,11 @@ export { TabberButtonsWidget } from '../domains/widgets/components/tabber-button
50
50
  export { DrilldownBreadcrumbs } from '../domains/drilldown/components/drilldown-breadcrumbs';
51
51
  export * from '../infra/contexts/custom-widgets-provider/types';
52
52
  export { useCustomWidgets } from '../infra/contexts/custom-widgets-provider';
53
- export { useGetDashboardModel, useGetDashboardModels, useDashboardModel, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type GetDashboardModelOptions, type GetDashboardModelsOptions, type WidgetsPanelColumnLayout, type WidgetsPanelLayout, type WidgetsPanelColumn, type WidgetsPanelRow, type WidgetsPanelCell, type WidgetId, type DashboardId, type WidgetsOptions, type CommonFiltersOptions, type CommonFiltersApplyMode, type FiltersIgnoringRules, UseDashboardModelActionType, } from '../domains/dashboarding/dashboard-model';
53
+ export { useGetDashboardModel, useGetDashboardModels, useDashboardModel, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type GetDashboardModelOptions, type GetDashboardModelsOptions, type WidgetsPanelColumnLayout, type WidgetsPanelLayout, type WidgetsPanelColumn, type WidgetsPanelRow, type WidgetsPanelCell, type WidgetId, type DashboardId, type WidgetsOptions, type SpecificWidgetOptions, type CommonFiltersOptions, type CommonFiltersApplyMode, type FiltersIgnoringRules, } from '../domains/dashboarding/dashboard-model';
54
54
  export { useGetWidgetModel, type WidgetModel, type WidgetDataOptions, type WidgetModelState, type WidgetModelLoadingState, type WidgetModelErrorState, type WidgetModelSuccessState, type GetWidgetModelParams, } from '../domains/widgets/widget-model';
55
55
  export { useGetHierarchyModels, type HierarchyModel, type Hierarchy, type HierarchyId, type GetHierarchyModelsParams, type HierarchyModelsState, type HierarchyModelsLoadingState, type HierarchyModelsErrorState, type HierarchyModelsSuccessState, } from '../domains/drilldown/hierarchy-model';
56
56
  export * from '../domains/filters';
57
- export * from '../domains/formulas';
57
+ export { useGetSharedFormula, type GetSharedFormulaParams, type UseGetSharedFormulaParams, type SharedFormulaState, type SharedFormulaLoadingState, type SharedFormulaErrorState, type SharedFormulaSuccessState, } from '../domains/formulas';
58
58
  export { DataSchemaBrowser } from '../domains/data-browser/data-schema-browser/data-schema-browser';
59
59
  export { useGetDataSourceDimensions, useGetDataSourceFields, type GetDataSourceDimensionsParams, type DataSourceDimensionsState, type DataSourceDimensionsLoadingState, type DataSourceDimensionsErrorState, type DataSourceDimensionsSuccessState, } from '../domains/data-browser/data-source-dimensional-model';
60
60
  export { ThemeProvider } from '../infra/contexts/theme-provider';