@sisense/sdk-ui 1.5.0 → 1.6.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 (87) hide show
  1. package/dist/ai/ai-context-provider.d.ts +1 -0
  2. package/dist/ai/api/chat-rest-api.d.ts +3 -0
  3. package/dist/ai/api/errors.d.ts +2 -1
  4. package/dist/ai/api/types.d.ts +10 -10
  5. package/dist/ai/chat-config.d.ts +10 -3
  6. package/dist/ai/chat-intro-blurb.d.ts +4 -0
  7. package/dist/ai/chatbot.d.ts +1 -0
  8. package/dist/ai/get-nlg-query-result.d.ts +3 -3
  9. package/dist/ai/index.d.ts +2 -0
  10. package/dist/ai/messages/feedback-wrapper.d.ts +2 -1
  11. package/dist/ai/messages/insights-message.d.ts +6 -1
  12. package/dist/ai/messages/message-list-resolver.d.ts +1 -2
  13. package/dist/ai/messages/message-resolver.d.ts +1 -3
  14. package/dist/ai/messages/nlq-message-group.d.ts +10 -0
  15. package/dist/ai/suggestions/index.d.ts +1 -1
  16. package/dist/ai/suggestions/suggestion-list.d.ts +1 -1
  17. package/dist/ai/suggestions/suggestions-with-intro.d.ts +2 -2
  18. package/dist/ai/translators/code-templates.d.ts +11 -0
  19. package/dist/ai/translators/generate-code.d.ts +9 -0
  20. package/dist/ai/translators/index.d.ts +4 -0
  21. package/dist/ai/translators/model-translator.d.ts +50 -0
  22. package/dist/ai/translators/query-translator.d.ts +122 -0
  23. package/dist/ai/translators/translate-props-to-code.d.ts +8 -0
  24. package/dist/ai/translators/types.d.ts +105 -0
  25. package/dist/ai/translators/use-get-data-source.d.ts +12 -0
  26. package/dist/ai/translators/utils.d.ts +2 -0
  27. package/dist/ai/use-chat-session.d.ts +9 -3
  28. package/dist/ai/use-get-nlg-query-result.d.ts +6 -6
  29. package/dist/ai/use-get-query-recommendations.d.ts +1 -0
  30. package/dist/ai.js +7077 -1734
  31. package/dist/area-chart.d.ts +1 -0
  32. package/dist/areamap-chart.d.ts +1 -0
  33. package/dist/bar-chart.d.ts +3 -0
  34. package/dist/boxplot-chart.d.ts +1 -0
  35. package/dist/boxplot-utils.d.ts +1 -0
  36. package/dist/chart/chart.d.ts +1 -0
  37. package/dist/chart-options-processor/translations/tooltip-utils.d.ts +1 -0
  38. package/dist/column-chart.d.ts +4 -0
  39. package/dist/common/components/loading-indicator.d.ts +2 -0
  40. package/dist/dashboard-widget/dashboard-widget.d.ts +1 -0
  41. package/dist/dashboard-widget/translate-widget-data-options.d.ts +5 -0
  42. package/dist/dashboard-widget/translate-widget-filters.d.ts +1 -0
  43. package/dist/dashboard-widget/types.d.ts +3 -2
  44. package/dist/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -0
  45. package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +1 -0
  46. package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +1 -0
  47. package/dist/filters/components/member-filter-tile/member-filter-tile.d.ts +1 -0
  48. package/dist/formulas/use-get-shared-formula.d.ts +1 -0
  49. package/dist/funnel-chart.d.ts +1 -0
  50. package/dist/index.d.ts +4 -0
  51. package/dist/index.js +6719 -37723
  52. package/dist/indicator-chart.d.ts +1 -0
  53. package/dist/line-chart.d.ts +1 -0
  54. package/dist/models/dashboard/get-dashboard-models.d.ts +1 -3
  55. package/dist/models/dashboard/translate-dashboard.d.ts +1 -1
  56. package/dist/models/dashboard/types.d.ts +17 -0
  57. package/dist/models/dashboard/use-get-dashboard-model.d.ts +1 -0
  58. package/dist/models/dashboard/use-get-dashboard-models.d.ts +1 -0
  59. package/dist/models/widget/use-get-widget-model.d.ts +1 -0
  60. package/dist/models/widget/widget-model.d.ts +10 -1
  61. package/dist/pie-chart.d.ts +1 -0
  62. package/dist/pivot-table/pivot-table.d.ts +1 -0
  63. package/dist/polar-chart.d.ts +1 -0
  64. package/dist/props.d.ts +2 -2
  65. package/dist/query-execution/execute-query-by-widget-id.d.ts +1 -0
  66. package/dist/query-execution/execute-query.d.ts +1 -0
  67. package/dist/query-execution/use-execute-csv-query.d.ts +1 -0
  68. package/dist/query-execution/use-execute-pivot-query.d.ts +1 -0
  69. package/dist/query-execution/use-execute-query-by-widget-id.d.ts +1 -0
  70. package/dist/query-execution/use-execute-query.d.ts +1 -0
  71. package/dist/scatter-chart.d.ts +1 -0
  72. package/dist/scattermap-chart.d.ts +1 -0
  73. package/dist/sisense-context/sisense-context-provider.d.ts +1 -0
  74. package/dist/sunburst-chart.d.ts +1 -0
  75. package/dist/table/table.d.ts +1 -0
  76. package/dist/theme-provider/theme-provider.d.ts +7 -0
  77. package/dist/treemap-chart.d.ts +1 -0
  78. package/dist/types.d.ts +2 -2
  79. package/dist/widgets/chart-widget.d.ts +1 -0
  80. package/dist/widgets/common/context-menu.d.ts +5 -0
  81. package/dist/widgets/common/drilldown-breadcrumbs/drilldown-breadcrumbs.d.ts +5 -0
  82. package/dist/widgets/drilldown-widget.d.ts +1 -0
  83. package/dist/with-tracking-e2a077f9.js +109112 -0
  84. package/package.json +13 -8
  85. package/dist/chart-data-processor/utils.d.ts +0 -10
  86. package/dist/utils/not-available-value.d.ts +0 -3
  87. package/dist/with-tracking-0799ec25.js +0 -78081
