@sisense/sdk-ui-angular 1.20.0 → 1.21.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.
Files changed (27) hide show
  1. package/dist/esm2020/lib/components/dashboard/dashboard-by-id.component.mjs +13 -13
  2. package/dist/esm2020/lib/components/dashboard/dashboard.component.mjs +18 -11
  3. package/dist/esm2020/lib/components/filters/criteria-filter-tile.component.mjs +131 -0
  4. package/dist/esm2020/lib/components/filters/date-range-filter-tile.component.mjs +1 -3
  5. package/dist/esm2020/lib/components/filters/index.mjs +2 -1
  6. package/dist/esm2020/lib/components/filters/member-filter-tile.component.mjs +1 -3
  7. package/dist/esm2020/lib/components/widgets/chart-widget.component.mjs +2 -2
  8. package/dist/esm2020/lib/sdk-ui.module.mjs +6 -2
  9. package/dist/esm2020/public-api.mjs +4 -6
  10. package/dist/esm2020/version.mjs +2 -2
  11. package/dist/fesm2015/sisense-sdk-ui-angular.mjs +164 -35
  12. package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
  13. package/dist/fesm2020/sisense-sdk-ui-angular.mjs +164 -35
  14. package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
  15. package/dist/lib/components/dashboard/dashboard-by-id.component.d.ts +12 -12
  16. package/dist/lib/components/dashboard/dashboard.component.d.ts +17 -10
  17. package/dist/lib/components/filters/criteria-filter-tile.component.d.ts +117 -0
  18. package/dist/lib/components/filters/date-range-filter-tile.component.d.ts +0 -2
  19. package/dist/lib/components/filters/index.d.ts +1 -0
  20. package/dist/lib/components/filters/member-filter-tile.component.d.ts +0 -2
  21. package/dist/lib/components/widgets/chart-widget.component.d.ts +1 -1
  22. package/dist/lib/sdk-ui.module.d.ts +12 -11
  23. package/dist/lib/services/plugins.service.d.ts +1 -1
  24. package/dist/package.json +1 -1
  25. package/dist/public-api.d.ts +3 -5
  26. package/dist/version.d.ts +1 -1
  27. package/package.json +4 -4
@@ -10,23 +10,23 @@ import * as i0 from "@angular/core";
10
10
  * **Note:** Dashboard extensions based on JS scripts and add-ons in Fusion are not supported.
11
11
  *
12
12
  * @example
13
- * ```html
14
- * <csdk-dashboard-by-id
15
- * [dashboardOid]="dashboardOid"
16
- * />
17
- * ```
18
13
  * ```ts
19
14
  * import { Component } from '@angular/core';
20
- *
21
15
  * @Component({
22
- * selector: 'app-dashboard',
23
- * templateUrl: './dashboard.component.html',
24
- * styleUrls: ['./dashboard.component.scss'],
25
- * })
26
- * export class DashboardComponent {
27
- * dashboardOid: string = '60f3e3e3e4b0e3e3e4b0e3e3';
16
+ * selector: 'code-example',
17
+ * template: `
18
+ * <div style="width: 100vw;">
19
+ * <csdk-dashboard-by-id *ngIf="dashboardOid" [dashboardOid]="dashboardOid" />
20
+ * </div>
21
+ * `,
22
+ * })
23
+ * export class CodeExampleComponent {
24
+ * dashboardOid = 'your-dashboard-oid';
28
25
  * }
29
26
  * ```
27
+ *
28
+ * To learn more about this and related dashboard components,
29
+ * see [Embedded Dashboards](/guides/sdk/guides/dashboards/index.html).
30
30
  * @group Fusion Embed
31
31
  * @fusionEmbed
32
32
  * @beta
@@ -12,18 +12,22 @@ import * as i0 from "@angular/core";
12
12
  * ```html
13
13
  * <csdk-dashboard
14
14
  * *ngIf="dashboard"
15
- * [title]="dashboard!.title"
16
- * [layoutOptions]="dashboard!.layoutOptions"
17
- * [widgets]="dashboard!.widgets"
18
- * [filters]="dashboard!.filters"
19
- * [defaultDataSource]="dashboard!.dataSource"
20
- * [widgetsOptions]="dashboard!.widgetsOptions"
15
+ * [title]="dashboard.title"
16
+ * [layoutOptions]="dashboard.layoutOptions"
17
+ * [widgets]="dashboard.widgets"
18
+ * [filters]="dashboard.filters"
19
+ * [defaultDataSource]="dashboard.defaultDataSource"
20
+ * [widgetsOptions]="dashboard.widgetsOptions"
21
21
  * />
22
22
  * ```
