@sisense/sdk-ui 1.27.1 → 1.29.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 (99) hide show
  1. package/dist/ai.cjs +50 -50
  2. package/dist/ai.js +968 -904
  3. package/dist/analytics-composer.cjs +49 -49
  4. package/dist/analytics-composer.js +374 -374
  5. package/dist/{derive-chart-family-H_RlUbXY.js → derive-chart-family-Cy3hlluo.js} +15339 -15478
  6. package/dist/{derive-chart-family-DDkQybGb.cjs → derive-chart-family-DWCXp57c.cjs} +103 -103
  7. package/dist/index.cjs +253 -120
  8. package/dist/index.js +11042 -8996
  9. package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +5 -3
  10. package/dist/packages/sdk-ui/src/ai/api/hooks.d.ts +3 -2
  11. package/dist/packages/sdk-ui/src/ai/api/types.d.ts +12 -2
  12. package/dist/packages/sdk-ui/src/ai/chart/chart-insights.d.ts +2 -2
  13. package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +9 -1
  14. package/dist/packages/sdk-ui/src/ai/{get-nlg-query-result.d.ts → get-nlg-insights.d.ts} +21 -6
  15. package/dist/packages/sdk-ui/src/ai/index.d.ts +4 -3
  16. package/dist/packages/sdk-ui/src/ai/messages/insights-message.d.ts +2 -2
  17. package/dist/packages/sdk-ui/src/ai/{use-get-nlg-query-result.d.ts → use-get-nlg-insights.d.ts} +17 -10
  18. package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +74 -0
  19. package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +11 -3
  20. package/dist/packages/sdk-ui/src/analytics-composer/common/stringify-props.d.ts +1 -1
  21. package/dist/packages/sdk-ui/src/analytics-composer/common/utils.d.ts +17 -1
  22. package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +30 -1
  23. package/dist/packages/sdk-ui/src/area-chart.d.ts +1 -1
  24. package/dist/packages/sdk-ui/src/areamap-chart.d.ts +1 -1
  25. package/dist/packages/sdk-ui/src/boxplot-utils.d.ts +3 -2
  26. package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +1 -1
  27. package/dist/packages/sdk-ui/src/chart-options-processor/subtype-to-design-options.d.ts +1 -1
  28. package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +5 -2
  29. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +1 -0
  30. package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +3 -1
  31. package/dist/packages/sdk-ui/src/common/components/button.d.ts +10 -0
  32. package/dist/packages/sdk-ui/src/common/components/popover.d.ts +23 -0
  33. package/dist/packages/sdk-ui/src/common/components/radio.d.ts +8 -0
  34. package/dist/packages/sdk-ui/src/common/hooks/use-combined-menu.d.ts +3 -4
  35. package/dist/packages/sdk-ui/src/const.d.ts +1 -0
  36. package/dist/packages/sdk-ui/src/dashboard/components/dashboard-container.d.ts +1 -1
  37. package/dist/packages/sdk-ui/src/dashboard/types.d.ts +6 -0
  38. package/dist/packages/sdk-ui/src/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +2 -2
  39. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
  40. package/dist/packages/sdk-ui/src/filters/components/custom-filter-tile.d.ts +1 -1
  41. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +1 -1
  42. package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +1 -1
  43. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/index.d.ts +4 -0
  44. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/input.d.ts +5 -0
  45. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/search-input.d.ts +8 -0
  46. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +14 -0
  47. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/index.d.ts +3 -0
  48. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/multi-select-item.d.ts +7 -0
  49. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +12 -0
  50. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +12 -0
  51. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select-item.d.ts +7 -0
  52. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select.d.ts +12 -0
  53. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/types.d.ts +7 -0
  54. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/utils.d.ts +4 -0
  55. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/selectable-section.d.ts +11 -0
  56. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-popover.d.ts +12 -0
  57. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor.d.ts +8 -0
  58. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/multi-select-control.d.ts +7 -0
  59. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/include-all-section.d.ts +9 -0
  60. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/members-section.d.ts +11 -0
  61. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/text-condition-section.d.ts +11 -0
  62. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +5 -0
  63. package/dist/packages/sdk-ui/src/filters/components/filter-tile-container.d.ts +42 -0
  64. package/dist/packages/sdk-ui/src/filters/components/filter-tile.d.ts +19 -35
  65. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel.d.ts +2 -0
  66. package/dist/packages/sdk-ui/src/filters/components/filters-panel/index.d.ts +0 -1
  67. package/dist/packages/sdk-ui/src/filters/components/icons/arrow-down-icon.d.ts +1 -1
  68. package/dist/packages/sdk-ui/src/filters/components/icons/check-icon.d.ts +2 -0
  69. package/dist/packages/sdk-ui/src/filters/components/icons/index.d.ts +1 -0
  70. package/dist/packages/sdk-ui/src/filters/components/icons/search-icon.d.ts +1 -1
  71. package/dist/packages/sdk-ui/src/filters/components/index.d.ts +7 -0
  72. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/index.d.ts +1 -1
  73. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +3 -3
  74. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/members-reducer.d.ts +7 -0
  75. package/dist/packages/sdk-ui/src/filters/components/unsupported-filter-tile.d.ts +1 -1
  76. package/dist/packages/sdk-ui/src/filters/helpers.d.ts +1 -122
  77. package/dist/packages/sdk-ui/src/filters/hooks/index.d.ts +1 -0
  78. package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +77 -0
  79. package/dist/packages/sdk-ui/src/filters/index.d.ts +2 -7
  80. package/dist/packages/sdk-ui/src/index.d.ts +1 -1
  81. package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +9 -1
  82. package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-totals-formatter.d.ts +4 -0
  83. package/dist/packages/sdk-ui/src/props.d.ts +15 -15
  84. package/dist/packages/sdk-ui/src/query/date-formats/apply-date-format.d.ts +1 -1
  85. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +29 -0
  86. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +58 -0
  87. package/dist/packages/sdk-ui/src/types.d.ts +27 -2
  88. package/dist/packages/sdk-ui/src/utils/filter-relations.d.ts +30 -72
  89. package/dist/packages/sdk-ui/src/widget-by-id/dashboard-widget.d.ts +1 -1
  90. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-data-options.d.ts +1 -2
  91. package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +14 -0
  92. package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +2 -57
  93. package/dist/useQuery-CRu7WcYd.cjs +916 -0
  94. package/dist/{useQuery-DOgANgSI.js → useQuery-CdtycPOg.js} +17043 -16999
  95. package/dist/{widget-composer-ldmqMCC4.cjs → widget-composer-DyY3yi_b.cjs} +10 -8
  96. package/dist/{widget-composer-NNyD6tF2.js → widget-composer-G4mPX-JO.js} +168 -143
  97. package/package.json +7 -7
  98. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel-tile.d.ts +0 -24
  99. package/dist/useQuery-KI9icU5_.cjs +0 -915