@@ -26,5 +26,6 @@ import { AreaChartProps } from './props';
26
26
  * <img src="media://area-chart-example-1.png" width="800"/>
27
27
  * @param props - Area chart properties
28
28
  * @returns Area Chart component
29
+ * @group Charts
29
30
  */
30
31
  export declare const AreaChart: import("react").FunctionComponent<AreaChartProps>;
@@ -20,6 +20,7 @@ import { AreamapChartProps } from './props';
20
20
  * ```
21
21
  * @param props - Areamap chart properties
22
22
  * @returns Areamap Chart component
23
+ * @group Charts
23
24
  * @beta
24
25
  */
25
26
  export declare const AreamapChart: import("react").FunctionComponent<AreamapChartProps>;
@@ -3,6 +3,8 @@ import { BarChartProps } from './props';
3
3
  /**
4
4
  * A React component representing categorical data with horizontal rectangular bars,
5
5
  * whose lengths are proportional to the values that they represent.
6
+ * You can also break up the values by another category or groups.
7
+ *
6
8
  * See [Bar Chart](https://docs.sisense.com/main/SisenseLinux/bar-chart.htm) for more information.
7
9
  *
8
10
  * @example
@@ -25,5 +27,6 @@ import { BarChartProps } from './props';
25
27
  * <img src="media://bar-chart-example-1.png" width="800"/>
26
28
  * @param props - Bar chart properties
27
29
  * @returns Bar Chart component
30
+ * @group Charts
28
31
  */
29
32
  export declare const BarChart: import("react").FunctionComponent<BarChartProps>;
@@ -31,6 +31,7 @@ import { BoxplotChartProps } from './props';
31
31
  * <img src="media://boxplot-chart-example-1.png" width="600px" />
32
32
  * @param props - Boxplot chart properties
33
33
  * @returns Boxplot Chart component
34
+ * @group Charts
34
35
  * @beta
35
36
  */
36
37
  export declare const BoxplotChart: import("react").FunctionComponent<BoxplotChartProps>;
@@ -17,6 +17,7 @@ export declare const boxWhiskerProcessResultInternal: (boxWhiskerData: QueryResu
17
17
  * @param {QueryResultData} outliersData - The data for the outliers.
18
18
  * @param {BoxplotChartCustomDataOptions} [dataOptions] - Optional data options for customizing data processing.
19
19
  * @returns {QueryResultData} The combined data with outliers included in the box whisker plot.
20
+ * @group Chart Utilities
20
21
  */
21
22
  export declare function boxWhiskerProcessResult(boxWhiskerData: QueryResultData, outliersData: QueryResultData, dataOptions?: BoxplotChartCustomDataOptions): QueryResultData;
22
23
  export declare const executeBoxplotQuery: ({ app, chartDataOptions, dataSource, attributes, measures, filters, highlights, }: {
@@ -76,5 +76,6 @@ export declare const shouldSkipSisenseContextWaiting: (props: ChartProps) => boo
76
76
  * <img src="media://chart-local-data-example-1.png" width="800px" />
77
77
  * @param props - Chart properties
78
78
  * @returns Chart component representing a chart type as specified in `ChartProps.`{@link ChartProps.chartType | chartType}
79
+ * @group Charts
79
80
  */
80
81
  export declare const Chart: import("react").FunctionComponent<ChartProps>;
@@ -2,6 +2,7 @@ import { Category, Value } from '../../chart-data-options/types.js';
2
2
  export declare const isXValueNumeric: (dataOptionX: Value | Category | undefined) => boolean | "";
3
3
  export declare const formatTooltipValue: (dataOption: Value | Category | undefined, value: number | undefined, displayValue: string) => string;
4
4
  export declare const formatTooltipXValue: (dataOption: Value | Category | undefined, value: number | string | undefined, displayValue: string) => string;
5
+ export declare function isTooltipPercentValueSupported(options: Value | undefined): boolean;
5
6
  export type TooltipSettings = {
6
7
  enabled?: boolean;
7
8
  animation?: boolean;
@@ -3,6 +3,9 @@ import { ColumnChartProps } from './props';
3
3
  /**
4
4
  * A React component representing categorical data with vertical rectangular bars
5
5
  * whose heights are proportional to the values that they represent.
6
+ *
7
+ * The chart can include multiple values on both the X and Y-axis, as well as a break down by categories displayed on the Y-axis.
8
+ *
6
9
  * See [Column Chart](https://docs.sisense.com/main/SisenseLinux/column-chart.htm) for more information.
7
10
  *
8
11
  * @example
@@ -25,5 +28,6 @@ import { ColumnChartProps } from './props';
25
28
  * <img src="media://column-chart-example-1.png" width="800"/>
26
29
  * @param props - Column chart properties
27
30
  * @returns Column Chart component
31
+ * @group Charts
28
32
  */
29
33
  export declare const ColumnChart: import("react").FunctionComponent<ColumnChartProps>;
@@ -3,8 +3,10 @@ import { CompleteThemeSettings } from '../../types';
3
3
  /**
4
4
  * Component that displays a loading indicator.
5
5
  *
6
+ * @param themeSettings - Theme settings to use for the loading indicator.
6
7
  * @param onCancel - Function to call when cancel is clicked.
7
8
  * @returns A loading indicator with optional cancel.
9
+ * @internal
8
10
  */
9
11
  export declare const LoadingIndicator: ({ themeSettings, onCancel, }: {
10
12
  themeSettings?: {
@@ -15,5 +15,6 @@ import { DashboardWidgetProps } from '../props';
15
15
  * dashboardOid={'6441e728dac1920034bce737'}
16
16
  * />
17
17
  * ```
