@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.
- package/dist/ai/ai-disclaimer.d.ts +4 -1
- package/dist/ai/chat-config.d.ts +20 -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/clickable-message.d.ts +4 -2
- package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
- package/dist/ai/messages/insights-message.d.ts +2 -2
- 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 -5
- package/dist/ai/nav-back-button.d.ts +6 -3
- package/dist/ai.js +2864 -2586
- 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 +3 -3
- package/dist/bar-chart.d.ts +2 -2
- 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 +2 -2
- package/dist/common/components/loading-indicator.d.ts +82 -0
- package/dist/dashboard-widget/translate-widget-style-options.d.ts +3 -2
- package/dist/dashboard-widget/types.d.ts +22 -2
- package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +1 -0
- package/dist/dashboard-widget/utils.d.ts +2 -0
- 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/index.d.ts +1 -1
- package/dist/index.js +46825 -7395
- package/dist/line-chart.d.ts +2 -2
- 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 +1 -1
- package/dist/models/widget/widget-model.d.ts +50 -6
- package/dist/pie-chart.d.ts +2 -2
- package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +20 -0
- 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 +2 -2
- package/dist/props.d.ts +60 -1
- package/dist/query-execution/use-execute-query.d.ts +1 -1
- package/dist/scatter-chart.d.ts +1 -1
- 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 +3 -1
- package/dist/translation/resources/index.d.ts +6 -2
- package/dist/types.d.ts +170 -1
- package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
- package/dist/widgets/common/widget-container.d.ts +15 -0
- package/dist/widgets/drilldown-widget.d.ts +1 -1
- 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-cb11e76c.js +0 -121619
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledPrevButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
-
}, "style" | "children" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "
|
|
4
|
+
}, "style" | "children" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "sx" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
}, {}, {}>;
|
|
7
7
|
export declare const StyledNextButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
8
8
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
9
|
-
}, "style" | "children" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "
|
|
9
|
+
}, "style" | "children" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "sx" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
|
|
10
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
11
|
}, {}, {}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { WidgetStyleOptions } from '../../types';
|
|
3
|
+
interface WidgetContainerProps {
|
|
4
|
+
dataSetName?: string;
|
|
5
|
+
styleOptions?: WidgetStyleOptions;
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
topSlot?: ReactNode;
|
|
9
|
+
bottomSlot?: ReactNode;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
onRefresh?: () => void;
|
|
12
|
+
}
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const WidgetContainer: React.FC<WidgetContainerProps>;
|
|
15
|
+
export {};
|
|
@@ -29,7 +29,7 @@ import { DrilldownWidgetProps } from '../props';
|
|
|
29
29
|
*
|
|
30
30
|
* Additional drilldown examples:
|
|
31
31
|
*
|
|
32
|
-
* - [Detached Breadcrumbs](https://
|
|
32
|
+
* - [Detached Breadcrumbs](https://www.sisense.com/platform/compose-sdk/playground/?example=use-cases%2Fdrilldown-detached-breadcrumbs)
|
|
33
33
|
*
|
|
34
34
|
* @param props - DrilldownWidget properties
|
|
35
35
|
* @returns DrilldownWidget wrapper component
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type FunctionComponent } from 'react';
|
|
2
|
+
import { PivotTableWidgetProps } from '../props';
|
|
3
|
+
/**
|
|
4
|
+
* The PivotTableWidget component extending the PivotTable component to support widget style options.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* Example of using the `PivotTableWidget` component to
|
|
8
|
+
* plot a pivot table over the `Sample ECommerce` data source hosted in a Sisense instance.
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <PivotTableWidget
|
|
11
|
+
* dataSource={DM.DataSource}
|
|
12
|
+
* dataOptions={{
|
|
13
|
+
* rows: [DM.Category.Category],
|
|
14
|
+
* values: [measureFactory.sum(DM.Commerce.Cost, 'Total Cost')]
|
|
15
|
+
* }}
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
* @param props - Pivot Table Widget properties
|
|
19
|
+
* @returns Widget component representing a pivot table
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const PivotTableWidget: FunctionComponent<PivotTableWidgetProps>;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"Sisense",
|
|
12
12
|
"Compose SDK"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.9.0",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
@@ -39,13 +39,14 @@
|
|
|
39
39
|
"@emotion/react": "^11.10.5",
|
|
40
40
|
"@emotion/styled": "^11.10.5",
|
|
41
41
|
"@mui/material": "^5.11.6",
|
|
42
|
-
"@
|
|
43
|
-
"@sisense/sdk-
|
|
44
|
-
"@sisense/sdk-
|
|
45
|
-
"@sisense/sdk-
|
|
46
|
-
"@sisense/sdk-
|
|
47
|
-
"@sisense/sdk-
|
|
48
|
-
"@sisense/
|
|
42
|
+
"@mui/system": "^5.15.15",
|
|
43
|
+
"@sisense/sdk-common": "^1.9.0",
|
|
44
|
+
"@sisense/sdk-data": "^1.9.0",
|
|
45
|
+
"@sisense/sdk-pivot-client": "^1.9.0",
|
|
46
|
+
"@sisense/sdk-query-client": "^1.9.0",
|
|
47
|
+
"@sisense/sdk-rest-client": "^1.9.0",
|
|
48
|
+
"@sisense/sdk-tracking": "^1.9.0",
|
|
49
|
+
"@sisense/sisense-charts": "5.1.0-alpha-e8a83de6.0",
|
|
49
50
|
"@tanstack/react-query": "4.36.1",
|
|
50
51
|
"classnames": "^2.3.2",
|
|
51
52
|
"colorjs.io": "^0.4.3",
|
|
@@ -138,7 +139,7 @@
|
|
|
138
139
|
"storybook": "7.0.24",
|
|
139
140
|
"tailwindcss": "^3.3.1",
|
|
140
141
|
"typescript": "4.8.4",
|
|
141
|
-
"vite": "
|
|
142
|
+
"vite": "5.2.10",
|
|
142
143
|
"vite-plugin-checker": "^0.6.1",
|
|
143
144
|
"vite-plugin-css-injected-by-js": "3.0.1",
|
|
144
145
|
"vite-plugin-dts": "^2.3.0",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface ChatStyle {
|
|
3
|
-
backgroundColor?: string;
|
|
4
|
-
primaryTextColor?: string;
|
|
5
|
-
secondaryTextColor?: string;
|
|
6
|
-
messageBackgroundColor?: string;
|
|
7
|
-
inputBackgroundColor?: string;
|
|
8
|
-
border?: false | string;
|
|
9
|
-
suggestions?: {
|
|
10
|
-
textColor?: string;
|
|
11
|
-
border?: string;
|
|
12
|
-
hoverBackgroundColor?: string;
|
|
13
|
-
loadingGradient?: [string, string];
|
|
14
|
-
};
|
|
15
|
-
iconColor?: string;
|
|
16
|
-
}
|
|
17
|
-
export type ChatStyleProviderProps = {
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
value: ChatStyle;
|
|
20
|
-
};
|
|
21
|
-
export declare const useChatStyle: () => ChatStyle;
|
|
22
|
-
export declare const ChatStyleProvider: ({ children, value }: ChatStyleProviderProps) => JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface SuggestionDropdownListProps {
|
|
3
|
-
onSelect: (selection: string) => void;
|
|
4
|
-
suggestions: string[];
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
}
|
|
7
|
-
export default function SuggestionDropdownList(props: SuggestionDropdownListProps): JSX.Element;
|