23
23
  *
24
24
  * ```ts
25
25
  * import { Component } from '@angular/core';
26
- * import { type DashboardProps, DashboardService } from '@sisense/sdk-ui-angular';
26
+ * import {
27
+ * type DashboardProps,
28
+ * DashboardService,
29
+ * dashboardModelTranslator,
30
+ * } from '@sisense/sdk-ui-angular';
27
31
  *
28
32
  * @Component({
29
33
  * selector: 'app-dashboard',
@@ -37,11 +41,14 @@ import * as i0 from "@angular/core";
37
41
  * constructor(private dashboardService: DashboardService) {}
38
42
  *
39
43
  * async ngOnInit(): Promise<void> {
40
- * const dashboardModel = await this.dashboardService.getDashboardModel('60f3e3e3e4b0e3e3e4b0e3e3', { includeWidgets: true, includeFilters: true });
41
- * this.dashboardProps = dashboardModelTranslator.toDashboardProps(dashboardModel);
44
+ * const dashboardModel = await this.dashboardService.getDashboardModel('your-dashboard-oid', { includeWidgets: true, includeFilters: true });
45
+ * this.dashboard = dashboardModelTranslator.toDashboardProps(dashboardModel);
42
46
  * }
43
47
  * ```
44
- * @group Dashboarding
48
+ *
49
+ * To learn more about this and related dashboard components,
50
+ * see [Embedded Dashboards](/guides/sdk/guides/dashboards/index.html).
51
+ * @group Dashboards
45
52
  * @beta
46
53
  */
