@sisense/sdk-ui 2.8.0 → 2.10.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 (184) hide show
  1. package/dist/ai.cjs +32 -32
  2. package/dist/ai.js +126 -125
  3. package/dist/analytics-composer/node.cjs +3 -0
  4. package/dist/analytics-composer/node.d.ts +1 -0
  5. package/dist/analytics-composer/node.js +1033 -0
  6. package/dist/analytics-composer.cjs +118 -118
  7. package/dist/analytics-composer.js +2211 -2906
  8. package/dist/derive-chart-family-B1on_xkS.cjs +170 -0
  9. package/dist/derive-chart-family-BllGhqsW.js +29469 -0
  10. package/dist/dimensions-BYqdB-Q8.cjs +1 -0
  11. package/dist/{dimensions-b8xRITJn.js → dimensions-D-Z9sitz.js} +3 -3
  12. package/dist/execute-query-CABqVn7C.cjs +1 -0
  13. package/dist/execute-query-CGLL9vXX.js +6428 -0
  14. package/dist/index.cjs +25 -26
  15. package/dist/index.js +9320 -8693
  16. package/dist/index.umd.js +389 -440
  17. package/dist/packages/sdk-ui/src/analytics-composer/index-node.d.ts +9 -0
  18. package/dist/packages/sdk-ui/src/analytics-composer/index.d.ts +1 -0
  19. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/common.d.ts +40 -0
  20. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/index.d.ts +2 -0
  21. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-dimensions.d.ts +3 -0
  22. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-filters.d.ts +44 -0
  23. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-measures.d.ts +30 -0
  24. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-query-to-jaql.d.ts +18 -0
  25. package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-query.d.ts +224 -0
  26. package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +40 -1
  27. package/dist/packages/sdk-ui/src/calendar-heatmap-chart.d.ts +12 -0
  28. package/dist/packages/sdk-ui/src/chart/helpers/get-load-data-function.d.ts +3 -1
  29. package/dist/packages/sdk-ui/src/chart/helpers/use-chart-data-preparation.d.ts +3 -1
  30. package/dist/packages/sdk-ui/src/chart/helpers/use-translated-data-options.d.ts +1 -1
  31. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/calendar-heatmap-chart-builder.d.ts +8 -0
  32. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +87 -0
  33. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/data-options.d.ts +54 -0
  34. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/index.d.ts +1 -0
  35. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +33 -0
  36. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/design-options.d.ts +22 -0
  37. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/highcharts-options-builder.d.ts +8 -0
  38. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/index.d.ts +1 -0
  39. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options.d.ts +12 -0
  40. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/chart-options.d.ts +9 -0
  41. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/extras-options.d.ts +9 -0
  42. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/index.d.ts +7 -0
  43. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/legend-options.d.ts +8 -0
  44. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/plot-options.d.ts +9 -0
  45. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/calendar-data-generator.d.ts +35 -0
  46. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/index.d.ts +1 -0
  47. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/series-options.d.ts +9 -0
  48. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/tooltip-options.d.ts +9 -0
  49. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +26 -0
  50. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap.d.ts +17 -0
  51. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/calendar-pagination.d.ts +30 -0
  52. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/helpers.d.ts +3 -0
  53. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/index.d.ts +1 -0
  54. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +4 -0
  55. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +25 -0
  56. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +14 -0
  57. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/index.d.ts +4 -0
  58. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-chart-options.d.ts +55 -0
  59. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-navigation.d.ts +33 -0
  60. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/index.d.ts +2 -0
  61. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/types.d.ts +13 -0
  62. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data-options.d.ts +5 -1
  63. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/axis.d.ts +5 -0
  64. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/legend.d.ts +3 -2
  65. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/y-axis.d.ts +28 -0
  66. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/line-chart/helpers/design-options.d.ts +12 -0
  67. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/line-chart/highchart-options/axes.d.ts +6 -0
  68. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/line-chart/highcharts-options-builder.d.ts +2 -0
  69. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/line-chart/line-chart-builder.d.ts +2 -0
  70. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/polar-chart/data/index.d.ts +10 -0
  71. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/polar-chart/data-options/index.d.ts +12 -0
  72. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/polar-chart/design-options/index.d.ts +18 -0
  73. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/polar-chart/highchart-options/axes.d.ts +6 -0
  74. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/polar-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
  75. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/polar-chart/polar-chart-builder.d.ts +2 -0
  76. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/area-chart/area-chart-builder.d.ts +2 -0
  77. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/area-chart/helpers/design-options.d.ts +12 -0
  78. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/area-chart/highchart-options/axes.d.ts +6 -0
  79. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/area-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
  80. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/area-chart/highchart-options/labels-spacing.d.ts +8 -0
  81. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/bar-chart/highchart-options/axes.d.ts +6 -0
  82. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/bar-chart/highchart-options/labels-spacing.d.ts +9 -0
  83. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/column-chart/highchart-options/axes.d.ts +6 -0
  84. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/column-chart/highchart-options/labels-spacing.d.ts +9 -0
  85. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/helpers/highchart-options/stacking.d.ts +21 -0
  86. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/types.d.ts +1 -0
  87. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/types.d.ts +1 -1
  88. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +22 -0
  89. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +13 -0
  90. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/alerts/index.d.ts +5 -0
  91. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data/index.d.ts +15 -0
  92. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data-options/index.d.ts +32 -0
  93. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/design-options/index.d.ts +17 -0
  94. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
  95. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/pie-chart-builder.d.ts +2 -0
  96. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/types.d.ts +12 -0
  97. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/build-highchart-options.d.ts +9 -4
  98. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/highcharts-based-chart-renderer.d.ts +2 -4
  99. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/use-extra-config.d.ts +2 -0
  100. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/utils.d.ts +2 -1
  101. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +1 -1
  102. package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +10 -9
  103. package/dist/packages/sdk-ui/src/chart/restructured-charts/utils.d.ts +5 -0
  104. package/dist/packages/sdk-ui/src/chart-data/data-coloring/types.d.ts +6 -0
  105. package/dist/packages/sdk-ui/src/chart-data/types.d.ts +2 -1
  106. package/dist/packages/sdk-ui/src/chart-data-options/translate-data-options.d.ts +2 -1
  107. package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +19 -2
  108. package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +4 -4
  109. package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-categorical-data-options.d.ts +14 -0
  110. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-builders.d.ts +155 -0
  111. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-settings.d.ts +39 -0
  112. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-transformers.d.ts +45 -0
  113. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-utils.d.ts +1 -0
  114. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/date-utils.d.ts +27 -0
  115. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/index.d.ts +3 -0
  116. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/chart-configuration.d.ts +33 -3
  117. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +4 -1
  118. package/dist/packages/sdk-ui/src/chart-options-processor/{category-chart-options.d.ts → category-chart-options/category-chart-options.d.ts} +9 -5
  119. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/funnel-chart-options.d.ts +15 -0
  120. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/pie-chart-options.d.ts +15 -0
  121. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +17 -0
  122. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/treemap-chart-options.d.ts +17 -0
  123. package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +26 -10
  124. package/dist/packages/sdk-ui/src/chart-options-processor/defaults/cartesian.d.ts +4 -3
  125. package/dist/packages/sdk-ui/src/chart-options-processor/scatter-chart-options.d.ts +3 -3
  126. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +1 -3
  127. package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +11 -12
  128. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +19 -5
  129. package/dist/packages/sdk-ui/src/chart-options-processor/translations/legend-section.d.ts +28 -14
  130. package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-series.d.ts +34 -6
  131. package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +5 -0
  132. package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +1 -1
  133. package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +61 -4
  134. package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +2 -2
  135. package/dist/packages/sdk-ui/src/common/formatters/create-date-formatter.d.ts +10 -0
  136. package/dist/packages/sdk-ui/src/common/hooks/useDateFormatter.d.ts +7 -0
  137. package/dist/packages/sdk-ui/src/common/icons/double-arrow-end-icon.d.ts +6 -0
  138. package/dist/packages/sdk-ui/src/const.d.ts +2 -0
  139. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +0 -19
  140. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/index.d.ts +1 -1
  141. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-filters.d.ts +12 -1
  142. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-formatters.d.ts +18 -0
  143. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-handlers.d.ts +23 -0
  144. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-widget-transforms.d.ts +29 -0
  145. package/dist/packages/sdk-ui/src/index.d.ts +1 -0
  146. package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +1 -0
  147. package/dist/packages/sdk-ui/src/pivot-table/formatters/data-cell-formatters/index.d.ts +1 -0
  148. package/dist/packages/sdk-ui/src/pivot-table/formatters/formatter-utils.d.ts +23 -0
  149. package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +2 -1
  150. package/dist/packages/sdk-ui/src/pivot-table/formatters/types.d.ts +45 -3
  151. package/dist/packages/sdk-ui/src/pivot-table/formatters/utils.d.ts +1 -0
  152. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-formatting.d.ts +4 -1
  153. package/dist/packages/sdk-ui/src/polar-chart.d.ts +1 -1
  154. package/dist/packages/sdk-ui/src/props.d.ts +161 -7
  155. package/dist/packages/sdk-ui/src/query/date-formats/apply-date-format.d.ts +7 -6
  156. package/dist/packages/sdk-ui/src/query/date-formats/index.d.ts +1 -1
  157. package/dist/packages/sdk-ui/src/query/execute-query.d.ts +3 -1
  158. package/dist/packages/sdk-ui/src/query-execution/index.d.ts +1 -1
  159. package/dist/packages/sdk-ui/src/query-execution/types.d.ts +9 -2
  160. package/dist/packages/sdk-ui/src/sisense-chart/types.d.ts +2 -2
  161. package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +1 -0
  162. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +11 -0
  163. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +22 -0
  164. package/dist/packages/sdk-ui/src/types.d.ts +254 -16
  165. package/dist/packages/sdk-ui/src/utils/combine-handlers.d.ts +19 -0
  166. package/dist/packages/sdk-ui/src/utils/utility-types/transformer.d.ts +8 -0
  167. package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +1 -1
  168. package/dist/packages/sdk-ui/src/widget-by-id/translate-panel-color-format.d.ts +9 -0
  169. package/dist/packages/sdk-ui/src/widget-by-id/translate-statistical-models.d.ts +10 -0
  170. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-data-options.d.ts +0 -14
  171. package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +10 -10
  172. package/dist/types-BRtWk8uC.js +80 -0
  173. package/dist/types-Ds0KtTJF.cjs +1 -0
  174. package/dist/use-common-filters-D8tEa9zb.js +91245 -0
  175. package/dist/use-common-filters-hw1WKPCY.cjs +844 -0
  176. package/dist/{widget-composer-BPlNiX_P.cjs → widget-composer-B7zeAa_D.cjs} +9 -9
  177. package/dist/{widget-composer-SGEFYrXY.js → widget-composer-DL0xPtlC.js} +143 -217
  178. package/package.json +20 -10
  179. package/dist/derive-chart-family-6PZA-xZh.js +0 -92092
  180. package/dist/derive-chart-family-DQUVKMcV.cjs +0 -656
  181. package/dist/dimensions-x8nnAUew.cjs +0 -1
  182. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis-configuration.d.ts +0 -41
  183. package/dist/use-common-filters-BHBy4uv6.js +0 -32218
  184. package/dist/use-common-filters-Cg217teN.cjs +0 -350
