@sisense/sdk-ui-angular 2.9.0 → 2.11.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 (34) hide show
  1. package/dist/ai/lib/services/ai.service.d.ts +2 -2
  2. package/dist/esm2020/ai/lib/services/ai.service.mjs +5 -5
  3. package/dist/esm2020/lib/component-wrapper-helpers/context-connectors.mjs +34 -22
  4. package/dist/esm2020/lib/components/charts/calendar-heatmap-chart.component.mjs +133 -0
  5. package/dist/esm2020/lib/components/charts/index.mjs +2 -1
  6. package/dist/esm2020/lib/components/widgets/widget-by-id.component.mjs +2 -2
  7. package/dist/esm2020/lib/sdk-ui-core-exports.mjs +1 -1
  8. package/dist/esm2020/lib/sdk-ui.module.mjs +6 -2
  9. package/dist/esm2020/lib/services/sisense-context.service.mjs +100 -13
  10. package/dist/esm2020/lib/services/theme.service.mjs +14 -2
  11. package/dist/esm2020/lib/types/chart-event-props.mjs +1 -1
  12. package/dist/esm2020/lib/types/data-point.mjs +1 -1
  13. package/dist/esm2020/public-api.mjs +1 -1
  14. package/dist/esm2020/version.mjs +2 -2
  15. package/dist/fesm2015/sisense-sdk-ui-angular-ai.mjs +4 -4
  16. package/dist/fesm2015/sisense-sdk-ui-angular-ai.mjs.map +1 -1
  17. package/dist/fesm2015/sisense-sdk-ui-angular.mjs +283 -34
  18. package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
  19. package/dist/fesm2020/sisense-sdk-ui-angular-ai.mjs +4 -4
  20. package/dist/fesm2020/sisense-sdk-ui-angular-ai.mjs.map +1 -1
  21. package/dist/fesm2020/sisense-sdk-ui-angular.mjs +281 -37
  22. package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
  23. package/dist/lib/components/charts/calendar-heatmap-chart.component.d.ts +125 -0
  24. package/dist/lib/components/charts/index.d.ts +1 -0
  25. package/dist/lib/components/widgets/widget-by-id.component.d.ts +1 -1
  26. package/dist/lib/sdk-ui-core-exports.d.ts +1 -1
  27. package/dist/lib/sdk-ui.module.d.ts +32 -31
  28. package/dist/lib/services/sisense-context.service.d.ts +90 -7
  29. package/dist/lib/types/chart-event-props.d.ts +25 -1
  30. package/dist/lib/types/data-point.d.ts +24 -4
  31. package/dist/package.json +2 -2
  32. package/dist/public-api.d.ts +1 -1
  33. package/dist/version.d.ts +1 -1
  34. package/package.json +5 -5
