@sisense/sdk-ui 1.28.0 → 1.29.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 +32 -32
- package/dist/ai.js +567 -554
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +3 -3
- package/dist/{derive-chart-family-BYdyoe8O.js → derive-chart-family-Cy3hlluo.js} +15251 -15392
- package/dist/{derive-chart-family-BNu7PP-p.cjs → derive-chart-family-DWCXp57c.cjs} +102 -102
- package/dist/index.cjs +253 -120
- package/dist/index.js +10677 -8687
- package/dist/packages/sdk-ui/src/ai/api/hooks.d.ts +2 -1
- package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +9 -1
- package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +3 -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/types.d.ts +1 -1
- 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/const.d.ts +1 -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/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 +14 -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 +7 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +12 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +12 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select-item.d.ts +7 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select.d.ts +12 -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 +11 -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/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/header-cell-formatters/header-cell-totals-formatter.d.ts +4 -0
- package/dist/packages/sdk-ui/src/props.d.ts +15 -15
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +29 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +58 -0
- package/dist/packages/sdk-ui/src/types.d.ts +27 -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 +14 -0
- package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +2 -57
- package/dist/useQuery-CRu7WcYd.cjs +916 -0
- package/dist/{useQuery-CwqhrvKr.js → useQuery-CdtycPOg.js} +17019 -16985
- package/dist/{widget-composer-BvJFwTM1.cjs → widget-composer-DyY3yi_b.cjs} +8 -8
- package/dist/{widget-composer-CAmaQCTo.js → widget-composer-G4mPX-JO.js} +112 -110
- package/package.json +7 -7
- package/dist/useQuery-7UcSPq8U.cjs +0 -915
|
@@ -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 { 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,8 @@ export declare const translation: {
|
|
|
244
244
|
fetchHistory: string;
|
|
245
245
|
recommendationsNotAvailable: string;
|
|
246
246
|
insightsNotAvailable: string;
|
|
247
|
+
VectorDBEmptyResponseError: string;
|
|
248
|
+
LlmBadConfigurationError: string;
|
|
247
249
|
unexpectedChatResponse: string;
|
|
248
250
|
unexpected: string;
|
|
249
251
|
unknownResponse: string;
|
|
@@ -255,7 +257,34 @@ export declare const translation: {
|
|
|
255
257
|
buttons: {
|
|
256
258
|
apply: string;
|
|
257
259
|
cancel: string;
|
|
260
|
+
selectAll: string;
|
|
261
|
+
clearAll: string;
|
|
258
262
|
};
|
|
263
|
+
labels: {
|
|
264
|
+
includeAll: string;
|
|
265
|
+
allowMultiSelection: string;
|
|
266
|
+
};
|
|
267
|
+
placeholders: {
|
|
268
|
+
selectFromList: string;
|
|
269
|
+
enterValue: string;
|
|
270
|
+
};
|
|
271
|
+
conditions: {
|
|
272
|
+
exclude: string;
|
|
273
|
+
contains: string;
|
|
274
|
+
notContain: string;
|
|
275
|
+
startsWith: string;
|
|
276
|
+
notStartsWith: string;
|
|
277
|
+
endsWith: string;
|
|
278
|
+
notEndsWith: string;
|
|
279
|
+
equals: string;
|
|
280
|
+
notEquals: string;
|
|
281
|
+
isEmpty: string;
|
|
282
|
+
isNotEmpty: string;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
pivotTable: {
|
|
286
|
+
grandTotal: string;
|
|
287
|
+
subTotal: string;
|
|
259
288
|
};
|
|
260
289
|
};
|
|
261
290
|
/**
|
|
@@ -254,6 +254,8 @@ export declare const resources: {
|
|
|
254
254
|
fetchHistory: string;
|
|
255
255
|
recommendationsNotAvailable: string;
|
|
256
256
|
insightsNotAvailable: string;
|
|
257
|
+
VectorDBEmptyResponseError: string;
|
|
258
|
+
LlmBadConfigurationError: string;
|
|
257
259
|
unexpectedChatResponse: string;
|
|
258
260
|
unexpected: string;
|
|
259
261
|
unknownResponse: string;
|
|
@@ -265,8 +267,35 @@ export declare const resources: {
|
|
|
265
267
|
buttons: {
|
|
266
268
|
apply: string;
|
|
267
269
|
cancel: string;
|
|
270
|
+
selectAll: string;
|
|
271
|
+
clearAll: string;
|
|
272
|
+
};
|
|
273
|
+
labels: {
|
|
274
|
+
includeAll: string;
|
|
275
|
+
allowMultiSelection: string;
|
|
276
|
+
};
|
|
277
|
+
placeholders: {
|
|
278
|
+
selectFromList: string;
|
|
279
|
+
enterValue: string;
|
|
280
|
+
};
|
|
281
|
+
conditions: {
|
|
282
|
+
exclude: string;
|
|
283
|
+
contains: string;
|
|
284
|
+
notContain: string;
|
|
285
|
+
startsWith: string;
|
|
286
|
+
notStartsWith: string;
|
|
287
|
+
endsWith: string;
|
|
288
|
+
notEndsWith: string;
|
|
289
|
+
equals: string;
|
|
290
|
+
notEquals: string;
|
|
291
|
+
isEmpty: string;
|
|
292
|
+
isNotEmpty: string;
|
|
268
293
|
};
|
|
269
294
|
};
|
|
295
|
+
pivotTable: {
|
|
296
|
+
grandTotal: string;
|
|
297
|
+
subTotal: string;
|
|
298
|
+
};
|
|
270
299
|
};
|
|
271
300
|
uk: {
|
|
272
301
|
errors: {
|
|
@@ -514,6 +543,8 @@ export declare const resources: {
|
|
|
514
543
|
fetchHistory: string;
|
|
515
544
|
recommendationsNotAvailable: string;
|
|
516
545
|
insightsNotAvailable: string;
|
|
546
|
+
VectorDBEmptyResponseError: string;
|
|
547
|
+
LlmBadConfigurationError: string;
|
|
517
548
|
unexpectedChatResponse: string;
|
|
518
549
|
unexpected: string;
|
|
519
550
|
unknownResponse: string;
|
|
@@ -525,7 +556,34 @@ export declare const resources: {
|
|
|
525
556
|
buttons: {
|
|
526
557
|
apply: string;
|
|
527
558
|
cancel: string;
|
|
559
|
+
selectAll: string;
|
|
560
|
+
clearAll: string;
|
|
561
|
+
};
|
|
562
|
+
labels: {
|
|
563
|
+
includeAll: string;
|
|
564
|
+
allowMultiSelection: string;
|
|
565
|
+
};
|
|
566
|
+
placeholders: {
|
|
567
|
+
selectFromList: string;
|
|
568
|
+
enterValue: string;
|
|
569
|
+
};
|
|
570
|
+
conditions: {
|
|
571
|
+
exclude: string;
|
|
572
|
+
contains: string;
|
|
573
|
+
notContain: string;
|
|
574
|
+
startsWith: string;
|
|
575
|
+
notStartsWith: string;
|
|
576
|
+
endsWith: string;
|
|
577
|
+
notEndsWith: string;
|
|
578
|
+
equals: string;
|
|
579
|
+
notEquals: string;
|
|
580
|
+
isEmpty: string;
|
|
581
|
+
isNotEmpty: string;
|
|
528
582
|
};
|
|
529
583
|
};
|
|
584
|
+
pivotTable: {
|
|
585
|
+
grandTotal: string;
|
|
586
|
+
subTotal: string;
|
|
587
|
+
};
|
|
530
588
|
};
|
|
531
589
|
};
|
|
@@ -66,6 +66,25 @@ export type SeriesLabels = {
|
|
|
66
66
|
enabled: boolean;
|
|
67
67
|
/** Rotation of series labels (in degrees) */
|
|
68
68
|
rotation?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Boolean flag that defines if value should be shown in series labels
|
|
71
|
+
* (if not specified, value will be shown by default)
|
|
72
|
+
* */
|
|
73
|
+
showValue?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Boolean flag that defines if percentage should be shown in series labels
|
|
76
|
+
* (only applicable for subtypes that support percentage, like "stacked100")
|
|
77
|
+
* */
|
|
78
|
+
showPercentage?: boolean;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
export type TotalLabels = {
|
|
84
|
+
/** Boolean flag that defines if total labels should be shown on the chart */
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
/** Rotation of total labels (in degrees) */
|
|
87
|
+
rotation?: number;
|
|
69
88
|
};
|
|
70
89
|
/** Options that define legend - a key that provides information about the data series or colors used in chart. */
|
|
71
90
|
export type Legend = {
|
|
@@ -177,6 +196,12 @@ export interface BaseStyleOptions extends ReservedStyleOptions {
|
|
|
177
196
|
* @internal
|
|
178
197
|
*/
|
|
179
198
|
seriesLabels?: SeriesLabels;
|
|
199
|
+
/**
|
|
200
|
+
* Configuration for total labels
|
|
201
|
+
*
|
|
202
|
+
* @internal
|
|
203
|
+
*/
|
|
204
|
+
totalLabels?: TotalLabels;
|
|
180
205
|
/** Data limit for series or categories that will be plotted */
|
|
181
206
|
dataLimits?: DataLimits;
|
|
182
207
|
/**
|
|
@@ -1362,7 +1387,7 @@ export type SeriesWithAlerts<T> = {
|
|
|
1362
1387
|
};
|
|
1363
1388
|
/**
|
|
1364
1389
|
* Context menu position coordinates
|
|
1365
|
-
* Used in {@link ContextMenuProps}
|
|
1390
|
+
* Used in {@link @sisense/sdk-ui!ContextMenuProps | `ContextMenuProps`}
|
|
1366
1391
|
*/
|
|
1367
1392
|
export type MenuPosition = {
|
|
1368
1393
|
/** Horizontal position */
|
|
@@ -1372,7 +1397,7 @@ export type MenuPosition = {
|
|
|
1372
1397
|
};
|
|
1373
1398
|
/**
|
|
1374
1399
|
* Context menu section
|
|
1375
|
-
* Used in {@link ContextMenuProps}
|
|
1400
|
+
* Used in {@link @sisense/sdk-ui!ContextMenuProps | `ContextMenuProps`}
|
|
1376
1401
|
*/
|
|
1377
1402
|
export type MenuItemSection = {
|
|
1378
1403
|
/** @internal */
|
|
@@ -1,85 +1,43 @@
|
|
|
1
|
-
import { Filter, FilterRelations,
|
|
1
|
+
import { Filter, FilterRelations, FilterRelationsDescription, FilterRelationsJaql, FilterRelationsRules } from '@sisense/sdk-data';
|
|
2
|
+
export { splitFiltersAndRelations, getFiltersArray, combineFiltersAndRelations, isTrivialSingleNodeRelations, calculateNewRelations, getRelationsWithReplacedFilter, convertFilterRelationsModelToRelationRules, filterRelationRulesToFilterRelationsModel, isOpenBracketDescriptionNode, isCloseBracketDescriptionNode, isAttributeDescriptionNode, isOperatorDescriptionNode, mergeFiltersOrFilterRelations, type FilterRelationsDescription, type FilterRelationsRules, } from '@sisense/sdk-data';
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
+
* @internal
|
|
4
5
|
*/
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
type FilterRelationsRuleIdNode = {
|
|
12
|
-
instanceid: string;
|
|
13
|
-
};
|
|
14
|
-
type FilterRelationsRuleNode = FilterRelationsRule | FilterRelationsRuleIdNode;
|
|
6
|
+
export declare enum FiltersMergeStrategyEnum {
|
|
7
|
+
WIDGET_FIRST = "widgetFirst",
|
|
8
|
+
CODE_FIRST = "codeFirst",
|
|
9
|
+
CODE_ONLY = "codeOnly"
|
|
10
|
+
}
|
|
11
|
+
export type FiltersMergeStrategy = `${FiltersMergeStrategyEnum}`;
|
|
15
12
|
/**
|
|
16
|
-
*
|
|
13
|
+
* Textual representation of filter relations for debugging purposes.
|
|
14
|
+
* Returns string like "(([Gender] AND [Country]) OR [Condition])".
|
|
17
15
|
*
|
|
18
|
-
* @
|
|
19
|
-
* @param targetFilters - The target filters or filter relations to merge with.
|
|
20
|
-
* @returns Updated source filters merged with target filters. If the source filters are FilterRelations, the relations are recalculated.
|
|
21
|
-
*/
|
|
22
|
-
export declare function mergeFiltersOrFilterRelations(sourceFilters: Filter[] | FilterRelations | undefined, targetFilters: Filter[] | FilterRelations | undefined): Filter[] | FilterRelations;
|
|
23
|
-
/**
|
|
24
|
-
* Splits filters or filter relations into filters and relations rules.
|
|
25
|
-
*/
|
|
26
|
-
export declare function splitFiltersAndRelations(filtersOrFilterRelations: Filter[] | FilterRelations | undefined): {
|
|
27
|
-
filters: Filter[];
|
|
28
|
-
relations: FilterRelationsRules;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Returns pure filters array from the given filters or filter relations.
|
|
32
|
-
*/
|
|
33
|
-
export declare function getFiltersArray(filtersOrFilterRelations: Filter[] | FilterRelations | undefined): Filter[];
|
|
34
|
-
/**
|
|
35
|
-
* Combines filters and relations into a single FilterRelations object.
|
|
36
|
-
* If the relations are empty or relations are trivial (single node), the filters are returned as is.
|
|
37
|
-
*/
|
|
38
|
-
export declare function combineFiltersAndRelations(filters: Filter[], relations: FilterRelationsRules): Filter[] | FilterRelations;
|
|
39
|
-
/** Type guard for checking if a node is a single relations node (trivial case when relations are needless). */
|
|
40
|
-
export declare function isTrivialSingleNodeRelations(relations: FilterRelationsRules): relations is FilterRelationsRuleIdNode;
|
|
41
|
-
/**
|
|
42
|
-
* Calculates new relations based on the changes in filters.
|
|
43
|
-
*/
|
|
44
|
-
export declare function calculateNewRelations(prevFilters: Filter[], prevRelations: FilterRelationsRules, newFilters: Filter[]): FilterRelationsRules;
|
|
45
|
-
/**
|
|
46
|
-
* Replaces a filter in the relations tree with a new filter.
|
|
16
|
+
* @internal
|
|
47
17
|
*/
|
|
48
|
-
export declare function
|
|
18
|
+
export declare function getRelationsAsText(relations: FilterRelationsRules, filters: Filter[]): string;
|
|
49
19
|
/**
|
|
50
|
-
*
|
|
20
|
+
* @internal
|
|
51
21
|
*/
|
|
52
|
-
export declare function
|
|
22
|
+
export declare function getFilterRelationsDescription(relations: FilterRelationsRules, filters: Filter[]): FilterRelationsDescription;
|
|
53
23
|
/**
|
|
54
|
-
*
|
|
24
|
+
* Merge two arrays of filters using the specified merge strategy.
|
|
25
|
+
*
|
|
26
|
+
* @param {Filter[]} widgetFilters - The filters from the widget.
|
|
27
|
+
* @param {Filter[]} codeFilters - The filters from the code.
|
|
28
|
+
* @param {FiltersMergeStrategy} [mergeStrategy] - The strategy to use for merging filters.
|
|
29
|
+
* @returns {Filter[]} The merged filters based on the selected strategy.
|
|
30
|
+
* @internal
|
|
55
31
|
*/
|
|
56
|
-
export declare function
|
|
32
|
+
export declare function mergeFiltersByStrategy(widgetFilters?: Filter[] | FilterRelations, codeFilters?: Filter[] | FilterRelations, mergeStrategy?: FiltersMergeStrategy): Filter[] | FilterRelations;
|
|
57
33
|
/**
|
|
58
|
-
*
|
|
59
|
-
*
|
|
34
|
+
* Replaces filters for same dimensions in filter relations jaql.
|
|
35
|
+
* Widget filters have higher priority than dashboard filters.
|
|
60
36
|
*
|
|
37
|
+
* @param widgetFilters - The filters from the widget.
|
|
38
|
+
* @param dashboardFilters - The filters from the dashboard.
|
|
39
|
+
* @param relations - The filter relations before replacement.
|
|
40
|
+
* @returns The filter relations after replacement.
|
|
61
41
|
* @internal
|
|
62
42
|
*/
|
|
63
|
-
export declare function
|
|
64
|
-
export declare function getFilterRelationsDescription(relations: FilterRelationsRules, filters: Filter[]): FilterRelationsDescription;
|
|
65
|
-
export type FilterRelationsDescription = FilterRelationsDescriptionNode[];
|
|
66
|
-
type FilterRelationsDescriptionNode = OpenBracketDescriptionNode | CloseBracketDescriptionNode | AttributeDescriptionNode | OperatorDescriptionNode;
|
|
67
|
-
type OpenBracketDescriptionNode = {
|
|
68
|
-
nodeType: 'openBracket';
|
|
69
|
-
};
|
|
70
|
-
export declare function isOpenBracketDescriptionNode(node: FilterRelationsDescriptionNode): node is OpenBracketDescriptionNode;
|
|
71
|
-
type CloseBracketDescriptionNode = {
|
|
72
|
-
nodeType: 'closeBracket';
|
|
73
|
-
};
|
|
74
|
-
export declare function isCloseBracketDescriptionNode(node: FilterRelationsDescriptionNode): node is CloseBracketDescriptionNode;
|
|
75
|
-
type AttributeDescriptionNode = {
|
|
76
|
-
nodeType: 'attribute';
|
|
77
|
-
attribute: string;
|
|
78
|
-
};
|
|
79
|
-
export declare function isAttributeDescriptionNode(node: FilterRelationsDescriptionNode): node is AttributeDescriptionNode;
|
|
80
|
-
type OperatorDescriptionNode = {
|
|
81
|
-
nodeType: 'operator';
|
|
82
|
-
operator: 'AND' | 'OR';
|
|
83
|
-
};
|
|
84
|
-
export declare function isOperatorDescriptionNode(node: FilterRelationsDescriptionNode): node is OperatorDescriptionNode;
|
|
85
|
-
export {};
|
|
43
|
+
export declare function applyWidgetFiltersToRelations(widgetFilters: Filter[], dashboardFilters: Filter[], relations: FilterRelationsJaql | undefined): FilterRelationsJaql | undefined;
|
|
@@ -22,6 +22,6 @@ import { DashboardWidgetProps } from '../props.js';
|
|
|
22
22
|
*
|
|
23
23
|
* @group Fusion Assets
|
|
24
24
|
* @fusionEmbed
|
|
25
|
-
* @deprecated Use {@link WidgetById} instead.
|
|
25
|
+
* @deprecated Use {@link @sisense/sdk-ui!WidgetById | `WidgetById`} instead.
|
|
26
26
|
*/
|
|
27
27
|
export declare const DashboardWidget: FunctionComponent<DashboardWidgetProps>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JaqlDataSource } from '@sisense/sdk-data';
|
|
2
2
|
import { StyledMeasureColumn, StyledColumn, Color } from '../types.js';
|
|
3
3
|
import { Panel, PanelItem, WidgetType, WidgetStyle, BoxplotWidgetStyle } from './types.js';
|
|
4
4
|
import { WidgetDataOptions } from '../models/index.js';
|
|
5
|
-
export declare function createDimensionalElementFromJaql(jaql: Jaql, format?: PanelItem['format']): import("@sisense/sdk-data").Filter | DimensionalAttribute | DimensionalCalculatedMeasure | DimensionalBaseMeasure;
|
|
6
5
|
/** @internal */
|
|
7
6
|
export declare function applyStatisticalModels(dataOption: StyledMeasureColumn, statisticalModels?: {
|
|
8
7
|
forecast?: {
|
|
@@ -290,6 +290,20 @@ export type PanelColorFormatConditionOperator = '<' | '>' | '≤' | '<=' | '≥'
|
|
|
290
290
|
type LabelsStyle = {
|
|
291
291
|
enabled: boolean;
|
|
292
292
|
rotation: number;
|
|
293
|
+
/**
|
|
294
|
+
* @internal
|
|
295
|
+
*/
|
|
296
|
+
labels?: {
|
|
297
|
+
enabled?: boolean;
|
|
298
|
+
stacked?: boolean;
|
|
299
|
+
stackedPercentage?: boolean;
|
|
300
|
+
types?: {
|
|
301
|
+
count?: boolean;
|
|
302
|
+
percentage?: boolean;
|
|
303
|
+
relative?: boolean;
|
|
304
|
+
totals?: boolean;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
293
307
|
};
|
|
294
308
|
type AxisTitleStyle = {
|
|
295
309
|
enabled: boolean;
|