@sunbird-cb/tree-hierarchy 0.0.5-cbrelease-4.8.26 → 0.0.6-cbrelease-4.8.26
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/category-edit/category-edit-module/category-edit-module.component.mjs +7 -8
- package/esm2022/lib/components/tree-view/tree-view.component.mjs +34 -2
- package/esm2022/lib/tree-hierarchy.component.mjs +1 -1
- package/esm2022/lib/tree-hierarchy.service.mjs +6 -2
- package/fesm2022/sunbird-cb-tree-hierarchy.mjs +44 -9
- package/fesm2022/sunbird-cb-tree-hierarchy.mjs.map +1 -1
- package/lib/components/category-edit/category-edit-module/category-edit-module.component.d.ts.map +1 -1
- package/lib/components/tree-view/tree-view.component.d.ts +1 -0
- package/lib/components/tree-view/tree-view.component.d.ts.map +1 -1
- package/lib/tree-hierarchy.service.d.ts +1 -0
- package/lib/tree-hierarchy.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,8 @@ const API_ENDPOINT = {
|
|
|
8
8
|
UPDATE_TERMS: `/apis/proxies/v8/framework/v1/term/update/`,
|
|
9
9
|
UPDATE_ASSOCIATION: `/apis/proxies/v8/framework/v1/term/update/`,
|
|
10
10
|
PUBLISH_FRAMEWORK: `/apis/proxies/v8/framework/v1/publish/`,
|
|
11
|
-
RETIRE_TREM:
|
|
11
|
+
RETIRE_TREM: `/apis/proxies/v8/framework/v1/term/retire`,
|
|
12
|
+
UPDATE_CATEGORY: `/apis/proxies/v8/framework/v1/category/update/`
|
|
12
13
|
};
|
|
13
14
|
export class TreeHierarchyService {
|
|
14
15
|
constructor(http) {
|
|
@@ -37,6 +38,9 @@ export class TreeHierarchyService {
|
|
|
37
38
|
retireTerm(requestBody, frameworkObj) {
|
|
38
39
|
return this.http.post(`${API_ENDPOINT.RETIRE_TREM}?framework=${frameworkObj.id}&category=${frameworkObj.category}`, requestBody);
|
|
39
40
|
}
|
|
41
|
+
updateCategory(requestBody, frameworkObj) {
|
|
42
|
+
return this.http.patch(`${API_ENDPOINT.UPDATE_CATEGORY}${frameworkObj.category}?framework=${frameworkObj.id}`, requestBody);
|
|
43
|
+
}
|
|
40
44
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeHierarchyService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
41
45
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeHierarchyService, providedIn: 'root' }); }
|
|
42
46
|
}
|
|
@@ -46,4 +50,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
46
50
|
providedIn: 'root'
|
|
47
51
|
}]
|
|
48
52
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS1oaWVyYXJjaHkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnJhcnkvc3VuYmlyZC1jYi90cmVlLWhpZXJhcmNoeS9zcmMvbGliL3RyZWUtaGllcmFyY2h5LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsZUFBZSxFQUFjLE1BQU0sTUFBTSxDQUFDOzs7QUFFbkQsTUFBTSxZQUFZLEdBQUc7SUFDbkIsYUFBYSxFQUFFLGdDQUFnQztJQUMvQyxZQUFZLEVBQUUsa0RBQWtEO0lBQ2hFLFlBQVksRUFBRSw0Q0FBNEM7SUFDMUQsa0JBQWtCLEVBQUUsNEN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lcXVlc3RCb2R5KTtcbiAgfVxuICBcbn1cbiJdfQ==
|
|
@@ -85,7 +85,8 @@ const API_ENDPOINT = {
|
|
|
85
85
|
UPDATE_TERMS: `/apis/proxies/v8/framework/v1/term/update/`,
|
|
86
86
|
UPDATE_ASSOCIATION: `/apis/proxies/v8/framework/v1/term/update/`,
|
|
87
87
|
PUBLISH_FRAMEWORK: `/apis/proxies/v8/framework/v1/publish/`,
|
|
88
|
-
RETIRE_TREM:
|
|
88
|
+
RETIRE_TREM: `/apis/proxies/v8/framework/v1/term/retire`,
|
|
89
|
+
UPDATE_CATEGORY: `/apis/proxies/v8/framework/v1/category/update/`
|
|
89
90
|
};
|
|
90
91
|
class TreeHierarchyService {
|
|
91
92
|
constructor(http) {
|
|
@@ -114,6 +115,9 @@ class TreeHierarchyService {
|
|
|
114
115
|
retireTerm(requestBody, frameworkObj) {
|
|
115
116
|
return this.http.post(`${API_ENDPOINT.RETIRE_TREM}?framework=${frameworkObj.id}&category=${frameworkObj.category}`, requestBody);
|
|
116
117
|
}
|
|
118
|
+
updateCategory(requestBody, frameworkObj) {
|
|
119
|
+
return this.http.patch(`${API_ENDPOINT.UPDATE_CATEGORY}${frameworkObj.category}?framework=${frameworkObj.id}`, requestBody);
|
|
120
|
+
}
|
|
117
121
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeHierarchyService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
118
122
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeHierarchyService, providedIn: 'root' }); }
|
|
119
123
|
}
|
|
@@ -9896,16 +9900,15 @@ class CategoryEditModuleComponent {
|
|
|
9896
9900
|
saveCategoryName() {
|
|
9897
9901
|
if (this.categoryForm.valid) {
|
|
9898
9902
|
const updatedCategory = {
|
|
9899
|
-
|
|
9900
|
-
|
|
9901
|
-
|
|
9902
|
-
|
|
9903
|
-
|
|
9903
|
+
formData: {
|
|
9904
|
+
categoryName: this.categoryForm.get('categoryName')?.value || '',
|
|
9905
|
+
categotyDescription: this.categoryForm.get('categoryDescription')?.value || ''
|
|
9906
|
+
},
|
|
9907
|
+
columnData: this.data.columnInfo
|
|
9904
9908
|
};
|
|
9905
9909
|
this.dialogRef.close({
|
|
9906
9910
|
updated: true,
|
|
9907
|
-
column: updatedCategory
|
|
9908
|
-
index: this.data.index
|
|
9911
|
+
column: updatedCategory
|
|
9909
9912
|
});
|
|
9910
9913
|
}
|
|
9911
9914
|
}
|
|
@@ -11400,7 +11403,15 @@ class TreeViewComponent {
|
|
|
11400
11403
|
position: { top: '50px' }
|
|
11401
11404
|
});
|
|
11402
11405
|
dialog.afterClosed().subscribe((res) => {
|
|
11403
|
-
|
|
11406
|
+
if (res) {
|
|
11407
|
+
const requestBody = {
|
|
11408
|
+
frameworkId: this.frameworkService.getFrameworkId(),
|
|
11409
|
+
categoryCode: res.column.columnData.code,
|
|
11410
|
+
categoryName: res.column.formData.categoryName,
|
|
11411
|
+
categoryDescription: res.column.formData.categotyDescription || ''
|
|
11412
|
+
};
|
|
11413
|
+
this.updateCategory(requestBody);
|
|
11414
|
+
}
|
|
11404
11415
|
});
|
|
11405
11416
|
}
|
|
11406
11417
|
getSelectedTermsAssociation(categoryCode) {
|
|
@@ -11451,6 +11462,30 @@ class TreeViewComponent {
|
|
|
11451
11462
|
}
|
|
11452
11463
|
return tempData;
|
|
11453
11464
|
}
|
|
11465
|
+
async updateCategory(event) {
|
|
11466
|
+
const requestBody = {
|
|
11467
|
+
request: {
|
|
11468
|
+
category: {
|
|
11469
|
+
name: event.categoryName || '',
|
|
11470
|
+
description: event.categoryDescription || '',
|
|
11471
|
+
}
|
|
11472
|
+
}
|
|
11473
|
+
};
|
|
11474
|
+
const frameworkObj = {
|
|
11475
|
+
id: event.frameworkId,
|
|
11476
|
+
category: event.categoryCode
|
|
11477
|
+
};
|
|
11478
|
+
this.treeHierarchySvc.setLoaderState(true);
|
|
11479
|
+
const updateCatRes = await this.treeHierarchySvc.updateCategory(requestBody, frameworkObj).toPromise().catch((_err) => {
|
|
11480
|
+
this.treeHierarchySvc.setLoaderState(false);
|
|
11481
|
+
if (_err && _err.error && _err.error.params && _err.error.params.errMsg) {
|
|
11482
|
+
this._snackBar.open(`${_err.error.params.errMsg}`);
|
|
11483
|
+
}
|
|
11484
|
+
});
|
|
11485
|
+
if (updateCatRes && updateCatRes.params && updateCatRes.params.status.toLowerCase() === 'successful') {
|
|
11486
|
+
await this.publishFramework(frameworkObj);
|
|
11487
|
+
}
|
|
11488
|
+
}
|
|
11454
11489
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeViewComponent, deps: [{ token: FrameworkService }, { token: LocalConnectionService }, { token: i1$3.MatLegacyDialog }, { token: ApprovalService }, { token: i5$2.MatLegacySnackBar }, { token: ConnectorService }, { token: i0.ChangeDetectorRef }, { token: TreeHierarchyService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11455
11490
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TreeViewComponent, selector: "lib-tree-view", inputs: { approvalList: "approvalList", isApprovalView: "isApprovalView", workFlowStatus: "workFlowStatus", environment: "environment", taxonomyConfig: "taxonomyConfig", orgSelectedData: "orgSelectedData" }, outputs: { sentForApprove: "sentForApprove", loaderEnable: "loaderEnable", manageOrg: "manageOrg" }, usesOnChanges: true, ngImport: i0, template: "<!-- <div class=\"flex flex-1 connectionSettings\">\n <button mat-raised-button color=\"accent\" (click)=\"newConnection()\">\n <mat-icon>{{app_strings.build}}</mat-icon>\n </button>\n</div> -->\n\n<div *ngIf=\"list && list.length > 0\" class=\"flex heightFix overflow-container\" id=\"treeViewContainer\">\n <ng-container *ngFor=\"let column of list; let i = index;\">\n <div class=\"flex-1 felx-col col-container containers{{list.length}}\" id=\"box{{i+1}}Container\">\n <div class=\"category-heading-sticky\">\n <div class=\"category-heading-container\">\n <div class='category-header'>\n <div class=\"category-header-items w-full flex padding-remove\" id=\"box{{i}}Header\">\n <span class=\"flex gap-1 mat-body-1\">\n <ng-container *ngIf=\"column?.config?.iconEnabled\">\n <mat-icon [ngStyle]=\"{'color':column.config.color}\">{{column.config.icon}}</mat-icon>\n </ng-container>\n <!-- {{column.name}} -->\n {{column?.config?.categoryDisplayName || column.name }}\n <ng-container *ngIf=\"i != 0 && categoryList?.length > 0; else firstColumn\">\n <ng-container *ngIf=\"column.index !== 1\">\n <span class=\"count\">({{getCount(column.code)}})</span>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"column?.config?.levelNameEdit\">\n <button mat-icon-button type=\"button\" class=\"edit-btn flex\" (click)=\"editCategoryName(column, i)\">\n <mat-icon>edit</mat-icon>\n </button>\n </ng-container>\n </span>\n <ng-template #firstColumn>\n <span *ngIf=\"i == 0\" id=\"box{{i+1}}count\" class=\"count\">({{column.children.length}})</span>\n </ng-template>\n <ng-container class=\"\" *ngIf=\"column?.config?.createBtnEnabled && !column?.config?.addOrgEnabled\">\n <button mat-button class=\"add-btn margin-left-auto\" [ngClass]=\"{'button-enabled': configCodeBtn== column?.code, 'button-disabled': configCodeBtn!== column?.code}\"\n (click)=\"openCreateTermDialog(column, i)\" type=\"button\">\n <span>Add</span>\n <mat-icon class=\"margin-remove\">\n {{app_strings.add}}\n </mat-icon>\n </button>\n </ng-container>\n <ng-container *ngIf=\"column?.config?.addOrgEnabled && !column?.config?.createBtnEnabled\">\n <button mat-button class=\"add-btn margin-left-auto\" (click)=\"openOrganizationDialog(column, i)\" type=\"button\" \n [ngClass]=\"{'button-enabled': isCurrentOrNextTerm(column, i), 'button-disabled': !isCurrentOrNextTerm(column, i)}\">\n <span>Add</span>\n <mat-icon class=\"margin-remove\">\n {{app_strings.add}}\n </mat-icon>\n </button>\n </ng-container>\n <div class=\"arrow\" id=\"box{{i+1}}count\"></div>\n </div>\n </div>\n <!-- <div>\n Put search button here in future\n </div> -->\n </div>\n </div>\n <!-- {{column.code}} -->\n <div class=\"padding-x2 cat-columns container-box\" id=\"box{{i+1}}\">\n <ng-container *ngIf=\"column?.children && column?.children.length > 0\">\n <lib-tree-column-view *ngIf=\"loaded[column.code]\" #selectedTaxonomyTerm [column]=\"column\"\n [containerId]=\"'box'+(i+1)\" (updateTaxonomyTerm)=\"updateTaxonomyTerm($event)\"\n (updateTermList)=\"updateDraftStatusTerms($event)\" (cardsCount)=\"getNoOfCards($event)\" \n (retireTermData)=\"removeConnection($event)\" (cardAction)=\"cardActionEmit($event)\">\n </lib-tree-column-view>\n </ng-container>\n <ng-container *ngIf=\"shouldShowSvgBorderWrapper(column, i)\">\n <div class=\"svg-border-wrapper\">\n <svg width=\"100%\" height=\"100%\">\n <rect x=\"0\" y=\"0\" width=\"100%\" height=\"100%\" fill=\"none\" stroke=\"#1B213352\" stroke-width=\"2\" \n stroke-dasharray=\"20, 10\" rx=\"10\" ry=\"10\"/>\n </svg>\n <div class=\"content flex flex-col w-full\">\n <div class=\"icon-container\">\n <mat-icon svgIcon=\"frac-no-connection\"></mat-icon>\n </div>\n <label>Select an organization to add or see further connections</label>\n <button mat-button class=\"add-btn\" (click)=\"openOrganizationDialog(column, i)\" type=\"button\" \n [ngClass]=\"{'button-enabled': isCurrentOrNextTerm(column, i), 'button-disabled': !isCurrentOrNextTerm(column, i)}\">\n <span>Add</span>\n <mat-icon class=\"margin-remove\">\n {{app_strings.add}}\n </mat-icon>\n </button>\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </ng-container>\n <lib-action-bar *ngIf=\"showActionBar\" [actionType]=\"isApprovalView\" [configType]=\"workFlowStatus\"\n (sendApproval)=\"sendForApproval()\" (closeAction)=\"closeActionBar($event)\"></lib-action-bar>\n</div>\n<div *ngIf=\"!(list && list.length > 0 ) && isFraworkLoading\" class=\"flex heightFix \">\n <h1 i18n>{{app_strings.loading}}</h1>\n</div>", styles: [".connectionSettings{flex-direction:row-reverse;z-index:40;position:fixed;padding:0 4px 4px 0;bottom:0;right:0}.flex{display:flex}.w-full{width:100%;align-items:center;display:flex}.w-full.addCardButton{padding:.25em .8em;text-align:left;border:2px dotted #b1b1b1;color:#666;border-radius:8px}.w-full.addCardButton .mat-icon{position:absolute;top:0%;right:3%;height:100%;display:flex;align-items:center}.w-full .button-enabled{opacity:1;pointer-events:auto}.w-full .button-disabled{opacity:.5;pointer-events:none}.w-full.addCardButtonNew{padding:8px 12px;text-align:center;border-radius:24px;height:24px;background:#1b4ca1;color:#fff!important}.w-full.addCardButtonNew .mat-icon-custom{font-size:21px}.w-full.addCardButtonNew:disabled{opacity:.6}.mb1{margin-bottom:1em}flex-center{flex-wrap:nowrap;align-items:start;justify-content:center}.flex-1{flex:1}.felx-col{flex-direction:column}.padding-x2{padding:0 2.5em}.heightFix{height:100%;width:100%;justify-content:space-around;position:relative}.cat-columns{position:relative;height:inherit}.col-container{height:inherit;min-width:350px}.category-heading-sticky{top:0;position:sticky;width:100%;background:#fff;margin-bottom:16px;z-index:10}.category-heading-container{box-sizing:content-box;position:relative;display:block;padding:2px 2.5em}.category-heading-container .category-header{display:flex;align-items:center}.category-heading-container .category-header-items{display:flex;align-items:center;padding:0 10px}.category-heading-container .category-header h4{padding:0 10px;color:#00000080}.category-heading-container .category-header .count{padding:0 2px}.category-heading-container .category-header .category-header-items{font-size:12px;font-weight:600;font-family:Lato;color:#7c7c7c}.cat-columns:hover{overflow-y:scroll}.container-box{overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;height:calc(100% - 70px)}.container-box::-webkit-scrollbar{width:0;height:0}.spinner{position:fixed;display:flex;top:50%;left:50%}.arrow{left:30px;position:relative}@media only screen and (max-width: 1024px){::ng-deep mat-checkbox .mat-checkbox-inner-container{height:.8em;width:.8em}}@media only screen and (max-width: 1024px){.containers4{max-width:250px;font-size:10px}.containers5{max-width:230px}.containers6{max-width:150px}.containers7{max-width:100px}.w-full{height:3.5em}.w-full.mat-stroked-button{font-size:8px}.padding-x2,.category-heading-container{padding:0 2em}mat-icon{font-size:12px;width:1.25em;height:1.25em}.connectionSettings .mat-raised-button{min-width:auto;padding:0 .5em;line-height:2em}}@media only screen and (max-width: 992px){.containers4{max-width:220px;font-size:9px}.padding-x2,.category-heading-container{padding:0 1.5em}}@media only screen and (max-width: 768px){.containers4{max-width:165px;font-size:8px}.w-full{height:2.5em}.padding-x2,.category-heading-container{padding:0 1em}mat-icon{font-size:8px;width:1em;height:1em}.connectionSettings .mat-raised-button{min-width:auto;padding:0 .3em;line-height:1.5em}}.add-btn{height:24px;background:#1b4ca1;color:#fff!important;display:flex;flex-direction:row-reverse;justify-content:space-between;border-radius:12px}.overflow-container{width:100%;max-width:100%;overflow-x:auto;white-space:nowrap}.svg-border-wrapper{position:relative;width:100%;height:95%;min-height:100px}.svg-border-wrapper .content{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}.content{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;text-align:center}.content label{max-width:90%;margin:10px 0;font-size:16px;line-height:1.4;color:#000000b3;white-space:normal;word-wrap:break-word;font-weight:700}.icon-container{background:#0000000a;position:relative;width:40px;height:40px;border-radius:5px}.icon-container mat-icon{width:30px;height:30px;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.edit-btn{width:24px;height:24px;padding:0;display:flex;align-items:center;justify-content:center;position:relative}.edit-btn mat-icon{font-size:16px;position:absolute;top:50%;height:16px;left:50%;width:16px;transform:translate(-50%,-50%)}\n"], dependencies: [{ kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i4.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: TreeColumnViewComponent, selector: "lib-tree-column-view", inputs: ["column", "containerId"], outputs: ["updateTaxonomyTerm", "updateTermList", "cardsCount", "cardAction"] }, { kind: "component", type: ActionBarComponent, selector: "lib-action-bar", inputs: ["actionType", "configType"], outputs: ["sendApproval", "closeAction"] }] }); }
|
|
11456
11491
|
}
|