47
54
  export declare class DashboardComponent implements AfterViewInit, OnChanges, OnDestroy {
@@ -0,0 +1,117 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
2
+ import { type CriteriaFilterTileProps } 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 '../../types/utility-types';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Criteria Filter Tile Component
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <csdk-criteria-filter-tile
13
+ * [title]="criteriaFilterTileProps.title"
14
+ * [filter]="criteriaFilterTileProps.filter"
15
+ * (filterChange)="criteriaFilterTileProps.setFilter($event)"
16
+ * />
17
+ * ```
18
+ * ```ts
19
+ * import { Component } from '@angular/core';
20
+ * import { Filter, filterFactory } from '@sisense/sdk-data';
21
+ * import * as DM from '../../assets/sample-healthcare-model';
22
+ *
23
+ * @Component({
24
+ * selector: 'app-filters',
25
+ * templateUrl: './filters.component.html',
26
+ * styleUrls: ['./filters.component.scss'],
27
+ * })
28
+ * export class FiltersComponent {
29
+ * DM = DM;
30
+ * title: 'Room Number',
31
+ * filter: filterFactory.lessThan(DM.Rooms.Room_number, 200) as CriteriaFilterType,
32
+ * setFilter({ filter }: { filter: Filter | null }) {
33
+ * console.log(filter);
34
+ * if (filter) {
35
+ * this.filter = filter as CriteriaFilterType;
36
+ * }
37
+ * },
38
+ * }
39
+ * ```
40
+ * <img src="media://angular-criteria-filter-tile-example.png" width="400px" />
41
+ * @group Filter Tiles
42
+ */
43
+ export declare class CriteriaFilterTileComponent implements AfterViewInit, OnChanges, OnDestroy {
44
+ /**
45
+ * Sisense context service
46
+ *
47
+ * @category Constructor
48
+ */
49
+ sisenseContextService: SisenseContextService;
50
+ /**
51
+ * Theme service
52
+ *
53
+ * @category Constructor
54
+ */
55
+ themeService: ThemeService;
56
+ /**
57
+ * @internal
58
+ */
59
+ preactRef: ElementRef<HTMLDivElement>;
60
+ /**
61
+ * {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.title}
62
+ */
63
+ title: CriteriaFilterTileProps['title'];
64
+ /**
65
+ * {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.filter}
66
+ */
67
+ filter: CriteriaFilterTileProps['filter'];
68
+ /**
69
+ * {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.arrangement}
70
+ */
71
+ arrangement: CriteriaFilterTileProps['arrangement'];
72
+ /**
73
+ * {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.measures}
74
+ */
75
+ measures: CriteriaFilterTileProps['measures'];
76
+ /** @internal */
77
+ tileDesignOptions: CriteriaFilterTileProps['tileDesignOptions'];
78
+ /**
79
+ * {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.onChange}
80
+ */
81
+ filterChange: EventEmitter<ArgumentsAsObject<(filter: import("@sisense/sdk-data").Filter | null) => void, ["filter"]>>;
82
+ private componentAdapter;
83
+ /**
84
+ * Constructor for the `CriteriaFilterTileComponent`.
85
+ *
86
+ * @param sisenseContextService - Sisense context service
87
+ * @param themeService - Theme service
88
+ */
89
+ constructor(
90
+ /**
91
+ * Sisense context service
92
+ *
93
+ * @category Constructor
94
+ */
95
+ sisenseContextService: SisenseContextService,
96
+ /**
97
+ * Theme service
98
+ *
99
+ * @category Constructor
100
+ */
101
+ themeService: ThemeService);
102
+ /**
103
+ * @internal
104
+ */
105
+ ngAfterViewInit(): void;
106
+ /**
107
+ * @internal
108
+ */
109
+ ngOnChanges(): void;
110
+ private createPreactComponent;
111
+ /**
112
+ * @internal
113
+ */
114
+ ngOnDestroy(): void;
115
+ static ɵfac: i0.ɵɵFactoryDeclaration<CriteriaFilterTileComponent, never>;
116
+ static ɵcmp: i0.ɵɵComponentDeclaration<CriteriaFilterTileComponent, "csdk-criteria-filter-tile", never, { "title": "title"; "filter": "filter"; "arrangement": "arrangement"; "measures": "measures"; "tileDesignOptions": "tileDesignOptions"; }, { "filterChange": "filterChange"; }, never, never, false, never>;
117
+ }
@@ -18,7 +18,6 @@ import * as i0 from "@angular/core";
18
18
  * ```
19
19
  * ```ts
20
20
  * import { Component } from '@angular/core';
21
- * import { Member } from '@sisense/sdk-ui-angular';
22
21
  * import { Filter, filterFactory } from '@sisense/sdk-data';
23
22
  * import * as DM from '../../assets/sample-healthcare-model';
24
23
  *
@@ -44,7 +43,6 @@ import * as i0 from "@angular/core";
44
43
  * }
45
44
  * ```
46
45
  * <img src="media://angular-date-range-filter-tile-example.png" width="600px" />
47
- *
48
46
  * @group Filter Tiles
49
47
  */
50
48
  export declare class DateRangeFilterTileComponent implements AfterViewInit, OnChanges, OnDestroy {
@@ -1,3 +1,4 @@
1
1
  export * from './basic-member-filter-tile.component';
2
2
  export * from './member-filter-tile.component';
3
3
  export * from './date-range-filter-tile.component';
4
+ export * from './criteria-filter-tile.component';
@@ -18,7 +18,6 @@ import * as i0 from "@angular/core";
18
18
  * ```
19
19
  * ```ts
20
20
  * import { Component } from '@angular/core';
21
- * import { Member } from '@sisense/sdk-ui-angular';
22
21
  * import { Filter, filterFactory } from '@sisense/sdk-data';
23
22
  * import * as DM from '../../assets/sample-healthcare-model';
24
23
  *
@@ -40,7 +39,6 @@ import * as i0 from "@angular/core";
40
39
  * }
41
40
  * ```
42
41
  * <img src="media://angular-member-filter-tile-example.png" width="400px" />
43
- *
44
42
  * @group Filter Tiles
45
43
  */
46
44
  export declare class MemberFilterTileComponent implements AfterViewInit, OnChanges, OnDestroy {
@@ -60,7 +60,7 @@ import * as i0 from "@angular/core";
60
60
  * ```
61
61
  * <img src="media://angular-chart-widget-example.png" width="800px" />
62
62
  *
63
- * @group Dashboarding
63
+ * @group Dashboards
64
64
  */
65
65
  export declare class ChartWidgetComponent implements AfterViewInit, OnChanges, OnDestroy {
66
66
  private sisenseContextService;
@@ -20,16 +20,17 @@ import * as i18 from "./components/widgets/dashboard-widget.component";
20
20
  import * as i19 from "./components/filters/member-filter-tile.component";
21
21
  import * as i20 from "./components/widgets/drilldown-widget.component";
22
22
  import * as i21 from "./components/filters/date-range-filter-tile.component";
23
- import * as i22 from "./components/drilldown-breadcrumbs.component";
24
- import * as i23 from "./components/context-menu.component";
25
- import * as i24 from "./components/charts/boxplot-chart.component";
26
- import * as i25 from "./components/charts/scattermap-chart.component";
27
- import * as i26 from "./components/charts/areamap-chart.component";
28
- import * as i27 from "./components/charts/pivot-table.component";
29
- import * as i28 from "./components/dashboard/dashboard-by-id.component";
30
- import * as i29 from "./components/dashboard/dashboard.component";
31
- import * as i30 from "@angular/common";
32
- import * as i31 from "./decorators/decorators.module";
23
+ import * as i22 from "./components/filters/criteria-filter-tile.component";
24
+ import * as i23 from "./components/drilldown-breadcrumbs.component";
25
+ import * as i24 from "./components/context-menu.component";
26
+ import * as i25 from "./components/charts/boxplot-chart.component";
27
+ import * as i26 from "./components/charts/scattermap-chart.component";
28
+ import * as i27 from "./components/charts/areamap-chart.component";
29
+ import * as i28 from "./components/charts/pivot-table.component";
30
+ import * as i29 from "./components/dashboard/dashboard-by-id.component";
31
+ import * as i30 from "./components/dashboard/dashboard.component";
32
+ import * as i31 from "@angular/common";
33
+ import * as i32 from "./decorators/decorators.module";
33
34
  /**
34
35
  * SDK UI Module, which is a container for components.
35
36
  *
@@ -60,6 +61,6 @@ import * as i31 from "./decorators/decorators.module";
60
61
  */
61
62
  export declare class SdkUiModule {
62
63
  static ɵfac: i0.ɵɵFactoryDeclaration<SdkUiModule, never>;
63
- 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.AreaRangeChartComponent, typeof i9.LineChartComponent, typeof i10.IndicatorChartComponent, typeof i11.ScatterChartComponent, typeof i12.PieChartComponent, typeof i13.FunnelChartComponent, typeof i14.PolarChartComponent, typeof i15.TreemapChartComponent, typeof i16.SunburstChartComponent, typeof i17.TableWidgetComponent, typeof i18.DashboardWidgetComponent, typeof i19.MemberFilterTileComponent, typeof i20.DrilldownWidgetComponent, typeof i21.DateRangeFilterTileComponent, typeof i22.DrilldownBreadcrumbsComponent, typeof i23.ContextMenuComponent, typeof i24.BoxplotChartComponent, typeof i25.ScattermapChartComponent, typeof i26.AreamapChartComponent, typeof i27.PivotTableComponent, typeof i28.DashboardByIdComponent, typeof i29.DashboardComponent], [typeof i30.CommonModule, typeof i31.DecoratorsModule], [typeof i1.BasicMemberFilterTileComponent, typeof i2.ChartComponent, typeof i3.TableComponent, typeof i4.ChartWidgetComponent, typeof i5.ColumnChartComponent, typeof i6.BarChartComponent, typeof i7.AreaChartComponent, typeof i8.AreaRangeChartComponent, typeof i9.LineChartComponent, typeof i10.IndicatorChartComponent, typeof i11.ScatterChartComponent, typeof i12.PieChartComponent, typeof i13.FunnelChartComponent, typeof i14.PolarChartComponent, typeof i15.TreemapChartComponent, typeof i16.SunburstChartComponent, typeof i17.TableWidgetComponent, typeof i18.DashboardWidgetComponent, typeof i19.MemberFilterTileComponent, typeof i20.DrilldownWidgetComponent, typeof i21.DateRangeFilterTileComponent, typeof i22.DrilldownBreadcrumbsComponent, typeof i23.ContextMenuComponent, typeof i24.BoxplotChartComponent, typeof i25.ScattermapChartComponent, typeof i26.AreamapChartComponent, typeof i27.PivotTableComponent, typeof i28.DashboardByIdComponent, typeof i29.DashboardComponent]>;
64
+ 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.AreaRangeChartComponent, typeof i9.LineChartComponent, typeof i10.IndicatorChartComponent, typeof i11.ScatterChartComponent, typeof i12.PieChartComponent, typeof i13.FunnelChartComponent, typeof i14.PolarChartComponent, typeof i15.TreemapChartComponent, typeof i16.SunburstChartComponent, typeof i17.TableWidgetComponent, typeof i18.DashboardWidgetComponent, typeof i19.MemberFilterTileComponent, typeof i20.DrilldownWidgetComponent, typeof i21.DateRangeFilterTileComponent, typeof i22.CriteriaFilterTileComponent, typeof i23.DrilldownBreadcrumbsComponent, typeof i24.ContextMenuComponent, typeof i25.BoxplotChartComponent, typeof i26.ScattermapChartComponent, typeof i27.AreamapChartComponent, typeof i28.PivotTableComponent, typeof i29.DashboardByIdComponent, typeof i30.DashboardComponent], [typeof i31.CommonModule, typeof i32.DecoratorsModule], [typeof i1.BasicMemberFilterTileComponent, typeof i2.ChartComponent, typeof i3.TableComponent, typeof i4.ChartWidgetComponent, typeof i5.ColumnChartComponent, typeof i6.BarChartComponent, typeof i7.AreaChartComponent, typeof i8.AreaRangeChartComponent, typeof i9.LineChartComponent, typeof i10.IndicatorChartComponent, typeof i11.ScatterChartComponent, typeof i12.PieChartComponent, typeof i13.FunnelChartComponent, typeof i14.PolarChartComponent, typeof i15.TreemapChartComponent, typeof i16.SunburstChartComponent, typeof i17.TableWidgetComponent, typeof i18.DashboardWidgetComponent, typeof i19.MemberFilterTileComponent, typeof i20.DrilldownWidgetComponent, typeof i21.DateRangeFilterTileComponent, typeof i22.CriteriaFilterTileComponent, typeof i23.DrilldownBreadcrumbsComponent, typeof i24.ContextMenuComponent, typeof i25.BoxplotChartComponent, typeof i26.ScattermapChartComponent, typeof i27.AreamapChartComponent, typeof i28.PivotTableComponent, typeof i29.DashboardByIdComponent, typeof i30.DashboardComponent]>;
64
65
  static ɵinj: i0.ɵɵInjectorDeclaration<SdkUiModule>;
65
66
  }
