@sunbird-cb/consumption 0.0.41 → 0.0.43
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 +728 -273
- 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 +2 -2
- package/esm2015/lib/_common/cards/card-karma-programs-v2/card-karma-programs-v2.component.js +2 -2
- package/esm2015/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.js +3 -3
- package/esm2015/lib/_common/cards/card-mdo-channel-v1/card-mdo-channel-v1.component.js +3 -3
- package/esm2015/lib/_common/cards/card-wide-v2/card-wide-v2.component.js +1 -1
- package/esm2015/lib/_common/cards/cards.module.js +4 -2
- package/esm2015/lib/_common/competency-passbook-mdo/competency-passbook-mdo.component.js +332 -0
- package/esm2015/lib/_common/competency-passbook-mdo/competency-passbook-mdo.module.js +27 -0
- package/esm2015/lib/_common/competency-passbook-mdo/competency-passbook-mdo.service.js +52 -0
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +1 -2
- package/esm2015/lib/_common/sliders/sliders.component.js +2 -2
- package/esm2015/lib/_services/widget-content.service.js +1 -2
- package/esm2015/public-api.js +2 -1
- package/esm2015/sunbird-cb-consumption.js +17 -15
- package/esm5/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +2 -2
- package/esm5/lib/_common/cards/card-karma-programs-v2/card-karma-programs-v2.component.js +2 -2
- package/esm5/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.js +3 -3
- package/esm5/lib/_common/cards/card-mdo-channel-v1/card-mdo-channel-v1.component.js +3 -3
- package/esm5/lib/_common/cards/card-wide-v2/card-wide-v2.component.js +1 -1
- package/esm5/lib/_common/cards/cards.module.js +4 -2
- package/esm5/lib/_common/competency-passbook-mdo/competency-passbook-mdo.component.js +383 -0
- package/esm5/lib/_common/competency-passbook-mdo/competency-passbook-mdo.module.js +31 -0
- package/esm5/lib/_common/competency-passbook-mdo/competency-passbook-mdo.service.js +59 -0
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +1 -2
- package/esm5/lib/_common/sliders/sliders.component.js +2 -2
- package/esm5/lib/_services/widget-content.service.js +1 -2
- package/esm5/public-api.js +2 -1
- package/esm5/sunbird-cb-consumption.js +17 -15
- package/fesm2015/sunbird-cb-consumption.js +645 -252
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +712 -260
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/competency-passbook-mdo/competency-passbook-mdo.component.d.ts +43 -0
- package/lib/_common/competency-passbook-mdo/competency-passbook-mdo.module.d.ts +2 -0
- package/lib/_common/competency-passbook-mdo/competency-passbook-mdo.service.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/sunbird-cb-consumption.d.ts +15 -13
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -2712,7 +2712,6 @@
|
|
|
2712
2712
|
* @return {?}
|
|
2713
2713
|
*/
|
|
2714
2714
|
function (apiUrl, req) {
|
|
2715
|
-
req.query = req.query || '';
|
|
2716
2715
|
return this.http.post(apiUrl, req);
|
|
2717
2716
|
};
|
|
2718
2717
|
/**
|
|
@@ -5787,7 +5786,6 @@
|
|
|
5787
5786
|
* @return {?}
|
|
5788
5787
|
*/
|
|
5789
5788
|
function (results) {
|
|
5790
|
-
debugger;
|
|
5791
5789
|
if (results.result && results.result.content) {
|
|
5792
5790
|
/** @type {?} */
|
|
5793
5791
|
var showViewMore = Boolean(results.result.content && results.result.content.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
@@ -6559,7 +6557,7 @@
|
|
|
6559
6557
|
SlidersLibComponent.decorators = [
|
|
6560
6558
|
{ type: core.Component, args: [{
|
|
6561
6559
|
selector: 'sb-uic-sliders',
|
|
6562
|
-
template: "<div class=\"banner-container {{isMobile? styleData?.responsive?.bannerMetaClass : styleData?.bannerMetaClass}}\" (swipeleft)=\"slideTo(currentIndex + 1)\" (swiperight)=\"slideTo(currentIndex - 1)\"\n *ngIf=\"widgetData?.length > 1\" [style.height]=\"isMobile? styleData?.responsive?.customHeight : styleData?.customHeight\"\n [ngStyle]=\"{'border-radius': styleData?.borderRadius || '12px'}\">\n <a (click)=\"raiseTelemetry(widgetData[currentIndex].redirectUrl)\"\n class=\"banner-overlay {{widgetData[currentIndex] && widgetData[currentIndex].redirectUrl ? '' : 'pointer-events-none'}}\"\n [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\"\n [ngClass]=\"{'cursor-auto': !widgetData[currentIndex].redirectUrl}\">\n <div class=\"banner WidgetInstanceId\" \n *ngFor=\"let slide of widgetData; let i = index\" \n [hidden]=\"i !== currentIndex\" \n [ngStyle]=\"{\n 'border-width': isMobile? styleData?.responsive?.imageBorderWidth : styleData?.imageBorderWidth,\n 'border-color': isMobile? styleData?.responsive?.imageBorderColor : styleData?.imageBorderColor,\n 'border-style': isMobile? styleData?.responsive?.imageBorderStyle: styleData?.imageBorderStyle}\">\n <img i18n-alt alt=\"Page Banner\" [src]=\"slide.banners\" wsUtilsImageResponsive class=\"banner-image\" />\n </div>\n </a>\n <ng-container *ngIf=\"isMobile && styleData?.responsive?.dots !== 'hidden' || !isMobile && styleData?.dots !== 'hidden'\">\n <div class=\"banner-meta {{isMobile? styleData?.responsive?.bannerMetaAlign : styleData?.bannerMetaAlign}}\">\n <a [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\"\n class=\"banner-title text-truncate {{widgetData[currentIndex] && widgetData[currentIndex].redirectUrl ? '' : 'pointer-events-none'}}\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n </div>\n </div>\n </ng-container>\n <div class=\"navigation {{isMobile? styleData?.responsive?.arrowsPlacement : styleData?.arrowsPlacement}}\" \n *ngIf=\"isMobile && styleData?.responsive?.navigationArrows !== 'hidden' || !isMobile && styleData?.navigationArrows !== 'hidden'\">\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"prev\" (click)=\"slideTo(currentIndex - 1)\">❮</a>\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"next\" (click)=\"slideTo(currentIndex + 1)\">❯</a>\n </div>\n</div>\n<div class=\"banner-container-solo
|
|
6560
|
+
template: "<div class=\"banner-container {{isMobile? styleData?.responsive?.bannerMetaClass : styleData?.bannerMetaClass}}\" (swipeleft)=\"slideTo(currentIndex + 1)\" (swiperight)=\"slideTo(currentIndex - 1)\"\n *ngIf=\"widgetData?.length > 1\" [style.height]=\"isMobile? styleData?.responsive?.customHeight : styleData?.customHeight\"\n [ngStyle]=\"{'border-radius': styleData?.borderRadius || '12px'}\">\n <a (click)=\"raiseTelemetry(widgetData[currentIndex].redirectUrl)\"\n class=\"banner-overlay {{widgetData[currentIndex] && widgetData[currentIndex].redirectUrl ? '' : 'pointer-events-none'}}\"\n [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\"\n [ngClass]=\"{'cursor-auto': !widgetData[currentIndex].redirectUrl}\">\n <div class=\"banner WidgetInstanceId\" \n *ngFor=\"let slide of widgetData; let i = index\" \n [hidden]=\"i !== currentIndex\" \n [ngStyle]=\"{\n 'border-width': isMobile? styleData?.responsive?.imageBorderWidth : styleData?.imageBorderWidth,\n 'border-color': isMobile? styleData?.responsive?.imageBorderColor : styleData?.imageBorderColor,\n 'border-style': isMobile? styleData?.responsive?.imageBorderStyle: styleData?.imageBorderStyle}\">\n <img i18n-alt alt=\"Page Banner\" [src]=\"slide.banners\" wsUtilsImageResponsive class=\"banner-image\" />\n </div>\n </a>\n <ng-container *ngIf=\"isMobile && styleData?.responsive?.dots !== 'hidden' || !isMobile && styleData?.dots !== 'hidden'\">\n <div class=\"banner-meta {{isMobile? styleData?.responsive?.bannerMetaAlign : styleData?.bannerMetaAlign}}\">\n <a [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\"\n class=\"banner-title text-truncate {{widgetData[currentIndex] && widgetData[currentIndex].redirectUrl ? '' : 'pointer-events-none'}}\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n </div>\n </div>\n </ng-container>\n <div class=\"navigation {{isMobile? styleData?.responsive?.arrowsPlacement : styleData?.arrowsPlacement}}\" \n *ngIf=\"isMobile && styleData?.responsive?.navigationArrows !== 'hidden' || !isMobile && styleData?.navigationArrows !== 'hidden'\">\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"prev\" (click)=\"slideTo(currentIndex - 1)\">❮</a>\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"next\" (click)=\"slideTo(currentIndex + 1)\">❯</a>\n </div>\n</div>\n<div class=\"banner-container-solo \" [style.height]=\"isMobile? styleData?.responsive?.customHeight : styleData?.customHeight\" *ngIf=\"widgetData?.length == 1\">\n <img i18n-alt alt=\"Page Banner\" width=\"100%\" height=\"100%\" [src]=\"widgetData[0].banners\" wsUtilsImageResponsive class=\"banner-image-solo\" />\n</div>\n<!-- <div class=\"banner-container\" (swipeleft)=\"slideTo(currentIndex + 1)\" (swiperight)=\"slideTo(currentIndex - 1)\"\n *ngIf=\"widgetData?.length\">\n <a (click)=\"raiseTelemetry(widgetData[currentIndex].redirectUrl)\"\n [queryParams]=\"widgetData[currentIndex].queryParams || {}\"\n [routerLink]=\"!isOpenInNewTab ? widgetData[currentIndex].redirectUrl : './'\" class=\"banner-overlay\"\n [ngClass]=\"{ 'cursor-auto': !widgetData[currentIndex].redirectUrl }\"></a>\n <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\">\n <img i18n-alt alt=\"Page Banner\" [src]=\"slide.banners\" wsUtilsImageResponsive class=\"banner-image\" />\n </div>\n <div class=\"banner-meta\">\n <a [routerLink]=\"!isOpenInNewTab ? widgetData[currentIndex].redirectUrl : './'\" class=\"banner-title text-truncate\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n </div>\n </div>\n <button *ngIf=\"widgetData?.length > 1\" class=\"prev\" aria-label=\"Previous slide\" (click)=\"slideTo(currentIndex - 1)\">\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\">❮</a>\n </button>\n <button *ngIf=\"widgetData?.length > 1\" class=\"next\" (click)=\"slideTo(currentIndex + 1)\" aria-label=\"Next slide\">\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"next\">❯</a>\n </button>\n\n</div> -->\n<ng-container *ngIf=\"!widgetData?.length\">\n <div class=\"slider default-slider h-full\">\n <div class=\"relative h-full\">\n <img class=\"h-full\" src=\"assets/icons/home/default-slider-image.svg\" alt=\"\">\n <div class=\"default-title rounded-full\">\n <p class=\"mat-h1\">{{title}}</p>\n </div>\n </div>\n </div>\n</ng-container>\n",
|
|
6563
6561
|
styles: [".banner-container{min-height:243px;position:relative;margin:auto;padding-bottom:40px}.banner-container.inline-meta{padding-bottom:0!important}.banner-container.flat .banner .banner-image{border-radius:0!important}.banner-overlay{z-index:1;top:0;left:0;width:100%;height:100%;background:linear-gradient(to left,rgba(0,0,0,.25) 0,rgba(0,0,0,0) 15%,rgba(0,0,0,0) 85%,rgba(0,0,0,.25) 100%);border-radius:inherit}.banner{-webkit-animation-name:fade;-webkit-animation-duration:1.5s;animation-name:fade;animation-duration:1.5s;border-radius:inherit;height:inherit}.banner .banner-image{width:100%;min-height:243px;display:block;border-radius:inherit;height:inherit}.banner-meta{text-align:center;z-index:2;padding:8px 12px;position:absolute;bottom:0;left:50%;border-radius:12px;transform:translateX(-50%);box-sizing:border-box}.banner-meta.left{left:0;transform:translateX(0)}.banner-meta.right{left:100%;transform:translateX(-100%)}.banner-meta .banner-title{color:#f2f2f2;margin-bottom:8px;font-size:1.1rem}@media only screen and (max-width:599px){.banner-meta .banner-title{display:none}}.banner-meta .dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.banner-meta .dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:rgba(0,0,0,.4);border-radius:50%;display:inline-block;transition:background-color .5s!important}@media only screen and (max-width:599px){.banner-meta .dots-container .dot{height:8px;width:8px;margin:0 4px}}.banner-meta .dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}@keyframes fade{from{opacity:.25}to{opacity:1}}.next,.prev{cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);color:#fff;font-weight:700;background-color:#1b2133!important;border-radius:50%;z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;margin-top:-16px;justify-content:center}.prev{left:0;margin-left:-16px}.next{right:0;margin-right:-16px}.navigation.bottom-right .prev{left:unset;right:45px;bottom:-15px;top:unset}.navigation.bottom-right .next{left:unset;right:15px;bottom:-15px;top:unset}.navigation.bottom-center .prev{left:calc(50% - 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-center .next{left:calc(50% + 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-left .prev{left:15px;right:unset;bottom:-15px;top:unset}.navigation.bottom-left .next{left:60px;right:unset;bottom:-15px;top:unset}.navigation.middle-inline .prev{left:30px}.navigation.middle-inline .next{right:30px}.banner-container-solo{overflow:hidden;margin:auto;border-radius:12px}.banner-image-solo{width:100%;display:block;border-radius:12px}.default-slider{height:100%;background:#d4e2fb}.default-slider .default-title{text-align:center;position:absolute;top:50%;left:0;right:0;margin:auto;transform:translateY(-50%);z-index:999;background:#e6efff;padding:32px;width:500px}.default-slider .default-title p{word-break:break-word;margin:0!important;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-transform:uppercase}@media screen and (max-width:768px){.default-slider{height:384px;width:100%}.default-slider .default-title{width:unset!important}}"]
|
|
6564
6562
|
}] }
|
|
6565
6563
|
];
|
|
@@ -10168,8 +10166,8 @@
|
|
|
10168
10166
|
CardMDOChannelComponent.decorators = [
|
|
10169
10167
|
{ type: core.Component, args: [{
|
|
10170
10168
|
selector: 'sb-uic-card-mdo-channel',
|
|
10171
|
-
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(widgetData?.content); redirectTo(widgetData?.content); $event.stopPropagation()\"\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
|
|
10172
|
-
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:156px;height:156px;max-height:156px;margin:20px 8px;background:#7faeff!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:86px;max-height:86px;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:2;-webkit-box-orient:vertical
|
|
10169
|
+
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(widgetData?.content); redirectTo(widgetData?.content); $event.stopPropagation()\"\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?.imgUrl; else defaultImg\">\n <img mat-card-image [src]=\"widgetData?.content?.imgUrl\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.orgName\" />\n </ng-container>\n <ng-template #defaultImg>\n <sb-uic-avatar-photo [randomColor]=\"true\" [name]=\"widgetData?.content?.orgName\" [photoUrl]=\"widgetData?.content?.imgUrl\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </ng-template>\n </div>\n <div class=\"flex title-container px-2\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"flex-1 text-center mat-subheading-2 title-text ws-mat-black-text\">\n {{ widgetData?.content?.orgName }}\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n</mat-card>",
|
|
10170
|
+
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:156px;height:156px;max-height:156px;margin:20px 8px;background:#7faeff!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:86px;max-height:86px;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:2;-webkit-box-orient:vertical}@media screen and (max-width:768px){.card-channels-container{width:100%;margin:0}}"]
|
|
10173
10171
|
}] }
|
|
10174
10172
|
];
|
|
10175
10173
|
/** @nocollapse */
|
|
@@ -10325,7 +10323,7 @@
|
|
|
10325
10323
|
{ type: core.Component, args: [{
|
|
10326
10324
|
selector: 'sb-uic-card-wide-v2',
|
|
10327
10325
|
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-wide-v2 padding-remove position-relative flex {{widgetData?.cardCustomeClass}}\">\n <div class=\"imageholder \">\n <img mat-card-image class=\"margin-remove\"\n [src]=\"widgetData?.content?.posterImage || widgetData?.content?.appIcon | pipePublicURL\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.name\">\n <div class=\"source-div\" [hidden]=\"true\">\n <img [src]=\"widgetData?.content?.creatorLogo\" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData?.content?.identifier)\" />\n </div>\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\"> {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}</span>\n </div>\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>\n <mat-card-content class=\"mat-text-box mb-0\">\n <div class=\"course_widget flex flex-between margin-remove\">\n <div class=\"flex flex-end course_v2\">\n <ng-container *ngIf=\"widgetData?.content?.contentType === 'Resource' || widgetData?.content?.contentType === 'Course' || widgetData?.content?.contentType === 'Module'\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <span class=\"ws-mat-black60-text font-normal mat-caption \">\n {{widgetData?.content?.primaryCategory || widgetData?.content?.contentType}}\n <!-- {{ translateLabel(widgetData.content.primaryCategory || widgetData.content.contentType, 'searchfilters') }} -->\n </span>\n </ng-container>\n </div>\n </div>\n\n <div class=\"flex main_title_box\">\n <p class=\"mat-subheading-1 title-text font-bold-imp cursor-pointer content-title\">\n <a (click)=\"raiseTelemetry(widgetData?.content);getRedirectUrlData(widgetData?.content); $event.stopPropagation()\">\n {{widgetData?.content?.name}}\n </a>\n </p>\n </div>\n\n <div class=\"bottomsection\">\n <div class=\"flex w-full flex-wrap flex-middle provider\">\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\">By \n <!-- {{'cardcontentv2.by' | translate}} -->\n {{widgetData?.content?.organisation[0] }}</span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-xs\">\n <div class=\"flex flex-middle\" *ngIf=\"widgetData?.content?.avgRating\">\n <mat-icon>star</mat-icon>\n <span class=\"rating-number\">{{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\">{{ 'cardcontentv2.mostEnrolled' | translate }}</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\">{{ 'cardcontentv2.mostTrending' | translate }}</span> -->\n </ng-container>\n </div>\n </div>\n </mat-card-content>\n </mat-card>\n <ng-template #cbpPlan let-data=\"data\">\n <div class=\"cbp-mark left-0 border-top-radius\">\n <p *ngIf=\"data?.cbpData?.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{data?.cbpData?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data?.cbpData?.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{data?.cbpData?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data?.cbpData?.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">{{'OverDue' }}</p>\n </div>\n </ng-template>\n</ng-container>\n <ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"card-wide-v2 padding-remove position-relative flex\">\n <div class=\"\">\n <sb-uic-skeleton-loader [width]=\"'300px'\" [height]=\"'100%'\" class=\"h-full\" [bindingClass]=\"'flex rounded h-full min-height-width'\"></sb-uic-skeleton-loader>\n </div>\n <mat-card-content class=\"mat-text-box\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end \">\n <sb-uic-skeleton-loader [width]=\"'100px'\" [height]=\"'21px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n \n <div class=\"flex main_title_box\">\n <!-- <p class=\"mat-subheading-1 title-text font-bold-imp cursor-pointer content-title\"> -->\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'21px'\" class=\"w-full h-full mt-2\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n <!-- </p> -->\n </div>\n \n <div class=\"bottomsection\">\n <div class=\"flex w-full flex-wrap flex-middle\">\n <div class=\"course_logo_box mr-2\">\n <sb-uic-skeleton-loader [width]=\"'28px'\" [height]=\"'28px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <sb-uic-skeleton-loader [width]=\"'100px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-xs\">\n <div class=\"flex flex-middle mr-2\">\n <sb-uic-skeleton-loader [width]=\"'50px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <sb-uic-skeleton-loader [width]=\"'80px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </mat-card-content>\n </mat-card>\n </ng-container>",
|
|
10328
|
-
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}.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}.card-wide-v2{border-radius:12px;max-width:100%;min-width:784px;display:flex;background-color:#fff}.card-wide-v2 .title-text{word-break:break-all;white-space:initial;margin:8px 0 4px;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:40px}.card-wide-v2 .course_logo_box{width:
|
|
10326
|
+
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}.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}.card-wide-v2{border-radius:12px;max-width:100%;min-width:784px;display:flex;background-color:#fff}.card-wide-v2 .title-text{word-break:break-all;white-space:initial;margin:8px 0 4px;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:40px}.card-wide-v2 .course_logo_box{width:38px;height:38px;background:#fff;border-radius:4px;box-sizing:border-box;border:1px solid rgba(0,0,0,.16)}.card-wide-v2 .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block;-o-object-fit:cover;object-fit:cover}.card-wide-v2 .course_logo_box p{display:inline-block;vertical-align:top}.card-wide-v2 .org-text{font-size:14px;font-weight:400;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-wide-v2 .rating-session mat-icon{font-size:20px;height:20px;width:20px;color:#ef951e}.card-wide-v2 .rating-session .rating-number{font-size:14px}.card-wide-v2 .rating-session .most-enrolled-text{font-size:12px;padding:0 10px;background:#ffea9e;border-radius:4px}.card-wide-v2 .highlight_point_text{margin-top:15px}.card-wide-v2 ul.highlighting_list li{display:inline-block;padding-right:10px}.card-wide-v2 ul.highlighting_list li .rating-number{letter-spacing:0;color:#f69953}.card-wide-v2 ul.highlighting_list li.rating .mat-icon{width:16px;height:16px;display:inline-table;color:#f69953;font-size:18px;vertical-align:text-bottom}.card-wide-v2 img.text_seperator{vertical-align:middle}.card-wide-v2 .mat-text-box{padding:12px 12px 11px;box-sizing:border-box;width:calc(100% - 315px)}@media (max-width:992px){.card-wide-v2 .mat-text-box{width:66%;padding:8px;position:relative;height:auto}}.card-wide-v2 .mat-text-box p.mat-caption .mat-icon{vertical-align:middle;height:18px!important;width:16px!important;font-size:16px!important;line-height:1.2}.card-wide-v2 .mat-text-box p.mat-caption .title_icon{vertical-align:middle}.card-wide-v2 .imageholder{width:310px;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center}.card-wide-v2 .imageholder img{width:100%;display:block;border-radius:10px 0 0 10px;height:100%;max-height:172px;-o-object-fit:cover;object-fit:cover;vertical-align:middle}@media (max-width:992px){.card-wide-v2 .imageholder{width:34%;height:auto}.card-wide-v2 .imageholder img{height:auto}}.card-wide-v2 .imageholder .source-div{position:absolute;top:12px;right:12px;background:#fff;z-index:3;border:1px solid #dedfe0;min-width:98px;min-height:32px;max-width:98px;max-height:32px;display:flex;border-radius:16px;display:inline-flex}.card-wide-v2 .imageholder .source-div .source-icon{border-radius:8px;display:block;margin:auto;max-width:58px;max-height:-webkit-fill-available}.card-wide-v2 .main_title_box{height:60px}.card-wide-v2 p.actionbtns{margin-bottom:0}.card-wide-v2 .contenticon{vertical-align:middle;margin-right:6px;width:16px;max-height:16px}@media only screen and (min-width:600px) and (max-width:959px){.card-wide-v2{min-width:auto;display:flex;flex-direction:column;min-width:calc(100vw - 32px)}.card-wide-v2 .imageholder,.card-wide-v2 .mat-text-box{width:100%}.card-wide-v2 .provider{flex-wrap:nowrap}}@media only screen and (max-width:599px){.card-wide-v2{min-width:auto;display:flex;flex-direction:column;min-width:calc(100vw - 32px)}.card-wide-v2 .imageholder,.card-wide-v2 .mat-text-box{width:100%}.card-wide-v2 .provider{flex-wrap:nowrap}}.cbp-mark{border-radius:12px 0;opacity:1;background-image:linear-gradient(90deg,rgba(0,0,0,.6) 0,rgba(0,0,0,0) 100%);position:absolute;top:0;padding:8px}.cbp-mark p{opacity:1;background-color:#fff;padding:4px;opacity:1;color:#1b2133;font-family:Lato-Regular;font-size:10px;font-weight:400;font-style:Regular;letter-spacing:.5px;text-align:left;line-height:12px;margin-bottom:0}.cbpwidth{width:340px}.cbp-plan{border-radius:4px;opacity:1;background-color:#1b4ca1;top:4px;left:4px;opacity:1;color:rgba(255,255,255,.95);font-family:Lato-Bold;font-size:12px;font-weight:700;font-style:normal;letter-spacing:.25px;text-align:center;line-height:16px;padding:4px}.cbp-info{opacity:1;color:#fff;font-family:Lato-Regular;font-size:10px;font-weight:400;font-style:normal;letter-spacing:.5px;text-align:left;line-height:12px;padding:2px}.cbp-danger{border-radius:2px;border:1px solid rgba(0,0,0,.08);background-color:#d13924!important;color:#fff!important;opacity:1}.cbp-success{border-radius:2px;border:1px solid #1d8922;background-color:#1d8922!important;color:#fff!important;opacity:1}.cbp-warning{border-radius:2px;border:1px solid #ef951e;background-color:#ef951e!important;color:#fff!important;opacity:1}.min-width-763{min-width:763px;background-color:#fff}.mb-0{margin-bottom:0!important}"]
|
|
10329
10327
|
}] }
|
|
10330
10328
|
];
|
|
10331
10329
|
/** @nocollapse */
|
|
@@ -10515,7 +10513,7 @@
|
|
|
10515
10513
|
CardKarmaProgramsComponent.decorators = [
|
|
10516
10514
|
{ type: core.Component, args: [{
|
|
10517
10515
|
selector: 'sb-uic-card-karma-programs',
|
|
10518
|
-
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?.
|
|
10516
|
+
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?.imgSource && widgetData?.content?.imgSource?.length ; else defaultImg\">\n <img mat-card-image [src]=\"widgetData?.content?.imgSource[0]\" 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 <sb-uic-avatar-photo [randomColor]=\"true\" [name]=\"widgetData?.content?.title\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </ng-template>\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>",
|
|
10519
10517
|
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}"]
|
|
10520
10518
|
}] }
|
|
10521
10519
|
];
|
|
@@ -10692,7 +10690,7 @@
|
|
|
10692
10690
|
CardKarmaProgramsV2Component.decorators = [
|
|
10693
10691
|
{ type: core.Component, args: [{
|
|
10694
10692
|
selector: 'sb-uic-card-karma-programs-v2',
|
|
10695
|
-
template: "<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-row md:flex-col h-full\">\n <div class=\"image-container\">\n <ng-container *ngIf=\"widgetData?.content?.
|
|
10693
|
+
template: "<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-row md:flex-col h-full\">\n <div class=\"image-container\">\n <ng-container *ngIf=\"widgetData?.content?.imgSource && widgetData?.content?.imgSource?.length ; else defaultImg\">\n <img mat-card-image [src]=\"widgetData?.content?.imgSource[0]\" 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 <sb-uic-avatar-photo [randomColor]=\"true\" [name]=\"widgetData?.content?.title\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </ng-template>\n </div>\n <div class=\"flex items-center\">\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 </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n</mat-card>",
|
|
10696
10694
|
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:233px;height:233px;max-height:233px;margin:0 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:156px;max-height:156px;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}@media screen and (max-width:768px){.card-channels-container{width:100%;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;min-height:unset;height:unset;max-height:unset;margin:0;padding:8px!important}.image-container{background-color:#fff;width:155px!important;min-width:155px!important;max-width:155px!important;height:106px!important;max-height:106px!important;border-radius:12px}}"]
|
|
10697
10695
|
}] }
|
|
10698
10696
|
];
|
|
@@ -11013,8 +11011,8 @@
|
|
|
11013
11011
|
CardMdoChannelV1Component.decorators = [
|
|
11014
11012
|
{ type: core.Component, args: [{
|
|
11015
11013
|
selector: 'sb-uic-card-mdo-channel-v1',
|
|
11016
|
-
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(widgetData?.content); redirectTo(widgetData?.content); $event.stopPropagation()\"\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
|
|
11017
|
-
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:156px;height:156px;max-height:156px;margin:20px 8px;background:#7faeff!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:86px;max-height:86px;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:2;-webkit-box-orient:vertical
|
|
11014
|
+
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(widgetData?.content); redirectTo(widgetData?.content); $event.stopPropagation()\"\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?.imgUrl; else defaultImg\">\n <img mat-card-image [src]=\"widgetData?.content?.imgUrl\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.orgName\" />\n </ng-container>\n <ng-template #defaultImg>\n <sb-uic-avatar-photo [randomColor]=\"true\" [name]=\"widgetData?.content?.orgName\" [photoUrl]=\"widgetData?.content?.imgUrl\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </ng-template>\n </div>\n <div class=\"flex title-container px-2\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"flex-1 text-center mat-subheading-2 title-text ws-mat-black-text\">\n {{ widgetData?.content?.orgName }}\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n</mat-card>",
|
|
11015
|
+
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:156px;height:156px;max-height:156px;margin:20px 8px;background:#7faeff!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:86px;max-height:86px;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:2;-webkit-box-orient:vertical}"]
|
|
11018
11016
|
}] }
|
|
11019
11017
|
];
|
|
11020
11018
|
/** @nocollapse */
|
|
@@ -11079,6 +11077,205 @@
|
|
|
11079
11077
|
CardMdoChannelV1Component.prototype.router;
|
|
11080
11078
|
}
|
|
11081
11079
|
|
|
11080
|
+
/**
|
|
11081
|
+
* @fileoverview added by tsickle
|
|
11082
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11083
|
+
*/
|
|
11084
|
+
var AvatarPhotoLibComponent = /** @class */ (function () {
|
|
11085
|
+
function AvatarPhotoLibComponent() {
|
|
11086
|
+
this.size = '';
|
|
11087
|
+
this.defaulfColor = '';
|
|
11088
|
+
this.randomColor = false;
|
|
11089
|
+
this.showBadge = false;
|
|
11090
|
+
this.showInitials = false;
|
|
11091
|
+
this.random = Math.random().toString(36).slice(2);
|
|
11092
|
+
// public initials!: string
|
|
11093
|
+
this.colors = [
|
|
11094
|
+
'#EB7181',
|
|
11095
|
+
'#306933',
|
|
11096
|
+
'#000000',
|
|
11097
|
+
'#3670B2',
|
|
11098
|
+
'#4E9E87',
|
|
11099
|
+
'#7E4C8D',
|
|
11100
|
+
];
|
|
11101
|
+
this.randomcolors = [
|
|
11102
|
+
'#EB7181',
|
|
11103
|
+
'#006400',
|
|
11104
|
+
'#000000',
|
|
11105
|
+
'#3670B2',
|
|
11106
|
+
'#4E9E87',
|
|
11107
|
+
'#7E4C8D',
|
|
11108
|
+
];
|
|
11109
|
+
}
|
|
11110
|
+
/**
|
|
11111
|
+
* @return {?}
|
|
11112
|
+
*/
|
|
11113
|
+
AvatarPhotoLibComponent.prototype.ngOnInit = /**
|
|
11114
|
+
* @return {?}
|
|
11115
|
+
*/
|
|
11116
|
+
function () {
|
|
11117
|
+
if (!this.photoUrl) {
|
|
11118
|
+
this.showInitials = true;
|
|
11119
|
+
if (!this.initials) {
|
|
11120
|
+
this.createInititals();
|
|
11121
|
+
}
|
|
11122
|
+
if (this.datalen === 1) {
|
|
11123
|
+
if (this.defaulfColor) {
|
|
11124
|
+
this.randomcolors = [
|
|
11125
|
+
this.defaulfColor
|
|
11126
|
+
];
|
|
11127
|
+
}
|
|
11128
|
+
else {
|
|
11129
|
+
this.randomcolors = [
|
|
11130
|
+
'#006400',
|
|
11131
|
+
];
|
|
11132
|
+
}
|
|
11133
|
+
}
|
|
11134
|
+
/** @type {?} */
|
|
11135
|
+
var randomIndex = Math.floor(Math.random() * Math.floor(this.colors.length));
|
|
11136
|
+
this.circleColor = this.colors[randomIndex];
|
|
11137
|
+
if (this.randomColor) {
|
|
11138
|
+
/** @type {?} */
|
|
11139
|
+
var randomIndex1 = Math.floor(Math.random() * Math.floor(this.randomcolors.length));
|
|
11140
|
+
this.circleColor = this.randomcolors[randomIndex1];
|
|
11141
|
+
}
|
|
11142
|
+
}
|
|
11143
|
+
};
|
|
11144
|
+
/**
|
|
11145
|
+
* @param {?} change
|
|
11146
|
+
* @return {?}
|
|
11147
|
+
*/
|
|
11148
|
+
AvatarPhotoLibComponent.prototype.ngOnChanges = /**
|
|
11149
|
+
* @param {?} change
|
|
11150
|
+
* @return {?}
|
|
11151
|
+
*/
|
|
11152
|
+
function (change) {
|
|
11153
|
+
if (change.name.currentValue !== change.name.previousValue && !change.name.firstChange) {
|
|
11154
|
+
this.createInititals();
|
|
11155
|
+
}
|
|
11156
|
+
};
|
|
11157
|
+
Object.defineProperty(AvatarPhotoLibComponent.prototype, "userInitials", {
|
|
11158
|
+
get: /**
|
|
11159
|
+
* @return {?}
|
|
11160
|
+
*/
|
|
11161
|
+
function () {
|
|
11162
|
+
return this.initials;
|
|
11163
|
+
},
|
|
11164
|
+
enumerable: true,
|
|
11165
|
+
configurable: true
|
|
11166
|
+
});
|
|
11167
|
+
/**
|
|
11168
|
+
* @private
|
|
11169
|
+
* @return {?}
|
|
11170
|
+
*/
|
|
11171
|
+
AvatarPhotoLibComponent.prototype.createInititals = /**
|
|
11172
|
+
* @private
|
|
11173
|
+
* @return {?}
|
|
11174
|
+
*/
|
|
11175
|
+
function () {
|
|
11176
|
+
/** @type {?} */
|
|
11177
|
+
var initials = '';
|
|
11178
|
+
/** @type {?} */
|
|
11179
|
+
var array = (this.name + " ").toString().split(' ');
|
|
11180
|
+
if (array[0] !== 'undefined' && typeof array[1] !== 'undefined') {
|
|
11181
|
+
initials += array[0].charAt(0);
|
|
11182
|
+
initials += array[1].charAt(0);
|
|
11183
|
+
}
|
|
11184
|
+
else {
|
|
11185
|
+
for (var i = 0; i < this.name.length; i += 1) {
|
|
11186
|
+
if (this.name.charAt(i) === ' ') {
|
|
11187
|
+
continue;
|
|
11188
|
+
}
|
|
11189
|
+
if (this.name.charAt(i) === this.name.charAt(i)) {
|
|
11190
|
+
initials += this.name.charAt(i);
|
|
11191
|
+
if (initials.length === 2) {
|
|
11192
|
+
break;
|
|
11193
|
+
}
|
|
11194
|
+
}
|
|
11195
|
+
}
|
|
11196
|
+
}
|
|
11197
|
+
this.initials = initials.toUpperCase();
|
|
11198
|
+
};
|
|
11199
|
+
AvatarPhotoLibComponent.decorators = [
|
|
11200
|
+
{ type: core.Component, args: [{
|
|
11201
|
+
selector: 'sb-uic-avatar-photo',
|
|
11202
|
+
template: "<div id=\"user_icon\" [ngClass]=\"{'circle-s' : size=== 's',\n'circle-m' : size=== 'm',\n'circle-l' : size=== 'l',\n'circle-xl' : size=== 'xl',\n'circle-xxl' : size=== 'xxl',\n'circle-l-xs' : size=== 'l-xs',\n'circle-l-s' : size=== 'l-s',\n'circle-xl-s' : size=== 'xl-s',\n'circle-r-m': size=== 'round-m',\n'circle-r-p-m': size=== 'profile-round-m',\n'circle-m-side': size=== 'm-side',\n'circle-r-m-48': size=== 'm-side-rating',\n'circle-m-recommended': size==='m-recommended',\n'circle-xxl-s': size=== 'xxl-s'}\" [ngStyle]=\"{'background-color': circleColor }\">\n <img *ngIf=\"!showInitials\" loading=\"lazy\" src=\"{{photoUrl}}\" [alt]=\"photoUrl? '' :(name || userInitials || size || random)\">\n\n <div *ngIf=\"showInitials\" class=\"initials\" i18n-aria-label>\n {{ userInitials }} \n </div>\n <div *ngIf=\"showBadge\"><span class=\"profile-badge\"> \n <img src=\"fusion-assets/images/profile-badge.png\">\n </span></div>\n\n <!-- <div *ngIf=\"imageType === 'user-photo'\">\n <img *ngIf=\"imageUrl\" [src]=\"imageUrl\" alt=\"user-image\" class=\"user-image\" [ngClass]=\"{'user-image-small': imageSize === 'small'}\">\n <div class=\"user-image\" [ngClass]=\"{'user-image-small': imageSize === 'small'}\">\n <span class=\"name-initials-image font-normal ws-mat-primary-default-text ws-mat-accent-background\"\n *ngIf=\"!imageUrl\">{{ shortName }}</span>\n </div>\n </div> -->\n</div>",
|
|
11203
|
+
styles: ["@charset \"UTF-8\";.success-checkmark::after{content:\"\u2714\";position:absolute;left:25px;top:20px;width:11px;height:11px;border:1px solid #1d8923;background:#1d8923;border-radius:50%;color:#fff;line-height:11px;text-align:center;font-size:9px}.profile-badge{position:absolute;top:10px;right:0}.profile-badge img{height:15px!important;width:15px!important}.circle-s{border-radius:50%;width:24px;height:24px;display:flex;justify-content:center;align-items:center}.circle-s img{border-radius:50%;width:100%;height:100%}.circle-s .initials{color:#fff;font-size:10px;line-height:12px;letter-spacing:.2625px}.circle-m{border-radius:50%;width:72px!important;height:72px!important;display:flex;justify-content:center;align-items:center;margin-top:-36px}.circle-m img{border-radius:10%;width:40px;height:40px}.circle-m .initials{color:#fff;font-size:14px;line-height:19px;letter-spacing:.2625px}.circle-l{border-radius:50%;width:80px;height:80px;display:flex;justify-content:center;align-items:center}.circle-l img{border-radius:10%;width:80px;height:80px}.circle-l .initials{color:#fff;font-size:20px;line-height:19px;letter-spacing:.2625px}.circle-xl{border-radius:50%;width:105px;height:105px;display:flex;justify-content:center;align-items:center}.circle-xl img{border-radius:10%;width:105px;height:105px}.circle-xl .initials{color:#fff;font-size:20px;line-height:19px;letter-spacing:.2625px}.circle-xxl{border-radius:50%;width:145px;height:145px;display:flex;justify-content:center;align-items:center}.circle-xxl img{border-radius:10%;width:145px;height:145px}.circle-xxl .initials{color:#fff;font-size:20px;line-height:19px;letter-spacing:.2625px}.circle-l-xs{border-radius:50%;width:29px;height:29px;display:flex;justify-content:center;align-items:center}.circle-l-xs img{border-radius:50%;width:100%;height:100%}.circle-l-xs .initials{color:#fff;font-size:12px;line-height:12px;letter-spacing:.2625px}.circle-l-s{border-radius:50%;width:80px;height:80px;display:flex;justify-content:center;align-items:center}.circle-l-s img{border-radius:4px;width:80px;height:80px}.circle-l-s .initials{color:#fff;font-size:24px;line-height:24px;letter-spacing:.2625px}.circle-xl-s{border-radius:50%;width:125px;height:125px;display:flex;justify-content:center;align-items:center}.circle-xl-s img{border-radius:4px;width:152px;height:125px}.circle-xl-s .initials{color:#fff;font-size:32px;line-height:32px;letter-spacing:.2625px}.circle-xxl-s{border-radius:50%;width:208px;height:208px;display:flex;justify-content:center;align-items:center}.circle-xxl-s img{border-radius:50%;width:100%;height:100%}.circle-xxl-s .initials{color:#fff;font-size:40px;line-height:40px;letter-spacing:.2625px}.circle-r-m{border-radius:50%;width:50px;height:50px;display:flex;justify-content:center;align-items:center}.circle-r-m img{border-radius:50%;width:100%;height:100%}.circle-r-m .initials{color:#fff;font-size:16px;line-height:40px;letter-spacing:.2625px}.circle-r-m-48{border-radius:50%;width:48px;height:48px;display:flex;justify-content:center;align-items:center}.circle-r-m-48 img{border-radius:50%;width:100%;height:100%}.circle-r-m-48 .initials{color:#fff;font-size:16px;line-height:40px;letter-spacing:.2625px}.circle-r-p-m{border-radius:50%;width:40px;height:40px;display:flex;justify-content:center;align-items:center}.circle-r-p-m img{border-radius:50%;width:100%;height:100%}.circle-r-p-m .initials{color:#fff;font-size:16px;line-height:40px;letter-spacing:.2625px}.circle-m-side{border-radius:50%;width:72px!important;height:72px!important;display:flex;justify-content:center;align-items:center}.circle-m-side img{border-radius:10%;width:40px;height:40px}.circle-m-side .initials{color:#fff;font-size:14px;line-height:19px;letter-spacing:.2625px}@media only screen and (max-width:960px){.circle-xxl-s{width:100px;height:100px}.circle-xxl-s .initials{font-size:24px;line-height:24px}}.circle-m-recommended{border-radius:50%;width:72px!important;height:72px!important;display:flex;justify-content:center;align-items:center;margin-top:-49px}.circle-m-recommended img{border-radius:10%;width:40px;height:40px}.circle-m-recommended .initials{color:#fff;font-size:14px;line-height:19px;letter-spacing:.2625px}.circle-l-s::before{content:\"\";border:1px solid red}"]
|
|
11204
|
+
}] }
|
|
11205
|
+
];
|
|
11206
|
+
AvatarPhotoLibComponent.propDecorators = {
|
|
11207
|
+
datalen: [{ type: core.Input }],
|
|
11208
|
+
photoUrl: [{ type: core.Input }],
|
|
11209
|
+
name: [{ type: core.Input }],
|
|
11210
|
+
size: [{ type: core.Input }],
|
|
11211
|
+
defaulfColor: [{ type: core.Input }],
|
|
11212
|
+
randomColor: [{ type: core.Input }],
|
|
11213
|
+
initials: [{ type: core.Input }],
|
|
11214
|
+
showBadge: [{ type: core.Input }]
|
|
11215
|
+
};
|
|
11216
|
+
return AvatarPhotoLibComponent;
|
|
11217
|
+
}());
|
|
11218
|
+
if (false) {
|
|
11219
|
+
/** @type {?} */
|
|
11220
|
+
AvatarPhotoLibComponent.prototype.datalen;
|
|
11221
|
+
/** @type {?} */
|
|
11222
|
+
AvatarPhotoLibComponent.prototype.photoUrl;
|
|
11223
|
+
/** @type {?} */
|
|
11224
|
+
AvatarPhotoLibComponent.prototype.name;
|
|
11225
|
+
/** @type {?} */
|
|
11226
|
+
AvatarPhotoLibComponent.prototype.size;
|
|
11227
|
+
/** @type {?} */
|
|
11228
|
+
AvatarPhotoLibComponent.prototype.defaulfColor;
|
|
11229
|
+
/** @type {?} */
|
|
11230
|
+
AvatarPhotoLibComponent.prototype.randomColor;
|
|
11231
|
+
/** @type {?} */
|
|
11232
|
+
AvatarPhotoLibComponent.prototype.initials;
|
|
11233
|
+
/** @type {?} */
|
|
11234
|
+
AvatarPhotoLibComponent.prototype.showBadge;
|
|
11235
|
+
/** @type {?} */
|
|
11236
|
+
AvatarPhotoLibComponent.prototype.showInitials;
|
|
11237
|
+
/** @type {?} */
|
|
11238
|
+
AvatarPhotoLibComponent.prototype.circleColor;
|
|
11239
|
+
/** @type {?} */
|
|
11240
|
+
AvatarPhotoLibComponent.prototype.random;
|
|
11241
|
+
/**
|
|
11242
|
+
* @type {?}
|
|
11243
|
+
* @private
|
|
11244
|
+
*/
|
|
11245
|
+
AvatarPhotoLibComponent.prototype.colors;
|
|
11246
|
+
/**
|
|
11247
|
+
* @type {?}
|
|
11248
|
+
* @private
|
|
11249
|
+
*/
|
|
11250
|
+
AvatarPhotoLibComponent.prototype.randomcolors;
|
|
11251
|
+
}
|
|
11252
|
+
|
|
11253
|
+
/**
|
|
11254
|
+
* @fileoverview added by tsickle
|
|
11255
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11256
|
+
*/
|
|
11257
|
+
var AvatarPhotoLibModule = /** @class */ (function () {
|
|
11258
|
+
function AvatarPhotoLibModule() {
|
|
11259
|
+
}
|
|
11260
|
+
AvatarPhotoLibModule.decorators = [
|
|
11261
|
+
{ type: core.NgModule, args: [{
|
|
11262
|
+
declarations: [AvatarPhotoLibComponent],
|
|
11263
|
+
imports: [
|
|
11264
|
+
common.CommonModule,
|
|
11265
|
+
router.RouterModule,
|
|
11266
|
+
material.MatButtonModule,
|
|
11267
|
+
material.MatIconModule,
|
|
11268
|
+
material.MatMenuModule,
|
|
11269
|
+
material.MatRippleModule,
|
|
11270
|
+
resolverV2.SbUiResolverModule,
|
|
11271
|
+
],
|
|
11272
|
+
exports: [AvatarPhotoLibComponent],
|
|
11273
|
+
entryComponents: [AvatarPhotoLibComponent],
|
|
11274
|
+
},] }
|
|
11275
|
+
];
|
|
11276
|
+
return AvatarPhotoLibModule;
|
|
11277
|
+
}());
|
|
11278
|
+
|
|
11082
11279
|
/**
|
|
11083
11280
|
* @fileoverview added by tsickle
|
|
11084
11281
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -11112,7 +11309,8 @@
|
|
|
11112
11309
|
DisplayContentTypeLibModule,
|
|
11113
11310
|
DefaultThumbnailModule,
|
|
11114
11311
|
PipeDurationTransformModule,
|
|
11115
|
-
SkeletonLoaderLibModule
|
|
11312
|
+
SkeletonLoaderLibModule,
|
|
11313
|
+
AvatarPhotoLibModule
|
|
11116
11314
|
],
|
|
11117
11315
|
entryComponents: [CardsComponent],
|
|
11118
11316
|
exports: [
|
|
@@ -11768,65 +11966,518 @@
|
|
|
11768
11966
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11769
11967
|
*/
|
|
11770
11968
|
/** @type {?} */
|
|
11771
|
-
var
|
|
11772
|
-
|
|
11773
|
-
|
|
11774
|
-
* @param {?} contentType
|
|
11775
|
-
* @param {?} userId
|
|
11776
|
-
* @return {?}
|
|
11777
|
-
*/
|
|
11778
|
-
function (contentId, contentType, userId) {
|
|
11779
|
-
return PROXY_SLAG_V8 + "/ratings/v1/read/" + contentId + "/" + contentType + "/" + userId;
|
|
11780
|
-
}, ɵ1$2 = /**
|
|
11781
|
-
* @param {?} contentId
|
|
11782
|
-
* @param {?} contentType
|
|
11783
|
-
* @return {?}
|
|
11784
|
-
*/
|
|
11785
|
-
function (contentId, contentType) {
|
|
11786
|
-
return PROXY_SLAG_V8 + "/ratings/v1/summary/" + contentId + "/" + contentType;
|
|
11787
|
-
}, ɵ2$2 = /**
|
|
11788
|
-
* @param {?} contentId
|
|
11789
|
-
* @param {?} userID
|
|
11790
|
-
* @return {?}
|
|
11791
|
-
*/
|
|
11792
|
-
function (contentId, userID) {
|
|
11793
|
-
return PROXY_SLAG_V8 + "/ratings/v1/read/" + contentId + "/Course/" + userID;
|
|
11794
|
-
};
|
|
11795
|
-
/** @type {?} */
|
|
11796
|
-
var API_END_POINTS$3 = {
|
|
11797
|
-
GET_RATING: (ɵ0$3),
|
|
11798
|
-
ADD_OR_UPDATE: PROXY_SLAG_V8 + "/ratings/v1/upsert",
|
|
11799
|
-
GET_RATING_SUMMARY: (ɵ1$2),
|
|
11800
|
-
GET_RATING_LOOKUP: PROXY_SLAG_V8 + "/ratings/v1/ratingLookUp",
|
|
11801
|
-
GET_AUTHOR_REPLY: (ɵ2$2),
|
|
11802
|
-
POST_AUTHOR_REPLY: PROXY_SLAG_V8 + "/ratings/v2/read",
|
|
11969
|
+
var API_POINTS$1 = {
|
|
11970
|
+
COMPETENCY_LIST: "apis/proxies/v8/competency/v4/search",
|
|
11971
|
+
competency_URL: "apis/proxies/v8/v1/search/competenciesByOrg/",
|
|
11803
11972
|
};
|
|
11804
|
-
var
|
|
11805
|
-
|
|
11973
|
+
var CompetencyPassbookMdoService = /** @class */ (function () {
|
|
11974
|
+
// tslint: disable-next-line: whitespace
|
|
11975
|
+
function CompetencyPassbookMdoService(http) {
|
|
11806
11976
|
this.http = http;
|
|
11807
11977
|
}
|
|
11808
11978
|
/**
|
|
11809
|
-
* @param {?}
|
|
11810
|
-
* @param {?} contentType
|
|
11811
|
-
* @param {?} userId
|
|
11979
|
+
* @param {?} payload
|
|
11812
11980
|
* @return {?}
|
|
11813
11981
|
*/
|
|
11814
|
-
|
|
11815
|
-
* @param {?}
|
|
11816
|
-
* @param {?} contentType
|
|
11817
|
-
* @param {?} userId
|
|
11982
|
+
CompetencyPassbookMdoService.prototype.getCompetencyList = /**
|
|
11983
|
+
* @param {?} payload
|
|
11818
11984
|
* @return {?}
|
|
11819
11985
|
*/
|
|
11820
|
-
function (
|
|
11821
|
-
|
|
11822
|
-
var forPreview = window.location.href.includes('/public/') || window.location.href.includes('&preview=true');
|
|
11823
|
-
if (!forPreview) {
|
|
11824
|
-
return this.http.get(API_END_POINTS$3.GET_RATING(contentId, contentType, userId));
|
|
11825
|
-
}
|
|
11826
|
-
return rxjs.of({});
|
|
11986
|
+
function (payload) {
|
|
11987
|
+
return this.http.post(API_POINTS$1.COMPETENCY_LIST, payload);
|
|
11827
11988
|
};
|
|
11828
11989
|
/**
|
|
11829
|
-
* @param {?}
|
|
11990
|
+
* @param {?} providerId
|
|
11991
|
+
* @return {?}
|
|
11992
|
+
*/
|
|
11993
|
+
CompetencyPassbookMdoService.prototype.mdoCompetency = /**
|
|
11994
|
+
* @param {?} providerId
|
|
11995
|
+
* @return {?}
|
|
11996
|
+
*/
|
|
11997
|
+
function (providerId) {
|
|
11998
|
+
return this.http.get(API_POINTS$1.competency_URL + providerId);
|
|
11999
|
+
};
|
|
12000
|
+
CompetencyPassbookMdoService.decorators = [
|
|
12001
|
+
{ type: core.Injectable, args: [{ providedIn: 'root' },] }
|
|
12002
|
+
];
|
|
12003
|
+
/** @nocollapse */
|
|
12004
|
+
CompetencyPassbookMdoService.ctorParameters = function () { return [
|
|
12005
|
+
{ type: http.HttpClient }
|
|
12006
|
+
]; };
|
|
12007
|
+
/** @nocollapse */ CompetencyPassbookMdoService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function CompetencyPassbookMdoService_Factory() { return new CompetencyPassbookMdoService(core.ɵɵinject(http.HttpClient)); }, token: CompetencyPassbookMdoService, providedIn: "root" });
|
|
12008
|
+
return CompetencyPassbookMdoService;
|
|
12009
|
+
}());
|
|
12010
|
+
if (false) {
|
|
12011
|
+
/**
|
|
12012
|
+
* @type {?}
|
|
12013
|
+
* @private
|
|
12014
|
+
*/
|
|
12015
|
+
CompetencyPassbookMdoService.prototype.http;
|
|
12016
|
+
}
|
|
12017
|
+
|
|
12018
|
+
/**
|
|
12019
|
+
* @fileoverview added by tsickle
|
|
12020
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
12021
|
+
*/
|
|
12022
|
+
var CompetencyPassbookMdoComponent = /** @class */ (function () {
|
|
12023
|
+
// subTheme = ['Behavioural']
|
|
12024
|
+
// currentFilter = 'Behavioural'
|
|
12025
|
+
// currentCompetencies: any = []
|
|
12026
|
+
// competencyData: any
|
|
12027
|
+
function CompetencyPassbookMdoComponent(configSvc, contentSvc, competencySvc, router) {
|
|
12028
|
+
this.configSvc = configSvc;
|
|
12029
|
+
this.contentSvc = contentSvc;
|
|
12030
|
+
this.competencySvc = competencySvc;
|
|
12031
|
+
this.router = router;
|
|
12032
|
+
this.cardDisplayCount = 3;
|
|
12033
|
+
this.dynamicAlignPills = 'center';
|
|
12034
|
+
this.emptyResponse = new core.EventEmitter();
|
|
12035
|
+
this.temeletryResponse = new core.EventEmitter();
|
|
12036
|
+
this.loadCometency = false;
|
|
12037
|
+
this.loadCompetencyArea = false;
|
|
12038
|
+
this.competencyVersion = '';
|
|
12039
|
+
this.competencyTheme = [];
|
|
12040
|
+
this.allcompetencyTheme = {};
|
|
12041
|
+
this.competencyStrength = 0;
|
|
12042
|
+
this.competencyThemeLength = 6;
|
|
12043
|
+
this.showAllTheme = [{ name: 'Show all', showAll: false }];
|
|
12044
|
+
}
|
|
12045
|
+
/**
|
|
12046
|
+
* @return {?}
|
|
12047
|
+
*/
|
|
12048
|
+
CompetencyPassbookMdoComponent.prototype.ngOnInit = /**
|
|
12049
|
+
* @return {?}
|
|
12050
|
+
*/
|
|
12051
|
+
function () {
|
|
12052
|
+
this.getAllCompetencies();
|
|
12053
|
+
};
|
|
12054
|
+
/**
|
|
12055
|
+
* @return {?}
|
|
12056
|
+
*/
|
|
12057
|
+
CompetencyPassbookMdoComponent.prototype.getAllCompetencies = /**
|
|
12058
|
+
* @return {?}
|
|
12059
|
+
*/
|
|
12060
|
+
function () {
|
|
12061
|
+
var _this = this;
|
|
12062
|
+
this.loadCometency = true;
|
|
12063
|
+
/** @type {?} */
|
|
12064
|
+
var request = { "search": { "type": "Competency Area" }, "filter": { "isDetail": true } };
|
|
12065
|
+
this.competencySvc.getCompetencyList(request).subscribe((/**
|
|
12066
|
+
* @param {?} response
|
|
12067
|
+
* @return {?}
|
|
12068
|
+
*/
|
|
12069
|
+
function (response) {
|
|
12070
|
+
_this.allcompetencyTheme = {};
|
|
12071
|
+
if (response && response.result && response.result.competency) {
|
|
12072
|
+
_this.originalCompetencyArray = response.result.competency;
|
|
12073
|
+
_this.getMdoCompetencies();
|
|
12074
|
+
// this.getCompetencyArea()
|
|
12075
|
+
response.result.competency.forEach((/**
|
|
12076
|
+
* @param {?} element
|
|
12077
|
+
* @return {?}
|
|
12078
|
+
*/
|
|
12079
|
+
function (element) {
|
|
12080
|
+
element.children.forEach((/**
|
|
12081
|
+
* @param {?} childEle
|
|
12082
|
+
* @return {?}
|
|
12083
|
+
*/
|
|
12084
|
+
function (childEle) {
|
|
12085
|
+
/** @type {?} */
|
|
12086
|
+
var name = childEle.name.toLowerCase();
|
|
12087
|
+
_this.allcompetencyTheme[name] = childEle;
|
|
12088
|
+
_this.allcompetencyTheme[name]['viewMore'] = false;
|
|
12089
|
+
}));
|
|
12090
|
+
}));
|
|
12091
|
+
}
|
|
12092
|
+
_this.loadCometency = false;
|
|
12093
|
+
}));
|
|
12094
|
+
};
|
|
12095
|
+
/**
|
|
12096
|
+
* @return {?}
|
|
12097
|
+
*/
|
|
12098
|
+
CompetencyPassbookMdoComponent.prototype.getMdoCompetencies = /**
|
|
12099
|
+
* @return {?}
|
|
12100
|
+
*/
|
|
12101
|
+
function () {
|
|
12102
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12103
|
+
var response, facetData, error_1;
|
|
12104
|
+
var _this = this;
|
|
12105
|
+
return __generator(this, function (_a) {
|
|
12106
|
+
switch (_a.label) {
|
|
12107
|
+
case 0:
|
|
12108
|
+
_a.trys.push([0, 2, , 3]);
|
|
12109
|
+
this.loadCometency = true;
|
|
12110
|
+
return [4 /*yield*/, this.getMdoCompetency()];
|
|
12111
|
+
case 1:
|
|
12112
|
+
response = _a.sent();
|
|
12113
|
+
if (response && response.results) {
|
|
12114
|
+
if (response.results.result.facets && response.results.result.facets.length) {
|
|
12115
|
+
facetData = response.results.result.facets;
|
|
12116
|
+
facetData.forEach((/**
|
|
12117
|
+
* @param {?} facet
|
|
12118
|
+
* @return {?}
|
|
12119
|
+
*/
|
|
12120
|
+
function (facet) {
|
|
12121
|
+
if (facet.name === 'competencies_v5.competencyArea') {
|
|
12122
|
+
_this.competencyArea = facet.values;
|
|
12123
|
+
_this.selectedValue = facet.values[0].name;
|
|
12124
|
+
}
|
|
12125
|
+
else if (facet.name === 'competencies_v5.competencyTheme') {
|
|
12126
|
+
_this.competencyThemeData = facet.values;
|
|
12127
|
+
_this.getCompetencyTheme();
|
|
12128
|
+
}
|
|
12129
|
+
}));
|
|
12130
|
+
}
|
|
12131
|
+
else {
|
|
12132
|
+
this.emptyResponse.emit(true);
|
|
12133
|
+
}
|
|
12134
|
+
this.loadCometency = false;
|
|
12135
|
+
}
|
|
12136
|
+
return [3 /*break*/, 3];
|
|
12137
|
+
case 2:
|
|
12138
|
+
error_1 = _a.sent();
|
|
12139
|
+
// Handle errors
|
|
12140
|
+
// console.error('Error:', error);
|
|
12141
|
+
this.emptyResponse.emit(true);
|
|
12142
|
+
return [3 /*break*/, 3];
|
|
12143
|
+
case 3: return [2 /*return*/];
|
|
12144
|
+
}
|
|
12145
|
+
});
|
|
12146
|
+
});
|
|
12147
|
+
};
|
|
12148
|
+
/**
|
|
12149
|
+
* @return {?}
|
|
12150
|
+
*/
|
|
12151
|
+
CompetencyPassbookMdoComponent.prototype.getCompetencyTheme = /**
|
|
12152
|
+
* @return {?}
|
|
12153
|
+
*/
|
|
12154
|
+
function () {
|
|
12155
|
+
var _this = this;
|
|
12156
|
+
this.originalCompetencyArray.forEach((/**
|
|
12157
|
+
* @param {?} element
|
|
12158
|
+
* @return {?}
|
|
12159
|
+
*/
|
|
12160
|
+
function (element) {
|
|
12161
|
+
if (element.name.toLowerCase() === _this.selectedValue) {
|
|
12162
|
+
_this.competencyTheme = _this.competencyThemeData.filter((/**
|
|
12163
|
+
* @param {?} ele1
|
|
12164
|
+
* @return {?}
|
|
12165
|
+
*/
|
|
12166
|
+
function (ele1) {
|
|
12167
|
+
return element.children.find((/**
|
|
12168
|
+
* @param {?} ele2
|
|
12169
|
+
* @return {?}
|
|
12170
|
+
*/
|
|
12171
|
+
function (ele2) { return ele2.name.toLowerCase() === ele1.name.toLowerCase(); }));
|
|
12172
|
+
}));
|
|
12173
|
+
_this.showAllTheme = [{ name: 'Show all', showAll: false }];
|
|
12174
|
+
_this.competencyThemeLength = 6;
|
|
12175
|
+
}
|
|
12176
|
+
else if ('Behavioral'.toLowerCase() === _this.selectedValue) {
|
|
12177
|
+
_this.competencyTheme = _this.competencyThemeData.filter((/**
|
|
12178
|
+
* @param {?} ele1
|
|
12179
|
+
* @return {?}
|
|
12180
|
+
*/
|
|
12181
|
+
function (ele1) {
|
|
12182
|
+
return element.children.find((/**
|
|
12183
|
+
* @param {?} ele2
|
|
12184
|
+
* @return {?}
|
|
12185
|
+
*/
|
|
12186
|
+
function (ele2) { return ele2.name.toLowerCase() === ele1.name.toLowerCase(); }));
|
|
12187
|
+
}));
|
|
12188
|
+
_this.showAllTheme = [{ name: 'Show all', showAll: false }];
|
|
12189
|
+
_this.competencyThemeLength = 6;
|
|
12190
|
+
}
|
|
12191
|
+
}));
|
|
12192
|
+
this.resetViewMore();
|
|
12193
|
+
};
|
|
12194
|
+
/**
|
|
12195
|
+
* @return {?}
|
|
12196
|
+
*/
|
|
12197
|
+
CompetencyPassbookMdoComponent.prototype.getMdoCompetency = /**
|
|
12198
|
+
* @return {?}
|
|
12199
|
+
*/
|
|
12200
|
+
function () {
|
|
12201
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12202
|
+
var _this = this;
|
|
12203
|
+
return __generator(this, function (_a) {
|
|
12204
|
+
return [2 /*return*/, new Promise((/**
|
|
12205
|
+
* @param {?} resolve
|
|
12206
|
+
* @param {?} reject
|
|
12207
|
+
* @return {?}
|
|
12208
|
+
*/
|
|
12209
|
+
function (resolve, reject) {
|
|
12210
|
+
if (_this.providerId) {
|
|
12211
|
+
_this.competencySvc.mdoCompetency(_this.providerId).subscribe((/**
|
|
12212
|
+
* @param {?} results
|
|
12213
|
+
* @return {?}
|
|
12214
|
+
*/
|
|
12215
|
+
function (results) {
|
|
12216
|
+
resolve({ results: results });
|
|
12217
|
+
}), (/**
|
|
12218
|
+
* @param {?} error
|
|
12219
|
+
* @return {?}
|
|
12220
|
+
*/
|
|
12221
|
+
function (error) {
|
|
12222
|
+
reject(error);
|
|
12223
|
+
}));
|
|
12224
|
+
}
|
|
12225
|
+
}))];
|
|
12226
|
+
});
|
|
12227
|
+
});
|
|
12228
|
+
};
|
|
12229
|
+
// competency theam change
|
|
12230
|
+
// competency theam change
|
|
12231
|
+
/**
|
|
12232
|
+
* @param {?} e
|
|
12233
|
+
* @return {?}
|
|
12234
|
+
*/
|
|
12235
|
+
CompetencyPassbookMdoComponent.prototype.competencyChange =
|
|
12236
|
+
// competency theam change
|
|
12237
|
+
/**
|
|
12238
|
+
* @param {?} e
|
|
12239
|
+
* @return {?}
|
|
12240
|
+
*/
|
|
12241
|
+
function (e) {
|
|
12242
|
+
/** @type {?} */
|
|
12243
|
+
var addfilter = {};
|
|
12244
|
+
if (this.providerId) {
|
|
12245
|
+
addfilter = {
|
|
12246
|
+
"createdFor": [
|
|
12247
|
+
this.providerId
|
|
12248
|
+
],
|
|
12249
|
+
};
|
|
12250
|
+
}
|
|
12251
|
+
this.temeletryResponse.emit(e.name);
|
|
12252
|
+
this.selectedValue = e.name;
|
|
12253
|
+
this.getCompetencyTheme();
|
|
12254
|
+
};
|
|
12255
|
+
/**
|
|
12256
|
+
* @return {?}
|
|
12257
|
+
*/
|
|
12258
|
+
CompetencyPassbookMdoComponent.prototype.resetViewMore = /**
|
|
12259
|
+
* @return {?}
|
|
12260
|
+
*/
|
|
12261
|
+
function () {
|
|
12262
|
+
var _this = this;
|
|
12263
|
+
Object.keys(this.allcompetencyTheme).forEach((/**
|
|
12264
|
+
* @param {?} comp
|
|
12265
|
+
* @return {?}
|
|
12266
|
+
*/
|
|
12267
|
+
function (comp) {
|
|
12268
|
+
_this.allcompetencyTheme[comp]['viewMore'] = false;
|
|
12269
|
+
}));
|
|
12270
|
+
};
|
|
12271
|
+
/**
|
|
12272
|
+
* @param {?} data
|
|
12273
|
+
* @return {?}
|
|
12274
|
+
*/
|
|
12275
|
+
CompetencyPassbookMdoComponent.prototype.viewMoreChildren = /**
|
|
12276
|
+
* @param {?} data
|
|
12277
|
+
* @return {?}
|
|
12278
|
+
*/
|
|
12279
|
+
function (data) {
|
|
12280
|
+
data.viewMore = !data.viewMore;
|
|
12281
|
+
this.allcompetencyTheme[data.name.toLowerCase()].viewMore = data.viewMore;
|
|
12282
|
+
};
|
|
12283
|
+
/**
|
|
12284
|
+
* @param {?} event
|
|
12285
|
+
* @return {?}
|
|
12286
|
+
*/
|
|
12287
|
+
CompetencyPassbookMdoComponent.prototype.displayAllTheme = /**
|
|
12288
|
+
* @param {?} event
|
|
12289
|
+
* @return {?}
|
|
12290
|
+
*/
|
|
12291
|
+
function (event) {
|
|
12292
|
+
this.showAllTheme[0]['showAll'] = !event.showAll;
|
|
12293
|
+
this.competencyThemeLength = event.showAll ? this.competencyTheme.length : 6;
|
|
12294
|
+
this.showAllTheme[0]['name'] = event.showAll ? 'Show less' : 'Show all';
|
|
12295
|
+
this.temeletryResponse.emit(event.name);
|
|
12296
|
+
};
|
|
12297
|
+
/**
|
|
12298
|
+
* @param {?} compData
|
|
12299
|
+
* @return {?}
|
|
12300
|
+
*/
|
|
12301
|
+
CompetencyPassbookMdoComponent.prototype.navigateToCompetency = /**
|
|
12302
|
+
* @param {?} compData
|
|
12303
|
+
* @return {?}
|
|
12304
|
+
*/
|
|
12305
|
+
function (compData) {
|
|
12306
|
+
this.router.navigateByUrl("app/learn/browse-by/competency/" + compData.name);
|
|
12307
|
+
};
|
|
12308
|
+
/**
|
|
12309
|
+
* @return {?}
|
|
12310
|
+
*/
|
|
12311
|
+
CompetencyPassbookMdoComponent.prototype.showMore = /**
|
|
12312
|
+
* @return {?}
|
|
12313
|
+
*/
|
|
12314
|
+
function () {
|
|
12315
|
+
this.objectData.viewMore = !this.objectData.viewMore;
|
|
12316
|
+
};
|
|
12317
|
+
CompetencyPassbookMdoComponent.decorators = [
|
|
12318
|
+
{ type: core.Component, args: [{
|
|
12319
|
+
selector: 'sb-uic-competency-passbook-mdo',
|
|
12320
|
+
template: "<div class=\"competency-title\" *ngIf=\"objectData?.title\">{{objectData?.title}} \n <span class=\"competency-count\">\n ({{competencyStrength}})\n </span>\n</div>\n<div class=\"flex items-center justify-{{dynamicAlignPills}} gap-8 mt-5 mb-5 competency-filters\">\n <sb-uic-pills [pillsData]=\"competencyArea\" [dynamicColor]=\"dynamicColor\"\n [isLoading]=\"loadCompetencyArea\" (pillClick)=\"competencyChange($event)\" [selectedValue]=\"selectedValue\"></sb-uic-pills>\n</div>\n<div class=\"grid grid-cols-1 md:grid-cols-{{cardDisplayCount}} w-full grid-flow-row gap-5\" *ngIf=\"!loadCometency\">\n <div class=\"competency-card\" *ngFor=\"let obj of competencyTheme| slice:0:competencyThemeLength\">\n <div class=\"flex-1 flex-col\">\n <div class=\"competency-theme\"></div>\n <div class=\"details flex flex-col\">\n <div class=\"flex flex-col p-4\">\n <div class=\"flex flex-row cursor-pointer\">\n <div class=\"flex flex-row gap-2 items-center\">\n <div class=\"name\">{{allcompetencyTheme[obj?.name]?.name}}</div>\n <!-- <div class=\"flex items-baseline\">\n <img src=\"assets/icons/competency/cp-arrow.svg\" class=\"arrow-img cursor-pointer\" alt=\"cp arrow img\" (click)=\"navigateToCompetency(obj)\" />\n </div> -->\n </div>\n </div>\n <div class=\"flex flex-row pt-3 pb-3 description\">\n {{ allcompetencyTheme[obj.name]?.description }} \n </div>\n <div class=\"flex flex-row gap-3 items-center\">\n <mat-icon class=\"content-icon\">school</mat-icon>\n <div class=\"no-of-contents\">{{obj.count}} Contents</div>\n </div>\n <div class=\"line mt-3 mt-2\"></div>\n <div class=\"flex flex-wrap gap-3 pt-4 chip-container\">\n <ng-container *ngFor=\"let child of allcompetencyTheme[obj.name]?.children| slice:0: allcompetencyTheme[obj.name]?.viewMore ? allcompetencyTheme[obj.name]?.children?.length : 3; let i = index\">\n <div class=\"chip rounded-full p-2 text-xs chip-ellipsis\" [title]=\"child?.name\" >\n {{ child.name }}\n </div>\n </ng-container>\n <div class=\"p-2 info-btn cursor-pointer\"\n *ngIf=\"allcompetencyTheme[obj.name]?.children.length > 3 && !allcompetencyTheme[obj.name]?.viewMore\" (click)=\"viewMoreChildren(allcompetencyTheme[obj.name])\">\n View more\n </div>\n <div class=\"p-2 info-btn cursor-pointer\"\n *ngIf=\"allcompetencyTheme[obj.name]?.children.length > 3 && allcompetencyTheme[obj.name]?.viewMore\" (click)=\"viewMoreChildren(allcompetencyTheme[obj.name])\">\n View less\n </div>\n </div>\n </div> \n </div>\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"competencyTheme.length > 6 && !loadCometency\">\n <div class=\"flex items-center justify-center gap-8 mt-5 mb-5 competency-filters\">\n <sb-uic-pills [pillsData]=\"showAllTheme\" [requiredTitlecase]=\"false\" [dynamicColor]=\"dynamicColor\" (pillClick)=\"displayAllTheme($event)\"></sb-uic-pills>\n </div>\n</ng-container> \n\n<ng-container *ngIf=\"loadCometency\">\n\n<div class=\"grid grid-cols-1 md:grid-cols-{{cardDisplayCount}} w-full grid-flow-row gap-5\">\n <div *ngFor=\"let obj of [0,1,2,3,4,5]\">\n <div class=\"flex-1 flex-col\">\n <div class=\"competency-theme\"></div>\n <div class=\"details flex flex-col\">\n <div class=\"flex flex-col p-4\">\n <div class=\"flex flex-row cursor-pointer\">\n <div class=\"flex flex-row gap-2 items-center w-full\">\n <div class=\"name w-full\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-2'\" [width]=\"'100%'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded'\" [width]=\"'80%'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n <div class=\"pt-3 pb-3 description\">\n <sb-uic-skeleton-loader class=\"w-full\" [bindingClass]=\"'flex rounded mb-2'\" [width]=\"'100%'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader class=\"w-full\" [bindingClass]=\"'flex rounded'\" [width]=\"'80%'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-row gap-3 items-center\">\n <mat-icon class=\"content-icon\"><sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-2'\" [width]=\"'24px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader></mat-icon>\n <div class=\"no-of-contents\"><sb-uic-skeleton-loader [bindingClass]=\"'flex rounded '\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader></div>\n </div>\n <div class=\"line mt-3 mt-2\"></div>\n <div class=\"flex flex-wrap gap-3 pt-4 chip-container\">\n <sb-uic-skeleton-loader class=\"w-2/5\" [bindingClass]=\"'flex rounded '\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader class=\"w-2/5\" [bindingClass]=\"'flex rounded '\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader class=\"w-2/5\" [bindingClass]=\"'flex rounded '\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div> \n </div>\n </div>\n </div>\n</div>\n</ng-container>",
|
|
12321
|
+
styles: [".competencies-backgroud{background-color:#1b2133}.competency-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left;color:#fff}.competency-count{color:#f3962f}.filter-button{padding:12px 16px;border-radius:50px;border:1px solid #fff;font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;background-color:transparent;color:#fff;cursor:pointer}.filter-button.active{background:#1b4ca1}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-background{background:#1b4ca1}.competency-theme{height:16px;border-top-left-radius:12px;border-top-right-radius:12px;background-color:#f8b861}.details{background-color:#fff;border-radius:12px;position:relative;top:-8px;min-height:278px}.name{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.description{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left;height:42px;display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.no-of-contents{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;color:#1b4ca1}.content-icon{color:#1b4ca1}.line{border-top:1px solid #e2dddd}.chip{padding:8px 16px;gap:8px;border-radius:50px;border:1px solid #1b4ca1;color:#1b4ca1;font-family:Lato;font-size:14px;font-weight:700;text-align:center}.chip-ellipsis{white-space:nowrap;max-width:110px;overflow:hidden;text-overflow:ellipsis}.info-btn{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;opacity:.7;padding:12px 5px}.hide{display:none}.behavioral{background-color:#f8b861}.functional{background-color:#e24577}.domain{background-color:#7b47a4}.competency-card{z-index:999}"]
|
|
12322
|
+
}] }
|
|
12323
|
+
];
|
|
12324
|
+
/** @nocollapse */
|
|
12325
|
+
CompetencyPassbookMdoComponent.ctorParameters = function () { return [
|
|
12326
|
+
{ type: utilsV2.ConfigurationsService },
|
|
12327
|
+
{ type: WidgetContentService },
|
|
12328
|
+
{ type: CompetencyPassbookMdoService },
|
|
12329
|
+
{ type: router.Router }
|
|
12330
|
+
]; };
|
|
12331
|
+
CompetencyPassbookMdoComponent.propDecorators = {
|
|
12332
|
+
objectData: [{ type: core.Input }],
|
|
12333
|
+
providerId: [{ type: core.Input }],
|
|
12334
|
+
cardDisplayCount: [{ type: core.Input }],
|
|
12335
|
+
dynamicClass: [{ type: core.Input }],
|
|
12336
|
+
dynamicColor: [{ type: core.Input }],
|
|
12337
|
+
dynamicAlignPills: [{ type: core.Input }],
|
|
12338
|
+
emptyResponse: [{ type: core.Output }],
|
|
12339
|
+
temeletryResponse: [{ type: core.Output }]
|
|
12340
|
+
};
|
|
12341
|
+
return CompetencyPassbookMdoComponent;
|
|
12342
|
+
}());
|
|
12343
|
+
if (false) {
|
|
12344
|
+
/** @type {?} */
|
|
12345
|
+
CompetencyPassbookMdoComponent.prototype.objectData;
|
|
12346
|
+
/** @type {?} */
|
|
12347
|
+
CompetencyPassbookMdoComponent.prototype.providerId;
|
|
12348
|
+
/** @type {?} */
|
|
12349
|
+
CompetencyPassbookMdoComponent.prototype.cardDisplayCount;
|
|
12350
|
+
/** @type {?} */
|
|
12351
|
+
CompetencyPassbookMdoComponent.prototype.dynamicClass;
|
|
12352
|
+
/** @type {?} */
|
|
12353
|
+
CompetencyPassbookMdoComponent.prototype.dynamicColor;
|
|
12354
|
+
/** @type {?} */
|
|
12355
|
+
CompetencyPassbookMdoComponent.prototype.dynamicAlignPills;
|
|
12356
|
+
/** @type {?} */
|
|
12357
|
+
CompetencyPassbookMdoComponent.prototype.emptyResponse;
|
|
12358
|
+
/** @type {?} */
|
|
12359
|
+
CompetencyPassbookMdoComponent.prototype.temeletryResponse;
|
|
12360
|
+
/** @type {?} */
|
|
12361
|
+
CompetencyPassbookMdoComponent.prototype.loadCometency;
|
|
12362
|
+
/** @type {?} */
|
|
12363
|
+
CompetencyPassbookMdoComponent.prototype.loadCompetencyArea;
|
|
12364
|
+
/** @type {?} */
|
|
12365
|
+
CompetencyPassbookMdoComponent.prototype.originalCompetencyArray;
|
|
12366
|
+
/** @type {?} */
|
|
12367
|
+
CompetencyPassbookMdoComponent.prototype.competencyArea;
|
|
12368
|
+
/** @type {?} */
|
|
12369
|
+
CompetencyPassbookMdoComponent.prototype.selectedValue;
|
|
12370
|
+
/** @type {?} */
|
|
12371
|
+
CompetencyPassbookMdoComponent.prototype.competencyVersion;
|
|
12372
|
+
/** @type {?} */
|
|
12373
|
+
CompetencyPassbookMdoComponent.prototype.competencyThemeData;
|
|
12374
|
+
/** @type {?} */
|
|
12375
|
+
CompetencyPassbookMdoComponent.prototype.competencyTheme;
|
|
12376
|
+
/** @type {?} */
|
|
12377
|
+
CompetencyPassbookMdoComponent.prototype.allcompetencyTheme;
|
|
12378
|
+
/** @type {?} */
|
|
12379
|
+
CompetencyPassbookMdoComponent.prototype.competencyStrength;
|
|
12380
|
+
/** @type {?} */
|
|
12381
|
+
CompetencyPassbookMdoComponent.prototype.competencyThemeLength;
|
|
12382
|
+
/** @type {?} */
|
|
12383
|
+
CompetencyPassbookMdoComponent.prototype.showAllTheme;
|
|
12384
|
+
/** @type {?} */
|
|
12385
|
+
CompetencyPassbookMdoComponent.prototype.configSvc;
|
|
12386
|
+
/** @type {?} */
|
|
12387
|
+
CompetencyPassbookMdoComponent.prototype.contentSvc;
|
|
12388
|
+
/** @type {?} */
|
|
12389
|
+
CompetencyPassbookMdoComponent.prototype.competencySvc;
|
|
12390
|
+
/** @type {?} */
|
|
12391
|
+
CompetencyPassbookMdoComponent.prototype.router;
|
|
12392
|
+
}
|
|
12393
|
+
|
|
12394
|
+
/**
|
|
12395
|
+
* @fileoverview added by tsickle
|
|
12396
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
12397
|
+
*/
|
|
12398
|
+
var CompetencyPassbookMdoModule = /** @class */ (function () {
|
|
12399
|
+
function CompetencyPassbookMdoModule() {
|
|
12400
|
+
}
|
|
12401
|
+
CompetencyPassbookMdoModule.decorators = [
|
|
12402
|
+
{ type: core.NgModule, args: [{
|
|
12403
|
+
declarations: [CompetencyPassbookMdoComponent],
|
|
12404
|
+
imports: [
|
|
12405
|
+
common.CommonModule,
|
|
12406
|
+
material.MatIconModule,
|
|
12407
|
+
PillsModule,
|
|
12408
|
+
SkeletonLoaderLibModule
|
|
12409
|
+
],
|
|
12410
|
+
exports: [CompetencyPassbookMdoComponent],
|
|
12411
|
+
providers: [CompetencyPassbookMdoService]
|
|
12412
|
+
},] }
|
|
12413
|
+
];
|
|
12414
|
+
return CompetencyPassbookMdoModule;
|
|
12415
|
+
}());
|
|
12416
|
+
|
|
12417
|
+
/**
|
|
12418
|
+
* @fileoverview added by tsickle
|
|
12419
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
12420
|
+
*/
|
|
12421
|
+
/** @type {?} */
|
|
12422
|
+
var PROXY_SLAG_V8 = '/apis/proxies/v8';
|
|
12423
|
+
var ɵ0$3 = /**
|
|
12424
|
+
* @param {?} contentId
|
|
12425
|
+
* @param {?} contentType
|
|
12426
|
+
* @param {?} userId
|
|
12427
|
+
* @return {?}
|
|
12428
|
+
*/
|
|
12429
|
+
function (contentId, contentType, userId) {
|
|
12430
|
+
return PROXY_SLAG_V8 + "/ratings/v1/read/" + contentId + "/" + contentType + "/" + userId;
|
|
12431
|
+
}, ɵ1$2 = /**
|
|
12432
|
+
* @param {?} contentId
|
|
12433
|
+
* @param {?} contentType
|
|
12434
|
+
* @return {?}
|
|
12435
|
+
*/
|
|
12436
|
+
function (contentId, contentType) {
|
|
12437
|
+
return PROXY_SLAG_V8 + "/ratings/v1/summary/" + contentId + "/" + contentType;
|
|
12438
|
+
}, ɵ2$2 = /**
|
|
12439
|
+
* @param {?} contentId
|
|
12440
|
+
* @param {?} userID
|
|
12441
|
+
* @return {?}
|
|
12442
|
+
*/
|
|
12443
|
+
function (contentId, userID) {
|
|
12444
|
+
return PROXY_SLAG_V8 + "/ratings/v1/read/" + contentId + "/Course/" + userID;
|
|
12445
|
+
};
|
|
12446
|
+
/** @type {?} */
|
|
12447
|
+
var API_END_POINTS$3 = {
|
|
12448
|
+
GET_RATING: (ɵ0$3),
|
|
12449
|
+
ADD_OR_UPDATE: PROXY_SLAG_V8 + "/ratings/v1/upsert",
|
|
12450
|
+
GET_RATING_SUMMARY: (ɵ1$2),
|
|
12451
|
+
GET_RATING_LOOKUP: PROXY_SLAG_V8 + "/ratings/v1/ratingLookUp",
|
|
12452
|
+
GET_AUTHOR_REPLY: (ɵ2$2),
|
|
12453
|
+
POST_AUTHOR_REPLY: PROXY_SLAG_V8 + "/ratings/v2/read",
|
|
12454
|
+
};
|
|
12455
|
+
var RatingService = /** @class */ (function () {
|
|
12456
|
+
function RatingService(http) {
|
|
12457
|
+
this.http = http;
|
|
12458
|
+
}
|
|
12459
|
+
/**
|
|
12460
|
+
* @param {?} contentId
|
|
12461
|
+
* @param {?} contentType
|
|
12462
|
+
* @param {?} userId
|
|
12463
|
+
* @return {?}
|
|
12464
|
+
*/
|
|
12465
|
+
RatingService.prototype.getRating = /**
|
|
12466
|
+
* @param {?} contentId
|
|
12467
|
+
* @param {?} contentType
|
|
12468
|
+
* @param {?} userId
|
|
12469
|
+
* @return {?}
|
|
12470
|
+
*/
|
|
12471
|
+
function (contentId, contentType, userId) {
|
|
12472
|
+
/** @type {?} */
|
|
12473
|
+
var forPreview = window.location.href.includes('/public/') || window.location.href.includes('&preview=true');
|
|
12474
|
+
if (!forPreview) {
|
|
12475
|
+
return this.http.get(API_END_POINTS$3.GET_RATING(contentId, contentType, userId));
|
|
12476
|
+
}
|
|
12477
|
+
return rxjs.of({});
|
|
12478
|
+
};
|
|
12479
|
+
/**
|
|
12480
|
+
* @param {?} req
|
|
11830
12481
|
* @return {?}
|
|
11831
12482
|
*/
|
|
11832
12483
|
RatingService.prototype.addOrUpdateRating = /**
|
|
@@ -12219,205 +12870,6 @@
|
|
|
12219
12870
|
UserContentRatingLibComponent.prototype.userRatingSvc;
|
|
12220
12871
|
}
|
|
12221
12872
|
|
|
12222
|
-
/**
|
|
12223
|
-
* @fileoverview added by tsickle
|
|
12224
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
12225
|
-
*/
|
|
12226
|
-
var AvatarPhotoLibComponent = /** @class */ (function () {
|
|
12227
|
-
function AvatarPhotoLibComponent() {
|
|
12228
|
-
this.size = '';
|
|
12229
|
-
this.defaulfColor = '';
|
|
12230
|
-
this.randomColor = false;
|
|
12231
|
-
this.showBadge = false;
|
|
12232
|
-
this.showInitials = false;
|
|
12233
|
-
this.random = Math.random().toString(36).slice(2);
|
|
12234
|
-
// public initials!: string
|
|
12235
|
-
this.colors = [
|
|
12236
|
-
'#EB7181',
|
|
12237
|
-
'#306933',
|
|
12238
|
-
'#000000',
|
|
12239
|
-
'#3670B2',
|
|
12240
|
-
'#4E9E87',
|
|
12241
|
-
'#7E4C8D',
|
|
12242
|
-
];
|
|
12243
|
-
this.randomcolors = [
|
|
12244
|
-
'#EB7181',
|
|
12245
|
-
'#006400',
|
|
12246
|
-
'#000000',
|
|
12247
|
-
'#3670B2',
|
|
12248
|
-
'#4E9E87',
|
|
12249
|
-
'#7E4C8D',
|
|
12250
|
-
];
|
|
12251
|
-
}
|
|
12252
|
-
/**
|
|
12253
|
-
* @return {?}
|
|
12254
|
-
*/
|
|
12255
|
-
AvatarPhotoLibComponent.prototype.ngOnInit = /**
|
|
12256
|
-
* @return {?}
|
|
12257
|
-
*/
|
|
12258
|
-
function () {
|
|
12259
|
-
if (!this.photoUrl) {
|
|
12260
|
-
this.showInitials = true;
|
|
12261
|
-
if (!this.initials) {
|
|
12262
|
-
this.createInititals();
|
|
12263
|
-
}
|
|
12264
|
-
if (this.datalen === 1) {
|
|
12265
|
-
if (this.defaulfColor) {
|
|
12266
|
-
this.randomcolors = [
|
|
12267
|
-
this.defaulfColor
|
|
12268
|
-
];
|
|
12269
|
-
}
|
|
12270
|
-
else {
|
|
12271
|
-
this.randomcolors = [
|
|
12272
|
-
'#006400',
|
|
12273
|
-
];
|
|
12274
|
-
}
|
|
12275
|
-
}
|
|
12276
|
-
/** @type {?} */
|
|
12277
|
-
var randomIndex = Math.floor(Math.random() * Math.floor(this.colors.length));
|
|
12278
|
-
this.circleColor = this.colors[randomIndex];
|
|
12279
|
-
if (this.randomColor) {
|
|
12280
|
-
/** @type {?} */
|
|
12281
|
-
var randomIndex1 = Math.floor(Math.random() * Math.floor(this.randomcolors.length));
|
|
12282
|
-
this.circleColor = this.randomcolors[randomIndex1];
|
|
12283
|
-
}
|
|
12284
|
-
}
|
|
12285
|
-
};
|
|
12286
|
-
/**
|
|
12287
|
-
* @param {?} change
|
|
12288
|
-
* @return {?}
|
|
12289
|
-
*/
|
|
12290
|
-
AvatarPhotoLibComponent.prototype.ngOnChanges = /**
|
|
12291
|
-
* @param {?} change
|
|
12292
|
-
* @return {?}
|
|
12293
|
-
*/
|
|
12294
|
-
function (change) {
|
|
12295
|
-
if (change.name.currentValue !== change.name.previousValue && !change.name.firstChange) {
|
|
12296
|
-
this.createInititals();
|
|
12297
|
-
}
|
|
12298
|
-
};
|
|
12299
|
-
Object.defineProperty(AvatarPhotoLibComponent.prototype, "userInitials", {
|
|
12300
|
-
get: /**
|
|
12301
|
-
* @return {?}
|
|
12302
|
-
*/
|
|
12303
|
-
function () {
|
|
12304
|
-
return this.initials;
|
|
12305
|
-
},
|
|
12306
|
-
enumerable: true,
|
|
12307
|
-
configurable: true
|
|
12308
|
-
});
|
|
12309
|
-
/**
|
|
12310
|
-
* @private
|
|
12311
|
-
* @return {?}
|
|
12312
|
-
*/
|
|
12313
|
-
AvatarPhotoLibComponent.prototype.createInititals = /**
|
|
12314
|
-
* @private
|
|
12315
|
-
* @return {?}
|
|
12316
|
-
*/
|
|
12317
|
-
function () {
|
|
12318
|
-
/** @type {?} */
|
|
12319
|
-
var initials = '';
|
|
12320
|
-
/** @type {?} */
|
|
12321
|
-
var array = (this.name + " ").toString().split(' ');
|
|
12322
|
-
if (array[0] !== 'undefined' && typeof array[1] !== 'undefined') {
|
|
12323
|
-
initials += array[0].charAt(0);
|
|
12324
|
-
initials += array[1].charAt(0);
|
|
12325
|
-
}
|
|
12326
|
-
else {
|
|
12327
|
-
for (var i = 0; i < this.name.length; i += 1) {
|
|
12328
|
-
if (this.name.charAt(i) === ' ') {
|
|
12329
|
-
continue;
|
|
12330
|
-
}
|
|
12331
|
-
if (this.name.charAt(i) === this.name.charAt(i)) {
|
|
12332
|
-
initials += this.name.charAt(i);
|
|
12333
|
-
if (initials.length === 2) {
|
|
12334
|
-
break;
|
|
12335
|
-
}
|
|
12336
|
-
}
|
|
12337
|
-
}
|
|
12338
|
-
}
|
|
12339
|
-
this.initials = initials.toUpperCase();
|
|
12340
|
-
};
|
|
12341
|
-
AvatarPhotoLibComponent.decorators = [
|
|
12342
|
-
{ type: core.Component, args: [{
|
|
12343
|
-
selector: 'sb-uic-avatar-photo',
|
|
12344
|
-
template: "<div id=\"user_icon\" [ngClass]=\"{'circle-s' : size=== 's',\n'circle-m' : size=== 'm',\n'circle-l' : size=== 'l',\n'circle-xl' : size=== 'xl',\n'circle-xxl' : size=== 'xxl',\n'circle-l-xs' : size=== 'l-xs',\n'circle-l-s' : size=== 'l-s',\n'circle-xl-s' : size=== 'xl-s',\n'circle-r-m': size=== 'round-m',\n'circle-r-p-m': size=== 'profile-round-m',\n'circle-m-side': size=== 'm-side',\n'circle-r-m-48': size=== 'm-side-rating',\n'circle-m-recommended': size==='m-recommended',\n'circle-xxl-s': size=== 'xxl-s'}\" [ngStyle]=\"{'background-color': circleColor }\">\n <img *ngIf=\"!showInitials\" loading=\"lazy\" src=\"{{photoUrl}}\" [alt]=\"photoUrl? '' :(name || userInitials || size || random)\">\n\n <div *ngIf=\"showInitials\" class=\"initials\" i18n-aria-label>\n {{ userInitials }} \n </div>\n <div *ngIf=\"showBadge\"><span class=\"profile-badge\"> \n <img src=\"fusion-assets/images/profile-badge.png\">\n </span></div>\n\n <!-- <div *ngIf=\"imageType === 'user-photo'\">\n <img *ngIf=\"imageUrl\" [src]=\"imageUrl\" alt=\"user-image\" class=\"user-image\" [ngClass]=\"{'user-image-small': imageSize === 'small'}\">\n <div class=\"user-image\" [ngClass]=\"{'user-image-small': imageSize === 'small'}\">\n <span class=\"name-initials-image font-normal ws-mat-primary-default-text ws-mat-accent-background\"\n *ngIf=\"!imageUrl\">{{ shortName }}</span>\n </div>\n </div> -->\n</div>",
|
|
12345
|
-
styles: ["@charset \"UTF-8\";.success-checkmark::after{content:\"\u2714\";position:absolute;left:25px;top:20px;width:11px;height:11px;border:1px solid #1d8923;background:#1d8923;border-radius:50%;color:#fff;line-height:11px;text-align:center;font-size:9px}.profile-badge{position:absolute;top:10px;right:0}.profile-badge img{height:15px!important;width:15px!important}.circle-s{border-radius:50%;width:24px;height:24px;display:flex;justify-content:center;align-items:center}.circle-s img{border-radius:50%;width:100%;height:100%}.circle-s .initials{color:#fff;font-size:10px;line-height:12px;letter-spacing:.2625px}.circle-m{border-radius:50%;width:72px!important;height:72px!important;display:flex;justify-content:center;align-items:center;margin-top:-36px}.circle-m img{border-radius:10%;width:40px;height:40px}.circle-m .initials{color:#fff;font-size:14px;line-height:19px;letter-spacing:.2625px}.circle-l{border-radius:50%;width:80px;height:80px;display:flex;justify-content:center;align-items:center}.circle-l img{border-radius:10%;width:80px;height:80px}.circle-l .initials{color:#fff;font-size:20px;line-height:19px;letter-spacing:.2625px}.circle-xl{border-radius:50%;width:105px;height:105px;display:flex;justify-content:center;align-items:center}.circle-xl img{border-radius:10%;width:105px;height:105px}.circle-xl .initials{color:#fff;font-size:20px;line-height:19px;letter-spacing:.2625px}.circle-xxl{border-radius:50%;width:145px;height:145px;display:flex;justify-content:center;align-items:center}.circle-xxl img{border-radius:10%;width:145px;height:145px}.circle-xxl .initials{color:#fff;font-size:20px;line-height:19px;letter-spacing:.2625px}.circle-l-xs{border-radius:50%;width:29px;height:29px;display:flex;justify-content:center;align-items:center}.circle-l-xs img{border-radius:50%;width:100%;height:100%}.circle-l-xs .initials{color:#fff;font-size:12px;line-height:12px;letter-spacing:.2625px}.circle-l-s{border-radius:50%;width:80px;height:80px;display:flex;justify-content:center;align-items:center}.circle-l-s img{border-radius:4px;width:80px;height:80px}.circle-l-s .initials{color:#fff;font-size:24px;line-height:24px;letter-spacing:.2625px}.circle-xl-s{border-radius:50%;width:125px;height:125px;display:flex;justify-content:center;align-items:center}.circle-xl-s img{border-radius:4px;width:152px;height:125px}.circle-xl-s .initials{color:#fff;font-size:32px;line-height:32px;letter-spacing:.2625px}.circle-xxl-s{border-radius:50%;width:208px;height:208px;display:flex;justify-content:center;align-items:center}.circle-xxl-s img{border-radius:50%;width:100%;height:100%}.circle-xxl-s .initials{color:#fff;font-size:40px;line-height:40px;letter-spacing:.2625px}.circle-r-m{border-radius:50%;width:50px;height:50px;display:flex;justify-content:center;align-items:center}.circle-r-m img{border-radius:50%;width:100%;height:100%}.circle-r-m .initials{color:#fff;font-size:16px;line-height:40px;letter-spacing:.2625px}.circle-r-m-48{border-radius:50%;width:48px;height:48px;display:flex;justify-content:center;align-items:center}.circle-r-m-48 img{border-radius:50%;width:100%;height:100%}.circle-r-m-48 .initials{color:#fff;font-size:16px;line-height:40px;letter-spacing:.2625px}.circle-r-p-m{border-radius:50%;width:40px;height:40px;display:flex;justify-content:center;align-items:center}.circle-r-p-m img{border-radius:50%;width:100%;height:100%}.circle-r-p-m .initials{color:#fff;font-size:16px;line-height:40px;letter-spacing:.2625px}.circle-m-side{border-radius:50%;width:72px!important;height:72px!important;display:flex;justify-content:center;align-items:center}.circle-m-side img{border-radius:10%;width:40px;height:40px}.circle-m-side .initials{color:#fff;font-size:14px;line-height:19px;letter-spacing:.2625px}@media only screen and (max-width:960px){.circle-xxl-s{width:100px;height:100px}.circle-xxl-s .initials{font-size:24px;line-height:24px}}.circle-m-recommended{border-radius:50%;width:72px!important;height:72px!important;display:flex;justify-content:center;align-items:center;margin-top:-49px}.circle-m-recommended img{border-radius:10%;width:40px;height:40px}.circle-m-recommended .initials{color:#fff;font-size:14px;line-height:19px;letter-spacing:.2625px}.circle-l-s::before{content:\"\";border:1px solid red}"]
|
|
12346
|
-
}] }
|
|
12347
|
-
];
|
|
12348
|
-
AvatarPhotoLibComponent.propDecorators = {
|
|
12349
|
-
datalen: [{ type: core.Input }],
|
|
12350
|
-
photoUrl: [{ type: core.Input }],
|
|
12351
|
-
name: [{ type: core.Input }],
|
|
12352
|
-
size: [{ type: core.Input }],
|
|
12353
|
-
defaulfColor: [{ type: core.Input }],
|
|
12354
|
-
randomColor: [{ type: core.Input }],
|
|
12355
|
-
initials: [{ type: core.Input }],
|
|
12356
|
-
showBadge: [{ type: core.Input }]
|
|
12357
|
-
};
|
|
12358
|
-
return AvatarPhotoLibComponent;
|
|
12359
|
-
}());
|
|
12360
|
-
if (false) {
|
|
12361
|
-
/** @type {?} */
|
|
12362
|
-
AvatarPhotoLibComponent.prototype.datalen;
|
|
12363
|
-
/** @type {?} */
|
|
12364
|
-
AvatarPhotoLibComponent.prototype.photoUrl;
|
|
12365
|
-
/** @type {?} */
|
|
12366
|
-
AvatarPhotoLibComponent.prototype.name;
|
|
12367
|
-
/** @type {?} */
|
|
12368
|
-
AvatarPhotoLibComponent.prototype.size;
|
|
12369
|
-
/** @type {?} */
|
|
12370
|
-
AvatarPhotoLibComponent.prototype.defaulfColor;
|
|
12371
|
-
/** @type {?} */
|
|
12372
|
-
AvatarPhotoLibComponent.prototype.randomColor;
|
|
12373
|
-
/** @type {?} */
|
|
12374
|
-
AvatarPhotoLibComponent.prototype.initials;
|
|
12375
|
-
/** @type {?} */
|
|
12376
|
-
AvatarPhotoLibComponent.prototype.showBadge;
|
|
12377
|
-
/** @type {?} */
|
|
12378
|
-
AvatarPhotoLibComponent.prototype.showInitials;
|
|
12379
|
-
/** @type {?} */
|
|
12380
|
-
AvatarPhotoLibComponent.prototype.circleColor;
|
|
12381
|
-
/** @type {?} */
|
|
12382
|
-
AvatarPhotoLibComponent.prototype.random;
|
|
12383
|
-
/**
|
|
12384
|
-
* @type {?}
|
|
12385
|
-
* @private
|
|
12386
|
-
*/
|
|
12387
|
-
AvatarPhotoLibComponent.prototype.colors;
|
|
12388
|
-
/**
|
|
12389
|
-
* @type {?}
|
|
12390
|
-
* @private
|
|
12391
|
-
*/
|
|
12392
|
-
AvatarPhotoLibComponent.prototype.randomcolors;
|
|
12393
|
-
}
|
|
12394
|
-
|
|
12395
|
-
/**
|
|
12396
|
-
* @fileoverview added by tsickle
|
|
12397
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
12398
|
-
*/
|
|
12399
|
-
var AvatarPhotoLibModule = /** @class */ (function () {
|
|
12400
|
-
function AvatarPhotoLibModule() {
|
|
12401
|
-
}
|
|
12402
|
-
AvatarPhotoLibModule.decorators = [
|
|
12403
|
-
{ type: core.NgModule, args: [{
|
|
12404
|
-
declarations: [AvatarPhotoLibComponent],
|
|
12405
|
-
imports: [
|
|
12406
|
-
common.CommonModule,
|
|
12407
|
-
router.RouterModule,
|
|
12408
|
-
material.MatButtonModule,
|
|
12409
|
-
material.MatIconModule,
|
|
12410
|
-
material.MatMenuModule,
|
|
12411
|
-
material.MatRippleModule,
|
|
12412
|
-
resolverV2.SbUiResolverModule,
|
|
12413
|
-
],
|
|
12414
|
-
exports: [AvatarPhotoLibComponent],
|
|
12415
|
-
entryComponents: [AvatarPhotoLibComponent],
|
|
12416
|
-
},] }
|
|
12417
|
-
];
|
|
12418
|
-
return AvatarPhotoLibModule;
|
|
12419
|
-
}());
|
|
12420
|
-
|
|
12421
12873
|
/**
|
|
12422
12874
|
* @fileoverview added by tsickle
|
|
12423
12875
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -12752,6 +13204,7 @@
|
|
|
12752
13204
|
exports.CardsModule = CardsModule;
|
|
12753
13205
|
exports.CommonMethodsService = CommonMethodsService;
|
|
12754
13206
|
exports.CommonStripModule = CommonStripModule;
|
|
13207
|
+
exports.CompetencyPassbookMdoModule = CompetencyPassbookMdoModule;
|
|
12755
13208
|
exports.CompetencyPassbookModule = CompetencyPassbookModule;
|
|
12756
13209
|
exports.ConsumptionComponent = ConsumptionComponent;
|
|
12757
13210
|
exports.ConsumptionModule = ConsumptionModule;
|
|
@@ -12781,21 +13234,23 @@
|
|
|
12781
13234
|
exports.ɵbk = DefaultThumbnailDirective;
|
|
12782
13235
|
exports.ɵbl = PipeDurationTransformModule;
|
|
12783
13236
|
exports.ɵbm = PipeDurationTransformPipe;
|
|
12784
|
-
exports.ɵbn =
|
|
12785
|
-
exports.ɵbo =
|
|
12786
|
-
exports.ɵbp =
|
|
12787
|
-
exports.ɵbq =
|
|
12788
|
-
exports.ɵbr =
|
|
12789
|
-
exports.ɵbs =
|
|
12790
|
-
exports.ɵbt =
|
|
12791
|
-
exports.ɵbu =
|
|
12792
|
-
exports.ɵbv =
|
|
12793
|
-
exports.ɵbw =
|
|
12794
|
-
exports.ɵbx =
|
|
12795
|
-
exports.ɵby =
|
|
12796
|
-
exports.ɵbz =
|
|
13237
|
+
exports.ɵbn = AvatarPhotoLibModule;
|
|
13238
|
+
exports.ɵbo = AvatarPhotoLibComponent;
|
|
13239
|
+
exports.ɵbp = CompetencyPassbookComponent;
|
|
13240
|
+
exports.ɵbq = CompetencyPassbookService;
|
|
13241
|
+
exports.ɵbr = PillsModule;
|
|
13242
|
+
exports.ɵbs = PillsComponent;
|
|
13243
|
+
exports.ɵbt = CompetencyPassbookMdoComponent;
|
|
13244
|
+
exports.ɵbu = CompetencyPassbookMdoService;
|
|
13245
|
+
exports.ɵbv = UserContentRatingLibComponent;
|
|
13246
|
+
exports.ɵbw = ScrollableItemDirective;
|
|
13247
|
+
exports.ɵbx = RatingService;
|
|
13248
|
+
exports.ɵby = UserContentRatingLibService;
|
|
13249
|
+
exports.ɵbz = MyHammerConfig$1;
|
|
12797
13250
|
exports.ɵc = MultilingualTranslationsService;
|
|
12798
|
-
exports.ɵca =
|
|
13251
|
+
exports.ɵca = SlidersNgContentLibModule;
|
|
13252
|
+
exports.ɵcb = SlidersNgContentLibComponent;
|
|
13253
|
+
exports.ɵcc = ScrollableItemModule;
|
|
12799
13254
|
exports.ɵd = ConfigurationsService;
|
|
12800
13255
|
exports.ɵe = HorizontalScrollerV2Module;
|
|
12801
13256
|
exports.ɵf = HorizontalScrollerV2Component;
|