@sisense/sdk-ui-angular 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm2020/lib/components/areamap-chart.component.mjs +13 -3
- package/dist/esm2020/lib/components/index.mjs +2 -1
- package/dist/esm2020/lib/components/pivot-table.component.mjs +65 -0
- package/dist/esm2020/lib/components/scattermap-chart.component.mjs +13 -3
- package/dist/esm2020/lib/sdk-ui-core-exports.mjs +1 -1
- package/dist/esm2020/lib/sdk-ui.module.mjs +8 -4
- package/dist/esm2020/version.mjs +2 -2
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs +90 -7
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +90 -7
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/lib/components/areamap-chart.component.d.ts +9 -1
- package/dist/lib/components/boxplot-chart.component.d.ts +2 -2
- package/dist/lib/components/chart-widget.component.d.ts +2 -2
- package/dist/lib/components/chart.component.d.ts +2 -2
- package/dist/lib/components/index.d.ts +1 -0
- package/dist/lib/components/pivot-table.component.d.ts +51 -0
- package/dist/lib/components/scattermap-chart.component.d.ts +9 -1
- package/dist/lib/sdk-ui-core-exports.d.ts +1 -1
- package/dist/lib/sdk-ui.module.d.ts +4 -3
- package/dist/lib/services/query.service.d.ts +1 -3
- package/dist/package.json +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, Component, ViewChild, Input, Output, InjectionToken, Injectable, Inject, NgModule, Optional } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { ComponentAdapter, createElement, BasicMemberFilterTile, createContextProviderRenderer, CustomThemeProvider, CustomSisenseContextProvider, createClientApplication, executeQuery, executeQueryByWidgetId, getDashboardModel, getDashboardModels, getDefaultThemeSettings, getThemeSettingsByOid, Chart, Table, ChartWidget, TableWidget, DashboardWidget, MemberFilterTile, createWrapperElementHandler, createWrapperElement, DrilldownWidget, createComponentRenderer, DateRangeFilterTile, DrilldownBreadcrumbs, ContextMenu } from '@sisense/sdk-ui-preact';
|
|
4
|
+
import { ComponentAdapter, createElement, BasicMemberFilterTile, createContextProviderRenderer, CustomThemeProvider, CustomSisenseContextProvider, createClientApplication, executeQuery, executeQueryByWidgetId, getDashboardModel, getDashboardModels, getDefaultThemeSettings, getThemeSettingsByOid, Chart, Table, ChartWidget, TableWidget, DashboardWidget, MemberFilterTile, createWrapperElementHandler, createWrapperElement, DrilldownWidget, createComponentRenderer, DateRangeFilterTile, DrilldownBreadcrumbs, ContextMenu, PivotTable } from '@sisense/sdk-ui-preact';
|
|
5
5
|
export { boxWhiskerProcessResult } from '@sisense/sdk-ui-preact';
|
|
6
6
|
import { map, BehaviorSubject } from 'rxjs';
|
|
7
7
|
import { __decorate } from 'tslib';
|
|
@@ -270,7 +270,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
270
270
|
}]
|
|
271
271
|
}], ctorParameters: function () { return [{ type: SisenseContextService }]; } });
|
|
272
272
|
|
|
273
|
-
var packageVersion = '1.
|
|
273
|
+
var packageVersion = '1.4.0';
|
|
274
274
|
|
|
275
275
|
function Trackable(target, propertyKey, descriptor) {
|
|
276
276
|
const originalMethod = descriptor.value;
|
|
@@ -2359,12 +2359,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2359
2359
|
*/
|
|
2360
2360
|
class ScattermapChartComponent {
|
|
2361
2361
|
constructor() {
|
|
2362
|
+
/**
|
|
2363
|
+
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.onDataPointClick}
|
|
2364
|
+
*
|
|
2365
|
+
* @category Callbacks
|
|
2366
|
+
*/
|
|
2367
|
+
this.dataPointClick = new EventEmitter();
|
|
2362
2368
|
/** @internal */
|
|
2363
2369
|
this.chartType = 'scattermap';
|
|
2364
2370
|
}
|
|
2365
2371
|
}
|
|
2366
2372
|
ScattermapChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ScattermapChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2367
|
-
ScattermapChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ScattermapChartComponent, selector: "csdk-scattermap-chart", inputs: { dataSet: "dataSet", dataOptions: "dataOptions", filters: "filters", highlights: "highlights", styleOptions: "styleOptions" }, ngImport: i0, template: `
|
|
2373
|
+
ScattermapChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ScattermapChartComponent, selector: "csdk-scattermap-chart", inputs: { dataSet: "dataSet", dataOptions: "dataOptions", filters: "filters", highlights: "highlights", styleOptions: "styleOptions" }, outputs: { dataPointClick: "dataPointClick" }, ngImport: i0, template: `
|
|
2368
2374
|
<csdk-chart
|
|
2369
2375
|
[chartType]="chartType"
|
|
2370
2376
|
[dataSet]="dataSet"
|
|
@@ -2372,6 +2378,7 @@ ScattermapChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0
|
|
|
2372
2378
|
[filters]="filters"
|
|
2373
2379
|
[highlights]="highlights"
|
|
2374
2380
|
[styleOptions]="styleOptions"
|
|
2381
|
+
(dataPointClick)="dataPointClick.emit($event)"
|
|
2375
2382
|
/>
|
|
2376
2383
|
`, isInline: true, dependencies: [{ kind: "component", type: ChartComponent, selector: "csdk-chart", inputs: ["chartType", "dataSet", "dataOptions", "filters", "highlights", "styleOptions", "beforeRender"], outputs: ["dataPointClick", "dataPointContextMenu", "dataPointsSelect"] }] });
|
|
2377
2384
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ScattermapChartComponent, decorators: [{
|
|
@@ -2386,6 +2393,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2386
2393
|
[filters]="filters"
|
|
2387
2394
|
[highlights]="highlights"
|
|
2388
2395
|
[styleOptions]="styleOptions"
|
|
2396
|
+
(dataPointClick)="dataPointClick.emit($event)"
|
|
2389
2397
|
/>
|
|
2390
2398
|
`,
|
|
2391
2399
|
}]
|
|
@@ -2399,6 +2407,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2399
2407
|
type: Input
|
|
2400
2408
|
}], styleOptions: [{
|
|
2401
2409
|
type: Input
|
|
2410
|
+
}], dataPointClick: [{
|
|
2411
|
+
type: Output
|
|
2402
2412
|
}] } });
|
|
2403
2413
|
|
|
2404
2414
|
/**
|
|
@@ -2407,12 +2417,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2407
2417
|
*/
|
|
2408
2418
|
class AreamapChartComponent {
|
|
2409
2419
|
constructor() {
|
|
2420
|
+
/**
|
|
2421
|
+
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.onDataPointClick}
|
|
2422
|
+
*
|
|
2423
|
+
* @category Callbacks
|
|
2424
|
+
*/
|
|
2425
|
+
this.dataPointClick = new EventEmitter();
|
|
2410
2426
|
/** @internal */
|
|
2411
2427
|
this.chartType = 'areamap';
|
|
2412
2428
|
}
|
|
2413
2429
|
}
|
|
2414
2430
|
AreamapChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AreamapChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2415
|
-
AreamapChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AreamapChartComponent, selector: "csdk-areamap-chart", inputs: { dataSet: "dataSet", dataOptions: "dataOptions", filters: "filters", highlights: "highlights", styleOptions: "styleOptions" }, ngImport: i0, template: `
|
|
2431
|
+
AreamapChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AreamapChartComponent, selector: "csdk-areamap-chart", inputs: { dataSet: "dataSet", dataOptions: "dataOptions", filters: "filters", highlights: "highlights", styleOptions: "styleOptions" }, outputs: { dataPointClick: "dataPointClick" }, ngImport: i0, template: `
|
|
2416
2432
|
<csdk-chart
|
|
2417
2433
|
[chartType]="chartType"
|
|
2418
2434
|
[dataSet]="dataSet"
|
|
@@ -2420,6 +2436,7 @@ AreamapChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
2420
2436
|
[filters]="filters"
|
|
2421
2437
|
[highlights]="highlights"
|
|
2422
2438
|
[styleOptions]="styleOptions"
|
|
2439
|
+
(dataPointClick)="dataPointClick.emit($event)"
|
|
2423
2440
|
/>
|
|
2424
2441
|
`, isInline: true, dependencies: [{ kind: "component", type: ChartComponent, selector: "csdk-chart", inputs: ["chartType", "dataSet", "dataOptions", "filters", "highlights", "styleOptions", "beforeRender"], outputs: ["dataPointClick", "dataPointContextMenu", "dataPointsSelect"] }] });
|
|
2425
2442
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AreamapChartComponent, decorators: [{
|
|
@@ -2434,6 +2451,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2434
2451
|
[filters]="filters"
|
|
2435
2452
|
[highlights]="highlights"
|
|
2436
2453
|
[styleOptions]="styleOptions"
|
|
2454
|
+
(dataPointClick)="dataPointClick.emit($event)"
|
|
2437
2455
|
/>
|
|
2438
2456
|
`,
|
|
2439
2457
|
}]
|
|
@@ -2447,6 +2465,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2447
2465
|
type: Input
|
|
2448
2466
|
}], styleOptions: [{
|
|
2449
2467
|
type: Input
|
|
2468
|
+
}], dataPointClick: [{
|
|
2469
|
+
type: Output
|
|
2470
|
+
}] } });
|
|
2471
|
+
|
|
2472
|
+
/**
|
|
2473
|
+
* Pivot Table with and pagination.
|
|
2474
|
+
*
|
|
2475
|
+
* @alpha
|
|
2476
|
+
*/
|
|
2477
|
+
class PivotTableComponent {
|
|
2478
|
+
constructor(sisenseContextService, themeService) {
|
|
2479
|
+
this.sisenseContextService = sisenseContextService;
|
|
2480
|
+
this.themeService = themeService;
|
|
2481
|
+
this.componentAdapter = new ComponentAdapter(() => this.createPreactComponent(), [
|
|
2482
|
+
createSisenseContextConnector(this.sisenseContextService),
|
|
2483
|
+
createThemeContextConnector(this.themeService),
|
|
2484
|
+
]);
|
|
2485
|
+
}
|
|
2486
|
+
/** @internal */
|
|
2487
|
+
ngAfterViewInit() {
|
|
2488
|
+
this.componentAdapter.render(this.preactRef.nativeElement);
|
|
2489
|
+
}
|
|
2490
|
+
/** @internal */
|
|
2491
|
+
ngOnChanges() {
|
|
2492
|
+
if (this.preactRef) {
|
|
2493
|
+
this.componentAdapter.render(this.preactRef.nativeElement);
|
|
2494
|
+
}
|
|
2495
|
+
}
|
|
2496
|
+
createPreactComponent() {
|
|
2497
|
+
const props = {
|
|
2498
|
+
dataSet: this.dataSet,
|
|
2499
|
+
dataOptions: this.dataOptions,
|
|
2500
|
+
filters: this.filters,
|
|
2501
|
+
styleOptions: this.styleOptions,
|
|
2502
|
+
};
|
|
2503
|
+
return createElement(PivotTable, props);
|
|
2504
|
+
}
|
|
2505
|
+
/** @internal */
|
|
2506
|
+
ngOnDestroy() {
|
|
2507
|
+
this.componentAdapter.destroy();
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
PivotTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotTableComponent, deps: [{ token: SisenseContextService }, { token: ThemeService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2511
|
+
PivotTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PivotTableComponent, selector: "csdk-pivot-table", inputs: { dataSet: "dataSet", dataOptions: "dataOptions", filters: "filters", styleOptions: "styleOptions" }, viewQueries: [{ propertyName: "preactRef", first: true, predicate: ["preact"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "\n <div #preact style=\"width: 100%; height: 100%\"></div>\n", isInline: true });
|
|
2512
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotTableComponent, decorators: [{
|
|
2513
|
+
type: Component,
|
|
2514
|
+
args: [{
|
|
2515
|
+
selector: 'csdk-pivot-table',
|
|
2516
|
+
template,
|
|
2517
|
+
}]
|
|
2518
|
+
}], ctorParameters: function () { return [{ type: SisenseContextService }, { type: ThemeService }]; }, propDecorators: { preactRef: [{
|
|
2519
|
+
type: ViewChild,
|
|
2520
|
+
args: [rootId]
|
|
2521
|
+
}], dataSet: [{
|
|
2522
|
+
type: Input
|
|
2523
|
+
}], dataOptions: [{
|
|
2524
|
+
type: Input
|
|
2525
|
+
}], filters: [{
|
|
2526
|
+
type: Input
|
|
2527
|
+
}], styleOptions: [{
|
|
2528
|
+
type: Input
|
|
2450
2529
|
}] } });
|
|
2451
2530
|
|
|
2452
2531
|
/**
|
|
@@ -2502,7 +2581,8 @@ SdkUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
2502
2581
|
ContextMenuComponent,
|
|
2503
2582
|
BoxplotChartComponent,
|
|
2504
2583
|
ScattermapChartComponent,
|
|
2505
|
-
AreamapChartComponent
|
|
2584
|
+
AreamapChartComponent,
|
|
2585
|
+
PivotTableComponent], imports: [CommonModule, DecoratorsModule], exports: [BasicMemberFilterTileComponent,
|
|
2506
2586
|
ChartComponent,
|
|
2507
2587
|
TableComponent,
|
|
2508
2588
|
ChartWidgetComponent,
|
|
@@ -2526,7 +2606,8 @@ SdkUiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
2526
2606
|
ContextMenuComponent,
|
|
2527
2607
|
BoxplotChartComponent,
|
|
2528
2608
|
ScattermapChartComponent,
|
|
2529
|
-
AreamapChartComponent
|
|
2609
|
+
AreamapChartComponent,
|
|
2610
|
+
PivotTableComponent] });
|
|
2530
2611
|
SdkUiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SdkUiModule, imports: [CommonModule, DecoratorsModule] });
|
|
2531
2612
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SdkUiModule, decorators: [{
|
|
2532
2613
|
type: NgModule,
|
|
@@ -2557,6 +2638,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2557
2638
|
BoxplotChartComponent,
|
|
2558
2639
|
ScattermapChartComponent,
|
|
2559
2640
|
AreamapChartComponent,
|
|
2641
|
+
PivotTableComponent,
|
|
2560
2642
|
],
|
|
2561
2643
|
imports: [CommonModule, DecoratorsModule],
|
|
2562
2644
|
exports: [
|
|
@@ -2585,6 +2667,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2585
2667
|
BoxplotChartComponent,
|
|
2586
2668
|
ScattermapChartComponent,
|
|
2587
2669
|
AreamapChartComponent,
|
|
2670
|
+
PivotTableComponent,
|
|
2588
2671
|
],
|
|
2589
2672
|
providers: [],
|
|
2590
2673
|
}]
|
|
@@ -2605,5 +2688,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2605
2688
|
* Generated bundle index. Do not edit.
|
|
2606
2689
|
*/
|
|
2607
2690
|
|
|
2608
|
-
export { AreaChartComponent, AreamapChartComponent, BarChartComponent, BasicMemberFilterTileComponent, BoxplotChartComponent, ChartComponent, ChartWidgetComponent, ColumnChartComponent, ContextMenuComponent, DashboardService, DashboardWidgetComponent, DateRangeFilterTileComponent, DrilldownBreadcrumbsComponent, DrilldownWidgetComponent, FunnelChartComponent, IndicatorChartComponent, LineChartComponent, MemberFilterTileComponent, PieChartComponent, PolarChartComponent, QueryService, SISENSE_CONTEXT_CONFIG_TOKEN, ScatterChartComponent, ScattermapChartComponent, SdkUiModule, SisenseContextService, SunburstChartComponent, THEME_CONFIG_TOKEN, TableComponent, TableWidgetComponent, ThemeService, TreemapChartComponent };
|
|
2691
|
+
export { AreaChartComponent, AreamapChartComponent, BarChartComponent, BasicMemberFilterTileComponent, BoxplotChartComponent, ChartComponent, ChartWidgetComponent, ColumnChartComponent, ContextMenuComponent, DashboardService, DashboardWidgetComponent, DateRangeFilterTileComponent, DrilldownBreadcrumbsComponent, DrilldownWidgetComponent, FunnelChartComponent, IndicatorChartComponent, LineChartComponent, MemberFilterTileComponent, PieChartComponent, PivotTableComponent, PolarChartComponent, QueryService, SISENSE_CONTEXT_CONFIG_TOKEN, ScatterChartComponent, ScattermapChartComponent, SdkUiModule, SisenseContextService, SunburstChartComponent, THEME_CONFIG_TOKEN, TableComponent, TableWidgetComponent, ThemeService, TreemapChartComponent };
|
|
2609
2692
|
//# sourceMappingURL=sisense-sdk-ui-angular.mjs.map
|