@sisense/sdk-ui-angular 0.13.0 → 0.14.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/area-chart.component.mjs +4 -2
- package/dist/esm2020/lib/components/bar-chart.component.mjs +4 -2
- package/dist/esm2020/lib/components/chart-widget.component.mjs +6 -3
- package/dist/esm2020/lib/components/column-chart.component.mjs +4 -2
- package/dist/esm2020/lib/components/dashboard-widget.component.mjs +3 -2
- package/dist/esm2020/lib/components/funnel-chart.component.mjs +3 -2
- package/dist/esm2020/lib/components/indicator-chart.component.mjs +3 -2
- package/dist/esm2020/lib/components/line-chart.component.mjs +3 -2
- package/dist/esm2020/lib/components/pie-chart.component.mjs +4 -2
- package/dist/esm2020/lib/components/polar-chart.component.mjs +3 -2
- package/dist/esm2020/lib/components/scatter-chart.component.mjs +10 -2
- package/dist/esm2020/lib/components/table-widget.component.mjs +2 -2
- package/dist/esm2020/lib/components/table.component.mjs +2 -2
- package/dist/esm2020/lib/components/treemap-chart.component.mjs +4 -2
- package/dist/esm2020/lib/services/query.service.mjs +13 -1
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs +53 -15
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +53 -15
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/lib/components/area-chart.component.d.ts +3 -1
- package/dist/lib/components/bar-chart.component.d.ts +3 -1
- package/dist/lib/components/chart-widget.component.d.ts +47 -5
- package/dist/lib/components/column-chart.component.d.ts +9 -2
- package/dist/lib/components/dashboard-widget.component.d.ts +2 -1
- package/dist/lib/components/funnel-chart.component.d.ts +2 -1
- package/dist/lib/components/indicator-chart.component.d.ts +2 -1
- package/dist/lib/components/line-chart.component.d.ts +2 -1
- package/dist/lib/components/pie-chart.component.d.ts +3 -1
- package/dist/lib/components/polar-chart.component.d.ts +2 -1
- package/dist/lib/components/scatter-chart.component.d.ts +9 -1
- package/dist/lib/components/table-widget.component.d.ts +29 -3
- package/dist/lib/components/table.component.d.ts +5 -5
- package/dist/lib/components/treemap-chart.component.d.ts +3 -1
- package/dist/lib/services/query.service.d.ts +12 -0
- package/dist/package.json +1 -1
- package/package.json +3 -3
|
@@ -6,12 +6,24 @@ export class QueryService {
|
|
|
6
6
|
constructor(sisenseContextService) {
|
|
7
7
|
this.sisenseContextService = sisenseContextService;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Executes a data query.
|
|
11
|
+
*
|
|
12
|
+
* @param params - Query parameters
|
|
13
|
+
* return Query result
|
|
14
|
+
*/
|
|
9
15
|
async executeQuery(params) {
|
|
10
16
|
const { dataSource, dimensions, measures, filters, highlights, count, offset, onBeforeQuery } = params;
|
|
11
17
|
const app = await this.sisenseContextService.getApp();
|
|
12
18
|
const data = await executeQuery({ dataSource, dimensions, measures, filters, highlights, count, offset }, app, { onBeforeQuery });
|
|
13
19
|
return { data };
|
|
14
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Executes a data query extracted from an existing widget in the Sisense instance.
|
|
23
|
+
*
|
|
24
|
+
* @param params - Parameters to identify the target widget
|
|
25
|
+
* @returns Query result
|
|
26
|
+
*/
|
|
15
27
|
async executeQueryByWidgetId(params) {
|
|
16
28
|
const app = await this.sisenseContextService.getApp();
|
|
17
29
|
return executeQueryByWidgetId({
|
|
@@ -28,4 +40,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
28
40
|
providedIn: 'root',
|
|
29
41
|
}]
|
|
30
42
|
}], ctorParameters: function () { return [{ type: i1.SisenseContextService }]; } });
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2V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"12.0.0", version: "15.2.10", ngImpo
|
|
|
406
406
|
}] } });
|
|
407
407
|
|
|
408
408
|
/**
|
|
409
|
-
* Table
|
|
409
|
+
* Table with aggregation and pagination.
|
|
410
410
|
*/
|
|
411
411
|
class TableComponent {
|
|
412
412
|
constructor(sisenseContextService, themeService) {
|
|
@@ -463,7 +463,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
463
463
|
}] } });
|
|
464
464
|
|
|
465
465
|
/**
|
|
466
|
-
* Chart Widget
|
|
466
|
+
* The Chart Widget component extending {@link ChartComponent} to support widget style options.
|
|
467
467
|
*/
|
|
468
468
|
class ChartWidgetComponent {
|
|
469
469
|
constructor(sisenseContextService, themeService) {
|
|
@@ -515,6 +515,7 @@ class ChartWidgetComponent {
|
|
|
515
515
|
drilldownOptions: this.drilldownOptions,
|
|
516
516
|
title: this.title,
|
|
517
517
|
description: this.description,
|
|
518
|
+
highlightSelectionDisabled: this.highlightSelectionDisabled,
|
|
518
519
|
onBeforeRender: (_a = this.beforeRender) === null || _a === void 0 ? void 0 : _a.bind(this),
|
|
519
520
|
onDataPointClick: (...[point, nativeEvent]) => this.dataPointClick.emit({ point, nativeEvent }),
|
|
520
521
|
onDataPointContextMenu: (...[point, nativeEvent]) => this.dataPointContextMenu.emit({ point, nativeEvent }),
|
|
@@ -528,7 +529,7 @@ class ChartWidgetComponent {
|
|
|
528
529
|
}
|
|
529
530
|
}
|
|
530
531
|
ChartWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWidgetComponent, deps: [{ token: SisenseContextService }, { token: ThemeService }], target: i0.ɵɵFactoryTarget.Component });
|
|
531
|
-
ChartWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWidgetComponent, selector: "csdk-chart-widget", inputs: { chartType: "chartType", dataSource: "dataSource", dataOptions: "dataOptions", filters: "filters", highlights: "highlights", styleOptions: "styleOptions", widgetStyleOptions: "widgetStyleOptions", drilldownOptions: "drilldownOptions", title: "title", description: "description", beforeRender: "beforeRender" }, outputs: { dataPointClick: "dataPointClick", dataPointContextMenu: "dataPointContextMenu", dataPointsSelect: "dataPointsSelect" }, viewQueries: [{ propertyName: "preactRef", first: true, predicate: ["preact"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div #preact style=\"width: 100%; height: 100%\"></div>", isInline: true });
|
|
532
|
+
ChartWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWidgetComponent, selector: "csdk-chart-widget", inputs: { chartType: "chartType", dataSource: "dataSource", dataOptions: "dataOptions", filters: "filters", highlights: "highlights", styleOptions: "styleOptions", widgetStyleOptions: "widgetStyleOptions", drilldownOptions: "drilldownOptions", title: "title", description: "description", highlightSelectionDisabled: "highlightSelectionDisabled", beforeRender: "beforeRender" }, outputs: { dataPointClick: "dataPointClick", dataPointContextMenu: "dataPointContextMenu", dataPointsSelect: "dataPointsSelect" }, viewQueries: [{ propertyName: "preactRef", first: true, predicate: ["preact"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div #preact style=\"width: 100%; height: 100%\"></div>", isInline: true });
|
|
532
533
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWidgetComponent, decorators: [{
|
|
533
534
|
type: Component,
|
|
534
535
|
args: [{
|
|
@@ -558,6 +559,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
558
559
|
type: Input
|
|
559
560
|
}], description: [{
|
|
560
561
|
type: Input
|
|
562
|
+
}], highlightSelectionDisabled: [{
|
|
563
|
+
type: Input
|
|
561
564
|
}], beforeRender: [{
|
|
562
565
|
type: Input
|
|
563
566
|
}], dataPointClick: [{
|
|
@@ -569,7 +572,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
569
572
|
}] } });
|
|
570
573
|
|
|
571
574
|
/**
|
|
572
|
-
*
|
|
575
|
+
* A component representing categorical data with vertical rectangular bars
|
|
576
|
+
* whose heights are proportional to the values that they represent.
|
|
577
|
+
* See [Column Chart](https://docs.sisense.com/main/SisenseLinux/column-chart.htm) for more information.
|
|
573
578
|
*/
|
|
574
579
|
class ColumnChartComponent {
|
|
575
580
|
constructor() {
|
|
@@ -648,7 +653,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
648
653
|
}] } });
|
|
649
654
|
|
|
650
655
|
/**
|
|
651
|
-
*
|
|
656
|
+
* A component representing categorical data with horizontal rectangular bars,
|
|
657
|
+
* whose lengths are proportional to the values that they represent.
|
|
658
|
+
* See [Bar Chart](https://docs.sisense.com/main/SisenseLinux/bar-chart.htm) for more information.
|
|
652
659
|
*/
|
|
653
660
|
class BarChartComponent {
|
|
654
661
|
constructor() {
|
|
@@ -727,7 +734,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
727
734
|
}] } });
|
|
728
735
|
|
|
729
736
|
/**
|
|
730
|
-
*
|
|
737
|
+
* A component similar to a {@link LineChartComponent},
|
|
738
|
+
* but with filled in areas under each line and an option to display them as stacked.
|
|
739
|
+
* More info on [Sisense Documentation page](https://docs.sisense.com/main/SisenseLinux/area-chart.htm).
|
|
731
740
|
*/
|
|
732
741
|
class AreaChartComponent {
|
|
733
742
|
constructor() {
|
|
@@ -806,7 +815,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
806
815
|
}] } });
|
|
807
816
|
|
|
808
817
|
/**
|
|
809
|
-
*
|
|
818
|
+
* A component displaying data as a series of points connected by a line. Used to show trends or changes over time.
|
|
819
|
+
* See [Line Chart](https://docs.sisense.com/main/SisenseLinux/line-chart.htm) for more information.
|
|
810
820
|
*/
|
|
811
821
|
class LineChartComponent {
|
|
812
822
|
constructor() {
|
|
@@ -885,7 +895,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
885
895
|
}] } });
|
|
886
896
|
|
|
887
897
|
/**
|
|
888
|
-
*
|
|
898
|
+
* A component that provides various options for displaying one or two numeric values as a number, gauge or ticker.
|
|
899
|
+
* See [Indicator](https://docs.sisense.com/main/SisenseLinux/indicator.htm) for more information.
|
|
889
900
|
*/
|
|
890
901
|
class IndicatorChartComponent {
|
|
891
902
|
constructor() {
|
|
@@ -930,7 +941,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
930
941
|
}] } });
|
|
931
942
|
|
|
932
943
|
/**
|
|
933
|
-
*
|
|
944
|
+
* A component displaying the distribution of two variables on an X-Axis, Y-Axis,
|
|
945
|
+
* and two additional fields of data that are shown as colored circles scattered across the chart.
|
|
946
|
+
*
|
|
947
|
+
* **Point**: A field that for each of its members a scatter point is drawn. The maximum amount of data points is 500.
|
|
948
|
+
*
|
|
949
|
+
* **Size**: An optional field represented by the size of the circles.
|
|
950
|
+
* If omitted, all scatter points are equal in size. If used, the circle sizes are relative to their values.
|
|
951
|
+
*
|
|
952
|
+
* See [Scatter Chart](https://docs.sisense.com/main/SisenseLinux/scatter-chart.htm) for more information.
|
|
934
953
|
*/
|
|
935
954
|
class ScatterChartComponent {
|
|
936
955
|
constructor() {
|
|
@@ -1009,7 +1028,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1009
1028
|
}] } });
|
|
1010
1029
|
|
|
1011
1030
|
/**
|
|
1012
|
-
*
|
|
1031
|
+
* A component representing data in a circular graph with the data shown as slices of a whole,
|
|
1032
|
+
* with each slice representing a proportion of the total.
|
|
1033
|
+
* See [Pie Chart](https://docs.sisense.com/main/SisenseLinux/pie-chart.htm) for more information.
|
|
1013
1034
|
*/
|
|
1014
1035
|
class PieChartComponent {
|
|
1015
1036
|
constructor() {
|
|
@@ -1088,7 +1109,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1088
1109
|
}] } });
|
|
1089
1110
|
|
|
1090
1111
|
/**
|
|
1091
|
-
*
|
|
1112
|
+
* A component representing data progressively decreasing in size or quantity through a funnel shape.
|
|
1113
|
+
* See [Funnel Chart](https://docs.sisense.com/main/SisenseLinux/funnel-chart.htm) for more information.
|
|
1092
1114
|
*/
|
|
1093
1115
|
class FunnelChartComponent {
|
|
1094
1116
|
constructor() {
|
|
@@ -1167,7 +1189,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1167
1189
|
}] } });
|
|
1168
1190
|
|
|
1169
1191
|
/**
|
|
1170
|
-
*
|
|
1192
|
+
* A component comparing multiple categories/variables with a spacial perspective in a radial chart.
|
|
1193
|
+
* See [Polar Chart](https://docs.sisense.com/main/SisenseLinux/polar-chart.htm) for more information.
|
|
1171
1194
|
*/
|
|
1172
1195
|
class PolarChartComponent {
|
|
1173
1196
|
constructor() {
|
|
@@ -1246,7 +1269,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1246
1269
|
}] } });
|
|
1247
1270
|
|
|
1248
1271
|
/**
|
|
1249
|
-
*
|
|
1272
|
+
* A component displaying hierarchical data in the form of nested rectangles.
|
|
1273
|
+
* This type of chart can be used instead of a column chart for comparing a large number of categories and sub-categories.
|
|
1274
|
+
* See [Treemap Chart](https://docs.sisense.com/main/SisenseLinux/treemap.htm) for more information.
|
|
1250
1275
|
*/
|
|
1251
1276
|
class TreemapChartComponent {
|
|
1252
1277
|
constructor() {
|
|
@@ -1325,7 +1350,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1325
1350
|
}] } });
|
|
1326
1351
|
|
|
1327
1352
|
/**
|
|
1328
|
-
* Table Widget
|
|
1353
|
+
* The Table Widget component extending {@link TableComponent} component to support widget style options.
|
|
1329
1354
|
*
|
|
1330
1355
|
* @internal
|
|
1331
1356
|
*/
|
|
@@ -1390,7 +1415,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1390
1415
|
}] } });
|
|
1391
1416
|
|
|
1392
1417
|
/**
|
|
1393
|
-
* Dashboard Widget
|
|
1418
|
+
* The Dashboard Widget component, which is a thin wrapper on {@link ChartWidgetComponent},
|
|
1419
|
+
* used to render a widget created in the Sisense instance.
|
|
1394
1420
|
*/
|
|
1395
1421
|
class DashboardWidgetComponent {
|
|
1396
1422
|
constructor(sisenseContextService, themeService) {
|
|
@@ -1574,6 +1600,12 @@ class QueryService {
|
|
|
1574
1600
|
constructor(sisenseContextService) {
|
|
1575
1601
|
this.sisenseContextService = sisenseContextService;
|
|
1576
1602
|
}
|
|
1603
|
+
/**
|
|
1604
|
+
* Executes a data query.
|
|
1605
|
+
*
|
|
1606
|
+
* @param params - Query parameters
|
|
1607
|
+
* return Query result
|
|
1608
|
+
*/
|
|
1577
1609
|
executeQuery(params) {
|
|
1578
1610
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1579
1611
|
const { dataSource, dimensions, measures, filters, highlights, count, offset, onBeforeQuery } = params;
|
|
@@ -1582,6 +1614,12 @@ class QueryService {
|
|
|
1582
1614
|
return { data };
|
|
1583
1615
|
});
|
|
1584
1616
|
}
|
|
1617
|
+
/**
|
|
1618
|
+
* Executes a data query extracted from an existing widget in the Sisense instance.
|
|
1619
|
+
*
|
|
1620
|
+
* @param params - Parameters to identify the target widget
|
|
1621
|
+
* @returns Query result
|
|
1622
|
+
*/
|
|
1585
1623
|
executeQueryByWidgetId(params) {
|
|
1586
1624
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1587
1625
|
const app = yield this.sisenseContextService.getApp();
|