@sisense/sdk-ui-angular 0.13.0 → 0.15.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 (67) hide show
  1. package/dist/esm2020/lib/component-wrapper-helpers/template.mjs +12 -2
  2. package/dist/esm2020/lib/components/area-chart.component.mjs +6 -2
  3. package/dist/esm2020/lib/components/bar-chart.component.mjs +6 -2
  4. package/dist/esm2020/lib/components/basic-member-filter-tile.component.mjs +1 -1
  5. package/dist/esm2020/lib/components/chart-widget.component.mjs +6 -3
  6. package/dist/esm2020/lib/components/chart.component.mjs +1 -1
  7. package/dist/esm2020/lib/components/column-chart.component.mjs +6 -2
  8. package/dist/esm2020/lib/components/context-menu.component.mjs +92 -0
  9. package/dist/esm2020/lib/components/dashboard-widget.component.mjs +10 -3
  10. package/dist/esm2020/lib/components/date-range-filter-tile.component.mjs +101 -0
  11. package/dist/esm2020/lib/components/drilldown-breadcrumbs.component.mjs +100 -0
  12. package/dist/esm2020/lib/components/drilldown-widget.component.mjs +171 -0
  13. package/dist/esm2020/lib/components/funnel-chart.component.mjs +5 -2
  14. package/dist/esm2020/lib/components/index.mjs +7 -1
  15. package/dist/esm2020/lib/components/indicator-chart.component.mjs +5 -2
  16. package/dist/esm2020/lib/components/line-chart.component.mjs +5 -2
  17. package/dist/esm2020/lib/components/member-filter-tile.component.mjs +95 -0
  18. package/dist/esm2020/lib/components/pie-chart.component.mjs +6 -2
  19. package/dist/esm2020/lib/components/polar-chart.component.mjs +5 -2
  20. package/dist/esm2020/lib/components/scatter-chart.component.mjs +12 -2
  21. package/dist/esm2020/lib/components/sunburst-chart.component.mjs +86 -0
  22. package/dist/esm2020/lib/components/table-widget.component.mjs +3 -3
  23. package/dist/esm2020/lib/components/table.component.mjs +3 -3
  24. package/dist/esm2020/lib/components/treemap-chart.component.mjs +6 -2
  25. package/dist/esm2020/lib/decorators/decorators.module.mjs +19 -0
  26. package/dist/esm2020/lib/decorators/trackable.decorator.mjs +42 -0
  27. package/dist/esm2020/lib/sdk-ui.module.mjs +31 -6
  28. package/dist/esm2020/lib/services/dashboard.service.mjs +45 -0
  29. package/dist/esm2020/lib/services/index.mjs +2 -1
  30. package/dist/esm2020/lib/services/query.service.mjs +21 -3
  31. package/dist/esm2020/lib/services/theme.service.mjs +10 -4
  32. package/dist/esm2020/version.mjs +2 -0
  33. package/dist/fesm2015/sisense-sdk-ui-angular.mjs +887 -80
  34. package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
  35. package/dist/fesm2020/sisense-sdk-ui-angular.mjs +887 -79
  36. package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
  37. package/dist/lib/component-wrapper-helpers/template.d.ts +2 -0
  38. package/dist/lib/components/area-chart.component.d.ts +3 -1
  39. package/dist/lib/components/bar-chart.component.d.ts +3 -1
  40. package/dist/lib/components/chart-widget.component.d.ts +47 -5
  41. package/dist/lib/components/column-chart.component.d.ts +9 -2
  42. package/dist/lib/components/context-menu.component.d.ts +78 -0
  43. package/dist/lib/components/dashboard-widget.component.d.ts +6 -2
  44. package/dist/lib/components/date-range-filter-tile.component.d.ts +90 -0
  45. package/dist/lib/components/drilldown-breadcrumbs.component.d.ts +86 -0
  46. package/dist/lib/components/drilldown-widget.component.d.ts +146 -0
  47. package/dist/lib/components/funnel-chart.component.d.ts +2 -1
  48. package/dist/lib/components/index.d.ts +6 -0
  49. package/dist/lib/components/indicator-chart.component.d.ts +2 -1
  50. package/dist/lib/components/line-chart.component.d.ts +2 -1
  51. package/dist/lib/components/member-filter-tile.component.d.ts +82 -0
  52. package/dist/lib/components/pie-chart.component.d.ts +3 -1
  53. package/dist/lib/components/polar-chart.component.d.ts +2 -1
  54. package/dist/lib/components/scatter-chart.component.d.ts +9 -1
  55. package/dist/lib/components/sunburst-chart.component.d.ts +69 -0
  56. package/dist/lib/components/table-widget.component.d.ts +29 -3
  57. package/dist/lib/components/table.component.d.ts +5 -5
  58. package/dist/lib/components/treemap-chart.component.d.ts +3 -1
  59. package/dist/lib/decorators/decorators.module.d.ts +9 -0
  60. package/dist/lib/decorators/trackable.decorator.d.ts +11 -0
  61. package/dist/lib/sdk-ui.module.d.ts +11 -4
  62. package/dist/lib/services/dashboard.service.d.ts +24 -0
  63. package/dist/lib/services/index.d.ts +1 -0
  64. package/dist/lib/services/query.service.d.ts +12 -0
  65. package/dist/package.json +12 -13
  66. package/dist/version.d.ts +2 -0
  67. package/package.json +18 -13
