@sunbird-cb/consumption 0.0.91 → 0.0.92
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 +12 -5
- 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/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +4 -1
- package/esm2015/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.js +4 -1
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +4 -1
- package/esm5/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.js +10 -6
- package/fesm2015/sunbird-cb-consumption.js +6 -0
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +12 -5
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/package.json +1 -1
|
@@ -4767,6 +4767,9 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
4767
4767
|
}));
|
|
4768
4768
|
this.processStrip(strip, this.transformContentsToWidgets(filteredArray_1, strip), 'done', calculateParentStatus, viewMoreUrl);
|
|
4769
4769
|
}
|
|
4770
|
+
else {
|
|
4771
|
+
this.processStrip(strip, [], 'done', calculateParentStatus, viewMoreUrl);
|
|
4772
|
+
}
|
|
4770
4773
|
};
|
|
4771
4774
|
/**
|
|
4772
4775
|
* @param {?} strip
|
|
@@ -16895,14 +16898,14 @@ var ContentStripWithTabsPillsComponent = /** @class */ (function (_super) {
|
|
|
16895
16898
|
return __generator(this, function (_a) {
|
|
16896
16899
|
switch (_a.label) {
|
|
16897
16900
|
case 0:
|
|
16898
|
-
if (!(strip.request && strip.request.cbpList && Object.keys(strip.request.cbpList).length)) return [3 /*break*/,
|
|
16901
|
+
if (!(strip.request && strip.request.cbpList && Object.keys(strip.request.cbpList).length)) return [3 /*break*/, 7];
|
|
16899
16902
|
courses = void 0;
|
|
16900
16903
|
tabResults = [];
|
|
16901
16904
|
userId = this.configSvc.userProfile.userId;
|
|
16902
16905
|
return [4 /*yield*/, this.userSvc.fetchCbpPlanList(userId).toPromise()];
|
|
16903
16906
|
case 1:
|
|
16904
16907
|
response = _a.sent();
|
|
16905
|
-
if (!response) return [3 /*break*/,
|
|
16908
|
+
if (!response) return [3 /*break*/, 5];
|
|
16906
16909
|
courses = response;
|
|
16907
16910
|
if (!(strip.tabs && strip.tabs.length)) return [3 /*break*/, 3];
|
|
16908
16911
|
tabResults = this.splitCbpTabsData(courses, strip);
|
|
@@ -16936,10 +16939,14 @@ var ContentStripWithTabsPillsComponent = /** @class */ (function (_super) {
|
|
|
16936
16939
|
case 3:
|
|
16937
16940
|
this.processStrip(strip, this.transformContentsToWidgets(courses, strip), 'done', calculateParentStatus, 'viewMoreUrl');
|
|
16938
16941
|
_a.label = 4;
|
|
16939
|
-
case 4:
|
|
16942
|
+
case 4: return [3 /*break*/, 6];
|
|
16943
|
+
case 5:
|
|
16944
|
+
this.processStrip(strip, this.transformContentsToWidgets(courses, strip), 'done', calculateParentStatus, '', tabResults);
|
|
16945
|
+
_a.label = 6;
|
|
16946
|
+
case 6:
|
|
16940
16947
|
clearInterval(this.enrollInterval);
|
|
16941
|
-
_a.label =
|
|
16942
|
-
case
|
|
16948
|
+
_a.label = 7;
|
|
16949
|
+
case 7: return [2 /*return*/];
|
|
16943
16950
|
}
|
|
16944
16951
|
});
|
|
16945
16952
|
});
|