@sisense/sdk-ui-angular 0.14.0 → 0.16.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/template.mjs +12 -2
- package/dist/esm2020/lib/components/area-chart.component.mjs +3 -1
- package/dist/esm2020/lib/components/bar-chart.component.mjs +3 -1
- package/dist/esm2020/lib/components/basic-member-filter-tile.component.mjs +1 -1
- package/dist/esm2020/lib/components/chart-widget.component.mjs +1 -1
- package/dist/esm2020/lib/components/chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/column-chart.component.mjs +3 -1
- package/dist/esm2020/lib/components/context-menu.component.mjs +92 -0
- package/dist/esm2020/lib/components/dashboard-widget.component.mjs +8 -2
- package/dist/esm2020/lib/components/date-range-filter-tile.component.mjs +101 -0
- package/dist/esm2020/lib/components/drilldown-breadcrumbs.component.mjs +100 -0
- package/dist/esm2020/lib/components/drilldown-widget.component.mjs +171 -0
- package/dist/esm2020/lib/components/funnel-chart.component.mjs +3 -1
- package/dist/esm2020/lib/components/index.mjs +7 -1
- package/dist/esm2020/lib/components/indicator-chart.component.mjs +3 -1
- package/dist/esm2020/lib/components/line-chart.component.mjs +3 -1
- package/dist/esm2020/lib/components/member-filter-tile.component.mjs +95 -0
- package/dist/esm2020/lib/components/pie-chart.component.mjs +3 -1
- package/dist/esm2020/lib/components/polar-chart.component.mjs +3 -1
- package/dist/esm2020/lib/components/scatter-chart.component.mjs +3 -1
- package/dist/esm2020/lib/components/sunburst-chart.component.mjs +86 -0
- package/dist/esm2020/lib/components/table-widget.component.mjs +1 -1
- package/dist/esm2020/lib/components/table.component.mjs +1 -1
- package/dist/esm2020/lib/components/treemap-chart.component.mjs +3 -1
- package/dist/esm2020/lib/decorators/decorators.module.mjs +19 -0
- package/dist/esm2020/lib/decorators/trackable.decorator.mjs +42 -0
- package/dist/esm2020/lib/sdk-ui.module.mjs +31 -6
- package/dist/esm2020/lib/services/dashboard.service.mjs +45 -0
- package/dist/esm2020/lib/services/index.mjs +2 -1
- package/dist/esm2020/lib/services/query.service.mjs +9 -3
- package/dist/esm2020/lib/services/theme.service.mjs +10 -4
- package/dist/esm2020/version.mjs +2 -0
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs +845 -76
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +846 -76
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/lib/component-wrapper-helpers/template.d.ts +2 -0
- package/dist/lib/components/context-menu.component.d.ts +78 -0
- package/dist/lib/components/dashboard-widget.component.d.ts +4 -1
- package/dist/lib/components/date-range-filter-tile.component.d.ts +90 -0
- package/dist/lib/components/drilldown-breadcrumbs.component.d.ts +86 -0
- package/dist/lib/components/drilldown-widget.component.d.ts +146 -0
- package/dist/lib/components/index.d.ts +6 -0
- package/dist/lib/components/member-filter-tile.component.d.ts +82 -0
- package/dist/lib/components/sunburst-chart.component.d.ts +69 -0
- package/dist/lib/decorators/decorators.module.d.ts +9 -0
- package/dist/lib/decorators/trackable.decorator.d.ts +11 -0
- package/dist/lib/sdk-ui.module.d.ts +11 -4
- package/dist/lib/services/dashboard.service.d.ts +24 -0
- package/dist/lib/services/index.d.ts +1 -0
- package/dist/lib/services/query.service.d.ts +1 -1
- package/dist/package.json +12 -13
- package/dist/version.d.ts +2 -0
- package/package.json +18 -13
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { type ContextMenuProps } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import { SisenseContextService } from '../services/sisense-context.service';
|
|
4
|
+
import { ThemeService } from '../services/theme.service';
|
|
5
|
+
import type { ArgumentsAsObject } from '../utility-types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Context Menu Component
|
|
9
|
+
*/
|
|
10
|
+
export declare class ContextMenuComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
11
|
+
/**
|
|
12
|
+
* Sisense context service
|
|
13
|
+
*
|
|
14
|
+
* @category Constructor
|
|
15
|
+
*/
|
|
16
|
+
sisenseContextService: SisenseContextService;
|
|
17
|
+
/**
|
|
18
|
+
* Theme service
|
|
19
|
+
*
|
|
20
|
+
* @category Constructor
|
|
21
|
+
*/
|
|
22
|
+
themeService: ThemeService;
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
preactRef: ElementRef<HTMLDivElement>;
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
preactContentRef: ElementRef<HTMLDivElement>;
|
|
31
|
+
/**
|
|
32
|
+
* {@inheritDoc @sisense/sdk-ui!ContextMenuProps.position}
|
|
33
|
+
*/
|
|
34
|
+
position: ContextMenuProps['position'];
|
|
35
|
+
/**
|
|
36
|
+
* {@inheritDoc @sisense/sdk-ui!ContextMenuProps.itemSections}
|
|
37
|
+
*/
|
|
38
|
+
itemSections: ContextMenuProps['itemSections'];
|
|
39
|
+
/**
|
|
40
|
+
* {@inheritDoc @sisense/sdk-ui!ContextMenuProps.closeContextMenu}
|
|
41
|
+
*/
|
|
42
|
+
contextMenuClose: EventEmitter<ArgumentsAsObject<() => void, []>>;
|
|
43
|
+
private componentAdapter;
|
|
44
|
+
/**
|
|
45
|
+
* Constructor for the `ContextMenuComponent`.
|
|
46
|
+
*
|
|
47
|
+
* @param sisenseContextService - Sisense context service
|
|
48
|
+
* @param themeService - Theme service
|
|
49
|
+
*/
|
|
50
|
+
constructor(
|
|
51
|
+
/**
|
|
52
|
+
* Sisense context service
|
|
53
|
+
*
|
|
54
|
+
* @category Constructor
|
|
55
|
+
*/
|
|
56
|
+
sisenseContextService: SisenseContextService,
|
|
57
|
+
/**
|
|
58
|
+
* Theme service
|
|
59
|
+
*
|
|
60
|
+
* @category Constructor
|
|
61
|
+
*/
|
|
62
|
+
themeService: ThemeService);
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
ngAfterViewInit(): void;
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
ngOnChanges(): void;
|
|
71
|
+
private createPreactComponent;
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
ngOnDestroy(): void;
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuComponent, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContextMenuComponent, "csdk-context-menu", never, { "position": "position"; "itemSections": "itemSections"; }, { "contextMenuClose": "contextMenuClose"; }, never, ["*"], false, never>;
|
|
78
|
+
}
|
|
@@ -22,6 +22,7 @@ export declare class DashboardWidgetComponent implements AfterViewInit, OnChange
|
|
|
22
22
|
filters: DashboardWidgetProps['filters'];
|
|
23
23
|
highlights: DashboardWidgetProps['highlights'];
|
|
24
24
|
filtersMergeStrategy: DashboardWidgetProps['filtersMergeStrategy'];
|
|
25
|
+
includeDashboardFilters: DashboardWidgetProps['includeDashboardFilters'];
|
|
25
26
|
title: DashboardWidgetProps['title'];
|
|
26
27
|
description: DashboardWidgetProps['description'];
|
|
27
28
|
/**
|
|
@@ -31,6 +32,8 @@ export declare class DashboardWidgetComponent implements AfterViewInit, OnChange
|
|
|
31
32
|
*/
|
|
32
33
|
styleOptions: DashboardWidgetProps['styleOptions'];
|
|
33
34
|
widgetStyleOptions: DashboardWidgetProps['widgetStyleOptions'];
|
|
35
|
+
highlightSelectionDisabled: DashboardWidgetProps['highlightSelectionDisabled'];
|
|
36
|
+
/** @internal */
|
|
34
37
|
drilldownOptions: DashboardWidgetProps['drilldownOptions'];
|
|
35
38
|
private componentAdapter;
|
|
36
39
|
constructor(sisenseContextService: SisenseContextService, themeService: ThemeService);
|
|
@@ -43,5 +46,5 @@ export declare class DashboardWidgetComponent implements AfterViewInit, OnChange
|
|
|
43
46
|
/** @internal */
|
|
44
47
|
ngOnDestroy(): void;
|
|
45
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardWidgetComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardWidgetComponent, "csdk-dashboard-widget", never, { "widgetOid": "widgetOid"; "dashboardOid": "dashboardOid"; "filters": "filters"; "highlights": "highlights"; "filtersMergeStrategy": "filtersMergeStrategy"; "title": "title"; "description": "description"; "styleOptions": "styleOptions"; "widgetStyleOptions": "widgetStyleOptions"; "drilldownOptions": "drilldownOptions"; }, {}, never, never, false, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardWidgetComponent, "csdk-dashboard-widget", never, { "widgetOid": "widgetOid"; "dashboardOid": "dashboardOid"; "filters": "filters"; "highlights": "highlights"; "filtersMergeStrategy": "filtersMergeStrategy"; "includeDashboardFilters": "includeDashboardFilters"; "title": "title"; "description": "description"; "styleOptions": "styleOptions"; "widgetStyleOptions": "widgetStyleOptions"; "highlightSelectionDisabled": "highlightSelectionDisabled"; "drilldownOptions": "drilldownOptions"; }, {}, never, never, false, never>;
|
|
47
50
|
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { type DateRangeFilterTileProps } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import { SisenseContextService } from '../services/sisense-context.service';
|
|
4
|
+
import { ThemeService } from '../services/theme.service';
|
|
5
|
+
import type { ArgumentsAsObject } from '../utility-types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Date Range Filter Tile Component
|
|
9
|
+
*/
|
|
10
|
+
export declare class DateRangeFilterTileComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
11
|
+
/**
|
|
12
|
+
* Sisense context service
|
|
13
|
+
*
|
|
14
|
+
* @category Constructor
|
|
15
|
+
*/
|
|
16
|
+
sisenseContextService: SisenseContextService;
|
|
17
|
+
/**
|
|
18
|
+
* Theme service
|
|
19
|
+
*
|
|
20
|
+
* @category Constructor
|
|
21
|
+
*/
|
|
22
|
+
themeService: ThemeService;
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
preactRef: ElementRef<HTMLDivElement>;
|
|
27
|
+
/**
|
|
28
|
+
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.title}
|
|
29
|
+
*/
|
|
30
|
+
title: DateRangeFilterTileProps['title'];
|
|
31
|
+
/**
|
|
32
|
+
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.attribute}
|
|
33
|
+
*/
|
|
34
|
+
attribute: DateRangeFilterTileProps['attribute'];
|
|
35
|
+
/**
|
|
36
|
+
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.dataSource}
|
|
37
|
+
*/
|
|
38
|
+
dataSource: DateRangeFilterTileProps['dataSource'];
|
|
39
|
+
/**
|
|
40
|
+
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.filter}
|
|
41
|
+
*/
|
|
42
|
+
filter: DateRangeFilterTileProps['filter'];
|
|
43
|
+
/**
|
|
44
|
+
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.earliestDate}
|
|
45
|
+
*/
|
|
46
|
+
earliestDate: DateRangeFilterTileProps['earliestDate'];
|
|
47
|
+
/**
|
|
48
|
+
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.lastDate}
|
|
49
|
+
*/
|
|
50
|
+
lastDate: DateRangeFilterTileProps['lastDate'];
|
|
51
|
+
/**
|
|
52
|
+
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.onChange}
|
|
53
|
+
*/
|
|
54
|
+
filterChange: EventEmitter<ArgumentsAsObject<(filter: import("@sisense/sdk-data").Filter) => void, ["filter"]>>;
|
|
55
|
+
private componentAdapter;
|
|
56
|
+
/**
|
|
57
|
+
* Constructor for the `DateRangeFilterTileComponent`.
|
|
58
|
+
*
|
|
59
|
+
* @param sisenseContextService - Sisense context service
|
|
60
|
+
* @param themeService - Theme service
|
|
61
|
+
*/
|
|
62
|
+
constructor(
|
|
63
|
+
/**
|
|
64
|
+
* Sisense context service
|
|
65
|
+
*
|
|
66
|
+
* @category Constructor
|
|
67
|
+
*/
|
|
68
|
+
sisenseContextService: SisenseContextService,
|
|
69
|
+
/**
|
|
70
|
+
* Theme service
|
|
71
|
+
*
|
|
72
|
+
* @category Constructor
|
|
73
|
+
*/
|
|
74
|
+
themeService: ThemeService);
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
ngAfterViewInit(): void;
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
ngOnChanges(): void;
|
|
83
|
+
private createPreactComponent;
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
ngOnDestroy(): void;
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeFilterTileComponent, never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeFilterTileComponent, "csdk-date-range-filter-tile", never, { "title": "title"; "attribute": "attribute"; "dataSource": "dataSource"; "filter": "filter"; "earliestDate": "earliestDate"; "lastDate": "lastDate"; }, { "filterChange": "filterChange"; }, never, never, false, never>;
|
|
90
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { type DrilldownBreadcrumbsProps } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import { SisenseContextService } from '../services/sisense-context.service';
|
|
4
|
+
import { ThemeService } from '../services/theme.service';
|
|
5
|
+
import type { ArgumentsAsObject } from '../utility-types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Drilldown Breadcrumbs Component
|
|
9
|
+
*/
|
|
10
|
+
export declare class DrilldownBreadcrumbsComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
11
|
+
/**
|
|
12
|
+
* Sisense context service
|
|
13
|
+
*
|
|
14
|
+
* @category Constructor
|
|
15
|
+
*/
|
|
16
|
+
sisenseContextService: SisenseContextService;
|
|
17
|
+
/**
|
|
18
|
+
* Theme service
|
|
19
|
+
*
|
|
20
|
+
* @category Constructor
|
|
21
|
+
*/
|
|
22
|
+
themeService: ThemeService;
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
preactRef: ElementRef<HTMLDivElement>;
|
|
27
|
+
/**
|
|
28
|
+
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.filtersDisplayValues}
|
|
29
|
+
*
|
|
30
|
+
* @category Widget
|
|
31
|
+
*/
|
|
32
|
+
filtersDisplayValues: DrilldownBreadcrumbsProps['filtersDisplayValues'];
|
|
33
|
+
/**
|
|
34
|
+
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.currentDimension}
|
|
35
|
+
*
|
|
36
|
+
* @category Widget
|
|
37
|
+
*/
|
|
38
|
+
currentDimension: DrilldownBreadcrumbsProps['currentDimension'];
|
|
39
|
+
/**
|
|
40
|
+
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.clearDrilldownSelections}
|
|
41
|
+
*
|
|
42
|
+
* @category Widget
|
|
43
|
+
*/
|
|
44
|
+
drilldownSelectionsClear: EventEmitter<ArgumentsAsObject<() => void, []>>;
|
|
45
|
+
/**
|
|
46
|
+
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.sliceDrilldownSelections}
|
|
47
|
+
*
|
|
48
|
+
* @category Widget
|
|
49
|
+
*/
|
|
50
|
+
drilldownSelectionsSlice: EventEmitter<number>;
|
|
51
|
+
private componentAdapter;
|
|
52
|
+
/**
|
|
53
|
+
* Constructor for the `DrilldownBreadcrumbsComponent`.
|
|
54
|
+
*
|
|
55
|
+
* @param sisenseContextService - Sisense context service
|
|
56
|
+
* @param themeService - Theme service
|
|
57
|
+
*/
|
|
58
|
+
constructor(
|
|
59
|
+
/**
|
|
60
|
+
* Sisense context service
|
|
61
|
+
*
|
|
62
|
+
* @category Constructor
|
|
63
|
+
*/
|
|
64
|
+
sisenseContextService: SisenseContextService,
|
|
65
|
+
/**
|
|
66
|
+
* Theme service
|
|
67
|
+
*
|
|
68
|
+
* @category Constructor
|
|
69
|
+
*/
|
|
70
|
+
themeService: ThemeService);
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
ngAfterViewInit(): void;
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
ngOnChanges(): void;
|
|
79
|
+
private createPreactComponent;
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
ngOnDestroy(): void;
|
|
84
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrilldownBreadcrumbsComponent, never>;
|
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrilldownBreadcrumbsComponent, "csdk-drilldown-breadcrumbs", never, { "filtersDisplayValues": "filtersDisplayValues"; "currentDimension": "currentDimension"; }, { "drilldownSelectionsClear": "drilldownSelectionsClear"; "drilldownSelectionsSlice": "drilldownSelectionsSlice"; }, never, never, false, never>;
|
|
86
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { type DrilldownWidgetProps, type ContextMenuProps, type CustomDrilldownResult as CustomDrilldownResultBase, type ComponentRenderer, DrilldownBreadcrumbsProps } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import { SisenseContextService } from '../services/sisense-context.service';
|
|
4
|
+
import { ThemeService } from '../services/theme.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export type CustomDrilldownResult = CustomDrilldownResultBase & {
|
|
7
|
+
breadcrumbsComponent?: {
|
|
8
|
+
render: ComponentRenderer;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* An Angular component designed to add drilldown functionality to any type of chart.
|
|
13
|
+
*
|
|
14
|
+
* It acts as a wrapper around a given chart component, enhancing it with drilldown capabilities
|
|
15
|
+
*
|
|
16
|
+
* The widget offers several features including:
|
|
17
|
+
* - A context menu for initiating drilldown actions (can be provided as a custom component)
|
|
18
|
+
* - Breadcrumbs that not only allow for drilldown selection slicing but also
|
|
19
|
+
* provide an option to clear the selection (can be provided as a custom component)
|
|
20
|
+
* - Filters specifically created for drilldown operation
|
|
21
|
+
* - An option to navigate to the next drilldown dimension
|
|
22
|
+
*
|
|
23
|
+
* When an `initialDimension` is specified, the `drilldownDimension` will automatically inherit its value,
|
|
24
|
+
* even before any points on the chart are selected.
|
|
25
|
+
* This allows for complete control over the chart's dimensions to be handed over to the DrilldownWidget
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* An example of using the `csdk-drilldown-widget` component to plot a `csdk-column-chart`
|
|
29
|
+
* over the Sample Healthcare data source hosted in a Sisense instance:
|
|
30
|
+
* ```ts
|
|
31
|
+
* // Component behavior in .component.ts
|
|
32
|
+
* chart = {
|
|
33
|
+
* dataOptions: {
|
|
34
|
+
* category: [DM.Divisions.Divison_name],
|
|
35
|
+
* value: [measures.sum(DM.Admissions.Cost_of_admission)],
|
|
36
|
+
* breakBy: [],
|
|
37
|
+
* },
|
|
38
|
+
* dataPointContextMenu: ({ point, nativeEvent }: { point: any; nativeEvent: MouseEvent }) => {
|
|
39
|
+
* this.drilldownResult?.onDataPointsSelected?.([point], nativeEvent);
|
|
40
|
+
* this.drilldownResult?.onContextMenu({
|
|
41
|
+
* left: nativeEvent.clientX,
|
|
42
|
+
* top: nativeEvent.clientY,
|
|
43
|
+
* });
|
|
44
|
+
* }
|
|
45
|
+
* }
|
|
46
|
+
*
|
|
47
|
+
* drilldownResult?: CustomDrilldownResult;
|
|
48
|
+
*
|
|
49
|
+
* drilldown = {
|
|
50
|
+
* drilldownDimensions: [DM.Patients.Gender, DM.Admissions.Surgical_Procedure],
|
|
51
|
+
* initialDimension: DM.Divisions.Divison_name,
|
|
52
|
+
* drilldownChange: (drilldownResult: CustomDrilldownResult) => {
|
|
53
|
+
* this.drilldownResult = drilldownResult;
|
|
54
|
+
* this.chart.dataOptions = {
|
|
55
|
+
* ...this.chart.dataOptions,
|
|
56
|
+
* category: [drilldownResult.drilldownDimension]
|
|
57
|
+
* }
|
|
58
|
+
* }
|
|
59
|
+
* };
|
|
60
|
+
* ```
|
|
61
|
+
* ```html
|
|
62
|
+
* <!--Component HTML template in .component.html-->
|
|
63
|
+
* <csdk-drilldown-widget
|
|
64
|
+
* [drilldownDimensions]="drilldown.drilldownDimensions"
|
|
65
|
+
* [initialDimension]="drilldown.initialDimension"
|
|
66
|
+
* (drilldownResultChange)="drilldown.drilldownChange($event)"
|
|
67
|
+
* >
|
|
68
|
+
* <csdk-column-chart
|
|
69
|
+
* [dataSet]="DM.DataSource"
|
|
70
|
+
* [dataOptions]="chart.dataOptions"
|
|
71
|
+
* [filters]="drilldownResult?.drilldownFilters || []"
|
|
72
|
+
* (dataPointContextMenu)="chart.dataPointContextMenu($event)"
|
|
73
|
+
* />
|
|
74
|
+
* </csdk-drilldown-widget>
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export declare class DrilldownWidgetComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
78
|
+
/**
|
|
79
|
+
* Sisense context service
|
|
80
|
+
*
|
|
81
|
+
* @category Constructor
|
|
82
|
+
*/
|
|
83
|
+
sisenseContextService: SisenseContextService;
|
|
84
|
+
/**
|
|
85
|
+
* Theme service
|
|
86
|
+
*
|
|
87
|
+
* @category Constructor
|
|
88
|
+
*/
|
|
89
|
+
themeService: ThemeService;
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
preactRef: ElementRef<HTMLDivElement>;
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
preactContentRef: ElementRef<HTMLDivElement>;
|
|
98
|
+
/**
|
|
99
|
+
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.drilldownDimensions}
|
|
100
|
+
*/
|
|
101
|
+
drilldownDimensions: DrilldownWidgetProps['drilldownDimensions'];
|
|
102
|
+
/**
|
|
103
|
+
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.initialDimension}
|
|
104
|
+
*/
|
|
105
|
+
initialDimension: DrilldownWidgetProps['initialDimension'];
|
|
106
|
+
config?: Omit<DrilldownWidgetProps['config'], 'breadcrumbsComponent | contextMenuComponent'> & {
|
|
107
|
+
breadcrumbsComponent?: (drilldownBreadcrumbsProps: DrilldownBreadcrumbsProps) => HTMLDivElement;
|
|
108
|
+
contextMenuComponent?: (contextMenuProps: ContextMenuProps) => HTMLDivElement;
|
|
109
|
+
};
|
|
110
|
+
drilldownResultChange: EventEmitter<CustomDrilldownResult>;
|
|
111
|
+
private componentAdapter;
|
|
112
|
+
/**
|
|
113
|
+
* Constructor for the `DrilldownWidgetComponent`.
|
|
114
|
+
*
|
|
115
|
+
* @param sisenseContextService - Sisense context service
|
|
116
|
+
* @param themeService - Theme service
|
|
117
|
+
*/
|
|
118
|
+
constructor(
|
|
119
|
+
/**
|
|
120
|
+
* Sisense context service
|
|
121
|
+
*
|
|
122
|
+
* @category Constructor
|
|
123
|
+
*/
|
|
124
|
+
sisenseContextService: SisenseContextService,
|
|
125
|
+
/**
|
|
126
|
+
* Theme service
|
|
127
|
+
*
|
|
128
|
+
* @category Constructor
|
|
129
|
+
*/
|
|
130
|
+
themeService: ThemeService);
|
|
131
|
+
/**
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
134
|
+
ngAfterViewInit(): void;
|
|
135
|
+
/**
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
ngOnChanges(): void;
|
|
139
|
+
private createPreactComponent;
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
143
|
+
ngOnDestroy(): void;
|
|
144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrilldownWidgetComponent, never>;
|
|
145
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrilldownWidgetComponent, "csdk-drilldown-widget", never, { "drilldownDimensions": "drilldownDimensions"; "initialDimension": "initialDimension"; "config": "config"; }, { "drilldownResultChange": "drilldownResultChange"; }, never, ["*"], false, never>;
|
|
146
|
+
}
|
|
@@ -12,5 +12,11 @@ export * from './pie-chart.component';
|
|
|
12
12
|
export * from './funnel-chart.component';
|
|
13
13
|
export * from './polar-chart.component';
|
|
14
14
|
export * from './treemap-chart.component';
|
|
15
|
+
export * from './sunburst-chart.component';
|
|
15
16
|
export * from './table-widget.component';
|
|
16
17
|
export * from './dashboard-widget.component';
|
|
18
|
+
export * from './member-filter-tile.component';
|
|
19
|
+
export * from './drilldown-widget.component';
|
|
20
|
+
export * from './date-range-filter-tile.component';
|
|
21
|
+
export * from './drilldown-breadcrumbs.component';
|
|
22
|
+
export * from './context-menu.component';
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { type MemberFilterTileProps } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import { SisenseContextService } from '../services/sisense-context.service';
|
|
4
|
+
import { ThemeService } from '../services/theme.service';
|
|
5
|
+
import type { ArgumentsAsObject } from '../utility-types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Member Filter Tile Component
|
|
9
|
+
*/
|
|
10
|
+
export declare class MemberFilterTileComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
11
|
+
/**
|
|
12
|
+
* Sisense context service
|
|
13
|
+
*
|
|
14
|
+
* @category Constructor
|
|
15
|
+
*/
|
|
16
|
+
sisenseContextService: SisenseContextService;
|
|
17
|
+
/**
|
|
18
|
+
* Theme service
|
|
19
|
+
*
|
|
20
|
+
* @category Constructor
|
|
21
|
+
*/
|
|
22
|
+
themeService: ThemeService;
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
preactRef: ElementRef<HTMLDivElement>;
|
|
27
|
+
/**
|
|
28
|
+
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.title}
|
|
29
|
+
*/
|
|
30
|
+
title: MemberFilterTileProps['title'];
|
|
31
|
+
/**
|
|
32
|
+
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.dataSource}
|
|
33
|
+
*/
|
|
34
|
+
dataSource: MemberFilterTileProps['dataSource'];
|
|
35
|
+
/**
|
|
36
|
+
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.attribute}
|
|
37
|
+
*/
|
|
38
|
+
attribute: MemberFilterTileProps['attribute'];
|
|
39
|
+
/**
|
|
40
|
+
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.filter}
|
|
41
|
+
*/
|
|
42
|
+
filter: MemberFilterTileProps['filter'];
|
|
43
|
+
/**
|
|
44
|
+
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.onChange}
|
|
45
|
+
*/
|
|
46
|
+
filterChange: EventEmitter<ArgumentsAsObject<(filter: import("@sisense/sdk-data").Filter | null) => void, ["filter"]>>;
|
|
47
|
+
private componentAdapter;
|
|
48
|
+
/**
|
|
49
|
+
* Constructor for the `MemberFilterTileComponent`.
|
|
50
|
+
*
|
|
51
|
+
* @param sisenseContextService - Sisense context service
|
|
52
|
+
* @param themeService - Theme service
|
|
53
|
+
*/
|
|
54
|
+
constructor(
|
|
55
|
+
/**
|
|
56
|
+
* Sisense context service
|
|
57
|
+
*
|
|
58
|
+
* @category Constructor
|
|
59
|
+
*/
|
|
60
|
+
sisenseContextService: SisenseContextService,
|
|
61
|
+
/**
|
|
62
|
+
* Theme service
|
|
63
|
+
*
|
|
64
|
+
* @category Constructor
|
|
65
|
+
*/
|
|
66
|
+
themeService: ThemeService);
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
ngAfterViewInit(): void;
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
ngOnChanges(): void;
|
|
75
|
+
private createPreactComponent;
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
ngOnDestroy(): void;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MemberFilterTileComponent, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MemberFilterTileComponent, "csdk-member-filter-tile", never, { "title": "title"; "dataSource": "dataSource"; "attribute": "attribute"; "filter": "filter"; }, { "filterChange": "filterChange"; }, never, never, false, never>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { type ChartType, type SunburstChartProps } from '@sisense/sdk-ui-preact';
|
|
3
|
+
import { type ArgumentsAsObject } from '../utility-types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* A component displaying hierarchical data in the form of nested slices.
|
|
7
|
+
* This type of chart can be used instead of a pie chart for comparing a large number of categories and sub-categories.
|
|
8
|
+
* See [Sunburst Chart](https://docs.sisense.com/main/SisenseLinux/sunburst-widget.htm) for more information.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SunburstChartComponent {
|
|
11
|
+
/**
|
|
12
|
+
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.dataSet}
|
|
13
|
+
*
|
|
14
|
+
* @category Data
|
|
15
|
+
*/
|
|
16
|
+
dataSet: SunburstChartProps['dataSet'];
|
|
17
|
+
/**
|
|
18
|
+
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.dataOptions}
|
|
19
|
+
*
|
|
20
|
+
* @category Chart
|
|
21
|
+
*/
|
|
22
|
+
dataOptions: SunburstChartProps['dataOptions'];
|
|
23
|
+
/**
|
|
24
|
+
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.filters}
|
|
25
|
+
*
|
|
26
|
+
* @category Data
|
|
27
|
+
*/
|
|
28
|
+
filters: SunburstChartProps['filters'];
|
|
29
|
+
/**
|
|
30
|
+
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.highlights}
|
|
31
|
+
*
|
|
32
|
+
* @category Data
|
|
33
|
+
*/
|
|
34
|
+
highlights: SunburstChartProps['highlights'];
|
|
35
|
+
/**
|
|
36
|
+
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.styleOptions}
|
|
37
|
+
*
|
|
38
|
+
* @category Chart
|
|
39
|
+
*/
|
|
40
|
+
styleOptions: SunburstChartProps['styleOptions'];
|
|
41
|
+
/**
|
|
42
|
+
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.onBeforeRender}
|
|
43
|
+
*
|
|
44
|
+
* @category Callbacks
|
|
45
|
+
*/
|
|
46
|
+
beforeRender: SunburstChartProps['onBeforeRender'];
|
|
47
|
+
/**
|
|
48
|
+
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.onDataPointClick}
|
|
49
|
+
*
|
|
50
|
+
* @category Callbacks
|
|
51
|
+
*/
|
|
52
|
+
dataPointClick: EventEmitter<ArgumentsAsObject<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined, ["point", "nativeEvent"]>>;
|
|
53
|
+
/**
|
|
54
|
+
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.onDataPointContextMenu}
|
|
55
|
+
*
|
|
56
|
+
* @category Callbacks
|
|
57
|
+
*/
|
|
58
|
+
dataPointContextMenu: EventEmitter<ArgumentsAsObject<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined, ["point", "nativeEvent"]>>;
|
|
59
|
+
/**
|
|
60
|
+
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.onDataPointsSelected}
|
|
61
|
+
*
|
|
62
|
+
* @category Callbacks
|
|
63
|
+
*/
|
|
64
|
+
dataPointsSelect: EventEmitter<ArgumentsAsObject<import("@sisense/sdk-ui-preact").DataPointsEventHandler | undefined, ["points", "nativeEvent"]>>;
|
|
65
|
+
/** @internal */
|
|
66
|
+
chartType: ChartType;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SunburstChartComponent, never>;
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SunburstChartComponent, "csdk-sunburst-chart", never, { "dataSet": "dataSet"; "dataOptions": "dataOptions"; "filters": "filters"; "highlights": "highlights"; "styleOptions": "styleOptions"; "beforeRender": "beforeRender"; }, { "dataPointClick": "dataPointClick"; "dataPointContextMenu": "dataPointContextMenu"; "dataPointsSelect": "dataPointsSelect"; }, never, never, false, never>;
|
|
69
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SisenseContextService } from '../services';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DecoratorsModule {
|
|
4
|
+
static sisenseContextService: SisenseContextService;
|
|
5
|
+
constructor(sisenseContextService: SisenseContextService);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DecoratorsModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DecoratorsModule, never, never, never>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DecoratorsModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function Trackable(target: unknown, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor;
|
|
2
|
+
type ConstructorOf<T> = {
|
|
3
|
+
new (...args: any[]): T;
|
|
4
|
+
};
|
|
5
|
+
type SubType<Base, Condition> = Pick<Base, {
|
|
6
|
+
[Key in keyof Base]: Base[Key] extends Condition ? Key : never;
|
|
7
|
+
}[keyof Base]>;
|
|
8
|
+
type MethodsOnly<T> = SubType<T, (...args: any[]) => any>;
|
|
9
|
+
type MethodsArray<T> = T extends infer C ? (keyof MethodsOnly<C>)[] : [];
|
|
10
|
+
export declare function TrackableService<T>(trackableMethods: MethodsArray<T>): (ServiceClass: ConstructorOf<T>) => void | ConstructorOf<T>;
|
|
11
|
+
export {};
|
|
@@ -13,9 +13,16 @@ import * as i11 from "./components/pie-chart.component";
|
|
|
13
13
|
import * as i12 from "./components/funnel-chart.component";
|
|
14
14
|
import * as i13 from "./components/polar-chart.component";
|
|
15
15
|
import * as i14 from "./components/treemap-chart.component";
|
|
16
|
-
import * as i15 from "./components/
|
|
17
|
-
import * as i16 from "./components/
|
|
18
|
-
import * as i17 from "
|
|
16
|
+
import * as i15 from "./components/sunburst-chart.component";
|
|
17
|
+
import * as i16 from "./components/table-widget.component";
|
|
18
|
+
import * as i17 from "./components/dashboard-widget.component";
|
|
19
|
+
import * as i18 from "./components/member-filter-tile.component";
|
|
20
|
+
import * as i19 from "./components/drilldown-widget.component";
|
|
21
|
+
import * as i20 from "./components/date-range-filter-tile.component";
|
|
22
|
+
import * as i21 from "./components/drilldown-breadcrumbs.component";
|
|
23
|
+
import * as i22 from "./components/context-menu.component";
|
|
24
|
+
import * as i23 from "@angular/common";
|
|
25
|
+
import * as i24 from "./decorators/decorators.module";
|
|
19
26
|
/**
|
|
20
27
|
* SDK UI Module, which is a container for components.
|
|
21
28
|
*
|
|
@@ -44,6 +51,6 @@ import * as i17 from "@angular/common";
|
|
|
44
51
|
*/
|
|
45
52
|
export declare class SdkUiModule {
|
|
46
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdkUiModule, never>;
|
|
47
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SdkUiModule, [typeof i1.BasicMemberFilterTileComponent, typeof i2.ChartComponent, typeof i3.TableComponent, typeof i4.ChartWidgetComponent, typeof i5.ColumnChartComponent, typeof i6.BarChartComponent, typeof i7.AreaChartComponent, typeof i8.LineChartComponent, typeof i9.IndicatorChartComponent, typeof i10.ScatterChartComponent, typeof i11.PieChartComponent, typeof i12.FunnelChartComponent, typeof i13.PolarChartComponent, typeof i14.TreemapChartComponent, typeof i15.
|
|
54
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SdkUiModule, [typeof i1.BasicMemberFilterTileComponent, typeof i2.ChartComponent, typeof i3.TableComponent, typeof i4.ChartWidgetComponent, typeof i5.ColumnChartComponent, typeof i6.BarChartComponent, typeof i7.AreaChartComponent, typeof i8.LineChartComponent, typeof i9.IndicatorChartComponent, typeof i10.ScatterChartComponent, typeof i11.PieChartComponent, typeof i12.FunnelChartComponent, typeof i13.PolarChartComponent, typeof i14.TreemapChartComponent, typeof i15.SunburstChartComponent, typeof i16.TableWidgetComponent, typeof i17.DashboardWidgetComponent, typeof i18.MemberFilterTileComponent, typeof i19.DrilldownWidgetComponent, typeof i20.DateRangeFilterTileComponent, typeof i21.DrilldownBreadcrumbsComponent, typeof i22.ContextMenuComponent], [typeof i23.CommonModule, typeof i24.DecoratorsModule], [typeof i1.BasicMemberFilterTileComponent, typeof i2.ChartComponent, typeof i3.TableComponent, typeof i4.ChartWidgetComponent, typeof i5.ColumnChartComponent, typeof i6.BarChartComponent, typeof i7.AreaChartComponent, typeof i8.LineChartComponent, typeof i9.IndicatorChartComponent, typeof i10.ScatterChartComponent, typeof i11.PieChartComponent, typeof i12.FunnelChartComponent, typeof i13.PolarChartComponent, typeof i14.TreemapChartComponent, typeof i15.SunburstChartComponent, typeof i16.TableWidgetComponent, typeof i17.DashboardWidgetComponent, typeof i18.MemberFilterTileComponent, typeof i19.DrilldownWidgetComponent, typeof i20.DateRangeFilterTileComponent, typeof i21.DrilldownBreadcrumbsComponent, typeof i22.ContextMenuComponent]>;
|
|
48
55
|
static ɵinj: i0.ɵɵInjectorDeclaration<SdkUiModule>;
|
|
49
56
|
}
|