@@ -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
+ }
@@ -3,7 +3,9 @@ import { type ChartType, type PieChartProps } from '@sisense/sdk-ui-preact';
3
3
  import { type ArgumentsAsObject } from '../utility-types';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
- * Pie Chart Component
6
+ * A component representing data in a circular graph with the data shown as slices of a whole,
7
+ * with each slice representing a proportion of the total.
8
+ * See [Pie Chart](https://docs.sisense.com/main/SisenseLinux/pie-chart.htm) for more information.
7
9
  */
8
10
  export declare class PieChartComponent {
9
11
  /**
@@ -3,7 +3,8 @@ import { type ChartType, type PolarChartProps } from '@sisense/sdk-ui-preact';
3
3
  import { type ArgumentsAsObject } from '../utility-types';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
- * Polar Chart Component
6
+ * A component comparing multiple categories/variables with a spacial perspective in a radial chart.
7
+ * See [Polar Chart](https://docs.sisense.com/main/SisenseLinux/polar-chart.htm) for more information.
7
8
  */
8
9
  export declare class PolarChartComponent {
9
10
  /**
@@ -3,7 +3,15 @@ import { type ChartType, type ScatterChartProps } from '@sisense/sdk-ui-preact';
3
3
  import { type ArgumentsAsObject } from '../utility-types';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
- * Scatter Chart Component
6
+ * A component displaying the distribution of two variables on an X-Axis, Y-Axis,
7
+ * and two additional fields of data that are shown as colored circles scattered across the chart.
8
+ *
9
+ * **Point**: A field that for each of its members a scatter point is drawn. The maximum amount of data points is 500.
10
+ *
11
+ * **Size**: An optional field represented by the size of the circles.
12
+ * If omitted, all scatter points are equal in size. If used, the circle sizes are relative to their values.
13
+ *
14
+ * See [Scatter Chart](https://docs.sisense.com/main/SisenseLinux/scatter-chart.htm) for more information.
7
15
  */
8
16
  export declare class ScatterChartComponent {
9
17
  /**
@@ -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
+ }
@@ -4,30 +4,56 @@ import { SisenseContextService } from '../services/sisense-context.service';
4
4
  import { ThemeService } from '../services/theme.service';
5
5
  import * as i0 from "@angular/core";
6
6
  /**
7
- * Table Widget Component
7
+ * The Table Widget component extending {@link TableComponent} component to support widget style options.
8
8
  *
9
9
  * @internal
10
10
  */
11
11
  export declare class TableWidgetComponent implements AfterViewInit, OnChanges, OnDestroy {
12
12
  private sisenseContextService;
13
13
  private themeService;
14
+ /** @internal */
14
15
  preactRef: ElementRef<HTMLDivElement>;
16
+ /**
17
+ * {@inheritDoc @sisense/sdk-ui!TableWidgetProps.dataSource}
18
+ *
19
+ * @category Data
20
+ */
15
21
  dataSource: TableWidgetProps['dataSource'];
22
+ /**
23
+ * {@inheritDoc @sisense/sdk-ui!TableWidgetProps.dataOptions}
24
+ *
25
+ * @category Data
26
+ */
16
27
  dataOptions: TableWidgetProps['dataOptions'];
17
28
  /**
18
- * {@inheritDoc @sisense/sdk-ui!ChartProps.filters}
29
+ * {@inheritDoc @sisense/sdk-ui!TableWidgetProps.filters}
19
30
  *
20
31
  * @category Data
21
32
  */
22
33
  filters: TableWidgetProps['filters'];
23
34
  /**
24
- * {@inheritDoc @sisense/sdk-ui!ChartProps.styleOptions}
35
+ * {@inheritDoc @sisense/sdk-ui!TableWidgetProps.styleOptions}
25
36
  *
26
37
  * @category Representation
27
38
  */
28
39
  styleOptions: TableWidgetProps['styleOptions'];
40
+ /**
41
+ * {@inheritDoc @sisense/sdk-ui!TableWidgetProps.widgetStyleOptions}
42
+ *
43
+ * @category Representation
44
+ */
29
45
  widgetStyleOptions: TableWidgetProps['widgetStyleOptions'];
46
+ /**
47
+ * {@inheritDoc @sisense/sdk-ui!TableWidgetProps.title}
48
+ *
49
+ * @category Widget
50
+ */
30
51
  title: TableWidgetProps['title'];
52
+ /**
53
+ * {@inheritDoc @sisense/sdk-ui!TableWidgetProps.description}
54
+ *
55
+ * @category Widget
56
+ */
31
57
  description: TableWidgetProps['description'];
32
58
  private componentAdapter;
33
59
  constructor(sisenseContextService: SisenseContextService, themeService: ThemeService);
@@ -4,7 +4,7 @@ import { SisenseContextService } from '../services/sisense-context.service';
4
4
  import { ThemeService } from '../services/theme.service';
5
5
  import * as i0 from "@angular/core";
6
6
  /**
7
- * Table Component
7
+ * Table with aggregation and pagination.
8
8
  */
9
9
  export declare class TableComponent implements AfterViewInit, OnChanges, OnDestroy {
10
10
  private sisenseContextService;
@@ -12,25 +12,25 @@ export declare class TableComponent implements AfterViewInit, OnChanges, OnDestr
12
12
  /** @internal */
13
13
  preactRef: ElementRef<HTMLDivElement>;
14
14
  /**
15
- * {@inheritDoc @sisense/sdk-ui!ChartProps.dataSet}
15
+ * {@inheritDoc @sisense/sdk-ui!TableProps.dataSet}
16
16
  *
17
17
  * @category Data
18
18
  */
19
19
  dataSet: TableProps['dataSet'];
20
20
  /**
21
- * {@inheritDoc @sisense/sdk-ui!ChartProps.highlights}
21
+ * {@inheritDoc @sisense/sdk-ui!TableProps.dataOptions}
22
22
  *
23
23
  * @category Data
24
24
  */
25
25
  dataOptions: TableProps['dataOptions'];
26
26
  /**
27
- * {@inheritDoc @sisense/sdk-ui!ChartProps.filters}
27
+ * {@inheritDoc @sisense/sdk-ui!TableProps.filters}
28
28
  *
29
29
  * @category Data
30
30
  */
31
31
  filters: TableProps['filters'];
32
32
  /**
33
- * {@inheritDoc @sisense/sdk-ui!ChartProps.styleOptions}
33
+ * {@inheritDoc @sisense/sdk-ui!TableProps.styleOptions}
34
34
  *
35
35
  * @category Representation
36
36
  */
@@ -3,7 +3,9 @@ import { type ChartType, type TreemapChartProps } from '@sisense/sdk-ui-preact';
3
3
  import { type ArgumentsAsObject } from '../utility-types';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
- * Treemap Chart Component
6
+ * A component displaying hierarchical data in the form of nested rectangles.
7
+ * This type of chart can be used instead of a column chart for comparing a large number of categories and sub-categories.
8
+ * See [Treemap Chart](https://docs.sisense.com/main/SisenseLinux/treemap.htm) for more information.
7
9
  */
8
10
  export declare class TreemapChartComponent {
9
11
  /**
@@ -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/table-widget.component";
17
- import * as i16 from "./components/dashboard-widget.component";
18
- import * as i17 from "@angular/common";
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.TableWidgetComponent, typeof i16.DashboardWidgetComponent], [typeof i17.CommonModule], [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.TableWidgetComponent, typeof i16.DashboardWidgetComponent]>;
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
  }
@@ -0,0 +1,24 @@
1
+ import { type GetDashboardModelsOptions, type GetDashboardModelOptions } from '@sisense/sdk-ui-preact';
2
+ import { SisenseContextService } from './sisense-context.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DashboardService {
5
+ private sisenseContextService;
6
+ constructor(sisenseContextService: SisenseContextService);
7
+ /**
8
+ * Retrieves an existing dashboard model from the Sisense instance.
9
+ *
10
+ * @param dashboardOid - Identifier of the dashboard
11
+ * @param options - Advanced configuration options
12
+ * @returns Dashboard model
13
+ */
14
+ getDashboardModel(dashboardOid: string, options?: GetDashboardModelOptions): Promise<import("@sisense/sdk-ui-preact").DashboardModel>;
15
+ /**
16
+ * Retrieves existing dashboard models from the Sisense instance.
17
+ *
18
+ * @param options - Advanced configuration options
19
+ * @returns Dashboard models array
20
+ */
21
+ getDashboardModels(options?: GetDashboardModelsOptions): Promise<import("@sisense/sdk-ui-preact").DashboardModel[]>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<DashboardService>;
24
+ }
@@ -1,3 +1,4 @@
1
1
  export * from './query.service';
2
2
  export * from './sisense-context.service';
3
3
  export * from './theme.service';
4
+ export * from './dashboard.service';
@@ -4,9 +4,21 @@ import * as i0 from "@angular/core";
4
4
  export declare class QueryService {
5
5
  private sisenseContextService;
6
6
  constructor(sisenseContextService: SisenseContextService);
7
+ /**
8
+ * Executes a data query.
9
+ *
10
+ * @param params - Query parameters
11
+ * return Query result
12
+ */
7
13
  executeQuery(params: ExecuteQueryParams): Promise<{
8
14
  data: import("@sisense/sdk-data").QueryResultData;
9
15
  }>;
16
+ /**
17
+ * Executes a data query extracted from an existing widget in the Sisense instance.
18
+ *
19
+ * @param params - Parameters to identify the target widget
20
+ * @returns Query result
21
+ */
10
22
  executeQueryByWidgetId(params: ExecuteQueryByWidgetIdParams): Promise<{
11
23
  data: import("@sisense/sdk-data").QueryResultData;
12
24
  query: ExecuteQueryParams;
package/dist/package.json CHANGED
@@ -1,21 +1,25 @@
1
1
  {
2
2
  "name": "@sisense/sdk-ui-angular",
3
- "version": "0.13.0",
4
- "type": "module",
5
- "main": "./dist",
6
- "module": "fesm2015/sisense-sdk-ui-angular.mjs",
7
- "types": "./dist/index.d.ts",
3
+ "version": "0.15.0",
8
4
  "author": "Sisense",
9
5
  "license": "SEE LICENSE IN LICENSE.md",
6
+ "main": "dist",
7
+ "module": "fesm2015/sisense-sdk-ui-angular.mjs",
8
+ "es2020": "fesm2020/sisense-sdk-ui-angular.mjs",
9
+ "esm2020": "esm2020/sisense-sdk-ui-angular.mjs",
10
+ "fesm2020": "fesm2020/sisense-sdk-ui-angular.mjs",
11
+ "fesm2015": "fesm2015/sisense-sdk-ui-angular.mjs",
12
+ "typings": "index.d.ts",
10
13
  "files": [
11
14
  "dist/**/*"
12
15
  ],
13
16
  "peerDependencies": {
14
- "@angular/common": "^15.0.0 || ^16.0.0",
15
- "@angular/compiler": "^15.0.0 || ^16.0.0",
16
- "@angular/core": "^15.0.0 || ^16.0.0"
17
+ "@angular/common": "^15.0.0 || ^16.0.0 || ^17.0.0",
18
+ "@angular/compiler": "^15.0.0 || ^16.0.0 || ^17.0.0",
19
+ "@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0"
17
20
  },
18
21
  "dependencies": {
22
+ "@sisense/sdk-tracking": "workspace:^",
19
23
  "@sisense/sdk-ui-preact": "workspace:^",
20
24
  "rxjs": "^7.8.1",
21
25
  "ts-deepmerge": "^6.2.0",
@@ -25,11 +29,6 @@
25
29
  "extends": "../../package.json"
26
30
  },
27
31
  "sideEffects": false,
28
- "es2020": "fesm2020/sisense-sdk-ui-angular.mjs",
29
- "esm2020": "esm2020/sisense-sdk-ui-angular.mjs",
30
- "fesm2020": "fesm2020/sisense-sdk-ui-angular.mjs",
31
- "fesm2015": "fesm2015/sisense-sdk-ui-angular.mjs",
32
- "typings": "index.d.ts",
33
32
  "exports": {
34
33
  "./package.json": {
35
34
  "default": "./package.json"
@@ -0,0 +1,2 @@
1
+ declare const _default: "0.15.0";
2
+ export default _default;
package/package.json CHANGED
@@ -1,34 +1,39 @@
1
1
  {
2
2
  "name": "@sisense/sdk-ui-angular",
3
- "version": "0.13.0",
4
- "type": "module",
5
- "main": "./dist",
6
- "module": "./dist",
7
- "types": "./dist/index.d.ts",
3
+ "version": "0.15.0",
8
4
  "author": "Sisense",
9
5
  "license": "SEE LICENSE IN LICENSE.md",
6
+ "main": "dist",
7
+ "module": "dist/fesm2015/sisense-sdk-ui-angular.mjs",
8
+ "es2020": "dist/fesm2020/sisense-sdk-ui-angular.mjs",
9
+ "esm2020": "dist/esm2020/sisense-sdk-ui-angular.mjs",
10
+ "fesm2020": "dist/fesm2020/sisense-sdk-ui-angular.mjs",
11
+ "fesm2015": "dist/fesm2015/sisense-sdk-ui-angular.mjs",
12
+ "typings": "dist/index.d.ts",
10
13
  "files": [
11
14
  "dist/**/*"
12
15
  ],
13
16
  "scripts": {
14
17
  "ng": "ng",
15
- "build": "ng build",
16
- "build:prod": "ng build",
18
+ "build": "yarn sync-version && ng build",
19
+ "build:prod": "yarn sync-version && ng build",
17
20
  "watch": "ng build --watch --configuration development",
18
21
  "lint": "eslint .",
19
22
  "lint:fix": "eslint . --fix",
20
23
  "format": "prettier --write .",
21
24
  "format:check": "prettier --check .",
22
25
  "test": "echo 'Tests disabled for now.'",
23
- "test:coverage": "echo 'Tests disabled for now.'"
26
+ "test:coverage": "echo 'Tests disabled for now.'",
27
+ "sync-version": "node ./scripts/sync-version.cjs"
24
28
  },
25
29
  "peerDependencies": {
26
- "@angular/common": "^15.0.0 || ^16.0.0",
27
- "@angular/compiler": "^15.0.0 || ^16.0.0",
28
- "@angular/core": "^15.0.0 || ^16.0.0"
30
+ "@angular/common": "^15.0.0 || ^16.0.0 || ^17.0.0",
31
+ "@angular/compiler": "^15.0.0 || ^16.0.0 || ^17.0.0",
32
+ "@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0"
29
33
  },
30
34
  "dependencies": {
31
- "@sisense/sdk-ui-preact": "^0.13.0",
35
+ "@sisense/sdk-tracking": "^0.15.0",
36
+ "@sisense/sdk-ui-preact": "^0.15.0",
32
37
  "rxjs": "^7.8.1",
33
38
  "ts-deepmerge": "^6.2.0",
34
39
  "tslib": "^2.3.0"
@@ -40,7 +45,7 @@
40
45
  "@angular/compiler": "^15.2.0",
41
46
  "@angular/compiler-cli": "^15.2.0",
42
47
  "@angular/core": "^15.2.0",
43
- "@sisense/sdk-data": "^0.13.0",
48
+ "@sisense/sdk-data": "^0.15.0",
44
49
  "eslint": "^8.40.0",
45
50
  "ng-packagr": "^15.2.2",
46
51
  "prettier": "2.8.4",