@sisense/sdk-ui 1.29.0 → 1.31.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 +53 -51
- package/dist/ai.js +1049 -1005
- package/dist/analytics-composer.cjs +37 -37
- package/dist/analytics-composer.js +460 -461
- package/dist/{derive-chart-family-Cy3hlluo.js → derive-chart-family-D3iN--j2.js} +2078 -2028
- package/dist/{derive-chart-family-DWCXp57c.cjs → derive-chart-family-Tt7cIUck.cjs} +46 -46
- package/dist/index.cjs +120 -97
- package/dist/index.js +8073 -7197
- 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 +11 -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-get-query-recommendations.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-last-nlq-response.d.ts +4 -2
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +13 -6
- package/dist/packages/sdk-ui/src/chart-data/chart-data-service.d.ts +1 -13
- 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/popper.d.ts +9 -0
- 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/common/hooks/use-was-modified.d.ts +5 -0
- package/dist/packages/sdk-ui/src/const.d.ts +3 -0
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +23 -23
- 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/input.d.ts +9 -3
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/scroll-wrapper.d.ts +13 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +7 -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 +5 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +5 -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/select/types.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/filter-editor-popover/common/small-loader.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/constants.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-container.d.ts +5 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-numerical.d.ts +8 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-textual.d.ts +8 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/hooks/use-get-attribute-stats.d.ts +28 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/members-section.d.ts +5 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/numeric-condition-section.d.ts +15 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/types.d.ts +16 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/utils.d.ts +7 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-range-section.d.ts +11 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/text-condition-section.d.ts +6 -2
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/utils.d.ts +4 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/icons/equal-icon.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/icons/greater-than-icon.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/icons/greater-than-or-equal-icon.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/icons/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/filters/components/icons/not-equal-icon.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/icons/pencil-icon.d.ts +3 -1
- package/dist/packages/sdk-ui/src/filters/components/icons/smaller-than-icon.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/icons/smaller-than-or-equal-icon.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +21 -1
- package/dist/packages/sdk-ui/src/index-typedoc.d.ts +28 -0
- 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/query-execution/types.d.ts +10 -1
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +15 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +30 -0
- package/dist/packages/sdk-ui/src/types.d.ts +10 -0
- package/dist/packages/sdk-ui/src/utils/is-numeric-string.d.ts +10 -0
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +1 -0
- package/dist/{useQuery-CdtycPOg.js → use-common-filters-CHBXz5rL.js} +17543 -17520
- package/dist/{useQuery-CRu7WcYd.cjs → use-common-filters-Dd-gOMfB.cjs} +170 -170
- package/dist/widget-composer-BHf4pbvI.cjs +311 -0
- package/dist/{widget-composer-G4mPX-JO.js → widget-composer-BrQ6SrZ6.js} +221 -203
- package/package.json +8 -7
- package/dist/widget-composer-DyY3yi_b.cjs +0 -300
|
@@ -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 {};
|
package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/small-loader.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SmallLoader: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FilterEditorContainer: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
type FilterEditorNumericalProps = {
|
|
3
|
+
filter: Filter;
|
|
4
|
+
onChange?: (filter: Filter | null) => void;
|
|
5
|
+
};
|
|
6
|
+
/** @internal */
|
|
7
|
+
export declare const FilterEditorNumerical: ({ filter, onChange }: FilterEditorNumericalProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-textual.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
type FilterEditorTextualProps = {
|
|
3
|
+
filter: Filter;
|
|
4
|
+
onChange?: (filter: Filter | null) => void;
|
|
5
|
+
};
|
|
6
|
+
/** @internal */
|
|
7
|
+
export declare const FilterEditorTextual: ({ filter, onChange }: FilterEditorTextualProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Attribute } from '@sisense/sdk-data';
|
|
2
|
+
import { HookEnableParam } from '../../../../common/hooks/types';
|
|
3
|
+
interface UseGetAttributeStatsParams extends HookEnableParam {
|
|
4
|
+
attribute: Attribute;
|
|
5
|
+
}
|
|
6
|
+
export type NumericAttributeStats = {
|
|
7
|
+
count: number;
|
|
8
|
+
min: number;
|
|
9
|
+
max: number;
|
|
10
|
+
};
|
|
11
|
+
type TextAttributeStats = {
|
|
12
|
+
count: number;
|
|
13
|
+
};
|
|
14
|
+
type DatetimeAttributeStats = {
|
|
15
|
+
count: number;
|
|
16
|
+
min: string;
|
|
17
|
+
max: string;
|
|
18
|
+
};
|
|
19
|
+
type AttributeStats = NumericAttributeStats | TextAttributeStats | DatetimeAttributeStats;
|
|
20
|
+
type AttributeStatsState<T = AttributeStats> = {
|
|
21
|
+
isLoading: boolean;
|
|
22
|
+
isError: boolean;
|
|
23
|
+
isSuccess: boolean;
|
|
24
|
+
error: Error | undefined;
|
|
25
|
+
data: T | undefined;
|
|
26
|
+
};
|
|
27
|
+
export declare const useGetAttributeStats: <T = AttributeStats>(params: UseGetAttributeStatsParams) => AttributeStatsState<T>;
|
|
28
|
+
export {};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
import { Member } from '../../../../filters';
|
|
3
|
+
import { ScrollWrapperOnScrollEvent } from '../../../../filters/components/filter-editor-popover/common/scroll-wrapper';
|
|
2
4
|
type MembersSectionProps = {
|
|
3
5
|
filter: Filter;
|
|
4
6
|
selected: boolean;
|
|
5
|
-
members:
|
|
7
|
+
members: Member[];
|
|
6
8
|
multiSelectEnabled: boolean;
|
|
7
9
|
onChange: (filter: Filter | null) => void;
|
|
10
|
+
onListScroll?: (event: ScrollWrapperOnScrollEvent) => void;
|
|
11
|
+
showListLoader?: boolean;
|
|
8
12
|
};
|
|
9
13
|
/** @internal */
|
|
10
14
|
export declare const MembersSection: (props: MembersSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NumericConditionSection } from './numeric-condition-section.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
import { Member } from '../../../../../filters';
|
|
3
|
+
import { ScrollWrapperOnScrollEvent } from '../../common/scroll-wrapper';
|
|
4
|
+
type NumericConditionSectionProps = {
|
|
5
|
+
filter: Filter;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
members: Member[];
|
|
8
|
+
multiSelectEnabled: boolean;
|
|
9
|
+
onChange: (filter: Filter | null) => void;
|
|
10
|
+
onListScroll?: (event: ScrollWrapperOnScrollEvent) => void;
|
|
11
|
+
showListLoader?: boolean;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const NumericConditionSection: ({ filter, selected, members, multiSelectEnabled, onChange, onListScroll, showListLoader, }: NumericConditionSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const NumericCondition: {
|
|
2
|
+
readonly EXCLUDE: "exclude";
|
|
3
|
+
readonly EQUALS: "numericequals";
|
|
4
|
+
readonly NOT_EQUALS: "numericdoesntEqual";
|
|
5
|
+
readonly LESS_THAN: "numerictoNotEqual";
|
|
6
|
+
readonly LESS_THAN_OR_EQUAL: "numericto";
|
|
7
|
+
readonly GREATER_THAN: "numericfromNotEqual";
|
|
8
|
+
readonly GREATER_THAN_OR_EQUAL: "numericfrom";
|
|
9
|
+
};
|
|
10
|
+
export type NumericConditionType = (typeof NumericCondition)[keyof typeof NumericCondition];
|
|
11
|
+
export type NumericConditionFilterData = {
|
|
12
|
+
condition: NumericConditionType;
|
|
13
|
+
value: string;
|
|
14
|
+
selectedMembers: string[];
|
|
15
|
+
multiSelectEnabled: boolean;
|
|
16
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TFunction } from '@sisense/sdk-common';
|
|
2
|
+
import { Filter } from '@sisense/sdk-data';
|
|
3
|
+
import { NumericConditionType, NumericConditionFilterData } from './types.js';
|
|
4
|
+
export declare function validateInputValue(value: string, t: TFunction): string | undefined;
|
|
5
|
+
export declare function getNumericFilterCondition(filter: Filter, initialCondition: NumericConditionType): NumericConditionType;
|
|
6
|
+
export declare function getNumericFilterValue(filter: Filter): string;
|
|
7
|
+
export declare function createConditionalFilter(baseFilter: Filter, data: NumericConditionFilterData): Filter | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
type NumericRangeSectionProps = {
|
|
3
|
+
filter: Filter;
|
|
4
|
+
selected: boolean;
|
|
5
|
+
defaultFrom?: number;
|
|
6
|
+
defaultTo?: number;
|
|
7
|
+
onChange: (filter: Filter | null) => void;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const NumericRangeSection: (props: NumericRangeSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
import { Member } from '../../../../filters';
|
|
3
|
+
import { ScrollWrapperOnScrollEvent } from '../common/scroll-wrapper';
|
|
2
4
|
type TextConditionSectionProps = {
|
|
3
5
|
filter: Filter;
|
|
4
6
|
selected: boolean;
|
|
5
|
-
members:
|
|
7
|
+
members: Member[];
|
|
6
8
|
multiSelectEnabled: boolean;
|
|
7
9
|
onChange: (filter: Filter | null) => void;
|
|
10
|
+
onListScroll?: (event: ScrollWrapperOnScrollEvent) => void;
|
|
11
|
+
showListLoader?: boolean;
|
|
8
12
|
};
|
|
9
13
|
/** @internal */
|
|
10
|
-
export declare const TextConditionSection: ({ filter, selected, members, multiSelectEnabled, onChange, }: TextConditionSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const TextConditionSection: ({ filter, selected, members, multiSelectEnabled, onChange, onListScroll, showListLoader, }: TextConditionSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
15
|
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Attribute, MembersFilterConfig } from '@sisense/sdk-data';
|
|
2
|
+
import { CRITERIA_FILTER_MAP } from '../../criteria-filter-tile/criteria-filter-operations.js';
|
|
3
|
+
export declare function getCriteriaFilterBuilder(condition: keyof typeof CRITERIA_FILTER_MAP): import("../../criteria-filter-tile/criteria-filter-operations.js").FilterInfo;
|
|
4
|
+
export declare function createExcludeMembersFilter(attribute: Attribute, members: string[], config?: MembersFilterConfig): import("@sisense/sdk-data").Filter | null;
|
|
@@ -3,3 +3,4 @@ export declare function isIncludeAllFilter(filter: Filter): filter is MembersFil
|
|
|
3
3
|
export declare function isIncludeMembersFilter(filter: Filter): filter is MembersFilter;
|
|
4
4
|
export declare function isExcludeMembersFilter(filter: Filter): filter is MembersFilter;
|
|
5
5
|
export declare function isConditionalFilter(filter: Filter): boolean;
|
|
6
|
+
export declare function isNumericBetweenFilter(filter: Filter): boolean;
|
|
@@ -8,3 +8,9 @@ export { DateIcon } from './date-icon';
|
|
|
8
8
|
export { ArrowDownIcon } from './arrow-down-icon';
|
|
9
9
|
export { CubeIcon } from './cube-icon';
|
|
10
10
|
export { CheckIcon } from './check-icon';
|
|
11
|
+
export { EqualIcon } from './equal-icon';
|
|
12
|
+
export { NotEqualIcon } from './not-equal-icon';
|
|
13
|
+
export { SmallerThanIcon } from './smaller-than-icon';
|
|
14
|
+
export { SmallerThanOrEqualIcon } from './smaller-than-or-equal-icon';
|
|
15
|
+
export { GreaterThanIcon } from './greater-than-icon';
|
|
16
|
+
export { GreaterThanOrEqualIcon } from './greater-than-or-equal-icon';
|
|
@@ -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;
|
|
@@ -10,10 +10,24 @@ export interface GetFilterMembersParams {
|
|
|
10
10
|
defaultDataSource?: DataSource;
|
|
11
11
|
/** List of filters this filter is dependent on */
|
|
12
12
|
parentFilters?: Filter[];
|
|
13
|
+
/**
|
|
14
|
+
* Number of requested members to return in the query result
|
|
15
|
+
*
|
|
16
|
+
* If not specified, the default value is `20000`
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
count?: number;
|
|
13
21
|
}
|
|
14
22
|
export interface GetFilterMembersSuccess {
|
|
15
23
|
/** Whether the data fetching is loading */
|
|
16
24
|
isLoading: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Function to load more data rows
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
* */
|
|
30
|
+
loadMore: (count: number) => void;
|
|
17
31
|
/** Whether the data fetching has failed */
|
|
18
32
|
isError: false;
|
|
19
33
|
/** The error if any occurred */
|
|
@@ -36,6 +50,12 @@ export interface GetFilterMembersError {
|
|
|
36
50
|
isError: true;
|
|
37
51
|
/** The result data */
|
|
38
52
|
data: undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Function to load more data rows
|
|
55
|
+
*
|
|
56
|
+
* @internal
|
|
57
|
+
* */
|
|
58
|
+
loadMore: (count: number) => void;
|
|
39
59
|
}
|
|
40
60
|
/**
|
|
41
61
|
* State for {@link useGetFilterMembers} hook.
|
|
@@ -47,7 +67,7 @@ export type GetFilterMembersResult = GetFilterMembersError | GetFilterMembersSuc
|
|
|
47
67
|
* @param params - Parameters of the query
|
|
48
68
|
* @internal
|
|
49
69
|
*/
|
|
50
|
-
export declare const useGetFilterMembersInternal: ({ filter, defaultDataSource, parentFilters, }: GetFilterMembersParams) => GetFilterMembersResult;
|
|
70
|
+
export declare const useGetFilterMembersInternal: ({ filter, defaultDataSource, parentFilters, count, }: GetFilterMembersParams) => GetFilterMembersResult;
|
|
51
71
|
/**
|
|
52
72
|
* Hook that fetches members of the provided filter
|
|
53
73
|
*
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* @groupDescription Charts
|
|
4
|
+
* React components and utilities for working with charts
|
|
5
|
+
* @groupDescription Data Grids
|
|
6
|
+
* React components for data grids
|
|
7
|
+
* @groupDescription Drilldown
|
|
8
|
+
* React components for creating drilldown experiences
|
|
9
|
+
* @groupDescription Filter Tiles
|
|
10
|
+
* React filter tile components
|
|
11
|
+
* @groupDescription Contexts
|
|
12
|
+
* React context components
|
|
13
|
+
* @groupDescription Queries
|
|
14
|
+
* React components and hooks for working with queries
|
|
15
|
+
* @groupDescription Dashboards
|
|
16
|
+
* React components and utilities for working with dashboards
|
|
17
|
+
* @groupDescription Fusion Assets
|
|
18
|
+
* React components, hooks, and utilities for working with Fusion dashboards, widgets, queries, and formulas
|
|
19
|
+
* @groupDescription Generative AI
|
|
20
|
+
* React components and hooks for creating experiences using generative AI
|
|
21
|
+
* @groupDescription Interfaces
|
|
22
|
+
* TypeScript interfaces for components and hooks listed above
|
|
23
|
+
* @groupDescription Type Aliases
|
|
24
|
+
* TypeScript type aliases for components and hooks listed above
|
|
25
|
+
*/
|
|
26
|
+
export * from './index';
|
|
27
|
+
export * from './analytics-composer/index';
|
|
28
|
+
export * from './ai/index';
|
|
@@ -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;
|
|
@@ -112,7 +112,10 @@ export type QuerySuccessState = {
|
|
|
112
112
|
/** The status of the query execution */
|
|
113
113
|
status: 'success';
|
|
114
114
|
};
|
|
115
|
-
export type QueryAction = DataLoadAction<QueryResultData
|
|
115
|
+
export type QueryAction = DataLoadAction<QueryResultData> | {
|
|
116
|
+
type: 'success-load-more';
|
|
117
|
+
data: QueryResultData;
|
|
118
|
+
};
|
|
116
119
|
/**
|
|
117
120
|
* Parameters for {@link useExecuteQueryByWidgetId} hook.
|
|
118
121
|
*/
|
|
@@ -232,6 +235,12 @@ export interface ExecuteQueryParams {
|
|
|
232
235
|
export type ExecuteQueryResult = QueryState & {
|
|
233
236
|
/** Function to refetch the query */
|
|
234
237
|
refetch: () => void;
|
|
238
|
+
/**
|
|
239
|
+
* Function to load more data rows
|
|
240
|
+
*
|
|
241
|
+
* @internal
|
|
242
|
+
* */
|
|
243
|
+
loadMore: (count: number) => void;
|
|
235
244
|
};
|
|
236
245
|
/** Configuration for {@link useExecuteCsvQuery} hook. */
|
|
237
246
|
export type ExecuteCSVQueryConfig = {
|
|
@@ -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;
|
|
@@ -263,9 +267,12 @@ export declare const translation: {
|
|
|
263
267
|
labels: {
|
|
264
268
|
includeAll: string;
|
|
265
269
|
allowMultiSelection: string;
|
|
270
|
+
from: string;
|
|
271
|
+
to: string;
|
|
266
272
|
};
|
|
267
273
|
placeholders: {
|
|
268
274
|
selectFromList: string;
|
|
275
|
+
enterEntry: string;
|
|
269
276
|
enterValue: string;
|
|
270
277
|
};
|
|
271
278
|
conditions: {
|
|
@@ -280,6 +287,14 @@ export declare const translation: {
|
|
|
280
287
|
notEquals: string;
|
|
281
288
|
isEmpty: string;
|
|
282
289
|
isNotEmpty: string;
|
|
290
|
+
lessThan: string;
|
|
291
|
+
lessThanOrEqual: string;
|
|
292
|
+
greaterThan: string;
|
|
293
|
+
greaterThanOrEqual: string;
|
|
294
|
+
};
|
|
295
|
+
validationErrors: {
|
|
296
|
+
invalidNumber: string;
|
|
297
|
+
invalidNumericRange: string;
|
|
283
298
|
};
|
|
284
299
|
};
|
|
285
300
|
pivotTable: {
|
|
@@ -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;
|
|
@@ -273,9 +277,12 @@ export declare const resources: {
|
|
|
273
277
|
labels: {
|
|
274
278
|
includeAll: string;
|
|
275
279
|
allowMultiSelection: string;
|
|
280
|
+
from: string;
|
|
281
|
+
to: string;
|
|
276
282
|
};
|
|
277
283
|
placeholders: {
|
|
278
284
|
selectFromList: string;
|
|
285
|
+
enterEntry: string;
|
|
279
286
|
enterValue: string;
|
|
280
287
|
};
|
|
281
288
|
conditions: {
|
|
@@ -290,6 +297,14 @@ export declare const resources: {
|
|
|
290
297
|
notEquals: string;
|
|
291
298
|
isEmpty: string;
|
|
292
299
|
isNotEmpty: string;
|
|
300
|
+
lessThan: string;
|
|
301
|
+
lessThanOrEqual: string;
|
|
302
|
+
greaterThan: string;
|
|
303
|
+
greaterThanOrEqual: string;
|
|
304
|
+
};
|
|
305
|
+
validationErrors: {
|
|
306
|
+
invalidNumber: string;
|
|
307
|
+
invalidNumericRange: string;
|
|
293
308
|
};
|
|
294
309
|
};
|
|
295
310
|
pivotTable: {
|
|
@@ -545,6 +560,10 @@ export declare const resources: {
|
|
|
545
560
|
insightsNotAvailable: string;
|
|
546
561
|
VectorDBEmptyResponseError: string;
|
|
547
562
|
LlmBadConfigurationError: string;
|
|
563
|
+
ChartTypeUnsupportedError: string;
|
|
564
|
+
BlockedByLlmContentFiltering: string;
|
|
565
|
+
LlmContextLengthExceedsLimitError: string;
|
|
566
|
+
UserPromptExeedsLimitError: string;
|
|
548
567
|
unexpectedChatResponse: string;
|
|
549
568
|
unexpected: string;
|
|
550
569
|
unknownResponse: string;
|
|
@@ -562,9 +581,12 @@ export declare const resources: {
|
|
|
562
581
|
labels: {
|
|
563
582
|
includeAll: string;
|
|
564
583
|
allowMultiSelection: string;
|
|
584
|
+
from: string;
|
|
585
|
+
to: string;
|
|
565
586
|
};
|
|
566
587
|
placeholders: {
|
|
567
588
|
selectFromList: string;
|
|
589
|
+
enterEntry: string;
|
|
568
590
|
enterValue: string;
|
|
569
591
|
};
|
|
570
592
|
conditions: {
|
|
@@ -579,6 +601,14 @@ export declare const resources: {
|
|
|
579
601
|
notEquals: string;
|
|
580
602
|
isEmpty: string;
|
|
581
603
|
isNotEmpty: string;
|
|
604
|
+
lessThan: string;
|
|
605
|
+
lessThanOrEqual: string;
|
|
606
|
+
greaterThan: string;
|
|
607
|
+
greaterThanOrEqual: string;
|
|
608
|
+
};
|
|
609
|
+
validationErrors: {
|
|
610
|
+
invalidNumber: string;
|
|
611
|
+
invalidNumericRange: string;
|
|
582
612
|
};
|
|
583
613
|
};
|
|
584
614
|
pivotTable: {
|
|
@@ -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 */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if a given string is a valid numeric representation,
|
|
3
|
+
* including integers, decimals, and numbers in scientific notation.
|
|
4
|
+
*
|
|
5
|
+
* Supported formats:
|
|
6
|
+
* - Integers: "123", "-456"
|
|
7
|
+
* - Decimals: "3.14", "-0.001", ".5", "10."
|
|
8
|
+
* - Scientific notation: "1e3", "-2.5E-2", "3.14e+10"
|
|
9
|
+
*/
|
|
10
|
+
export declare function isNumericString(str: string): boolean;
|