@sisense/sdk-ui-angular 1.22.0 → 1.23.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 +4 -2
- package/dist/esm2020/lib/components/widgets/drilldown-widget.component.mjs +7 -4
- package/dist/esm2020/lib/components/widgets/index.mjs +2 -1
- package/dist/esm2020/lib/components/widgets/widget-by-id.component.mjs +114 -0
- package/dist/esm2020/lib/sdk-ui-core-exports.mjs +1 -1
- package/dist/esm2020/lib/sdk-ui.module.mjs +6 -2
- package/dist/esm2020/version.mjs +2 -2
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs +123 -7
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +123 -7
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/lib/components/widgets/drilldown-widget.component.d.ts +12 -4
- package/dist/lib/components/widgets/index.d.ts +1 -0
- package/dist/lib/components/widgets/widget-by-id.component.d.ts +116 -0
- package/dist/lib/sdk-ui-core-exports.d.ts +1 -1
- package/dist/lib/sdk-ui.module.d.ts +16 -15
- package/dist/package.json +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +5 -5
|
@@ -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, CustomPluginsProvider, createClientApplication, executeQuery, executeQueryByWidgetId, getDashboardModel, getDashboardModels, getWidgetModel, getDefaultThemeSettings, getThemeSettingsByOid, MemberFilterTile, DateRangeFilterTile, CriteriaFilterTile, Chart, Table, PivotTable, TableWidget, DashboardWidget, createWrapperElementHandler, createWrapperElement, DrilldownWidget, createComponentRenderer, ChartWidget, DashboardById, Dashboard, DrilldownBreadcrumbs, ContextMenu } from '@sisense/sdk-ui-preact';
|
|
4
|
+
import { ComponentAdapter, createElement, BasicMemberFilterTile, createContextProviderRenderer, CustomThemeProvider, CustomSisenseContextProvider, CustomPluginsProvider, createClientApplication, executeQuery, executeQueryByWidgetId, getDashboardModel, getDashboardModels, getWidgetModel, getDefaultThemeSettings, getThemeSettingsByOid, MemberFilterTile, DateRangeFilterTile, CriteriaFilterTile, Chart, Table, PivotTable, TableWidget, DashboardWidget, WidgetById, createWrapperElementHandler, createWrapperElement, DrilldownWidget, createComponentRenderer, ChartWidget, DashboardById, Dashboard, DrilldownBreadcrumbs, ContextMenu } from '@sisense/sdk-ui-preact';
|
|
5
5
|
export { boxWhiskerProcessResult, dashboardHelpers, dashboardModelTranslator, widgetModelTranslator } from '@sisense/sdk-ui-preact';
|
|
6
6
|
import { map, BehaviorSubject } from 'rxjs';
|
|
7
7
|
import { __decorate } from 'tslib';
|
|
@@ -111,13 +111,15 @@ const createSisenseContextConnector = (sisenseContextService) => {
|
|
|
111
111
|
return {
|
|
112
112
|
app,
|
|
113
113
|
isInitialized: true,
|
|
114
|
-
showRuntimeErrors,
|
|
115
114
|
tracking: {
|
|
116
115
|
// if tracking is configured in appConfig, use it
|
|
117
116
|
// if none is set, default to true
|
|
118
117
|
enabled: appConfig?.trackingConfig?.enabled ?? true,
|
|
119
118
|
packageName: 'sdk-ui-angular',
|
|
120
119
|
},
|
|
120
|
+
errorBoundary: {
|
|
121
|
+
showErrorBox: showRuntimeErrors ?? true,
|
|
122
|
+
},
|
|
121
123
|
};
|
|
122
124
|
},
|
|
123
125
|
renderContextProvider: createContextProviderRenderer(CustomSisenseContextProvider),
|
|
@@ -413,7 +415,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
413
415
|
}]
|
|
414
416
|
}], ctorParameters: function () { return [{ type: SisenseContextService }]; } });
|
|
415
417
|
|
|
416
|
-
var packageVersion = '1.
|
|
418
|
+
var packageVersion = '1.23.0';
|
|
417
419
|
|
|
418
420
|
function Trackable(target, propertyKey, descriptor) {
|
|
419
421
|
const originalMethod = descriptor.value;
|
|
@@ -3441,6 +3443,113 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3441
3443
|
type: Input
|
|
3442
3444
|
}] } });
|
|
3443
3445
|
|
|
3446
|
+
/**
|
|
3447
|
+
* The `WidgetById` component, which is a thin wrapper on {@link ChartWidgetComponent},
|
|
3448
|
+
* is used to render a widget created in a Sisense Fusion instance.
|
|
3449
|
+
*
|
|
3450
|
+
* To learn more about using Sisense Fusion Widgets in Compose SDK, see
|
|
3451
|
+
* [Sisense Fusion Widgets](https://sisense.dev/guides/sdk/guides/charts/guide-fusion-widgets.html).
|
|
3452
|
+
*
|
|
3453
|
+
* @example
|
|
3454
|
+
* ```html
|
|
3455
|
+
* <csdk-widget-by-id
|
|
3456
|
+
* [widgetOid]="widgetOid"
|
|
3457
|
+
* [dashboardOid]="dashboardOid"
|
|
3458
|
+
* [includeDashboardFilters]="true"
|
|
3459
|
+
* />
|
|
3460
|
+
* ```
|
|
3461
|
+
* ```ts
|
|
3462
|
+
* import { Component } from '@angular/core';
|
|
3463
|
+
*
|
|
3464
|
+
* @Component({
|
|
3465
|
+
* selector: 'app-widgets',
|
|
3466
|
+
* templateUrl: './widgets.component.html',
|
|
3467
|
+
* styleUrls: ['./widgets.component.scss'],
|
|
3468
|
+
* })
|
|
3469
|
+
* export class WidgetsComponent {
|
|
3470
|
+
* widgetOid: string = '60f3e3e3e4b0e3e3e4b0e3e3';
|
|
3471
|
+
* dashboardOid: string = '60f3e3e3e4b0e3e3e4b0e3e3';
|
|
3472
|
+
* }
|
|
3473
|
+
* ```
|
|
3474
|
+
* @group Fusion Assets
|
|
3475
|
+
* @fusionEmbed
|
|
3476
|
+
*/
|
|
3477
|
+
class WidgetByIdComponent {
|
|
3478
|
+
constructor(sisenseContextService, themeService) {
|
|
3479
|
+
this.sisenseContextService = sisenseContextService;
|
|
3480
|
+
this.themeService = themeService;
|
|
3481
|
+
this.componentAdapter = new ComponentAdapter(() => this.createPreactComponent(), [
|
|
3482
|
+
createSisenseContextConnector(this.sisenseContextService),
|
|
3483
|
+
createThemeContextConnector(this.themeService),
|
|
3484
|
+
]);
|
|
3485
|
+
}
|
|
3486
|
+
/** @internal */
|
|
3487
|
+
ngAfterViewInit() {
|
|
3488
|
+
this.componentAdapter.render(this.preactRef.nativeElement);
|
|
3489
|
+
}
|
|
3490
|
+
/** @internal */
|
|
3491
|
+
ngOnChanges() {
|
|
3492
|
+
if (this.preactRef) {
|
|
3493
|
+
this.componentAdapter.render(this.preactRef.nativeElement);
|
|
3494
|
+
}
|
|
3495
|
+
}
|
|
3496
|
+
/** @internal */
|
|
3497
|
+
createPreactComponent() {
|
|
3498
|
+
const props = {
|
|
3499
|
+
widgetOid: this.widgetOid,
|
|
3500
|
+
dashboardOid: this.dashboardOid,
|
|
3501
|
+
filters: this.filters,
|
|
3502
|
+
highlights: this.highlights,
|
|
3503
|
+
filtersMergeStrategy: this.filtersMergeStrategy,
|
|
3504
|
+
includeDashboardFilters: this.includeDashboardFilters,
|
|
3505
|
+
title: this.title,
|
|
3506
|
+
description: this.description,
|
|
3507
|
+
styleOptions: this.styleOptions,
|
|
3508
|
+
highlightSelectionDisabled: this.highlightSelectionDisabled,
|
|
3509
|
+
drilldownOptions: this.drilldownOptions,
|
|
3510
|
+
};
|
|
3511
|
+
return createElement(WidgetById, props);
|
|
3512
|
+
}
|
|
3513
|
+
/** @internal */
|
|
3514
|
+
ngOnDestroy() {
|
|
3515
|
+
this.componentAdapter.destroy();
|
|
3516
|
+
}
|
|
3517
|
+
}
|
|
3518
|
+
WidgetByIdComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WidgetByIdComponent, deps: [{ token: SisenseContextService }, { token: ThemeService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3519
|
+
WidgetByIdComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WidgetByIdComponent, selector: "csdk-widget-by-id", inputs: { widgetOid: "widgetOid", dashboardOid: "dashboardOid", filters: "filters", highlights: "highlights", filtersMergeStrategy: "filtersMergeStrategy", includeDashboardFilters: "includeDashboardFilters", title: "title", description: "description", styleOptions: "styleOptions", highlightSelectionDisabled: "highlightSelectionDisabled", drilldownOptions: "drilldownOptions" }, 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 });
|
|
3520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WidgetByIdComponent, decorators: [{
|
|
3521
|
+
type: Component,
|
|
3522
|
+
args: [{
|
|
3523
|
+
selector: 'csdk-widget-by-id',
|
|
3524
|
+
template,
|
|
3525
|
+
}]
|
|
3526
|
+
}], ctorParameters: function () { return [{ type: SisenseContextService }, { type: ThemeService }]; }, propDecorators: { preactRef: [{
|
|
3527
|
+
type: ViewChild,
|
|
3528
|
+
args: [rootId]
|
|
3529
|
+
}], widgetOid: [{
|
|
3530
|
+
type: Input
|
|
3531
|
+
}], dashboardOid: [{
|
|
3532
|
+
type: Input
|
|
3533
|
+
}], filters: [{
|
|
3534
|
+
type: Input
|
|
3535
|
+
}], highlights: [{
|
|
3536
|
+
type: Input
|
|
3537
|
+
}], filtersMergeStrategy: [{
|
|
3538
|
+
type: Input
|
|
3539
|
+
}], includeDashboardFilters: [{
|
|
3540
|
+
type: Input
|
|
3541
|
+
}], title: [{
|
|
3542
|
+
type: Input
|
|
3543
|
+
}], description: [{
|
|
3544
|
+
type: Input
|
|
3545
|
+
}], styleOptions: [{
|
|
3546
|
+
type: Input
|
|
3547
|
+
}], highlightSelectionDisabled: [{
|
|
3548
|
+
type: Input
|
|
3549
|
+
}], drilldownOptions: [{
|
|
3550
|
+
type: Input
|
|
3551
|
+
}] } });
|
|
3552
|
+
|
|
3444
3553
|
/**
|
|
3445
3554
|
* An Angular component designed to add drilldown functionality to any type of chart.
|
|
3446
3555
|
*
|
|
@@ -3480,7 +3589,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3480
3589
|
* drilldownResult?: CustomDrilldownResult;
|
|
3481
3590
|
*
|
|
3482
3591
|
* drilldown = {
|
|
3483
|
-
*
|
|
3592
|
+
* drilldownPaths: [DM.Patients.Gender, DM.Admissions.Surgical_Procedure],
|
|
3484
3593
|
* initialDimension: DM.Divisions.Divison_name,
|
|
3485
3594
|
* drilldownChange: (drilldownResult: CustomDrilldownResult) => {
|
|
3486
3595
|
* this.drilldownResult = drilldownResult;
|
|
@@ -3494,7 +3603,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3494
3603
|
* ```html
|
|
3495
3604
|
* <!--Component HTML template in .component.html-->
|
|
3496
3605
|
* <csdk-drilldown-widget
|
|
3497
|
-
* [
|
|
3606
|
+
* [drilldownPaths]="drilldown.drilldownPaths"
|
|
3498
3607
|
* [initialDimension]="drilldown.initialDimension"
|
|
3499
3608
|
* (drilldownResultChange)="drilldown.drilldownChange($event)"
|
|
3500
3609
|
* >
|
|
@@ -3560,6 +3669,7 @@ class DrilldownWidgetComponent {
|
|
|
3560
3669
|
createPreactComponent() {
|
|
3561
3670
|
const props = {
|
|
3562
3671
|
drilldownDimensions: this.drilldownDimensions,
|
|
3672
|
+
drilldownPaths: this.drilldownPaths,
|
|
3563
3673
|
initialDimension: this.initialDimension,
|
|
3564
3674
|
config: {
|
|
3565
3675
|
...this.config,
|
|
@@ -3590,7 +3700,7 @@ class DrilldownWidgetComponent {
|
|
|
3590
3700
|
}
|
|
3591
3701
|
}
|
|
3592
3702
|
DrilldownWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DrilldownWidgetComponent, deps: [{ token: SisenseContextService }, { token: ThemeService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3593
|
-
DrilldownWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DrilldownWidgetComponent, selector: "csdk-drilldown-widget", inputs: { drilldownDimensions: "drilldownDimensions", initialDimension: "initialDimension", config: "config" }, outputs: { drilldownResultChange: "drilldownResultChange" }, viewQueries: [{ propertyName: "preactRef", first: true, predicate: ["preact"], descendants: true }, { propertyName: "preactContentRef", first: true, predicate: ["preactContent"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "\n <div #preact style=\"width: 100%; height: 100%\">\n <div #preactContent style=\"width: 100%; height: 100%\">\n <ng-content></ng-content>\n </div>\n </div>\n", isInline: true });
|
|
3703
|
+
DrilldownWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DrilldownWidgetComponent, selector: "csdk-drilldown-widget", inputs: { drilldownDimensions: "drilldownDimensions", drilldownPaths: "drilldownPaths", initialDimension: "initialDimension", config: "config" }, outputs: { drilldownResultChange: "drilldownResultChange" }, viewQueries: [{ propertyName: "preactRef", first: true, predicate: ["preact"], descendants: true }, { propertyName: "preactContentRef", first: true, predicate: ["preactContent"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "\n <div #preact style=\"width: 100%; height: 100%\">\n <div #preactContent style=\"width: 100%; height: 100%\">\n <ng-content></ng-content>\n </div>\n </div>\n", isInline: true });
|
|
3594
3704
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DrilldownWidgetComponent, decorators: [{
|
|
3595
3705
|
type: Component,
|
|
3596
3706
|
args: [{
|
|
@@ -3605,6 +3715,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3605
3715
|
args: [rootContentId]
|
|
3606
3716
|
}], drilldownDimensions: [{
|
|
3607
3717
|
type: Input
|
|
3718
|
+
}], drilldownPaths: [{
|
|
3719
|
+
type: Input
|
|
3608
3720
|
}], initialDimension: [{
|
|
3609
3721
|
type: Input
|
|
3610
3722
|
}], config: [{
|
|
@@ -4247,6 +4359,7 @@ SdkUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
4247
4359
|
SunburstChartComponent,
|
|
4248
4360
|
TableWidgetComponent,
|
|
4249
4361
|
DashboardWidgetComponent,
|
|
4362
|
+
WidgetByIdComponent,
|
|
4250
4363
|
MemberFilterTileComponent,
|
|
4251
4364
|
DrilldownWidgetComponent,
|
|
4252
4365
|
DateRangeFilterTileComponent,
|
|
@@ -4276,6 +4389,7 @@ SdkUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
4276
4389
|
SunburstChartComponent,
|
|
4277
4390
|
TableWidgetComponent,
|
|
4278
4391
|
DashboardWidgetComponent,
|
|
4392
|
+
WidgetByIdComponent,
|
|
4279
4393
|
MemberFilterTileComponent,
|
|
4280
4394
|
DrilldownWidgetComponent,
|
|
4281
4395
|
DateRangeFilterTileComponent,
|
|
@@ -4311,6 +4425,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4311
4425
|
SunburstChartComponent,
|
|
4312
4426
|
TableWidgetComponent,
|
|
4313
4427
|
DashboardWidgetComponent,
|
|
4428
|
+
WidgetByIdComponent,
|
|
4314
4429
|
MemberFilterTileComponent,
|
|
4315
4430
|
DrilldownWidgetComponent,
|
|
4316
4431
|
DateRangeFilterTileComponent,
|
|
@@ -4344,6 +4459,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4344
4459
|
SunburstChartComponent,
|
|
4345
4460
|
TableWidgetComponent,
|
|
4346
4461
|
DashboardWidgetComponent,
|
|
4462
|
+
WidgetByIdComponent,
|
|
4347
4463
|
MemberFilterTileComponent,
|
|
4348
4464
|
DrilldownWidgetComponent,
|
|
4349
4465
|
DateRangeFilterTileComponent,
|
|
@@ -4395,5 +4511,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4395
4511
|
* Generated bundle index. Do not edit.
|
|
4396
4512
|
*/
|
|
4397
4513
|
|
|
4398
|
-
export { AreaChartComponent, AreaRangeChartComponent, AreamapChartComponent, BarChartComponent, BasicMemberFilterTileComponent, BoxplotChartComponent, ChartComponent, ChartWidgetComponent, ColumnChartComponent, ContextMenuComponent, CriteriaFilterTileComponent, DashboardByIdComponent, DashboardComponent, DashboardService, DashboardWidgetComponent, DateRangeFilterTileComponent, DrilldownBreadcrumbsComponent, DrilldownWidgetComponent, FunnelChartComponent, IndicatorChartComponent, LineChartComponent, MemberFilterTileComponent, PieChartComponent, PivotTableComponent, PluginsService, PolarChartComponent, QueryService, SISENSE_CONTEXT_CONFIG_TOKEN, ScatterChartComponent, ScattermapChartComponent, SdkUiModule, SisenseContextService, SunburstChartComponent, THEME_CONFIG_TOKEN, TableComponent, TableWidgetComponent, ThemeService, TreemapChartComponent, WidgetService };
|
|
4514
|
+
export { AreaChartComponent, AreaRangeChartComponent, AreamapChartComponent, BarChartComponent, BasicMemberFilterTileComponent, BoxplotChartComponent, ChartComponent, ChartWidgetComponent, ColumnChartComponent, ContextMenuComponent, CriteriaFilterTileComponent, DashboardByIdComponent, DashboardComponent, DashboardService, DashboardWidgetComponent, DateRangeFilterTileComponent, DrilldownBreadcrumbsComponent, DrilldownWidgetComponent, FunnelChartComponent, IndicatorChartComponent, LineChartComponent, MemberFilterTileComponent, PieChartComponent, PivotTableComponent, PluginsService, PolarChartComponent, QueryService, SISENSE_CONTEXT_CONFIG_TOKEN, ScatterChartComponent, ScattermapChartComponent, SdkUiModule, SisenseContextService, SunburstChartComponent, THEME_CONFIG_TOKEN, TableComponent, TableWidgetComponent, ThemeService, TreemapChartComponent, WidgetByIdComponent, WidgetService };
|
|
4399
4515
|
//# sourceMappingURL=sisense-sdk-ui-angular.mjs.map
|