@@ -1,11 +1,14 @@
1
1
  import { type DataService } from '@sisense/sdk-pivot-client';
2
2
  import { type PivotTableDataOptionsInternal } from '../../chart-data-options/types';
3
+ import { type CustomDataCellFormatter, type CustomHeaderCellFormatter } from '../../pivot-table/formatters/types';
3
4
  /**
4
5
  * A hook that applies formatting over pivot table cells.
5
6
  *
6
7
  * @internal
7
8
  */
8
- export declare const useApplyPivotTableFormatting: ({ dataService, dataOptions, }: {
9
+ export declare const useApplyPivotTableFormatting: ({ dataService, dataOptions, onDataCellFormat, onHeaderCellFormat, }: {
9
10
  dataService: DataService;
10
11
  dataOptions: PivotTableDataOptionsInternal;
12
+ onDataCellFormat?: CustomDataCellFormatter | undefined;
13
+ onHeaderCellFormat?: CustomHeaderCellFormatter | undefined;
11
14
  }) => void;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { PolarChartProps } from './props';
3
3
  /**
4
- * A React component comparing multiple categories/variables with a spacial perspective in a radial chart.
4
+ * A React component comparing multiple categories/variables with a spatial perspective in a radial chart.
5
5
  *
6
6
  * ## Example
7
7
  *
@@ -1,8 +1,9 @@
1
1
  import { Attribute, Filter, Measure, DataSource, Data, QueryResultData, FilterRelations } from '@sisense/sdk-data';
2
- import { ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ThemeSettings, PolarStyleOptions, PieStyleOptions, StackableStyleOptions, LineStyleOptions, AreaStyleOptions, FunnelStyleOptions, ScatterStyleOptions, ChartStyleOptions, ChartType, IndicatorStyleOptions, DrilldownOptions, ThemeOid, TreemapStyleOptions, CustomDrilldownResult, MenuPosition, MenuAlignment, MenuItemSection, SunburstStyleOptions, ChartWidgetStyleOptions, TableWidgetStyleOptions, WidgetByIdStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, DataPoint, ScatterDataPoint, AreamapDataPoint, BoxplotDataPoint, ChartDataPoints, ScattermapDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, RegularChartType, RegularChartStyleOptions, TabularChartStyleOptions, TableStyleOptions, AreaRangeStyleOptions, DrilldownSelection, TextWidgetStyleOptions, GenericDataOptions, IndicatorRenderOptions, TabberStyleProps, IndicatorDataPoint, TextWidgetDataPoint, CustomWidgetStyleOptions, PivotTableDataPoint } from './types';
2
+ import { ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ThemeSettings, PolarStyleOptions, PieStyleOptions, StackableStyleOptions, LineStyleOptions, AreaStyleOptions, FunnelStyleOptions, ScatterStyleOptions, ChartStyleOptions, ChartType, IndicatorStyleOptions, DrilldownOptions, ThemeOid, TreemapStyleOptions, CustomDrilldownResult, MenuPosition, MenuAlignment, MenuItemSection, SunburstStyleOptions, ChartWidgetStyleOptions, TableWidgetStyleOptions, WidgetByIdStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, DataPoint, ScatterDataPoint, AreamapDataPoint, BoxplotDataPoint, ChartDataPoints, ScattermapDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, RegularChartType, RegularChartStyleOptions, TabularChartStyleOptions, TableStyleOptions, AreaRangeStyleOptions, DrilldownSelection, TextWidgetStyleOptions, GenericDataOptions, IndicatorRenderOptions, TabberStyleProps, IndicatorDataPoint, TextWidgetDataPoint, CustomWidgetStyleOptions, PivotTableDataPoint, CalendarHeatmapStyleOptions, CalendarHeatmapDataPoint } from './types';
3
+ import { type CustomDataCellFormatter, type CustomHeaderCellFormatter } from './pivot-table/formatters/types';
3
4
  import { HighchartsOptions } from './chart-options-processor/chart-options-service';
4
5
  import { ComponentType, PropsWithChildren, ReactNode } from 'react';
5
- import { IndicatorChartDataOptions, BoxplotChartCustomDataOptions, BoxplotChartDataOptions, ScatterChartDataOptions, TableDataOptions, ScattermapChartDataOptions, AreamapChartDataOptions, PivotTableDataOptions, RegularChartDataOptions, TabularChartDataOptions, RangeChartDataOptions } from './chart-data-options/types';
6
+ import { IndicatorChartDataOptions, BoxplotChartCustomDataOptions, BoxplotChartDataOptions, ScatterChartDataOptions, TableDataOptions, ScattermapChartDataOptions, AreamapChartDataOptions, PivotTableDataOptions, RegularChartDataOptions, TabularChartDataOptions, RangeChartDataOptions, CalendarHeatmapChartDataOptions } from './chart-data-options/types';
6
7
  import { AppConfig } from './app/client-application';
7
8
  import { ExecuteQueryParams, QueryByWidgetIdState } from './query-execution';
8
9
  import { FiltersMergeStrategy } from './widget-by-id/types';
@@ -43,7 +44,7 @@ export interface SisenseContextProviderProps {
43
44
  */
44
45
  ssoEnabled?: boolean;
45
46
  /**
46
- * Token for [bearer authentication](https://sisense.dev/guides/restApi/using-rest-api.html).
47
+ * Token for [bearer authentication](https://developer.sisense.com/guides/restApi/using-rest-api.html).
47
48
  *
48
49
  * To signify that the token is pending (e.g., being generated), set the value to `null`. This is supported for React and Vue only.
49
50
  *
@@ -296,6 +297,26 @@ export type IndicatorDataPointEventHandler = (
296
297
  point: IndicatorDataPoint,
297
298
  /** Native MouseEvent */
298
299
  nativeEvent: MouseEvent) => void;
300
+ /**
301
+ * Click handler for when a calendar-heatmap data point is clicked
302
+ *
303
+ * @alpha
304
+ */
305
+ export type CalendarHeatmapDataPointEventHandler = (
306
+ /** Data point that was clicked */
307
+ point: CalendarHeatmapDataPoint,
308
+ /** Native PointerEvent */
309
+ nativeEvent: PointerEvent) => void;
310
+ /**
311
+ * Click handler for when multiple calendar-heatmap data points are selected.
312
+ *
313
+ * @alpha
314
+ */
315
+ export type CalendarHeatmapDataPointsEventHandler = (
316
+ /** Data points that were selected */
317
+ points: CalendarHeatmapDataPoint[],
318
+ /** Native MouseEvent */
319
+ nativeEvent: MouseEvent) => void;
299
320
  /**
300
321
  * Click handler for when text widget is clicked.
301
322
  *
@@ -457,6 +478,32 @@ interface IndicatorChartEventProps extends BaseChartEventProps {
457
478
  */
458
479
  onDataPointClick?: IndicatorDataPointEventHandler;
459
480
  }
