@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
|
@@ -19113,11 +19113,13 @@ var SpeakersModule = /** @class */ (function () {
|
|
|
19113
19113
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
19114
19114
|
*/
|
|
19115
19115
|
var UserProgressComponent = /** @class */ (function () {
|
|
19116
|
-
function UserProgressComponent(insightSvc) {
|
|
19116
|
+
function UserProgressComponent(insightSvc, configSvc) {
|
|
19117
19117
|
this.insightSvc = insightSvc;
|
|
19118
|
+
this.configSvc = configSvc;
|
|
19118
19119
|
this.insitesData = [];
|
|
19119
19120
|
this.currentIndex = 0;
|
|
19120
19121
|
this.styleData = {};
|
|
19122
|
+
this.userProgress = {};
|
|
19121
19123
|
this.expand = true;
|
|
19122
19124
|
}
|
|
19123
19125
|
/**
|
|
@@ -19147,6 +19149,10 @@ var UserProgressComponent = /** @class */ (function () {
|
|
|
19147
19149
|
if (res && res.result && res.result.userLeaderBoard) {
|
|
19148
19150
|
_this.userProgress = res.result.userLeaderBoard[0];
|
|
19149
19151
|
}
|
|
19152
|
+
if (!_this.userProgress.fullname && _this.configSvc && _this.configSvc.userProfile && _this.configSvc.userProfile.firstName) {
|
|
19153
|
+
_this.userProgress['fullname'] = _this.configSvc.userProfile.firstName;
|
|
19154
|
+
_this.userProgress['profile_image'] = _this.configSvc.userProfile.profileImageUrl;
|
|
19155
|
+
}
|
|
19150
19156
|
}));
|
|
19151
19157
|
};
|
|
19152
19158
|
/**
|
|
@@ -19258,7 +19264,8 @@ var UserProgressComponent = /** @class */ (function () {
|
|
|
19258
19264
|
];
|
|
19259
19265
|
/** @nocollapse */
|
|
19260
19266
|
UserProgressComponent.ctorParameters = function () { return [
|
|
19261
|
-
{ type: InsiteDataService }
|
|
19267
|
+
{ type: InsiteDataService },
|
|
19268
|
+
{ type: ConfigurationsService$1 }
|
|
19262
19269
|
]; };
|
|
19263
19270
|
UserProgressComponent.propDecorators = {
|
|
19264
19271
|
objectData: [{ type: Input }],
|
|
@@ -19286,6 +19293,11 @@ if (false) {
|
|
|
19286
19293
|
UserProgressComponent.prototype.scrollableItems;
|
|
19287
19294
|
/** @type {?} */
|
|
19288
19295
|
UserProgressComponent.prototype.insightSvc;
|
|
19296
|
+
/**
|
|
19297
|
+
* @type {?}
|
|
19298
|
+
* @private
|
|
19299
|
+
*/
|
|
19300
|
+
UserProgressComponent.prototype.configSvc;
|
|
19289
19301
|
}
|
|
19290
19302
|
|
|
19291
19303
|
/**
|