@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.
- package/dist/ai/ai-disclaimer.d.ts +5 -0
- package/dist/ai/chat-config.d.ts +26 -0
- package/dist/ai/chat-dropup.d.ts +12 -0
- package/dist/ai/chat-frame.d.ts +7 -4
- package/dist/ai/chat-input.d.ts +4 -1
- package/dist/ai/chatbot.d.ts +0 -7
- package/dist/ai/common/dropup-section.d.ts +8 -0
- package/dist/ai/common/icon-button.d.ts +12 -0
- package/dist/ai/{toolbar.d.ts → common/toolbar.d.ts} +5 -0
- package/dist/ai/common/tooltip.d.ts +1 -1
- package/dist/ai/icons/arrow-left-icon.d.ts +5 -1
- package/dist/ai/icons/clear-chat-icon.d.ts +2 -1
- package/dist/ai/icons/expand-icon.d.ts +3 -1
- package/dist/ai/icons/info-icon.d.ts +3 -1
- package/dist/ai/icons/light-bulb-icon.d.ts +3 -1
- package/dist/ai/icons/message-icon.d.ts +2 -1
- package/dist/ai/icons/sisense-logo.d.ts +5 -1
- package/dist/ai/icons/three-dots-icon.d.ts +3 -1
- package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +2 -1
- package/dist/ai/icons/thumbs-down-icon.d.ts +2 -1
- package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +2 -1
- package/dist/ai/icons/thumbs-up-icon.d.ts +2 -1
- package/dist/ai/messages/chat-welcome-message.d.ts +1 -1
- package/dist/ai/messages/clickable-message.d.ts +11 -0
- package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
- package/dist/ai/messages/insights-message.d.ts +3 -3
- package/dist/ai/messages/jaql-element.d.ts +5 -2
- package/dist/ai/messages/message-resolver.d.ts +2 -1
- package/dist/ai/messages/nlq-message-group.d.ts +6 -3
- package/dist/ai/messages/text-message.d.ts +4 -6
- package/dist/ai/nav-back-button.d.ts +6 -3
- package/dist/ai/translators/model-translator.d.ts +1 -0
- package/dist/ai/translators/query-translator.d.ts +16 -1
- package/dist/ai/translators/translate-filters-to-code.d.ts +2 -0
- package/dist/ai/translators/translate-props-to-code.d.ts +1 -1
- package/dist/ai/translators/utils.d.ts +10 -0
- package/dist/ai.js +2981 -2592
- package/dist/api/types/dashboard-dto.d.ts +16 -0
- package/dist/app/client-application.d.ts +6 -2
- package/dist/area-chart.d.ts +14 -18
- package/dist/areamap-chart.d.ts +13 -15
- package/dist/bar-chart.d.ts +13 -18
- package/dist/boxplot-chart.d.ts +11 -25
- package/dist/chart/chart.d.ts +8 -66
- package/dist/chart-data/cartesian-data.d.ts +1 -1
- package/dist/chart-data/chart-data-service.d.ts +1 -2
- package/dist/chart-data/data-coloring/types.d.ts +1 -7
- package/dist/chart-data-options/types.d.ts +5 -3
- package/dist/chart-data-options/utils.d.ts +10 -0
- package/dist/chart-options-processor/theme-option-service.d.ts +0 -8
- package/dist/column-chart.d.ts +15 -18
- package/dist/common/components/loading-indicator.d.ts +82 -0
- package/dist/dashboard-widget/dashboard-widget.d.ts +10 -7
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
- package/dist/dashboard-widget/translate-widget-filters.d.ts +22 -14
- package/dist/dashboard-widget/translate-widget-style-options.d.ts +3 -2
- package/dist/dashboard-widget/types.d.ts +24 -4
- package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +1 -0
- package/dist/dashboard-widget/utils.d.ts +4 -2
- package/dist/debounce-Cc9bQD5m.js +76199 -0
- package/dist/dynamic-size-container/default-size.d.ts +5 -1
- package/dist/dynamic-size-container/dynamic-size-container.d.ts +12 -3
- package/dist/filters/components/common/dropdown.d.ts +1 -1
- package/dist/filters/components/common/switch.d.ts +3 -1
- package/dist/formulas/use-get-shared-formula.d.ts +3 -3
- package/dist/funnel-chart.d.ts +9 -36
- package/dist/index.d.ts +1 -2
- package/dist/index.js +46556 -7127
- package/dist/indicator-chart.d.ts +0 -1
- package/dist/line-chart.d.ts +14 -17
- package/dist/models/dashboard/translate-dashboard.d.ts +3 -2
- package/dist/models/dashboard/types.d.ts +6 -8
- package/dist/models/widget/use-get-widget-model.d.ts +16 -21
- package/dist/models/widget/widget-model.d.ts +50 -6
- package/dist/pie-chart.d.ts +14 -16
- package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +20 -0
- package/dist/pivot-table/pivot-table.d.ts +43 -3
- package/dist/pivot-table/sorting-utils.d.ts +11 -55
- package/dist/pivot-table/use-get-pivot-table-query.d.ts +10 -2
- package/dist/pivot-table/use-pivot-table-data-options-internal.d.ts +15 -0
- package/dist/polar-chart.d.ts +14 -17
- package/dist/props.d.ts +72 -13
- package/dist/query-execution/use-execute-pivot-query.d.ts +11 -29
- package/dist/query-execution/use-execute-query.d.ts +19 -26
- package/dist/scatter-chart.d.ts +11 -49
- package/dist/scattermap-chart.d.ts +9 -22
- package/dist/sunburst-chart.d.ts +10 -15
- package/dist/table/table.d.ts +7 -37
- package/dist/theme-provider/default-theme-settings.d.ts +9 -0
- package/dist/theme-provider/types.d.ts +7 -0
- package/dist/translation/resources/en.d.ts +4 -1
- package/dist/translation/resources/index.d.ts +8 -2
- package/dist/treemap-chart.d.ts +10 -21
- package/dist/types.d.ts +172 -4
- package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
- package/dist/widgets/common/drilldown.d.ts +1 -20
- package/dist/widgets/common/widget-container.d.ts +15 -0
- package/dist/widgets/drilldown-widget.d.ts +21 -33
- package/dist/widgets/pivot-table-widget.d.ts +22 -0
- package/package.json +10 -9
- package/dist/ai/chat-style-provider.d.ts +0 -22
- package/dist/ai/icons/magic-wand-icon.d.ts +0 -2
- package/dist/ai/magic-wand-dropdown.d.ts +0 -7
- package/dist/ai/suggestions/suggestion-dropdown-item.d.ts +0 -7
- package/dist/ai/suggestions/suggestion-dropdown-list.d.ts +0 -7
- 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: (
|
|
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:
|
|
18
|
-
* If
|
|
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 +1,3 @@
|
|
|
1
|
-
export declare const SisenseSwitchButton: import("@emotion/styled").StyledComponent<import("@mui/material/Switch").SwitchProps &
|
|
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
|
|
70
|
+
* Fetch a [shared formula](https://docs.sisense.com/main/SisenseLinux/shared-formulas.htm) from the a Fusion Embed instance.
|
|
71
71
|
*
|
|
72
|
-
*
|
|
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
|
|
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:
|
package/dist/funnel-chart.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
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
|
-
* <
|
|
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 './
|
|
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';
|