481
+ /**
482
+ * Event props for CalendarHeatmap chart which uses CalendarHeatmapDataPoint type
483
+ * to describe data points for events.
484
+ *
485
+ * @internal
486
+ */
487
+ export interface CalendarHeatmapChartEventProps extends BaseChartEventProps, HighchartsBasedChartEventProps {
488
+ /**
489
+ * Click handler callback for a data point
490
+ *
491
+ * @category Callbacks
492
+ */
493
+ onDataPointClick?: CalendarHeatmapDataPointEventHandler;
494
+ /**
495
+ * Context menu handler callback for a data point
496
+ *
497
+ * @category Callbacks
498
+ */
499
+ onDataPointContextMenu?: CalendarHeatmapDataPointEventHandler;
500
+ /**
501
+ * Handler callback for selection of multiple data points
502
+ *
503
+ * @category Callbacks
504
+ */
505
+ onDataPointsSelected?: CalendarHeatmapDataPointsEventHandler;
506
+ }
460
507
  /**
461
508
  * Base Chart Props to be extended by {@link ChartProps}
462
509
  *
@@ -471,7 +518,7 @@ export interface BaseChartProps extends BaseChartEventProps {
471
518
  *
472
519
  * (1) Sisense data source name as a string. For example, `'Sample ECommerce'`. Typically, you
473
520
  * retrieve the data source name from a data model you create using the `get-data-model`
474
- * {@link https://sisense.dev/guides/sdk/guides/cli.html | command} of the Compose SDK CLI. Under the hood, the chart
521
+ * {@link https://developer.sisense.com/guides/sdk/guides/cli.html | command} of the Compose SDK CLI. The chart
475
522
  * connects to the data source, executes a query, and loads the data as specified in
476
523
  * `dataOptions`, `filters`, and `highlights`.
477
524
  *
@@ -564,19 +611,19 @@ interface ChartEventProps extends BaseChartEventProps {
564
611
  *
565
612
  * @category Callbacks
566
613
  */