@@ -0,0 +1,77 @@
1
+ import { DataSource, Filter } from '@sisense/sdk-data';
2
+ import { Member, SelectedMember } from '../components/member-filter-tile';
3
+ /**
4
+ * Params for {@link useGetFilterMembers}
5
+ */
6
+ export interface GetFilterMembersParams {
7
+ /** Provided members filter */
8
+ filter: Filter;
9
+ /** Default data source to use if filter does not have one */
10
+ defaultDataSource?: DataSource;
11
+ /** List of filters this filter is dependent on */
12
+ parentFilters?: Filter[];
13
+ }
14
+ export interface GetFilterMembersSuccess {
15
+ /** Whether the data fetching is loading */
16
+ isLoading: boolean;
17
+ /** Whether the data fetching has failed */
18
+ isError: false;
19
+ /** The error if any occurred */
20
+ error: undefined;
21
+ /** The result data */
22
+ data: {
23
+ selectedMembers: SelectedMember[];
24
+ allMembers: Member[];
25
+ excludeMembers: boolean;
26
+ enableMultiSelection: boolean;
27
+ hasBackgroundFilter: boolean;
28
+ };
29
+ }
30
+ export interface GetFilterMembersError {
31
+ /** Whether the data fetching is loading */
32
+ isLoading: false;
33
+ /** Whether the data fetching has failed */
34
+ error: Error;
35
+ /** The error if any occurred */
36
+ isError: true;
37
+ /** The result data */
38
+ data: undefined;
39
+ }
40
+ /**
41
+ * State for {@link useGetFilterMembers} hook.
42
+ */
43
+ export type GetFilterMembersResult = GetFilterMembersError | GetFilterMembersSuccess;
44
+ /**
45
+ * {@link useGetFilterMembers} without tracking to be used inside other hooks or components in Compose SDK.
46
+ *
47
+ * @param params - Parameters of the query
48
+ * @internal
49
+ */
50
+ export declare const useGetFilterMembersInternal: ({ filter, defaultDataSource, parentFilters, }: GetFilterMembersParams) => GetFilterMembersResult;
51
+ /**
52
+ * Hook that fetches members of the provided filter
53
+ *
54
+ * Those members can be used to display a list of members in a third-party filter component such as Material UI Select.
55
+ *
56
+ * * ## Example
57
+ *
58
+ * Retrieve selected members from a Filter on Country of the Sample ECommerce data model.
59
+ *
60
+ * ```tsx
61
+ * const {
62
+ * isLoading,
63
+ * data: { selectedMembers, allMembers, excludeMembers, enableMultiSelection },
64
+ * } = useGetFilterMembers({ filter: filterFactory.members(DM.Country.Country, ['United States', 'Canada']) });
65
+ *
66
+ * if (isLoading) {
67
+ * return <div>Loading...</div>;
68
+ * }
69
+ * console.log('selectedMembers', selectedMembers);
70
+ * ```
71
+ *
72
+ * @returns Results that contains the status of the filter query execution, the result data, or the error if any occurred
73
+ * @shortDescription Hook to fetch members of a filter
74
+ * @group Filter Tiles
75
+ * @beta
76
+ */
77
+ export declare const useGetFilterMembers: (args_0: GetFilterMembersParams) => GetFilterMembersResult;
@@ -1,8 +1,3 @@
1
- export * from './components/member-filter-tile';
2
- export * from './components/date-filter';
3
- export * from './components/criteria-filter-tile';
4
- export * from './components/cascading-filter-tile';
5
- export * from './components/filters-panel';
6
- export * from './components/custom-filter-tile';
7
- export * from './helpers';
1
+ export * from './components';
2
+ export * from './hooks';
8
3
  export { type FilterVariant } from './components/common/filter-utils';
