@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
|
@@ -3706,6 +3706,7 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
3706
3706
|
this.fetchAllBookMarkData(strip, calculateParentStatus);
|
|
3707
3707
|
this.fetchAllPlaylistSearch(strip, calculateParentStatus);
|
|
3708
3708
|
this.fetchPlaylistReadData(strip, calculateParentStatus);
|
|
3709
|
+
this.fetchCiosContentData(strip, calculateParentStatus);
|
|
3709
3710
|
// this.enrollInterval = setInterval(() => {
|
|
3710
3711
|
// this.fetchAllCbpPlans(strip, calculateParentStatus)
|
|
3711
3712
|
// }, 1000)
|
|
@@ -4346,7 +4347,8 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
4346
4347
|
(strip.request.featureContent && Object.keys(strip.request.featureContent).length) ||
|
|
4347
4348
|
(strip.request.bookmarkRead && Object.keys(strip.request.bookmarkRead).length) ||
|
|
4348
4349
|
(strip.request.playlistSearch && Object.keys(strip.request.playlistSearch).length) ||
|
|
4349
|
-
(strip.request.playlistRead && Object.keys(strip.request.playlistRead).length)
|
|
4350
|
+
(strip.request.playlistRead && Object.keys(strip.request.playlistRead).length) ||
|
|
4351
|
+
(strip.request.ciosContent && Object.keys(strip.request.ciosContent).length))) {
|
|
4350
4352
|
return true;
|
|
4351
4353
|
}
|
|
4352
4354
|
return false;
|
|
@@ -4855,8 +4857,6 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
4855
4857
|
*/
|
|
4856
4858
|
postRequestMethod(strip, request, apiUrl, calculateParentStatus) {
|
|
4857
4859
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4858
|
-
/** @type {?} */
|
|
4859
|
-
const originalFilters = [];
|
|
4860
4860
|
return new Promise((/**
|
|
4861
4861
|
* @param {?} resolve
|
|
4862
4862
|
* @param {?} reject
|
|
@@ -4869,25 +4869,53 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
4869
4869
|
* @return {?}
|
|
4870
4870
|
*/
|
|
4871
4871
|
results => {
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
?
|
|
4872
|
+
debugger;
|
|
4873
|
+
if (results.result && results.result.content) {
|
|
4874
|
+
/** @type {?} */
|
|
4875
|
+
const showViewMore = Boolean(results.result.content && results.result.content.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
4876
|
+
/** @type {?} */
|
|
4877
|
+
const viewMoreUrl = showViewMore
|
|
4878
|
+
? {
|
|
4879
|
+
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
4880
|
+
queryParams: {
|
|
4881
|
+
tab: 'Learn',
|
|
4882
|
+
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
4883
|
+
f: {},
|
|
4884
|
+
},
|
|
4885
|
+
}
|
|
4886
|
+
: null;
|
|
4887
|
+
resolve({ results, viewMoreUrl });
|
|
4888
|
+
}
|
|
4889
|
+
else if (results && results.data) {
|
|
4890
|
+
/** @type {?} */
|
|
4891
|
+
const showViewMore = Boolean(results.data && results.data.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
4892
|
+
/** @type {?} */
|
|
4893
|
+
const viewMoreUrl = showViewMore ? {
|
|
4877
4894
|
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
4878
4895
|
queryParams: {
|
|
4879
4896
|
tab: 'Learn',
|
|
4880
4897
|
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
4881
|
-
f:
|
|
4882
|
-
request.searchV6 &&
|
|
4883
|
-
request.searchV6.request &&
|
|
4884
|
-
request.searchV6.request.filters
|
|
4885
|
-
? JSON.stringify(this.transformSearchV6FiltersV2(originalFilters))
|
|
4886
|
-
: {},
|
|
4898
|
+
f: {},
|
|
4887
4899
|
},
|
|
4888
4900
|
}
|
|
4889
|
-
|
|
4890
|
-
|
|
4901
|
+
: null;
|
|
4902
|
+
resolve({ results, viewMoreUrl });
|
|
4903
|
+
}
|
|
4904
|
+
else if (results.result && results.result.data) {
|
|
4905
|
+
/** @type {?} */
|
|
4906
|
+
const showViewMore = Boolean(results.data && results.result.data && results.result.data.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
4907
|
+
/** @type {?} */
|
|
4908
|
+
const viewMoreUrl = showViewMore ? {
|
|
4909
|
+
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
4910
|
+
queryParams: {
|
|
4911
|
+
tab: 'Learn',
|
|
4912
|
+
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
4913
|
+
f: {},
|
|
4914
|
+
},
|
|
4915
|
+
}
|
|
4916
|
+
: null;
|
|
4917
|
+
resolve({ results, viewMoreUrl });
|
|
4918
|
+
}
|
|
4891
4919
|
}), (/**
|
|
4892
4920
|
* @param {?} error
|
|
4893
4921
|
* @return {?}
|
|
@@ -4923,7 +4951,6 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
4923
4951
|
* @return {?}
|
|
4924
4952
|
*/
|
|
4925
4953
|
results => {
|
|
4926
|
-
console.log(results, 'results=========');
|
|
4927
4954
|
/** @type {?} */
|
|
4928
4955
|
const showViewMore = Boolean(results.result.data && results.result.data.orgList.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
4929
4956
|
/** @type {?} */
|
|
@@ -5005,7 +5032,6 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
5005
5032
|
try {
|
|
5006
5033
|
/** @type {?} */
|
|
5007
5034
|
const response = yield this.getRequestMethod(strip, strip.request.bookmarkRead, strip.request.apiUrl, calculateParentStatus);
|
|
5008
|
-
console.log('calling after - response, ', response);
|
|
5009
5035
|
/** @type {?} */
|
|
5010
5036
|
let content = response.results.result.data.orgList;
|
|
5011
5037
|
if (response) {
|
|
@@ -5128,7 +5154,6 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
5128
5154
|
try {
|
|
5129
5155
|
/** @type {?} */
|
|
5130
5156
|
const response = yield this.getRequestMethod(strip, strip.request.playlistRead, strip.request.apiUrl, calculateParentStatus);
|
|
5131
|
-
console.log('calling after - response, ', response);
|
|
5132
5157
|
if (response && response.results.result.content) {
|
|
5133
5158
|
/** @type {?} */
|
|
5134
5159
|
let content = response.results.result.content;
|
|
@@ -5147,6 +5172,56 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
5147
5172
|
}
|
|
5148
5173
|
});
|
|
5149
5174
|
}
|
|
5175
|
+
/**
|
|
5176
|
+
* @param {?} strip
|
|
5177
|
+
* @param {?=} calculateParentStatus
|
|
5178
|
+
* @return {?}
|
|
5179
|
+
*/
|
|
5180
|
+
fetchCiosContentData(strip, calculateParentStatus = true) {
|
|
5181
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5182
|
+
if (strip.request && strip.request.ciosContent && Object.keys(strip.request.ciosContent).length) {
|
|
5183
|
+
/** @type {?} */
|
|
5184
|
+
let originalFilters = [];
|
|
5185
|
+
if (strip.request &&
|
|
5186
|
+
strip.request.ciosContent &&
|
|
5187
|
+
strip.request.ciosContent.filterCriteriaMap) {
|
|
5188
|
+
originalFilters = strip.request.ciosContent.filterCriteriaMap;
|
|
5189
|
+
strip.request.ciosContent.filterCriteriaMap = this.postMethodFilters(strip.request.ciosContent.filterCriteriaMap);
|
|
5190
|
+
}
|
|
5191
|
+
try {
|
|
5192
|
+
/** @type {?} */
|
|
5193
|
+
const response = yield this.postRequestMethod(strip, strip.request.ciosContent, strip.request.apiUrl, calculateParentStatus);
|
|
5194
|
+
// console.log('calling after - response, ', response)
|
|
5195
|
+
if (response && response.results) {
|
|
5196
|
+
// console.log('calling after-- ')
|
|
5197
|
+
if (response.results.data && response.results.data.length) {
|
|
5198
|
+
/** @type {?} */
|
|
5199
|
+
let extContentData = response.results.data;
|
|
5200
|
+
if (extContentData.length) {
|
|
5201
|
+
this.processStrip(strip, this.transformContentsToWidgets(extContentData, strip), 'done', calculateParentStatus, response.viewMoreUrl);
|
|
5202
|
+
}
|
|
5203
|
+
else {
|
|
5204
|
+
this.emptyResponse.emit(true);
|
|
5205
|
+
}
|
|
5206
|
+
}
|
|
5207
|
+
else {
|
|
5208
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5209
|
+
this.emptyResponse.emit(true);
|
|
5210
|
+
}
|
|
5211
|
+
}
|
|
5212
|
+
else {
|
|
5213
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5214
|
+
this.emptyResponse.emit(true);
|
|
5215
|
+
}
|
|
5216
|
+
}
|
|
5217
|
+
catch (error) {
|
|
5218
|
+
this.emptyResponse.emit(true);
|
|
5219
|
+
// Handle errors
|
|
5220
|
+
// console.error('Error:', error);
|
|
5221
|
+
}
|
|
5222
|
+
}
|
|
5223
|
+
});
|
|
5224
|
+
}
|
|
5150
5225
|
}
|
|
5151
5226
|
ContentStripWithTabsLibComponent.decorators = [
|
|
5152
5227
|
{ type: Component, args: [{
|
|
@@ -6473,6 +6548,30 @@ class CommonMethodsService {
|
|
|
6473
6548
|
},
|
|
6474
6549
|
})));
|
|
6475
6550
|
}
|
|
6551
|
+
/**
|
|
6552
|
+
* @param {?} str
|
|
6553
|
+
* @param {?=} type
|
|
6554
|
+
* @return {?}
|
|
6555
|
+
*/
|
|
6556
|
+
handleCapitalize(str, type) {
|
|
6557
|
+
/** @type {?} */
|
|
6558
|
+
let returnValue = '';
|
|
6559
|
+
if (str) {
|
|
6560
|
+
if (type === 'name') {
|
|
6561
|
+
returnValue = str.split(' ').map((/**
|
|
6562
|
+
* @param {?} _str
|
|
6563
|
+
* @return {?}
|
|
6564
|
+
*/
|
|
6565
|
+
_str => {
|
|
6566
|
+
return _str.charAt(0).toUpperCase() + _str.slice(1);
|
|
6567
|
+
})).join(' ');
|
|
6568
|
+
}
|
|
6569
|
+
else {
|
|
6570
|
+
returnValue = str && (str.charAt(0).toUpperCase() + str.slice(1));
|
|
6571
|
+
}
|
|
6572
|
+
}
|
|
6573
|
+
return returnValue;
|
|
6574
|
+
}
|
|
6476
6575
|
}
|
|
6477
6576
|
CommonMethodsService.decorators = [
|
|
6478
6577
|
{ type: Injectable, args: [{
|
|
@@ -7480,10 +7579,28 @@ class CardsComponent extends WidgetBaseComponent {
|
|
|
7480
7579
|
getRedirectUrlData(content) {
|
|
7481
7580
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7482
7581
|
/** @type {?} */
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7582
|
+
const userProfile = this.configSvc.userProfile;
|
|
7583
|
+
if (content.externalId) {
|
|
7584
|
+
/** @type {?} */
|
|
7585
|
+
let extUrl = content.redirectUrl.replace('<username>', userProfile.userId)
|
|
7586
|
+
// const url = this.router.serializeUrl(
|
|
7587
|
+
// this.router.createUrlTree([extUrl])
|
|
7588
|
+
// );
|
|
7589
|
+
;
|
|
7590
|
+
// const url = this.router.serializeUrl(
|
|
7591
|
+
// this.router.createUrlTree([extUrl])
|
|
7592
|
+
// );
|
|
7593
|
+
this.router.navigate([`app/toc/ext/${content.contentId}`]);
|
|
7594
|
+
// window.open(extUrl, '_blank');
|
|
7595
|
+
// window.open(content.redirectUrl)
|
|
7596
|
+
}
|
|
7597
|
+
else {
|
|
7598
|
+
/** @type {?} */
|
|
7599
|
+
let urlData = yield this.contSvc.getResourseLink(content);
|
|
7600
|
+
this.router.navigate([urlData.url], {
|
|
7601
|
+
queryParams: urlData.queryParams
|
|
7602
|
+
});
|
|
7603
|
+
}
|
|
7487
7604
|
});
|
|
7488
7605
|
}
|
|
7489
7606
|
/**
|
|
@@ -7520,14 +7637,14 @@ class CardsComponent extends WidgetBaseComponent {
|
|
|
7520
7637
|
CardsComponent.decorators = [
|
|
7521
7638
|
{ type: Component, args: [{
|
|
7522
7639
|
selector: 'sb-uic-cards',
|
|
7523
|
-
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]=\"
|
|
7640
|
+
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>",
|
|
7524
7641
|
styles: [""]
|
|
7525
7642
|
}] }
|
|
7526
7643
|
];
|
|
7527
7644
|
/** @nocollapse */
|
|
7528
7645
|
CardsComponent.ctorParameters = () => [
|
|
7529
7646
|
{ type: UtilityService },
|
|
7530
|
-
{ type: ConfigurationsService },
|
|
7647
|
+
{ type: ConfigurationsService$1 },
|
|
7531
7648
|
{ type: WidgetContentService },
|
|
7532
7649
|
{ type: Router }
|
|
7533
7650
|
];
|
|
@@ -8903,6 +9020,7 @@ class CardKarmaProgramsComponent {
|
|
|
8903
9020
|
this.router = router;
|
|
8904
9021
|
this.randomColorApply = false;
|
|
8905
9022
|
this.userData = new EventEmitter();
|
|
9023
|
+
this.isCardLoading = false;
|
|
8906
9024
|
this.widgetType = '';
|
|
8907
9025
|
this.widgetSubType = '';
|
|
8908
9026
|
this.randomColors = [
|
|
@@ -8981,7 +9099,7 @@ class CardKarmaProgramsComponent {
|
|
|
8981
9099
|
CardKarmaProgramsComponent.decorators = [
|
|
8982
9100
|
{ type: Component, args: [{
|
|
8983
9101
|
selector: 'sb-uic-card-karma-programs',
|
|
8984
|
-
template: "<mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\" [ngStyle]=\"{'background': widgetData?.content?.bgColor}\">\n
|
|
9102
|
+
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>",
|
|
8985
9103
|
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}"]
|
|
8986
9104
|
}] }
|
|
8987
9105
|
];
|
|
@@ -8997,7 +9115,8 @@ CardKarmaProgramsComponent.ctorParameters = () => [
|
|
|
8997
9115
|
CardKarmaProgramsComponent.propDecorators = {
|
|
8998
9116
|
widgetData: [{ type: Input }],
|
|
8999
9117
|
randomColorApply: [{ type: Input }],
|
|
9000
|
-
userData: [{ type: Output }]
|
|
9118
|
+
userData: [{ type: Output }],
|
|
9119
|
+
isCardLoading: [{ type: Input }]
|
|
9001
9120
|
};
|
|
9002
9121
|
if (false) {
|
|
9003
9122
|
/** @type {?} */
|
|
@@ -9007,6 +9126,8 @@ if (false) {
|
|
|
9007
9126
|
/** @type {?} */
|
|
9008
9127
|
CardKarmaProgramsComponent.prototype.userData;
|
|
9009
9128
|
/** @type {?} */
|
|
9129
|
+
CardKarmaProgramsComponent.prototype.isCardLoading;
|
|
9130
|
+
/** @type {?} */
|
|
9010
9131
|
CardKarmaProgramsComponent.prototype.defaultThumbnail;
|
|
9011
9132
|
/** @type {?} */
|
|
9012
9133
|
CardKarmaProgramsComponent.prototype.sourceLogos;
|
|
@@ -9212,6 +9333,166 @@ if (false) {
|
|
|
9212
9333
|
CardKarmaProgramsV2Component.prototype.router;
|
|
9213
9334
|
}
|
|
9214
9335
|
|
|
9336
|
+
/**
|
|
9337
|
+
* @fileoverview added by tsickle
|
|
9338
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9339
|
+
*/
|
|
9340
|
+
class CardPortraitExtComponent {
|
|
9341
|
+
/**
|
|
9342
|
+
* @param {?} snackBar
|
|
9343
|
+
* @param {?} translate
|
|
9344
|
+
* @param {?} langtranslations
|
|
9345
|
+
* @param {?} configSvc
|
|
9346
|
+
* @param {?} contSvc
|
|
9347
|
+
*/
|
|
9348
|
+
constructor(snackBar, translate, langtranslations, configSvc, contSvc) {
|
|
9349
|
+
this.snackBar = snackBar;
|
|
9350
|
+
this.translate = translate;
|
|
9351
|
+
this.langtranslations = langtranslations;
|
|
9352
|
+
this.configSvc = configSvc;
|
|
9353
|
+
this.contSvc = contSvc;
|
|
9354
|
+
this.isCardLoading = false;
|
|
9355
|
+
this.contentData = new EventEmitter();
|
|
9356
|
+
this.isCardFlipped = false;
|
|
9357
|
+
this.acbpConstants = NsCardContent$1.ACBPConst;
|
|
9358
|
+
this.showFlip = false;
|
|
9359
|
+
this.widgetType = 'df';
|
|
9360
|
+
this.widgetSubType = 'sdf';
|
|
9361
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
9362
|
+
* @return {?}
|
|
9363
|
+
*/
|
|
9364
|
+
() => {
|
|
9365
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
9366
|
+
this.translate.setDefaultLang('en');
|
|
9367
|
+
/** @type {?} */
|
|
9368
|
+
const lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
9369
|
+
this.translate.use(lang);
|
|
9370
|
+
}
|
|
9371
|
+
}));
|
|
9372
|
+
}
|
|
9373
|
+
/**
|
|
9374
|
+
* @return {?}
|
|
9375
|
+
*/
|
|
9376
|
+
ngOnInit() {
|
|
9377
|
+
/** @type {?} */
|
|
9378
|
+
const instanceConfig = this.configSvc.instanceConfig;
|
|
9379
|
+
if (instanceConfig) {
|
|
9380
|
+
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
9381
|
+
this.sourceLogos = instanceConfig.sources;
|
|
9382
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
9383
|
+
}
|
|
9384
|
+
else {
|
|
9385
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
9386
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
9387
|
+
}
|
|
9388
|
+
}
|
|
9389
|
+
/**
|
|
9390
|
+
* @return {?}
|
|
9391
|
+
*/
|
|
9392
|
+
showSnackbar() {
|
|
9393
|
+
if (this.showIntranetContent) {
|
|
9394
|
+
this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
|
|
9395
|
+
}
|
|
9396
|
+
else if (!this.isLiveOrMarkForDeletion) {
|
|
9397
|
+
this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
|
|
9398
|
+
}
|
|
9399
|
+
}
|
|
9400
|
+
/**
|
|
9401
|
+
* @param {?} contentData
|
|
9402
|
+
* @return {?}
|
|
9403
|
+
*/
|
|
9404
|
+
getRedirectUrlData(contentData) {
|
|
9405
|
+
// for telemetry
|
|
9406
|
+
if (this.widgetData && this.widgetData.context && this.widgetData.context.pageSection) {
|
|
9407
|
+
contentData['typeOfTelemetry'] = this.widgetData.context.pageSection;
|
|
9408
|
+
}
|
|
9409
|
+
this.contSvc.changeTelemetryData(contentData);
|
|
9410
|
+
// for redirection
|
|
9411
|
+
this.contentData.emit(contentData);
|
|
9412
|
+
}
|
|
9413
|
+
}
|
|
9414
|
+
CardPortraitExtComponent.decorators = [
|
|
9415
|
+
{ type: Component, args: [{
|
|
9416
|
+
selector: 'sb-uic-card-portrait-ext',
|
|
9417
|
+
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>",
|
|
9418
|
+
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}"]
|
|
9419
|
+
}] }
|
|
9420
|
+
];
|
|
9421
|
+
/** @nocollapse */
|
|
9422
|
+
CardPortraitExtComponent.ctorParameters = () => [
|
|
9423
|
+
{ type: MatSnackBar },
|
|
9424
|
+
{ type: TranslateService },
|
|
9425
|
+
{ type: MultilingualTranslationsService },
|
|
9426
|
+
{ type: ConfigurationsService$1 },
|
|
9427
|
+
{ type: WidgetContentService }
|
|
9428
|
+
];
|
|
9429
|
+
CardPortraitExtComponent.propDecorators = {
|
|
9430
|
+
widgetData: [{ type: Input }],
|
|
9431
|
+
isLiveOrMarkForDeletion: [{ type: Input }],
|
|
9432
|
+
showIntranetContent: [{ type: Input }],
|
|
9433
|
+
isIntranetAllowedSettings: [{ type: Input }],
|
|
9434
|
+
isCardLoading: [{ type: Input }],
|
|
9435
|
+
contentData: [{ type: Output }],
|
|
9436
|
+
cbPlanMapData: [{ type: Input }]
|
|
9437
|
+
};
|
|
9438
|
+
if (false) {
|
|
9439
|
+
/** @type {?} */
|
|
9440
|
+
CardPortraitExtComponent.prototype.widgetData;
|
|
9441
|
+
/** @type {?} */
|
|
9442
|
+
CardPortraitExtComponent.prototype.isLiveOrMarkForDeletion;
|
|
9443
|
+
/** @type {?} */
|
|
9444
|
+
CardPortraitExtComponent.prototype.showIntranetContent;
|
|
9445
|
+
/** @type {?} */
|
|
9446
|
+
CardPortraitExtComponent.prototype.isIntranetAllowedSettings;
|
|
9447
|
+
/** @type {?} */
|
|
9448
|
+
CardPortraitExtComponent.prototype.isCardLoading;
|
|
9449
|
+
/** @type {?} */
|
|
9450
|
+
CardPortraitExtComponent.prototype.contentData;
|
|
9451
|
+
/** @type {?} */
|
|
9452
|
+
CardPortraitExtComponent.prototype.cbPlanMapData;
|
|
9453
|
+
/** @type {?} */
|
|
9454
|
+
CardPortraitExtComponent.prototype.isCardFlipped;
|
|
9455
|
+
/** @type {?} */
|
|
9456
|
+
CardPortraitExtComponent.prototype.acbpConstants;
|
|
9457
|
+
/** @type {?} */
|
|
9458
|
+
CardPortraitExtComponent.prototype.defaultThumbnail;
|
|
9459
|
+
/** @type {?} */
|
|
9460
|
+
CardPortraitExtComponent.prototype.sourceLogos;
|
|
9461
|
+
/** @type {?} */
|
|
9462
|
+
CardPortraitExtComponent.prototype.defaultSLogo;
|
|
9463
|
+
/** @type {?} */
|
|
9464
|
+
CardPortraitExtComponent.prototype.showFlip;
|
|
9465
|
+
/** @type {?} */
|
|
9466
|
+
CardPortraitExtComponent.prototype.widgetType;
|
|
9467
|
+
/** @type {?} */
|
|
9468
|
+
CardPortraitExtComponent.prototype.widgetSubType;
|
|
9469
|
+
/**
|
|
9470
|
+
* @type {?}
|
|
9471
|
+
* @private
|
|
9472
|
+
*/
|
|
9473
|
+
CardPortraitExtComponent.prototype.snackBar;
|
|
9474
|
+
/**
|
|
9475
|
+
* @type {?}
|
|
9476
|
+
* @private
|
|
9477
|
+
*/
|
|
9478
|
+
CardPortraitExtComponent.prototype.translate;
|
|
9479
|
+
/**
|
|
9480
|
+
* @type {?}
|
|
9481
|
+
* @private
|
|
9482
|
+
*/
|
|
9483
|
+
CardPortraitExtComponent.prototype.langtranslations;
|
|
9484
|
+
/**
|
|
9485
|
+
* @type {?}
|
|
9486
|
+
* @private
|
|
9487
|
+
*/
|
|
9488
|
+
CardPortraitExtComponent.prototype.configSvc;
|
|
9489
|
+
/**
|
|
9490
|
+
* @type {?}
|
|
9491
|
+
* @private
|
|
9492
|
+
*/
|
|
9493
|
+
CardPortraitExtComponent.prototype.contSvc;
|
|
9494
|
+
}
|
|
9495
|
+
|
|
9215
9496
|
/**
|
|
9216
9497
|
* @fileoverview added by tsickle
|
|
9217
9498
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -9229,7 +9510,8 @@ CardsModule.decorators = [
|
|
|
9229
9510
|
CardMDOChannelComponent,
|
|
9230
9511
|
CardWideV2Component,
|
|
9231
9512
|
CardKarmaProgramsComponent,
|
|
9232
|
-
CardKarmaProgramsV2Component
|
|
9513
|
+
CardKarmaProgramsV2Component,
|
|
9514
|
+
CardPortraitExtComponent
|
|
9233
9515
|
],
|
|
9234
9516
|
imports: [
|
|
9235
9517
|
CommonModule,
|
|
@@ -9386,7 +9668,7 @@ class CompetencyPassbookComponent {
|
|
|
9386
9668
|
let addfilter = {};
|
|
9387
9669
|
if (this.providerId) {
|
|
9388
9670
|
addfilter = {
|
|
9389
|
-
"
|
|
9671
|
+
"createdFor": [
|
|
9390
9672
|
this.providerId
|
|
9391
9673
|
],
|
|
9392
9674
|
};
|
|
@@ -9425,7 +9707,7 @@ class CompetencyPassbookComponent {
|
|
|
9425
9707
|
this.selectedValue = this.competencyArea[0].name.toLowerCase();
|
|
9426
9708
|
/** @type {?} */
|
|
9427
9709
|
let addFilter = {
|
|
9428
|
-
"
|
|
9710
|
+
"createdFor": [
|
|
9429
9711
|
this.providerId
|
|
9430
9712
|
]
|
|
9431
9713
|
};
|
|
@@ -9482,7 +9764,7 @@ class CompetencyPassbookComponent {
|
|
|
9482
9764
|
let addfilter = {};
|
|
9483
9765
|
if (this.providerId) {
|
|
9484
9766
|
addfilter = {
|
|
9485
|
-
"
|
|
9767
|
+
"createdFor": [
|
|
9486
9768
|
this.providerId
|
|
9487
9769
|
],
|
|
9488
9770
|
};
|
|
@@ -10665,5 +10947,5 @@ UserContentRatingLibModule.decorators = [
|
|
|
10665
10947
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10666
10948
|
*/
|
|
10667
10949
|
|
|
10668
|
-
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,
|
|
10950
|
+
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 };
|
|
10669
10951
|
//# sourceMappingURL=sunbird-cb-consumption.js.map
|