@sisense/sdk-ui 2.10.0 → 2.11.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 (102) hide show
  1. package/dist/ai.cjs +15 -15
  2. package/dist/ai.js +408 -401
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +17 -17
  5. package/dist/analytics-composer.cjs +1 -1
  6. package/dist/analytics-composer.js +6 -6
  7. package/dist/{derive-chart-family-B1on_xkS.cjs → derive-chart-family-BauaWEEc.cjs} +49 -49
  8. package/dist/{derive-chart-family-BllGhqsW.js → derive-chart-family-BhAFg8OE.js} +10056 -9990
  9. package/dist/{dimensions-D-Z9sitz.js → dimensions-Bk74slQe.js} +1 -1
  10. package/dist/{dimensions-BYqdB-Q8.cjs → dimensions-DCxjxuyH.cjs} +1 -1
  11. package/dist/{execute-query-CGLL9vXX.js → execute-query-CxMSGp-J.js} +41 -40
  12. package/dist/{execute-query-CABqVn7C.cjs → execute-query-uQ2s1ZNz.cjs} +1 -1
  13. package/dist/index.cjs +22 -22
  14. package/dist/index.js +11201 -10704
  15. package/dist/index.umd.js +312 -311
  16. package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +7 -1
  17. package/dist/packages/sdk-ui/src/app/client-application.d.ts +2 -2
  18. package/dist/packages/sdk-ui/src/calendar-heatmap-chart.d.ts +17 -3
  19. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +67 -36
  20. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/data-options.d.ts +2 -0
  21. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +1 -0
  22. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/extras-options.d.ts +1 -2
  23. 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 +14 -7
  24. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +9 -1
  25. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap.d.ts +2 -4
  26. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/calendar-pagination.d.ts +2 -1
  27. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +6 -17
  28. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +3 -1
  29. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/calendar-utils.d.ts +33 -0
  30. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/index.d.ts +2 -0
  31. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/with-calendar-heatmap-data-coloring.d.ts +17 -0
  32. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/alerts/index.d.ts +5 -0
  33. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data/index.d.ts +21 -0
  34. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data-options/index.d.ts +32 -0
  35. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/design-options/index.d.ts +17 -0
  36. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/funnel-chart-builder.d.ts +2 -0
  37. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
  38. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/types.d.ts +12 -0
  39. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +2 -2
  40. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/alerts/index.d.ts +1 -0
  41. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data/index.d.ts +7 -0
  42. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data-options/index.d.ts +11 -0
  43. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/design-options/index.d.ts +6 -0
  44. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
  45. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/sunburst-chart-builder.d.ts +2 -0
  46. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/types.d.ts +12 -0
  47. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/alerts/index.d.ts +1 -0
  48. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data/index.d.ts +7 -0
  49. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data-options/index.d.ts +11 -0
  50. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/design-options/index.d.ts +6 -0
  51. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
  52. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/treemap-chart-builder.d.ts +2 -0
  53. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/types.d.ts +12 -0
  54. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +1 -1
  55. package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +9 -8
  56. package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +3 -3
  57. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +19 -0
  58. package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +3 -3
  59. package/dist/packages/sdk-ui/src/chart-options-processor/series-labels.d.ts +19 -0
  60. package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-plot-options.d.ts +2 -2
  61. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +26 -4
  62. package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts +2 -2
  63. package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-series.d.ts +8 -0
  64. package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-plot-options.d.ts +2 -2
  65. package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-series.d.ts +2 -1
  66. package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts +78 -0
  67. package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +6 -5
  68. package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +2 -2
  69. package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +14 -11
  70. package/dist/packages/sdk-ui/src/common/components/modal/modal-context.d.ts +1 -2
  71. package/dist/packages/sdk-ui/src/dashboard/components/jtd-dashboard.d.ts +5 -4
  72. package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +109 -0
  73. package/dist/packages/sdk-ui/src/dashboard/hooks/index.d.ts +7 -0
  74. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/index.d.ts +20 -5
  75. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-config-transformers.d.ts +85 -0
  76. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-filters.d.ts +3 -2
  77. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-formatters.d.ts +64 -2
  78. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-handlers.d.ts +4 -5
  79. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-menu.d.ts +1 -0
  80. package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-types.d.ts +260 -5
  81. package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +7 -0
  82. package/dist/packages/sdk-ui/src/dashboard/hooks/use-edit-mode-toolbar.d.ts +3 -0
  83. package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd-widget.d.ts +68 -0
  84. package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd.d.ts +33 -7
  85. package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +13 -0
  86. package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -0
  87. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +1 -3
  88. package/dist/packages/sdk-ui/src/index.d.ts +9 -1
  89. package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +25 -2
  90. package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +8 -4
  91. package/dist/packages/sdk-ui/src/props.d.ts +0 -6
  92. package/dist/packages/sdk-ui/src/types.d.ts +195 -21
  93. package/dist/packages/sdk-ui/src/utils/create-level-attribute.d.ts +11 -0
  94. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options.d.ts +9 -0
  95. package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +45 -72
  96. package/dist/{types-Ds0KtTJF.cjs → types-DhvOgfXa.cjs} +1 -1
  97. package/dist/{types-BRtWk8uC.js → types-Dxieyr4A.js} +1 -1
  98. package/dist/{use-common-filters-D8tEa9zb.js → use-common-filters-DJyYvdev.js} +17387 -16944
  99. package/dist/{use-common-filters-hw1WKPCY.cjs → use-common-filters-Qj9249s0.cjs} +227 -226
  100. package/dist/{widget-composer-DL0xPtlC.js → widget-composer-azihIMsw.js} +3 -3
  101. package/dist/{widget-composer-B7zeAa_D.cjs → widget-composer-omIEhWNL.cjs} +1 -1
  102. package/package.json +11 -16
