@sisense/sdk-ui 1.10.1 → 1.12.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 (133) hide show
  1. package/dist/ai/ai-context-provider.d.ts +1 -1
  2. package/dist/ai/buttons/thumbs-down-button.d.ts +2 -1
  3. package/dist/ai/buttons/thumbs-up-button.d.ts +2 -1
  4. package/dist/ai/chat-config.d.ts +10 -0
  5. package/dist/ai/chat-dropup.d.ts +2 -1
  6. package/dist/ai/chat-input.d.ts +3 -1
  7. package/dist/ai/chatbot.d.ts +1 -1
  8. package/dist/ai/common/beta-label.d.ts +1 -0
  9. package/dist/ai/common/icon-button.d.ts +2 -3
  10. package/dist/ai/get-nlg-query-result.d.ts +1 -1
  11. package/dist/ai/icons/light-bulb-icon.d.ts +1 -3
  12. package/dist/ai/index.d.ts +1 -0
  13. package/dist/ai/messages/clickable-message.d.ts +2 -1
  14. package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
  15. package/dist/ai/messages/get-widget-options.d.ts +6 -1
  16. package/dist/ai/messages/text-message.d.ts +5 -0
  17. package/dist/ai/use-get-nlg-query-result.d.ts +1 -1
  18. package/dist/ai/use-get-query-recommendations.d.ts +1 -1
  19. package/dist/ai/use-last-nlq-response.d.ts +19 -0
  20. package/dist/ai.cjs +454 -0
  21. package/dist/ai.js +1142 -1095
  22. package/dist/api/types/dashboard-dto.d.ts +5 -4
  23. package/dist/app/client-application.d.ts +1 -0
  24. package/dist/area-range-chart.d.ts +67 -0
  25. package/dist/areamap-chart.d.ts +0 -1
  26. package/dist/boxplot-chart.d.ts +0 -1
  27. package/dist/chart/chart.d.ts +0 -2
  28. package/dist/chart/helpers/should-skip-sisense-context-waiting.d.ts +3 -0
  29. package/dist/chart/helpers/use-chart-renderer-props.d.ts +28 -0
  30. package/dist/chart/regular-chart.d.ts +7 -0
  31. package/dist/chart/types.d.ts +21 -0
  32. package/dist/chart-data/range-data.d.ts +11 -0
  33. package/dist/chart-data/types.d.ts +15 -1
  34. package/dist/chart-data-options/translate-range-data-options.d.ts +2 -0
  35. package/dist/chart-data-options/types.d.ts +56 -4
  36. package/dist/chart-data-processor/data-table-date-period.d.ts +0 -1
  37. package/dist/chart-options-processor/chart-options-service.d.ts +5 -0
  38. package/dist/chart-options-processor/range-chart-options.d.ts +17 -0
  39. package/dist/chart-options-processor/translations/design-options.d.ts +55 -7
  40. package/dist/chart-options-processor/translations/funnel-plot-options.d.ts +2 -1
  41. package/dist/chart-options-processor/translations/pie-plot-options.d.ts +2 -1
  42. package/dist/chart-options-processor/translations/range/tooltip-range.d.ts +4 -0
  43. package/dist/chart-options-processor/translations/tooltip-utils.d.ts +3 -0
  44. package/dist/chart-options-processor/translations/types.d.ts +12 -6
  45. package/dist/charts/map-charts/areamap/areamap.d.ts +2 -3
  46. package/dist/charts/map-charts/scattermap/scattermap.d.ts +2 -1
  47. package/dist/charts/table/helpers/calc-column-widths.d.ts +1 -0
  48. package/dist/charts/table/styles/style-constants.d.ts +1 -0
  49. package/dist/charts/table/types.d.ts +13 -4
  50. package/dist/common/components/loading-indicator.d.ts +17 -4
  51. package/dist/common/hooks/use-fetch.d.ts +1 -1
  52. package/dist/common/hooks/use-has-changed.d.ts +9 -0
  53. package/dist/common/hooks/use-should-load.d.ts +12 -0
  54. package/dist/dashboard/components/content-panel.d.ts +41 -0
  55. package/dist/dashboard/components/dashboard-container.d.ts +2 -0
  56. package/dist/dashboard/components/dashboard-header.d.ts +2 -0
  57. package/dist/dashboard/components/plugin-service.d.ts +21 -0
  58. package/dist/dashboard/constants.d.ts +2 -0
  59. package/dist/dashboard/dashboard-by-id.d.ts +7 -0
  60. package/dist/dashboard/dashboard.d.ts +8 -0
  61. package/dist/dashboard/types.d.ts +41 -0
  62. package/dist/dashboard/utils.d.ts +5 -0
  63. package/dist/dashboard-widget/translate-widget-filters.d.ts +664 -4
  64. package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +1 -1
  65. package/dist/dashboard-widget/utils.d.ts +2 -2
  66. package/dist/decorators/component-decorators/as-sisense-component.d.ts +6 -2
  67. package/dist/decorators/component-decorators/with-tracking/use-track-component-init.d.ts +2 -1
  68. package/dist/decorators/component-decorators/with-tracking/with-tracking.d.ts +4 -1
  69. package/dist/dynamic-size-container/dynamic-size-container.d.ts +8 -0
  70. package/dist/filters/components/common/basic-input.d.ts +0 -1
  71. package/dist/filters/components/common/date-range-field-button.d.ts +3 -6
  72. package/dist/filters/components/date-filter/date-filter/date-filter.d.ts +15 -0
  73. package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-display.d.ts +6 -0
  74. package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +6 -0
  75. package/dist/filters/components/date-filter/date-range-filter-tile/editable-date-range-filter.d.ts +14 -0
  76. package/dist/filters/components/date-filter/date-range-filter-tile/use-date-limits.d.ts +1 -2
  77. package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +2 -2
  78. package/dist/filters/components/filters-panel/filters-panel-tile.d.ts +18 -0
  79. package/dist/filters/components/filters-panel/filters-panel.d.ts +18 -0
  80. package/dist/filters/components/filters-panel/index.d.ts +2 -0
  81. package/dist/filters/components/icons/arrow-icon.d.ts +6 -0
  82. package/dist/filters/components/icons/double-arrow-icon.d.ts +6 -0
  83. package/dist/filters/components/member-filter-tile/basic-member-filter-tile.d.ts +3 -1
  84. package/dist/filters/components/member-filter-tile/use-members.d.ts +1 -1
  85. package/dist/filters/index.d.ts +1 -0
  86. package/dist/highcharts-memorized.d.ts +1 -1
  87. package/dist/index.cjs +784 -0
  88. package/dist/index.d.ts +2 -0
  89. package/dist/index.js +17694 -18881
  90. package/dist/indicator-canvas.d.ts +2 -3
  91. package/dist/models/dashboard/dashboard-model.d.ts +62 -0
  92. package/dist/models/dashboard/get-dashboard-model.d.ts +10 -1
  93. package/dist/models/dashboard/get-dashboard-models.d.ts +2 -1
  94. package/dist/models/dashboard/index.d.ts +1 -1
  95. package/dist/models/dashboard/translate-dashboard-utils.d.ts +5 -0
  96. package/dist/models/dashboard/types.d.ts +2 -12
  97. package/dist/models/dashboard/use-get-dashboard-model.d.ts +1 -1
  98. package/dist/models/dashboard/use-get-dashboard-models.d.ts +1 -1
  99. package/dist/models/widget/widget-model.d.ts +3 -3
  100. package/dist/pivot-table/formatters/header-cell-formatters/header-cell-highlight-formatter.d.ts +2 -0
  101. package/dist/pivot-table/formatters/types.d.ts +2 -2
  102. package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +1 -0
  103. package/dist/pivot-table/pivot-table.d.ts +1 -1
  104. package/dist/pivot-table/use-get-pivot-table-query.d.ts +2 -1
  105. package/dist/props.d.ts +57 -2
  106. package/dist/query/date-formats/apply-date-format.d.ts +0 -1
  107. package/dist/query/query-result-date-formatting.d.ts +0 -1
  108. package/dist/query-execution/query-params-comparator.d.ts +1 -7
  109. package/dist/query-execution/types.d.ts +11 -1
  110. package/dist/query-execution/use-execute-pivot-query.d.ts +3 -6
  111. package/dist/query-execution/use-execute-query-by-widget-id.d.ts +3 -4
  112. package/dist/scattermap-chart.d.ts +0 -1
  113. package/dist/sisense-chart/sisense-chart.d.ts +8 -5
  114. package/dist/table/table-component.d.ts +8 -0
  115. package/dist/table/table.d.ts +2 -2
  116. package/dist/table/translations/design-options.d.ts +3 -0
  117. package/dist/translation/resources/en.d.ts +12 -1
  118. package/dist/translation/resources/index.d.ts +24 -2
  119. package/dist/types.d.ts +103 -17
  120. package/dist/{debounce-CVvJ1016.js → useQuery-0UWck_2A.js} +33927 -33705
  121. package/dist/useQuery-DVHD0kJ-.cjs +603 -0
  122. package/dist/utils/check-and-notify-about-deprecated-prop.d.ts +1 -0
  123. package/dist/utils/create-cache.d.ts +0 -1
  124. package/dist/utils/utility-types.d.ts +1 -0
  125. package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
  126. package/dist/widgets/drilldown-widget.d.ts +2 -1
  127. package/package.json +13 -9
  128. package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +0 -2
  129. package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +0 -2
  130. package/dist/ai/messages/clear-history-success-message.d.ts +0 -1
  131. package/dist/filters/components/icons/arrow-right-icon.d.ts +0 -2
  132. package/dist/filters/components/icons/double-arrow-right-icon.d.ts +0 -2
  133. package/dist/models/dashboard/translate-dashboard.d.ts +0 -4