@@ -45,7 +45,7 @@ export { usePlugins } from './plugins-provider/plugins-provider';
45
45
  export { extractDimensionsAndMeasures, useExecutePluginQuery, } from './plugins-provider/use-execute-plugin-query';
46
46
  export { getThemeSettingsByOid } from './themes/theme-loader';
47
47
  export { getDefaultThemeSettings } from './theme-provider/default-theme-settings';
48
- export { useGetDashboardModel, useGetDashboardModels, useDashboardModel, getDashboardModel, getDashboardModels, useGetWidgetModel, getWidgetModel, translateToDashboardResponse, translateToDashboardsResponse, useGetHierarchyModels, getHierarchyModels, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type WidgetModel, type WidgetDataOptions, type WidgetModelState, type WidgetModelLoadingState, type WidgetModelErrorState, type WidgetModelSuccessState, type GetWidgetModelParams, type GetDashboardModelOptions, type GetDashboardModelsOptions, type WidgetsPanelColumnLayout as WidgetsPanelColumnLayout, type WidgetsPanelLayout as WidgetsPanelLayout, type WidgetId, type WidgetsOptions, type CommonFiltersOptions, type CommonFiltersApplyMode, type FiltersIgnoringRules, type HierarchyModel, type Hierarchy, type HierarchyId, type GetHierarchyModelsParams, type HierarchyModelsState, type HierarchyModelsLoadingState, type HierarchyModelsErrorState, type HierarchyModelsSuccessState, UseDashboardModelActionType, } from './models';
48
+ export { useGetDashboardModel, useGetDashboardModels, useDashboardModel, getDashboardModel, getDashboardModels, useGetWidgetModel, getWidgetModel, translateToDashboardResponse, translateToDashboardsResponse, useGetHierarchyModels, getHierarchyModels, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type WidgetModel, type WidgetDataOptions, type WidgetModelState, type WidgetModelLoadingState, type WidgetModelErrorState, type WidgetModelSuccessState, type GetWidgetModelParams, type GetDashboardModelOptions, type GetDashboardModelsOptions, type WidgetsPanelColumnLayout, type WidgetsPanelLayout, type WidgetId, type WidgetsOptions, type CommonFiltersOptions, type CommonFiltersApplyMode, type FiltersIgnoringRules, type HierarchyModel, type Hierarchy, type HierarchyId, type GetHierarchyModelsParams, type HierarchyModelsState, type HierarchyModelsLoadingState, type HierarchyModelsErrorState, type HierarchyModelsSuccessState, UseDashboardModelActionType, } from './models';
49
49
  /**
50
50
  * Utility functions to translate a Fusion widget model from and to other widget data structures
51
51
  *
@@ -152,6 +152,14 @@ export declare function fromWidgetDto(widgetDto: WidgetDto, themeSettings?: Comp
152
152
  * @internal
153
153
  */
154
154
  export declare function fromChartWidgetProps(chartWidgetProps: ChartWidgetProps): WidgetModel;
155
+ /**
156
+ * Creates a {@link WidgetModel} from a {@link WidgetProps}.
157
+ *
158
+ * @param widgetProps - The WidgetProps to be converted to a widget model
159
+ * @returns WidgetModel
160
+ * @internal
161
+ */
162
+ export declare function fromWidgetProps(widgetProps: WidgetProps): WidgetModel;
155
163
  /**
156
164
  * Data source as specified in the jaql
157
165
  * but with required filelds
@@ -160,7 +168,7 @@ export declare function fromChartWidgetProps(chartWidgetProps: ChartWidgetProps)
160
168
  */
161
169
  export type JaqlDataSourceForWidgetDto = JaqlDataSource & {
162
170
  id: string;
163
- address: string;
171
+ address?: string;
164
172
  };