567
- onDataPointClick?: DataPointEventHandler | ScatterDataPointEventHandler | AreamapDataPointEventHandler | BoxplotDataPointEventHandler | ScattermapDataPointEventHandler | IndicatorDataPointEventHandler;
614
+ onDataPointClick?: DataPointEventHandler | ScatterDataPointEventHandler | AreamapDataPointEventHandler | BoxplotDataPointEventHandler | ScattermapDataPointEventHandler | IndicatorDataPointEventHandler | CalendarHeatmapDataPointEventHandler;
568
615
  /**
569
616
  * Context menu handler callback for a data point
570
617
  *
571
618
  * @category Callbacks
572
619
  */
573
- onDataPointContextMenu?: DataPointEventHandler | ScatterDataPointEventHandler | BoxplotDataPointEventHandler;
620
+ onDataPointContextMenu?: DataPointEventHandler | ScatterDataPointEventHandler | BoxplotDataPointEventHandler | CalendarHeatmapDataPointEventHandler;
574
621
  /**
575
622
  * Handler callback for selection of multiple data points
576
623
  *
577
624
  * @category Callbacks
578
625
  */
579
- onDataPointsSelected?: DataPointsEventHandler | ScatterDataPointsEventHandler;
626
+ onDataPointsSelected?: DataPointsEventHandler | ScatterDataPointsEventHandler | CalendarHeatmapDataPointsEventHandler;
580
627
  /**
581
628
  * A callback that allows you to customize the underlying chart element before it is rendered. The returned options are then used when rendering the chart.
582
629
  *
@@ -891,6 +938,50 @@ export interface PivotTableProps {
891
938
  * @internal
892
939
  */
