@sisense/sdk-ui-angular 1.5.0 → 1.6.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 +115 -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 +6 -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 -1
- package/dist/esm2020/version.mjs +2 -2
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs +1721 -708
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +1722 -709
- 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} +26 -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 +5 -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 -0
- 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
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { ContextConnector, CustomSisenseContext, CustomThemeProviderProps } from '@sisense/sdk-ui-preact';
|
|
2
2
|
import { SisenseContextService } from '../services/sisense-context.service';
|
|
3
3
|
import { ThemeService } from '../services/theme.service';
|
|
4
|
+
/**
|
|
5
|
+
* Creates theme context connector
|
|
6
|
+
*
|
|
7
|
+
* @param themeService - The theme service
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
4
10
|
export declare const createThemeContextConnector: (themeService: ThemeService) => ContextConnector<CustomThemeProviderProps['context']>;
|
|
11
|
+
/**
|
|
12
|
+
* Creates Sisense context connector
|
|
13
|
+
*
|
|
14
|
+
* @param sisenseContextService - The Sisense context service
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
5
17
|
export declare const createSisenseContextConnector: (sisenseContextService: SisenseContextService) => ContextConnector<CustomSisenseContext>;
|
|
@@ -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 AreaChartProps } 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
|
* A component similar to a {@link LineChartComponent},
|
|
8
8
|
* but with filled in areas under each line and an option to display them as stacked.
|
|
9
9
|
* More info on [Sisense Documentation page](https://docs.sisense.com/main/SisenseLinux/area-chart.htm).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <csdk-area-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, Filter } 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-area-chart-example.png" width="800px" />
|
|
59
|
+
*
|
|
60
|
+
* @group Charts
|
|
10
61
|
*/
|
|
11
62
|
export declare class AreaChartComponent {
|
|
12
63
|
/**
|
package/dist/lib/components/{areamap-chart.component.d.ts → charts/areamap-chart.component.d.ts}
RENAMED
|
@@ -1,10 +1,49 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { type ChartType, type AreamapChartProps } from '@sisense/sdk-ui-preact';
|
|
3
|
-
import { ArgumentsAsObject } from '
|
|
3
|
+
import { ArgumentsAsObject } from '../../types/utility-types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* An Angular component that allows to visualize geographical data as polygons on a map.
|
|
7
7
|
* See [Areamap Chart](https://docs.sisense.com/main/SisenseLinux/area-map.htm) for more information.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```html
|
|
11
|
+
* <csdk-areamap-chart
|
|
12
|
+
* [dataSet]="areamapChart.dataSet"
|
|
13
|
+
* [dataOptions]="areamapChart.dataOptions"
|
|
14
|
+
* [styleOptions]="areamapChart.styleOptions"
|
|
15
|
+
* (dataPointClick)="logArguments($event)"
|
|
16
|
+
* /> * ```
|
|
17
|
+
* ```ts
|
|
18
|
+
import { Component } from '@angular/core';
|
|
19
|
+
import { measureFactory } from '@sisense/sdk-data';
|
|
20
|
+
import * as DM from '../../assets/sample-ecommerce';
|
|
21
|
+
|
|
22
|
+
@Component({
|
|
23
|
+
selector: 'app-analytics',
|
|
24
|
+
templateUrl: './analytics.component.html',
|
|
25
|
+
styleUrls: ['./analytics.component.scss'],
|
|
26
|
+
})
|
|
27
|
+
export class AnalyticsComponent {
|
|
28
|
+
areamapChart = {
|
|
29
|
+
dataSet: DM.DataSource,
|
|
30
|
+
dataOptions: {
|
|
31
|
+
geo: [DM.Country.Country],
|
|
32
|
+
color: [measureFactory.sum(DM.Commerce.Revenue, 'Color by Revenue')],
|
|
33
|
+
} as AreamapChartDataOptions,
|
|
34
|
+
styleOptions: {
|
|
35
|
+
mapType: 'world',
|
|
36
|
+
} as AreamapStyleOptions,
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
logArguments(...args: any[]) {
|
|
40
|
+
console.log(args);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
* ```
|
|
44
|
+
* <img src="media://angular-areamap-chart-example.png" width="800px" />
|
|
45
|
+
*
|
|
46
|
+
* @group Charts
|
|
8
47
|
*/
|
|
9
48
|
export declare class AreamapChartComponent {
|
|
10
49
|
/**
|
|
@@ -1,12 +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 BarChartProps } 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 representing categorical data with horizontal rectangular bars,
|
|
8
8
|
* whose lengths are proportional to the values that they represent.
|
|
9
9
|
* See [Bar Chart](https://docs.sisense.com/main/SisenseLinux/bar-chart.htm) for more information.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <csdk-bar-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
|
+
* ```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-bar-chart-example.png" width="800px" />
|
|
58
|
+
*
|
|
59
|
+
* @group Charts
|
|
10
60
|
*/
|
|
11
61
|
export declare class BarChartComponent {
|
|
12
62
|
/**
|
package/dist/lib/components/{boxplot-chart.component.d.ts → charts/boxplot-chart.component.d.ts}
RENAMED
|
@@ -1,12 +1,55 @@
|
|
|
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 BoxplotChartProps } 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
|
* An Angular component representing data in a way that visually describes the distribution, variability,
|
|
8
8
|
* and center of a data set along an axis.
|
|
9
9
|
* See [Boxplot Chart](https://docs.sisense.com/main/SisenseLinux/box-and-whisker-plot.htm) for more information.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <csdk-boxplot-chart
|
|
14
|
+
* [dataSet]="boxplotChart.dataSet"
|
|
15
|
+
* [dataOptions]="boxplotChart.dataOptions"
|
|
16
|
+
* [highlights]="boxplotChart.highlights"
|
|
17
|
+
* [beforeRender]="onBeforeRender"
|
|
18
|
+
* (dataPointClick)="logArguments($event)"
|
|
19
|
+
* (dataPointContextMenu)="logArguments($event)"
|
|
20
|
+
* (dataPointsSelect)="logArguments($event)"
|
|
21
|
+
* /> * ```
|
|
22
|
+
* ```ts
|
|
23
|
+
import { Component } from '@angular/core';
|
|
24
|
+
import { filterFactory } from '@sisense/sdk-data';
|
|
25
|
+
import type { BoxplotChartDataOptions } from '@sisense/sdk-ui-angular';
|
|
26
|
+
import * as DM from '../../assets/sample-healthcare-model';
|
|
27
|
+
|
|
28
|
+
@Component({
|
|
29
|
+
selector: 'app-analytics',
|
|
30
|
+
templateUrl: './analytics.component.html',
|
|
31
|
+
styleUrls: ['./analytics.component.scss'],
|
|
32
|
+
})
|
|
33
|
+
export class AnalyticsComponent {
|
|
34
|
+
boxplotChart = {
|
|
35
|
+
dataSet: DM.DataSource,
|
|
36
|
+
dataOptions: {
|
|
37
|
+
category: [DM.Divisions.Divison_name],
|
|
38
|
+
value: [DM.Admissions.TimeofStay],
|
|
39
|
+
boxType: 'iqr',
|
|
40
|
+
outliersEnabled: true,
|
|
41
|
+
} as BoxplotChartDataOptions,
|
|
42
|
+
highlights: [filterFactory.members(DM.Divisions.Divison_name, ['Cardiology', 'Neurology'])],
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
logArguments(...args: any[]) {
|
|
46
|
+
console.log(args);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
* ```
|
|
50
|
+
* <img src="media://angular-boxplot-chart-example.png" width="800px" />
|
|
51
|
+
*
|
|
52
|
+
* @group Charts
|
|
10
53
|
*/
|
|
11
54
|
export declare class BoxplotChartComponent {
|
|
12
55
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
2
|
import { type ChartProps } 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
|
* An Angular component used for easily switching chart types or rendering multiple series of different chart types.
|
|
@@ -50,7 +50,9 @@ import * as i0 from "@angular/core";
|
|
|
50
50
|
* />
|
|
51
51
|
* ```
|
|
52
52
|
*
|
|
53
|
-
* <img src="media://angular-chart-
|
|
53
|
+
* <img src="media://angular-chart-example.png" width="800px" />
|
|
54
|
+
*
|
|
55
|
+
* @group Charts
|
|
54
56
|
*/
|
|
55
57
|
export declare class ChartComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
56
58
|
/**
|
package/dist/lib/components/{column-chart.component.d.ts → charts/column-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 ColumnChartProps } 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 representing categorical data with vertical rectangular bars
|
|
8
8
|
* whose heights are proportional to the values that they represent.
|
|
9
9
|
* See [Column Chart](https://docs.sisense.com/main/SisenseLinux/column-chart.htm) for more information.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <csdk-column-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-column-chart-example.png" width="800px" />
|
|
59
|
+
*
|
|
60
|
+
* @group Charts
|
|
10
61
|
*/
|
|
11
62
|
export declare class ColumnChartComponent {
|
|
12
63
|
/**
|
package/dist/lib/components/{funnel-chart.component.d.ts → charts/funnel-chart.component.d.ts}
RENAMED
|
@@ -1,11 +1,61 @@
|
|
|
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 FunnelChartProps } 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 representing data progressively decreasing in size or quantity through a funnel shape.
|
|
8
8
|
* See [Funnel Chart](https://docs.sisense.com/main/SisenseLinux/funnel-chart.htm) for more information.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```html
|
|
12
|
+
* <csdk-funnel-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, Filter } from '@sisense/sdk-data';
|
|
25
|
+
import * as DM from '../../assets/sample-healthcare-model';
|
|
26
|
+
import type { ChartType } from '@sisense/sdk-ui-angular';
|
|
27
|
+
@Component({
|
|
28
|
+
selector: 'app-analytics',
|
|
29
|
+
templateUrl: './analytics.component.html',
|
|
30
|
+
styleUrls: ['./analytics.component.scss'],
|
|
31
|
+
})
|
|
32
|
+
export class AnalyticsComponent {
|
|
33
|
+
DM = DM;
|
|
34
|
+
filters = [filterFactory.members(DM.Divisions.Divison_name, ['Cardiology', 'Neurology'])];
|
|
35
|
+
chart = {
|
|
36
|
+
chartType: 'column' as ChartType,
|
|
37
|
+
dataSet: DM.DataSource,
|
|
38
|
+
dataOptions: {
|
|
39
|
+
category: [DM.Divisions.Divison_name],
|
|
40
|
+
value: [measureFactory.sum(DM.Admissions.Cost_of_admission)],
|
|
41
|
+
breakBy: [],
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
onBeforeRender(options: any) {
|
|
46
|
+
console.log('beforeRender');
|
|
47
|
+
console.log(options);
|
|
48
|
+
return options;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
logArguments(...args: any[]) {
|
|
52
|
+
console.log(args);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
* ```
|
|
56
|
+
* <img src="media://angular-funnel-chart-example.png" width="800px" />
|
|
57
|
+
*
|
|
58
|
+
* @group Charts
|
|
9
59
|
*/
|
|
10
60
|
export declare class FunnelChartComponent {
|
|
11
61
|
/**
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './chart.component';
|
|
2
|
+
export * from './table.component';
|
|
3
|
+
export * from './column-chart.component';
|
|
4
|
+
export * from './bar-chart.component';
|
|
5
|
+
export * from './area-chart.component';
|
|
6
|
+
export * from './line-chart.component';
|
|
7
|
+
export * from './indicator-chart.component';
|
|
8
|
+
export * from './scatter-chart.component';
|
|
9
|
+
export * from './pie-chart.component';
|
|
10
|
+
export * from './funnel-chart.component';
|
|
11
|
+
export * from './polar-chart.component';
|
|
12
|
+
export * from './treemap-chart.component';
|
|
13
|
+
export * from './sunburst-chart.component';
|
|
14
|
+
export * from './boxplot-chart.component';
|
|
15
|
+
export * from './scattermap-chart.component';
|
|
16
|
+
export * from './areamap-chart.component';
|
|
17
|
+
export * from './pivot-table.component';
|
package/dist/lib/components/{indicator-chart.component.d.ts → charts/indicator-chart.component.d.ts}
RENAMED
|
@@ -1,9 +1,65 @@
|
|
|
1
|
-
import { type ChartType } from '
|
|
1
|
+
import { type ChartType } from '../../sdk-ui-core-exports';
|
|
2
2
|
import { type IndicatorChartProps } from '@sisense/sdk-ui-preact';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* A component that provides various options for displaying one or two numeric values as a number, gauge or ticker.
|
|
6
6
|
* See [Indicator](https://docs.sisense.com/main/SisenseLinux/indicator.htm) for more information.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```html
|
|
10
|
+
* <csdk-indicator-chart
|
|
11
|
+
* [dataSet]="indicator.dataSet"
|
|
12
|
+
* [dataOptions]="indicator.dataOptions"
|
|
13
|
+
* [filters]="filters"
|
|
14
|
+
* [styleOptions]="indicator.styleOptions"
|
|
15
|
+
* />
|
|
16
|
+
* ```
|
|
17
|
+
* ```ts
|
|
18
|
+
import { Component } from '@angular/core';
|
|
19
|
+
import { measureFactory, filterFactory } from '@sisense/sdk-data';
|
|
20
|
+
import * as DM from '../../assets/sample-healthcare-model';
|
|
21
|
+
import type { IndicatorStyleOptions } from '@sisense/sdk-ui-angular';
|
|
22
|
+
|
|
23
|
+
@Component({
|
|
24
|
+
selector: 'app-analytics',
|
|
25
|
+
templateUrl: './analytics.component.html',
|
|
26
|
+
styleUrls: ['./analytics.component.scss'],
|
|
27
|
+
})
|
|
28
|
+
export class AnalyticsComponent {
|
|
29
|
+
DM = DM;
|
|
30
|
+
filters = [filterFactory.members(DM.Divisions.Divison_name, ['Cardiology', 'Neurology'])];
|
|
31
|
+
indicator = {
|
|
32
|
+
dataSet: DM.DataSource,
|
|
33
|
+
dataOptions: {
|
|
34
|
+
value: [measureFactory.sum(DM.Admissions.Cost_of_admission)],
|
|
35
|
+
secondary: [measureFactory.sum(DM.Admissions.Diagnosis_ID)],
|
|
36
|
+
},
|
|
37
|
+
styleOptions: {
|
|
38
|
+
indicatorComponents: {
|
|
39
|
+
title: {
|
|
40
|
+
shouldBeShown: true,
|
|
41
|
+
text: 'Total Cost_of_admission',
|
|
42
|
+
},
|
|
43
|
+
secondaryTitle: {
|
|
44
|
+
text: 'Total Diagnosis_ID',
|
|
45
|
+
},
|
|
46
|
+
ticks: {
|
|
47
|
+
shouldBeShown: true,
|
|
48
|
+
},
|
|
49
|
+
labels: {
|
|
50
|
+
shouldBeShown: true,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
subtype: 'indicator/gauge',
|
|
54
|
+
skin: 2,
|
|
55
|
+
} as IndicatorStyleOptions,
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
}
|
|
59
|
+
* ```
|
|
60
|
+
* <img src="media://angular-indicator-chart-example.png" width="800px" />
|
|
61
|
+
*
|
|
62
|
+
* @group Charts
|
|
7
63
|
*/
|
|
8
64
|
export declare class IndicatorChartComponent {
|
|
9
65
|
/**
|
|
@@ -1,11 +1,61 @@
|
|
|
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 LineChartProps } 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 data as a series of points connected by a line. Used to show trends or changes over time.
|
|
8
8
|
* See [Line Chart](https://docs.sisense.com/main/SisenseLinux/line-chart.htm) for more information.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```html
|
|
12
|
+
* <csdk-line-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, Filter } from '@sisense/sdk-data';
|
|
25
|
+
import * as DM from '../../assets/sample-healthcare-model';
|
|
26
|
+
import type { ChartType } from '@sisense/sdk-ui-angular';
|
|
27
|
+
@Component({
|
|
28
|
+
selector: 'app-analytics',
|
|
29
|
+
templateUrl: './analytics.component.html',
|
|
30
|
+
styleUrls: ['./analytics.component.scss'],
|
|
31
|
+
})
|
|
32
|
+
export class AnalyticsComponent {
|
|
33
|
+
DM = DM;
|
|
34
|
+
filters = [filterFactory.members(DM.Divisions.Divison_name, ['Cardiology', 'Neurology'])];
|
|
35
|
+
chart = {
|
|
36
|
+
chartType: 'column' as ChartType,
|
|
37
|
+
dataSet: DM.DataSource,
|
|
38
|
+
dataOptions: {
|
|
39
|
+
category: [DM.Divisions.Divison_name],
|
|
40
|
+
value: [measureFactory.sum(DM.Admissions.Cost_of_admission)],
|
|
41
|
+
breakBy: [],
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
onBeforeRender(options: any) {
|
|
46
|
+
console.log('beforeRender');
|
|
47
|
+
console.log(options);
|
|
48
|
+
return options;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
logArguments(...args: any[]) {
|
|
52
|
+
console.log(args);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
* ```
|
|
56
|
+
* <img src="media://angular-line-chart-example.png" width="800px" />
|
|
57
|
+
*
|
|
58
|
+
* @group Charts
|
|
9
59
|
*/
|
|
10
60
|
export declare class LineChartComponent {
|
|
11
61
|
/**
|
|
@@ -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 PieChartProps } 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 representing data in a circular graph with the data shown as slices of a whole,
|
|
8
8
|
* with each slice representing a proportion of the total.
|
|
9
9
|
* See [Pie Chart](https://docs.sisense.com/main/SisenseLinux/pie-chart.htm) for more information.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <csdk-pie-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-pie-chart-example.png" width="800px" />
|
|
59
|
+
*
|
|
60
|
+
* @group Charts
|
|
10
61
|
*/
|
|
11
62
|
export declare class PieChartComponent {
|
|
12
63
|
/**
|