@sisense/sdk-ui-angular 1.12.0 → 1.14.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/components/dashboard/dashboard-by-id.component.mjs +101 -0
- package/dist/esm2020/lib/components/dashboard/dashboard.component.mjs +129 -0
- package/dist/esm2020/lib/components/dashboard/index.mjs +3 -0
- package/dist/esm2020/lib/components/index.mjs +2 -1
- package/dist/esm2020/lib/decorators/trackable.decorator.mjs +2 -2
- package/dist/esm2020/lib/sdk-ui-core-exports.mjs +1 -1
- package/dist/esm2020/lib/sdk-ui.module.mjs +16 -4
- package/dist/esm2020/lib/services/theme.service.mjs +3 -1
- package/dist/esm2020/public-api.mjs +14 -2
- package/dist/esm2020/version.mjs +2 -2
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs +396 -7
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +396 -7
- 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/components/dashboard/dashboard-by-id.component.d.ts +87 -0
- package/dist/lib/components/dashboard/dashboard.component.d.ts +120 -0
- package/dist/lib/components/dashboard/index.d.ts +2 -0
- package/dist/lib/components/index.d.ts +1 -0
- package/dist/lib/sdk-ui-core-exports.d.ts +1 -1
- package/dist/lib/sdk-ui.module.d.ts +25 -22
- package/dist/lib/services/theme.service.d.ts +2 -0
- package/dist/package.json +1 -1
- package/dist/public-api.d.ts +13 -1
- package/dist/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, Component, ViewChild, Input, Output, InjectionToken, Injectable, Inject, NgModule, Optional } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { ComponentAdapter, createElement, BasicMemberFilterTile, createContextProviderRenderer, CustomThemeProvider, CustomSisenseContextProvider, createClientApplication, executeQuery, executeQueryByWidgetId, getDashboardModel, getDashboardModels, getWidgetModel, getDefaultThemeSettings, getThemeSettingsByOid, MemberFilterTile, DateRangeFilterTile, Chart, Table, PivotTable, TableWidget, DashboardWidget, createWrapperElementHandler, createWrapperElement, DrilldownWidget, createComponentRenderer, ChartWidget, DrilldownBreadcrumbs, ContextMenu } from '@sisense/sdk-ui-preact';
|
|
4
|
+
import { ComponentAdapter, createElement, BasicMemberFilterTile, createContextProviderRenderer, CustomThemeProvider, CustomSisenseContextProvider, createClientApplication, executeQuery, executeQueryByWidgetId, getDashboardModel, getDashboardModels, getWidgetModel, getDefaultThemeSettings, getThemeSettingsByOid, MemberFilterTile, DateRangeFilterTile, Chart, Table, PivotTable, TableWidget, DashboardWidget, createWrapperElementHandler, createWrapperElement, DrilldownWidget, createComponentRenderer, ChartWidget, DashboardById, Dashboard, DrilldownBreadcrumbs, ContextMenu } from '@sisense/sdk-ui-preact';
|
|
5
5
|
export { boxWhiskerProcessResult } from '@sisense/sdk-ui-preact';
|
|
6
6
|
import { map, BehaviorSubject } from 'rxjs';
|
|
7
7
|
import { __decorate } from 'tslib';
|
|
@@ -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.14.0';
|
|
344
344
|
|
|
345
345
|
function Trackable(target, propertyKey, descriptor) {
|
|
346
346
|
const originalMethod = descriptor.value;
|
|
@@ -373,7 +373,7 @@ async function track(action, methodName) {
|
|
|
373
373
|
packageVersion,
|
|
374
374
|
methodName,
|
|
375
375
|
};
|
|
376
|
-
void trackProductEvent(action, payload, app.httpClient, !enableTracking)
|
|
376
|
+
void trackProductEvent(action, payload, app.httpClient, !enableTracking);
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
catch (e) {
|
|
@@ -419,6 +419,8 @@ const THEME_CONFIG_TOKEN = new InjectionToken('theme configuration');
|
|
|
419
419
|
/**
|
|
420
420
|
* Service for working with Sisense Fusion themes.
|
|
421
421
|
*
|
|
422
|
+
* If no theme service is used, the current Fusion theme is applied by default.
|
|
423
|
+
*
|
|
422
424
|
* @group Contexts
|
|
423
425
|
*/
|
|
424
426
|
let ThemeService = class ThemeService {
|
|
@@ -2851,6 +2853,153 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2851
2853
|
type: Input
|
|
2852
2854
|
}] } });
|
|
2853
2855
|
|
|
2856
|
+
/**
|
|
2857
|
+
* A component that displays a range of data over a given time period or across multiple categories.
|
|
2858
|
+
* It is particularly useful for visualizing the minimum and maximum values in a dataset, along with
|
|
2859
|
+
* the area between these values.
|
|
2860
|
+
*
|
|
2861
|
+
* @example
|
|
2862
|
+
* ```html
|
|
2863
|
+
* <csdk-area-range-chart
|
|
2864
|
+
* [dataSet]="chart.dataSet"
|
|
2865
|
+
* [dataOptions]="chart.dataOptions"
|
|
2866
|
+
* [highlights]="filters"
|
|
2867
|
+
* [beforeRender]="onBeforeRender"
|
|
2868
|
+
* (dataPointClick)="logArguments($event)"
|
|
2869
|
+
* (dataPointContextMenu)="logArguments($event)"
|
|
2870
|
+
* (dataPointsSelect)="logArguments($event)"
|
|
2871
|
+
* />
|
|
2872
|
+
* ```
|
|
2873
|
+
* ```ts
|
|
2874
|
+
import { Component } from '@angular/core';
|
|
2875
|
+
import { measureFactory, filterFactory, Filter } from '@sisense/sdk-data';
|
|
2876
|
+
import * as DM from '../../assets/sample-healthcare-model';
|
|
2877
|
+
import type { ChartType, RangeChartDataOptions } from '@sisense/sdk-ui-angular';
|
|
2878
|
+
|
|
2879
|
+
@Component({
|
|
2880
|
+
selector: 'app-analytics',
|
|
2881
|
+
templateUrl: './analytics.component.html',
|
|
2882
|
+
styleUrls: ['./analytics.component.scss'],
|
|
2883
|
+
})
|
|
2884
|
+
export class AnalyticsComponent {
|
|
2885
|
+
DM = DM;
|
|
2886
|
+
filters = [filterFactory.members(DM.Divisions.Divison_name, ['Cardiology', 'Neurology'])];
|
|
2887
|
+
chart = {
|
|
2888
|
+
chartType: 'arearange' as ChartType,
|
|
2889
|
+
dataSet: DM.DataSource,
|
|
2890
|
+
dataOptions: {
|
|
2891
|
+
category: [DM.Admissions.Admission_Time.Years],
|
|
2892
|
+
value: [
|
|
2893
|
+
{
|
|
2894
|
+
title: 'Admission Cost Range',
|
|
2895
|
+
upperBound: measureFactory.multiply(
|
|
2896
|
+
measureFactory.sum(DM.Admissions.Cost_of_admission, 'Lower Admission'),
|
|
2897
|
+
0.6,
|
|
2898
|
+
),
|
|
2899
|
+
lowerBound: measureFactory.multiply(
|
|
2900
|
+
measureFactory.sum(DM.Admissions.Cost_of_admission, 'Upper Admission'),
|
|
2901
|
+
1.4,
|
|
2902
|
+
),
|
|
2903
|
+
}
|
|
2904
|
+
],
|
|
2905
|
+
breakBy: [],
|
|
2906
|
+
} as RangeChartDataOptions,
|
|
2907
|
+
};
|
|
2908
|
+
|
|
2909
|
+
onBeforeRender(options: any) {
|
|
2910
|
+
console.log('beforeRender');
|
|
2911
|
+
console.log(options);
|
|
2912
|
+
return options;
|
|
2913
|
+
}
|
|
2914
|
+
|
|
2915
|
+
logArguments(...args: any[]) {
|
|
2916
|
+
console.log(args);
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2919
|
+
* ```
|
|
2920
|
+
* <img src="media://angular-area-range-chart-example.png" width="800px" />
|
|
2921
|
+
*
|
|
2922
|
+
* @group Charts
|
|
2923
|
+
* @beta
|
|
2924
|
+
*/
|
|
2925
|
+
class AreaRangeChartComponent {
|
|
2926
|
+
constructor() {
|
|
2927
|
+
/**
|
|
2928
|
+
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.onDataPointClick}
|
|
2929
|
+
*
|
|
2930
|
+
* @category Callbacks
|
|
2931
|
+
*/
|
|
2932
|
+
this.dataPointClick = new EventEmitter();
|
|
2933
|
+
/**
|
|
2934
|
+
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.onDataPointContextMenu}
|
|
2935
|
+
*
|
|
2936
|
+
* @category Callbacks
|
|
2937
|
+
*/
|
|
2938
|
+
this.dataPointContextMenu = new EventEmitter();
|
|
2939
|
+
/**
|
|
2940
|
+
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.onDataPointsSelected}
|
|
2941
|
+
*
|
|
2942
|
+
* @category Callbacks
|
|
2943
|
+
*/
|
|
2944
|
+
this.dataPointsSelect = new EventEmitter();
|
|
2945
|
+
/** @internal */
|
|
2946
|
+
this.chartType = 'arearange';
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
AreaRangeChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AreaRangeChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2950
|
+
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: `
|
|
2951
|
+
<csdk-chart
|
|
2952
|
+
[chartType]="chartType"
|
|
2953
|
+
[dataSet]="dataSet"
|
|
2954
|
+
[dataOptions]="dataOptions"
|
|
2955
|
+
[filters]="filters"
|
|
2956
|
+
[highlights]="highlights"
|
|
2957
|
+
[styleOptions]="styleOptions"
|
|
2958
|
+
[beforeRender]="beforeRender"
|
|
2959
|
+
(dataPointClick)="dataPointClick.emit($event)"
|
|
2960
|
+
(dataPointContextMenu)="dataPointContextMenu.emit($event)"
|
|
2961
|
+
(dataPointsSelect)="dataPointsSelect.emit($event)"
|
|
2962
|
+
/>
|
|
2963
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ChartComponent, selector: "csdk-chart", inputs: ["chartType", "dataSet", "dataOptions", "filters", "highlights", "styleOptions", "beforeRender"], outputs: ["dataPointClick", "dataPointContextMenu", "dataPointsSelect"] }] });
|
|
2964
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AreaRangeChartComponent, decorators: [{
|
|
2965
|
+
type: Component,
|
|
2966
|
+
args: [{
|
|
2967
|
+
selector: 'csdk-area-range-chart',
|
|
2968
|
+
template: `
|
|
2969
|
+
<csdk-chart
|
|
2970
|
+
[chartType]="chartType"
|
|
2971
|
+
[dataSet]="dataSet"
|
|
2972
|
+
[dataOptions]="dataOptions"
|
|
2973
|
+
[filters]="filters"
|
|
2974
|
+
[highlights]="highlights"
|
|
2975
|
+
[styleOptions]="styleOptions"
|
|
2976
|
+
[beforeRender]="beforeRender"
|
|
2977
|
+
(dataPointClick)="dataPointClick.emit($event)"
|
|
2978
|
+
(dataPointContextMenu)="dataPointContextMenu.emit($event)"
|
|
2979
|
+
(dataPointsSelect)="dataPointsSelect.emit($event)"
|
|
2980
|
+
/>
|
|
2981
|
+
`,
|
|
2982
|
+
}]
|
|
2983
|
+
}], propDecorators: { dataSet: [{
|
|
2984
|
+
type: Input
|
|
2985
|
+
}], dataOptions: [{
|
|
2986
|
+
type: Input
|
|
2987
|
+
}], filters: [{
|
|
2988
|
+
type: Input
|
|
2989
|
+
}], highlights: [{
|
|
2990
|
+
type: Input
|
|
2991
|
+
}], styleOptions: [{
|
|
2992
|
+
type: Input
|
|
2993
|
+
}], beforeRender: [{
|
|
2994
|
+
type: Input
|
|
2995
|
+
}], dataPointClick: [{
|
|
2996
|
+
type: Output
|
|
2997
|
+
}], dataPointContextMenu: [{
|
|
2998
|
+
type: Output
|
|
2999
|
+
}], dataPointsSelect: [{
|
|
3000
|
+
type: Output
|
|
3001
|
+
}] } });
|
|
3002
|
+
|
|
2854
3003
|
/**
|
|
2855
3004
|
* The Table Widget component extending {@link TableComponent} component to support widget style options.
|
|
2856
3005
|
*
|
|
@@ -3384,6 +3533,222 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3384
3533
|
type: Output
|
|
3385
3534
|
}] } });
|
|
3386
3535
|
|
|
3536
|
+
/**
|
|
3537
|
+
* An Angular component used for easily rendering a dashboard by its ID created in a Sisense Fusion instance.
|
|
3538
|
+
*
|
|
3539
|
+
* @example
|
|
3540
|
+
* ```html
|
|
3541
|
+
* <csdk-dashboard-by-id
|
|
3542
|
+
* [dashboardOid]="dashboardOid"
|
|
3543
|
+
* />
|
|
3544
|
+
* ```
|
|
3545
|
+
* ```ts
|
|
3546
|
+
* import { Component } from '@angular/core';
|
|
3547
|
+
*
|
|
3548
|
+
* @Component({
|
|
3549
|
+
* selector: 'app-dashboard',
|
|
3550
|
+
* templateUrl: './dashboard.component.html',
|
|
3551
|
+
* styleUrls: ['./dashboard.component.scss'],
|
|
3552
|
+
* })
|
|
3553
|
+
* export class DashboardComponent {
|
|
3554
|
+
* dashboardOid: string = '60f3e3e3e4b0e3e3e4b0e3e3';
|
|
3555
|
+
* }
|
|
3556
|
+
* ```
|
|
3557
|
+
* @group Fusion Embed
|
|
3558
|
+
* @fusionEmbed
|
|
3559
|
+
* @internal
|
|
3560
|
+
*/
|
|
3561
|
+
class DashboardByIdComponent {
|
|
3562
|
+
/**
|
|
3563
|
+
* Constructor for the `DashboardById` component.
|
|
3564
|
+
*
|
|
3565
|
+
* @param sisenseContextService - Sisense context service
|
|
3566
|
+
* @param themeService - Theme service
|
|
3567
|
+
*/
|
|
3568
|
+
constructor(
|
|
3569
|
+
/**
|
|
3570
|
+
* Sisense context service
|
|
3571
|
+
*
|
|
3572
|
+
* @category Constructor
|
|
3573
|
+
*/
|
|
3574
|
+
sisenseContextService,
|
|
3575
|
+
/**
|
|
3576
|
+
* Theme service
|
|
3577
|
+
*
|
|
3578
|
+
* @category Constructor
|
|
3579
|
+
*/
|
|
3580
|
+
themeService) {
|
|
3581
|
+
this.sisenseContextService = sisenseContextService;
|
|
3582
|
+
this.themeService = themeService;
|
|
3583
|
+
this.componentAdapter = new ComponentAdapter(() => this.createPreactComponent(), [
|
|
3584
|
+
createSisenseContextConnector(this.sisenseContextService),
|
|
3585
|
+
createThemeContextConnector(this.themeService),
|
|
3586
|
+
]);
|
|
3587
|
+
}
|
|
3588
|
+
/**
|
|
3589
|
+
* @internal
|
|
3590
|
+
*/
|
|
3591
|
+
ngAfterViewInit() {
|
|
3592
|
+
this.componentAdapter.render(this.preactRef.nativeElement);
|
|
3593
|
+
}
|
|
3594
|
+
/**
|
|
3595
|
+
* @internal
|
|
3596
|
+
*/
|
|
3597
|
+
ngOnChanges() {
|
|
3598
|
+
if (this.preactRef) {
|
|
3599
|
+
this.componentAdapter.render(this.preactRef.nativeElement);
|
|
3600
|
+
}
|
|
3601
|
+
}
|
|
3602
|
+
createPreactComponent() {
|
|
3603
|
+
const props = {
|
|
3604
|
+
dashboardOid: this.dashboardOid,
|
|
3605
|
+
};
|
|
3606
|
+
return createElement(DashboardById, props);
|
|
3607
|
+
}
|
|
3608
|
+
/**
|
|
3609
|
+
* @internal
|
|
3610
|
+
*/
|
|
3611
|
+
ngOnDestroy() {
|
|
3612
|
+
this.componentAdapter.destroy();
|
|
3613
|
+
}
|
|
3614
|
+
}
|
|
3615
|
+
DashboardByIdComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DashboardByIdComponent, deps: [{ token: SisenseContextService }, { token: ThemeService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3616
|
+
DashboardByIdComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DashboardByIdComponent, selector: "csdk-dashboard-by-id", inputs: { dashboardOid: "dashboardOid" }, viewQueries: [{ propertyName: "preactRef", first: true, predicate: ["preact"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "\n <div #preact style=\"width: 100%; height: 100%\"></div>\n", isInline: true });
|
|
3617
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DashboardByIdComponent, decorators: [{
|
|
3618
|
+
type: Component,
|
|
3619
|
+
args: [{
|
|
3620
|
+
selector: 'csdk-dashboard-by-id',
|
|
3621
|
+
template,
|
|
3622
|
+
}]
|
|
3623
|
+
}], ctorParameters: function () { return [{ type: SisenseContextService }, { type: ThemeService }]; }, propDecorators: { preactRef: [{
|
|
3624
|
+
type: ViewChild,
|
|
3625
|
+
args: [rootId]
|
|
3626
|
+
}], dashboardOid: [{
|
|
3627
|
+
type: Input
|
|
3628
|
+
}] } });
|
|
3629
|
+
|
|
3630
|
+
/**
|
|
3631
|
+
* An Angular component used for easily rendering a dashboard.
|
|
3632
|
+
*
|
|
3633
|
+
* @example
|
|
3634
|
+
* ```html
|
|
3635
|
+
* <csdk-dashboard
|
|
3636
|
+
* *ngIf="dashboard"
|
|
3637
|
+
* [title]="dashboard!.title"
|
|
3638
|
+
* [layout]="dashboard!.layout"
|
|
3639
|
+
* [widgets]="dashboard!.widgets"
|
|
3640
|
+
* [filters]="dashboard!.filters"
|
|
3641
|
+
* [defaultDataSource]="dashboard!.dataSource"
|
|
3642
|
+
* [widgetFilterOptions]="dashboard!.widgetFilterOptions"
|
|
3643
|
+
* />
|
|
3644
|
+
* ```
|
|
3645
|
+
* ```ts
|
|
3646
|
+
* import { Component } from '@angular/core';
|
|
3647
|
+
* import { type DashboardModel, DashboardService } from '@sisense/sdk-ui-angular';
|
|
3648
|
+
*
|
|
3649
|
+
* @Component({
|
|
3650
|
+
* selector: 'app-dashboard',
|
|
3651
|
+
* templateUrl: './dashboard.component.html',
|
|
3652
|
+
* styleUrls: ['./dashboard.component.scss'],
|
|
3653
|
+
* })
|
|
3654
|
+
* export class DashboardComponent {
|
|
3655
|
+
*
|
|
3656
|
+
* dashboard: DashboardModel | null = null;
|
|
3657
|
+
*
|
|
3658
|
+
* constructor(private dashboardService: DashboardService) {}
|
|
3659
|
+
*
|
|
3660
|
+
* async ngOnInit(): Promise<void> {
|
|
3661
|
+
* this.dashboard = await this.dashboardService.getDashboardModel('60f3e3e3e4b0e3e3e4b0e3e3', { includeWidgets: true, includeFilters: true });
|
|
3662
|
+
* }
|
|
3663
|
+
* ```
|
|
3664
|
+
* @group Fusion Embed
|
|
3665
|
+
* @fusionEmbed
|
|
3666
|
+
* @internal
|
|
3667
|
+
*/
|
|
3668
|
+
class DashboardComponent {
|
|
3669
|
+
/**
|
|
3670
|
+
* Constructor for the `Dashboard` component.
|
|
3671
|
+
*
|
|
3672
|
+
* @param sisenseContextService - Sisense context service
|
|
3673
|
+
* @param themeService - Theme service
|
|
3674
|
+
*/
|
|
3675
|
+
constructor(
|
|
3676
|
+
/**
|
|
3677
|
+
* Sisense context service
|
|
3678
|
+
*
|
|
3679
|
+
* @category Constructor
|
|
3680
|
+
*/
|
|
3681
|
+
sisenseContextService,
|
|
3682
|
+
/**
|
|
3683
|
+
* Theme service
|
|
3684
|
+
*
|
|
3685
|
+
* @category Constructor
|
|
3686
|
+
*/
|
|
3687
|
+
themeService) {
|
|
3688
|
+
this.sisenseContextService = sisenseContextService;
|
|
3689
|
+
this.themeService = themeService;
|
|
3690
|
+
this.componentAdapter = new ComponentAdapter(() => this.createPreactComponent(), [
|
|
3691
|
+
createSisenseContextConnector(this.sisenseContextService),
|
|
3692
|
+
createThemeContextConnector(this.themeService),
|
|
3693
|
+
]);
|
|
3694
|
+
}
|
|
3695
|
+
/**
|
|
3696
|
+
* @internal
|
|
3697
|
+
*/
|
|
3698
|
+
ngAfterViewInit() {
|
|
3699
|
+
this.componentAdapter.render(this.preactRef.nativeElement);
|
|
3700
|
+
}
|
|
3701
|
+
/**
|
|
3702
|
+
* @internal
|
|
3703
|
+
*/
|
|
3704
|
+
ngOnChanges() {
|
|
3705
|
+
if (this.preactRef) {
|
|
3706
|
+
this.componentAdapter.render(this.preactRef.nativeElement);
|
|
3707
|
+
}
|
|
3708
|
+
}
|
|
3709
|
+
createPreactComponent() {
|
|
3710
|
+
const props = {
|
|
3711
|
+
title: this.title,
|
|
3712
|
+
layout: this.layout,
|
|
3713
|
+
widgets: this.widgets,
|
|
3714
|
+
filters: this.filters,
|
|
3715
|
+
defaultDataSource: this.defaultDataSource,
|
|
3716
|
+
widgetFilterOptions: this.widgetFilterOptions,
|
|
3717
|
+
};
|
|
3718
|
+
return createElement(Dashboard, props);
|
|
3719
|
+
}
|
|
3720
|
+
/**
|
|
3721
|
+
* @internal
|
|
3722
|
+
*/
|
|
3723
|
+
ngOnDestroy() {
|
|
3724
|
+
this.componentAdapter.destroy();
|
|
3725
|
+
}
|
|
3726
|
+
}
|
|
3727
|
+
DashboardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DashboardComponent, deps: [{ token: SisenseContextService }, { token: ThemeService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3728
|
+
DashboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DashboardComponent, selector: "csdk-dashboard", inputs: { title: "title", layout: "layout", widgets: "widgets", filters: "filters", defaultDataSource: "defaultDataSource", widgetFilterOptions: "widgetFilterOptions" }, viewQueries: [{ propertyName: "preactRef", first: true, predicate: ["preact"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "\n <div #preact style=\"width: 100%; height: 100%\"></div>\n", isInline: true });
|
|
3729
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DashboardComponent, decorators: [{
|
|
3730
|
+
type: Component,
|
|
3731
|
+
args: [{
|
|
3732
|
+
selector: 'csdk-dashboard',
|
|
3733
|
+
template,
|
|
3734
|
+
}]
|
|
3735
|
+
}], ctorParameters: function () { return [{ type: SisenseContextService }, { type: ThemeService }]; }, propDecorators: { preactRef: [{
|
|
3736
|
+
type: ViewChild,
|
|
3737
|
+
args: [rootId]
|
|
3738
|
+
}], title: [{
|
|
3739
|
+
type: Input
|
|
3740
|
+
}], layout: [{
|
|
3741
|
+
type: Input
|
|
3742
|
+
}], widgets: [{
|
|
3743
|
+
type: Input
|
|
3744
|
+
}], filters: [{
|
|
3745
|
+
type: Input
|
|
3746
|
+
}], defaultDataSource: [{
|
|
3747
|
+
type: Input
|
|
3748
|
+
}], widgetFilterOptions: [{
|
|
3749
|
+
type: Input
|
|
3750
|
+
}] } });
|
|
3751
|
+
|
|
3387
3752
|
/**
|
|
3388
3753
|
* Drilldown Breadcrumbs Component
|
|
3389
3754
|
*
|
|
@@ -3604,6 +3969,7 @@ SdkUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
3604
3969
|
ColumnChartComponent,
|
|
3605
3970
|
BarChartComponent,
|
|
3606
3971
|
AreaChartComponent,
|
|
3972
|
+
AreaRangeChartComponent,
|
|
3607
3973
|
LineChartComponent,
|
|
3608
3974
|
IndicatorChartComponent,
|
|
3609
3975
|
ScatterChartComponent,
|
|
@@ -3622,13 +3988,16 @@ SdkUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
3622
3988
|
BoxplotChartComponent,
|
|
3623
3989
|
ScattermapChartComponent,
|
|
3624
3990
|
AreamapChartComponent,
|
|
3625
|
-
PivotTableComponent
|
|
3991
|
+
PivotTableComponent,
|
|
3992
|
+
DashboardByIdComponent,
|
|
3993
|
+
DashboardComponent], imports: [CommonModule, DecoratorsModule], exports: [BasicMemberFilterTileComponent,
|
|
3626
3994
|
ChartComponent,
|
|
3627
3995
|
TableComponent,
|
|
3628
3996
|
ChartWidgetComponent,
|
|
3629
3997
|
ColumnChartComponent,
|
|
3630
3998
|
BarChartComponent,
|
|
3631
3999
|
AreaChartComponent,
|
|
4000
|
+
AreaRangeChartComponent,
|
|
3632
4001
|
LineChartComponent,
|
|
3633
4002
|
IndicatorChartComponent,
|
|
3634
4003
|
ScatterChartComponent,
|
|
@@ -3647,7 +4016,9 @@ SdkUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
3647
4016
|
BoxplotChartComponent,
|
|
3648
4017
|
ScattermapChartComponent,
|
|
3649
4018
|
AreamapChartComponent,
|
|
3650
|
-
PivotTableComponent
|
|
4019
|
+
PivotTableComponent,
|
|
4020
|
+
DashboardByIdComponent,
|
|
4021
|
+
DashboardComponent] });
|
|
3651
4022
|
SdkUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SdkUiModule, imports: [CommonModule, DecoratorsModule] });
|
|
3652
4023
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SdkUiModule, decorators: [{
|
|
3653
4024
|
type: NgModule,
|
|
@@ -3660,6 +4031,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3660
4031
|
ColumnChartComponent,
|
|
3661
4032
|
BarChartComponent,
|
|
3662
4033
|
AreaChartComponent,
|
|
4034
|
+
AreaRangeChartComponent,
|
|
3663
4035
|
LineChartComponent,
|
|
3664
4036
|
IndicatorChartComponent,
|
|
3665
4037
|
ScatterChartComponent,
|
|
@@ -3679,6 +4051,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3679
4051
|
ScattermapChartComponent,
|
|
3680
4052
|
AreamapChartComponent,
|
|
3681
4053
|
PivotTableComponent,
|
|
4054
|
+
DashboardByIdComponent,
|
|
4055
|
+
DashboardComponent,
|
|
3682
4056
|
],
|
|
3683
4057
|
imports: [CommonModule, DecoratorsModule],
|
|
3684
4058
|
exports: [
|
|
@@ -3689,6 +4063,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3689
4063
|
ColumnChartComponent,
|
|
3690
4064
|
BarChartComponent,
|
|
3691
4065
|
AreaChartComponent,
|
|
4066
|
+
AreaRangeChartComponent,
|
|
3692
4067
|
LineChartComponent,
|
|
3693
4068
|
IndicatorChartComponent,
|
|
3694
4069
|
ScatterChartComponent,
|
|
@@ -3708,6 +4083,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3708
4083
|
ScattermapChartComponent,
|
|
3709
4084
|
AreamapChartComponent,
|
|
3710
4085
|
PivotTableComponent,
|
|
4086
|
+
DashboardByIdComponent,
|
|
4087
|
+
DashboardComponent,
|
|
3711
4088
|
],
|
|
3712
4089
|
providers: [],
|
|
3713
4090
|
}]
|
|
@@ -3723,8 +4100,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3723
4100
|
* @packageDocumentation
|
|
3724
4101
|
* @groupDescription Charts
|
|
3725
4102
|
* Angular components for charts
|
|
4103
|
+
* @groupDescription Chart Utilities
|
|
4104
|
+
* Utilities to be used with charts
|
|
4105
|
+
* @groupDescription Data Grids
|
|
4106
|
+
* Angular components for data grids
|
|
4107
|
+
* @groupDescription Drilldown
|
|
4108
|
+
* Angular components for creating drilldown experiences
|
|
4109
|
+
* @groupDescription Filter Tiles
|
|
4110
|
+
* Angular filter tile components
|
|
4111
|
+
* @groupDescription Contexts
|
|
4112
|
+
* Angular context modules, services, and variables
|
|
4113
|
+
* @groupDescription Queries
|
|
4114
|
+
* Angular query service
|
|
3726
4115
|
* @groupDescription Fusion Embed
|
|
3727
|
-
* Fusion
|
|
4116
|
+
* Angular modules, services, and components for working with Fusion Embed dashboards, widgets, queries, and formulas
|
|
3728
4117
|
* @groupDescription Interfaces
|
|
3729
4118
|
* TypeScript interfaces for components and services listed above
|
|
3730
4119
|
* @groupDescription Type Aliases
|
|
@@ -3735,5 +4124,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3735
4124
|
* Generated bundle index. Do not edit.
|
|
3736
4125
|
*/
|
|
3737
4126
|
|
|
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 };
|
|
4127
|
+
export { AreaChartComponent, AreaRangeChartComponent, AreamapChartComponent, BarChartComponent, BasicMemberFilterTileComponent, BoxplotChartComponent, ChartComponent, ChartWidgetComponent, ColumnChartComponent, ContextMenuComponent, DashboardByIdComponent, DashboardComponent, 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
4128
|
//# sourceMappingURL=sisense-sdk-ui-angular.mjs.map
|