@sisense/sdk-ui-angular 1.11.0 → 1.13.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/components/charts/area-range-chart.component.mjs +150 -0
- package/dist/esm2020/lib/components/charts/index.mjs +2 -1
- package/dist/esm2020/lib/sdk-ui-core-exports.mjs +1 -1
- package/dist/esm2020/lib/sdk-ui.module.mjs +6 -2
- package/dist/esm2020/public-api.mjs +14 -2
- package/dist/esm2020/version.mjs +2 -2
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs +166 -3
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +166 -3
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/lib/components/charts/area-range-chart.component.d.ts +134 -0
- package/dist/lib/components/charts/index.d.ts +1 -0
- package/dist/lib/sdk-ui-core-exports.d.ts +1 -1
- package/dist/lib/sdk-ui.module.d.ts +23 -22
- package/dist/lib/services/theme.service.d.ts +17 -4
- package/dist/package.json +4 -4
- package/dist/public-api.d.ts +13 -1
- package/dist/version.d.ts +1 -1
- package/package.json +7 -7
|
@@ -340,7 +340,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
340
340
|
}]
|
|
341
341
|
}], ctorParameters: function () { return [{ type: SisenseContextService }]; } });
|
|
342
342
|
|
|
343
|
-
var packageVersion = '1.
|
|
343
|
+
var packageVersion = '1.13.0';
|
|
344
344
|
|
|
345
345
|
function Trackable(target, propertyKey, descriptor) {
|
|
346
346
|
const originalMethod = descriptor.value;
|
|
@@ -2851,6 +2851,153 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2851
2851
|
type: Input
|
|
2852
2852
|
}] } });
|
|
2853
2853
|
|
|
2854
|
+
/**
|
|
2855
|
+
* A component that displays a range of data over a given time period or across multiple categories.
|
|
2856
|
+
* It is particularly useful for visualizing the minimum and maximum values in a dataset, along with
|
|
2857
|
+
* the area between these values.
|
|
2858
|
+
*
|
|
2859
|
+
* @example
|
|
2860
|
+
* ```html
|
|
2861
|
+
* <csdk-area-range-chart
|
|
2862
|
+
* [dataSet]="chart.dataSet"
|
|
2863
|
+
* [dataOptions]="chart.dataOptions"
|
|
2864
|
+
* [highlights]="filters"
|
|
2865
|
+
* [beforeRender]="onBeforeRender"
|
|
2866
|
+
* (dataPointClick)="logArguments($event)"
|
|
2867
|
+
* (dataPointContextMenu)="logArguments($event)"
|
|
2868
|
+
* (dataPointsSelect)="logArguments($event)"
|
|
2869
|
+
* />
|
|
2870
|
+
* ```
|
|
2871
|
+
* ```ts
|
|
2872
|
+
import { Component } from '@angular/core';
|
|
2873
|
+
import { measureFactory, filterFactory, Filter } from '@sisense/sdk-data';
|
|
2874
|
+
import * as DM from '../../assets/sample-healthcare-model';
|
|
2875
|
+
import type { ChartType, RangeChartDataOptions } from '@sisense/sdk-ui-angular';
|
|
2876
|
+
|
|
2877
|
+
@Component({
|
|
2878
|
+
selector: 'app-analytics',
|
|
2879
|
+
templateUrl: './analytics.component.html',
|
|
2880
|
+
styleUrls: ['./analytics.component.scss'],
|
|
2881
|
+
})
|
|
2882
|
+
export class AnalyticsComponent {
|
|
2883
|
+
DM = DM;
|
|
2884
|
+
filters = [filterFactory.members(DM.Divisions.Divison_name, ['Cardiology', 'Neurology'])];
|
|
2885
|
+
chart = {
|
|
2886
|
+
chartType: 'arearange' as ChartType,
|
|
2887
|
+
dataSet: DM.DataSource,
|
|
2888
|
+
dataOptions: {
|
|
2889
|
+
category: [DM.Admissions.Admission_Time.Years],
|
|
2890
|
+
value: [
|
|
2891
|
+
{
|
|
2892
|
+
title: 'Admission Cost Range',
|
|
2893
|
+
upperBound: measureFactory.multiply(
|
|
2894
|
+
measureFactory.sum(DM.Admissions.Cost_of_admission, 'Lower Admission'),
|
|
2895
|
+
0.6,
|
|
2896
|
+
),
|
|
2897
|
+
lowerBound: measureFactory.multiply(
|
|
2898
|
+
measureFactory.sum(DM.Admissions.Cost_of_admission, 'Upper Admission'),
|
|
2899
|
+
1.4,
|
|
2900
|
+
),
|
|
2901
|
+
}
|
|
2902
|
+
],
|
|
2903
|
+
breakBy: [],
|
|
2904
|
+
} as RangeChartDataOptions,
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
onBeforeRender(options: any) {
|
|
2908
|
+
console.log('beforeRender');
|
|
2909
|
+
console.log(options);
|
|
2910
|
+
return options;
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
logArguments(...args: any[]) {
|
|
2914
|
+
console.log(args);
|
|
2915
|
+
}
|
|
2916
|
+
}
|
|
2917
|
+
* ```
|
|
2918
|
+
* <img src="media://angular-area-range-chart-example.png" width="800px" />
|
|
2919
|
+
*
|
|
2920
|
+
* @group Charts
|
|
2921
|
+
* @beta
|
|
2922
|
+
*/
|
|
2923
|
+
class AreaRangeChartComponent {
|
|
2924
|
+
constructor() {
|
|
2925
|
+
/**
|
|
2926
|
+
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.onDataPointClick}
|
|
2927
|
+
*
|
|
2928
|
+
* @category Callbacks
|
|
2929
|
+
*/
|
|
2930
|
+
this.dataPointClick = new EventEmitter();
|
|
2931
|
+
/**
|
|
2932
|
+
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.onDataPointContextMenu}
|
|
2933
|
+
*
|
|
2934
|
+
* @category Callbacks
|
|
2935
|
+
*/
|
|
2936
|
+
this.dataPointContextMenu = new EventEmitter();
|
|
2937
|
+
/**
|
|
2938
|
+
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.onDataPointsSelected}
|
|
2939
|
+
*
|
|
2940
|
+
* @category Callbacks
|
|
2941
|
+
*/
|
|
2942
|
+
this.dataPointsSelect = new EventEmitter();
|
|
2943
|
+
/** @internal */
|
|
2944
|
+
this.chartType = 'arearange';
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2947
|
+
AreaRangeChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AreaRangeChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2948
|
+
AreaRangeChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AreaRangeChartComponent, selector: "csdk-area-range-chart", inputs: { dataSet: "dataSet", dataOptions: "dataOptions", filters: "filters", highlights: "highlights", styleOptions: "styleOptions", beforeRender: "beforeRender" }, outputs: { dataPointClick: "dataPointClick", dataPointContextMenu: "dataPointContextMenu", dataPointsSelect: "dataPointsSelect" }, ngImport: i0, template: `
|
|
2949
|
+
<csdk-chart
|
|
2950
|
+
[chartType]="chartType"
|
|
2951
|
+
[dataSet]="dataSet"
|
|
2952
|
+
[dataOptions]="dataOptions"
|
|
2953
|
+
[filters]="filters"
|
|
2954
|
+
[highlights]="highlights"
|
|
2955
|
+
[styleOptions]="styleOptions"
|
|
2956
|
+
[beforeRender]="beforeRender"
|
|
2957
|
+
(dataPointClick)="dataPointClick.emit($event)"
|
|
2958
|
+
(dataPointContextMenu)="dataPointContextMenu.emit($event)"
|
|
2959
|
+
(dataPointsSelect)="dataPointsSelect.emit($event)"
|
|
2960
|
+
/>
|
|
2961
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ChartComponent, selector: "csdk-chart", inputs: ["chartType", "dataSet", "dataOptions", "filters", "highlights", "styleOptions", "beforeRender"], outputs: ["dataPointClick", "dataPointContextMenu", "dataPointsSelect"] }] });
|
|
2962
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AreaRangeChartComponent, decorators: [{
|
|
2963
|
+
type: Component,
|
|
2964
|
+
args: [{
|
|
2965
|
+
selector: 'csdk-area-range-chart',
|
|
2966
|
+
template: `
|
|
2967
|
+
<csdk-chart
|
|
2968
|
+
[chartType]="chartType"
|
|
2969
|
+
[dataSet]="dataSet"
|
|
2970
|
+
[dataOptions]="dataOptions"
|
|
2971
|
+
[filters]="filters"
|
|
2972
|
+
[highlights]="highlights"
|
|
2973
|
+
[styleOptions]="styleOptions"
|
|
2974
|
+
[beforeRender]="beforeRender"
|
|
2975
|
+
(dataPointClick)="dataPointClick.emit($event)"
|
|
2976
|
+
(dataPointContextMenu)="dataPointContextMenu.emit($event)"
|
|
2977
|
+
(dataPointsSelect)="dataPointsSelect.emit($event)"
|
|
2978
|
+
/>
|
|
2979
|
+
`,
|
|
2980
|
+
}]
|
|
2981
|
+
}], propDecorators: { dataSet: [{
|
|
2982
|
+
type: Input
|
|
2983
|
+
}], dataOptions: [{
|
|
2984
|
+
type: Input
|
|
2985
|
+
}], filters: [{
|
|
2986
|
+
type: Input
|
|
2987
|
+
}], highlights: [{
|
|
2988
|
+
type: Input
|
|
2989
|
+
}], styleOptions: [{
|
|
2990
|
+
type: Input
|
|
2991
|
+
}], beforeRender: [{
|
|
2992
|
+
type: Input
|
|
2993
|
+
}], dataPointClick: [{
|
|
2994
|
+
type: Output
|
|
2995
|
+
}], dataPointContextMenu: [{
|
|
2996
|
+
type: Output
|
|
2997
|
+
}], dataPointsSelect: [{
|
|
2998
|
+
type: Output
|
|
2999
|
+
}] } });
|
|
3000
|
+
|
|
2854
3001
|
/**
|
|
2855
3002
|
* The Table Widget component extending {@link TableComponent} component to support widget style options.
|
|
2856
3003
|
*
|
|
@@ -3604,6 +3751,7 @@ SdkUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
3604
3751
|
ColumnChartComponent,
|
|
3605
3752
|
BarChartComponent,
|
|
3606
3753
|
AreaChartComponent,
|
|
3754
|
+
AreaRangeChartComponent,
|
|
3607
3755
|
LineChartComponent,
|
|
3608
3756
|
IndicatorChartComponent,
|
|
3609
3757
|
ScatterChartComponent,
|
|
@@ -3629,6 +3777,7 @@ SdkUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
3629
3777
|
ColumnChartComponent,
|
|
3630
3778
|
BarChartComponent,
|
|
3631
3779
|
AreaChartComponent,
|
|
3780
|
+
AreaRangeChartComponent,
|
|
3632
3781
|
LineChartComponent,
|
|
3633
3782
|
IndicatorChartComponent,
|
|
3634
3783
|
ScatterChartComponent,
|
|
@@ -3660,6 +3809,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3660
3809
|
ColumnChartComponent,
|
|
3661
3810
|
BarChartComponent,
|
|
3662
3811
|
AreaChartComponent,
|
|
3812
|
+
AreaRangeChartComponent,
|
|
3663
3813
|
LineChartComponent,
|
|
3664
3814
|
IndicatorChartComponent,
|
|
3665
3815
|
ScatterChartComponent,
|
|
@@ -3689,6 +3839,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3689
3839
|
ColumnChartComponent,
|
|
3690
3840
|
BarChartComponent,
|
|
3691
3841
|
AreaChartComponent,
|
|
3842
|
+
AreaRangeChartComponent,
|
|
3692
3843
|
LineChartComponent,
|
|
3693
3844
|
IndicatorChartComponent,
|
|
3694
3845
|
ScatterChartComponent,
|
|
@@ -3723,8 +3874,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3723
3874
|
* @packageDocumentation
|
|
3724
3875
|
* @groupDescription Charts
|
|
3725
3876
|
* Angular components for charts
|
|
3877
|
+
* @groupDescription Chart Utilities
|
|
3878
|
+
* Utilities to be used with charts
|
|
3879
|
+
* @groupDescription Data Grids
|
|
3880
|
+
* Angular components for data grids
|
|
3881
|
+
* @groupDescription Drilldown
|
|
3882
|
+
* Angular components for creating drilldown experiences
|
|
3883
|
+
* @groupDescription Filter Tiles
|
|
3884
|
+
* Angular filter tile components
|
|
3885
|
+
* @groupDescription Contexts
|
|
3886
|
+
* Angular context modules, services, and variables
|
|
3887
|
+
* @groupDescription Queries
|
|
3888
|
+
* Angular query service
|
|
3726
3889
|
* @groupDescription Fusion Embed
|
|
3727
|
-
* Fusion
|
|
3890
|
+
* Angular modules, services, and components for working with Fusion Embed dashboards, widgets, queries, and formulas
|
|
3728
3891
|
* @groupDescription Interfaces
|
|
3729
3892
|
* TypeScript interfaces for components and services listed above
|
|
3730
3893
|
* @groupDescription Type Aliases
|
|
@@ -3735,5 +3898,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3735
3898
|
* Generated bundle index. Do not edit.
|
|
3736
3899
|
*/
|
|
3737
3900
|
|
|
3738
|
-
export { AreaChartComponent, AreamapChartComponent, BarChartComponent, BasicMemberFilterTileComponent, BoxplotChartComponent, ChartComponent, ChartWidgetComponent, ColumnChartComponent, ContextMenuComponent, DashboardService, DashboardWidgetComponent, DateRangeFilterTileComponent, DrilldownBreadcrumbsComponent, DrilldownWidgetComponent, FunnelChartComponent, IndicatorChartComponent, LineChartComponent, MemberFilterTileComponent, PieChartComponent, PivotTableComponent, PolarChartComponent, QueryService, SISENSE_CONTEXT_CONFIG_TOKEN, ScatterChartComponent, ScattermapChartComponent, SdkUiModule, SisenseContextService, SunburstChartComponent, THEME_CONFIG_TOKEN, TableComponent, TableWidgetComponent, ThemeService, TreemapChartComponent, WidgetService };
|
|
3901
|
+
export { AreaChartComponent, AreaRangeChartComponent, AreamapChartComponent, BarChartComponent, BasicMemberFilterTileComponent, BoxplotChartComponent, ChartComponent, ChartWidgetComponent, ColumnChartComponent, ContextMenuComponent, DashboardService, DashboardWidgetComponent, DateRangeFilterTileComponent, DrilldownBreadcrumbsComponent, DrilldownWidgetComponent, FunnelChartComponent, IndicatorChartComponent, LineChartComponent, MemberFilterTileComponent, PieChartComponent, PivotTableComponent, PolarChartComponent, QueryService, SISENSE_CONTEXT_CONFIG_TOKEN, ScatterChartComponent, ScattermapChartComponent, SdkUiModule, SisenseContextService, SunburstChartComponent, THEME_CONFIG_TOKEN, TableComponent, TableWidgetComponent, ThemeService, TreemapChartComponent, WidgetService };
|
|
3739
3902
|
//# sourceMappingURL=sisense-sdk-ui-angular.mjs.map
|