@sunbird-cb/consumption 0.0.88 → 0.0.90
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 +23 -17
- 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/microsites/national-learning-week/national-learning/national-learning.component.js +12 -4
- package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +13 -14
- package/esm5/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +12 -4
- package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +13 -15
- package/fesm2015/sunbird-cb-consumption.js +23 -16
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +23 -17
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.d.ts +1 -1
- package/package.json +1 -1
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -13938,7 +13938,7 @@ var ContentStripFacetFilterComponent = /** @class */ (function (_super) {
|
|
|
13938
13938
|
_this._fb = _fb;
|
|
13939
13939
|
_this.emptyResponse = new EventEmitter();
|
|
13940
13940
|
_this.viewAllResponse = new EventEmitter();
|
|
13941
|
-
_this.
|
|
13941
|
+
_this.telemtryLearningContentResponse = new EventEmitter();
|
|
13942
13942
|
_this.providerId = '';
|
|
13943
13943
|
_this.emitViewAll = false;
|
|
13944
13944
|
_this.channnelName = '';
|
|
@@ -13983,15 +13983,10 @@ var ContentStripFacetFilterComponent = /** @class */ (function (_super) {
|
|
|
13983
13983
|
* @return {?}
|
|
13984
13984
|
*/
|
|
13985
13985
|
function () {
|
|
13986
|
-
var _this = this;
|
|
13987
13986
|
this.initData();
|
|
13988
|
-
this.contentSvc.telemetryData$.subscribe((
|
|
13989
|
-
|
|
13990
|
-
|
|
13991
|
-
*/
|
|
13992
|
-
function (data) {
|
|
13993
|
-
_this.telemtryResponse.emit(data);
|
|
13994
|
-
}));
|
|
13987
|
+
// this.contentSvc.telemetryData$.subscribe((data: any) => {
|
|
13988
|
+
// this.telemtryLearningContentResponse.emit(data)
|
|
13989
|
+
// })
|
|
13995
13990
|
this.facetForm = this._fb.group({
|
|
13996
13991
|
org: ['0']
|
|
13997
13992
|
});
|
|
@@ -14327,7 +14322,7 @@ var ContentStripFacetFilterComponent = /** @class */ (function (_super) {
|
|
|
14327
14322
|
* @return {?}
|
|
14328
14323
|
*/
|
|
14329
14324
|
function (stripData) {
|
|
14330
|
-
this.
|
|
14325
|
+
this.telemtryLearningContentResponse.emit(stripData);
|
|
14331
14326
|
};
|
|
14332
14327
|
/**
|
|
14333
14328
|
* @param {?} key
|
|
@@ -14411,7 +14406,7 @@ var ContentStripFacetFilterComponent = /** @class */ (function (_super) {
|
|
|
14411
14406
|
};
|
|
14412
14407
|
this.eventSvc.raiseInteractTelemetry({
|
|
14413
14408
|
type: WsEvents.EnumInteractTypes.CLICK,
|
|
14414
|
-
subType:
|
|
14409
|
+
subType: 'explore-learning-content',
|
|
14415
14410
|
id: camelCase(data.label) + "-tab",
|
|
14416
14411
|
}, {}, {
|
|
14417
14412
|
module: WsEvents.EnumTelemetrymodules.HOME,
|
|
@@ -14903,7 +14898,7 @@ var ContentStripFacetFilterComponent = /** @class */ (function (_super) {
|
|
|
14903
14898
|
response = _a.sent();
|
|
14904
14899
|
tabIndex = 0;
|
|
14905
14900
|
pillIndex = 0;
|
|
14906
|
-
if (response.results && response.results.result) {
|
|
14901
|
+
if (response.results && response.results.result && response.results.result.content && response.results.result.content.length > 0) {
|
|
14907
14902
|
this.mapAllDataWithFacets(strip, response.results.result.content, response.results.result.facets, calculateParentStatus);
|
|
14908
14903
|
widgets = this.transformContentsToWidgets(response.results.result.content, strip);
|
|
14909
14904
|
tabResults = [];
|
|
@@ -14937,6 +14932,9 @@ var ContentStripFacetFilterComponent = /** @class */ (function (_super) {
|
|
|
14937
14932
|
// tabResults // tabResults as widgets
|
|
14938
14933
|
// );
|
|
14939
14934
|
}
|
|
14935
|
+
else {
|
|
14936
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
14937
|
+
}
|
|
14940
14938
|
return [3 /*break*/, 4];
|
|
14941
14939
|
case 3:
|
|
14942
14940
|
error_1 = _a.sent();
|
|
@@ -15184,7 +15182,7 @@ var ContentStripFacetFilterComponent = /** @class */ (function (_super) {
|
|
|
15184
15182
|
widgetData: [{ type: Input }],
|
|
15185
15183
|
emptyResponse: [{ type: Output }],
|
|
15186
15184
|
viewAllResponse: [{ type: Output }],
|
|
15187
|
-
|
|
15185
|
+
telemtryLearningContentResponse: [{ type: Output }],
|
|
15188
15186
|
providerId: [{ type: Input }],
|
|
15189
15187
|
emitViewAll: [{ type: Input }],
|
|
15190
15188
|
channnelName: [{ type: Input }],
|
|
@@ -15200,7 +15198,7 @@ if (false) {
|
|
|
15200
15198
|
/** @type {?} */
|
|
15201
15199
|
ContentStripFacetFilterComponent.prototype.viewAllResponse;
|
|
15202
15200
|
/** @type {?} */
|
|
15203
|
-
ContentStripFacetFilterComponent.prototype.
|
|
15201
|
+
ContentStripFacetFilterComponent.prototype.telemtryLearningContentResponse;
|
|
15204
15202
|
/** @type {?} */
|
|
15205
15203
|
ContentStripFacetFilterComponent.prototype.providerId;
|
|
15206
15204
|
/** @type {?} */
|
|
@@ -19894,15 +19892,23 @@ var NationalLearningComponent = /** @class */ (function () {
|
|
|
19894
19892
|
* @return {?}
|
|
19895
19893
|
*/
|
|
19896
19894
|
function (event) {
|
|
19895
|
+
/** @type {?} */
|
|
19896
|
+
var _subType = 'mandatory-courses';
|
|
19897
|
+
/** @type {?} */
|
|
19898
|
+
var _id = 'mandatory-courses-card';
|
|
19899
|
+
if (event.typeOfTelemetry === 'learningContent') {
|
|
19900
|
+
_subType = 'explore-learning-content';
|
|
19901
|
+
_id = 'explore-learning-content-card';
|
|
19902
|
+
}
|
|
19897
19903
|
this.events.raiseInteractTelemetry({
|
|
19898
19904
|
type: 'click',
|
|
19899
|
-
subType:
|
|
19900
|
-
id:
|
|
19905
|
+
subType: _subType,
|
|
19906
|
+
id: _id,
|
|
19901
19907
|
}, {
|
|
19902
19908
|
id: event.identifier,
|
|
19903
19909
|
type: event.primaryCategory,
|
|
19904
19910
|
}, {
|
|
19905
|
-
pageIdExt:
|
|
19911
|
+
pageIdExt: _id,
|
|
19906
19912
|
module: 'National Learning Week',
|
|
19907
19913
|
});
|
|
19908
19914
|
};
|