@sunbird-cb/consumption 0.0.21 → 0.0.22
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 +202 -28
- 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/cards.module.js +6 -3
- package/esm2015/lib/_common/data-points/data-points.component.js +22 -4
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +24 -1
- 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/cards.module.js +6 -3
- package/esm5/lib/_common/data-points/data-points.component.js +22 -4
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +24 -1
- package/esm5/sunbird-cb-consumption.js +23 -22
- package/fesm2015/sunbird-cb-consumption.js +178 -7
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +180 -7
- 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/data-points/data-points.component.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
|
@@ -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) {
|
|
@@ -6470,6 +6493,7 @@
|
|
|
6470
6493
|
this.layoutType = '';
|
|
6471
6494
|
this.fetchDataFromApi = false;
|
|
6472
6495
|
this.providerId = '';
|
|
6496
|
+
this.pageLayout = '';
|
|
6473
6497
|
this.customArray = [];
|
|
6474
6498
|
this.isDataLoading = false;
|
|
6475
6499
|
}
|
|
@@ -6513,7 +6537,8 @@
|
|
|
6513
6537
|
function () {
|
|
6514
6538
|
var _this = this;
|
|
6515
6539
|
/** @type {?} */
|
|
6516
|
-
var request = {
|
|
6540
|
+
var request = {};
|
|
6541
|
+
request = {
|
|
6517
6542
|
"request": {
|
|
6518
6543
|
"filters": {
|
|
6519
6544
|
"organisations": [
|
|
@@ -6522,6 +6547,19 @@
|
|
|
6522
6547
|
}
|
|
6523
6548
|
}
|
|
6524
6549
|
};
|
|
6550
|
+
if (this.pageLayout && this.pageLayout === 'mdo') {
|
|
6551
|
+
request = {
|
|
6552
|
+
"request": {
|
|
6553
|
+
"filters": {
|
|
6554
|
+
"requestType": "MDO_INSIGHT",
|
|
6555
|
+
"organisations": [
|
|
6556
|
+
//this.providerId
|
|
6557
|
+
"123456"
|
|
6558
|
+
]
|
|
6559
|
+
}
|
|
6560
|
+
}
|
|
6561
|
+
};
|
|
6562
|
+
}
|
|
6525
6563
|
this.insightSvc.fetchSearchData(request).subscribe((/**
|
|
6526
6564
|
* @param {?} res
|
|
6527
6565
|
* @return {?}
|
|
@@ -6544,7 +6582,7 @@
|
|
|
6544
6582
|
DataPointsComponent.decorators = [
|
|
6545
6583
|
{ type: core.Component, args: [{
|
|
6546
6584
|
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",
|
|
6585
|
+
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",
|
|
6548
6586
|
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}}"]
|
|
6549
6587
|
}] }
|
|
6550
6588
|
];
|
|
@@ -6556,7 +6594,8 @@
|
|
|
6556
6594
|
objectData: [{ type: core.Input }],
|
|
6557
6595
|
layoutType: [{ type: core.Input }],
|
|
6558
6596
|
fetchDataFromApi: [{ type: core.Input }],
|
|
6559
|
-
providerId: [{ type: core.Input }]
|
|
6597
|
+
providerId: [{ type: core.Input }],
|
|
6598
|
+
pageLayout: [{ type: core.Input }]
|
|
6560
6599
|
};
|
|
6561
6600
|
return DataPointsComponent;
|
|
6562
6601
|
}());
|
|
@@ -6570,6 +6609,8 @@
|
|
|
6570
6609
|
/** @type {?} */
|
|
6571
6610
|
DataPointsComponent.prototype.providerId;
|
|
6572
6611
|
/** @type {?} */
|
|
6612
|
+
DataPointsComponent.prototype.pageLayout;
|
|
6613
|
+
/** @type {?} */
|
|
6573
6614
|
DataPointsComponent.prototype.customArray;
|
|
6574
6615
|
/** @type {?} */
|
|
6575
6616
|
DataPointsComponent.prototype.isDataLoading;
|
|
@@ -8041,7 +8082,7 @@
|
|
|
8041
8082
|
AnnouncementsComponent.decorators = [
|
|
8042
8083
|
{ type: core.Component, args: [{
|
|
8043
8084
|
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
|
|
8085
|
+
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
8086
|
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
8087
|
}] }
|
|
8047
8088
|
];
|
|
@@ -9122,6 +9163,10 @@
|
|
|
9122
9163
|
this.sourceLogos = instanceConfig.sources;
|
|
9123
9164
|
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
9124
9165
|
}
|
|
9166
|
+
else {
|
|
9167
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
9168
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
9169
|
+
}
|
|
9125
9170
|
this.cbPlanInterval = setInterval((/**
|
|
9126
9171
|
* @return {?}
|
|
9127
9172
|
*/
|
|
@@ -9764,6 +9809,132 @@
|
|
|
9764
9809
|
CardWideV2Component.prototype.configSvc;
|
|
9765
9810
|
}
|
|
9766
9811
|
|
|
9812
|
+
/**
|
|
9813
|
+
* @fileoverview added by tsickle
|
|
9814
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9815
|
+
*/
|
|
9816
|
+
var CardKarmaProgramsComponent = /** @class */ (function () {
|
|
9817
|
+
function CardKarmaProgramsComponent(events, translate, langtranslations, configSvc) {
|
|
9818
|
+
var _this = this;
|
|
9819
|
+
this.events = events;
|
|
9820
|
+
this.translate = translate;
|
|
9821
|
+
this.langtranslations = langtranslations;
|
|
9822
|
+
this.configSvc = configSvc;
|
|
9823
|
+
this.userData = new core.EventEmitter();
|
|
9824
|
+
this.widgetType = '';
|
|
9825
|
+
this.widgetSubType = '';
|
|
9826
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
9827
|
+
* @return {?}
|
|
9828
|
+
*/
|
|
9829
|
+
function () {
|
|
9830
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
9831
|
+
_this.translate.setDefaultLang('en');
|
|
9832
|
+
/** @type {?} */
|
|
9833
|
+
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
9834
|
+
_this.translate.use(lang);
|
|
9835
|
+
}
|
|
9836
|
+
}));
|
|
9837
|
+
}
|
|
9838
|
+
/**
|
|
9839
|
+
* @return {?}
|
|
9840
|
+
*/
|
|
9841
|
+
CardKarmaProgramsComponent.prototype.ngOnInit = /**
|
|
9842
|
+
* @return {?}
|
|
9843
|
+
*/
|
|
9844
|
+
function () {
|
|
9845
|
+
/** @type {?} */
|
|
9846
|
+
var instanceConfig = this.configSvc.instanceConfig;
|
|
9847
|
+
if (instanceConfig) {
|
|
9848
|
+
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
9849
|
+
this.sourceLogos = instanceConfig.sources;
|
|
9850
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
9851
|
+
}
|
|
9852
|
+
else {
|
|
9853
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
9854
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
9855
|
+
}
|
|
9856
|
+
};
|
|
9857
|
+
/**
|
|
9858
|
+
* @return {?}
|
|
9859
|
+
*/
|
|
9860
|
+
CardKarmaProgramsComponent.prototype.raiseTelemetry = /**
|
|
9861
|
+
* @return {?}
|
|
9862
|
+
*/
|
|
9863
|
+
function () {
|
|
9864
|
+
// if(this.forPreview){
|
|
9865
|
+
// return
|
|
9866
|
+
// }
|
|
9867
|
+
this.events.raiseInteractTelemetry({
|
|
9868
|
+
type: 'click',
|
|
9869
|
+
subType: this.widgetType + "-" + this.widgetSubType,
|
|
9870
|
+
id: lodash.camelCase(this.widgetData.content.userId) + "-card",
|
|
9871
|
+
}, {
|
|
9872
|
+
id: this.widgetData.content.userId,
|
|
9873
|
+
// type: this.widgetData.user.primaryCategory,
|
|
9874
|
+
//context: this.widgetData.context,
|
|
9875
|
+
rollup: {},
|
|
9876
|
+
}, {
|
|
9877
|
+
pageIdExt: lodash.camelCase('user') + "-card",
|
|
9878
|
+
module: lodash.camelCase('user'),
|
|
9879
|
+
});
|
|
9880
|
+
};
|
|
9881
|
+
CardKarmaProgramsComponent.decorators = [
|
|
9882
|
+
{ type: core.Component, args: [{
|
|
9883
|
+
selector: 'sb-uic-card-karma-programs',
|
|
9884
|
+
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>",
|
|
9885
|
+
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}"]
|
|
9886
|
+
}] }
|
|
9887
|
+
];
|
|
9888
|
+
/** @nocollapse */
|
|
9889
|
+
CardKarmaProgramsComponent.ctorParameters = function () { return [
|
|
9890
|
+
{ type: utilsV2.EventService },
|
|
9891
|
+
{ type: core$1.TranslateService },
|
|
9892
|
+
{ type: utilsV2.MultilingualTranslationsService },
|
|
9893
|
+
{ type: utilsV2.ConfigurationsService }
|
|
9894
|
+
]; };
|
|
9895
|
+
CardKarmaProgramsComponent.propDecorators = {
|
|
9896
|
+
widgetData: [{ type: core.Input }],
|
|
9897
|
+
userData: [{ type: core.Output }]
|
|
9898
|
+
};
|
|
9899
|
+
return CardKarmaProgramsComponent;
|
|
9900
|
+
}());
|
|
9901
|
+
if (false) {
|
|
9902
|
+
/** @type {?} */
|
|
9903
|
+
CardKarmaProgramsComponent.prototype.widgetData;
|
|
9904
|
+
/** @type {?} */
|
|
9905
|
+
CardKarmaProgramsComponent.prototype.userData;
|
|
9906
|
+
/** @type {?} */
|
|
9907
|
+
CardKarmaProgramsComponent.prototype.defaultThumbnail;
|
|
9908
|
+
/** @type {?} */
|
|
9909
|
+
CardKarmaProgramsComponent.prototype.sourceLogos;
|
|
9910
|
+
/** @type {?} */
|
|
9911
|
+
CardKarmaProgramsComponent.prototype.defaultSLogo;
|
|
9912
|
+
/** @type {?} */
|
|
9913
|
+
CardKarmaProgramsComponent.prototype.widgetType;
|
|
9914
|
+
/** @type {?} */
|
|
9915
|
+
CardKarmaProgramsComponent.prototype.widgetSubType;
|
|
9916
|
+
/**
|
|
9917
|
+
* @type {?}
|
|
9918
|
+
* @private
|
|
9919
|
+
*/
|
|
9920
|
+
CardKarmaProgramsComponent.prototype.events;
|
|
9921
|
+
/**
|
|
9922
|
+
* @type {?}
|
|
9923
|
+
* @private
|
|
9924
|
+
*/
|
|
9925
|
+
CardKarmaProgramsComponent.prototype.translate;
|
|
9926
|
+
/**
|
|
9927
|
+
* @type {?}
|
|
9928
|
+
* @private
|
|
9929
|
+
*/
|
|
9930
|
+
CardKarmaProgramsComponent.prototype.langtranslations;
|
|
9931
|
+
/**
|
|
9932
|
+
* @type {?}
|
|
9933
|
+
* @private
|
|
9934
|
+
*/
|
|
9935
|
+
CardKarmaProgramsComponent.prototype.configSvc;
|
|
9936
|
+
}
|
|
9937
|
+
|
|
9767
9938
|
/**
|
|
9768
9939
|
* @fileoverview added by tsickle
|
|
9769
9940
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -9780,7 +9951,8 @@
|
|
|
9780
9951
|
CardLandscapeComponent,
|
|
9781
9952
|
CardWideComponent,
|
|
9782
9953
|
CardMDOChannelComponent,
|
|
9783
|
-
CardWideV2Component
|
|
9954
|
+
CardWideV2Component,
|
|
9955
|
+
CardKarmaProgramsComponent
|
|
9784
9956
|
],
|
|
9785
9957
|
imports: [
|
|
9786
9958
|
common.CommonModule,
|
|
@@ -9804,7 +9976,8 @@
|
|
|
9804
9976
|
CardUserComponent,
|
|
9805
9977
|
CardWideComponent,
|
|
9806
9978
|
CardMDOChannelComponent,
|
|
9807
|
-
CardWideV2Component
|
|
9979
|
+
CardWideV2Component,
|
|
9980
|
+
CardKarmaProgramsComponent
|
|
9808
9981
|
],
|
|
9809
9982
|
},] }
|
|
9810
9983
|
];
|
|
@@ -11442,28 +11615,29 @@
|
|
|
11442
11615
|
exports.ɵa = ContentStripWithTabsLibComponent;
|
|
11443
11616
|
exports.ɵb = WidgetUserService;
|
|
11444
11617
|
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 =
|
|
11618
|
+
exports.ɵbb = CardKarmaProgramsComponent;
|
|
11619
|
+
exports.ɵbc = PipePublicURLModule;
|
|
11620
|
+
exports.ɵbd = PipePublicURL;
|
|
11621
|
+
exports.ɵbe = DisplayContentTypeLibModule;
|
|
11622
|
+
exports.ɵbf = DisplayContentTypeLibComponent;
|
|
11623
|
+
exports.ɵbg = DefaultThumbnailModule;
|
|
11624
|
+
exports.ɵbh = DefaultThumbnailDirective;
|
|
11625
|
+
exports.ɵbi = PipeDurationTransformModule;
|
|
11626
|
+
exports.ɵbj = PipeDurationTransformPipe;
|
|
11627
|
+
exports.ɵbk = CompetencyPassbookComponent;
|
|
11628
|
+
exports.ɵbl = CompetencyPassbookService;
|
|
11629
|
+
exports.ɵbm = PillsModule;
|
|
11630
|
+
exports.ɵbn = PillsComponent;
|
|
11631
|
+
exports.ɵbo = UserContentRatingLibComponent;
|
|
11632
|
+
exports.ɵbp = ScrollableItemDirective;
|
|
11633
|
+
exports.ɵbq = RatingService;
|
|
11634
|
+
exports.ɵbr = UserContentRatingLibService;
|
|
11635
|
+
exports.ɵbs = AvatarPhotoLibModule;
|
|
11636
|
+
exports.ɵbt = AvatarPhotoLibComponent;
|
|
11637
|
+
exports.ɵbu = MyHammerConfig$1;
|
|
11638
|
+
exports.ɵbv = SlidersNgContentLibModule;
|
|
11639
|
+
exports.ɵbw = SlidersNgContentLibComponent;
|
|
11640
|
+
exports.ɵbx = ScrollableItemModule;
|
|
11467
11641
|
exports.ɵc = MultilingualTranslationsService;
|
|
11468
11642
|
exports.ɵd = ConfigurationsService;
|
|
11469
11643
|
exports.ɵe = HorizontalScrollerV2Module;
|