@sisense/sdk-ui 1.7.1 → 1.8.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 (64) hide show
  1. package/dist/ai/ai-disclaimer.d.ts +2 -0
  2. package/dist/ai/chat-config.d.ts +8 -0
  3. package/dist/ai/chat-style-provider.d.ts +7 -0
  4. package/dist/ai/messages/chat-welcome-message.d.ts +2 -0
  5. package/dist/ai/messages/clickable-message.d.ts +9 -0
  6. package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
  7. package/dist/ai/messages/insights-message.d.ts +5 -5
  8. package/dist/ai/messages/text-message.d.ts +1 -2
  9. package/dist/ai/translators/model-translator.d.ts +1 -0
  10. package/dist/ai/translators/query-translator.d.ts +16 -1
  11. package/dist/ai/translators/translate-filters-to-code.d.ts +2 -0
  12. package/dist/ai/translators/translate-props-to-code.d.ts +1 -1
  13. package/dist/ai/translators/utils.d.ts +10 -0
  14. package/dist/ai.js +2893 -2697
  15. package/dist/api/rest-api.d.ts +4 -1
  16. package/dist/app/client-application.d.ts +11 -0
  17. package/dist/area-chart.d.ts +14 -18
  18. package/dist/areamap-chart.d.ts +13 -15
  19. package/dist/bar-chart.d.ts +13 -18
  20. package/dist/boxplot-chart.d.ts +11 -25
  21. package/dist/chart/chart.d.ts +8 -66
  22. package/dist/chart-data/cartesian-data.d.ts +1 -1
  23. package/dist/chart-data/chart-data-service.d.ts +1 -2
  24. package/dist/chart-data/data-coloring/types.d.ts +1 -7
  25. package/dist/chart-data-options/types.d.ts +5 -3
  26. package/dist/chart-options-processor/theme-option-service.d.ts +2 -1
  27. package/dist/column-chart.d.ts +15 -18
  28. package/dist/common/icons/exclamation-mark-icon.d.ts +4 -0
  29. package/dist/dashboard-widget/dashboard-widget.d.ts +10 -7
  30. package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
  31. package/dist/dashboard-widget/translate-widget-filters.d.ts +22 -14
  32. package/dist/dashboard-widget/types.d.ts +2 -2
  33. package/dist/dashboard-widget/utils.d.ts +2 -2
  34. package/dist/formulas/use-get-shared-formula.d.ts +3 -3
  35. package/dist/funnel-chart.d.ts +9 -36
  36. package/dist/index.d.ts +1 -2
  37. package/dist/index.js +1793 -1790
  38. package/dist/indicator-chart.d.ts +0 -1
  39. package/dist/line-chart.d.ts +14 -17
  40. package/dist/models/widget/use-get-widget-model.d.ts +16 -21
  41. package/dist/pie-chart.d.ts +14 -16
  42. package/dist/pivot-table/pivot-table.d.ts +43 -3
  43. package/dist/polar-chart.d.ts +14 -17
  44. package/dist/props.d.ts +12 -12
  45. package/dist/query-execution/use-execute-pivot-query.d.ts +11 -29
  46. package/dist/query-execution/use-execute-query.d.ts +19 -26
  47. package/dist/scatter-chart.d.ts +11 -49
  48. package/dist/scattermap-chart.d.ts +9 -22
  49. package/dist/sunburst-chart.d.ts +10 -15
  50. package/dist/table/table.d.ts +7 -37
  51. package/dist/theme-provider/index.d.ts +1 -0
  52. package/dist/theme-provider/theme-context.d.ts +14 -0
  53. package/dist/theme-provider/theme-provider.d.ts +0 -13
  54. package/dist/translation/resources/en.d.ts +2 -0
  55. package/dist/translation/resources/index.d.ts +4 -0
  56. package/dist/treemap-chart.d.ts +10 -21
  57. package/dist/types.d.ts +3 -4
  58. package/dist/{useQuery-a7ee8c12.js → useQuery-cb11e76c.js} +22697 -22384
  59. package/dist/widgets/common/drilldown.d.ts +1 -20
  60. package/dist/widgets/drilldown-widget.d.ts +21 -33
  61. package/package.json +7 -7
  62. package/dist/ai/chat-intro-blurb.d.ts +0 -4
  63. package/dist/ai/icons/loading-dots-gif-base64.d.ts +0 -2
  64. package/dist/common/icons/yellow-exclamation-mark-icon.d.ts +0 -2