@@ -14,17 +14,11 @@ import { CSSProperties, ReactNode } from 'react';
14
14
  import { GeoDataElement, RawGeoDataElement } from './chart/restructured-charts/areamap-chart/types';
15
15
  import { TabCornerRadius, TabInterval, TabSize } from './widgets/tabber-widget';
16
16
  import { SoftUnion } from './utils/utility-types';
17
+ import { CalendarDayOfWeek } from './chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils';
17
18
  export type { SortDirection, PivotRowsSort } from '@sisense/sdk-data';
18
19
  export type { AppConfig } from './app/client-application';
19
20
  export type { DateConfig } from './query/date-formats';
20
- /**
21
- * @internal
22
- * Enum for size measurement units
23
- */
24
- export declare enum SizeMeasurement {
25
- PERCENT = "%",
26
- PIXEL = "px"
27
- }
21
+ export type { CalendarDayOfWeek } from './chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils';
28
22
  export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, CalendarHeatmapChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
29
23
  export type { DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, } from './chart-data/data-coloring/types';
30
24
  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, };
@@ -106,11 +100,23 @@ export type X2Title = {
106
100
  enabled: boolean;
107
101
  text?: string;
108
102
  };
103
+ export type SeriesLabelsTextStyle = Omit<TextStyle, 'pointerEvents' | 'textOverflow' | 'color'> & {
104
+ /**
105
+ * Color of the labels text
106
+ * The default color setting is "contrast", which applies the maximum contrast between the background and the text
107
+ *
108
+ * @default 'contrast'
109
+ */
110
+ color?: 'contrast' | string;
111
+ };
109
112
  /** Options that define series labels - titles/names identifying data series in a chart. */
