@sunbird-cb/consumption 0.0.81 → 0.0.82
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 +87 -51
- 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 +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/_models/compentencies.model.js +25 -0
- 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/_models/compentencies.model.js +25 -0
- package/fesm2015/sunbird-cb-consumption.js +56 -27
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +87 -51
- 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/_models/compentencies.model.d.ts +9 -0
- package/package.json +2 -2
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -15683,6 +15683,7 @@
|
|
|
15683
15683
|
/** @type {?} */
|
|
15684
15684
|
var API_POINTS = {
|
|
15685
15685
|
COMPETENCY_LIST: "apis/proxies/v8/competency/v4/search",
|
|
15686
|
+
COMPETENCY_LIST_V2: "apis/proxies/v8/searchBy/v2/competency",
|
|
15686
15687
|
CERTIFICATE_URL: "apis/protected/v8/cohorts/course/batch/cert/download/",
|
|
15687
15688
|
};
|
|
15688
15689
|
var CompetencyPassbookService = /** @class */ (function () {
|
|
@@ -15701,6 +15702,15 @@
|
|
|
15701
15702
|
function (payload) {
|
|
15702
15703
|
return this.http.post(API_POINTS.COMPETENCY_LIST, payload);
|
|
15703
15704
|
};
|
|
15705
|
+
/**
|
|
15706
|
+
* @return {?}
|
|
15707
|
+
*/
|
|
15708
|
+
CompetencyPassbookService.prototype.getCompetencyListv_V2 = /**
|
|
15709
|
+
* @return {?}
|
|
15710
|
+
*/
|
|
15711
|
+
function () {
|
|
15712
|
+
return this.http.get(API_POINTS.COMPETENCY_LIST_V2);
|
|
15713
|
+
};
|
|
15704
15714
|
/**
|
|
15705
15715
|
* @param {?} certId
|
|
15706
15716
|
* @return {?}
|
|
@@ -15739,7 +15749,7 @@
|
|
|
15739
15749
|
// currentFilter = 'Behavioural'
|
|
15740
15750
|
// currentCompetencies: any = []
|
|
15741
15751
|
// competencyData: any
|
|
15742
|
-
function CompetencyPassbookComponent(configSvc, contentSvc, competencySvc, router) {
|
|
15752
|
+
function CompetencyPassbookComponent(configSvc, contentSvc, competencySvc, router, environment) {
|
|
15743
15753
|
this.configSvc = configSvc;
|
|
15744
15754
|
this.contentSvc = contentSvc;
|
|
15745
15755
|
this.competencySvc = competencySvc;
|
|
@@ -15756,6 +15766,7 @@
|
|
|
15756
15766
|
this.competencyStrength = 0;
|
|
15757
15767
|
this.competencyThemeLength = 6;
|
|
15758
15768
|
this.showAllTheme = [{ name: 'Show all', showAll: false }];
|
|
15769
|
+
this.environment = environment;
|
|
15759
15770
|
}
|
|
15760
15771
|
/**
|
|
15761
15772
|
* @return {?}
|
|
@@ -15764,6 +15775,7 @@
|
|
|
15764
15775
|
* @return {?}
|
|
15765
15776
|
*/
|
|
15766
15777
|
function () {
|
|
15778
|
+
this.comeptencyKeys = this.configSvc.compentency[this.environment.compentencyVersionKey];
|
|
15767
15779
|
this.getAllCompetencies();
|
|
15768
15780
|
// this.competencyData = this.objectData
|
|
15769
15781
|
// this.filter(this.currentFilter)
|
|
@@ -15826,7 +15838,7 @@
|
|
|
15826
15838
|
"lastUpdatedOn": "desc"
|
|
15827
15839
|
},
|
|
15828
15840
|
"facets": [
|
|
15829
|
-
"
|
|
15841
|
+
this.environment.compentencyVersionKey + "." + this.comeptencyKeys.vCompetencyArea
|
|
15830
15842
|
],
|
|
15831
15843
|
"limit": 0,
|
|
15832
15844
|
"offset": 0,
|
|
@@ -15847,7 +15859,7 @@
|
|
|
15847
15859
|
* @return {?}
|
|
15848
15860
|
*/
|
|
15849
15861
|
function (fact) {
|
|
15850
|
-
if (fact.name ===
|
|
15862
|
+
if (fact.name === _this.environment.compentencyVersionKey + "." + _this.comeptencyKeys.vCompetencyArea) {
|
|
15851
15863
|
_this.competencyArea = fact.values;
|
|
15852
15864
|
}
|
|
15853
15865
|
}));
|
|
@@ -15966,18 +15978,16 @@
|
|
|
15966
15978
|
function () {
|
|
15967
15979
|
var _this = this;
|
|
15968
15980
|
this.loadCometency = true;
|
|
15969
|
-
/**
|
|
15970
|
-
var request = { "search": { "type": "Competency Area" }, "filter": { "isDetail": true } };
|
|
15971
|
-
this.competencySvc.getCompetencyList(request).subscribe((/**
|
|
15981
|
+
this.competencySvc.getCompetencyListv_V2().subscribe((/**
|
|
15972
15982
|
* @param {?} response
|
|
15973
15983
|
* @return {?}
|
|
15974
15984
|
*/
|
|
15975
15985
|
function (response) {
|
|
15976
15986
|
_this.allcompetencyTheme = {};
|
|
15977
|
-
if (response && response.result && response.result.
|
|
15978
|
-
_this.originalCompetencyArray = response.result.
|
|
15987
|
+
if (response && response.result && response.result.content) {
|
|
15988
|
+
_this.originalCompetencyArray = response.result.content;
|
|
15979
15989
|
_this.getCompetencyArea();
|
|
15980
|
-
response.result.
|
|
15990
|
+
response.result.content.forEach((/**
|
|
15981
15991
|
* @param {?} element
|
|
15982
15992
|
* @return {?}
|
|
15983
15993
|
*/
|
|
@@ -16010,34 +16020,35 @@
|
|
|
16010
16020
|
function (value, addFilter) {
|
|
16011
16021
|
return __awaiter(this, void 0, void 0, function () {
|
|
16012
16022
|
var request, response, competencyThemeData_1, error_2;
|
|
16023
|
+
var _a;
|
|
16013
16024
|
var _this = this;
|
|
16014
|
-
return __generator(this, function (
|
|
16015
|
-
switch (
|
|
16025
|
+
return __generator(this, function (_b) {
|
|
16026
|
+
switch (_b.label) {
|
|
16016
16027
|
case 0:
|
|
16017
16028
|
request = {
|
|
16018
16029
|
"request": {
|
|
16019
16030
|
"query": "",
|
|
16020
|
-
"filters": __assign({ "contentType": "Course" }, addFilter, { "
|
|
16021
|
-
|
|
16022
|
-
|
|
16031
|
+
"filters": __assign({ "contentType": "Course" }, addFilter, (_a = {}, _a[this.environment.compentencyVersionKey + "." + this.comeptencyKeys.vCompetencyArea] = value, _a["status"] = [
|
|
16032
|
+
"Live"
|
|
16033
|
+
], _a)),
|
|
16023
16034
|
"sort_by": {
|
|
16024
16035
|
"lastUpdatedOn": "desc"
|
|
16025
16036
|
},
|
|
16026
16037
|
"facets": [
|
|
16027
|
-
"
|
|
16038
|
+
this.environment.compentencyVersionKey + "." + this.comeptencyKeys.vCompetencyTheme
|
|
16028
16039
|
],
|
|
16029
16040
|
"limit": 0,
|
|
16030
16041
|
"offset": 0,
|
|
16031
16042
|
"fields": []
|
|
16032
16043
|
}
|
|
16033
16044
|
};
|
|
16034
|
-
|
|
16045
|
+
_b.label = 1;
|
|
16035
16046
|
case 1:
|
|
16036
|
-
|
|
16047
|
+
_b.trys.push([1, 3, , 4]);
|
|
16037
16048
|
this.loadCometency = true;
|
|
16038
16049
|
return [4 /*yield*/, this.callCompetencySearch(request)];
|
|
16039
16050
|
case 2:
|
|
16040
|
-
response =
|
|
16051
|
+
response = _b.sent();
|
|
16041
16052
|
if (response && response.results) {
|
|
16042
16053
|
if (response.results.result.facets) {
|
|
16043
16054
|
competencyThemeData_1 = response.results.result.facets[0].values;
|
|
@@ -16068,7 +16079,7 @@
|
|
|
16068
16079
|
}
|
|
16069
16080
|
return [3 /*break*/, 4];
|
|
16070
16081
|
case 3:
|
|
16071
|
-
error_2 =
|
|
16082
|
+
error_2 = _b.sent();
|
|
16072
16083
|
return [3 /*break*/, 4];
|
|
16073
16084
|
case 4: return [2 /*return*/];
|
|
16074
16085
|
}
|
|
@@ -16132,34 +16143,35 @@
|
|
|
16132
16143
|
function (area, addFilter) {
|
|
16133
16144
|
return __awaiter(this, void 0, void 0, function () {
|
|
16134
16145
|
var request, returnedData_1, response, competencyThemeData_2, error_3;
|
|
16146
|
+
var _a;
|
|
16135
16147
|
var _this = this;
|
|
16136
|
-
return __generator(this, function (
|
|
16137
|
-
switch (
|
|
16148
|
+
return __generator(this, function (_b) {
|
|
16149
|
+
switch (_b.label) {
|
|
16138
16150
|
case 0:
|
|
16139
16151
|
request = {
|
|
16140
16152
|
"request": {
|
|
16141
16153
|
"query": "",
|
|
16142
|
-
"filters": __assign({ "contentType": "Course" }, addFilter, { "
|
|
16143
|
-
|
|
16144
|
-
|
|
16154
|
+
"filters": __assign({ "contentType": "Course" }, addFilter, (_a = {}, _a[this.environment.compentencyVersionKey + "." + this.comeptencyKeys.vCompetencyArea] = area.name, _a["status"] = [
|
|
16155
|
+
"Live"
|
|
16156
|
+
], _a)),
|
|
16145
16157
|
"sort_by": {
|
|
16146
16158
|
"lastUpdatedOn": "desc"
|
|
16147
16159
|
},
|
|
16148
16160
|
"facets": [
|
|
16149
|
-
"
|
|
16161
|
+
this.environment.compentencyVersionKey + "." + this.comeptencyKeys.vCompetencyTheme
|
|
16150
16162
|
],
|
|
16151
16163
|
"limit": 0,
|
|
16152
16164
|
"offset": 0,
|
|
16153
16165
|
"fields": []
|
|
16154
16166
|
}
|
|
16155
16167
|
};
|
|
16156
|
-
|
|
16168
|
+
_b.label = 1;
|
|
16157
16169
|
case 1:
|
|
16158
|
-
|
|
16170
|
+
_b.trys.push([1, 3, , 4]);
|
|
16159
16171
|
returnedData_1 = this.loadCometency = true;
|
|
16160
16172
|
return [4 /*yield*/, this.callCompetencySearch(request)];
|
|
16161
16173
|
case 2:
|
|
16162
|
-
response =
|
|
16174
|
+
response = _b.sent();
|
|
16163
16175
|
if (response && response.results) {
|
|
16164
16176
|
if (response.results.result.facets) {
|
|
16165
16177
|
competencyThemeData_2 = response.results.result.facets[0].values;
|
|
@@ -16190,7 +16202,7 @@
|
|
|
16190
16202
|
}
|
|
16191
16203
|
return [3 /*break*/, 4];
|
|
16192
16204
|
case 3:
|
|
16193
|
-
error_3 =
|
|
16205
|
+
error_3 = _b.sent();
|
|
16194
16206
|
return [3 /*break*/, 4];
|
|
16195
16207
|
case 4: return [2 /*return*/];
|
|
16196
16208
|
}
|
|
@@ -16263,34 +16275,35 @@
|
|
|
16263
16275
|
function (compArea, addFilter) {
|
|
16264
16276
|
return __awaiter(this, void 0, void 0, function () {
|
|
16265
16277
|
var request, response, competencySubThemeData_1, error_4;
|
|
16278
|
+
var _a;
|
|
16266
16279
|
var _this = this;
|
|
16267
|
-
return __generator(this, function (
|
|
16268
|
-
switch (
|
|
16280
|
+
return __generator(this, function (_b) {
|
|
16281
|
+
switch (_b.label) {
|
|
16269
16282
|
case 0:
|
|
16270
16283
|
request = {
|
|
16271
16284
|
"request": {
|
|
16272
16285
|
"query": "",
|
|
16273
|
-
"filters": __assign({ "contentType": "Course" }, addFilter, { "
|
|
16274
|
-
|
|
16275
|
-
|
|
16286
|
+
"filters": __assign({ "contentType": "Course" }, addFilter, (_a = {}, _a[this.environment.compentencyVersionKey + "." + this.comeptencyKeys.vCompetencyArea] = compArea.name, _a["status"] = [
|
|
16287
|
+
"Live"
|
|
16288
|
+
], _a)),
|
|
16276
16289
|
"sort_by": {
|
|
16277
16290
|
"lastUpdatedOn": "desc"
|
|
16278
16291
|
},
|
|
16279
16292
|
"facets": [
|
|
16280
|
-
"
|
|
16293
|
+
this.environment.compentencyVersionKey + "." + this.comeptencyKeys.vCompetencySubTheme
|
|
16281
16294
|
],
|
|
16282
16295
|
"limit": 0,
|
|
16283
16296
|
"offset": 0,
|
|
16284
16297
|
"fields": []
|
|
16285
16298
|
}
|
|
16286
16299
|
};
|
|
16287
|
-
|
|
16300
|
+
_b.label = 1;
|
|
16288
16301
|
case 1:
|
|
16289
|
-
|
|
16302
|
+
_b.trys.push([1, 3, , 4]);
|
|
16290
16303
|
this.loadCometency = true;
|
|
16291
16304
|
return [4 /*yield*/, this.callCompetencySearch(request)];
|
|
16292
16305
|
case 2:
|
|
16293
|
-
response =
|
|
16306
|
+
response = _b.sent();
|
|
16294
16307
|
if (response && response.results) {
|
|
16295
16308
|
if (response.results.result.facets) {
|
|
16296
16309
|
competencySubThemeData_1 = response.results.result.facets[0].values;
|
|
@@ -16323,7 +16336,7 @@
|
|
|
16323
16336
|
* @param {?} key
|
|
16324
16337
|
* @return {?}
|
|
16325
16338
|
*/
|
|
16326
|
-
function (key) { return obj1['
|
|
16339
|
+
function (key) { return obj1['name'] === (obj2['name']); }));
|
|
16327
16340
|
}));
|
|
16328
16341
|
}));
|
|
16329
16342
|
_this.allcompetencyTheme[themeEle.name.toLowerCase()]['children'] = data;
|
|
@@ -16336,7 +16349,7 @@
|
|
|
16336
16349
|
}
|
|
16337
16350
|
return [3 /*break*/, 4];
|
|
16338
16351
|
case 3:
|
|
16339
|
-
error_4 =
|
|
16352
|
+
error_4 = _b.sent();
|
|
16340
16353
|
return [3 /*break*/, 4];
|
|
16341
16354
|
case 4: return [2 /*return*/];
|
|
16342
16355
|
}
|
|
@@ -16346,7 +16359,7 @@
|
|
|
16346
16359
|
CompetencyPassbookComponent.decorators = [
|
|
16347
16360
|
{ type: core.Component, args: [{
|
|
16348
16361
|
selector: 'sb-uic-competency-passbook',
|
|
16349
|
-
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]?.
|
|
16362
|
+
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>",
|
|
16350
16363
|
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}"]
|
|
16351
16364
|
}] }
|
|
16352
16365
|
];
|
|
@@ -16355,7 +16368,8 @@
|
|
|
16355
16368
|
{ type: utilsV2.ConfigurationsService },
|
|
16356
16369
|
{ type: WidgetContentService },
|
|
16357
16370
|
{ type: CompetencyPassbookService },
|
|
16358
|
-
{ type: router.Router }
|
|
16371
|
+
{ type: router.Router },
|
|
16372
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: ['environment',] }] }
|
|
16359
16373
|
]; };
|
|
16360
16374
|
CompetencyPassbookComponent.propDecorators = {
|
|
16361
16375
|
objectData: [{ type: core.Input }],
|
|
@@ -16409,6 +16423,10 @@
|
|
|
16409
16423
|
/** @type {?} */
|
|
16410
16424
|
CompetencyPassbookComponent.prototype.showAllTheme;
|
|
16411
16425
|
/** @type {?} */
|
|
16426
|
+
CompetencyPassbookComponent.prototype.environment;
|
|
16427
|
+
/** @type {?} */
|
|
16428
|
+
CompetencyPassbookComponent.prototype.comeptencyKeys;
|
|
16429
|
+
/** @type {?} */
|
|
16412
16430
|
CompetencyPassbookComponent.prototype.configSvc;
|
|
16413
16431
|
/** @type {?} */
|
|
16414
16432
|
CompetencyPassbookComponent.prototype.contentSvc;
|
|
@@ -16539,6 +16557,7 @@
|
|
|
16539
16557
|
var API_POINTS$1 = {
|
|
16540
16558
|
COMPETENCY_LIST: "apis/proxies/v8/competency/v4/search",
|
|
16541
16559
|
competency_URL: "apis/proxies/v8/v1/search/competenciesByOrg/",
|
|
16560
|
+
COMPETENCY_LIST_V2: "apis/proxies/v8/searchBy/v2/competency",
|
|
16542
16561
|
};
|
|
16543
16562
|
var CompetencyPassbookMdoService = /** @class */ (function () {
|
|
16544
16563
|
// tslint: disable-next-line: whitespace
|
|
@@ -16556,6 +16575,15 @@
|
|
|
16556
16575
|
function (payload) {
|
|
16557
16576
|
return this.http.post(API_POINTS$1.COMPETENCY_LIST, payload);
|
|
16558
16577
|
};
|
|
16578
|
+
/**
|
|
16579
|
+
* @return {?}
|
|
16580
|
+
*/
|
|
16581
|
+
CompetencyPassbookMdoService.prototype.getCompetencyListv_V2 = /**
|
|
16582
|
+
* @return {?}
|
|
16583
|
+
*/
|
|
16584
|
+
function () {
|
|
16585
|
+
return this.http.get(API_POINTS$1.COMPETENCY_LIST_V2);
|
|
16586
|
+
};
|
|
16559
16587
|
/**
|
|
16560
16588
|
* @param {?} providerId
|
|
16561
16589
|
* @return {?}
|
|
@@ -16594,7 +16622,7 @@
|
|
|
16594
16622
|
// currentFilter = 'Behavioural'
|
|
16595
16623
|
// currentCompetencies: any = []
|
|
16596
16624
|
// competencyData: any
|
|
16597
|
-
function CompetencyPassbookMdoComponent(configSvc, contentSvc, competencySvc, router) {
|
|
16625
|
+
function CompetencyPassbookMdoComponent(configSvc, contentSvc, competencySvc, router, environment) {
|
|
16598
16626
|
this.configSvc = configSvc;
|
|
16599
16627
|
this.contentSvc = contentSvc;
|
|
16600
16628
|
this.competencySvc = competencySvc;
|
|
@@ -16605,12 +16633,14 @@
|
|
|
16605
16633
|
this.temeletryResponse = new core.EventEmitter();
|
|
16606
16634
|
this.loadCometency = false;
|
|
16607
16635
|
this.loadCompetencyArea = false;
|
|
16636
|
+
this.selectedValue = 'functional';
|
|
16608
16637
|
this.competencyVersion = '';
|
|
16609
16638
|
this.competencyTheme = [];
|
|
16610
16639
|
this.allcompetencyTheme = {};
|
|
16611
16640
|
this.competencyStrength = 0;
|
|
16612
16641
|
this.competencyThemeLength = 6;
|
|
16613
16642
|
this.showAllTheme = [{ name: 'Show all', showAll: false }];
|
|
16643
|
+
this.environment = environment;
|
|
16614
16644
|
}
|
|
16615
16645
|
/**
|
|
16616
16646
|
* @return {?}
|
|
@@ -16619,6 +16649,7 @@
|
|
|
16619
16649
|
* @return {?}
|
|
16620
16650
|
*/
|
|
16621
16651
|
function () {
|
|
16652
|
+
this.comeptencyKeys = this.configSvc.compentency[this.environment.compentencyVersionKey];
|
|
16622
16653
|
this.getAllCompetencies();
|
|
16623
16654
|
};
|
|
16624
16655
|
/**
|
|
@@ -16632,17 +16663,17 @@
|
|
|
16632
16663
|
this.loadCometency = true;
|
|
16633
16664
|
/** @type {?} */
|
|
16634
16665
|
var request = { "search": { "type": "Competency Area" }, "filter": { "isDetail": true } };
|
|
16635
|
-
this.competencySvc.
|
|
16666
|
+
this.competencySvc.getCompetencyListv_V2().subscribe((/**
|
|
16636
16667
|
* @param {?} response
|
|
16637
16668
|
* @return {?}
|
|
16638
16669
|
*/
|
|
16639
16670
|
function (response) {
|
|
16640
16671
|
_this.allcompetencyTheme = {};
|
|
16641
|
-
if (response && response.result && response.result.
|
|
16642
|
-
_this.originalCompetencyArray = response.result.
|
|
16672
|
+
if (response && response.result && response.result.content) {
|
|
16673
|
+
_this.originalCompetencyArray = response.result.content;
|
|
16643
16674
|
_this.getMdoCompetencies();
|
|
16644
16675
|
// this.getCompetencyArea()
|
|
16645
|
-
response.result.
|
|
16676
|
+
response.result.content.forEach((/**
|
|
16646
16677
|
* @param {?} element
|
|
16647
16678
|
* @return {?}
|
|
16648
16679
|
*/
|
|
@@ -16688,11 +16719,11 @@
|
|
|
16688
16719
|
* @return {?}
|
|
16689
16720
|
*/
|
|
16690
16721
|
function (facet) {
|
|
16691
|
-
if (facet.name ===
|
|
16722
|
+
if (facet.name === _this.environment.compentencyVersionKey + "." + _this.comeptencyKeys.vCompetencyArea) {
|
|
16692
16723
|
_this.competencyArea = facet.values;
|
|
16693
16724
|
_this.selectedValue = facet.values[0].name;
|
|
16694
16725
|
}
|
|
16695
|
-
else if (facet.name ===
|
|
16726
|
+
else if (facet.name === _this.environment.compentencyVersionKey + "." + _this.comeptencyKeys.vCompetencyTheme) {
|
|
16696
16727
|
_this.competencyThemeData = facet.values;
|
|
16697
16728
|
_this.getCompetencyTheme();
|
|
16698
16729
|
}
|
|
@@ -16887,7 +16918,7 @@
|
|
|
16887
16918
|
CompetencyPassbookMdoComponent.decorators = [
|
|
16888
16919
|
{ type: core.Component, args: [{
|
|
16889
16920
|
selector: 'sb-uic-competency-passbook-mdo',
|
|
16890
|
-
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]?.
|
|
16921
|
+
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>",
|
|
16891
16922
|
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}"]
|
|
16892
16923
|
}] }
|
|
16893
16924
|
];
|
|
@@ -16896,7 +16927,8 @@
|
|
|
16896
16927
|
{ type: utilsV2.ConfigurationsService },
|
|
16897
16928
|
{ type: WidgetContentService },
|
|
16898
16929
|
{ type: CompetencyPassbookMdoService },
|
|
16899
|
-
{ type: router.Router }
|
|
16930
|
+
{ type: router.Router },
|
|
16931
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: ['environment',] }] }
|
|
16900
16932
|
]; };
|
|
16901
16933
|
CompetencyPassbookMdoComponent.propDecorators = {
|
|
16902
16934
|
objectData: [{ type: core.Input }],
|
|
@@ -16952,6 +16984,10 @@
|
|
|
16952
16984
|
/** @type {?} */
|
|
16953
16985
|
CompetencyPassbookMdoComponent.prototype.showAllTheme;
|
|
16954
16986
|
/** @type {?} */
|
|
16987
|
+
CompetencyPassbookMdoComponent.prototype.environment;
|
|
16988
|
+
/** @type {?} */
|
|
16989
|
+
CompetencyPassbookMdoComponent.prototype.comeptencyKeys;
|
|
16990
|
+
/** @type {?} */
|
|
16955
16991
|
CompetencyPassbookMdoComponent.prototype.configSvc;
|
|
16956
16992
|
/** @type {?} */
|
|
16957
16993
|
CompetencyPassbookMdoComponent.prototype.contentSvc;
|