@sunbird-cb/consumption 0.0.21 → 0.0.23
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 +256 -64
- 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/announcements/announcements.component.js +2 -2
- package/esm2015/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +128 -0
- package/esm2015/lib/_common/cards/card-landscape/card-landscape.component.js +5 -1
- package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +14 -35
- package/esm2015/lib/_common/cards/card-user/card-user.component.js +1 -1
- package/esm2015/lib/_common/cards/cards.module.js +6 -3
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +19 -1
- package/esm2015/lib/_common/data-points/data-points.component.js +22 -5
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +24 -1
- package/esm2015/lib/_services/widget-content.service.js +18 -2
- package/esm2015/sunbird-cb-consumption.js +23 -22
- package/esm5/lib/_common/announcements/announcements.component.js +2 -2
- package/esm5/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +131 -0
- package/esm5/lib/_common/cards/card-landscape/card-landscape.component.js +5 -1
- package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +13 -37
- package/esm5/lib/_common/cards/card-user/card-user.component.js +1 -1
- package/esm5/lib/_common/cards/cards.module.js +6 -3
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +24 -1
- package/esm5/lib/_common/data-points/data-points.component.js +22 -5
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +24 -1
- package/esm5/lib/_services/widget-content.service.js +22 -2
- package/esm5/sunbird-cb-consumption.js +23 -22
- package/fesm2015/sunbird-cb-consumption.js +225 -42
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +235 -44
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/cards/card-karma-programs/card-karma-programs.component.d.ts +19 -0
- package/lib/_common/cards/card-portrait/card-portrait.component.d.ts +4 -4
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +2 -0
- package/lib/_common/data-points/data-points.component.d.ts +1 -0
- package/lib/_services/widget-content.service.d.ts +3 -0
- package/package.json +1 -1
- package/sunbird-cb-consumption.d.ts +22 -21
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -393,6 +393,17 @@
|
|
|
393
393
|
if (elem.scrollLeft !== 0 && (elem.scrollWidth !== elem.clientWidth + elem.scrollLeft)) {
|
|
394
394
|
this.activeNav -= 1;
|
|
395
395
|
}
|
|
396
|
+
else {
|
|
397
|
+
if (this.sliderConfig.arrowsAlwaysOn) {
|
|
398
|
+
if (this.horizontalScrollElem.nativeElement.scrollLeft === 0) {
|
|
399
|
+
this.horizontalScrollElem.nativeElement.scrollTo({
|
|
400
|
+
left: elem.scrollWidth,
|
|
401
|
+
behavior: 'smooth',
|
|
402
|
+
});
|
|
403
|
+
this.activeNav = this.bottomDotsArray.length - 1;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
396
407
|
}
|
|
397
408
|
};
|
|
398
409
|
/**
|
|
@@ -417,6 +428,17 @@
|
|
|
417
428
|
if (elem.scrollLeft !== 0 && (elem.scrollWidth !== elem.clientWidth + elem.scrollLeft)) {
|
|
418
429
|
this.activeNav += 1;
|
|
419
430
|
}
|
|
431
|
+
else {
|
|
432
|
+
if (this.sliderConfig.arrowsAlwaysOn) {
|
|
433
|
+
if (this.horizontalScrollElem.nativeElement.scrollLeft !== 0 && elem.clientWidth + elem.scrollLeft >= elem.scrollWidth) {
|
|
434
|
+
this.horizontalScrollElem.nativeElement.scrollTo({
|
|
435
|
+
left: 0,
|
|
436
|
+
behavior: 'smooth',
|
|
437
|
+
});
|
|
438
|
+
this.activeNav = 0;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
420
442
|
}
|
|
421
443
|
};
|
|
422
444
|
/**
|
|
@@ -430,6 +452,7 @@
|
|
|
430
452
|
* @return {?}
|
|
431
453
|
*/
|
|
432
454
|
function (elem) {
|
|
455
|
+
debugger;
|
|
433
456
|
this.enablePrev = true;
|
|
434
457
|
this.enableNext = true;
|
|
435
458
|
if (elem.scrollLeft === 0) {
|
|
@@ -1721,9 +1744,22 @@
|
|
|
1721
1744
|
this.configSvc = configSvc;
|
|
1722
1745
|
this.tocConfigData = new rxjs.BehaviorSubject({});
|
|
1723
1746
|
this.tocConfigData$ = this.tocConfigData.asObservable();
|
|
1747
|
+
this.telemetryData = new rxjs.Subject();
|
|
1748
|
+
this.telemetryData$ = this.telemetryData.asObservable();
|
|
1724
1749
|
this.programChildCourseResumeData = new rxjs.BehaviorSubject({});
|
|
1725
1750
|
this.programChildCourseResumeData$ = this.programChildCourseResumeData.asObservable();
|
|
1726
1751
|
}
|
|
1752
|
+
/**
|
|
1753
|
+
* @param {?} message
|
|
1754
|
+
* @return {?}
|
|
1755
|
+
*/
|
|
1756
|
+
WidgetContentService.prototype.changeTelemetryData = /**
|
|
1757
|
+
* @param {?} message
|
|
1758
|
+
* @return {?}
|
|
1759
|
+
*/
|
|
1760
|
+
function (message) {
|
|
1761
|
+
this.telemetryData.next(message);
|
|
1762
|
+
};
|
|
1727
1763
|
/**
|
|
1728
1764
|
* @param {?} primaryCategory
|
|
1729
1765
|
* @return {?}
|
|
@@ -2682,6 +2718,13 @@
|
|
|
2682
2718
|
WidgetContentService.prototype.tocConfigData;
|
|
2683
2719
|
/** @type {?} */
|
|
2684
2720
|
WidgetContentService.prototype.tocConfigData$;
|
|
2721
|
+
/**
|
|
2722
|
+
* @type {?}
|
|
2723
|
+
* @private
|
|
2724
|
+
*/
|
|
2725
|
+
WidgetContentService.prototype.telemetryData;
|
|
2726
|
+
/** @type {?} */
|
|
2727
|
+
WidgetContentService.prototype.telemetryData$;
|
|
2685
2728
|
/** @type {?} */
|
|
2686
2729
|
WidgetContentService.prototype.currentMetaData;
|
|
2687
2730
|
/** @type {?} */
|
|
@@ -3845,6 +3888,7 @@
|
|
|
3845
3888
|
_this.langtranslations = langtranslations;
|
|
3846
3889
|
_this.emptyResponse = new core.EventEmitter();
|
|
3847
3890
|
_this.viewAllResponse = new core.EventEmitter();
|
|
3891
|
+
_this.telemtryResponse = new core.EventEmitter();
|
|
3848
3892
|
_this.providerId = '';
|
|
3849
3893
|
_this.emitViewAll = false;
|
|
3850
3894
|
_this.id = "ws-strip-miltiple_" + Math.random();
|
|
@@ -3881,8 +3925,16 @@
|
|
|
3881
3925
|
* @return {?}
|
|
3882
3926
|
*/
|
|
3883
3927
|
function () {
|
|
3928
|
+
var _this = this;
|
|
3884
3929
|
// const url = window.location.href
|
|
3885
3930
|
this.initData();
|
|
3931
|
+
this.contentSvc.telemetryData$.subscribe((/**
|
|
3932
|
+
* @param {?} data
|
|
3933
|
+
* @return {?}
|
|
3934
|
+
*/
|
|
3935
|
+
function (data) {
|
|
3936
|
+
_this.telemtryResponse.emit(data);
|
|
3937
|
+
}));
|
|
3886
3938
|
};
|
|
3887
3939
|
/**
|
|
3888
3940
|
* @return {?}
|
|
@@ -5734,6 +5786,17 @@
|
|
|
5734
5786
|
this.router.navigate([path], { queryParams: queryParamsData });
|
|
5735
5787
|
}
|
|
5736
5788
|
};
|
|
5789
|
+
/**
|
|
5790
|
+
* @param {?} event
|
|
5791
|
+
* @return {?}
|
|
5792
|
+
*/
|
|
5793
|
+
ContentStripWithTabsLibComponent.prototype.raiseTelemetryInteratEvent = /**
|
|
5794
|
+
* @param {?} event
|
|
5795
|
+
* @return {?}
|
|
5796
|
+
*/
|
|
5797
|
+
function (event) {
|
|
5798
|
+
this.telemtryResponse.emit(event);
|
|
5799
|
+
};
|
|
5737
5800
|
ContentStripWithTabsLibComponent.decorators = [
|
|
5738
5801
|
{ type: core.Component, args: [{
|
|
5739
5802
|
selector: 'sb-uic-content-strip-with-tabs',
|
|
@@ -5758,6 +5821,7 @@
|
|
|
5758
5821
|
widgetData: [{ type: core.Input }],
|
|
5759
5822
|
emptyResponse: [{ type: core.Output }],
|
|
5760
5823
|
viewAllResponse: [{ type: core.Output }],
|
|
5824
|
+
telemtryResponse: [{ type: core.Output }],
|
|
5761
5825
|
providerId: [{ type: core.Input }],
|
|
5762
5826
|
emitViewAll: [{ type: core.Input }],
|
|
5763
5827
|
id: [{ type: core.HostBinding, args: ['id',] }]
|
|
@@ -5772,6 +5836,8 @@
|
|
|
5772
5836
|
/** @type {?} */
|
|
5773
5837
|
ContentStripWithTabsLibComponent.prototype.viewAllResponse;
|
|
5774
5838
|
/** @type {?} */
|
|
5839
|
+
ContentStripWithTabsLibComponent.prototype.telemtryResponse;
|
|
5840
|
+
/** @type {?} */
|
|
5775
5841
|
ContentStripWithTabsLibComponent.prototype.providerId;
|
|
5776
5842
|
/** @type {?} */
|
|
5777
5843
|
ContentStripWithTabsLibComponent.prototype.emitViewAll;
|
|
@@ -6470,6 +6536,7 @@
|
|
|
6470
6536
|
this.layoutType = '';
|
|
6471
6537
|
this.fetchDataFromApi = false;
|
|
6472
6538
|
this.providerId = '';
|
|
6539
|
+
this.pageLayout = '';
|
|
6473
6540
|
this.customArray = [];
|
|
6474
6541
|
this.isDataLoading = false;
|
|
6475
6542
|
}
|
|
@@ -6513,7 +6580,8 @@
|
|
|
6513
6580
|
function () {
|
|
6514
6581
|
var _this = this;
|
|
6515
6582
|
/** @type {?} */
|
|
6516
|
-
var request = {
|
|
6583
|
+
var request = {};
|
|
6584
|
+
request = {
|
|
6517
6585
|
"request": {
|
|
6518
6586
|
"filters": {
|
|
6519
6587
|
"organisations": [
|
|
@@ -6522,6 +6590,18 @@
|
|
|
6522
6590
|
}
|
|
6523
6591
|
}
|
|
6524
6592
|
};
|
|
6593
|
+
if (this.pageLayout && this.pageLayout === 'mdo') {
|
|
6594
|
+
request = {
|
|
6595
|
+
"request": {
|
|
6596
|
+
"filters": {
|
|
6597
|
+
"requestType": "MDO_INSIGHT",
|
|
6598
|
+
"organisations": [
|
|
6599
|
+
this.providerId
|
|
6600
|
+
]
|
|
6601
|
+
}
|
|
6602
|
+
}
|
|
6603
|
+
};
|
|
6604
|
+
}
|
|
6525
6605
|
this.insightSvc.fetchSearchData(request).subscribe((/**
|
|
6526
6606
|
* @param {?} res
|
|
6527
6607
|
* @return {?}
|
|
@@ -6544,8 +6624,8 @@
|
|
|
6544
6624
|
DataPointsComponent.decorators = [
|
|
6545
6625
|
{ type: core.Component, args: [{
|
|
6546
6626
|
selector: 'sb-uic-data-points',
|
|
6547
|
-
template: "<div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && !isDataLoading\">\n <div *ngFor=\"let obj of objectData; let last = last\" class=\"\">\n <div class=\"element-div\" [ngClass]=\"{'linebreak': obj?.linebreak && !last}\">\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <img class=\"objIcon\" [src]=\"obj.icon\" [style.color]=\"obj?.iconColor\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"objDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow'\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj?.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"top-container\">\n <div class=\"flex-container\" *ngFor=\"let chunk of customArray\">\n <div *ngFor=\"let item of chunk\">\n <div class=\"flex-item\">\n <div class=\"flex flex-row gap-5 infra-element-div\">\n <div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"!(item && item.value)\">0</div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"(item && item.value)\">\n {{item?.value | number: item.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"item?.labelColor\" class=\"custom-opacity infra-objDescription padding-top-s\">{{item?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleFlexeRow'\">\n <div class=\"flex\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"singleFlexeRowIcon\" [src]=\"obj.icon\">\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n {{obj?.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<!-- skeleton loaders -->\n\n<ng-container>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && isDataLoading\">\n <div *ngFor=\"let obj of [0,1,2,3]\" class=\"\">\n <div class=\"element-div linebreak\" >\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'32px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'150px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n",
|
|
6548
|
-
styles: [".white{color:#fff}.custom-opacity{opacity:.7}.black{color:#000}.objIcon{width:32px;height:32px}.mobjIcon{width:24px;height:24px}.objHeader{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left}.mobjHeader{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left}.mobjDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.metrics-web{height:inherit;overflow-y:auto}.element-div{padding:25px 0;margin:0 25px}.linebreak{border-bottom:1px solid rgba(0,0,0,.16)}.singleFlexeRow-div{padding:16px;border-radius:15px}.singleFlexeRowHeader{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.singleFlexeRowDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.singleFlexeRowIcon{width:24px;height:24px}.melement-div{padding:16px;border-radius:15px;width:249px}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-element-div{min-width:325px;padding:25px 0;align-items:baseline}.infra-objIcon{width:32px;height:32px}.infra-objHeader{font-family:Montserrat;font-size:36px;font-weight:600;line-height:29.26px;text-align:left}.infra-objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left}.flex-container{display:flex}.top-container{overflow-x:auto;width:100%}::-webkit-scrollbar{height:4px}::-webkit-scrollbar-track{border-radius:10px;background:#000}::-webkit-scrollbar-thumb{background:#cccc;border-radius:10px}.flex-item{flex:0 0 auto;white-space:nowrap;min-width:200px}@media screen and (max-width:768px){.infra-objIcon{width:24px;height:24px}.infra-objHeader{font-size:24px}.infra-element-div{min-width:250px;padding:15px 0 25px}}"]
|
|
6627
|
+
template: "<div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && !isDataLoading\">\n <div *ngFor=\"let obj of objectData; let last = last\" class=\"\">\n <div class=\"element-div\" [ngClass]=\"{'linebreak': obj?.linebreak && !last}\">\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <img class=\"objIcon\" [src]=\"obj.icon\" [style.color]=\"obj?.iconColor\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"objDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && !isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj?.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"top-container\">\n <div class=\"flex-container\" *ngFor=\"let chunk of customArray\">\n <div *ngFor=\"let item of chunk\">\n <div class=\"flex-item\">\n <div class=\"flex flex-row gap-5 infra-element-div\">\n <div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"!(item && item.value)\">0</div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"(item && item.value)\">\n {{item?.value | number: item.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"item?.labelColor\" class=\"custom-opacity infra-objDescription padding-top-s\">{{item?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleFlexeRow' && !isDataLoading\">\n <div class=\"flex\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"singleFlexeRowIcon\" [src]=\"obj.icon\">\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n {{obj?.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<!-- skeleton loaders -->\n\n<ng-container>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && isDataLoading\">\n <div *ngFor=\"let obj of [0,1,2,3]\" class=\"\">\n <div class=\"element-div linebreak\" >\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'32px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'150px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'singleFlexeRow' && isDataLoading\">\n <div class=\"flex\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n",
|
|
6628
|
+
styles: [".white{color:#fff}.custom-opacity{opacity:.7}.black{color:#000}.objIcon{width:32px;height:32px}.mobjIcon{width:24px;height:24px}.objHeader{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left}.mobjHeader{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left}.mobjDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.metrics-web{height:inherit;overflow-y:auto}.element-div{padding:25px 0;margin:0 25px}.linebreak{border-bottom:1px solid rgba(0,0,0,.16)}.singleFlexeRow-div{padding:16px;border-radius:15px}.singleFlexeRowHeader{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.singleFlexeRowDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.singleFlexeRowIcon{width:24px;height:24px}.melement-div{padding:16px;border-radius:15px;width:249px}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-element-div{min-width:325px;padding:25px 0;align-items:baseline}.infra-objIcon{width:32px;height:32px}.infra-objHeader{font-family:Montserrat;font-size:36px;font-weight:600;line-height:29.26px;text-align:left}.infra-objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left;width:230px;text-overflow:ellipsis;overflow:hidden}.flex-container{display:flex}.top-container{overflow-x:auto;width:100%}::-webkit-scrollbar{height:4px}::-webkit-scrollbar-track{border-radius:10px;background:#000}::-webkit-scrollbar-thumb{background:#cccc;border-radius:10px}.flex-item{flex:0 0 auto;white-space:nowrap;min-width:200px}@media screen and (max-width:768px){.infra-objIcon{width:24px;height:24px}.infra-objHeader{font-size:24px}.infra-element-div{min-width:250px;padding:15px 0 25px}}"]
|
|
6549
6629
|
}] }
|
|
6550
6630
|
];
|
|
6551
6631
|
/** @nocollapse */
|
|
@@ -6556,7 +6636,8 @@
|
|
|
6556
6636
|
objectData: [{ type: core.Input }],
|
|
6557
6637
|
layoutType: [{ type: core.Input }],
|
|
6558
6638
|
fetchDataFromApi: [{ type: core.Input }],
|
|
6559
|
-
providerId: [{ type: core.Input }]
|
|
6639
|
+
providerId: [{ type: core.Input }],
|
|
6640
|
+
pageLayout: [{ type: core.Input }]
|
|
6560
6641
|
};
|
|
6561
6642
|
return DataPointsComponent;
|
|
6562
6643
|
}());
|
|
@@ -6570,6 +6651,8 @@
|
|
|
6570
6651
|
/** @type {?} */
|
|
6571
6652
|
DataPointsComponent.prototype.providerId;
|
|
6572
6653
|
/** @type {?} */
|
|
6654
|
+
DataPointsComponent.prototype.pageLayout;
|
|
6655
|
+
/** @type {?} */
|
|
6573
6656
|
DataPointsComponent.prototype.customArray;
|
|
6574
6657
|
/** @type {?} */
|
|
6575
6658
|
DataPointsComponent.prototype.isDataLoading;
|
|
@@ -8041,7 +8124,7 @@
|
|
|
8041
8124
|
AnnouncementsComponent.decorators = [
|
|
8042
8125
|
{ type: core.Component, args: [{
|
|
8043
8126
|
selector: 'sb-uic-announcements',
|
|
8044
|
-
template: "<div class=\"w-full\" *ngIf=\"layoutType === 'web' && !isLoading\">\n <div class=\"flex item-center key-logo\">\n <img class=\"\" [src]=\"objectData?.logoUrl\">\n </div>\n <div class=\"flex item-center key-logo
|
|
8127
|
+
template: "<div class=\"w-full\" *ngIf=\"layoutType === 'web' && !isLoading\">\n <div class=\"flex item-center key-logo\">\n <img class=\"\" [src]=\"objectData?.logoUrl\">\n </div>\n <div class=\"flex item-center key-logo\">\n <div class=\"key-heading\"\n [style.backgroundColor]=\"objectData?.header?.background\"\n [style.color]=\"objectData?.header?.color\">\n {{objectData?.title}}\n </div>\n </div>\n <div class=\"key-list-container\"\n [style.borderColor]=\"objectData?.panelborder\"\n [style.backgroundColor]=\"objectData?.panelBackground\">\n <div class=\"{{mobileHeight ? 'mob-key-list' : 'key-list'}}\" >\n <div *ngFor=\"let item of objectData?.list; let i = index\">\n <div class=\"key-list-item mb-{{ objectData?.list?.length === (i+1) ? '' : '4'}}\" \n [style.borderColor]=\"objectData?.listItem?.border\"\n [style.backgroundColor]=\"objectData?.listItem?.background\">\n <div class=\"key-list-item-content {{item?.value?.length > 152 && !item?.expanded ? 'expand' : 'un-expand'}}\" [innerHTML]=\"item?.value\"></div>\n <div class=\"more-or-less\" *ngIf=\"item?.value?.length > 152\" [style.color]=\"objectData?.panelborder\">\n <div class=\"cursor-pointer\" (click)=\"viewMoreOrLess(item)\" *ngIf=\"!item?.expanded\">View more</div>\n <div class=\"cursor-pointer\" (click)=\"viewMoreOrLess(item)\" *ngIf=\"item?.expanded\">View less</div>\n </div>\n </div>\n </div> \n </div> \n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'mobile'\">\n <div class=\"flex item-center key-logo \">\n <div class=\"mob-key-heading\" (click)=\"openAnnouncements()\"\n [style.backgroundColor]=\"objectData?.header?.background\"\n [style.color]=\"objectData?.header?.color\">\n <div class=\"flex key-button gap-3\">\n <div>\n <img [src]=\"objectData?.mobileIcon\">\n </div>\n <div>{{objectData?.title}}</div> \n <div><mat-icon class=\"key-mob-icon\">arrow_forward_ios</mat-icon></div>\n </div> \n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'web' && isLoading\">\n <div class=\"flex item-center key-logo\">\n <img class=\"\" [src]=\"objectData?.logoUrl\">\n </div>\n <div class=\"flex item-center key-logo pt-1\">\n <div class=\"key-heading\"\n [style.backgroundColor]=\"objectData?.header?.background\"\n [style.color]=\"objectData?.header?.color\">\n {{objectData?.title}}\n </div>\n </div>\n <div class=\"key-list-container\"\n [style.borderColor]=\"objectData?.panelborder\"\n [style.backgroundColor]=\"objectData?.panelBackground\">\n <div class=\"{{mobileHeight ? 'mob-key-list' : 'key-list'}}\" > \n <div class=\"key-list-item mb-4\" \n *ngFor=\"let item of[0,1,2,3,4]; let i = index\"\n [style.borderColor]=\"objectData?.listItem?.border\"\n [style.backgroundColor]=\"objectData?.listItem?.background\">\n <div class=\"key-list-item-content un-expand\">\n <div class=\"py-1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'350px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"py-1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'350px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div> \n </div>\n</div>\n",
|
|
8045
8128
|
styles: [".key-logo{align-items:center;justify-content:center}.key-list-container{border:1px solid #ccc;padding:45px 15px 15px;border-radius:12px;margin-top:-20px}.key-list{max-height:600px;overflow:auto}.mob-key-list{height:calc(100vh - 252px);overflow:auto}.key-list::-webkit-scrollbar{display:none}.key-list-item{padding:16px;border:1px solid #ccc;border-radius:12px;min-height:56px}::ng-deep .key-list-item-content a{color:#1b4ca1!important}.key-list-item-content{font-family:Lato;font-size:14px;font-weight:400;line-height:20px;text-align:left;white-space:initial;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.expand{-webkit-line-clamp:3}.un-expand{-webkit-line-clamp:0}.more-or-less{font-family:Lato;font-size:14px;line-height:20px;font-weight:600}.mob-key-heading{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center;padding:7px 25px;border-radius:20px;animation:.9s infinite mobPaddingAnimation;cursor:pointer}.key-mob-icon{font-size:12px;width:12px;height:12px}.key-button{align-items:center;justify-content:center}.key-heading{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center;padding:10px 50px;border-radius:20px;margin-top:-3px;animation:.9s infinite paddingAnimation}@keyframes mobPaddingAnimation{0%,100%{padding:7px 25px}25%,75%{padding:7px 30px}50%{padding:7px 35px}}@keyframes paddingAnimation{0%,100%{padding:10px 50px}25%,75%{padding:10px 55px}50%{padding:10px 60px}}"]
|
|
8046
8129
|
}] }
|
|
8047
8130
|
];
|
|
@@ -8393,13 +8476,13 @@
|
|
|
8393
8476
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8394
8477
|
*/
|
|
8395
8478
|
var CardPortraitComponent = /** @class */ (function () {
|
|
8396
|
-
function CardPortraitComponent(snackBar,
|
|
8479
|
+
function CardPortraitComponent(snackBar, translate, langtranslations, configSvc, contSvc) {
|
|
8397
8480
|
var _this = this;
|
|
8398
8481
|
this.snackBar = snackBar;
|
|
8399
|
-
this.events = events;
|
|
8400
8482
|
this.translate = translate;
|
|
8401
8483
|
this.langtranslations = langtranslations;
|
|
8402
8484
|
this.configSvc = configSvc;
|
|
8485
|
+
this.contSvc = contSvc;
|
|
8403
8486
|
this.isCardLoading = false;
|
|
8404
8487
|
this.contentData = new core.EventEmitter();
|
|
8405
8488
|
this.isCardFlipped = false;
|
|
@@ -8460,47 +8543,23 @@
|
|
|
8460
8543
|
* @return {?}
|
|
8461
8544
|
*/
|
|
8462
8545
|
function (contentData) {
|
|
8546
|
+
this.contSvc.changeTelemetryData(contentData);
|
|
8463
8547
|
this.contentData.emit(contentData);
|
|
8464
8548
|
};
|
|
8465
|
-
/**
|
|
8466
|
-
* @return {?}
|
|
8467
|
-
*/
|
|
8468
|
-
CardPortraitComponent.prototype.raiseTelemetry = /**
|
|
8469
|
-
* @return {?}
|
|
8470
|
-
*/
|
|
8471
|
-
function () {
|
|
8472
|
-
// if(this.forPreview){
|
|
8473
|
-
// return
|
|
8474
|
-
// }
|
|
8475
|
-
this.events.raiseInteractTelemetry({
|
|
8476
|
-
type: 'click',
|
|
8477
|
-
subType: this.widgetType + "-" + this.widgetSubType,
|
|
8478
|
-
id: lodash.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
8479
|
-
}, {
|
|
8480
|
-
id: this.widgetData.content.identifier,
|
|
8481
|
-
type: this.widgetData.content.primaryCategory,
|
|
8482
|
-
//context: this.widgetData.context,
|
|
8483
|
-
rollup: {},
|
|
8484
|
-
ver: "" + this.widgetData.content.version + '',
|
|
8485
|
-
}, {
|
|
8486
|
-
pageIdExt: lodash.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
8487
|
-
module: lodash.camelCase(this.widgetData.content.primaryCategory),
|
|
8488
|
-
});
|
|
8489
|
-
};
|
|
8490
8549
|
CardPortraitComponent.decorators = [
|
|
8491
8550
|
{ type: core.Component, args: [{
|
|
8492
8551
|
selector: 'sb-uic-card-portrait',
|
|
8493
|
-
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove cursor-pointer \" [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)=\"raiseTelemetry();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 | 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-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.identifier)\" />\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=\"widgetData?.content?.endDate\">\n <div class=\"cbp-mark\">\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">Over due</p>\n </div>\n </ng-container> -->\n <!-- <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\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 i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n\n </sb-uic-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\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.identifier)\" />\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>",
|
|
8552
|
+
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove cursor-pointer \" [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 | 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-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.identifier)\" />\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=\"widgetData?.content?.endDate\">\n <div class=\"cbp-mark\">\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">Over due</p>\n </div>\n </ng-container> -->\n <!-- <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\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 i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n\n </sb-uic-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\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.identifier)\" />\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>",
|
|
8494
8553
|
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:268px;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}"]
|
|
8495
8554
|
}] }
|
|
8496
8555
|
];
|
|
8497
8556
|
/** @nocollapse */
|
|
8498
8557
|
CardPortraitComponent.ctorParameters = function () { return [
|
|
8499
8558
|
{ type: material.MatSnackBar },
|
|
8500
|
-
{ type: utilsV2.EventService },
|
|
8501
8559
|
{ type: core$1.TranslateService },
|
|
8502
8560
|
{ type: MultilingualTranslationsService },
|
|
8503
|
-
{ type: utilsV2.ConfigurationsService }
|
|
8561
|
+
{ type: utilsV2.ConfigurationsService },
|
|
8562
|
+
{ type: WidgetContentService }
|
|
8504
8563
|
]; };
|
|
8505
8564
|
CardPortraitComponent.propDecorators = {
|
|
8506
8565
|
widgetData: [{ type: core.Input }],
|
|
@@ -8548,22 +8607,22 @@
|
|
|
8548
8607
|
* @type {?}
|
|
8549
8608
|
* @private
|
|
8550
8609
|
*/
|
|
8551
|
-
CardPortraitComponent.prototype.
|
|
8610
|
+
CardPortraitComponent.prototype.translate;
|
|
8552
8611
|
/**
|
|
8553
8612
|
* @type {?}
|
|
8554
8613
|
* @private
|
|
8555
8614
|
*/
|
|
8556
|
-
CardPortraitComponent.prototype.
|
|
8615
|
+
CardPortraitComponent.prototype.langtranslations;
|
|
8557
8616
|
/**
|
|
8558
8617
|
* @type {?}
|
|
8559
8618
|
* @private
|
|
8560
8619
|
*/
|
|
8561
|
-
CardPortraitComponent.prototype.
|
|
8620
|
+
CardPortraitComponent.prototype.configSvc;
|
|
8562
8621
|
/**
|
|
8563
8622
|
* @type {?}
|
|
8564
8623
|
* @private
|
|
8565
8624
|
*/
|
|
8566
|
-
CardPortraitComponent.prototype.
|
|
8625
|
+
CardPortraitComponent.prototype.contSvc;
|
|
8567
8626
|
}
|
|
8568
8627
|
|
|
8569
8628
|
/**
|
|
@@ -9017,7 +9076,7 @@
|
|
|
9017
9076
|
{ type: core.Component, args: [{
|
|
9018
9077
|
selector: 'sb-uic-card-user',
|
|
9019
9078
|
template: "<mat-card class=\"user-card card-users-container mr-5 padding-remove cursor-pointer\">\n <div class=\"display-contents\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"raiseTelemetry();$event.stopPropagation()\" role=\"link\"\n i18n-aria-label>\n <ng-container>\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container *ngIf=\"widgetData.content.image\">\n <img mat-card-image [src]=\"widgetData.content.image\"\n loading=\"lazy\" class=\"card-img ws-mat-primary-lite-background margin-remove\"\n [wsUtilsDefaultThumbnail]=\"defaultThumbnail\" [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData.content.image\">\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>\n <div class=\"padding-m\">\n <div class=\"user_widget flex margin-remove\">\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.userId\"\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 <p class=\"whitespace-normal description-text mat-body-2\">\n {{ widgetData?.content?.description }}\n </p>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n</mat-card>",
|
|
9020
|
-
styles: [".card-users-container{position:relative;width:282px;min-height:281px;border-radius:8px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;height:281px;margin:16px 8px}.card-users-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-users-container .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-users-container .course_logo_box p{display:inline-block;vertical-align:top}.card-users-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-users-container mat-card-content{background:#fff}.card-users-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-users-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-users-container .complexity{padding-top:70px;display:flex;font-size:14px;line-height:21px;padding-bottom:10px}.card-users-container .complexity .mode-tag{border-radius:5px;order:2;margin-left:auto;color:#fff;font-size:10px}.card-users-container .complexity .duration{display:flex;margin-left:auto;order:3;font-weight:700}.card-users-container .complexity .time-text{margin:0 5px 0 6px;font-weight:700}.card-users-container .basic{margin:auto 0}.card-users-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}.card-users-container .description-text{position:relative;overflow:hidden;height:63px;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}"]
|
|
9079
|
+
styles: [".card-users-container{position:relative;width:282px;min-height:281px;border-radius:8px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;height:281px;margin:16px 8px}.card-users-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-users-container .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-users-container .course_logo_box p{display:inline-block;vertical-align:top}.card-users-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-users-container mat-card-content{background:#fff}.card-users-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-users-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-users-container .complexity{padding-top:70px;display:flex;font-size:14px;line-height:21px;padding-bottom:10px}.card-users-container .complexity .mode-tag{border-radius:5px;order:2;margin-left:auto;color:#fff;font-size:10px}.card-users-container .complexity .duration{display:flex;margin-left:auto;order:3;font-weight:700}.card-users-container .complexity .time-text{margin:0 5px 0 6px;font-weight:700}.card-users-container .basic{margin:auto 0}.card-users-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}.card-users-container .description-text{position:relative;overflow:hidden;height:63px;white-space:normal;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.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}"]
|
|
9021
9080
|
}] }
|
|
9022
9081
|
];
|
|
9023
9082
|
/** @nocollapse */
|
|
@@ -9122,6 +9181,10 @@
|
|
|
9122
9181
|
this.sourceLogos = instanceConfig.sources;
|
|
9123
9182
|
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
9124
9183
|
}
|
|
9184
|
+
else {
|
|
9185
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
9186
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
9187
|
+
}
|
|
9125
9188
|
this.cbPlanInterval = setInterval((/**
|
|
9126
9189
|
* @return {?}
|
|
9127
9190
|
*/
|
|
@@ -9764,6 +9827,132 @@
|
|
|
9764
9827
|
CardWideV2Component.prototype.configSvc;
|
|
9765
9828
|
}
|
|
9766
9829
|
|
|
9830
|
+
/**
|
|
9831
|
+
* @fileoverview added by tsickle
|
|
9832
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9833
|
+
*/
|
|
9834
|
+
var CardKarmaProgramsComponent = /** @class */ (function () {
|
|
9835
|
+
function CardKarmaProgramsComponent(events, translate, langtranslations, configSvc) {
|
|
9836
|
+
var _this = this;
|
|
9837
|
+
this.events = events;
|
|
9838
|
+
this.translate = translate;
|
|
9839
|
+
this.langtranslations = langtranslations;
|
|
9840
|
+
this.configSvc = configSvc;
|
|
9841
|
+
this.userData = new core.EventEmitter();
|
|
9842
|
+
this.widgetType = '';
|
|
9843
|
+
this.widgetSubType = '';
|
|
9844
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
9845
|
+
* @return {?}
|
|
9846
|
+
*/
|
|
9847
|
+
function () {
|
|
9848
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
9849
|
+
_this.translate.setDefaultLang('en');
|
|
9850
|
+
/** @type {?} */
|
|
9851
|
+
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
9852
|
+
_this.translate.use(lang);
|
|
9853
|
+
}
|
|
9854
|
+
}));
|
|
9855
|
+
}
|
|
9856
|
+
/**
|
|
9857
|
+
* @return {?}
|
|
9858
|
+
*/
|
|
9859
|
+
CardKarmaProgramsComponent.prototype.ngOnInit = /**
|
|
9860
|
+
* @return {?}
|
|
9861
|
+
*/
|
|
9862
|
+
function () {
|
|
9863
|
+
/** @type {?} */
|
|
9864
|
+
var instanceConfig = this.configSvc.instanceConfig;
|
|
9865
|
+
if (instanceConfig) {
|
|
9866
|
+
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
9867
|
+
this.sourceLogos = instanceConfig.sources;
|
|
9868
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
9869
|
+
}
|
|
9870
|
+
else {
|
|
9871
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
9872
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
9873
|
+
}
|
|
9874
|
+
};
|
|
9875
|
+
/**
|
|
9876
|
+
* @return {?}
|
|
9877
|
+
*/
|
|
9878
|
+
CardKarmaProgramsComponent.prototype.raiseTelemetry = /**
|
|
9879
|
+
* @return {?}
|
|
9880
|
+
*/
|
|
9881
|
+
function () {
|
|
9882
|
+
// if(this.forPreview){
|
|
9883
|
+
// return
|
|
9884
|
+
// }
|
|
9885
|
+
this.events.raiseInteractTelemetry({
|
|
9886
|
+
type: 'click',
|
|
9887
|
+
subType: this.widgetType + "-" + this.widgetSubType,
|
|
9888
|
+
id: lodash.camelCase(this.widgetData.content.userId) + "-card",
|
|
9889
|
+
}, {
|
|
9890
|
+
id: this.widgetData.content.userId,
|
|
9891
|
+
// type: this.widgetData.user.primaryCategory,
|
|
9892
|
+
//context: this.widgetData.context,
|
|
9893
|
+
rollup: {},
|
|
9894
|
+
}, {
|
|
9895
|
+
pageIdExt: lodash.camelCase('user') + "-card",
|
|
9896
|
+
module: lodash.camelCase('user'),
|
|
9897
|
+
});
|
|
9898
|
+
};
|
|
9899
|
+
CardKarmaProgramsComponent.decorators = [
|
|
9900
|
+
{ type: core.Component, args: [{
|
|
9901
|
+
selector: 'sb-uic-card-karma-programs',
|
|
9902
|
+
template: "<mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\">\n <div class=\"display-contents\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"raiseTelemetry();$event.stopPropagation()\" \n [routerLink]=\"['/app/learn/karma-programs/asdfghj/123456/micro-sites']\" role=\"link\"\n i18n-aria-label>\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.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 | 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-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>\n <div class=\"flex title-container 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?.name }}\n </div>\n </div>\n <div class=\"flex title-container 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?.programCount}} Programs\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n</mat-card>",
|
|
9903
|
+
styles: [".card-channels-container{position:relative;width:282px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;min-height:208px;height:208px;max-height:208px;margin:0 8px;background:#1a4ca1!important;border-radius:12px;padding:4px!important}.card-channels-container .min-top{background:inherit;margin-bottom:0;height:inherit}.card-channels-container .image-container{background-color:#fff;width:inherit;height:124px;max-height:124px;overflow:hidden;display:flex;align-items:center;justify-content:center;border-radius:12px}.card-channels-container .card-img{max-height:62px;min-height:62px;display:block;-o-object-fit:fill;object-fit:contain}.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}"]
|
|
9904
|
+
}] }
|
|
9905
|
+
];
|
|
9906
|
+
/** @nocollapse */
|
|
9907
|
+
CardKarmaProgramsComponent.ctorParameters = function () { return [
|
|
9908
|
+
{ type: utilsV2.EventService },
|
|
9909
|
+
{ type: core$1.TranslateService },
|
|
9910
|
+
{ type: utilsV2.MultilingualTranslationsService },
|
|
9911
|
+
{ type: utilsV2.ConfigurationsService }
|
|
9912
|
+
]; };
|
|
9913
|
+
CardKarmaProgramsComponent.propDecorators = {
|
|
9914
|
+
widgetData: [{ type: core.Input }],
|
|
9915
|
+
userData: [{ type: core.Output }]
|
|
9916
|
+
};
|
|
9917
|
+
return CardKarmaProgramsComponent;
|
|
9918
|
+
}());
|
|
9919
|
+
if (false) {
|
|
9920
|
+
/** @type {?} */
|
|
9921
|
+
CardKarmaProgramsComponent.prototype.widgetData;
|
|
9922
|
+
/** @type {?} */
|
|
9923
|
+
CardKarmaProgramsComponent.prototype.userData;
|
|
9924
|
+
/** @type {?} */
|
|
9925
|
+
CardKarmaProgramsComponent.prototype.defaultThumbnail;
|
|
9926
|
+
/** @type {?} */
|
|
9927
|
+
CardKarmaProgramsComponent.prototype.sourceLogos;
|
|
9928
|
+
/** @type {?} */
|
|
9929
|
+
CardKarmaProgramsComponent.prototype.defaultSLogo;
|
|
9930
|
+
/** @type {?} */
|
|
9931
|
+
CardKarmaProgramsComponent.prototype.widgetType;
|
|
9932
|
+
/** @type {?} */
|
|
9933
|
+
CardKarmaProgramsComponent.prototype.widgetSubType;
|
|
9934
|
+
/**
|
|
9935
|
+
* @type {?}
|
|
9936
|
+
* @private
|
|
9937
|
+
*/
|
|
9938
|
+
CardKarmaProgramsComponent.prototype.events;
|
|
9939
|
+
/**
|
|
9940
|
+
* @type {?}
|
|
9941
|
+
* @private
|
|
9942
|
+
*/
|
|
9943
|
+
CardKarmaProgramsComponent.prototype.translate;
|
|
9944
|
+
/**
|
|
9945
|
+
* @type {?}
|
|
9946
|
+
* @private
|
|
9947
|
+
*/
|
|
9948
|
+
CardKarmaProgramsComponent.prototype.langtranslations;
|
|
9949
|
+
/**
|
|
9950
|
+
* @type {?}
|
|
9951
|
+
* @private
|
|
9952
|
+
*/
|
|
9953
|
+
CardKarmaProgramsComponent.prototype.configSvc;
|
|
9954
|
+
}
|
|
9955
|
+
|
|
9767
9956
|
/**
|
|
9768
9957
|
* @fileoverview added by tsickle
|
|
9769
9958
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -9780,7 +9969,8 @@
|
|
|
9780
9969
|
CardLandscapeComponent,
|
|
9781
9970
|
CardWideComponent,
|
|
9782
9971
|
CardMDOChannelComponent,
|
|
9783
|
-
CardWideV2Component
|
|
9972
|
+
CardWideV2Component,
|
|
9973
|
+
CardKarmaProgramsComponent
|
|
9784
9974
|
],
|
|
9785
9975
|
imports: [
|
|
9786
9976
|
common.CommonModule,
|
|
@@ -9804,7 +9994,8 @@
|
|
|
9804
9994
|
CardUserComponent,
|
|
9805
9995
|
CardWideComponent,
|
|
9806
9996
|
CardMDOChannelComponent,
|
|
9807
|
-
CardWideV2Component
|
|
9997
|
+
CardWideV2Component,
|
|
9998
|
+
CardKarmaProgramsComponent
|
|
9808
9999
|
],
|
|
9809
10000
|
},] }
|
|
9810
10001
|
];
|
|
@@ -11442,28 +11633,29 @@
|
|
|
11442
11633
|
exports.ɵa = ContentStripWithTabsLibComponent;
|
|
11443
11634
|
exports.ɵb = WidgetUserService;
|
|
11444
11635
|
exports.ɵba = CardWideV2Component;
|
|
11445
|
-
exports.ɵbb =
|
|
11446
|
-
exports.ɵbc =
|
|
11447
|
-
exports.ɵbd =
|
|
11448
|
-
exports.ɵbe =
|
|
11449
|
-
exports.ɵbf =
|
|
11450
|
-
exports.ɵbg =
|
|
11451
|
-
exports.ɵbh =
|
|
11452
|
-
exports.ɵbi =
|
|
11453
|
-
exports.ɵbj =
|
|
11454
|
-
exports.ɵbk =
|
|
11455
|
-
exports.ɵbl =
|
|
11456
|
-
exports.ɵbm =
|
|
11457
|
-
exports.ɵbn =
|
|
11458
|
-
exports.ɵbo =
|
|
11459
|
-
exports.ɵbp =
|
|
11460
|
-
exports.ɵbq =
|
|
11461
|
-
exports.ɵbr =
|
|
11462
|
-
exports.ɵbs =
|
|
11463
|
-
exports.ɵbt =
|
|
11464
|
-
exports.ɵbu =
|
|
11465
|
-
exports.ɵbv =
|
|
11466
|
-
exports.ɵbw =
|
|
11636
|
+
exports.ɵbb = CardKarmaProgramsComponent;
|
|
11637
|
+
exports.ɵbc = PipePublicURLModule;
|
|
11638
|
+
exports.ɵbd = PipePublicURL;
|
|
11639
|
+
exports.ɵbe = DisplayContentTypeLibModule;
|
|
11640
|
+
exports.ɵbf = DisplayContentTypeLibComponent;
|
|
11641
|
+
exports.ɵbg = DefaultThumbnailModule;
|
|
11642
|
+
exports.ɵbh = DefaultThumbnailDirective;
|
|
11643
|
+
exports.ɵbi = PipeDurationTransformModule;
|
|
11644
|
+
exports.ɵbj = PipeDurationTransformPipe;
|
|
11645
|
+
exports.ɵbk = CompetencyPassbookComponent;
|
|
11646
|
+
exports.ɵbl = CompetencyPassbookService;
|
|
11647
|
+
exports.ɵbm = PillsModule;
|
|
11648
|
+
exports.ɵbn = PillsComponent;
|
|
11649
|
+
exports.ɵbo = UserContentRatingLibComponent;
|
|
11650
|
+
exports.ɵbp = ScrollableItemDirective;
|
|
11651
|
+
exports.ɵbq = RatingService;
|
|
11652
|
+
exports.ɵbr = UserContentRatingLibService;
|
|
11653
|
+
exports.ɵbs = AvatarPhotoLibModule;
|
|
11654
|
+
exports.ɵbt = AvatarPhotoLibComponent;
|
|
11655
|
+
exports.ɵbu = MyHammerConfig$1;
|
|
11656
|
+
exports.ɵbv = SlidersNgContentLibModule;
|
|
11657
|
+
exports.ɵbw = SlidersNgContentLibComponent;
|
|
11658
|
+
exports.ɵbx = ScrollableItemModule;
|
|
11467
11659
|
exports.ɵc = MultilingualTranslationsService;
|
|
11468
11660
|
exports.ɵd = ConfigurationsService;
|
|
11469
11661
|
exports.ɵe = HorizontalScrollerV2Module;
|