@sisense/sdk-ui-angular 1.34.0 → 2.1.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/lib/components/chatbot.component.d.ts +0 -5
- package/dist/ai/lib/components/get-nlg-insights.component.d.ts +0 -5
- package/dist/ai/lib/sdk-ai.module.d.ts +0 -1
- package/dist/ai/lib/sdk-ui-core-exports.d.ts +1 -1
- package/dist/ai/lib/services/ai.service.d.ts +12 -7
- package/dist/esm2020/ai/lib/components/chatbot.component.mjs +1 -6
- package/dist/esm2020/ai/lib/components/get-nlg-insights.component.mjs +1 -6
- package/dist/esm2020/ai/lib/sdk-ai.module.mjs +1 -2
- package/dist/esm2020/ai/lib/sdk-ui-core-exports.mjs +1 -1
- package/dist/esm2020/ai/lib/services/ai.service.mjs +3 -7
- package/dist/esm2020/lib/components/charts/area-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/area-range-chart.component.mjs +1 -2
- package/dist/esm2020/lib/components/charts/areamap-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/bar-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/boxplot-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/column-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/funnel-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/indicator-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/line-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/pie-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/polar-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/scatter-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/scattermap-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/sunburst-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/table.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/treemap-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/dashboard/dashboard.component.mjs +4 -3
- package/dist/esm2020/lib/components/filters/filter-tile.component.mjs +147 -0
- package/dist/esm2020/lib/components/filters/index.mjs +2 -1
- package/dist/esm2020/lib/components/filters/member-filter-tile.component.mjs +2 -2
- package/dist/esm2020/lib/components/widgets/chart-widget.component.mjs +2 -2
- package/dist/esm2020/lib/components/widgets/drilldown-widget.component.mjs +2 -5
- package/dist/esm2020/lib/components/widgets/index.mjs +2 -2
- package/dist/esm2020/lib/components/widgets/widget-by-id.component.mjs +1 -1
- package/dist/esm2020/lib/components/widgets/widget.component.mjs +168 -0
- package/dist/esm2020/lib/helpers/dashboard-props-preact-translator.mjs +14 -0
- package/dist/esm2020/lib/helpers/event-emitter-with-has-listeners.mjs +31 -0
- package/dist/esm2020/lib/helpers/index.mjs +2 -0
- package/dist/esm2020/lib/helpers/widget-props-preact-translator.mjs +37 -0
- package/dist/esm2020/lib/sdk-ui-core-exports.mjs +1 -1
- package/dist/esm2020/lib/sdk-ui.module.mjs +12 -8
- package/dist/esm2020/lib/services/dashboard.service.mjs +86 -2
- package/dist/esm2020/lib/services/query.service.mjs +5 -4
- 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 +2 -0
- package/dist/esm2020/lib/types/index.mjs +2 -1
- package/dist/esm2020/lib/utilities/dashboard-helpers.mjs +2 -14
- package/dist/esm2020/public-api.mjs +1 -1
- package/dist/esm2020/version.mjs +2 -2
- package/dist/fesm2015/sisense-sdk-ui-angular-ai.mjs +2 -17
- package/dist/fesm2015/sisense-sdk-ui-angular-ai.mjs.map +1 -1
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs +456 -146
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular-ai.mjs +2 -17
- package/dist/fesm2020/sisense-sdk-ui-angular-ai.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +482 -144
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/lib/components/charts/area-chart.component.d.ts +0 -1
- package/dist/lib/components/charts/area-range-chart.component.d.ts +0 -2
- package/dist/lib/components/charts/areamap-chart.component.d.ts +4 -6
- package/dist/lib/components/charts/bar-chart.component.d.ts +0 -1
- package/dist/lib/components/charts/boxplot-chart.component.d.ts +6 -7
- package/dist/lib/components/charts/chart.component.d.ts +3 -4
- package/dist/lib/components/charts/column-chart.component.d.ts +0 -1
- package/dist/lib/components/charts/funnel-chart.component.d.ts +0 -1
- package/dist/lib/components/charts/indicator-chart.component.d.ts +2 -3
- package/dist/lib/components/charts/line-chart.component.d.ts +0 -1
- package/dist/lib/components/charts/pie-chart.component.d.ts +0 -1
- package/dist/lib/components/charts/polar-chart.component.d.ts +0 -1
- package/dist/lib/components/charts/scatter-chart.component.d.ts +6 -7
- package/dist/lib/components/charts/scattermap-chart.component.d.ts +4 -6
- package/dist/lib/components/charts/sunburst-chart.component.d.ts +0 -1
- package/dist/lib/components/charts/table.component.d.ts +0 -1
- package/dist/lib/components/charts/treemap-chart.component.d.ts +0 -1
- package/dist/lib/components/dashboard/dashboard.component.d.ts +6 -1
- package/dist/lib/components/filters/filter-tile.component.d.ts +125 -0
- package/dist/lib/components/filters/index.d.ts +1 -0
- package/dist/lib/components/filters/member-filter-tile.component.d.ts +1 -1
- package/dist/lib/components/widgets/chart-widget.component.d.ts +4 -5
- package/dist/lib/components/widgets/drilldown-widget.component.d.ts +1 -8
- package/dist/lib/components/widgets/index.d.ts +1 -1
- package/dist/lib/components/widgets/widget-by-id.component.d.ts +0 -1
- package/dist/lib/components/widgets/widget.component.d.ts +209 -0
- package/dist/lib/helpers/dashboard-props-preact-translator.d.ts +4 -0
- package/dist/lib/helpers/event-emitter-with-has-listeners.d.ts +24 -0
- package/dist/lib/helpers/index.d.ts +1 -0
- package/dist/lib/helpers/widget-props-preact-translator.d.ts +4 -0
- package/dist/lib/sdk-ui-core-exports.d.ts +1 -1
- package/dist/lib/sdk-ui.module.d.ts +20 -19
- package/dist/lib/services/dashboard.service.d.ts +79 -1
- package/dist/lib/services/query.service.d.ts +2 -8
- package/dist/lib/types/chart-event-props.d.ts +9 -10
- package/dist/lib/types/data-point.d.ts +18 -11
- package/dist/lib/types/filter-event-props.d.ts +35 -0
- package/dist/lib/types/index.d.ts +1 -0
- package/dist/lib/utilities/dashboard-helpers.d.ts +0 -10
- package/dist/package.json +4 -4
- package/dist/public-api.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +7 -7
- package/dist/esm2020/lib/components/widgets/dashboard-widget.component.mjs +0 -117
- package/dist/lib/components/widgets/dashboard-widget.component.d.ts +0 -120
|
@@ -75,7 +75,6 @@ export class AnalyticsComponent {
|
|
|
75
75
|
* ```
|
|
76
76
|
* <img src="media://angular-area-range-chart-example.png" width="800px" />
|
|
77
77
|
* @group Charts
|
|
78
|
-
* @beta
|
|
79
78
|
*/
|
|
80
79
|
export declare class AreaRangeChartComponent {
|
|
81
80
|
/**
|
|
@@ -118,7 +117,6 @@ export declare class AreaRangeChartComponent {
|
|
|
118
117
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.onDataReady}
|
|
119
118
|
*
|
|
120
119
|
* @category Callbacks
|
|
121
|
-
* @internal
|
|
122
120
|
*/
|
|
123
121
|
dataReady: AreaRangeChartProps['dataReady'];
|
|
124
122
|
/**
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { type AreamapChartProps as AreamapChartPropsPreact, type ChartType } from '@sisense/sdk-ui-preact';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { AreamapChartEventProps, WithoutPreactChartEventProps } from '../../types/chart-event-props';
|
|
4
|
+
import { AreamapDataPointEvent } from '../../types/data-point';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* Props of the {@link AreamapChartComponent}.
|
|
8
8
|
*/
|
|
9
|
-
export interface AreamapChartProps extends WithoutPreactChartEventProps<AreamapChartPropsPreact>,
|
|
10
|
-
dataPointClick?: DataPointEventHandler;
|
|
9
|
+
export interface AreamapChartProps extends WithoutPreactChartEventProps<AreamapChartPropsPreact>, AreamapChartEventProps {
|
|
11
10
|
}
|
|
12
11
|
/**
|
|
13
12
|
* An Angular component that allows to visualize geographical data as polygons on a map.
|
|
@@ -87,7 +86,6 @@ export declare class AreamapChartComponent {
|
|
|
87
86
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.onDataReady}
|
|
88
87
|
*
|
|
89
88
|
* @category Callbacks
|
|
90
|
-
* @internal
|
|
91
89
|
*/
|
|
92
90
|
dataReady: AreamapChartProps['dataReady'];
|
|
93
91
|
/**
|
|
@@ -95,7 +93,7 @@ export declare class AreamapChartComponent {
|
|
|
95
93
|
*
|
|
96
94
|
* @category Callbacks
|
|
97
95
|
*/
|
|
98
|
-
dataPointClick: EventEmitter<
|
|
96
|
+
dataPointClick: EventEmitter<AreamapDataPointEvent>;
|
|
99
97
|
/** @internal */
|
|
100
98
|
chartType: ChartType;
|
|
101
99
|
static ɵfac: i0.ɵɵFactoryDeclaration<AreamapChartComponent, never>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { type BoxplotChartProps as BoxplotChartPropsPreact } from '@sisense/sdk-ui-preact';
|
|
3
3
|
import { type ChartType } from '../../sdk-ui-core-exports';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { BoxplotChartEventProps, WithoutPreactChartEventProps } from '../../types/chart-event-props';
|
|
5
|
+
import { BoxplotDataPointEvent, BoxplotDataPointsEvent } from '../../types/data-point';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Props of the {@link BoxplotChartComponent}.
|
|
9
9
|
*/
|
|
10
|
-
export interface BoxplotChartProps extends WithoutPreactChartEventProps<BoxplotChartPropsPreact>,
|
|
10
|
+
export interface BoxplotChartProps extends WithoutPreactChartEventProps<BoxplotChartPropsPreact>, BoxplotChartEventProps {
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* An Angular component representing data in a way that visually describes the distribution
|
|
@@ -98,7 +98,6 @@ export declare class BoxplotChartComponent {
|
|
|
98
98
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.onDataReady}
|
|
99
99
|
*
|
|
100
100
|
* @category Callbacks
|
|
101
|
-
* @internal
|
|
102
101
|
*/
|
|
103
102
|
dataReady: BoxplotChartProps['dataReady'];
|
|
104
103
|
/**
|
|
@@ -106,19 +105,19 @@ export declare class BoxplotChartComponent {
|
|
|
106
105
|
*
|
|
107
106
|
* @category Callbacks
|
|
108
107
|
*/
|
|
109
|
-
dataPointClick: EventEmitter<
|
|
108
|
+
dataPointClick: EventEmitter<BoxplotDataPointEvent>;
|
|
110
109
|
/**
|
|
111
110
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.onDataPointContextMenu}
|
|
112
111
|
*
|
|
113
112
|
* @category Callbacks
|
|
114
113
|
*/
|
|
115
|
-
dataPointContextMenu: EventEmitter<
|
|
114
|
+
dataPointContextMenu: EventEmitter<BoxplotDataPointEvent>;
|
|
116
115
|
/**
|
|
117
116
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.onDataPointsSelected}
|
|
118
117
|
*
|
|
119
118
|
* @category Callbacks
|
|
120
119
|
*/
|
|
121
|
-
dataPointsSelect: EventEmitter<
|
|
120
|
+
dataPointsSelect: EventEmitter<BoxplotDataPointsEvent>;
|
|
122
121
|
/** @internal */
|
|
123
122
|
chartType: ChartType;
|
|
124
123
|
static ɵfac: i0.ɵɵFactoryDeclaration<BoxplotChartComponent, never>;
|
|
@@ -3,7 +3,7 @@ import { type ChartProps as ChartPropsPreact } from '@sisense/sdk-ui-preact';
|
|
|
3
3
|
import { SisenseContextService } from '../../services/sisense-context.service';
|
|
4
4
|
import { ThemeService } from '../../services/theme.service';
|
|
5
5
|
import { ChartEventProps, WithoutPreactChartEventProps } from '../../types/chart-event-props';
|
|
6
|
-
import {
|
|
6
|
+
import { ChartDataPointClickEvent, ChartDataPointContextMenuEvent, ChartDataPointsEvent } from '../../types/data-point';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* Props shared across the {@link ChartComponent}.
|
|
@@ -125,7 +125,6 @@ export declare class ChartComponent implements AfterViewInit, OnChanges, OnDestr
|
|
|
125
125
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.onDataReady}
|
|
126
126
|
*
|
|
127
127
|
* @category Callbacks
|
|
128
|
-
* @internal
|
|
129
128
|
*/
|
|
130
129
|
dataReady: ChartProps['dataReady'];
|
|
131
130
|
/**
|
|
@@ -133,13 +132,13 @@ export declare class ChartComponent implements AfterViewInit, OnChanges, OnDestr
|
|
|
133
132
|
*
|
|
134
133
|
* @category Callbacks
|
|
135
134
|
*/
|
|
136
|
-
dataPointClick: EventEmitter<
|
|
135
|
+
dataPointClick: EventEmitter<ChartDataPointClickEvent>;
|
|
137
136
|
/**
|
|
138
137
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.onDataPointContextMenu}
|
|
139
138
|
*
|
|
140
139
|
* @category Callbacks
|
|
141
140
|
*/
|
|
142
|
-
dataPointContextMenu: EventEmitter<
|
|
141
|
+
dataPointContextMenu: EventEmitter<ChartDataPointContextMenuEvent>;
|
|
143
142
|
/**
|
|
144
143
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.onDataPointsSelected}
|
|
145
144
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type IndicatorChartProps as IndicatorChartPropsPreact } from '@sisense/sdk-ui-preact';
|
|
2
2
|
import { type ChartType } from '../../sdk-ui-core-exports';
|
|
3
|
-
import {
|
|
3
|
+
import { IndicatorChartEventProps, WithoutPreactChartEventProps } from '../../types/chart-event-props';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Props of the {@link IndicatorChartComponent}.
|
|
7
7
|
*/
|
|
8
|
-
export interface IndicatorChartProps extends WithoutPreactChartEventProps<IndicatorChartPropsPreact>,
|
|
8
|
+
export interface IndicatorChartProps extends WithoutPreactChartEventProps<IndicatorChartPropsPreact>, IndicatorChartEventProps {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* A component that provides various options for displaying one or two numeric values as a number, gauge or ticker.
|
|
@@ -106,7 +106,6 @@ export declare class IndicatorChartComponent {
|
|
|
106
106
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.onDataReady}
|
|
107
107
|
*
|
|
108
108
|
* @category Callbacks
|
|
109
|
-
* @internal
|
|
110
109
|
*/
|
|
111
110
|
dataReady: IndicatorChartProps['dataReady'];
|
|
112
111
|
/** @internal */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { type ScatterChartProps as ScatterChartPropsPreact } from '@sisense/sdk-ui-preact';
|
|
3
3
|
import { type ChartType } from '../../sdk-ui-core-exports';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ScatterChartEventProps, WithoutPreactChartEventProps } from '../../types/chart-event-props';
|
|
5
|
+
import { ScatterDataPointEvent, ScatterDataPointsEvent } from '../../types/data-point';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Props of the {@link ScatterChartComponent}.
|
|
9
9
|
*/
|
|
10
|
-
export interface ScatterChartProps extends WithoutPreactChartEventProps<ScatterChartPropsPreact>,
|
|
10
|
+
export interface ScatterChartProps extends WithoutPreactChartEventProps<ScatterChartPropsPreact>, ScatterChartEventProps {
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* A component displaying the distribution of two variables on an X-Axis, Y-Axis,
|
|
@@ -106,7 +106,6 @@ export declare class ScatterChartComponent {
|
|
|
106
106
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.onDataReady}
|
|
107
107
|
*
|
|
108
108
|
* @category Callbacks
|
|
109
|
-
* @internal
|
|
110
109
|
*/
|
|
111
110
|
dataReady: ScatterChartProps['dataReady'];
|
|
112
111
|
/**
|
|
@@ -114,19 +113,19 @@ export declare class ScatterChartComponent {
|
|
|
114
113
|
*
|
|
115
114
|
* @category Callbacks
|
|
116
115
|
*/
|
|
117
|
-
dataPointClick: EventEmitter<
|
|
116
|
+
dataPointClick: EventEmitter<ScatterDataPointEvent>;
|
|
118
117
|
/**
|
|
119
118
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.onDataPointContextMenu}
|
|
120
119
|
*
|
|
121
120
|
* @category Callbacks
|
|
122
121
|
*/
|
|
123
|
-
dataPointContextMenu: EventEmitter<
|
|
122
|
+
dataPointContextMenu: EventEmitter<ScatterDataPointEvent>;
|
|
124
123
|
/**
|
|
125
124
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.onDataPointsSelected}
|
|
126
125
|
*
|
|
127
126
|
* @category Callbacks
|
|
128
127
|
*/
|
|
129
|
-
dataPointsSelect: EventEmitter<
|
|
128
|
+
dataPointsSelect: EventEmitter<ScatterDataPointsEvent>;
|
|
130
129
|
/** @internal */
|
|
131
130
|
chartType: ChartType;
|
|
132
131
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScatterChartComponent, never>;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { type ScattermapChartProps as ScattermapChartPropsPreact } from '@sisense/sdk-ui-preact';
|
|
3
3
|
import { type ChartType } from '../../sdk-ui-core-exports';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ScattermapChartEventProps, WithoutPreactChartEventProps } from '../../types/chart-event-props';
|
|
5
|
+
import { ScattermapDataPointEvent } from '../../types/data-point';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Props of the {@link ScattermapChartComponent}.
|
|
9
9
|
*/
|
|
10
|
-
export interface ScattermapChartProps extends WithoutPreactChartEventProps<ScattermapChartPropsPreact>,
|
|
11
|
-
dataPointClick?: DataPointEventHandler;
|
|
10
|
+
export interface ScattermapChartProps extends WithoutPreactChartEventProps<ScattermapChartPropsPreact>, ScattermapChartEventProps {
|
|
12
11
|
}
|
|
13
12
|
/**
|
|
14
13
|
* An Angular component that allows to visualize geographical data as data points on a map.
|
|
@@ -95,7 +94,6 @@ export declare class ScattermapChartComponent {
|
|
|
95
94
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.onDataReady}
|
|
96
95
|
*
|
|
97
96
|
* @category Callbacks
|
|
98
|
-
* @internal
|
|
99
97
|
*/
|
|
100
98
|
dataReady: ScattermapChartProps['dataReady'];
|
|
101
99
|
/**
|
|
@@ -103,7 +101,7 @@ export declare class ScattermapChartComponent {
|
|
|
103
101
|
*
|
|
104
102
|
* @category Callbacks
|
|
105
103
|
*/
|
|
106
|
-
dataPointClick: EventEmitter<
|
|
104
|
+
dataPointClick: EventEmitter<ScattermapDataPointEvent>;
|
|
107
105
|
/** @internal */
|
|
108
106
|
chartType: ChartType;
|
|
109
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScattermapChartComponent, never>;
|
|
@@ -3,15 +3,20 @@ import { type DashboardProps as DashboardPropsPreact } from '@sisense/sdk-ui-pre
|
|
|
3
3
|
import { SisenseContextService } from '../../services/sisense-context.service';
|
|
4
4
|
import { ThemeService } from '../../services/theme.service';
|
|
5
5
|
import type { DashboardConfig } from '../../types';
|
|
6
|
+
import { WidgetProps } from '../widgets/widget.component';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* Props of the {@link DashboardComponent}.
|
|
9
10
|
*/
|
|
10
|
-
export interface DashboardProps extends DashboardPropsPreact {
|
|
11
|
+
export interface DashboardProps extends Omit<DashboardPropsPreact, 'widgets'> {
|
|
11
12
|
/**
|
|
12
13
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.config}
|
|
13
14
|
*/
|
|
14
15
|
config?: DashboardConfig;
|
|
16
|
+
/**
|
|
17
|
+
* {@inheritDoc @sisense/sdk-ui!DashboardProps.widgets}
|
|
18
|
+
*/
|
|
19
|
+
widgets: WidgetProps[];
|
|
15
20
|
}
|
|
16
21
|
/**
|
|
17
22
|
* An Angular component used for easily rendering a dashboard created in Sisense Fusion.
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { type FilterTileProps as FilterTilePropsPreact } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import { SisenseContextService } from '../../services/sisense-context.service';
|
|
4
|
+
import { ThemeService } from '../../services/theme.service';
|
|
5
|
+
import type { BaseFilterTileEventProps, FilterChangeEvent, FilterEditEvent } from '../../types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Props of the {@link FilterTileComponent}.
|
|
9
|
+
*/
|
|
10
|
+
export interface FilterTileProps extends Omit<FilterTilePropsPreact, 'onChange' | 'onEdit' | 'onDelete'>, BaseFilterTileEventProps {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* UI component that renders a filter tile based on filter type
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* Here’s how to render a filter model as a filter tile.
|
|
17
|
+
*
|
|
18
|
+
* ```html
|
|
19
|
+
<!--Component HTML template in example.component.html-->
|
|
20
|
+
<csdk-filter-tile
|
|
21
|
+
[filter]="filterTileProps.filter"
|
|
22
|
+
(filterChange)="filterTileProps.filterChange($event)"
|
|
23
|
+
/>
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ```ts
|
|
27
|
+
// Component behavior in example.component.ts
|
|
28
|
+
import { Component } from '@angular/core';
|
|
29
|
+
import { type FilterTileProps } from '@sisense/sdk-ui-angular';
|
|
30
|
+
import { filterFactory } from '@sisense/sdk-data';
|
|
31
|
+
import * as DM from '../../assets/sample-healthcare-model';
|
|
32
|
+
|
|
33
|
+
@Component({
|
|
34
|
+
selector: 'example',
|
|
35
|
+
templateUrl: './example.component.html',
|
|
36
|
+
styleUrls: ['./example.component.scss'],
|
|
37
|
+
})
|
|
38
|
+
export class ExampleComponent {
|
|
39
|
+
filterTileProps: FilterTileProps = {
|
|
40
|
+
filter: filterFactory.members(DM.ER.Date.Years, ['2013-01-01T00:00:00']),
|
|
41
|
+
filterChange({ filter }) {
|
|
42
|
+
if (filter) {
|
|
43
|
+
this.filter = filter;
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
* ```
|
|
49
|
+
* <img src="media://angular-member-filter-tile-example.png" width="225px" />
|
|
50
|
+
* @group Filter Tiles
|
|
51
|
+
* @shortDescription Facade component rendering a filter tile based on filter type
|
|
52
|
+
*/
|
|
53
|
+
export declare class FilterTileComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
54
|
+
/**
|
|
55
|
+
* Sisense context service
|
|
56
|
+
*
|
|
57
|
+
* @category Constructor
|
|
58
|
+
*/
|
|
59
|
+
sisenseContextService: SisenseContextService;
|
|
60
|
+
/**
|
|
61
|
+
* Theme service
|
|
62
|
+
*
|
|
63
|
+
* @category Constructor
|
|
64
|
+
*/
|
|
65
|
+
themeService: ThemeService;
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
preactRef: ElementRef<HTMLDivElement>;
|
|
70
|
+
/**
|
|
71
|
+
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.filter}
|
|
72
|
+
*/
|
|
73
|
+
filter: FilterTileProps['filter'];
|
|
74
|
+
/**
|
|
75
|
+
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.defaultDataSource}
|
|
76
|
+
*/
|
|
77
|
+
defaultDataSource: FilterTileProps['defaultDataSource'];
|
|
78
|
+
/**
|
|
79
|
+
* {@inheritDoc FilterTileProps.filterChange}
|
|
80
|
+
*/
|
|
81
|
+
filterChange: EventEmitter<FilterChangeEvent>;
|
|
82
|
+
/**
|
|
83
|
+
* {@inheritDoc FilterTileProps.filterEdit}
|
|
84
|
+
*/
|
|
85
|
+
filterEdit: EventEmitter<FilterEditEvent>;
|
|
86
|
+
/**
|
|
87
|
+
* {@inheritDoc FilterTileProps.filterDelete}
|
|
88
|
+
*/
|
|
89
|
+
filterDelete: EventEmitter<void>;
|
|
90
|
+
private componentAdapter;
|
|
91
|
+
/**
|
|
92
|
+
* Constructor for the `FilterTileComponent`.
|
|
93
|
+
*
|
|
94
|
+
* @param sisenseContextService - Sisense context service
|
|
95
|
+
* @param themeService - Theme service
|
|
96
|
+
*/
|
|
97
|
+
constructor(
|
|
98
|
+
/**
|
|
99
|
+
* Sisense context service
|
|
100
|
+
*
|
|
101
|
+
* @category Constructor
|
|
102
|
+
*/
|
|
103
|
+
sisenseContextService: SisenseContextService,
|
|
104
|
+
/**
|
|
105
|
+
* Theme service
|
|
106
|
+
*
|
|
107
|
+
* @category Constructor
|
|
108
|
+
*/
|
|
109
|
+
themeService: ThemeService);
|
|
110
|
+
/**
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
ngAfterViewInit(): void;
|
|
114
|
+
/**
|
|
115
|
+
* @internal
|
|
116
|
+
*/
|
|
117
|
+
ngOnChanges(): void;
|
|
118
|
+
private getPreactComponentProps;
|
|
119
|
+
/**
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
ngOnDestroy(): void;
|
|
123
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterTileComponent, never>;
|
|
124
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterTileComponent, "csdk-filter-tile", never, { "filter": "filter"; "defaultDataSource": "defaultDataSource"; }, { "filterChange": "filterChange"; "filterEdit": "filterEdit"; "filterDelete": "filterDelete"; }, never, never, false, never>;
|
|
125
|
+
}
|
|
@@ -44,7 +44,7 @@ export interface MemberFilterTileProps extends Omit<MemberFilterTilePropsPreact,
|
|
|
44
44
|
* };
|
|
45
45
|
* }
|
|
46
46
|
* ```
|
|
47
|
-
* <img src="media://angular-member-filter-tile-example.png" width="
|
|
47
|
+
* <img src="media://angular-member-filter-tile-example.png" width="225px" />
|
|
48
48
|
* @group Filter Tiles
|
|
49
49
|
*/
|
|
50
50
|
export declare class MemberFilterTileComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
@@ -3,7 +3,7 @@ import { type ChartWidgetProps as ChartWidgetPropsPreact } from '@sisense/sdk-ui
|
|
|
3
3
|
import { SisenseContextService } from '../../services/sisense-context.service';
|
|
4
4
|
import { ThemeService } from '../../services/theme.service';
|
|
5
5
|
import { ChartEventProps, WithoutPreactChartEventProps } from '../../types/chart-event-props';
|
|
6
|
-
import {
|
|
6
|
+
import { ChartDataPointClickEvent, ChartDataPointContextMenuEvent, ChartDataPointsEvent } from '../../types/data-point';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* Props of the {@link ChartWidgetComponent}.
|
|
@@ -64,7 +64,7 @@ export interface ChartWidgetProps extends WithoutPreactChartEventProps<ChartWidg
|
|
|
64
64
|
*
|
|
65
65
|
* }
|
|
66
66
|
* ```
|
|
67
|
-
* <img src="media://angular-chart-widget-example.png" width="
|
|
67
|
+
* <img src="media://angular-chart-widget-example.png" width="500px" />
|
|
68
68
|
* @group Dashboards
|
|
69
69
|
*/
|
|
70
70
|
export declare class ChartWidgetComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
@@ -143,7 +143,6 @@ export declare class ChartWidgetComponent implements AfterViewInit, OnChanges, O
|
|
|
143
143
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.onDataReady}
|
|
144
144
|
*
|
|
145
145
|
* @category Callbacks
|
|
146
|
-
* @internal
|
|
147
146
|
*/
|
|
148
147
|
dataReady: ChartWidgetProps['dataReady'];
|
|
149
148
|
/**
|
|
@@ -151,13 +150,13 @@ export declare class ChartWidgetComponent implements AfterViewInit, OnChanges, O
|
|
|
151
150
|
*
|
|
152
151
|
* @category Callbacks
|
|
153
152
|
*/
|
|
154
|
-
dataPointClick: EventEmitter<
|
|
153
|
+
dataPointClick: EventEmitter<ChartDataPointClickEvent>;
|
|
155
154
|
/**
|
|
156
155
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.onDataPointContextMenu}
|
|
157
156
|
*
|
|
158
157
|
* @category Callbacks
|
|
159
158
|
*/
|
|
160
|
-
dataPointContextMenu: EventEmitter<
|
|
159
|
+
dataPointContextMenu: EventEmitter<ChartDataPointContextMenuEvent>;
|
|
161
160
|
/**
|
|
162
161
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.onDataPointsSelected}
|
|
163
162
|
*
|
|
@@ -97,13 +97,6 @@ export declare class DrilldownWidgetComponent implements AfterViewInit, OnChange
|
|
|
97
97
|
* @internal
|
|
98
98
|
*/
|
|
99
99
|
preactContentRef: ElementRef<HTMLDivElement>;
|
|
100
|
-
/**
|
|
101
|
-
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.drilldownDimensions}
|
|
102
|
-
*
|
|
103
|
-
* @category Widget
|
|
104
|
-
* @deprecated Use {@link drilldownPaths} instead
|
|
105
|
-
*/
|
|
106
|
-
drilldownDimensions: DrilldownWidgetProps['drilldownDimensions'];
|
|
107
100
|
/**
|
|
108
101
|
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.drilldownPaths}
|
|
109
102
|
*
|
|
@@ -165,5 +158,5 @@ export declare class DrilldownWidgetComponent implements AfterViewInit, OnChange
|
|
|
165
158
|
*/
|
|
166
159
|
ngOnDestroy(): void;
|
|
167
160
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrilldownWidgetComponent, never>;
|
|
168
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DrilldownWidgetComponent, "csdk-drilldown-widget", never, { "
|
|
161
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrilldownWidgetComponent, "csdk-drilldown-widget", never, { "drilldownPaths": "drilldownPaths"; "initialDimension": "initialDimension"; "config": "config"; }, { "drilldownResultChange": "drilldownResultChange"; }, never, ["*"], false, never>;
|
|
169
162
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './chart-widget.component';
|
|
2
|
-
export * from './dashboard-widget.component';
|
|
3
2
|
export * from './drilldown-widget.component';
|
|
4
3
|
export * from './pivot-table-widget.component';
|
|
5
4
|
export * from './table-widget.component';
|
|
5
|
+
export * from './widget.component';
|
|
6
6
|
export * from './widget-by-id.component';
|
|
@@ -111,7 +111,6 @@ export declare class WidgetByIdComponent implements AfterViewInit, OnChanges, On
|
|
|
111
111
|
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.onDataReady}
|
|
112
112
|
*
|
|
113
113
|
* @category Callbacks
|
|
114
|
-
* @internal
|
|
115
114
|
*/
|
|
116
115
|
dataReady: WidgetByIdProps['dataReady'];
|
|
117
116
|
private componentAdapter;
|