110
113
  export type SeriesLabels = {
111
114
  /** Boolean flag that defines if series labels should be shown on the chart */
112
115
  enabled: boolean;
113
- /** Rotation of series labels (in degrees) */
116
+ /**
117
+ * Rotation of series labels (in degrees)
118
+ * Note that due to a more complex structure, backgrounds, borders and padding will be lost on a rotated data label
119
+ * */
114
120
  rotation?: number;
115
121
  /**
116
122
  * Boolean flag that defines if value should be shown in series labels
@@ -122,6 +128,70 @@ export type SeriesLabels = {
122
128
  * (only applicable for subtypes that support percentage, like "stacked100")
123
129
  */
124
130
  showPercentage?: boolean;
131
+ /**
132
+ * Text to be shown before the series labels
133
+ */
134
+ prefix?: string;
135
+ /**
136
+ * Text to be shown after the series labels
137
+ */
138
+ suffix?: string;
139
+ /**
140
+ * If `true`, series labels appear inside bars/columns instead of at the datapoints. Not applicable for some chart types e.g. line, area
141
+ */
142
+ alignInside?: boolean;
143
+ /**
144
+ * The horizontal alignment of the data label compared to the point
145
+ */
146
+ align?: 'left' | 'center' | 'right';
147
+ /**
148
+ * The vertical alignment of the data label
149
+ */
150
+ verticalAlign?: 'top' | 'middle' | 'bottom';
151
+ /**
152
+ * Styling for labels text
153
+ */
154
+ textStyle?: SeriesLabelsTextStyle;
155
+ /**
156
+ * Background color of the labels. `auto` uses the same color as the data point
157
+ */
158
+ backgroundColor?: 'auto' | string;
159
+ /**
160
+ * Color of the labels border
161
+ */
162
+ borderColor?: string;
163
+ /**
164
+ * Border radius in pixels applied to the labels border, if visible
165
+ *
166
+ * @default 0
167
+ */
168
+ borderRadius?: number;
169
+ /**
170
+ * Border width of the series labels, in pixels
171
+ */
172
+ borderWidth?: number;
173
+ /**
174
+ * Padding of the series labels, in pixels
175
+ */
176
+ padding?: number;
177
+ /**
178
+ * Horizontal offset of the labels in pixels, relative to its horizontal alignment specified via `align`
179
+ *
180
+ * @default 0
181
+ */
182
+ xOffset?: number;
183
+ /**
184
+ * Vertical offset of the labels in pixels, relative to its vertical alignment specified via `verticalAlign`
185
+ *
186
+ * @default 0
187
+ */
188
+ yOffset?: number;
189
+ /**
190
+ * The animation delay time in milliseconds. Set to 0 to render the data labels immediately
191
+ *
192
+ * @internal
193
+ */
194
+ delay?: number;
125
195
  };
126
196
  /**
127
197
  * @internal
@@ -283,6 +353,8 @@ export type LegendOptions = {
283
353
  };
284
354
  /**
285
355
  * Alias for LegendOptions for backward compatibility
356
+ *
357
+ * @deprecated Please use {@link LegendOptions} instead
286
358
  */
287
359
  export type Legend = LegendOptions;
288
360
  /** Configuration that defines behavior of data labels on chart */
@@ -386,8 +458,6 @@ export interface BaseStyleOptions extends ReservedStyleOptions {
386
458
  legend?: LegendOptions;
387
459
  /**
388
460
  * Configuration for series labels - titles/names identifying data series in a chart
389
- *
390
- * @internal
391
461
  */
392
462
  seriesLabels?: SeriesLabels;
393
463
  /**
@@ -492,9 +562,34 @@ export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
492
562
  export interface StackableStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
493
563
  /** Subtype of stackable chart */
494
564
  subtype?: StackableSubtype;
565
+ /**
566
+ * Configuration for series styling
567
+ */
568
+ series?: {
569
+ /**
570
+ * Padding between each column or bar, in x axis units.
571
+ *
572
+ * @default 0.01
573
+ */
574
+ padding?: number;
575
+ /**
576
+ * Padding between each value groups, in x axis units.
577
+ *
578
+ * @default 0.1
579
+ */
580
+ groupPadding?: number;
581
+ /**
582
+ * The corner radius of the border surrounding each column or bar.
583
+ * A number signifies pixels.
584
+ * A percentage string, like for example 50%, signifies a relative size.
585
+ *
586
+ * @default 0
587
+ */
588
+ borderRadius?: number | string;
589
+ };
495
590
  }
496
591
  /** Configuration options that define functional style of the various elements of Pie chart */
