@sisense/sdk-ui 1.8.0 → 1.9.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 (80) hide show
  1. package/dist/ai/ai-disclaimer.d.ts +4 -1
  2. package/dist/ai/chat-config.d.ts +20 -0
  3. package/dist/ai/chat-dropup.d.ts +12 -0
  4. package/dist/ai/chat-frame.d.ts +7 -4
  5. package/dist/ai/chat-input.d.ts +4 -1
  6. package/dist/ai/chatbot.d.ts +0 -7
  7. package/dist/ai/common/dropup-section.d.ts +8 -0
  8. package/dist/ai/common/icon-button.d.ts +12 -0
  9. package/dist/ai/{toolbar.d.ts → common/toolbar.d.ts} +5 -0
  10. package/dist/ai/common/tooltip.d.ts +1 -1
  11. package/dist/ai/icons/arrow-left-icon.d.ts +5 -1
  12. package/dist/ai/icons/clear-chat-icon.d.ts +2 -1
  13. package/dist/ai/icons/expand-icon.d.ts +3 -1
  14. package/dist/ai/icons/info-icon.d.ts +3 -1
  15. package/dist/ai/icons/light-bulb-icon.d.ts +3 -1
  16. package/dist/ai/icons/message-icon.d.ts +2 -1
  17. package/dist/ai/icons/sisense-logo.d.ts +5 -1
  18. package/dist/ai/icons/three-dots-icon.d.ts +3 -1
  19. package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +2 -1
  20. package/dist/ai/icons/thumbs-down-icon.d.ts +2 -1
  21. package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +2 -1
  22. package/dist/ai/icons/thumbs-up-icon.d.ts +2 -1
  23. package/dist/ai/messages/clickable-message.d.ts +4 -2
  24. package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
  25. package/dist/ai/messages/insights-message.d.ts +2 -2
  26. package/dist/ai/messages/jaql-element.d.ts +5 -2
  27. package/dist/ai/messages/message-resolver.d.ts +2 -1
  28. package/dist/ai/messages/nlq-message-group.d.ts +6 -3
  29. package/dist/ai/messages/text-message.d.ts +4 -5
  30. package/dist/ai/nav-back-button.d.ts +6 -3
  31. package/dist/ai.js +2864 -2586
  32. package/dist/api/types/dashboard-dto.d.ts +16 -0
  33. package/dist/app/client-application.d.ts +6 -2
  34. package/dist/area-chart.d.ts +3 -3
  35. package/dist/bar-chart.d.ts +2 -2
  36. package/dist/chart-data-options/utils.d.ts +10 -0
  37. package/dist/chart-options-processor/theme-option-service.d.ts +0 -8
  38. package/dist/column-chart.d.ts +2 -2
  39. package/dist/common/components/loading-indicator.d.ts +82 -0
  40. package/dist/dashboard-widget/translate-widget-style-options.d.ts +3 -2
  41. package/dist/dashboard-widget/types.d.ts +22 -2
  42. package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +1 -0
  43. package/dist/dashboard-widget/utils.d.ts +2 -0
  44. package/dist/debounce-Cc9bQD5m.js +76199 -0
  45. package/dist/dynamic-size-container/default-size.d.ts +5 -1
  46. package/dist/dynamic-size-container/dynamic-size-container.d.ts +12 -3
  47. package/dist/filters/components/common/dropdown.d.ts +1 -1
  48. package/dist/filters/components/common/switch.d.ts +3 -1
  49. package/dist/index.d.ts +1 -1
  50. package/dist/index.js +46825 -7395
  51. package/dist/line-chart.d.ts +2 -2
  52. package/dist/models/dashboard/translate-dashboard.d.ts +3 -2
  53. package/dist/models/dashboard/types.d.ts +6 -8
  54. package/dist/models/widget/use-get-widget-model.d.ts +1 -1
  55. package/dist/models/widget/widget-model.d.ts +50 -6
  56. package/dist/pie-chart.d.ts +2 -2
  57. package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +20 -0
  58. package/dist/pivot-table/sorting-utils.d.ts +11 -55
  59. package/dist/pivot-table/use-get-pivot-table-query.d.ts +10 -2
  60. package/dist/pivot-table/use-pivot-table-data-options-internal.d.ts +15 -0
  61. package/dist/polar-chart.d.ts +2 -2
  62. package/dist/props.d.ts +60 -1
  63. package/dist/query-execution/use-execute-query.d.ts +1 -1
  64. package/dist/scatter-chart.d.ts +1 -1
  65. package/dist/theme-provider/default-theme-settings.d.ts +9 -0
  66. package/dist/theme-provider/types.d.ts +7 -0
  67. package/dist/translation/resources/en.d.ts +3 -1
  68. package/dist/translation/resources/index.d.ts +6 -2
  69. package/dist/types.d.ts +170 -1
  70. package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
  71. package/dist/widgets/common/widget-container.d.ts +15 -0
  72. package/dist/widgets/drilldown-widget.d.ts +1 -1
  73. package/dist/widgets/pivot-table-widget.d.ts +22 -0
  74. package/package.json +10 -9
  75. package/dist/ai/chat-style-provider.d.ts +0 -22
  76. package/dist/ai/icons/magic-wand-icon.d.ts +0 -2
  77. package/dist/ai/magic-wand-dropdown.d.ts +0 -7
  78. package/dist/ai/suggestions/suggestion-dropdown-item.d.ts +0 -7
  79. package/dist/ai/suggestions/suggestion-dropdown-list.d.ts +0 -7
  80. package/dist/useQuery-cb11e76c.js +0 -121619
