@sisense/sdk-ui 1.7.2 → 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 (106) hide show
  1. package/dist/ai/ai-disclaimer.d.ts +5 -0
  2. package/dist/ai/chat-config.d.ts +26 -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/chat-welcome-message.d.ts +1 -1
  24. package/dist/ai/messages/clickable-message.d.ts +11 -0
  25. package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
  26. package/dist/ai/messages/insights-message.d.ts +3 -3
  27. package/dist/ai/messages/jaql-element.d.ts +5 -2
  28. package/dist/ai/messages/message-resolver.d.ts +2 -1
  29. package/dist/ai/messages/nlq-message-group.d.ts +6 -3
  30. package/dist/ai/messages/text-message.d.ts +4 -6
  31. package/dist/ai/nav-back-button.d.ts +6 -3
  32. package/dist/ai/translators/model-translator.d.ts +1 -0
  33. package/dist/ai/translators/query-translator.d.ts +16 -1
  34. package/dist/ai/translators/translate-filters-to-code.d.ts +2 -0
  35. package/dist/ai/translators/translate-props-to-code.d.ts +1 -1
  36. package/dist/ai/translators/utils.d.ts +10 -0
  37. package/dist/ai.js +2981 -2592
  38. package/dist/api/types/dashboard-dto.d.ts +16 -0
  39. package/dist/app/client-application.d.ts +6 -2
  40. package/dist/area-chart.d.ts +14 -18
  41. package/dist/areamap-chart.d.ts +13 -15
  42. package/dist/bar-chart.d.ts +13 -18
  43. package/dist/boxplot-chart.d.ts +11 -25
  44. package/dist/chart/chart.d.ts +8 -66
  45. package/dist/chart-data/cartesian-data.d.ts +1 -1
  46. package/dist/chart-data/chart-data-service.d.ts +1 -2
  47. package/dist/chart-data/data-coloring/types.d.ts +1 -7
  48. package/dist/chart-data-options/types.d.ts +5 -3
  49. package/dist/chart-data-options/utils.d.ts +10 -0
  50. package/dist/chart-options-processor/theme-option-service.d.ts +0 -8
  51. package/dist/column-chart.d.ts +15 -18
  52. package/dist/common/components/loading-indicator.d.ts +82 -0
  53. package/dist/dashboard-widget/dashboard-widget.d.ts +10 -7
  54. package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
  55. package/dist/dashboard-widget/translate-widget-filters.d.ts +22 -14
  56. package/dist/dashboard-widget/translate-widget-style-options.d.ts +3 -2
  57. package/dist/dashboard-widget/types.d.ts +24 -4
  58. package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +1 -0
  59. package/dist/dashboard-widget/utils.d.ts +4 -2
  60. package/dist/debounce-Cc9bQD5m.js +76199 -0
  61. package/dist/dynamic-size-container/default-size.d.ts +5 -1
  62. package/dist/dynamic-size-container/dynamic-size-container.d.ts +12 -3
  63. package/dist/filters/components/common/dropdown.d.ts +1 -1
  64. package/dist/filters/components/common/switch.d.ts +3 -1
  65. package/dist/formulas/use-get-shared-formula.d.ts +3 -3
  66. package/dist/funnel-chart.d.ts +9 -36
  67. package/dist/index.d.ts +1 -2
  68. package/dist/index.js +46556 -7127
  69. package/dist/indicator-chart.d.ts +0 -1
  70. package/dist/line-chart.d.ts +14 -17
  71. package/dist/models/dashboard/translate-dashboard.d.ts +3 -2
  72. package/dist/models/dashboard/types.d.ts +6 -8
  73. package/dist/models/widget/use-get-widget-model.d.ts +16 -21
  74. package/dist/models/widget/widget-model.d.ts +50 -6
  75. package/dist/pie-chart.d.ts +14 -16
  76. package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +20 -0
  77. package/dist/pivot-table/pivot-table.d.ts +43 -3
  78. package/dist/pivot-table/sorting-utils.d.ts +11 -55
  79. package/dist/pivot-table/use-get-pivot-table-query.d.ts +10 -2
  80. package/dist/pivot-table/use-pivot-table-data-options-internal.d.ts +15 -0
  81. package/dist/polar-chart.d.ts +14 -17
  82. package/dist/props.d.ts +72 -13
  83. package/dist/query-execution/use-execute-pivot-query.d.ts +11 -29
  84. package/dist/query-execution/use-execute-query.d.ts +19 -26
  85. package/dist/scatter-chart.d.ts +11 -49
  86. package/dist/scattermap-chart.d.ts +9 -22
  87. package/dist/sunburst-chart.d.ts +10 -15
  88. package/dist/table/table.d.ts +7 -37
  89. package/dist/theme-provider/default-theme-settings.d.ts +9 -0
  90. package/dist/theme-provider/types.d.ts +7 -0
  91. package/dist/translation/resources/en.d.ts +4 -1
  92. package/dist/translation/resources/index.d.ts +8 -2
  93. package/dist/treemap-chart.d.ts +10 -21
  94. package/dist/types.d.ts +172 -4
  95. package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
  96. package/dist/widgets/common/drilldown.d.ts +1 -20
  97. package/dist/widgets/common/widget-container.d.ts +15 -0
  98. package/dist/widgets/drilldown-widget.d.ts +21 -33
  99. package/dist/widgets/pivot-table-widget.d.ts +22 -0
  100. package/package.json +10 -9
  101. package/dist/ai/chat-style-provider.d.ts +0 -22
  102. package/dist/ai/icons/magic-wand-icon.d.ts +0 -2
  103. package/dist/ai/magic-wand-dropdown.d.ts +0 -7
  104. package/dist/ai/suggestions/suggestion-dropdown-item.d.ts +0 -7
  105. package/dist/ai/suggestions/suggestion-dropdown-list.d.ts +0 -7
  106. package/dist/useQuery-76ecbd20.js +0 -121360