165
173
  /**
166
174
  * Translates a {@link WidgetModel} to {@link WidgetDto}.
@@ -0,0 +1,4 @@
1
+ import { TFunction } from '@sisense/sdk-common/src/i18n/i18next';
2
+ import { PivotTreeNode } from '@sisense/sdk-pivot-client';
3
+ import type { PivotTableDataOptions } from '../../../chart-data-options/types';
4
+ export declare function createHeaderCellTotalsFormatter(dataOptions: PivotTableDataOptions, translate: TFunction): (cell: PivotTreeNode) => void;
@@ -477,7 +477,7 @@ export interface BaseChartProps extends BaseChartEventProps {
477
477
  *
478
478
  * To learn more about using filter factory functions to create filters, see the [Compose SDK Charts Guide](/guides/sdk/guides/charts/guide-compose-sdk-charts.html#filter-functions).
479
479
  *
480
- * (2) Array of {@link Filter} controlled by filter UI components – for example {@link MemberFilterTile}.
480
+ * (2) Array of {@link Filter} controlled by filter UI components – for example {@link @sisense/sdk-ui!MemberFilterTile | `MemberFilterTile`}.
481
481
  *
482
482
  * Use this option for filters that you want your users to set using pre-built UI components.
483
483
  *
@@ -501,7 +501,7 @@ export interface BaseChartProps extends BaseChartEventProps {
501
501
  * To learn more about using filter factory functions to create highlights, see the
502
502
  * [Compose SDK Charts Guide](/guides/sdk/guides/charts/guide-compose-sdk-charts.html#filter-functions-for-highlighting).
503
503
  *
504
- * (2) Array of {@link Filter} controlled by filter UI components – for example {@link MemberFilterTile}.
504
+ * (2) Array of {@link Filter} controlled by filter UI components – for example {@link @sisense/sdk-ui!MemberFilterTile | `MemberFilterTile`}.
505
505
  *
506
506
  * Use this option for highlights that you want your users to set using pre-built UI components.
507
507
  *
@@ -660,7 +660,7 @@ export interface ColumnChartProps extends BaseChartProps, HighchartsBasedChartEv
660
660
  styleOptions?: StackableStyleOptions;
661
661
  }
662
662
  /**
663
- * Props of the {@link FunnelChart} component.
663
+ * Props of the {@link @sisense/sdk-ui!FunnelChart | `FunnelChart`} component.
664
664
  */
