@sunbird-cb/consumption 0.0.1 → 0.0.3
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 +416 -96
- package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
- package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +2 -2
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +165 -3
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm2015/lib/_common/data-points/data-points.component.js +62 -5
- package/esm2015/lib/_common/data-points/data-points.module.js +6 -2
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +1 -2
- package/esm2015/lib/_services/insite-data.service.js +45 -0
- package/esm2015/lib/_services/widget-content.service.js +12 -1
- package/esm2015/sunbird-cb-consumption.js +21 -20
- package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +2 -2
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +205 -3
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm5/lib/_common/data-points/data-points.component.js +63 -5
- package/esm5/lib/_common/data-points/data-points.module.js +6 -2
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +1 -2
- package/esm5/lib/_services/insite-data.service.js +48 -0
- package/esm5/lib/_services/widget-content.service.js +17 -1
- package/esm5/sunbird-cb-consumption.js +21 -20
- package/fesm2015/sunbird-cb-consumption.js +343 -72
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +398 -79
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +7 -1
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.d.ts +3 -0
- package/lib/_common/data-points/data-points.component.d.ts +7 -1
- package/lib/_services/insite-data.service.d.ts +7 -0
- package/lib/_services/widget-content.service.d.ts +1 -0
- package/package.json +3 -2
- package/sunbird-cb-consumption.d.ts +20 -19
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -17,7 +17,7 @@ import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
|
17
17
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
18
18
|
import { HammerGestureConfig, HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
|
|
19
19
|
import Hammer from 'hammerjs';
|
|
20
|
-
import {
|
|
20
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* @fileoverview added by tsickle
|
|
@@ -266,7 +266,6 @@ var HorizontalScrollerV2Component = /** @class */ (function () {
|
|
|
266
266
|
var cardWidth = void 0;
|
|
267
267
|
/** @type {?} */
|
|
268
268
|
var arrLength_1;
|
|
269
|
-
console.log('this.cardSubType-->', this.cardSubType);
|
|
270
269
|
if (this.cardSubType !== 'card-wide-v2') {
|
|
271
270
|
cardWidth = this.cardSubType === 'standard' ? 245 :
|
|
272
271
|
((document.getElementsByClassName(this.cardSubType) &&
|
|
@@ -1452,6 +1451,8 @@ var API_END_POINTS = {
|
|
|
1452
1451
|
READ_COURSE_KARMAPOINTS: '/apis/proxies/v8/karmapoints/user/course/read',
|
|
1453
1452
|
CLAIM_KARMAPOINTS: '/apis/proxies/v8/claimkarmapoints',
|
|
1454
1453
|
USER_KARMA_POINTS: '/apis/proxies/v8/user/totalkarmapoints',
|
|
1454
|
+
AGGREGATION_SEARCH: '/apis/proxies/v8/content/aggregation/search',
|
|
1455
|
+
FEATURE_SEARCH: '/apis/proxies/v8/featured/content/search',
|
|
1455
1456
|
};
|
|
1456
1457
|
var WidgetContentService = /** @class */ (function () {
|
|
1457
1458
|
function WidgetContentService(http, configSvc) {
|
|
@@ -2388,6 +2389,20 @@ var WidgetContentService = /** @class */ (function () {
|
|
|
2388
2389
|
}
|
|
2389
2390
|
return true;
|
|
2390
2391
|
};
|
|
2392
|
+
/**
|
|
2393
|
+
* @param {?} apiUrl
|
|
2394
|
+
* @param {?} req
|
|
2395
|
+
* @return {?}
|
|
2396
|
+
*/
|
|
2397
|
+
WidgetContentService.prototype.postApiMethod = /**
|
|
2398
|
+
* @param {?} apiUrl
|
|
2399
|
+
* @param {?} req
|
|
2400
|
+
* @return {?}
|
|
2401
|
+
*/
|
|
2402
|
+
function (apiUrl, req) {
|
|
2403
|
+
req.query = req.query || '';
|
|
2404
|
+
return this.http.post(apiUrl, req);
|
|
2405
|
+
};
|
|
2391
2406
|
WidgetContentService.decorators = [
|
|
2392
2407
|
{ type: Injectable, args: [{
|
|
2393
2408
|
providedIn: 'root',
|
|
@@ -3564,6 +3579,8 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
3564
3579
|
_this.userSvc = userSvc;
|
|
3565
3580
|
_this.translate = translate;
|
|
3566
3581
|
_this.langtranslations = langtranslations;
|
|
3582
|
+
_this.emptyResponse = new EventEmitter();
|
|
3583
|
+
_this.providerId = '';
|
|
3567
3584
|
_this.id = "ws-strip-miltiple_" + Math.random();
|
|
3568
3585
|
_this.stripsResultDataMap = {};
|
|
3569
3586
|
_this.stripsKeyOrder = [];
|
|
@@ -4021,6 +4038,8 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
4021
4038
|
this.fetchFromSearchV6(strip, calculateParentStatus);
|
|
4022
4039
|
this.fetchFromTrendingContent(strip, calculateParentStatus);
|
|
4023
4040
|
this.fetchAllCbpPlans(strip, calculateParentStatus);
|
|
4041
|
+
this.fetchAllTopContent(strip, calculateParentStatus);
|
|
4042
|
+
this.fetchAllFeaturedContent(strip, calculateParentStatus);
|
|
4024
4043
|
// this.enrollInterval = setInterval(() => {
|
|
4025
4044
|
// this.fetchAllCbpPlans(strip, calculateParentStatus)
|
|
4026
4045
|
// }, 1000)
|
|
@@ -4747,7 +4766,9 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
4747
4766
|
(strip.request.searchV6 && Object.keys(strip.request.searchV6).length) ||
|
|
4748
4767
|
(strip.request.enrollmentList && Object.keys(strip.request.enrollmentList).length) ||
|
|
4749
4768
|
(strip.request.cbpList && Object.keys(strip.request.cbpList).length) ||
|
|
4750
|
-
(strip.request.trendingSearch && Object.keys(strip.request.trendingSearch).length)
|
|
4769
|
+
(strip.request.trendingSearch && Object.keys(strip.request.trendingSearch).length) ||
|
|
4770
|
+
(strip.request.topContent && Object.keys(strip.request.topContent).length) ||
|
|
4771
|
+
(strip.request.featureContent && Object.keys(strip.request.featureContent).length))) {
|
|
4751
4772
|
return true;
|
|
4752
4773
|
}
|
|
4753
4774
|
return false;
|
|
@@ -5235,6 +5256,196 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
5235
5256
|
if (index >= 0) { }
|
|
5236
5257
|
return get(item, 'widgetData.content.identifier');
|
|
5237
5258
|
};
|
|
5259
|
+
/**
|
|
5260
|
+
* @param {?} strip
|
|
5261
|
+
* @param {?=} calculateParentStatus
|
|
5262
|
+
* @return {?}
|
|
5263
|
+
*/
|
|
5264
|
+
ContentStripWithTabsLibComponent.prototype.fetchAllTopContent = /**
|
|
5265
|
+
* @param {?} strip
|
|
5266
|
+
* @param {?=} calculateParentStatus
|
|
5267
|
+
* @return {?}
|
|
5268
|
+
*/
|
|
5269
|
+
function (strip, calculateParentStatus) {
|
|
5270
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
5271
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5272
|
+
var originalFilters, response, error_5;
|
|
5273
|
+
return __generator(this, function (_a) {
|
|
5274
|
+
switch (_a.label) {
|
|
5275
|
+
case 0:
|
|
5276
|
+
if (!(strip.request && strip.request.topContent && Object.keys(strip.request.topContent).length)) return [3 /*break*/, 4];
|
|
5277
|
+
originalFilters = [];
|
|
5278
|
+
if (strip.request &&
|
|
5279
|
+
strip.request.topContent &&
|
|
5280
|
+
strip.request.topContent.request &&
|
|
5281
|
+
strip.request.topContent.request.filters) {
|
|
5282
|
+
originalFilters = strip.request.topContent.request.filters;
|
|
5283
|
+
strip.request.topContent.request.filters = this.postMethodFilters(strip.request.topContent.request.filters);
|
|
5284
|
+
}
|
|
5285
|
+
_a.label = 1;
|
|
5286
|
+
case 1:
|
|
5287
|
+
_a.trys.push([1, 3, , 4]);
|
|
5288
|
+
return [4 /*yield*/, this.postRequestMethod(strip, strip.request.topContent, strip.request.apiUrl, calculateParentStatus)];
|
|
5289
|
+
case 2:
|
|
5290
|
+
response = _a.sent();
|
|
5291
|
+
// console.log('calling after - response, ', response)
|
|
5292
|
+
if (response && response.results) {
|
|
5293
|
+
// console.log('calling after-- ')
|
|
5294
|
+
if (response.results.result.content) {
|
|
5295
|
+
this.processStrip(strip, this.transformContentsToWidgets(response.results.result.content, strip), 'done', calculateParentStatus, response.viewMoreUrl);
|
|
5296
|
+
}
|
|
5297
|
+
else {
|
|
5298
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5299
|
+
this.emptyResponse.emit(true);
|
|
5300
|
+
}
|
|
5301
|
+
}
|
|
5302
|
+
else {
|
|
5303
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5304
|
+
this.emptyResponse.emit(true);
|
|
5305
|
+
}
|
|
5306
|
+
return [3 /*break*/, 4];
|
|
5307
|
+
case 3:
|
|
5308
|
+
error_5 = _a.sent();
|
|
5309
|
+
return [3 /*break*/, 4];
|
|
5310
|
+
case 4: return [2 /*return*/];
|
|
5311
|
+
}
|
|
5312
|
+
});
|
|
5313
|
+
});
|
|
5314
|
+
};
|
|
5315
|
+
/**
|
|
5316
|
+
* @param {?} strip
|
|
5317
|
+
* @param {?=} calculateParentStatus
|
|
5318
|
+
* @return {?}
|
|
5319
|
+
*/
|
|
5320
|
+
ContentStripWithTabsLibComponent.prototype.fetchAllFeaturedContent = /**
|
|
5321
|
+
* @param {?} strip
|
|
5322
|
+
* @param {?=} calculateParentStatus
|
|
5323
|
+
* @return {?}
|
|
5324
|
+
*/
|
|
5325
|
+
function (strip, calculateParentStatus) {
|
|
5326
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
5327
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5328
|
+
var originalFilters, response, error_6;
|
|
5329
|
+
return __generator(this, function (_a) {
|
|
5330
|
+
switch (_a.label) {
|
|
5331
|
+
case 0:
|
|
5332
|
+
if (!(strip.request && strip.request.featureContent && Object.keys(strip.request.featureContent).length)) return [3 /*break*/, 4];
|
|
5333
|
+
originalFilters = [];
|
|
5334
|
+
if (strip.request &&
|
|
5335
|
+
strip.request.featureContent &&
|
|
5336
|
+
strip.request.featureContent.request &&
|
|
5337
|
+
strip.request.featureContent.request.filters) {
|
|
5338
|
+
originalFilters = strip.request.featureContent.request.filters;
|
|
5339
|
+
strip.request.featureContent.request.filters = this.checkForDateFilters(strip.request.featureContent.request.filters);
|
|
5340
|
+
strip.request.featureContent.request.filters = this.getFiltersFromArray(strip.request.featureContent.request.filters);
|
|
5341
|
+
}
|
|
5342
|
+
_a.label = 1;
|
|
5343
|
+
case 1:
|
|
5344
|
+
_a.trys.push([1, 3, , 4]);
|
|
5345
|
+
return [4 /*yield*/, this.postRequestMethod(strip, strip.request.featureContent.request, strip.request.featureContent.path, calculateParentStatus)];
|
|
5346
|
+
case 2:
|
|
5347
|
+
response = _a.sent();
|
|
5348
|
+
// console.log('calling after - response, ', response)
|
|
5349
|
+
if (response && response.results) {
|
|
5350
|
+
// console.log('calling after-- ')
|
|
5351
|
+
if (response.results.result.content) {
|
|
5352
|
+
this.processStrip(strip, this.transformContentsToWidgets(response.results.result.content, strip), 'done', calculateParentStatus, response.viewMoreUrl);
|
|
5353
|
+
}
|
|
5354
|
+
else {
|
|
5355
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5356
|
+
}
|
|
5357
|
+
}
|
|
5358
|
+
else {
|
|
5359
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5360
|
+
}
|
|
5361
|
+
return [3 /*break*/, 4];
|
|
5362
|
+
case 3:
|
|
5363
|
+
error_6 = _a.sent();
|
|
5364
|
+
return [3 /*break*/, 4];
|
|
5365
|
+
case 4: return [2 /*return*/];
|
|
5366
|
+
}
|
|
5367
|
+
});
|
|
5368
|
+
});
|
|
5369
|
+
};
|
|
5370
|
+
/**
|
|
5371
|
+
* @param {?} strip
|
|
5372
|
+
* @param {?} request
|
|
5373
|
+
* @param {?} apiUrl
|
|
5374
|
+
* @param {?} calculateParentStatus
|
|
5375
|
+
* @return {?}
|
|
5376
|
+
*/
|
|
5377
|
+
ContentStripWithTabsLibComponent.prototype.postRequestMethod = /**
|
|
5378
|
+
* @param {?} strip
|
|
5379
|
+
* @param {?} request
|
|
5380
|
+
* @param {?} apiUrl
|
|
5381
|
+
* @param {?} calculateParentStatus
|
|
5382
|
+
* @return {?}
|
|
5383
|
+
*/
|
|
5384
|
+
function (strip, request, apiUrl, calculateParentStatus) {
|
|
5385
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5386
|
+
var originalFilters;
|
|
5387
|
+
var _this = this;
|
|
5388
|
+
return __generator(this, function (_a) {
|
|
5389
|
+
originalFilters = [];
|
|
5390
|
+
return [2 /*return*/, new Promise((/**
|
|
5391
|
+
* @param {?} resolve
|
|
5392
|
+
* @param {?} reject
|
|
5393
|
+
* @return {?}
|
|
5394
|
+
*/
|
|
5395
|
+
function (resolve, reject) {
|
|
5396
|
+
if (request && request) {
|
|
5397
|
+
_this.contentSvc.postApiMethod(apiUrl, request).subscribe((/**
|
|
5398
|
+
* @param {?} results
|
|
5399
|
+
* @return {?}
|
|
5400
|
+
*/
|
|
5401
|
+
function (results) {
|
|
5402
|
+
/** @type {?} */
|
|
5403
|
+
var showViewMore = Boolean(results.result.content && results.result.content.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
5404
|
+
/** @type {?} */
|
|
5405
|
+
var viewMoreUrl = showViewMore
|
|
5406
|
+
? {
|
|
5407
|
+
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
5408
|
+
queryParams: {
|
|
5409
|
+
tab: 'Learn',
|
|
5410
|
+
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
5411
|
+
f: request &&
|
|
5412
|
+
request.searchV6 &&
|
|
5413
|
+
request.searchV6.request &&
|
|
5414
|
+
request.searchV6.request.filters
|
|
5415
|
+
? JSON.stringify(_this.transformSearchV6FiltersV2(originalFilters))
|
|
5416
|
+
: {},
|
|
5417
|
+
},
|
|
5418
|
+
}
|
|
5419
|
+
: null;
|
|
5420
|
+
resolve({ results: results, viewMoreUrl: viewMoreUrl });
|
|
5421
|
+
}), (/**
|
|
5422
|
+
* @param {?} error
|
|
5423
|
+
* @return {?}
|
|
5424
|
+
*/
|
|
5425
|
+
function (error) {
|
|
5426
|
+
_this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5427
|
+
reject(error);
|
|
5428
|
+
}));
|
|
5429
|
+
}
|
|
5430
|
+
}))];
|
|
5431
|
+
});
|
|
5432
|
+
});
|
|
5433
|
+
};
|
|
5434
|
+
/**
|
|
5435
|
+
* @param {?} filters
|
|
5436
|
+
* @return {?}
|
|
5437
|
+
*/
|
|
5438
|
+
ContentStripWithTabsLibComponent.prototype.postMethodFilters = /**
|
|
5439
|
+
* @param {?} filters
|
|
5440
|
+
* @return {?}
|
|
5441
|
+
*/
|
|
5442
|
+
function (filters) {
|
|
5443
|
+
if (filters.organisation &&
|
|
5444
|
+
filters.organisation.indexOf('<orgID>') >= 0) {
|
|
5445
|
+
filters.organisation = this.providerId;
|
|
5446
|
+
}
|
|
5447
|
+
return filters;
|
|
5448
|
+
};
|
|
5238
5449
|
ContentStripWithTabsLibComponent.decorators = [
|
|
5239
5450
|
{ type: Component, args: [{
|
|
5240
5451
|
selector: 'sb-uic-content-strip-with-tabs',
|
|
@@ -5256,6 +5467,8 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
5256
5467
|
]; };
|
|
5257
5468
|
ContentStripWithTabsLibComponent.propDecorators = {
|
|
5258
5469
|
widgetData: [{ type: Input }],
|
|
5470
|
+
emptyResponse: [{ type: Output }],
|
|
5471
|
+
providerId: [{ type: Input }],
|
|
5259
5472
|
id: [{ type: HostBinding, args: ['id',] }]
|
|
5260
5473
|
};
|
|
5261
5474
|
return ContentStripWithTabsLibComponent;
|
|
@@ -5264,6 +5477,10 @@ if (false) {
|
|
|
5264
5477
|
/** @type {?} */
|
|
5265
5478
|
ContentStripWithTabsLibComponent.prototype.widgetData;
|
|
5266
5479
|
/** @type {?} */
|
|
5480
|
+
ContentStripWithTabsLibComponent.prototype.emptyResponse;
|
|
5481
|
+
/** @type {?} */
|
|
5482
|
+
ContentStripWithTabsLibComponent.prototype.providerId;
|
|
5483
|
+
/** @type {?} */
|
|
5267
5484
|
ContentStripWithTabsLibComponent.prototype.id;
|
|
5268
5485
|
/** @type {?} */
|
|
5269
5486
|
ContentStripWithTabsLibComponent.prototype.stripsResultDataMap;
|
|
@@ -5891,14 +6108,61 @@ var SlidersLibModule = /** @class */ (function () {
|
|
|
5891
6108
|
return SlidersLibModule;
|
|
5892
6109
|
}());
|
|
5893
6110
|
|
|
6111
|
+
/**
|
|
6112
|
+
* @fileoverview added by tsickle
|
|
6113
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6114
|
+
*/
|
|
6115
|
+
/** @type {?} */
|
|
6116
|
+
var API_END_POINTS$2 = {
|
|
6117
|
+
PROVIDER_INSIGHTS: "/apis/proxies/v8/microsite/read/insights"
|
|
6118
|
+
};
|
|
6119
|
+
var InsiteDataService = /** @class */ (function () {
|
|
6120
|
+
function InsiteDataService(http) {
|
|
6121
|
+
this.http = http;
|
|
6122
|
+
}
|
|
6123
|
+
/**
|
|
6124
|
+
* @param {?} request
|
|
6125
|
+
* @return {?}
|
|
6126
|
+
*/
|
|
6127
|
+
InsiteDataService.prototype.fetchSearchData = /**
|
|
6128
|
+
* @param {?} request
|
|
6129
|
+
* @return {?}
|
|
6130
|
+
*/
|
|
6131
|
+
function (request) {
|
|
6132
|
+
return this.http.post(API_END_POINTS$2.PROVIDER_INSIGHTS, request);
|
|
6133
|
+
};
|
|
6134
|
+
InsiteDataService.decorators = [
|
|
6135
|
+
{ type: Injectable, args: [{
|
|
6136
|
+
providedIn: 'root'
|
|
6137
|
+
},] }
|
|
6138
|
+
];
|
|
6139
|
+
/** @nocollapse */
|
|
6140
|
+
InsiteDataService.ctorParameters = function () { return [
|
|
6141
|
+
{ type: HttpClient }
|
|
6142
|
+
]; };
|
|
6143
|
+
/** @nocollapse */ InsiteDataService.ngInjectableDef = ɵɵdefineInjectable({ factory: function InsiteDataService_Factory() { return new InsiteDataService(ɵɵinject(HttpClient)); }, token: InsiteDataService, providedIn: "root" });
|
|
6144
|
+
return InsiteDataService;
|
|
6145
|
+
}());
|
|
6146
|
+
if (false) {
|
|
6147
|
+
/**
|
|
6148
|
+
* @type {?}
|
|
6149
|
+
* @private
|
|
6150
|
+
*/
|
|
6151
|
+
InsiteDataService.prototype.http;
|
|
6152
|
+
}
|
|
6153
|
+
|
|
5894
6154
|
/**
|
|
5895
6155
|
* @fileoverview added by tsickle
|
|
5896
6156
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5897
6157
|
*/
|
|
5898
6158
|
var DataPointsComponent = /** @class */ (function () {
|
|
5899
|
-
function DataPointsComponent() {
|
|
6159
|
+
function DataPointsComponent(insightSvc) {
|
|
6160
|
+
this.insightSvc = insightSvc;
|
|
5900
6161
|
this.layoutType = '';
|
|
6162
|
+
this.fetchDataFromApi = false;
|
|
6163
|
+
this.providerId = '';
|
|
5901
6164
|
this.customArray = [];
|
|
6165
|
+
this.isDataLoading = false;
|
|
5902
6166
|
}
|
|
5903
6167
|
/**
|
|
5904
6168
|
* @return {?}
|
|
@@ -5910,6 +6174,10 @@ var DataPointsComponent = /** @class */ (function () {
|
|
|
5910
6174
|
if (this.objectData && this.layoutType === 'gridLayout') {
|
|
5911
6175
|
this.customArray = this.createCustomArray(this.objectData.metrics);
|
|
5912
6176
|
}
|
|
6177
|
+
if (this.fetchDataFromApi) {
|
|
6178
|
+
this.isDataLoading = true;
|
|
6179
|
+
this.getInsiteData();
|
|
6180
|
+
}
|
|
5913
6181
|
};
|
|
5914
6182
|
/**
|
|
5915
6183
|
* @param {?} arr
|
|
@@ -5927,18 +6195,59 @@ var DataPointsComponent = /** @class */ (function () {
|
|
|
5927
6195
|
}
|
|
5928
6196
|
return nByn;
|
|
5929
6197
|
};
|
|
6198
|
+
/**
|
|
6199
|
+
* @return {?}
|
|
6200
|
+
*/
|
|
6201
|
+
DataPointsComponent.prototype.getInsiteData = /**
|
|
6202
|
+
* @return {?}
|
|
6203
|
+
*/
|
|
6204
|
+
function () {
|
|
6205
|
+
var _this = this;
|
|
6206
|
+
/** @type {?} */
|
|
6207
|
+
var request = {
|
|
6208
|
+
"request": {
|
|
6209
|
+
"filters": {
|
|
6210
|
+
"organisations": [
|
|
6211
|
+
this.providerId
|
|
6212
|
+
]
|
|
6213
|
+
}
|
|
6214
|
+
}
|
|
6215
|
+
};
|
|
6216
|
+
this.insightSvc.fetchSearchData(request).subscribe((/**
|
|
6217
|
+
* @param {?} res
|
|
6218
|
+
* @return {?}
|
|
6219
|
+
*/
|
|
6220
|
+
function (res) {
|
|
6221
|
+
if (res && res.result && res.result.response && res.result.response.nudges && res.result.response.nudges.length) {
|
|
6222
|
+
res.result.response.nudges.forEach((/**
|
|
6223
|
+
* @param {?} nudgeData
|
|
6224
|
+
* @return {?}
|
|
6225
|
+
*/
|
|
6226
|
+
function (nudgeData) {
|
|
6227
|
+
if (_this.providerId && _this.providerId === nudgeData.orgId) {
|
|
6228
|
+
_this.objectData = nudgeData.data;
|
|
6229
|
+
}
|
|
6230
|
+
}));
|
|
6231
|
+
}
|
|
6232
|
+
_this.isDataLoading = false;
|
|
6233
|
+
}));
|
|
6234
|
+
};
|
|
5930
6235
|
DataPointsComponent.decorators = [
|
|
5931
6236
|
{ type: Component, args: [{
|
|
5932
6237
|
selector: 'sb-uic-data-points',
|
|
5933
|
-
template: "<div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows'\">\n <div *ngFor=\"let obj of objectData\" class=\"\">\n <div class=\"element-div\" [ngClass]=\"{'linebreak': obj?.linebreak}\">\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <img class=\"objIcon\" [src]=\"obj.icon\"
|
|
6238
|
+
template: "<div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && !isDataLoading\">\n <div *ngFor=\"let obj of objectData\" class=\"\">\n <div class=\"element-div\" [ngClass]=\"{'linebreak': obj?.linebreak}\">\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\" >{{obj?.value | number: '1.1-2'}}</div>\n <div [style.color]=\"obj?.labelColor\" class=\"objDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow'\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\">\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\">{{obj?.value | number: '1.1-2'}}</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\">{{item?.value}}</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\n<!-- skeleton loaders -->\n\n<ng-container>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && isDataLoading\">\n <div *ngFor=\"let obj of [0,1,2,3]\" class=\"\">\n <div class=\"element-div linebreak\" >\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'32px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'150px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-container>",
|
|
5934
6239
|
styles: [".white{color:#fff}.custom-opacity{opacity:.7}.black{color:#000}.objIcon{width:32px;height:32px}.mobjIcon{width:24px;height:24px}.objHeader{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left}.mobjHeader{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left}.mobjDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.metrics-web{height:inherit;overflow-y:auto}.element-div{padding:25px 0;margin:0 25px}.linebreak{border-bottom:1px solid rgba(0,0,0,.16)}.melement-div{padding:16px;border-radius:15px;width:249px}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-element-div{min-width:325px;padding:25px 0;align-items:baseline}.infra-objIcon{width:32px;height:32px}.infra-objHeader{font-family:Montserrat;font-size:36px;font-weight:600;line-height:29.26px;text-align:left}.infra-objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left}.flex-container{display:flex}.top-container{overflow-x:auto;width:100%}.flex-item{flex:0 0 auto;white-space:nowrap;min-width:200px}@media screen and (max-width:768px){.infra-objIcon{width:24px;height:24px}.infra-objHeader{font-size:24px}.infra-element-div{min-width:250px;padding:15px 0 25px}}"]
|
|
5935
6240
|
}] }
|
|
5936
6241
|
];
|
|
5937
6242
|
/** @nocollapse */
|
|
5938
|
-
DataPointsComponent.ctorParameters = function () { return [
|
|
6243
|
+
DataPointsComponent.ctorParameters = function () { return [
|
|
6244
|
+
{ type: InsiteDataService }
|
|
6245
|
+
]; };
|
|
5939
6246
|
DataPointsComponent.propDecorators = {
|
|
5940
6247
|
objectData: [{ type: Input }],
|
|
5941
|
-
layoutType: [{ type: Input }]
|
|
6248
|
+
layoutType: [{ type: Input }],
|
|
6249
|
+
fetchDataFromApi: [{ type: Input }],
|
|
6250
|
+
providerId: [{ type: Input }]
|
|
5942
6251
|
};
|
|
5943
6252
|
return DataPointsComponent;
|
|
5944
6253
|
}());
|
|
@@ -5948,9 +6257,86 @@ if (false) {
|
|
|
5948
6257
|
/** @type {?} */
|
|
5949
6258
|
DataPointsComponent.prototype.layoutType;
|
|
5950
6259
|
/** @type {?} */
|
|
6260
|
+
DataPointsComponent.prototype.fetchDataFromApi;
|
|
6261
|
+
/** @type {?} */
|
|
6262
|
+
DataPointsComponent.prototype.providerId;
|
|
6263
|
+
/** @type {?} */
|
|
5951
6264
|
DataPointsComponent.prototype.customArray;
|
|
6265
|
+
/** @type {?} */
|
|
6266
|
+
DataPointsComponent.prototype.isDataLoading;
|
|
6267
|
+
/** @type {?} */
|
|
6268
|
+
DataPointsComponent.prototype.insightSvc;
|
|
6269
|
+
}
|
|
6270
|
+
|
|
6271
|
+
/**
|
|
6272
|
+
* @fileoverview added by tsickle
|
|
6273
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6274
|
+
*/
|
|
6275
|
+
var SkeletonLoaderLibComponent = /** @class */ (function () {
|
|
6276
|
+
function SkeletonLoaderLibComponent() {
|
|
6277
|
+
this.bindingClass = '';
|
|
6278
|
+
this.height = '';
|
|
6279
|
+
this.width = '';
|
|
6280
|
+
}
|
|
6281
|
+
/**
|
|
6282
|
+
* @return {?}
|
|
6283
|
+
*/
|
|
6284
|
+
SkeletonLoaderLibComponent.prototype.ngOnInit = /**
|
|
6285
|
+
* @return {?}
|
|
6286
|
+
*/
|
|
6287
|
+
function () {
|
|
6288
|
+
};
|
|
6289
|
+
SkeletonLoaderLibComponent.decorators = [
|
|
6290
|
+
{ type: Component, args: [{
|
|
6291
|
+
selector: 'sb-uic-skeleton-loader',
|
|
6292
|
+
template: "<div [ngClass]=\"bindingClass\" class=\"skeleton-box\" [style.height]=\"height\" [style.width]=\"width\"></div>",
|
|
6293
|
+
styles: [".skeleton-box{position:relative;overflow:hidden;background-color:#dddbdd}.skeleton-box::after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translateX(-100%);background-image:linear-gradient(90deg,rgba(255,255,255,0) 0,rgba(255,255,255,.2) 20%,rgba(255,255,255,.5) 60%,rgba(255,255,255,0));animation:1s infinite shimmer;content:\"\"}@keyframes shimmer{100%{transform:translateX(100%)}}"]
|
|
6294
|
+
}] }
|
|
6295
|
+
];
|
|
6296
|
+
/** @nocollapse */
|
|
6297
|
+
SkeletonLoaderLibComponent.ctorParameters = function () { return []; };
|
|
6298
|
+
SkeletonLoaderLibComponent.propDecorators = {
|
|
6299
|
+
bindingClass: [{ type: Input }],
|
|
6300
|
+
height: [{ type: Input }],
|
|
6301
|
+
width: [{ type: Input }]
|
|
6302
|
+
};
|
|
6303
|
+
return SkeletonLoaderLibComponent;
|
|
6304
|
+
}());
|
|
6305
|
+
if (false) {
|
|
6306
|
+
/** @type {?} */
|
|
6307
|
+
SkeletonLoaderLibComponent.prototype.bindingClass;
|
|
6308
|
+
/** @type {?} */
|
|
6309
|
+
SkeletonLoaderLibComponent.prototype.height;
|
|
6310
|
+
/** @type {?} */
|
|
6311
|
+
SkeletonLoaderLibComponent.prototype.width;
|
|
5952
6312
|
}
|
|
5953
6313
|
|
|
6314
|
+
/**
|
|
6315
|
+
* @fileoverview added by tsickle
|
|
6316
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6317
|
+
*/
|
|
6318
|
+
var SkeletonLoaderLibModule = /** @class */ (function () {
|
|
6319
|
+
function SkeletonLoaderLibModule() {
|
|
6320
|
+
}
|
|
6321
|
+
SkeletonLoaderLibModule.decorators = [
|
|
6322
|
+
{ type: NgModule, args: [{
|
|
6323
|
+
declarations: [SkeletonLoaderLibComponent],
|
|
6324
|
+
imports: [
|
|
6325
|
+
CommonModule,
|
|
6326
|
+
FormsModule,
|
|
6327
|
+
ReactiveFormsModule,
|
|
6328
|
+
MatDialogModule,
|
|
6329
|
+
MatIconModule,
|
|
6330
|
+
],
|
|
6331
|
+
exports: [
|
|
6332
|
+
SkeletonLoaderLibComponent,
|
|
6333
|
+
],
|
|
6334
|
+
entryComponents: [SkeletonLoaderLibComponent],
|
|
6335
|
+
},] }
|
|
6336
|
+
];
|
|
6337
|
+
return SkeletonLoaderLibModule;
|
|
6338
|
+
}());
|
|
6339
|
+
|
|
5954
6340
|
/**
|
|
5955
6341
|
* @fileoverview added by tsickle
|
|
5956
6342
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -5962,9 +6348,11 @@ var DataPointsModule = /** @class */ (function () {
|
|
|
5962
6348
|
{ type: NgModule, args: [{
|
|
5963
6349
|
declarations: [DataPointsComponent],
|
|
5964
6350
|
imports: [
|
|
5965
|
-
CommonModule
|
|
6351
|
+
CommonModule,
|
|
6352
|
+
SkeletonLoaderLibModule
|
|
5966
6353
|
],
|
|
5967
6354
|
exports: [DataPointsComponent],
|
|
6355
|
+
providers: [InsiteDataService]
|
|
5968
6356
|
},] }
|
|
5969
6357
|
];
|
|
5970
6358
|
return DataPointsModule;
|
|
@@ -6913,75 +7301,6 @@ if (false) {
|
|
|
6913
7301
|
CardUserComponent.prototype.configSvc;
|
|
6914
7302
|
}
|
|
6915
7303
|
|
|
6916
|
-
/**
|
|
6917
|
-
* @fileoverview added by tsickle
|
|
6918
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6919
|
-
*/
|
|
6920
|
-
var SkeletonLoaderLibComponent = /** @class */ (function () {
|
|
6921
|
-
function SkeletonLoaderLibComponent() {
|
|
6922
|
-
this.bindingClass = '';
|
|
6923
|
-
this.height = '';
|
|
6924
|
-
this.width = '';
|
|
6925
|
-
}
|
|
6926
|
-
/**
|
|
6927
|
-
* @return {?}
|
|
6928
|
-
*/
|
|
6929
|
-
SkeletonLoaderLibComponent.prototype.ngOnInit = /**
|
|
6930
|
-
* @return {?}
|
|
6931
|
-
*/
|
|
6932
|
-
function () {
|
|
6933
|
-
};
|
|
6934
|
-
SkeletonLoaderLibComponent.decorators = [
|
|
6935
|
-
{ type: Component, args: [{
|
|
6936
|
-
selector: 'sb-uic-skeleton-loader',
|
|
6937
|
-
template: "<div [ngClass]=\"bindingClass\" class=\"skeleton-box\" [style.height]=\"height\" [style.width]=\"width\"></div>",
|
|
6938
|
-
styles: [".skeleton-box{position:relative;overflow:hidden;background-color:#dddbdd}.skeleton-box::after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translateX(-100%);background-image:linear-gradient(90deg,rgba(255,255,255,0) 0,rgba(255,255,255,.2) 20%,rgba(255,255,255,.5) 60%,rgba(255,255,255,0));animation:1s infinite shimmer;content:\"\"}@keyframes shimmer{100%{transform:translateX(100%)}}"]
|
|
6939
|
-
}] }
|
|
6940
|
-
];
|
|
6941
|
-
/** @nocollapse */
|
|
6942
|
-
SkeletonLoaderLibComponent.ctorParameters = function () { return []; };
|
|
6943
|
-
SkeletonLoaderLibComponent.propDecorators = {
|
|
6944
|
-
bindingClass: [{ type: Input }],
|
|
6945
|
-
height: [{ type: Input }],
|
|
6946
|
-
width: [{ type: Input }]
|
|
6947
|
-
};
|
|
6948
|
-
return SkeletonLoaderLibComponent;
|
|
6949
|
-
}());
|
|
6950
|
-
if (false) {
|
|
6951
|
-
/** @type {?} */
|
|
6952
|
-
SkeletonLoaderLibComponent.prototype.bindingClass;
|
|
6953
|
-
/** @type {?} */
|
|
6954
|
-
SkeletonLoaderLibComponent.prototype.height;
|
|
6955
|
-
/** @type {?} */
|
|
6956
|
-
SkeletonLoaderLibComponent.prototype.width;
|
|
6957
|
-
}
|
|
6958
|
-
|
|
6959
|
-
/**
|
|
6960
|
-
* @fileoverview added by tsickle
|
|
6961
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6962
|
-
*/
|
|
6963
|
-
var SkeletonLoaderLibModule = /** @class */ (function () {
|
|
6964
|
-
function SkeletonLoaderLibModule() {
|
|
6965
|
-
}
|
|
6966
|
-
SkeletonLoaderLibModule.decorators = [
|
|
6967
|
-
{ type: NgModule, args: [{
|
|
6968
|
-
declarations: [SkeletonLoaderLibComponent],
|
|
6969
|
-
imports: [
|
|
6970
|
-
CommonModule,
|
|
6971
|
-
FormsModule,
|
|
6972
|
-
ReactiveFormsModule,
|
|
6973
|
-
MatDialogModule,
|
|
6974
|
-
MatIconModule,
|
|
6975
|
-
],
|
|
6976
|
-
exports: [
|
|
6977
|
-
SkeletonLoaderLibComponent,
|
|
6978
|
-
],
|
|
6979
|
-
entryComponents: [SkeletonLoaderLibComponent],
|
|
6980
|
-
},] }
|
|
6981
|
-
];
|
|
6982
|
-
return SkeletonLoaderLibModule;
|
|
6983
|
-
}());
|
|
6984
|
-
|
|
6985
7304
|
/**
|
|
6986
7305
|
* @fileoverview added by tsickle
|
|
6987
7306
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -7630,7 +7949,7 @@ var CompetencyPassbookComponent = /** @class */ (function () {
|
|
|
7630
7949
|
CompetencyPassbookComponent.decorators = [
|
|
7631
7950
|
{ type: Component, args: [{
|
|
7632
7951
|
selector: 'sb-uic-competency-passbook',
|
|
7633
|
-
template: " <div class=\"competency-title\">{{objectData?.title}} \n <span class=\"competency-count\">\n ({{competencyStrength}})\n </span>\n</div>\n<div class=\"flex items-center justify-center gap-8 mt-5 mb-5 competency-filters\">\n <sb-uic-pills [pillsData]=\"competencyArea\" \n [isLoading]=\"loadCompetencyArea\" (pillClick)=\"competencyChange($event)\" [selectedValue]=\"selectedValue\"></sb-uic-pills>\n</div>\n<div class=\"grid grid-cols-1 md:grid-cols-3 w-full grid-flow-row gap-5\" *ngIf=\"!loadCometency\">\n <div *ngFor=\"let obj of competencyTheme| slice:0:competencyThemeLength\">\n <div class=\"flex-1 flex-col\">\n <div class=\"competency-theme\"></div>\n <div class=\"details flex flex-col\">\n <div class=\"flex flex-col p-4\">\n <div class=\"flex flex-row cursor-pointer\">\n <div class=\"flex flex-row gap-2 items-center\">\n <div class=\"name\">{{allcompetencyTheme[obj?.name]?.name}}</div>\n <div class=\"flex items-baseline\">\n <img src=\"assets/icons/competency/cp-arrow.svg\" class=\"arrow-img cursor-pointer\" alt=\"cp arrow img\" (click)=\"navigateToCompetency(obj)\" />\n </div
|
|
7952
|
+
template: " <div class=\"competency-title\">{{objectData?.title}} \n <span class=\"competency-count\">\n ({{competencyStrength}})\n </span>\n</div>\n<div class=\"flex items-center justify-center gap-8 mt-5 mb-5 competency-filters\">\n <sb-uic-pills [pillsData]=\"competencyArea\" \n [isLoading]=\"loadCompetencyArea\" (pillClick)=\"competencyChange($event)\" [selectedValue]=\"selectedValue\"></sb-uic-pills>\n</div>\n<div class=\"grid grid-cols-1 md:grid-cols-3 w-full grid-flow-row gap-5\" *ngIf=\"!loadCometency\">\n <div *ngFor=\"let obj of competencyTheme| slice:0:competencyThemeLength\">\n <div class=\"flex-1 flex-col\">\n <div class=\"competency-theme\"></div>\n <div class=\"details flex flex-col\">\n <div class=\"flex flex-col p-4\">\n <div class=\"flex flex-row cursor-pointer\">\n <div class=\"flex flex-row gap-2 items-center\">\n <div class=\"name\">{{allcompetencyTheme[obj?.name]?.name}}</div>\n <!-- <div class=\"flex items-baseline\">\n <img src=\"assets/icons/competency/cp-arrow.svg\" class=\"arrow-img cursor-pointer\" alt=\"cp arrow img\" (click)=\"navigateToCompetency(obj)\" />\n </div> -->\n </div>\n </div>\n <div class=\"flex flex-row pt-3 pb-3 description\">\n {{ allcompetencyTheme[obj.name]?.description }} \n </div>\n <div class=\"flex flex-row gap-3 items-center\">\n <mat-icon class=\"content-icon\">school</mat-icon>\n <div class=\"no-of-contents\">{{obj.count}} Contents</div>\n </div>\n <div class=\"line mt-3 mt-2\"></div>\n <div class=\"flex flex-wrap gap-3 pt-4 chip-container\">\n <ng-container *ngFor=\"let child of allcompetencyTheme[obj.name]?.children| slice:0: allcompetencyTheme[obj.name]?.viewMore ? allcompetencyTheme[obj.name]?.children?.length : 3; let i = index\">\n <div class=\"chip rounded-full p-2 text-xs chip-ellipsis\" [title]=\"child?.name\" >\n {{ child.name }}\n </div>\n </ng-container>\n <div class=\"p-2 info-btn cursor-pointer\"\n *ngIf=\"allcompetencyTheme[obj.name]?.children.length > 3 && !allcompetencyTheme[obj.name]?.viewMore\" (click)=\"viewMoreChildren(allcompetencyTheme[obj.name])\">\n View more\n </div>\n <div class=\"p-2 info-btn cursor-pointer\"\n *ngIf=\"allcompetencyTheme[obj.name]?.children.length > 3 && allcompetencyTheme[obj.name]?.viewMore\" (click)=\"viewMoreChildren(allcompetencyTheme[obj.name])\">\n View less\n </div>\n </div>\n </div> \n </div>\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"competencyTheme.length > 6 && !loadCometency\">\n <div class=\"flex items-center justify-center gap-8 mt-5 mb-5 competency-filters\">\n <sb-uic-pills [pillsData]=\"showAllTheme\" (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-3 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>",
|
|
7634
7953
|
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}"]
|
|
7635
7954
|
}] }
|
|
7636
7955
|
];
|
|
@@ -7867,5 +8186,5 @@ var CommonMethodsService = /** @class */ (function () {
|
|
|
7867
8186
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7868
8187
|
*/
|
|
7869
8188
|
|
|
7870
|
-
export { CardsModule, CommonMethodsService, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentStripWithTabsLibModule, DataPointsModule, HttpLoaderFactory, MyHammerConfig, ROOT_WIDGET_CONFIG, SlidersLibModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, ContentStripWithTabsLibComponent as ɵa, WidgetContentService as ɵb,
|
|
8189
|
+
export { CardsModule, CommonMethodsService, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentStripWithTabsLibModule, DataPointsModule, HttpLoaderFactory, MyHammerConfig, ROOT_WIDGET_CONFIG, SlidersLibModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, ContentStripWithTabsLibComponent as ɵa, WidgetContentService as ɵb, DefaultThumbnailDirective as ɵba, PipeDurationTransformModule as ɵbb, PipeDurationTransformPipe as ɵbc, CompetencyPassbookComponent as ɵbd, CompetencyPassbookService as ɵbe, PillsModule as ɵbf, PillsComponent as ɵbg, WidgetUserService as ɵc, MultilingualTranslationsService as ɵd, ConfigurationsService as ɵe, HorizontalScrollerV2Module as ɵf, HorizontalScrollerV2Component as ɵg, SlidersLibComponent as ɵh, NavigationModule as ɵi, NavigationDirective as ɵj, ImageResponsiveModule as ɵk, ImageResponsiveDirective as ɵl, DataPointsComponent as ɵm, InsiteDataService as ɵn, SkeletonLoaderLibModule as ɵo, SkeletonLoaderLibComponent as ɵp, CardResourceComponent as ɵq, CardsComponent as ɵr, CardPortraitComponent as ɵs, CardUserComponent as ɵt, CardLandscapeComponent as ɵu, PipePublicURLModule as ɵv, PipePublicURL as ɵw, DisplayContentTypeLibModule as ɵx, DisplayContentTypeLibComponent as ɵy, DefaultThumbnailModule as ɵz };
|
|
7871
8190
|
//# sourceMappingURL=sunbird-cb-consumption.js.map
|