@sunbird-cb/consumption 0.0.83 → 0.0.84
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/bundles/sunbird-cb-consumption.umd.js +14 -2
- package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
- package/esm2015/lib/_common/user-progress/user-progress.component.js +17 -3
- package/esm5/lib/_common/user-progress/user-progress.component.js +16 -3
- package/fesm2015/sunbird-cb-consumption.js +15 -2
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +14 -2
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/user-progress/user-progress.component.d.ts +3 -1
- package/package.json +1 -1
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -19317,11 +19317,13 @@
|
|
|
19317
19317
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
19318
19318
|
*/
|
|
19319
19319
|
var UserProgressComponent = /** @class */ (function () {
|
|
19320
|
-
function UserProgressComponent(insightSvc) {
|
|
19320
|
+
function UserProgressComponent(insightSvc, configSvc) {
|
|
19321
19321
|
this.insightSvc = insightSvc;
|
|
19322
|
+
this.configSvc = configSvc;
|
|
19322
19323
|
this.insitesData = [];
|
|
19323
19324
|
this.currentIndex = 0;
|
|
19324
19325
|
this.styleData = {};
|
|
19326
|
+
this.userProgress = {};
|
|
19325
19327
|
this.expand = true;
|
|
19326
19328
|
}
|
|
19327
19329
|
/**
|
|
@@ -19351,6 +19353,10 @@
|
|
|
19351
19353
|
if (res && res.result && res.result.userLeaderBoard) {
|
|
19352
19354
|
_this.userProgress = res.result.userLeaderBoard[0];
|
|
19353
19355
|
}
|
|
19356
|
+
if (!_this.userProgress.fullname && _this.configSvc && _this.configSvc.userProfile && _this.configSvc.userProfile.firstName) {
|
|
19357
|
+
_this.userProgress['fullname'] = _this.configSvc.userProfile.firstName;
|
|
19358
|
+
_this.userProgress['profile_image'] = _this.configSvc.userProfile.profileImageUrl;
|
|
19359
|
+
}
|
|
19354
19360
|
}));
|
|
19355
19361
|
};
|
|
19356
19362
|
/**
|
|
@@ -19462,7 +19468,8 @@
|
|
|
19462
19468
|
];
|
|
19463
19469
|
/** @nocollapse */
|
|
19464
19470
|
UserProgressComponent.ctorParameters = function () { return [
|
|
19465
|
-
{ type: InsiteDataService }
|
|
19471
|
+
{ type: InsiteDataService },
|
|
19472
|
+
{ type: utilsV2.ConfigurationsService }
|
|
19466
19473
|
]; };
|
|
19467
19474
|
UserProgressComponent.propDecorators = {
|
|
19468
19475
|
objectData: [{ type: core.Input }],
|
|
@@ -19490,6 +19497,11 @@
|
|
|
19490
19497
|
UserProgressComponent.prototype.scrollableItems;
|
|
19491
19498
|
/** @type {?} */
|
|
19492
19499
|
UserProgressComponent.prototype.insightSvc;
|
|
19500
|
+
/**
|
|
19501
|
+
* @type {?}
|
|
19502
|
+
* @private
|
|
19503
|
+
*/
|
|
19504
|
+
UserProgressComponent.prototype.configSvc;
|
|
19493
19505
|
}
|
|
19494
19506
|
|
|
19495
19507
|
/**
|