665
665
  export interface FunnelChartProps extends BaseChartProps, HighchartsBasedChartEventProps, RegularChartEventProps {
666
666
  /**
@@ -677,7 +677,7 @@ export interface FunnelChartProps extends BaseChartProps, HighchartsBasedChartEv
677
677
  styleOptions?: FunnelStyleOptions;
678
678
  }
679
679
  /**
680
- * Props of the {@link LineChart} component.
680
+ * Props of the {@link @sisense/sdk-ui!LineChart | `LineChart`} component.
681
681
  */
682
682
  export interface LineChartProps extends BaseChartProps, HighchartsBasedChartEventProps, RegularChartEventProps {
683
683
  /**
@@ -697,7 +697,7 @@ export interface LineChartProps extends BaseChartProps, HighchartsBasedChartEven
697
697
  styleOptions?: LineStyleOptions;
698
698
  }
699
699
  /**
700
- * Props of the {@link PieChart} component.
700
+ * Props of the {@link @sisense/sdk-ui!PieChart | `PieChart`} component.
701
701
  */
702
702
  export interface PieChartProps extends BaseChartProps, HighchartsBasedChartEventProps, RegularChartEventProps {
703
703
  /**
@@ -714,7 +714,7 @@ export interface PieChartProps extends BaseChartProps, HighchartsBasedChartEvent
714
714
  styleOptions?: PieStyleOptions;
715
715
  }
716
716
  /**
717
- * Props of the {@link PolarChart} component.
717
+ * Props of the {@link @sisense/sdk-ui!PolarChart | `PolarChart`} component.
718
718
  */
719
719
  export interface PolarChartProps extends BaseChartProps, HighchartsBasedChartEventProps, RegularChartEventProps {
720
720
  /**
@@ -734,7 +734,7 @@ export interface PolarChartProps extends BaseChartProps, HighchartsBasedChartEve
734
734
  styleOptions?: PolarStyleOptions;
735
735
  }
736
736
  /**
737
- * Props of the {@link IndicatorChart} component.
737
+ * Props of the {@link @sisense/sdk-ui!IndicatorChart | `IndicatorChart`} component.
738
738
  */
739
739
  export interface IndicatorChartProps extends BaseChartProps, IndicatorChartEventProps {
740
740
  /**
@@ -751,7 +751,7 @@ export interface IndicatorChartProps extends BaseChartProps, IndicatorChartEvent
751
751
  styleOptions?: IndicatorStyleOptions;
752
752
  }
753
753
  /**
754
- * Props of the {@link Table} component.
754
+ * Props of the {@link @sisense/sdk-ui!Table | `Table`} component.
755
755
  */
756
756
  export interface TableProps extends BaseChartEventProps {
757
757
  /**
@@ -788,7 +788,7 @@ export interface TableProps extends BaseChartEventProps {
788
788
  refreshCounter?: number;
789
789
  }
790
790
  /**
791
- * Props of the {@link PivotTable} component.
791
+ * Props of the {@link @sisense/sdk-ui!PivotTable | `PivotTable`} component.
792
792
  */
793
793
  export interface PivotTableProps {
794
794
  /**
@@ -832,7 +832,7 @@ export interface PivotTableProps {
832
832
  refreshCounter?: number;
833
833
  }
834
834
  /**
835
- * Props of the {@link ScatterChart} component.
835
+ * Props of the {@link @sisense/sdk-ui!ScatterChart | `ScatterChart`} component.
836
836
  */
837
837
  export interface ScatterChartProps extends BaseChartProps, ScatterChartEventProps, HighchartsBasedChartEventProps {
838
838
  /**
@@ -849,7 +849,7 @@ export interface ScatterChartProps extends BaseChartProps, ScatterChartEventProp
849
849
  styleOptions?: ScatterStyleOptions;
850
850
  }
851
851
  /**
852
- * Props for the {@link WidgetById} component
852
+ * Props for the {@link @sisense/sdk-ui!WidgetById | `WidgetById`} component
853
853
  */
854
854
  export interface WidgetByIdProps extends Omit<ChartWidgetProps, 'dataSource' | 'dataOptions' | 'chartType' | 'styleOptions'> {
855
855
  /**
@@ -923,7 +923,7 @@ export interface WidgetByIdProps extends Omit<ChartWidgetProps, 'dataSource' | '
923
923
  /**
924
924
  * Props for the {@link DashboardWidget} component
925
925
  *
926
- * @deprecated Use {@link WidgetById} and {@link WidgetByIdProps} instead
926
+ * @deprecated Use {@link @sisense/sdk-ui!WidgetById | `WidgetById`} and {@link WidgetByIdProps} instead
927
927
  */
928
928
  export interface DashboardWidgetProps extends WidgetByIdProps {
929
929
  /**
@@ -1286,7 +1286,7 @@ export interface ExecuteQueryByWidgetIdProps {
1286
1286
  onBeforeQuery?: (jaql: any) => any | Promise<any>;
1287
1287
  }
1288
1288
  /**
1289
- * Props of the {@link TreemapChart} component.
1289
+ * Props of the {@link @sisense/sdk-ui!TreemapChart | `TreemapChart`} component.
1290
1290
  */
1291
1291
  export interface TreemapChartProps extends BaseChartProps, HighchartsBasedChartEventProps, RegularChartEventProps {
1292
1292
  /**
@@ -1303,7 +1303,7 @@ export interface TreemapChartProps extends BaseChartProps, HighchartsBasedChartE
1303
1303
  styleOptions?: TreemapStyleOptions;
1304
1304
  }
1305
1305
  /**
1306
- * Props of the {@link SunburstChart} component.
1306
+ * Props of the {@link @sisense/sdk-ui!SunburstChart | `SunburstChart`} component.
1307
1307
  */
1308
1308
  export interface SunburstChartProps extends BaseChartProps, RegularChartEventProps, HighchartsBasedChartEventProps {
1309
1309
  /**
@@ -1337,7 +1337,7 @@ export interface BoxplotChartProps extends BaseChartProps, BoxplotChartEventProp
1337
1337
  styleOptions?: BoxplotStyleOptions;
1338
1338
  }
1339
1339
  /**
1340
- * Props of the {@link ScattermapChart} component.
1340
+ * Props of the {@link @sisense/sdk-ui!ScattermapChart | `ScattermapChart`} component.
1341
1341
  */
1342
1342
  export interface ScattermapChartProps extends BaseChartProps, ScattermapChartEventProps {
1343
1343
  /**
@@ -61,5 +61,5 @@ export declare const defaultDateConfig: DateConfig;
61
61
  * @param cfg -
62
62
  */
63
63
  export declare function applyDateFormat(date: Date, format: DateFormat, locale?: Locale, cfg?: DateConfig): string;
64
- export declare function getDefaultDateMask(granularity?: string): "HH:mm:ss" | "yyyy" | "MM/yyyy" | "ww yyyy" | "HH:mm" | "shortDate" | "fullDate" | "Q yyyy";
64
+ export declare function getDefaultDateMask(granularity?: string): "HH:mm:ss" | "yyyy" | "MM/yyyy" | "ww yyyy" | "HH:mm" | "Q yyyy" | "shortDate" | "fullDate";
65
65
  export {};
@@ -244,6 +244,8 @@ export declare const translation: {
244
244
  fetchHistory: string;
245
245
  recommendationsNotAvailable: string;
246
246
  insightsNotAvailable: string;
247
+ VectorDBEmptyResponseError: string;
248
+ LlmBadConfigurationError: string;
247
249
  unexpectedChatResponse: string;
248
250
  unexpected: string;
249
251
  unknownResponse: string;
@@ -255,7 +257,34 @@ export declare const translation: {
255
257
  buttons: {
256
258
  apply: string;
257
259
  cancel: string;
260
+ selectAll: string;
261
+ clearAll: string;
258
262
  };
263
+ labels: {
264
+ includeAll: string;
265
+ allowMultiSelection: string;
266
+ };
267
+ placeholders: {
268
+ selectFromList: string;
269
+ enterValue: string;
270
+ };
271
+ conditions: {
272
+ exclude: string;
273
+ contains: string;
274
+ notContain: string;
275
+ startsWith: string;
276
+ notStartsWith: string;
277
+ endsWith: string;
278
+ notEndsWith: string;
279
+ equals: string;
280
+ notEquals: string;
281
+ isEmpty: string;
282
+ isNotEmpty: string;
283
+ };
284
+ };
285
+ pivotTable: {
286
+ grandTotal: string;
287
+ subTotal: string;
259
288
  };
260
289
  };
261
290
  /**
@@ -254,6 +254,8 @@ export declare const resources: {
254
254
  fetchHistory: string;
255
255
  recommendationsNotAvailable: string;
256
256
  insightsNotAvailable: string;
257
+ VectorDBEmptyResponseError: string;
258
+ LlmBadConfigurationError: string;
257
259
  unexpectedChatResponse: string;
258
260
  unexpected: string;
259
261
  unknownResponse: string;
@@ -265,8 +267,35 @@ export declare const resources: {
265
267
  buttons: {
266
268
  apply: string;
267
269
  cancel: string;
270
+ selectAll: string;
271
+ clearAll: string;
272
+ };
273
+ labels: {
274
+ includeAll: string;
275
+ allowMultiSelection: string;
276
+ };
277
+ placeholders: {
278
+ selectFromList: string;
279
+ enterValue: string;
280
+ };
281
+ conditions: {
282
+ exclude: string;
283
+ contains: string;
284
+ notContain: string;
285
+ startsWith: string;
286
+ notStartsWith: string;
287
+ endsWith: string;
288
+ notEndsWith: string;
289
+ equals: string;
290
+ notEquals: string;
291
+ isEmpty: string;
292
+ isNotEmpty: string;
268
293
  };
269
294
  };
295
+ pivotTable: {
296
+ grandTotal: string;
297
+ subTotal: string;
298
+ };
270
299
  };
271
300
  uk: {
272
301
  errors: {
@@ -514,6 +543,8 @@ export declare const resources: {
514
543
  fetchHistory: string;
515
544
  recommendationsNotAvailable: string;
516
545
  insightsNotAvailable: string;
546
+ VectorDBEmptyResponseError: string;
547
+ LlmBadConfigurationError: string;
517
548
  unexpectedChatResponse: string;
518
549
  unexpected: string;
519
550
  unknownResponse: string;
@@ -525,7 +556,34 @@ export declare const resources: {
525
556
  buttons: {
526
557
  apply: string;
527
558
  cancel: string;
559
+ selectAll: string;
560
+ clearAll: string;
561
+ };
562
+ labels: {
563
+ includeAll: string;
564
+ allowMultiSelection: string;
565
+ };
566
+ placeholders: {
567
+ selectFromList: string;
568
+ enterValue: string;
569
+ };
570
+ conditions: {
571
+ exclude: string;
572
+ contains: string;
573
+ notContain: string;
574
+ startsWith: string;
575
+ notStartsWith: string;
576
+ endsWith: string;
577
+ notEndsWith: string;
578
+ equals: string;
579
+ notEquals: string;
580
+ isEmpty: string;
581
+ isNotEmpty: string;
528
582
  };
529
583
  };
584
+ pivotTable: {
585
+ grandTotal: string;
586
+ subTotal: string;
587
+ };
530
588
  };
531
589
  };
@@ -66,6 +66,25 @@ export type SeriesLabels = {
66
66
  enabled: boolean;
67
67
  /** Rotation of series labels (in degrees) */
68
68
  rotation?: number;
69
+ /**
70
+ * Boolean flag that defines if value should be shown in series labels
71
+ * (if not specified, value will be shown by default)
72
+ * */
73
+ showValue?: boolean;
74
+ /**
75
+ * Boolean flag that defines if percentage should be shown in series labels
76
+ * (only applicable for subtypes that support percentage, like "stacked100")
77
+ * */
78
+ showPercentage?: boolean;
79
+ };
80
+ /**
81
+ * @internal
82
+ */
83
+ export type TotalLabels = {
84
+ /** Boolean flag that defines if total labels should be shown on the chart */
85
+ enabled: boolean;
86
+ /** Rotation of total labels (in degrees) */
87
+ rotation?: number;
69
88
  };
70
89
  /** Options that define legend - a key that provides information about the data series or colors used in chart. */
71
90
  export type Legend = {
@@ -177,6 +196,12 @@ export interface BaseStyleOptions extends ReservedStyleOptions {
177
196
  * @internal
178
197
  */
179
198
  seriesLabels?: SeriesLabels;
199
+ /**
200
+ * Configuration for total labels
201
+ *
202
+ * @internal
203
+ */
204
+ totalLabels?: TotalLabels;
180
205
  /** Data limit for series or categories that will be plotted */
181
206
  dataLimits?: DataLimits;
182
207
  /**
@@ -1362,7 +1387,7 @@ export type SeriesWithAlerts<T> = {
1362
1387
  };
1363
1388
  /**
1364
1389
  * Context menu position coordinates
1365
- * Used in {@link ContextMenuProps}
1390
+ * Used in {@link @sisense/sdk-ui!ContextMenuProps | `ContextMenuProps`}
1366
1391
  */
1367
1392
  export type MenuPosition = {
1368
1393
  /** Horizontal position */
@@ -1372,7 +1397,7 @@ export type MenuPosition = {
1372
1397
  };
1373
1398
  /**
1374
1399
  * Context menu section
1375
- * Used in {@link ContextMenuProps}
1400
+ * Used in {@link @sisense/sdk-ui!ContextMenuProps | `ContextMenuProps`}
1376
1401
  */
1377
1402
  export type MenuItemSection = {
1378
1403
  /** @internal */
@@ -1,85 +1,43 @@
1
- import { Filter, FilterRelations, FilterRelationsModel, FilterRelationsModelNode } from '@sisense/sdk-data';
1
+ import { Filter, FilterRelations, FilterRelationsDescription, FilterRelationsJaql, FilterRelationsRules } from '@sisense/sdk-data';
2
+ export { splitFiltersAndRelations, getFiltersArray, combineFiltersAndRelations, isTrivialSingleNodeRelations, calculateNewRelations, getRelationsWithReplacedFilter, convertFilterRelationsModelToRelationRules, filterRelationRulesToFilterRelationsModel, isOpenBracketDescriptionNode, isCloseBracketDescriptionNode, isAttributeDescriptionNode, isOperatorDescriptionNode, mergeFiltersOrFilterRelations, type FilterRelationsDescription, type FilterRelationsRules, } from '@sisense/sdk-data';
2
3
  /**
3
- * Rules of filter relations - logical operators of how filters are related to each other.
4
+ * @internal
4
5
  */
5
- export type FilterRelationsRules = FilterRelationsRule | FilterRelationsRuleNode | null;
6
- type FilterRelationsRule = {
7
- left: FilterRelationsRuleNode;
8
- right: FilterRelationsRuleNode;
9
- operator: 'AND' | 'OR';
10
- };
11
- type FilterRelationsRuleIdNode = {
12
- instanceid: string;
13
- };
14
- type FilterRelationsRuleNode = FilterRelationsRule | FilterRelationsRuleIdNode;
6
+ export declare enum FiltersMergeStrategyEnum {
7
+ WIDGET_FIRST = "widgetFirst",
8
+ CODE_FIRST = "codeFirst",
9
+ CODE_ONLY = "codeOnly"
10
+ }
11
+ export type FiltersMergeStrategy = `${FiltersMergeStrategyEnum}`;
15
12
  /**
16
- * Merges source filters with target filters and recalculates relations.
13
+ * Textual representation of filter relations for debugging purposes.
14
+ * Returns string like "(([Gender] AND [Country]) OR [Condition])".
17
15
  *
18
- * @param sourceFilters - The source filters or filter relations to merge.
19
- * @param targetFilters - The target filters or filter relations to merge with.
20
- * @returns Updated source filters merged with target filters. If the source filters are FilterRelations, the relations are recalculated.
21
- */
22
- export declare function mergeFiltersOrFilterRelations(sourceFilters: Filter[] | FilterRelations | undefined, targetFilters: Filter[] | FilterRelations | undefined): Filter[] | FilterRelations;
23
- /**
24
- * Splits filters or filter relations into filters and relations rules.
25
- */
26
- export declare function splitFiltersAndRelations(filtersOrFilterRelations: Filter[] | FilterRelations | undefined): {
27
- filters: Filter[];
28
- relations: FilterRelationsRules;
29
- };
30
- /**
31
- * Returns pure filters array from the given filters or filter relations.
32
- */
33
- export declare function getFiltersArray(filtersOrFilterRelations: Filter[] | FilterRelations | undefined): Filter[];
34
- /**
35
- * Combines filters and relations into a single FilterRelations object.
36
- * If the relations are empty or relations are trivial (single node), the filters are returned as is.
37
- */
38
- export declare function combineFiltersAndRelations(filters: Filter[], relations: FilterRelationsRules): Filter[] | FilterRelations;
39
- /** Type guard for checking if a node is a single relations node (trivial case when relations are needless). */
40
- export declare function isTrivialSingleNodeRelations(relations: FilterRelationsRules): relations is FilterRelationsRuleIdNode;
41
- /**
42
- * Calculates new relations based on the changes in filters.
43
- */
44
- export declare function calculateNewRelations(prevFilters: Filter[], prevRelations: FilterRelationsRules, newFilters: Filter[]): FilterRelationsRules;
45
- /**
46
- * Replaces a filter in the relations tree with a new filter.
16
+ * @internal
47
17
  */
48
- export declare function getRelationsWithReplacedFilter(relations: FilterRelationsRules, filterToReplace: Filter, newFilter: Filter): FilterRelationsRules;
18
+ export declare function getRelationsAsText(relations: FilterRelationsRules, filters: Filter[]): string;
49
19
  /**
50
- * Converts filter relations model from Fusion to internal CSDK filter relations rules.
20
+ * @internal
51
21
  */
52
- export declare function convertFilterRelationsModelToRelationRules(filterRelationsModel: FilterRelationsModel | FilterRelationsModelNode | undefined, filters: Filter[]): FilterRelationsRules;
22
+ export declare function getFilterRelationsDescription(relations: FilterRelationsRules, filters: Filter[]): FilterRelationsDescription;
53
23
  /**
54
- * Converts internal CSDK filter relations rules to filter relations model for Fusion.
24
+ * Merge two arrays of filters using the specified merge strategy.
25
+ *
26
+ * @param {Filter[]} widgetFilters - The filters from the widget.
27
+ * @param {Filter[]} codeFilters - The filters from the code.
28
+ * @param {FiltersMergeStrategy} [mergeStrategy] - The strategy to use for merging filters.
29
+ * @returns {Filter[]} The merged filters based on the selected strategy.
30
+ * @internal
55
31
  */
56
- export declare function filterRelationRulesToFilterRelationsModel(filterRelationRules: FilterRelationsRules, filters: Filter[]): FilterRelationsModel | FilterRelationsModelNode | undefined;
32
+ export declare function mergeFiltersByStrategy(widgetFilters?: Filter[] | FilterRelations, codeFilters?: Filter[] | FilterRelations, mergeStrategy?: FiltersMergeStrategy): Filter[] | FilterRelations;
57
33
  /**
58
- * Textual representation of filter relations for debugging purposes.
59
- * Returns string like "(([Gender] AND [Country]) OR [Condition])".
34
+ * Replaces filters for same dimensions in filter relations jaql.
35
+ * Widget filters have higher priority than dashboard filters.
60
36
  *
37
+ * @param widgetFilters - The filters from the widget.
38
+ * @param dashboardFilters - The filters from the dashboard.
39
+ * @param relations - The filter relations before replacement.
40
+ * @returns The filter relations after replacement.
61
41
  * @internal
62
42
  */
63
- export declare function getRelationsAsText(relations: FilterRelationsRules, filters: Filter[]): string;
64
- export declare function getFilterRelationsDescription(relations: FilterRelationsRules, filters: Filter[]): FilterRelationsDescription;
65
- export type FilterRelationsDescription = FilterRelationsDescriptionNode[];
66
- type FilterRelationsDescriptionNode = OpenBracketDescriptionNode | CloseBracketDescriptionNode | AttributeDescriptionNode | OperatorDescriptionNode;
67
- type OpenBracketDescriptionNode = {
68
- nodeType: 'openBracket';
69
- };
70
- export declare function isOpenBracketDescriptionNode(node: FilterRelationsDescriptionNode): node is OpenBracketDescriptionNode;
71
- type CloseBracketDescriptionNode = {
72
- nodeType: 'closeBracket';
73
- };
74
- export declare function isCloseBracketDescriptionNode(node: FilterRelationsDescriptionNode): node is CloseBracketDescriptionNode;
75
- type AttributeDescriptionNode = {
76
- nodeType: 'attribute';
77
- attribute: string;
78
- };
79
- export declare function isAttributeDescriptionNode(node: FilterRelationsDescriptionNode): node is AttributeDescriptionNode;
80
- type OperatorDescriptionNode = {
81
- nodeType: 'operator';
82
- operator: 'AND' | 'OR';
83
- };
84
- export declare function isOperatorDescriptionNode(node: FilterRelationsDescriptionNode): node is OperatorDescriptionNode;
85
- export {};
43
+ export declare function applyWidgetFiltersToRelations(widgetFilters: Filter[], dashboardFilters: Filter[], relations: FilterRelationsJaql | undefined): FilterRelationsJaql | undefined;
@@ -22,6 +22,6 @@ import { DashboardWidgetProps } from '../props.js';
22
22
  *
23
23
  * @group Fusion Assets
24
24
  * @fusionEmbed
25
- * @deprecated Use {@link WidgetById} instead.
25
+ * @deprecated Use {@link @sisense/sdk-ui!WidgetById | `WidgetById`} instead.
26
26
  */
27
27
  export declare const DashboardWidget: FunctionComponent<DashboardWidgetProps>;
@@ -1,8 +1,7 @@
1
- import { DimensionalBaseMeasure, DimensionalAttribute, DimensionalCalculatedMeasure, Jaql, JaqlDataSource } from '@sisense/sdk-data';
1
+ import { JaqlDataSource } from '@sisense/sdk-data';
2
2
  import { StyledMeasureColumn, StyledColumn, Color } from '../types.js';
3
3
  import { Panel, PanelItem, WidgetType, WidgetStyle, BoxplotWidgetStyle } from './types.js';
4
4
  import { WidgetDataOptions } from '../models/index.js';
5
- export declare function createDimensionalElementFromJaql(jaql: Jaql, format?: PanelItem['format']): import("@sisense/sdk-data").Filter | DimensionalAttribute | DimensionalCalculatedMeasure | DimensionalBaseMeasure;
6
5
  /** @internal */
7
6
  export declare function applyStatisticalModels(dataOption: StyledMeasureColumn, statisticalModels?: {
8
7
  forecast?: {
@@ -290,6 +290,20 @@ export type PanelColorFormatConditionOperator = '<' | '>' | '≤' | '<=' | '≥'
290
290
  type LabelsStyle = {
291
291
  enabled: boolean;
292
292
  rotation: number;
293
+ /**
294
+ * @internal
295
+ */
296
+ labels?: {
297
+ enabled?: boolean;
298
+ stacked?: boolean;
299
+ stackedPercentage?: boolean;
300
+ types?: {
301
+ count?: boolean;
302
+ percentage?: boolean;
303
+ relative?: boolean;
304
+ totals?: boolean;
305
+ };
306
+ };
293
307
  };
294
308
  type AxisTitleStyle = {
295
309
  enabled: boolean;