@@ -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
+ }, {}, {}>;
@@ -67,11 +67,11 @@ export type SharedFormulaSuccessState = {
67
67
  status: 'success';
68
68
  };
69
69
  /**
70
- * Fetch a [shared formula](https://docs.sisense.com/main/SisenseLinux/shared-formulas.htm) from the Sisense instance
70
+ * Fetch a [shared formula](https://docs.sisense.com/main/SisenseLinux/shared-formulas.htm) from the a Fusion Embed instance.
71
71
  *
72
- * Formula can be identified either by `oid` or by name and data source pair
72
+ * The formula can be identified either by `oid` or by name and data source pair.
73
73
  *
74
- * When the retrieval is successful but the shared formula is not found, the result is altered from being `undefined` to `null`
74
+ * When the retrieval is successful but the shared formula is not found, the resulting `formula` is `null`. When the retrieval is not successful the resulting `formula` is `undefined`.
75
75
  *
76
76
  * @example
77
77
  * An example of retrieving a shared formula by oid:
@@ -2,45 +2,18 @@
2
2
  import { FunnelChartProps } from './props';
3
3
  /**
4
4
  * A React component representing data progressively decreasing in size or quantity through a funnel shape.
5
- * See [Funnel Chart](https://docs.sisense.com/main/SisenseLinux/funnel-chart.htm) for more information.
6
5
  *
7
- * @example
8
- * An example of visualizing sales funnel data:
9
- * ```tsx
10
- * <FunnelChart
11
- * dataSet={{
12
- * columns: [
13
- * { name: 'Stage', type: 'string' },
14
- * { name: 'Unique Users', type: 'number' },
15
- * ],
16
- * rows: [
17
- * ['Website visits', 15654],
18
- * ['Downloads', 4064],
19
- * ['Requested price list', 1987],
20
- * ['Invoice sent', 976],
21
- * ['Finalized', 846],
22
- * ],
23
- * }}
24
- * dataOptions={{
25
- * category: [
26
- * {
27
- * name: 'Stage',
28
- * type: 'string',
29
- * },
30
- * ],
31
- * value: [
32
- * {
33
- * name: 'Unique Users',
34
- * aggregation: 'sum',
35
- * },
36
- * ],
37
- * }}
38
- * />
39
- * ```
6
+ * ## Example
7
+ *
8
+ * Funnel chart displaying data from the Sample ECommerce data model.
40
9
  *
41
- * <img src="media://funnel-chart-example-1.png" width="800"/>
10
+ * <iframe
11
+ * src='https://csdk-playground.sisense.com/?example=charts%2Ffunnel-chart&mode=docs'
12
+ * width=800
13
+ * height=870
14
+ * style='border:none;'
15
+ * />
42
16
  *
43
- * Note that the chart sorts the measure, `Unique Users`, in descending order by default.
44
17
  * @param props - Funnel chart properties
45
18
  * @returns Funnel Chart component
46
19
  * @group Charts
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';
@@ -43,7 +43,6 @@ export * from './formulas';
43
43
  export { trackHook } from './decorators/hook-decorators';
44
44
  export * from './common/hooks/data-load-state-reducer';
45
45
  export { createDataOptionsFromPanels } from './dashboard-widget/translate-widget-data-options';
46
- export { createFilterFromJaql } from './dashboard-widget/translate-widget-filters';
47
46
  export { useThemeContext } from './theme-provider';
48
47
  export { LoadingIndicator } from './common/components/loading-indicator';
49
48
  export { useFetch, type RequestConfig, type UseQueryResult } from './common/hooks/use-fetch';