@@ -0,0 +1,125 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { type CalendarHeatmapChartProps as CalendarHeatmapChartPropsPreact } from '@sisense/sdk-ui-preact';
3
+ import { type ChartType } from '../../sdk-ui-core-exports';
4
+ import { CalendarHeatmapChartEventProps, WithoutPreactChartEventProps } from '../../types/chart-event-props';
5
+ import { CalendarHeatmapDataPointEvent, CalendarHeatmapDataPointsEvent } from '../../types/data-point';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Props of the {@link CalendarHeatmapChartComponent} component.
9
+ */
10
+ export interface CalendarHeatmapChartProps extends WithoutPreactChartEventProps<CalendarHeatmapChartPropsPreact>, CalendarHeatmapChartEventProps {
11
+ }
12
+ /**
13
+ * A component that visualizes values over days in a calendar-like view,
14
+ * making it easy to identify daily patterns or anomalies
15
+ *
16
+ * @example
17
+ * ```html
18
+ * <csdk-calendar-heatmap-chart
19
+ * [dataSet]="chart.dataSet"
20
+ * [dataOptions]="chart.dataOptions"
21
+ * [highlights]="chart.highlights"
22
+ * [styleOptions]="chart.styleOptions"
23
+ * />
24
+ * ```
25
+ * ```ts
26
+ import { Component } from '@angular/core';
27
+ import { measureFactory, filterFactory } from '@sisense/sdk-data';
28
+ import * as DM from '../../assets/sample-ecommerce';
29
+ import type { CalendarHeatmapChartProps } from '@sisense/sdk-ui-angular';
30
+
31
+ @Component({
32
+ selector: 'app-analytics',
33
+ templateUrl: './analytics.component.html',
34
+ styleUrls: ['./analytics.component.scss'],
35
+ })
36
+ export class AnalyticsComponent {
37
+ DM = DM;
38
+ chart = {
39
+ dataSet: DM.DataSource,
40
+ dataOptions: {
41
+ date: DM.Commerce.Date.Days,
42
+ value: measureFactory.sum(DM.Commerce.Cost),
43
+ },
44
+ highlights: [
45
+ filterFactory.dateRange(
46
+ DM.Commerce.Date.Days,
47
+ '2009-11-29',
48
+ '2009-12-15'
49
+ ),
50
+ ],
51
+ styleOptions: {
52
+ viewType: 'quarter',
53
+ },
54
+ };
55
+ }
56
+ * ```
57
+ * <img src="media://angular-calendar-heatmap-chart-example.png" width="800px" />
58
+ * @group Charts
59
+ */
60
+ export declare class CalendarHeatmapChartComponent {
61
+ /**
62
+ * {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.dataSet}
63
+ *
64
+ * @category Data
65
+ */
66
+ dataSet: CalendarHeatmapChartProps['dataSet'];
67
+ /**
68
+ * {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.dataOptions}
69
+ *
70
+ * @category Chart
71
+ */
72
+ dataOptions: CalendarHeatmapChartProps['dataOptions'];
73
+ /**
74
+ * {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.filters}
75
+ *
76
+ * @category Data
77
+ */
78
+ filters: CalendarHeatmapChartProps['filters'];
79
+ /**
80
+ * {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.highlights}
81
+ *
82
+ * @category Data
83
+ */
84
+ highlights: CalendarHeatmapChartProps['highlights'];
85
+ /**
86
+ * {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.styleOptions}
87
+ *
88
+ * @category Chart
89
+ */
90
+ styleOptions: CalendarHeatmapChartProps['styleOptions'];
91
+ /**
92
+ * {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.onBeforeRender}
93
+ *
94
+ * @category Callbacks
95
+ */
96
+ beforeRender: CalendarHeatmapChartProps['beforeRender'];
97
+ /**
98
+ * {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.onDataReady}
99
+ *
100
+ * @category Callbacks
101
+ */
102
+ dataReady: CalendarHeatmapChartProps['dataReady'];
103
+ /**
104
+ * {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.onDataPointClick}
105
+ *
106
+ * @category Callbacks
107
+ */
108
+ dataPointClick: EventEmitter<CalendarHeatmapDataPointEvent>;
109
+ /**
110
+ * {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.onDataPointContextMenu}
111
+ *
112
+ * @category Callbacks
113
+ */
114
+ dataPointContextMenu: EventEmitter<CalendarHeatmapDataPointEvent>;
115
+ /**
116
+ * {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.onDataPointsSelected}
117
+ *
118
+ * @category Callbacks
119
+ */
120
+ dataPointsSelect: EventEmitter<CalendarHeatmapDataPointsEvent>;
121
+ /** @internal */
122
+ chartType: ChartType;
123
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalendarHeatmapChartComponent, never>;
124
+ static ɵcmp: i0.ɵɵComponentDeclaration<CalendarHeatmapChartComponent, "csdk-calendar-heatmap-chart", never, { "dataSet": "dataSet"; "dataOptions": "dataOptions"; "filters": "filters"; "highlights": "highlights"; "styleOptions": "styleOptions"; "beforeRender": "beforeRender"; "dataReady": "dataReady"; }, { "dataPointClick": "dataPointClick"; "dataPointContextMenu": "dataPointContextMenu"; "dataPointsSelect": "dataPointsSelect"; }, never, never, false, never>;
125
+ }
@@ -3,6 +3,7 @@ export * from './area-range-chart.component';
3
3
  export * from './areamap-chart.component';
4
4
  export * from './bar-chart.component';
5
5
  export * from './boxplot-chart.component';
6
+ export * from './calendar-heatmap-chart.component';
6
7
  export * from './chart.component';
7
8
  export * from './column-chart.component';
8
9
  export * from './funnel-chart.component';
@@ -14,7 +14,7 @@ export interface WidgetByIdProps extends WithoutPreactChartEventProps<WidgetById
14
14
  * is used to render a widget created in a Sisense Fusion instance.
15
15
  *
16
16
  * To learn more about using Sisense Fusion Widgets in Compose SDK, see
