@sisense/sdk-ui-angular 2.3.0 → 2.4.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/esm2020/lib/component-wrapper-helpers/context-connectors.mjs +21 -13
- package/dist/esm2020/lib/components/dashboard/dashboard-by-id.component.mjs +9 -9
- package/dist/esm2020/lib/components/dashboard/dashboard.component.mjs +9 -9
- package/dist/esm2020/lib/components/filters/filters-panel.component.mjs +129 -0
- package/dist/esm2020/lib/components/filters/index.mjs +2 -1
- package/dist/esm2020/lib/components/widgets/widget.component.mjs +4 -4
- package/dist/esm2020/lib/helpers/widget-props-preact-translator.mjs +5 -2
- package/dist/esm2020/lib/sdk-ui-core-exports.mjs +2 -2
- package/dist/esm2020/lib/sdk-ui.module.mjs +6 -2
- package/dist/esm2020/lib/services/custom-widgets.service.mjs +53 -0
- package/dist/esm2020/lib/services/dashboard.service.mjs +2 -2
- package/dist/esm2020/lib/services/dynamic-renderer.service.mjs +45 -0
- package/dist/esm2020/lib/services/filter.service.mjs +75 -0
- package/dist/esm2020/lib/services/index.mjs +3 -2
- package/dist/esm2020/lib/services/query.service.mjs +37 -3
- package/dist/esm2020/lib/types/chart-event-props.mjs +1 -1
- package/dist/esm2020/lib/types/data-point.mjs +1 -1
- package/dist/esm2020/lib/types/filter-event-props.mjs +1 -1
- package/dist/esm2020/lib/types/index.mjs +2 -2
- package/dist/esm2020/lib/types/widget-event-props.mjs +2 -0
- package/dist/esm2020/lib/utilities/widget-model-translator.mjs +1 -1
- package/dist/esm2020/public-api.mjs +2 -2
- package/dist/esm2020/version.mjs +2 -2
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs +368 -86
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +364 -86
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/lib/component-wrapper-helpers/context-connectors.d.ts +5 -5
- package/dist/lib/components/dashboard/dashboard-by-id.component.d.ts +7 -11
- package/dist/lib/components/dashboard/dashboard.component.d.ts +7 -11
- package/dist/lib/components/filters/filters-panel.component.d.ts +134 -0
- package/dist/lib/components/filters/index.d.ts +1 -0
- package/dist/lib/components/widgets/widget.component.d.ts +11 -5
- package/dist/lib/sdk-ui-core-exports.d.ts +2 -2
- package/dist/lib/sdk-ui.module.d.ts +5 -4
- package/dist/lib/services/custom-widgets.service.d.ts +41 -0
- package/dist/lib/services/dashboard.service.d.ts +1 -1
- package/dist/lib/services/dynamic-renderer.service.d.ts +27 -0
- package/dist/lib/services/filter.service.d.ts +46 -0
- package/dist/lib/services/index.d.ts +2 -1
- package/dist/lib/services/query.service.d.ts +21 -3
- package/dist/lib/types/chart-event-props.d.ts +8 -1
- package/dist/lib/types/data-point.d.ts +21 -2
- package/dist/lib/types/filter-event-props.d.ts +9 -1
- package/dist/lib/types/index.d.ts +1 -1
- package/dist/lib/types/widget-event-props.d.ts +13 -0
- package/dist/lib/utilities/widget-model-translator.d.ts +2 -2
- package/dist/package.json +1 -1
- package/dist/public-api.d.ts +2 -2
- package/dist/version.d.ts +1 -1
- package/package.json +4 -4
- package/dist/esm2020/lib/services/plugins.service.mjs +0 -55
- package/dist/esm2020/lib/types/dashboard-config.mjs +0 -2
- package/dist/lib/services/plugins.service.d.ts +0 -37
- package/dist/lib/types/dashboard-config.d.ts +0 -24
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ContextConnector,
|
|
2
|
-
import {
|
|
1
|
+
import { ContextConnector, CustomSisenseContextProviderProps, CustomThemeProviderProps, CustomWidgetsProviderAdapterProps } from '@sisense/sdk-ui-preact';
|
|
2
|
+
import { CustomWidgetsService } from '../services/custom-widgets.service';
|
|
3
3
|
import { SisenseContextService } from '../services/sisense-context.service';
|
|
4
4
|
import { ThemeService } from '../services/theme.service';
|
|
5
5
|
/**
|
|
@@ -17,9 +17,9 @@ export declare const createThemeContextConnector: (themeService: ThemeService) =
|
|
|
17
17
|
*/
|
|
18
18
|
export declare const createSisenseContextConnector: (sisenseContextService: SisenseContextService) => ContextConnector<CustomSisenseContextProviderProps>;
|
|
19
19
|
/**
|
|
20
|
-
* Creates
|
|
20
|
+
* Creates custom widgets context connector
|
|
21
21
|
*
|
|
22
|
-
* @param
|
|
22
|
+
* @param customWidgetsService - The custom widgets service
|
|
23
23
|
* @internal
|
|
24
24
|
*/
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const createCustomWidgetsContextConnector: (customWidgetsService: CustomWidgetsService) => ContextConnector<CustomWidgetsProviderAdapterProps>;
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
-
import { type DashboardByIdProps as DashboardByIdPropsPreact } from '@sisense/sdk-ui-preact';
|
|
3
|
-
import {
|
|
2
|
+
import { type DashboardByIdConfig, type DashboardByIdProps as DashboardByIdPropsPreact } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import { CustomWidgetsService } from '../../services/custom-widgets.service';
|
|
4
4
|
import { SisenseContextService } from '../../services/sisense-context.service';
|
|
5
5
|
import { ThemeService } from '../../services/theme.service';
|
|
6
|
-
import type { DashboardByIdConfig } from '../../types';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
export { DashboardByIdConfig };
|
|
8
8
|
/**
|
|
9
9
|
* Props of the {@link DashboardByIdComponent}.
|
|
10
10
|
*/
|
|
11
11
|
export interface DashboardByIdProps extends DashboardByIdPropsPreact {
|
|
12
|
-
/**
|
|
13
|
-
* {@inheritDoc @sisense/sdk-ui!DashboardByIdProps.config}
|
|
14
|
-
*/
|
|
15
|
-
config?: DashboardByIdConfig;
|
|
16
12
|
}
|
|
17
13
|
/**
|
|
18
14
|
* An Angular component used for easily rendering a dashboard by its ID created in a Sisense Fusion instance.
|
|
@@ -54,12 +50,12 @@ export declare class DashboardByIdComponent implements AfterViewInit, OnChanges,
|
|
|
54
50
|
*/
|
|
55
51
|
themeService: ThemeService;
|
|
56
52
|
/**
|
|
57
|
-
*
|
|
53
|
+
* Custom widgets service
|
|
58
54
|
*
|
|
59
55
|
* @internal
|
|
60
56
|
* @category Constructor
|
|
61
57
|
*/
|
|
62
|
-
|
|
58
|
+
customWidgetsService: CustomWidgetsService;
|
|
63
59
|
/**
|
|
64
60
|
* @internal
|
|
65
61
|
*/
|
|
@@ -93,12 +89,12 @@ export declare class DashboardByIdComponent implements AfterViewInit, OnChanges,
|
|
|
93
89
|
*/
|
|
94
90
|
themeService: ThemeService,
|
|
95
91
|
/**
|
|
96
|
-
*
|
|
92
|
+
* Custom widgets service
|
|
97
93
|
*
|
|
98
94
|
* @internal
|
|
99
95
|
* @category Constructor
|
|
100
96
|
*/
|
|
101
|
-
|
|
97
|
+
customWidgetsService: CustomWidgetsService);
|
|
102
98
|
/**
|
|
103
99
|
* @internal
|
|
104
100
|
*/
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
-
import { type DashboardProps as DashboardPropsPreact } from '@sisense/sdk-ui-preact';
|
|
3
|
-
import {
|
|
2
|
+
import { type DashboardConfig, type DashboardFiltersPanelConfig, type DashboardProps as DashboardPropsPreact } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import { CustomWidgetsService } from '../../services/custom-widgets.service';
|
|
4
4
|
import { SisenseContextService } from '../../services/sisense-context.service';
|
|
5
5
|
import { ThemeService } from '../../services/theme.service';
|
|
6
|
-
import type { DashboardConfig } from '../../types';
|
|
7
6
|
import { WidgetProps } from '../widgets/widget.component';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
export { DashboardConfig, DashboardFiltersPanelConfig };
|
|
9
9
|
/**
|
|
10
10
|
* Props of the {@link DashboardComponent}.
|
|
11
11
|
*/
|
|
12
12
|
export interface DashboardProps extends Omit<DashboardPropsPreact, 'widgets'> {
|
|
13
|
-
/**
|
|
14
|
-
* {@inheritDoc @sisense/sdk-ui!DashboardProps.config}
|
|
15
|
-
*/
|
|
16
|
-
config?: DashboardConfig;
|
|
17
13
|
/**
|
|
18
14
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.widgets}
|
|
19
15
|
*/
|
|
@@ -80,12 +76,12 @@ export declare class DashboardComponent implements AfterViewInit, OnChanges, OnD
|
|
|
80
76
|
*/
|
|
81
77
|
themeService: ThemeService;
|
|
82
78
|
/**
|
|
83
|
-
*
|
|
79
|
+
* Custom widgets service
|
|
84
80
|
*
|
|
85
81
|
* @internal
|
|
86
82
|
* @category Constructor
|
|
87
83
|
*/
|
|
88
|
-
|
|
84
|
+
customWidgetsService: CustomWidgetsService;
|
|
89
85
|
/**
|
|
90
86
|
* @internal
|
|
91
87
|
*/
|
|
@@ -149,12 +145,12 @@ export declare class DashboardComponent implements AfterViewInit, OnChanges, OnD
|
|
|
149
145
|
*/
|
|
150
146
|
themeService: ThemeService,
|
|
151
147
|
/**
|
|
152
|
-
*
|
|
148
|
+
* Custom widgets service
|
|
153
149
|
*
|
|
154
150
|
* @internal
|
|
155
151
|
* @category Constructor
|
|
156
152
|
*/
|
|
157
|
-
|
|
153
|
+
customWidgetsService: CustomWidgetsService);
|
|
158
154
|
/**
|
|
159
155
|
* @internal
|
|
160
156
|
*/
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { type FiltersPanelConfig, type FiltersPanelProps as FiltersPanelPropsPreact } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import { SisenseContextService } from '../../services/sisense-context.service';
|
|
4
|
+
import { ThemeService } from '../../services/theme.service';
|
|
5
|
+
import type { FiltersPanelChangeEvent } from '../../types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/** Reexport related types */
|
|
8
|
+
export type { FiltersPanelConfig };
|
|
9
|
+
/**
|
|
10
|
+
* Props of the {@link FiltersPanelComponent}.
|
|
11
|
+
*/
|
|
12
|
+
export interface FiltersPanelProps extends Omit<FiltersPanelPropsPreact, 'onFiltersChange'> {
|
|
13
|
+
/**
|
|
14
|
+
* Callback to handle changes in filters
|
|
15
|
+
*/
|
|
16
|
+
filtersChange?: (event: FiltersPanelChangeEvent) => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Filters panel component that renders a list of filter tiles
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* Here's how to render a filters panel with a set of filters.
|
|
23
|
+
*
|
|
24
|
+
* ```html
|
|
25
|
+
<!--Component HTML template in example.component.html-->
|
|
26
|
+
<csdk-filters-panel
|
|
27
|
+
[filters]="filtersPanelProps.filters"
|
|
28
|
+
[defaultDataSource]="filtersPanelProps.defaultDataSource"
|
|
29
|
+
(filtersChange)="filtersPanelProps.filtersChange($event)"
|
|
30
|
+
/>
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ```ts
|
|
34
|
+
// Component behavior in example.component.ts
|
|
35
|
+
import { Component } from '@angular/core';
|
|
36
|
+
import { type FiltersPanelProps } from '@sisense/sdk-ui-angular';
|
|
37
|
+
import { filterFactory } from '@sisense/sdk-data';
|
|
38
|
+
import * as DM from '../../assets/sample-healthcare-model';
|
|
39
|
+
|
|
40
|
+
@Component({
|
|
41
|
+
selector: 'example',
|
|
42
|
+
templateUrl: './example.component.html',
|
|
43
|
+
styleUrls: ['./example.component.scss'],
|
|
44
|
+
})
|
|
45
|
+
export class ExampleComponent {
|
|
46
|
+
filtersPanelProps: FiltersPanelProps = {
|
|
47
|
+
filters: [
|
|
48
|
+
filterFactory.members(DM.ER.Date.Years, ['2013-01-01T00:00:00']),
|
|
49
|
+
filterFactory.members(DM.ER.Departments.Department, ['Cardiology']),
|
|
50
|
+
],
|
|
51
|
+
defaultDataSource: DM.DataSource,
|
|
52
|
+
filtersChange({ filters }) {
|
|
53
|
+
this.filtersPanelProps.filters = filters;
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
* ```
|
|
58
|
+
* @group Filter Tiles
|
|
59
|
+
*/
|
|
60
|
+
export declare class FiltersPanelComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
61
|
+
/**
|
|
62
|
+
* Sisense context service
|
|
63
|
+
*
|
|
64
|
+
* @category Constructor
|
|
65
|
+
*/
|
|
66
|
+
sisenseContextService: SisenseContextService;
|
|
67
|
+
/**
|
|
68
|
+
* Theme service
|
|
69
|
+
*
|
|
70
|
+
* @category Constructor
|
|
71
|
+
*/
|
|
72
|
+
themeService: ThemeService;
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
preactRef: ElementRef<HTMLDivElement>;
|
|
77
|
+
/**
|
|
78
|
+
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.filters}
|
|
79
|
+
*/
|
|
80
|
+
filters: FiltersPanelProps['filters'];
|
|
81
|
+
/**
|
|
82
|
+
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.defaultDataSource}
|
|
83
|
+
*/
|
|
84
|
+
defaultDataSource: FiltersPanelProps['defaultDataSource'];
|
|
85
|
+
/**
|
|
86
|
+
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.dataSources}
|
|
87
|
+
*
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
dataSources: FiltersPanelProps['dataSources'];
|
|
91
|
+
/**
|
|
92
|
+
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.config}
|
|
93
|
+
*/
|
|
94
|
+
config: FiltersPanelProps['config'];
|
|
95
|
+
/**
|
|
96
|
+
* {@inheritDoc FiltersPanelProps.filtersChange}
|
|
97
|
+
*/
|
|
98
|
+
filtersChange: EventEmitter<FiltersPanelChangeEvent>;
|
|
99
|
+
private componentAdapter;
|
|
100
|
+
/**
|
|
101
|
+
* Constructor for the `FiltersPanelComponent`.
|
|
102
|
+
*
|
|
103
|
+
* @param sisenseContextService - Sisense context service
|
|
104
|
+
* @param themeService - Theme service
|
|
105
|
+
*/
|
|
106
|
+
constructor(
|
|
107
|
+
/**
|
|
108
|
+
* Sisense context service
|
|
109
|
+
*
|
|
110
|
+
* @category Constructor
|
|
111
|
+
*/
|
|
112
|
+
sisenseContextService: SisenseContextService,
|
|
113
|
+
/**
|
|
114
|
+
* Theme service
|
|
115
|
+
*
|
|
116
|
+
* @category Constructor
|
|
117
|
+
*/
|
|
118
|
+
themeService: ThemeService);
|
|
119
|
+
/**
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
ngAfterViewInit(): void;
|
|
123
|
+
/**
|
|
124
|
+
* @internal
|
|
125
|
+
*/
|
|
126
|
+
ngOnChanges(): void;
|
|
127
|
+
private getPreactComponentProps;
|
|
128
|
+
/**
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
131
|
+
ngOnDestroy(): void;
|
|
132
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FiltersPanelComponent, never>;
|
|
133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FiltersPanelComponent, "csdk-filters-panel", never, { "filters": "filters"; "defaultDataSource": "defaultDataSource"; "dataSources": "dataSources"; "config": "config"; }, { "filtersChange": "filtersChange"; }, never, never, false, never>;
|
|
134
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './criteria-filter-tile.component';
|
|
2
2
|
export * from './date-range-filter-tile.component';
|
|
3
3
|
export * from './filter-tile.component';
|
|
4
|
+
export * from './filters-panel.component';
|
|
4
5
|
export * from './member-filter-tile.component';
|
|
5
6
|
export * from './relative-date-filter-tile.component';
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
-
import { type BeforeMenuOpenHandler,
|
|
2
|
+
import { type BeforeMenuOpenHandler, CustomWidgetProps, type SoftUnion, TextWidgetProps as TextWidgetPropsPreact } from '@sisense/sdk-ui-preact';
|
|
3
3
|
import { SisenseContextService } from '../../services/sisense-context.service';
|
|
4
4
|
import { ThemeService } from '../../services/theme.service';
|
|
5
|
+
import { TextWidgetEventProps, WithoutPreactChartEventProps } from '../../types';
|
|
5
6
|
import { ChartDataPointClickEvent, ChartDataPointContextMenuEvent, ChartDataPointsEvent } from '../../types/data-point';
|
|
6
7
|
import { ChartWidgetProps } from './chart-widget.component';
|
|
7
8
|
import { PivotTableWidgetProps } from './pivot-table-widget.component';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* Props for the text widget.
|
|
12
|
+
*/
|
|
13
|
+
export interface TextWidgetProps extends WithoutPreactChartEventProps<TextWidgetPropsPreact>, TextWidgetEventProps {
|
|
14
|
+
}
|
|
9
15
|
/**
|
|
10
16
|
* {@inheritDoc @sisense/sdk-ui!WithCommonWidgetProps}
|
|
11
17
|
*/
|
|
@@ -29,7 +35,7 @@ export type WithCommonWidgetProps<BaseWidget, Type> = BaseWidget & {
|
|
|
29
35
|
/**
|
|
30
36
|
* Props of the {@link WidgetComponent}.
|
|
31
37
|
*/
|
|
32
|
-
export type WidgetProps = SoftUnion<WithCommonWidgetProps<ChartWidgetProps, 'chart'> | WithCommonWidgetProps<PivotTableWidgetProps, 'pivot'> | WithCommonWidgetProps<TextWidgetProps, 'text'> | WithCommonWidgetProps<
|
|
38
|
+
export type WidgetProps = SoftUnion<WithCommonWidgetProps<ChartWidgetProps, 'chart'> | WithCommonWidgetProps<PivotTableWidgetProps, 'pivot'> | WithCommonWidgetProps<TextWidgetProps, 'text'> | WithCommonWidgetProps<CustomWidgetProps, 'custom'>>;
|
|
33
39
|
/**
|
|
34
40
|
* Facade component that renders a widget within a dashboard based on the widget type.
|
|
35
41
|
*
|
|
@@ -98,11 +104,11 @@ export declare class WidgetComponent implements AfterViewInit, OnChanges, OnDest
|
|
|
98
104
|
*/
|
|
99
105
|
chartType: WidgetProps['chartType'];
|
|
100
106
|
/**
|
|
101
|
-
* {@inheritDoc @sisense/sdk-ui!
|
|
107
|
+
* {@inheritDoc @sisense/sdk-ui!CustomWidgetProps.customWidgetType}
|
|
102
108
|
*
|
|
103
109
|
* @category Widget
|
|
104
110
|
*/
|
|
105
|
-
|
|
111
|
+
customWidgetType: WidgetProps['customWidgetType'];
|
|
106
112
|
/**
|
|
107
113
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.dataSource}
|
|
108
114
|
*
|
|
@@ -205,5 +211,5 @@ export declare class WidgetComponent implements AfterViewInit, OnChanges, OnDest
|
|
|
205
211
|
/** @internal */
|
|
206
212
|
ngOnDestroy(): void;
|
|
207
213
|
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetComponent, never>;
|
|
208
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetComponent, "csdk-widget", never, { "id": "id"; "widgetType": "widgetType"; "chartType": "chartType"; "
|
|
214
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetComponent, "csdk-widget", never, { "id": "id"; "widgetType": "widgetType"; "chartType": "chartType"; "customWidgetType": "customWidgetType"; "dataSource": "dataSource"; "dataOptions": "dataOptions"; "filters": "filters"; "highlights": "highlights"; "styleOptions": "styleOptions"; "drilldownOptions": "drilldownOptions"; "title": "title"; "description": "description"; "highlightSelectionDisabled": "highlightSelectionDisabled"; "beforeRender": "beforeRender"; "dataReady": "dataReady"; "beforeMenuOpen": "beforeMenuOpen"; }, { "dataPointClick": "dataPointClick"; "dataPointContextMenu": "dataPointContextMenu"; "dataPointsSelect": "dataPointsSelect"; }, never, never, false, never>;
|
|
209
215
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { boxWhiskerProcessResult } from '@sisense/sdk-ui-preact';
|
|
2
|
-
export type { AppConfig, AreamapChartDataOptions, AreamapChartType, AreamapStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, AreaSubtype, AxisLabel, BeforeRenderHandler, BoxplotChartCustomDataOptions, BoxplotChartDataOptions, BoxplotChartType, BoxplotDataPoint, BoxplotStyleOptions, BoxplotSubtype, BoxWhiskerType, CartesianChartDataOptions, CartesianChartType, CartesianWidgetType, CategoricalChartDataOptions, CategoricalChartType, CategoricalWidgetType, ChartDataOptions, ChartStyleOptions, ChartType, ChartWidgetStyleOptions, Color, ColorPaletteTheme, CommonWidgetProps, ConditionalDataColorOptions, Convolution, DashboardLayoutOptions, DashboardModel, DataColorCondition, DataColorOptions, DataLimits, DataPoint, DateConfig, DateLevel, DayOfWeek, DecimalScale, DrilldownOptions, DrilldownSelection, FilterVariant, FunnelStyleOptions, GaugeIndicatorStyleOptions, GetDashboardModelOptions, GetDashboardModelsOptions, Hierarchy, HierarchyModel, HighchartsOptions, IndicatorBeforeRenderHandler, IndicatorChartDataOptions, IndicatorChartType, IndicatorComponents, IndicatorRenderOptions, IndicatorStyleOptions, Labels, Legend, LineStyleOptions, LineSubtype, LineWidth, Markers, Member, MenuItemSection, MenuPosition, MonthOfYear, MultiColumnValueToColorMap, Navigator, NumberFormatConfig, NumericBarIndicatorStyleOptions, NumericSimpleIndicatorStyleOptions, PieStyleOptions, PieSubtype, PivotRowsSort, PivotTableDataOptions, PivotTableStyleOptions, PivotTableWidgetStyleOptions, PolarStyleOptions, PolarSubtype, RangeChartDataOptions, RangeChartType, RangeDataColorOptions, ScatterChartDataOptions, ScatterChartType, ScatterDataPoint, ScattermapChartDataOptions, ScattermapChartType, ScattermapLocationLevel, ScattermapMarkers, ScattermapStyleOptions, ScatterMarkerSize, ScatterStyleOptions, SeriesChartType, SeriesLabels, SortDirection, StackableStyleOptions, StackableSubtype, StyledColumn, StyledMeasureColumn, SunburstStyleOptions, TableDataOptions, TableStyleOptions, TableType, TabularWidgetType,
|
|
1
|
+
export { boxWhiskerProcessResult, extractDimensionsAndMeasures } from '@sisense/sdk-ui-preact';
|
|
2
|
+
export type { AppConfig, AreamapChartDataOptions, AreamapChartType, AreamapStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, AreaSubtype, AxisLabel, BeforeRenderHandler, BoxplotChartCustomDataOptions, BoxplotChartDataOptions, BoxplotChartType, BoxplotDataPoint, BoxplotStyleOptions, BoxplotSubtype, BoxWhiskerType, CartesianChartDataOptions, CartesianChartType, CartesianWidgetType, CategoricalChartDataOptions, CategoricalChartType, CategoricalWidgetType, ChartDataOptions, ChartStyleOptions, ChartType, ChartWidgetStyleOptions, Color, ColorPaletteTheme, CommonWidgetProps, ConditionalDataColorOptions, Convolution, DashboardLayoutOptions, DashboardModel, DataColorCondition, DataColorOptions, DataLimits, DataPoint, DateConfig, DateLevel, DayOfWeek, DecimalScale, DrilldownOptions, DrilldownSelection, FilterVariant, FunnelStyleOptions, GaugeIndicatorStyleOptions, GetDashboardModelOptions, GetDashboardModelsOptions, Hierarchy, HierarchyModel, HighchartsOptions, IndicatorBeforeRenderHandler, IndicatorChartDataOptions, IndicatorChartType, IndicatorComponents, IndicatorDataPoint, IndicatorRenderOptions, IndicatorStyleOptions, Labels, Legend, LineStyleOptions, LineSubtype, LineWidth, Markers, Member, MenuItemSection, MenuPosition, MonthOfYear, MultiColumnValueToColorMap, Navigator, NumberFormatConfig, NumericBarIndicatorStyleOptions, NumericSimpleIndicatorStyleOptions, PieStyleOptions, PieSubtype, PivotRowsSort, PivotTableDataOptions, PivotTableStyleOptions, PivotTableWidgetStyleOptions, PolarStyleOptions, PolarSubtype, RangeChartDataOptions, RangeChartType, RangeDataColorOptions, ScatterChartDataOptions, ScatterChartType, ScatterDataPoint, ScattermapChartDataOptions, ScattermapChartType, ScattermapLocationLevel, ScattermapMarkers, ScattermapStyleOptions, ScatterMarkerSize, ScatterStyleOptions, SeriesChartType, SeriesLabels, SortDirection, StackableStyleOptions, StackableSubtype, StyledColumn, StyledMeasureColumn, SunburstStyleOptions, TableDataOptions, TableStyleOptions, TableType, TabularWidgetType, ThemeOid, ThemeSettings, TranslationConfig, TreemapStyleOptions, UniformDataColorOptions, ValueToColorMap, WidgetByIdStyleOptions, WidgetDataOptions, WidgetId, WidgetModel, WidgetsOptions, WidgetsPanelColumnLayout, WidgetsPanelLayout, WidgetStyleOptions, WidgetType, X2Title, } from '@sisense/sdk-ui-preact';
|
|
@@ -31,9 +31,10 @@ import * as i29 from "./components/dashboard/dashboard-by-id.component";
|
|
|
31
31
|
import * as i30 from "./components/dashboard/dashboard.component";
|
|
32
32
|
import * as i31 from "./components/widgets/pivot-table-widget.component";
|
|
33
33
|
import * as i32 from "./components/filters/filter-tile.component";
|
|
34
|
-
import * as i33 from "./components/
|
|
35
|
-
import * as i34 from "
|
|
36
|
-
import * as i35 from "
|
|
34
|
+
import * as i33 from "./components/filters/filters-panel.component";
|
|
35
|
+
import * as i34 from "./components/widgets/widget.component";
|
|
36
|
+
import * as i35 from "@angular/common";
|
|
37
|
+
import * as i36 from "./decorators/decorators.module";
|
|
37
38
|
/**
|
|
38
39
|
* SDK UI Module, which is a container for components.
|
|
39
40
|
*
|
|
@@ -63,6 +64,6 @@ import * as i35 from "./decorators/decorators.module";
|
|
|
63
64
|
*/
|
|
64
65
|
export declare class SdkUiModule {
|
|
65
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdkUiModule, never>;
|
|
66
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SdkUiModule, [typeof i1.ChartComponent, typeof i2.TableComponent, typeof i3.ChartWidgetComponent, typeof i4.ColumnChartComponent, typeof i5.BarChartComponent, typeof i6.AreaChartComponent, typeof i7.AreaRangeChartComponent, typeof i8.LineChartComponent, typeof i9.IndicatorChartComponent, typeof i10.ScatterChartComponent, typeof i11.PieChartComponent, typeof i12.FunnelChartComponent, typeof i13.PolarChartComponent, typeof i14.TreemapChartComponent, typeof i15.SunburstChartComponent, typeof i16.TableWidgetComponent, typeof i17.WidgetByIdComponent, typeof i18.MemberFilterTileComponent, typeof i19.DrilldownWidgetComponent, typeof i20.DateRangeFilterTileComponent, typeof i21.RelativeDateFilterTileComponent, typeof i22.CriteriaFilterTileComponent, typeof i23.DrilldownBreadcrumbsComponent, typeof i24.ContextMenuComponent, typeof i25.BoxplotChartComponent, typeof i26.ScattermapChartComponent, typeof i27.AreamapChartComponent, typeof i28.PivotTableComponent, typeof i29.DashboardByIdComponent, typeof i30.DashboardComponent, typeof i31.PivotTableWidgetComponent, typeof i32.FilterTileComponent, typeof i33.WidgetComponent], [typeof
|
|
67
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SdkUiModule, [typeof i1.ChartComponent, typeof i2.TableComponent, typeof i3.ChartWidgetComponent, typeof i4.ColumnChartComponent, typeof i5.BarChartComponent, typeof i6.AreaChartComponent, typeof i7.AreaRangeChartComponent, typeof i8.LineChartComponent, typeof i9.IndicatorChartComponent, typeof i10.ScatterChartComponent, typeof i11.PieChartComponent, typeof i12.FunnelChartComponent, typeof i13.PolarChartComponent, typeof i14.TreemapChartComponent, typeof i15.SunburstChartComponent, typeof i16.TableWidgetComponent, typeof i17.WidgetByIdComponent, typeof i18.MemberFilterTileComponent, typeof i19.DrilldownWidgetComponent, typeof i20.DateRangeFilterTileComponent, typeof i21.RelativeDateFilterTileComponent, typeof i22.CriteriaFilterTileComponent, typeof i23.DrilldownBreadcrumbsComponent, typeof i24.ContextMenuComponent, typeof i25.BoxplotChartComponent, typeof i26.ScattermapChartComponent, typeof i27.AreamapChartComponent, typeof i28.PivotTableComponent, typeof i29.DashboardByIdComponent, typeof i30.DashboardComponent, typeof i31.PivotTableWidgetComponent, typeof i32.FilterTileComponent, typeof i33.FiltersPanelComponent, typeof i34.WidgetComponent], [typeof i35.CommonModule, typeof i36.DecoratorsModule], [typeof i1.ChartComponent, typeof i2.TableComponent, typeof i3.ChartWidgetComponent, typeof i4.ColumnChartComponent, typeof i5.BarChartComponent, typeof i6.AreaChartComponent, typeof i7.AreaRangeChartComponent, typeof i8.LineChartComponent, typeof i9.IndicatorChartComponent, typeof i10.ScatterChartComponent, typeof i11.PieChartComponent, typeof i12.FunnelChartComponent, typeof i13.PolarChartComponent, typeof i14.TreemapChartComponent, typeof i15.SunburstChartComponent, typeof i16.TableWidgetComponent, typeof i17.WidgetByIdComponent, typeof i18.MemberFilterTileComponent, typeof i19.DrilldownWidgetComponent, typeof i20.DateRangeFilterTileComponent, typeof i21.RelativeDateFilterTileComponent, typeof i22.CriteriaFilterTileComponent, typeof i23.DrilldownBreadcrumbsComponent, typeof i24.ContextMenuComponent, typeof i25.BoxplotChartComponent, typeof i26.ScattermapChartComponent, typeof i27.AreamapChartComponent, typeof i28.PivotTableComponent, typeof i29.DashboardByIdComponent, typeof i30.DashboardComponent, typeof i31.PivotTableWidgetComponent, typeof i32.FilterTileComponent, typeof i33.FiltersPanelComponent, typeof i34.WidgetComponent]>;
|
|
67
68
|
static ɵinj: i0.ɵɵInjectorDeclaration<SdkUiModule>;
|
|
68
69
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { type CustomWidgetComponent as CustomWidgetComponentPreact, type CustomWidgetComponentProps, type GenericDataOptions } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { DynamicRenderer } from './dynamic-renderer.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/** Re-export related types */
|
|
7
|
+
export type { CustomWidgetComponentProps, GenericDataOptions };
|
|
8
|
+
/**
|
|
9
|
+
* Type representing an Angular component class that can be used as a user-defined custom widget.
|
|
10
|
+
*/
|
|
11
|
+
export type CustomWidgetComponent<Props extends CustomWidgetComponentProps = CustomWidgetComponentProps> = Type<Props>;
|
|
12
|
+
/**
|
|
13
|
+
* Service for working with custom widgets.
|
|
14
|
+
*
|
|
15
|
+
* @group Dashboards
|
|
16
|
+
*/
|
|
17
|
+
export declare class CustomWidgetsService {
|
|
18
|
+
/** @internal */
|
|
19
|
+
private dynamicRenderer;
|
|
20
|
+
/** @internal */
|
|
21
|
+
customWidgetsMap$: BehaviorSubject<Map<string, CustomWidgetComponentPreact<any>>>;
|
|
22
|
+
constructor(
|
|
23
|
+
/** @internal */
|
|
24
|
+
dynamicRenderer: DynamicRenderer);
|
|
25
|
+
/**
|
|
26
|
+
* Registers a new custom widget.
|
|
27
|
+
*
|
|
28
|
+
* @param customWidgetType - The unique identifier for the custom widget type.
|
|
29
|
+
* @param customWidget - The custom widget component class to register.
|
|
30
|
+
*/
|
|
31
|
+
registerCustomWidget<Props extends CustomWidgetComponentProps = CustomWidgetComponentProps>(customWidgetType: string, customWidget: CustomWidgetComponent<Props>): void;
|
|
32
|
+
/**
|
|
33
|
+
* Checks if a custom widget is registered.
|
|
34
|
+
*
|
|
35
|
+
* @param customWidgetType - The type of the custom widget.
|
|
36
|
+
* @returns True if the custom widget is registered, false otherwise.
|
|
37
|
+
*/
|
|
38
|
+
hasCustomWidget(customWidgetType: string): boolean;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomWidgetsService, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CustomWidgetsService>;
|
|
41
|
+
}
|
|
@@ -52,7 +52,7 @@ export declare class DashboardService {
|
|
|
52
52
|
[id]="widget.id"
|
|
53
53
|
[widgetType]="widget.widgetType"
|
|
54
54
|
[chartType]="widget.chartType"
|
|
55
|
-
[
|
|
55
|
+
[customWidgetType]="widget.customWidgetType"
|
|
56
56
|
[dataSource]="widget.dataSource"
|
|
57
57
|
[dataOptions]="widget.dataOptions"
|
|
58
58
|
[filters]="widget.filters"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ApplicationRef, ComponentRef, EnvironmentInjector, Injector, Type } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Result of rendering a dynamic component
|
|
5
|
+
*/
|
|
6
|
+
export interface RenderedComponent {
|
|
7
|
+
/** The DOM element containing the rendered component */
|
|
8
|
+
element: HTMLElement;
|
|
9
|
+
/** Function to properly destroy the component and clean up resources */
|
|
10
|
+
destroy: () => void;
|
|
11
|
+
/** Reference to the Angular component instance */
|
|
12
|
+
componentRef: ComponentRef<any>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Service for rendering components dynamically.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export declare class DynamicRenderer {
|
|
20
|
+
private appRef;
|
|
21
|
+
private injector;
|
|
22
|
+
private envInjector;
|
|
23
|
+
constructor(appRef: ApplicationRef, injector: Injector, envInjector: EnvironmentInjector);
|
|
24
|
+
renderComponent<Props>(component: Type<Props>, props: Props): RenderedComponent;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicRenderer, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicRenderer>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type GetFilterMembersData, type GetFilterMembersParams as GetFilterMembersParamsPreact } from '@sisense/sdk-ui-preact';
|
|
2
|
+
import { SisenseContextService } from './sisense-context.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type { GetFilterMembersData };
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for retrieving filter members.
|
|
7
|
+
*/
|
|
8
|
+
export interface GetFilterMembersParams extends Omit<GetFilterMembersParamsPreact, 'enabled'> {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Service for working with filter.
|
|
12
|
+
*
|
|
13
|
+
* @group Filters
|
|
14
|
+
*/
|
|
15
|
+
export declare class FilterService {
|
|
16
|
+
private sisenseContextService;
|
|
17
|
+
constructor(sisenseContextService: SisenseContextService);
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves members of the provided filter.
|
|
20
|
+
*
|
|
21
|
+
* Those members can be used to display a list of members in a third-party filter component such as Material UI Select.
|
|
22
|
+
*
|
|
23
|
+
* ## Example
|
|
24
|
+
*
|
|
25
|
+
* Retrieve selected members from a Filter on Country of the Sample ECommerce data model.
|
|
26
|
+
*
|
|
27
|
+
* ```ts
|
|
28
|
+
* try {
|
|
29
|
+
* const data = await filterService.getFilterMembers({
|
|
30
|
+
* filter: filterFactory.members(DM.Country.Country, ['United States', 'Canada'])
|
|
31
|
+
* });
|
|
32
|
+
*
|
|
33
|
+
* const { selectedMembers, allMembers, excludeMembers, enableMultiSelection } = data;
|
|
34
|
+
* console.log('selectedMembers', selectedMembers);
|
|
35
|
+
* } catch (error) {
|
|
36
|
+
* console.error('Error:', error);
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @param params - Parameters for retrieving filter members
|
|
41
|
+
* @returns Promise that resolves to the filter members data
|
|
42
|
+
*/
|
|
43
|
+
getFilterMembers(params: GetFilterMembersParams): Promise<GetFilterMembersData>;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterService, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FilterService>;
|
|
46
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
export * from './custom-widgets.service';
|
|
1
2
|
export * from './dashboard.service';
|
|
3
|
+
export * from './filter.service';
|
|
2
4
|
export * from './hierarchy.service';
|
|
3
|
-
export * from './plugins.service';
|
|
4
5
|
export * from './query.service';
|
|
5
6
|
export * from './sisense-context.service';
|
|
6
7
|
export * from './theme.service';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QueryResultData } from '@sisense/sdk-data';
|
|
2
|
+
import { type ExecuteCsvQueryParams as ExecuteCsvQueryParamsPreact, type ExecuteCustomWidgetQueryParams as ExecuteCustomWidgetQueryParamsPreact, type ExecutePivotQueryParams as ExecutePivotQueryParamsPreact, type ExecuteQueryByWidgetIdParams as ExecuteQueryByWidgetIdParamsPreact, type ExecuteQueryParams as ExecuteQueryParamsPreact } from '@sisense/sdk-ui-preact';
|
|
2
3
|
import { SisenseContextService } from './sisense-context.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
interface ExecuteQueryHandlers {
|
|
@@ -25,6 +26,11 @@ export interface ExecutePivotQueryParams extends Omit<ExecutePivotQueryParamsPre
|
|
|
25
26
|
*/
|
|
26
27
|
export interface ExecuteCsvQueryParams extends Omit<ExecuteCsvQueryParamsPreact, 'enabled' | 'onBeforeQuery'>, ExecuteQueryHandlers {
|
|
27
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Parameters for custom widget query execution.
|
|
31
|
+
*/
|
|
32
|
+
export interface ExecuteCustomWidgetQueryParams extends Omit<ExecuteCustomWidgetQueryParamsPreact, 'enabled' | 'onBeforeQuery'>, ExecuteQueryHandlers {
|
|
33
|
+
}
|
|
28
34
|
/**
|
|
29
35
|
* Service for executing data queries.
|
|
30
36
|
*
|
|
@@ -44,7 +50,7 @@ export declare class QueryService {
|
|
|
44
50
|
* @return Query result
|
|
45
51
|
*/
|
|
46
52
|
executeQuery(params: ExecuteQueryParams): Promise<{
|
|
47
|
-
data:
|
|
53
|
+
data: QueryResultData;
|
|
48
54
|
}>;
|
|
49
55
|
/**
|
|
50
56
|
* Executes a data query extracted from an existing widget in the Sisense instance.
|
|
@@ -53,7 +59,7 @@ export declare class QueryService {
|
|
|
53
59
|
* @returns Query result
|
|
54
60
|
*/
|
|
55
61
|
executeQueryByWidgetId(params: ExecuteQueryByWidgetIdParams): Promise<{
|
|
56
|
-
data:
|
|
62
|
+
data: QueryResultData;
|
|
57
63
|
} & import("@sisense/sdk-ui-preact").QueryByWidgetIdQueryParams>;
|
|
58
64
|
/**
|
|
59
65
|
* Executes a data query for a pivot table.
|
|
@@ -75,6 +81,18 @@ export declare class QueryService {
|
|
|
75
81
|
executeCsvQuery(params: ExecuteCsvQueryParams): Promise<{
|
|
76
82
|
data: Blob | string;
|
|
77
83
|
}>;
|
|
84
|
+
/**
|
|
85
|
+
* Executes a data query from custom widget component props.
|
|
86
|
+
*
|
|
87
|
+
* This method takes custom widget props (dataSource, dataOptions, filters, etc.)
|
|
88
|
+
* and executes the appropriate data query
|
|
89
|
+
*
|
|
90
|
+
* @param params - Custom widget component props containing data source, data options, filters, etc.
|
|
91
|
+
* @returns Promise resolving to query result with formatted data
|
|
92
|
+
*/
|
|
93
|
+
executeCustomWidgetQuery(params: ExecuteCustomWidgetQueryParams): Promise<{
|
|
94
|
+
data: QueryResultData;
|
|
95
|
+
}>;
|
|
78
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueryService, never>;
|
|
79
97
|
static ɵprov: i0.ɵɵInjectableDeclaration<QueryService>;
|
|
80
98
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Data } from '@sisense/sdk-data';
|
|
2
2
|
import type { BeforeRenderHandler, IndicatorBeforeRenderHandler } from '@sisense/sdk-ui-preact';
|
|
3
|
-
import type { AreamapDataPointEventHandler, BoxplotDataPointEventHandler, ChartDataPointClickEventHandler, ChartDataPointContextMenuEventHandler, ChartDataPointsEventHandler, DataPointEventHandler, DataPointsEventHandler, ScatterDataPointEventHandler, ScatterDataPointsEventHandler, ScattermapDataPointEventHandler } from './data-point';
|
|
3
|
+
import type { AreamapDataPointEventHandler, BoxplotDataPointEventHandler, ChartDataPointClickEventHandler, ChartDataPointContextMenuEventHandler, ChartDataPointsEventHandler, DataPointEventHandler, DataPointsEventHandler, IndicatorDataPointEventHandler, ScatterDataPointEventHandler, ScatterDataPointsEventHandler, ScattermapDataPointEventHandler } from './data-point';
|
|
4
4
|
export interface HighchartsBasedChartEventProps {
|
|
5
5
|
/**
|
|
6
6
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.onBeforeRender}
|
|
@@ -120,6 +120,13 @@ export interface IndicatorChartEventProps extends BaseChartEventProps {
|
|
|
120
120
|
* @category Callbacks
|
|
121
121
|
*/
|
|
122
122
|
beforeRender?: IndicatorBeforeRenderHandler;
|
|
123
|
+
/**
|
|
124
|
+
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.onDataPointClick}
|
|
125
|
+
*
|
|
126
|
+
* @category Callbacks
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
129
|
+
dataPointClick?: IndicatorDataPointEventHandler;
|
|
123
130
|
}
|
|
124
131
|
export interface ChartEventProps extends BaseChartEventProps {
|
|
125
132
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AreamapDataPoint, BoxplotDataPoint, DataPoint, ScatterDataPoint, ScattermapDataPoint } from '@sisense/sdk-ui-preact';
|
|
1
|
+
import { AreamapDataPoint, BoxplotDataPoint, DataPoint, IndicatorDataPoint, ScatterDataPoint, ScattermapDataPoint, TextWidgetDataPoint } from '@sisense/sdk-ui-preact';
|
|
2
2
|
export type DataPointEvent = {
|
|
3
3
|
/** Data point that was clicked */
|
|
4
4
|
point: DataPoint;
|
|
@@ -29,7 +29,20 @@ export type BoxplotDataPointEvent = {
|
|
|
29
29
|
/** Native PointerEvent */
|
|
30
30
|
nativeEvent: PointerEvent;
|
|
31
31
|
};
|
|
32
|
-
export type
|
|
32
|
+
export type IndicatorDataPointEvent = {
|
|
33
|
+
/** Data point that was clicked */
|
|
34
|
+
point: IndicatorDataPoint;
|
|
35
|
+
/** Native MouseEvent */
|
|
36
|
+
nativeEvent: MouseEvent;
|
|
37
|
+
};
|
|
38
|
+
export type TextWidgetDataPointEvent = {
|
|
39
|
+
/** Data point that was clicked */
|
|
40
|
+
point: TextWidgetDataPoint;
|
|
41
|
+
/** Native MouseEvent */
|
|
42
|
+
nativeEvent: MouseEvent;
|
|
43
|
+
};
|
|
44
|
+
export type ChartDataPointClickEvent = DataPointEvent | ScatterDataPointEvent | BoxplotDataPointEvent | AreamapDataPointEvent | ScattermapDataPointEvent | IndicatorDataPointEvent;
|
|
45
|
+
export type WidgetDataPointClickEvent = ChartDataPointClickEvent | TextWidgetDataPointEvent;
|
|
33
46
|
export type ChartDataPointContextMenuEvent = DataPointEvent | ScatterDataPointEvent | BoxplotDataPointEvent;
|
|
34
47
|
export type DataPointsEvent = {
|
|
35
48
|
/** Data points that were selected */
|
|
@@ -69,10 +82,16 @@ export type ScattermapDataPointEventHandler = (event: ScattermapDataPointEvent)
|
|
|
69
82
|
* Click handler for when a data point on Boxplot is clicked.
|
|
70
83
|
*/
|
|
71
84
|
export type BoxplotDataPointEventHandler = (event: BoxplotDataPointEvent) => void;
|
|
85
|
+
/** Click handler for when a data point on Indicator is clicked. */
|
|
86
|
+
export type IndicatorDataPointEventHandler = (event: IndicatorDataPointEvent) => void;
|
|
72
87
|
/**
|
|
73
88
|
* Click handler for when a data point on Chart is clicked.
|
|
74
89
|
*/
|
|
75
90
|
export type ChartDataPointClickEventHandler = (event: ChartDataPointClickEvent) => void;
|
|
91
|
+
/** Click handler for when a data point on TextWidget is clicked. */
|
|
92
|
+
export type TextWidgetDataPointEventHandler = (event: TextWidgetDataPointEvent) => void;
|
|
93
|
+
/** Click handler for when a data point on Widget is clicked. */
|
|
94
|
+
export type WidgetDataPointClickEventHandler = (event: WidgetDataPointClickEvent) => void;
|
|
76
95
|
/**
|
|
77
96
|
* Context menu handler for when a data point on the Chart is right-clicked.
|
|
78
97
|
*/
|