@@ -10,6 +10,7 @@ export declare const resources: {
10
10
  chartNoSisenseContext: string;
11
11
  dashboardWidgetNoSisenseContext: string;
12
12
  dashboardWidgetInvalidIdentifiers: string;
13
+ dashboardWidgetsInvalidIdentifiers: string;
13
14
  executeQueryNoSisenseContext: string;
14
15
  executeQueryNoDataSource: string;
15
16
  dataOptions: {
@@ -35,6 +36,7 @@ export declare const resources: {
35
36
  onlyTabularWidgetsSupported: string;
36
37
  };
37
38
  unknownFilterInFilterRelations: string;
39
+ filterRelationsNotSupported: string;
38
40
  };
39
41
  errorBoxText: string;
40
42
  chartNoData: string;
@@ -94,6 +96,7 @@ export declare const resources: {
94
96
  chartNoSisenseContext: string;
95
97
  dashboardWidgetNoSisenseContext: string;
96
98
  dashboardWidgetInvalidIdentifiers: string;
99
+ dashboardWidgetsInvalidIdentifiers: string;
97
100
  executeQueryNoSisenseContext: string;
98
101
  executeQueryNoDataSource: string;
99
102
  dataOptions: {
@@ -119,6 +122,7 @@ export declare const resources: {
119
122
  onlyTabularWidgetsSupported: string;
120
123
  };
121
124
  unknownFilterInFilterRelations: string;
125
+ filterRelationsNotSupported: string;
122
126
  };
123
127
  errorBoxText: string;
124
128
  chartNoData: string;
@@ -2,31 +2,20 @@
2
2
  import { TreemapChartProps } from './props';
3
3
  /**
4
4
  * A React component displaying hierarchical data in the form of nested rectangles.
5
+ *
5
6
  * This type of chart can be used instead of a column chart for comparing a large number of categories and sub-categories.
6
- * See [Treemap Chart](https://docs.sisense.com/main/SisenseLinux/treemap.htm) for more information.
7
7
  *
8
- * @example
9
- * An example of using the component to visualize the `Sample ECommerce` data source:
10
- * ```tsx
11
- * <TreemapChart
12
- * dataSet={DM.DataSource}
13
- * dataOptions={{
14
- * category: [
15
- * {
16
- * column: DM.Commerce.Condition,
17
- * isColored: true,
18
- * },
19
- * DM.Commerce.Date.Years
20
- * ],
21
- * value: [measureFactory.sum(DM.Commerce.Quantity)],
22
- * }}
23
- * onDataPointClick= {(point, nativeEvent) => {
24
- * console.log('clicked', point, nativeEvent);
25
- * }}
8
+ * ## Example
9
+ *
10
+ * Tree map chart displaying total revenue, categorized by condition and age range, from the Sample ECommerce data model.
11
+ *
12
+ * <iframe
13
+ * src='https://csdk-playground.sisense.com/?example=charts%2Ftreemap-chart&mode=docs'
14
+ * width=800
15
+ * height=870
16
+ * style='border:none;'
26
17
  * />
27
- * ```
28
18
  *
29
- * <img src="media://treemap-chart-example-1.png" width="600px" />
30
19
  * @param props - Treemap chart properties
31
20
  * @returns Treemap Chart component
32
21
  * @group Charts
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Attribute, MembersFilter } from '@sisense/sdk-data';
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
5
  import { IndicatorComponents } from './chart-options-processor/translations/design-options';
@@ -10,6 +10,7 @@ import { DataPointsEventHandler } from './props';
10
10
  import { LegendPosition } from './chart-options-processor/translations/legend-section';
11
11
  import { GeoDataElement, RawGeoDataElement } from './chart-data/types';
12
12
  import { Coordinates } from './charts/map-charts/scattermap/types';
13
+ export type { SortDirection, PivotRowsSort } from '@sisense/sdk-data';
13
14
  export type { AppConfig } from './app/client-application';
14
15
  export type { DateConfig } from './query/date-formats';
15
16
  export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
@@ -482,8 +483,6 @@ export type ChartType = CartesianChartType | CategoricalChartType | ScatterChart
482
483
  export type SeriesChartType = 'auto' | 'line' | 'spline' | 'areaspline' | 'bar' | 'area' | 'column' | 'scatter';
483
484
  /** The number of decimal places */
484
485
  export type DecimalScale = number | 'auto';
485
- /** Sorting direction, either by Ascending order, Descending order, or None */
486
- export type SortDirection = 'sortAsc' | 'sortDesc' | 'sortNone';
487
486
  /**
488
487
  * Configuration for number formatting.
489
488
  */
@@ -624,7 +623,7 @@ export interface WidgetStyleOptions {
624
623
  *
625
624
  * @internal
626
625
  */
627
- renderToolbar?: (onRefresh: () => void) => JSX.Element;
626
+ renderToolbar?: (onRefresh: () => void) => JSX.Element | null;
628
627
  };
629
628
  }
630
629
  /** Style settings defining the look and feel of DashboardWidget */