@sisense/sdk-ui-angular 1.15.1 → 1.17.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/component-wrapper-helpers/context-connectors.mjs +7 -3
- package/dist/esm2020/lib/components/charts/line-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/pie-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/polar-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/charts/scatter-chart.component.mjs +1 -1
- package/dist/esm2020/lib/components/dashboard/dashboard-by-id.component.mjs +4 -2
- package/dist/esm2020/lib/components/dashboard/dashboard.component.mjs +9 -4
- package/dist/esm2020/lib/components/widgets/dashboard-widget.component.mjs +1 -1
- package/dist/esm2020/lib/components/widgets/drilldown-widget.component.mjs +6 -1
- package/dist/esm2020/lib/decorators/trackable.decorator.mjs +3 -2
- package/dist/esm2020/lib/services/dashboard.service.mjs +3 -1
- package/dist/esm2020/lib/services/sisense-context.service.mjs +2 -3
- package/dist/esm2020/version.mjs +2 -2
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs +31 -10
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +28 -10
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/lib/components/charts/line-chart.component.d.ts +1 -1
- package/dist/lib/components/charts/pie-chart.component.d.ts +1 -1
- package/dist/lib/components/charts/polar-chart.component.d.ts +1 -1
- package/dist/lib/components/charts/scatter-chart.component.d.ts +1 -1
- package/dist/lib/components/dashboard/dashboard-by-id.component.d.ts +3 -1
- package/dist/lib/components/dashboard/dashboard.component.d.ts +9 -3
- package/dist/lib/components/widgets/dashboard-widget.component.d.ts +41 -1
- package/dist/lib/components/widgets/drilldown-widget.component.d.ts +15 -0
- package/dist/lib/services/dashboard.service.d.ts +2 -0
- package/dist/lib/services/query.service.d.ts +1 -2
- package/dist/lib/services/theme.service.d.ts +27 -0
- package/dist/package.json +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -106,14 +106,18 @@ const createThemeContextConnector = (themeService) => {
|
|
|
106
106
|
const createSisenseContextConnector = (sisenseContextService) => {
|
|
107
107
|
return {
|
|
108
108
|
async prepareContext() {
|
|
109
|
-
const { enableTracking, showRuntimeErrors } = sisenseContextService.getConfig();
|
|
109
|
+
const { enableTracking, showRuntimeErrors, appConfig } = sisenseContextService.getConfig();
|
|
110
110
|
const app = await sisenseContextService.getApp();
|
|
111
111
|
return {
|
|
112
112
|
app,
|
|
113
113
|
isInitialized: true,
|
|
114
114
|
showRuntimeErrors,
|
|
115
115
|
tracking: {
|
|
116
|
-
|
|
116
|
+
// if tracking is configured in appConfig, use it, otherwise use enableTracking
|
|
117
|
+
// if none is set, default to true
|
|
118
|
+
enabled: appConfig?.trackingConfig?.enabled !== undefined
|
|
119
|
+
? appConfig.trackingConfig.enabled
|
|
120
|
+
: enableTracking ?? true,
|
|
117
121
|
packageName: 'sdk-ui-angular',
|
|
118
122
|
},
|
|
119
123
|
};
|
|
@@ -158,10 +162,9 @@ const SISENSE_CONTEXT_CONFIG_TOKEN = new InjectionToken('Props for connecting to
|
|
|
158
162
|
class SisenseContextService {
|
|
159
163
|
constructor(sisenseContextConfig) {
|
|
160
164
|
this.appPromise = createClientApplication(sisenseContextConfig);
|
|
161
|
-
const {
|
|
165
|
+
const { showRuntimeErrors } = sisenseContextConfig;
|
|
162
166
|
this.config = {
|
|
163
167
|
...sisenseContextConfig,
|
|
164
|
-
enableTracking: enableTracking ?? true,
|
|
165
168
|
showRuntimeErrors: showRuntimeErrors ?? true,
|
|
166
169
|
};
|
|
167
170
|
}
|
|
@@ -249,6 +252,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
249
252
|
/**
|
|
250
253
|
* Service for working with Sisense Fusion dashboards.
|
|
251
254
|
*
|
|
255
|
+
* **Note:** Dashboard extensions based on JS scripts and add-ons in Fusion are not supported.
|
|
256
|
+
*
|
|
252
257
|
* @group Fusion Embed
|
|
253
258
|
* @fusionEmbed
|
|
254
259
|
*/
|
|
@@ -340,7 +345,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
340
345
|
}]
|
|
341
346
|
}], ctorParameters: function () { return [{ type: SisenseContextService }]; } });
|
|
342
347
|
|
|
343
|
-
var packageVersion = '1.
|
|
348
|
+
var packageVersion = '1.17.0';
|
|
344
349
|
|
|
345
350
|
function Trackable(target, propertyKey, descriptor) {
|
|
346
351
|
const originalMethod = descriptor.value;
|
|
@@ -367,13 +372,14 @@ async function track(action, methodName) {
|
|
|
367
372
|
try {
|
|
368
373
|
const { enableTracking } = DecoratorsModule.sisenseContextService.getConfig();
|
|
369
374
|
const app = await DecoratorsModule.sisenseContextService.getApp();
|
|
375
|
+
const trackingEnabled = enableTracking && (app.settings?.trackingConfig?.enabled ?? enableTracking);
|
|
370
376
|
if (app?.httpClient) {
|
|
371
377
|
const payload = {
|
|
372
378
|
packageName: 'sdk-ui-angular',
|
|
373
379
|
packageVersion,
|
|
374
380
|
methodName,
|
|
375
381
|
};
|
|
376
|
-
void trackProductEvent(action, payload, app.httpClient, !
|
|
382
|
+
void trackProductEvent(action, payload, app.httpClient, !trackingEnabled);
|
|
377
383
|
}
|
|
378
384
|
}
|
|
379
385
|
catch (e) {
|
|
@@ -3297,6 +3303,11 @@ class DrilldownWidgetComponent {
|
|
|
3297
3303
|
themeService) {
|
|
3298
3304
|
this.sisenseContextService = sisenseContextService;
|
|
3299
3305
|
this.themeService = themeService;
|
|
3306
|
+
/**
|
|
3307
|
+
* Drilldown result change handler callback
|
|
3308
|
+
*
|
|
3309
|
+
* @category Callbacks
|
|
3310
|
+
*/
|
|
3300
3311
|
this.drilldownResultChange = new EventEmitter();
|
|
3301
3312
|
this.componentAdapter = new ComponentAdapter(() => this.createPreactComponent(), [
|
|
3302
3313
|
createSisenseContextConnector(this.sisenseContextService),
|
|
@@ -3536,6 +3547,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3536
3547
|
/**
|
|
3537
3548
|
* An Angular component used for easily rendering a dashboard by its ID created in a Sisense Fusion instance.
|
|
3538
3549
|
*
|
|
3550
|
+
* **Note:** Dashboard extensions based on JS scripts and add-ons in Fusion are not supported.
|
|
3551
|
+
*
|
|
3539
3552
|
* @example
|
|
3540
3553
|
* ```html
|
|
3541
3554
|
* <csdk-dashboard-by-id
|
|
@@ -3556,7 +3569,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3556
3569
|
* ```
|
|
3557
3570
|
* @group Fusion Embed
|
|
3558
3571
|
* @fusionEmbed
|
|
3559
|
-
* @
|
|
3572
|
+
* @alpha
|
|
3560
3573
|
*/
|
|
3561
3574
|
class DashboardByIdComponent {
|
|
3562
3575
|
/**
|
|
@@ -3628,7 +3641,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3628
3641
|
}] } });
|
|
3629
3642
|
|
|
3630
3643
|
/**
|
|
3631
|
-
* An Angular component used for easily rendering a dashboard.
|
|
3644
|
+
* An Angular component used for easily rendering a dashboard created in Sisense Fusion.
|
|
3645
|
+
*
|
|
3646
|
+
* **Note:** Dashboard extensions based on JS scripts and add-ons in Fusion are not supported.
|
|
3632
3647
|
*
|
|
3633
3648
|
* @example
|
|
3634
3649
|
* ```html
|
|
@@ -3663,7 +3678,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3663
3678
|
* ```
|
|
3664
3679
|
* @group Fusion Embed
|
|
3665
3680
|
* @fusionEmbed
|
|
3666
|
-
* @
|
|
3681
|
+
* @alpha
|
|
3667
3682
|
*/
|
|
3668
3683
|
class DashboardComponent {
|
|
3669
3684
|
/**
|
|
@@ -3714,6 +3729,7 @@ class DashboardComponent {
|
|
|
3714
3729
|
filters: this.filters,
|
|
3715
3730
|
defaultDataSource: this.defaultDataSource,
|
|
3716
3731
|
widgetFilterOptions: this.widgetFilterOptions,
|
|
3732
|
+
styleOptions: this.styleOptions,
|
|
3717
3733
|
};
|
|
3718
3734
|
return createElement(Dashboard, props);
|
|
3719
3735
|
}
|
|
@@ -3725,7 +3741,7 @@ class DashboardComponent {
|
|
|
3725
3741
|
}
|
|
3726
3742
|
}
|
|
3727
3743
|
DashboardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DashboardComponent, deps: [{ token: SisenseContextService }, { token: ThemeService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3728
|
-
DashboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DashboardComponent, selector: "csdk-dashboard", inputs: { title: "title", layout: "layout", widgets: "widgets", filters: "filters", defaultDataSource: "defaultDataSource", widgetFilterOptions: "widgetFilterOptions" }, 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 });
|
|
3744
|
+
DashboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DashboardComponent, selector: "csdk-dashboard", inputs: { title: "title", layout: "layout", widgets: "widgets", filters: "filters", defaultDataSource: "defaultDataSource", widgetFilterOptions: "widgetFilterOptions", 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 });
|
|
3729
3745
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DashboardComponent, decorators: [{
|
|
3730
3746
|
type: Component,
|
|
3731
3747
|
args: [{
|
|
@@ -3747,6 +3763,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3747
3763
|
type: Input
|
|
3748
3764
|
}], widgetFilterOptions: [{
|
|
3749
3765
|
type: Input
|
|
3766
|
+
}], styleOptions: [{
|
|
3767
|
+
type: Input
|
|
3750
3768
|
}] } });
|
|
3751
3769
|
|
|
3752
3770
|
/**
|