@sunbird-cb/consumption 0.0.17 → 0.0.19
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 +305 -63
- 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-wide/card-wide.component.js +1 -1
- package/esm2015/lib/_common/cards/card-wide-v2/card-wide-v2.component.js +166 -6
- package/esm2015/lib/_common/cards/cards.component.js +35 -2
- package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +39 -5
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +3 -1
- package/esm2015/lib/_common/pills/pills.component.js +16 -4
- package/esm2015/public-api.js +2 -1
- package/esm2015/sunbird-cb-consumption.js +49 -50
- package/esm5/lib/_common/cards/card-wide/card-wide.component.js +1 -1
- package/esm5/lib/_common/cards/card-wide-v2/card-wide-v2.component.js +169 -6
- package/esm5/lib/_common/cards/cards.component.js +39 -2
- package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +40 -6
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +3 -1
- package/esm5/lib/_common/pills/pills.component.js +16 -4
- package/esm5/public-api.js +2 -1
- package/esm5/sunbird-cb-consumption.js +49 -50
- package/fesm2015/sunbird-cb-consumption.js +249 -14
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +257 -15
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/cards/card-wide-v2/card-wide-v2.component.d.ts +30 -2
- package/lib/_common/cards/cards.component.d.ts +3 -0
- package/lib/_common/competency-passbook/competency-passbook.component.d.ts +4 -0
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +1 -0
- package/lib/_common/pills/pills.component.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/sunbird-cb-consumption.d.ts +47 -48
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -3825,6 +3825,8 @@
|
|
|
3825
3825
|
IStripUnitContentData.prototype.secondaryHeading;
|
|
3826
3826
|
/** @type {?} */
|
|
3827
3827
|
IStripUnitContentData.prototype.viewMoreUrl;
|
|
3828
|
+
/** @type {?|undefined} */
|
|
3829
|
+
IStripUnitContentData.prototype.request;
|
|
3828
3830
|
}
|
|
3829
3831
|
var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
3830
3832
|
__extends(ContentStripWithTabsLibComponent, _super);
|
|
@@ -8202,6 +8204,13 @@
|
|
|
8202
8204
|
* @return {?}
|
|
8203
8205
|
*/
|
|
8204
8206
|
function () {
|
|
8207
|
+
var _this = this;
|
|
8208
|
+
this.cbPlanInterval = setInterval((/**
|
|
8209
|
+
* @return {?}
|
|
8210
|
+
*/
|
|
8211
|
+
function () {
|
|
8212
|
+
_this.getCbPlanData();
|
|
8213
|
+
}), 1000);
|
|
8205
8214
|
};
|
|
8206
8215
|
Object.defineProperty(CardsComponent.prototype, "isLiveOrMarkForDeletion", {
|
|
8207
8216
|
get: /**
|
|
@@ -8255,10 +8264,36 @@
|
|
|
8255
8264
|
});
|
|
8256
8265
|
});
|
|
8257
8266
|
};
|
|
8267
|
+
/**
|
|
8268
|
+
* @return {?}
|
|
8269
|
+
*/
|
|
8270
|
+
CardsComponent.prototype.getCbPlanData = /**
|
|
8271
|
+
* @return {?}
|
|
8272
|
+
*/
|
|
8273
|
+
function () {
|
|
8274
|
+
/** @type {?} */
|
|
8275
|
+
var cbpList = {};
|
|
8276
|
+
if (localStorage.getItem('cbpData')) {
|
|
8277
|
+
/** @type {?} */
|
|
8278
|
+
var cbpListArr = JSON.parse(localStorage.getItem('cbpData') || '');
|
|
8279
|
+
if (cbpListArr && cbpListArr.length) {
|
|
8280
|
+
cbpListArr.forEach((/**
|
|
8281
|
+
* @param {?} data
|
|
8282
|
+
* @return {?}
|
|
8283
|
+
*/
|
|
8284
|
+
function (data) {
|
|
8285
|
+
cbpList[data.identifier] = data;
|
|
8286
|
+
}));
|
|
8287
|
+
}
|
|
8288
|
+
this.cbPlanMapData = cbpList;
|
|
8289
|
+
// this.karmaPointLoading = false
|
|
8290
|
+
clearInterval(this.cbPlanInterval);
|
|
8291
|
+
}
|
|
8292
|
+
};
|
|
8258
8293
|
CardsComponent.decorators = [
|
|
8259
8294
|
{ type: core.Component, args: [{
|
|
8260
8295
|
selector: 'sb-uic-cards',
|
|
8261
|
-
template: "<div class=\"widget-card-content-new\">\n <ng-container *ngIf=\"widgetData && (((widgetData?.deletedMode || 'none') === 'hide' && !!!isLiveOrMarkForDeletion)\n ? false\n : !((widgetData?.intranetMode || 'none') === 'hide' && !!showIntranetContent))\"\n [ngSwitch]=\"( (widgetData && widgetData?.cardSubType) || 'cardPortraitLib')\">\n <ng-container *ngSwitchDefault [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'user-card'\" [ngTemplateOutlet]=\"cardUser\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib'\" [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib-skeleton'\" [ngTemplateOutlet]=\"cardLandscapeLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib'\" [ngTemplateOutlet]=\"cardLandscapeLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib-skeleton'\" [ngTemplateOutlet]=\"cardWideLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib'\" [ngTemplateOutlet]=\"cardWideLib\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #cardPortraitLibSkeleton>\n <sb-uic-card-portrait [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardPortraitLib>\n <sb-uic-card-portrait (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardLandscapeLibSkeleton>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-landscape>\n</ng-template>\n<ng-template #cardLandscapeLib>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-landscape>\n</ng-template>\n\n<ng-template #cardWideLib>\n <sb-uic-card-wide (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n<ng-template #cardWideLibSkeleton>\n <sb-uic-card-wide [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n\n <ng-template #cardUser>\n
|
|
8296
|
+
template: "<div class=\"widget-card-content-new\">\n <ng-container *ngIf=\"widgetData && (((widgetData?.deletedMode || 'none') === 'hide' && !!!isLiveOrMarkForDeletion)\n ? false\n : !((widgetData?.intranetMode || 'none') === 'hide' && !!showIntranetContent))\"\n [ngSwitch]=\"( (widgetData && widgetData?.cardSubType) || 'cardPortraitLib')\">\n <ng-container *ngSwitchDefault [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'user-card'\" [ngTemplateOutlet]=\"cardUser\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib'\" [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib-skeleton'\" [ngTemplateOutlet]=\"cardLandscapeLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib'\" [ngTemplateOutlet]=\"cardLandscapeLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib-skeleton'\" [ngTemplateOutlet]=\"cardWideLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib'\" [ngTemplateOutlet]=\"cardWideLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2'\" [ngTemplateOutlet]=\"cardWideV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2-skeleton'\" [ngTemplateOutlet]=\"cardWideV2Skeleton\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #cardPortraitLibSkeleton>\n <sb-uic-card-portrait [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardPortraitLib>\n <sb-uic-card-portrait (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardLandscapeLibSkeleton>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-landscape>\n</ng-template>\n<ng-template #cardLandscapeLib>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-landscape>\n</ng-template>\n\n<ng-template #cardWideLib>\n <sb-uic-card-wide (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n<ng-template #cardWideLibSkeleton>\n <sb-uic-card-wide [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n\n<ng-template #cardWideV2Skeleton>\n <sb-uic-card-wide-v2 [widgetData]=\"widgetData\" [isCardLoading]=\"true\" ></sb-uic-card-wide-v2>\n</ng-template>\n<ng-template #cardWideV2>\n <sb-uic-card-wide-v2 [cbPlanMapData]=\"cbPlanMapData\" [isCardLoading]=\"true\" [widgetData]=\"widgetData\" ></sb-uic-card-wide-v2>\n</ng-template>\n\n<ng-template #cardUser>\n <sb-uic-card-user [widgetData]=\"widgetData\"></sb-uic-card-user>\n</ng-template>\n",
|
|
8262
8297
|
styles: [""]
|
|
8263
8298
|
}] }
|
|
8264
8299
|
];
|
|
@@ -8279,6 +8314,10 @@
|
|
|
8279
8314
|
CardsComponent.prototype.widgetData;
|
|
8280
8315
|
/** @type {?} */
|
|
8281
8316
|
CardsComponent.prototype.isIntranetAllowedSettings;
|
|
8317
|
+
/** @type {?} */
|
|
8318
|
+
CardsComponent.prototype.cbPlanMapData;
|
|
8319
|
+
/** @type {?} */
|
|
8320
|
+
CardsComponent.prototype.cbPlanInterval;
|
|
8282
8321
|
/**
|
|
8283
8322
|
* @type {?}
|
|
8284
8323
|
* @private
|
|
@@ -9325,7 +9364,7 @@
|
|
|
9325
9364
|
{ type: core.Component, args: [{
|
|
9326
9365
|
selector: 'sb-uic-card-wide',
|
|
9327
9366
|
template: "<mat-card class=\"card-wide-lib\">\n <a (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" \n role=\"link\" i18n-aria-label>\n <div class=\"flex\">\n <div>\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\n <img mat-card-image [src]=\"widgetData?.content?.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-wide-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData?.content?.posterImage\">\n <ng-container *ngIf=\"widgetData?.content?.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData?.content?.appIcon | pipePublicURL\" loading=\"lazy\"\n class=\"card-wide-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-wide-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-template>\n </ng-container>\n </div>\n <div>\n <div class=\"pl-4 pr-4 w-full\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end course_v2\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <sb-uic-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData?.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData?.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData?.content?.primaryCategory\">\n </sb-uic-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n {{ widgetData?.content?.name }}\n </div>\n\n <div class=\"flex w-full flex-wrap flex-middle\">\n <div class=\"course_logo_box\">\n <img [src]=\"widgetData?.content?.creatorLogo | pipePublicURL \" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData?.content?.identifier)\" />\n </div>\n <!-- <span class=\"org-text\">{{'cardcontentv2.by' | translate}} -->\n <span class=\"org-text\">By {{ (widgetData?.content?.organisation && widgetData?.content?.organisation[0]) ? widgetData?.content?.organisation[0] : 'Karmayogi Bharat' }}</span>\n </div>\n </div>\n </div>\n </div>\n </a>\n</mat-card>\n",
|
|
9328
|
-
styles: [".card-wide-lib{width:inherit;padding:16px;border-radius:12px;background:#fff;border:1px solid rgba(0,0,0,.16)}.card-wide-lib .card-wide-img{width:190px;height:107px;border-radius:12px}.card-wide-lib .course_widget{margin-top:10px}.card-wide-lib .course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.card-wide-lib .course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.card-wide-lib .course_widget .main_icon{font-size:16px;width:16px;height:16px}.card-wide-lib .course_logo_box{width:38px;height:38px;background:#fff;border-radius:8px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.card-wide-lib .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-wide-lib .course_logo_box p{display:inline-block;vertical-align:top}.card-wide-lib .org-text{font-size:12px;font-weight:400;width:75%;padding-left:10px;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}@media screen and (max-width:768px){.card-wide-img{width:
|
|
9367
|
+
styles: [".card-wide-lib{width:inherit;padding:16px;border-radius:12px;background:#fff;border:1px solid rgba(0,0,0,.16)}.card-wide-lib .card-wide-img{width:190px;height:107px;border-radius:12px}.card-wide-lib .course_widget{margin-top:10px}.card-wide-lib .course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.card-wide-lib .course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.card-wide-lib .course_widget .main_icon{font-size:16px;width:16px;height:16px}.card-wide-lib .course_logo_box{width:38px;height:38px;background:#fff;border-radius:8px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.card-wide-lib .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-wide-lib .course_logo_box p{display:inline-block;vertical-align:top}.card-wide-lib .org-text{font-size:12px;font-weight:400;width:75%;padding-left:10px;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}@media screen and (max-width:768px){.card-wide-img{width:147px;height:117px;border-radius:12px}}"]
|
|
9329
9368
|
}] }
|
|
9330
9369
|
];
|
|
9331
9370
|
/** @nocollapse */
|
|
@@ -9531,7 +9570,31 @@
|
|
|
9531
9570
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9532
9571
|
*/
|
|
9533
9572
|
var CardWideV2Component = /** @class */ (function () {
|
|
9534
|
-
function CardWideV2Component() {
|
|
9573
|
+
function CardWideV2Component(snackBar, events, translate, langtranslations, configSvc) {
|
|
9574
|
+
var _this = this;
|
|
9575
|
+
this.snackBar = snackBar;
|
|
9576
|
+
this.events = events;
|
|
9577
|
+
this.translate = translate;
|
|
9578
|
+
this.langtranslations = langtranslations;
|
|
9579
|
+
this.configSvc = configSvc;
|
|
9580
|
+
this.isCardLoading = false;
|
|
9581
|
+
this.contentData = new core.EventEmitter();
|
|
9582
|
+
this.isCardFlipped = false;
|
|
9583
|
+
this.acbpConstants = NsCardContent$1.ACBPConst;
|
|
9584
|
+
this.showFlip = false;
|
|
9585
|
+
this.widgetType = 'df';
|
|
9586
|
+
this.widgetSubType = 'sdf';
|
|
9587
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
9588
|
+
* @return {?}
|
|
9589
|
+
*/
|
|
9590
|
+
function () {
|
|
9591
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
9592
|
+
_this.translate.setDefaultLang('en');
|
|
9593
|
+
/** @type {?} */
|
|
9594
|
+
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
9595
|
+
_this.translate.use(lang);
|
|
9596
|
+
}
|
|
9597
|
+
}));
|
|
9535
9598
|
}
|
|
9536
9599
|
/**
|
|
9537
9600
|
* @return {?}
|
|
@@ -9540,18 +9603,151 @@
|
|
|
9540
9603
|
* @return {?}
|
|
9541
9604
|
*/
|
|
9542
9605
|
function () {
|
|
9606
|
+
/** @type {?} */
|
|
9607
|
+
var instanceConfig = this.configSvc.instanceConfig;
|
|
9608
|
+
if (instanceConfig) {
|
|
9609
|
+
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
9610
|
+
this.sourceLogos = instanceConfig.sources;
|
|
9611
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
9612
|
+
}
|
|
9613
|
+
else {
|
|
9614
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
9615
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
9616
|
+
}
|
|
9617
|
+
};
|
|
9618
|
+
/**
|
|
9619
|
+
* @return {?}
|
|
9620
|
+
*/
|
|
9621
|
+
CardWideV2Component.prototype.showSnackbar = /**
|
|
9622
|
+
* @return {?}
|
|
9623
|
+
*/
|
|
9624
|
+
function () {
|
|
9625
|
+
if (this.showIntranetContent) {
|
|
9626
|
+
this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
|
|
9627
|
+
}
|
|
9628
|
+
else if (!this.isLiveOrMarkForDeletion) {
|
|
9629
|
+
this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
|
|
9630
|
+
}
|
|
9631
|
+
};
|
|
9632
|
+
/**
|
|
9633
|
+
* @param {?} contentData
|
|
9634
|
+
* @return {?}
|
|
9635
|
+
*/
|
|
9636
|
+
CardWideV2Component.prototype.getRedirectUrlData = /**
|
|
9637
|
+
* @param {?} contentData
|
|
9638
|
+
* @return {?}
|
|
9639
|
+
*/
|
|
9640
|
+
function (contentData) {
|
|
9641
|
+
this.contentData.emit(contentData);
|
|
9642
|
+
};
|
|
9643
|
+
/**
|
|
9644
|
+
* @return {?}
|
|
9645
|
+
*/
|
|
9646
|
+
CardWideV2Component.prototype.raiseTelemetry = /**
|
|
9647
|
+
* @return {?}
|
|
9648
|
+
*/
|
|
9649
|
+
function () {
|
|
9650
|
+
// if(this.forPreview){
|
|
9651
|
+
// return
|
|
9652
|
+
// }
|
|
9653
|
+
this.events.raiseInteractTelemetry({
|
|
9654
|
+
type: 'click',
|
|
9655
|
+
subType: this.widgetType + "-" + this.widgetSubType,
|
|
9656
|
+
id: lodash.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
9657
|
+
}, {
|
|
9658
|
+
id: this.widgetData.content.identifier,
|
|
9659
|
+
type: this.widgetData.content.primaryCategory,
|
|
9660
|
+
//context: this.widgetData.context,
|
|
9661
|
+
rollup: {},
|
|
9662
|
+
ver: "" + this.widgetData.content.version + '',
|
|
9663
|
+
}, {
|
|
9664
|
+
pageIdExt: lodash.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
9665
|
+
module: lodash.camelCase(this.widgetData.content.primaryCategory),
|
|
9666
|
+
});
|
|
9543
9667
|
};
|
|
9544
9668
|
CardWideV2Component.decorators = [
|
|
9545
9669
|
{ type: core.Component, args: [{
|
|
9546
9670
|
selector: 'sb-uic-card-wide-v2',
|
|
9547
|
-
template: "<p>card-wide-v2
|
|
9548
|
-
styles: [""]
|
|
9671
|
+
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-wide-v2 padding-remove position-relative flex\">\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\">\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();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\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>",
|
|
9672
|
+
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}.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:30px;height:30px;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;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;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}"]
|
|
9549
9673
|
}] }
|
|
9550
9674
|
];
|
|
9551
9675
|
/** @nocollapse */
|
|
9552
|
-
CardWideV2Component.ctorParameters = function () { return [
|
|
9676
|
+
CardWideV2Component.ctorParameters = function () { return [
|
|
9677
|
+
{ type: material.MatSnackBar },
|
|
9678
|
+
{ type: utilsV2.EventService },
|
|
9679
|
+
{ type: core$1.TranslateService },
|
|
9680
|
+
{ type: MultilingualTranslationsService },
|
|
9681
|
+
{ type: utilsV2.ConfigurationsService }
|
|
9682
|
+
]; };
|
|
9683
|
+
CardWideV2Component.propDecorators = {
|
|
9684
|
+
widgetData: [{ type: core.Input }],
|
|
9685
|
+
isLiveOrMarkForDeletion: [{ type: core.Input }],
|
|
9686
|
+
showIntranetContent: [{ type: core.Input }],
|
|
9687
|
+
isIntranetAllowedSettings: [{ type: core.Input }],
|
|
9688
|
+
cbPlanMapData: [{ type: core.Input }],
|
|
9689
|
+
isCardLoading: [{ type: core.Input }],
|
|
9690
|
+
contentData: [{ type: core.Output }]
|
|
9691
|
+
};
|
|
9553
9692
|
return CardWideV2Component;
|
|
9554
9693
|
}());
|
|
9694
|
+
if (false) {
|
|
9695
|
+
/** @type {?} */
|
|
9696
|
+
CardWideV2Component.prototype.widgetData;
|
|
9697
|
+
/** @type {?} */
|
|
9698
|
+
CardWideV2Component.prototype.isLiveOrMarkForDeletion;
|
|
9699
|
+
/** @type {?} */
|
|
9700
|
+
CardWideV2Component.prototype.showIntranetContent;
|
|
9701
|
+
/** @type {?} */
|
|
9702
|
+
CardWideV2Component.prototype.isIntranetAllowedSettings;
|
|
9703
|
+
/** @type {?} */
|
|
9704
|
+
CardWideV2Component.prototype.cbPlanMapData;
|
|
9705
|
+
/** @type {?} */
|
|
9706
|
+
CardWideV2Component.prototype.isCardLoading;
|
|
9707
|
+
/** @type {?} */
|
|
9708
|
+
CardWideV2Component.prototype.contentData;
|
|
9709
|
+
/** @type {?} */
|
|
9710
|
+
CardWideV2Component.prototype.isCardFlipped;
|
|
9711
|
+
/** @type {?} */
|
|
9712
|
+
CardWideV2Component.prototype.acbpConstants;
|
|
9713
|
+
/** @type {?} */
|
|
9714
|
+
CardWideV2Component.prototype.defaultThumbnail;
|
|
9715
|
+
/** @type {?} */
|
|
9716
|
+
CardWideV2Component.prototype.sourceLogos;
|
|
9717
|
+
/** @type {?} */
|
|
9718
|
+
CardWideV2Component.prototype.defaultSLogo;
|
|
9719
|
+
/** @type {?} */
|
|
9720
|
+
CardWideV2Component.prototype.showFlip;
|
|
9721
|
+
/** @type {?} */
|
|
9722
|
+
CardWideV2Component.prototype.widgetType;
|
|
9723
|
+
/** @type {?} */
|
|
9724
|
+
CardWideV2Component.prototype.widgetSubType;
|
|
9725
|
+
/**
|
|
9726
|
+
* @type {?}
|
|
9727
|
+
* @private
|
|
9728
|
+
*/
|
|
9729
|
+
CardWideV2Component.prototype.snackBar;
|
|
9730
|
+
/**
|
|
9731
|
+
* @type {?}
|
|
9732
|
+
* @private
|
|
9733
|
+
*/
|
|
9734
|
+
CardWideV2Component.prototype.events;
|
|
9735
|
+
/**
|
|
9736
|
+
* @type {?}
|
|
9737
|
+
* @private
|
|
9738
|
+
*/
|
|
9739
|
+
CardWideV2Component.prototype.translate;
|
|
9740
|
+
/**
|
|
9741
|
+
* @type {?}
|
|
9742
|
+
* @private
|
|
9743
|
+
*/
|
|
9744
|
+
CardWideV2Component.prototype.langtranslations;
|
|
9745
|
+
/**
|
|
9746
|
+
* @type {?}
|
|
9747
|
+
* @private
|
|
9748
|
+
*/
|
|
9749
|
+
CardWideV2Component.prototype.configSvc;
|
|
9750
|
+
}
|
|
9555
9751
|
|
|
9556
9752
|
/**
|
|
9557
9753
|
* @fileoverview added by tsickle
|
|
@@ -9686,6 +9882,7 @@
|
|
|
9686
9882
|
this.competencySvc = competencySvc;
|
|
9687
9883
|
this.router = router;
|
|
9688
9884
|
this.cardDisplayCount = 3;
|
|
9885
|
+
this.dynamicAlignPills = 'center';
|
|
9689
9886
|
this.emptyResponse = new core.EventEmitter();
|
|
9690
9887
|
this.loadCometency = false;
|
|
9691
9888
|
this.loadCompetencyArea = false;
|
|
@@ -9703,7 +9900,6 @@
|
|
|
9703
9900
|
* @return {?}
|
|
9704
9901
|
*/
|
|
9705
9902
|
function () {
|
|
9706
|
-
this.getCompetencyArea();
|
|
9707
9903
|
this.getAllCompetencies();
|
|
9708
9904
|
// this.competencyData = this.objectData
|
|
9709
9905
|
// this.filter(this.currentFilter)
|
|
@@ -9888,6 +10084,8 @@
|
|
|
9888
10084
|
function (response) {
|
|
9889
10085
|
_this.allcompetencyTheme = {};
|
|
9890
10086
|
if (response && response.result && response.result.competency) {
|
|
10087
|
+
_this.originalCompetencyArray = response.result.competency;
|
|
10088
|
+
_this.getCompetencyArea();
|
|
9891
10089
|
response.result.competency.forEach((/**
|
|
9892
10090
|
* @param {?} element
|
|
9893
10091
|
* @return {?}
|
|
@@ -9920,7 +10118,8 @@
|
|
|
9920
10118
|
*/
|
|
9921
10119
|
function (value, addFilter) {
|
|
9922
10120
|
return __awaiter(this, void 0, void 0, function () {
|
|
9923
|
-
var request, response, error_2;
|
|
10121
|
+
var request, response, competencyThemeData_1, error_2;
|
|
10122
|
+
var _this = this;
|
|
9924
10123
|
return __generator(this, function (_a) {
|
|
9925
10124
|
switch (_a.label) {
|
|
9926
10125
|
case 0:
|
|
@@ -9950,7 +10149,28 @@
|
|
|
9950
10149
|
response = _a.sent();
|
|
9951
10150
|
if (response && response.results) {
|
|
9952
10151
|
if (response.results.result.facets) {
|
|
9953
|
-
|
|
10152
|
+
competencyThemeData_1 = response.results.result.facets[0].values;
|
|
10153
|
+
this.originalCompetencyArray.forEach((/**
|
|
10154
|
+
* @param {?} element
|
|
10155
|
+
* @return {?}
|
|
10156
|
+
*/
|
|
10157
|
+
function (element) {
|
|
10158
|
+
if (element.name.toLowerCase() === value) {
|
|
10159
|
+
_this.competencyTheme = competencyThemeData_1.filter((/**
|
|
10160
|
+
* @param {?} ele1
|
|
10161
|
+
* @return {?}
|
|
10162
|
+
*/
|
|
10163
|
+
function (ele1) {
|
|
10164
|
+
return element.children.find((/**
|
|
10165
|
+
* @param {?} ele2
|
|
10166
|
+
* @return {?}
|
|
10167
|
+
*/
|
|
10168
|
+
function (ele2) { return ele2.name.toLowerCase() === ele1.name.toLowerCase(); }));
|
|
10169
|
+
}));
|
|
10170
|
+
_this.showAllTheme = [{ name: 'Show all', showAll: false }];
|
|
10171
|
+
_this.competencyThemeLength = 6;
|
|
10172
|
+
}
|
|
10173
|
+
}));
|
|
9954
10174
|
this.resetViewMore();
|
|
9955
10175
|
}
|
|
9956
10176
|
this.loadCometency = false;
|
|
@@ -10001,7 +10221,6 @@
|
|
|
10001
10221
|
* @return {?}
|
|
10002
10222
|
*/
|
|
10003
10223
|
function (event) {
|
|
10004
|
-
debugger;
|
|
10005
10224
|
this.showAllTheme[0]['showAll'] = !event.showAll;
|
|
10006
10225
|
this.competencyThemeLength = event.showAll ? this.competencyTheme.length : 6;
|
|
10007
10226
|
this.showAllTheme[0]['name'] = event.showAll ? 'Show less' : 'Show all';
|
|
@@ -10020,7 +10239,7 @@
|
|
|
10020
10239
|
CompetencyPassbookComponent.decorators = [
|
|
10021
10240
|
{ type: core.Component, args: [{
|
|
10022
10241
|
selector: 'sb-uic-competency-passbook',
|
|
10023
|
-
template: " <div class=\"competency-title\">{{objectData?.title}} \n <span class=\"competency-count\">\n ({{competencyStrength}})\n </span>\n</div>\n<div class=\"flex items-center justify-
|
|
10242
|
+
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>",
|
|
10024
10243
|
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}"]
|
|
10025
10244
|
}] }
|
|
10026
10245
|
];
|
|
@@ -10035,6 +10254,9 @@
|
|
|
10035
10254
|
objectData: [{ type: core.Input }],
|
|
10036
10255
|
providerId: [{ type: core.Input }],
|
|
10037
10256
|
cardDisplayCount: [{ type: core.Input }],
|
|
10257
|
+
dynamicClass: [{ type: core.Input }],
|
|
10258
|
+
dynamicColor: [{ type: core.Input }],
|
|
10259
|
+
dynamicAlignPills: [{ type: core.Input }],
|
|
10038
10260
|
emptyResponse: [{ type: core.Output }]
|
|
10039
10261
|
};
|
|
10040
10262
|
return CompetencyPassbookComponent;
|
|
@@ -10047,12 +10269,20 @@
|
|
|
10047
10269
|
/** @type {?} */
|
|
10048
10270
|
CompetencyPassbookComponent.prototype.cardDisplayCount;
|
|
10049
10271
|
/** @type {?} */
|
|
10272
|
+
CompetencyPassbookComponent.prototype.dynamicClass;
|
|
10273
|
+
/** @type {?} */
|
|
10274
|
+
CompetencyPassbookComponent.prototype.dynamicColor;
|
|
10275
|
+
/** @type {?} */
|
|
10276
|
+
CompetencyPassbookComponent.prototype.dynamicAlignPills;
|
|
10277
|
+
/** @type {?} */
|
|
10050
10278
|
CompetencyPassbookComponent.prototype.emptyResponse;
|
|
10051
10279
|
/** @type {?} */
|
|
10052
10280
|
CompetencyPassbookComponent.prototype.loadCometency;
|
|
10053
10281
|
/** @type {?} */
|
|
10054
10282
|
CompetencyPassbookComponent.prototype.loadCompetencyArea;
|
|
10055
10283
|
/** @type {?} */
|
|
10284
|
+
CompetencyPassbookComponent.prototype.originalCompetencyArray;
|
|
10285
|
+
/** @type {?} */
|
|
10056
10286
|
CompetencyPassbookComponent.prototype.competencyArea;
|
|
10057
10287
|
/** @type {?} */
|
|
10058
10288
|
CompetencyPassbookComponent.prototype.selectedValue;
|
|
@@ -10086,6 +10316,9 @@
|
|
|
10086
10316
|
function PillsComponent() {
|
|
10087
10317
|
this.isLoading = false;
|
|
10088
10318
|
this.pillClick = new core.EventEmitter();
|
|
10319
|
+
this.dynamicClass = '';
|
|
10320
|
+
this.dynamicColor = '';
|
|
10321
|
+
this.requiredTitlecase = true;
|
|
10089
10322
|
}
|
|
10090
10323
|
/**
|
|
10091
10324
|
* @return {?}
|
|
@@ -10109,8 +10342,8 @@
|
|
|
10109
10342
|
PillsComponent.decorators = [
|
|
10110
10343
|
{ type: core.Component, args: [{
|
|
10111
10344
|
selector: 'sb-uic-pills',
|
|
10112
|
-
template: "<ng-container *ngIf=\"!isLoading\">\n <mat-chip-list >\n <ng-container *ngFor=\"let pill of pillsData\">\n <mat-chip class=\"competency-chip\" (click)=\"selectedPill(pill)\" \n [ngClass]=\"{'active': selectedValue === pill?.name}\">\n <span class=\"pill-name\">{{pill?.name | titlecase}} <span *ngIf=\"pill?.count\">({{pill?.count}})</span></span>\n </mat-chip>\n </ng-container>\n </mat-chip-list>\n</ng-container>\n<ng-container *ngIf=\"isLoading\">\n <div class=\"flex gap-4\">\n <ng-container *ngFor=\"let pill of [0,1,2]\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n</ng-container>\n",
|
|
10113
|
-
styles: [".competency-chip{z-index:
|
|
10345
|
+
template: "<ng-container *ngIf=\"!isLoading\">\n <mat-chip-list >\n <ng-container *ngFor=\"let pill of pillsData\">\n <mat-chip class=\"competency-chip\" (click)=\"selectedPill(pill)\" [style.color]=\"dynamicColor\" [style.borderColor]=\"'#999999'\"\n [ngClass]=\"{'active': selectedValue === pill?.name}\">\n <span [style.color]=\"dynamicColor\" class=\"pill-name\" *ngIf=\"requiredTitlecase\">{{pill?.name | titlecase}} <span *ngIf=\"pill?.count\">({{pill?.count}})</span></span>\n <span [style.color]=\"dynamicColor\" class=\"pill-name\" *ngIf=\"!requiredTitlecase\">{{pill?.name }} <span *ngIf=\"pill?.count\">({{pill?.count}})</span></span>\n </mat-chip>\n </ng-container>\n </mat-chip-list>\n</ng-container>\n<ng-container *ngIf=\"isLoading\">\n <div class=\"flex gap-4\">\n <ng-container *ngFor=\"let pill of [0,1,2]\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n</ng-container>\n",
|
|
10346
|
+
styles: [".competency-chip{z-index:999;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!important;cursor:pointer}.competency-chip .pill-name{color:#fff}.active{background-color:#1b4ca1!important}.active .pill-name{color:#fff!important}"]
|
|
10114
10347
|
}] }
|
|
10115
10348
|
];
|
|
10116
10349
|
/** @nocollapse */
|
|
@@ -10119,7 +10352,10 @@
|
|
|
10119
10352
|
pillsData: [{ type: core.Input }],
|
|
10120
10353
|
selectedValue: [{ type: core.Input }],
|
|
10121
10354
|
isLoading: [{ type: core.Input }],
|
|
10122
|
-
pillClick: [{ type: core.Output }]
|
|
10355
|
+
pillClick: [{ type: core.Output }],
|
|
10356
|
+
dynamicClass: [{ type: core.Input }],
|
|
10357
|
+
dynamicColor: [{ type: core.Input }],
|
|
10358
|
+
requiredTitlecase: [{ type: core.Input }]
|
|
10123
10359
|
};
|
|
10124
10360
|
return PillsComponent;
|
|
10125
10361
|
}());
|
|
@@ -10132,6 +10368,12 @@
|
|
|
10132
10368
|
PillsComponent.prototype.isLoading;
|
|
10133
10369
|
/** @type {?} */
|
|
10134
10370
|
PillsComponent.prototype.pillClick;
|
|
10371
|
+
/** @type {?} */
|
|
10372
|
+
PillsComponent.prototype.dynamicClass;
|
|
10373
|
+
/** @type {?} */
|
|
10374
|
+
PillsComponent.prototype.dynamicColor;
|
|
10375
|
+
/** @type {?} */
|
|
10376
|
+
PillsComponent.prototype.requiredTitlecase;
|
|
10135
10377
|
}
|
|
10136
10378
|
|
|
10137
10379
|
/**
|
|
@@ -11181,56 +11423,56 @@
|
|
|
11181
11423
|
exports.UserContentRatingLibModule = UserContentRatingLibModule;
|
|
11182
11424
|
exports.WIDGET_REGISTERED_LIB_MODULES = WIDGET_REGISTERED_LIB_MODULES;
|
|
11183
11425
|
exports.WIDGET_REGISTRATION_LIB_CONFIG = WIDGET_REGISTRATION_LIB_CONFIG;
|
|
11426
|
+
exports.WidgetContentService = WidgetContentService;
|
|
11184
11427
|
exports.ɵa = ContentStripWithTabsLibComponent;
|
|
11185
|
-
exports.ɵb =
|
|
11186
|
-
exports.ɵba =
|
|
11187
|
-
exports.ɵbb =
|
|
11188
|
-
exports.ɵbc =
|
|
11189
|
-
exports.ɵbd =
|
|
11190
|
-
exports.ɵbe =
|
|
11191
|
-
exports.ɵbf =
|
|
11192
|
-
exports.ɵbg =
|
|
11193
|
-
exports.ɵbh =
|
|
11194
|
-
exports.ɵbi =
|
|
11195
|
-
exports.ɵbj =
|
|
11196
|
-
exports.ɵbk =
|
|
11197
|
-
exports.ɵbl =
|
|
11198
|
-
exports.ɵbm =
|
|
11199
|
-
exports.ɵbn =
|
|
11200
|
-
exports.ɵbo =
|
|
11201
|
-
exports.ɵbp =
|
|
11202
|
-
exports.ɵbq =
|
|
11203
|
-
exports.ɵbr =
|
|
11204
|
-
exports.ɵbs =
|
|
11205
|
-
exports.ɵbt =
|
|
11206
|
-
exports.ɵbu =
|
|
11207
|
-
exports.ɵbv =
|
|
11208
|
-
exports.ɵbw =
|
|
11209
|
-
exports.ɵ
|
|
11210
|
-
exports.ɵ
|
|
11211
|
-
exports.ɵ
|
|
11212
|
-
exports.ɵ
|
|
11213
|
-
exports.ɵ
|
|
11214
|
-
exports.ɵ
|
|
11215
|
-
exports.ɵ
|
|
11216
|
-
exports.ɵ
|
|
11217
|
-
exports.ɵ
|
|
11218
|
-
exports.ɵ
|
|
11219
|
-
exports.ɵ
|
|
11220
|
-
exports.ɵ
|
|
11221
|
-
exports.ɵ
|
|
11222
|
-
exports.ɵ
|
|
11223
|
-
exports.ɵ
|
|
11224
|
-
exports.ɵ
|
|
11225
|
-
exports.ɵ
|
|
11226
|
-
exports.ɵ
|
|
11227
|
-
exports.ɵ
|
|
11228
|
-
exports.ɵ
|
|
11229
|
-
exports.ɵ
|
|
11230
|
-
exports.ɵ
|
|
11231
|
-
exports.ɵ
|
|
11232
|
-
exports.ɵ
|
|
11233
|
-
exports.ɵz = CardWideComponent;
|
|
11428
|
+
exports.ɵb = WidgetUserService;
|
|
11429
|
+
exports.ɵba = CardWideV2Component;
|
|
11430
|
+
exports.ɵbb = PipePublicURLModule;
|
|
11431
|
+
exports.ɵbc = PipePublicURL;
|
|
11432
|
+
exports.ɵbd = DisplayContentTypeLibModule;
|
|
11433
|
+
exports.ɵbe = DisplayContentTypeLibComponent;
|
|
11434
|
+
exports.ɵbf = DefaultThumbnailModule;
|
|
11435
|
+
exports.ɵbg = DefaultThumbnailDirective;
|
|
11436
|
+
exports.ɵbh = PipeDurationTransformModule;
|
|
11437
|
+
exports.ɵbi = PipeDurationTransformPipe;
|
|
11438
|
+
exports.ɵbj = CompetencyPassbookComponent;
|
|
11439
|
+
exports.ɵbk = CompetencyPassbookService;
|
|
11440
|
+
exports.ɵbl = PillsModule;
|
|
11441
|
+
exports.ɵbm = PillsComponent;
|
|
11442
|
+
exports.ɵbn = UserContentRatingLibComponent;
|
|
11443
|
+
exports.ɵbo = ScrollableItemDirective;
|
|
11444
|
+
exports.ɵbp = RatingService;
|
|
11445
|
+
exports.ɵbq = UserContentRatingLibService;
|
|
11446
|
+
exports.ɵbr = AvatarPhotoLibModule;
|
|
11447
|
+
exports.ɵbs = AvatarPhotoLibComponent;
|
|
11448
|
+
exports.ɵbt = MyHammerConfig$1;
|
|
11449
|
+
exports.ɵbu = SlidersNgContentLibModule;
|
|
11450
|
+
exports.ɵbv = SlidersNgContentLibComponent;
|
|
11451
|
+
exports.ɵbw = ScrollableItemModule;
|
|
11452
|
+
exports.ɵc = MultilingualTranslationsService;
|
|
11453
|
+
exports.ɵd = ConfigurationsService;
|
|
11454
|
+
exports.ɵe = HorizontalScrollerV2Module;
|
|
11455
|
+
exports.ɵf = HorizontalScrollerV2Component;
|
|
11456
|
+
exports.ɵg = SlidersLibComponent;
|
|
11457
|
+
exports.ɵh = NavigationModule;
|
|
11458
|
+
exports.ɵi = NavigationDirective;
|
|
11459
|
+
exports.ɵj = ImageResponsiveModule;
|
|
11460
|
+
exports.ɵk = ImageResponsiveDirective;
|
|
11461
|
+
exports.ɵl = DataPointsComponent;
|
|
11462
|
+
exports.ɵm = InsiteDataService;
|
|
11463
|
+
exports.ɵn = SkeletonLoaderLibModule;
|
|
11464
|
+
exports.ɵo = SkeletonLoaderLibComponent;
|
|
11465
|
+
exports.ɵp = CalenderComponent;
|
|
11466
|
+
exports.ɵq = CalenderDayComponent;
|
|
11467
|
+
exports.ɵr = CommonStripComponent;
|
|
11468
|
+
exports.ɵs = AnnouncementsComponent;
|
|
11469
|
+
exports.ɵt = CardResourceComponent;
|
|
11470
|
+
exports.ɵu = CardsComponent;
|
|
11471
|
+
exports.ɵv = CardPortraitComponent;
|
|
11472
|
+
exports.ɵw = CardUserComponent;
|
|
11473
|
+
exports.ɵx = CardLandscapeComponent;
|
|
11474
|
+
exports.ɵy = CardWideComponent;
|
|
11475
|
+
exports.ɵz = CardMDOChannelComponent;
|
|
11234
11476
|
|
|
11235
11477
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11236
11478
|
|