@sisense/sdk-ui 1.29.0 → 1.30.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.cjs +51 -51
- package/dist/ai.js +1047 -1005
- package/dist/analytics-composer.cjs +20 -20
- package/dist/analytics-composer.js +180 -182
- package/dist/{derive-chart-family-Cy3hlluo.js → derive-chart-family-B2J2kMs6.js} +1767 -1743
- package/dist/{derive-chart-family-DWCXp57c.cjs → derive-chart-family-Bmg9hQGc.cjs} +21 -21
- package/dist/index.cjs +83 -85
- package/dist/index.js +6867 -6673
- package/dist/packages/sdk-ui/src/ai/ai-context-provider.d.ts +2 -1
- package/dist/packages/sdk-ui/src/ai/api/chat-api-provider.d.ts +2 -1
- package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +5 -3
- package/dist/packages/sdk-ui/src/ai/api/hooks.d.ts +2 -2
- package/dist/packages/sdk-ui/src/ai/api/types.d.ts +6 -1
- package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +3 -2
- package/dist/packages/sdk-ui/src/ai/chat-box.d.ts +3 -1
- package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +7 -1
- package/dist/packages/sdk-ui/src/ai/chat-id-storage-provider.d.ts +12 -0
- package/dist/packages/sdk-ui/src/ai/use-chat-session.d.ts +4 -3
- package/dist/packages/sdk-ui/src/ai/use-get-chat.d.ts +6 -0
- package/dist/packages/sdk-ui/src/ai/use-get-nlg-insights.d.ts +2 -0
- package/dist/packages/sdk-ui/src/ai/use-last-nlq-response.d.ts +4 -2
- package/dist/packages/sdk-ui/src/chart-data-options/coloring/range-coloring.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +5 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/advanced-chart-options.d.ts +3 -4
- package/dist/packages/sdk-ui/src/common/components/radio.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/hooks/use-debounced-value.d.ts +5 -0
- package/dist/packages/sdk-ui/src/const.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +4 -4
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +4 -5
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/index.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/types.d.ts +7 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +3 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/multi-select-item.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select-item.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/selectable-section.d.ts +2 -3
- package/dist/packages/sdk-ui/src/filters/components/icons/pencil-icon.d.ts +3 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/data-cell-formatters/data-cell-color-formatter.d.ts +4 -0
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-builder.d.ts +7 -0
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +4 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +8 -0
- package/dist/packages/sdk-ui/src/types.d.ts +10 -0
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +1 -0
- package/dist/{useQuery-CdtycPOg.js → useQuery-1ixYW8qO.js} +15539 -15521
- package/dist/{useQuery-CRu7WcYd.cjs → useQuery-Ctzmd-JM.cjs} +154 -154
- package/dist/{widget-composer-DyY3yi_b.cjs → widget-composer-CdxKUwZf.cjs} +13 -5
- package/dist/{widget-composer-G4mPX-JO.js → widget-composer-Ch2kYMok.js} +66 -58
- package/package.json +7 -7
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export type AiContextProviderProps = {
|
|
3
3
|
children: ReactNode;
|
|
4
|
+
volatile?: boolean;
|
|
4
5
|
};
|
|
5
6
|
/**
|
|
6
7
|
* React component that wraps all generative AI components and hooks.
|
|
@@ -27,4 +28,4 @@ export type AiContextProviderProps = {
|
|
|
27
28
|
* @group Generative AI
|
|
28
29
|
* @beta
|
|
29
30
|
*/
|
|
30
|
-
export default function AiContextProvider({ children }: AiContextProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export default function AiContextProvider({ children, volatile }: AiContextProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,6 +12,7 @@ export declare const useChatApi: () => ChatRestApi | undefined;
|
|
|
12
12
|
*
|
|
13
13
|
* @internal
|
|
14
14
|
*/
|
|
15
|
-
export declare const ChatApiProvider: ({ children }: {
|
|
15
|
+
export declare const ChatApiProvider: ({ children, volatile, }: {
|
|
16
16
|
children: ReactNode;
|
|
17
|
+
volatile?: boolean | undefined;
|
|
17
18
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
2
|
import type { Chat, ChatRequest, ChatResponse, ChatWithoutHistory, ChatContext, GetNlgInsightsRequest, GetNlgInsightsResponse, LlmConfig, QueryRecommendationConfig, QueryRecommendationResponse, SendFeedbackRequest, GetNlqResultRequest, NlqResult } from './types';
|
|
3
3
|
import { DataSourceField } from '@sisense/sdk-data';
|
|
4
|
+
import { ChatContextDetails } from '../../ai/api/types';
|
|
4
5
|
export declare class ChatRestApi {
|
|
6
|
+
private readonly volatile;
|
|
5
7
|
private httpClient;
|
|
6
|
-
constructor(httpClient: HttpClient);
|
|
8
|
+
constructor(httpClient: HttpClient, volatile?: boolean);
|
|
7
9
|
getChatContexts: () => Promise<ChatContext[]>;
|
|
8
10
|
private getNlgInsights;
|
|
9
11
|
private getQueryRecommendations;
|
|
@@ -24,9 +26,9 @@ export declare class ChatRestApi {
|
|
|
24
26
|
sendFeedback: (request: SendFeedbackRequest) => Promise<unknown>;
|
|
25
27
|
getDataSourceFields: (dataSource: string) => Promise<DataSourceField[] | undefined>;
|
|
26
28
|
chat: {
|
|
27
|
-
getAll: () => Promise<ChatWithoutHistory[] | undefined>;
|
|
29
|
+
getAll: () => Promise<never[] | ChatWithoutHistory[] | undefined>;
|
|
28
30
|
getById: (chatId: string) => Promise<Chat | undefined>;
|
|
29
|
-
create: (sourceId: string) => Promise<Chat | undefined>;
|
|
31
|
+
create: (sourceId: string, contextDetails?: ChatContextDetails) => Promise<Chat | undefined>;
|
|
30
32
|
post: (chatId: string, request: ChatRequest) => Promise<ChatResponse | undefined>;
|
|
31
33
|
clearHistory: (chatId: string) => Promise<void | undefined>;
|
|
32
34
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChatResponse } from './types';
|
|
1
|
+
import type { ChatResponse, ChatContextDetails } from './types';
|
|
2
2
|
import { TranslatableError } from '../../translation/translatable-error';
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
@@ -18,7 +18,7 @@ export declare const useGetAllChats: () => {
|
|
|
18
18
|
/**
|
|
19
19
|
* @internal
|
|
20
20
|
*/
|
|
21
|
-
export declare const useMaybeCreateChat: (contextId: string | undefined, shouldCreate: boolean) => import("@tanstack/react-query").UseMutationResult<import("./types").Chat | undefined, unknown, void, unknown>;
|
|
21
|
+
export declare const useMaybeCreateChat: (contextId: string | undefined, shouldCreate: boolean, contextDetails?: ChatContextDetails) => import("@tanstack/react-query").UseMutationResult<import("./types").Chat | undefined, unknown, void, unknown>;
|
|
22
22
|
export declare const useSendChatMessage: (chatId: string | undefined, enableFollowupQuestions?: boolean) => {
|
|
23
23
|
mutate: import("@tanstack/react-query").UseMutateFunction<ChatResponse | undefined, TranslatableError, string, void>;
|
|
24
24
|
isLoading: boolean;
|
|
@@ -4,6 +4,9 @@ export interface ChatContext {
|
|
|
4
4
|
title: string;
|
|
5
5
|
live: boolean;
|
|
6
6
|
}
|
|
7
|
+
export interface ChatContextDetails {
|
|
8
|
+
dashboardId?: string;
|
|
9
|
+
}
|
|
7
10
|
export interface TextMessage {
|
|
8
11
|
role: 'assistant';
|
|
9
12
|
content: string;
|
|
@@ -23,7 +26,8 @@ export interface Chat {
|
|
|
23
26
|
chatId: string;
|
|
24
27
|
contextId: string;
|
|
25
28
|
contextTitle: string;
|
|
26
|
-
|
|
29
|
+
contextDetails?: ChatContextDetails;
|
|
30
|
+
expireAt: string;
|
|
27
31
|
tenantId: string;
|
|
28
32
|
userId: string;
|
|
29
33
|
chatHistory: ChatMessage[];
|
|
@@ -78,6 +82,7 @@ export type QueryRecommendation = Omit<NlqResponseData, 'followupQuestions'>;
|
|
|
78
82
|
export type QueryRecommendationResponse = QueryRecommendation[];
|
|
79
83
|
export interface GetNlgInsightsRequest {
|
|
80
84
|
jaql: Pick<JaqlQueryPayload, 'datasource' | 'metadata' | 'filterRelations'>;
|
|
85
|
+
verbosity?: 'Low' | 'High';
|
|
81
86
|
}
|
|
82
87
|
export interface GetNlgInsightsResponse {
|
|
83
88
|
data?: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Filter, Data } from '@sisense/sdk-data';
|
|
2
2
|
import type { NlqResponseData } from '../../ai';
|
|
3
|
+
import { NlqChartWidgetStyleOptions } from '../../types';
|
|
3
4
|
/**
|
|
4
5
|
* Props for {@link NlqChartWidget} component.
|
|
5
6
|
*
|
|
@@ -27,7 +28,7 @@ export interface NlqChartWidgetProps {
|
|
|
27
28
|
*
|
|
28
29
|
* @default true
|
|
29
30
|
*/
|
|
30
|
-
|
|
31
|
+
styleOptions?: NlqChartWidgetStyleOptions;
|
|
31
32
|
}
|
|
32
33
|
/**
|
|
33
34
|
* React component that renders a chart widget based on NLQ response data.
|
|
@@ -51,4 +52,4 @@ export interface NlqChartWidgetProps {
|
|
|
51
52
|
* @group Generative AI
|
|
52
53
|
* @internal
|
|
53
54
|
*/
|
|
54
|
-
export declare const NlqChartWidget: ({ nlqResponse, onDataReady,
|
|
55
|
+
export declare const NlqChartWidget: ({ nlqResponse, onDataReady, styleOptions, filters, }: NlqChartWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { ChatContextDetails } from '../ai/api/types';
|
|
1
2
|
export type ChatBoxProps = {
|
|
2
3
|
contextTitle: string;
|
|
4
|
+
contextDetails?: ChatContextDetails;
|
|
3
5
|
onGoBack?: () => void;
|
|
4
6
|
};
|
|
5
|
-
export default function ChatBox({ contextTitle, onGoBack }: ChatBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function ChatBox({ contextTitle, onGoBack, contextDetails }: ChatBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ChatMode } from '../ai/api/types';
|
|
2
|
+
import { ChatMode, ChatContextDetails } from '../ai/api/types';
|
|
3
3
|
export interface ChatConfig {
|
|
4
4
|
/**
|
|
5
5
|
* Boolean flag to show or hide suggested questions following a chat response. Currently
|
|
@@ -74,6 +74,12 @@ export interface ChatConfig {
|
|
|
74
74
|
* @default false
|
|
75
75
|
*/
|
|
76
76
|
hideHistory?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Optional chat context details.
|
|
79
|
+
*
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
contextDetails?: ChatContextDetails;
|
|
77
83
|
}
|
|
78
84
|
export declare const DEFAULTS: Readonly<ChatConfig>;
|
|
79
85
|
export type ChatConfigProviderProps = {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ChatContextDetails } from '../ai/api/types';
|
|
3
|
+
export interface ChatIdMapProviderProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export interface ChatIdStorage {
|
|
7
|
+
saveChatId: (chatId: string, contextTitle: string, contextDetails?: ChatContextDetails) => void;
|
|
8
|
+
getChatId: (contextTitle: string, contextDetails?: ChatContextDetails) => string | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare const ChatIdStorageContext: import("react").Context<ChatIdStorage>;
|
|
11
|
+
export declare const useChatIdStorage: () => ChatIdStorage;
|
|
12
|
+
export declare const ChatIdStorageProvider: ({ children }: ChatIdMapProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChatMessage, NlqMessage, NlqResponseData, TextMessage } from './api/types';
|
|
1
|
+
import { ChatMessage, NlqMessage, NlqResponseData, TextMessage, ChatContextDetails } from './api/types';
|
|
2
2
|
/**
|
|
3
3
|
* Result of the useChatSession hook.
|
|
4
4
|
*
|
|
@@ -24,7 +24,8 @@ export declare const isTextMessage: (message: ChatMessage | null | undefined) =>
|
|
|
24
24
|
*
|
|
25
25
|
* If a chat session does not already exist, then one is created.
|
|
26
26
|
*
|
|
27
|
-
* @param contextTitle - the title of the data model or perspective
|
|
27
|
+
* @param {string} contextTitle - the title of the data model or perspective
|
|
28
|
+
* @param {ChatContextDetails} [contextDetails] - optional chat context details
|
|
28
29
|
* @internal
|
|
29
30
|
*/
|
|
30
|
-
export declare const useChatSession: (contextTitle: string) => UseChatSessionResult;
|
|
31
|
+
export declare const useChatSession: (contextTitle: string, contextDetails?: ChatContextDetails) => UseChatSessionResult;
|
|
@@ -19,6 +19,8 @@ export interface UseGetNlgInsightsParams {
|
|
|
19
19
|
* If not specified, the default value is `true`
|
|
20
20
|
*/
|
|
21
21
|
enabled?: boolean;
|
|
22
|
+
/** The verbosity of the NLG summarization */
|
|
23
|
+
verbosity?: 'Low' | 'High';
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* State for {@link useGetNlgInsights} hook.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NlqResponseData } from './api/types';
|
|
1
|
+
import type { NlqResponseData, ChatContextDetails } from './api/types';
|
|
2
2
|
/**
|
|
3
3
|
* Parameters for the useLastNlqResponse hook.
|
|
4
4
|
*
|
|
@@ -7,6 +7,8 @@ import type { NlqResponseData } from './api/types';
|
|
|
7
7
|
interface UseLastNlqResponseParams {
|
|
8
8
|
/** The title of the data model or perspective */
|
|
9
9
|
contextTitle: string;
|
|
10
|
+
/** optional chat context details */
|
|
11
|
+
contextDetails?: ChatContextDetails;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* React hook that returns the last NLQ response for the chat that corresponds
|
|
@@ -15,5 +17,5 @@ interface UseLastNlqResponseParams {
|
|
|
15
17
|
* @param params - Parameters for the hook
|
|
16
18
|
* @internal
|
|
17
19
|
*/
|
|
18
|
-
export declare const useLastNlqResponse: ({ contextTitle, }: UseLastNlqResponseParams) => NlqResponseData | null;
|
|
20
|
+
export declare const useLastNlqResponse: ({ contextTitle, contextDetails, }: UseLastNlqResponseParams) => NlqResponseData | null;
|
|
19
21
|
export {};
|
|
@@ -7,3 +7,15 @@ import { RangeDataColorOptions } from '../../types';
|
|
|
7
7
|
* @returns The relative coloring function.
|
|
8
8
|
*/
|
|
9
9
|
export declare function getRangeColoringFunction(colorOpts: RangeDataColorOptions): RelativeColoringFunction;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves the interpolator function for range coloring.
|
|
12
|
+
*
|
|
13
|
+
* @param minColor - Color of the minimum.
|
|
14
|
+
* @param maxColor - Color of the maximum.
|
|
15
|
+
* @param minValue - The minimum value where minColor should be applied.
|
|
16
|
+
* @param midValue - Value of the gradient center.
|
|
17
|
+
* @param maxValue - The minimum value where maxColor should be applied.
|
|
18
|
+
* @param steps - The number of interpolation steps.
|
|
19
|
+
* @returns The interpolator function.
|
|
20
|
+
*/
|
|
21
|
+
export declare const getInterpolatorFn: (minColor: string, maxColor: string, minValue: number, midValue: number, maxValue: number, steps?: number) => (value: number) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ConditionalDataColorOptions, DataColorOptions, UniformDataColorOptions } from '../chart-data/data-coloring';
|
|
2
2
|
import type { NumberFormatConfig, SeriesChartType, ValueToColorMap, MultiColumnValueToColorMap, LineWidth, Markers, SortDirection, PivotRowsSort } from '../types';
|
|
3
3
|
import { Column, MeasureColumn, CalculatedMeasureColumn, PivotGrandTotals, TotalsCalculation, ForecastFormulaOptions, TrendFormulaOptions } from '@sisense/sdk-data';
|
|
4
4
|
/**
|
|
@@ -135,6 +135,10 @@ export type ValueStyle = {
|
|
|
135
135
|
* Boolean flag whether to display data bars for this measure in the pivot table.
|
|
136
136
|
*/
|
|
137
137
|
dataBars?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Color options for data bars for this measure in the pivot table
|
|
140
|
+
*/
|
|
141
|
+
dataBarsColor?: string | UniformDataColorOptions | ConditionalDataColorOptions;
|
|
138
142
|
/**
|
|
139
143
|
* Options to add forecast to this measure
|
|
140
144
|
*
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Measure } from '@sisense/sdk-data';
|
|
2
1
|
import { SeriesType } from './chart-options-service';
|
|
3
2
|
import { AxisSettings } from './translations/axis-section';
|
|
4
|
-
import { CartesianChartDataOptions } from '..';
|
|
3
|
+
import { CartesianChartDataOptions, StyledMeasureColumn } from '..';
|
|
5
4
|
export declare const FORECAST_PREFIX = "$forecast";
|
|
6
5
|
export declare const TREND_PREFIX = "$trend";
|
|
7
6
|
export declare const isForecastSeries: (name: string) => boolean;
|
|
@@ -30,7 +29,7 @@ export declare const formatAdvancedAnalyticsSeries: (series: SeriesType[]) => vo
|
|
|
30
29
|
* @returns An array of trend measures.
|
|
31
30
|
* @internal
|
|
32
31
|
*/
|
|
33
|
-
export declare const extractTrendMeasures: (dataOptions: CartesianChartDataOptions) =>
|
|
32
|
+
export declare const extractTrendMeasures: (dataOptions: CartesianChartDataOptions) => StyledMeasureColumn[];
|
|
34
33
|
/**
|
|
35
34
|
* Extracts forecast measures from data options if applicable.
|
|
36
35
|
*
|
|
@@ -38,4 +37,4 @@ export declare const extractTrendMeasures: (dataOptions: CartesianChartDataOptio
|
|
|
38
37
|
* @returns An array of forecast measures.
|
|
39
38
|
* @internal
|
|
40
39
|
*/
|
|
41
|
-
export declare const extractForecastMeasures: (dataOptions: CartesianChartDataOptions) =>
|
|
40
|
+
export declare const extractForecastMeasures: (dataOptions: CartesianChartDataOptions) => StyledMeasureColumn[];
|
|
@@ -4,5 +4,5 @@ type ButtonProps = {
|
|
|
4
4
|
onChange?: (checked: boolean) => void;
|
|
5
5
|
};
|
|
6
6
|
/** @internal */
|
|
7
|
-
export declare const Radio: (
|
|
7
|
+
export declare const Radio: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Filter, Measure } from '@sisense/sdk-data';
|
|
2
|
-
import {
|
|
2
|
+
import { TFunction } from '@sisense/sdk-common';
|
|
3
3
|
/**
|
|
4
4
|
* Collection of filter options for the {@link CriteriaFilterMenu},
|
|
5
5
|
* to be provided to subcomponents as the `filterType` prop.
|
|
@@ -59,9 +59,9 @@ export declare const CRITERIA_FILTER_MAP: {
|
|
|
59
59
|
*
|
|
60
60
|
* @internal
|
|
61
61
|
*/
|
|
62
|
-
export declare const filterToOption: (filter:
|
|
62
|
+
export declare const filterToOption: (filter: Filter) => FilterOptionType;
|
|
63
63
|
export type CriteriaFilterValueType = string | number | Measure;
|
|
64
|
-
export declare const filterToDefaultValues: (filter:
|
|
64
|
+
export declare const filterToDefaultValues: (filter: Filter) => CriteriaFilterValueType[];
|
|
65
65
|
export declare const valuesToDisplayValues: (values: CriteriaFilterValueType[]) => (string | number)[];
|
|
66
|
-
export declare const translatedMsgNoVal: (message: string, t:
|
|
66
|
+
export declare const translatedMsgNoVal: (message: string, t: TFunction) => string;
|
|
67
67
|
export declare const filterTypeToInputType: (filterType: string) => string;
|
package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FilterTileDesignOptions } from '../filter-tile-container.js';
|
|
3
|
-
import {
|
|
3
|
+
import { Filter, Measure } from '@sisense/sdk-data';
|
|
4
4
|
import { FilterVariant } from '../common/filter-utils.js';
|
|
5
5
|
/**
|
|
6
6
|
* Props for {@link CriteriaFilterTile}
|
|
@@ -9,11 +9,11 @@ export interface CriteriaFilterTileProps {
|
|
|
9
9
|
/** Title for the filter tile, which is rendered into the header */
|
|
10
10
|
title: string;
|
|
11
11
|
/** Text or numeric filter object to initialize filter type and default values */
|
|
12
|
-
filter:
|
|
12
|
+
filter: Filter;
|
|
13
13
|
/** Arrangement of the filter inputs. Use vertical for standard filter tiles and horizontal for toolbars */
|
|
14
14
|
arrangement?: FilterVariant;
|
|
15
|
-
/** Callback returning filter object
|
|
16
|
-
onUpdate: (filter: Filter
|
|
15
|
+
/** Callback returning updated filter object*/
|
|
16
|
+
onUpdate: (filter: Filter) => void;
|
|
17
17
|
/** Filter delete callback */
|
|
18
18
|
onDelete?: () => void;
|
|
19
19
|
/** Filter edit callback */
|
|
@@ -27,7 +27,6 @@ export interface CriteriaFilterTileProps {
|
|
|
27
27
|
*/
|
|
28
28
|
tileDesignOptions?: FilterTileDesignOptions;
|
|
29
29
|
}
|
|
30
|
-
export type CriteriaFilterType = NumericFilter | TextFilter | RankingFilter | ExcludeFilter;
|
|
31
30
|
/**
|
|
32
31
|
* UI component that allows the user to filter numeric or text attributes according to
|
|
33
32
|
* a number of built-in operations defined in the numeric filter, text filter, or ranking filter.
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { CriteriaFilterTile, type CriteriaFilterTileProps
|
|
1
|
+
export { CriteriaFilterTile, type CriteriaFilterTileProps } from './criteria-filter-tile';
|
|
2
|
+
export type { CriteriaFilterType } from './types';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NumericFilter, TextFilter, RankingFilter, ExcludeFilter } from '@sisense/sdk-data';
|
|
2
|
+
/**
|
|
3
|
+
* Deprecated type for `filter` property of {@link CriteriaFilterTileProps}.
|
|
4
|
+
* Use regular {@link @sisense/sdk-data!Filter | Filter} instead.
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
7
|
+
export type CriteriaFilterType = NumericFilter | TextFilter | RankingFilter | ExcludeFilter;
|
package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ export declare const SelectContainer: import("@emotion/styled").StyledComponent<
|
|
|
7
7
|
export declare const SelectItemContainer: import("@emotion/styled").StyledComponent<{
|
|
8
8
|
theme?: import("@emotion/react").Theme | undefined;
|
|
9
9
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
background?: string | undefined;
|
|
12
|
+
color?: string | undefined;
|
|
10
13
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
14
|
export declare const SelectLabel: import("@emotion/styled").StyledComponent<{
|
|
12
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { SelectItem } from './types';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
2
3
|
type MultiSelectItemProps<Value> = SelectItem<Value> & {
|
|
3
4
|
selected: boolean;
|
|
4
5
|
onSelect?: (value: Value) => void;
|
|
6
|
+
style?: CSSProperties;
|
|
5
7
|
};
|
|
6
8
|
export declare function MultiSelectItem<Value = unknown>(props: MultiSelectItemProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export {};
|
|
@@ -6,6 +6,8 @@ type SearchableMultiSelectProps<Value> = {
|
|
|
6
6
|
style?: CSSProperties;
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
onChange?: (values: Value[]) => void;
|
|
9
|
+
primaryColor?: string;
|
|
10
|
+
primaryBackgroundColor?: string;
|
|
9
11
|
};
|
|
10
12
|
/** @internal */
|
|
11
13
|
export declare function SearchableMultiSelect<Value = unknown>(props: SearchableMultiSelectProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,6 +6,8 @@ type SearchableSingleSelectProps<Value> = {
|
|
|
6
6
|
style?: CSSProperties;
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
onChange?: (value: Value) => void;
|
|
9
|
+
primaryColor?: string;
|
|
10
|
+
primaryBackgroundColor?: string;
|
|
9
11
|
};
|
|
10
12
|
/** @internal */
|
|
11
13
|
export declare function SearchableSingleSelect<Value = unknown>(props: SearchableSingleSelectProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { SelectItem } from './types';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
2
3
|
type SingleSelectItemProps<Value> = SelectItem<Value> & {
|
|
3
4
|
selected: boolean;
|
|
4
5
|
onSelect?: (value: Value) => void;
|
|
6
|
+
style?: CSSProperties;
|
|
5
7
|
};
|
|
6
8
|
export declare function SingleSelectItem<Value = unknown>(props: SingleSelectItemProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export {};
|
|
@@ -6,6 +6,8 @@ type SelectProps<Value> = {
|
|
|
6
6
|
items: SelectItem<Value>[];
|
|
7
7
|
style?: CSSProperties;
|
|
8
8
|
onChange?: (value: Value) => void;
|
|
9
|
+
primaryColor?: string;
|
|
10
|
+
primaryBackgroundColor?: string;
|
|
9
11
|
};
|
|
10
12
|
/** @internal */
|
|
11
13
|
export declare function SingleSelect<Value = unknown>(props: SelectProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
type ChildrenFn = (select: () => void) => ReactNode;
|
|
3
3
|
type SelectableSectionProps = {
|
|
4
4
|
selected: boolean;
|
|
5
|
-
style?: CSSProperties;
|
|
6
5
|
onSelect: (selected: boolean) => void;
|
|
7
6
|
children: ReactNode | ChildrenFn;
|
|
8
7
|
};
|
|
9
8
|
/** @internal */
|
|
10
|
-
export declare const SelectableSection: ({ selected,
|
|
9
|
+
export declare const SelectableSection: ({ selected, children, onSelect, ...rest }: SelectableSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
|
-
export declare const PencilIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'onClick'>
|
|
2
|
+
export declare const PencilIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'onClick'> & {
|
|
3
|
+
color?: string;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PivotTableDataOptions } from '../../../chart-data-options/types';
|
|
2
|
+
import { JaqlPanel, PivotDataNode, PivotTreeNode } from '@sisense/sdk-pivot-client';
|
|
3
|
+
import { CompleteThemeSettings } from '../../../types';
|
|
4
|
+
export declare function createDataCellColorFormatter(dataOptions: PivotTableDataOptions, themeSettings: CompleteThemeSettings): (cell: PivotDataNode, rowItem: PivotTreeNode, columnItem: PivotTreeNode, jaqlPanelItem: JaqlPanel | undefined) => void;
|
|
@@ -246,6 +246,10 @@ export declare const translation: {
|
|
|
246
246
|
insightsNotAvailable: string;
|
|
247
247
|
VectorDBEmptyResponseError: string;
|
|
248
248
|
LlmBadConfigurationError: string;
|
|
249
|
+
ChartTypeUnsupportedError: string;
|
|
250
|
+
BlockedByLlmContentFiltering: string;
|
|
251
|
+
LlmContextLengthExceedsLimitError: string;
|
|
252
|
+
UserPromptExeedsLimitError: string;
|
|
249
253
|
unexpectedChatResponse: string;
|
|
250
254
|
unexpected: string;
|
|
251
255
|
unknownResponse: string;
|
|
@@ -256,6 +256,10 @@ export declare const resources: {
|
|
|
256
256
|
insightsNotAvailable: string;
|
|
257
257
|
VectorDBEmptyResponseError: string;
|
|
258
258
|
LlmBadConfigurationError: string;
|
|
259
|
+
ChartTypeUnsupportedError: string;
|
|
260
|
+
BlockedByLlmContentFiltering: string;
|
|
261
|
+
LlmContextLengthExceedsLimitError: string;
|
|
262
|
+
UserPromptExeedsLimitError: string;
|
|
259
263
|
unexpectedChatResponse: string;
|
|
260
264
|
unexpected: string;
|
|
261
265
|
unknownResponse: string;
|
|
@@ -545,6 +549,10 @@ export declare const resources: {
|
|
|
545
549
|
insightsNotAvailable: string;
|
|
546
550
|
VectorDBEmptyResponseError: string;
|
|
547
551
|
LlmBadConfigurationError: string;
|
|
552
|
+
ChartTypeUnsupportedError: string;
|
|
553
|
+
BlockedByLlmContentFiltering: string;
|
|
554
|
+
LlmContextLengthExceedsLimitError: string;
|
|
555
|
+
UserPromptExeedsLimitError: string;
|
|
548
556
|
unexpectedChatResponse: string;
|
|
549
557
|
unexpected: string;
|
|
550
558
|
unknownResponse: string;
|
|
@@ -1043,6 +1043,16 @@ export interface WidgetContainerStyleOptions {
|
|
|
1043
1043
|
renderToolbar?: RenderToolbarHandler;
|
|
1044
1044
|
};
|
|
1045
1045
|
}
|
|
1046
|
+
/**
|
|
1047
|
+
* Configuration options that define functional style of the various elements of the Nlq Chart Widget
|
|
1048
|
+
*
|
|
1049
|
+
* @internal
|
|
1050
|
+
* */
|
|
1051
|
+
export type NlqChartWidgetStyleOptions = {
|
|
1052
|
+
header?: {
|
|
1053
|
+
hidden?: boolean;
|
|
1054
|
+
};
|
|
1055
|
+
};
|
|
1046
1056
|
/** @internal */
|
|
1047
1057
|
export type RenderToolbarHandler = (onRefresh: () => void, defaultToolbar: JSX.Element) => JSX.Element | null;
|
|
1048
1058
|
/** Style settings defining the look and feel of the widget created in Fusion */
|