@sisense/sdk-ui-angular 1.16.0 → 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/dashboard/dashboard-by-id.component.mjs +2 -2
- package/dist/esm2020/lib/components/dashboard/dashboard.component.mjs +3 -3
- package/dist/esm2020/lib/decorators/trackable.decorator.mjs +3 -2
- 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 +16 -9
- package/dist/fesm2015/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs +13 -9
- package/dist/fesm2020/sisense-sdk-ui-angular.mjs.map +1 -1
- package/dist/lib/components/dashboard/dashboard-by-id.component.d.ts +1 -1
- package/dist/lib/components/dashboard/dashboard.component.d.ts +2 -2
- package/dist/lib/services/theme.service.d.ts +13 -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
|
}
|
|
@@ -342,7 +345,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
342
345
|
}]
|
|
343
346
|
}], ctorParameters: function () { return [{ type: SisenseContextService }]; } });
|
|
344
347
|
|
|
345
|
-
var packageVersion = '1.
|
|
348
|
+
var packageVersion = '1.17.0';
|
|
346
349
|
|
|
347
350
|
function Trackable(target, propertyKey, descriptor) {
|
|
348
351
|
const originalMethod = descriptor.value;
|
|
@@ -369,13 +372,14 @@ async function track(action, methodName) {
|
|
|
369
372
|
try {
|
|
370
373
|
const { enableTracking } = DecoratorsModule.sisenseContextService.getConfig();
|
|
371
374
|
const app = await DecoratorsModule.sisenseContextService.getApp();
|
|
375
|
+
const trackingEnabled = enableTracking && (app.settings?.trackingConfig?.enabled ?? enableTracking);
|
|
372
376
|
if (app?.httpClient) {
|
|
373
377
|
const payload = {
|
|
374
378
|
packageName: 'sdk-ui-angular',
|
|
375
379
|
packageVersion,
|
|
376
380
|
methodName,
|
|
377
381
|
};
|
|
378
|
-
void trackProductEvent(action, payload, app.httpClient, !
|
|
382
|
+
void trackProductEvent(action, payload, app.httpClient, !trackingEnabled);
|
|
379
383
|
}
|
|
380
384
|
}
|
|
381
385
|
catch (e) {
|
|
@@ -3565,7 +3569,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3565
3569
|
* ```
|
|
3566
3570
|
* @group Fusion Embed
|
|
3567
3571
|
* @fusionEmbed
|
|
3568
|
-
* @
|
|
3572
|
+
* @alpha
|
|
3569
3573
|
*/
|
|
3570
3574
|
class DashboardByIdComponent {
|
|
3571
3575
|
/**
|
|
@@ -3637,7 +3641,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3637
3641
|
}] } });
|
|
3638
3642
|
|
|
3639
3643
|
/**
|
|
3640
|
-
* An Angular component used for easily rendering a dashboard.
|
|
3644
|
+
* An Angular component used for easily rendering a dashboard created in Sisense Fusion.
|
|
3641
3645
|
*
|
|
3642
3646
|
* **Note:** Dashboard extensions based on JS scripts and add-ons in Fusion are not supported.
|
|
3643
3647
|
*
|
|
@@ -3674,7 +3678,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3674
3678
|
* ```
|
|
3675
3679
|
* @group Fusion Embed
|
|
3676
3680
|
* @fusionEmbed
|
|
3677
|
-
* @
|
|
3681
|
+
* @alpha
|
|
3678
3682
|
*/
|
|
3679
3683
|
class DashboardComponent {
|
|
3680
3684
|
/**
|