@sunbird-cb/consumption 0.0.36 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sunbird-cb-consumption.umd.js +56 -12
- package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
- package/esm2015/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +7 -3
- package/esm2015/lib/_common/cards/cards.component.js +5 -5
- package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +4 -4
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +17 -4
- package/esm2015/lib/_services/common-methods.service.js +25 -1
- package/esm5/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +7 -3
- package/esm5/lib/_common/cards/cards.component.js +3 -5
- package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +4 -4
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +17 -4
- package/esm5/lib/_services/common-methods.service.js +30 -1
- package/fesm2015/sunbird-cb-consumption.js +53 -12
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +56 -12
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/cards/card-karma-programs/card-karma-programs.component.d.ts +1 -0
- package/lib/_services/common-methods.service.d.ts +1 -0
- package/package.json +1 -1
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -59,6 +59,35 @@ var CommonMethodsService = /** @class */ (function () {
|
|
|
59
59
|
},
|
|
60
60
|
}); }));
|
|
61
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* @param {?} str
|
|
64
|
+
* @param {?=} type
|
|
65
|
+
* @return {?}
|
|
66
|
+
*/
|
|
67
|
+
CommonMethodsService.prototype.handleCapitalize = /**
|
|
68
|
+
* @param {?} str
|
|
69
|
+
* @param {?=} type
|
|
70
|
+
* @return {?}
|
|
71
|
+
*/
|
|
72
|
+
function (str, type) {
|
|
73
|
+
/** @type {?} */
|
|
74
|
+
var returnValue = '';
|
|
75
|
+
if (str) {
|
|
76
|
+
if (type === 'name') {
|
|
77
|
+
returnValue = str.split(' ').map((/**
|
|
78
|
+
* @param {?} _str
|
|
79
|
+
* @return {?}
|
|
80
|
+
*/
|
|
81
|
+
function (_str) {
|
|
82
|
+
return _str.charAt(0).toUpperCase() + _str.slice(1);
|
|
83
|
+
})).join(' ');
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
returnValue = str && (str.charAt(0).toUpperCase() + str.slice(1));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return returnValue;
|
|
90
|
+
};
|
|
62
91
|
CommonMethodsService.decorators = [
|
|
63
92
|
{ type: Injectable, args: [{
|
|
64
93
|
providedIn: 'root'
|
|
@@ -70,4 +99,4 @@ var CommonMethodsService = /** @class */ (function () {
|
|
|
70
99
|
return CommonMethodsService;
|
|
71
100
|
}());
|
|
72
101
|
export { CommonMethodsService };
|
|
73
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
102
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uLW1ldGhvZHMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWNiL2NvbnN1bXB0aW9uLyIsInNvdXJjZXMiOlsibGliL19zZXJ2aWNlcy9jb21tb24tbWV0aG9kcy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFLM0M7SUFLRTtJQUFnQixDQUFDOzs7Ozs7SUFFakIseURBQTBCOzs7OztJQUExQixVQUNFLFFBQThCLEVBQzlCLEtBQWdGO1FBRWhGLE9BQU8sQ0FB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7XG4gICAgICAgICAgcmV0dXJuIF9zdHIuY2hhckF0KDApLnRvVXBwZXJDYXNlKCkgKyBfc3RyLnNsaWNlKDEpXG4gICAgICAgIH0pLmpvaW4oJyAnKVxuICAgICAgfSBlbHNlIHtcblxuICAgICAgICByZXR1cm5WYWx1ZSA9IHN0ciAmJiAoc3RyLmNoYXJBdCgwKS50b1VwcGVyQ2FzZSgpICsgc3RyLnNsaWNlKDEpKVxuICAgICAgfVxuICAgIH1cbiAgICByZXR1cm4gcmV0dXJuVmFsdWVcbiAgfVxufVxuIl19
|
|
@@ -4869,6 +4869,7 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
4869
4869
|
* @return {?}
|
|
4870
4870
|
*/
|
|
4871
4871
|
results => {
|
|
4872
|
+
debugger;
|
|
4872
4873
|
if (results.result && results.result.content) {
|
|
4873
4874
|
/** @type {?} */
|
|
4874
4875
|
const showViewMore = Boolean(results.result.content && results.result.content.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
@@ -4900,6 +4901,21 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
4900
4901
|
: null;
|
|
4901
4902
|
resolve({ results, viewMoreUrl });
|
|
4902
4903
|
}
|
|
4904
|
+
else if (results.result && results.result.data) {
|
|
4905
|
+
/** @type {?} */
|
|
4906
|
+
const showViewMore = Boolean(results.data && results.result.data && results.result.data.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
4907
|
+
/** @type {?} */
|
|
4908
|
+
const viewMoreUrl = showViewMore ? {
|
|
4909
|
+
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
4910
|
+
queryParams: {
|
|
4911
|
+
tab: 'Learn',
|
|
4912
|
+
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
4913
|
+
f: {},
|
|
4914
|
+
},
|
|
4915
|
+
}
|
|
4916
|
+
: null;
|
|
4917
|
+
resolve({ results, viewMoreUrl });
|
|
4918
|
+
}
|
|
4903
4919
|
}), (/**
|
|
4904
4920
|
* @param {?} error
|
|
4905
4921
|
* @return {?}
|
|
@@ -4935,7 +4951,6 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
4935
4951
|
* @return {?}
|
|
4936
4952
|
*/
|
|
4937
4953
|
results => {
|
|
4938
|
-
console.log(results, 'results=========');
|
|
4939
4954
|
/** @type {?} */
|
|
4940
4955
|
const showViewMore = Boolean(results.result.data && results.result.data.orgList.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
4941
4956
|
/** @type {?} */
|
|
@@ -5017,7 +5032,6 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
5017
5032
|
try {
|
|
5018
5033
|
/** @type {?} */
|
|
5019
5034
|
const response = yield this.getRequestMethod(strip, strip.request.bookmarkRead, strip.request.apiUrl, calculateParentStatus);
|
|
5020
|
-
console.log('calling after - response, ', response);
|
|
5021
5035
|
/** @type {?} */
|
|
5022
5036
|
let content = response.results.result.data.orgList;
|
|
5023
5037
|
if (response) {
|
|
@@ -5140,7 +5154,6 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
5140
5154
|
try {
|
|
5141
5155
|
/** @type {?} */
|
|
5142
5156
|
const response = yield this.getRequestMethod(strip, strip.request.playlistRead, strip.request.apiUrl, calculateParentStatus);
|
|
5143
|
-
console.log('calling after - response, ', response);
|
|
5144
5157
|
if (response && response.results.result.content) {
|
|
5145
5158
|
/** @type {?} */
|
|
5146
5159
|
let content = response.results.result.content;
|
|
@@ -6535,6 +6548,30 @@ class CommonMethodsService {
|
|
|
6535
6548
|
},
|
|
6536
6549
|
})));
|
|
6537
6550
|
}
|
|
6551
|
+
/**
|
|
6552
|
+
* @param {?} str
|
|
6553
|
+
* @param {?=} type
|
|
6554
|
+
* @return {?}
|
|
6555
|
+
*/
|
|
6556
|
+
handleCapitalize(str, type) {
|
|
6557
|
+
/** @type {?} */
|
|
6558
|
+
let returnValue = '';
|
|
6559
|
+
if (str) {
|
|
6560
|
+
if (type === 'name') {
|
|
6561
|
+
returnValue = str.split(' ').map((/**
|
|
6562
|
+
* @param {?} _str
|
|
6563
|
+
* @return {?}
|
|
6564
|
+
*/
|
|
6565
|
+
_str => {
|
|
6566
|
+
return _str.charAt(0).toUpperCase() + _str.slice(1);
|
|
6567
|
+
})).join(' ');
|
|
6568
|
+
}
|
|
6569
|
+
else {
|
|
6570
|
+
returnValue = str && (str.charAt(0).toUpperCase() + str.slice(1));
|
|
6571
|
+
}
|
|
6572
|
+
}
|
|
6573
|
+
return returnValue;
|
|
6574
|
+
}
|
|
6538
6575
|
}
|
|
6539
6576
|
CommonMethodsService.decorators = [
|
|
6540
6577
|
{ type: Injectable, args: [{
|
|
@@ -7543,7 +7580,6 @@ class CardsComponent extends WidgetBaseComponent {
|
|
|
7543
7580
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7544
7581
|
/** @type {?} */
|
|
7545
7582
|
const userProfile = this.configSvc.userProfile;
|
|
7546
|
-
debugger;
|
|
7547
7583
|
if (content.externalId) {
|
|
7548
7584
|
/** @type {?} */
|
|
7549
7585
|
let extUrl = content.redirectUrl.replace('<username>', userProfile.userId)
|
|
@@ -7554,8 +7590,9 @@ class CardsComponent extends WidgetBaseComponent {
|
|
|
7554
7590
|
// const url = this.router.serializeUrl(
|
|
7555
7591
|
// this.router.createUrlTree([extUrl])
|
|
7556
7592
|
// );
|
|
7557
|
-
|
|
7558
|
-
window.open(
|
|
7593
|
+
this.router.navigate([`app/toc/ext/${content.contentId}`]);
|
|
7594
|
+
// window.open(extUrl, '_blank');
|
|
7595
|
+
// window.open(content.redirectUrl)
|
|
7559
7596
|
}
|
|
7560
7597
|
else {
|
|
7561
7598
|
/** @type {?} */
|
|
@@ -7600,7 +7637,7 @@ class CardsComponent extends WidgetBaseComponent {
|
|
|
7600
7637
|
CardsComponent.decorators = [
|
|
7601
7638
|
{ type: Component, args: [{
|
|
7602
7639
|
selector: 'sb-uic-cards',
|
|
7603
|
-
template: "<div class=\"widget-card-content-new\">\n <ng-container *ngIf=\"widgetData && (((widgetData?.deletedMode || 'none') === 'hide' && !!!isLiveOrMarkForDeletion)\n ? false\n : !((widgetData?.intranetMode || 'none') === 'hide' && !!showIntranetContent))\"\n [ngSwitch]=\"( (widgetData && widgetData?.cardSubType) || 'cardPortraitLib')\">\n <ng-container *ngSwitchDefault [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'user-card'\" [ngTemplateOutlet]=\"cardUser\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib'\" [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib-skeleton'\" [ngTemplateOutlet]=\"cardLandscapeLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib'\" [ngTemplateOutlet]=\"cardLandscapeLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib-skeleton'\" [ngTemplateOutlet]=\"cardWideLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib'\" [ngTemplateOutlet]=\"cardWideLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2'\" [ngTemplateOutlet]=\"cardWideV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2-skeleton'\" [ngTemplateOutlet]=\"cardWideV2Skeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib'\" [ngTemplateOutlet]=\"cardMdo\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib-skeleton'\" [ngTemplateOutlet]=\"cardMdoSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib'\" [ngTemplateOutlet]=\"cardKarmaProgram\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-skeleton'\" [ngTemplateOutlet]=\"
|
|
7640
|
+
template: "<div class=\"widget-card-content-new\">\n <ng-container *ngIf=\"widgetData && (((widgetData?.deletedMode || 'none') === 'hide' && !!!isLiveOrMarkForDeletion)\n ? false\n : !((widgetData?.intranetMode || 'none') === 'hide' && !!showIntranetContent))\"\n [ngSwitch]=\"( (widgetData && widgetData?.cardSubType) || 'cardPortraitLib')\">\n <ng-container *ngSwitchDefault [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'user-card'\" [ngTemplateOutlet]=\"cardUser\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib'\" [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib-skeleton'\" [ngTemplateOutlet]=\"cardLandscapeLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib'\" [ngTemplateOutlet]=\"cardLandscapeLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib-skeleton'\" [ngTemplateOutlet]=\"cardWideLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib'\" [ngTemplateOutlet]=\"cardWideLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2'\" [ngTemplateOutlet]=\"cardWideV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2-skeleton'\" [ngTemplateOutlet]=\"cardWideV2Skeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib'\" [ngTemplateOutlet]=\"cardMdo\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib-skeleton'\" [ngTemplateOutlet]=\"cardMdoSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib'\" [ngTemplateOutlet]=\"cardKarmaProgram\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-skeleton'\" [ngTemplateOutlet]=\"cardKarmaProgramSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-v2'\" [ngTemplateOutlet]=\"cardKarmaProgramV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-v2-skeleton'\" [ngTemplateOutlet]=\"cardKarmaProgramV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-ext-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitExtLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-ext-lib'\" [ngTemplateOutlet]=\"cardPortraitExtLib\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #cardPortraitLibSkeleton>\n <sb-uic-card-portrait [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardPortraitLib>\n <sb-uic-card-portrait \n [cbPlanMapData]=\"cbPlanMapData\"\n (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardLandscapeLibSkeleton>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" \n [cbPlanMapData]=\"cbPlanMapData\" [isCardLoading]=\"true\"></sb-uic-card-landscape>\n</ng-template>\n<ng-template #cardLandscapeLib>\n <sb-uic-card-landscape\n (contentData)=\"getRedirectUrlData($event)\"\n (triggerTelemetry)=\"raiseCardClick($event)\"\n [widgetData]=\"widgetData\"\n [cbPlanMapData]=\"cbPlanMapData\"\n [isCardLoading]=\"false\">\n </sb-uic-card-landscape>\n</ng-template>\n\n<ng-template #cardWideLib>\n <sb-uic-card-wide (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n<ng-template #cardWideLibSkeleton>\n <sb-uic-card-wide [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n\n<ng-template #cardWideV2Skeleton>\n <sb-uic-card-wide-v2 [widgetData]=\"widgetData\" [isCardLoading]=\"true\" ></sb-uic-card-wide-v2>\n</ng-template>\n<ng-template #cardWideV2>\n <sb-uic-card-wide-v2\n (contentData)=\"getRedirectUrlData($event)\"\n (triggerTelemetry)=\"raiseCardClick($event)\"\n [cbPlanMapData]=\"cbPlanMapData\"\n [isCardLoading]=\"false\"\n [widgetData]=\"widgetData\">\n </sb-uic-card-wide-v2>\n</ng-template>\n\n<ng-template #cardUser>\n <sb-uic-card-user [widgetData]=\"widgetData\"></sb-uic-card-user>\n</ng-template>\n<ng-template #cardMdo>\n <sb-uic-card-mdo-channel [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel>\n</ng-template>\n<ng-template #cardMdoSkeleton>\n <sb-uic-card-mdo-channel [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel>\n</ng-template>\n<ng-template #cardKarmaProgramSkeleton>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" \n [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-karma-programs>\n</ng-template>\n<ng-template #cardKarmaProgram>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" \n [isCardLoading]=\"false\" [widgetData]=\"widgetData\"></sb-uic-card-karma-programs>\n</ng-template>\n<ng-template #cardKarmaProgramV2>\n <!-- <sb-uic-card-karma-programs-v2 [widgetData]=\"widgetData\"><sb-uic-card-karma-programs-v2> -->\n</ng-template>\n\n<!-- cios card -->\n<ng-template #cardPortraitExtLibSkeleton>\n <sb-uic-card-portrait-ext [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait-ext>\n</ng-template>\n<ng-template #cardPortraitExtLib>\n <sb-uic-card-portrait-ext \n [cbPlanMapData]=\"cbPlanMapData\"\n (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait-ext>\n</ng-template>",
|
|
7604
7641
|
styles: [""]
|
|
7605
7642
|
}] }
|
|
7606
7643
|
];
|
|
@@ -8983,6 +9020,7 @@ class CardKarmaProgramsComponent {
|
|
|
8983
9020
|
this.router = router;
|
|
8984
9021
|
this.randomColorApply = false;
|
|
8985
9022
|
this.userData = new EventEmitter();
|
|
9023
|
+
this.isCardLoading = false;
|
|
8986
9024
|
this.widgetType = '';
|
|
8987
9025
|
this.widgetSubType = '';
|
|
8988
9026
|
this.randomColors = [
|
|
@@ -9061,7 +9099,7 @@ class CardKarmaProgramsComponent {
|
|
|
9061
9099
|
CardKarmaProgramsComponent.decorators = [
|
|
9062
9100
|
{ type: Component, args: [{
|
|
9063
9101
|
selector: 'sb-uic-card-karma-programs',
|
|
9064
|
-
template: "<mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\" [ngStyle]=\"{'background': widgetData?.content?.bgColor}\">\n
|
|
9102
|
+
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\" [ngStyle]=\"{'background': widgetData?.content?.bgColor}\">\n <div class=\"display-contents\">\n <ng-container *ngIf=\"widgetData?.content\">\n <a (click)=\"redirectTo(widgetData?.content);$event.stopPropagation();\">\n <ng-container>\n <mat-card-content class=\"min-top\">\n <div class=\"flex flex-col h-full\">\n <div class=\"image-container\">\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\n <img mat-card-image [src]=\"widgetData?.content?.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.title\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData?.content?.posterImage\">\n <ng-container *ngIf=\"widgetData?.content?.imgSource && widgetData?.content?.imgSource?.length; else defaultImg\">\n <img mat-card-image [src]=\"widgetData?.content?.imgSource[0] | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.title\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData?.content?.title\" />\n </ng-template>\n </ng-container>\n </div>\n <div class=\"title-container\">\n <div class=\"flex px-2\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"flex-1 text-start mat-subheading-2 title-text ws-mat-white-text\">\n {{ widgetData?.content?.title }}\n </div>\n </div>\n <div class=\"flex px-2\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"flex-1 text-start margin-remove margin-top-xxs mat-subheading-2 title-text ws-mat-white-text\">\n {{ widgetData?.content?.children?.length}} Programs\n </div>\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n </mat-card>\n</ng-container>\n<ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\" >\n <div class=\"display-contents\">\n <ng-container >\n <a >\n <ng-container>\n <mat-card-content class=\"min-top\">\n <div class=\"flex flex-col h-full\">\n <div class=\"image-container\">\n <ng-container >\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'100%'\" class=\"w-full h-full\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"title-container\">\n <div class=\"flex px-2\">\n <div class=\"flex-1 text-start mat-subheading-2 title-text ws-mat-white-text\">\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'100%'\" class=\"w-full h-full\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"flex px-2\">\n <div class=\"flex-1 text-start margin-remove margin-top-xxs mat-subheading-2 title-text ws-mat-white-text\">\n <sb-uic-skeleton-loader [width]=\"'120px'\" [height]=\"'100%'\" class=\"w-full h-full\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n </mat-card>\n</ng-container>",
|
|
9065
9103
|
styles: [".card-channels-container{position:relative;width:245px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;min-height:217px;height:217px;max-height:217px;margin:20px 8px;background:#1a4ca1;border-radius:12px}.card-channels-container .min-top{background:inherit;margin-bottom:0;height:inherit}.card-channels-container .image-container{background-color:#fff;width:inherit;height:139px;max-height:139px;overflow:hidden;display:flex;align-items:center;justify-content:center;border-top-left-radius:12px;border-top-right-radius:12px}.card-channels-container .card-img{max-height:100%;min-height:100%;display:block;-o-object-fit:fill;object-fit:fill}.card-channels-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-channels-container .title-container{background:inherit}.card-channels-container .description-text{position:relative;overflow:hidden;height:51px}.card-channels-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;min-height:24px}"]
|
|
9066
9104
|
}] }
|
|
9067
9105
|
];
|
|
@@ -9077,7 +9115,8 @@ CardKarmaProgramsComponent.ctorParameters = () => [
|
|
|
9077
9115
|
CardKarmaProgramsComponent.propDecorators = {
|
|
9078
9116
|
widgetData: [{ type: Input }],
|
|
9079
9117
|
randomColorApply: [{ type: Input }],
|
|
9080
|
-
userData: [{ type: Output }]
|
|
9118
|
+
userData: [{ type: Output }],
|
|
9119
|
+
isCardLoading: [{ type: Input }]
|
|
9081
9120
|
};
|
|
9082
9121
|
if (false) {
|
|
9083
9122
|
/** @type {?} */
|
|
@@ -9087,6 +9126,8 @@ if (false) {
|
|
|
9087
9126
|
/** @type {?} */
|
|
9088
9127
|
CardKarmaProgramsComponent.prototype.userData;
|
|
9089
9128
|
/** @type {?} */
|
|
9129
|
+
CardKarmaProgramsComponent.prototype.isCardLoading;
|
|
9130
|
+
/** @type {?} */
|
|
9090
9131
|
CardKarmaProgramsComponent.prototype.defaultThumbnail;
|
|
9091
9132
|
/** @type {?} */
|
|
9092
9133
|
CardKarmaProgramsComponent.prototype.sourceLogos;
|
|
@@ -9627,7 +9668,7 @@ class CompetencyPassbookComponent {
|
|
|
9627
9668
|
let addfilter = {};
|
|
9628
9669
|
if (this.providerId) {
|
|
9629
9670
|
addfilter = {
|
|
9630
|
-
"
|
|
9671
|
+
"createdFor": [
|
|
9631
9672
|
this.providerId
|
|
9632
9673
|
],
|
|
9633
9674
|
};
|
|
@@ -9666,7 +9707,7 @@ class CompetencyPassbookComponent {
|
|
|
9666
9707
|
this.selectedValue = this.competencyArea[0].name.toLowerCase();
|
|
9667
9708
|
/** @type {?} */
|
|
9668
9709
|
let addFilter = {
|
|
9669
|
-
"
|
|
9710
|
+
"createdFor": [
|
|
9670
9711
|
this.providerId
|
|
9671
9712
|
]
|
|
9672
9713
|
};
|
|
@@ -9723,7 +9764,7 @@ class CompetencyPassbookComponent {
|
|
|
9723
9764
|
let addfilter = {};
|
|
9724
9765
|
if (this.providerId) {
|
|
9725
9766
|
addfilter = {
|
|
9726
|
-
"
|
|
9767
|
+
"createdFor": [
|
|
9727
9768
|
this.providerId
|
|
9728
9769
|
],
|
|
9729
9770
|
};
|