@@ -31,7 +31,7 @@ export declare class PluginsService {
31
31
  *
32
32
  * @returns A plugin map.
33
33
  */
34
- getPlugins(): BehaviorSubject<Map<string, PluginComponent>>;
34
+ getPlugins(): BehaviorSubject<Map<string, PluginComponent<import("@sisense/sdk-ui-preact").GenericDataOptions, any>>>;
35
35
  static ɵfac: i0.ɵɵFactoryDeclaration<PluginsService, never>;
36
36
  static ɵprov: i0.ɵɵInjectableDeclaration<PluginsService>;
37
37
  }
package/dist/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "1.20.0",
14
+ "version": "1.21.0",
15
15
  "author": "Sisense",
16
16
  "license": "SEE LICENSE IN LICENSE.md",
17
17
  "main": "dist",
@@ -1,9 +1,7 @@
1
1
  /**
2
2
  * @packageDocumentation
3
3
  * @groupDescription Charts
4
- * Angular components for charts
5
- * @groupDescription Chart Utilities
6
- * Utilities to be used with charts
4
+ * Angular components and utilities for working with charts
7
5
  * @groupDescription Data Grids
8
6
  * Angular components for data grids
9
7
  * @groupDescription Drilldown
@@ -14,8 +12,8 @@
14
12
  * Angular context modules, services, and variables
15
13
  * @groupDescription Queries
16
14
  * Angular query service
17
- * @groupDescription Dashboarding
18
- * Angular modules, services, and components for composing dashboards
15
+ * @groupDescription Dashboards
16
+ * Angular components and utilities for working with dashboards
19
17
  * @groupDescription Fusion Embed
20
18
  * Angular modules, services, and components for working with Fusion Embed dashboards, widgets, queries, and formulas
21
19
  * @groupDescription Interfaces
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.20.0";
1
+ declare const _default: "1.21.0";
2
2
  export default _default;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "1.20.0",
14
+ "version": "1.21.0",
15
15
  "author": "Sisense",
16
16
  "license": "SEE LICENSE IN LICENSE.md",
17
17
  "main": "dist",
@@ -45,9 +45,9 @@
45
45
  "@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
46
46
  },
47
47
  "dependencies": {
48
- "@sisense/sdk-data": "^1.20.0",
49
- "@sisense/sdk-tracking": "^1.20.0",
50
- "@sisense/sdk-ui-preact": "^1.20.0",
48
+ "@sisense/sdk-data": "^1.21.0",
49
+ "@sisense/sdk-tracking": "^1.21.0",
50
+ "@sisense/sdk-ui-preact": "^1.21.0",
51
51
  "rxjs": "^7.8.1",
52
52
  "ts-deepmerge": "^6.2.0",
53
53
  "tslib": "^2.3.0"