@sisense/sdk-ui-angular 1.5.0 → 1.7.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 +13 -1
- package/dist/esm2020/lib/components/charts/area-chart.component.mjs +137 -0
- package/dist/esm2020/lib/components/charts/areamap-chart.component.mjs +100 -0
- package/dist/esm2020/lib/components/charts/bar-chart.component.mjs +136 -0
- package/dist/esm2020/lib/components/charts/boxplot-chart.component.mjs +129 -0
- package/dist/esm2020/lib/components/charts/chart.component.mjs +171 -0
- package/dist/esm2020/lib/components/charts/column-chart.component.mjs +137 -0
- package/dist/esm2020/lib/components/charts/funnel-chart.component.mjs +135 -0
- package/dist/esm2020/lib/components/charts/index.mjs +18 -0
- package/dist/esm2020/lib/components/charts/indicator-chart.component.mjs +107 -0
- package/dist/esm2020/lib/components/charts/line-chart.component.mjs +135 -0
- package/dist/esm2020/lib/components/charts/pie-chart.component.mjs +137 -0
- package/dist/esm2020/lib/components/charts/pivot-table.component.mjs +116 -0
- package/dist/esm2020/lib/components/charts/polar-chart.component.mjs +136 -0
- package/dist/esm2020/lib/components/charts/scatter-chart.component.mjs +140 -0
- package/dist/esm2020/lib/components/charts/scattermap-chart.component.mjs +108 -0
- package/dist/esm2020/lib/components/charts/sunburst-chart.component.mjs +137 -0
- package/dist/esm2020/lib/components/charts/table.component.mjs +94 -0
- package/dist/esm2020/lib/components/{treemap-chart.component.mjs → charts/treemap-chart.component.mjs} +52 -1
- package/dist/esm2020/lib/components/context-menu.component.mjs +3 -1
- package/dist/esm2020/lib/components/drilldown-breadcrumbs.component.mjs +3 -1
- package/dist/esm2020/lib/components/filters/basic-member-filter-tile.component.mjs +62 -0
- package/dist/esm2020/lib/components/filters/date-range-filter-tile.component.mjs +141 -0
- package/dist/esm2020/lib/components/filters/index.mjs +4 -0
- package/dist/esm2020/lib/components/filters/member-filter-tile.component.mjs +131 -0
- package/dist/esm2020/lib/components/index.mjs +4 -25
- package/dist/esm2020/lib/components/widgets/chart-widget.component.mjs +167 -0
- package/dist/esm2020/lib/components/widgets/dashboard-widget.component.mjs +116 -0
- package/dist/esm2020/lib/components/widgets/drilldown-widget.component.mjs +174 -0
- package/dist/esm2020/lib/components/widgets/index.mjs +5 -0
- package/dist/esm2020/lib/components/widgets/table-widget.component.mjs +104 -0
- package/dist/esm2020/lib/sdk-ui.module.mjs +3 -1
- package/dist/esm2020/lib/services/dashboard.service.mjs +7 -1
- package/dist/esm2020/lib/services/query.service.mjs +7 -2
- package/dist/esm2020/lib/services/sisense-context.service.mjs +7 -1
- package/dist/esm2020/lib/services/theme.service.mjs +7 -1
- package/dist/esm2020/public-api.mjs +9 -2
- package/dist/esm2020/version.mjs +2 -2
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs +1723 -709
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +1724 -710
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/lib/component-wrapper-helpers/context-connectors.d.ts +12 -0
- package/dist/lib/components/{area-chart.component.d.ts → charts/area-chart.component.d.ts} +53 -2
- package/dist/lib/components/{areamap-chart.component.d.ts → charts/areamap-chart.component.d.ts} +40 -1
- package/dist/lib/components/{bar-chart.component.d.ts → charts/bar-chart.component.d.ts} +52 -2
- package/dist/lib/components/{boxplot-chart.component.d.ts → charts/boxplot-chart.component.d.ts} +45 -2
- package/dist/lib/components/{chart.component.d.ts → charts/chart.component.d.ts} +6 -4
- package/dist/lib/components/{column-chart.component.d.ts → charts/column-chart.component.d.ts} +53 -2
- package/dist/lib/components/{funnel-chart.component.d.ts → charts/funnel-chart.component.d.ts} +52 -2
- package/dist/lib/components/charts/index.d.ts +17 -0
- package/dist/lib/components/{indicator-chart.component.d.ts → charts/indicator-chart.component.d.ts} +57 -1
- package/dist/lib/components/{line-chart.component.d.ts → charts/line-chart.component.d.ts} +52 -2
- package/dist/lib/components/{pie-chart.component.d.ts → charts/pie-chart.component.d.ts} +53 -2
- package/dist/lib/components/{pivot-table.component.d.ts → charts/pivot-table.component.d.ts} +53 -2
- package/dist/lib/components/{polar-chart.component.d.ts → charts/polar-chart.component.d.ts} +53 -2
- package/dist/lib/components/{scatter-chart.component.d.ts → charts/scatter-chart.component.d.ts} +50 -2
- package/dist/lib/components/{scattermap-chart.component.d.ts → charts/scattermap-chart.component.d.ts} +49 -2
- package/dist/lib/components/{sunburst-chart.component.d.ts → charts/sunburst-chart.component.d.ts} +53 -2
- package/dist/lib/components/{table.component.d.ts → charts/table.component.d.ts} +32 -2
- package/dist/lib/components/{treemap-chart.component.d.ts → charts/treemap-chart.component.d.ts} +53 -2
- package/dist/lib/components/context-menu.component.d.ts +2 -0
- package/dist/lib/components/drilldown-breadcrumbs.component.d.ts +2 -0
- package/dist/lib/components/{date-range-filter-tile.component.d.ts → filters/date-range-filter-tile.component.d.ts} +43 -3
- package/dist/lib/components/filters/index.d.ts +3 -0
- package/dist/lib/components/{member-filter-tile.component.d.ts → filters/member-filter-tile.component.d.ts} +39 -3
- package/dist/lib/components/index.d.ts +3 -24
- package/dist/lib/components/{chart-widget.component.d.ts → widgets/chart-widget.component.d.ts} +58 -3
- package/dist/lib/components/{dashboard-widget.component.d.ts → widgets/dashboard-widget.component.d.ts} +27 -2
- package/dist/lib/components/{drilldown-widget.component.d.ts → widgets/drilldown-widget.component.d.ts} +5 -2
- package/dist/lib/components/widgets/index.d.ts +4 -0
- package/dist/lib/components/{table-widget.component.d.ts → widgets/table-widget.component.d.ts} +37 -2
- package/dist/lib/sdk-ui.module.d.ts +26 -24
- package/dist/lib/services/dashboard.service.d.ts +6 -0
- package/dist/lib/services/query.service.d.ts +6 -1
- package/dist/lib/services/sisense-context.service.d.ts +6 -0
- package/dist/lib/services/theme.service.d.ts +6 -0
- package/dist/package.json +1 -1
- package/dist/public-api.d.ts +8 -1
- package/dist/version.d.ts +1 -1
- package/package.json +4 -4
- package/dist/esm2020/lib/components/area-chart.component.mjs +0 -86
- package/dist/esm2020/lib/components/areamap-chart.component.mjs +0 -61
- package/dist/esm2020/lib/components/bar-chart.component.mjs +0 -86
- package/dist/esm2020/lib/components/basic-member-filter-tile.component.mjs +0 -62
- package/dist/esm2020/lib/components/boxplot-chart.component.mjs +0 -86
- package/dist/esm2020/lib/components/chart-widget.component.mjs +0 -112
- package/dist/esm2020/lib/components/chart.component.mjs +0 -169
- package/dist/esm2020/lib/components/column-chart.component.mjs +0 -86
- package/dist/esm2020/lib/components/dashboard-widget.component.mjs +0 -91
- package/dist/esm2020/lib/components/date-range-filter-tile.component.mjs +0 -101
- package/dist/esm2020/lib/components/drilldown-widget.component.mjs +0 -171
- package/dist/esm2020/lib/components/funnel-chart.component.mjs +0 -85
- package/dist/esm2020/lib/components/indicator-chart.component.mjs +0 -51
- package/dist/esm2020/lib/components/line-chart.component.mjs +0 -85
- package/dist/esm2020/lib/components/member-filter-tile.component.mjs +0 -95
- package/dist/esm2020/lib/components/pie-chart.component.mjs +0 -86
- package/dist/esm2020/lib/components/pivot-table.component.mjs +0 -65
- package/dist/esm2020/lib/components/polar-chart.component.mjs +0 -85
- package/dist/esm2020/lib/components/scatter-chart.component.mjs +0 -92
- package/dist/esm2020/lib/components/scattermap-chart.component.mjs +0 -61
- package/dist/esm2020/lib/components/sunburst-chart.component.mjs +0 -86
- package/dist/esm2020/lib/components/table-widget.component.mjs +0 -69
- package/dist/esm2020/lib/components/table.component.mjs +0 -64
- /package/dist/lib/components/{basic-member-filter-tile.component.d.ts → filters/basic-member-filter-tile.component.d.ts} +0 -0
package/dist/lib/components/{pivot-table.component.d.ts → charts/pivot-table.component.d.ts}
RENAMED
|
@@ -1,11 +1,62 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, OnChanges, OnDestroy } from '@angular/core';
|
|
2
2
|
import { type PivotTableProps } from '@sisense/sdk-ui-preact';
|
|
3
|
-
import { SisenseContextService } from '
|
|
4
|
-
import { ThemeService } from '
|
|
3
|
+
import { SisenseContextService } from '../../services';
|
|
4
|
+
import { ThemeService } from '../../services';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* Pivot Table with and pagination.
|
|
8
8
|
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```html
|
|
11
|
+
* <csdk-pivot-table
|
|
12
|
+
* [dataSet]="pivotTable.dataSet"
|
|
13
|
+
* [dataOptions]="pivotTable.dataOptions"
|
|
14
|
+
* [filters]="pivotTable.filters"
|
|
15
|
+
* [styleOptions]="pivotTable.styleOptions"
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
* ```ts
|
|
19
|
+
import { Component } from '@angular/core';
|
|
20
|
+
import { measureFactory, filterFactory } from '@sisense/sdk-data';
|
|
21
|
+
import * as DM from '../../assets/sample-ecommerce';
|
|
22
|
+
import type { PivotTableDataOptions } from '@sisense/sdk-ui-angular';
|
|
23
|
+
|
|
24
|
+
@Component({
|
|
25
|
+
selector: 'app-analytics',
|
|
26
|
+
templateUrl: './analytics.component.html',
|
|
27
|
+
styleUrls: ['./analytics.component.scss'],
|
|
28
|
+
})
|
|
29
|
+
export class AnalyticsComponent {
|
|
30
|
+
|
|
31
|
+
pivotTableDataOptions: PivotTableDataOptions = {
|
|
32
|
+
rows: [
|
|
33
|
+
{ column: DM.Category.Category, includeSubTotals: true },
|
|
34
|
+
{ column: DM.Commerce.AgeRange, includeSubTotals: true },
|
|
35
|
+
DM.Commerce.Condition,
|
|
36
|
+
],
|
|
37
|
+
columns: [{ column: DM.Commerce.Gender, includeSubTotals: true }],
|
|
38
|
+
values: [
|
|
39
|
+
measureFactory.sum(DM.Commerce.Cost, 'Total Cost'),
|
|
40
|
+
{
|
|
41
|
+
column: measureFactory.sum(DM.Commerce.Revenue, 'Total Revenue'),
|
|
42
|
+
totalsCalculation: 'sum',
|
|
43
|
+
dataBars: true,
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
grandTotals: { title: 'Grand Total', rows: true, columns: true },
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
pivotTable = {
|
|
50
|
+
dataSet: DM.DataSource,
|
|
51
|
+
dataOptions: this.pivotTableDataOptions,
|
|
52
|
+
filters: [filterFactory.members(DM.Commerce.Gender, ['Female', 'Male'])],
|
|
53
|
+
styleOptions: { width: 1400, height: 600, rowsPerPage: 50 },
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
}
|
|
57
|
+
* ```
|
|
58
|
+
* <img src="media://angular-pivot-table-example.png" width="800px" />
|
|
59
|
+
* @group Data Grids
|
|
9
60
|
* @alpha
|
|
10
61
|
*/
|
|
11
62
|
export declare class PivotTableComponent implements AfterViewInit, OnChanges, OnDestroy {
|
package/dist/lib/components/{polar-chart.component.d.ts → charts/polar-chart.component.d.ts}
RENAMED
|
@@ -1,11 +1,62 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { type ChartType } from '
|
|
2
|
+
import { type ChartType } from '../../sdk-ui-core-exports';
|
|
3
3
|
import { type PolarChartProps } from '@sisense/sdk-ui-preact';
|
|
4
|
-
import { type ArgumentsAsObject } from '
|
|
4
|
+
import { type ArgumentsAsObject } from '../../types/utility-types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* A component comparing multiple categories/variables with a spacial perspective in a radial chart.
|
|
8
8
|
* See [Polar Chart](https://docs.sisense.com/main/SisenseLinux/polar-chart.htm) for more information.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```html
|
|
12
|
+
* <csdk-polar-chart
|
|
13
|
+
* [dataSet]="chart.dataSet"
|
|
14
|
+
* [dataOptions]="chart.dataOptions"
|
|
15
|
+
* [highlights]="filters"
|
|
16
|
+
* [beforeRender]="onBeforeRender"
|
|
17
|
+
* (dataPointClick)="logArguments($event)"
|
|
18
|
+
* (dataPointContextMenu)="logArguments($event)"
|
|
19
|
+
* (dataPointsSelect)="logArguments($event)"
|
|
20
|
+
* />
|
|
21
|
+
* ```
|
|
22
|
+
* ```ts
|
|
23
|
+
import { Component } from '@angular/core';
|
|
24
|
+
import { measureFactory, filterFactory } from '@sisense/sdk-data';
|
|
25
|
+
import * as DM from '../../assets/sample-healthcare-model';
|
|
26
|
+
import type { ChartType } from '@sisense/sdk-ui-angular';
|
|
27
|
+
|
|
28
|
+
@Component({
|
|
29
|
+
selector: 'app-analytics',
|
|
30
|
+
templateUrl: './analytics.component.html',
|
|
31
|
+
styleUrls: ['./analytics.component.scss'],
|
|
32
|
+
})
|
|
33
|
+
export class AnalyticsComponent {
|
|
34
|
+
DM = DM;
|
|
35
|
+
filters = [filterFactory.members(DM.Divisions.Divison_name, ['Cardiology', 'Neurology'])];
|
|
36
|
+
chart = {
|
|
37
|
+
chartType: 'column' as ChartType,
|
|
38
|
+
dataSet: DM.DataSource,
|
|
39
|
+
dataOptions: {
|
|
40
|
+
category: [DM.Divisions.Divison_name],
|
|
41
|
+
value: [measureFactory.sum(DM.Admissions.Cost_of_admission)],
|
|
42
|
+
breakBy: [],
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
onBeforeRender(options: any) {
|
|
47
|
+
console.log('beforeRender');
|
|
48
|
+
console.log(options);
|
|
49
|
+
return options;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
logArguments(...args: any[]) {
|
|
53
|
+
console.log(args);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
* ```
|
|
57
|
+
* <img src="media://angular-polar-chart-example.png" width="800px" />
|
|
58
|
+
*
|
|
59
|
+
* @group Charts
|
|
9
60
|
*/
|
|
10
61
|
export declare class PolarChartComponent {
|
|
11
62
|
/**
|
package/dist/lib/components/{scatter-chart.component.d.ts → charts/scatter-chart.component.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { type ChartType } from '
|
|
2
|
+
import { type ChartType } from '../../sdk-ui-core-exports';
|
|
3
3
|
import { type ScatterChartProps } from '@sisense/sdk-ui-preact';
|
|
4
|
-
import { type ArgumentsAsObject } from '
|
|
4
|
+
import { type ArgumentsAsObject } from '../../types/utility-types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* A component displaying the distribution of two variables on an X-Axis, Y-Axis,
|
|
@@ -13,6 +13,54 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
* If omitted, all scatter points are equal in size. If used, the circle sizes are relative to their values.
|
|
14
14
|
*
|
|
15
15
|
* See [Scatter Chart](https://docs.sisense.com/main/SisenseLinux/scatter-chart.htm) for more information.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```html
|
|
19
|
+
* <csdk-scatter-chart
|
|
20
|
+
* [dataSet]="scatter.dataSet"
|
|
21
|
+
* [dataOptions]="scatter.dataOptions"
|
|
22
|
+
* [highlights]="filters"
|
|
23
|
+
* [beforeRender]="onBeforeRender"
|
|
24
|
+
* (dataPointClick)="logArguments($event)"
|
|
25
|
+
* (dataPointContextMenu)="logArguments($event)"
|
|
26
|
+
* (dataPointsSelect)="logArguments($event)"
|
|
27
|
+
* />
|
|
28
|
+
* ```
|
|
29
|
+
* ```ts
|
|
30
|
+
import { Component } from '@angular/core';
|
|
31
|
+
import { measureFactory, filterFactory } from '@sisense/sdk-data';
|
|
32
|
+
import * as DM from '../../assets/sample-healthcare-model';
|
|
33
|
+
|
|
34
|
+
@Component({
|
|
35
|
+
selector: 'app-analytics',
|
|
36
|
+
templateUrl: './analytics.component.html',
|
|
37
|
+
styleUrls: ['./analytics.component.scss'],
|
|
38
|
+
})
|
|
39
|
+
export class AnalyticsComponent {
|
|
40
|
+
DM = DM;
|
|
41
|
+
filters = [filterFactory.members(DM.Divisions.Divison_name, ['Cardiology', 'Neurology'])];
|
|
42
|
+
scatter = {
|
|
43
|
+
dataSet: DM.DataSource,
|
|
44
|
+
dataOptions: {
|
|
45
|
+
x: DM.Admissions.Room_ID,
|
|
46
|
+
y: measureFactory.sum(DM.Admissions.Cost_of_admission),
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
onBeforeRender(options: any) {
|
|
51
|
+
console.log('beforeRender');
|
|
52
|
+
console.log(options);
|
|
53
|
+
return options;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
logArguments(...args: any[]) {
|
|
57
|
+
console.log(args);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
* ```
|
|
61
|
+
* <img src="media://angular-scatter-chart-example.png" width="800px" />
|
|
62
|
+
*
|
|
63
|
+
* @group Charts
|
|
16
64
|
*/
|
|
17
65
|
export declare class ScatterChartComponent {
|
|
18
66
|
/**
|
|
@@ -1,11 +1,58 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { type ChartType } from '
|
|
2
|
+
import { type ChartType } from '../../sdk-ui-core-exports';
|
|
3
3
|
import { type ScattermapChartProps } from '@sisense/sdk-ui-preact';
|
|
4
|
-
import { ArgumentsAsObject } from '
|
|
4
|
+
import { ArgumentsAsObject } from '../../types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* An Angular component that allows to visualize geographical data as data points on a map.
|
|
8
8
|
* See [Scattermap Chart](https://docs.sisense.com/main/SisenseLinux/scatter-map.htm) for more information.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```html
|
|
12
|
+
* <csdk-scattermap-chart
|
|
13
|
+
* [dataSet]="scattermapChart.dataSet"
|
|
14
|
+
* [dataOptions]="scattermapChart.dataOptions"
|
|
15
|
+
* [styleOptions]="scattermapChart.styleOptions"
|
|
16
|
+
* (dataPointClick)="logArguments($event)"
|
|
17
|
+
* />
|
|
18
|
+
* ```
|
|
19
|
+
* ```ts
|
|
20
|
+
import { Component } from '@angular/core';
|
|
21
|
+
import { measureFactory, filterFactory } from '@sisense/sdk-data';
|
|
22
|
+
import type { ScattermapStyleOptions,ScattermapChartDataOptions } from '@sisense/sdk-ui-angular';
|
|
23
|
+
import * as DM from '../../assets/sample-ecommerce';
|
|
24
|
+
|
|
25
|
+
@Component({
|
|
26
|
+
selector: 'app-analytics',
|
|
27
|
+
templateUrl: './analytics.component.html',
|
|
28
|
+
styleUrls: ['./analytics.component.scss'],
|
|
29
|
+
})
|
|
30
|
+
export class AnalyticsComponent {
|
|
31
|
+
scattermapChart = {
|
|
32
|
+
dataSet: DM.DataSource,
|
|
33
|
+
dataOptions: {
|
|
34
|
+
geo: [DM.Country.Country],
|
|
35
|
+
size: measureFactory.sum(DM.Commerce.Cost, 'Size by Cost'),
|
|
36
|
+
colorBy: {
|
|
37
|
+
column: measureFactory.sum(DM.Commerce.Revenue, 'Color by Revenue'),
|
|
38
|
+
color: 'green',
|
|
39
|
+
},
|
|
40
|
+
details: DM.Category.Category,
|
|
41
|
+
} as ScattermapChartDataOptions,
|
|
42
|
+
styleOptions: {
|
|
43
|
+
markers: {
|
|
44
|
+
fill: 'hollow-bold',
|
|
45
|
+
},
|
|
46
|
+
} as ScattermapStyleOptions,
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
logArguments(...args: any[]) {
|
|
50
|
+
console.log(args);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
* ```
|
|
54
|
+
* <img src="media://angular-scattermap-chart-example.png" width="800px" />
|
|
55
|
+
* @group Charts
|
|
9
56
|
*/
|
|
10
57
|
export declare class ScattermapChartComponent {
|
|
11
58
|
/**
|
package/dist/lib/components/{sunburst-chart.component.d.ts → charts/sunburst-chart.component.d.ts}
RENAMED
|
@@ -1,12 +1,63 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { type ChartType } from '
|
|
2
|
+
import { type ChartType } from '../../sdk-ui-core-exports';
|
|
3
3
|
import { type SunburstChartProps } from '@sisense/sdk-ui-preact';
|
|
4
|
-
import { type ArgumentsAsObject } from '
|
|
4
|
+
import { type ArgumentsAsObject } from '../../types/utility-types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* A component displaying hierarchical data in the form of nested slices.
|
|
8
8
|
* This type of chart can be used instead of a pie chart for comparing a large number of categories and sub-categories.
|
|
9
9
|
* See [Sunburst Chart](https://docs.sisense.com/main/SisenseLinux/sunburst-widget.htm) for more information.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <csdk-sunburst-chart
|
|
14
|
+
* [dataSet]="chart.dataSet"
|
|
15
|
+
* [dataOptions]="chart.dataOptions"
|
|
16
|
+
* [highlights]="filters"
|
|
17
|
+
* [beforeRender]="onBeforeRender"
|
|
18
|
+
* (dataPointClick)="logArguments($event)"
|
|
19
|
+
* (dataPointContextMenu)="logArguments($event)"
|
|
20
|
+
* (dataPointsSelect)="logArguments($event)"
|
|
21
|
+
* />
|
|
22
|
+
* ```
|
|
23
|
+
* ```ts
|
|
24
|
+
import { Component } from '@angular/core';
|
|
25
|
+
import { measureFactory, filterFactory } from '@sisense/sdk-data';
|
|
26
|
+
import * as DM from '../../assets/sample-healthcare-model';
|
|
27
|
+
import type { ChartType } from '@sisense/sdk-ui-angular';
|
|
28
|
+
|
|
29
|
+
@Component({
|
|
30
|
+
selector: 'app-analytics',
|
|
31
|
+
templateUrl: './analytics.component.html',
|
|
32
|
+
styleUrls: ['./analytics.component.scss'],
|
|
33
|
+
})
|
|
34
|
+
export class AnalyticsComponent {
|
|
35
|
+
DM = DM;
|
|
36
|
+
filters = [filterFactory.members(DM.Divisions.Divison_name, ['Cardiology', 'Neurology'])];
|
|
37
|
+
chart = {
|
|
38
|
+
chartType: 'column' as ChartType,
|
|
39
|
+
dataSet: DM.DataSource,
|
|
40
|
+
dataOptions: {
|
|
41
|
+
category: [DM.Divisions.Divison_name],
|
|
42
|
+
value: [measureFactory.sum(DM.Admissions.Cost_of_admission)],
|
|
43
|
+
breakBy: [],
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
onBeforeRender(options: any) {
|
|
48
|
+
console.log('beforeRender');
|
|
49
|
+
console.log(options);
|
|
50
|
+
return options;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
logArguments(...args: any[]) {
|
|
54
|
+
console.log(args);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
* ```
|
|
58
|
+
* <img src="media://angular-sunburst-chart-example.png" width="800px" />
|
|
59
|
+
*
|
|
60
|
+
* @group Charts
|
|
10
61
|
*/
|
|
11
62
|
export declare class SunburstChartComponent {
|
|
12
63
|
/**
|
|
@@ -1,10 +1,40 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, OnChanges, OnDestroy } from '@angular/core';
|
|
2
2
|
import { type TableProps } from '@sisense/sdk-ui-preact';
|
|
3
|
-
import { SisenseContextService } from '
|
|
4
|
-
import { ThemeService } from '
|
|
3
|
+
import { SisenseContextService } from '../../services/sisense-context.service';
|
|
4
|
+
import { ThemeService } from '../../services/theme.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* Table with aggregation and pagination.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```html
|
|
11
|
+
* <csdk-table [dataSet]="table.dataSet" [dataOptions]="table.dataOptions" [filters]="filters" />
|
|
12
|
+
* ```
|
|
13
|
+
* ```ts
|
|
14
|
+
import { Component } from '@angular/core';
|
|
15
|
+
import { measureFactory, filterFactory } from '@sisense/sdk-data';
|
|
16
|
+
import * as DM from '../../assets/sample-healthcare-model';
|
|
17
|
+
|
|
18
|
+
@Component({
|
|
19
|
+
selector: 'app-analytics',
|
|
20
|
+
templateUrl: './analytics.component.html',
|
|
21
|
+
styleUrls: ['./analytics.component.scss'],
|
|
22
|
+
})
|
|
23
|
+
export class AnalyticsComponent {
|
|
24
|
+
DM = DM;
|
|
25
|
+
filters = [filterFactory.members(DM.Divisions.Divison_name, ['Cardiology', 'Neurology'])];
|
|
26
|
+
table = {
|
|
27
|
+
dataSet: DM.DataSource,
|
|
28
|
+
dataOptions: {
|
|
29
|
+
columns: [DM.Admissions.Patient_ID, measureFactory.sum(DM.Admissions.Cost_of_admission)],
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
* ```
|
|
35
|
+
* <img src="media://angular-table-chart-example.png" width="800px" />
|
|
36
|
+
*
|
|
37
|
+
* @group Data Grids
|
|
8
38
|
*/
|
|
9
39
|
export declare class TableComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
10
40
|
private sisenseContextService;
|
package/dist/lib/components/{treemap-chart.component.d.ts → charts/treemap-chart.component.d.ts}
RENAMED
|
@@ -1,12 +1,63 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { type ChartType } from '
|
|
2
|
+
import { type ChartType } from '../../sdk-ui-core-exports';
|
|
3
3
|
import { type TreemapChartProps } from '@sisense/sdk-ui-preact';
|
|
4
|
-
import { type ArgumentsAsObject } from '
|
|
4
|
+
import { type ArgumentsAsObject } from '../../types/utility-types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* A component displaying hierarchical data in the form of nested rectangles.
|
|
8
8
|
* This type of chart can be used instead of a column chart for comparing a large number of categories and sub-categories.
|
|
9
9
|
* See [Treemap Chart](https://docs.sisense.com/main/SisenseLinux/treemap.htm) for more information.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <csdk-treemap-chart
|
|
14
|
+
* [dataSet]="chart.dataSet"
|
|
15
|
+
* [dataOptions]="chart.dataOptions"
|
|
16
|
+
* [highlights]="filters"
|
|
17
|
+
* [beforeRender]="onBeforeRender"
|
|
18
|
+
* (dataPointClick)="logArguments($event)"
|
|
19
|
+
* (dataPointContextMenu)="logArguments($event)"
|
|
20
|
+
* (dataPointsSelect)="logArguments($event)"
|
|
21
|
+
* />
|
|
22
|
+
* ```
|
|
23
|
+
* ```ts
|
|
24
|
+
import { Component } from '@angular/core';
|
|
25
|
+
import { measureFactory, filterFactory } from '@sisense/sdk-data';
|
|
26
|
+
import type { ChartType } from '@sisense/sdk-ui-angular';
|
|
27
|
+
import * as DM from '../../assets/sample-healthcare-model';
|
|
28
|
+
|
|
29
|
+
@Component({
|
|
30
|
+
selector: 'app-analytics',
|
|
31
|
+
templateUrl: './analytics.component.html',
|
|
32
|
+
styleUrls: ['./analytics.component.scss'],
|
|
33
|
+
})
|
|
34
|
+
export class AnalyticsComponent {
|
|
35
|
+
DM = DM;
|
|
36
|
+
filters = [filterFactory.members(DM.Divisions.Divison_name, ['Cardiology', 'Neurology'])];
|
|
37
|
+
chart = {
|
|
38
|
+
chartType: 'column' as ChartType,
|
|
39
|
+
dataSet: DM.DataSource,
|
|
40
|
+
dataOptions: {
|
|
41
|
+
category: [DM.Divisions.Divison_name],
|
|
42
|
+
value: [measureFactory.sum(DM.Admissions.Cost_of_admission)],
|
|
43
|
+
breakBy: [],
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
onBeforeRender(options: any) {
|
|
48
|
+
console.log('beforeRender');
|
|
49
|
+
console.log(options);
|
|
50
|
+
return options;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
logArguments(...args: any[]) {
|
|
54
|
+
console.log(args);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
* ```
|
|
58
|
+
* <img src="media://angular-treemap-chart-example.png" width="800px" />
|
|
59
|
+
*
|
|
60
|
+
* @group Charts
|
|
10
61
|
*/
|
|
11
62
|
export declare class TreemapChartComponent {
|
|
12
63
|
/**
|
|
@@ -6,6 +6,8 @@ import type { ArgumentsAsObject } from '../types/utility-types';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Context Menu Component
|
|
9
|
+
*
|
|
10
|
+
* @group Drilldown
|
|
9
11
|
*/
|
|
10
12
|
export declare class ContextMenuComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
11
13
|
/**
|
|
@@ -6,6 +6,8 @@ import type { ArgumentsAsObject } from '../types/utility-types';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Drilldown Breadcrumbs Component
|
|
9
|
+
*
|
|
10
|
+
* @group Drilldown
|
|
9
11
|
*/
|
|
10
12
|
export declare class DrilldownBreadcrumbsComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
11
13
|
/**
|
|
@@ -1,11 +1,51 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
2
|
import { type DateRangeFilterTileProps } from '@sisense/sdk-ui-preact';
|
|
3
|
-
import { SisenseContextService } from '
|
|
4
|
-
import { ThemeService } from '
|
|
5
|
-
import type { ArgumentsAsObject } from '
|
|
3
|
+
import { SisenseContextService } from '../../services/sisense-context.service';
|
|
4
|
+
import { ThemeService } from '../../services/theme.service';
|
|
5
|
+
import type { ArgumentsAsObject } from '../../types/utility-types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Date Range Filter Tile Component
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```html
|
|
12
|
+
* <csdk-date-range-filter-tile
|
|
13
|
+
* title="dateRangeFilterTileProps.title"
|
|
14
|
+
* [attribute]="dateRangeFilterTileProps.attribute"
|
|
15
|
+
* [filter]="dateRangeFilterTileProps.filter"
|
|
16
|
+
* (filterChange)="dateRangeFilterTileProps.setFilter($event)"
|
|
17
|
+
* />
|
|
18
|
+
* ```
|
|
19
|
+
* ```ts
|
|
20
|
+
* import { Component } from '@angular/core';
|
|
21
|
+
* import { Member } from '@sisense/sdk-ui-angular';
|
|
22
|
+
* import { Filter, filterFactory } from '@sisense/sdk-data';
|
|
23
|
+
* import * as DM from '../../assets/sample-healthcare-model';
|
|
24
|
+
*
|
|
25
|
+
* @Component({
|
|
26
|
+
* selector: 'app-filters',
|
|
27
|
+
* templateUrl: './filters.component.html',
|
|
28
|
+
* styleUrls: ['./filters.component.scss'],
|
|
29
|
+
* })
|
|
30
|
+
* export class FiltersComponent {
|
|
31
|
+
* DM = DM;
|
|
32
|
+
|
|
33
|
+
* dateRangeFilterTileProps = {
|
|
34
|
+
* title: 'Range Filter',
|
|
35
|
+
* attribute: DM.ER.Date.Years,
|
|
36
|
+
* filter: filterFactory.dateRange(DM.ER.Date.Years),
|
|
37
|
+
* setFilter({ filter }: { filter: Filter | null }) {
|
|
38
|
+
* console.log(filter);
|
|
39
|
+
* if (filter) {
|
|
40
|
+
* this.filter = filter;
|
|
41
|
+
* }
|
|
42
|
+
* },
|
|
43
|
+
* };
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
* <img src="media://angular-date-range-filter-tile-example.png" width="800px" />
|
|
47
|
+
*
|
|
48
|
+
* @group Filter Tiles
|
|
9
49
|
*/
|
|
10
50
|
export declare class DateRangeFilterTileComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
11
51
|
/**
|
|
@@ -1,11 +1,47 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
2
|
import { type MemberFilterTileProps } from '@sisense/sdk-ui-preact';
|
|
3
|
-
import { SisenseContextService } from '
|
|
4
|
-
import { ThemeService } from '
|
|
5
|
-
import type { ArgumentsAsObject } from '
|
|
3
|
+
import { SisenseContextService } from '../../services/sisense-context.service';
|
|
4
|
+
import { ThemeService } from '../../services/theme.service';
|
|
5
|
+
import type { ArgumentsAsObject } from '../../types/utility-types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Member Filter Tile Component
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```html
|
|
12
|
+
* <csdk-member-filter-tile
|
|
13
|
+
* title="Years Filter"
|
|
14
|
+
* [attribute]="DM.ER.Date.Years"
|
|
15
|
+
* [filter]="memberFilterTileProps.yearFilter"
|
|
16
|
+
* (filterChange)="memberFilterTileProps.setYearFilter($event)"
|
|
17
|
+
* />
|
|
18
|
+
* ```
|
|
19
|
+
* ```ts
|
|
20
|
+
* import { Component } from '@angular/core';
|
|
21
|
+
* import { Member } from '@sisense/sdk-ui-angular';
|
|
22
|
+
* import { Filter, filterFactory } from '@sisense/sdk-data';
|
|
23
|
+
* import * as DM from '../../assets/sample-healthcare-model';
|
|
24
|
+
*
|
|
25
|
+
* @Component({
|
|
26
|
+
* selector: 'app-filters',
|
|
27
|
+
* templateUrl: './filters.component.html',
|
|
28
|
+
* styleUrls: ['./filters.component.scss'],
|
|
29
|
+
* })
|
|
30
|
+
* export class FiltersComponent {
|
|
31
|
+
* DM = DM;
|
|
32
|
+
* memberFilterTileProps = {
|
|
33
|
+
* yearFilter: filterFactory.members(DM.ER.Date.Years, ['2013-01-01T00:00:00']),
|
|
34
|
+
* setYearFilter({ filter }: { filter: Filter | null }) {
|
|
35
|
+
* if (filter) {
|
|
36
|
+
* this.yearFilter = filter;
|
|
37
|
+
* }
|
|
38
|
+
* },
|
|
39
|
+
* };
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
* <img src="media://angular-member-filter-tile-example.png" width="800px" />
|
|
43
|
+
*
|
|
44
|
+
* @group Filter Tiles
|
|
9
45
|
*/
|
|
10
46
|
export declare class MemberFilterTileComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
11
47
|
/**
|
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './chart-widget.component';
|
|
5
|
-
export * from './column-chart.component';
|
|
6
|
-
export * from './bar-chart.component';
|
|
7
|
-
export * from './area-chart.component';
|
|
8
|
-
export * from './line-chart.component';
|
|
9
|
-
export * from './indicator-chart.component';
|
|
10
|
-
export * from './scatter-chart.component';
|
|
11
|
-
export * from './pie-chart.component';
|
|
12
|
-
export * from './funnel-chart.component';
|
|
13
|
-
export * from './polar-chart.component';
|
|
14
|
-
export * from './treemap-chart.component';
|
|
15
|
-
export * from './sunburst-chart.component';
|
|
16
|
-
export * from './table-widget.component';
|
|
17
|
-
export * from './dashboard-widget.component';
|
|
18
|
-
export * from './member-filter-tile.component';
|
|
19
|
-
export * from './drilldown-widget.component';
|
|
20
|
-
export * from './date-range-filter-tile.component';
|
|
1
|
+
export * from './filters';
|
|
2
|
+
export * from './charts';
|
|
3
|
+
export * from './widgets';
|
|
21
4
|
export * from './drilldown-breadcrumbs.component';
|
|
22
5
|
export * from './context-menu.component';
|
|
23
|
-
export * from './boxplot-chart.component';
|
|
24
|
-
export * from './scattermap-chart.component';
|
|
25
|
-
export * from './areamap-chart.component';
|
|
26
|
-
export * from './pivot-table.component';
|
package/dist/lib/components/{chart-widget.component.d.ts → widgets/chart-widget.component.d.ts}
RENAMED
|
@@ -1,11 +1,66 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
2
|
import { type ChartWidgetProps } from '@sisense/sdk-ui-preact';
|
|
3
|
-
import { SisenseContextService } from '
|
|
4
|
-
import { ThemeService } from '
|
|
5
|
-
import type { ArgumentsAsObject } from '
|
|
3
|
+
import { SisenseContextService } from '../../services/sisense-context.service';
|
|
4
|
+
import { ThemeService } from '../../services/theme.service';
|
|
5
|
+
import type { ArgumentsAsObject } from '../../types/utility-types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* The Chart Widget component extending {@link ChartComponent} to support widget style options.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```html
|
|
12
|
+
* <csdk-chart-widget
|
|
13
|
+
* [chartType]="chartWidget.chartType"
|
|
14
|
+
* [dataSource]="chartWidget.dataSource"
|
|
15
|
+
* [dataOptions]="chartWidget.dataOptions"
|
|
16
|
+
* [highlights]="filters"
|
|
17
|
+
* [title]="chartWidget.title"
|
|
18
|
+
* [description]="chartWidget.description"
|
|
19
|
+
* [beforeRender]="onBeforeRender"
|
|
20
|
+
* (dataPointClick)="logArguments($event)"
|
|
21
|
+
* (dataPointContextMenu)="logArguments($event)"
|
|
22
|
+
* (dataPointsSelect)="logArguments($event)"
|
|
23
|
+
* />
|
|
24
|
+
* ```
|
|
25
|
+
* ```ts
|
|
26
|
+
* import { Component } from '@angular/core';
|
|
27
|
+
* import { ChartType } from '@sisense/sdk-ui-angular';
|
|
28
|
+
* import { filterFactory } from '@sisense/sdk-data';
|
|
29
|
+
* import * as DM from '../../assets/sample-healthcare-model';
|
|
30
|
+
*
|
|
31
|
+
* @Component({
|
|
32
|
+
* selector: 'app-widgets',
|
|
33
|
+
* templateUrl: './widgets.component.html',
|
|
34
|
+
* styleUrls: ['./widgets.component.scss'],
|
|
35
|
+
* })
|
|
36
|
+
* export class WidgetsComponent {
|
|
37
|
+
* filters = [filterFactory.members(DM.Divisions.Divison_name, ['Cardiology', 'Neurology'])];
|
|
38
|
+
* chartWidget = {
|
|
39
|
+
* chartType: 'column' as ChartType,
|
|
40
|
+
* dataSource: DM.DataSource,
|
|
41
|
+
* dataOptions: {
|
|
42
|
+
* category: [DM.Divisions.Divison_name],
|
|
43
|
+
* value: [measureFactory.sum(DM.Admissions.Cost_of_admission)],
|
|
44
|
+
* breakBy: [],
|
|
45
|
+
* },
|
|
46
|
+
* title: 'Chart Title',
|
|
47
|
+
* description: 'Chart Description',
|
|
48
|
+
* };
|
|
49
|
+
* logArguments(...args: any[]) {
|
|
50
|
+
* console.log(args);
|
|
51
|
+
* }
|
|
52
|
+
*
|
|
53
|
+
* onBeforeRender(options: any) {
|
|
54
|
+
* console.log('beforeRender');
|
|
55
|
+
* console.log(options);
|
|
56
|
+
* return options;
|
|
57
|
+
* }
|
|
58
|
+
*
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
61
|
+
* <img src="media://angular-chart-widget-example.png" width="800px" />
|
|
62
|
+
*
|
|
63
|
+
* @group Chart Utilities
|
|
9
64
|
*/
|
|
10
65
|
export declare class ChartWidgetComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
11
66
|
private sisenseContextService;
|