@sisense/sdk-ui 1.28.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 +1177 -1122
- package/dist/analytics-composer.cjs +20 -20
- package/dist/analytics-composer.js +180 -182
- package/dist/{derive-chart-family-BYdyoe8O.js → derive-chart-family-B2J2kMs6.js} +15299 -15416
- package/dist/{derive-chart-family-BNu7PP-p.cjs → derive-chart-family-Bmg9hQGc.cjs} +102 -102
- package/dist/index.cjs +252 -121
- package/dist/index.js +12548 -10364
- 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 +4 -3
- 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 +10 -1
- 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 +3 -2
- package/dist/packages/sdk-ui/src/ai/use-last-nlq-response.d.ts +4 -2
- package/dist/packages/sdk-ui/src/analytics-composer/common/utils.d.ts +0 -1
- package/dist/packages/sdk-ui/src/area-chart.d.ts +1 -1
- package/dist/packages/sdk-ui/src/areamap-chart.d.ts +1 -1
- package/dist/packages/sdk-ui/src/boxplot-utils.d.ts +3 -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 +6 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/advanced-chart-options.d.ts +3 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/subtype-to-design-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +5 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +3 -1
- package/dist/packages/sdk-ui/src/common/components/button.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/components/popover.d.ts +23 -0
- package/dist/packages/sdk-ui/src/common/components/radio.d.ts +8 -0
- package/dist/packages/sdk-ui/src/common/hooks/use-combined-menu.d.ts +3 -4
- package/dist/packages/sdk-ui/src/common/hooks/use-debounced-value.d.ts +5 -0
- package/dist/packages/sdk-ui/src/const.d.ts +3 -0
- package/dist/packages/sdk-ui/src/dashboard/components/dashboard-container.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +6 -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/index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/input.d.ts +5 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/search-input.d.ts +8 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +17 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/multi-select-item.d.ts +9 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +14 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +14 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select-item.d.ts +9 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select.d.ts +14 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/types.d.ts +7 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/utils.d.ts +4 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/selectable-section.d.ts +10 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-popover.d.ts +12 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor.d.ts +8 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/multi-select-control.d.ts +7 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/include-all-section.d.ts +9 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/members-section.d.ts +11 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/text-condition-section.d.ts +11 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +5 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/icons/arrow-down-icon.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/icons/check-icon.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/icons/index.d.ts +1 -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/search-icon.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/helpers.d.ts +1 -122
- package/dist/packages/sdk-ui/src/filters/index.d.ts +0 -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/formatters/header-cell-formatters/header-cell-totals-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/props.d.ts +15 -15
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +33 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +66 -0
- package/dist/packages/sdk-ui/src/types.d.ts +37 -2
- package/dist/packages/sdk-ui/src/utils/filter-relations.d.ts +30 -72
- package/dist/packages/sdk-ui/src/widget-by-id/dashboard-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-data-options.d.ts +1 -2
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +15 -0
- package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +2 -57
- package/dist/{useQuery-CwqhrvKr.js → useQuery-1ixYW8qO.js} +27765 -27713
- package/dist/useQuery-Ctzmd-JM.cjs +916 -0
- package/dist/{widget-composer-BvJFwTM1.cjs → widget-composer-CdxKUwZf.cjs} +18 -10
- package/dist/{widget-composer-CAmaQCTo.js → widget-composer-Ch2kYMok.js} +115 -105
- package/package.json +7 -7
- package/dist/useQuery-7UcSPq8U.cjs +0 -915
package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/search-input.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
type SearchInputProps = {
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
};
|
|
7
|
+
export declare const SearchInput: (props: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Focusable } from './types';
|
|
3
|
+
export declare const SelectContainer: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
} & Focusable, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const SelectItemContainer: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
background?: string | undefined;
|
|
12
|
+
color?: string | undefined;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
|
+
export declare const SelectLabel: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SelectItem } from './types';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
type MultiSelectItemProps<Value> = SelectItem<Value> & {
|
|
4
|
+
selected: boolean;
|
|
5
|
+
onSelect?: (value: Value) => void;
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
};
|
|
8
|
+
export declare function MultiSelectItem<Value = unknown>(props: MultiSelectItemProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { SelectItem } from './types';
|
|
3
|
+
type SearchableMultiSelectProps<Value> = {
|
|
4
|
+
values?: Value[];
|
|
5
|
+
items: SelectItem<Value>[];
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
onChange?: (values: Value[]) => void;
|
|
9
|
+
primaryColor?: string;
|
|
10
|
+
primaryBackgroundColor?: string;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare function SearchableMultiSelect<Value = unknown>(props: SearchableMultiSelectProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { SelectItem } from './types';
|
|
3
|
+
type SearchableSingleSelectProps<Value> = {
|
|
4
|
+
value?: Value;
|
|
5
|
+
items: SelectItem<Value>[];
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
onChange?: (value: Value) => void;
|
|
9
|
+
primaryColor?: string;
|
|
10
|
+
primaryBackgroundColor?: string;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare function SearchableSingleSelect<Value = unknown>(props: SearchableSingleSelectProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SelectItem } from './types';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
type SingleSelectItemProps<Value> = SelectItem<Value> & {
|
|
4
|
+
selected: boolean;
|
|
5
|
+
onSelect?: (value: Value) => void;
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
};
|
|
8
|
+
export declare function SingleSelectItem<Value = unknown>(props: SingleSelectItemProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { SelectItem } from './types';
|
|
3
|
+
type SelectProps<Value> = {
|
|
4
|
+
value?: Value;
|
|
5
|
+
multiple?: boolean;
|
|
6
|
+
items: SelectItem<Value>[];
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
onChange?: (value: Value) => void;
|
|
9
|
+
primaryColor?: string;
|
|
10
|
+
primaryBackgroundColor?: string;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare function SingleSelect<Value = unknown>(props: SelectProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/utils.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PopoverAnchorPosition } from '../../../../../common/components/popover';
|
|
2
|
+
import { SelectItem } from './types';
|
|
3
|
+
export declare const calculatePopoverPosition: (anchorEl: HTMLDivElement | null, contentHeight?: number) => PopoverAnchorPosition;
|
|
4
|
+
export declare function getSelectedItemsDisplayValue<Value>(items: SelectItem<Value>[], values: Value[]): string | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type ChildrenFn = (select: () => void) => ReactNode;
|
|
3
|
+
type SelectableSectionProps = {
|
|
4
|
+
selected: boolean;
|
|
5
|
+
onSelect: (selected: boolean) => void;
|
|
6
|
+
children: ReactNode | ChildrenFn;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const SelectableSection: ({ selected, children, onSelect, ...rest }: SelectableSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-popover.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Filter } from '@sisense/sdk-data';
|
|
2
|
+
import { PopoverAnchorPosition } from '../../../common/components/popover';
|
|
3
|
+
type FilterEditorPopoverPosition = Pick<PopoverAnchorPosition, 'anchorEl'>;
|
|
4
|
+
type FilterEditorPopoverProps = {
|
|
5
|
+
filter?: Filter | null;
|
|
6
|
+
position?: FilterEditorPopoverPosition;
|
|
7
|
+
onChange?: (filter: Filter) => void;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const FilterEditorPopover: ({ filter, position, onChange, onClose, }: FilterEditorPopoverProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
type FilterEditorProps = {
|
|
3
|
+
filter: Filter;
|
|
4
|
+
onChange?: (filter: Filter | null) => void;
|
|
5
|
+
};
|
|
6
|
+
/** @internal */
|
|
7
|
+
export declare const FilterEditor: ({ filter, onChange }: FilterEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
type IncludeAllSectionProps = {
|
|
3
|
+
filter: Filter;
|
|
4
|
+
selected: boolean;
|
|
5
|
+
onChange: (newFilter: Filter) => void;
|
|
6
|
+
};
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare const IncludeAllSection: ({ filter, selected, onChange }: IncludeAllSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
type MembersSectionProps = {
|
|
3
|
+
filter: Filter;
|
|
4
|
+
selected: boolean;
|
|
5
|
+
members: string[];
|
|
6
|
+
multiSelectEnabled: boolean;
|
|
7
|
+
onChange: (filter: Filter | null) => void;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const MembersSection: (props: MembersSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
type TextConditionSectionProps = {
|
|
3
|
+
filter: Filter;
|
|
4
|
+
selected: boolean;
|
|
5
|
+
members: string[];
|
|
6
|
+
multiSelectEnabled: boolean;
|
|
7
|
+
onChange: (filter: Filter | null) => void;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const TextConditionSection: ({ filter, selected, members, multiSelectEnabled, onChange, }: TextConditionSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Filter, MembersFilter } from '@sisense/sdk-data';
|
|
2
|
+
export declare function isIncludeAllFilter(filter: Filter): filter is MembersFilter;
|
|
3
|
+
export declare function isIncludeMembersFilter(filter: Filter): filter is MembersFilter;
|
|
4
|
+
export declare function isExcludeMembersFilter(filter: Filter): filter is MembersFilter;
|
|
5
|
+
export declare function isConditionalFilter(filter: Filter): boolean;
|
|
@@ -11,6 +11,8 @@ export type FiltersPanelProps = {
|
|
|
11
11
|
onFiltersChange: (filters: Filter[] | FilterRelations) => void;
|
|
12
12
|
/** Default data source used for filter tiles */
|
|
13
13
|
defaultDataSource?: DataSource;
|
|
14
|
+
/** @internal */
|
|
15
|
+
enableFilterEditor?: boolean;
|
|
14
16
|
};
|
|
15
17
|
/**
|
|
16
18
|
* Filters panel component that renders a list of filter tiles
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
|
-
export declare const ArrowDownIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'fill' | 'onClick'>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const ArrowDownIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'style' | 'width' | 'height' | 'fill' | 'onClick'>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -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;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
|
-
export declare const SearchIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height'>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const SearchIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'color' | 'opacity'>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Attribute, DataSource, Filter } from '@sisense/sdk-data';
|
|
|
2
2
|
import { FunctionComponent } from 'react';
|
|
3
3
|
import { FilterTileDesignOptions } from '../filter-tile-container';
|
|
4
4
|
/**
|
|
5
|
-
* Props for {@link MemberFilterTile}
|
|
5
|
+
* Props for {@link @sisense/sdk-ui!MemberFilterTile | `MemberFilterTile`}
|
|
6
6
|
*/
|
|
7
7
|
export interface MemberFilterTileProps {
|
|
8
8
|
/** Title for the filter tile, which is rendered into the header */
|
|
@@ -1,122 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Returns a function that adds a filter to existing filters or filter relations.
|
|
4
|
-
*
|
|
5
|
-
* @param filter - The filter to add.
|
|
6
|
-
* @returns A function that takes existing filters or filter relations and returns updated filters or filter relations with the new filter added.
|
|
7
|
-
* @group Filter Utilities
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* // Using with an array of filters
|
|
11
|
-
* const originalFilters = [filterByAgeRange];
|
|
12
|
-
* const updatedFilters = withAddedFilter(filterByCost)(originalFilters);
|
|
13
|
-
* // [filterByAgeRange, filterByCost]
|
|
14
|
-
*
|
|
15
|
-
* // Using with filter relations
|
|
16
|
-
* const originalFilterRelations = filterFactory.logic.or(filterByAgeRange, filterByRevenue);
|
|
17
|
-
* const updatedFilterRelations = withAddedFilter(filterByCost)(originalFilterRelations);
|
|
18
|
-
* // (filterByAgeRange OR filterByRevenue) AND filterByCost
|
|
19
|
-
* ```
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
export declare function withAddedFilter(filter: Filter): (filters: Filter[] | FilterRelations | undefined) => Filter[] | FilterRelations;
|
|
23
|
-
/**
|
|
24
|
-
* Returns a function that adds multiple filters to existing filters or filter relations.
|
|
25
|
-
*
|
|
26
|
-
* @param filtersToAdd - An array of filters to add.
|
|
27
|
-
* @returns A function that takes existing filters or filter relations and returns updated filters or filter relations with the new filters added.
|
|
28
|
-
* @group Filter Utilities
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* // Using with an array of filters
|
|
32
|
-
* const originalFilters = [filterByAgeRange];
|
|
33
|
-
* const updatedFilters = withAddedFilters([filterByCost, filterByRevenue])(originalFilters);
|
|
34
|
-
* // [filterByAgeRange, filterByCost, filterByRevenue]
|
|
35
|
-
*
|
|
36
|
-
* // Using with filter relations
|
|
37
|
-
* const originalFilterRelations = filterFactory.logic.or(filterByAgeRange, filterByRevenue);
|
|
38
|
-
* const updatedFilterRelations = withAddedFilters([filterByCost, filterByRevenue])(originalFilterRelations);
|
|
39
|
-
* // (filterByAgeRange OR filterByRevenue) AND filterByCost AND filterByRevenue
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
|
-
export declare function withAddedFilters(filtersToAdd: Filter[]): (filters: Filter[] | FilterRelations | undefined) => Filter[] | FilterRelations;
|
|
45
|
-
/**
|
|
46
|
-
* Returns a function that removes a filter from existing filters or filter relations.
|
|
47
|
-
*
|
|
48
|
-
* @param filterToRemove - The filter to remove.
|
|
49
|
-
* @returns A function that takes existing filters or filter relations and returns updated filters or filter relations without the specified filter.
|
|
50
|
-
* @group Filter Utilities
|
|
51
|
-
* @example
|
|
52
|
-
* ```ts
|
|
53
|
-
* // Using with an array of filters
|
|
54
|
-
* const originalFilters = [filterByAgeRange, filterByRevenue, filterByCost];
|
|
55
|
-
* const updatedFilters = withoutFilter(filterByCost)(originalFilters);
|
|
56
|
-
* // [filterByAgeRange, filterByRevenue]
|
|
57
|
-
*
|
|
58
|
-
* // Using with filter relations
|
|
59
|
-
* const originalFilterRelations = filterFactory.logic.or(filterByAgeRange, filterByRevenue);
|
|
60
|
-
* const updatedFiltersRelations = withoutFilter(filterByRevenue)(originalFilterRelations);
|
|
61
|
-
* // filterByAgeRange
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
export declare function withoutFilter(filterToRemove: Filter): (filters: Filter[] | FilterRelations | undefined) => Filter[] | FilterRelations;
|
|
67
|
-
/**
|
|
68
|
-
* Returns a function that removes multiple filters from existing filters or filter relations.
|
|
69
|
-
*
|
|
70
|
-
* @param filtersToRemove - An array of filters to remove.
|
|
71
|
-
* @returns A function that takes existing filters or filter relations and returns updated filters or filter relations without the specified filters.
|
|
72
|
-
* @group Filter Utilities
|
|
73
|
-
* @example
|
|
74
|
-
* ```ts
|
|
75
|
-
* // Using with an array of filters
|
|
76
|
-
* const originalFilters = [filterByAgeRange, filterByRevenue, filterByCost];
|
|
77
|
-
* const updatedFilters = withRemovedFilters([filterByRevenue, filterByCost])(originalFilters);
|
|
78
|
-
* // [filterByAgeRange]
|
|
79
|
-
*
|
|
80
|
-
* // Using with filter relations
|
|
81
|
-
* const originalFilterRelations = filterFactory.logic.or(filterByAgeRange, filterByRevenue);
|
|
82
|
-
* const updatedFiltersRelations = withRemovedFilters([filterByRevenue])(originalFilterRelations);
|
|
83
|
-
* // filterByAgeRange
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
export declare function withoutFilters(filtersToRemove: Filter[]): (filters: Filter[] | FilterRelations | undefined) => Filter[] | FilterRelations;
|
|
89
|
-
/**
|
|
90
|
-
* Returns a function that replaces a filter with a new filter in existing filters or filter relations.
|
|
91
|
-
*
|
|
92
|
-
* @param filterToReplace - The filter to replace.
|
|
93
|
-
* @param newFilter - The new filter to use as a replacement.
|
|
94
|
-
* @returns A function that takes existing filters or filter relations and returns updated filters or filter relations with the filter replaced.
|
|
95
|
-
* @group Filter Utilities
|
|
96
|
-
* @example
|
|
97
|
-
* ```ts
|
|
98
|
-
* // Using with an array of filters
|
|
99
|
-
* const originalFilters = [filterByAgeRange, filterByRevenue];
|
|
100
|
-
* const updatedFilters = withReplacedFilter(filterByRevenue, filterByCost)(originalFilters);
|
|
101
|
-
* // [filterByAgeRange, filterByCost]
|
|
102
|
-
*
|
|
103
|
-
* // Using with filter relations
|
|
104
|
-
* const originalFilterRelations = filterFactory.logic.or(filterByAgeRange, filterByRevenue);
|
|
105
|
-
* const updatedFilterRelations = withReplacedFilter(filterByRevenue, filterByCost)(originalFilterRelations);
|
|
106
|
-
* // (filterByAgeRange OR filterByCost)
|
|
107
|
-
* ```
|
|
108
|
-
*
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
111
|
-
export declare function withReplacedFilter(filterToReplace: Filter, newFilter: Filter): (filters: Filter[] | FilterRelations | undefined) => Filter[] | FilterRelations;
|
|
112
|
-
/**
|
|
113
|
-
* Finds a filter in an array of filters or filter relations.
|
|
114
|
-
* Returns the first filter that satisfies the provided search function.
|
|
115
|
-
* @group Filter Utilities
|
|
116
|
-
* @param filters - An array of filters or filter relations to search.
|
|
117
|
-
* @param searchFn - A function that takes a filter and returns a boolean indicating whether the filter satisfies the search criteria.
|
|
118
|
-
* @returns The first filter that satisfies the search function, or `undefined` if no filter is found.
|
|
119
|
-
*
|
|
120
|
-
* @internal
|
|
121
|
-
*/
|
|
122
|
-
export declare function findFilter(filters: Filter[] | FilterRelations | undefined, searchFn: (filter: Filter) => boolean): Filter | undefined;
|
|
1
|
+
export { splitFiltersAndRelations, calculateNewRelations, combineFiltersAndRelations, getRelationsWithReplacedFilter, getFiltersArray, withAddedFilter, withAddedFilters, withoutFilter, withoutFilters, withReplacedFilter, findFilter, } from '@sisense/sdk-data';
|
|
@@ -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;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TFunction } from '@sisense/sdk-common/src/i18n/i18next';
|
|
2
|
+
import { PivotTreeNode } from '@sisense/sdk-pivot-client';
|
|
3
|
+
import type { PivotTableDataOptions } from '../../../chart-data-options/types';
|
|
4
|
+
export declare function createHeaderCellTotalsFormatter(dataOptions: PivotTableDataOptions, translate: TFunction): (cell: PivotTreeNode) => void;
|
|
@@ -477,7 +477,7 @@ export interface BaseChartProps extends BaseChartEventProps {
|
|
|
477
477
|
*
|
|
478
478
|
* To learn more about using filter factory functions to create filters, see the [Compose SDK Charts Guide](/guides/sdk/guides/charts/guide-compose-sdk-charts.html#filter-functions).
|
|
479
479
|
*
|
|
480
|
-
* (2) Array of {@link Filter} controlled by filter UI components – for example {@link MemberFilterTile}.
|
|
480
|
+
* (2) Array of {@link Filter} controlled by filter UI components – for example {@link @sisense/sdk-ui!MemberFilterTile | `MemberFilterTile`}.
|
|
481
481
|
*
|
|
482
482
|
* Use this option for filters that you want your users to set using pre-built UI components.
|
|
483
483
|
*
|
|
@@ -501,7 +501,7 @@ export interface BaseChartProps extends BaseChartEventProps {
|
|
|
501
501
|
* To learn more about using filter factory functions to create highlights, see the
|
|
502
502
|
* [Compose SDK Charts Guide](/guides/sdk/guides/charts/guide-compose-sdk-charts.html#filter-functions-for-highlighting).
|
|
503
503
|
*
|
|
504
|
-
* (2) Array of {@link Filter} controlled by filter UI components – for example {@link MemberFilterTile}.
|
|
504
|
+
* (2) Array of {@link Filter} controlled by filter UI components – for example {@link @sisense/sdk-ui!MemberFilterTile | `MemberFilterTile`}.
|
|
505
505
|
*
|
|
506
506
|
* Use this option for highlights that you want your users to set using pre-built UI components.
|
|
507
507
|
*
|
|
@@ -660,7 +660,7 @@ export interface ColumnChartProps extends BaseChartProps, HighchartsBasedChartEv
|
|
|
660
660
|
styleOptions?: StackableStyleOptions;
|
|
661
661
|
}
|
|
662
662
|
/**
|
|
663
|
-
* Props of the {@link FunnelChart} component.
|
|
663
|
+
* Props of the {@link @sisense/sdk-ui!FunnelChart | `FunnelChart`} component.
|
|
664
664
|
*/
|
|
665
665
|
export interface FunnelChartProps extends BaseChartProps, HighchartsBasedChartEventProps, RegularChartEventProps {
|
|
666
666
|
/**
|
|
@@ -677,7 +677,7 @@ export interface FunnelChartProps extends BaseChartProps, HighchartsBasedChartEv
|
|
|
677
677
|
styleOptions?: FunnelStyleOptions;
|
|
678
678
|
}
|
|
679
679
|
/**
|
|
680
|
-
* Props of the {@link LineChart} component.
|
|
680
|
+
* Props of the {@link @sisense/sdk-ui!LineChart | `LineChart`} component.
|
|
681
681
|
*/
|
|
682
682
|
export interface LineChartProps extends BaseChartProps, HighchartsBasedChartEventProps, RegularChartEventProps {
|
|
683
683
|
/**
|
|
@@ -697,7 +697,7 @@ export interface LineChartProps extends BaseChartProps, HighchartsBasedChartEven
|
|
|
697
697
|
styleOptions?: LineStyleOptions;
|
|
698
698
|
}
|
|
699
699
|
/**
|
|
700
|
-
* Props of the {@link PieChart} component.
|
|
700
|
+
* Props of the {@link @sisense/sdk-ui!PieChart | `PieChart`} component.
|
|
701
701
|
*/
|
|
702
702
|
export interface PieChartProps extends BaseChartProps, HighchartsBasedChartEventProps, RegularChartEventProps {
|
|
703
703
|
/**
|
|
@@ -714,7 +714,7 @@ export interface PieChartProps extends BaseChartProps, HighchartsBasedChartEvent
|
|
|
714
714
|
styleOptions?: PieStyleOptions;
|
|
715
715
|
}
|
|
716
716
|
/**
|
|
717
|
-
* Props of the {@link PolarChart} component.
|
|
717
|
+
* Props of the {@link @sisense/sdk-ui!PolarChart | `PolarChart`} component.
|
|
718
718
|
*/
|
|
719
719
|
export interface PolarChartProps extends BaseChartProps, HighchartsBasedChartEventProps, RegularChartEventProps {
|
|
720
720
|
/**
|
|
@@ -734,7 +734,7 @@ export interface PolarChartProps extends BaseChartProps, HighchartsBasedChartEve
|
|
|
734
734
|
styleOptions?: PolarStyleOptions;
|
|
735
735
|
}
|
|
736
736
|
/**
|
|
737
|
-
* Props of the {@link IndicatorChart} component.
|
|
737
|
+
* Props of the {@link @sisense/sdk-ui!IndicatorChart | `IndicatorChart`} component.
|
|
738
738
|
*/
|
|
739
739
|
export interface IndicatorChartProps extends BaseChartProps, IndicatorChartEventProps {
|
|
740
740
|
/**
|
|
@@ -751,7 +751,7 @@ export interface IndicatorChartProps extends BaseChartProps, IndicatorChartEvent
|
|
|
751
751
|
styleOptions?: IndicatorStyleOptions;
|
|
752
752
|
}
|
|
753
753
|
/**
|
|
754
|
-
* Props of the {@link Table} component.
|
|
754
|
+
* Props of the {@link @sisense/sdk-ui!Table | `Table`} component.
|
|
755
755
|
*/
|
|
756
756
|
export interface TableProps extends BaseChartEventProps {
|
|
757
757
|
/**
|
|
@@ -788,7 +788,7 @@ export interface TableProps extends BaseChartEventProps {
|
|
|
788
788
|
refreshCounter?: number;
|
|
789
789
|
}
|
|
790
790
|
/**
|
|
791
|
-
* Props of the {@link PivotTable} component.
|
|
791
|
+
* Props of the {@link @sisense/sdk-ui!PivotTable | `PivotTable`} component.
|
|
792
792
|
*/
|
|
793
793
|
export interface PivotTableProps {
|
|
794
794
|
/**
|
|
@@ -832,7 +832,7 @@ export interface PivotTableProps {
|
|
|
832
832
|
refreshCounter?: number;
|
|
833
833
|
}
|
|
834
834
|
/**
|
|
835
|
-
* Props of the {@link ScatterChart} component.
|
|
835
|
+
* Props of the {@link @sisense/sdk-ui!ScatterChart | `ScatterChart`} component.
|
|
836
836
|
*/
|
|
837
837
|
export interface ScatterChartProps extends BaseChartProps, ScatterChartEventProps, HighchartsBasedChartEventProps {
|
|
838
838
|
/**
|
|
@@ -849,7 +849,7 @@ export interface ScatterChartProps extends BaseChartProps, ScatterChartEventProp
|
|
|
849
849
|
styleOptions?: ScatterStyleOptions;
|
|
850
850
|
}
|
|
851
851
|
/**
|
|
852
|
-
* Props for the {@link WidgetById} component
|
|
852
|
+
* Props for the {@link @sisense/sdk-ui!WidgetById | `WidgetById`} component
|
|
853
853
|
*/
|
|
854
854
|
export interface WidgetByIdProps extends Omit<ChartWidgetProps, 'dataSource' | 'dataOptions' | 'chartType' | 'styleOptions'> {
|
|
855
855
|
/**
|
|
@@ -923,7 +923,7 @@ export interface WidgetByIdProps extends Omit<ChartWidgetProps, 'dataSource' | '
|
|
|
923
923
|
/**
|
|
924
924
|
* Props for the {@link DashboardWidget} component
|
|
925
925
|
*
|
|
926
|
-
* @deprecated Use {@link WidgetById} and {@link WidgetByIdProps} instead
|
|
926
|
+
* @deprecated Use {@link @sisense/sdk-ui!WidgetById | `WidgetById`} and {@link WidgetByIdProps} instead
|
|
927
927
|
*/
|
|
928
928
|
export interface DashboardWidgetProps extends WidgetByIdProps {
|
|
929
929
|
/**
|
|
@@ -1286,7 +1286,7 @@ export interface ExecuteQueryByWidgetIdProps {
|
|
|
1286
1286
|
onBeforeQuery?: (jaql: any) => any | Promise<any>;
|
|
1287
1287
|
}
|
|
1288
1288
|
/**
|
|
1289
|
-
* Props of the {@link TreemapChart} component.
|
|
1289
|
+
* Props of the {@link @sisense/sdk-ui!TreemapChart | `TreemapChart`} component.
|
|
1290
1290
|
*/
|
|
1291
1291
|
export interface TreemapChartProps extends BaseChartProps, HighchartsBasedChartEventProps, RegularChartEventProps {
|
|
1292
1292
|
/**
|
|
@@ -1303,7 +1303,7 @@ export interface TreemapChartProps extends BaseChartProps, HighchartsBasedChartE
|
|
|
1303
1303
|
styleOptions?: TreemapStyleOptions;
|
|
1304
1304
|
}
|
|
1305
1305
|
/**
|
|
1306
|
-
* Props of the {@link SunburstChart} component.
|
|
1306
|
+
* Props of the {@link @sisense/sdk-ui!SunburstChart | `SunburstChart`} component.
|
|
1307
1307
|
*/
|
|
1308
1308
|
export interface SunburstChartProps extends BaseChartProps, RegularChartEventProps, HighchartsBasedChartEventProps {
|
|
1309
1309
|
/**
|
|
@@ -1337,7 +1337,7 @@ export interface BoxplotChartProps extends BaseChartProps, BoxplotChartEventProp
|
|
|
1337
1337
|
styleOptions?: BoxplotStyleOptions;
|
|
1338
1338
|
}
|
|
1339
1339
|
/**
|
|
1340
|
-
* Props of the {@link ScattermapChart} component.
|
|
1340
|
+
* Props of the {@link @sisense/sdk-ui!ScattermapChart | `ScattermapChart`} component.
|
|
1341
1341
|
*/
|
|
1342
1342
|
export interface ScattermapChartProps extends BaseChartProps, ScattermapChartEventProps {
|
|
1343
1343
|
/**
|
|
@@ -244,6 +244,12 @@ export declare const translation: {
|
|
|
244
244
|
fetchHistory: string;
|
|
245
245
|
recommendationsNotAvailable: string;
|
|
246
246
|
insightsNotAvailable: string;
|
|
247
|
+
VectorDBEmptyResponseError: string;
|
|
248
|
+
LlmBadConfigurationError: string;
|
|
249
|
+
ChartTypeUnsupportedError: string;
|
|
250
|
+
BlockedByLlmContentFiltering: string;
|
|
251
|
+
LlmContextLengthExceedsLimitError: string;
|
|
252
|
+
UserPromptExeedsLimitError: string;
|
|
247
253
|
unexpectedChatResponse: string;
|
|
248
254
|
unexpected: string;
|
|
249
255
|
unknownResponse: string;
|
|
@@ -255,7 +261,34 @@ export declare const translation: {
|
|
|
255
261
|
buttons: {
|
|
256
262
|
apply: string;
|
|
257
263
|
cancel: string;
|
|
264
|
+
selectAll: string;
|
|
265
|
+
clearAll: string;
|
|
258
266
|
};
|
|
267
|
+
labels: {
|
|
268
|
+
includeAll: string;
|
|
269
|
+
allowMultiSelection: string;
|
|
270
|
+
};
|
|
271
|
+
placeholders: {
|
|
272
|
+
selectFromList: string;
|
|
273
|
+
enterValue: string;
|
|
274
|
+
};
|
|
275
|
+
conditions: {
|
|
276
|
+
exclude: string;
|
|
277
|
+
contains: string;
|
|
278
|
+
notContain: string;
|
|
279
|
+
startsWith: string;
|
|
280
|
+
notStartsWith: string;
|
|
281
|
+
endsWith: string;
|
|
282
|
+
notEndsWith: string;
|
|
283
|
+
equals: string;
|
|
284
|
+
notEquals: string;
|
|
285
|
+
isEmpty: string;
|
|
286
|
+
isNotEmpty: string;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
pivotTable: {
|
|
290
|
+
grandTotal: string;
|
|
291
|
+
subTotal: string;
|
|
259
292
|
};
|
|
260
293
|
};
|
|
261
294
|
/**
|