18
+ * @group Fusion Assets
18
19
  */
19
20
  export declare const DashboardWidget: FunctionComponent<DashboardWidgetProps>;
@@ -4,5 +4,10 @@ import { Panel, PanelItem, WidgetType, WidgetStyle, BoxplotWidgetStyle } from '.
4
4
  import { WidgetDataOptions } from '../models';
5
5
  export declare function createDimensionalElementFromJaql(jaql: Jaql, format?: PanelItem['format']): import("@sisense/sdk-data").Filter | DimensionalCalculatedMeasure | DimensionalBaseMeasure | DimensionalAttribute;
6
6
  export declare function createDataColumn(item: PanelItem, customPaletteColors?: Color[]): StyledMeasureColumn | StyledColumn;
7
+ /** @internal */
8
+ export declare const createDataOptionsFromPanels: (panels: Panel[], variantColors: Color[]) => {
9
+ [key: string]: any[];
10
+ };
11
+ export declare function createColumnsFromPanelItems(panels: Panel[], panelName: string, customPaletteColors?: Color[]): (StyledMeasureColumn | StyledColumn)[];
7
12
  export declare function extractBoxplotBoxType(style: BoxplotWidgetStyle): "iqr" | "extremums" | "standardDeviation";
8
13
  export declare function extractDataOptions(widgetType: WidgetType, panels: Panel[], style: WidgetStyle, customPaletteColors?: Color[]): WidgetDataOptions;
