@sunbird-cb/consumption 0.0.81 → 0.0.83
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 +1487 -66
- package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js +2 -2
- package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
- package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +26 -20
- package/esm2015/lib/_common/competency-passbook/competency-passbook.service.js +8 -1
- package/esm2015/lib/_common/competency-passbook-mdo/competency-passbook-mdo.component.js +20 -11
- package/esm2015/lib/_common/competency-passbook-mdo/competency-passbook-mdo.service.js +8 -1
- package/esm2015/lib/_common/data-points/data-points.component.js +37 -5
- package/esm2015/lib/_common/events/event-card/event-card.component.js +82 -0
- package/esm2015/lib/_common/events/events.component.js +167 -0
- package/esm2015/lib/_common/events/events.module.js +24 -0
- package/esm2015/lib/_common/highlights-of-week/highlights-of-week.component.js +76 -0
- package/esm2015/lib/_common/highlights-of-week/highlights-of-week.module.js +28 -0
- package/esm2015/lib/_common/key-highlights/key-highlights.component.js +65 -0
- package/esm2015/lib/_common/key-highlights/key-highlights.module.js +28 -0
- package/esm2015/lib/_common/mdo-leaderboard/mdo-leaderboard.component.js +193 -0
- package/esm2015/lib/_common/mdo-leaderboard/mdo-leaderboard.module.js +30 -0
- package/esm2015/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +131 -0
- package/esm2015/lib/_common/microsites/national-learning-week/national-learning.module.js +50 -0
- package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.component.js +7 -3
- package/esm2015/lib/_common/speakers/speakers.component.js +105 -0
- package/esm2015/lib/_common/speakers/speakers.module.js +28 -0
- package/esm2015/lib/_common/user-progress/user-progress.component.js +159 -0
- package/esm2015/lib/_common/user-progress/user-progress.module.js +28 -0
- package/esm2015/lib/_models/compentencies.model.js +25 -0
- package/esm2015/lib/_services/insite-data.service.js +41 -2
- package/esm2015/lib/consumption.module.js +1 -1
- package/esm2015/public-api.js +8 -1
- package/esm2015/sunbird-cb-consumption.js +10 -2
- package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +52 -44
- package/esm5/lib/_common/competency-passbook/competency-passbook.service.js +11 -1
- package/esm5/lib/_common/competency-passbook-mdo/competency-passbook-mdo.component.js +19 -11
- package/esm5/lib/_common/competency-passbook-mdo/competency-passbook-mdo.service.js +11 -1
- package/esm5/lib/_common/data-points/data-points.component.js +41 -5
- package/esm5/lib/_common/events/event-card/event-card.component.js +92 -0
- package/esm5/lib/_common/events/events.component.js +181 -0
- package/esm5/lib/_common/events/events.module.js +28 -0
- package/esm5/lib/_common/highlights-of-week/highlights-of-week.component.js +89 -0
- package/esm5/lib/_common/highlights-of-week/highlights-of-week.module.js +32 -0
- package/esm5/lib/_common/key-highlights/key-highlights.component.js +74 -0
- package/esm5/lib/_common/key-highlights/key-highlights.module.js +32 -0
- package/esm5/lib/_common/mdo-leaderboard/mdo-leaderboard.component.js +221 -0
- package/esm5/lib/_common/mdo-leaderboard/mdo-leaderboard.module.js +34 -0
- package/esm5/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +155 -0
- package/esm5/lib/_common/microsites/national-learning-week/national-learning.module.js +54 -0
- package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.component.js +7 -3
- package/esm5/lib/_common/speakers/speakers.component.js +122 -0
- package/esm5/lib/_common/speakers/speakers.module.js +32 -0
- package/esm5/lib/_common/user-progress/user-progress.component.js +185 -0
- package/esm5/lib/_common/user-progress/user-progress.module.js +32 -0
- package/esm5/lib/_models/compentencies.model.js +25 -0
- package/esm5/lib/_services/insite-data.service.js +58 -2
- package/esm5/lib/consumption.module.js +1 -1
- package/esm5/public-api.js +8 -1
- package/esm5/sunbird-cb-consumption.js +10 -2
- package/fesm2015/sunbird-cb-consumption.js +1264 -38
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +1468 -62
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/competency-passbook/competency-passbook.component.d.ts +4 -1
- package/lib/_common/competency-passbook/competency-passbook.service.d.ts +1 -0
- package/lib/_common/competency-passbook-mdo/competency-passbook-mdo.component.d.ts +4 -1
- package/lib/_common/competency-passbook-mdo/competency-passbook-mdo.service.d.ts +1 -0
- package/lib/_common/data-points/data-points.component.d.ts +3 -0
- package/lib/_common/events/event-card/event-card.component.d.ts +13 -0
- package/lib/_common/events/events.component.d.ts +17 -0
- package/lib/_common/events/events.module.d.ts +2 -0
- package/lib/_common/highlights-of-week/highlights-of-week.component.d.ts +14 -0
- package/lib/_common/highlights-of-week/highlights-of-week.module.d.ts +2 -0
- package/lib/_common/key-highlights/key-highlights.component.d.ts +15 -0
- package/lib/_common/key-highlights/key-highlights.module.d.ts +2 -0
- package/lib/_common/mdo-leaderboard/mdo-leaderboard.component.d.ts +20 -0
- package/lib/_common/mdo-leaderboard/mdo-leaderboard.module.d.ts +2 -0
- package/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.d.ts +20 -0
- package/lib/_common/microsites/national-learning-week/national-learning.module.d.ts +2 -0
- package/lib/_common/sliders-ng-content/sliders-ng-content.component.d.ts +1 -0
- package/lib/_common/speakers/speakers.component.d.ts +15 -0
- package/lib/_common/speakers/speakers.module.d.ts +2 -0
- package/lib/_common/user-progress/user-progress.component.d.ts +22 -0
- package/lib/_common/user-progress/user-progress.module.d.ts +2 -0
- package/lib/_models/compentencies.model.d.ts +9 -0
- package/lib/_services/insite-data.service.d.ts +5 -0
- package/package.json +2 -2
- package/public-api.d.ts +7 -0
- package/sunbird-cb-consumption.d.ts +8 -0
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -9,7 +9,7 @@ import { __assign, __awaiter, __generator, __extends, __values, __spread, __read
|
|
|
9
9
|
import { WidgetBaseComponent, SbUiResolverModule } from '@sunbird-cb/resolver-v2';
|
|
10
10
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
11
11
|
import { get, uniqBy, orderBy, camelCase, kebabCase } from 'lodash';
|
|
12
|
-
import * as moment$
|
|
12
|
+
import * as moment$4 from 'moment';
|
|
13
13
|
import { duration, utc } from 'moment';
|
|
14
14
|
import { TranslateService, TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
15
15
|
import 'rxjs/add/observable/of';
|
|
@@ -1479,7 +1479,7 @@ function viewerRouteGenerator(id, mimeType, collectionId, collectionType, forPre
|
|
|
1479
1479
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1480
1480
|
*/
|
|
1481
1481
|
/** @type {?} */
|
|
1482
|
-
var moment = moment$
|
|
1482
|
+
var moment = moment$4;
|
|
1483
1483
|
// tslint:enable
|
|
1484
1484
|
// TODO: move this in some common place
|
|
1485
1485
|
/** @type {?} */
|
|
@@ -7194,7 +7194,12 @@ var API_END_POINTS$2 = {
|
|
|
7194
7194
|
PROVIDER_INSIGHTS: "/apis/proxies/v8/microsite/read/insights",
|
|
7195
7195
|
TRAINING_DETAILS: "apis/proxies/v8/sunbirdigot/search",
|
|
7196
7196
|
ANNOUNCEMENTS_DETAILS: "apis/proxies/v8/announcements/v1/search",
|
|
7197
|
-
LEARNERS: "apis/proxies/v8/halloffame/top/learners"
|
|
7197
|
+
LEARNERS: "apis/proxies/v8/halloffame/top/learners",
|
|
7198
|
+
LEADERBOARD: 'apis/proxies/v8/halloffame/v1/mdoleaderboard',
|
|
7199
|
+
LEADERBOARD_USERS: "apis/proxies/v8/halloffame/v1/userleaderboard",
|
|
7200
|
+
NLW_LEADERBOARD: "apis/proxies/v8/national/learning/week/insights",
|
|
7201
|
+
INSIGHTS: "apis/proxies/v8/read/user/insights",
|
|
7202
|
+
USER_PROGRESS: "apis/proxies/v8/halloffame/v1/userleaderboard",
|
|
7198
7203
|
};
|
|
7199
7204
|
var InsiteDataService = /** @class */ (function () {
|
|
7200
7205
|
function InsiteDataService(http) {
|
|
@@ -7244,6 +7249,57 @@ var InsiteDataService = /** @class */ (function () {
|
|
|
7244
7249
|
function (channelId) {
|
|
7245
7250
|
return this.http.get(API_END_POINTS$2.LEARNERS + "/" + channelId);
|
|
7246
7251
|
};
|
|
7252
|
+
/**
|
|
7253
|
+
* @return {?}
|
|
7254
|
+
*/
|
|
7255
|
+
InsiteDataService.prototype.fetchLeaderboard = /**
|
|
7256
|
+
* @return {?}
|
|
7257
|
+
*/
|
|
7258
|
+
function () {
|
|
7259
|
+
return this.http.get("" + API_END_POINTS$2.LEADERBOARD);
|
|
7260
|
+
};
|
|
7261
|
+
/**
|
|
7262
|
+
* @param {?} orgId
|
|
7263
|
+
* @return {?}
|
|
7264
|
+
*/
|
|
7265
|
+
InsiteDataService.prototype.fetchMdoUsers = /**
|
|
7266
|
+
* @param {?} orgId
|
|
7267
|
+
* @return {?}
|
|
7268
|
+
*/
|
|
7269
|
+
function (orgId) {
|
|
7270
|
+
return this.http.get(API_END_POINTS$2.LEADERBOARD_USERS + "/" + orgId);
|
|
7271
|
+
};
|
|
7272
|
+
/**
|
|
7273
|
+
* @return {?}
|
|
7274
|
+
*/
|
|
7275
|
+
InsiteDataService.prototype.fetchNwlStats = /**
|
|
7276
|
+
* @return {?}
|
|
7277
|
+
*/
|
|
7278
|
+
function () {
|
|
7279
|
+
return this.http.get("" + API_END_POINTS$2.NLW_LEADERBOARD);
|
|
7280
|
+
};
|
|
7281
|
+
/**
|
|
7282
|
+
* @param {?} payload
|
|
7283
|
+
* @return {?}
|
|
7284
|
+
*/
|
|
7285
|
+
InsiteDataService.prototype.fetchInsightsData = /**
|
|
7286
|
+
* @param {?} payload
|
|
7287
|
+
* @return {?}
|
|
7288
|
+
*/
|
|
7289
|
+
function (payload) {
|
|
7290
|
+
/** @type {?} */
|
|
7291
|
+
var result = this.http.post(API_END_POINTS$2.INSIGHTS, payload);
|
|
7292
|
+
return result;
|
|
7293
|
+
};
|
|
7294
|
+
/**
|
|
7295
|
+
* @return {?}
|
|
7296
|
+
*/
|
|
7297
|
+
InsiteDataService.prototype.fetchUserProgress = /**
|
|
7298
|
+
* @return {?}
|
|
7299
|
+
*/
|
|
7300
|
+
function () {
|
|
7301
|
+
return this.http.get("" + API_END_POINTS$2.USER_PROGRESS);
|
|
7302
|
+
};
|
|
7247
7303
|
InsiteDataService.decorators = [
|
|
7248
7304
|
{ type: Injectable, args: [{
|
|
7249
7305
|
providedIn: 'root'
|
|
@@ -7290,7 +7346,12 @@ var DataPointsComponent = /** @class */ (function () {
|
|
|
7290
7346
|
}
|
|
7291
7347
|
if (this.fetchDataFromApi) {
|
|
7292
7348
|
this.isDataLoading = true;
|
|
7293
|
-
this.
|
|
7349
|
+
if (this.pageLayout === 'nlw') {
|
|
7350
|
+
this.getStats();
|
|
7351
|
+
}
|
|
7352
|
+
else {
|
|
7353
|
+
this.getInsiteData();
|
|
7354
|
+
}
|
|
7294
7355
|
}
|
|
7295
7356
|
};
|
|
7296
7357
|
/**
|
|
@@ -7359,6 +7420,32 @@ var DataPointsComponent = /** @class */ (function () {
|
|
|
7359
7420
|
_this.isDataLoading = false;
|
|
7360
7421
|
}));
|
|
7361
7422
|
};
|
|
7423
|
+
/**
|
|
7424
|
+
* @return {?}
|
|
7425
|
+
*/
|
|
7426
|
+
DataPointsComponent.prototype.getStats = /**
|
|
7427
|
+
* @return {?}
|
|
7428
|
+
*/
|
|
7429
|
+
function () {
|
|
7430
|
+
var _this = this;
|
|
7431
|
+
this.insightSvc.fetchNwlStats().subscribe((/**
|
|
7432
|
+
* @param {?} res
|
|
7433
|
+
* @return {?}
|
|
7434
|
+
*/
|
|
7435
|
+
function (res) {
|
|
7436
|
+
if (res && res.result && res.result.data) {
|
|
7437
|
+
_this.objectData = res.result.data;
|
|
7438
|
+
}
|
|
7439
|
+
_this.isDataLoading = false;
|
|
7440
|
+
}), (/**
|
|
7441
|
+
* @param {?} error
|
|
7442
|
+
* @return {?}
|
|
7443
|
+
*/
|
|
7444
|
+
function (error) {
|
|
7445
|
+
console.log(error);
|
|
7446
|
+
_this.isDataLoading = false;
|
|
7447
|
+
}));
|
|
7448
|
+
};
|
|
7362
7449
|
/**
|
|
7363
7450
|
* @param {?} value
|
|
7364
7451
|
* @return {?}
|
|
@@ -7389,8 +7476,8 @@ var DataPointsComponent = /** @class */ (function () {
|
|
|
7389
7476
|
DataPointsComponent.decorators = [
|
|
7390
7477
|
{ type: Component, args: [{
|
|
7391
7478
|
selector: 'sb-uic-data-points',
|
|
7392
|
-
template: "<div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && !isDataLoading\">\n <div *ngFor=\"let obj of objectData; let last = last\" class=\"\">\n <div class=\"element-div\" [ngClass]=\"{'linebreak': obj?.linebreak && !last}\">\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <img class=\"objIcon\" [src]=\"obj.icon\" [style.color]=\"obj?.iconColor\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"objDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full pl-5 margin-top-l\" *ngIf=\"layoutType === 'multipleRows-V2' && !isDataLoading\">\n <!-- <div class=\"logodiv margin-bottom-s\">\n <img alt=\"Application Logo\" class=\"logoimg\" src=\"/assets/instances/eagle/app_logos/KarmayogiBharat_Logo_Horizontal.svg\">\n </div> -->\n <div *ngFor=\"let obj of objectData; let i = index\">\n <div class=\"flex flex-row gap-3 {{(i+1 === objectData.length ? '' : 'pb-5')}}\">\n <div class=\"v2-icons-div\">\n <div class=\"v2-icon-contaier\"\n [style.background]=\"obj?.iconBackgroupColorV2\"\n [style.borderColor]=\"obj?.valueColorV2\">\n <img class=\"v2-objIcon\" [src]=\"obj.icon\" />\n </div>\n </div>\n <div class=\"v2-content-div\">\n <div class=\"flex flex-col\">\n <div class=\"v2-value\" [style.color]=\"obj?.valueColorV2\" *ngIf=\"!(obj && obj?.value)\">0</div>\n <div class=\"v2-value\" [style.color]=\"obj?.valueColorV2\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div class=\"v2-label\" [style.color]=\"obj?.labelColorV2\">\n {{obj?.label}}\n </div>\n <div class=\"flex flex-row dot-container\" *ngIf=\"i+1 !== objectData?.length\">\n <div class=\"v2-dot\"\n [style.background]=\"obj?.valueColorV2\"\n [style.borderColor]=\"obj?.labelColorV2\"></div>\n <div class=\"v2-border\" [style.background]=\"obj?.labelColorV2\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow-v2' && !isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div flex-item\" [style.background]=\"obj?.backgroundV2\" >\n <div class=\"flex flex-row gap-3\">\n <div class=\"mob-image-container-v2\" [style.borderColor]=\"obj?.valueColorV2\">\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon-v2\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColorMobV2\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColorMobV2\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColorV2\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && !isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj?.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"top-container\">\n <div class=\"flex-container\" *ngFor=\"let chunk of customArray\">\n <div *ngFor=\"let item of chunk\">\n <div class=\"flex-item\">\n <div class=\"flex flex-row gap-5 infra-element-div\">\n <div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"!(item && item.value)\">0</div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"(item && item.value)\">\n {{item?.value | number: item.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"item?.labelColor\" class=\"custom-opacity infra-objDescription padding-top-s\">{{item?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleFlexeRow' && !isDataLoading\">\n <div class=\"flex space-around\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div singleFlexeRow flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"singleFlexeRowIcon\" [src]=\"obj.icon\">\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<!-- skeleton loaders -->\n\n<ng-container>\n <div class=\"w-full metrics-web customdiv\" *ngIf=\"layoutType === 'multipleRows-V2' && isDataLoading\">\n <div *ngFor=\"let obj of [1,2,3,4]l let i = index\">\n <div class=\"flex flex-row gap-4 {{(i+1 === objectData.length ? '' : 'pb-5')}}\">\n <div class=\"v2-icons-div\">\n <div class=\"v2-icon-contaier\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'55px'\"\n [height]=\"'55px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"v2-content-div\">\n <div class=\"flex flex-col\">\n <div class=\"v2-value\" [style.color]=\"obj?.valueColor\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"v2-label\" [style.color]=\"obj?.labelColor\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'16px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div> \n </div>\n </div>\n</ng-container>\n\n<ng-container>\n <div class=\"w-full metrics-web customdiv\" *ngIf=\"layoutType === 'multipleRows' && isDataLoading\">\n <div *ngFor=\"let obj of [0,1,2,3]\" class=\"\">\n <div class=\"element-div linebreak\" >\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'32px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'150px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'singleFlexeRow' && isDataLoading\">\n <div class=\"flex\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow-v2' && isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div flex-item\" [style.background]=\"obj?.backgroundV2\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n",
|
|
7393
|
-
styles: ["@font-face{font-family:Poppins;src:url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff2) format('woff2'),url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff) format('woff')}.mob-image-container-v2{height:28px;width:28px;background:#fff;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #fff}.mobjIcon-v2{width:18px;height:18px}.v2-icon-contaier{height:45px;width:45px;border:1px solid #fff;border-radius:50%;align-items:center;display:flex;justify-content:center}.v2-value{font-family:Poppins;font-size:20px;font-weight:600;line-height:20px;text-align:left;padding-bottom:5px;padding-left:10px}.v2-label{font-family:Poppins;font-size:12px;font-weight:400;line-height:18px;text-align:left;padding-bottom:5px;padding-left:10px}.dot-container{align-items:center}.v2-dot{width:9px;height:9px;border:2px solid #fff;border-radius:50%}.v2-border{height:1px;width:182px}.white{color:#fff}.custom-opacity{opacity:.7}.black{color:#000}.objIcon{width:32px;height:32px}.mobjIcon{width:24px;height:24px}.objHeader{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left}.mobjHeader{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left}.mobjDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.metrics-web{height:inherit;overflow-y:auto}.element-div{padding:25px 0;margin:0 25px}.linebreak{border-bottom:1px solid rgba(0,0,0,.16)}.singleFlexeRow-flex-item{flex:0 0 auto;white-space:nowrap}.singleFlexeRow-div{padding:16px;border-radius:15px}.singleFlexeRowHeader{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.singleFlexeRowDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.singleFlexeRowIcon{width:24px;height:24px}.melement-div{padding:16px;border-radius:15px;width:249px}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-element-div{min-width:325px;padding:25px 0;align-items:baseline}.infra-objIcon{width:32px;height:32px}.infra-objHeader{font-family:Montserrat;font-size:36px;font-weight:600;line-height:29.26px;text-align:left}.infra-objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left;width:230px;text-overflow:ellipsis;overflow:hidden}.flex-container{display:flex}.top-container{overflow-x:auto;width:100%}::-webkit-scrollbar{height:4px}::-webkit-scrollbar-track{border-radius:10px;background:#000}::-webkit-scrollbar-thumb{background:#cccc;border-radius:10px}.flex-item{flex:0 0 auto;white-space:nowrap;min-width:200px}.space-around{justify-content:space-evenly}@media screen and (min-width:768px) and (max-width:1023px){.v2-icon-contaier{height:25px;width:25px}.v2-objIcon{width:14px}.v2-value{font-size:14px!important;line-height:14px!important;padding-left:0!important}.v2-label{font-size:9px!important;line-height:9px!important;padding-left:0!important}.v2-dot{width:6px!important;height:6px!important;border:1px solid #fff!important}.v2-border{width:109px!important}}@media screen and (min-width:1023px) and (max-width:1280px){.customdiv{margin-left:6%;margin-top:.6em!important}.v2-icon-contaier{height:34px;width:34px}.v2-objIcon{width:20px}.v2-value{font-size:16px!important;line-height:16px!important;padding-left:0!important}.v2-label{font-size:10px!important;line-height:10px!important;padding-left:0!important}.v2-dot{width:8px!important;height:8px!important;border:1px solid #fff!important}.v2-border{width:122px!important}}@media screen and (max-width:768px){.infra-objIcon{width:24px;height:24px}.infra-objHeader{font-size:24px}.infra-element-div{min-width:250px;padding:15px 0 25px}}@media screen and (min-width:1280px){.customdiv{margin-left:24%}}@media screen and (min-width:1690px){.customdiv{margin-left:34%}}@media screen and (min-width:1904px){.customdiv{margin-left:44%}}.logodiv{background:#fff;width:150px;border-radius:45px;text-align:center;padding:8px 0 2px}.logoimg{width:114px}"]
|
|
7479
|
+
template: "<div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && !isDataLoading\">\n <div *ngFor=\"let obj of objectData; let last = last\" class=\"\">\n <div class=\"element-div\" [ngClass]=\"{'linebreak': obj?.linebreak && !last}\">\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <img class=\"objIcon\" [src]=\"obj.icon\" [style.color]=\"obj?.iconColor\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"objDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full pl-5 margin-top-l\" *ngIf=\"layoutType === 'multipleRows-V2' && !isDataLoading\">\n <!-- <div class=\"logodiv margin-bottom-s\">\n <img alt=\"Application Logo\" class=\"logoimg\" src=\"/assets/instances/eagle/app_logos/KarmayogiBharat_Logo_Horizontal.svg\">\n </div> -->\n <div *ngFor=\"let obj of objectData; let i = index\">\n <div class=\"flex flex-row gap-3 {{(i+1 === objectData.length ? '' : 'pb-5')}}\">\n <div class=\"v2-icons-div\">\n <div class=\"v2-icon-contaier\"\n [style.background]=\"obj?.iconBackgroupColorV2\"\n [style.borderColor]=\"obj?.valueColorV2\">\n <img class=\"v2-objIcon\" [src]=\"obj.icon\" />\n </div>\n </div>\n <div class=\"v2-content-div\">\n <div class=\"flex flex-col\">\n <div class=\"v2-value\" [style.color]=\"obj?.valueColorV2\" *ngIf=\"!(obj && obj?.value)\">0</div>\n <div class=\"v2-value\" [style.color]=\"obj?.valueColorV2\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div class=\"v2-label\" [style.color]=\"obj?.labelColorV2\">\n {{obj?.label}}\n </div>\n <div class=\"flex flex-row dot-container\" *ngIf=\"i+1 !== objectData?.length\">\n <div class=\"v2-dot\"\n [style.background]=\"obj?.valueColorV2\"\n [style.borderColor]=\"obj?.labelColorV2\"></div>\n <div class=\"v2-border\" [style.background]=\"obj?.labelColorV2\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow-v2' && !isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div flex-item\" [style.background]=\"obj?.backgroundV2\" >\n <div class=\"flex flex-row gap-3\">\n <div class=\"mob-image-container-v2\" [style.borderColor]=\"obj?.valueColorV2\">\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon-v2\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColorMobV2\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColorMobV2\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColorV2\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && !isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj?.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"top-container\">\n <div class=\"flex-container\" *ngFor=\"let chunk of customArray\">\n <div *ngFor=\"let item of chunk\">\n <div class=\"flex-item\">\n <div class=\"flex flex-row gap-5 infra-element-div\">\n <div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"!(item && item.value)\">0</div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"(item && item.value)\">\n {{item?.value | number: item.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"item?.labelColor\" class=\"custom-opacity infra-objDescription padding-top-s\">{{item?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleFlexeRow' && !isDataLoading\">\n <div class=\"flex space-around\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div singleFlexeRow flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"singleFlexeRowIcon\" [src]=\"obj.icon\">\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"pageLayout === 'nlw' && !isDataLoading\">\n <div class=\"stats-header\">\n <div class=\"flex items-center justify-center stats-title\">\n <span class=\"my-arrow\">❮</span>\n <span class=\"my-arrow less-opacity1\">❮</span>\n <span class=\"my-arrow less-opacity2\">❮</span>\n <span class=\"px-4\">{{title}}</span>\n <span class=\"my-arrow less-opacity2\">❯</span>\n <span class=\"my-arrow less-opacity1\">❯</span>\n <span class=\"my-arrow\">❯</span>\n </div>\n </div>\n <div class=\"nlw-status\" *ngIf=\"layoutType === 'nlwRow'\">\n <div class=\"flex space-around pt-5\">\n <div *ngFor=\"let obj of objectData; index as i\" class=\"flex-container\">\n <div class=\"nlw-div singleFlexeRow flex-item {{i === 0 ? '' : 'divider'}} \">\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"singleFlexeRowIcon\" [src]=\"obj.icon\">\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"nlw-status-mob\" *ngIf=\"layoutType === 'nlwCol'\">\n <div *ngFor=\"let obj of objectData; index as i\" class=\"flex-container\">\n <div class=\"nlw-div singleFlexeRow flex-item {{i === 0 ? '' : 'divider'}} \">\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"singleFlexeRowIcon\" [src]=\"obj.icon\">\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<!-- skeleton loaders -->\n\n<ng-container>\n <div class=\"w-full metrics-web customdiv\" *ngIf=\"layoutType === 'multipleRows-V2' && isDataLoading\">\n <div *ngFor=\"let obj of [1,2,3,4]l let i = index\">\n <div class=\"flex flex-row gap-4 {{(i+1 === objectData.length ? '' : 'pb-5')}}\">\n <div class=\"v2-icons-div\">\n <div class=\"v2-icon-contaier\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'55px'\"\n [height]=\"'55px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"v2-content-div\">\n <div class=\"flex flex-col\">\n <div class=\"v2-value\" [style.color]=\"obj?.valueColor\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"v2-label\" [style.color]=\"obj?.labelColor\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'16px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div> \n </div>\n </div>\n</ng-container>\n\n<ng-container>\n <div class=\"w-full metrics-web customdiv\" *ngIf=\"layoutType === 'multipleRows' && isDataLoading\">\n <div *ngFor=\"let obj of [0,1,2,3]\" class=\"\">\n <div class=\"element-div linebreak\" >\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'32px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'150px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'singleFlexeRow' && isDataLoading\">\n <div class=\"flex\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow-v2' && isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div flex-item\" [style.background]=\"obj?.backgroundV2\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n",
|
|
7480
|
+
styles: ["@font-face{font-family:Poppins;src:url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff2) format('woff2'),url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff) format('woff')}.stats-header{display:flex;align-items:center;justify-content:center}.stats-title{background-color:#f3962f;padding:12px 16px;color:#fff;font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;border-radius:35px;margin-top:-20px;z-index:90}.my-arrow{font-size:12px}.less-opacity1{opacity:.75}.less-opacity2{opacity:.5}.nlw-status{background:linear-gradient(173.01deg,#266eeb -5.09%,#133f8b 133.16%);margin-top:-22px}.nlw-status-mob{background:linear-gradient(173.01deg,#266eeb -5.09%,#133f8b 133.16%);margin-top:-22px;padding-top:32px}.nlw-div{padding:0 16px;margin:10px 0 16px}.divider{border-left:1.6px solid #a6a4a4}.mob-image-container-v2{height:28px;width:28px;background:#fff;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #fff}.mobjIcon-v2{width:18px;height:18px}.v2-icon-contaier{height:45px;width:45px;border:1px solid #fff;border-radius:50%;align-items:center;display:flex;justify-content:center}.v2-value{font-family:Poppins;font-size:20px;font-weight:600;line-height:20px;text-align:left;padding-bottom:5px;padding-left:10px}.v2-label{font-family:Poppins;font-size:12px;font-weight:400;line-height:18px;text-align:left;padding-bottom:5px;padding-left:10px}.dot-container{align-items:center}.v2-dot{width:9px;height:9px;border:2px solid #fff;border-radius:50%}.v2-border{height:1px;width:182px}.white{color:#fff}.custom-opacity{opacity:.7}.black{color:#000}.objIcon{width:32px;height:32px}.mobjIcon{width:24px;height:24px}.objHeader{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left}.mobjHeader{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left}.mobjDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.metrics-web{height:inherit;overflow-y:auto}.element-div{padding:25px 0;margin:0 25px}.linebreak{border-bottom:1px solid rgba(0,0,0,.16)}.singleFlexeRow-flex-item{flex:0 0 auto;white-space:nowrap}.singleFlexeRow-div{padding:16px;border-radius:15px}.singleFlexeRowHeader{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.singleFlexeRowDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.singleFlexeRowIcon{width:24px;height:24px}.melement-div{padding:16px;border-radius:15px;width:249px}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-element-div{min-width:325px;padding:25px 0;align-items:baseline}.infra-objIcon{width:32px;height:32px}.infra-objHeader{font-family:Montserrat;font-size:36px;font-weight:600;line-height:29.26px;text-align:left}.infra-objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left;width:230px;text-overflow:ellipsis;overflow:hidden}.flex-container{display:flex}.top-container{overflow-x:auto;width:100%}::-webkit-scrollbar{height:4px}::-webkit-scrollbar-track{border-radius:10px;background:#000}::-webkit-scrollbar-thumb{background:#cccc;border-radius:10px}.flex-item{flex:0 0 auto;white-space:nowrap;min-width:200px}.space-around{justify-content:space-evenly}@media screen and (min-width:768px) and (max-width:1023px){.v2-icon-contaier{height:25px;width:25px}.v2-objIcon{width:14px}.v2-value{font-size:14px!important;line-height:14px!important;padding-left:0!important}.v2-label{font-size:9px!important;line-height:9px!important;padding-left:0!important}.v2-dot{width:6px!important;height:6px!important;border:1px solid #fff!important}.v2-border{width:109px!important}}@media screen and (min-width:1023px) and (max-width:1280px){.customdiv{margin-left:6%;margin-top:.6em!important}.v2-icon-contaier{height:34px;width:34px}.v2-objIcon{width:20px}.v2-value{font-size:16px!important;line-height:16px!important;padding-left:0!important}.v2-label{font-size:10px!important;line-height:10px!important;padding-left:0!important}.v2-dot{width:8px!important;height:8px!important;border:1px solid #fff!important}.v2-border{width:122px!important}}@media screen and (max-width:768px){.infra-objIcon{width:24px;height:24px}.infra-objHeader{font-size:24px}.infra-element-div{min-width:250px;padding:15px 0 25px}}@media screen and (min-width:1280px){.customdiv{margin-left:24%}}@media screen and (min-width:1690px){.customdiv{margin-left:34%}}@media screen and (min-width:1904px){.customdiv{margin-left:44%}}.logodiv{background:#fff;width:150px;border-radius:45px;text-align:center;padding:8px 0 2px}.logoimg{width:114px}"]
|
|
7394
7481
|
}] }
|
|
7395
7482
|
];
|
|
7396
7483
|
/** @nocollapse */
|
|
@@ -7402,7 +7489,8 @@ var DataPointsComponent = /** @class */ (function () {
|
|
|
7402
7489
|
layoutType: [{ type: Input }],
|
|
7403
7490
|
fetchDataFromApi: [{ type: Input }],
|
|
7404
7491
|
providerId: [{ type: Input }],
|
|
7405
|
-
pageLayout: [{ type: Input }]
|
|
7492
|
+
pageLayout: [{ type: Input }],
|
|
7493
|
+
title: [{ type: Input }]
|
|
7406
7494
|
};
|
|
7407
7495
|
return DataPointsComponent;
|
|
7408
7496
|
}());
|
|
@@ -7418,10 +7506,14 @@ if (false) {
|
|
|
7418
7506
|
/** @type {?} */
|
|
7419
7507
|
DataPointsComponent.prototype.pageLayout;
|
|
7420
7508
|
/** @type {?} */
|
|
7509
|
+
DataPointsComponent.prototype.title;
|
|
7510
|
+
/** @type {?} */
|
|
7421
7511
|
DataPointsComponent.prototype.customArray;
|
|
7422
7512
|
/** @type {?} */
|
|
7423
7513
|
DataPointsComponent.prototype.isDataLoading;
|
|
7424
7514
|
/** @type {?} */
|
|
7515
|
+
DataPointsComponent.prototype.apiResults;
|
|
7516
|
+
/** @type {?} */
|
|
7425
7517
|
DataPointsComponent.prototype.insightSvc;
|
|
7426
7518
|
}
|
|
7427
7519
|
|
|
@@ -9055,7 +9147,7 @@ var AnnouncementsModule = /** @class */ (function () {
|
|
|
9055
9147
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9056
9148
|
*/
|
|
9057
9149
|
/** @type {?} */
|
|
9058
|
-
var moment$1 = moment$
|
|
9150
|
+
var moment$1 = moment$4;
|
|
9059
9151
|
var TopLearnersComponent = /** @class */ (function () {
|
|
9060
9152
|
function TopLearnersComponent(insightSvc) {
|
|
9061
9153
|
this.insightSvc = insightSvc;
|
|
@@ -9475,6 +9567,7 @@ var SlidersNgContentLibComponent = /** @class */ (function (_super) {
|
|
|
9475
9567
|
_this.title = '';
|
|
9476
9568
|
_this.loadNgContentData = false;
|
|
9477
9569
|
_this.autoScroll = false;
|
|
9570
|
+
_this.customBanner = false;
|
|
9478
9571
|
_this.currentIndexValue = new EventEmitter();
|
|
9479
9572
|
_this.id = "banner_" + Math.random();
|
|
9480
9573
|
_this.defaultMenuSubscribe = null;
|
|
@@ -9628,8 +9721,8 @@ var SlidersNgContentLibComponent = /** @class */ (function (_super) {
|
|
|
9628
9721
|
SlidersNgContentLibComponent.decorators = [
|
|
9629
9722
|
{ type: Component, args: [{
|
|
9630
9723
|
selector: 'sb-uic-sliders-ng-content',
|
|
9631
|
-
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 <ng-container *ngIf=\"!loadNgContentData\">\n <a (click)=\"raiseTelemetry(widgetData[currentIndex].redirectUrl)\"\n [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-overlay\"\n [ngClass]=\"{'cursor-auto': !widgetData[currentIndex].redirectUrl}\">\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 </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\" 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 </ng-container>\n </ng-container>\n <ng-container *ngIf=\"loadNgContentData\">\n <!-- <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\"> -->\n <ng-content select=\"[sliderbody]\"></ng-content>\n <!-- </div> -->\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\" 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 <ng-content select=\"[sliderMeta]\"></ng-content>\n </div>\n </div>\n </ng-container>\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 margin-top-s\" *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\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",
|
|
9632
|
-
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.top-center{left:0;bottom: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}}"]
|
|
9724
|
+
template: "<div class=\"{{customBanner ? 'keybanner' : '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 <ng-container *ngIf=\"!loadNgContentData\">\n <a (click)=\"raiseTelemetry(widgetData[currentIndex].redirectUrl)\"\n [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-overlay\"\n [ngClass]=\"{'cursor-auto': !widgetData[currentIndex].redirectUrl}\">\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 </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\" 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 </ng-container>\n </ng-container>\n <ng-container *ngIf=\"loadNgContentData\">\n <!-- <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\"> -->\n <ng-content select=\"[sliderbody]\"></ng-content>\n <!-- </div> -->\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\" 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 <ng-content select=\"[sliderMeta]\"></ng-content>\n </div>\n </div>\n </ng-container>\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=\"{{customBanner ? 'keybanner' : 'banner-container-solo'}} margin-top-s\" *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\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",
|
|
9725
|
+
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}.keybanner{position:relative;margin:auto}.keybanner.inline-meta{padding-bottom:0!important}.keybanner.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.top-center{left:0;bottom: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}}.keybanner .prev{background-color:#f3962f!important;color:#fff;top:50%;font-size:12px;height:26px!important;width:26px!important}.keybanner .next{top:50%;background-color:#f3962f!important;color:#fff;font-size:12px;height:26px!important;width:26px!important}@media screen and (max-width:768px){.keybanner .prev{top:50px;left:0;background-color:#f3962f!important;color:#fff}.keybanner .next{right:0;margin-right:-16px;top:50px;background-color:#f3962f!important;color:#fff}}"]
|
|
9633
9726
|
}] }
|
|
9634
9727
|
];
|
|
9635
9728
|
/** @nocollapse */
|
|
@@ -9643,6 +9736,7 @@ var SlidersNgContentLibComponent = /** @class */ (function (_super) {
|
|
|
9643
9736
|
title: [{ type: Input }],
|
|
9644
9737
|
loadNgContentData: [{ type: Input }],
|
|
9645
9738
|
autoScroll: [{ type: Input }],
|
|
9739
|
+
customBanner: [{ type: Input }],
|
|
9646
9740
|
currentIndexValue: [{ type: Output }],
|
|
9647
9741
|
id: [{ type: HostBinding, args: ['id',] }],
|
|
9648
9742
|
currentIndex: [{ type: Input }]
|
|
@@ -9661,6 +9755,8 @@ if (false) {
|
|
|
9661
9755
|
/** @type {?} */
|
|
9662
9756
|
SlidersNgContentLibComponent.prototype.autoScroll;
|
|
9663
9757
|
/** @type {?} */
|
|
9758
|
+
SlidersNgContentLibComponent.prototype.customBanner;
|
|
9759
|
+
/** @type {?} */
|
|
9664
9760
|
SlidersNgContentLibComponent.prototype.currentIndexValue;
|
|
9665
9761
|
/** @type {?} */
|
|
9666
9762
|
SlidersNgContentLibComponent.prototype.id;
|
|
@@ -15479,6 +15575,7 @@ var ContentStripWithTabsPillsModule = /** @class */ (function () {
|
|
|
15479
15575
|
/** @type {?} */
|
|
15480
15576
|
var API_POINTS = {
|
|
15481
15577
|
COMPETENCY_LIST: "apis/proxies/v8/competency/v4/search",
|
|
15578
|
+
COMPETENCY_LIST_V2: "apis/proxies/v8/searchBy/v2/competency",
|
|
15482
15579
|
CERTIFICATE_URL: "apis/protected/v8/cohorts/course/batch/cert/download/",
|
|
15483
15580
|
};
|
|
15484
15581
|
var CompetencyPassbookService = /** @class */ (function () {
|
|
@@ -15497,6 +15594,15 @@ var CompetencyPassbookService = /** @class */ (function () {
|
|
|
15497
15594
|
function (payload) {
|
|
15498
15595
|
return this.http.post(API_POINTS.COMPETENCY_LIST, payload);
|
|
15499
15596
|
};
|
|
15597
|
+
/**
|
|
15598
|
+
* @return {?}
|
|
15599
|
+
*/
|
|
15600
|
+
CompetencyPassbookService.prototype.getCompetencyListv_V2 = /**
|
|
15601
|
+
* @return {?}
|
|
15602
|
+
*/
|
|
15603
|
+
function () {
|
|
15604
|
+
return this.http.get(API_POINTS.COMPETENCY_LIST_V2);
|
|
15605
|
+
};
|
|
15500
15606
|
/**
|
|
15501
15607
|
* @param {?} certId
|
|
15502
15608
|
* @return {?}
|
|
@@ -15535,7 +15641,7 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
15535
15641
|
// currentFilter = 'Behavioural'
|
|
15536
15642
|
// currentCompetencies: any = []
|
|
15537
15643
|
// competencyData: any
|
|
15538
|
-
function CompetencyPassbookComponent(configSvc, contentSvc, competencySvc, router) {
|
|
15644
|
+
function CompetencyPassbookComponent(configSvc, contentSvc, competencySvc, router, environment) {
|
|
15539
15645
|
this.configSvc = configSvc;
|
|
15540
15646
|
this.contentSvc = contentSvc;
|
|
15541
15647
|
this.competencySvc = competencySvc;
|
|
@@ -15552,6 +15658,7 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
15552
15658
|
this.competencyStrength = 0;
|
|
15553
15659
|
this.competencyThemeLength = 6;
|
|
15554
15660
|
this.showAllTheme = [{ name: 'Show all', showAll: false }];
|
|
15661
|
+
this.environment = environment;
|
|
15555
15662
|
}
|
|
15556
15663
|
/**
|
|
15557
15664
|
* @return {?}
|
|
@@ -15560,6 +15667,7 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
15560
15667
|
* @return {?}
|
|
15561
15668
|
*/
|
|
15562
15669
|
function () {
|
|
15670
|
+
this.comeptencyKeys = this.configSvc.compentency[this.environment.compentencyVersionKey];
|
|
15563
15671
|
this.getAllCompetencies();
|
|
15564
15672
|
// this.competencyData = this.objectData
|
|
15565
15673
|
// this.filter(this.currentFilter)
|
|
@@ -15622,7 +15730,7 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
15622
15730
|
"lastUpdatedOn": "desc"
|
|
15623
15731
|
},
|
|
15624
15732
|
"facets": [
|
|
15625
|
-
"
|
|
15733
|
+
this.environment.compentencyVersionKey + "." + this.comeptencyKeys.vCompetencyArea
|
|
15626
15734
|
],
|
|
15627
15735
|
"limit": 0,
|
|
15628
15736
|
"offset": 0,
|
|
@@ -15643,7 +15751,7 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
15643
15751
|
* @return {?}
|
|
15644
15752
|
*/
|
|
15645
15753
|
function (fact) {
|
|
15646
|
-
if (fact.name ===
|
|
15754
|
+
if (fact.name === _this.environment.compentencyVersionKey + "." + _this.comeptencyKeys.vCompetencyArea) {
|
|
15647
15755
|
_this.competencyArea = fact.values;
|
|
15648
15756
|
}
|
|
15649
15757
|
}));
|
|
@@ -15762,18 +15870,16 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
15762
15870
|
function () {
|
|
15763
15871
|
var _this = this;
|
|
15764
15872
|
this.loadCometency = true;
|
|
15765
|
-
/**
|
|
15766
|
-
var request = { "search": { "type": "Competency Area" }, "filter": { "isDetail": true } };
|
|
15767
|
-
this.competencySvc.getCompetencyList(request).subscribe((/**
|
|
15873
|
+
this.competencySvc.getCompetencyListv_V2().subscribe((/**
|
|
15768
15874
|
* @param {?} response
|
|
15769
15875
|
* @return {?}
|
|
15770
15876
|
*/
|
|
15771
15877
|
function (response) {
|
|
15772
15878
|
_this.allcompetencyTheme = {};
|
|
15773
|
-
if (response && response.result && response.result.
|
|
15774
|
-
_this.originalCompetencyArray = response.result.
|
|
15879
|
+
if (response && response.result && response.result.content) {
|
|
15880
|
+
_this.originalCompetencyArray = response.result.content;
|
|
15775
15881
|
_this.getCompetencyArea();
|
|
15776
|
-
response.result.
|
|
15882
|
+
response.result.content.forEach((/**
|
|
15777
15883
|
* @param {?} element
|
|
15778
15884
|
* @return {?}
|
|
15779
15885
|
*/
|
|
@@ -15806,34 +15912,35 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
15806
15912
|
function (value, addFilter) {
|
|
15807
15913
|
return __awaiter(this, void 0, void 0, function () {
|
|
15808
15914
|
var request, response, competencyThemeData_1, error_2;
|
|
15915
|
+
var _a;
|
|
15809
15916
|
var _this = this;
|
|
15810
|
-
return __generator(this, function (
|
|
15811
|
-
switch (
|
|
15917
|
+
return __generator(this, function (_b) {
|
|
15918
|
+
switch (_b.label) {
|
|
15812
15919
|
case 0:
|
|
15813
15920
|
request = {
|
|
15814
15921
|
"request": {
|
|
15815
15922
|
"query": "",
|
|
15816
|
-
"filters": __assign({ "contentType": "Course" }, addFilter, { "
|
|
15817
|
-
|
|
15818
|
-
|
|
15923
|
+
"filters": __assign({ "contentType": "Course" }, addFilter, (_a = {}, _a[this.environment.compentencyVersionKey + "." + this.comeptencyKeys.vCompetencyArea] = value, _a["status"] = [
|
|
15924
|
+
"Live"
|
|
15925
|
+
], _a)),
|
|
15819
15926
|
"sort_by": {
|
|
15820
15927
|
"lastUpdatedOn": "desc"
|
|
15821
15928
|
},
|
|
15822
15929
|
"facets": [
|
|
15823
|
-
"
|
|
15930
|
+
this.environment.compentencyVersionKey + "." + this.comeptencyKeys.vCompetencyTheme
|
|
15824
15931
|
],
|
|
15825
15932
|
"limit": 0,
|
|
15826
15933
|
"offset": 0,
|
|
15827
15934
|
"fields": []
|
|
15828
15935
|
}
|
|
15829
15936
|
};
|
|
15830
|
-
|
|
15937
|
+
_b.label = 1;
|
|
15831
15938
|
case 1:
|
|
15832
|
-
|
|
15939
|
+
_b.trys.push([1, 3, , 4]);
|
|
15833
15940
|
this.loadCometency = true;
|
|
15834
15941
|
return [4 /*yield*/, this.callCompetencySearch(request)];
|
|
15835
15942
|
case 2:
|
|
15836
|
-
response =
|
|
15943
|
+
response = _b.sent();
|
|
15837
15944
|
if (response && response.results) {
|
|
15838
15945
|
if (response.results.result.facets) {
|
|
15839
15946
|
competencyThemeData_1 = response.results.result.facets[0].values;
|
|
@@ -15864,7 +15971,7 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
15864
15971
|
}
|
|
15865
15972
|
return [3 /*break*/, 4];
|
|
15866
15973
|
case 3:
|
|
15867
|
-
error_2 =
|
|
15974
|
+
error_2 = _b.sent();
|
|
15868
15975
|
return [3 /*break*/, 4];
|
|
15869
15976
|
case 4: return [2 /*return*/];
|
|
15870
15977
|
}
|
|
@@ -15928,34 +16035,35 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
15928
16035
|
function (area, addFilter) {
|
|
15929
16036
|
return __awaiter(this, void 0, void 0, function () {
|
|
15930
16037
|
var request, returnedData_1, response, competencyThemeData_2, error_3;
|
|
16038
|
+
var _a;
|
|
15931
16039
|
var _this = this;
|
|
15932
|
-
return __generator(this, function (
|
|
15933
|
-
switch (
|
|
16040
|
+
return __generator(this, function (_b) {
|
|
16041
|
+
switch (_b.label) {
|
|
15934
16042
|
case 0:
|
|
15935
16043
|
request = {
|
|
15936
16044
|
"request": {
|
|
15937
16045
|
"query": "",
|
|
15938
|
-
"filters": __assign({ "contentType": "Course" }, addFilter, { "
|
|
15939
|
-
|
|
15940
|
-
|
|
16046
|
+
"filters": __assign({ "contentType": "Course" }, addFilter, (_a = {}, _a[this.environment.compentencyVersionKey + "." + this.comeptencyKeys.vCompetencyArea] = area.name, _a["status"] = [
|
|
16047
|
+
"Live"
|
|
16048
|
+
], _a)),
|
|
15941
16049
|
"sort_by": {
|
|
15942
16050
|
"lastUpdatedOn": "desc"
|
|
15943
16051
|
},
|
|
15944
16052
|
"facets": [
|
|
15945
|
-
"
|
|
16053
|
+
this.environment.compentencyVersionKey + "." + this.comeptencyKeys.vCompetencyTheme
|
|
15946
16054
|
],
|
|
15947
16055
|
"limit": 0,
|
|
15948
16056
|
"offset": 0,
|
|
15949
16057
|
"fields": []
|
|
15950
16058
|
}
|
|
15951
16059
|
};
|
|
15952
|
-
|
|
16060
|
+
_b.label = 1;
|
|
15953
16061
|
case 1:
|
|
15954
|
-
|
|
16062
|
+
_b.trys.push([1, 3, , 4]);
|
|
15955
16063
|
returnedData_1 = this.loadCometency = true;
|
|
15956
16064
|
return [4 /*yield*/, this.callCompetencySearch(request)];
|
|
15957
16065
|
case 2:
|
|
15958
|
-
response =
|
|
16066
|
+
response = _b.sent();
|
|
15959
16067
|
if (response && response.results) {
|
|
15960
16068
|
if (response.results.result.facets) {
|
|
15961
16069
|
competencyThemeData_2 = response.results.result.facets[0].values;
|
|
@@ -15986,7 +16094,7 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
15986
16094
|
}
|
|
15987
16095
|
return [3 /*break*/, 4];
|
|
15988
16096
|
case 3:
|
|
15989
|
-
error_3 =
|
|
16097
|
+
error_3 = _b.sent();
|
|
15990
16098
|
return [3 /*break*/, 4];
|
|
15991
16099
|
case 4: return [2 /*return*/];
|
|
15992
16100
|
}
|
|
@@ -16059,34 +16167,35 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
16059
16167
|
function (compArea, addFilter) {
|
|
16060
16168
|
return __awaiter(this, void 0, void 0, function () {
|
|
16061
16169
|
var request, response, competencySubThemeData_1, error_4;
|
|
16170
|
+
var _a;
|
|
16062
16171
|
var _this = this;
|
|
16063
|
-
return __generator(this, function (
|
|
16064
|
-
switch (
|
|
16172
|
+
return __generator(this, function (_b) {
|
|
16173
|
+
switch (_b.label) {
|
|
16065
16174
|
case 0:
|
|
16066
16175
|
request = {
|
|
16067
16176
|
"request": {
|
|
16068
16177
|
"query": "",
|
|
16069
|
-
"filters": __assign({ "contentType": "Course" }, addFilter, { "
|
|
16070
|
-
|
|
16071
|
-
|
|
16178
|
+
"filters": __assign({ "contentType": "Course" }, addFilter, (_a = {}, _a[this.environment.compentencyVersionKey + "." + this.comeptencyKeys.vCompetencyArea] = compArea.name, _a["status"] = [
|
|
16179
|
+
"Live"
|
|
16180
|
+
], _a)),
|
|
16072
16181
|
"sort_by": {
|
|
16073
16182
|
"lastUpdatedOn": "desc"
|
|
16074
16183
|
},
|
|
16075
16184
|
"facets": [
|
|
16076
|
-
"
|
|
16185
|
+
this.environment.compentencyVersionKey + "." + this.comeptencyKeys.vCompetencySubTheme
|
|
16077
16186
|
],
|
|
16078
16187
|
"limit": 0,
|
|
16079
16188
|
"offset": 0,
|
|
16080
16189
|
"fields": []
|
|
16081
16190
|
}
|
|
16082
16191
|
};
|
|
16083
|
-
|
|
16192
|
+
_b.label = 1;
|
|
16084
16193
|
case 1:
|
|
16085
|
-
|
|
16194
|
+
_b.trys.push([1, 3, , 4]);
|
|
16086
16195
|
this.loadCometency = true;
|
|
16087
16196
|
return [4 /*yield*/, this.callCompetencySearch(request)];
|
|
16088
16197
|
case 2:
|
|
16089
|
-
response =
|
|
16198
|
+
response = _b.sent();
|
|
16090
16199
|
if (response && response.results) {
|
|
16091
16200
|
if (response.results.result.facets) {
|
|
16092
16201
|
competencySubThemeData_1 = response.results.result.facets[0].values;
|
|
@@ -16119,7 +16228,7 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
16119
16228
|
* @param {?} key
|
|
16120
16229
|
* @return {?}
|
|
16121
16230
|
*/
|
|
16122
|
-
function (key) { return obj1['
|
|
16231
|
+
function (key) { return obj1['name'] === (obj2['name']); }));
|
|
16123
16232
|
}));
|
|
16124
16233
|
}));
|
|
16125
16234
|
_this.allcompetencyTheme[themeEle.name.toLowerCase()]['children'] = data;
|
|
@@ -16132,7 +16241,7 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
16132
16241
|
}
|
|
16133
16242
|
return [3 /*break*/, 4];
|
|
16134
16243
|
case 3:
|
|
16135
|
-
error_4 =
|
|
16244
|
+
error_4 = _b.sent();
|
|
16136
16245
|
return [3 /*break*/, 4];
|
|
16137
16246
|
case 4: return [2 /*return*/];
|
|
16138
16247
|
}
|
|
@@ -16142,7 +16251,7 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
16142
16251
|
CompetencyPassbookComponent.decorators = [
|
|
16143
16252
|
{ type: Component, args: [{
|
|
16144
16253
|
selector: 'sb-uic-competency-passbook',
|
|
16145
|
-
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]?.
|
|
16254
|
+
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]?.displayName}}</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\" *ngIf=\"obj.count === 1\">{{obj.count}} Content</div>\n <div class=\"no-of-contents\" *ngIf=\"obj.count !== 1\">{{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?.displayName\" >\n {{ child?.displayName }}\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>",
|
|
16146
16255
|
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}"]
|
|
16147
16256
|
}] }
|
|
16148
16257
|
];
|
|
@@ -16151,7 +16260,8 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
16151
16260
|
{ type: ConfigurationsService$1 },
|
|
16152
16261
|
{ type: WidgetContentService },
|
|
16153
16262
|
{ type: CompetencyPassbookService },
|
|
16154
|
-
{ type: Router }
|
|
16263
|
+
{ type: Router },
|
|
16264
|
+
{ type: undefined, decorators: [{ type: Inject, args: ['environment',] }] }
|
|
16155
16265
|
]; };
|
|
16156
16266
|
CompetencyPassbookComponent.propDecorators = {
|
|
16157
16267
|
objectData: [{ type: Input }],
|
|
@@ -16205,6 +16315,10 @@ if (false) {
|
|
|
16205
16315
|
/** @type {?} */
|
|
16206
16316
|
CompetencyPassbookComponent.prototype.showAllTheme;
|
|
16207
16317
|
/** @type {?} */
|
|
16318
|
+
CompetencyPassbookComponent.prototype.environment;
|
|
16319
|
+
/** @type {?} */
|
|
16320
|
+
CompetencyPassbookComponent.prototype.comeptencyKeys;
|
|
16321
|
+
/** @type {?} */
|
|
16208
16322
|
CompetencyPassbookComponent.prototype.configSvc;
|
|
16209
16323
|
/** @type {?} */
|
|
16210
16324
|
CompetencyPassbookComponent.prototype.contentSvc;
|
|
@@ -16335,6 +16449,7 @@ var CompetencyPassbookModule = /** @class */ (function () {
|
|
|
16335
16449
|
var API_POINTS$1 = {
|
|
16336
16450
|
COMPETENCY_LIST: "apis/proxies/v8/competency/v4/search",
|
|
16337
16451
|
competency_URL: "apis/proxies/v8/v1/search/competenciesByOrg/",
|
|
16452
|
+
COMPETENCY_LIST_V2: "apis/proxies/v8/searchBy/v2/competency",
|
|
16338
16453
|
};
|
|
16339
16454
|
var CompetencyPassbookMdoService = /** @class */ (function () {
|
|
16340
16455
|
// tslint: disable-next-line: whitespace
|
|
@@ -16352,6 +16467,15 @@ var CompetencyPassbookMdoService = /** @class */ (function () {
|
|
|
16352
16467
|
function (payload) {
|
|
16353
16468
|
return this.http.post(API_POINTS$1.COMPETENCY_LIST, payload);
|
|
16354
16469
|
};
|
|
16470
|
+
/**
|
|
16471
|
+
* @return {?}
|
|
16472
|
+
*/
|
|
16473
|
+
CompetencyPassbookMdoService.prototype.getCompetencyListv_V2 = /**
|
|
16474
|
+
* @return {?}
|
|
16475
|
+
*/
|
|
16476
|
+
function () {
|
|
16477
|
+
return this.http.get(API_POINTS$1.COMPETENCY_LIST_V2);
|
|
16478
|
+
};
|
|
16355
16479
|
/**
|
|
16356
16480
|
* @param {?} providerId
|
|
16357
16481
|
* @return {?}
|
|
@@ -16390,7 +16514,7 @@ var CompetencyPassbookMdoComponent = /** @class */ (function () {
|
|
|
16390
16514
|
// currentFilter = 'Behavioural'
|
|
16391
16515
|
// currentCompetencies: any = []
|
|
16392
16516
|
// competencyData: any
|
|
16393
|
-
function CompetencyPassbookMdoComponent(configSvc, contentSvc, competencySvc, router) {
|
|
16517
|
+
function CompetencyPassbookMdoComponent(configSvc, contentSvc, competencySvc, router, environment) {
|
|
16394
16518
|
this.configSvc = configSvc;
|
|
16395
16519
|
this.contentSvc = contentSvc;
|
|
16396
16520
|
this.competencySvc = competencySvc;
|
|
@@ -16401,12 +16525,14 @@ var CompetencyPassbookMdoComponent = /** @class */ (function () {
|
|
|
16401
16525
|
this.temeletryResponse = new EventEmitter();
|
|
16402
16526
|
this.loadCometency = false;
|
|
16403
16527
|
this.loadCompetencyArea = false;
|
|
16528
|
+
this.selectedValue = 'functional';
|
|
16404
16529
|
this.competencyVersion = '';
|
|
16405
16530
|
this.competencyTheme = [];
|
|
16406
16531
|
this.allcompetencyTheme = {};
|
|
16407
16532
|
this.competencyStrength = 0;
|
|
16408
16533
|
this.competencyThemeLength = 6;
|
|
16409
16534
|
this.showAllTheme = [{ name: 'Show all', showAll: false }];
|
|
16535
|
+
this.environment = environment;
|
|
16410
16536
|
}
|
|
16411
16537
|
/**
|
|
16412
16538
|
* @return {?}
|
|
@@ -16415,6 +16541,7 @@ var CompetencyPassbookMdoComponent = /** @class */ (function () {
|
|
|
16415
16541
|
* @return {?}
|
|
16416
16542
|
*/
|
|
16417
16543
|
function () {
|
|
16544
|
+
this.comeptencyKeys = this.configSvc.compentency[this.environment.compentencyVersionKey];
|
|
16418
16545
|
this.getAllCompetencies();
|
|
16419
16546
|
};
|
|
16420
16547
|
/**
|
|
@@ -16428,17 +16555,17 @@ var CompetencyPassbookMdoComponent = /** @class */ (function () {
|
|
|
16428
16555
|
this.loadCometency = true;
|
|
16429
16556
|
/** @type {?} */
|
|
16430
16557
|
var request = { "search": { "type": "Competency Area" }, "filter": { "isDetail": true } };
|
|
16431
|
-
this.competencySvc.
|
|
16558
|
+
this.competencySvc.getCompetencyListv_V2().subscribe((/**
|
|
16432
16559
|
* @param {?} response
|
|
16433
16560
|
* @return {?}
|
|
16434
16561
|
*/
|
|
16435
16562
|
function (response) {
|
|
16436
16563
|
_this.allcompetencyTheme = {};
|
|
16437
|
-
if (response && response.result && response.result.
|
|
16438
|
-
_this.originalCompetencyArray = response.result.
|
|
16564
|
+
if (response && response.result && response.result.content) {
|
|
16565
|
+
_this.originalCompetencyArray = response.result.content;
|
|
16439
16566
|
_this.getMdoCompetencies();
|
|
16440
16567
|
// this.getCompetencyArea()
|
|
16441
|
-
response.result.
|
|
16568
|
+
response.result.content.forEach((/**
|
|
16442
16569
|
* @param {?} element
|
|
16443
16570
|
* @return {?}
|
|
16444
16571
|
*/
|
|
@@ -16484,11 +16611,11 @@ var CompetencyPassbookMdoComponent = /** @class */ (function () {
|
|
|
16484
16611
|
* @return {?}
|
|
16485
16612
|
*/
|
|
16486
16613
|
function (facet) {
|
|
16487
|
-
if (facet.name ===
|
|
16614
|
+
if (facet.name === _this.environment.compentencyVersionKey + "." + _this.comeptencyKeys.vCompetencyArea) {
|
|
16488
16615
|
_this.competencyArea = facet.values;
|
|
16489
16616
|
_this.selectedValue = facet.values[0].name;
|
|
16490
16617
|
}
|
|
16491
|
-
else if (facet.name ===
|
|
16618
|
+
else if (facet.name === _this.environment.compentencyVersionKey + "." + _this.comeptencyKeys.vCompetencyTheme) {
|
|
16492
16619
|
_this.competencyThemeData = facet.values;
|
|
16493
16620
|
_this.getCompetencyTheme();
|
|
16494
16621
|
}
|
|
@@ -16683,7 +16810,7 @@ var CompetencyPassbookMdoComponent = /** @class */ (function () {
|
|
|
16683
16810
|
CompetencyPassbookMdoComponent.decorators = [
|
|
16684
16811
|
{ type: Component, args: [{
|
|
16685
16812
|
selector: 'sb-uic-competency-passbook-mdo',
|
|
16686
|
-
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]?.
|
|
16813
|
+
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]?.displayName}}</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?.displayName\" >\n {{ child?.displayName }}\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>",
|
|
16687
16814
|
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}"]
|
|
16688
16815
|
}] }
|
|
16689
16816
|
];
|
|
@@ -16692,7 +16819,8 @@ var CompetencyPassbookMdoComponent = /** @class */ (function () {
|
|
|
16692
16819
|
{ type: ConfigurationsService$1 },
|
|
16693
16820
|
{ type: WidgetContentService },
|
|
16694
16821
|
{ type: CompetencyPassbookMdoService },
|
|
16695
|
-
{ type: Router }
|
|
16822
|
+
{ type: Router },
|
|
16823
|
+
{ type: undefined, decorators: [{ type: Inject, args: ['environment',] }] }
|
|
16696
16824
|
]; };
|
|
16697
16825
|
CompetencyPassbookMdoComponent.propDecorators = {
|
|
16698
16826
|
objectData: [{ type: Input }],
|
|
@@ -16748,6 +16876,10 @@ if (false) {
|
|
|
16748
16876
|
/** @type {?} */
|
|
16749
16877
|
CompetencyPassbookMdoComponent.prototype.showAllTheme;
|
|
16750
16878
|
/** @type {?} */
|
|
16879
|
+
CompetencyPassbookMdoComponent.prototype.environment;
|
|
16880
|
+
/** @type {?} */
|
|
16881
|
+
CompetencyPassbookMdoComponent.prototype.comeptencyKeys;
|
|
16882
|
+
/** @type {?} */
|
|
16751
16883
|
CompetencyPassbookMdoComponent.prototype.configSvc;
|
|
16752
16884
|
/** @type {?} */
|
|
16753
16885
|
CompetencyPassbookMdoComponent.prototype.contentSvc;
|
|
@@ -17945,6 +18077,1280 @@ var ProvidersModule = /** @class */ (function () {
|
|
|
17945
18077
|
return ProvidersModule;
|
|
17946
18078
|
}());
|
|
17947
18079
|
|
|
18080
|
+
/**
|
|
18081
|
+
* @fileoverview added by tsickle
|
|
18082
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18083
|
+
*/
|
|
18084
|
+
var NationalLearningComponent = /** @class */ (function () {
|
|
18085
|
+
function NationalLearningComponent(router, events) {
|
|
18086
|
+
this.router = router;
|
|
18087
|
+
this.events = events;
|
|
18088
|
+
this.sectionList = [];
|
|
18089
|
+
this.providerId = '123456789';
|
|
18090
|
+
this.descriptionMaxLength = 500;
|
|
18091
|
+
}
|
|
18092
|
+
/**
|
|
18093
|
+
* @return {?}
|
|
18094
|
+
*/
|
|
18095
|
+
NationalLearningComponent.prototype.ngOnInit = /**
|
|
18096
|
+
* @return {?}
|
|
18097
|
+
*/
|
|
18098
|
+
function () {
|
|
18099
|
+
};
|
|
18100
|
+
/**
|
|
18101
|
+
* @param {?} event
|
|
18102
|
+
* @param {?} learnerReview
|
|
18103
|
+
* @return {?}
|
|
18104
|
+
*/
|
|
18105
|
+
NationalLearningComponent.prototype.hideKeyHightlight = /**
|
|
18106
|
+
* @param {?} event
|
|
18107
|
+
* @param {?} learnerReview
|
|
18108
|
+
* @return {?}
|
|
18109
|
+
*/
|
|
18110
|
+
function (event, learnerReview) {
|
|
18111
|
+
if (event) {
|
|
18112
|
+
learnerReview['hideSection'] = true;
|
|
18113
|
+
}
|
|
18114
|
+
};
|
|
18115
|
+
/**
|
|
18116
|
+
* @param {?} _stripData
|
|
18117
|
+
* @param {?} columnData
|
|
18118
|
+
* @return {?}
|
|
18119
|
+
*/
|
|
18120
|
+
NationalLearningComponent.prototype.showAllContent = /**
|
|
18121
|
+
* @param {?} _stripData
|
|
18122
|
+
* @param {?} columnData
|
|
18123
|
+
* @return {?}
|
|
18124
|
+
*/
|
|
18125
|
+
function (_stripData, columnData) {
|
|
18126
|
+
if (columnData && columnData.contentStrip && columnData.contentStrip.strips && columnData.contentStrip.strips.length) {
|
|
18127
|
+
/** @type {?} */
|
|
18128
|
+
var stripData = _stripData;
|
|
18129
|
+
/** @type {?} */
|
|
18130
|
+
var tabSelected = stripData.viewMoreUrl && stripData.viewMoreUrl.queryParams && stripData.viewMoreUrl.queryParams.tabSelected && stripData.viewMoreUrl.queryParams.tabSelected || '';
|
|
18131
|
+
this.router.navigate(["app/learn/national-learning-week/see-all"], { queryParams: { pageDetails: true, tabSelected: tabSelected, key: columnData.sectionKey } });
|
|
18132
|
+
}
|
|
18133
|
+
else {
|
|
18134
|
+
this.router.navigate(["/app/learn/browse-by/provider/" + this.providerName + "/" + this.providerId + "/all-CBP"], { queryParams: { pageDetails: true } });
|
|
18135
|
+
}
|
|
18136
|
+
};
|
|
18137
|
+
/**
|
|
18138
|
+
* @param {?} event
|
|
18139
|
+
* @param {?} contentStripData
|
|
18140
|
+
* @return {?}
|
|
18141
|
+
*/
|
|
18142
|
+
NationalLearningComponent.prototype.hideContentStrip = /**
|
|
18143
|
+
* @param {?} event
|
|
18144
|
+
* @param {?} contentStripData
|
|
18145
|
+
* @return {?}
|
|
18146
|
+
*/
|
|
18147
|
+
function (event, contentStripData) {
|
|
18148
|
+
if (event) {
|
|
18149
|
+
contentStripData.contentStrip['hideSection'] = true;
|
|
18150
|
+
}
|
|
18151
|
+
};
|
|
18152
|
+
/**
|
|
18153
|
+
* @param {?} event
|
|
18154
|
+
* @return {?}
|
|
18155
|
+
*/
|
|
18156
|
+
NationalLearningComponent.prototype.raiseTabClick = /**
|
|
18157
|
+
* @param {?} event
|
|
18158
|
+
* @return {?}
|
|
18159
|
+
*/
|
|
18160
|
+
function (event) {
|
|
18161
|
+
this.events.raiseInteractTelemetry({
|
|
18162
|
+
type: 'click',
|
|
18163
|
+
subType: 'mdo-leaderboard',
|
|
18164
|
+
id: event + "-tab",
|
|
18165
|
+
}, {}, {
|
|
18166
|
+
module: 'National Learning Week',
|
|
18167
|
+
});
|
|
18168
|
+
};
|
|
18169
|
+
/**
|
|
18170
|
+
* @param {?} event
|
|
18171
|
+
* @return {?}
|
|
18172
|
+
*/
|
|
18173
|
+
NationalLearningComponent.prototype.raiseTelemetryInteratEvent = /**
|
|
18174
|
+
* @param {?} event
|
|
18175
|
+
* @return {?}
|
|
18176
|
+
*/
|
|
18177
|
+
function (event) {
|
|
18178
|
+
this.events.raiseInteractTelemetry({
|
|
18179
|
+
type: 'click',
|
|
18180
|
+
subType: 'mandatory-courses',
|
|
18181
|
+
id: "mandatory-courses-card",
|
|
18182
|
+
}, {
|
|
18183
|
+
id: event.identifier,
|
|
18184
|
+
type: event.primaryCategory,
|
|
18185
|
+
}, {
|
|
18186
|
+
pageIdExt: "mandatory-courses-card",
|
|
18187
|
+
module: 'National Learning Week',
|
|
18188
|
+
});
|
|
18189
|
+
};
|
|
18190
|
+
NationalLearningComponent.decorators = [
|
|
18191
|
+
{ type: Component, args: [{
|
|
18192
|
+
selector: 'sb-uic-national-learning',
|
|
18193
|
+
template: "<div class=\"container-fluid white-background nlm-micro-sites micro-white\" id=\"nlm-micro-sites\">\n <div class=\"flex flex-col flex-1\">\n <ng-container *ngIf=\"sectionList?.length\">\n <ng-container *ngFor=\"let section of sectionList\">\n <ng-container *ngIf=\"section?.enabled\">\n <section id=\"{{section?.key}}\" class=\"w-full grid grid-cols-12 gap-4\" [ngClass]=\"{'container': section.wrapperClass}\">\n <ng-container *ngFor=\"let column of section.column\">\n <div id=\"{{column?.key}}\" class=\"col-span-{{column.colspan || 12}} \">\n <ng-container *ngIf=\"column?.enabled\" [ngSwitch]=\"column?.key\">\n <ng-container *ngSwitchCase=\"'topSection'\" [ngTemplateOutlet]=\"topSection\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentSection'\" [ngTemplateOutlet]=\"contentSection\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n </ng-container>\n </div>\n </ng-container>\n </section>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n</div>\n\n<ng-template #topSection let-data=\"data\">\n <!-- top section desktop layout -->\n <div class=\"w-full topSection\">\n <div *ngIf=\"data.sliderData && data.sliderData.sliders\">\n <sb-uic-sliders [widgetData]=\"data.sliderData.sliders\" [styleData]=\"data.sliderData.styleData\" ></sb-uic-sliders>\n </div>\n <div *ngIf=\"data && data.metrics\">\n <div class=\"block md:hidden\">\n <sb-uic-data-points\n [providerId]=\"providerId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'nlwCol'\"\n [title]=\"data?.metrics?.title\"\n [pageLayout]=\"'nlw'\">\n </sb-uic-data-points>\n </div>\n <div class=\"hidden md:block\">\n <sb-uic-data-points\n [providerId]=\"providerId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'nlwRow'\"\n [title]=\"data?.metrics?.title\"\n [pageLayout]=\"'nlw'\">\n </sb-uic-data-points>\n </div>\n </div>\n\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"block md:hidden\">\n <sb-uic-key-highlights (emptyResponse)=\"hideKeyHightlight($event, data.keyHighlights)\" [formData]=\"data.keyHighlights\" [providerId]=\"providerId\" [mode]=\"'mobile'\"></sb-uic-key-highlights>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"hidden md:block\">\n <div class=\"flex flex items-center justify-center gap-10\">\n <div class=\"mr-4 logo-box-container\">\n <div class=\"flex logo-box-rounded top mr-4\">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.imageUrl\">\n </div>\n </div>\n <div class=\"w-full md:w-9/12 flex-1 flex flex-col pr-3\">\n <div class=\" txt-ellipsis-2 break-words description-title\">{{data?.title}}</div>\n <div class=\"description\">{{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"block md:hidden\">\n <div class=\"flex flex-col items-center justify-center margin-bottom-xl px-5\">\n <div class=\"mlogo-box-rounded\">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.imageUrl\">\n </div>\n </div>\n <div class=\"flex flex-col px-5\">\n <div class=\" txt-ellipsis-2 break-words description-title\">{{data?.title}}</div>\n <div class=\"mdescription\">{{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container margin-top-xl\">\n <div class=\"hidden md:block\">\n <sb-uic-key-highlights (emptyResponse)=\"hideKeyHightlight($event, data.keyHighlights)\" [formData]=\"data.keyHighlights\" [providerId]=\"providerId\" [mode]=\"'desktop'\"></sb-uic-key-highlights>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n\n\n<ng-template #contentSection let-data=\"data\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"grid grid-cols-12 gap-4 mb-6\">\n <div class=\"col-span-12 md:col-span-{{data.leftContent.colspan}}\">\n <div *ngIf=\"data.leftContent.data.weekHighlights.data\">\n <sb-uic-highlights-of-week\n [objectData]=\"data.leftContent.data.weekHighlights.data\">\n </sb-uic-highlights-of-week>\n </div>\n <div class=\"hidden md:block\">\n <div *ngIf=\"data.leftContent.data.mandatoryCourse.enabled && data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\">\n <div class=\"margin-top-l nlw-mandatoryCourse\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"false\"\n (viewAllResponse)=\"''\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n (emptyResponse)=\"''\"\n [providerId]=\"'123456789'\"\n [widgetData]=\"data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\"\n [channnelName]=\"'channnelName'\">\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </div>\n <div class=\"hidden md:block\">\n <div *ngIf=\"data.leftContent.data.events.enabled && data.leftContent.data.events.column[0]\">\n <sb-uic-events [object]=\"data.leftContent.data.events.column[0]\" [nwlEventsConfig]=\"nwlConfiguration\"></sb-uic-events>\n </div>\n </div>\n </div>\n <div class=\"col-span-12 md:col-span-{{data.rightContent.colspan}}\">\n <div *ngIf=\"data.rightContent.data.myprogress\">\n <sb-uic-user-progress\n [objectData]=\"data.rightContent.data.myprogress.data\" [rootOrgId]=\"configDetails?.unMappedUser?.rootOrgId\">\n </sb-uic-user-progress>\n </div>\n <div *ngIf=\"data.rightContent.data.speakerOftheDay\">\n <sb-uic-speakers\n [objectData]=\"data.rightContent.data.speakerOftheDay.data\">\n </sb-uic-speakers>\n </div>\n <div *ngIf=\"data.rightContent.data.mdoLeaderboard\">\n <sb-uic-mdo-leaderboard\n [object]=\"data.rightContent.data.mdoLeaderboard.data\"\n (tabClicked)=\"raiseTabClick($event)\"></sb-uic-mdo-leaderboard>\n </div>\n\n <div class=\"block md:hidden\">\n <div *ngIf=\"data.leftContent.data.mandatoryCourse.enabled && data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\">\n <div class=\"margin-top-l nlw-mandatoryCourse\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"false\"\n (viewAllResponse)=\"''\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n (emptyResponse)=\"''\"\n [providerId]=\"'123456789'\"\n [widgetData]=\"data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\"\n [channnelName]=\"'channnelName'\">\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </div>\n\n <div class=\"block md:hidden px-4 md-px-0\">\n <div *ngIf=\"data.leftContent.data.events.enabled && data.leftContent.data.events.column[0]\">\n <sb-uic-events [object]=\"data.leftContent.data.events.column[0]\" [nwlEventsConfig]=\"nwlConfiguration\"></sb-uic-events>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n\n",
|
|
18194
|
+
styles: ["::ng-deep.mat-app-background{background-color:#fff!important}.nlw-mandatoryCourse ::ng-deep.capitalize{font-size:20px;line-height:24.38px}.nlm-micro-sites ::ng-deep.container{max-width:1200px!important}.nlm-micro-sites ::ng-deep.banner-container{padding-bottom:0!important}.topSection ::ng-deep.prev{margin-left:15px!important}.topSection ::ng-deep.next{margin-right:15px!important}.topSection .stats-header{display:flex;align-items:center;justify-content:center;position:absolute;left:43.5%;top:-20px;text-transform:capitalize}.topSection .stats-title{display:flex;align-items:center;justify-content:center;background-color:#f3962f;padding:12px 16px;color:#fff;font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;border-radius:35px}.topSection .my-arrow{font-size:12px}.topSection .less-opacity1{opacity:.75}.topSection .less-opacity2{opacity:.5}.topSection .details-wrapper{padding:16px;display:flex;gap:50px}.topSection .logo-box-container{width:180px;position:relative}@media only screen and (max-width:599px){.topSection .logo-box-container{width:112px;height:72px}}.topSection .logo-box-rounded{height:180px;width:180px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px 0 rgba(0,0,0,.06)}.topSection .logo-box-rounded .logo-img{max-width:122px}@media only screen and (max-width:599px){.topSection .logo-box-rounded{width:112px;height:112px}.topSection .logo-box-rounded .logo-img{max-width:84px}}.topSection .mlogo-box-rounded{height:180px;width:180px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:1px 1px 8px 3px rgba(0,0,0,.06)}.topSection .mlogo-box-rounded .logo-img{max-width:122px}@media only screen and (max-width:599px){.topSection .mlogo-box-rounded{width:112px;height:112px}.topSection .mlogo-box-rounded .logo-img{max-width:84px}}.topSection .txt-ellipsis-2{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.topSection .description-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left;padding-bottom:16px}.topSection .description{font-family:Lato;font-size:16px;font-weight:400;line-height:24px;text-align:left}.topSection .mdescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}@media screen and (min-width:320px) and (max-width:769px){.topSection ::ng-deep.prev{margin-left:15px!important}.topSection ::ng-deep.next{margin-right:15px!important}.topSection ::ng-deep.banner-container{min-height:212px!important}}"]
|
|
18195
|
+
}] }
|
|
18196
|
+
];
|
|
18197
|
+
/** @nocollapse */
|
|
18198
|
+
NationalLearningComponent.ctorParameters = function () { return [
|
|
18199
|
+
{ type: Router },
|
|
18200
|
+
{ type: EventService }
|
|
18201
|
+
]; };
|
|
18202
|
+
NationalLearningComponent.propDecorators = {
|
|
18203
|
+
sectionList: [{ type: Input }],
|
|
18204
|
+
configDetails: [{ type: Input }],
|
|
18205
|
+
nwlConfiguration: [{ type: Input }]
|
|
18206
|
+
};
|
|
18207
|
+
return NationalLearningComponent;
|
|
18208
|
+
}());
|
|
18209
|
+
if (false) {
|
|
18210
|
+
/** @type {?} */
|
|
18211
|
+
NationalLearningComponent.prototype.sectionList;
|
|
18212
|
+
/** @type {?} */
|
|
18213
|
+
NationalLearningComponent.prototype.configDetails;
|
|
18214
|
+
/** @type {?} */
|
|
18215
|
+
NationalLearningComponent.prototype.nwlConfiguration;
|
|
18216
|
+
/** @type {?} */
|
|
18217
|
+
NationalLearningComponent.prototype.providerId;
|
|
18218
|
+
/** @type {?} */
|
|
18219
|
+
NationalLearningComponent.prototype.providerName;
|
|
18220
|
+
/** @type {?} */
|
|
18221
|
+
NationalLearningComponent.prototype.descriptionMaxLength;
|
|
18222
|
+
/** @type {?} */
|
|
18223
|
+
NationalLearningComponent.prototype.router;
|
|
18224
|
+
/**
|
|
18225
|
+
* @type {?}
|
|
18226
|
+
* @private
|
|
18227
|
+
*/
|
|
18228
|
+
NationalLearningComponent.prototype.events;
|
|
18229
|
+
}
|
|
18230
|
+
|
|
18231
|
+
/**
|
|
18232
|
+
* @fileoverview added by tsickle
|
|
18233
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18234
|
+
*/
|
|
18235
|
+
var KeyHighlightsComponent = /** @class */ (function () {
|
|
18236
|
+
function KeyHighlightsComponent() {
|
|
18237
|
+
this.currentIndex = 0;
|
|
18238
|
+
this.providerId = '';
|
|
18239
|
+
this.formData = '';
|
|
18240
|
+
this.emptyResponse = new EventEmitter();
|
|
18241
|
+
this.styleData = {};
|
|
18242
|
+
this.contentdata = [];
|
|
18243
|
+
}
|
|
18244
|
+
/**
|
|
18245
|
+
* @return {?}
|
|
18246
|
+
*/
|
|
18247
|
+
KeyHighlightsComponent.prototype.ngOnInit = /**
|
|
18248
|
+
* @return {?}
|
|
18249
|
+
*/
|
|
18250
|
+
function () {
|
|
18251
|
+
this.styleData = this.formData && this.formData.sliderData && this.formData.sliderData.styleData;
|
|
18252
|
+
this.contentdata = this.formData && this.formData.content ? this.formData.content : [];
|
|
18253
|
+
};
|
|
18254
|
+
/**
|
|
18255
|
+
* @param {?} indexValue
|
|
18256
|
+
* @return {?}
|
|
18257
|
+
*/
|
|
18258
|
+
KeyHighlightsComponent.prototype.getCurrentIndex = /**
|
|
18259
|
+
* @param {?} indexValue
|
|
18260
|
+
* @return {?}
|
|
18261
|
+
*/
|
|
18262
|
+
function (indexValue) {
|
|
18263
|
+
this.currentIndex = indexValue;
|
|
18264
|
+
};
|
|
18265
|
+
KeyHighlightsComponent.decorators = [
|
|
18266
|
+
{ type: Component, args: [{
|
|
18267
|
+
selector: 'sb-uic-key-highlights',
|
|
18268
|
+
template: "<ng-container *ngIf=\"contentdata?.length && mode === 'desktop'\">\n <div class=\"key-highlighs-container\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [autoScroll]=\"true\"\n [currentIndex]=\"currentIndex\" \n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\"\n [customBanner]=\"true\"\n [widgetData]=\"contentdata\" [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let content of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"flex flex-row key-wrapper items-center justify-center\">\n <div class=\"kh-description\"> {{content?.title}}</div>\n </div>\n </div>\n </div> \n </sb-uic-sliders-ng-content>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"contentdata?.length && mode === 'mobile'\">\n <div class=\"p-5\">\n <div class=\"mob-key-highlighs-container\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [autoScroll]=\"true\"\n [currentIndex]=\"currentIndex\" \n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\"\n [customBanner]=\"true\"\n [widgetData]=\"contentdata\" [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let content of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"flex flex-row mkey-wrapper items-center justify-center\">\n <div class=\"mkh-description\"> {{content?.title}}</div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </div>\n </div>\n</ng-container>",
|
|
18269
|
+
styles: [".kh-description{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center;padding:0 10px}.key-wrapper{background-color:#eaf1f8;padding:25px 16px;border-radius:50px}.mkey-wrapper{background-color:#eaf1f8;padding:16px;border-radius:50px}.mkh-description{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;padding:0 30px}"]
|
|
18270
|
+
}] }
|
|
18271
|
+
];
|
|
18272
|
+
/** @nocollapse */
|
|
18273
|
+
KeyHighlightsComponent.ctorParameters = function () { return []; };
|
|
18274
|
+
KeyHighlightsComponent.propDecorators = {
|
|
18275
|
+
providerId: [{ type: Input }],
|
|
18276
|
+
formData: [{ type: Input }],
|
|
18277
|
+
mode: [{ type: Input }],
|
|
18278
|
+
emptyResponse: [{ type: Output }],
|
|
18279
|
+
scrollableItems: [{ type: ViewChildren, args: [ScrollableItemDirective,] }]
|
|
18280
|
+
};
|
|
18281
|
+
return KeyHighlightsComponent;
|
|
18282
|
+
}());
|
|
18283
|
+
if (false) {
|
|
18284
|
+
/** @type {?} */
|
|
18285
|
+
KeyHighlightsComponent.prototype.currentIndex;
|
|
18286
|
+
/** @type {?} */
|
|
18287
|
+
KeyHighlightsComponent.prototype.providerId;
|
|
18288
|
+
/** @type {?} */
|
|
18289
|
+
KeyHighlightsComponent.prototype.formData;
|
|
18290
|
+
/** @type {?} */
|
|
18291
|
+
KeyHighlightsComponent.prototype.mode;
|
|
18292
|
+
/** @type {?} */
|
|
18293
|
+
KeyHighlightsComponent.prototype.emptyResponse;
|
|
18294
|
+
/** @type {?} */
|
|
18295
|
+
KeyHighlightsComponent.prototype.styleData;
|
|
18296
|
+
/** @type {?} */
|
|
18297
|
+
KeyHighlightsComponent.prototype.contentdata;
|
|
18298
|
+
/** @type {?} */
|
|
18299
|
+
KeyHighlightsComponent.prototype.scrollableItems;
|
|
18300
|
+
}
|
|
18301
|
+
|
|
18302
|
+
/**
|
|
18303
|
+
* @fileoverview added by tsickle
|
|
18304
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18305
|
+
*/
|
|
18306
|
+
var KeyHighlightsModule = /** @class */ (function () {
|
|
18307
|
+
function KeyHighlightsModule() {
|
|
18308
|
+
}
|
|
18309
|
+
KeyHighlightsModule.decorators = [
|
|
18310
|
+
{ type: NgModule, args: [{
|
|
18311
|
+
declarations: [KeyHighlightsComponent],
|
|
18312
|
+
imports: [
|
|
18313
|
+
CommonModule,
|
|
18314
|
+
MatIconModule,
|
|
18315
|
+
SlidersNgContentLibModule,
|
|
18316
|
+
ScrollableItemModule
|
|
18317
|
+
],
|
|
18318
|
+
exports: [
|
|
18319
|
+
KeyHighlightsComponent
|
|
18320
|
+
],
|
|
18321
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
18322
|
+
},] }
|
|
18323
|
+
];
|
|
18324
|
+
return KeyHighlightsModule;
|
|
18325
|
+
}());
|
|
18326
|
+
|
|
18327
|
+
/**
|
|
18328
|
+
* @fileoverview added by tsickle
|
|
18329
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18330
|
+
*/
|
|
18331
|
+
/** @type {?} */
|
|
18332
|
+
var moment$2 = moment$4;
|
|
18333
|
+
var EventsComponent = /** @class */ (function () {
|
|
18334
|
+
function EventsComponent(insightSvc) {
|
|
18335
|
+
this.insightSvc = insightSvc;
|
|
18336
|
+
this.daysBetween = [];
|
|
18337
|
+
this.events = [];
|
|
18338
|
+
this.loader = false;
|
|
18339
|
+
}
|
|
18340
|
+
/**
|
|
18341
|
+
* @return {?}
|
|
18342
|
+
*/
|
|
18343
|
+
EventsComponent.prototype.ngOnInit = /**
|
|
18344
|
+
* @return {?}
|
|
18345
|
+
*/
|
|
18346
|
+
function () {
|
|
18347
|
+
this.requestBody = {
|
|
18348
|
+
locale: [
|
|
18349
|
+
'en',
|
|
18350
|
+
],
|
|
18351
|
+
query: '',
|
|
18352
|
+
request: {
|
|
18353
|
+
query: '',
|
|
18354
|
+
filters: {
|
|
18355
|
+
status: ['Live'],
|
|
18356
|
+
contentType: 'Event',
|
|
18357
|
+
category: 'Event',
|
|
18358
|
+
startDate: {
|
|
18359
|
+
">=": '',
|
|
18360
|
+
"<": ''
|
|
18361
|
+
}
|
|
18362
|
+
},
|
|
18363
|
+
sort_by: {
|
|
18364
|
+
startDate: 'desc',
|
|
18365
|
+
},
|
|
18366
|
+
},
|
|
18367
|
+
};
|
|
18368
|
+
this.getEventsList();
|
|
18369
|
+
};
|
|
18370
|
+
/**
|
|
18371
|
+
* @return {?}
|
|
18372
|
+
*/
|
|
18373
|
+
EventsComponent.prototype.getDaysBetweenDates = /**
|
|
18374
|
+
* @return {?}
|
|
18375
|
+
*/
|
|
18376
|
+
function () {
|
|
18377
|
+
/** @type {?} */
|
|
18378
|
+
var currentDate = moment$2(this.nwlEventsConfig.startDate, 'DD-MM-YYYY');
|
|
18379
|
+
/** @type {?} */
|
|
18380
|
+
var endDate = moment$2(this.nwlEventsConfig.endDate, 'DD-MM-YYYY');
|
|
18381
|
+
while (currentDate.isSameOrBefore(endDate)) {
|
|
18382
|
+
/** @type {?} */
|
|
18383
|
+
var localObj = {};
|
|
18384
|
+
localObj['startDate'] = currentDate.format('YYYY-MM-DD');
|
|
18385
|
+
localObj['diplayFormat'] = currentDate.format('MMM DD, YYYY');
|
|
18386
|
+
if (currentDate.isSame(moment$2(), 'day')) {
|
|
18387
|
+
this.currentDay = currentDate.format('YYYY-MM-DD');
|
|
18388
|
+
}
|
|
18389
|
+
currentDate.add(1, 'days').format('YYYY-MM-DD');
|
|
18390
|
+
this.daysBetween.push(localObj);
|
|
18391
|
+
}
|
|
18392
|
+
console.log("currentDay ", this.currentDay);
|
|
18393
|
+
};
|
|
18394
|
+
/**
|
|
18395
|
+
* @param {?} slectedDate
|
|
18396
|
+
* @return {?}
|
|
18397
|
+
*/
|
|
18398
|
+
EventsComponent.prototype.getEvents = /**
|
|
18399
|
+
* @param {?} slectedDate
|
|
18400
|
+
* @return {?}
|
|
18401
|
+
*/
|
|
18402
|
+
function (slectedDate) {
|
|
18403
|
+
var _this = this;
|
|
18404
|
+
this.currentDay = slectedDate.target.value;
|
|
18405
|
+
/** @type {?} */
|
|
18406
|
+
var nextDay = moment$2(slectedDate.target.value, 'YYYY-MM-DD');
|
|
18407
|
+
nextDay.add(1, 'days');
|
|
18408
|
+
this.requestBody.request.filters.startDate[">="] = this.currentDay;
|
|
18409
|
+
this.requestBody.request.filters.startDate["<"] = nextDay.format('YYYY-MM-DD');
|
|
18410
|
+
this.loader = true;
|
|
18411
|
+
this.insightSvc.fetchTrainingDetails(this.requestBody).subscribe((/**
|
|
18412
|
+
* @param {?} res
|
|
18413
|
+
* @return {?}
|
|
18414
|
+
*/
|
|
18415
|
+
function (res) {
|
|
18416
|
+
_this.events = [];
|
|
18417
|
+
if (res && res.result && res.result.count > 0) {
|
|
18418
|
+
_this.events = res.result.Event;
|
|
18419
|
+
_this.loader = false;
|
|
18420
|
+
}
|
|
18421
|
+
else {
|
|
18422
|
+
_this.loader = false;
|
|
18423
|
+
}
|
|
18424
|
+
}), (/**
|
|
18425
|
+
* @param {?} error
|
|
18426
|
+
* @return {?}
|
|
18427
|
+
*/
|
|
18428
|
+
function (error) {
|
|
18429
|
+
_this.loader = false;
|
|
18430
|
+
}));
|
|
18431
|
+
};
|
|
18432
|
+
/**
|
|
18433
|
+
* @return {?}
|
|
18434
|
+
*/
|
|
18435
|
+
EventsComponent.prototype.getEventsList = /**
|
|
18436
|
+
* @return {?}
|
|
18437
|
+
*/
|
|
18438
|
+
function () {
|
|
18439
|
+
var _this = this;
|
|
18440
|
+
this.getDaysBetweenDates();
|
|
18441
|
+
/** @type {?} */
|
|
18442
|
+
var nextDay = moment$2(this.currentDay, 'YYYY-MM-DD');
|
|
18443
|
+
nextDay.add(1, 'days');
|
|
18444
|
+
this.requestBody.request.filters.startDate[">="] = this.currentDay;
|
|
18445
|
+
this.requestBody.request.filters.startDate["<"] = nextDay.format('YYYY-MM-DD');
|
|
18446
|
+
this.loader = true;
|
|
18447
|
+
this.insightSvc.fetchTrainingDetails(this.requestBody).subscribe((/**
|
|
18448
|
+
* @param {?} res
|
|
18449
|
+
* @return {?}
|
|
18450
|
+
*/
|
|
18451
|
+
function (res) {
|
|
18452
|
+
_this.events = [];
|
|
18453
|
+
if (res && res.result && res.result.count > 0) {
|
|
18454
|
+
_this.events = res.result.Event;
|
|
18455
|
+
_this.loader = false;
|
|
18456
|
+
}
|
|
18457
|
+
else {
|
|
18458
|
+
_this.loader = false;
|
|
18459
|
+
}
|
|
18460
|
+
}), (/**
|
|
18461
|
+
* @param {?} error
|
|
18462
|
+
* @return {?}
|
|
18463
|
+
*/
|
|
18464
|
+
function (error) {
|
|
18465
|
+
_this.loader = false;
|
|
18466
|
+
}));
|
|
18467
|
+
};
|
|
18468
|
+
EventsComponent.decorators = [
|
|
18469
|
+
{ type: Component, args: [{
|
|
18470
|
+
selector: 'sb-uic-events',
|
|
18471
|
+
template: "<div class=\"flex items-center mb-4 mt-2 e-header\">\n <div class=\"event-title\">\n {{object?.title}}\n </div>\n <div class=\"events-select\">\n <select (change)=\"getEvents($event)\">\n <option value=\"{{d?.startDate}}\" *ngFor=\"let d of daysBetween\" [selected]=\"currentDay === d.startDate\">{{d?.diplayFormat}}</option>\n </select>\n </div>\n</div>\n<div class=\"grid grid-cols-1 gap-4\">\n <div class=\"events-card-wrapper\">\n <div *ngIf=\"!loader\">\n <div *ngIf=\"events?.length > 0\">\n <div *ngFor=\"let event of events\">\n <sb-uic-event-card [objectData]=\"object\" [eventDetails]=\"event\" [loader]=\"loader\"></sb-uic-event-card>\n </div>\n </div>\n <div *ngIf=\"events?.length === 0\">\n <div class=\"flex item-center justify-center p-5 no-events\">\n No events exist.\n </div>\n </div>\n </div>\n <div *ngIf=\"loader && events?.length === 0\">\n <div *ngFor=\"let event of [1,2,3]\">\n <sb-uic-event-card [objectData]=\"object\" [eventDetails]=\"event\" [loader]=\"loader\"></sb-uic-event-card>\n </div>\n </div>\n </div>\n</div>",
|
|
18472
|
+
styles: ["@charset \"UTF-8\";.e-header{justify-content:space-between}.event-title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.events-select{position:relative;display:inline-block;width:150px}.events-select select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-color:#fff;border:1px solid #ccc;border-radius:25px;padding:10px 30px 10px 10px;font-size:16px;font-family:Arial,sans-serif;width:100%;height:100%;cursor:pointer}.events-select:after{content:\"\u25BC\";position:absolute;top:50%;right:10px;transform:translateY(-50%);pointer-events:none;font-size:14px;color:#555}.no-events{border:1px solid #c3c3c3;border-radius:12px}"]
|
|
18473
|
+
}] }
|
|
18474
|
+
];
|
|
18475
|
+
/** @nocollapse */
|
|
18476
|
+
EventsComponent.ctorParameters = function () { return [
|
|
18477
|
+
{ type: InsiteDataService }
|
|
18478
|
+
]; };
|
|
18479
|
+
EventsComponent.propDecorators = {
|
|
18480
|
+
object: [{ type: Input }],
|
|
18481
|
+
nwlEventsConfig: [{ type: Input }]
|
|
18482
|
+
};
|
|
18483
|
+
return EventsComponent;
|
|
18484
|
+
}());
|
|
18485
|
+
if (false) {
|
|
18486
|
+
/** @type {?} */
|
|
18487
|
+
EventsComponent.prototype.object;
|
|
18488
|
+
/** @type {?} */
|
|
18489
|
+
EventsComponent.prototype.nwlEventsConfig;
|
|
18490
|
+
/** @type {?} */
|
|
18491
|
+
EventsComponent.prototype.daysBetween;
|
|
18492
|
+
/** @type {?} */
|
|
18493
|
+
EventsComponent.prototype.events;
|
|
18494
|
+
/** @type {?} */
|
|
18495
|
+
EventsComponent.prototype.requestBody;
|
|
18496
|
+
/** @type {?} */
|
|
18497
|
+
EventsComponent.prototype.currentDay;
|
|
18498
|
+
/** @type {?} */
|
|
18499
|
+
EventsComponent.prototype.loader;
|
|
18500
|
+
/** @type {?} */
|
|
18501
|
+
EventsComponent.prototype.insightSvc;
|
|
18502
|
+
}
|
|
18503
|
+
|
|
18504
|
+
/**
|
|
18505
|
+
* @fileoverview added by tsickle
|
|
18506
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18507
|
+
*/
|
|
18508
|
+
/** @type {?} */
|
|
18509
|
+
var moment$3 = moment$4;
|
|
18510
|
+
var EventCardComponent = /** @class */ (function () {
|
|
18511
|
+
function EventCardComponent(environment, router) {
|
|
18512
|
+
this.router = router;
|
|
18513
|
+
this.descriptionMaxLength = 50;
|
|
18514
|
+
this.environment = environment;
|
|
18515
|
+
}
|
|
18516
|
+
/**
|
|
18517
|
+
* @param {?} event
|
|
18518
|
+
* @return {?}
|
|
18519
|
+
*/
|
|
18520
|
+
EventCardComponent.prototype.getEventDate = /**
|
|
18521
|
+
* @param {?} event
|
|
18522
|
+
* @return {?}
|
|
18523
|
+
*/
|
|
18524
|
+
function (event) {
|
|
18525
|
+
/** @type {?} */
|
|
18526
|
+
var timeString = event.startTime.split(":");
|
|
18527
|
+
/** @type {?} */
|
|
18528
|
+
var dataString = moment$3(event.startDate).format('MMM DD, YYYY') + " " + timeString[0] + ":" + timeString[1];
|
|
18529
|
+
return dataString;
|
|
18530
|
+
};
|
|
18531
|
+
/**
|
|
18532
|
+
* @param {?} url
|
|
18533
|
+
* @return {?}
|
|
18534
|
+
*/
|
|
18535
|
+
EventCardComponent.prototype.getPublicUrl = /**
|
|
18536
|
+
* @param {?} url
|
|
18537
|
+
* @return {?}
|
|
18538
|
+
*/
|
|
18539
|
+
function (url) {
|
|
18540
|
+
/** @type {?} */
|
|
18541
|
+
var mainUrl = url.split('/content').pop() || '';
|
|
18542
|
+
return this.environment.contentHost + "/" + this.environment.contentBucket + "/content" + mainUrl;
|
|
18543
|
+
};
|
|
18544
|
+
/**
|
|
18545
|
+
* @param {?} event
|
|
18546
|
+
* @return {?}
|
|
18547
|
+
*/
|
|
18548
|
+
EventCardComponent.prototype.redirectTo = /**
|
|
18549
|
+
* @param {?} event
|
|
18550
|
+
* @return {?}
|
|
18551
|
+
*/
|
|
18552
|
+
function (event) {
|
|
18553
|
+
this.router.navigate(["/app/event-hub/home/", event.identifier]);
|
|
18554
|
+
};
|
|
18555
|
+
EventCardComponent.decorators = [
|
|
18556
|
+
{ type: Component, args: [{
|
|
18557
|
+
selector: 'sb-uic-event-card',
|
|
18558
|
+
template: "<div class=\"events-card margin-bottom-m cursor-pointer\" *ngIf=\"!loader\" (click)=\"redirectTo(eventDetails)\">\n <div class=\"flex gap-4\">\n <div class=\"event-poster\">\n <img class='poster' [src]=\"eventDetails.appIcon ? getPublicUrl(eventDetails.appIcon) : objectData?.defaultImage\" alt=\"\" />\n </div>\n <div class=\"flex flex-col\">\n <div class=\"flex\">\n <div class=\"flex event-label\">{{eventDetails?.resourceType}}</div>\n </div>\n <div class=\"orgName pt-2 pb-1\">\n {{eventDetails?.owner}}\n </div>\n <div class=\"event-title pt-1\">\n {{eventDetails?.name | slice:0:descriptionMaxLength}}\n <span *ngIf=\"eventDetails?.name?.length > descriptionMaxLength\">...</span>\n </div>\n <div class=\"event-date pt-2\">{{getEventDate(eventDetails)}}</div>\n </div>\n </div>\n</div>\n<div *ngIf=\"loader\">\n <div class=\"events-card margin-bottom-m\">\n <div class=\"flex gap-4\">\n <div class=\"event-poster\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'180px'\" [height]=\"'107px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-col\">\n <div class=\"flex\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'60px'\" [height]=\"'21px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"flex orgName pt-2 pb-1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'355px'\" [height]=\"'21px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"flex event-title pt-1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'355px'\" [height]=\"'21px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"event-date pt-2\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'355px'\" [height]=\"'21px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n</div>",
|
|
18559
|
+
styles: [".events-card{padding:16px;border-radius:12px;border:1px solid #c3c3c3}.events-card .poster{width:180px;height:107px;border-radius:12px}.events-card .event-label{border:1px solid #ef951e;background:rgba(239,149,30,.05);border-radius:45px;font:400 14px/16.8px Lato;padding:8px 12px}.events-card .orgName{font-family:Lato;font-size:12px;font-weight:400;line-height:14.4px;text-align:left;opacity:.6}.events-card .event-title{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:left}.events-card .event-date{font-family:Lato;font-size:12px;font-weight:400;line-height:14.4px;text-align:left;color:#1b4ca1}@media screen and (min-width:320px) and (max-width:769px){.events-card .poster{width:80px;height:69px}}"]
|
|
18560
|
+
}] }
|
|
18561
|
+
];
|
|
18562
|
+
/** @nocollapse */
|
|
18563
|
+
EventCardComponent.ctorParameters = function () { return [
|
|
18564
|
+
{ type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
|
|
18565
|
+
{ type: Router }
|
|
18566
|
+
]; };
|
|
18567
|
+
EventCardComponent.propDecorators = {
|
|
18568
|
+
objectData: [{ type: Input }],
|
|
18569
|
+
eventDetails: [{ type: Input }],
|
|
18570
|
+
loader: [{ type: Input }]
|
|
18571
|
+
};
|
|
18572
|
+
return EventCardComponent;
|
|
18573
|
+
}());
|
|
18574
|
+
if (false) {
|
|
18575
|
+
/** @type {?} */
|
|
18576
|
+
EventCardComponent.prototype.objectData;
|
|
18577
|
+
/** @type {?} */
|
|
18578
|
+
EventCardComponent.prototype.eventDetails;
|
|
18579
|
+
/** @type {?} */
|
|
18580
|
+
EventCardComponent.prototype.environment;
|
|
18581
|
+
/** @type {?} */
|
|
18582
|
+
EventCardComponent.prototype.loader;
|
|
18583
|
+
/** @type {?} */
|
|
18584
|
+
EventCardComponent.prototype.descriptionMaxLength;
|
|
18585
|
+
/**
|
|
18586
|
+
* @type {?}
|
|
18587
|
+
* @private
|
|
18588
|
+
*/
|
|
18589
|
+
EventCardComponent.prototype.router;
|
|
18590
|
+
}
|
|
18591
|
+
|
|
18592
|
+
/**
|
|
18593
|
+
* @fileoverview added by tsickle
|
|
18594
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18595
|
+
*/
|
|
18596
|
+
var EventsModule = /** @class */ (function () {
|
|
18597
|
+
function EventsModule() {
|
|
18598
|
+
}
|
|
18599
|
+
EventsModule.decorators = [
|
|
18600
|
+
{ type: NgModule, args: [{
|
|
18601
|
+
declarations: [EventsComponent, EventCardComponent],
|
|
18602
|
+
imports: [
|
|
18603
|
+
CommonModule,
|
|
18604
|
+
RouterModule,
|
|
18605
|
+
SkeletonLoaderLibModule,
|
|
18606
|
+
],
|
|
18607
|
+
exports: [EventsComponent, EventCardComponent]
|
|
18608
|
+
},] }
|
|
18609
|
+
];
|
|
18610
|
+
return EventsModule;
|
|
18611
|
+
}());
|
|
18612
|
+
|
|
18613
|
+
/**
|
|
18614
|
+
* @fileoverview added by tsickle
|
|
18615
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18616
|
+
*/
|
|
18617
|
+
var MdoLeaderboardComponent = /** @class */ (function () {
|
|
18618
|
+
function MdoLeaderboardComponent(insiteDataService) {
|
|
18619
|
+
this.insiteDataService = insiteDataService;
|
|
18620
|
+
this.currentTab = 'XL';
|
|
18621
|
+
this.result = [];
|
|
18622
|
+
this.searchTerm = '';
|
|
18623
|
+
this.expand = true;
|
|
18624
|
+
this.tabClicked = new EventEmitter();
|
|
18625
|
+
}
|
|
18626
|
+
/**
|
|
18627
|
+
* @return {?}
|
|
18628
|
+
*/
|
|
18629
|
+
MdoLeaderboardComponent.prototype.ngOnInit = /**
|
|
18630
|
+
* @return {?}
|
|
18631
|
+
*/
|
|
18632
|
+
function () {
|
|
18633
|
+
this.getData();
|
|
18634
|
+
};
|
|
18635
|
+
/**
|
|
18636
|
+
* @return {?}
|
|
18637
|
+
*/
|
|
18638
|
+
MdoLeaderboardComponent.prototype.getData = /**
|
|
18639
|
+
* @return {?}
|
|
18640
|
+
*/
|
|
18641
|
+
function () {
|
|
18642
|
+
var _this = this;
|
|
18643
|
+
this.insiteDataService.fetchLeaderboard().subscribe((/**
|
|
18644
|
+
* @param {?} res
|
|
18645
|
+
* @return {?}
|
|
18646
|
+
*/
|
|
18647
|
+
function (res) {
|
|
18648
|
+
if (res && res.result) {
|
|
18649
|
+
_this.result = res.result;
|
|
18650
|
+
_this.filteredData = _this.result.mdoLeaderBoard
|
|
18651
|
+
.filter((/**
|
|
18652
|
+
* @param {?} user
|
|
18653
|
+
* @return {?}
|
|
18654
|
+
*/
|
|
18655
|
+
function (user) { return user.size === _this.currentTab; }))
|
|
18656
|
+
.map((/**
|
|
18657
|
+
* @param {?} user
|
|
18658
|
+
* @return {?}
|
|
18659
|
+
*/
|
|
18660
|
+
function (user) { return (__assign({}, user, { children: [], selected: false })); }));
|
|
18661
|
+
}
|
|
18662
|
+
}), (/**
|
|
18663
|
+
* @param {?} error
|
|
18664
|
+
* @return {?}
|
|
18665
|
+
*/
|
|
18666
|
+
function (error) {
|
|
18667
|
+
console.log(error);
|
|
18668
|
+
}));
|
|
18669
|
+
};
|
|
18670
|
+
/**
|
|
18671
|
+
* @param {?} name
|
|
18672
|
+
* @return {?}
|
|
18673
|
+
*/
|
|
18674
|
+
MdoLeaderboardComponent.prototype.getTabData = /**
|
|
18675
|
+
* @param {?} name
|
|
18676
|
+
* @return {?}
|
|
18677
|
+
*/
|
|
18678
|
+
function (name) {
|
|
18679
|
+
var _this = this;
|
|
18680
|
+
this.currentTab = name;
|
|
18681
|
+
this.searchTerm = '';
|
|
18682
|
+
this.filteredData = this.result.mdoLeaderBoard
|
|
18683
|
+
.filter((/**
|
|
18684
|
+
* @param {?} user
|
|
18685
|
+
* @return {?}
|
|
18686
|
+
*/
|
|
18687
|
+
function (user) { return user.size === _this.currentTab; }))
|
|
18688
|
+
.map((/**
|
|
18689
|
+
* @param {?} user
|
|
18690
|
+
* @return {?}
|
|
18691
|
+
*/
|
|
18692
|
+
function (user) { return (__assign({}, user, { children: [], selected: false })); }));
|
|
18693
|
+
/** @type {?} */
|
|
18694
|
+
var nameStr = '';
|
|
18695
|
+
switch (name) {
|
|
18696
|
+
case 'XL':
|
|
18697
|
+
nameStr = 'greater-than-50K';
|
|
18698
|
+
break;
|
|
18699
|
+
case 'L':
|
|
18700
|
+
nameStr = '10K-50K';
|
|
18701
|
+
break;
|
|
18702
|
+
case 'M':
|
|
18703
|
+
nameStr = '1K-10K';
|
|
18704
|
+
break;
|
|
18705
|
+
case 'S':
|
|
18706
|
+
nameStr = '500-1K';
|
|
18707
|
+
break;
|
|
18708
|
+
default:
|
|
18709
|
+
nameStr = 'less-than-500';
|
|
18710
|
+
break;
|
|
18711
|
+
}
|
|
18712
|
+
this.tabClicked.emit(nameStr);
|
|
18713
|
+
};
|
|
18714
|
+
/**
|
|
18715
|
+
* @param {?} rank
|
|
18716
|
+
* @return {?}
|
|
18717
|
+
*/
|
|
18718
|
+
MdoLeaderboardComponent.prototype.getRank = /**
|
|
18719
|
+
* @param {?} rank
|
|
18720
|
+
* @return {?}
|
|
18721
|
+
*/
|
|
18722
|
+
function (rank) {
|
|
18723
|
+
return [1, 2, 3].includes(rank) ? "rank" + rank : 'rank0';
|
|
18724
|
+
};
|
|
18725
|
+
/**
|
|
18726
|
+
* @param {?} rank
|
|
18727
|
+
* @return {?}
|
|
18728
|
+
*/
|
|
18729
|
+
MdoLeaderboardComponent.prototype.getMedal = /**
|
|
18730
|
+
* @param {?} rank
|
|
18731
|
+
* @return {?}
|
|
18732
|
+
*/
|
|
18733
|
+
function (rank) {
|
|
18734
|
+
if (rank === 1) {
|
|
18735
|
+
return 'assets/images/national-learning/Medal1.svg';
|
|
18736
|
+
}
|
|
18737
|
+
else if (rank === 2) {
|
|
18738
|
+
return 'assets/images/national-learning/Medal2.svg';
|
|
18739
|
+
}
|
|
18740
|
+
else {
|
|
18741
|
+
return 'assets/images/national-learning/Medal3.svg';
|
|
18742
|
+
}
|
|
18743
|
+
};
|
|
18744
|
+
/**
|
|
18745
|
+
* @param {?} e
|
|
18746
|
+
* @return {?}
|
|
18747
|
+
*/
|
|
18748
|
+
MdoLeaderboardComponent.prototype.handleSearchQuery = /**
|
|
18749
|
+
* @param {?} e
|
|
18750
|
+
* @return {?}
|
|
18751
|
+
*/
|
|
18752
|
+
function (e) {
|
|
18753
|
+
var _this = this;
|
|
18754
|
+
if (e.target.value && e.target.value.length > 0) {
|
|
18755
|
+
this.searchTerm = e.target.value;
|
|
18756
|
+
this.filteredData = this.result.mdoLeaderBoard
|
|
18757
|
+
.filter((/**
|
|
18758
|
+
* @param {?} user
|
|
18759
|
+
* @return {?}
|
|
18760
|
+
*/
|
|
18761
|
+
function (user) { return user.size === _this.currentTab && user.org_name.toLowerCase().includes(e.target.value); }))
|
|
18762
|
+
.map((/**
|
|
18763
|
+
* @param {?} user
|
|
18764
|
+
* @return {?}
|
|
18765
|
+
*/
|
|
18766
|
+
function (user) { return (__assign({}, user, { children: [] })); }));
|
|
18767
|
+
}
|
|
18768
|
+
else {
|
|
18769
|
+
this.filteredData = this.result.mdoLeaderBoard
|
|
18770
|
+
.filter((/**
|
|
18771
|
+
* @param {?} user
|
|
18772
|
+
* @return {?}
|
|
18773
|
+
*/
|
|
18774
|
+
function (user) { return user.size === _this.currentTab; }))
|
|
18775
|
+
.map((/**
|
|
18776
|
+
* @param {?} user
|
|
18777
|
+
* @return {?}
|
|
18778
|
+
*/
|
|
18779
|
+
function (user) { return (__assign({}, user, { children: [] })); }));
|
|
18780
|
+
}
|
|
18781
|
+
};
|
|
18782
|
+
/**
|
|
18783
|
+
* @return {?}
|
|
18784
|
+
*/
|
|
18785
|
+
MdoLeaderboardComponent.prototype.toggleWeekHightlits = /**
|
|
18786
|
+
* @return {?}
|
|
18787
|
+
*/
|
|
18788
|
+
function () {
|
|
18789
|
+
this.expand = !this.expand;
|
|
18790
|
+
};
|
|
18791
|
+
MdoLeaderboardComponent.decorators = [
|
|
18792
|
+
{ type: Component, args: [{
|
|
18793
|
+
selector: 'sb-uic-mdo-leaderboard',
|
|
18794
|
+
template: "<div class=\"mdo-leaderboard-container\">\n <div class=\"flex l-title gap-2 items-center justify-between px-4 md:px-0 py-4 md:py-0\">\n <div class=\"flex gap-2\">\n {{object?.title}} <div><img [src]=\"object?.infoIcon\" alt=\"\" i18n-matTooltip [matTooltip]=\"object?.infoText\"></div>\n </div>\n <div class=\"block md:hidden\">\n <mat-icon (click)=\"toggleWeekHightlits()\">expand_more</mat-icon>\n </div>\n </div>\n <div class=\"flex item-center justify-center\" *ngIf=\"expand\">\n <div class=\"flex fl-div\">\n <div class=\"pointer\">\n <span class=\"dot-dot\"></span>\n </div>\n </div>\n </div>\n <div class=\"l-content\" *ngIf=\"expand\">\n <div class=\"horizontal-scroll-container\">\n <div class=\"scroll-content\">\n <span class=\"tab-title\" [ngClass]=\"{'active' : currentTab === 'XL' }\" (click)=\"getTabData('XL')\">Greater than 50K</span>\n <span class=\"tab-title\" [ngClass]=\"{'active' : currentTab === 'L' }\" (click)=\"getTabData('L')\">10K-50K</span>\n <span class=\"tab-title\" [ngClass]=\"{'active' : currentTab === 'M' }\" (click)=\"getTabData('M')\">1K-10K</span>\n <span class=\"tab-title\" [ngClass]=\"{'active' : currentTab === 'S' }\" (click)=\"getTabData('S')\">500-1K</span>\n <span class=\"tab-title\" [ngClass]=\"{'active' : currentTab === 'XS' }\" (click)=\"getTabData('XS')\">Less than 500</span>\n </div>\n </div>\n <div class=\"relative search-wrapper margin-top-m mb-5\">\n <mat-icon matPrefix class=\"flex absolute items-center justify-center mr-2 icon-search\">search\n </mat-icon>\n <input type=\"search\" name=\"searchKey\" class=\"search-field\" i18-aria-label\n aria-label=\"Search\" i18n-placeholder=\"search\" [(ngModel)]=\"searchTerm\"\n placeholder=\"Search your MDO\" (keyup)=\"handleSearchQuery($event)\" />\n </div>\n <div class=\"l-tab-data\">\n <div *ngFor=\"let user of filteredData\">\n <div class=\"flex flex-row item mb-5 gap-3 {{user.row_num === 1 ? 'relative' : ''}}\" >\n <div><img class=\"crown absolute\" src=\"assets/images/national-learning/rank-crown.svg\" *ngIf=\"user.row_num === 1\"/></div>\n <div class=\"{{getRank(user.row_num)}}\">{{user.row_num}}</div>\n <div class=\"w-full\">\n <div class=\"flex flex-between gap-2\">\n <div>\n <div class=\"rank-name\">{{user.org_name}}</div>\n <div class=\"rank-points flex mt-1 gap-1\">\n <img class=\"nlw-kb\" src=\"assets/icons/home/karma-badge.svg\"/>\n <div class=\"points\">{{user.total_points || 0 }} points</div>\n </div>\n </div>\n <div class=\"rank-crown\" *ngIf=\"[1,2,3].includes(user.row_num)\">\n <img class=\"nlw-animation\" [src]=\"getMedal(user.row_num)\"/>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"no-data px-1\" *ngIf=\"filteredData?.length === 0\">\n No data found!\n </div>\n </div>\n </div>\n</div>\n",
|
|
18795
|
+
styles: [".l-title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.l-content{background-color:#e9eef6;border-radius:16px;padding:16px}.horizontal-scroll-container{overflow-x:auto;white-space:nowrap;-ms-overflow-style:none;scrollbar-width:none;height:32px}.horizontal-scroll-container::-webkit-scrollbar{display:none}.scroll-content{display:inline-block}.tab-title{font-family:Lato;font-size:14px;line-height:16.8px;text-align:left;cursor:pointer;padding:0 15px 8px;border-bottom:2px solid #c3c3c3}.active{font-weight:700;border-bottom:2px solid #1b4ca1}.search-field{height:34px;padding:0 16px 0 40px;border-radius:52px;background:#fff;border:2px solid rgba(0,0,0,.0784313725);width:100%}.icon-search{top:10px;left:15px;height:15px;width:17px}.item{border-radius:12px;background-color:#fff;padding:16px;align-items:flex-start}.rank1{background:#ffca28;font-family:Lato;font-size:14px;font-weight:700;line-height:9px;text-align:center;border-radius:50%;padding:10px}.rank2{background:#1b4ca1;font-family:Lato;font-size:14px;font-weight:700;line-height:9px;text-align:center;border-radius:50%;padding:10px;color:#fff}.rank3{background:#ff8228;font-family:Lato;font-size:14px;font-weight:700;line-height:9px;text-align:center;border-radius:50%;padding:10px}.rank0{font-family:Lato;font-size:14px;font-weight:700;line-height:9px;text-align:center;border-radius:50%;padding:10px;border:1px solid #c3c3c3}.rank-name{font-family:Montserrat;line-height:1.5em;font-size:16px;font-weight:600;text-align:left;align-items:center;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;line-clamp:2}.rank-points{align-items:center}.nlw-kb{height:24px;width:24px}.points{font-family:Lato;font-size:14px;font-weight:600;line-height:16.8px;text-align:right}.crown{left:10px;top:0;width:36px;height:36px}.l-tab-data{height:520px;overflow:auto;padding-bottom:16px}.l-tab-data::-webkit-scrollbar{display:none}.pointer{margin-bottom:-59px;border-radius:41px;background:#c3c3c3;border:35px solid #e9eef6}.dot-dot{width:7px;display:flex;height:7px;background:#c3c3c3;margin-top:-25px;border-radius:10px}@media screen and (min-width:320px) and (max-width:769px){.mdo-leaderboard-container{background-color:#d1dbec}}"]
|
|
18796
|
+
}] }
|
|
18797
|
+
];
|
|
18798
|
+
/** @nocollapse */
|
|
18799
|
+
MdoLeaderboardComponent.ctorParameters = function () { return [
|
|
18800
|
+
{ type: InsiteDataService }
|
|
18801
|
+
]; };
|
|
18802
|
+
MdoLeaderboardComponent.propDecorators = {
|
|
18803
|
+
object: [{ type: Input }],
|
|
18804
|
+
tabClicked: [{ type: Output }]
|
|
18805
|
+
};
|
|
18806
|
+
return MdoLeaderboardComponent;
|
|
18807
|
+
}());
|
|
18808
|
+
if (false) {
|
|
18809
|
+
/** @type {?} */
|
|
18810
|
+
MdoLeaderboardComponent.prototype.currentTab;
|
|
18811
|
+
/** @type {?} */
|
|
18812
|
+
MdoLeaderboardComponent.prototype.result;
|
|
18813
|
+
/** @type {?} */
|
|
18814
|
+
MdoLeaderboardComponent.prototype.filteredData;
|
|
18815
|
+
/** @type {?} */
|
|
18816
|
+
MdoLeaderboardComponent.prototype.searchTerm;
|
|
18817
|
+
/** @type {?} */
|
|
18818
|
+
MdoLeaderboardComponent.prototype.expand;
|
|
18819
|
+
/** @type {?} */
|
|
18820
|
+
MdoLeaderboardComponent.prototype.object;
|
|
18821
|
+
/** @type {?} */
|
|
18822
|
+
MdoLeaderboardComponent.prototype.tabClicked;
|
|
18823
|
+
/**
|
|
18824
|
+
* @type {?}
|
|
18825
|
+
* @private
|
|
18826
|
+
*/
|
|
18827
|
+
MdoLeaderboardComponent.prototype.insiteDataService;
|
|
18828
|
+
}
|
|
18829
|
+
|
|
18830
|
+
/**
|
|
18831
|
+
* @fileoverview added by tsickle
|
|
18832
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18833
|
+
*/
|
|
18834
|
+
var MdoLeaderboardModule = /** @class */ (function () {
|
|
18835
|
+
function MdoLeaderboardModule() {
|
|
18836
|
+
}
|
|
18837
|
+
MdoLeaderboardModule.decorators = [
|
|
18838
|
+
{ type: NgModule, args: [{
|
|
18839
|
+
declarations: [MdoLeaderboardComponent],
|
|
18840
|
+
imports: [
|
|
18841
|
+
CommonModule,
|
|
18842
|
+
MatIconModule,
|
|
18843
|
+
SkeletonLoaderLibModule,
|
|
18844
|
+
FormsModule,
|
|
18845
|
+
MatTooltipModule
|
|
18846
|
+
],
|
|
18847
|
+
exports: [
|
|
18848
|
+
MdoLeaderboardComponent
|
|
18849
|
+
],
|
|
18850
|
+
providers: [InsiteDataService]
|
|
18851
|
+
},] }
|
|
18852
|
+
];
|
|
18853
|
+
return MdoLeaderboardModule;
|
|
18854
|
+
}());
|
|
18855
|
+
|
|
18856
|
+
/**
|
|
18857
|
+
* @fileoverview added by tsickle
|
|
18858
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18859
|
+
*/
|
|
18860
|
+
var HighlightsOfWeekComponent = /** @class */ (function () {
|
|
18861
|
+
function HighlightsOfWeekComponent() {
|
|
18862
|
+
this.currentIndex = 0;
|
|
18863
|
+
this.contentdata = [];
|
|
18864
|
+
this.styleData = {};
|
|
18865
|
+
this.expand = true;
|
|
18866
|
+
}
|
|
18867
|
+
/**
|
|
18868
|
+
* @return {?}
|
|
18869
|
+
*/
|
|
18870
|
+
HighlightsOfWeekComponent.prototype.ngOnInit = /**
|
|
18871
|
+
* @return {?}
|
|
18872
|
+
*/
|
|
18873
|
+
function () {
|
|
18874
|
+
var _this = this;
|
|
18875
|
+
this.styleData = this.objectData && this.objectData.sliderData && this.objectData.sliderData.styleData;
|
|
18876
|
+
if (this.objectData && this.objectData.list) {
|
|
18877
|
+
this.objectData.list.forEach((/**
|
|
18878
|
+
* @param {?} contentEle
|
|
18879
|
+
* @return {?}
|
|
18880
|
+
*/
|
|
18881
|
+
function (contentEle) {
|
|
18882
|
+
/** @type {?} */
|
|
18883
|
+
var localData = {};
|
|
18884
|
+
localData['title'] = contentEle.title;
|
|
18885
|
+
localData['videoUrl'] = contentEle.videoUrl;
|
|
18886
|
+
localData['cardSubType'] = "card-wide-lib";
|
|
18887
|
+
localData['description'] = contentEle.description;
|
|
18888
|
+
_this.contentdata.push(localData);
|
|
18889
|
+
}));
|
|
18890
|
+
}
|
|
18891
|
+
};
|
|
18892
|
+
/**
|
|
18893
|
+
* @return {?}
|
|
18894
|
+
*/
|
|
18895
|
+
HighlightsOfWeekComponent.prototype.toggleWeekHightlits = /**
|
|
18896
|
+
* @return {?}
|
|
18897
|
+
*/
|
|
18898
|
+
function () {
|
|
18899
|
+
this.expand = !this.expand;
|
|
18900
|
+
};
|
|
18901
|
+
/**
|
|
18902
|
+
* @param {?} indexValue
|
|
18903
|
+
* @return {?}
|
|
18904
|
+
*/
|
|
18905
|
+
HighlightsOfWeekComponent.prototype.getCurrentIndex = /**
|
|
18906
|
+
* @param {?} indexValue
|
|
18907
|
+
* @return {?}
|
|
18908
|
+
*/
|
|
18909
|
+
function (indexValue) {
|
|
18910
|
+
this.currentIndex = indexValue;
|
|
18911
|
+
};
|
|
18912
|
+
HighlightsOfWeekComponent.decorators = [
|
|
18913
|
+
{ type: Component, args: [{
|
|
18914
|
+
selector: 'sb-uic-highlights-of-week',
|
|
18915
|
+
template: "<div *ngIf=\"contentdata.length\" class=\"highlights-of-the-week-container {{expand ? 'mb-4' : ''}}\">\n <ng-container *ngIf=\"contentdata.length\">\n <div class=\"flex title pb-3 no-radius items-center justify-between\">\n <div class=\"flex gap-2\">\n {{objectData?.title}}\n <div class=\"block md:hidden\">\n <img [src]=\"objectData?.infoIcon\" alt=\"\" i18n-matTooltip [matTooltip]=\"objectData?.infoText\">\n </div> \n </div>\n <div class=\"block md:hidden\">\n <mat-icon (click)=\"toggleWeekHightlits()\">expand_more</mat-icon>\n </div>\n </div>\n <div *ngIf=\"expand\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [currentIndex]=\"currentIndex\"\n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\" [widgetData]=\"contentdata\"\n [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let item of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"wh-wrapper no-radius\">\n <div class=\"player\">\n <video width=\"100%\" height=\"100%\" controls *ngIf=\"i === currentIndex\">\n <source [src]=\"item.videoUrl\" type=\"video/mp4\">\n <source [src]=\"item.videoUrl\" type=\"application/x-mpegURL\" />\n </video>\n </div>\n <div class=\"player-title py-3\">\n {{item?.title}}\n </div>\n <div class=\"player-body\">\n {{item?.description}}\n </div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </div>\n </ng-container>\n</div>\n\n",
|
|
18916
|
+
styles: [".highlights-of-the-week-container ::ng-deep.banner-title{display:none}.highlights-of-the-week-container ::ng-deep.banner-meta{bottom:-37px}.highlights-of-the-week-container ::ng-deep.prev{margin-left:11px}.highlights-of-the-week-container ::ng-deep.next{margin-right:16px}.title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left;background-color:#d1dbec;padding:16px;border-top-left-radius:12px;border-top-right-radius:12px}.wh-wrapper{background-color:#d1dbec;padding:0 16px 16px;border-bottom-left-radius:12px;border-bottom-right-radius:12px}.wh-wrapper .player{height:420px}.wh-wrapper .player-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.wh-wrapper .player-body{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}@media screen and (min-width:320px) and (max-width:769px){.highlights-of-the-week-container ::ng-deep.prev{display:none!important}.highlights-of-the-week-container ::ng-deep.next{display:none!important}.wh-wrapper .player{height:215px}.no-radius{border-radius:0}}"]
|
|
18917
|
+
}] }
|
|
18918
|
+
];
|
|
18919
|
+
/** @nocollapse */
|
|
18920
|
+
HighlightsOfWeekComponent.ctorParameters = function () { return []; };
|
|
18921
|
+
HighlightsOfWeekComponent.propDecorators = {
|
|
18922
|
+
objectData: [{ type: Input }],
|
|
18923
|
+
scrollableItems: [{ type: ViewChildren, args: [ScrollableItemDirective,] }]
|
|
18924
|
+
};
|
|
18925
|
+
return HighlightsOfWeekComponent;
|
|
18926
|
+
}());
|
|
18927
|
+
if (false) {
|
|
18928
|
+
/** @type {?} */
|
|
18929
|
+
HighlightsOfWeekComponent.prototype.objectData;
|
|
18930
|
+
/** @type {?} */
|
|
18931
|
+
HighlightsOfWeekComponent.prototype.currentIndex;
|
|
18932
|
+
/** @type {?} */
|
|
18933
|
+
HighlightsOfWeekComponent.prototype.contentdata;
|
|
18934
|
+
/** @type {?} */
|
|
18935
|
+
HighlightsOfWeekComponent.prototype.styleData;
|
|
18936
|
+
/** @type {?} */
|
|
18937
|
+
HighlightsOfWeekComponent.prototype.expand;
|
|
18938
|
+
/** @type {?} */
|
|
18939
|
+
HighlightsOfWeekComponent.prototype.scrollableItems;
|
|
18940
|
+
}
|
|
18941
|
+
|
|
18942
|
+
/**
|
|
18943
|
+
* @fileoverview added by tsickle
|
|
18944
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18945
|
+
*/
|
|
18946
|
+
var HighlightsOfWeekModule = /** @class */ (function () {
|
|
18947
|
+
function HighlightsOfWeekModule() {
|
|
18948
|
+
}
|
|
18949
|
+
HighlightsOfWeekModule.decorators = [
|
|
18950
|
+
{ type: NgModule, args: [{
|
|
18951
|
+
declarations: [HighlightsOfWeekComponent],
|
|
18952
|
+
imports: [
|
|
18953
|
+
CommonModule,
|
|
18954
|
+
MatIconModule,
|
|
18955
|
+
MatTooltipModule,
|
|
18956
|
+
ScrollableItemModule,
|
|
18957
|
+
SlidersNgContentLibModule
|
|
18958
|
+
],
|
|
18959
|
+
exports: [
|
|
18960
|
+
HighlightsOfWeekComponent
|
|
18961
|
+
]
|
|
18962
|
+
},] }
|
|
18963
|
+
];
|
|
18964
|
+
return HighlightsOfWeekModule;
|
|
18965
|
+
}());
|
|
18966
|
+
|
|
18967
|
+
/**
|
|
18968
|
+
* @fileoverview added by tsickle
|
|
18969
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18970
|
+
*/
|
|
18971
|
+
var SpeakersComponent = /** @class */ (function () {
|
|
18972
|
+
function SpeakersComponent() {
|
|
18973
|
+
this.currentIndex = 0;
|
|
18974
|
+
this.contentdata = [];
|
|
18975
|
+
this.styleData = {};
|
|
18976
|
+
this.expand = true;
|
|
18977
|
+
}
|
|
18978
|
+
/**
|
|
18979
|
+
* @return {?}
|
|
18980
|
+
*/
|
|
18981
|
+
SpeakersComponent.prototype.ngOnInit = /**
|
|
18982
|
+
* @return {?}
|
|
18983
|
+
*/
|
|
18984
|
+
function () {
|
|
18985
|
+
var _this = this;
|
|
18986
|
+
this.styleData = this.objectData && this.objectData.sliderData && this.objectData.sliderData.styleData;
|
|
18987
|
+
if (this.objectData && this.objectData.list) {
|
|
18988
|
+
this.objectData.list.forEach((/**
|
|
18989
|
+
* @param {?} contentEle
|
|
18990
|
+
* @return {?}
|
|
18991
|
+
*/
|
|
18992
|
+
function (contentEle) {
|
|
18993
|
+
/** @type {?} */
|
|
18994
|
+
var localData = {};
|
|
18995
|
+
localData['name'] = contentEle.title;
|
|
18996
|
+
localData['cardSubType'] = "card-wide-lib";
|
|
18997
|
+
localData['description'] = contentEle.description;
|
|
18998
|
+
localData['initial'] = _this.createInititals(contentEle.title);
|
|
18999
|
+
localData['profileImage'] = contentEle.profileImage ? contentEle.profileImage : '';
|
|
19000
|
+
_this.contentdata.push(localData);
|
|
19001
|
+
}));
|
|
19002
|
+
}
|
|
19003
|
+
};
|
|
19004
|
+
/**
|
|
19005
|
+
* @param {?} name
|
|
19006
|
+
* @return {?}
|
|
19007
|
+
*/
|
|
19008
|
+
SpeakersComponent.prototype.createInititals = /**
|
|
19009
|
+
* @param {?} name
|
|
19010
|
+
* @return {?}
|
|
19011
|
+
*/
|
|
19012
|
+
function (name) {
|
|
19013
|
+
/** @type {?} */
|
|
19014
|
+
var initials = '';
|
|
19015
|
+
/** @type {?} */
|
|
19016
|
+
var array = name.toString().split(' ');
|
|
19017
|
+
if (array[0] !== 'undefined' && typeof array[1] !== 'undefined') {
|
|
19018
|
+
initials += array[0].charAt(0);
|
|
19019
|
+
initials += array[1].charAt(0);
|
|
19020
|
+
}
|
|
19021
|
+
else {
|
|
19022
|
+
for (var i = 0; i < name.length; i += 1) {
|
|
19023
|
+
if (name.charAt(i) === ' ') {
|
|
19024
|
+
continue;
|
|
19025
|
+
}
|
|
19026
|
+
if (name.charAt(i) === name.charAt(i)) {
|
|
19027
|
+
initials += name.charAt(i);
|
|
19028
|
+
if (initials.length === 2) {
|
|
19029
|
+
break;
|
|
19030
|
+
}
|
|
19031
|
+
}
|
|
19032
|
+
}
|
|
19033
|
+
}
|
|
19034
|
+
return initials.toUpperCase();
|
|
19035
|
+
};
|
|
19036
|
+
/**
|
|
19037
|
+
* @param {?} indexValue
|
|
19038
|
+
* @return {?}
|
|
19039
|
+
*/
|
|
19040
|
+
SpeakersComponent.prototype.getCurrentIndex = /**
|
|
19041
|
+
* @param {?} indexValue
|
|
19042
|
+
* @return {?}
|
|
19043
|
+
*/
|
|
19044
|
+
function (indexValue) {
|
|
19045
|
+
this.currentIndex = indexValue;
|
|
19046
|
+
};
|
|
19047
|
+
/**
|
|
19048
|
+
* @return {?}
|
|
19049
|
+
*/
|
|
19050
|
+
SpeakersComponent.prototype.toggleWeekHightlits = /**
|
|
19051
|
+
* @return {?}
|
|
19052
|
+
*/
|
|
19053
|
+
function () {
|
|
19054
|
+
this.expand = !this.expand;
|
|
19055
|
+
};
|
|
19056
|
+
SpeakersComponent.decorators = [
|
|
19057
|
+
{ type: Component, args: [{
|
|
19058
|
+
selector: 'sb-uic-speakers',
|
|
19059
|
+
template: "<div class=\"nlw-speakers-wrapper px-4 md:px-0 my-4 md:my-0\">\n <div class=\"flex speakers-title gap-2 justify-between pb-1\" *ngIf=\"contentdata.length\">\n <div class=\"flex gap-2\">\n {{objectData?.title}}\n <div><img [src]=\"objectData?.infoIcon\" alt=\"\" i18n-matTooltip [matTooltip]=\"objectData?.infoText\"></div>\n </div>\n <div class=\"block md:hidden\">\n <mat-icon (click)=\"toggleWeekHightlits()\">expand_more</mat-icon>\n </div>\n </div>\n <div *ngIf=\"expand\" class=\"speakers-container margin-bottom-xs\" >\n <ng-container *ngIf=\"contentdata.length\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [currentIndex]=\"currentIndex\"\n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\" [widgetData]=\"contentdata\"\n [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let item of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"speakers-wrapper\">\n <div class=\"flex items-center justify-center pb-2\">\n <div class=\"speaker-initial\" *ngIf=\"!item.profileImage\">{{item?.initial}}</div>\n <img class='speaker-icon' [src]=\"item?.profileImage\" alt=\"\" *ngIf=\"item.profileImage\"/>\n </div>\n <div class=\"flex items-center justify-center pb-2\">\n <div class=\"speaker-title\">{{item.name}}</div>\n </div>\n <div class=\"flex items-center justify-center\">\n <div class=\"speaker-description\">{{item.description}}</div>\n </div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </ng-container>\n </div>\n</div>",
|
|
19060
|
+
styles: [".speakers-container ::ng-deep.banner-title{display:none}.speakers-container ::ng-deep.prev{margin-left:0;background-color:#fff4ec!important;color:#b6b4b4}.speakers-container ::ng-deep.next{margin-right:0;background-color:#fff4ec!important;color:#b6b4b4}.speakers-title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.speakers-wrapper{background-color:#fff4ec;border-radius:12px;padding:24px}.speaker-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.speaker-description{font-family:Lato;font-size:12px;font-weight:400;line-height:14.4px;text-align:center}.speaker-initial{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:center;width:80px;height:80px;display:flex;align-items:center;justify-content:center;background-color:#1b4ca1;color:#fff;border-radius:50px}.speaker-icon{width:80px;height:80px;border-radius:50px}@media screen and (min-width:320px) and (max-width:769px){.nlw-speakers-wrapper{background-color:#d1dbec}.speakers-title{padding:16px 0}}"]
|
|
19061
|
+
}] }
|
|
19062
|
+
];
|
|
19063
|
+
/** @nocollapse */
|
|
19064
|
+
SpeakersComponent.ctorParameters = function () { return []; };
|
|
19065
|
+
SpeakersComponent.propDecorators = {
|
|
19066
|
+
objectData: [{ type: Input }],
|
|
19067
|
+
scrollableItems: [{ type: ViewChildren, args: [ScrollableItemDirective,] }]
|
|
19068
|
+
};
|
|
19069
|
+
return SpeakersComponent;
|
|
19070
|
+
}());
|
|
19071
|
+
if (false) {
|
|
19072
|
+
/** @type {?} */
|
|
19073
|
+
SpeakersComponent.prototype.objectData;
|
|
19074
|
+
/** @type {?} */
|
|
19075
|
+
SpeakersComponent.prototype.currentIndex;
|
|
19076
|
+
/** @type {?} */
|
|
19077
|
+
SpeakersComponent.prototype.contentdata;
|
|
19078
|
+
/** @type {?} */
|
|
19079
|
+
SpeakersComponent.prototype.styleData;
|
|
19080
|
+
/** @type {?} */
|
|
19081
|
+
SpeakersComponent.prototype.expand;
|
|
19082
|
+
/** @type {?} */
|
|
19083
|
+
SpeakersComponent.prototype.scrollableItems;
|
|
19084
|
+
}
|
|
19085
|
+
|
|
19086
|
+
/**
|
|
19087
|
+
* @fileoverview added by tsickle
|
|
19088
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
19089
|
+
*/
|
|
19090
|
+
var SpeakersModule = /** @class */ (function () {
|
|
19091
|
+
function SpeakersModule() {
|
|
19092
|
+
}
|
|
19093
|
+
SpeakersModule.decorators = [
|
|
19094
|
+
{ type: NgModule, args: [{
|
|
19095
|
+
declarations: [SpeakersComponent],
|
|
19096
|
+
imports: [
|
|
19097
|
+
CommonModule,
|
|
19098
|
+
ScrollableItemModule,
|
|
19099
|
+
SlidersNgContentLibModule,
|
|
19100
|
+
MatTooltipModule,
|
|
19101
|
+
MatIconModule,
|
|
19102
|
+
],
|
|
19103
|
+
exports: [
|
|
19104
|
+
SpeakersComponent
|
|
19105
|
+
]
|
|
19106
|
+
},] }
|
|
19107
|
+
];
|
|
19108
|
+
return SpeakersModule;
|
|
19109
|
+
}());
|
|
19110
|
+
|
|
19111
|
+
/**
|
|
19112
|
+
* @fileoverview added by tsickle
|
|
19113
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
19114
|
+
*/
|
|
19115
|
+
var UserProgressComponent = /** @class */ (function () {
|
|
19116
|
+
function UserProgressComponent(insightSvc) {
|
|
19117
|
+
this.insightSvc = insightSvc;
|
|
19118
|
+
this.insitesData = [];
|
|
19119
|
+
this.currentIndex = 0;
|
|
19120
|
+
this.styleData = {};
|
|
19121
|
+
this.expand = true;
|
|
19122
|
+
}
|
|
19123
|
+
/**
|
|
19124
|
+
* @return {?}
|
|
19125
|
+
*/
|
|
19126
|
+
UserProgressComponent.prototype.ngOnInit = /**
|
|
19127
|
+
* @return {?}
|
|
19128
|
+
*/
|
|
19129
|
+
function () {
|
|
19130
|
+
this.styleData = this.objectData.insights.data.sliderData.styleData;
|
|
19131
|
+
this.getUserProgress();
|
|
19132
|
+
this.getInsightsData();
|
|
19133
|
+
};
|
|
19134
|
+
/**
|
|
19135
|
+
* @return {?}
|
|
19136
|
+
*/
|
|
19137
|
+
UserProgressComponent.prototype.getUserProgress = /**
|
|
19138
|
+
* @return {?}
|
|
19139
|
+
*/
|
|
19140
|
+
function () {
|
|
19141
|
+
var _this = this;
|
|
19142
|
+
this.insightSvc.fetchUserProgress().subscribe((/**
|
|
19143
|
+
* @param {?} res
|
|
19144
|
+
* @return {?}
|
|
19145
|
+
*/
|
|
19146
|
+
function (res) {
|
|
19147
|
+
if (res && res.result && res.result.userLeaderBoard) {
|
|
19148
|
+
_this.userProgress = res.result.userLeaderBoard[0];
|
|
19149
|
+
}
|
|
19150
|
+
}));
|
|
19151
|
+
};
|
|
19152
|
+
/**
|
|
19153
|
+
* @return {?}
|
|
19154
|
+
*/
|
|
19155
|
+
UserProgressComponent.prototype.getInsightsData = /**
|
|
19156
|
+
* @return {?}
|
|
19157
|
+
*/
|
|
19158
|
+
function () {
|
|
19159
|
+
var _this = this;
|
|
19160
|
+
/** @type {?} */
|
|
19161
|
+
var request = {
|
|
19162
|
+
request: {
|
|
19163
|
+
filters: {
|
|
19164
|
+
primaryCategory: 'programs',
|
|
19165
|
+
organisations: [
|
|
19166
|
+
'across',
|
|
19167
|
+
this.rootOrgId,
|
|
19168
|
+
],
|
|
19169
|
+
},
|
|
19170
|
+
},
|
|
19171
|
+
};
|
|
19172
|
+
this.insightSvc.fetchInsightsData(request).subscribe((/**
|
|
19173
|
+
* @param {?} res
|
|
19174
|
+
* @return {?}
|
|
19175
|
+
*/
|
|
19176
|
+
function (res) {
|
|
19177
|
+
if (res && res.result && res.result.response && res.result.response.nudges) {
|
|
19178
|
+
_this.insitesData = res.result.response.nudges;
|
|
19179
|
+
_this.insitesData = _this.insitesData.map((/**
|
|
19180
|
+
* @param {?} obj
|
|
19181
|
+
* @return {?}
|
|
19182
|
+
*/
|
|
19183
|
+
function (obj) {
|
|
19184
|
+
return __assign({}, obj, { cardSubType: 'card-wide-lib' });
|
|
19185
|
+
}));
|
|
19186
|
+
}
|
|
19187
|
+
}));
|
|
19188
|
+
};
|
|
19189
|
+
/**
|
|
19190
|
+
* @param {?} number
|
|
19191
|
+
* @return {?}
|
|
19192
|
+
*/
|
|
19193
|
+
UserProgressComponent.prototype.roundTo = /**
|
|
19194
|
+
* @param {?} number
|
|
19195
|
+
* @return {?}
|
|
19196
|
+
*/
|
|
19197
|
+
function (number) {
|
|
19198
|
+
return Math.round(number * 100 / 100);
|
|
19199
|
+
};
|
|
19200
|
+
/**
|
|
19201
|
+
* @param {?} indexValue
|
|
19202
|
+
* @return {?}
|
|
19203
|
+
*/
|
|
19204
|
+
UserProgressComponent.prototype.getCurrentIndex = /**
|
|
19205
|
+
* @param {?} indexValue
|
|
19206
|
+
* @return {?}
|
|
19207
|
+
*/
|
|
19208
|
+
function (indexValue) {
|
|
19209
|
+
this.currentIndex = indexValue;
|
|
19210
|
+
};
|
|
19211
|
+
/**
|
|
19212
|
+
* @param {?} name
|
|
19213
|
+
* @return {?}
|
|
19214
|
+
*/
|
|
19215
|
+
UserProgressComponent.prototype.createInititals = /**
|
|
19216
|
+
* @param {?} name
|
|
19217
|
+
* @return {?}
|
|
19218
|
+
*/
|
|
19219
|
+
function (name) {
|
|
19220
|
+
/** @type {?} */
|
|
19221
|
+
var initials = '';
|
|
19222
|
+
/** @type {?} */
|
|
19223
|
+
var array = name.toString().split(' ');
|
|
19224
|
+
if (array[0] !== 'undefined' && typeof array[1] !== 'undefined') {
|
|
19225
|
+
initials += array[0].charAt(0);
|
|
19226
|
+
initials += array[1].charAt(0);
|
|
19227
|
+
}
|
|
19228
|
+
else {
|
|
19229
|
+
for (var i = 0; i < name.length; i += 1) {
|
|
19230
|
+
if (name.charAt(i) === ' ') {
|
|
19231
|
+
continue;
|
|
19232
|
+
}
|
|
19233
|
+
if (name.charAt(i) === name.charAt(i)) {
|
|
19234
|
+
initials += name.charAt(i);
|
|
19235
|
+
if (initials.length === 2) {
|
|
19236
|
+
break;
|
|
19237
|
+
}
|
|
19238
|
+
}
|
|
19239
|
+
}
|
|
19240
|
+
}
|
|
19241
|
+
return initials.toUpperCase();
|
|
19242
|
+
};
|
|
19243
|
+
/**
|
|
19244
|
+
* @return {?}
|
|
19245
|
+
*/
|
|
19246
|
+
UserProgressComponent.prototype.toggleWeekHightlits = /**
|
|
19247
|
+
* @return {?}
|
|
19248
|
+
*/
|
|
19249
|
+
function () {
|
|
19250
|
+
this.expand = !this.expand;
|
|
19251
|
+
};
|
|
19252
|
+
UserProgressComponent.decorators = [
|
|
19253
|
+
{ type: Component, args: [{
|
|
19254
|
+
selector: 'sb-uic-user-progress',
|
|
19255
|
+
template: "<div class=\"px-4 md:px-0 pt-4 md:pt-0 week-progress {{expand ? 'pb-4' : 'pb-1'}}\">\n <div class=\"flex user-progress-title gap-2 margin-bottom-xs items-center justify-between\">\n <div class=\"flex gap-2\">\n {{objectData?.title}}\n <div><img [src]=\"objectData?.infoIcon\" alt=\"\" i18n-matTooltip [matTooltip]=\"objectData?.infoText\"></div>\n </div>\n <div class=\"block md:hidden\">\n <mat-icon (click)=\"toggleWeekHightlits()\">expand_more</mat-icon>\n </div>\n </div>\n <div class=\"user-progress-wrapper\" *ngIf=\"expand\">\n <div class=\"user-rank flex items-center\">\n <div class=\"flex item-center\">\n <div class=\"current-rank\" *ngIf=\"userProgress?.rank > 0\">#{{userProgress?.rank}} Rank</div>\n </div>\n </div>\n <div class=\"user-details-wrapper\">\n <div class=\"user-details flex gap-2\">\n <div class=\"user-initial\" *ngIf=\"userProgress?.profile_image\">\n <img class=\"user-profile\" [src]=\"userProgress?.profile_image\" alt=\"\"/>\n </div>\n <div class=\"user-initial\" *ngIf=\"!userProgress?.profile_image && userProgress?.fullname\">{{createInititals(userProgress?.fullname)}}</div>\n <div class=\"user-name pt-3\">{{userProgress?.fullname}}</div>\n </div>\n <div class=\"user-stats my-3\">\n <div class=\"flex gap-2 items-center justify-center\">\n <div class=\"my-hours\">\n <div class=\"flex items-center gap-3\">\n <img class=\"hours-icon\"\n src=\"https://portal.dev.karmayogibharat.net/content-store/orgStore/0135071359030722569/1726808794219_InProgress_Icon.svg\" alt=\"\">\n <div>\n <div class=\"counter\">{{userProgress?.total_learning_hours || 0}}</div>\n <div class=\"counter-title pt-1\">Learning Hours</div>\n </div>\n </div>\n </div>\n <div class=\"my-certificates\">\n <div class=\"flex items-center gap-3\">\n <img class=\"cert-icon\"\n src=\"https://portal.dev.karmayogibharat.net/content-store/orgStore/0135071359030722569/1726808775795_Certificate_icon.svg\" alt=\"\">\n <div>\n <div class=\"counter\">{{userProgress?.count || 0}}</div>\n <div class=\"counter-title pt-1\">Certificates</div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex gap-2 items-center justify-center pt-3\">\n <div class=\"k-points\">\n <div class=\"flex items-center gap-3\">\n <img class=\"kp-point-icon\"\n src=\"https://portal.dev.karmayogibharat.net/content-store/orgStore/0135071359030722569/1726808815206_karma-badge.svg\" alt=\"\">\n <div>\n <div class=\"counter\">{{userProgress?.total_points || 0}}</div>\n <div class=\"counter-title pt-1\">Karma Points</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"insights-wrapper\">\n <div class=\"insights-container\">\n <sb-uic-sliders-ng-content\n [title]=\"'p1'\"\n [currentIndex]=\"currentIndex\"\n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\" [widgetData]=\"insitesData\"\n [customBanner]=\"true\" [autoScroll]=\"true\"\n [styleData]=\"styleData\">\n <div sliderbody>\n <div class=\"insights-item\" *ngFor=\"let item of insitesData; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"flex gap-4\">\n <div class=\"insights-lable\">{{item?.label}}</div>\n <div class=\"flex items-center growth-positive\" *ngIf=\"item?.growth === 'positive'\">\n <mat-icon class=\"positive-icon\">arrow_upward</mat-icon>\n <span class=\"positive-note pt-1\">+{{roundTo(item?.progress)}}%</span>\n </div>\n <div class=\"flex items-center growth-negative\" *ngIf=\"item?.growth === 'negative' && item?.progress > 0\">\n <mat-icon class=\"negative-icon\">arrow_downward</mat-icon>\n <span class=\"negative-note\">-{{roundTo(item?.progress)}}%</span>\n </div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </div>\n </div>\n </div>\n </div>\n</div>\n",
|
|
19256
|
+
styles: [".user-progress-title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.user-progress-wrapper{border-radius:12px}.user-rank{background:url(https://portal.dev.karmayogibharat.net/content-store/orgStore/0132238763297177601/1727267061524_shadow.png),linear-gradient(124.59deg,#266eeb 51.53%,#133f8b 140.2%);height:76px;border-top-left-radius:12px;border-top-right-radius:12px;border-left-color:#266eeb;border-right-color:#266eeb;border-top-color:#266eeb;padding-left:25%}.current-rank{padding:3px 10px;border-radius:15px;background-color:#fff;color:#f3962f;font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center}.user-details-wrapper{padding:0 8px;border:1px solid #e8e8e8;border-bottom-left-radius:12px;border-bottom-right-radius:12px;background-color:#fff}.user-details,.user-stats{padding:0 8px}.user-initial{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:center;width:70px;height:70px;display:flex;align-items:center;justify-content:center;background-color:#000;color:#fff;border-radius:50px;border:3px solid #fff;margin-top:-30px}.user-profile{width:70px;height:70px;border-radius:50px}.user-name{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.my-hours{padding:16px;background-color:#f0f3f4;border-radius:12px;width:50%;border:1px solid #c3c3c3}.my-certificates{padding:16px;background-color:#f0f3f4;width:50%;border-radius:12px;border:1px solid #c3c3c3}.k-points{padding:16px;background-color:#f0f3f4;width:40%;border-radius:12px;border:1px solid #c3c3c3}.hours-icon{background:linear-gradient(143.13deg,rgba(255,191,26,.15) 5.36%,rgba(255,64,128,.15) 94.64%);border-radius:50px;padding:5px}.counter-title{font-family:Lato;font-size:12px;font-weight:400;line-height:14.4px;text-align:left}.counter{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.cert-icon{background:linear-gradient(180deg,rgba(255,206,81,.24) 0,rgba(254,231,28,.24) 100%);border-radius:50px;padding:5px}.kp-point-icon{background:#dbe4ff;border-radius:50px;padding:5px;height:18px;width:18px}.insights-wrapper{padding:8px 0}.insights-container{background:rgba(243,150,47,.2);height:84px;border-radius:8px}.insights-container ::ng-deep .prev{display:none}.insights-container ::ng-deep .next{display:none}.insights-item{padding:16px}.insights-lable{font-family:Lato;font-size:12px;font-weight:400;line-height:14.4px;text-align:left}.positive-note{font-size:12px;font-weight:400;line-height:14.4px}.positive-icon{font-size:18px;height:18px;width:18px}.growth-positive{color:green}.growth-negative{color:red}.negative-icon{font-size:18px;height:18px;width:18px}.negative-note{font-size:12px;font-weight:400;line-height:14.4px}@media screen and (min-width:320px) and (max-width:769px){.week-progress{background-color:#d1dbec}}"]
|
|
19257
|
+
}] }
|
|
19258
|
+
];
|
|
19259
|
+
/** @nocollapse */
|
|
19260
|
+
UserProgressComponent.ctorParameters = function () { return [
|
|
19261
|
+
{ type: InsiteDataService }
|
|
19262
|
+
]; };
|
|
19263
|
+
UserProgressComponent.propDecorators = {
|
|
19264
|
+
objectData: [{ type: Input }],
|
|
19265
|
+
rootOrgId: [{ type: Input }],
|
|
19266
|
+
scrollableItems: [{ type: ViewChildren, args: [ScrollableItemDirective,] }]
|
|
19267
|
+
};
|
|
19268
|
+
return UserProgressComponent;
|
|
19269
|
+
}());
|
|
19270
|
+
if (false) {
|
|
19271
|
+
/** @type {?} */
|
|
19272
|
+
UserProgressComponent.prototype.objectData;
|
|
19273
|
+
/** @type {?} */
|
|
19274
|
+
UserProgressComponent.prototype.rootOrgId;
|
|
19275
|
+
/** @type {?} */
|
|
19276
|
+
UserProgressComponent.prototype.insitesData;
|
|
19277
|
+
/** @type {?} */
|
|
19278
|
+
UserProgressComponent.prototype.currentIndex;
|
|
19279
|
+
/** @type {?} */
|
|
19280
|
+
UserProgressComponent.prototype.styleData;
|
|
19281
|
+
/** @type {?} */
|
|
19282
|
+
UserProgressComponent.prototype.userProgress;
|
|
19283
|
+
/** @type {?} */
|
|
19284
|
+
UserProgressComponent.prototype.expand;
|
|
19285
|
+
/** @type {?} */
|
|
19286
|
+
UserProgressComponent.prototype.scrollableItems;
|
|
19287
|
+
/** @type {?} */
|
|
19288
|
+
UserProgressComponent.prototype.insightSvc;
|
|
19289
|
+
}
|
|
19290
|
+
|
|
19291
|
+
/**
|
|
19292
|
+
* @fileoverview added by tsickle
|
|
19293
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
19294
|
+
*/
|
|
19295
|
+
var UserProgressModule = /** @class */ (function () {
|
|
19296
|
+
function UserProgressModule() {
|
|
19297
|
+
}
|
|
19298
|
+
UserProgressModule.decorators = [
|
|
19299
|
+
{ type: NgModule, args: [{
|
|
19300
|
+
declarations: [UserProgressComponent],
|
|
19301
|
+
imports: [
|
|
19302
|
+
CommonModule,
|
|
19303
|
+
MatTooltipModule,
|
|
19304
|
+
MatIconModule,
|
|
19305
|
+
ScrollableItemModule,
|
|
19306
|
+
SlidersNgContentLibModule,
|
|
19307
|
+
],
|
|
19308
|
+
exports: [
|
|
19309
|
+
UserProgressComponent
|
|
19310
|
+
]
|
|
19311
|
+
},] }
|
|
19312
|
+
];
|
|
19313
|
+
return UserProgressModule;
|
|
19314
|
+
}());
|
|
19315
|
+
|
|
19316
|
+
/**
|
|
19317
|
+
* @fileoverview added by tsickle
|
|
19318
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
19319
|
+
*/
|
|
19320
|
+
var NationalLearningModule = /** @class */ (function () {
|
|
19321
|
+
function NationalLearningModule() {
|
|
19322
|
+
}
|
|
19323
|
+
NationalLearningModule.decorators = [
|
|
19324
|
+
{ type: NgModule, args: [{
|
|
19325
|
+
declarations: [NationalLearningComponent],
|
|
19326
|
+
imports: [
|
|
19327
|
+
CommonModule,
|
|
19328
|
+
MatIconModule,
|
|
19329
|
+
MatChipsModule,
|
|
19330
|
+
SkeletonLoaderLibModule,
|
|
19331
|
+
SlidersLibModule,
|
|
19332
|
+
MatTabsModule,
|
|
19333
|
+
KeyHighlightsModule,
|
|
19334
|
+
ContentStripWithTabsLibModule,
|
|
19335
|
+
DataPointsModule,
|
|
19336
|
+
EventsModule,
|
|
19337
|
+
MdoLeaderboardModule,
|
|
19338
|
+
HighlightsOfWeekModule,
|
|
19339
|
+
SpeakersModule,
|
|
19340
|
+
UserProgressModule
|
|
19341
|
+
],
|
|
19342
|
+
exports: [
|
|
19343
|
+
NationalLearningComponent,
|
|
19344
|
+
],
|
|
19345
|
+
providers: [
|
|
19346
|
+
CommonMethodsService
|
|
19347
|
+
],
|
|
19348
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
19349
|
+
},] }
|
|
19350
|
+
];
|
|
19351
|
+
return NationalLearningModule;
|
|
19352
|
+
}());
|
|
19353
|
+
|
|
17948
19354
|
/**
|
|
17949
19355
|
* @fileoverview added by tsickle
|
|
17950
19356
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -17955,5 +19361,5 @@ var ProvidersModule = /** @class */ (function () {
|
|
|
17955
19361
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
17956
19362
|
*/
|
|
17957
19363
|
|
|
17958
|
-
export { AnnouncementsModule, CalenderModule, CardsModule, CbpPlanModule, CommonMethodsService, CommonStripModule, CompetencyPassbookMdoModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentProgressModule, ContentStripWithTabsLibModule, ContentStripWithTabsPillsModule, DataPointsModule, DialogComponentsModule, HttpLoaderFactory, HttpLoaderFactory1, MDOChannelModule, MyHammerConfig, ProvidersModule, ROOT_WIDGET_CONFIG, SlidersLibModule, TopLearnersModule, UserContentRatingLibModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentService, ContentStripWithTabsLibComponent as ɵa, WidgetUserService as ɵb, CardResourceComponent as ɵba, CardsComponent as ɵbb, CardPortraitComponent as ɵbc, CardUserComponent as ɵbd, CardLandscapeComponent as ɵbe, CardWideComponent as ɵbf, CardMDOChannelComponent as ɵbg, CardWideV2Component as ɵbh, CardKarmaProgramsComponent as ɵbi, CardKarmaProgramsV2Component as ɵbj, ProviderCardComponent as ɵbk, CardPortraitExtComponent as ɵbl, CardAssessmentComponent as ɵbm, CardProgressPortraitLibComponent as ɵbn, CertificateService as ɵbo, CardMdoChannelV1Component as ɵbp, PipePublicURLModule as ɵbq, PipePublicURL as ɵbr, ObjectToArrayPipeModule as ɵbs, ObjectToArrayPipe as ɵbt, DisplayContentTypeLibModule as ɵbu, DisplayContentTypeLibComponent as ɵbv, DefaultThumbnailModule as ɵbw, DefaultThumbnailDirective as ɵbx, PipeDurationTransformModule as ɵby, PipeDurationTransformPipe as ɵbz, MultilingualTranslationsService as ɵc, ContentProgressComponent as ɵca, CertificateDialogComponent as ɵcb, AvatarPhotoLibModule as ɵcc, AvatarPhotoLibComponent as ɵcd, ContentStripWithTabsPillsComponent as ɵce, CompetencyPassbookComponent as ɵcf, CompetencyPassbookService as ɵcg, PillsModule as ɵch, PillsComponent as ɵci, CompetencyPassbookMdoComponent as ɵcj, CompetencyPassbookMdoService as ɵck, UserContentRatingLibComponent as ɵcl, RatingService as ɵcm, UserContentRatingLibService as ɵcn, MdoChannelV1Component as ɵco, MdoChannelV2Component as ɵcp, ProvidersV2Component as ɵcq, ConfigurationsService as ɵd, HorizontalScrollerV2Module as ɵe, HorizontalScrollerV2Component as ɵf, SlidersLibComponent as ɵg, NavigationModule as ɵh, NavigationDirective as ɵi, ImageResponsiveModule as ɵj, ImageResponsiveDirective as ɵk, DataPointsComponent as ɵl, InsiteDataService as ɵm, SkeletonLoaderLibModule as ɵn, SkeletonLoaderLibComponent as ɵo, CalenderComponent as ɵp, CalenderDayComponent as ɵq, CommonStripComponent as ɵr, AnnouncementsComponent as ɵs, TopLearnersComponent as ɵt, CbpPlanComponent as ɵu, ScrollableItemDirective as ɵv, ScrollableItemModule as ɵw, MyHammerConfig$1 as ɵx, SlidersNgContentLibModule as ɵy, SlidersNgContentLibComponent as ɵz };
|
|
19364
|
+
export { AnnouncementsModule, CalenderModule, CardsModule, CbpPlanModule, CommonMethodsService, CommonStripModule, CompetencyPassbookMdoModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentProgressModule, ContentStripWithTabsLibModule, ContentStripWithTabsPillsModule, DataPointsModule, DialogComponentsModule, EventsModule, HighlightsOfWeekModule, HttpLoaderFactory, HttpLoaderFactory1, KeyHighlightsModule, MDOChannelModule, MdoLeaderboardModule, MyHammerConfig, NationalLearningModule, ProvidersModule, ROOT_WIDGET_CONFIG, SlidersLibModule, SpeakersModule, TopLearnersModule, UserContentRatingLibModule, UserProgressModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentService, ContentStripWithTabsLibComponent as ɵa, WidgetUserService as ɵb, CardResourceComponent as ɵba, CardsComponent as ɵbb, CardPortraitComponent as ɵbc, CardUserComponent as ɵbd, CardLandscapeComponent as ɵbe, CardWideComponent as ɵbf, CardMDOChannelComponent as ɵbg, CardWideV2Component as ɵbh, CardKarmaProgramsComponent as ɵbi, CardKarmaProgramsV2Component as ɵbj, ProviderCardComponent as ɵbk, CardPortraitExtComponent as ɵbl, CardAssessmentComponent as ɵbm, CardProgressPortraitLibComponent as ɵbn, CertificateService as ɵbo, CardMdoChannelV1Component as ɵbp, PipePublicURLModule as ɵbq, PipePublicURL as ɵbr, ObjectToArrayPipeModule as ɵbs, ObjectToArrayPipe as ɵbt, DisplayContentTypeLibModule as ɵbu, DisplayContentTypeLibComponent as ɵbv, DefaultThumbnailModule as ɵbw, DefaultThumbnailDirective as ɵbx, PipeDurationTransformModule as ɵby, PipeDurationTransformPipe as ɵbz, MultilingualTranslationsService as ɵc, ContentProgressComponent as ɵca, CertificateDialogComponent as ɵcb, AvatarPhotoLibModule as ɵcc, AvatarPhotoLibComponent as ɵcd, ContentStripWithTabsPillsComponent as ɵce, CompetencyPassbookComponent as ɵcf, CompetencyPassbookService as ɵcg, PillsModule as ɵch, PillsComponent as ɵci, CompetencyPassbookMdoComponent as ɵcj, CompetencyPassbookMdoService as ɵck, UserContentRatingLibComponent as ɵcl, RatingService as ɵcm, UserContentRatingLibService as ɵcn, MdoChannelV1Component as ɵco, MdoChannelV2Component as ɵcp, ProvidersV2Component as ɵcq, NationalLearningComponent as ɵcr, KeyHighlightsComponent as ɵcs, EventsComponent as ɵct, EventCardComponent as ɵcu, MdoLeaderboardComponent as ɵcv, HighlightsOfWeekComponent as ɵcw, SpeakersComponent as ɵcx, UserProgressComponent as ɵcy, ConfigurationsService as ɵd, HorizontalScrollerV2Module as ɵe, HorizontalScrollerV2Component as ɵf, SlidersLibComponent as ɵg, NavigationModule as ɵh, NavigationDirective as ɵi, ImageResponsiveModule as ɵj, ImageResponsiveDirective as ɵk, DataPointsComponent as ɵl, InsiteDataService as ɵm, SkeletonLoaderLibModule as ɵn, SkeletonLoaderLibComponent as ɵo, CalenderComponent as ɵp, CalenderDayComponent as ɵq, CommonStripComponent as ɵr, AnnouncementsComponent as ɵs, TopLearnersComponent as ɵt, CbpPlanComponent as ɵu, ScrollableItemDirective as ɵv, ScrollableItemModule as ɵw, MyHammerConfig$1 as ɵx, SlidersNgContentLibModule as ɵy, SlidersNgContentLibComponent as ɵz };
|
|
17959
19365
|
//# sourceMappingURL=sunbird-cb-consumption.js.map
|