@sisense/sdk-ui 1.7.2 → 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 (53) hide show
  1. package/dist/ai/ai-disclaimer.d.ts +2 -0
  2. package/dist/ai/chat-config.d.ts +6 -0
  3. package/dist/ai/messages/chat-welcome-message.d.ts +1 -1
  4. package/dist/ai/messages/clickable-message.d.ts +9 -0
  5. package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
  6. package/dist/ai/messages/insights-message.d.ts +5 -5
  7. package/dist/ai/messages/text-message.d.ts +1 -2
  8. package/dist/ai/translators/model-translator.d.ts +1 -0
  9. package/dist/ai/translators/query-translator.d.ts +16 -1
  10. package/dist/ai/translators/translate-filters-to-code.d.ts +2 -0
  11. package/dist/ai/translators/translate-props-to-code.d.ts +1 -1
  12. package/dist/ai/translators/utils.d.ts +10 -0
  13. package/dist/ai.js +1723 -1612
  14. package/dist/area-chart.d.ts +14 -18
  15. package/dist/areamap-chart.d.ts +13 -15
  16. package/dist/bar-chart.d.ts +13 -18
  17. package/dist/boxplot-chart.d.ts +11 -25
  18. package/dist/chart/chart.d.ts +8 -66
  19. package/dist/chart-data/cartesian-data.d.ts +1 -1
  20. package/dist/chart-data/chart-data-service.d.ts +1 -2
  21. package/dist/chart-data/data-coloring/types.d.ts +1 -7
  22. package/dist/chart-data-options/types.d.ts +5 -3
  23. package/dist/column-chart.d.ts +15 -18
  24. package/dist/dashboard-widget/dashboard-widget.d.ts +10 -7
  25. package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
  26. package/dist/dashboard-widget/translate-widget-filters.d.ts +22 -14
  27. package/dist/dashboard-widget/types.d.ts +2 -2
  28. package/dist/dashboard-widget/utils.d.ts +2 -2
  29. package/dist/formulas/use-get-shared-formula.d.ts +3 -3
  30. package/dist/funnel-chart.d.ts +9 -36
  31. package/dist/index.d.ts +0 -1
  32. package/dist/index.js +1619 -1620
  33. package/dist/indicator-chart.d.ts +0 -1
  34. package/dist/line-chart.d.ts +14 -17
  35. package/dist/models/widget/use-get-widget-model.d.ts +16 -21
  36. package/dist/pie-chart.d.ts +14 -16
  37. package/dist/pivot-table/pivot-table.d.ts +43 -3
  38. package/dist/polar-chart.d.ts +14 -17
  39. package/dist/props.d.ts +12 -12
  40. package/dist/query-execution/use-execute-pivot-query.d.ts +11 -29
  41. package/dist/query-execution/use-execute-query.d.ts +19 -26
  42. package/dist/scatter-chart.d.ts +11 -49
  43. package/dist/scattermap-chart.d.ts +9 -22
  44. package/dist/sunburst-chart.d.ts +10 -15
  45. package/dist/table/table.d.ts +7 -37
  46. package/dist/translation/resources/en.d.ts +1 -0
  47. package/dist/translation/resources/index.d.ts +2 -0
  48. package/dist/treemap-chart.d.ts +10 -21
  49. package/dist/types.d.ts +2 -3
  50. package/dist/{useQuery-76ecbd20.js → useQuery-cb11e76c.js} +18866 -18607
  51. package/dist/widgets/common/drilldown.d.ts +1 -20
  52. package/dist/widgets/drilldown-widget.d.ts +21 -33
  53. package/package.json +7 -7
@@ -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
  */