@sisense/sdk-ui-angular 1.19.0 → 1.20.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/dashboard/dashboard-by-id.component.mjs +2 -2
- package/dist/esm2020/lib/components/dashboard/dashboard.component.mjs +18 -14
- package/dist/esm2020/lib/components/widgets/chart-widget.component.mjs +2 -2
- package/dist/esm2020/lib/components/widgets/drilldown-widget.component.mjs +1 -1
- package/dist/esm2020/lib/sdk-ui-core-exports.mjs +2 -2
- package/dist/esm2020/lib/services/plugins.service.mjs +1 -1
- package/dist/esm2020/public-api.mjs +3 -1
- package/dist/esm2020/version.mjs +2 -2
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs +23 -17
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +23 -17
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/lib/components/dashboard/dashboard-by-id.component.d.ts +1 -1
- package/dist/lib/components/dashboard/dashboard.component.d.ts +20 -13
- package/dist/lib/components/widgets/chart-widget.component.d.ts +1 -1
- package/dist/lib/components/widgets/drilldown-widget.component.d.ts +1 -1
- package/dist/lib/sdk-ui-core-exports.d.ts +2 -2
- package/dist/lib/services/plugins.service.d.ts +4 -4
- package/dist/package.json +1 -1
- package/dist/public-api.d.ts +2 -0
- package/dist/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -2,7 +2,7 @@ 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
4
|
import { ComponentAdapter, createElement, BasicMemberFilterTile, createContextProviderRenderer, CustomThemeProvider, CustomSisenseContextProvider, CustomPluginsProvider, 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
|
-
export { boxWhiskerProcessResult } from '@sisense/sdk-ui-preact';
|
|
5
|
+
export { boxWhiskerProcessResult, dashboardModelTranslator, widgetModelTranslator } from '@sisense/sdk-ui-preact';
|
|
6
6
|
import { map, BehaviorSubject } from 'rxjs';
|
|
7
7
|
import { __decorate } from 'tslib';
|
|
8
8
|
import merge from 'ts-deepmerge';
|
|
@@ -415,7 +415,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
415
415
|
}]
|
|
416
416
|
}], ctorParameters: function () { return [{ type: SisenseContextService }]; } });
|
|
417
417
|
|
|
418
|
-
var packageVersion = '1.
|
|
418
|
+
var packageVersion = '1.20.0';
|
|
419
419
|
|
|
420
420
|
function Trackable(target, propertyKey, descriptor) {
|
|
421
421
|
const originalMethod = descriptor.value;
|
|
@@ -3519,7 +3519,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3519
3519
|
* ```
|
|
3520
3520
|
* <img src="media://angular-chart-widget-example.png" width="800px" />
|
|
3521
3521
|
*
|
|
3522
|
-
* @group
|
|
3522
|
+
* @group Dashboarding
|
|
3523
3523
|
*/
|
|
3524
3524
|
class ChartWidgetComponent {
|
|
3525
3525
|
constructor(sisenseContextService, themeService) {
|
|
@@ -3648,7 +3648,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3648
3648
|
* ```
|
|
3649
3649
|
* @group Fusion Embed
|
|
3650
3650
|
* @fusionEmbed
|
|
3651
|
-
* @
|
|
3651
|
+
* @beta
|
|
3652
3652
|
*/
|
|
3653
3653
|
class DashboardByIdComponent {
|
|
3654
3654
|
/**
|
|
@@ -3738,16 +3738,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3738
3738
|
* <csdk-dashboard
|
|
3739
3739
|
* *ngIf="dashboard"
|
|
3740
3740
|
* [title]="dashboard!.title"
|
|
3741
|
-
* [
|
|
3741
|
+
* [layoutOptions]="dashboard!.layoutOptions"
|
|
3742
3742
|
* [widgets]="dashboard!.widgets"
|
|
3743
3743
|
* [filters]="dashboard!.filters"
|
|
3744
3744
|
* [defaultDataSource]="dashboard!.dataSource"
|
|
3745
|
-
* [
|
|
3745
|
+
* [widgetsOptions]="dashboard!.widgetsOptions"
|
|
3746
3746
|
* />
|
|
3747
3747
|
* ```
|
|
3748
|
+
*
|
|
3748
3749
|
* ```ts
|
|
3749
3750
|
* import { Component } from '@angular/core';
|
|
3750
|
-
* import { type
|
|
3751
|
+
* import { type DashboardProps, DashboardService } from '@sisense/sdk-ui-angular';
|
|
3751
3752
|
*
|
|
3752
3753
|
* @Component({
|
|
3753
3754
|
* selector: 'app-dashboard',
|
|
@@ -3756,17 +3757,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3756
3757
|
* })
|
|
3757
3758
|
* export class DashboardComponent {
|
|
3758
3759
|
*
|
|
3759
|
-
* dashboard:
|
|
3760
|
+
* dashboard: DashboardProps | null = null;
|
|
3760
3761
|
*
|
|
3761
3762
|
* constructor(private dashboardService: DashboardService) {}
|
|
3762
3763
|
*
|
|
3763
3764
|
* async ngOnInit(): Promise<void> {
|
|
3764
|
-
*
|
|
3765
|
+
* const dashboardModel = await this.dashboardService.getDashboardModel('60f3e3e3e4b0e3e3e4b0e3e3', { includeWidgets: true, includeFilters: true });
|
|
3766
|
+
* this.dashboardProps = dashboardModelTranslator.toDashboardProps(dashboardModel);
|
|
3765
3767
|
* }
|
|
3766
3768
|
* ```
|
|
3767
|
-
* @group
|
|
3768
|
-
* @
|
|
3769
|
-
* @alpha
|
|
3769
|
+
* @group Dashboarding
|
|
3770
|
+
* @beta
|
|
3770
3771
|
*/
|
|
3771
3772
|
class DashboardComponent {
|
|
3772
3773
|
/**
|
|
@@ -3812,11 +3813,12 @@ class DashboardComponent {
|
|
|
3812
3813
|
createPreactComponent() {
|
|
3813
3814
|
const props = {
|
|
3814
3815
|
title: this.title,
|
|
3815
|
-
|
|
3816
|
+
layoutOptions: this.layoutOptions,
|
|
3817
|
+
config: this.config,
|
|
3816
3818
|
widgets: this.widgets,
|
|
3817
3819
|
filters: this.filters,
|
|
3818
3820
|
defaultDataSource: this.defaultDataSource,
|
|
3819
|
-
|
|
3821
|
+
widgetsOptions: this.widgetsOptions,
|
|
3820
3822
|
styleOptions: this.styleOptions,
|
|
3821
3823
|
};
|
|
3822
3824
|
return createElement(Dashboard, props);
|
|
@@ -3829,7 +3831,7 @@ class DashboardComponent {
|
|
|
3829
3831
|
}
|
|
3830
3832
|
}
|
|
3831
3833
|
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 });
|
|
3832
|
-
DashboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DashboardComponent, selector: "csdk-dashboard", inputs: { title: "title",
|
|
3834
|
+
DashboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DashboardComponent, selector: "csdk-dashboard", inputs: { title: "title", layoutOptions: "layoutOptions", config: "config", widgets: "widgets", filters: "filters", defaultDataSource: "defaultDataSource", widgetsOptions: "widgetsOptions", styleOptions: "styleOptions" }, 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 });
|
|
3833
3835
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DashboardComponent, decorators: [{
|
|
3834
3836
|
type: Component,
|
|
3835
3837
|
args: [{
|
|
@@ -3841,7 +3843,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3841
3843
|
args: [rootId]
|
|
3842
3844
|
}], title: [{
|
|
3843
3845
|
type: Input
|
|
3844
|
-
}],
|
|
3846
|
+
}], layoutOptions: [{
|
|
3847
|
+
type: Input
|
|
3848
|
+
}], config: [{
|
|
3845
3849
|
type: Input
|
|
3846
3850
|
}], widgets: [{
|
|
3847
3851
|
type: Input
|
|
@@ -3849,7 +3853,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3849
3853
|
type: Input
|
|
3850
3854
|
}], defaultDataSource: [{
|
|
3851
3855
|
type: Input
|
|
3852
|
-
}],
|
|
3856
|
+
}], widgetsOptions: [{
|
|
3853
3857
|
type: Input
|
|
3854
3858
|
}], styleOptions: [{
|
|
3855
3859
|
type: Input
|
|
@@ -4218,6 +4222,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4218
4222
|
* Angular context modules, services, and variables
|
|
4219
4223
|
* @groupDescription Queries
|
|
4220
4224
|
* Angular query service
|
|
4225
|
+
* @groupDescription Dashboarding
|
|
4226
|
+
* Angular modules, services, and components for composing dashboards
|
|
4221
4227
|
* @groupDescription Fusion Embed
|
|
4222
4228
|
* Angular modules, services, and components for working with Fusion Embed dashboards, widgets, queries, and formulas
|
|
4223
4229
|
* @groupDescription Interfaces
|