17
- * [Sisense Fusion Widgets](https://sisense.dev/guides/sdk/guides/charts/guide-fusion-widgets.html).
17
+ * [Sisense Fusion Widgets](https://developer.sisense.com/guides/sdk/guides/charts/guide-fusion-widgets.html).
18
18
  *
19
19
  * @example
20
20
  * ```html
@@ -1,2 +1,2 @@
1
1
  export { boxWhiskerProcessResult, extractDimensionsAndMeasures } from '@sisense/sdk-ui-preact';
2
- export type { AppConfig, AreamapChartDataOptions, AreamapChartType, AreamapStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, AreaSubtype, AxisLabel, BeforeRenderHandler, BoxplotChartCustomDataOptions, BoxplotChartDataOptions, BoxplotChartType, BoxplotDataPoint, BoxplotStyleOptions, BoxplotSubtype, BoxWhiskerType, CartesianChartDataOptions, CartesianChartType, CartesianWidgetType, CategoricalChartDataOptions, CategoricalChartType, CategoricalWidgetType, ChartDataOptions, ChartStyleOptions, ChartType, ChartWidgetStyleOptions, Color, ColorPaletteTheme, CommonWidgetProps, ConditionalDataColorOptions, Convolution, DashboardLayoutOptions, DashboardModel, DataColorCondition, DataColorOptions, DataLimits, DataPoint, DateConfig, DateLevel, DayOfWeek, DecimalScale, DrilldownOptions, DrilldownSelection, FilterVariant, FunnelStyleOptions, GaugeIndicatorStyleOptions, GetDashboardModelOptions, GetDashboardModelsOptions, Hierarchy, HierarchyModel, HighchartsOptions, IndicatorBeforeRenderHandler, IndicatorChartDataOptions, IndicatorChartType, IndicatorComponents, IndicatorDataPoint, IndicatorRenderOptions, IndicatorStyleOptions, Labels, Legend, LineStyleOptions, LineSubtype, LineWidth, Markers, Member, MenuItemSection, MenuPosition, MonthOfYear, MultiColumnValueToColorMap, Navigator, NumberFormatConfig, NumericBarIndicatorStyleOptions, NumericSimpleIndicatorStyleOptions, PieStyleOptions, PieSubtype, PivotRowsSort, PivotTableDataOptions, PivotTableStyleOptions, PivotTableWidgetStyleOptions, PolarStyleOptions, PolarSubtype, RangeChartDataOptions, RangeChartType, RangeDataColorOptions, ScatterChartDataOptions, ScatterChartType, ScatterDataPoint, ScattermapChartDataOptions, ScattermapChartType, ScattermapLocationLevel, ScattermapMarkers, ScattermapStyleOptions, ScatterMarkerSize, ScatterStyleOptions, SeriesChartType, SeriesLabels, SortDirection, StackableStyleOptions, StackableSubtype, StyledColumn, StyledMeasureColumn, SunburstStyleOptions, TableDataOptions, TableStyleOptions, TableType, TabularWidgetType, ThemeOid, ThemeSettings, TranslationConfig, TreemapStyleOptions, UniformDataColorOptions, ValueToColorMap, WidgetByIdStyleOptions, WidgetDataOptions, WidgetId, WidgetModel, WidgetsOptions, WidgetsPanelColumnLayout, WidgetsPanelLayout, WidgetStyleOptions, WidgetType, X2Title, } from '@sisense/sdk-ui-preact';
2
+ export type { AppConfig, AreamapChartDataOptions, AreamapChartType, AreamapStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, AreaSubtype, AxisLabel, BeforeRenderHandler, BoxplotChartCustomDataOptions, BoxplotChartDataOptions, BoxplotChartType, BoxplotDataPoint, BoxplotStyleOptions, BoxplotSubtype, BoxWhiskerType, CalendarDayOfWeek, CalendarHeatmapChartDataOptions, CalendarHeatmapChartType, CalendarHeatmapDataPoint, CalendarHeatmapStyleOptions, CalendarHeatmapViewType, CartesianChartDataOptions, CartesianChartType, CartesianWidgetType, CategoricalChartDataOptions, CategoricalChartType, CategoricalWidgetType, ChartDataOptions, ChartStyleOptions, ChartType, ChartWidgetStyleOptions, Color, ColorPaletteTheme, CommonWidgetProps, ConditionalDataColorOptions, Convolution, DashboardLayoutOptions, DashboardModel, DashStyle, DataColorCondition, DataColorOptions, DataLimits, DataPoint, DateConfig, DateLevel, DayOfWeek, DecimalScale, DrilldownOptions, DrilldownSelection, EndCapType, FilterVariant, FunnelStyleOptions, GaugeIndicatorStyleOptions, GetDashboardModelOptions, GetDashboardModelsOptions, Hierarchy, HierarchyModel, HighchartsOptions, IndicatorBeforeRenderHandler, IndicatorChartDataOptions, IndicatorChartType, IndicatorComponents, IndicatorDataPoint, IndicatorRenderOptions, IndicatorStyleOptions, Labels, Legend, LineOptions, LineStyleOptions, LineSubtype, LineWidth, Markers, Member, MenuItemSection, MenuPosition, MonthOfYear, MultiColumnValueToColorMap, Navigator, NumberFormatConfig, NumericBarIndicatorStyleOptions, NumericSimpleIndicatorStyleOptions, PieStyleOptions, PieSubtype, PivotRowsSort, PivotTableDataOptions, PivotTableStyleOptions, PivotTableWidgetStyleOptions, PolarStyleOptions, PolarSubtype, RangeChartDataOptions, RangeChartType, RangeDataColorOptions, ScatterChartDataOptions, ScatterChartType, ScatterDataPoint, ScattermapChartDataOptions, ScattermapChartType, ScattermapLocationLevel, ScattermapMarkers, ScattermapStyleOptions, ScatterMarkerSize, ScatterStyleOptions, SeriesChartType, SeriesLabels, SortDirection, StackableStyleOptions, StackableSubtype, StyledColumn, StyledMeasureColumn, SunburstStyleOptions, TableDataOptions, TableStyleOptions, TableType, TabularWidgetType, ThemeOid, ThemeSettings, TranslationConfig, TreemapStyleOptions, UniformDataColorOptions, ValueToColorMap, WidgetByIdStyleOptions, WidgetDataOptions, WidgetId, WidgetModel, WidgetsOptions, WidgetsPanelColumnLayout, WidgetsPanelLayout, WidgetStyleOptions, WidgetType, X2Title, } from '@sisense/sdk-ui-preact';
@@ -5,36 +5,37 @@ import * as i3 from "./components/widgets/chart-widget.component";
5
5
  import * as i4 from "./components/charts/column-chart.component";
6
6
  import * as i5 from "./components/charts/bar-chart.component";
7
7
  import * as i6 from "./components/charts/area-chart.component";
8
- import * as i7 from "./components/charts/area-range-chart.component";
9
- import * as i8 from "./components/charts/line-chart.component";
10
- import * as i9 from "./components/charts/indicator-chart.component";
11
- import * as i10 from "./components/charts/scatter-chart.component";
12
- import * as i11 from "./components/charts/pie-chart.component";
13
- import * as i12 from "./components/charts/funnel-chart.component";
14
- import * as i13 from "./components/charts/polar-chart.component";
15
- import * as i14 from "./components/charts/treemap-chart.component";
16
- import * as i15 from "./components/charts/sunburst-chart.component";
17
- import * as i16 from "./components/widgets/table-widget.component";
18
- import * as i17 from "./components/widgets/widget-by-id.component";
19
- import * as i18 from "./components/filters/member-filter-tile.component";
20
- import * as i19 from "./components/widgets/drilldown-widget.component";
21
- import * as i20 from "./components/filters/date-range-filter-tile.component";
22
- import * as i21 from "./components/filters/relative-date-filter-tile.component";
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 "./components/widgets/pivot-table-widget.component";
33
- import * as i32 from "./components/filters/filter-tile.component";
34
- import * as i33 from "./components/filters/filters-panel.component";
35
- import * as i34 from "./components/widgets/widget.component";
36
- import * as i35 from "@angular/common";
37
- import * as i36 from "./decorators/decorators.module";
8
+ import * as i7 from "./components/charts/calendar-heatmap-chart.component";
9
+ import * as i8 from "./components/charts/area-range-chart.component";
10
+ import * as i9 from "./components/charts/line-chart.component";
11
+ import * as i10 from "./components/charts/indicator-chart.component";
12
+ import * as i11 from "./components/charts/scatter-chart.component";
13
+ import * as i12 from "./components/charts/pie-chart.component";
14
+ import * as i13 from "./components/charts/funnel-chart.component";
15
+ import * as i14 from "./components/charts/polar-chart.component";
16
+ import * as i15 from "./components/charts/treemap-chart.component";
17
+ import * as i16 from "./components/charts/sunburst-chart.component";
18
+ import * as i17 from "./components/widgets/table-widget.component";
19
+ import * as i18 from "./components/widgets/widget-by-id.component";
20
+ import * as i19 from "./components/filters/member-filter-tile.component";
21
+ import * as i20 from "./components/widgets/drilldown-widget.component";
22
+ import * as i21 from "./components/filters/date-range-filter-tile.component";
23
+ import * as i22 from "./components/filters/relative-date-filter-tile.component";
24
+ import * as i23 from "./components/filters/criteria-filter-tile.component";
25
+ import * as i24 from "./components/drilldown-breadcrumbs.component";
26
+ import * as i25 from "./components/context-menu.component";
27
+ import * as i26 from "./components/charts/boxplot-chart.component";
28
+ import * as i27 from "./components/charts/scattermap-chart.component";
29
+ import * as i28 from "./components/charts/areamap-chart.component";
30
+ import * as i29 from "./components/charts/pivot-table.component";
31
+ import * as i30 from "./components/dashboard/dashboard-by-id.component";
32
+ import * as i31 from "./components/dashboard/dashboard.component";
33
+ import * as i32 from "./components/widgets/pivot-table-widget.component";
34
+ import * as i33 from "./components/filters/filter-tile.component";
35
+ import * as i34 from "./components/filters/filters-panel.component";
36
+ import * as i35 from "./components/widgets/widget.component";
37
+ import * as i36 from "@angular/common";
38
+ import * as i37 from "./decorators/decorators.module";
38
39
  /**
39
40
  * SDK UI Module, which is a container for components.
40
41
  *
@@ -64,6 +65,6 @@ import * as i36 from "./decorators/decorators.module";
64
65
  */
65
66
  export declare class SdkUiModule {
66
67
  static ɵfac: i0.ɵɵFactoryDeclaration<SdkUiModule, never>;
67
- static ɵmod: i0.ɵɵNgModuleDeclaration<SdkUiModule, [typeof i1.ChartComponent, typeof i2.TableComponent, typeof i3.ChartWidgetComponent, typeof i4.ColumnChartComponent, typeof i5.BarChartComponent, typeof i6.AreaChartComponent, typeof i7.AreaRangeChartComponent, 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.WidgetByIdComponent, typeof i18.MemberFilterTileComponent, typeof i19.DrilldownWidgetComponent, typeof i20.DateRangeFilterTileComponent, typeof i21.RelativeDateFilterTileComponent, 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.PivotTableWidgetComponent, typeof i32.FilterTileComponent, typeof i33.FiltersPanelComponent, typeof i34.WidgetComponent], [typeof i35.CommonModule, typeof i36.DecoratorsModule], [typeof i1.ChartComponent, typeof i2.TableComponent, typeof i3.ChartWidgetComponent, typeof i4.ColumnChartComponent, typeof i5.BarChartComponent, typeof i6.AreaChartComponent, typeof i7.AreaRangeChartComponent, 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.WidgetByIdComponent, typeof i18.MemberFilterTileComponent, typeof i19.DrilldownWidgetComponent, typeof i20.DateRangeFilterTileComponent, typeof i21.RelativeDateFilterTileComponent, 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.PivotTableWidgetComponent, typeof i32.FilterTileComponent, typeof i33.FiltersPanelComponent, typeof i34.WidgetComponent]>;
68
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SdkUiModule, [typeof i1.ChartComponent, typeof i2.TableComponent, typeof i3.ChartWidgetComponent, typeof i4.ColumnChartComponent, typeof i5.BarChartComponent, typeof i6.AreaChartComponent, typeof i7.CalendarHeatmapChartComponent, 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.WidgetByIdComponent, typeof i19.MemberFilterTileComponent, typeof i20.DrilldownWidgetComponent, typeof i21.DateRangeFilterTileComponent, typeof i22.RelativeDateFilterTileComponent, typeof i23.CriteriaFilterTileComponent, typeof i24.DrilldownBreadcrumbsComponent, typeof i25.ContextMenuComponent, typeof i26.BoxplotChartComponent, typeof i27.ScattermapChartComponent, typeof i28.AreamapChartComponent, typeof i29.PivotTableComponent, typeof i30.DashboardByIdComponent, typeof i31.DashboardComponent, typeof i32.PivotTableWidgetComponent, typeof i33.FilterTileComponent, typeof i34.FiltersPanelComponent, typeof i35.WidgetComponent], [typeof i36.CommonModule, typeof i37.DecoratorsModule], [typeof i1.ChartComponent, typeof i2.TableComponent, typeof i3.ChartWidgetComponent, typeof i4.ColumnChartComponent, typeof i5.BarChartComponent, typeof i6.AreaChartComponent, typeof i7.CalendarHeatmapChartComponent, 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.WidgetByIdComponent, typeof i19.MemberFilterTileComponent, typeof i20.DrilldownWidgetComponent, typeof i21.DateRangeFilterTileComponent, typeof i22.RelativeDateFilterTileComponent, typeof i23.CriteriaFilterTileComponent, typeof i24.DrilldownBreadcrumbsComponent, typeof i25.ContextMenuComponent, typeof i26.BoxplotChartComponent, typeof i27.ScattermapChartComponent, typeof i28.AreamapChartComponent, typeof i29.PivotTableComponent, typeof i30.DashboardByIdComponent, typeof i31.DashboardComponent, typeof i32.PivotTableWidgetComponent, typeof i33.FilterTileComponent, typeof i34.FiltersPanelComponent, typeof i35.WidgetComponent]>;
68
69
  static ɵinj: i0.ɵɵInjectorDeclaration<SdkUiModule>;
69
70
  }
@@ -1,8 +1,21 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import type { SisenseContextProviderProps as SisenseContextConfig } from '@sisense/sdk-ui-preact';
3
3
  import { ClientApplication } from '@sisense/sdk-ui-preact';
4
+ import { Observable } from 'rxjs';
4
5
  import * as i0 from "@angular/core";
5
6
  export { type SisenseContextConfig };
7
+ /**
8
+ * Represents the state of the Sisense client application.
9
+ */
10
+ type AppState = {
11
+ /** Successfully initialized client application */
12
+ readonly app: ClientApplication;
13
+ readonly error?: never;
14
+ } | {
15
+ /** Error that occurred during initialization or connection */
16
+ readonly error: Error;
17
+ readonly app?: never;
18
+ };
6
19
  /**
7
20
  * Token used to inject {@link SisenseContextConfig} into your application
8
21
  *
@@ -32,17 +45,87 @@ export { type SisenseContextConfig };
32
45
  */
33
46
  export declare const SISENSE_CONTEXT_CONFIG_TOKEN: InjectionToken<SisenseContextConfig>;
34
47
  /**
35
- * Service for working with Sisense Fusion context.
48
+ * Service for managing Sisense Fusion context and client application lifecycle.
49
+ *
50
+ * This service provides a centralized way to configure and manage the connection to a Sisense instance within Angular applications.
36
51
  *
37
52
  * @group Contexts
38
53
  */
39
54
  export declare class SisenseContextService {
40
- private appPromise;
41
- private config;
42
- constructor(sisenseContextConfig: SisenseContextConfig);
43
- /** @internal */
55
+ /**
56
+ * Reactive stream of application state changes.
57
+ *
58
+ * Uses ReplaySubject to ensure late subscribers receive the latest state.
59
+ */
60
+ private readonly app$;
61
+ /**
62
+ * Configuration object for the Sisense connection.
63
+ *
64
+ * This is set once during initialization and remains readonly thereafter
65
+ * to prevent accidental mutations that could lead to inconsistent state.
66
+ */
67
+ private config?;
68
+ /**
69
+ * Flag indicating whether the service has been initialized with configuration.
70
+ *
71
+ * @internal
72
+ */
73
+ isInitialized: boolean;
74
+ constructor(sisenseContextConfig?: SisenseContextConfig);
75
+ /**
76
+ * Retrieves the initialized Sisense client application.
77
+ *
78
+ * This method provides access to the client application instance.
79
+ * It waits for the latest state from the reactive stream and either returns
80
+ * the application or throws the error if initialization failed.
81
+ *
82
+ * @returns Promise that resolves to the ClientApplication instance
83
+ * @throws {Error} When the service is not initialized or when application creation failed
84
+ *
85
+ * @internal
86
+ */
44
87
  getApp(): Promise<ClientApplication>;
45
- getConfig(): SisenseContextConfig;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<SisenseContextService, never>;
88
+ /**
89
+ * Provides reactive access to the Sisense application state.
90
+ *
91
+ * This method returns an Observable that emits the current application state
92
+ * and all subsequent state changes. It's the preferred way to reactively
93
+ * handle application lifecycle events in Angular components.
94
+ *
95
+ * If the service is not initialized, it immediately emits an error state
96
+ * followed by any future state changes once initialization occurs.
97
+ *
98
+ * @returns Observable stream of AppState changes
99
+ *
100
+ * @internal
101
+ */
102
+ getApp$(): Observable<AppState>;
103
+ /**
104
+ * Retrieves the current {@link SisenseContextConfig} configuration object.
105
+ *
106
+ * @returns The current configuration object, or undefined if not yet configured
107
+ */
108
+ getConfig(): SisenseContextConfig | undefined;
109
+ /**
110
+ * Configures and initializes the Sisense context with the provided settings.
111
+ *
112
+ * This method allows to establish a connection to a Sisense instance.
113
+ * It could be used as runtime alternative to {@link SISENSE_CONTEXT_CONFIG_TOKEN} based configuration.
114
+ *
115
+ * @param config - Configuration object
116
+ * @returns Promise that resolves when configuration is complete (success or failure)
117
+ *
118
+ * @example
119
+ * Basic configuration:
120
+ * ```ts
121
+ * await SisenseContextService.setConfig({
122
+ * url: 'https://your-sisense-instance.com',
123
+ * token: 'your-api-token',
124
+ * defaultDataSource: 'Sample ECommerce'
125
+ * });
126
+ * ```
127
+ */
128
+ setConfig(config: SisenseContextConfig): Promise<void>;
129
+ static ɵfac: i0.ɵɵFactoryDeclaration<SisenseContextService, [{ optional: true; }]>;
47
130
  static ɵprov: i0.ɵɵInjectableDeclaration<SisenseContextService>;
48
131
  }
@@ -1,6 +1,6 @@
1
1
  import type { Data } from '@sisense/sdk-data';
2
2
  import type { BeforeRenderHandler, IndicatorBeforeRenderHandler } from '@sisense/sdk-ui-preact';
3
- import type { AreamapDataPointEventHandler, BoxplotDataPointEventHandler, ChartDataPointClickEventHandler, ChartDataPointContextMenuEventHandler, ChartDataPointsEventHandler, DataPointEventHandler, DataPointsEventHandler, IndicatorDataPointEventHandler, ScatterDataPointEventHandler, ScatterDataPointsEventHandler, ScattermapDataPointEventHandler } from './data-point';
3
+ import type { AreamapDataPointEventHandler, BoxplotDataPointEventHandler, CalendarHeatmapDataPointEventHandler, CalendarHeatmapDataPointsEventHandler, ChartDataPointClickEventHandler, ChartDataPointContextMenuEventHandler, ChartDataPointsEventHandler, DataPointEventHandler, DataPointsEventHandler, IndicatorDataPointEventHandler, ScatterDataPointEventHandler, ScatterDataPointsEventHandler, ScattermapDataPointEventHandler } from './data-point';
4
4
  export interface HighchartsBasedChartEventProps {
5
5
  /**
6
6
  * {@inheritDoc @sisense/sdk-ui!ChartProps.onBeforeRender}
@@ -128,6 +128,30 @@ export interface IndicatorChartEventProps extends BaseChartEventProps {
128
128
  */
129
129
  dataPointClick?: IndicatorDataPointEventHandler;
130
130
  }
131
+ /**
132
+ * Event props for CalendarHeatmap chart which uses CalendarHeatmapDataPoint type
133
+ * to describe data points for events.
134
+ */
135
+ export interface CalendarHeatmapChartEventProps extends BaseChartEventProps, HighchartsBasedChartEventProps {
136
+ /**
137
+ * {@inheritDoc @sisense/sdk-ui!ScatterChartProps.onDataPointClick}
138
+ *
139
+ * @category Callbacks
140
+ */
141
+ dataPointClick?: CalendarHeatmapDataPointEventHandler;
142
+ /**
143
+ * {@inheritDoc @sisense/sdk-ui!ScatterChartProps.onDataPointContextMenu}
144
+ *
145
+ * @category Callbacks
146
+ */
147
+ dataPointContextMenu?: CalendarHeatmapDataPointEventHandler;
148
+ /**
149
+ * {@inheritDoc @sisense/sdk-ui!ScatterChartProps.onDataPointsSelected}
150
+ *
151
+ * @category Callbacks
152
+ */
153
+ dataPointsSelect?: CalendarHeatmapDataPointsEventHandler;
154
+ }
131
155
  export interface ChartEventProps extends BaseChartEventProps {
132
156
  /**
133
157
  * {@inheritDoc @sisense/sdk-ui!ChartProps.onDataPointClick}
@@ -1,4 +1,4 @@
1
- import { AreamapDataPoint, BoxplotDataPoint, DataPoint, IndicatorDataPoint, ScatterDataPoint, ScattermapDataPoint, TextWidgetDataPoint } from '@sisense/sdk-ui-preact';
1
+ import { AreamapDataPoint, BoxplotDataPoint, CalendarHeatmapDataPoint, DataPoint, IndicatorDataPoint, ScatterDataPoint, ScattermapDataPoint, TextWidgetDataPoint } from '@sisense/sdk-ui-preact';
2
2
  export type DataPointEvent = {
3
3
  /** Data point that was clicked */
4
4
  point: DataPoint;
@@ -35,15 +35,27 @@ export type IndicatorDataPointEvent = {
35
35
  /** Native MouseEvent */
36
36
  nativeEvent: MouseEvent;
37
37
  };
38
+ export type CalendarHeatmapDataPointEvent = {
39
+ /** Data point that was clicked */
40
+ point: CalendarHeatmapDataPoint;
41
+ /** Native PointerEvent */
42
+ nativeEvent: PointerEvent;
43
+ };
44
+ export type CalendarHeatmapDataPointsEvent = {
45
+ /** Data points that were selected */
46
+ points: CalendarHeatmapDataPoint[];
47
+ /** Native MouseEvent */
48
+ nativeEvent: MouseEvent;
49
+ };
38
50
  export type TextWidgetDataPointEvent = {
39
51
  /** Data point that was clicked */
40
52
  point: TextWidgetDataPoint;
41
53
  /** Native MouseEvent */
42
54
  nativeEvent: MouseEvent;
43
55
  };
44
- export type ChartDataPointClickEvent = DataPointEvent | ScatterDataPointEvent | BoxplotDataPointEvent | AreamapDataPointEvent | ScattermapDataPointEvent | IndicatorDataPointEvent;
56
+ export type ChartDataPointClickEvent = DataPointEvent | ScatterDataPointEvent | BoxplotDataPointEvent | AreamapDataPointEvent | ScattermapDataPointEvent | IndicatorDataPointEvent | CalendarHeatmapDataPointEvent;
45
57
  export type WidgetDataPointClickEvent = ChartDataPointClickEvent | TextWidgetDataPointEvent;
46
- export type ChartDataPointContextMenuEvent = DataPointEvent | ScatterDataPointEvent | BoxplotDataPointEvent;
58
+ export type ChartDataPointContextMenuEvent = DataPointEvent | ScatterDataPointEvent | BoxplotDataPointEvent | CalendarHeatmapDataPointEvent;
47
59
  export type DataPointsEvent = {
48
60
  /** Data points that were selected */
49
61
  points: DataPoint[];
@@ -62,7 +74,7 @@ export type BoxplotDataPointsEvent = {
62
74
  /** Native MouseEvent */
63
75
  nativeEvent: MouseEvent;
64
76
  };
65
- export type ChartDataPointsEvent = DataPointsEvent | ScatterDataPointsEvent;
77
+ export type ChartDataPointsEvent = DataPointsEvent | ScatterDataPointsEvent | CalendarHeatmapDataPointsEvent;
66
78
  /**
67
79
  * A handler function that allows you to customize what happens when certain events occur to
68
80
  * a data point.
@@ -100,5 +112,13 @@ export type ChartDataPointContextMenuEventHandler = (event: ChartDataPointContex
100
112
  export type ScatterDataPointsEventHandler = (event: ScatterDataPointsEvent) => void;
101
113
  /** Click handler for when multiple data points are selected. */
102
114
  export type DataPointsEventHandler = (event: DataPointsEvent) => void;
115
+ /**
116
+ * Click handler for when a calendar-heatmap data point is clicked
117
+ */
118
+ export type CalendarHeatmapDataPointEventHandler = (event: CalendarHeatmapDataPointEvent) => void;
119
+ /**
120
+ * Click handler for when multiple calendar-heatmap data points are selected.
121
+ */
122
+ export type CalendarHeatmapDataPointsEventHandler = (event: CalendarHeatmapDataPointsEvent) => void;
103
123
  /** Click handler for when multiple data points on Chart are selected. */
104
124
  export type ChartDataPointsEventHandler = (event: ChartDataPointsEvent) => void;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sisense/sdk-ui-angular",
3
- "homepage": "https://sisense.dev/guides/sdk/",
3
+ "homepage": "https://developer.sisense.com/guides/sdk/",
4
4
  "description": "Compose SDK package containing general UI elements and related logic tailored for Angular development",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,7 +11,7 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "2.9.0",
14
+ "version": "2.11.0",
15
15
  "author": "Sisense",
16
16
  "license": "SEE LICENSE IN LICENSE.md",
17
17
  "main": "dist",
@@ -5,7 +5,7 @@ export * from './lib/components';
5
5
  export * from './lib/sdk-ui.module';
6
6
  export * from './lib/sdk-ui-core-exports';
7
7
  export * from './lib/services';
8
- export type { AreamapDataPointEvent, AreamapDataPointEventHandler, BoxplotDataPointEvent, BoxplotDataPointEventHandler, BoxplotDataPointsEvent, ChartDataPointClickEvent, ChartDataPointClickEventHandler, ChartDataPointContextMenuEvent, ChartDataPointContextMenuEventHandler, ChartDataPointsEvent, ChartDataPointsEventHandler, DataPointEvent, DataPointEventHandler, DataPointsEvent, DataPointsEventHandler, FilterChangeEvent, FilterChangeEventHandler, FilterDeleteEventHandler, FilterEditEvent, FilterEditEventHandler, FiltersPanelChangeEvent, FiltersPanelChangeEventHandler, IndicatorDataPointEvent, IndicatorDataPointEventHandler, ScatterDataPointEvent, ScatterDataPointEventHandler, ScatterDataPointsEvent, ScatterDataPointsEventHandler, ScattermapDataPointEvent, ScattermapDataPointEventHandler, } from './lib/types';
8
+ export type { AreamapDataPointEvent, AreamapDataPointEventHandler, BoxplotDataPointEvent, BoxplotDataPointEventHandler, BoxplotDataPointsEvent, CalendarHeatmapDataPointEvent, CalendarHeatmapDataPointEventHandler, CalendarHeatmapDataPointsEvent, CalendarHeatmapDataPointsEventHandler, ChartDataPointClickEvent, ChartDataPointClickEventHandler, ChartDataPointContextMenuEvent, ChartDataPointContextMenuEventHandler, ChartDataPointsEvent, ChartDataPointsEventHandler, DataPointEvent, DataPointEventHandler, DataPointsEvent, DataPointsEventHandler, FilterChangeEvent, FilterChangeEventHandler, FilterDeleteEventHandler, FilterEditEvent, FilterEditEventHandler, FiltersPanelChangeEvent, FiltersPanelChangeEventHandler, IndicatorDataPointEvent, IndicatorDataPointEventHandler, ScatterDataPointEvent, ScatterDataPointEventHandler, ScatterDataPointsEvent, ScatterDataPointsEventHandler, ScattermapDataPointEvent, ScattermapDataPointEventHandler, } from './lib/types';
9
9
  export * from './lib/utilities';
10
10
  export { createCustomWidgetsContextConnector, createSisenseContextConnector, createThemeContextConnector, } from './lib/component-wrapper-helpers';
11
11
  export { TrackableService } from './lib/decorators';
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.9.0";
1
+ declare const _default: "2.11.0";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sisense/sdk-ui-angular",
3
- "homepage": "https://sisense.dev/guides/sdk/",
3
+ "homepage": "https://developer.sisense.com/guides/sdk/",
4
4
  "description": "Compose SDK package containing general UI elements and related logic tailored for Angular development",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,7 +11,7 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "2.9.0",
14
+ "version": "2.11.0",
15
15
  "author": "Sisense",
16
16
  "license": "SEE LICENSE IN LICENSE.md",
17
17
  "main": "dist",
@@ -76,9 +76,9 @@
76
76
  "@angular/core": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0"
77
77
  },
78
78
  "dependencies": {
79
- "@sisense/sdk-data": "2.9.0",
80
- "@sisense/sdk-tracking": "2.9.0",
81
- "@sisense/sdk-ui-preact": "2.9.0",
79
+ "@sisense/sdk-data": "2.11.0",
80
+ "@sisense/sdk-tracking": "2.11.0",
81
+ "@sisense/sdk-ui-preact": "2.11.0",
82
82
  "rxjs": "^7.8.1",
83
83
  "ts-deepmerge": "^6.2.0",
84
84
  "tslib": "^2.3.0"