@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
@@ -4,7 +4,7 @@ import { AreaSubtype, BoxplotSubtype, LineSubtype, PieSubtype, PolarSubtype, Sta
4
4
  import { IndicatorComponents, TableColorOptions } from './chart-options-processor/translations/design-options';
5
5
  import { FunnelDirection, FunnelSize, FunnelType } from './chart-options-processor/translations/funnel-plot-options';
6
6
  import { ScatterMarkerSize } from './chart-options-processor/translations/scatter-plot-options';
7
- import { CartesianChartType, ScatterChartType, CategoricalChartType, IndicatorChartType, TableType, AreamapChartType, BoxplotChartType, ScattermapChartType, RangeChartType, TableChartType } from './chart-options-processor/translations/types';
7
+ import { CartesianChartType, ScatterChartType, CategoricalChartType, IndicatorChartType, TableType, AreamapChartType, BoxplotChartType, ScattermapChartType, CalendarHeatmapChartType, RangeChartType, TableChartType, TextStyle } from './chart-options-processor/translations/types';
8
8
  import { DataPointsEventHandler } from './props';
9
9
  import { LegendPosition } from './chart-options-processor/translations/legend-section';
10
10
  import { Coordinates } from './charts/map-charts/scattermap/types';
@@ -25,9 +25,9 @@ export declare enum SizeMeasurement {
25
25
  PERCENT = "%",
26
26
  PIXEL = "px"
27
27
  }
28
- export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
28
+ export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, CalendarHeatmapChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
29
29
  export type { DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, } from './chart-data/data-coloring/types';
30
- export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, TableChartType, AreaSubtype, AreaRangeSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, Coordinates, RangeChartType, TableColorOptions, };
30
+ export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, CalendarHeatmapChartType, TableType, TableChartType, AreaSubtype, AreaRangeSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, Coordinates, RangeChartType, TableColorOptions, TextStyle, };
31
31
  export type { MonthOfYear, DayOfWeek, DateLevel } from './query/date-formats/apply-date-format';
32
32
  export type { IndicatorRenderOptions } from './charts/indicator/indicator-render-options';
33
33
  /**
@@ -53,6 +53,42 @@ export type LineWidth = {
53
53
  /** Line width type */
54
54
  width: 'thin' | 'bold' | 'thick';
55
55
  };
56
+ /** Configuration that defines line dash type */
57
+ export type DashStyle = 'Solid' | 'ShortDash' | 'ShortDot' | 'ShortDashDot' | 'ShortDashDotDot' | 'Dot' | 'Dash' | 'LongDash' | 'DashDot' | 'LongDashDot' | 'LongDashDotDot';
58
+ /** Configuration that defines line end cap type */
59
+ export type EndCapType = 'Round' | 'Square';
60
+ /**
61
+ * Configuration options for styling lines in charts.
62
+ *
63
+ * This type is used to customize the visual appearance of lines in various chart types
64
+ * including Line charts, Area charts, and AreaRange charts.
65
+ */
66
+ export type LineOptions = {
67
+ /**
68
+ * Width of the line in pixels.
69
+ */
70
+ width?: number;
71
+ /**
72
+ * Dash pattern for the line.
73
+ *
74
+ * Defines the visual pattern of the line.
75
+ */
76
+ dashStyle?: DashStyle;
77
+ /**
78
+ * Style of the line end caps.
79
+ *
80
+ * Controls how the ends of lines are rendered:
81
+ * - `'Round'`: Rounded ends for a softer appearance
82
+ * - `'Square'`: Sharp, flat ends for a crisp appearance
83
+ */
84
+ endCap?: EndCapType;
85
+ /**
86
+ * Whether to apply a shadow effect to the line.
87
+ *
88
+ * When enabled, adds a subtle shadow behind the line for enhanced.
89
+ */
90
+ shadow?: boolean;
91
+ };
56
92
  /** Options that define markers - symbols or data points that highlight specific values. */