@@ -24,6 +24,7 @@ export declare function extractFilterModelFromJaql(jaql: FilterJaql): {
24
24
  *
25
25
  * @param jaql - The filter JAQL object.
26
26
  * @returns - The created Filter object.
27
+ * @internal
27
28
  */
28
29
  export declare function createFilterFromJaql(jaql: FilterJaql, instanceid?: string): Filter;
29
30
  /**
@@ -10,11 +10,11 @@ export type CategoricalWidgetType = 'chart/pie' | 'chart/funnel' | 'treemap' | '
10
10
  /**
11
11
  * The type of a widget on a dashboard that is a variant of tabular widget.
12
12
  */
13
- export type TabularWidgetType = 'tablewidget' | 'tablewidgetagg';
13
+ export type TabularWidgetType = 'tablewidget' | 'tablewidgetagg' | 'pivot2';
14
14
  /**
15
15
  * The type of a widget on a dashboard.
16
16
  */
17
- export type WidgetType = CartesianWidgetType | CategoricalWidgetType | 'chart/scatter' | 'indicator' | TabularWidgetType | 'chart/boxplot' | 'map/scatter' | 'map/area';
17
+ export type WidgetType = CartesianWidgetType | CategoricalWidgetType | 'chart/scatter' | 'indicator' | TabularWidgetType | 'chart/boxplot' | 'map/scatter' | 'map/area' | 'plugin';
18
18
  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';
19
19
  export declare enum WidgetDashboardFilterMode {
20
20
  FILTER = "filter",
@@ -220,6 +220,7 @@ export type FunnelWidgetStyle = BaseWidgetStyle & {
220
220
  decimals: boolean;
221
221
  };
222
222
  };
223
+ export type PluginStyle = any;
223
224
  export type TableWidgetStyle = {
224
225
  'colors/columns': boolean;
225
226
  'colors/headers': boolean;
@@ -40,5 +40,6 @@ export type CriteriaFilterType = NumericFilter | TextFilter | RankingFilter | Ex
40
40
  * <img src="media://criteria-filter-tile-example-1.png" width="300px" />
41
41
  * @param props - Criteria filter tile props
42
42
  * @returns Criteria filter tile component
43
+ * @group Filter Tiles
43
44
  */
44
45
  export declare const CriteriaFilterTile: import("react").FunctionComponent<CriteriaFilterTileProps>;
@@ -67,5 +67,6 @@ export interface DateRangeFilterTileProps {
67
67
  * <img src="media://date-filter-example-1.png" width="800px" />
68
68
  * @param props - Date Range Filter Tile Props
69
69
  * @returns Date Range Filter Tile component
70
+ * @group Filter Tiles
70
71
  */
71
72
  export declare const DateRangeFilterTile: import("react").FunctionComponent<DateRangeFilterTileProps>;
@@ -32,5 +32,6 @@ export interface RelativeDateFilterTileProps {
32
32
  *
33
33
  * @param props - Relative date filter tile props
34
34
  * @returns Relative date filter tile component
35
+ * @group Filter Tiles
35
36
  */
36
37
  export declare const RelativeDateFilterTile: import("react").FunctionComponent<RelativeDateFilterTileProps>;
@@ -44,5 +44,6 @@ export interface MemberFilterTileProps {
44
44
  * <img src="media://member-filter-tile-example-1.png" width="300px" />
45
45
  * @param props - Member filter tile props
46
46
  * @returns Member filter tile component
47
+ * @group Filter Tiles
47
48
  */
48
49
  export declare const MemberFilterTile: FunctionComponent<MemberFilterTileProps>;
@@ -86,6 +86,7 @@ export type SharedFormulaSuccessState = {
86
86
  * @param params - {@link UseGetSharedFormulaParams}
87
87
  * @param dataSource - Data source in Sisense instance
88
88
  * @returns Formula load state that contains the status of the execution, the result formula, or the error if any
89
+ * @group Fusion Assets
89
90
  */
90
91
  export declare const useGetSharedFormula: (params: UseGetSharedFormulaParams) => SharedFormulaState;
91
92
  /**
@@ -43,5 +43,6 @@ import { FunnelChartProps } from './props';
43
43
  * Note that the chart sorts the measure, `Unique Users`, in descending order by default.
44
44
  * @param props - Funnel chart properties
45
45
  * @returns Funnel Chart component
46
+ * @group Charts
46
47
  */
47
48
  export declare const FunnelChart: import("react").FunctionComponent<FunnelChartProps>;
package/dist/index.d.ts CHANGED
@@ -42,3 +42,7 @@ export * from './filters';
42
42
  export * from './formulas';
43
43
  export { trackHook } from './decorators/hook-decorators';
44
44
  export * from './common/hooks/data-load-state-reducer';
45
+ export { createDataOptionsFromPanels } from './dashboard-widget/translate-widget-data-options';
46
+ export { createFilterFromJaql } from './dashboard-widget/translate-widget-filters';
47
+ export { useThemeContext } from './theme-provider/theme-provider';
48
+ export { LoadingIndicator } from './common/components/loading-indicator';