893
940
  onDataPointContextMenu?: PivotTableDataPointEventHandler;
941
+ /**
942
+ * Applies custom styling and behavior to pivot table data cells.
943
+ *
944
+ * This formatter function returns formatting objects instead of mutating parameters,
945
+ * following functional programming principles. Use this single callback to combine
946
+ * multiple handlers and control the call sequence from outside the pivot.
947
+ *
948
+ * @example
949
+ * ```typescript
950
+ * const customDataFormatter: CustomDataCellFormatter = (cell, jaqlPanelItem, dataOption, id) => {
951
+ * if (cell.value > 1000) {
952
+ * return {
953
+ * style: { backgroundColor: 'lightgreen' },
954
+ * content: `${cell.value} (High)`
955
+ * };
956
+ * }
957
+ * };
958
+ * ```
959
+ *
960
+ * @internal
961
+ */
962
+ onDataCellFormat?: CustomDataCellFormatter;
963
+ /**
964
+ * Applies custom styling and behavior to pivot table row and column headers.
965
+ *
966
+ * This formatter function returns formatting objects instead of mutating parameters,
967
+ * following functional programming principles. Use this single callback to combine
968
+ * multiple handlers and control the call sequence from outside the pivot.
969
+ *
970
+ * @example
971
+ * ```typescript
972
+ * const customHeaderFormatter: CustomHeaderCellFormatter = (cell, jaqlPanelItem, dataOption, id) => {
973
+ * if (cell.content === 'Total') {
974
+ * return {
975
+ * style: { fontWeight: 'bold', color: 'blue' },
976
+ * className: 'total-header'
977
+ * };
978
+ * }
979
+ * };
980
+ * ```
981
+ *
982
+ * @internal
983
+ */
984
+ onHeaderCellFormat?: CustomHeaderCellFormatter;
894
985
  }