@@ -1,5 +1,9 @@
1
1
  import { TableType } from '../chart-options-processor/translations/types';
2
2
  import { ChartType } from '../types';
3
+ export declare const DEFAULT_PIVOT_TABLE_SIZE: {
4
+ width: number;
5
+ height: number;
6
+ };
3
7
  export declare const getChartDefaultSize: (chartType: ChartType | TableType) => {
4
8
  width: number;
5
9
  height: number;
@@ -7,7 +11,7 @@ export declare const getChartDefaultSize: (chartType: ChartType | TableType) =>
7
11
  type WidgetSizeOptions = {
8
12
  hasHeader?: boolean;
9
13
  };
10
- export declare const getWidgetDefaultSize: (chartType: ChartType | TableType, { hasHeader }?: WidgetSizeOptions) => {
14
+ export declare const getWidgetDefaultSize: (type: ChartType | TableType | 'pivot', { hasHeader }?: WidgetSizeOptions) => {
11
15
  width: number;
12
16
  height: number;
13
17
  };
@@ -8,16 +8,25 @@ export type DynamicSizeContainerProps = {
8
8
  defaultSize: ContainerSize;
9
9
  size?: Partial<ContainerSize>;
10
10
  rerenderOnResize?: boolean;
11
+ useContentSize?: {
12
+ width?: boolean;
13
+ height?: boolean;
14
+ };
11
15
  onSizeChange?: (size: ContainerSize) => void;
12
16
  };
13
17
  /**
14
18
  * A container component that adjusts its content size according to provided sizes
15
19
  * or dynamically based on inherited size from the parent/containing element.
16
20
  *
17
- * Priorities: If a "size" is provided, it takes the highest priority.
18
- * If not, the container's size is used, otherwise the "defaultSize" is used.
21
+ * Priorities:
22
+ * (1) If "useContentSize" is specified, it takes the highest priority.
23
+ * (2) Then if a "size" is provided, it takes the priority.
24
+ * (3) Then the container's size is used.
25
+ * (4) Otherwise the "defaultSize" is used.
26
+ *
27
+ *
19
28
  *
20
29
  * @param {DynamicSizeContainerProps} props - DynamicSizeContainer properties.
21
30
  * @returns {JSX.Element} The DynamicSizeContainer component.
22
31
  */
23
- export declare const DynamicSizeContainer: ({ children, defaultSize, size, rerenderOnResize, onSizeChange, }: DynamicSizeContainerProps) => JSX.Element;
32
+ export declare const DynamicSizeContainer: ({ children, defaultSize, size, rerenderOnResize, useContentSize, onSizeChange, }: DynamicSizeContainerProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { type FunctionComponent } from 'react';
2
- import { MenuList } from '@mui/material';
2
+ import MenuList from '@mui/material/MenuList';
3
3
  export type DropdownProps = {
4
4
  elements: JSX.Element[];
5
5
  icon?: JSX.Element;
@@ -1 +1,3 @@
1
- export declare const SisenseSwitchButton: import("@emotion/styled").StyledComponent<import("@mui/material/Switch").SwitchProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
1
+ export declare const SisenseSwitchButton: import("@emotion/styled").StyledComponent<import("@mui/material/Switch").SwitchProps & {
2
+ theme?: import("@emotion/react").Theme | undefined;
3
+ }, {}, {}>;
package/dist/index.d.ts CHANGED
@@ -32,7 +32,7 @@ export * from './areamap-chart';
32
32
  export * from './sisense-context/custom-sisense-context-provider';
33
33
  export * from './theme-provider/custom-theme-provider';
34
34
  export { getThemeSettingsByOid } from './themes/theme-loader';
35
- export { getDefaultThemeSettings } from './chart-options-processor/theme-option-service';
35
+ export { getDefaultThemeSettings } from './theme-provider/default-theme-settings';
36
36
  export { useGetDashboardModel, useGetDashboardModels, getDashboardModel, getDashboardModels, useGetWidgetModel, getWidgetModel, translateToDashboardResponse, translateToDashboardsResponse, 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, } from './models';
37
37
  export { boxWhiskerProcessResult } from './boxplot-utils';
38
38
  export { queryStateReducer } from './query-execution/query-state-reducer';