@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,10 @@
1
1
  import { ValueLabelOptions } from './value-label-section';
2
2
  import { Axis } from './axis-section';
3
3
  import { Marker } from './marker-section';
4
- import { LegendPosition } from './legend-section';
5
4
  import { LineType, StackType } from './translations-to-highcharts';
6
5
  import { PieType, PieLabels } from './pie-plot-options';
7
6
  import { FunnelSize, FunnelType, FunnelDirection, FunnelLabels } from './funnel-plot-options';
8
- import { Convolution, ScattermapMarkers, SunburstStyleOptions, TreemapStyleOptions } from '../../types';
7
+ import { CalendarHeatmapViewType, Convolution, LineOptions, LegendOptions, ScattermapMarkers, SunburstStyleOptions, TreemapStyleOptions } from '../../types';
9
8
  import { ScatterMarkerSize } from './scatter-plot-options';
10
9
  import { DesignPerSeries } from './types';
11
10
  type DataLimits = {
@@ -13,9 +12,13 @@ type DataLimits = {
13
12
  categoriesCapacity: number;
14
13
  };
15
14
  export type BaseDesignOptionsType = {
16
- legend: LegendPosition;
15
+ legend?: LegendOptions;
17
16
  valueLabel: ValueLabelOptions;
18
17
  lineType: LineType;
18
+ /**
19
+ * @deprecated
20
+ * Use line.width instead
21
+ */
19
22
  lineWidth: number;
20
23
  marker: Marker;
21
24
  xAxis: Axis;
@@ -33,17 +36,25 @@ export type BaseDesignOptionsType = {
33
36
  };
34
37
  export type CartesianChartDesignOptions = BaseDesignOptionsType & DesignPerSeries;
35
38
  export type StackableChartDesignOptions = CartesianChartDesignOptions & {
39
+ line?: LineOptions;
36
40
  stackType: StackType;
37
41
  showTotal?: boolean;
38
42
  totalLabelRotation?: number;
39
- } & DesignPerSeries;
43
+ };
40
44
  export type LineChartDesignOptions = CartesianChartDesignOptions & {
41
45
  /** Step type for step line charts: left, center, or right */
42
46
  step?: 'left' | 'center' | 'right';
47
+ line?: LineOptions;
43
48
  };
44
49
  export type AreaChartDesignOptions = StackableChartDesignOptions;
45
50
  export type BarChartDesignOptions = StackableChartDesignOptions;
46
51
  export type ColumnChartDesignOptions = StackableChartDesignOptions;
52
+ export type CalendarHeatmapChartDesignOptions = BaseDesignOptionsType & {
53
+ width?: number;
54
+ height?: number;
55
+ viewType: CalendarHeatmapViewType;
56
+ cellSize?: number;
57
+ };
47
58
  export type PolarType = 'line' | 'area' | 'column';
48
59
  export type PolarChartDesignOptions = CartesianChartDesignOptions & {
49
60
  polarType: PolarType;
@@ -185,5 +196,8 @@ export type BoxplotChartDesignOptions = BaseDesignOptionsType & {
185
196
  export type ScattermapChartDesignOptions = BaseDesignOptionsType & {
186
197
  markers: Required<ScattermapMarkers>;
187
198
  };
188
- export type AreaRangeChartDesignOptions = BaseDesignOptionsType;
199
+ export type AreaRangeChartDesignOptions = BaseDesignOptionsType & {
200
+ /** Configuration that defines line style */
201
+ line?: LineOptions;
202
+ };
189
203
  export {};
@@ -1,28 +1,42 @@
1
- import { Style } from '../chart-options-service';
1
+ import type { LegendOptions } from '../../types';
2
+ import type { TextStyle } from './types';
2
3
  export type LegendPosition = 'top' | 'left' | 'right' | 'bottom' | null;
3
4
  export type LegendSettings = {
4
5
  enabled: boolean;
5
6
  align?: 'center' | 'left' | 'right';
6
7
  verticalAlign?: 'top' | 'middle' | 'bottom';
7
- layout?: 'horizontal' | 'vertical';
8
- itemStyle?: Style & {
9
- cursor?: string;
10
- };
11
- symbolRadius?: number;
12
- symbolHeight?: number;
13
- symbolWidth?: number;
14
8
  borderWidth?: number;
15
9
  borderColor?: string;
10
+ borderRadius?: number;
16
11
  backgroundColor?: string;
12
+ margin?: number;
13
+ padding?: number;
14
+ maxHeight?: number;
15
+ shadow?: boolean;
16
+ reversed?: boolean;
17
+ rtl?: boolean;
18
+ floating?: boolean;
19
+ width?: number | string;
20
+ x?: number;
21
+ y?: number;
22
+ layout?: 'horizontal' | 'vertical' | 'proximate';
23
+ itemDistance?: number;
24
+ itemWidth?: number;
25
+ itemStyle?: TextStyle;
26
+ itemHoverStyle?: TextStyle;
27
+ itemHiddenStyle?: TextStyle;
17
28
  itemMarginBottom?: number;
18
29
  itemMarginTop?: number;
19
- margin?: number;
30
+ symbolRadius?: number;
31
+ symbolHeight?: number;
32
+ symbolWidth?: number;
33
+ symbolPadding?: number;
34
+ squareSymbol?: boolean;
20
35
  title?: {
21
- style?: {
22
- [key: string]: string | number;
23
- };
36
+ text?: string;
37
+ style?: TextStyle;
24
38
  };
25
- maxHeight?: number;
26
39
  };
27
40
  export declare const legendItemStyleDefault: LegendSettings['itemStyle'];
28
- export declare const getLegendSettings: (position: LegendPosition) => LegendSettings;
41
+ export declare const getLegendSettings: (legend?: LegendOptions) => LegendSettings;
42
+ export declare const isLegendOnRight: (legend?: LegendOptions) => boolean;
@@ -1,18 +1,46 @@
1
- import { SeriesWithAlerts, CompleteThemeSettings } from '../../types';
1
+ import { Convolution, SeriesWithAlerts, CompleteThemeSettings } from '../../types';
2
2
  import { CategoricalChartDataOptionsInternal } from '../../chart-data-options/types';
3
3
  import { SeriesType } from '../chart-options-service';
4
4
  import { PieChartDesignOptions } from './design-options';
5
5
  import { CategoricalChartData } from '../../chart-data/types';
6
+ import { SeriesPieOptions } from '@sisense/sisense-charts';
6
7
  type FormattedPieChartData = SeriesWithAlerts<SeriesType[]> & {
7
- convolutionSeries: SeriesType[];
8
+ convolutionSeries: SeriesPieOptions[];
8
9
  };
10
+ /**
11
+ * Pure function that generates alerts for data limit warnings based on series capacity.
12
+ */
13
+ export declare const getPieAlerts: (chartData: CategoricalChartData, seriesCapacity: number) => SeriesWithAlerts<SeriesType[]>['alerts'];
14
+ /**
15
+ * Creates pie chart series with convolution applied.
16
+ * Returns the complete series ready for chart rendering.
17
+ */
18
+ export declare const getPieSeries: ({ chartData, dataOptions, seriesCapacity, convolution, themeSettings, }: {
19
+ chartData: CategoricalChartData;
20
+ dataOptions: CategoricalChartDataOptionsInternal;
21
+ seriesCapacity: number;
22
+ convolution?: Convolution | undefined;
23
+ themeSettings?: CompleteThemeSettings | undefined;
24
+ }) => SeriesType[];
25
+ /**
26
+ * Returns only the convolution series (breakdown of "Others" slice).
27
+ * This is separate data for drill-down functionality.
28
+ */
29
+ export declare const getPieConvolutionSeries: ({ chartData, dataOptions, seriesCapacity, convolution, themeSettings, }: {
30
+ chartData: CategoricalChartData;
31
+ dataOptions: CategoricalChartDataOptionsInternal;
32
+ seriesCapacity: number;
33
+ convolution?: Convolution | undefined;
34
+ themeSettings?: CompleteThemeSettings | undefined;
35
+ }) => SeriesPieOptions[];
9
36
  /**
10
37
  * Convert categorical chart data into renderable highcharts pie series.
11
38
  *
12
- * @param chartData
13
- * @param dataOptions
14
- * @param designOptions
15
- * @param themeSettings
39
+ * @param chartData - The source categorical chart data
40
+ * @param dataOptions - Chart data configuration options
41
+ * @param designOptions - Design and styling options including convolution settings
42
+ * @param themeSettings - Theme configuration for colors and styling
43
+ * @returns Formatted pie chart data with series, alerts, and convolution series
16
44
  */
17
45
  export declare const formatCategoricalChartData: (chartData: CategoricalChartData, dataOptions: CategoricalChartDataOptionsInternal, designOptions: PieChartDesignOptions, themeSettings?: CompleteThemeSettings) => FormattedPieChartData;
18
46
  export {};
@@ -54,6 +54,9 @@ export type HighchartsDataPointContext = {
54
54
  string1?: string;
55
55
  xDisplayValue?: string;
56
56
  xValue?: (number | string)[];
57
+ empty?: boolean;
58
+ monthDay?: number;
59
+ hasData?: boolean;
57
60
  };
58
61
  upperPointName?: string;
59
62
  lowerPointName?: string;
@@ -65,6 +68,8 @@ export type HighchartsDataPointContext = {
65
68
  };
66
69
  options?: TooltipFormatterContextObject['point']['options'];
67
70
  node?: HighchartsDataPointContextNode;
71
+ date?: string | number | Date;
72
+ value?: number;
68
73
  };
69
74
  percentage?: number;
70
75
  color?: string;
@@ -7,7 +7,7 @@ import { Stacking } from '../chart-options-service';
7
7
  import { DesignOptions } from './types';
8
8
  export type LineType = 'straight' | 'smooth';
9
9
  export type StackType = 'classic' | 'stacked' | 'stack100';
10
- export type HighchartsType = ChartType | 'spline' | 'areaspline' | 'bubble';
10
+ export type HighchartsType = ChartType | 'spline' | 'areaspline' | 'bubble' | 'heatmap';
11
11
  export type HighchartsSeriesValues = {
12
12
  name: string;
13
13
  data: SeriesPointStructure[];
@@ -1,6 +1,55 @@
1
1
  import { AreamapChartDesignOptions } from '../../chart/restructured-charts/areamap-chart/types';
2
2
  import { ChartType } from '../../types';
3
- import { LineChartDesignOptions, AreaChartDesignOptions, BarChartDesignOptions, ColumnChartDesignOptions, PieChartDesignOptions, FunnelChartDesignOptions, IndicatorChartDesignOptions, PolarChartDesignOptions, ScatterChartDesignOptions, TreemapChartDesignOptions, BoxplotChartDesignOptions, ScattermapChartDesignOptions, AreaRangeChartDesignOptions, BaseDesignOptionsType } from './design-options';
3
+ import { LineChartDesignOptions, AreaChartDesignOptions, BarChartDesignOptions, ColumnChartDesignOptions, CalendarHeatmapChartDesignOptions, PieChartDesignOptions, FunnelChartDesignOptions, IndicatorChartDesignOptions, PolarChartDesignOptions, ScatterChartDesignOptions, TreemapChartDesignOptions, BoxplotChartDesignOptions, ScattermapChartDesignOptions, AreaRangeChartDesignOptions, BaseDesignOptionsType } from './design-options';
4
+ /**
5
+ * Style configuration for text elements in charts and UI components.
6
+ * Defines the visual appearance and behavior of text rendering.
7
+ */
8
+ export type TextStyle = {
9
+ /**
10
+ * Font family name for the text.
11
+ * Examples: 'Arial', 'Helvetica', 'Times New Roman', 'sans-serif'
12
+ */
13
+ fontFamily?: string;
14
+ /**
15
+ * Font size in CSS units (px, em, rem, pt, etc.).
16
+ * Examples: '12px', '1.2em', '16pt'
17
+ */
18
+ fontSize?: string;
19
+ /**
20
+ * Font weight for text rendering.
21
+ * Examples: 'normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900'
22
+ */
23
+ fontWeight?: string;
24
+ /**
25
+ * Font style for text rendering.
26
+ * Examples: 'normal', 'italic', 'oblique'
27
+ */
28
+ fontStyle?: string;
29
+ /**
30
+ * Text color in any valid CSS color format.
31
+ * Examples: '#FF0000', 'rgb(255, 0, 0)', 'red', 'rgba(255, 0, 0, 0.5)'
32
+ */
33
+ color?: string;
34
+ /**
35
+ * Text outline/stroke configuration.
36
+ * Defines the outline color and width for text rendering.
37
+ * Examples: '1px solid black', '2px #333'
38
+ */
39
+ textOutline?: string;
40
+ /**
41
+ * CSS pointer-events property for text interaction.
42
+ * Controls how the text responds to mouse events.
43
+ * Examples: 'auto', 'none', 'visible', 'visibleFill', 'visibleStroke'
44
+ */
45
+ pointerEvents?: string;
46
+ /**
47
+ * Text overflow handling behavior.
48
+ * Controls how text is displayed when it exceeds its container.
49
+ * Examples: 'clip', 'ellipsis', 'visible', 'hidden'
50
+ */
51
+ textOverflow?: string;
52
+ };
4
53
  export declare const POLAR_CHART_TYPES: readonly ["polar"];
5
54
  export type PolarChartType = (typeof POLAR_CHART_TYPES)[number];
6
55
  export declare const CARTESIAN_CHART_TYPES: readonly ["line", "area", "bar", "column", "polar"];
@@ -31,6 +80,14 @@ export type ImageChartType = (typeof IMAGE_CHART_TYPES)[number];
31
80
  export declare const SCATTERMAP_CHART_TYPES: readonly ["scattermap"];
32
81
  /** Scattermap chart types @expandType */
33
82
  export type ScattermapChartType = (typeof SCATTERMAP_CHART_TYPES)[number];
83
+ export declare const CALENDAR_HEATMAP_CHART_TYPES: readonly ["calendar-heatmap"];
84
+ /**
85
+ * Calendar heatmap chart types
86
+ *
87
+ * @expandType
88
+ * @alpha
89
+ */
90
+ export type CalendarHeatmapChartType = (typeof CALENDAR_HEATMAP_CHART_TYPES)[number];
34
91
  export declare const RANGE_CHART_TYPES: readonly ["arearange"];
35
92
  /** AreaRange chart types @expandType */
36
93
  export type RangeChartType = (typeof RANGE_CHART_TYPES)[number];
@@ -38,7 +95,7 @@ export type ChartDataType = 'cartesian' | 'categorical' | 'scatter' | 'table' |
38
95
  /**
39
96
  * Design options for a specific chart type
40
97
  */
41
- export type DesignOptions<SpecificChartType extends ChartType = ChartType> = SpecificChartType extends 'line' ? LineChartDesignOptions : SpecificChartType extends 'area' ? AreaChartDesignOptions : SpecificChartType extends 'bar' ? BarChartDesignOptions : SpecificChartType extends 'column' ? ColumnChartDesignOptions : SpecificChartType extends 'pie' ? PieChartDesignOptions : SpecificChartType extends 'funnel' ? FunnelChartDesignOptions : SpecificChartType extends 'polar' ? PolarChartDesignOptions : SpecificChartType extends 'indicator' ? IndicatorChartDesignOptions : SpecificChartType extends 'scatter' ? ScatterChartDesignOptions : SpecificChartType extends 'treemap' ? TreemapChartDesignOptions : SpecificChartType extends 'boxplot' ? BoxplotChartDesignOptions : SpecificChartType extends 'areamap' ? AreamapChartDesignOptions : SpecificChartType extends 'scattermap' ? ScattermapChartDesignOptions : SpecificChartType extends 'arearange' ? AreaRangeChartDesignOptions : never;
98
+ export type DesignOptions<SpecificChartType extends ChartType = ChartType> = SpecificChartType extends 'line' ? LineChartDesignOptions : SpecificChartType extends 'area' ? AreaChartDesignOptions : SpecificChartType extends 'bar' ? BarChartDesignOptions : SpecificChartType extends 'column' ? ColumnChartDesignOptions : SpecificChartType extends 'pie' ? PieChartDesignOptions : SpecificChartType extends 'funnel' ? FunnelChartDesignOptions : SpecificChartType extends 'polar' ? PolarChartDesignOptions : SpecificChartType extends 'indicator' ? IndicatorChartDesignOptions : SpecificChartType extends 'scatter' ? ScatterChartDesignOptions : SpecificChartType extends 'treemap' ? TreemapChartDesignOptions : SpecificChartType extends 'boxplot' ? BoxplotChartDesignOptions : SpecificChartType extends 'areamap' ? AreamapChartDesignOptions : SpecificChartType extends 'scattermap' ? ScattermapChartDesignOptions : SpecificChartType extends 'calendar-heatmap' ? CalendarHeatmapChartDesignOptions : SpecificChartType extends 'arearange' ? AreaRangeChartDesignOptions : never;
42
99
  /** A unique identifier for a series to be found in {@link ChartDataOptionsInternal} */
43
100
  type SeriesId = string;
44
101
  /**
@@ -51,7 +108,7 @@ export type ChartDesignOptions<SpecificChartType extends ChartType = ChartType>
51
108
  *
52
109
  * @internal
53
110
  */
54
- export type SeriesDesignOptions = Pick<BaseDesignOptionsType, 'lineWidth' | 'marker'>;
111
+ export type SeriesDesignOptions = Pick<BaseDesignOptionsType, 'marker'> & Pick<LineChartDesignOptions, 'line'>;
55
112
  export type DesignPerSeries = {
56
113
  designPerSeries: Record<SeriesId, SeriesDesignOptions>;
57
114
  };
@@ -65,6 +122,6 @@ export declare const isTable: (chartType: ChartType | TableType) => chartType is
65
122
  export declare const isBoxplot: (chartType: ChartType) => chartType is "boxplot";
66
123
  export declare const isAreamap: (chartType: ChartType) => chartType is "areamap";
67
124
  export declare const isRange: (chartType: ChartType) => chartType is "arearange";
68
- export declare const ALL_CHART_TYPES: readonly ["line", "area", "bar", "column", "polar", "pie", "funnel", "treemap", "sunburst", "scatter", "table", "indicator", "boxplot", "areamap", "image", "scattermap", "arearange"];
125
+ export declare const ALL_CHART_TYPES: readonly ["line", "area", "bar", "column", "polar", "pie", "funnel", "treemap", "sunburst", "scatter", "table", "indicator", "boxplot", "areamap", "image", "scattermap", "calendar-heatmap", "arearange"];
69
126
  export type DynamicChartType = (typeof ALL_CHART_TYPES)[number];
70
127
  export {};
@@ -1,5 +1,5 @@
1
1
  import type { DataLabelsOptions } from '@sisense/sisense-charts';
2
- import { Style } from '../chart-options-service';
2
+ import { TextStyle } from './types';
3
3
  import { AxisOrientation } from './axis-section';
4
4
  import { HighchartsDataPointContext } from './tooltip-utils';
5
5
  import { PolarType } from './design-options';
@@ -18,7 +18,7 @@ export type ValueLabelSettings = {
18
18
  rotation?: number;
19
19
  y?: number;
20
20
  x?: number;
21
- style?: Style;
21
+ style?: TextStyle;
22
22
  overflow?: string;
23
23
  allowOverlap?: boolean;
24
24
  verticalAlign?: 'bottom' | 'middle' | 'top';
@@ -0,0 +1,10 @@
1
+ import { DateConfig } from '../../query/date-formats';
2
+ export type DateFormatter = (date: Date, format: string) => string;
3
+ /**
4
+ * Creates a date formatter function
5
+ *
6
+ * @param locale - The locale to use for formatting
7
+ * @param cfg - The date configuration to use for formatting
8
+ * @returns A function that formats dates
9
+ */
10
+ export declare function createDateFormatter(locale?: Locale, cfg?: DateConfig): DateFormatter;
@@ -0,0 +1,7 @@
1
+ import { DateFormatter } from '../formatters/create-date-formatter';
2
+ /**
3
+ * A hook that returns a date formatter function
4
+ *
5
+ * @returns A function that formats dates
6
+ */
7
+ export declare function useDateFormatter(): DateFormatter;
@@ -0,0 +1,6 @@
1
+ import { Themable } from '../../theme-provider/types';
2
+ import type { SVGProps } from 'react';
3
+ export declare const DoubleArrowEndIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'fill' | 'onClick'> & {
4
+ direction: 'left' | 'right';
5
+ disabled?: boolean;
6
+ } & Themable) => import("react/jsx-runtime").JSX.Element;
@@ -3,3 +3,5 @@ export declare const SYSTEM_TENANT_NAME = "system";
3
3
  export declare const DEFAULT_TEXT_COLOR = "#5B6372";
4
4
  export declare const DEFAULT_BACKGROUND_COLOR = "#F4F4F8";
5
5
  export declare const ERROR_COLOR = "#FA5656";
6
+ export declare const NOT_AVAILABLE_DATA_VALUE = "N\\A";
7
+ export declare const NOT_AVAILABLE_TEXT = "N/A";
@@ -1,24 +1,5 @@
1
1
  import { EditableLayoutDragData, EditableLayoutDropData } from '../../../dashboard/components/editable-layout/types';
2
2
  import { DragStartEvent } from '@dnd-kit/core';
3
- import { RenderTitleHandler, RenderToolbarHandler, TextWidgetRenderToolbarHandler } from '../../../types';
4
3
  export declare const isEditableLayoutDragData: (data: any | undefined) => data is EditableLayoutDragData;
5
4
  export declare const isEditableLayoutDropData: (data: any) => data is EditableLayoutDropData;
6
5
  export declare const getDraggingWidgetId: (event: DragStartEvent) => string | null;
7
- /**
8
- * Compose multiple RenderToolbarHandler functions into one.
9
- * Each handler gets a chance to modify the toolbar.
10
- * If it returns `null`, the previous toolbar is passed to the next handler.
11
- */
12
- export declare function composeToolbarHandlers(...handlers: (RenderToolbarHandler | undefined)[]): RenderToolbarHandler;
13
- /**
14
- * Compose multiple TextWidgetRenderToolbarHandler functions into one.
15
- * Each handler gets a chance to modify the toolbar.
16
- * If it returns `null`, the previous toolbar is passed to the next handler.
17
- */
18
- export declare function composeTextWidgetToolbarHandlers(...handlers: (TextWidgetRenderToolbarHandler | undefined)[]): TextWidgetRenderToolbarHandler;
19
- /**
20
- * Compose multiple RenderTitleHandler functions into one.
21
- * Each handler gets a chance to modify the title.
22
- * If it returns `null`, the previous tile is passed to the next handler.
23
- */
24
- export declare function composeTitleHandlers(...handlers: (RenderTitleHandler | undefined)[]): RenderTitleHandler;
@@ -1,5 +1,5 @@
1
1
  export { getFiltersFromDataPoint, getFormulaContextFilters, filterByAllowedDimensions, handleFormulaDuplicateFilters, mergeJtdFilters, } from './jtd-filters';
2
2
  export { getJtdClickHandler, getJtdClickHandlerForMultiplePoints, handleDataPointClick, handleTextWidgetClick, } from './jtd-handlers';
3
3
  export { getJumpToDashboardMenuItem, getJumpToDashboardMenuItemForMultiplePoints, } from './jtd-menu';
4
- export { addPointerCursorToChart, applyClickNavigationForChart, applyClickNavigationForText, applyRightClickNavigation, addJtdIconToHeader, } from './jtd-widget-transforms';
4
+ export { addPointerCursorToChart, applyClickNavigationForChart, applyClickNavigationForText, applyClickNavigationForPivot, applyRightClickNavigation, applyRightClickNavigationForPivot, applyPivotLinkStyling, addJtdIconToHeader, } from './jtd-widget-transforms';
5
5
  export { type JtdCoreData, type JtdContext, type JtdActions, type JtdClickHandlerData, type JtdWidgetTransformConfig, type JtdDataPointClickEvent, type JtdMenuItem, } from './jtd-types';
@@ -10,7 +10,7 @@ import { JtdConfig } from '../../../widget-by-id/types';
10
10
  * 1. **Generated Filters**: Created from the clicked datapoint's category and breakBy entries
11
11
  * 2. **Dashboard Filters**: Current dashboard filters (filtered by includeDashFilterDims)
12
12
  * 3. **Widget Filters**: Original widget-specific filters (filtered by includeWidgetFilterDims)
13
- * 4. **Formula Context Filters**: NEW - Embedded filters from the clicked widget's datapoint calculations
13
+ * 4. **Formula Context Filters**: Embedded filters from the clicked widget's datapoint calculations
14
14
  *
15
15
  * ## Formula Context Filters (New Feature)
16
16
  *
@@ -68,6 +68,17 @@ export declare const getFormulaContextFilters: (clickedWidget: WidgetProps, jtdC
68
68
  * @internal
69
69
  */
70
70
  export declare const handleFormulaDuplicateFilters: (filters: Filter[], sendFormulaFiltersDuplicate?: number | 'none') => Filter[];
71
+ /**
72
+ * Normalizes a date value to the start of the period for the given granularity
73
+ * This ensures the filter member value matches what the backend query returns
74
+ * Uses existing date utilities instead of manual parsing to reduce business logic
75
+ *
76
+ * @param value - The raw date value (e.g., "2009-11-15T12:30:00.000")
77
+ * @param granularity - The date granularity (e.g., "Months")
78
+ * @returns Normalized date string that matches backend member query format
79
+ * @internal
80
+ */
81
+ export declare const normalizeDateForGranularity: (value: string, granularity: string) => string;
71
82
  /**
72
83
  * Type guard to check if a data point is a ScatterDataPoint.
73
84
  * Checks for actual scatter chart structure (x/y coordinates) and scatter-only properties.
@@ -0,0 +1,18 @@
1
+ import type { CustomDataCellFormatter, CustomHeaderCellFormatter } from '../../../pivot-table/formatters/types';
2
+ import { JtdConfig } from '../../../widget-by-id/types';
3
+ /**
4
+ * Creates a data cell formatter that applies hyperlink styling for JTD navigation
5
+ *
6
+ * @param hyperlinkColor - The color to use for hyperlink text (uses theme's hyperlinkColor
7
+ * @returns Data cell formatter function
8
+ * @internal
9
+ */
10
+ export declare function createJtdHyperlinkDataCellFormatter(hyperlinkColor: string, jtdConfig: JtdConfig): CustomDataCellFormatter;
11
+ /**
12
+ * Creates a header cell formatter that applies hyperlink styling for JTD navigation
13
+ *
14
+ * @param hyperlinkColor - The color to use for hyperlink text (uses theme's hyperlinkColor or defaults to DEFAULT_HYPERLINK_COLOR)
15
+ * @param jtdConfig - JTD configuration containing drill targets
16
+ * @returns A header cell formatter that applies hyperlink styling to matching header cells
17
+ */
18
+ export declare function createJtdHyperlinkHeaderCellFormatter(hyperlinkColor: string, jtdConfig: JtdConfig): CustomHeaderCellFormatter;
@@ -1,5 +1,6 @@
1
1
  import { type Filter } from '@sisense/sdk-data';
2
2
  import { WidgetProps } from '../../../props.js';
3
+ import { PivotTableDataPoint, DataPoint } from '../../../types';
3
4
  import { JtdConfig } from '../../../widget-by-id/types';
4
5
  import { OpenModalFn } from '../../../common/components/modal/modal-context';
5
6
  import { JtdCoreData, JtdContext, JtdActions, JtdClickHandlerData, JtdDataPointClickEvent } from './jtd-types';
@@ -33,6 +34,28 @@ export declare const getJtdClickHandlerForMultiplePoints: (data: JtdClickHandler
33
34
  * @internal
34
35
  */
35
36
  export declare const handleDataPointClick: (coreData: JtdCoreData, context: JtdContext, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>, event: JtdDataPointClickEvent) => void | Promise<string>;
37
+ /**
38
+ * Convert PivotTableDataPoint to DataPoint format for JTD processing
39
+ *
40
+ * @param pivotPoint - The pivot table data point
41
+ * @returns Converted data point
42
+ * @internal
43
+ */
44
+ export declare const convertPivotToDataPoint: (pivotPoint: PivotTableDataPoint) => DataPoint;
45
+ /**
46
+ * Handle pivot table data point click
47
+ *
48
+ * @param data - Core data with drill target (config, drill target, widget props, pivot point)
49
+ * @param context - Context data (filters)
50
+ * @param actions - Action functions
51
+ * @param eventData - Event-related data
52
+ * @internal
53
+ */
54
+ export declare const handlePivotDataPointClick: (data: {
55
+ jtdConfig: JtdConfig;
56
+ widgetProps: WidgetProps;
57
+ point: PivotTableDataPoint;
58
+ }, context: JtdContext, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>) => Promise<string> | undefined;
36
59
  /**
37
60
  * Handle text widget click (placeholder for future implementation)
38
61
  *
@@ -18,6 +18,16 @@ export declare const addPointerCursorToChart: (widgetProps: WidgetProps) => Widg
18
18
  * @internal
19
19
  */
20
20
  export declare const applyClickNavigationForChart: (widgetProps: WidgetProps, config: JtdWidgetTransformConfig, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>) => WidgetProps;
21
+ /**
22
+ * Apply JTD click navigation for pivot table widgets
23
+ *
24
+ * @param widgetProps - The widget props
25
+ * @param config - The JTD configuration and context
26
+ * @param actions - The action functions
27
+ * @returns Updated widget props with click navigation
28
+ * @internal
29
+ */
30
+ export declare const applyClickNavigationForPivot: (widgetProps: WidgetProps, config: JtdWidgetTransformConfig, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>) => WidgetProps;
21
31
  /**
22
32
  * Apply JTD click navigation for text widgets
23
33
  *
@@ -38,6 +48,25 @@ export declare const applyClickNavigationForText: (widgetProps: WidgetProps, con
38
48
  * @internal
39
49
  */
40
50
  export declare const applyRightClickNavigation: (widgetProps: WidgetProps, config: JtdWidgetTransformConfig, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>) => WidgetProps;
51
+ /**
52
+ * Apply JTD right-click navigation for pivot table widgets
53
+ *
54
+ * @param widgetProps - The widget props
55
+ * @param config - The JTD configuration and context
56
+ * @param actions - The action functions
57
+ * @returns Updated widget props with right-click navigation
58
+ * @internal
59
+ */
60
+ export declare const applyRightClickNavigationForPivot: (widgetProps: WidgetProps, config: JtdWidgetTransformConfig, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>) => WidgetProps;
61
+ /**
62
+ * Applies hyperlink styling to pivot table cells for PIVOT_LINK navigation
63
+ * @param widgetProps - Pivot table widget props
64
+ * @param config - JTD configuration
65
+ * @param hyperlinkColor
66
+ * @returns Updated widget props with hyperlink styling
67
+ * @internal
68
+ */
69
+ export declare const applyPivotLinkStyling: (widgetProps: WidgetProps, config: JtdWidgetTransformConfig, hyperlinkColor?: string) => WidgetProps;
41
70
  /**
42
71
  * Add JTD icon to widget header if configured
43
72
  *
@@ -37,6 +37,7 @@ export * from './boxplot-chart';
37
37
  export * from './scattermap-chart';
38
38
  export * from './areamap-chart';
39
39
  export * from './area-range-chart';
40
+ export * from './calendar-heatmap-chart';
40
41
  export * from './sisense-context/custom-sisense-context-provider';
41
42
  export * from './theme-provider/custom-theme-provider';
42
43
  export * from './custom-widgets-provider/custom-widgets-provider-adapter';
@@ -5,6 +5,7 @@ import { WidgetDto } from '../../widget-by-id/types';
5
5
  import { RestApi } from '../../api/rest-api';
6
6
  export declare const translateLayout: (layout: LayoutDto) => WidgetsPanelColumnLayout;
7
7
  export declare function extractDashboardFilters(dashboardFilters: Array<FilterDto | CascadingFilterDto>, filterRelationsModel?: FilterRelationsModel | FilterRelationsModelNode): Filter[] | FilterRelations;
8
+ export declare const convertDimensionsToDimIndexes: (widget: WidgetDto, dimensionIds: string[]) => string[];
8
9
  export declare function translateWidgetsOptions(widgets?: WidgetDto[]): WidgetsOptions;
9
10
  export declare function translateTabbersOptions(widgets?: WidgetDto[]): TabbersOptions;
10
11
  /**
@@ -1 +1,2 @@
1
1
  export { createDataCellValueFormatter } from './data-cell-value-formatter.js';
2
+ export { createDataCellColorFormatter } from './data-cell-color-formatter.js';
@@ -0,0 +1,23 @@
1
+ import type { CustomDataCellFormatter, CustomHeaderCellFormatter, CellFormattingResult } from './types.js';
2
+ import type { JaqlPanel, PivotDataNode, PivotTreeNode } from '@sisense/sdk-pivot-client';
3
+ import type { PivotTableDataOptionsInternal } from '../../chart-data-options/types';
4
+ /**
5
+ * Applies a formatting result to a data cell, mutating the cell object
6
+ * @param cell - The cell to apply formatting to
7
+ * @param result - The formatting result to apply
8
+ */
9
+ export declare function applyCellFormattingResult(cell: PivotDataNode | PivotTreeNode, result: CellFormattingResult): void;
10
+ /**
11
+ * Creates a unified formatter that handles functional formatters by applying their results
12
+ *
13
+ * @param formatter - A functional formatter that returns formatting information
14
+ * @returns A function that applies the formatter result to the cell
15
+ */
16
+ export declare function createUnifiedDataCellFormatter(formatter: CustomDataCellFormatter, dataOptions: PivotTableDataOptionsInternal): (cell: PivotDataNode, rowItem: PivotTreeNode, columnItem: PivotTreeNode, jaqlPanelItem: JaqlPanel) => void;
17
+ /**
18
+ * Creates a unified header cell formatter that handles functional formatters by applying their results
19
+ *
20
+ * @param formatter - A functional header formatter that returns formatting information
21
+ * @returns A function that applies the formatter result to the header cell
22
+ */
23
+ export declare function createUnifiedHeaderCellFormatter(formatter: CustomHeaderCellFormatter, dataOptions: PivotTableDataOptionsInternal): (cell: PivotTreeNode, jaqlPanelItem: JaqlPanel | undefined) => void;
@@ -1,5 +1,6 @@
1
1
  import type { PivotTableDataOptions } from '../../../chart-data-options/types.js';
2
- import type { DateFormatter, HeaderCellFormatter } from '../types.js';
2
+ import type { HeaderCellFormatter } from '../types.js';
3
+ import { DateFormatter } from '../../../common/formatters/create-date-formatter.js';
3
4
  export declare const createHeaderCellValueFormatter: (dataOptions: PivotTableDataOptions, dateFormatter: DateFormatter) => HeaderCellFormatter;
4
5
  /**
5
6
  * Formats the date time string or Date object.
@@ -1,4 +1,46 @@
1
+ /// <reference types="react" />
1
2
  import type { JaqlPanel, JaqlRequest, PivotDataNode, PivotTreeNode } from '@sisense/sdk-pivot-client';
2
- export type DataCellFormatter = (cell: PivotDataNode, rowItem: PivotTreeNode, columnItem: PivotTreeNode, jaqlPanelItem: JaqlPanel) => void;
3
- export type HeaderCellFormatter = (cell: PivotTreeNode, jaqlPanelItem: JaqlPanel, jaql: JaqlRequest) => void;
4
- export type DateFormatter = (date: Date, format: string) => string;
3
+ import { AnyColumn } from '../../chart-data-options/types';
4
+ /**
5
+ * Formatting result that can be applied to a header cell
6
+ */
7
+ export interface CellFormattingResult {
8
+ /** Text content to display in the cell */
9
+ content?: string;
10
+ /** Inline styles to apply to the cell */
11
+ style?: React.CSSProperties;
12
+ }
13
+ /**
14
+ * Data cell formatter that returns formatting information instead of mutating parameters
15
+ */
16
+ export type DataCellFormatter = (cell: PivotDataNode, rowItem: PivotTreeNode, columnItem: PivotTreeNode, jaqlPanelItem: JaqlPanel) => CellFormattingResult | void;
17
+ /**
18
+ * Applies custom formatting to pivot table data cells.
19
+ *
20
+ * This function is called for each data cell in the pivot table and can return
21
+ * formatting information to customize the cell's appearance and behavior.
22
+ *
23
+ * @param cell - The pivot data cell being formatted
24
+ * @param jaqlPanelItem - JAQL panel metadata for the cell
25
+ * @param dataOption - The data option configuration for this cell
26
+ * @param id - Unique identifier for the data option
27
+ * @returns Formatting result object or void to skip formatting
28
+ */
29
+ export type CustomDataCellFormatter = (cell: PivotDataNode, jaqlPanelItem: JaqlPanel, dataOption: AnyColumn, id: string) => CellFormattingResult | void;
30
+ /**
31
+ * Header cell formatter that returns formatting information instead of mutating parameters
32
+ */
33
+ export type HeaderCellFormatter = (cell: PivotTreeNode, jaqlPanelItem: JaqlPanel, jaql: JaqlRequest) => CellFormattingResult | void;
34
+ /**
35
+ * Applies custom formatting to pivot table header cells.
36
+ *
37
+ * This function is called for each row and column header cell in the pivot table
38
+ * and can return formatting information to customize the header's appearance and behavior.
39
+ *
40
+ * @param cell - The pivot header cell being formatted
41
+ * @param jaqlPanelItem - JAQL panel metadata for the cell (may be undefined for certain header types)
42
+ * @param dataOption - The data option configuration for this cell (optional)
43
+ * @param id - Unique identifier for the data option (optional)
44
+ * @returns Formatting result object or void to skip formatting
45
+ */
46
+ export type CustomHeaderCellFormatter = (cell: PivotTreeNode, jaqlPanelItem: JaqlPanel | undefined, dataOption?: AnyColumn, id?: string) => CellFormattingResult | void;
@@ -1,5 +1,6 @@
1
1
  import { type Column } from '@sisense/sdk-data';
2
2
  import { type PivotTableDataOptions, type StyledColumn, type AnyColumn } from '../../chart-data-options/types';
3
3
  export declare const getPivotDataOptionByJaqlIndex: (dataOptions: PivotTableDataOptions, dataOptionIndex?: number) => AnyColumn | undefined;
4
+ export declare const getPivotDataOptionIdByJaqlIndex: (dataOptions: PivotTableDataOptions, dataOptionIndex?: number) => string | undefined;
4
5
  export declare const getNumberFormatConfig: (dataOption?: AnyColumn) => Required<import("../..").NumberFormatConfig>;
5
6
  export declare const getDateFormatConfig: (dataOption: Column | StyledColumn) => string | undefined;