895
986
  /**
896
987
  * Props of the {@link ScatterChart} component.
@@ -1214,6 +1305,50 @@ export interface PivotTableWidgetProps {
1214
1305
  * @internal
1215
1306
  */
1216
1307
  onDataPointContextMenu?: PivotTableDataPointEventHandler;
1308
+ /**
1309
+ * Applies custom styling and behavior to pivot table data cells.
1310
+ *
1311
+ * This formatter function returns formatting objects instead of mutating parameters,
1312
+ * following functional programming principles. Use this single callback to combine
1313
+ * multiple handlers and control the call sequence from outside the pivot.
1314
+ *
1315
+ * @example
1316
+ * ```typescript
1317
+ * const customDataFormatter: CustomDataCellFormatter = (cell, jaqlPanelItem, dataOption, id) => {
1318
+ * if (cell.value > 1000) {
1319
+ * return {
1320
+ * style: { backgroundColor: 'lightgreen' },
1321
+ * content: `${cell.value} (High)`
1322
+ * };
1323
+ * }
1324
+ * };
1325
+ * ```
1326
+ *
1327
+ * @internal
1328
+ */
1329
+ onDataCellFormat?: CustomDataCellFormatter;
1330
+ /**
1331
+ * Applies custom styling and behavior to pivot table row and column headers.
1332
+ *
1333
+ * This formatter function returns formatting objects instead of mutating parameters,
1334
+ * following functional programming principles. Use this single callback to combine
1335
+ * multiple handlers and control the call sequence from outside the pivot.
1336
+ *
1337
+ * @example
1338
+ * ```typescript
1339
+ * const customHeaderFormatter: CustomHeaderCellFormatter = (cell, jaqlPanelItem, dataOption, id) => {
1340
+ * if (cell.content === 'Total') {
1341
+ * return {
1342
+ * style: { fontWeight: 'bold', color: 'blue' },
1343
+ * className: 'total-header'
1344
+ * };
1345
+ * }
1346
+ * };
1347
+ * ```
1348
+ *
1349
+ * @internal
1350
+ */
1351
+ onHeaderCellFormat?: CustomHeaderCellFormatter;
1217
1352
  }
1218
1353
  /**
1219
1354
  * Props for the `TextWidget` component.
@@ -1628,3 +1763,22 @@ export interface UseGetSharedFormulaParams extends HookEnableParam {
1628
1763
  */
1629
1764
  dataSource?: DataSource;
1630
1765
  }
1766
+ /**
1767
+ * Props of the {@link CalendarHeatmapChart} component.
1768
+ *
1769
+ * @internal
1770
+ */
1771
+ export interface CalendarHeatmapChartProps extends BaseChartProps, CalendarHeatmapChartEventProps {
1772
+ /**
1773
+ * Configurations for how to interpret and present the data passed to the chart
1774
+ *
1775
+ * @category Chart
1776
+ */
1777
+ dataOptions: CalendarHeatmapChartDataOptions;
1778
+ /**
1779
+ * Configurations for how to style and present a chart's data.
1780
+ *
1781
+ * @category Chart
1782
+ */
1783
+ styleOptions?: CalendarHeatmapStyleOptions;
1784
+ }
@@ -53,13 +53,14 @@ export type DateConfig = {
53
53
  };
54
54
  export declare const defaultDateConfig: DateConfig;
