@sunbird-cb/cbp-ai 0.1.88 → 0.1.89
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/esm2022/lib/components/role-mapping-list/role-mapping-list.component.mjs +15 -18
- package/fesm2022/sunbird-cb-cbp-ai.mjs +14 -17
- package/fesm2022/sunbird-cb-cbp-ai.mjs.map +1 -1
- package/lib/components/role-mapping-list/role-mapping-list.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/sunbird-cb-cbp-ai-0.1.89.tgz +0 -0
|
@@ -14496,11 +14496,9 @@ class RoleMappingListComponent {
|
|
|
14496
14496
|
console.log('matchedRoleMapping', matchedRoleMapping);
|
|
14497
14497
|
this.matchedRoleMappingData = matchedRoleMapping?.matched_details || [];
|
|
14498
14498
|
this.matchedRoleMapping = matchedRoleMapping?.matched_count;
|
|
14499
|
-
|
|
14500
|
-
|
|
14501
|
-
|
|
14502
|
-
this.matchedDesignationSet = new Set(matchedNames);
|
|
14503
|
-
this.matchedRoleMapping = matchedNames.length;
|
|
14499
|
+
const matchedRoleMappingIds = matchedRoleMapping?.matched_details?.map(x => x.role_mapping_id) || [];
|
|
14500
|
+
this.matchedDesignationSet = new Set(matchedRoleMappingIds);
|
|
14501
|
+
this.matchedRoleMapping = matchedRoleMappingIds.length;
|
|
14504
14502
|
this.unMatchedRoleMapping = this.masterData.length - this.matchedRoleMapping;
|
|
14505
14503
|
this.applyAllFilters();
|
|
14506
14504
|
});
|
|
@@ -14539,11 +14537,9 @@ class RoleMappingListComponent {
|
|
|
14539
14537
|
console.log('matchedRoleMapping', matchedRoleMapping);
|
|
14540
14538
|
this.matchedRoleMappingData = matchedRoleMapping?.matched_details || [];
|
|
14541
14539
|
this.matchedRoleMapping = matchedRoleMapping?.matched_count;
|
|
14542
|
-
|
|
14543
|
-
|
|
14544
|
-
|
|
14545
|
-
this.matchedDesignationSet = new Set(matchedNames);
|
|
14546
|
-
this.matchedRoleMapping = matchedNames.length;
|
|
14540
|
+
const matchedRoleMappingIds = matchedRoleMapping?.matched_details?.map(x => x.role_mapping_id) || [];
|
|
14541
|
+
this.matchedDesignationSet = new Set(matchedRoleMappingIds);
|
|
14542
|
+
this.matchedRoleMapping = matchedRoleMappingIds.length;
|
|
14547
14543
|
this.unMatchedRoleMapping = this.masterData.length - this.matchedRoleMapping;
|
|
14548
14544
|
this.applyAllFilters();
|
|
14549
14545
|
});
|
|
@@ -14579,11 +14575,9 @@ class RoleMappingListComponent {
|
|
|
14579
14575
|
console.log('matchedRoleMapping', matchedRoleMapping);
|
|
14580
14576
|
this.matchedRoleMappingData = matchedRoleMapping?.matched_details || [];
|
|
14581
14577
|
this.matchedRoleMapping = matchedRoleMapping?.matched_count;
|
|
14582
|
-
|
|
14583
|
-
|
|
14584
|
-
|
|
14585
|
-
this.matchedDesignationSet = new Set(matchedNames);
|
|
14586
|
-
this.matchedRoleMapping = matchedNames.length;
|
|
14578
|
+
const matchedRoleMappingIds = matchedRoleMapping?.matched_details?.map(x => x.role_mapping_id) || [];
|
|
14579
|
+
this.matchedDesignationSet = new Set(matchedRoleMappingIds);
|
|
14580
|
+
this.matchedRoleMapping = matchedRoleMappingIds.length;
|
|
14587
14581
|
this.unMatchedRoleMapping = this.masterData.length - this.matchedRoleMapping;
|
|
14588
14582
|
this.applyAllFilters();
|
|
14589
14583
|
});
|
|
@@ -14635,11 +14629,14 @@ class RoleMappingListComponent {
|
|
|
14635
14629
|
}
|
|
14636
14630
|
applyAllFilters() {
|
|
14637
14631
|
let data = [...this.masterData];
|
|
14632
|
+
this.masterData.forEach(item => {
|
|
14633
|
+
const roleMappingId = item.id;
|
|
14634
|
+
});
|
|
14638
14635
|
if (this.activeTab === 'matched') {
|
|
14639
|
-
data = data.filter(item => this.matchedDesignationSet.has(item.
|
|
14636
|
+
data = data.filter(item => this.matchedDesignationSet.has(item.id));
|
|
14640
14637
|
}
|
|
14641
14638
|
if (this.activeTab === 'unmatched') {
|
|
14642
|
-
data = data.filter(item => !this.matchedDesignationSet.has(item.
|
|
14639
|
+
data = data.filter(item => !this.matchedDesignationSet.has(item.id));
|
|
14643
14640
|
}
|
|
14644
14641
|
if (this.searchText.trim()) {
|
|
14645
14642
|
const terms = this.searchText.toLowerCase().split(/\s+/);
|