57
93
  export type Markers = {
58
94
  /** Boolean flag that defines if markers should be shown on the chart */
@@ -96,13 +132,159 @@ export type TotalLabels = {
96
132
  /** Rotation of total labels (in degrees) */
97
133
  rotation?: number;
98
134
  };
99
- /** Options that define legend - a key that provides information about the data series or colors used in chart. */
100
- export type Legend = {
135
+ /**
136
+ * Configuration for the legend title
137
+ */
138
+ export interface LegendTitleOptions {
139
+ /** Whether the legend title is enabled */
140
+ enabled?: boolean;
141
+ /** The text content of the legend title */
142
+ text?: string;
143
+ /** Styling for the legend title */
144
+ textStyle?: TextStyle;
145
+ }
146
+ /**
147
+ * Configuration for individual legend items
148
+ */
149
+ export interface LegendItemsOptions {
150
+ /**
151
+ * Layout direction for legend items
152
+ *
153
+ * Can be one of 'horizontal' or 'vertical' or 'proximate'.
154
+ * When 'proximate', the legend items will be placed as close as possible to the graphs they're representing, except in inverted charts or when the legend position doesn't allow it.
155
+ */
156
+ layout?: 'horizontal' | 'vertical' | 'proximate';
157
+ /** Distance between legend items in pixels */
158
+ distance?: number;
159
+ /** Top margin applied to each legend item, in pixels */
160
+ marginTop?: number;
161
+ /** Bottom margin applied to each legend item, in pixels */
162
+ marginBottom?: number;
163
+ /**
164
+ * Width of legend items, in pixels.
165
+ *
166
+ * @default undefined
167
+ */
168
+ width?: number;
169
+ /** Styling for legend items text */
170
+ textStyle?: TextStyle;
171
+ /**
172
+ * Styling for legend items on hover
173
+ *
174
+ * @internal
175
+ */
176
+ hoverTextStyle?: TextStyle;
177
+ /**
178
+ * Styling for hidden legend items
179
+ *
180
+ * @internal
181
+ */
182
+ hiddenTextStyle?: TextStyle;
183
+ }
184
+ /**
185
+ * Configuration for legend symbols
186
+ */
187
+ export interface LegendSymbolsOptions {
188
+ /** Width of the legend symbol in pixels */
189
+ width?: number;
190
+ /** Height of the legend symbol in pixels */
191
+ height?: number;
192
+ /**
193
+ * If true, the `width` of the symbol will be the same as the `height`.
194
+ *
195
+ * @default true
196
+ */
197
+ squared?: boolean;
198
+ /** Border radius applied to symbols. Set to half of the `height` value to create a circle*/
199
+ radius?: number;
200
+ /** Padding between the symbol and text of each legend item, in pixels */
201
+ padding?: number;
202
+ }
203
+ /**
204
+ * Options that define legend - a key that provides information about the data series or colors used in chart.
205
+ */
206
+ export type LegendOptions = {
101
207
  /** Boolean flag that defines if legend should be shown on the chart */
102
208
  enabled: boolean;
103
- /** Position of the legend */
209
+ /**
210
+ * Position of the legend
211
+ *
212
+ * @deprecated Please use `align`, `verticalAlign` and `items.layout` properties instead
213
+ */
104
214
  position?: LegendPosition;
215
+ /** Horizontal alignment of the legend */
216
+ align?: 'left' | 'center' | 'right';
217
+ /** Vertical alignment of the legend */
218
+ verticalAlign?: 'top' | 'middle' | 'bottom';
219
+ /**
220
+ * Maximum height of the legend in pixels.
221
+ * When the maximum height is exceeded by the number of items in the legend, scroll navigation arrows will appear
222
+ */
223
+ maxHeight?: number;
224
+ /** Margin in pixels between the legend and the axis labels or plot area */
225
+ margin?: number;
226
+ /** Padding inside the legend, in pixels */
227
+ padding?: number;
228
+ /** Background color of the legend */
229
+ backgroundColor?: string;
230
+ /** Width of the legend border in pixels */
231
+ borderWidth?: number;
232
+ /** Color of the legend border */
233
+ borderColor?: string;
234
+ /**
235
+ * Border radius in pixels applied to the legend border, if visible.
236
+ *
237
+ * @default 0
238
+ */
239
+ borderRadius?: number;
240
+ /**
241
+ * Whether to show shadow on the legend
242
+ *
243
+ * @internal
244
+ */
245
+ shadow?: boolean;
246
+ /** If `true`, the order of legend items is reversed.
247
+ *
248
+ * @default false
249
+ */
250
+ reversed?: boolean;
251
+ /**
252
+ * If `true`, legend items are displayed right-to-left.
253
+ *
254
+ * @default false
255
+ */
256
+ rtl?: boolean;
257
+ /**
258
+ * If `true`, the legend can float over the chart.
259
+ *
260
+ * @default false
261
+ */
262
+ floating?: boolean;
263
+ /** Width of the legend, specified in pixels e.g. `200` or percentage of the chart width e.g. `'30%'` */
264
+ width?: number | string;
265
+ /** Configuration for the legend title */
266
+ title?: LegendTitleOptions;
267
+ /** Configuration for legend items */
268
+ items?: LegendItemsOptions;
269
+ /** Configuration for legend symbols in pixels */
270
+ symbols?: LegendSymbolsOptions;
271
+ /**
272
+ * Horizontal offset of the legend in pixels, relative to its horizontal alignment specified via `align`.
273
+ *
274
+ * @default 0
275
+ */
276
+ xOffset?: number;
277
+ /**
278
+ * Vertical offset of the legend in pixels, relative to its vertical alignment specified via `verticalAlign`.
279
+ *
280
+ * @default 0
281
+ */
282
+ yOffset?: number;
105
283
  };
284
+ /**
285
+ * Alias for LegendOptions for backward compatibility
286
+ */
287
+ export type Legend = LegendOptions;
106
288
  /** Configuration that defines behavior of data labels on chart */
107
289
  export type Labels = {
108
290
  /** Boolean flag that defines if categories names should be shown */
@@ -198,8 +380,10 @@ export interface DataLimits {
198
380
  * @internal
199
381
  */
200
382
  export interface BaseStyleOptions extends ReservedStyleOptions {
201
- /** Configuration for legend - a key that provides information about the data series or colors used in chart */
202
- legend?: Legend;
383
+ /**
384
+ * Configuration for legend - a key that provides information about the data series or colors used in chart
385
+ * */
386
+ legend?: LegendOptions;
203
387
  /**
204
388
  * Configuration for series labels - titles/names identifying data series in a chart
205
389
  *
@@ -253,8 +437,15 @@ export interface BaseAxisStyleOptions {
253
437
  export type CartesianStyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions;
254
438
  /** Configuration options that define functional style of the various elements of LineChart */
255
439
  export interface LineStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
256
- /** Configuration that defines line width */
440
+ /**
441
+ * Configuration that defines line width
442
+ *
443
+ * @deprecated
444
+ * Use line.width instead
445
+ */
257
446
  lineWidth?: LineWidth;
447
+ /** Configuration that defines line style */
448
+ line?: LineOptions;
258
449
  /** Subtype of LineChart */
259
450
  subtype?: LineSubtype;
260
451
  /**
@@ -271,15 +462,29 @@ export interface LineStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
271
462
  }
272
463
  /** Configuration options that define functional style of the various elements of AreaRangeChart */
273
464
  export interface AreaRangeStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
274
- /** Configuration that defines line width */
465
+ /**
466
+ * Configuration that defines line width
467
+ *
468
+ * @deprecated
469
+ * Use line.width instead
470
+ */
275
471
  lineWidth?: LineWidth;
472
+ /** Configuration that defines line style */
473
+ line?: LineOptions;
276
474
  /** Subtype of AreaRangeChart */
277
475
  subtype?: AreaRangeSubtype;
278
476
  }
279
477
  /** Configuration options that define functional style of the various elements of AreaChart */
280
478
  export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
281
- /** Configuration that defines line width */
479
+ /**
480
+ * Configuration that defines line width
481
+ *
482
+ * @deprecated
483
+ * Use line.width instead
484
+ */
282
485
  lineWidth?: LineWidth;
486
+ /** Configuration that defines line style */
487
+ line?: LineOptions;
283
488
  /** Subtype of AreaChart*/
284
489
  subtype?: AreaSubtype;
285
490
  }
@@ -574,12 +779,27 @@ export interface ScattermapStyleOptions extends Pick<BaseStyleOptions, 'width' |
574
779
  subtype?: never;
575
780
  markers?: ScattermapMarkers;
576
781
  }
782
+ /**
783
+ * Configuration options that define functional style of the various elements of CalendarHeatmapChart
784
+ *
785
+ * @alpha
786
+ */
787
+ export interface CalendarHeatmapStyleOptions extends Pick<BaseStyleOptions, 'width' | 'height'> {
788
+ /**
789
+ * {@inheritDoc CalendarHeatmapViewType}
790
+ */
791
+ viewType?: CalendarHeatmapViewType;
792
+ }
793
+ /**
794
+ * View type determines how many months to display: 'month' (1), 'quarter' (3), 'half-year' (6), 'year' (12)
795
+ */
796
+ export type CalendarHeatmapViewType = 'month' | 'quarter' | 'half-year' | 'year';
577
797
  /**
578
798
  * Configuration options that define functional style of the various elements of chart.
579
799
  */
580
800
  export type ChartStyleOptions = RegularChartStyleOptions | TabularChartStyleOptions;
581
801
  /** Style options for regular chart types */
582
- export type RegularChartStyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions | PieStyleOptions | FunnelStyleOptions | PolarStyleOptions | IndicatorStyleOptions | ScatterStyleOptions | TreemapStyleOptions | SunburstStyleOptions | BoxplotStyleOptions | AreamapStyleOptions | ScattermapStyleOptions | AreaRangeStyleOptions;
802
+ export type RegularChartStyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions | PieStyleOptions | FunnelStyleOptions | PolarStyleOptions | IndicatorStyleOptions | ScatterStyleOptions | TreemapStyleOptions | SunburstStyleOptions | BoxplotStyleOptions | AreamapStyleOptions | ScattermapStyleOptions | AreaRangeStyleOptions | CalendarHeatmapStyleOptions;
583
803
  /** Mapping of each of the chart value series to colors. */
584
804
  export type ValueToColorMap = {
585
805
  [value: string]: string;
@@ -591,7 +811,7 @@ export type MultiColumnValueToColorMap = {
591
811
  /**
592
812
  * Chart type of one of the supported chart families
593
813
  */
594
- export type ChartType = CartesianChartType | CategoricalChartType | ScatterChartType | IndicatorChartType | AreamapChartType | BoxplotChartType | ScattermapChartType | RangeChartType | TableChartType;
814
+ export type ChartType = CartesianChartType | CategoricalChartType | ScatterChartType | IndicatorChartType | AreamapChartType | BoxplotChartType | ScattermapChartType | CalendarHeatmapChartType | RangeChartType | TableChartType;
595
815
  /** Chart type of the regular charts */
596
816
  export type RegularChartType = Exclude<ChartType, TableChartType>;
597
817
  /**
@@ -888,6 +1108,8 @@ export interface TypographyThemeSettings {
888
1108
  primaryTextColor?: string;
889
1109
  /** Secondary text color */
890
1110
  secondaryTextColor?: string;
1111
+ /** Hyperlink color */
1112
+ hyperlinkColor?: string;
891
1113
  /** Settings for font loading */
892
1114
  fontsLoader?: FontsLoaderSettings;
893
1115
  }
@@ -1367,17 +1589,17 @@ export type DrilldownSelection = {
1367
1589
  /**
1368
1590
  * Data points in a chart. Array of data points of the same data point type.
1369
1591
  */
1370
- export type ChartDataPoints = DataPoint[] | ScatterDataPoint[] | BoxplotDataPoint[] | AreamapDataPoint[] | ScattermapDataPoint[];
1592
+ export type ChartDataPoints = DataPoint[] | ScatterDataPoint[] | BoxplotDataPoint[] | AreamapDataPoint[] | ScattermapDataPoint[] | CalendarHeatmapDataPoint[];
1371
1593
  /**
1372
1594
  * Abstract data point in a chart - union of all types of data points.
1373
1595
  */
1374
- export type ChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint | AreamapDataPoint | ScattermapDataPoint;
1596
+ export type ChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint | AreamapDataPoint | ScattermapDataPoint | CalendarHeatmapDataPoint;
1375
1597
  /**
1376
1598
  * Abstract data point in a chart that based on Highcharts.
1377
1599
  *
1378
1600
  * @internal
1379
1601
  */
1380
- export type HighchartsBasedChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint;
1602
+ export type HighchartsBasedChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint | CalendarHeatmapDataPoint;
1381
1603
  /**
1382
1604
  * Abstract event handler for data point click event
1383
1605
  *
@@ -1490,6 +1712,22 @@ export type IndicatorDataPoint = {
1490
1712
  max?: DataPointEntry;
1491
1713
  };
1492
1714
  };
1715
+ /**
1716
+ * Data point in a CalendarHeatmap chart.
1717
+ *
1718
+ * @alpha
1719
+ */
1720
+ export type CalendarHeatmapDataPoint = {
1721
+ /**
1722
+ * A collection of data point entries that represents values for all related `dataOptions`.
1723
+ *
1724
+ * @internal
1725
+ */
1726
+ entries?: {
1727
+ date: DataPointEntry;
1728
+ value?: DataPointEntry;
1729
+ };
1730
+ };
1493
1731
  /**
1494
1732
  * Data point that represents the entire Text widget data.
1495
1733
  *
@@ -1,3 +1,22 @@
1
+ import { RenderTitleHandler, RenderToolbarHandler, TextWidgetRenderToolbarHandler } from '../types';
1
2
  type AnyFunction = (...args: any[]) => any;
2
3
  export declare function combineHandlers<Handler extends AnyFunction>(handlers: (Handler | undefined)[], chainHandlers?: boolean): Handler;
4
+ /**
5
+ * Compose multiple RenderToolbarHandler functions into one.
6
+ * Each handler gets a chance to modify the toolbar.
7
+ * If it returns `null`, the previous toolbar is passed to the next handler.
8
+ */
9
+ export declare function composeToolbarHandlers(...handlers: (RenderToolbarHandler | undefined)[]): RenderToolbarHandler;
10
+ /**
11
+ * Compose multiple TextWidgetRenderToolbarHandler functions into one.
12
+ * Each handler gets a chance to modify the toolbar.
13
+ * If it returns `null`, the previous toolbar is passed to the next handler.
14
+ */
15
+ export declare function composeTextWidgetToolbarHandlers(...handlers: (TextWidgetRenderToolbarHandler | undefined)[]): TextWidgetRenderToolbarHandler;
16
+ /**
17
+ * Compose multiple RenderTitleHandler functions into one.
18
+ * Each handler gets a chance to modify the title.
19
+ * If it returns `null`, the previous tile is passed to the next handler.
20
+ */
21
+ export declare function composeTitleHandlers(...handlers: (RenderTitleHandler | undefined)[]): RenderTitleHandler;
3
22
  export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Context-based transformer type for pure functional transformations
3
+ */
4
+ export type ContextfulTransformer<T, C = void> = (ctx: C) => (input: Readonly<T>) => T;
5
+ /**
6
+ * Contextless transformer type for pure functional transformations
7
+ */
8
+ export type Transformer<T> = (input: Readonly<T>) => T;
@@ -4781,7 +4781,7 @@ export declare function getDashboardFilters(dashboardFilters: Array<FilterDto |
4781
4781
  column: string;
4782
4782
  datasource?: import("@sisense/sdk-data").JaqlDataSource | undefined;
4783
4783
  title: string;
4784
- level?: "years" | "quarters" | "months" | "weeks" | "minutes" | "days" | undefined;
4784
+ level?: "years" | "quarters" | "months" | "weeks" | "days" | "minutes" | undefined;
4785
4785
  sort?: "desc" | "asc" | undefined;
4786
4786
  in?: {
4787
4787
  selected?: {
@@ -3,4 +3,13 @@ import { ValueToColorMap, MultiColumnValueToColorMap, Color } from '../types.js'
3
3
  import { PanelColorFormat, PanelItem, PanelMembersFormat } from './types.js';
4
4
  export declare const createValueColorOptions: (format?: PanelColorFormat, customPaletteColors?: Color[]) => DataColorOptions | undefined;
5
5
  export declare const createValueToColorMap: (membersFormat: PanelMembersFormat) => ValueToColorMap;
6
+ /**
7
+ * Creates a PanelColorFormat from DataColorOptions
8
+ *
9
+ * TODO: basic use cases done for the studio assistant, need more testing with real Fusion widgets
10
+ *
11
+ * @param options The DataColorOptions to convert
12
+ * @returns The corresponding PanelColorFormat
13
+ */
14
+ export declare const createPanelColorFormat: (options: DataColorOptions | undefined, paletteColors?: Color[]) => PanelColorFormat | undefined;
6
15
  export declare const createValueToColorMultiColumnsMap: (items: PanelItem[]) => MultiColumnValueToColorMap;
@@ -0,0 +1,10 @@
1
+ import { StyledMeasureColumn } from '../types.js';
2
+ import { StatisticalModels } from './types.js';
3
+ /** @internal */
4
+ export declare function applyStatisticalModels(dataOption: StyledMeasureColumn, statisticalModels?: StatisticalModels): StyledMeasureColumn;
5
+ /**
6
+ * Create statistical models from styled measure column
7
+ *
8
+ * @internal
9
+ */
10
+ export declare function createStatisticalModels(column: StyledMeasureColumn): StatisticalModels | undefined;
@@ -2,20 +2,6 @@ import { JaqlDataSource } from '@sisense/sdk-data';
2
2
  import { StyledMeasureColumn, StyledColumn, Color } from '../types.js';
3
3
  import { Panel, PanelItem, FusionWidgetType, WidgetStyle, BoxplotWidgetStyle } from './types.js';
4
4
  import { WidgetDataOptions } from '../models/index.js';
5
- /** @internal */
6
- export declare function applyStatisticalModels(dataOption: StyledMeasureColumn, statisticalModels?: {
7
- forecast?: {
8
- isEnabled: boolean;
9
- isViewerDisabled: boolean;
10
- confidence: number;
11
- forecastPeriod: number;
12
- };
13
- trend?: {
14
- isEnabled: boolean;
15
- isViewerDisabled: boolean;
16
- trendType: string;
17
- };
18
- }): StyledMeasureColumn;
19
5
  export declare function createDataColumn(item: PanelItem, customPaletteColors?: Color[]): StyledColumn | StyledMeasureColumn;
20
6
  /** @internal */
21
7
  export declare function createPanelItem(column: StyledColumn | StyledMeasureColumn): PanelItem;
@@ -184,25 +184,26 @@ export type StatisticalModels = {
184
184
  };
185
185
  forecastPeriod: number;
186
186
  confidence: number;
187
- modelType: string;
187
+ modelType: 'en' | 'aa' | 'hw' | 'fb';
188
188
  boundaries: {
189
189
  upper: {
190
190
  isEnabled: boolean;
191
- value: null;
191
+ value: number | null;
192
192
  };
193
193
  lower: {
194
194
  isEnabled: boolean;
195
- value: null;
195
+ value: number | null;
196
196
  };
197
197
  isInt: {
198
198
  isEnabled: boolean;
199
199
  };
200
200
  };
201
+ isAccessible: boolean;
201
202
  };
202
203
  trend?: {
203
204
  isEnabled: boolean;
204
205
  isViewerDisabled: boolean;
205
- trendType: string;
206
+ trendType: 'linear' | 'logarithmic' | 'smooth' | 'local';
206
207
  ignoreAnomalies: boolean;
207
208
  trendOnForecast: boolean;
208
209
  compare: {
@@ -261,6 +262,7 @@ export type PanelColorFormatSingle = {
261
262
  type: 'color';
262
263
  color?: string;
263
264
  colorIndex?: number;
265
+ isHandPickedColor?: boolean;
264
266
  };
265
267
  export type PanelColorFormatRange = {
266
268
  type: 'range';
@@ -518,6 +520,9 @@ export type JtdDrillTarget = {
518
520
  caption: string;
519
521
  id: string;
520
522
  };
523
+ export type JtdPivotDrillTarget = JtdDrillTarget & {
524
+ pivotDimensions: string[];
525
+ };
521
526
  export type JtdConfigDto = {
522
527
  drilledDashboardPrefix: string;
523
528
  drilledDashboardsFolderPrefix: string;
@@ -534,12 +539,7 @@ export type JtdConfigDto = {
534
539
  drillToDashboardNavigateTypeCharts: number;
535
540
  drillToDashboardNavigateTypeOthers: number;
536
541
  drilledDashboardDisplayType: number;
537
- dashboardIds: Array<{
538
- oid: string;
539
- caption: string;
540
- id: string;
541
- dashboardTitle: string;
542
- }>;
542
+ dashboardIds: Array<JtdDrillTarget | JtdPivotDrillTarget>;
543
543
  modalWindowResize: boolean;
544
544
  modalWindowMeasurement?: SizeMeasurement;
545
545
  modalWindowWidth?: number;
@@ -0,0 +1,80 @@
1
+ import { f as i, g as l, h as n, i as o, D as d, k as u, M as s } from "./execute-query-CGLL9vXX.js";
2
+ class m extends d {
3
+ constructor(e, t) {
4
+ var r;
5
+ super((r = e.jaql.title) !== null && r !== void 0 ? r : "", t), this.__serializable = "JaqlElement", this.expression = e.jaql.dim || e.jaql.formula, this.metadataItem = e, e.jaql.agg ? this.aggregation = e.jaql.agg : delete this.aggregation, e.jaql.formula ? this.formula = e.jaql.formula : delete this.formula, e.jaql.sort ? this.sortType = u(e.jaql.sort) : delete this.sortType, this.skipValidation = !0;
6
+ }
7
+ get id() {
8
+ return this.expression;
9
+ }
10
+ jaql(e) {
11
+ return e === !0 ? this.metadataItem.jaql : this.metadataItem;
12
+ }
13
+ /**
14
+ * Gets a serializable representation of the element
15
+ */
16
+ serialize() {
17
+ const e = super.serialize();
18
+ return e.metadataItem = this.metadataItem, e.type = this.type, e;
19
+ }
20
+ }
21
+ const c = {
22
+ text: s.TextAttribute,
23
+ numeric: s.NumericAttribute,
24
+ datetime: s.DateLevel
25
+ }, h = (a) => a && a.__serializable === "JaqlElement";
26
+ function p(a) {
27
+ var e;
28
+ return new m(a, (e = c[a.jaql.datatype]) !== null && e !== void 0 ? e : "numeric");
29
+ }
30
+ function y(a) {
31
+ const { jaql: e } = a;
32
+ if (e.formula)
33
+ return i(e);
34
+ const t = l(e);
35
+ return "agg" in e && e.dim && e.datatype ? n({
36
+ expression: e.dim,
37
+ dataType: e.datatype,
38
+ agg: e.agg || "",
39
+ granularity: t,
40
+ format: void 0,
41
+ sort: e.sort,
42
+ title: e.title,
43
+ dataSource: e.datasource
44
+ }) : e.dim && e.datatype ? o({
45
+ expression: e.dim,
46
+ dataType: e.datatype,
47
+ granularity: t,
48
+ sort: e.sort,
49
+ title: e.title,
50
+ panel: a.panel,
51
+ dataSource: e.datasource
52
+ }) : p(a);
53
+ }
54
+ const q = {
55
+ jaql: {
56
+ datasource: {
57
+ title: "",
58
+ type: "elasticube"
59
+ },
60
+ metadata: []
61
+ },
62
+ queryTitle: "",
63
+ chartRecommendations: {}
64
+ }, f = {
65
+ model: "",
66
+ metadata: [],
67
+ chart: {},
68
+ queryTitle: ""
69
+ }, E = (a) => "widgetProps" in a, j = (a) => "dashboardOid" in a && "widgetOid" in a, b = (a) => "dashboardProps" in a, T = (a) => "dashboardOid" in a;
70
+ export {
71
+ f as E,
72
+ m as J,
73
+ T as a,
74
+ q as b,
75
+ y as c,
76
+ E as d,
77
+ b as e,
78
+ h as f,
79
+ j as i
80
+ };
@@ -0,0 +1 @@
1
+ "use strict";const a=require("./execute-query-CABqVn7C.cjs");class s extends a.DimensionalElement{constructor(e,r){var i;super((i=e.jaql.title)!==null&&i!==void 0?i:"",r),this.__serializable="JaqlElement",this.expression=e.jaql.dim||e.jaql.formula,this.metadataItem=e,e.jaql.agg?this.aggregation=e.jaql.agg:delete this.aggregation,e.jaql.formula?this.formula=e.jaql.formula:delete this.formula,e.jaql.sort?this.sortType=a.getSortType(e.jaql.sort):delete this.sortType,this.skipValidation=!0}get id(){return this.expression}jaql(e){return e===!0?this.metadataItem.jaql:this.metadataItem}serialize(){const e=super.serialize();return e.metadataItem=this.metadataItem,e.type=this.type,e}}const l={text:a.MetadataTypes.TextAttribute,numeric:a.MetadataTypes.NumericAttribute,datetime:a.MetadataTypes.DateLevel},d=t=>t&&t.__serializable==="JaqlElement";function n(t){var e;return new s(t,(e=l[t.jaql.datatype])!==null&&e!==void 0?e:"numeric")}function o(t){const{jaql:e}=t;if(e.formula)return a.createCalculatedMeasureHelper(e);const r=a.getGranularityFromJaql(e);return"agg"in e&&e.dim&&e.datatype?a.createMeasureHelper({expression:e.dim,dataType:e.datatype,agg:e.agg||"",granularity:r,format:void 0,sort:e.sort,title:e.title,dataSource:e.datasource}):e.dim&&e.datatype?a.createAttributeHelper({expression:e.dim,dataType:e.datatype,granularity:r,sort:e.sort,title:e.title,panel:t.panel,dataSource:e.datasource}):n(t)}const u={jaql:{datasource:{title:"",type:"elasticube"},metadata:[]},queryTitle:"",chartRecommendations:{}},m={model:"",metadata:[],chart:{},queryTitle:""},c=t=>"widgetProps"in t,p=t=>"dashboardOid"in t&&"widgetOid"in t,g=t=>"dashboardProps"in t,y=t=>"dashboardOid"in t;exports.EMPTY_EXPANDED_QUERY_MODEL=u;exports.EMPTY_SIMPLE_QUERY_MODEL=m;exports.JaqlElement=s;exports.createDimensionalElementFromMetadataItem=o;exports.isByIdDashboardCodeParams=y;exports.isByIdWidgetCodeParams=p;exports.isClientSideDashboardCodeParams=g;exports.isClientSideWidgetCodeParams=c;exports.isJaqlElement=d;