55
55
  /**
56
- * Returns a formatted date, according to the provided date format string.
56
+ * Safely formats a date value, handling special cases like 'N\A'
57
57
  *
58
- * @param date -
59
- * @param format -
60
- * @param locale -
61
- * @param cfg -
58
+ * @param value - The date value to format, can be a Date object, ISO string, or special value like 'N\A'
59
+ * @param format - The date format to apply
60
+ * @param locale - Optional locale for formatting
61
+ * @param cfg - Optional date configuration
62
+ * @returns Formatted date string or the original value for special cases
62
63
  */
63
- export declare function applyDateFormat(date: Date, format: DateFormat, locale?: Locale, cfg?: DateConfig): string;
64
+ export declare function formatDateValue(value: Date | string, format: DateFormat, locale?: Locale, cfg?: DateConfig): string;
64
65
  export declare function getDefaultDateMask(granularity?: string): "HH:mm:ss" | "yyyy" | "MM/yyyy" | "ww yyyy" | "HH:mm" | "Q yyyy" | "shortDate" | "fullDate";
65
66
  export {};
@@ -1,2 +1,2 @@
1
1
  export type { DateFormat, DateConfig } from './apply-date-format';
2
- export { applyDateFormat, defaultDateConfig } from './apply-date-format';
2
+ export { formatDateValue, defaultDateConfig } from './apply-date-format';
@@ -1,5 +1,5 @@
1
1
  import { CreateCacheKeyFn } from '../utils/create-cache';
2
- import { Attribute, Measure, PivotAttribute, PivotMeasure, PivotQueryResultData, QueryResultData } from '@sisense/sdk-data';
2
+ import { Attribute, DataSource, Measure, PivotAttribute, PivotMeasure, PivotQueryResultData, QueryResultData } from '@sisense/sdk-data';
3
3
  import type { QueryDescription as InternalQueryDescription, PivotQueryDescription as InternalPivotQueryDescription, QueryExecutionConfig } from '@sisense/sdk-query-client';
4
4
  import { ClientApplication } from '../app/client-application';
5
5
  /**
@@ -26,6 +26,8 @@ export type PivotQueryDescription = Partial<Omit<InternalPivotQueryDescription,
26
26
  values?: (Measure | PivotMeasure)[];
27
27
  };
28
28
  /** @internal */
29
+ export declare const prepareQueryParams: (queryDescription: QueryDescription, defaultDataSource?: DataSource) => InternalQueryDescription;
30
+ /** @internal */
29
31
  export declare function executeQuery(queryDescription: QueryDescription, app: ClientApplication, executionConfig?: QueryExecutionConfig): Promise<QueryResultData>;
30
32
  /** @internal */
31
33
  export declare const executeCsvQuery: (queryDescription: QueryDescription, app: ClientApplication, executionConfig?: QueryExecutionConfig) => Promise<Blob>;
@@ -5,4 +5,4 @@ export { ExecuteQueryByWidgetId } from './execute-query-by-widget-id';
5
5
  export { useExecuteQueryByWidgetId, executeQueryByWidgetId, } from './use-execute-query-by-widget-id';
6
6
  export { useExecutePivotQuery } from './use-execute-pivot-query';
7
7
  export { useQueryCache } from './use-query-cache';
