@sisense/sdk-ui-angular 2.14.0 → 2.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.
@@ -285,7 +285,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
285
285
  args: [SISENSE_CONTEXT_CONFIG_TOKEN]
286
286
  }] }]; } });
287
287
 
288
- var packageVersion = '2.14.0';
288
+ var packageVersion = '2.16.0';
289
289
 
290
290
  /**
291
291
  * Service for rendering components dynamically.
@@ -3097,6 +3097,150 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3097
3097
  type: Output
3098
3098
  }] } });
3099
3099
 
3100
+ /**
3101
+ * A component that displays a streamgraph chart.
3102
+ *
3103
+ * A streamgraph is a type of stacked area chart where areas are displaced around
3104
+ * a central axis. It is particularly effective for displaying volume across
3105
+ * different categories or over time with a relative scale that emphasizes
3106
+ * overall patterns and trends.
3107
+ *
3108
+ * @example
3109
+ * ```html
3110
+ * <csdk-streamgraph-chart
3111
+ * [dataSet]="chart.dataSet"
3112
+ * [dataOptions]="chart.dataOptions"
3113
+ * [styleOptions]="chart.styleOptions"
3114
+ * [highlights]="filters"
3115
+ * [beforeRender]="onBeforeRender"
3116
+ * (dataPointClick)="logArguments($event)"
3117
+ * (dataPointContextMenu)="logArguments($event)"
3118
+ * (dataPointsSelect)="logArguments($event)"
3119
+ * />
3120
+ * ```
3121
+ * ```ts
3122
+ import { Component } from '@angular/core';
3123
+ import { measureFactory, filterFactory } from '@sisense/sdk-data';
3124
+ import * as DM from '../../assets/sample-ecommerce';
3125
+ import type { ChartType } from '@sisense/sdk-ui-angular';
3126
+
3127
+ @Component({
3128
+ selector: 'app-analytics',
3129
+ templateUrl: './analytics.component.html',
3130
+ styleUrls: ['./analytics.component.scss'],
3131
+ })
3132
+ export class AnalyticsComponent {
3133
+ DM = DM;
3134
+ filters = [filterFactory.members(DM.Category.Category, ['Electronics', 'Clothing'])];
3135
+ chart = {
3136
+ chartType: 'streamgraph' as ChartType,
3137
+ dataSet: DM.DataSource,
3138
+ dataOptions: {
3139
+ category: [DM.Commerce.Date.Quarters],
3140
+ value: [measureFactory.sum(DM.Commerce.Revenue, 'Revenue')],
3141
+ breakBy: [DM.Category.Category],
3142
+ },
3143
+ styleOptions: {
3144
+ width: 1200,
3145
+ height: 500,
3146
+ },
3147
+ };
3148
+
3149
+ onBeforeRender(options: any) {
3150
+ console.log('beforeRender');
3151
+ console.log(options);
3152
+ return options;
3153
+ }
3154
+
3155
+ logArguments(...args: any[]) {
3156
+ console.log(args);
3157
+ }
3158
+ }
3159
+ * ```
3160
+ * @group Charts
3161
+ */
3162
+ class StreamgraphChartComponent {
3163
+ constructor() {
3164
+ /**
3165
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onDataPointClick}
3166
+ *
3167
+ * @category Callbacks
3168
+ */
3169
+ this.dataPointClick = new EventEmitter();
3170
+ /**
3171
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onDataPointContextMenu}
3172
+ *
3173
+ * @category Callbacks
3174
+ */
3175
+ this.dataPointContextMenu = new EventEmitter();
3176
+ /**
3177
+ * {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onDataPointsSelected}
3178
+ *
3179
+ * @category Callbacks
3180
+ */
3181
+ this.dataPointsSelect = new EventEmitter();
3182
+ /** @internal */
3183
+ this.chartType = 'streamgraph';
3184
+ }
3185
+ }
3186
+ StreamgraphChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StreamgraphChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3187
+ StreamgraphChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: StreamgraphChartComponent, selector: "csdk-streamgraph-chart", inputs: { dataSet: "dataSet", dataOptions: "dataOptions", filters: "filters", highlights: "highlights", styleOptions: "styleOptions", beforeRender: "beforeRender", dataReady: "dataReady" }, outputs: { dataPointClick: "dataPointClick", dataPointContextMenu: "dataPointContextMenu", dataPointsSelect: "dataPointsSelect" }, ngImport: i0, template: `
3188
+ <csdk-chart
3189
+ [chartType]="chartType"
3190
+ [dataSet]="dataSet"
3191
+ [dataOptions]="dataOptions"
3192
+ [filters]="filters"
3193
+ [highlights]="highlights"
3194
+ [styleOptions]="styleOptions"
3195
+ [beforeRender]="beforeRender"
3196
+ [dataReady]="dataReady"
3197
+ (dataPointClick)="dataPointClick.emit($any($event))"
3198
+ (dataPointContextMenu)="dataPointContextMenu.emit($any($event))"
3199
+ (dataPointsSelect)="dataPointsSelect.emit($any($event))"
3200
+ />
3201
+ `, isInline: true, dependencies: [{ kind: "component", type: ChartComponent, selector: "csdk-chart", inputs: ["chartType", "dataSet", "dataOptions", "filters", "highlights", "styleOptions", "beforeRender", "dataReady"], outputs: ["dataPointClick", "dataPointContextMenu", "dataPointsSelect"] }] });
3202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StreamgraphChartComponent, decorators: [{
3203
+ type: Component,
3204
+ args: [{
3205
+ selector: 'csdk-streamgraph-chart',
3206
+ template: `
3207
+ <csdk-chart
3208
+ [chartType]="chartType"
3209
+ [dataSet]="dataSet"
3210
+ [dataOptions]="dataOptions"
3211
+ [filters]="filters"
3212
+ [highlights]="highlights"
3213
+ [styleOptions]="styleOptions"
3214
+ [beforeRender]="beforeRender"
3215
+ [dataReady]="dataReady"
3216
+ (dataPointClick)="dataPointClick.emit($any($event))"
3217
+ (dataPointContextMenu)="dataPointContextMenu.emit($any($event))"
3218
+ (dataPointsSelect)="dataPointsSelect.emit($any($event))"
3219
+ />
3220
+ `,
3221
+ }]
3222
+ }], propDecorators: { dataSet: [{
3223
+ type: Input
3224
+ }], dataOptions: [{
3225
+ type: Input
3226
+ }], filters: [{
3227
+ type: Input
3228
+ }], highlights: [{
3229
+ type: Input
3230
+ }], styleOptions: [{
3231
+ type: Input
3232
+ }], beforeRender: [{
3233
+ type: Input
3234
+ }], dataReady: [{
3235
+ type: Input
3236
+ }], dataPointClick: [{
3237
+ type: Output
3238
+ }], dataPointContextMenu: [{
3239
+ type: Output
3240
+ }], dataPointsSelect: [{
3241
+ type: Output
3242
+ }] } });
3243
+
3100
3244
  /**
3101
3245
  * A component displaying hierarchical data in the form of nested slices.
3102
3246
  * This type of chart can be used instead of a pie chart for comparing a large number of categories and sub-categories.
@@ -5507,6 +5651,7 @@ SdkUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
5507
5651
  ContextMenuComponent,
5508
5652
  BoxplotChartComponent,
5509
5653
  ScattermapChartComponent,
5654
+ StreamgraphChartComponent,
5510
5655
  AreamapChartComponent,
5511
5656
  PivotTableComponent,
5512
5657
  DashboardByIdComponent,
@@ -5541,6 +5686,7 @@ SdkUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
5541
5686
  ContextMenuComponent,
5542
5687
  BoxplotChartComponent,
5543
5688
  ScattermapChartComponent,
5689
+ StreamgraphChartComponent,
5544
5690
  AreamapChartComponent,
5545
5691
  PivotTableComponent,
5546
5692
  DashboardByIdComponent,
@@ -5581,6 +5727,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5581
5727
  ContextMenuComponent,
5582
5728
  BoxplotChartComponent,
5583
5729
  ScattermapChartComponent,
5730
+ StreamgraphChartComponent,
5584
5731
  AreamapChartComponent,
5585
5732
  PivotTableComponent,
5586
5733
  DashboardByIdComponent,
@@ -5619,6 +5766,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5619
5766
  ContextMenuComponent,
5620
5767
  BoxplotChartComponent,
5621
5768
  ScattermapChartComponent,
5769
+ StreamgraphChartComponent,
5622
5770
  AreamapChartComponent,
5623
5771
  PivotTableComponent,
5624
5772
  DashboardByIdComponent,
@@ -6126,5 +6274,5 @@ var widgetModelTranslator = /*#__PURE__*/Object.freeze({
6126
6274
  * Generated bundle index. Do not edit.
6127
6275
  */
6128
6276
 
6129
- export { AreaChartComponent, AreaRangeChartComponent, AreamapChartComponent, BarChartComponent, BoxplotChartComponent, CalendarHeatmapChartComponent, ChartComponent, ChartWidgetComponent, ColumnChartComponent, ContextMenuComponent, CriteriaFilterTileComponent, CustomWidgetsService, DashboardByIdComponent, DashboardComponent, DashboardService, DateRangeFilterTileComponent, DrilldownBreadcrumbsComponent, DrilldownWidgetComponent, FilterService, FilterTileComponent, FiltersPanelComponent, FunnelChartComponent, HierarchyService, IndicatorChartComponent, LineChartComponent, MemberFilterTileComponent, PieChartComponent, PivotTableComponent, PivotTableWidgetComponent, PolarChartComponent, QueryService, RelativeDateFilterTileComponent, SISENSE_CONTEXT_CONFIG_TOKEN, ScatterChartComponent, ScattermapChartComponent, SdkUiModule, SisenseContextService, SunburstChartComponent, THEME_CONFIG_TOKEN, TableComponent, TableWidgetComponent, ThemeService, TrackableService, TreemapChartComponent, WidgetByIdComponent, WidgetComponent, WidgetService, createCustomWidgetsContextConnector, createSisenseContextConnector, createThemeContextConnector, dashboardHelpers, dashboardModelTranslator, widgetModelTranslator };
6277
+ export { AreaChartComponent, AreaRangeChartComponent, AreamapChartComponent, BarChartComponent, BoxplotChartComponent, CalendarHeatmapChartComponent, ChartComponent, ChartWidgetComponent, ColumnChartComponent, ContextMenuComponent, CriteriaFilterTileComponent, CustomWidgetsService, DashboardByIdComponent, DashboardComponent, DashboardService, DateRangeFilterTileComponent, DrilldownBreadcrumbsComponent, DrilldownWidgetComponent, FilterService, FilterTileComponent, FiltersPanelComponent, FunnelChartComponent, HierarchyService, IndicatorChartComponent, LineChartComponent, MemberFilterTileComponent, PieChartComponent, PivotTableComponent, PivotTableWidgetComponent, PolarChartComponent, QueryService, RelativeDateFilterTileComponent, SISENSE_CONTEXT_CONFIG_TOKEN, ScatterChartComponent, ScattermapChartComponent, SdkUiModule, SisenseContextService, StreamgraphChartComponent, SunburstChartComponent, THEME_CONFIG_TOKEN, TableComponent, TableWidgetComponent, ThemeService, TrackableService, TreemapChartComponent, WidgetByIdComponent, WidgetComponent, WidgetService, createCustomWidgetsContextConnector, createSisenseContextConnector, createThemeContextConnector, dashboardHelpers, dashboardModelTranslator, widgetModelTranslator };
6130
6278
  //# sourceMappingURL=sisense-sdk-ui-angular.mjs.map