@sisense/sdk-ui 1.30.0 → 1.32.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 +22 -421
- package/dist/ai.js +1825 -1769
- package/dist/analytics-composer.cjs +58 -58
- package/dist/analytics-composer.js +312 -290
- package/dist/derive-chart-family-7Fxxf6Sy.cjs +758 -0
- package/dist/derive-chart-family-CVwj-7u5.js +100883 -0
- package/dist/index.cjs +27 -833
- package/dist/index.js +11550 -9945
- package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +1 -3
- package/dist/packages/sdk-ui/src/ai/api/types.d.ts +6 -0
- package/dist/packages/sdk-ui/src/ai/chatbot.d.ts +2 -2
- package/dist/packages/sdk-ui/src/ai/custom-ai-context-provider.d.ts +13 -0
- package/dist/packages/sdk-ui/src/ai/index.d.ts +7 -4
- package/dist/packages/sdk-ui/src/ai/use-get-nlg-insights.d.ts +2 -0
- package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +12 -5
- package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +9 -5
- package/dist/packages/sdk-ui/src/analytics-composer/common/constants.d.ts +1 -0
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +13 -6
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +11 -1
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart/helpers/get-load-data-function.d.ts +16 -0
- package/dist/packages/sdk-ui/src/chart/helpers/use-chart-data-preparation.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/helpers/use-synced-data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/chart/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/areamap-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data/areamap-data.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data/geo-data-coloring-function.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data-options/data-options.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/design-options/design-options.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/design-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/areamap-map.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/renderer/areamap-utils.d.ts +12 -0
- package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/areamap.d.ts +5 -5
- package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/feature-styles-dictionary.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/renderer/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/use-geo-json.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/types.d.ts +35 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/bar-chart/bar-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/chart-builder-factory.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/column-chart/column-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/data-options.d.ts +27 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/data.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/stackable/design-options.d.ts +5 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/data-loading.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +100 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/utils.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart-data/chart-data-service.d.ts +1 -13
- package/dist/packages/sdk-ui/src/chart-data/types.d.ts +3 -29
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/prepare-design-options.d.ts +6 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +9 -8
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +1 -7
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +2 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/common/components/popper.d.ts +9 -0
- package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +14 -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 +1 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +18 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-widgets-layout.d.ts +14 -0
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +7 -2
- package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +7 -2
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +19 -19
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/date-filter/calendar-date-selector.d.ts +8 -7
- package/dist/packages/sdk-ui/src/filters/components/date-filter/date-filter/date-range-calculator.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +3 -0
- package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/input.d.ts +11 -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/search-input.d.ts +4 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +5 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/calendar-select.d.ts +27 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/types.d.ts +14 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/utils.d.ts +5 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/members-list-select.d.ts +11 -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 +21 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select.d.ts +3 -2
- 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/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-datetime.d.ts +8 -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-datetime-formatter.d.ts +2 -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/common/granularities.d.ts +8 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/condition-forms/datetime-exclude-condition-form.d.ts +11 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/condition-forms/datetime-is-within-condition-form.d.ts +10 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/datetime-condition-section.d.ts +12 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-members-section.d.ts +12 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-range-section.d.ts +11 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-relative-section.d.ts +9 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/members-section.d.ts +0 -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 +10 -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 +4 -2
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/types.d.ts +4 -0
- 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 +13 -1
- package/dist/packages/sdk-ui/src/filters/components/icons/date-icon.d.ts +1 -1
- 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/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/components/member-filter-tile/member-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +23 -2
- package/dist/packages/sdk-ui/src/index-typedoc.d.ts +28 -0
- package/dist/packages/sdk-ui/src/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +7 -1
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +2 -1
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +9 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/plugins-provider/custom-plugins-provider.d.ts +8 -8
- package/dist/packages/sdk-ui/src/plugins-provider/plugins-context.d.ts +6 -6
- package/dist/packages/sdk-ui/src/plugins-provider/plugins-provider.d.ts +3 -3
- package/dist/packages/sdk-ui/src/plugins-provider/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/props.d.ts +35 -15
- package/dist/packages/sdk-ui/src/query-execution/types.d.ts +10 -1
- package/dist/packages/sdk-ui/src/sisense-chart/sisense-chart.d.ts +1 -16
- package/dist/packages/sdk-ui/src/sisense-chart/types.d.ts +16 -1
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +51 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +102 -0
- package/dist/packages/sdk-ui/src/types.d.ts +52 -1
- package/dist/packages/sdk-ui/src/utils/generate-attribute-name.d.ts +2 -0
- package/dist/packages/sdk-ui/src/utils/is-numeric-string.d.ts +10 -0
- package/dist/packages/sdk-ui/src/utils/utility-types.d.ts +34 -0
- package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +1 -0
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options.d.ts +16 -5
- package/dist/packages/sdk-ui/src/widgets/tabber-widget.d.ts +35 -0
- package/dist/use-common-filters-BanIIIUW.js +28409 -0
- package/dist/use-common-filters-BeKQ1bKU.cjs +271 -0
- package/dist/{widget-composer-Ch2kYMok.js → widget-composer-4bEKHitq.js} +275 -259
- package/dist/widget-composer-NDI4zssI.cjs +316 -0
- package/package.json +11 -9
- package/dist/derive-chart-family-B2J2kMs6.js +0 -44404
- package/dist/derive-chart-family-Bmg9hQGc.cjs +0 -271
- package/dist/packages/sdk-ui/src/ai/use-get-data-source-fields.d.ts +0 -12
- package/dist/packages/sdk-ui/src/chart-data/areamap-data.d.ts +0 -4
- package/dist/packages/sdk-ui/src/chart-data/data-coloring/geo-data-coloring-function.d.ts +0 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-areamap-options.d.ts +0 -3
- package/dist/packages/sdk-ui/src/charts/map-charts/areamap/areamap-utils.d.ts +0 -11
- package/dist/useQuery-1ixYW8qO.js +0 -83434
- package/dist/useQuery-Ctzmd-JM.cjs +0 -916
- package/dist/widget-composer-CdxKUwZf.cjs +0 -308
- /package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/alternative-country-names-dictionary.d.ts +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Attribute } from '@sisense/sdk-data';
|
|
2
|
+
type MembersListSelectProps = {
|
|
3
|
+
attribute: Attribute;
|
|
4
|
+
selectedMembers: string[];
|
|
5
|
+
onChange: (values: string[]) => void;
|
|
6
|
+
multiSelect?: boolean;
|
|
7
|
+
showSearch?: boolean;
|
|
8
|
+
width?: number | string;
|
|
9
|
+
};
|
|
10
|
+
export declare const MembersListSelect: ({ attribute, multiSelect, onChange, selectedMembers, showSearch, width, }: MembersListSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { SelectItem } from './types';
|
|
3
|
+
import { ScrollWrapperOnScrollEvent } from '../../../../../filters/components/filter-editor-popover/common/scroll-wrapper';
|
|
3
4
|
type SearchableMultiSelectProps<Value> = {
|
|
4
5
|
values?: Value[];
|
|
5
6
|
items: SelectItem<Value>[];
|
|
@@ -8,6 +9,10 @@ type SearchableMultiSelectProps<Value> = {
|
|
|
8
9
|
onChange?: (values: Value[]) => void;
|
|
9
10
|
primaryColor?: string;
|
|
10
11
|
primaryBackgroundColor?: string;
|
|
12
|
+
onListScroll?: (event: ScrollWrapperOnScrollEvent) => void;
|
|
13
|
+
showListLoader?: boolean;
|
|
14
|
+
showSearch?: boolean;
|
|
15
|
+
onSearchUpdate?: (searchValue: string) => void;
|
|
11
16
|
};
|
|
12
17
|
/** @internal */
|
|
13
18
|
export declare function SearchableMultiSelect<Value = unknown>(props: SearchableMultiSelectProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
2
|
import { SelectItem } from './types';
|
|
3
|
+
import { ScrollWrapperOnScrollEvent } from '../../../../../filters/components/filter-editor-popover/common/scroll-wrapper';
|
|
3
4
|
type SearchableSingleSelectProps<Value> = {
|
|
4
5
|
value?: Value;
|
|
5
6
|
items: SelectItem<Value>[];
|
|
@@ -8,7 +9,26 @@ type SearchableSingleSelectProps<Value> = {
|
|
|
8
9
|
onChange?: (value: Value) => void;
|
|
9
10
|
primaryColor?: string;
|
|
10
11
|
primaryBackgroundColor?: string;
|
|
12
|
+
onListScroll?: (event: ScrollWrapperOnScrollEvent) => void;
|
|
13
|
+
showListLoader?: boolean;
|
|
14
|
+
showSearch?: boolean;
|
|
15
|
+
onSearchUpdate?: (searchValue: string) => void;
|
|
11
16
|
};
|
|
12
17
|
/** @internal */
|
|
18
|
+
export declare const StyledSearchInput: import("@emotion/styled").StyledComponent<{
|
|
19
|
+
placeholder?: string | undefined;
|
|
20
|
+
onChange?: ((e: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
21
|
+
value?: string | undefined;
|
|
22
|
+
style?: React.CSSProperties | undefined;
|
|
23
|
+
inputStyle?: React.CSSProperties | undefined;
|
|
24
|
+
inputRef?: ((input: HTMLInputElement) => void) | undefined;
|
|
25
|
+
className?: string | undefined;
|
|
26
|
+
} & {
|
|
27
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
28
|
+
} & {
|
|
29
|
+
backgroundColor?: string | undefined;
|
|
30
|
+
color?: string | undefined;
|
|
31
|
+
}, {}, {}>;
|
|
32
|
+
/** @internal */
|
|
13
33
|
export declare function SearchableSingleSelect<Value = unknown>(props: SearchableSingleSelectProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
14
34
|
export {};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { SelectItem } from './types';
|
|
3
|
-
type
|
|
3
|
+
type SingleSelectProps<Value> = {
|
|
4
4
|
value?: Value;
|
|
5
5
|
multiple?: boolean;
|
|
6
6
|
items: SelectItem<Value>[];
|
|
7
7
|
style?: CSSProperties;
|
|
8
|
+
className?: string;
|
|
8
9
|
onChange?: (value: Value) => void;
|
|
9
10
|
primaryColor?: string;
|
|
10
11
|
primaryBackgroundColor?: string;
|
|
11
12
|
};
|
|
12
13
|
/** @internal */
|
|
13
|
-
export declare function SingleSelect<Value = unknown>(props:
|
|
14
|
+
export declare function SingleSelect<Value = unknown>(props: SingleSelectProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
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 FilterEditorDatetimeProps = {
|
|
3
|
+
filter: Filter;
|
|
4
|
+
onChange?: (filter: Filter | null) => void;
|
|
5
|
+
};
|
|
6
|
+
/** @internal */
|
|
7
|
+
export declare const FilterEditorDatetime: ({ filter, onChange }: FilterEditorDatetimeProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -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
|
+
export 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 {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
import { DatetimeLimits } from '../../types.js';
|
|
3
|
+
type DatetimeConditionSectionFormProps = {
|
|
4
|
+
filter: Filter;
|
|
5
|
+
multiSelectEnabled: boolean;
|
|
6
|
+
limits?: DatetimeLimits;
|
|
7
|
+
onChange: (filter: Filter | null) => void;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const DatetimeExcludeConditionForm: ({ filter, multiSelectEnabled, limits, onChange, }: DatetimeConditionSectionFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
import { DatetimeLimits } from '../../types.js';
|
|
3
|
+
type DatetimeConditionSectionProps = {
|
|
4
|
+
filter: Filter;
|
|
5
|
+
limits?: DatetimeLimits;
|
|
6
|
+
onChange: (filter: Filter | null) => void;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const DatetimeIsWithinConditionForm: ({ filter, limits, onChange, }: DatetimeConditionSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
import { DatetimeLimits } from '../types.js';
|
|
3
|
+
type DatetimeConditionSectionProps = {
|
|
4
|
+
filter: Filter;
|
|
5
|
+
selected: boolean;
|
|
6
|
+
multiSelectEnabled: boolean;
|
|
7
|
+
limits?: DatetimeLimits;
|
|
8
|
+
onChange: (filter: Filter | null) => void;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const DatetimeConditionSection: ({ filter, selected, multiSelectEnabled, limits, onChange, }: DatetimeConditionSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DatetimeConditionSection } from './datetime-condition-section';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
import { DatetimeLimits } from './types';
|
|
3
|
+
type DatetimeMembersSectionProps = {
|
|
4
|
+
filter: Filter;
|
|
5
|
+
selected: boolean;
|
|
6
|
+
multiSelectEnabled: boolean;
|
|
7
|
+
limits?: DatetimeLimits;
|
|
8
|
+
onChange: (filter: Filter | null) => void;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const DatetimeMembersSection: (props: DatetimeMembersSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
import { DatetimeLimits } from './types';
|
|
3
|
+
type DatetimeRangeSectionProps = {
|
|
4
|
+
filter: Filter;
|
|
5
|
+
selected: boolean;
|
|
6
|
+
limits?: DatetimeLimits;
|
|
7
|
+
onChange: (filter: Filter | null) => void;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const DatetimeRangeSection: (props: DatetimeRangeSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
type DatetimeRelativeSectionProps = {
|
|
3
|
+
filter: Filter;
|
|
4
|
+
selected: boolean;
|
|
5
|
+
onChange: (filter: Filter | null) => void;
|
|
6
|
+
};
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare const DatetimeRelativeSection: (props: DatetimeRelativeSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NumericConditionSection } from './numeric-condition-section.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
type NumericConditionSectionProps = {
|
|
3
|
+
filter: Filter;
|
|
4
|
+
selected: boolean;
|
|
5
|
+
multiSelectEnabled: boolean;
|
|
6
|
+
onChange: (filter: Filter | null) => void;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const NumericConditionSection: ({ filter, selected, multiSelectEnabled, onChange, }: NumericConditionSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
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,13 @@
|
|
|
1
1
|
import { Filter } from '@sisense/sdk-data';
|
|
2
|
+
import { ScrollWrapperOnScrollEvent } from '../common/scroll-wrapper';
|
|
2
3
|
type TextConditionSectionProps = {
|
|
3
4
|
filter: Filter;
|
|
4
5
|
selected: boolean;
|
|
5
|
-
members: string[];
|
|
6
6
|
multiSelectEnabled: boolean;
|
|
7
7
|
onChange: (filter: Filter | null) => void;
|
|
8
|
+
onListScroll?: (event: ScrollWrapperOnScrollEvent) => void;
|
|
9
|
+
showListLoader?: boolean;
|
|
8
10
|
};
|
|
9
11
|
/** @internal */
|
|
10
|
-
export declare const TextConditionSection: ({ filter, selected,
|
|
12
|
+
export declare const TextConditionSection: ({ filter, selected, multiSelectEnabled, onChange, }: TextConditionSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
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;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TFunction } from '@sisense/sdk-common';
|
|
2
|
+
import { Filter, MembersFilter, DimensionalLevelAttribute, RelativeDateFilter } from '@sisense/sdk-data';
|
|
2
3
|
export declare function isIncludeAllFilter(filter: Filter): filter is MembersFilter;
|
|
3
4
|
export declare function isIncludeMembersFilter(filter: Filter): filter is MembersFilter;
|
|
4
5
|
export declare function isExcludeMembersFilter(filter: Filter): filter is MembersFilter;
|
|
5
6
|
export declare function isConditionalFilter(filter: Filter): boolean;
|
|
7
|
+
export declare function isNumericBetweenFilter(filter: Filter): boolean;
|
|
8
|
+
export declare function isRelativeDateFilterWithAnchor(filter: Filter): filter is RelativeDateFilter;
|
|
9
|
+
export declare function isRelativeDateFilterWithoutAnchor(filter: Filter): filter is RelativeDateFilter;
|
|
10
|
+
export declare function createLevelAttribute(baseLevelAttribute: DimensionalLevelAttribute, granularity: string, t: TFunction): DimensionalLevelAttribute;
|
|
11
|
+
/**
|
|
12
|
+
* Formats a given Date object into a string in the format "YYYY-MM-DDT00:00:00".
|
|
13
|
+
*
|
|
14
|
+
* @param {Date} date - The Date object to format.
|
|
15
|
+
* @returns {string} The formatted date string in "YYYY-MM-DDT00:00:00" format.
|
|
16
|
+
*/
|
|
17
|
+
export declare function convertDateToMemberString(date: Date): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
|
-
export type DateIconProps = Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height'> & {
|
|
2
|
+
export type DateIconProps = Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'style'> & {
|
|
3
3
|
iconColor?: string;
|
|
4
4
|
};
|
|
5
5
|
export declare const DateIcon: (props: DateIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -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';
|
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
|
|
5
|
+
* Props of the {@link MemberFilterTile} component.
|
|
6
6
|
*/
|
|
7
7
|
export interface MemberFilterTileProps {
|
|
8
8
|
/** Title for the filter tile, which is rendered into the header */
|
|
@@ -1,19 +1,34 @@
|
|
|
1
1
|
import { DataSource, Filter } from '@sisense/sdk-data';
|
|
2
2
|
import { Member, SelectedMember } from '../components/member-filter-tile';
|
|
3
|
+
import { HookEnableParam } from '../../common/hooks/types';
|
|
3
4
|
/**
|
|
4
5
|
* Params for {@link useGetFilterMembers}
|
|
5
6
|
*/
|
|
6
|
-
export interface GetFilterMembersParams {
|
|
7
|
+
export interface GetFilterMembersParams extends HookEnableParam {
|
|
7
8
|
/** Provided members filter */
|
|
8
9
|
filter: Filter;
|
|
9
10
|
/** Default data source to use if filter does not have one */
|
|
10
11
|
defaultDataSource?: DataSource;
|
|
11
12
|
/** List of filters this filter is dependent on */
|
|
12
13
|
parentFilters?: Filter[];
|
|
14
|
+
/**
|
|
15
|
+
* Number of requested members to return in the query result
|
|
16
|
+
*
|
|
17
|
+
* If not specified, the default value is `20000`
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
count?: number;
|
|
13
22
|
}
|
|
14
23
|
export interface GetFilterMembersSuccess {
|
|
15
24
|
/** Whether the data fetching is loading */
|
|
16
25
|
isLoading: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Function to load more data rows
|
|
28
|
+
*
|
|
29
|
+
* @internal
|
|
30
|
+
* */
|
|
31
|
+
loadMore: (count: number) => void;
|
|
17
32
|
/** Whether the data fetching has failed */
|
|
18
33
|
isError: false;
|
|
19
34
|
/** The error if any occurred */
|
|
@@ -36,6 +51,12 @@ export interface GetFilterMembersError {
|
|
|
36
51
|
isError: true;
|
|
37
52
|
/** The result data */
|
|
38
53
|
data: undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Function to load more data rows
|
|
56
|
+
*
|
|
57
|
+
* @internal
|
|
58
|
+
* */
|
|
59
|
+
loadMore: (count: number) => void;
|
|
39
60
|
}
|
|
40
61
|
/**
|
|
41
62
|
* State for {@link useGetFilterMembers} hook.
|
|
@@ -47,7 +68,7 @@ export type GetFilterMembersResult = GetFilterMembersError | GetFilterMembersSuc
|
|
|
47
68
|
* @param params - Parameters of the query
|
|
48
69
|
* @internal
|
|
49
70
|
*/
|
|
50
|
-
export declare const useGetFilterMembersInternal: ({ filter, defaultDataSource, parentFilters, }: GetFilterMembersParams) => GetFilterMembersResult;
|
|
71
|
+
export declare const useGetFilterMembersInternal: ({ filter, defaultDataSource, parentFilters, count, enabled, }: GetFilterMembersParams) => GetFilterMembersResult;
|
|
51
72
|
/**
|
|
52
73
|
* Hook that fetches members of the provided filter
|
|
53
74
|
*
|
|
@@ -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';
|
|
@@ -86,6 +86,7 @@ export { useThemeContext } from './theme-provider';
|
|
|
86
86
|
export { LoadingIndicator } from './common/components/loading-indicator';
|
|
87
87
|
export { LoadingOverlay } from './common/components/loading-overlay';
|
|
88
88
|
export { useFetch, type RequestConfig, type UseQueryResult } from './common/hooks/use-fetch';
|
|
89
|
+
export { useGetDataSourceFields } from './common/hooks/fusion-endpoints/use-get-data-source-fields';
|
|
89
90
|
export type { EmptyObject } from './utils/utility-types';
|
|
90
91
|
export { translateColumnToAttribute } from './chart-data-options/utils';
|
|
91
92
|
export { isSameAttribute } from './utils/filters';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataSource, Filter, FilterRelations } from '@sisense/sdk-data';
|
|
2
|
-
import { DashboardStyleOptions, WidgetModel } from '../../models';
|
|
2
|
+
import { DashboardStyleOptions, TabbersOptions, WidgetModel } from '../../models';
|
|
3
3
|
import { type WidgetsOptions } from './types';
|
|
4
4
|
import { DashboardLayoutOptions } from '../../dashboard';
|
|
5
5
|
/**
|
|
@@ -49,4 +49,10 @@ export interface DashboardModel {
|
|
|
49
49
|
* @internal
|
|
50
50
|
*/
|
|
51
51
|
widgetsOptions: WidgetsOptions;
|
|
52
|
+
/**
|
|
53
|
+
* Tabber configurations for the dashboard.
|
|
54
|
+
*
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
tabbersOptions?: TabbersOptions;
|
|
52
58
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type LayoutDto, type FilterDto, type CascadingFilterDto, DashboardDto } from '../../api/types/dashboard-dto';
|
|
2
|
-
import type { WidgetsPanelColumnLayout, WidgetsOptions } from './types';
|
|
2
|
+
import type { WidgetsPanelColumnLayout, WidgetsOptions, TabbersOptions } from './types';
|
|
3
3
|
import { Filter, FilterRelations, FilterRelationsModel, FilterRelationsModelNode } from '@sisense/sdk-data';
|
|
4
4
|
import { WidgetDto } from '../../widget-by-id/types';
|
|
5
5
|
import { RestApi } from '../../api/rest-api';
|
|
6
6
|
export declare const translateLayout: (layout: LayoutDto) => WidgetsPanelColumnLayout;
|
|
7
7
|
export declare function extractDashboardFilters(dashboardFilters: Array<FilterDto | CascadingFilterDto>, filterRelationsModel?: FilterRelationsModel | FilterRelationsModelNode): Filter[] | FilterRelations;
|
|
8
8
|
export declare function translateWidgetsOptions(widgets?: WidgetDto[]): WidgetsOptions;
|
|
9
|
+
export declare function translateTabbersOptions(widgets?: WidgetDto[]): TabbersOptions;
|
|
9
10
|
/**
|
|
10
11
|
* Replace all shared formulas, which defined by id references, in the dashboard with their actual values.
|
|
11
12
|
* @param dashboard - The dashboard DTO to replace shared formulas in
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommonFiltersOptions } from '../../common-filters/types';
|
|
2
|
-
import { ColorPaletteTheme } from '../../types';
|
|
2
|
+
import { ColorPaletteTheme, TabberConfig } from '../../types';
|
|
3
3
|
export type { CommonFiltersOptions, CommonFiltersApplyMode, FiltersIgnoringRules, } from '../../common-filters/types';
|
|
4
4
|
/**
|
|
5
5
|
* Column layout of dashboard widgets
|
|
@@ -38,6 +38,14 @@ export type WidgetId = string;
|
|
|
38
38
|
export type WidgetsOptions = Record<WidgetId, {
|
|
39
39
|
filtersOptions?: CommonFiltersOptions;
|
|
40
40
|
}>;
|
|
41
|
+
/**
|
|
42
|
+
* Options for TabberWidetss in a dashboard
|
|
43
|
+
*
|
|
44
|
+
* This property actually moves responsibility on the layout management from the tabber widgets to the dashboard,
|
|
45
|
+
* storing all the tabbers configs in the single place
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
export type TabbersOptions = Record<WidgetId, TabberConfig>;
|
|
41
49
|
/**
|
|
42
50
|
* Style options for the dashboard.
|
|
43
51
|
*/
|
|
@@ -5,4 +5,4 @@ export declare const createHeaderCellValueFormatter: (dataOptions: PivotTableDat
|
|
|
5
5
|
* Formats the date time string.
|
|
6
6
|
* If the date is invalid, it returns the original value.
|
|
7
7
|
*/
|
|
8
|
-
export declare function
|
|
8
|
+
export declare function formatDatetimeString(value: string, dateFormatter: DateFormatter, dateFormat?: string): string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { PluginComponent } from './types';
|
|
2
|
+
import { PluginComponent, PluginComponentProps } from './types';
|
|
3
3
|
/** @internal */
|
|
4
|
-
export type CustomPluginsProviderProps = {
|
|
5
|
-
context: CustomPluginsContext
|
|
4
|
+
export type CustomPluginsProviderProps<T = PluginComponentProps> = {
|
|
5
|
+
context: CustomPluginsContext<T>;
|
|
6
6
|
error?: Error;
|
|
7
7
|
};
|
|
8
8
|
/** @internal */
|
|
9
|
-
export type CustomPluginsContext = {
|
|
10
|
-
pluginMap: Map<string, PluginComponent
|
|
11
|
-
registerPlugin: (pluginType: string, plugin: PluginComponent) => void;
|
|
12
|
-
getPlugin: (pluginType: string) => PluginComponent | undefined;
|
|
9
|
+
export type CustomPluginsContext<T = PluginComponentProps> = {
|
|
10
|
+
pluginMap: Map<string, PluginComponent<T>>;
|
|
11
|
+
registerPlugin: (pluginType: string, plugin: PluginComponent<T>) => void;
|
|
12
|
+
getPlugin: (pluginType: string) => PluginComponent<T> | undefined;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
15
|
* Custom Plugin Provider component that allows passing external plugins context.
|
|
@@ -19,6 +19,6 @@ export type CustomPluginsContext = {
|
|
|
19
19
|
* @internal
|
|
20
20
|
*/
|
|
21
21
|
export declare const CustomPluginsProvider: React.FC<{
|
|
22
|
-
context: CustomPluginsContext
|
|
22
|
+
context: CustomPluginsContext<any>;
|
|
23
23
|
children: ReactNode;
|
|
24
24
|
}>;
|