package/dist/types.d.ts CHANGED
@@ -2,10 +2,10 @@
2
2
  import type { Attribute, MembersFilter } from '@sisense/sdk-data';
3
3
  import { DeepRequired } from 'ts-essentials';
4
4
  import { AreaSubtype, BoxplotSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype } from './chart-options-processor/subtype-to-design-options';
5
- import { IndicatorComponents } from './chart-options-processor/translations/design-options';
5
+ import { IndicatorComponents, TableColorOptions } from './chart-options-processor/translations/design-options';
6
6
  import { FunnelDirection, FunnelSize, FunnelType } from './chart-options-processor/translations/funnel-plot-options';
7
7
  import { ScatterMarkerSize } from './chart-options-processor/translations/scatter-plot-options';
8
- import { CartesianChartType, ScatterChartType, CategoricalChartType, IndicatorChartType, TableType, AreamapChartType, BoxplotChartType, ScattermapChartType } from './chart-options-processor/translations/types';
8
+ import { CartesianChartType, ScatterChartType, CategoricalChartType, IndicatorChartType, TableType, AreamapChartType, BoxplotChartType, ScattermapChartType, RangeChartType, TableChartType } from './chart-options-processor/translations/types';
9
9
  import { DataPointsEventHandler } from './props';
10
10
  import { LegendPosition } from './chart-options-processor/translations/legend-section';
