@sunbird-cb/consumption 0.0.35 → 0.0.37
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 +350 -53
- 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/cards/card-karma-programs/card-karma-programs.component.js +7 -3
- package/esm2015/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.js +167 -0
- package/esm2015/lib/_common/cards/cards.component.js +25 -8
- package/esm2015/lib/_common/cards/cards.module.js +4 -2
- package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +4 -4
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +95 -20
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm2015/lib/_services/common-methods.service.js +25 -1
- package/esm2015/sunbird-cb-consumption.js +23 -22
- package/esm5/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +7 -3
- package/esm5/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.js +173 -0
- package/esm5/lib/_common/cards/cards.component.js +17 -8
- package/esm5/lib/_common/cards/cards.module.js +4 -2
- package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +4 -4
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +107 -20
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm5/lib/_services/common-methods.service.js +30 -1
- package/esm5/sunbird-cb-consumption.js +23 -22
- package/fesm2015/sunbird-cb-consumption.js +314 -32
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +328 -32
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/cards/card-karma-programs/card-karma-programs.component.d.ts +1 -0
- package/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.d.ts +33 -0
- package/lib/_common/cards/cards.component.d.ts +1 -2
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +1 -0
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.d.ts +1 -0
- package/lib/_services/common-methods.service.d.ts +1 -0
- package/package.json +1 -1
- package/sunbird-cb-consumption.d.ts +22 -21
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -4185,6 +4185,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
4185
4185
|
this.fetchAllBookMarkData(strip, calculateParentStatus);
|
|
4186
4186
|
this.fetchAllPlaylistSearch(strip, calculateParentStatus);
|
|
4187
4187
|
this.fetchPlaylistReadData(strip, calculateParentStatus);
|
|
4188
|
+
this.fetchCiosContentData(strip, calculateParentStatus);
|
|
4188
4189
|
// this.enrollInterval = setInterval(() => {
|
|
4189
4190
|
// this.fetchAllCbpPlans(strip, calculateParentStatus)
|
|
4190
4191
|
// }, 1000)
|
|
@@ -4921,7 +4922,8 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
4921
4922
|
(strip.request.featureContent && Object.keys(strip.request.featureContent).length) ||
|
|
4922
4923
|
(strip.request.bookmarkRead && Object.keys(strip.request.bookmarkRead).length) ||
|
|
4923
4924
|
(strip.request.playlistSearch && Object.keys(strip.request.playlistSearch).length) ||
|
|
4924
|
-
(strip.request.playlistRead && Object.keys(strip.request.playlistRead).length)
|
|
4925
|
+
(strip.request.playlistRead && Object.keys(strip.request.playlistRead).length) ||
|
|
4926
|
+
(strip.request.ciosContent && Object.keys(strip.request.ciosContent).length))) {
|
|
4925
4927
|
return true;
|
|
4926
4928
|
}
|
|
4927
4929
|
return false;
|
|
@@ -5549,10 +5551,8 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
5549
5551
|
*/
|
|
5550
5552
|
function (strip, request, apiUrl, calculateParentStatus) {
|
|
5551
5553
|
return __awaiter(this, void 0, void 0, function () {
|
|
5552
|
-
var originalFilters;
|
|
5553
5554
|
var _this = this;
|
|
5554
5555
|
return __generator(this, function (_a) {
|
|
5555
|
-
originalFilters = [];
|
|
5556
5556
|
return [2 /*return*/, new Promise((/**
|
|
5557
5557
|
* @param {?} resolve
|
|
5558
5558
|
* @param {?} reject
|
|
@@ -5565,25 +5565,53 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
5565
5565
|
* @return {?}
|
|
5566
5566
|
*/
|
|
5567
5567
|
function (results) {
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
?
|
|
5568
|
+
debugger;
|
|
5569
|
+
if (results.result && results.result.content) {
|
|
5570
|
+
/** @type {?} */
|
|
5571
|
+
var showViewMore = Boolean(results.result.content && results.result.content.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
5572
|
+
/** @type {?} */
|
|
5573
|
+
var viewMoreUrl = showViewMore
|
|
5574
|
+
? {
|
|
5575
|
+
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
5576
|
+
queryParams: {
|
|
5577
|
+
tab: 'Learn',
|
|
5578
|
+
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
5579
|
+
f: {},
|
|
5580
|
+
},
|
|
5581
|
+
}
|
|
5582
|
+
: null;
|
|
5583
|
+
resolve({ results: results, viewMoreUrl: viewMoreUrl });
|
|
5584
|
+
}
|
|
5585
|
+
else if (results && results.data) {
|
|
5586
|
+
/** @type {?} */
|
|
5587
|
+
var showViewMore = Boolean(results.data && results.data.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
5588
|
+
/** @type {?} */
|
|
5589
|
+
var viewMoreUrl = showViewMore ? {
|
|
5573
5590
|
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
5574
5591
|
queryParams: {
|
|
5575
5592
|
tab: 'Learn',
|
|
5576
5593
|
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
5577
|
-
f:
|
|
5578
|
-
request.searchV6 &&
|
|
5579
|
-
request.searchV6.request &&
|
|
5580
|
-
request.searchV6.request.filters
|
|
5581
|
-
? JSON.stringify(_this.transformSearchV6FiltersV2(originalFilters))
|
|
5582
|
-
: {},
|
|
5594
|
+
f: {},
|
|
5583
5595
|
},
|
|
5584
5596
|
}
|
|
5585
|
-
|
|
5586
|
-
|
|
5597
|
+
: null;
|
|
5598
|
+
resolve({ results: results, viewMoreUrl: viewMoreUrl });
|
|
5599
|
+
}
|
|
5600
|
+
else if (results.result && results.result.data) {
|
|
5601
|
+
/** @type {?} */
|
|
5602
|
+
var showViewMore = Boolean(results.data && results.result.data && results.result.data.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
5603
|
+
/** @type {?} */
|
|
5604
|
+
var viewMoreUrl = showViewMore ? {
|
|
5605
|
+
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
5606
|
+
queryParams: {
|
|
5607
|
+
tab: 'Learn',
|
|
5608
|
+
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
5609
|
+
f: {},
|
|
5610
|
+
},
|
|
5611
|
+
}
|
|
5612
|
+
: null;
|
|
5613
|
+
resolve({ results: results, viewMoreUrl: viewMoreUrl });
|
|
5614
|
+
}
|
|
5587
5615
|
}), (/**
|
|
5588
5616
|
* @param {?} error
|
|
5589
5617
|
* @return {?}
|
|
@@ -5629,7 +5657,6 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
5629
5657
|
* @return {?}
|
|
5630
5658
|
*/
|
|
5631
5659
|
function (results) {
|
|
5632
|
-
console.log(results, 'results=========');
|
|
5633
5660
|
/** @type {?} */
|
|
5634
5661
|
var showViewMore = Boolean(results.result.data && results.result.data.orgList.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
5635
5662
|
/** @type {?} */
|
|
@@ -5739,7 +5766,6 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
5739
5766
|
return [4 /*yield*/, this.getRequestMethod(strip, strip.request.bookmarkRead, strip.request.apiUrl, calculateParentStatus)];
|
|
5740
5767
|
case 2:
|
|
5741
5768
|
response = _a.sent();
|
|
5742
|
-
console.log('calling after - response, ', response);
|
|
5743
5769
|
content = response.results.result.data.orgList;
|
|
5744
5770
|
if (response) {
|
|
5745
5771
|
this.processStrip(strip, this.transformAllContentsToWidgets(content, strip), 'done', calculateParentStatus, response);
|
|
@@ -5891,7 +5917,6 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
5891
5917
|
return [4 /*yield*/, this.getRequestMethod(strip, strip.request.playlistRead, strip.request.apiUrl, calculateParentStatus)];
|
|
5892
5918
|
case 2:
|
|
5893
5919
|
response = _a.sent();
|
|
5894
|
-
console.log('calling after - response, ', response);
|
|
5895
5920
|
if (response && response.results.result.content) {
|
|
5896
5921
|
content = response.results.result.content;
|
|
5897
5922
|
this.processStrip(strip, this.transformAllContentsToWidgets(content, strip), 'done', calculateParentStatus, response);
|
|
@@ -5910,6 +5935,68 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
5910
5935
|
});
|
|
5911
5936
|
});
|
|
5912
5937
|
};
|
|
5938
|
+
/**
|
|
5939
|
+
* @param {?} strip
|
|
5940
|
+
* @param {?=} calculateParentStatus
|
|
5941
|
+
* @return {?}
|
|
5942
|
+
*/
|
|
5943
|
+
ContentStripWithTabsLibComponent.prototype.fetchCiosContentData = /**
|
|
5944
|
+
* @param {?} strip
|
|
5945
|
+
* @param {?=} calculateParentStatus
|
|
5946
|
+
* @return {?}
|
|
5947
|
+
*/
|
|
5948
|
+
function (strip, calculateParentStatus) {
|
|
5949
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
5950
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5951
|
+
var originalFilters, response, extContentData, error_10;
|
|
5952
|
+
return __generator(this, function (_a) {
|
|
5953
|
+
switch (_a.label) {
|
|
5954
|
+
case 0:
|
|
5955
|
+
if (!(strip.request && strip.request.ciosContent && Object.keys(strip.request.ciosContent).length)) return [3 /*break*/, 4];
|
|
5956
|
+
originalFilters = [];
|
|
5957
|
+
if (strip.request &&
|
|
5958
|
+
strip.request.ciosContent &&
|
|
5959
|
+
strip.request.ciosContent.filterCriteriaMap) {
|
|
5960
|
+
originalFilters = strip.request.ciosContent.filterCriteriaMap;
|
|
5961
|
+
strip.request.ciosContent.filterCriteriaMap = this.postMethodFilters(strip.request.ciosContent.filterCriteriaMap);
|
|
5962
|
+
}
|
|
5963
|
+
_a.label = 1;
|
|
5964
|
+
case 1:
|
|
5965
|
+
_a.trys.push([1, 3, , 4]);
|
|
5966
|
+
return [4 /*yield*/, this.postRequestMethod(strip, strip.request.ciosContent, strip.request.apiUrl, calculateParentStatus)];
|
|
5967
|
+
case 2:
|
|
5968
|
+
response = _a.sent();
|
|
5969
|
+
// console.log('calling after - response, ', response)
|
|
5970
|
+
if (response && response.results) {
|
|
5971
|
+
// console.log('calling after-- ')
|
|
5972
|
+
if (response.results.data && response.results.data.length) {
|
|
5973
|
+
extContentData = response.results.data;
|
|
5974
|
+
if (extContentData.length) {
|
|
5975
|
+
this.processStrip(strip, this.transformContentsToWidgets(extContentData, strip), 'done', calculateParentStatus, response.viewMoreUrl);
|
|
5976
|
+
}
|
|
5977
|
+
else {
|
|
5978
|
+
this.emptyResponse.emit(true);
|
|
5979
|
+
}
|
|
5980
|
+
}
|
|
5981
|
+
else {
|
|
5982
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5983
|
+
this.emptyResponse.emit(true);
|
|
5984
|
+
}
|
|
5985
|
+
}
|
|
5986
|
+
else {
|
|
5987
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5988
|
+
this.emptyResponse.emit(true);
|
|
5989
|
+
}
|
|
5990
|
+
return [3 /*break*/, 4];
|
|
5991
|
+
case 3:
|
|
5992
|
+
error_10 = _a.sent();
|
|
5993
|
+
this.emptyResponse.emit(true);
|
|
5994
|
+
return [3 /*break*/, 4];
|
|
5995
|
+
case 4: return [2 /*return*/];
|
|
5996
|
+
}
|
|
5997
|
+
});
|
|
5998
|
+
});
|
|
5999
|
+
};
|
|
5913
6000
|
ContentStripWithTabsLibComponent.decorators = [
|
|
5914
6001
|
{ type: Component, args: [{
|
|
5915
6002
|
selector: 'sb-uic-content-strip-with-tabs',
|
|
@@ -7387,6 +7474,35 @@ var CommonMethodsService = /** @class */ (function () {
|
|
|
7387
7474
|
},
|
|
7388
7475
|
}); }));
|
|
7389
7476
|
};
|
|
7477
|
+
/**
|
|
7478
|
+
* @param {?} str
|
|
7479
|
+
* @param {?=} type
|
|
7480
|
+
* @return {?}
|
|
7481
|
+
*/
|
|
7482
|
+
CommonMethodsService.prototype.handleCapitalize = /**
|
|
7483
|
+
* @param {?} str
|
|
7484
|
+
* @param {?=} type
|
|
7485
|
+
* @return {?}
|
|
7486
|
+
*/
|
|
7487
|
+
function (str, type) {
|
|
7488
|
+
/** @type {?} */
|
|
7489
|
+
var returnValue = '';
|
|
7490
|
+
if (str) {
|
|
7491
|
+
if (type === 'name') {
|
|
7492
|
+
returnValue = str.split(' ').map((/**
|
|
7493
|
+
* @param {?} _str
|
|
7494
|
+
* @return {?}
|
|
7495
|
+
*/
|
|
7496
|
+
function (_str) {
|
|
7497
|
+
return _str.charAt(0).toUpperCase() + _str.slice(1);
|
|
7498
|
+
})).join(' ');
|
|
7499
|
+
}
|
|
7500
|
+
else {
|
|
7501
|
+
returnValue = str && (str.charAt(0).toUpperCase() + str.slice(1));
|
|
7502
|
+
}
|
|
7503
|
+
}
|
|
7504
|
+
return returnValue;
|
|
7505
|
+
};
|
|
7390
7506
|
CommonMethodsService.decorators = [
|
|
7391
7507
|
{ type: Injectable, args: [{
|
|
7392
7508
|
providedIn: 'root'
|
|
@@ -8540,16 +8656,26 @@ var CardsComponent = /** @class */ (function (_super) {
|
|
|
8540
8656
|
*/
|
|
8541
8657
|
function (content) {
|
|
8542
8658
|
return __awaiter(this, void 0, void 0, function () {
|
|
8543
|
-
var urlData;
|
|
8659
|
+
var userProfile, extUrl, urlData;
|
|
8544
8660
|
return __generator(this, function (_a) {
|
|
8545
8661
|
switch (_a.label) {
|
|
8546
|
-
case 0:
|
|
8547
|
-
|
|
8662
|
+
case 0:
|
|
8663
|
+
userProfile = this.configSvc.userProfile;
|
|
8664
|
+
if (!content.externalId) return [3 /*break*/, 1];
|
|
8665
|
+
extUrl = content.redirectUrl.replace('<username>', userProfile.userId);
|
|
8666
|
+
// const url = this.router.serializeUrl(
|
|
8667
|
+
// this.router.createUrlTree([extUrl])
|
|
8668
|
+
// );
|
|
8669
|
+
this.router.navigate(["app/toc/ext/" + content.contentId]);
|
|
8670
|
+
return [3 /*break*/, 3];
|
|
8671
|
+
case 1: return [4 /*yield*/, this.contSvc.getResourseLink(content)];
|
|
8672
|
+
case 2:
|
|
8548
8673
|
urlData = _a.sent();
|
|
8549
8674
|
this.router.navigate([urlData.url], {
|
|
8550
8675
|
queryParams: urlData.queryParams
|
|
8551
8676
|
});
|
|
8552
|
-
|
|
8677
|
+
_a.label = 3;
|
|
8678
|
+
case 3: return [2 /*return*/];
|
|
8553
8679
|
}
|
|
8554
8680
|
});
|
|
8555
8681
|
});
|
|
@@ -8594,14 +8720,14 @@ var CardsComponent = /** @class */ (function (_super) {
|
|
|
8594
8720
|
CardsComponent.decorators = [
|
|
8595
8721
|
{ type: Component, args: [{
|
|
8596
8722
|
selector: 'sb-uic-cards',
|
|
8597
|
-
template: "<div class=\"widget-card-content-new\">\n <ng-container *ngIf=\"widgetData && (((widgetData?.deletedMode || 'none') === 'hide' && !!!isLiveOrMarkForDeletion)\n ? false\n : !((widgetData?.intranetMode || 'none') === 'hide' && !!showIntranetContent))\"\n [ngSwitch]=\"( (widgetData && widgetData?.cardSubType) || 'cardPortraitLib')\">\n <ng-container *ngSwitchDefault [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'user-card'\" [ngTemplateOutlet]=\"cardUser\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib'\" [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib-skeleton'\" [ngTemplateOutlet]=\"cardLandscapeLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib'\" [ngTemplateOutlet]=\"cardLandscapeLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib-skeleton'\" [ngTemplateOutlet]=\"cardWideLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib'\" [ngTemplateOutlet]=\"cardWideLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2'\" [ngTemplateOutlet]=\"cardWideV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2-skeleton'\" [ngTemplateOutlet]=\"cardWideV2Skeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib'\" [ngTemplateOutlet]=\"cardMdo\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib-skeleton'\" [ngTemplateOutlet]=\"cardMdoSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib'\" [ngTemplateOutlet]=\"cardKarmaProgram\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-skeleton'\" [ngTemplateOutlet]=\"
|
|
8723
|
+
template: "<div class=\"widget-card-content-new\">\n <ng-container *ngIf=\"widgetData && (((widgetData?.deletedMode || 'none') === 'hide' && !!!isLiveOrMarkForDeletion)\n ? false\n : !((widgetData?.intranetMode || 'none') === 'hide' && !!showIntranetContent))\"\n [ngSwitch]=\"( (widgetData && widgetData?.cardSubType) || 'cardPortraitLib')\">\n <ng-container *ngSwitchDefault [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'user-card'\" [ngTemplateOutlet]=\"cardUser\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib'\" [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib-skeleton'\" [ngTemplateOutlet]=\"cardLandscapeLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib'\" [ngTemplateOutlet]=\"cardLandscapeLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib-skeleton'\" [ngTemplateOutlet]=\"cardWideLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib'\" [ngTemplateOutlet]=\"cardWideLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2'\" [ngTemplateOutlet]=\"cardWideV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2-skeleton'\" [ngTemplateOutlet]=\"cardWideV2Skeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib'\" [ngTemplateOutlet]=\"cardMdo\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib-skeleton'\" [ngTemplateOutlet]=\"cardMdoSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib'\" [ngTemplateOutlet]=\"cardKarmaProgram\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-skeleton'\" [ngTemplateOutlet]=\"cardKarmaProgramSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-v2'\" [ngTemplateOutlet]=\"cardKarmaProgramV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-v2-skeleton'\" [ngTemplateOutlet]=\"cardKarmaProgramV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-ext-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitExtLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-ext-lib'\" [ngTemplateOutlet]=\"cardPortraitExtLib\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #cardPortraitLibSkeleton>\n <sb-uic-card-portrait [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardPortraitLib>\n <sb-uic-card-portrait \n [cbPlanMapData]=\"cbPlanMapData\"\n (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardLandscapeLibSkeleton>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" \n [cbPlanMapData]=\"cbPlanMapData\" [isCardLoading]=\"true\"></sb-uic-card-landscape>\n</ng-template>\n<ng-template #cardLandscapeLib>\n <sb-uic-card-landscape\n (contentData)=\"getRedirectUrlData($event)\"\n (triggerTelemetry)=\"raiseCardClick($event)\"\n [widgetData]=\"widgetData\"\n [cbPlanMapData]=\"cbPlanMapData\"\n [isCardLoading]=\"false\">\n </sb-uic-card-landscape>\n</ng-template>\n\n<ng-template #cardWideLib>\n <sb-uic-card-wide (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n<ng-template #cardWideLibSkeleton>\n <sb-uic-card-wide [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n\n<ng-template #cardWideV2Skeleton>\n <sb-uic-card-wide-v2 [widgetData]=\"widgetData\" [isCardLoading]=\"true\" ></sb-uic-card-wide-v2>\n</ng-template>\n<ng-template #cardWideV2>\n <sb-uic-card-wide-v2\n (contentData)=\"getRedirectUrlData($event)\"\n (triggerTelemetry)=\"raiseCardClick($event)\"\n [cbPlanMapData]=\"cbPlanMapData\"\n [isCardLoading]=\"false\"\n [widgetData]=\"widgetData\">\n </sb-uic-card-wide-v2>\n</ng-template>\n\n<ng-template #cardUser>\n <sb-uic-card-user [widgetData]=\"widgetData\"></sb-uic-card-user>\n</ng-template>\n<ng-template #cardMdo>\n <sb-uic-card-mdo-channel [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel>\n</ng-template>\n<ng-template #cardMdoSkeleton>\n <sb-uic-card-mdo-channel [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel>\n</ng-template>\n<ng-template #cardKarmaProgramSkeleton>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" \n [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-karma-programs>\n</ng-template>\n<ng-template #cardKarmaProgram>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" \n [isCardLoading]=\"false\" [widgetData]=\"widgetData\"></sb-uic-card-karma-programs>\n</ng-template>\n<ng-template #cardKarmaProgramV2>\n <!-- <sb-uic-card-karma-programs-v2 [widgetData]=\"widgetData\"><sb-uic-card-karma-programs-v2> -->\n</ng-template>\n\n<!-- cios card -->\n<ng-template #cardPortraitExtLibSkeleton>\n <sb-uic-card-portrait-ext [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait-ext>\n</ng-template>\n<ng-template #cardPortraitExtLib>\n <sb-uic-card-portrait-ext \n [cbPlanMapData]=\"cbPlanMapData\"\n (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait-ext>\n</ng-template>",
|
|
8598
8724
|
styles: [""]
|
|
8599
8725
|
}] }
|
|
8600
8726
|
];
|
|
8601
8727
|
/** @nocollapse */
|
|
8602
8728
|
CardsComponent.ctorParameters = function () { return [
|
|
8603
8729
|
{ type: UtilityService },
|
|
8604
|
-
{ type: ConfigurationsService },
|
|
8730
|
+
{ type: ConfigurationsService$1 },
|
|
8605
8731
|
{ type: WidgetContentService },
|
|
8606
8732
|
{ type: Router }
|
|
8607
8733
|
]; };
|
|
@@ -10072,6 +10198,7 @@ var CardKarmaProgramsComponent = /** @class */ (function () {
|
|
|
10072
10198
|
this.router = router;
|
|
10073
10199
|
this.randomColorApply = false;
|
|
10074
10200
|
this.userData = new EventEmitter();
|
|
10201
|
+
this.isCardLoading = false;
|
|
10075
10202
|
this.widgetType = '';
|
|
10076
10203
|
this.widgetSubType = '';
|
|
10077
10204
|
this.randomColors = [
|
|
@@ -10163,7 +10290,7 @@ var CardKarmaProgramsComponent = /** @class */ (function () {
|
|
|
10163
10290
|
CardKarmaProgramsComponent.decorators = [
|
|
10164
10291
|
{ type: Component, args: [{
|
|
10165
10292
|
selector: 'sb-uic-card-karma-programs',
|
|
10166
|
-
template: "<mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\" [ngStyle]=\"{'background': widgetData?.content?.bgColor}\">\n
|
|
10293
|
+
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\" [ngStyle]=\"{'background': widgetData?.content?.bgColor}\">\n <div class=\"display-contents\">\n <ng-container *ngIf=\"widgetData?.content\">\n <a (click)=\"redirectTo(widgetData?.content);$event.stopPropagation();\">\n <ng-container>\n <mat-card-content class=\"min-top\">\n <div class=\"flex flex-col h-full\">\n <div class=\"image-container\">\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\n <img mat-card-image [src]=\"widgetData?.content?.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.title\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData?.content?.posterImage\">\n <ng-container *ngIf=\"widgetData?.content?.imgSource && widgetData?.content?.imgSource?.length; else defaultImg\">\n <img mat-card-image [src]=\"widgetData?.content?.imgSource[0] | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.title\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData?.content?.title\" />\n </ng-template>\n </ng-container>\n </div>\n <div class=\"title-container\">\n <div class=\"flex px-2\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"flex-1 text-start mat-subheading-2 title-text ws-mat-white-text\">\n {{ widgetData?.content?.title }}\n </div>\n </div>\n <div class=\"flex px-2\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"flex-1 text-start margin-remove margin-top-xxs mat-subheading-2 title-text ws-mat-white-text\">\n {{ widgetData?.content?.children?.length}} Programs\n </div>\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n </mat-card>\n</ng-container>\n<ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\" >\n <div class=\"display-contents\">\n <ng-container >\n <a >\n <ng-container>\n <mat-card-content class=\"min-top\">\n <div class=\"flex flex-col h-full\">\n <div class=\"image-container\">\n <ng-container >\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'100%'\" class=\"w-full h-full\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"title-container\">\n <div class=\"flex px-2\">\n <div class=\"flex-1 text-start mat-subheading-2 title-text ws-mat-white-text\">\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'100%'\" class=\"w-full h-full\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"flex px-2\">\n <div class=\"flex-1 text-start margin-remove margin-top-xxs mat-subheading-2 title-text ws-mat-white-text\">\n <sb-uic-skeleton-loader [width]=\"'120px'\" [height]=\"'100%'\" class=\"w-full h-full\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n </mat-card>\n</ng-container>",
|
|
10167
10294
|
styles: [".card-channels-container{position:relative;width:245px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;min-height:217px;height:217px;max-height:217px;margin:20px 8px;background:#1a4ca1;border-radius:12px}.card-channels-container .min-top{background:inherit;margin-bottom:0;height:inherit}.card-channels-container .image-container{background-color:#fff;width:inherit;height:139px;max-height:139px;overflow:hidden;display:flex;align-items:center;justify-content:center;border-top-left-radius:12px;border-top-right-radius:12px}.card-channels-container .card-img{max-height:100%;min-height:100%;display:block;-o-object-fit:fill;object-fit:fill}.card-channels-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-channels-container .title-container{background:inherit}.card-channels-container .description-text{position:relative;overflow:hidden;height:51px}.card-channels-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;min-height:24px}"]
|
|
10168
10295
|
}] }
|
|
10169
10296
|
];
|
|
@@ -10179,7 +10306,8 @@ var CardKarmaProgramsComponent = /** @class */ (function () {
|
|
|
10179
10306
|
CardKarmaProgramsComponent.propDecorators = {
|
|
10180
10307
|
widgetData: [{ type: Input }],
|
|
10181
10308
|
randomColorApply: [{ type: Input }],
|
|
10182
|
-
userData: [{ type: Output }]
|
|
10309
|
+
userData: [{ type: Output }],
|
|
10310
|
+
isCardLoading: [{ type: Input }]
|
|
10183
10311
|
};
|
|
10184
10312
|
return CardKarmaProgramsComponent;
|
|
10185
10313
|
}());
|
|
@@ -10191,6 +10319,8 @@ if (false) {
|
|
|
10191
10319
|
/** @type {?} */
|
|
10192
10320
|
CardKarmaProgramsComponent.prototype.userData;
|
|
10193
10321
|
/** @type {?} */
|
|
10322
|
+
CardKarmaProgramsComponent.prototype.isCardLoading;
|
|
10323
|
+
/** @type {?} */
|
|
10194
10324
|
CardKarmaProgramsComponent.prototype.defaultThumbnail;
|
|
10195
10325
|
/** @type {?} */
|
|
10196
10326
|
CardKarmaProgramsComponent.prototype.sourceLogos;
|
|
@@ -10405,6 +10535,171 @@ if (false) {
|
|
|
10405
10535
|
CardKarmaProgramsV2Component.prototype.router;
|
|
10406
10536
|
}
|
|
10407
10537
|
|
|
10538
|
+
/**
|
|
10539
|
+
* @fileoverview added by tsickle
|
|
10540
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10541
|
+
*/
|
|
10542
|
+
var CardPortraitExtComponent = /** @class */ (function () {
|
|
10543
|
+
function CardPortraitExtComponent(snackBar, translate, langtranslations, configSvc, contSvc) {
|
|
10544
|
+
var _this = this;
|
|
10545
|
+
this.snackBar = snackBar;
|
|
10546
|
+
this.translate = translate;
|
|
10547
|
+
this.langtranslations = langtranslations;
|
|
10548
|
+
this.configSvc = configSvc;
|
|
10549
|
+
this.contSvc = contSvc;
|
|
10550
|
+
this.isCardLoading = false;
|
|
10551
|
+
this.contentData = new EventEmitter();
|
|
10552
|
+
this.isCardFlipped = false;
|
|
10553
|
+
this.acbpConstants = NsCardContent$1.ACBPConst;
|
|
10554
|
+
this.showFlip = false;
|
|
10555
|
+
this.widgetType = 'df';
|
|
10556
|
+
this.widgetSubType = 'sdf';
|
|
10557
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
10558
|
+
* @return {?}
|
|
10559
|
+
*/
|
|
10560
|
+
function () {
|
|
10561
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
10562
|
+
_this.translate.setDefaultLang('en');
|
|
10563
|
+
/** @type {?} */
|
|
10564
|
+
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
10565
|
+
_this.translate.use(lang);
|
|
10566
|
+
}
|
|
10567
|
+
}));
|
|
10568
|
+
}
|
|
10569
|
+
/**
|
|
10570
|
+
* @return {?}
|
|
10571
|
+
*/
|
|
10572
|
+
CardPortraitExtComponent.prototype.ngOnInit = /**
|
|
10573
|
+
* @return {?}
|
|
10574
|
+
*/
|
|
10575
|
+
function () {
|
|
10576
|
+
/** @type {?} */
|
|
10577
|
+
var instanceConfig = this.configSvc.instanceConfig;
|
|
10578
|
+
if (instanceConfig) {
|
|
10579
|
+
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
10580
|
+
this.sourceLogos = instanceConfig.sources;
|
|
10581
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
10582
|
+
}
|
|
10583
|
+
else {
|
|
10584
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
10585
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
10586
|
+
}
|
|
10587
|
+
};
|
|
10588
|
+
/**
|
|
10589
|
+
* @return {?}
|
|
10590
|
+
*/
|
|
10591
|
+
CardPortraitExtComponent.prototype.showSnackbar = /**
|
|
10592
|
+
* @return {?}
|
|
10593
|
+
*/
|
|
10594
|
+
function () {
|
|
10595
|
+
if (this.showIntranetContent) {
|
|
10596
|
+
this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
|
|
10597
|
+
}
|
|
10598
|
+
else if (!this.isLiveOrMarkForDeletion) {
|
|
10599
|
+
this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
|
|
10600
|
+
}
|
|
10601
|
+
};
|
|
10602
|
+
/**
|
|
10603
|
+
* @param {?} contentData
|
|
10604
|
+
* @return {?}
|
|
10605
|
+
*/
|
|
10606
|
+
CardPortraitExtComponent.prototype.getRedirectUrlData = /**
|
|
10607
|
+
* @param {?} contentData
|
|
10608
|
+
* @return {?}
|
|
10609
|
+
*/
|
|
10610
|
+
function (contentData) {
|
|
10611
|
+
// for telemetry
|
|
10612
|
+
if (this.widgetData && this.widgetData.context && this.widgetData.context.pageSection) {
|
|
10613
|
+
contentData['typeOfTelemetry'] = this.widgetData.context.pageSection;
|
|
10614
|
+
}
|
|
10615
|
+
this.contSvc.changeTelemetryData(contentData);
|
|
10616
|
+
// for redirection
|
|
10617
|
+
this.contentData.emit(contentData);
|
|
10618
|
+
};
|
|
10619
|
+
CardPortraitExtComponent.decorators = [
|
|
10620
|
+
{ type: Component, args: [{
|
|
10621
|
+
selector: 'sb-uic-card-portrait-ext',
|
|
10622
|
+
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove cursor-pointer {{widgetData?.cardCustomeClass}}\" [ngClass]=\"{\n greyOut:\n widgetData?.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\" (click)=\"(showIntranetContent || !isLiveOrMarkForDeletion) && showSnackbar()\">\n <div class=\"display-contents\" [ngClass]=\"{\n disableClick:\n widgetData?.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\">\n <ng-container *ngIf=\"widgetData?.content\">\n <a (click)=\"getRedirectUrlData(widgetData?.content); $event.stopPropagation()\"\n role=\"link\" i18n-aria-label>\n <ng-container *ngIf=\"!isCardFlipped\">\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Content expired or deleted\" i18n-matTooltip\n matTooltip=\"Content may be expired or deleted\" *ngIf=\"!isLiveOrMarkForDeletion\"></div>\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Intranet content\" i18n-matTooltip\n matTooltip=\"Available only in Company's network\"\n *ngIf=\"widgetData?.intranetMode === 'greyOut' && showIntranetContent\"></div>\n <button *ngIf=\"showFlip\" class=\"detail-button ws-mat-primary-lite-background-op30\" mat-icon-button\n (click)=\"isCardFlipped = true\" aria-label=\"Details\" i18n-aria-label=\"Details | Click to see details\">\n <mat-icon>flip_to_back</mat-icon>\n </button>\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\n <img mat-card-image [src]=\"widgetData.content.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData.content.posterImage\">\n <ng-container *ngIf=\"widgetData.content.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData.content.appIcon \" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-template>\n </ng-container>\n <div class=\"source-div\" style=\"display: none;\">\n <img [src]=\"widgetData?.content.creatorLogo\" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData.content?.contentId)\" />\n </div>\n <ng-container *ngIf=\"widgetData?.content?.cbPlanEndDate\">\n <div class=\"cbp-mark\">\n <span>{{widgetData?.content?.cbPlanEndDate | date: 'd MMM, y'}}</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.contentId]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.contentId]\n }}\"></ng-container>\n </ng-container>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}\n </span>\n </div>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.programDuration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{widgetData?.content?.programDuration}} {{widgetData?.content?.programDuration === 1 ? 'day' : 'days'}}\n </span>\n </div>\n </div>\n <div class=\"padding-m\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end course_v2\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <sb-uic-display-content-type [useTranslation]=\"false\" i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.topic\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData?.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData?.content?.primaryCategory? widgetData?.content?.primaryCategory : 'Course'\">\n \n </sb-uic-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.contentId\"\n class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n {{ widgetData.content.name }}\n </div>\n <div class=\"flex w-full flex-wrap flex-middle\">\n <div class=\"course_logo_box\">\n <img [src]=\"widgetData.content.creatorLogo | pipePublicURL \" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.contentId)\" />\n </div>\n <!-- <span class=\"org-text\">{{'cardcontentv2.by' | translate}} -->\n <span class=\"org-text\">By {{ (widgetData?.content?.organisation && widgetData?.content?.organisation[0]) ? widgetData?.content?.organisation[0] : 'Karmayogi Bharat' }}</span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-m\">\n <div class=\"flex flex-middle\" *ngIf=\"widgetData?.content?.avgRating\">\n <mat-icon class=\"mr-1\">star</mat-icon>\n <span>{{widgetData.content.avgRating}}</span>\n </div>\n <!-- <span class=\"most-enrolled-text margin-left-m\">{{ 'cardcontentv2.mostEnrolled' | translate }}</span> -->\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostEnrolled')\">\n <span class=\"most-enrolled-text margin-left-xs\">\n <!-- {{ 'cardcontentv2.mostEnrolled' | translate }} -->\n </span>\n </ng-container>\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostTrending')\">\n <span class=\"most-enrolled-text margin-left-xs\">\n <!-- {{ 'cardcontentv2.mostTrending' | translate }} -->\n </span>\n </ng-container>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n <ng-container *ngIf=\"isCardFlipped\">\n <div class=\"flex items-center\">\n <!-- <h2 class=\"mat-subheading-2 flex-1 min-w-0 margin-remove-bottom\" i18n>{{'cardcontentv2.reason' | translate}}</h2> -->\n <button mat-icon-button (click)=\"isCardFlipped = false\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n <p class=\"text-justify mat-body-1\">\n {{ widgetData.content.reason }}\n </p>\n </ng-container>\n </a>\n </ng-container>\n </div>\n </mat-card>\n </ng-container>\n \n <ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove\" >\n <div class=\"display-contents\" >\n <ng-container *ngIf=\"!isCardFlipped\">\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container>\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'140px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"padding-m\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end\">\n <sb-uic-skeleton-loader [width]=\"'65px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded br-8'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [width]=\"'111px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded margin-top-s'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex w-full flex-wrap flex-middle margin-top-m\">\n <div class=\"\">\n <sb-uic-skeleton-loader [width]=\"'28px'\" [height]=\"'28px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <span class=\"org-text\"> <sb-uic-skeleton-loader [width]=\"'111px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader></span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-m\">\n <div class=\"flex flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'45px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded margin-top-m'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </div>\n </mat-card>\n </ng-container>\n \n <ng-template #cbpPlan let-data=\"data\">\n <div class=\"cbp-mark left-0 border-top-radius\">\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">{{'OverDue' }}</p>\n </div>\n </ng-template>",
|
|
10623
|
+
styles: [".course_widget{margin-top:10px}.course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.course_widget .main_icon{font-size:16px;width:16px;height:16px}.rating-session mat-icon{font-size:16px;height:16px;width:12px;padding-right:3px;color:#ef951e}.rating-session span{font-size:11px}.rating-session .most-enrolled-text{padding:0 8px;background:#ffea9e;border-radius:4px}.card-standard-container{position:relative;width:245px;min-height:346px;border-radius:8px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;height:346px;margin:20px 8px}.card-standard-container .progress-bar{width:101%;margin-left:-15px;display:flex;margin-top:0;background:bisque;position:absolute;bottom:0}.card-standard-container ::ng-deep .mat-progress-bar{height:8px!important}.card-standard-container .icon_text{font-size:12px;line-height:16px;text-transform:uppercase}.card-standard-container .course_logo_box{width:38px;height:38px;background:#fff;border-radius:8px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.card-standard-container .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-standard-container .course_logo_box p{display:inline-block;vertical-align:top}.card-standard-container .org-text{font-size:12px;font-weight:400;width:75%;padding-left:10px;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.card-standard-container .source-div{position:relative;top:100px;background:#fff;z-index:3;border:1px solid #dedfe0;min-width:72px;min-height:72px;max-width:72px;max-height:72px;display:flex;border-radius:8px}.card-standard-container .source-div .source-icon{border-radius:8px;display:block;margin:auto;max-width:58px;max-height:-webkit-fill-available}.card-standard-container mat-card-content{background:#fff}.card-standard-container .card-img{min-width:245px;max-height:140px;min-height:140px;display:block;-o-object-fit:fill;object-fit:fill;border-top-left-radius:8px;border-top-right-radius:8px;width:100%}.card-standard-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-standard-container .complexity{padding-top:70px;display:flex;font-size:14px;line-height:21px;padding-bottom:10px}.card-standard-container .complexity .mode-tag{border-radius:5px;order:2;margin-left:auto;color:#fff;font-size:10px}.card-standard-container .complexity .duration{display:flex;margin-left:auto;order:3;font-weight:700}.card-standard-container .complexity .time-text{margin:0 5px 0 6px;font-weight:700}.card-standard-container .basic{margin:auto 0}.card-standard-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:48px}.card-standard-container .description-text{position:relative;overflow:hidden;height:42px;white-space:normal;text-overflow:ellipsis}.duration-box{background:#000;position:absolute;border:none;display:flex;align-items:center;padding:4px;border-radius:4px}.duration-box.right-corner{right:4px;bottom:4px}.duration-box .mat-icon{vertical-align:middle;color:#fff!important;height:14px!important;width:14px!important;font-size:14px}.duration-box .duration{font:700 12px/16px Lato;display:inline-block;margin:0;padding:0}.width-238{width:238px!important}.cbp-mark{border-radius:12px 0;opacity:1;background-image:linear-gradient(90deg,rgba(0,0,0,.6) 0,rgba(0,0,0,0) 100%);position:absolute;top:0;padding:8px}.cbp-mark p{opacity:1;background-color:#fff;padding:4px;opacity:1;color:#1b2133;font-family:Lato-Regular;font-size:10px;font-weight:400;font-style:Regular;letter-spacing:.5px;text-align:left;line-height:12px;margin-bottom:0}.cbpwidth{width:340px}.cbp-plan{border-radius:4px;opacity:1;background-color:#1b4ca1;top:4px;left:4px;opacity:1;color:rgba(255,255,255,.95);font-family:Lato-Bold;font-size:12px;font-weight:700;font-style:normal;letter-spacing:.25px;text-align:center;line-height:16px;padding:4px}.cbp-info{opacity:1;color:#fff;font-family:Lato-Regular;font-size:10px;font-weight:400;font-style:normal;letter-spacing:.5px;text-align:left;line-height:12px;padding:2px}.cbp-danger{border-radius:2px;border:1px solid rgba(0,0,0,.08);background-color:#d13924!important;color:#fff!important;opacity:1}.cbp-success{border-radius:2px;border:1px solid #1d8922;background-color:#1d8922!important;color:#fff!important;opacity:1}.cbp-warning{border-radius:2px;border:1px solid #ef951e;background-color:#ef951e!important;color:#fff!important;opacity:1}"]
|
|
10624
|
+
}] }
|
|
10625
|
+
];
|
|
10626
|
+
/** @nocollapse */
|
|
10627
|
+
CardPortraitExtComponent.ctorParameters = function () { return [
|
|
10628
|
+
{ type: MatSnackBar },
|
|
10629
|
+
{ type: TranslateService },
|
|
10630
|
+
{ type: MultilingualTranslationsService },
|
|
10631
|
+
{ type: ConfigurationsService$1 },
|
|
10632
|
+
{ type: WidgetContentService }
|
|
10633
|
+
]; };
|
|
10634
|
+
CardPortraitExtComponent.propDecorators = {
|
|
10635
|
+
widgetData: [{ type: Input }],
|
|
10636
|
+
isLiveOrMarkForDeletion: [{ type: Input }],
|
|
10637
|
+
showIntranetContent: [{ type: Input }],
|
|
10638
|
+
isIntranetAllowedSettings: [{ type: Input }],
|
|
10639
|
+
isCardLoading: [{ type: Input }],
|
|
10640
|
+
contentData: [{ type: Output }],
|
|
10641
|
+
cbPlanMapData: [{ type: Input }]
|
|
10642
|
+
};
|
|
10643
|
+
return CardPortraitExtComponent;
|
|
10644
|
+
}());
|
|
10645
|
+
if (false) {
|
|
10646
|
+
/** @type {?} */
|
|
10647
|
+
CardPortraitExtComponent.prototype.widgetData;
|
|
10648
|
+
/** @type {?} */
|
|
10649
|
+
CardPortraitExtComponent.prototype.isLiveOrMarkForDeletion;
|
|
10650
|
+
/** @type {?} */
|
|
10651
|
+
CardPortraitExtComponent.prototype.showIntranetContent;
|
|
10652
|
+
/** @type {?} */
|
|
10653
|
+
CardPortraitExtComponent.prototype.isIntranetAllowedSettings;
|
|
10654
|
+
/** @type {?} */
|
|
10655
|
+
CardPortraitExtComponent.prototype.isCardLoading;
|
|
10656
|
+
/** @type {?} */
|
|
10657
|
+
CardPortraitExtComponent.prototype.contentData;
|
|
10658
|
+
/** @type {?} */
|
|
10659
|
+
CardPortraitExtComponent.prototype.cbPlanMapData;
|
|
10660
|
+
/** @type {?} */
|
|
10661
|
+
CardPortraitExtComponent.prototype.isCardFlipped;
|
|
10662
|
+
/** @type {?} */
|
|
10663
|
+
CardPortraitExtComponent.prototype.acbpConstants;
|
|
10664
|
+
/** @type {?} */
|
|
10665
|
+
CardPortraitExtComponent.prototype.defaultThumbnail;
|
|
10666
|
+
/** @type {?} */
|
|
10667
|
+
CardPortraitExtComponent.prototype.sourceLogos;
|
|
10668
|
+
/** @type {?} */
|
|
10669
|
+
CardPortraitExtComponent.prototype.defaultSLogo;
|
|
10670
|
+
/** @type {?} */
|
|
10671
|
+
CardPortraitExtComponent.prototype.showFlip;
|
|
10672
|
+
/** @type {?} */
|
|
10673
|
+
CardPortraitExtComponent.prototype.widgetType;
|
|
10674
|
+
/** @type {?} */
|
|
10675
|
+
CardPortraitExtComponent.prototype.widgetSubType;
|
|
10676
|
+
/**
|
|
10677
|
+
* @type {?}
|
|
10678
|
+
* @private
|
|
10679
|
+
*/
|
|
10680
|
+
CardPortraitExtComponent.prototype.snackBar;
|
|
10681
|
+
/**
|
|
10682
|
+
* @type {?}
|
|
10683
|
+
* @private
|
|
10684
|
+
*/
|
|
10685
|
+
CardPortraitExtComponent.prototype.translate;
|
|
10686
|
+
/**
|
|
10687
|
+
* @type {?}
|
|
10688
|
+
* @private
|
|
10689
|
+
*/
|
|
10690
|
+
CardPortraitExtComponent.prototype.langtranslations;
|
|
10691
|
+
/**
|
|
10692
|
+
* @type {?}
|
|
10693
|
+
* @private
|
|
10694
|
+
*/
|
|
10695
|
+
CardPortraitExtComponent.prototype.configSvc;
|
|
10696
|
+
/**
|
|
10697
|
+
* @type {?}
|
|
10698
|
+
* @private
|
|
10699
|
+
*/
|
|
10700
|
+
CardPortraitExtComponent.prototype.contSvc;
|
|
10701
|
+
}
|
|
10702
|
+
|
|
10408
10703
|
/**
|
|
10409
10704
|
* @fileoverview added by tsickle
|
|
10410
10705
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -10423,7 +10718,8 @@ var CardsModule = /** @class */ (function () {
|
|
|
10423
10718
|
CardMDOChannelComponent,
|
|
10424
10719
|
CardWideV2Component,
|
|
10425
10720
|
CardKarmaProgramsComponent,
|
|
10426
|
-
CardKarmaProgramsV2Component
|
|
10721
|
+
CardKarmaProgramsV2Component,
|
|
10722
|
+
CardPortraitExtComponent
|
|
10427
10723
|
],
|
|
10428
10724
|
imports: [
|
|
10429
10725
|
CommonModule,
|
|
@@ -10606,7 +10902,7 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
10606
10902
|
addfilter = {};
|
|
10607
10903
|
if (this.providerId) {
|
|
10608
10904
|
addfilter = {
|
|
10609
|
-
"
|
|
10905
|
+
"createdFor": [
|
|
10610
10906
|
this.providerId
|
|
10611
10907
|
],
|
|
10612
10908
|
};
|
|
@@ -10646,7 +10942,7 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
10646
10942
|
function (partialSum, data) { return partialSum + data.count; }), 0);
|
|
10647
10943
|
this.selectedValue = this.competencyArea[0].name.toLowerCase();
|
|
10648
10944
|
addFilter = {
|
|
10649
|
-
"
|
|
10945
|
+
"createdFor": [
|
|
10650
10946
|
this.providerId
|
|
10651
10947
|
]
|
|
10652
10948
|
};
|
|
@@ -10719,7 +11015,7 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
10719
11015
|
var addfilter = {};
|
|
10720
11016
|
if (this.providerId) {
|
|
10721
11017
|
addfilter = {
|
|
10722
|
-
"
|
|
11018
|
+
"createdFor": [
|
|
10723
11019
|
this.providerId
|
|
10724
11020
|
],
|
|
10725
11021
|
};
|
|
@@ -12081,5 +12377,5 @@ var UserContentRatingLibModule = /** @class */ (function () {
|
|
|
12081
12377
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
12082
12378
|
*/
|
|
12083
12379
|
|
|
12084
|
-
export { AnnouncementsModule, CalenderModule, CardsModule, CommonMethodsService, CommonStripModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentStripWithTabsLibModule, DataPointsModule, HttpLoaderFactory, MyHammerConfig, ROOT_WIDGET_CONFIG, SlidersLibModule, UserContentRatingLibModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentService, ContentStripWithTabsLibComponent as ɵa, WidgetUserService as ɵb, CardWideV2Component as ɵba, CardKarmaProgramsComponent as ɵbb, CardKarmaProgramsV2Component as ɵbc,
|
|
12380
|
+
export { AnnouncementsModule, CalenderModule, CardsModule, CommonMethodsService, CommonStripModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentStripWithTabsLibModule, DataPointsModule, HttpLoaderFactory, MyHammerConfig, ROOT_WIDGET_CONFIG, SlidersLibModule, UserContentRatingLibModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentService, ContentStripWithTabsLibComponent as ɵa, WidgetUserService as ɵb, CardWideV2Component as ɵba, CardKarmaProgramsComponent as ɵbb, CardKarmaProgramsV2Component as ɵbc, CardPortraitExtComponent as ɵbd, PipePublicURLModule as ɵbe, PipePublicURL as ɵbf, DisplayContentTypeLibModule as ɵbg, DisplayContentTypeLibComponent as ɵbh, DefaultThumbnailModule as ɵbi, DefaultThumbnailDirective as ɵbj, PipeDurationTransformModule as ɵbk, PipeDurationTransformPipe as ɵbl, CompetencyPassbookComponent as ɵbm, CompetencyPassbookService as ɵbn, PillsModule as ɵbo, PillsComponent as ɵbp, UserContentRatingLibComponent as ɵbq, ScrollableItemDirective as ɵbr, RatingService as ɵbs, UserContentRatingLibService as ɵbt, AvatarPhotoLibModule as ɵbu, AvatarPhotoLibComponent as ɵbv, MyHammerConfig$1 as ɵbw, SlidersNgContentLibModule as ɵbx, SlidersNgContentLibComponent as ɵby, ScrollableItemModule as ɵbz, MultilingualTranslationsService as ɵc, ConfigurationsService as ɵd, HorizontalScrollerV2Module as ɵe, HorizontalScrollerV2Component as ɵf, SlidersLibComponent as ɵg, NavigationModule as ɵh, NavigationDirective as ɵi, ImageResponsiveModule as ɵj, ImageResponsiveDirective as ɵk, DataPointsComponent as ɵl, InsiteDataService as ɵm, SkeletonLoaderLibModule as ɵn, SkeletonLoaderLibComponent as ɵo, CalenderComponent as ɵp, CalenderDayComponent as ɵq, CommonStripComponent as ɵr, AnnouncementsComponent as ɵs, CardResourceComponent as ɵt, CardsComponent as ɵu, CardPortraitComponent as ɵv, CardUserComponent as ɵw, CardLandscapeComponent as ɵx, CardWideComponent as ɵy, CardMDOChannelComponent as ɵz };
|
|
12085
12381
|
//# sourceMappingURL=sunbird-cb-consumption.js.map
|