@sisense/sdk-ui 1.32.0 → 1.34.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 +10 -10
- package/dist/ai.js +565 -560
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +38 -38
- package/dist/{derive-chart-family-CVwj-7u5.js → derive-chart-family-5CbFzbpu.js} +23428 -23324
- package/dist/{derive-chart-family-7Fxxf6Sy.cjs → derive-chart-family-C3FH49ux.cjs} +186 -186
- package/dist/index.cjs +29 -17
- package/dist/index.js +10583 -8088
- package/dist/packages/sdk-ui/src/ai/ai-context-provider.d.ts +3 -2
- package/dist/packages/sdk-ui/src/ai/api/types.d.ts +11 -3
- package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +2 -2
- package/dist/packages/sdk-ui/src/ai/custom-ai-context-provider.d.ts +5 -7
- package/dist/packages/sdk-ui/src/ai/get-nlg-insights.d.ts +1 -0
- package/dist/packages/sdk-ui/src/ai/index.d.ts +2 -1
- package/dist/packages/sdk-ui/src/ai/use-final-nlq-response.d.ts +20 -0
- package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +1 -0
- package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +1 -0
- package/dist/packages/sdk-ui/src/ai/use-last-nlq-response-from-history.d.ts +8 -0
- package/dist/packages/sdk-ui/src/ai/use-last-nlq-response.d.ts +1 -2
- package/dist/packages/sdk-ui/src/analytics-composer/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +17 -1
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +6 -2
- package/dist/packages/sdk-ui/src/area-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/bar-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data/table-data.d.ts +10 -0
- package/dist/packages/sdk-ui/src/column-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group-header.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/grouped-items-browser.d.ts +6 -0
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/item-row.d.ts +15 -0
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/types.d.ts +42 -0
- package/dist/packages/sdk-ui/src/common/components/loading-dots.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/components/popover.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/components/radio.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-data-accumulation.d.ts +8 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-get-hook-state-result.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-get-load-more-function.d.ts +4 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-load-data-from-internal-hook.d.ts +16 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-manage-slice-to-load.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/utils/calculate-if-all-items-loaded.d.ts +2 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/utils/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/types.d.ts +27 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/with-lazy-loading.d.ts +7 -0
- package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +3 -0
- package/dist/packages/sdk-ui/src/common/hooks/use-defaults.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/hooks/use-last-defined.d.ts +6 -0
- package/dist/packages/sdk-ui/src/common/icons/approval-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/arrow-icon.d.ts +3 -0
- package/dist/packages/sdk-ui/src/common/icons/breadcrumbs-arrows-arrow-icon.d.ts +3 -0
- package/dist/packages/sdk-ui/src/common/icons/close-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/date-attribute-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/elasticube-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/numeric-attribute-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/plus-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/table-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/text-attribute-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/dashboard/components/content-panel.d.ts +9 -1
- package/dist/packages/sdk-ui/src/dashboard/components/dashboard-container.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/constants.d.ts +4 -0
- package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +6 -7
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +64 -31
- package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/add-filter-data-browser.d.ts +16 -0
- package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/add-filter-popover.d.ts +19 -0
- package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/popover-header.d.ts +12 -0
- package/dist/packages/sdk-ui/src/data-browser/data-source-selector/data-source-selector.d.ts +7 -0
- package/dist/packages/sdk-ui/src/data-browser/data-source-selector/use-data-source-selection.d.ts +5 -0
- package/dist/packages/sdk-ui/src/data-browser/dimensions-browser/dimensions-browser.d.ts +6 -0
- package/dist/packages/sdk-ui/src/data-browser/dimensions-browser/types.d.ts +82 -0
- package/dist/packages/sdk-ui/src/data-browser/search-input/search-input.d.ts +5 -0
- package/dist/packages/sdk-ui/src/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/cascading-filter-tile/cascading-level-filter.d.ts +3 -1
- package/dist/packages/sdk-ui/src/filters/components/common/checkbox.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/types.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +5 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/input.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +10 -6
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/calendar-select.d.ts +1 -4
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +1 -4
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +4 -8
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/selectable-section.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-container.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-context.d.ts +15 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-datetime.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-numerical.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-popover.d.ts +7 -2
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-textual.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor.d.ts +7 -2
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/hooks/use-get-attribute-stats.d.ts +4 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/common/granularities.d.ts +36 -6
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/not-supported-section.d.ts +6 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/utils.d.ts +5 -2
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/types.d.ts +7 -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/filter-tile-container.d.ts +8 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-tile.d.ts +5 -3
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/constants.d.ts +6 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel-header.d.ts +6 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel.d.ts +5 -2
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +19 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-new-filter-adding.d.ts +21 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/types.d.ts +60 -0
- package/dist/packages/sdk-ui/src/filters/components/icons/index.d.ts +0 -1
- package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +3 -3
- package/dist/packages/sdk-ui/src/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/line-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model-translator.d.ts +0 -2
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-dto-utils.d.ts +0 -1
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +1 -0
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +1 -0
- package/dist/packages/sdk-ui/src/models/hierarchy/types.d.ts +0 -1
- package/dist/packages/sdk-ui/src/models/widget/use-get-widget-model.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pie-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/plugins-provider/custom-plugins-provider.d.ts +4 -9
- package/dist/packages/sdk-ui/src/polar-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/props.d.ts +2 -0
- package/dist/packages/sdk-ui/src/query-execution/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/use-execute-query.d.ts +1 -1
- package/dist/packages/sdk-ui/src/scatter-chart.d.ts +1 -1
- package/dist/packages/sdk-ui/src/sisense-context/custom-sisense-context-provider.d.ts +2 -4
- package/dist/packages/sdk-ui/src/theme-provider/custom-theme-provider.d.ts +5 -8
- package/dist/packages/sdk-ui/src/theme-provider/use-theme-settings.d.ts +1 -1
- package/dist/packages/sdk-ui/src/theme-provider/utils.d.ts +5 -0
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +10 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +20 -0
- package/dist/packages/sdk-ui/src/types.d.ts +167 -3
- package/dist/packages/sdk-ui/src/utils/data-sources-utils.d.ts +8 -0
- package/dist/packages/sdk-ui/src/utils/utility-types.d.ts +6 -2
- package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +7 -0
- package/dist/packages/sdk-ui/src/widget-by-id/use-get-dashboard-model-and-widget-model.d.ts +1 -0
- package/dist/packages/sdk-ui/src/widgets/drilldown-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widgets/tabber-widget.d.ts +5 -0
- package/dist/{use-common-filters-BanIIIUW.js → use-common-filters-Bw15BNGn.js} +5013 -4956
- package/dist/{use-common-filters-BeKQ1bKU.cjs → use-common-filters-CqGo6jp3.cjs} +55 -55
- package/dist/{widget-composer-4bEKHitq.js → widget-composer-C5_iIuZN.js} +26 -26
- package/dist/{widget-composer-NDI4zssI.cjs → widget-composer-D5_iKTui.cjs} +1 -1
- package/package.json +9 -8
- /package/dist/packages/sdk-ui/src/{filters/components → common}/icons/search-icon.d.ts +0 -0
|
@@ -4,7 +4,8 @@ type SelectableSectionProps = {
|
|
|
4
4
|
selected: boolean;
|
|
5
5
|
onSelect: (selected: boolean) => void;
|
|
6
6
|
children: ReactNode | ChildrenFn;
|
|
7
|
+
disabled?: boolean;
|
|
7
8
|
};
|
|
8
9
|
/** @internal */
|
|
9
|
-
export declare const SelectableSection: ({ selected, children, onSelect, ...rest }: SelectableSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const SelectableSection: ({ selected, children, onSelect, disabled, ...rest }: SelectableSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { Themable } from '../../../theme-provider/types';
|
|
2
3
|
export declare const FilterEditorContainer: import("@emotion/styled").StyledComponent<{
|
|
3
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
5
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
} & Themable, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-context.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DataSource, Filter } from '@sisense/sdk-data';
|
|
3
|
+
type FilterEditorContextValue = {
|
|
4
|
+
defaultDataSource: DataSource | null;
|
|
5
|
+
parentFilters: Filter[];
|
|
6
|
+
membersOnlyMode: boolean;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const useFilterEditorContext: () => FilterEditorContextValue;
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const FilterEditorContextProvider: ({ value, children, }: {
|
|
12
|
+
value: FilterEditorContextValue;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -2,7 +2,8 @@ import { Filter } from '@sisense/sdk-data';
|
|
|
2
2
|
type FilterEditorDatetimeProps = {
|
|
3
3
|
filter: Filter;
|
|
4
4
|
onChange?: (filter: Filter | null) => void;
|
|
5
|
+
showMultiselectToggle?: boolean;
|
|
5
6
|
};
|
|
6
7
|
/** @internal */
|
|
7
|
-
export declare const FilterEditorDatetime: ({ filter, onChange }: FilterEditorDatetimeProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const FilterEditorDatetime: ({ filter, onChange, showMultiselectToggle, }: FilterEditorDatetimeProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -2,7 +2,8 @@ import { Filter } from '@sisense/sdk-data';
|
|
|
2
2
|
type FilterEditorNumericalProps = {
|
|
3
3
|
filter: Filter;
|
|
4
4
|
onChange?: (filter: Filter | null) => void;
|
|
5
|
+
showMultiselectToggle?: boolean;
|
|
5
6
|
};
|
|
6
7
|
/** @internal */
|
|
7
|
-
export declare const FilterEditorNumerical: ({ filter, onChange }: FilterEditorNumericalProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const FilterEditorNumerical: ({ filter, onChange, showMultiselectToggle, }: FilterEditorNumericalProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-popover.d.ts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { type Filter } from '@sisense/sdk-data';
|
|
1
|
+
import { DataSource, type Filter } from '@sisense/sdk-data';
|
|
2
2
|
import { PopoverAnchorPosition } from '../../../common/components/popover';
|
|
3
|
+
import { FilterEditorConfig } from './types';
|
|
3
4
|
type FilterEditorPopoverPosition = Pick<PopoverAnchorPosition, 'anchorEl'>;
|
|
4
5
|
type FilterEditorPopoverProps = {
|
|
5
6
|
filter?: Filter | null;
|
|
7
|
+
parentFilters?: Filter[];
|
|
6
8
|
position?: FilterEditorPopoverPosition;
|
|
7
9
|
onChange?: (filter: Filter) => void;
|
|
8
10
|
onClose?: () => void;
|
|
11
|
+
/** Default data source used for filter attribute */
|
|
12
|
+
defaultDataSource?: DataSource;
|
|
13
|
+
config?: FilterEditorConfig;
|
|
9
14
|
};
|
|
10
15
|
/** @internal */
|
|
11
|
-
export declare const FilterEditorPopover: ({ filter, position, onChange, onClose, }: FilterEditorPopoverProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
16
|
+
export declare const FilterEditorPopover: ({ filter, parentFilters, position, onChange, onClose, defaultDataSource, config, }: FilterEditorPopoverProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
17
|
export {};
|
package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-textual.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { Filter } from '@sisense/sdk-data';
|
|
|
2
2
|
type FilterEditorTextualProps = {
|
|
3
3
|
filter: Filter;
|
|
4
4
|
onChange?: (filter: Filter | null) => void;
|
|
5
|
+
showMultiselectToggle?: boolean;
|
|
5
6
|
};
|
|
6
7
|
/** @internal */
|
|
7
|
-
export declare const FilterEditorTextual: ({ filter, onChange }: FilterEditorTextualProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const FilterEditorTextual: ({ filter, onChange, showMultiselectToggle, }: FilterEditorTextualProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { Filter } from '@sisense/sdk-data';
|
|
1
|
+
import { DataSource, Filter } from '@sisense/sdk-data';
|
|
2
|
+
import { FilterEditorConfig } from './types';
|
|
2
3
|
type FilterEditorProps = {
|
|
3
4
|
filter: Filter;
|
|
5
|
+
parentFilters?: Filter[];
|
|
4
6
|
onChange?: (filter: Filter | null) => void;
|
|
7
|
+
/** Default data source used for filter attribute */
|
|
8
|
+
defaultDataSource?: DataSource;
|
|
9
|
+
config?: FilterEditorConfig;
|
|
5
10
|
};
|
|
6
11
|
/** @internal */
|
|
7
|
-
export declare const FilterEditor: ({ filter, onChange }: FilterEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const FilterEditor: ({ filter, parentFilters, config, onChange, defaultDataSource, }: FilterEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
13
|
export {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { Attribute } from '@sisense/sdk-data';
|
|
1
|
+
import { Attribute, DataSource, Filter } from '@sisense/sdk-data';
|
|
2
2
|
import { HookEnableParam } from '../../../../common/hooks/types';
|
|
3
3
|
interface UseGetAttributeStatsParams extends HookEnableParam {
|
|
4
4
|
attribute: Attribute;
|
|
5
|
+
filters?: Filter[];
|
|
6
|
+
/** Default data source to use if attribute does not have one */
|
|
7
|
+
defaultDataSource?: DataSource;
|
|
5
8
|
}
|
|
6
9
|
export type NumericAttributeStats = {
|
|
7
10
|
count: number;
|
|
@@ -1,8 +1,38 @@
|
|
|
1
|
-
export declare const dateLevelGranularities: {
|
|
2
|
-
value:
|
|
1
|
+
export declare const dateLevelGranularities: ({
|
|
2
|
+
value: "Years";
|
|
3
3
|
displayValue: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
value: string;
|
|
4
|
+
} | {
|
|
5
|
+
value: "Quarters";
|
|
7
6
|
displayValue: string;
|
|
8
|
-
}
|
|
7
|
+
} | {
|
|
8
|
+
value: "Months";
|
|
9
|
+
displayValue: string;
|
|
10
|
+
} | {
|
|
11
|
+
value: "Weeks";
|
|
12
|
+
displayValue: string;
|
|
13
|
+
} | {
|
|
14
|
+
value: "Days";
|
|
15
|
+
displayValue: string;
|
|
16
|
+
})[];
|
|
17
|
+
export declare const granularities: ({
|
|
18
|
+
value: "Years";
|
|
19
|
+
displayValue: string;
|
|
20
|
+
} | {
|
|
21
|
+
value: "Quarters";
|
|
22
|
+
displayValue: string;
|
|
23
|
+
} | {
|
|
24
|
+
value: "Months";
|
|
25
|
+
displayValue: string;
|
|
26
|
+
} | {
|
|
27
|
+
value: "Weeks";
|
|
28
|
+
displayValue: string;
|
|
29
|
+
} | {
|
|
30
|
+
value: "Days";
|
|
31
|
+
displayValue: string;
|
|
32
|
+
} | {
|
|
33
|
+
value: "AggHours";
|
|
34
|
+
displayValue: string;
|
|
35
|
+
} | {
|
|
36
|
+
value: "AggMinutesRoundTo15";
|
|
37
|
+
displayValue: string;
|
|
38
|
+
})[];
|
package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/utils.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { Attribute, MembersFilterConfig } from '@sisense/sdk-data';
|
|
1
|
+
import { Attribute, Filter, MembersFilterConfig } from '@sisense/sdk-data';
|
|
2
2
|
import { CRITERIA_FILTER_MAP } from '../../criteria-filter-tile/criteria-filter-operations.js';
|
|
3
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):
|
|
4
|
+
export declare function createExcludeMembersFilter(attribute: Attribute, members: string[], config?: MembersFilterConfig): Filter | null;
|
|
5
|
+
export declare function getMembersWithoutDeactivated(filter: Filter, selectedMembers: string[]): string[];
|
|
6
|
+
export declare function getMembersWithDeactivated(filter: Filter): string[];
|
|
7
|
+
export declare function getConfigWithUpdatedDeactivated(filter: Filter, selectedMembers: string[]): import("@sisense/sdk-data").FilterConfig;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TFunction } from '@sisense/sdk-common';
|
|
2
2
|
import { Filter, MembersFilter, DimensionalLevelAttribute, RelativeDateFilter } from '@sisense/sdk-data';
|
|
3
|
+
export declare function isSupportedByFilterEditor(filter: Filter): boolean;
|
|
3
4
|
export declare function isIncludeAllFilter(filter: Filter): filter is MembersFilter;
|
|
4
5
|
export declare function isIncludeMembersFilter(filter: Filter): filter is MembersFilter;
|
|
5
6
|
export declare function isExcludeMembersFilter(filter: Filter): filter is MembersFilter;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { FilterVariant } from './common/filter-utils';
|
|
3
3
|
import { DeepRequired } from 'ts-essentials';
|
|
4
|
+
declare const BaseContainer: import("@emotion/styled").StyledComponent<{
|
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
|
+
} & {
|
|
8
|
+
shouldShowBorder: boolean;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const Container: (props: React.ComponentProps<typeof BaseContainer>) => import("react/jsx-runtime").JSX.Element;
|
|
4
11
|
/**
|
|
5
12
|
* Design options for the filter tile component.
|
|
6
13
|
*
|
|
@@ -12,6 +19,7 @@ export interface FilterTileDesignOptions {
|
|
|
12
19
|
isCollapsible?: boolean;
|
|
13
20
|
hasBorder?: boolean;
|
|
14
21
|
hasBackgroundFilterIcon?: boolean;
|
|
22
|
+
disableGroupHover?: boolean;
|
|
15
23
|
};
|
|
16
24
|
border?: {
|
|
17
25
|
shouldBeShown?: boolean;
|
|
@@ -4,7 +4,7 @@ import { DataSource, Filter } from '@sisense/sdk-data';
|
|
|
4
4
|
* Props of the {@link FilterTile} component
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export interface FilterTileProps {
|
|
8
8
|
/** Filter to display */
|
|
9
9
|
filter: Filter;
|
|
10
10
|
/** Callback to handle filter change */
|
|
@@ -12,10 +12,12 @@ export type FilterTileProps = {
|
|
|
12
12
|
/** Filter delete callback */
|
|
13
13
|
onDelete?: () => void;
|
|
14
14
|
/** Filter edit callback */
|
|
15
|
-
onEdit?: (
|
|
15
|
+
onEdit?: (
|
|
16
|
+
/** Index of the filter level that triggers the onEdit action (in the case of a CascadingFilter) */
|
|
17
|
+
levelIndex?: number) => void;
|
|
16
18
|
/** Default data source used for filter tiles */
|
|
17
19
|
defaultDataSource?: DataSource;
|
|
18
|
-
}
|
|
20
|
+
}
|
|
19
21
|
/**
|
|
20
22
|
* Facade component that renders a filter tile based on filter type
|
|
21
23
|
*
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type FiltersPanelHeaderProps = {
|
|
2
|
+
onAddFilterButtonClick: () => void;
|
|
3
|
+
shouldShowAddFilterButton?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const FiltersPanelHeader: ({ onAddFilterButtonClick, shouldShowAddFilterButton, }: FiltersPanelHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DataSource, Filter, FilterRelations } from '@sisense/sdk-data';
|
|
3
|
+
import { FiltersPanelConfig } from './types';
|
|
3
4
|
/**
|
|
4
5
|
* Props of the {@link FiltersPanel} component
|
|
5
6
|
*
|
|
@@ -11,8 +12,10 @@ export type FiltersPanelProps = {
|
|
|
11
12
|
onFiltersChange: (filters: Filter[] | FilterRelations) => void;
|
|
12
13
|
/** Default data source used for filter tiles */
|
|
13
14
|
defaultDataSource?: DataSource;
|
|
14
|
-
/** @internal */
|
|
15
|
-
|
|
15
|
+
/** All data sources available for filter tiles @internal */
|
|
16
|
+
dataSources?: DataSource[];
|
|
17
|
+
/** The configuration for the filters panel */
|
|
18
|
+
config?: FiltersPanelConfig;
|
|
16
19
|
};
|
|
17
20
|
/**
|
|
18
21
|
* Filters panel component that renders a list of filter tiles
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Filter, DataSource } from '@sisense/sdk-data';
|
|
3
|
+
import type { UseExistingFilterEditingConfig } from '../types';
|
|
4
|
+
type UseExistingFilterEditingParams = {
|
|
5
|
+
onFilterChanged: (filter: Filter) => void;
|
|
6
|
+
defaultDataSource?: DataSource;
|
|
7
|
+
config?: UseExistingFilterEditingConfig;
|
|
8
|
+
};
|
|
9
|
+
type UseExistingFilterEditingReturn = {
|
|
10
|
+
ExistingFilterEditor: () => JSX.Element | null;
|
|
11
|
+
startEditingFilter: (anchorEl: HTMLElement, filter: Filter, levelIndex?: number) => void;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Hook that keeps editing process of existing filters.
|
|
15
|
+
* Returns a function to start editing a filter and a component that renders the filter editing popover.
|
|
16
|
+
*/
|
|
17
|
+
export declare const useExistingFilterEditing: ({ config, defaultDataSource, onFilterChanged, }: UseExistingFilterEditingParams) => UseExistingFilterEditingReturn;
|
|
18
|
+
export declare function isFilterSupportEditing(filter: Filter): boolean;
|
|
19
|
+
export {};
|
package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-new-filter-adding.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DataSource, Filter } from '@sisense/sdk-data';
|
|
3
|
+
import { UseNewFilterCreationConfig } from '../types';
|
|
4
|
+
import { AttributiveElement } from '../../../../data-browser/dimensions-browser/types';
|
|
5
|
+
type UseNewFilterCreationParams = {
|
|
6
|
+
defaultDataSource?: DataSource;
|
|
7
|
+
dataSources: DataSource[];
|
|
8
|
+
onFilterCreated: (filter: Filter) => void;
|
|
9
|
+
config?: UseNewFilterCreationConfig;
|
|
10
|
+
disabledAttributes?: AttributiveElement[];
|
|
11
|
+
};
|
|
12
|
+
type UseNewFilterCreationReturn = {
|
|
13
|
+
NewFilterCreator: () => JSX.Element | null;
|
|
14
|
+
startFilterCreation: (anchorEl: HTMLElement) => void;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Hook that keeps new filter creation process.
|
|
18
|
+
* Returns a function to start creation a new filter and a component that renders the filter creation popovers.
|
|
19
|
+
*/
|
|
20
|
+
export declare const useNewFilterCreation: ({ dataSources, onFilterCreated, defaultDataSource, config, disabledAttributes, }: UseNewFilterCreationParams) => UseNewFilterCreationReturn;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { FilterEditorConfig } from '../filter-editor-popover/types';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration for the filters panel
|
|
4
|
+
*/
|
|
5
|
+
export interface FiltersPanelConfig {
|
|
6
|
+
/**
|
|
7
|
+
* Configures the available actions within the filters panel.
|
|
8
|
+
*/
|
|
9
|
+
actions?: {
|
|
10
|
+
/**
|
|
11
|
+
* Configuration for adding a new filter.
|
|
12
|
+
*/
|
|
13
|
+
addFilter?: {
|
|
14
|
+
/**
|
|
15
|
+
* Determines whether the possibility to create a new filter is enabled.
|
|
16
|
+
*
|
|
17
|
+
* If not specified, the default value is `false`.
|
|
18
|
+
*/
|
|
19
|
+
enabled?: boolean;
|
|
20
|
+
/** @internal */
|
|
21
|
+
multiSelect?: {
|
|
22
|
+
visible?: boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Configuration for editing an existing filter.
|
|
27
|
+
*/
|
|
28
|
+
editFilter?: {
|
|
29
|
+
/**
|
|
30
|
+
* Determines whether the possibility to edit an existing filter is enabled.
|
|
31
|
+
*
|
|
32
|
+
* If not specified, the default value is `false`.
|
|
33
|
+
*/
|
|
34
|
+
enabled?: boolean;
|
|
35
|
+
/** @internal */
|
|
36
|
+
multiSelect?: {
|
|
37
|
+
visible?: boolean;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Configuration for deleting a filter.
|
|
42
|
+
*/
|
|
43
|
+
deleteFilter?: {
|
|
44
|
+
/**
|
|
45
|
+
* Determines whether the possibility to delete a filter is enabled.
|
|
46
|
+
*
|
|
47
|
+
* If not specified, the default value is `true`.
|
|
48
|
+
*/
|
|
49
|
+
enabled?: boolean;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type UseExistingFilterEditingConfig = FilterEditorConfig & {
|
|
55
|
+
enabled?: boolean;
|
|
56
|
+
};
|
|
57
|
+
/** @internal */
|
|
58
|
+
export type UseNewFilterCreationConfig = FilterEditorConfig & {
|
|
59
|
+
enabled?: boolean;
|
|
60
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { MenuIcon } from './menu-icon';
|
|
2
2
|
export { PencilIcon } from './pencil-icon';
|
|
3
3
|
export { PlusIcon } from './plus-icon';
|
|
4
|
-
export { SearchIcon } from './search-icon';
|
|
5
4
|
export { TrashIcon } from './trash-icon';
|
|
6
5
|
export { LockIcon } from './lock-icon';
|
|
7
6
|
export { DateIcon } from './date-icon';
|
|
@@ -27,7 +27,7 @@ export interface GetFilterMembersSuccess {
|
|
|
27
27
|
* Function to load more data rows
|
|
28
28
|
*
|
|
29
29
|
* @internal
|
|
30
|
-
|
|
30
|
+
*/
|
|
31
31
|
loadMore: (count: number) => void;
|
|
32
32
|
/** Whether the data fetching has failed */
|
|
33
33
|
isError: false;
|
|
@@ -55,7 +55,7 @@ export interface GetFilterMembersError {
|
|
|
55
55
|
* Function to load more data rows
|
|
56
56
|
*
|
|
57
57
|
* @internal
|
|
58
|
-
|
|
58
|
+
*/
|
|
59
59
|
loadMore: (count: number) => void;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
@@ -74,7 +74,7 @@ export declare const useGetFilterMembersInternal: ({ filter, defaultDataSource,
|
|
|
74
74
|
*
|
|
75
75
|
* Those members can be used to display a list of members in a third-party filter component such as Material UI Select.
|
|
76
76
|
*
|
|
77
|
-
*
|
|
77
|
+
* ## Example
|
|
78
78
|
*
|
|
79
79
|
* Retrieve selected members from a Filter on Country of the Sample ECommerce data model.
|
|
80
80
|
*
|
|
@@ -9,7 +9,7 @@ export { isChartWidgetProps, isPivotTableWidgetProps, isTextWidgetProps, isPlugi
|
|
|
9
9
|
export { type WidgetType, type CartesianWidgetType, type CategoricalWidgetType, type TabularWidgetType, type TextWidgetType, } from './widget-by-id/types';
|
|
10
10
|
export { getChartType } from './widget-by-id/utils';
|
|
11
11
|
export * from './query-execution';
|
|
12
|
-
export { executeQuery } from './query/execute-query';
|
|
12
|
+
export { executeQuery, executePivotQuery } from './query/execute-query';
|
|
13
13
|
export { SisenseContextProvider } from './sisense-context/sisense-context-provider';
|
|
14
14
|
export { DrilldownWidget } from './widgets/drilldown-widget';
|
|
15
15
|
export { processDrilldownSelections } from './widgets/common/use-drilldown-core';
|
|
@@ -16,8 +16,8 @@ import { LineChartProps } from './props';
|
|
|
16
16
|
*
|
|
17
17
|
* Additional Line Chart examples:
|
|
18
18
|
*
|
|
19
|
-
* - [Curved Line Chart](https://www.sisense.com/
|
|
20
|
-
* - [Styled Line Chart](https://www.sisense.com/
|
|
19
|
+
* - [Curved Line Chart](https://www.sisense.com/developers/playground/?example=charts%2Fline-chart-spline)
|
|
20
|
+
* - [Styled Line Chart](https://www.sisense.com/developers/playground/?example=charts%2Fline-chart-styled)
|
|
21
21
|
*
|
|
22
22
|
* @param props - Line chart properties
|
|
23
23
|
* @returns Line Chart component
|
|
@@ -10,8 +10,6 @@ import { AppSettings } from '../../app/settings/settings.js';
|
|
|
10
10
|
* ```tsx
|
|
11
11
|
* <Dashboard {...dashboardModelTranslator.toDashboardProps(dashboardModel)} />
|
|
12
12
|
* ```
|
|
13
|
-
* @group Fusion Assets
|
|
14
|
-
* @fusionEmbed
|
|
15
13
|
*/
|
|
16
14
|
export declare function toDashboardProps(dashboardModel: DashboardModel): DashboardProps;
|
|
17
15
|
/**
|
|
@@ -9,6 +9,7 @@ export declare function translateWidgetsOptions(widgets?: WidgetDto[]): WidgetsO
|
|
|
9
9
|
export declare function translateTabbersOptions(widgets?: WidgetDto[]): TabbersOptions;
|
|
10
10
|
/**
|
|
11
11
|
* Replace all shared formulas, which defined by id references, in the dashboard with their actual values.
|
|
12
|
+
*
|
|
12
13
|
* @param dashboard - The dashboard DTO to replace shared formulas in
|
|
13
14
|
* @param api - The REST API instance
|
|
14
15
|
* @returns The dashboard DTO with shared formulas, defined by id references, replaced
|
|
@@ -43,6 +43,7 @@ export type WidgetsOptions = Record<WidgetId, {
|
|
|
43
43
|
*
|
|
44
44
|
* This property actually moves responsibility on the layout management from the tabber widgets to the dashboard,
|
|
45
45
|
* storing all the tabbers configs in the single place
|
|
46
|
+
*
|
|
46
47
|
* @internal
|
|
47
48
|
*/
|
|
48
49
|
export type TabbersOptions = Record<WidgetId, TabberConfig>;
|
|
@@ -86,7 +86,7 @@ export type WidgetModelSuccessState = {
|
|
|
86
86
|
*
|
|
87
87
|
* Additional `useGetWidgetModel` examples:
|
|
88
88
|
*
|
|
89
|
-
* - [Modify Chart Type](https://www.sisense.com/
|
|
89
|
+
* - [Modify Chart Type](https://www.sisense.com/developers/playground/?example=fusion-assets%2Fuse-get-widget-model-change-chart-type)
|
|
90
90
|
*
|
|
91
91
|
* @returns Widget load state that contains the status of the execution, the result widget model, or the error if one has occurred
|
|
92
92
|
* @group Fusion Assets
|
|
@@ -17,8 +17,8 @@ import { PieChartProps } from './props';
|
|
|
17
17
|
*
|
|
18
18
|
* Additional Pie Chart examples:
|
|
19
19
|
*
|
|
20
|
-
* - [Donut Pie Chart](https://www.sisense.com/
|
|
21
|
-
* - [Ring Pie Chart](https://www.sisense.com/
|
|
20
|
+
* - [Donut Pie Chart](https://www.sisense.com/developers/playground/?example=charts%2Fpie-chart-donut)
|
|
21
|
+
* - [Ring Pie Chart](https://www.sisense.com/developers/playground/?example=charts%2Fpie-chart-ring)
|
|
22
22
|
*
|
|
23
23
|
* @param props - Pie chart properties
|
|
24
24
|
* @returns Pie Chart component
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { PluginComponent, PluginComponentProps } from './types';
|
|
3
|
+
import { CustomContextProviderProps } from '../types';
|
|
3
4
|
/** @internal */
|
|
4
|
-
export type CustomPluginsProviderProps
|
|
5
|
-
context: CustomPluginsContext<T>;
|
|
6
|
-
error?: Error;
|
|
7
|
-
};
|
|
5
|
+
export type CustomPluginsProviderProps = CustomContextProviderProps<CustomPluginsContext<PluginComponentProps>>;
|
|
8
6
|
/** @internal */
|
|
9
7
|
export type CustomPluginsContext<T = PluginComponentProps> = {
|
|
10
8
|
pluginMap: Map<string, PluginComponent<T>>;
|
|
@@ -18,7 +16,4 @@ export type CustomPluginsContext<T = PluginComponentProps> = {
|
|
|
18
16
|
*
|
|
19
17
|
* @internal
|
|
20
18
|
*/
|
|
21
|
-
export declare const CustomPluginsProvider: React.FC<
|
|
22
|
-
context: CustomPluginsContext<any>;
|
|
23
|
-
children: ReactNode;
|
|
24
|
-
}>;
|
|
19
|
+
export declare const CustomPluginsProvider: React.FC<PropsWithChildren<CustomPluginsProviderProps>>;
|
|
@@ -16,8 +16,8 @@ import { PolarChartProps } from './props';
|
|
|
16
16
|
*
|
|
17
17
|
* Additional Polar Chart examples:
|
|
18
18
|
*
|
|
19
|
-
* - [Area Polar Chart](https://www.sisense.com/
|
|
20
|
-
* - [Line Polar Chart](https://www.sisense.com/
|
|
19
|
+
* - [Area Polar Chart](https://www.sisense.com/developers/playground/?example=charts%2Fpolar-chart-area)
|
|
20
|
+
* - [Line Polar Chart](https://www.sisense.com/developers/playground/?example=charts%2Fpolar-chart-line)
|
|
21
21
|
*
|
|
22
22
|
* @param props - Polar chart properties
|
|
23
23
|
* @returns Polar Chart component
|
|
@@ -1520,6 +1520,7 @@ export interface DrilldownWidgetProps {
|
|
|
1520
1520
|
}
|
|
1521
1521
|
/**
|
|
1522
1522
|
* Tabber widget props designed to be a current state and is provided by use-tabber hook
|
|
1523
|
+
*
|
|
1523
1524
|
* @internal
|
|
1524
1525
|
*/
|
|
1525
1526
|
export type TabberWidgetExtraProps = {
|
|
@@ -1528,6 +1529,7 @@ export type TabberWidgetExtraProps = {
|
|
|
1528
1529
|
};
|
|
1529
1530
|
/**
|
|
1530
1531
|
* Tabber widget props
|
|
1532
|
+
*
|
|
1531
1533
|
* @internal
|
|
1532
1534
|
*/
|
|
1533
1535
|
export type TabberWidgetProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ExecuteQuery } from './execute-query';
|
|
2
2
|
export { useExecuteQuery } from './use-execute-query';
|
|
3
|
-
export { useExecuteCsvQuery } from './use-execute-csv-query';
|
|
3
|
+
export { useExecuteCsvQuery, useExecuteCsvQueryInternal } from './use-execute-csv-query';
|
|
4
4
|
export { ExecuteQueryByWidgetId } from './execute-query-by-widget-id';
|
|
5
5
|
export { useExecuteQueryByWidgetId, executeQueryByWidgetId, } from './use-execute-query-by-widget-id';
|
|
6
6
|
export { useExecutePivotQuery } from './use-execute-pivot-query';
|
|
@@ -17,7 +17,7 @@ import { ExecuteQueryParams, ExecuteQueryResult } from './types';
|
|
|
17
17
|
*
|
|
18
18
|
* Additional `useExecuteQuery()` examples:
|
|
19
19
|
*
|
|
20
|
-
* - [Query with Sorting](https://www.sisense.com/
|
|
20
|
+
* - [Query with Sorting](https://www.sisense.com/developers/playground/?example=queries%2Fuse-execute-query-sorting)
|
|
21
21
|
* - [Take Control of Your Data Visualizations]( https://www.sisense.com/blog/take-control-of-your-data-visualizations/) blog post with examples of using the hook to fetch data to display in third-party charts.
|
|
22
22
|
*
|
|
23
23
|
* @returns Query state that contains the status of the query execution, the result data, or the error if any occurred
|
|
@@ -22,7 +22,7 @@ import { ScatterChartProps } from './props';
|
|
|
22
22
|
*
|
|
23
23
|
* Additional Scatter Chart examples:
|
|
24
24
|
*
|
|
25
|
-
* - [Bubble Scatter Chart](https://www.sisense.com/
|
|
25
|
+
* - [Bubble Scatter Chart](https://www.sisense.com/developers/playground/?example=charts/scatter-chart-bubble)
|
|
26
26
|
*
|
|
27
27
|
* @param props - Scatter chart properties
|
|
28
28
|
* @returns Scatter Chart component
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { PropsWithChildren, type FunctionComponent } from 'react';
|
|
2
2
|
import { SisenseContextPayload } from './sisense-context';
|
|
3
|
+
import { CustomContextProviderProps } from '../types';
|
|
3
4
|
/** @internal */
|
|
4
5
|
export type CustomSisenseContext = SisenseContextPayload;
|
|
5
6
|
/** @internal */
|
|
6
|
-
export type CustomSisenseContextProviderProps =
|
|
7
|
-
context?: CustomSisenseContext;
|
|
8
|
-
error?: Error;
|
|
9
|
-
};
|
|
7
|
+
export type CustomSisenseContextProviderProps = CustomContextProviderProps<CustomSisenseContext>;
|
|
10
8
|
/**
|
|
11
9
|
* Custom Sisense Context Provider component that allows passing external context.
|
|
12
10
|
*
|