@sisense/sdk-ui-angular 1.22.0 → 1.24.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/filters/date-range-filter-tile.component.mjs +2 -2
- package/dist/esm2020/lib/components/filters/index.mjs +2 -1
- package/dist/esm2020/lib/components/filters/relative-date-filter-tile.component.mjs +133 -0
- 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 +10 -2
- package/dist/esm2020/lib/services/hierarchy.service.mjs +40 -0
- package/dist/esm2020/lib/services/index.mjs +2 -1
- package/dist/esm2020/lib/services/widget.service.mjs +2 -2
- package/dist/esm2020/version.mjs +2 -2
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs +289 -8
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +287 -8
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/lib/components/filters/date-range-filter-tile.component.d.ts +1 -1
- package/dist/lib/components/filters/index.d.ts +1 -0
- package/dist/lib/components/filters/relative-date-filter-tile.component.d.ts +120 -0
- 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 +17 -15
- package/dist/lib/services/hierarchy.service.d.ts +27 -0
- package/dist/lib/services/index.d.ts +1 -0
- package/dist/lib/services/widget.service.d.ts +6 -1
- 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, getHierarchyModels, getDefaultThemeSettings, getThemeSettingsByOid, MemberFilterTile, DateRangeFilterTile, RelativeDateFilterTile, 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),
|
|
@@ -397,6 +399,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
397
399
|
}]
|
|
398
400
|
}], ctorParameters: function () { return [{ type: SisenseContextService }]; } });
|
|
399
401
|
|
|
402
|
+
/**
|
|
403
|
+
* Service for working with Sisense Fusion hierarchies.
|
|
404
|
+
*
|
|
405
|
+
* @group Fusion Assets
|
|
406
|
+
* @fusionEmbed
|
|
407
|
+
*/
|
|
408
|
+
let HierarchyService = class HierarchyService {
|
|
409
|
+
constructor(sisenseContextService) {
|
|
410
|
+
this.sisenseContextService = sisenseContextService;
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Retrieves existing hierarchy models from the Sisense instance.
|
|
414
|
+
*
|
|
415
|
+
* @param params - Parameters to identify the target hierarchy models
|
|
416
|
+
* @returns Hierarchy models array
|
|
417
|
+
*/
|
|
418
|
+
async getHierarchyModels(params) {
|
|
419
|
+
const app = await this.sisenseContextService.getApp();
|
|
420
|
+
return getHierarchyModels(app.httpClient, params, app.defaultDataSource);
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
HierarchyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HierarchyService, deps: [{ token: SisenseContextService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
424
|
+
HierarchyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HierarchyService, providedIn: 'root' });
|
|
425
|
+
HierarchyService = __decorate([
|
|
426
|
+
TrackableService(['getHierarchyModels'])
|
|
427
|
+
], HierarchyService);
|
|
428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HierarchyService, decorators: [{
|
|
429
|
+
type: Injectable,
|
|
430
|
+
args: [{
|
|
431
|
+
providedIn: 'root',
|
|
432
|
+
}]
|
|
433
|
+
}], ctorParameters: function () { return [{ type: SisenseContextService }]; } });
|
|
434
|
+
|
|
400
435
|
class DecoratorsModule {
|
|
401
436
|
constructor(sisenseContextService) {
|
|
402
437
|
DecoratorsModule.sisenseContextService = sisenseContextService;
|
|
@@ -413,7 +448,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
413
448
|
}]
|
|
414
449
|
}], ctorParameters: function () { return [{ type: SisenseContextService }]; } });
|
|
415
450
|
|
|
416
|
-
var packageVersion = '1.
|
|
451
|
+
var packageVersion = '1.24.0';
|
|
417
452
|
|
|
418
453
|
function Trackable(target, propertyKey, descriptor) {
|
|
419
454
|
const originalMethod = descriptor.value;
|
|
@@ -678,7 +713,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
678
713
|
* @example
|
|
679
714
|
* ```html
|
|
680
715
|
* <csdk-date-range-filter-tile
|
|
681
|
-
* title="dateRangeFilterTileProps.title"
|
|
716
|
+
* [title]="dateRangeFilterTileProps.title"
|
|
682
717
|
* [attribute]="dateRangeFilterTileProps.attribute"
|
|
683
718
|
* [filter]="dateRangeFilterTileProps.filter"
|
|
684
719
|
* (filterChange)="dateRangeFilterTileProps.setFilter($event)"
|
|
@@ -804,6 +839,132 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
804
839
|
type: Output
|
|
805
840
|
}] } });
|
|
806
841
|
|
|
842
|
+
/**
|
|
843
|
+
* Relative Date Filter Tile Component
|
|
844
|
+
*
|
|
845
|
+
* @example
|
|
846
|
+
* ```html
|
|
847
|
+
* <csdk-relative-date-filter-tile
|
|
848
|
+
* [title]="relativeDateFilterTileProps.title"
|
|
849
|
+
* [arrangement]="relativeDateFilterTileProps.arrangement"
|
|
850
|
+
* [filter]="relativeDateFilterTileProps.filter"
|
|
851
|
+
* (filterChange)="relativeDateFilterTileProps.setFilter($event)"
|
|
852
|
+
* />
|
|
853
|
+
* ```
|
|
854
|
+
* ```ts
|
|
855
|
+
* import { Component } from '@angular/core';
|
|
856
|
+
* import { Filter, filterFactory } from '@sisense/sdk-data';
|
|
857
|
+
* import * as DM from '../../assets/sample-healthcare-model';
|
|
858
|
+
*
|
|
859
|
+
* @Component({
|
|
860
|
+
* selector: 'app-filters',
|
|
861
|
+
* templateUrl: './filters.component.html',
|
|
862
|
+
* styleUrls: ['./filters.component.scss'],
|
|
863
|
+
* })
|
|
864
|
+
* export class FiltersComponent {
|
|
865
|
+
* DM = DM;
|
|
866
|
+
*
|
|
867
|
+
* relativeDateFilterTileProps = {
|
|
868
|
+
* title: 'Relative Date Filter',
|
|
869
|
+
* arrangement: 'vertical',
|
|
870
|
+
* filter: filterFactory.dateRelativeTo(DM.ER.Date.Days, 0, 150),
|
|
871
|
+
* setFilter({ filter }: { filter: Filter | null }) {
|
|
872
|
+
* console.log(filter);
|
|
873
|
+
* if (filter) {
|
|
874
|
+
* this.filter = filter;
|
|
875
|
+
* }
|
|
876
|
+
* },
|
|
877
|
+
* };
|
|
878
|
+
* }
|
|
879
|
+
* ```
|
|
880
|
+
* <img src="media://angular-relative-date-filter-tile-example.png" width="600px" />
|
|
881
|
+
* @group Filter Tiles
|
|
882
|
+
*/
|
|
883
|
+
class RelativeDateFilterTileComponent {
|
|
884
|
+
/**
|
|
885
|
+
* Constructor for the `RelativeDateFilterTileComponent`.
|
|
886
|
+
*
|
|
887
|
+
* @param sisenseContextService - Sisense context service
|
|
888
|
+
* @param themeService - Theme service
|
|
889
|
+
*/
|
|
890
|
+
constructor(
|
|
891
|
+
/**
|
|
892
|
+
* Sisense context service
|
|
893
|
+
*
|
|
894
|
+
* @category Constructor
|
|
895
|
+
*/
|
|
896
|
+
sisenseContextService,
|
|
897
|
+
/**
|
|
898
|
+
* Theme service
|
|
899
|
+
*
|
|
900
|
+
* @category Constructor
|
|
901
|
+
*/
|
|
902
|
+
themeService) {
|
|
903
|
+
this.sisenseContextService = sisenseContextService;
|
|
904
|
+
this.themeService = themeService;
|
|
905
|
+
/**
|
|
906
|
+
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.onUpdate}
|
|
907
|
+
*/
|
|
908
|
+
this.filterChange = new EventEmitter();
|
|
909
|
+
this.componentAdapter = new ComponentAdapter(() => this.createPreactComponent(), [
|
|
910
|
+
createSisenseContextConnector(this.sisenseContextService),
|
|
911
|
+
createThemeContextConnector(this.themeService),
|
|
912
|
+
]);
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* @internal
|
|
916
|
+
*/
|
|
917
|
+
ngAfterViewInit() {
|
|
918
|
+
this.componentAdapter.render(this.preactRef.nativeElement);
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* @internal
|
|
922
|
+
*/
|
|
923
|
+
ngOnChanges() {
|
|
924
|
+
if (this.preactRef) {
|
|
925
|
+
this.componentAdapter.render(this.preactRef.nativeElement);
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
createPreactComponent() {
|
|
929
|
+
const props = {
|
|
930
|
+
title: this.title,
|
|
931
|
+
filter: this.filter,
|
|
932
|
+
arrangement: this.arrangement,
|
|
933
|
+
limit: this.limit,
|
|
934
|
+
onUpdate: (...[filter]) => this.filterChange.emit({ filter }),
|
|
935
|
+
};
|
|
936
|
+
return createElement(RelativeDateFilterTile, props);
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
* @internal
|
|
940
|
+
*/
|
|
941
|
+
ngOnDestroy() {
|
|
942
|
+
this.componentAdapter.destroy();
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
RelativeDateFilterTileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RelativeDateFilterTileComponent, deps: [{ token: SisenseContextService }, { token: ThemeService }], target: i0.ɵɵFactoryTarget.Component });
|
|
946
|
+
RelativeDateFilterTileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: RelativeDateFilterTileComponent, selector: "csdk-relative-date-filter-tile", inputs: { title: "title", filter: "filter", arrangement: "arrangement", limit: "limit" }, outputs: { filterChange: "filterChange" }, 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 });
|
|
947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RelativeDateFilterTileComponent, decorators: [{
|
|
948
|
+
type: Component,
|
|
949
|
+
args: [{
|
|
950
|
+
selector: 'csdk-relative-date-filter-tile',
|
|
951
|
+
template,
|
|
952
|
+
}]
|
|
953
|
+
}], ctorParameters: function () { return [{ type: SisenseContextService }, { type: ThemeService }]; }, propDecorators: { preactRef: [{
|
|
954
|
+
type: ViewChild,
|
|
955
|
+
args: [rootId]
|
|
956
|
+
}], title: [{
|
|
957
|
+
type: Input
|
|
958
|
+
}], filter: [{
|
|
959
|
+
type: Input
|
|
960
|
+
}], arrangement: [{
|
|
961
|
+
type: Input
|
|
962
|
+
}], limit: [{
|
|
963
|
+
type: Input
|
|
964
|
+
}], filterChange: [{
|
|
965
|
+
type: Output
|
|
966
|
+
}] } });
|
|
967
|
+
|
|
807
968
|
/**
|
|
808
969
|
* Criteria Filter Tile Component
|
|
809
970
|
*
|
|
@@ -3441,6 +3602,113 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3441
3602
|
type: Input
|
|
3442
3603
|
}] } });
|
|
3443
3604
|
|
|
3605
|
+
/**
|
|
3606
|
+
* The `WidgetById` component, which is a thin wrapper on {@link ChartWidgetComponent},
|
|
3607
|
+
* is used to render a widget created in a Sisense Fusion instance.
|
|
3608
|
+
*
|
|
3609
|
+
* To learn more about using Sisense Fusion Widgets in Compose SDK, see
|
|
3610
|
+
* [Sisense Fusion Widgets](https://sisense.dev/guides/sdk/guides/charts/guide-fusion-widgets.html).
|
|
3611
|
+
*
|
|
3612
|
+
* @example
|
|
3613
|
+
* ```html
|
|
3614
|
+
* <csdk-widget-by-id
|
|
3615
|
+
* [widgetOid]="widgetOid"
|
|
3616
|
+
* [dashboardOid]="dashboardOid"
|
|
3617
|
+
* [includeDashboardFilters]="true"
|
|
3618
|
+
* />
|
|
3619
|
+
* ```
|
|
3620
|
+
* ```ts
|
|
3621
|
+
* import { Component } from '@angular/core';
|
|
3622
|
+
*
|
|
3623
|
+
* @Component({
|
|
3624
|
+
* selector: 'app-widgets',
|
|
3625
|
+
* templateUrl: './widgets.component.html',
|
|
3626
|
+
* styleUrls: ['./widgets.component.scss'],
|
|
3627
|
+
* })
|
|
3628
|
+
* export class WidgetsComponent {
|
|
3629
|
+
* widgetOid: string = '60f3e3e3e4b0e3e3e4b0e3e3';
|
|
3630
|
+
* dashboardOid: string = '60f3e3e3e4b0e3e3e4b0e3e3';
|
|
3631
|
+
* }
|
|
3632
|
+
* ```
|
|
3633
|
+
* @group Fusion Assets
|
|
3634
|
+
* @fusionEmbed
|
|
3635
|
+
*/
|
|
3636
|
+
class WidgetByIdComponent {
|
|
3637
|
+
constructor(sisenseContextService, themeService) {
|
|
3638
|
+
this.sisenseContextService = sisenseContextService;
|
|
3639
|
+
this.themeService = themeService;
|
|
3640
|
+
this.componentAdapter = new ComponentAdapter(() => this.createPreactComponent(), [
|
|
3641
|
+
createSisenseContextConnector(this.sisenseContextService),
|
|
3642
|
+
createThemeContextConnector(this.themeService),
|
|
3643
|
+
]);
|
|
3644
|
+
}
|
|
3645
|
+
/** @internal */
|
|
3646
|
+
ngAfterViewInit() {
|
|
3647
|
+
this.componentAdapter.render(this.preactRef.nativeElement);
|
|
3648
|
+
}
|
|
3649
|
+
/** @internal */
|
|
3650
|
+
ngOnChanges() {
|
|
3651
|
+
if (this.preactRef) {
|
|
3652
|
+
this.componentAdapter.render(this.preactRef.nativeElement);
|
|
3653
|
+
}
|
|
3654
|
+
}
|
|
3655
|
+
/** @internal */
|
|
3656
|
+
createPreactComponent() {
|
|
3657
|
+
const props = {
|
|
3658
|
+
widgetOid: this.widgetOid,
|
|
3659
|
+
dashboardOid: this.dashboardOid,
|
|
3660
|
+
filters: this.filters,
|
|
3661
|
+
highlights: this.highlights,
|
|
3662
|
+
filtersMergeStrategy: this.filtersMergeStrategy,
|
|
3663
|
+
includeDashboardFilters: this.includeDashboardFilters,
|
|
3664
|
+
title: this.title,
|
|
3665
|
+
description: this.description,
|
|
3666
|
+
styleOptions: this.styleOptions,
|
|
3667
|
+
highlightSelectionDisabled: this.highlightSelectionDisabled,
|
|
3668
|
+
drilldownOptions: this.drilldownOptions,
|
|
3669
|
+
};
|
|
3670
|
+
return createElement(WidgetById, props);
|
|
3671
|
+
}
|
|
3672
|
+
/** @internal */
|
|
3673
|
+
ngOnDestroy() {
|
|
3674
|
+
this.componentAdapter.destroy();
|
|
3675
|
+
}
|
|
3676
|
+
}
|
|
3677
|
+
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 });
|
|
3678
|
+
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 });
|
|
3679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WidgetByIdComponent, decorators: [{
|
|
3680
|
+
type: Component,
|
|
3681
|
+
args: [{
|
|
3682
|
+
selector: 'csdk-widget-by-id',
|
|
3683
|
+
template,
|
|
3684
|
+
}]
|
|
3685
|
+
}], ctorParameters: function () { return [{ type: SisenseContextService }, { type: ThemeService }]; }, propDecorators: { preactRef: [{
|
|
3686
|
+
type: ViewChild,
|
|
3687
|
+
args: [rootId]
|
|
3688
|
+
}], widgetOid: [{
|
|
3689
|
+
type: Input
|
|
3690
|
+
}], dashboardOid: [{
|
|
3691
|
+
type: Input
|
|
3692
|
+
}], filters: [{
|
|
3693
|
+
type: Input
|
|
3694
|
+
}], highlights: [{
|
|
3695
|
+
type: Input
|
|
3696
|
+
}], filtersMergeStrategy: [{
|
|
3697
|
+
type: Input
|
|
3698
|
+
}], includeDashboardFilters: [{
|
|
3699
|
+
type: Input
|
|
3700
|
+
}], title: [{
|
|
3701
|
+
type: Input
|
|
3702
|
+
}], description: [{
|
|
3703
|
+
type: Input
|
|
3704
|
+
}], styleOptions: [{
|
|
3705
|
+
type: Input
|
|
3706
|
+
}], highlightSelectionDisabled: [{
|
|
3707
|
+
type: Input
|
|
3708
|
+
}], drilldownOptions: [{
|
|
3709
|
+
type: Input
|
|
3710
|
+
}] } });
|
|
3711
|
+
|
|
3444
3712
|
/**
|
|
3445
3713
|
* An Angular component designed to add drilldown functionality to any type of chart.
|
|
3446
3714
|
*
|
|
@@ -3480,7 +3748,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3480
3748
|
* drilldownResult?: CustomDrilldownResult;
|
|
3481
3749
|
*
|
|
3482
3750
|
* drilldown = {
|
|
3483
|
-
*
|
|
3751
|
+
* drilldownPaths: [DM.Patients.Gender, DM.Admissions.Surgical_Procedure],
|
|
3484
3752
|
* initialDimension: DM.Divisions.Divison_name,
|
|
3485
3753
|
* drilldownChange: (drilldownResult: CustomDrilldownResult) => {
|
|
3486
3754
|
* this.drilldownResult = drilldownResult;
|
|
@@ -3494,7 +3762,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3494
3762
|
* ```html
|
|
3495
3763
|
* <!--Component HTML template in .component.html-->
|
|
3496
3764
|
* <csdk-drilldown-widget
|
|
3497
|
-
* [
|
|
3765
|
+
* [drilldownPaths]="drilldown.drilldownPaths"
|
|
3498
3766
|
* [initialDimension]="drilldown.initialDimension"
|
|
3499
3767
|
* (drilldownResultChange)="drilldown.drilldownChange($event)"
|
|
3500
3768
|
* >
|
|
@@ -3560,6 +3828,7 @@ class DrilldownWidgetComponent {
|
|
|
3560
3828
|
createPreactComponent() {
|
|
3561
3829
|
const props = {
|
|
3562
3830
|
drilldownDimensions: this.drilldownDimensions,
|
|
3831
|
+
drilldownPaths: this.drilldownPaths,
|
|
3563
3832
|
initialDimension: this.initialDimension,
|
|
3564
3833
|
config: {
|
|
3565
3834
|
...this.config,
|
|
@@ -3590,7 +3859,7 @@ class DrilldownWidgetComponent {
|
|
|
3590
3859
|
}
|
|
3591
3860
|
}
|
|
3592
3861
|
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 });
|
|
3862
|
+
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
3863
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DrilldownWidgetComponent, decorators: [{
|
|
3595
3864
|
type: Component,
|
|
3596
3865
|
args: [{
|
|
@@ -3605,6 +3874,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3605
3874
|
args: [rootContentId]
|
|
3606
3875
|
}], drilldownDimensions: [{
|
|
3607
3876
|
type: Input
|
|
3877
|
+
}], drilldownPaths: [{
|
|
3878
|
+
type: Input
|
|
3608
3879
|
}], initialDimension: [{
|
|
3609
3880
|
type: Input
|
|
3610
3881
|
}], config: [{
|
|
@@ -4247,9 +4518,11 @@ SdkUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
4247
4518
|
SunburstChartComponent,
|
|
4248
4519
|
TableWidgetComponent,
|
|
4249
4520
|
DashboardWidgetComponent,
|
|
4521
|
+
WidgetByIdComponent,
|
|
4250
4522
|
MemberFilterTileComponent,
|
|
4251
4523
|
DrilldownWidgetComponent,
|
|
4252
4524
|
DateRangeFilterTileComponent,
|
|
4525
|
+
RelativeDateFilterTileComponent,
|
|
4253
4526
|
CriteriaFilterTileComponent,
|
|
4254
4527
|
DrilldownBreadcrumbsComponent,
|
|
4255
4528
|
ContextMenuComponent,
|
|
@@ -4276,9 +4549,11 @@ SdkUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
4276
4549
|
SunburstChartComponent,
|
|
4277
4550
|
TableWidgetComponent,
|
|
4278
4551
|
DashboardWidgetComponent,
|
|
4552
|
+
WidgetByIdComponent,
|
|
4279
4553
|
MemberFilterTileComponent,
|
|
4280
4554
|
DrilldownWidgetComponent,
|
|
4281
4555
|
DateRangeFilterTileComponent,
|
|
4556
|
+
RelativeDateFilterTileComponent,
|
|
4282
4557
|
CriteriaFilterTileComponent,
|
|
4283
4558
|
DrilldownBreadcrumbsComponent,
|
|
4284
4559
|
ContextMenuComponent,
|
|
@@ -4311,9 +4586,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4311
4586
|
SunburstChartComponent,
|
|
4312
4587
|
TableWidgetComponent,
|
|
4313
4588
|
DashboardWidgetComponent,
|
|
4589
|
+
WidgetByIdComponent,
|
|
4314
4590
|
MemberFilterTileComponent,
|
|
4315
4591
|
DrilldownWidgetComponent,
|
|
4316
4592
|
DateRangeFilterTileComponent,
|
|
4593
|
+
RelativeDateFilterTileComponent,
|
|
4317
4594
|
CriteriaFilterTileComponent,
|
|
4318
4595
|
DrilldownBreadcrumbsComponent,
|
|
4319
4596
|
ContextMenuComponent,
|
|
@@ -4344,9 +4621,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4344
4621
|
SunburstChartComponent,
|
|
4345
4622
|
TableWidgetComponent,
|
|
4346
4623
|
DashboardWidgetComponent,
|
|
4624
|
+
WidgetByIdComponent,
|
|
4347
4625
|
MemberFilterTileComponent,
|
|
4348
4626
|
DrilldownWidgetComponent,
|
|
4349
4627
|
DateRangeFilterTileComponent,
|
|
4628
|
+
RelativeDateFilterTileComponent,
|
|
4350
4629
|
CriteriaFilterTileComponent,
|
|
4351
4630
|
DrilldownBreadcrumbsComponent,
|
|
4352
4631
|
ContextMenuComponent,
|
|
@@ -4395,5 +4674,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4395
4674
|
* Generated bundle index. Do not edit.
|
|
4396
4675
|
*/
|
|
4397
4676
|
|
|
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 };
|
|
4677
|
+
export { AreaChartComponent, AreaRangeChartComponent, AreamapChartComponent, BarChartComponent, BasicMemberFilterTileComponent, BoxplotChartComponent, ChartComponent, ChartWidgetComponent, ColumnChartComponent, ContextMenuComponent, CriteriaFilterTileComponent, DashboardByIdComponent, DashboardComponent, DashboardService, DashboardWidgetComponent, DateRangeFilterTileComponent, DrilldownBreadcrumbsComponent, DrilldownWidgetComponent, FunnelChartComponent, HierarchyService, IndicatorChartComponent, LineChartComponent, MemberFilterTileComponent, PieChartComponent, PivotTableComponent, PluginsService, PolarChartComponent, QueryService, RelativeDateFilterTileComponent, SISENSE_CONTEXT_CONFIG_TOKEN, ScatterChartComponent, ScattermapChartComponent, SdkUiModule, SisenseContextService, SunburstChartComponent, THEME_CONFIG_TOKEN, TableComponent, TableWidgetComponent, ThemeService, TreemapChartComponent, WidgetByIdComponent, WidgetService };
|
|
4399
4678
|
//# sourceMappingURL=sisense-sdk-ui-angular.mjs.map
|