11
11
  import { GeoDataElement, RawGeoDataElement } from './chart-data/types';
@@ -15,7 +15,7 @@ export type { AppConfig } from './app/client-application';
15
15
  export type { DateConfig } from './query/date-formats';
16
16
  export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
17
17
  export type { DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, } from './chart-data/data-coloring/types';
18
- export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, Coordinates, };
18
+ export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, TableChartType, AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, Coordinates, RangeChartType, TableColorOptions, };
19
19
  export type { MonthOfYear, DayOfWeek, DateLevel } from './query/date-formats/apply-date-format';
20
20
  /**
21
21
  * @internal
@@ -213,6 +213,10 @@ export interface LineStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
213
213
  /** Subtype of LineChart */
214
214
  subtype?: LineSubtype;
215
215
  }
216
+ /** Configuration options that define functional style of the various elements of AreaRangeChart */
217
+ export interface AreaRangeStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
218
+ lineWidth?: LineWidth;
219
+ }
216
220
  /** Configuration options that define functional style of the various elements of AreaChart */
217
221
  export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
218
222
  /** Configuration that defines line width */
@@ -279,16 +283,34 @@ export type IndicatorStyleOptions = (NumericSimpleIndicatorStyleOptions | Numeri
279
283
  export interface TableStyleOptions {
280
284
  /**
281
285
  * Boolean flag whether to fill header cells with background color
286
+ *
287
+ * @deprecated Use {@link TableStyleOptions#header | TableStyleOptions.header.color} instead.
282
288
  */
283
289
  headersColor?: boolean;
284
290
  /**
285
291
  * Boolean flag whether to apply background color to alternate rows.
292
+ *
293
+ * @deprecated Use {@link TableStyleOptions#rows | TableStyleOptions.rows.alternatingColor} instead.
286
294
  */
287
295
  alternatingRowsColor?: boolean;
288
296
  /**
289
297
  * Boolean flag whether to apply background color to alternate columns
298
+ *
299
+ * @deprecated Use {@link TableStyleOptions#columns | TableStyleOptions.columns.alternatingColor} instead.
290
300
  */
291
301
  alternatingColumnsColor?: boolean;
302
+ /**
303
+ * Vertical padding around whole table
304
+ * Default value is 20px
305
+ *
306
+ */
307
+ paddingVertical?: number;
308
+ /**
309
+ * Horizontal padding around whole table
310
+ * Default value is 20px
311
+ *
312
+ */
313
+ paddingHorizontal?: number;
292
314
  /**
293
315
  * Number of rows per page
294
316
  *
@@ -313,8 +335,43 @@ export interface TableStyleOptions {
313
335
  * 3. Default value of 500px (for component without header) or 525px (for component with header).
314
336
  */
315
337
  height?: number;
338
+ /**
339
+ * Header options
340
+ */
341
+ header?: {
342
+ /**
343
+ * Color of header
344
+ */
345
+ color?: TableColorOptions;
346
+ };
347
+ /**
348
+ * Columns options
349
+ */
350
+ columns?: {
351
+ /**
352
+ * Alternating color for columns
353
+ */
354
+ alternatingColor?: TableColorOptions;
355
+ /**
356
+ * Modes of columns width
357
+ * 'auto' - all columns will have the same width and fit the table width (no horizontal scroll)
358
+ * 'content' - columns width will be based on content (default option)
359
+ */
360
+ width?: 'auto' | 'content';
361
+ };
362
+ /**
363
+ * Rows options
364
+ */
365
+ rows?: {
366
+ /**
367
+ * Alternating color for rows
368
+ */
369
+ alternatingColor?: TableColorOptions;
370
+ };
316
371
  }
317
- /** Configuration options that define functional style of the various elements of the PivotTable component */
372
+ /** Configuration options that define functional style of the various elements of the tabular charts. */
373
+ export type TabularChartStyleOptions = TableStyleOptions;
374
+ /** Configuration options that define functional style of the various elements of the PivotTable component. */
318
375
  export interface PivotTableStyleOptions {
319
376
  /**
320
377
  * Boolean flag whether to fill header cells with background color
@@ -368,6 +425,10 @@ export interface PivotTableStyleOptions {
368
425
  * Manual height of each row (default is 25px)
369
426
  */
370
427
  rowHeight?: number;
428
+ /**
429
+ * Color of highlighted cells. If not specified, default value is light yellow (`#ffff9c`).
430
+ */
431
+ highlightColor?: string;
371
432
  }
372
433
  /**
373
434
  * Common part of IndicatorStyleOptions for all types of indicator
@@ -475,7 +536,9 @@ export interface ScattermapStyleOptions extends Pick<BaseStyleOptions, 'width' |
475
536
  /**
476
537
  * Configuration options that define functional style of the various elements of chart.
477
538
  */
478
- export type ChartStyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions | PieStyleOptions | FunnelStyleOptions | PolarStyleOptions | IndicatorStyleOptions | ScatterStyleOptions | TreemapStyleOptions | SunburstStyleOptions | BoxplotStyleOptions | AreamapStyleOptions | ScattermapStyleOptions;
539
+ export type ChartStyleOptions = RegularChartStyleOptions | TabularChartStyleOptions;
540
+ /** Style options for regular chart types */
541
+ export type RegularChartStyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions | PieStyleOptions | FunnelStyleOptions | PolarStyleOptions | IndicatorStyleOptions | ScatterStyleOptions | TreemapStyleOptions | SunburstStyleOptions | BoxplotStyleOptions | AreamapStyleOptions | ScattermapStyleOptions | AreaRangeStyleOptions;
479
542
  /** Mapping of each of the chart value series to colors. */
480
543
  export type ValueToColorMap = {
481
544
  [value: string]: string;
@@ -487,12 +550,14 @@ export type MultiColumnValueToColorMap = {
487
550
  /**
488
551
  * Chart type of one of the supported chart families
489
552
  */
490
- export type ChartType = CartesianChartType | CategoricalChartType | ScatterChartType | IndicatorChartType | AreamapChartType | BoxplotChartType | ScattermapChartType;
553
+ export type ChartType = CartesianChartType | CategoricalChartType | ScatterChartType | IndicatorChartType | AreamapChartType | BoxplotChartType | ScattermapChartType | RangeChartType | TableChartType;
554
+ /** Chart type of the regular charts */
555
+ export type RegularChartType = Exclude<ChartType, TableChartType>;
491
556
  /**
492
557
  * Series chart type, which is used with {@link StyledMeasureColumn} to customize
493
558
  * series in a mixed chart.
494
559
  */
495
- export type SeriesChartType = 'auto' | 'line' | 'spline' | 'areaspline' | 'bar' | 'area' | 'column' | 'scatter';
560
+ export type SeriesChartType = 'auto' | 'line' | 'spline' | 'areaspline' | 'bar' | 'area' | 'column' | 'scatter' | 'arearange';
496
561
  /** The number of decimal places */
497
562
  export type DecimalScale = number | 'auto';
498
563
  /**
@@ -591,8 +656,6 @@ export interface ThemeSettings {
591
656
  };
592
657
  /**
593
658
  * Theme settings specific to the AI Chatbot component
594
- *
595
- * @internal
596
659
  */
597
660
  aiChat?: {
598
661
  /** Background color of the chatbot */
@@ -701,10 +764,10 @@ export interface ThemeSettings {
701
764
  borderRadius?: string;
702
765
  /** Setting to be applied on hover */
703
766
  hover?: {
704
- /** Background color of the chatbot suggestions on hover */
705
- backgroundColor?: string;
706
767
  /** Text color of the chatbot suggestions on hover */
707
768
  textColor?: string;
769
+ /** Background color of the chatbot suggestions on hover */
770
+ backgroundColor?: string;
708
771
  };
709
772
  /** 2-color gradient to be applied on suggestions loading animation */
710
773
  loadingGradient?: [string, string];
@@ -713,12 +776,14 @@ export interface ThemeSettings {
713
776
  };
714
777
  /** Settings for the chatbot clickable messages */
715
778
  clickableMessages?: {
716
- /** Background color of the chatbot clickable messages */
717
- backgroundColor?: string;
718
779
  /** Text color of the chatbot clickable messages */
719
780
  textColor?: string;
781
+ /** Background color of the chatbot clickable messages */
782
+ backgroundColor?: string;
720
783
  /** Border of the chatbot clickable messages */
721
784
  border?: false | string;
785
+ /** 2-color gradient to be applied on the border */
786
+ borderGradient?: [string, string] | null;
722
787
  /** Setting to be applied on hover */
723
788
  hover?: {
724
789
  /** Text color of the chatbot clickable messages on hover */
@@ -727,16 +792,37 @@ export interface ThemeSettings {
727
792
  backgroundColor?: string;
728
793
  };
729
794
  };
795
+ /** Settings for the data topics screen */
796
+ dataTopics?: {
797
+ /** Background color of the data topics screen */
798
+ backgroundColor?: string;
799
+ /** Settings for the individual data topic items */
800
+ items?: {
801
+ /** Text color of the data topic items */
802
+ textColor?: string;
803
+ /** Background color of the data topic items */
804
+ backgroundColor?: string;
805
+ };
806
+ };
730
807
  /** Settings for the chatbot icons */
731
808
  icons?: {
732
809
  /** Color of the chatbot icons */
733
810
  color?: string;
734
- /** Setting to be applied on hover */
735
- hover?: {
736
- /** Color of the chatbot icons on hover */
737
- color?: string;
811
+ /** Settings for feedback icons */
812
+ feedbackIcons?: {
813
+ /** Background color of the feedback icons on hover */
814
+ hoverColor?: string;
738
815
  };
739
816
  };
817
+ /** Settings for the chatbot tooltips */
818
+ tooltips?: {
819
+ /** Background color of the tooltips */
820
+ backgroundColor?: string;
821
+ /** Text color of the tooltips */
822
+ textColor?: string;
823
+ /** Box shadow of the tooltips */
824
+ boxShadow?: string;
825
+ };
740
826
  };
741
827
  }
742
828
  /**