8
- export type { QueryState, QueryLoadingState, QuerySuccessState, QueryErrorState, CsvQueryState, CsvQueryLoadingState, CsvQuerySuccessState, CsvQueryErrorState, PivotQueryState, PivotQueryLoadingState, PivotQuerySuccessState, PivotQueryErrorState, ExecuteQueryParams, ExecuteQueryResult, ExecuteCsvQueryParams, ExecuteCSVQueryConfig, ExecuteQueryByWidgetIdParams, QueryByWidgetIdState, QueryByWidgetIdQueryParams, ExecutePivotQueryParams, } from './types';
8
+ export type { QueryState, QueryLoadingState, QuerySuccessState, QueryErrorState, CsvQueryState, CsvQueryLoadingState, CsvQuerySuccessState, CsvQueryErrorState, PivotQueryState, PivotQueryLoadingState, PivotQuerySuccessState, PivotQueryErrorState, BaseQueryParams, ExecuteQueryParams, ExecuteQueryResult, ExecuteCsvQueryParams, ExecuteCSVQueryConfig, ExecuteQueryByWidgetIdParams, QueryByWidgetIdState, QueryByWidgetIdQueryParams, ExecutePivotQueryParams, } from './types';
@@ -171,9 +171,11 @@ export type QueryByWidgetIdQueryParams = {
171
171
  */
172
172
  export type QueryByWidgetIdState = QueryState & QueryByWidgetIdQueryParams;
173
173
  /**
174
- * Parameters for {@link useExecuteQuery} hook.
174
+ * Base query parameters
175
+ *
176
+ * @internal
175
177
  */
176
- export interface ExecuteQueryParams {
178
+ export interface BaseQueryParams {
177
179
  /**
178
180
  * Data source the query is run against - e.g. `Sample ECommerce`
179
181
  *
@@ -188,6 +190,11 @@ export interface ExecuteQueryParams {
188
190
  filters?: Filter[] | FilterRelations;
189
191
  /** Highlight filters that will highlight results that pass filter criteria */
190
192
  highlights?: Filter[];
193
+ }
194
+ /**
195
+ * Parameters for {@link useExecuteQuery} hook.
196
+ */
197
+ export interface ExecuteQueryParams extends BaseQueryParams {
191
198
  /**
192
199
  * Number of rows to return in the query result
193
200
  *
@@ -2,9 +2,9 @@ import { ChartDataOptionsInternal } from '../chart-data-options/types';
2
2
  import { ChartData } from '../chart-data/types.js';
3
3
  import { ChartDesignOptions } from '../chart-options-processor/translations/types.js';
4
4
  import { BeforeRenderHandler } from '../props.js';
5
- import { BoxplotChartType, BoxplotDataPoint, CartesianChartType, CategoricalChartType, DataPoint, ScatterChartType, ScatterDataPoint } from '../types.js';
5
+ import { BoxplotChartType, BoxplotDataPoint, CalendarHeatmapDataPoint, CartesianChartType, CategoricalChartType, DataPoint, ScatterChartType, ScatterDataPoint } from '../types.js';
6
6
  export type SisenseChartDataPointsEventHandler = (points: SisenseChartDataPoint[], nativeEvent: MouseEvent) => void;
7
- export type SisenseChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint;
7
+ export type SisenseChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint | CalendarHeatmapDataPoint;
8
8
  export type SisenseChartDataPointEventHandler = (point: SisenseChartDataPoint, nativeEvent: PointerEvent) => void;
9
9
  export interface SisenseChartProps {
10
10
  chartType: SisenseChartType;
@@ -10,6 +10,7 @@ export declare const DEFAULT_FILTER_PANEL_DIVIDER_LINE_WIDTH = 1;
10
10
  export declare const DEFAULT_FILTER_PANEL_BORDER_COLOR = "#DADADA";
11
11
  export declare const DEFAULT_FILTER_PANEL_BORDER_WIDTH = 1;
12
12
  export declare const DEFAULT_TITLE_FONT_SIZE = 15;
13
+ export declare const DEFAULT_HYPERLINK_COLOR = "#1FAFF3";
13
14
  /**
14
15
  * Returns default theme settings, which can be used as base for custom theme options.
15
16
  *
@@ -373,6 +373,17 @@ export declare const translation: {
373
373
  jumpToDashboard: {
374
374
  defaultCaption: string;
375
375
  jumpableTooltip: string;
376
+ noDrillTargets: string;
377
+ };
378
+ calendarHeatmap: {
379
+ navigation: {
380
+ firstMonth: string;
381
+ lastMonth: string;
382
+ previousMonth: string;
383
+ nextMonth: string;
384
+ previousGroup: string;
385
+ nextGroup: string;
386
+ };
376
387
  };
377
388
  };
378
389
  /**
@@ -383,6 +383,17 @@ export declare const resources: {
383
383
  jumpToDashboard: {
384
384
  defaultCaption: string;
385
385
  jumpableTooltip: string;
386
+ noDrillTargets: string;
387
+ };
388
+ calendarHeatmap: {
389
+ navigation: {
390
+ firstMonth: string;
391
+ lastMonth: string;
392
+ previousMonth: string;
393
+ nextMonth: string;
394
+ previousGroup: string;
395
+ nextGroup: string;
396
+ };
386
397
  };
387
398
  };
388
399
  uk: {
@@ -760,6 +771,17 @@ export declare const resources: {
760
771
  jumpToDashboard: {
761
772
  defaultCaption: string;
762
773
  jumpableTooltip: string;
774
+ noDrillTargets: string;
775
+ };
776
+ calendarHeatmap: {
777
+ navigation: {
778
+ firstMonth: string;
779
+ lastMonth: string;
780
+ previousMonth: string;
781
+ nextMonth: string;
782
+ previousGroup: string;
783
+ nextGroup: string;
784
+ };
763
785
  };
764
786
  };
765
787
  };