497
- export interface PieStyleOptions extends BaseStyleOptions {
592
+ export interface PieStyleOptions extends Omit<BaseStyleOptions, 'seriesLabels'> {
498
593
  /**
499
594
  * Configuration that defines the ability of the Pie chart to collapse (convolve) and
500
595
  * hide part of the data under the single category "Others".
@@ -506,7 +601,7 @@ export interface PieStyleOptions extends BaseStyleOptions {
506
601
  subtype?: PieSubtype;
507
602
  }
508
603
  /** Configuration options that define functional style of the various elements of FunnelChart */
509
- export interface FunnelStyleOptions extends BaseStyleOptions {
604
+ export interface FunnelStyleOptions extends Omit<BaseStyleOptions, 'seriesLabels'> {
510
605
  /** Visual size of the lowest slice (degree of funnel narrowing from highest to lowest slices)*/
511
606
  funnelSize?: FunnelSize;
512
607
  /** Visual type of the lowest slice of FunnelChart */
@@ -705,13 +800,13 @@ export interface GaugeIndicatorStyleOptions extends BaseIndicatorStyleOptions {
705
800
  tickerBarHeight?: number;
706
801
  }
707
802
  /** Configuration options that define functional style of the various elements of ScatterChart */
708
- export interface ScatterStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
803
+ export interface ScatterStyleOptions extends Omit<BaseStyleOptions, 'seriesLabels'>, BaseAxisStyleOptions {
709
804
  /** Subtype of ScatterChart*/
710
805
  subtype?: never;
711
806
  markerSize?: ScatterMarkerSize;
712
807
  }
713
808
  /** Configuration options that define functional style of the various elements of TreemapChart */
714
- export interface TreemapStyleOptions extends BaseStyleOptions {
809
+ export interface TreemapStyleOptions extends Omit<BaseStyleOptions, 'seriesLabels'> {
715
810
  /** Labels options object */
716
811
  labels?: {
717
812
  /** Array with single label options objects (order of items relative to dataOptions.category) */
@@ -727,7 +822,7 @@ export interface TreemapStyleOptions extends BaseStyleOptions {
727
822
  };
728
823
  }
729
824
  /** Configuration options that define functional style of the various elements of the SunburstChart component */
730
- export interface SunburstStyleOptions extends BaseStyleOptions {
825
+ export interface SunburstStyleOptions extends Omit<BaseStyleOptions, 'seriesLabels'> {
731
826
  /** Labels options object */
732
827
  labels?: {
733
828
  /** Array with single label options objects (order of items relative to dataOptions.category) */
@@ -780,15 +875,93 @@ export interface ScattermapStyleOptions extends Pick<BaseStyleOptions, 'width' |
780
875
  markers?: ScattermapMarkers;
781
876
  }
782
877
  /**
783
- * Configuration options that define functional style of the various elements of CalendarHeatmapChart
784
- *
785
- * @alpha
878
+ * Configuration for day numbers (1-31) labels in calendar-heatmap cells
879
+ */
880
+ export type CalendarHeatmapCellLabels = {
881
+ /**
882
+ * Boolean flag that defines if calendar day numbers should be shown in cells
883
+ *
884
+ * @default true
885
+ */
886
+ enabled?: boolean;
887
+ /** Style configuration for calendar day numbers in cells */
888
+ style?: Omit<TextStyle, 'color'> & {
889
+ /**
890
+ * Color of the labels text
891
+ *
892
+ * The "contrast" color applies the maximum contrast between the background and the text
893
+ */
894
+ color?: string | 'contrast';
895
+ };
896
+ };
897
+ /**
898
+ * Configuration options that define functional style of the various elements of calendar-heatmap chart
786
899
  */
787
900
  export interface CalendarHeatmapStyleOptions extends Pick<BaseStyleOptions, 'width' | 'height'> {
788
901
  /**
789
902
  * {@inheritDoc CalendarHeatmapViewType}
790
903
  */
791
904
  viewType?: CalendarHeatmapViewType;
905
+ /**
906
+ * Determines which day of the week to start the calendar with
907
+ * @default 'sunday'
908
+ */
909
+ startOfWeek?: CalendarDayOfWeek;
910
+ /**
911
+ * Configuration for day numbers (1-31) in calendar cells
912
+ */
913
+ cellLabels?: CalendarHeatmapCellLabels;
914
+ /**
915
+ * Configuration for weekday names in the header
916
+ */
917
+ dayLabels?: {
918
+ /**
919
+ * Boolean flag that defines if calendar weekday names should be shown
920
+ *
921
+ * @default true
922
+ */
923
+ enabled?: boolean;
924
+ /** Style configuration for calendar weekday names */
925
+ style?: TextStyle;
926
+ };
927
+ /**
928
+ * Configuration for month names in multi-month view types
929
+ */
930
+ monthLabels?: {
931
+ /**
932
+ * Boolean flag that defines if month names should be shown
933
+ *
934
+ * @default true
935
+ */
936
+ enabled?: boolean;
937
+ /** Style configuration for month names */
938
+ style?: TextStyle;
939
+ };
940
+ /**
941
+ * Configuration for weekend days
942
+ */
943
+ weekends?: {
944
+ /**
945
+ * Boolean flag that enables/disables weekend highlighting
946
+ *
947
+ * @default false
948
+ */
949
+ enabled?: boolean;
950
+ /** Weekend days - defaults to ['saturday', 'sunday'] */
951
+ days?: CalendarDayOfWeek[];
952
+ /**
953
+ * Calendar cell color for weekend days
954
+ *
955
+ * @default '#e6e6e6'
956
+ */
957
+ cellColor?: string;
958
+ /**
959
+ * Whether to hide values in tooltip for weekend days
960
+ *
961
+ * @default false
962
+ */
963
+ hideValues?: boolean;
964
+ };
792
965
  }
793
966
  /**
794
967
  * View type determines how many months to display: 'month' (1), 'quarter' (3), 'half-year' (6), 'year' (12)
@@ -1714,8 +1887,6 @@ export type IndicatorDataPoint = {
1714
1887
  };
1715
1888
  /**
1716
1889
  * Data point in a CalendarHeatmap chart.
1717
- *
1718
- * @alpha
1719
1890
  */
1720
1891
  export type CalendarHeatmapDataPoint = {
1721
1892
  /**
@@ -1857,6 +2028,9 @@ export type HighchartsPoint = {
1857
2028
  level?: number;
1858
2029
  levelsCount?: number;
1859
2030
  };
2031
+ date?: number;
2032
+ dateString?: string;
2033
+ value?: number;
1860
2034
  q1?: number;
1861
2035
  median?: number;
1862
2036
  q3?: number;
@@ -0,0 +1,11 @@
1
+ import { TFunction } from '@sisense/sdk-common';
2
+ import { DimensionalLevelAttribute } from '@sisense/sdk-data';
3
+ /**
4
+ * Creates a level attribute from a base level attribute and a granularity
5
+ *
6
+ * @param baseLevelAttribute - The base level attribute
7
+ * @param granularity - The granularity
8
+ * @param t - The translation function
9
+ * @returns The level attribute
10
+ */
11
+ export declare function createLevelAttribute(baseLevelAttribute: DimensionalLevelAttribute, granularity: string, t?: TFunction): DimensionalLevelAttribute;
@@ -1,8 +1,17 @@
1
1
  import { ChartStyleOptions, TableStyleOptions, NumericBarIndicatorStyleOptions, NumericSimpleIndicatorStyleOptions, GaugeIndicatorStyleOptions, PivotTableStyleOptions, SpaceSizes, RadiusSizes, ShadowsTypes, AlignmentTypes, WidgetStyleOptions, TextWidgetStyleOptions } from '../types';
2
2
  import { WidgetSubtype, FusionWidgetType, TableWidgetStyle, IndicatorWidgetStyle, PivotWidgetStyle, WidgetDesign, WidgetDto } from './types';
3
+ /**
4
+ * Helper function to extract table chart style options from WidgetDto
5
+ */
3
6
  export declare function extractTableChartStyleOptions(widgetStyle: TableWidgetStyle): TableStyleOptions;
4
7
  export declare const getIndicatorTypeSpecificOptions: (widgetSubtype: WidgetSubtype, widgetStyle: IndicatorWidgetStyle) => NumericSimpleIndicatorStyleOptions | NumericBarIndicatorStyleOptions | GaugeIndicatorStyleOptions;
8
+ /**
9
+ * Helper function to extract pivot table chart style options from WidgetDto
10
+ */
5
11
  export declare function extractPivotTableStyleOptions(widgetStyle: PivotWidgetStyle): PivotTableStyleOptions;
12
+ /**
13
+ * Helper function to extract style options from WidgetDto
14
+ */
6
15
  export declare function extractStyleOptions<WType extends FusionWidgetType>(widgetType: WType, widget: WidgetDto): ChartStyleOptions | TableStyleOptions | TextWidgetStyleOptions;
7
16
  export declare const getFlattenWidgetDesign: (widgetDesign: WidgetDesign) => {
8
17
  backgroundColor: string;
@@ -2,7 +2,7 @@ import { WidgetContainerStyleOptions } from '../types';
2
2
  import { LEGACY_DESIGN_TYPES } from '../themes/legacy-design-settings';
3
3
  import { BaseJaql, FormulaContext, FormulaJaql, Jaql, JaqlDataSource, JaqlSortDirection } from '@sisense/sdk-data';
4
4
  import { HierarchyId } from '../models/hierarchy';
5
- import { SizeMeasurement } from '../types';
5
+ import { JtdConfigDto } from '../dashboard/hooks/jtd/jtd-types';
6
6
  /**
7
7
  * The type of a widget on a dashboard that is a variant of Cartesian widget.
8
8
  */
@@ -22,7 +22,7 @@ export type TextWidgetType = 'richtexteditor';
22
22
  /**
23
23
  * The type of a widget on a dashboard.
24
24
  */
25
- export type FusionWidgetType = CartesianWidgetType | CategoricalWidgetType | 'chart/scatter' | 'indicator' | TabularWidgetType | 'chart/boxplot' | 'map/scatter' | 'map/area' | TextWidgetType | 'custom';
25
+ export type FusionWidgetType = CartesianWidgetType | CategoricalWidgetType | 'chart/scatter' | 'indicator' | TabularWidgetType | 'chart/boxplot' | 'map/scatter' | 'map/area' | 'heatmap' | TextWidgetType | 'custom';
26
26
  export type WidgetSubtype = 'area/basic' | 'area/stacked' | 'area/stacked100' | 'area/spline' | 'area/stackedspline' | 'area/stackedspline100' | 'bar/classic' | 'bar/stacked' | 'bar/stacked100' | 'column/classic' | 'column/stackedcolumn' | 'column/stackedcolumn100' | 'line/basic' | 'line/spline' | 'pie/classic' | 'pie/donut' | 'pie/ring' | 'column/polar' | 'area/polar' | 'line/polar' | 'indicator/numeric' | 'indicator/gauge' | 'bubble/scatter' | 'treemap' | 'sunburst' | 'boxplot/full' | 'boxplot/hollow' | 'map/scatter' | 'areamap/world' | 'areamap/usa' | 'richtexteditor';
27
27
  export declare enum WidgetDashboardFilterMode {
28
28
  FILTER = "filter",
@@ -325,6 +325,8 @@ export type AxisStyle = {
325
325
  logarithmic?: boolean;
326
326
  min?: number | null;
327
327
  max?: number | null;
328
+ intervalJumps?: number;
329
+ x2Title?: AxisTitleStyle;
328
330
  };
329
331
  type BaseWidgetStyle = {
330
332
  legend: {
@@ -335,6 +337,10 @@ type BaseWidgetStyle = {
335
337
  enabled: boolean;
336
338
  };
337
339
  };
340
+ type DataLimits = {
341
+ categoriesCapacity?: number;
342
+ seriesCapacity?: number;
343
+ };
338
344
  export type CartesianWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions & {
339
345
  seriesLabels: LabelsStyle;
340
346
  xAxis: AxisStyle & {
@@ -350,11 +356,13 @@ export type CartesianWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions
350
356
  size: number | string;
351
357
  fill: string;
352
358
  };
353
- dataLimits?: any;
359
+ dataLimits?: DataLimits;
354
360
  };
355
361
  export type PolarWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions & {
356
362
  categories?: AxisStyle;
357
363
  axis?: AxisStyle;
364
+ dataLimits?: DataLimits;
365
+ seriesLabels: LabelsStyle;
358
366
  };
359
367
  type ScatterMarkerSize = {
360
368
  defaultSize: number;
@@ -362,9 +370,11 @@ type ScatterMarkerSize = {
362
370
  max: number;
363
371
  };
364
372
  export type ScatterWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions & {
373
+ seriesLabels: LabelsStyle;
365
374
  xAxis: AxisStyle;
366
375
  yAxis: AxisStyle;
367
376
  markerSize?: ScatterMarkerSize;
377
+ dataLimits?: DataLimits;
368
378
  };
369
379
  export type FunnelWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions & {
370
380
  size: string;
@@ -378,6 +388,22 @@ export type FunnelWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions &
378
388
  decimals: boolean;
379
389
  };
380
390
  };
391
+ export type PieWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions & {
392
+ labels: {
393
+ enabled: boolean;
394
+ categories: boolean;
395
+ percent: boolean;
396
+ value: boolean;
397
+ decimals: boolean;
398
+ };
399
+ dataLimits?: DataLimits;
400
+ convolution?: {
401
+ enabled?: boolean;
402
+ independentSlicesCount?: number;
403
+ minimalIndependentSlicePercentage?: number;
404
+ selectedConvolutionType?: 'byPercentage' | 'bySlicesCount';
405
+ };
406
+ };
381
407
  export type CustomWidgetStyle = any;
382
408
  export type TableWidgetStyle = {
383
409
  'colors/columns': boolean;
@@ -461,6 +487,8 @@ export type SunburstWidgetStyle = {
461
487
  'tooltip/value': boolean;
462
488
  };
463
489
  export type BoxplotWidgetStyle = WidgetContainerStyleOptions & {
490
+ seriesLabels?: LabelsStyle;
491
+ dataLimits?: DataLimits;
464
492
  xAxis: AxisStyle;
465
493
  yAxis: AxisStyle;
466
494
  whisker: {
@@ -484,10 +512,23 @@ export type ScattermapWidgetStyle = WidgetContainerStyleOptions & {
484
512
  };
485
513
  /** Currently, WidgetStyle for areamap is an empty object */
486
514
  export type AreamapWidgetStyle = {};
515
+ export type CalendarHeatmapWidgetStyle = {
516
+ dayNameEnabled?: boolean;
517
+ dayNumberEnabled?: boolean;
518
+ 'domain/month'?: boolean;
519
+ 'domain/quarter'?: boolean;
520
+ 'domain/half-year'?: boolean;
521
+ 'domain/year'?: boolean;
522
+ grayoutEnabled?: boolean;
523
+ 'view/monthly'?: boolean;
524
+ 'view/weekly'?: boolean;
525
+ 'week/monday'?: boolean;
526
+ 'week/sunday'?: boolean;
527
+ };
487
528
  export type WidgetStyle = {
488
529
  widgetDesign?: WidgetDesign;
489
530
  narration?: any;
490
- } & (CartesianWidgetStyle | PolarWidgetStyle | FunnelWidgetStyle | ScatterWidgetStyle | TableWidgetStyle | IndicatorWidgetStyle | TreemapWidgetStyle | SunburstWidgetStyle | BoxplotWidgetStyle | ScattermapWidgetStyle | AreamapWidgetStyle | PivotWidgetStyle | TextWidgetDtoStyle);
531
+ } & (CartesianWidgetStyle | PolarWidgetStyle | FunnelWidgetStyle | PieWidgetStyle | ScatterWidgetStyle | TableWidgetStyle | IndicatorWidgetStyle | TreemapWidgetStyle | SunburstWidgetStyle | BoxplotWidgetStyle | ScattermapWidgetStyle | AreamapWidgetStyle | PivotWidgetStyle | CalendarHeatmapWidgetStyle | TextWidgetDtoStyle);
491
532
  export declare enum FiltersMergeStrategyEnum {
492
533
  WIDGET_FIRST = "widgetFirst",
493
534
  CODE_FIRST = "codeFirst",
@@ -516,72 +557,4 @@ export type TextWidgetDtoStyle = {
516
557
  textAlign: 'center';
517
558
  };
518
559
  };
519
- export type JtdDrillTarget = {
520
- caption: string;
521
- id: string;
522
- };
523
- export type JtdPivotDrillTarget = JtdDrillTarget & {
524
- pivotDimensions: string[];
525
- };
526
- export type JtdConfigDto = {
527
- drilledDashboardPrefix: string;
528
- drilledDashboardsFolderPrefix: string;
529
- displayFilterPane: boolean;
530
- displayDashboardsPane: boolean;
531
- displayToolbarRow: boolean;
532
- displayHeaderRow: boolean;
533
- volatile: boolean;
534
- hideDrilledDashboards: boolean;
535
- hideSharedDashboardsForNonOwner: boolean;
536
- drillToDashboardRightMenuCaption: string;
537
- drillToDashboardNavigateType: number;
538
- drillToDashboardNavigateTypePivot: number;
539
- drillToDashboardNavigateTypeCharts: number;
540
- drillToDashboardNavigateTypeOthers: number;
541
- drilledDashboardDisplayType: number;
542
- dashboardIds: Array<JtdDrillTarget | JtdPivotDrillTarget>;
543
- modalWindowResize: boolean;
544
- modalWindowMeasurement?: SizeMeasurement;
545
- modalWindowWidth?: number;
546
- modalWindowHeight?: number;
547
- showFolderNameOnMenuSelection: boolean;
548
- resetDashFiltersAfterJTD: boolean;
549
- sameCubeRestriction: boolean;
550
- showJTDIcon?: boolean;
551
- sendPieChartMeasureFiltersOnClick: boolean;
552
- forceZeroInsteadNull: boolean;
553
- mergeTargetDashboardFilters: boolean;
554
- drillToDashboardByName: boolean;
555
- sendBreakByValueFilter: boolean;
556
- ignoreFiltersSource: boolean;
557
- sendFormulaFiltersDuplicate?: number | 'none' | undefined;
558
- enabled?: boolean;
559
- version?: string;
560
- includeDashFilterDims?: string[];
561
- includeWidgetFilterDims?: string[];
562
- };
563
- export declare enum JtdNavigateType {
564
- CLICK = "click",
565
- RIGHT_CLICK = "rightclick",
566
- PIVOT_LINK = "pivotlink",
567
- BLOX = "blox"
568
- }
569
- export type JtdConfig = {
570
- drilledDashboardPrefix?: string;
571
- displayFilterPane?: boolean;
572
- displayToolbarRow?: boolean;
573
- drillToDashboardRightMenuCaption?: string;
574
- navigateType?: JtdNavigateType;
575
- includeDashFilterDims?: string[];
576
- includeWidgetFilterDims?: string[];
577
- drillTargets: JtdDrillTarget[];
578
- modalWindowResize?: boolean;
579
- modalWindowMeasurement?: SizeMeasurement;
580
- modalWindowWidth?: number;
581
- modalWindowHeight?: number;
582
- showJtdIcon?: boolean;
583
- mergeTargetDashboardFilters?: boolean;
584
- sendFormulaFiltersDuplicate?: number | 'none' | undefined;
585
- enabled?: boolean;
586
- };
587
560
  export {};
@@ -1 +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;
1
+ "use strict";const a=require("./execute-query-uQ2s1ZNz.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;
@@ -1,4 +1,4 @@
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";
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-CxMSGp-J.js";
2
2
  class m extends d {
3
3
  constructor(e, t) {
4
4
  var r;