@aastrika_npmjs/comptency
Advanced tools
Comparing version 0.0.35 to 0.0.36
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"EntryModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":12,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":13,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}],"providers":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["configContext"],"value":{"ngModule":{"__symbolic":"reference","name":"EntryModule"},"providers":[{"__symbolic":"reference","name":"ɵc"},{"provide":"config","useValue":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"configContext"},"member":"config"}}]}}}},"SelfAssessmentModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵg"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":13,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":14,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":15,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"CoreModule","line":16,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵg"}]}]}],"members":{}},"CompetencyModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":17,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵm"},{"__symbolic":"reference","name":"ɵn"},{"__symbolic":"reference","name":"ɵo"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatTabsModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":26,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatExpansionModule","line":27,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressBarModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressSpinnerModule","line":29,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":30,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"CoreModule","line":31,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/self-assessment","name":"SelfAssessmentModule","line":32,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵm"},{"__symbolic":"reference","name":"ɵn"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-slef-assessment-entry","template":"<button class=\"mat-primary-background \"\r\n (click)=\"navigateTo()\" i18n> Self Assessment\r\n</button>","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;background:#1c5d95!important;border-radius:50px;color:#fff;border:none;gap:8px;width:310px;cursor:pointer}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":9,"character":28}]}],"ngOnInit":[{"__symbolic":"method"}],"navigateTo":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-competency-entry","template":"<button class=\"mat-primary-background \"\r\n (click)=\"navigateTo()\" i18n> Competency Dashboard\r\n</button>","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;background:#1c5d95!important;border-radius:50px;color:#fff;border:none;gap:8px;width:310px;cursor:pointer}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"navigateTo":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":11,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":11,"character":27},"arguments":["config"]}]],"parameters":[{"__symbolic":"reference","name":"ɵd"}]}],"setConfig":[{"__symbolic":"method"}],"getConfig":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵd":{"__symbolic":"class","members":{}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"lib-self-assessment-card","template":"<div class=\"card_box\">\r\n <ng-container *ngIf=\"cardData?.title\">\r\n <div class=\"title\">{{ cardData?.title }}</div>\r\n </ng-container>\r\n <!-- <ng-container *ngIf=\"cardData?.description\">\r\n <div class=\"description\">{{ cardData?.description }}</div>\r\n </ng-container> -->\r\n <div class=\"flex flex-row gap-3 mt-3\">\r\n <!-- <button class=\"assess-btn\">Assess</button> -->\r\n <ng-container *ngFor=\"let btn of btnType\">\r\n <ng-container *ngIf=\"btn.courseId == cardData.contentId\">\r\n <button\r\n *ngIf=\"btn.type === 'START'\"\r\n mat-button\r\n class=\"assess-btn btn-small\"\r\n (click)=\"startSelfAssesment(cardData)\"\r\n i18n\r\n >\r\n Assess\r\n </button>\r\n <button\r\n *ngIf=\"btn.type === 'RESUME'\"\r\n mat-button\r\n class=\"reassess-btn btn-small\"\r\n (click)=\"startSelfAssesment(cardData)\"\r\n i18n\r\n >\r\n Re-Assess\r\n </button>\r\n <button\r\n *ngIf=\"btn.type === 'DONE'\"\r\n mat-button\r\n disabled\r\n class=\"done-btn btn-small\"\r\n (click)=\"startSelfAssesment(cardData)\"\r\n i18n\r\n >\r\n Done\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <button class=\"btn-long\" i18n (click)=\"viewCourses(cardData)\">View Courses</button>\r\n </div>\r\n</div>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card_box{margin:7px 2px 15px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:7px}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.startBtn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-style:italic;font-size:14px;line-height:17px;cursor:pointer;margin-top:4px}.assess-btn{background:#1c5d95;color:#fff}.reassess-btn{background:#52ad9d;color:#fff}.done-btn{background-color:#bfbfbf;color:grey}.btn-small{border-radius:50px;width:-moz-fit-content;width:fit-content;padding:3px 20px;border:none;cursor:pointer}.btn-long{border:1px solid #1c5d95;border-radius:50px;color:#1c5d95;background-color:inherit;width:-moz-fit-content;width:fit-content;padding:3px 30px;cursor:pointer}"]}]}],"members":{"cardData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"btnType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":15,"character":20},{"__symbolic":"reference","name":"ɵf"}]}],"ngOnInit":[{"__symbolic":"method"}],"startSelfAssesment":[{"__symbolic":"method"}],"viewCourses":[{"__symbolic":"method"}]}},"ɵf":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":9,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":10,"character":19}]}],"getCompetencyCourseIdentifier":[{"__symbolic":"method"}],"fetchHiearchyDetails":[{"__symbolic":"method"}],"fetchPrgressDetails":[{"__symbolic":"method"}],"getUserdetailsFromRegistry":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"selector":"lib-self-assessment","template":"<lib-app-loader *ngIf=\"loading === true\"></lib-app-loader>\r\n<div class=\"content\" *ngIf=\"selfAssessmentData\">\r\n <!-- <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer\">chevron_left</mat-icon> -->\r\n <!-- <h1 class=\" mb-1 pl-2 \">Self Assessment</h1> -->\r\n <ng-container *ngFor=\"let cardData of selfAssessmentData\">\r\n <ng-container *ngIf=\"cardData\">\r\n <lib-self-assessment-card [cardData]=\"cardData\" [btnType]=\"btnType\"></lib-self-assessment-card>\r\n </ng-container>\r\n </ng-container>\r\n</div>","styles":[""]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common","name":"Location","line":22,"character":22},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":24,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"getCompetencyData":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getCompetencyCourse":[{"__symbolic":"method"}],"getProgress":[{"__symbolic":"method"}],"navigateBack":[{"__symbolic":"method"}]}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"lib-required-comptency-card","template":"<lib-self-assessment></lib-self-assessment>","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.start-btn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-size:20px;cursor:pointer;margin-top:15px}.log-title{font-size:14px;line-height:24px;letter-spacing:-.02em;color:#1c5d95}.log{border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.logs{padding:5px}.log-items{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}:host ::ng-deep .mat-expansion-panel-header:hover{background:rgba(255,255,255,.98)!important}:host ::ng-deep .mat-content{display:flex!important}.level{place-self:flex-end}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵi"}]}],"ngOnInit":[{"__symbolic":"method"}],"getRequiredByPostion":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵi":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":12,"character":47},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":14,"character":19}]}],"getRequiredCompetencyById":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"lib-gained-comptency-card","template":"<lib-app-loader *ngIf=\"loading === true\"></lib-app-loader>\r\n<ng-container *ngFor=\"let proficency of gainedproficencyData; let i = index\">\r\n <div class=\"card-container example-container container-balanced\">\r\n <ng-container *ngIf=\"proficency?.title\">\r\n <div class=\"title\">{{ proficency?.title }}</div>\r\n </ng-container>\r\n\r\n <div class=\"levelsTitle\" i18n>Levels:</div>\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n [expanded]=\"i === selectedProficiencyIndex\"\r\n class=\"w-full panel\"\r\n hideToggle\r\n >\r\n <mat-expansion-panel-header\r\n class=\"flex-between items-center panel-header w-full\"\r\n >\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container\r\n *ngFor=\"let proficiencyLevel of proficency?.proficiencyLevels\"\r\n >\r\n <ng-container *ngIf=\"proficiencyLevel.selected; else addLevel\">\r\n <div\r\n (click)=\"\r\n $event.stopPropagation();\r\n selectLevel(i, proficiencyLevel.displayLevel)\r\n \"\r\n class=\"level mb-1\"\r\n [ngStyle]=\"{ 'background-color': proficiencyLevel.color }\"\r\n [ngClass]=\"{\r\n 'individual-select':\r\n selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === proficiencyLevel?.displayLevel\r\n }\"\r\n >\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-container>\r\n <ng-template #addLevel>\r\n <div (click)=\"$event.stopPropagation()\" class=\"level mb-1\">\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <div\r\n class=\"level mb-1\"\r\n (click)=\"$event.stopPropagation(); selectLevel(i, -1)\"\r\n >\r\n <mat-icon\r\n [ngClass]=\"{ arrowReverse: selectedProficiencyIndex === i }\"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <div>\r\n <span class=\"log-header\" i18n>Log:</span>\r\n <ng-container\r\n *ngFor=\"let log of proficency?.logs; let logIndex = index; let last = last; \"\r\n >\r\n <ng-container\r\n *ngIf=\"\r\n selectedDisplayLevel === -1 ||\r\n (selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === log.level)\r\n \"\r\n >\r\n <div class=\"log\" [ngClass]=\"{'border-bottom-0': last}\">\r\n <div class=\"flex\">\r\n <ng-container *ngIf=\"log.header\">\r\n <span class=\"\"\r\n i18n>Level </span> <span>{{ log.level }}: {{ log.header }}</span\r\n >\r\n <span class=\"log-date mr-2\">{{\r\n log?.date | date : \"dd/MM/yyyy\"\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf=\"log.description\">\r\n <div\r\n class=\"mt-2\"\r\n [ngClass]=\"{ 'hide-content': !log.keyboardArrowUp }\"\r\n >\r\n {{ log.description }}\r\n </div>\r\n <div class=\"justify-end\">\r\n <mat-icon\r\n (click)=\"log.keyboardArrowUp = !log.keyboardArrowUp\"\r\n class=\"mr-3\"\r\n [ngClass]=\"{ arrowReverse: log.keyboardArrowUp }\"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n </div>\r\n <!-- <hr> -->\r\n</ng-container>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.date{font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-300)}.justify-end{display:flex;justify-content:flex-end}.card-container{background:var(--white);border-bottom:1px solid #ddd;padding:5px 4px}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:18px}.levelsTitle{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.panel{box-shadow:0 0!important;padding:1px 3px 1px 0}.panel-header{padding:0!important;background:0 0!important}.panel-header-description{margin:0!important;padding:1px}.arrowReverse{transform:rotateX(180deg)}.level{width:47px;max-width:16.6%;height:36px;display:flex;justify-content:center;align-items:center;box-shadow:0 0 2.17333px rgba(0,0,0,.2509803922)}.log-header{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.log{font-style:italic;font-size:14px;line-height:16px;letter-spacing:-.02em;color:var(--gray-400);border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.log-date{font-style:normal;font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-400);margin:0 auto}::ng-deep .mat-expansion-panel-body{padding:0!important}:host ::ng-deep .mat-content{display:unset!important}.hide-content{display:none}.individual-select{border:2px solid #1c5d95}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵk"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":23,"character":26},{"__symbolic":"reference","name":"ɵl"}]}],"ngOnInit":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getAllUserPassbook":[{"__symbolic":"method"}],"getAllEntity":[{"__symbolic":"method"}],"selectLevel":[{"__symbolic":"method"}]}},"ɵk":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":14,"character":35},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":20,"character":19}]}],"fetchUserPassbook":[{"__symbolic":"method"}],"fetchAllEntity":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵl":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":13,"character":42},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":15,"character":19}]}],"getActivityById":[{"__symbolic":"method"}],"getUserdetailsFromRegistry":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵm":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"lib-competency-dashboard","template":"<div class=\"content\">\r\n <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer mb-3\"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class=\"pl-2 mb-0\" i18n>Competency Dashboard</h1>\r\n\r\n <div class=\"pl-2 tab-container\">\r\n <!-- <ng-container *ngIf=\"tabIndex === 1\">\r\n <div class=\"sortIcon\">\r\n <img src=\"./assets/comptency/images/filter.png\" />\r\n </div>\r\n </ng-container> -->\r\n <mat-tab-group\r\n [ngClass]=\"{ 'header-width-icon': tabIndex === 1 }\"\r\n class=\"remove-border-bottom\"\r\n animationDuration=\"0ms\"\r\n [selectedIndex]=\"tabIndex\"\r\n (selectedTabChange)=\"changeTab($event)\"\r\n >\r\n <!-- Active Summary as Job Description -->\r\n <mat-tab i18n-label label=\"Job Description\">\r\n <h4 class=\"mt-4 mb-1\" i18n>Roles</h4>\r\n <lib-active-summary *ngIf=\"tabIndex === 0\"></lib-active-summary>\r\n </mat-tab>\r\n\r\n <!-- gained as Passbook -->\r\n <mat-tab i18n-label label=\"Passbook\">\r\n <div class=\"legend-container\">\r\n <div class=\"legend legend-blue\"></div>\r\n <h5 i18n>External</h5>\r\n <div class=\"legend legend-green\"></div>\r\n <h5 i18n>Self</h5>\r\n <div class=\"legend legend-yellow\"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf=\"tabIndex === 1\"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n <!-- required -->\r\n <mat-tab i18n-label label=\"Required\">\r\n <div class=\"required-comperencies\">\r\n <div class=\"mt-2 tab-badge\" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf=\"tabIndex === 2\"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.content{max-width:90%}.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":9,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":11,"character":31}]}],"ngOnInit":[{"__symbolic":"method"}],"navigateBack":[{"__symbolic":"method"}],"changeTab":[{"__symbolic":"method"}],"startSelfAssessment":[{"__symbolic":"method"}]}},"ɵn":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"selector":"lib-active-summary","template":"<lib-app-loader *ngIf=\"loading === true\"></lib-app-loader>\r\n<ng-container *ngFor=\"let role of roleactivitySummaries\">\r\n <div class=\"card-container\">\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n class=\"\"\r\n (opened)=\"panelOpenState = true\"\r\n (closed)=\"panelOpenState = false\"\r\n >\r\n <mat-expansion-panel-header\r\n class=\"flex-between items-center w-full\"\r\n collapsedHeight=\"auto\"\r\n expandedHeight=\"auto\"\r\n >\r\n\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container *ngIf=\"role?.roles\">\r\n <div class=\"flex flex-column w-full\">\r\n <div class=\"title\">{{ role?.roles }}</div>\r\n <div class=\"progress-status-none\" *ngIf=\"role?.averagePercentage == 0\"></div>\r\n <div class=\"progress-status\" *ngIf=\"role?.averagePercentage < 100 && role?.averagePercentage != 0\" i18n>In Progress</div>\r\n <div class=\"progress-status\" *ngIf=\"role?.averagePercentage == 100\" i18n>Completed</div>\r\n <ng-container >\r\n <!-- 'warn-bar': role?.averagePercentage < 100 && role?.averagePercentage != 0, -->\r\n <div [ngClass]=\"{'green-bar': role?.averagePercentage == 100 , 'warn-bar': role?.averagePercentage < 100 && role?.averagePercentage != 0 }\">\r\n <mat-progress-bar class=\"bar-progress-colour\" mode=\"determinate\" value={{role?.averagePercentage}} class=\"mt-1\"></mat-progress-bar>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <lib-app-loader *ngIf=\"acordianLoading === true\"></lib-app-loader>\r\n <div class=\"expand-container\" *ngIf=\"roleactivitySummaries.length>0\">\r\n <!-- list of activity -->\r\n <div class=\"activity-badge\" i18n>Activities</div>\r\n <ng-container\r\n *ngFor=\"let activity of role?.activities; let i = index\"\r\n >\r\n <div class=\"activity-title\" *ngIf=\"activity.title\">\r\n - {{ activity.title }}\r\n </div>\r\n\r\n\r\n </ng-container>\r\n <ng-container *ngIf=\"role?.activities\">\r\n <lib-competency-accordion [competencyList]=\"role?.activities\"></lib-competency-accordion>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n\r\n </div>\r\n</ng-container>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px}.spinner-loading{display:flex;justify-content:center}.title{font-size:20px;line-height:19px;letter-spacing:-.02em;color:var(--blue)}.icon-down{place-self:flex-end;color:var(--black)!important}:host ::ng-deep .mat-expansion-panel{height:auto}:host ::ng-deep .mat-expansion-panel-header:hover{background:inherit!important}:host ::ng-deep .mat-expansion-panel-body{padding:0 0 16px!important}:host ::ng-deep .mat-expansion-panel-header{border-radius:10px!important;padding:10px 10px 0}:host ::ng-deep .mat-expansion-indicator:after{color:var(--black)!important}:host ::ng-deep .mat-expansion-panel-header-description{margin-right:0!important}.activity-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black);margin-bottom:10px;padding:0 10px}.competency-container{background:var(--white);box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;padding:10px;margin:18px 0 15px}.competency-container .competency-title{font-size:20px;line-height:25px;letter-spacing:-.02em;color:var(--black);margin-bottom:20px}.competency-container .level{font-size:24px;line-height:24px;letter-spacing:-.02em;color:var(--blue)}.expand-container{padding:15px 0 0}.activity-badge{font-weight:400;font-size:14px;color:#1c5d95;background:#ebf4fb;border-radius:50px;width:-moz-fit-content;width:fit-content;padding:5px 20px;margin:0 10px 15px}.mat-progress-bar{border-radius:40px;height:4px}.value{position:relative;bottom:19px;color:#1c5d95;width:275px;display:flex;justify-content:center}::ng-deep.green-bar .theme-igot.day-mode .mat-progress-bar-fill::after{background:no-repeat padding-box #34d6a4!important;border-radius:40px}::ng-deep.warn-bar .mat-progress-bar-fill::after{background:no-repeat padding-box #f1cf8a!important;border-radius:40px}::ng-deep.theme-igot.day-mode .mat-progress-bar-buffer{background-color:#f5f5f5}.progress-status{font-style:italic;font-weight:400;font-size:12px;color:#000;place-self:end}.progress-status-none{visibility:hidden}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵl"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":31,"character":26},{"__symbolic":"reference","name":"ɵk"}]}],"ngOnInit":[{"__symbolic":"method"}],"getProgress":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getActivityByRole":[{"__symbolic":"method"}],"designationMap":[{"__symbolic":"method"}],"getActivityByRoleId":[{"__symbolic":"method"}],"getEntityById":[{"__symbolic":"method"}],"getAveragepercentage":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵo":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-competency-accordion","template":"<div class=\"competency-badge\" i18n>Competencies :</div>\r\n<ng-container *ngFor=\"let competency of competencyList; let i = index\">\r\n <ng-container *ngIf=\"competency.competency\">\r\n <mat-accordion>\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header\r\n class=\"flex-between items-center w-full\"\r\n collapsedHeight=\"auto\"\r\n expandedHeight=\"auto\"\r\n >\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container *ngIf=\"competency.competency\">\r\n <div class=\"flex flex-row align-items-center gap-2\">\r\n <div>\r\n <ng-container *ngIf=\"competency.completionPercentage == 100\">\r\n <mat-icon class=\"circle-tick cursor-pointer\"\r\n >check_circle</mat-icon\r\n >\r\n </ng-container>\r\n <ng-container *ngIf=\"competency.completionPercentage < 100\">\r\n <mat-progress-spinner\r\n diameter=\"20\"\r\n strokeWidth=\"2\"\r\n mode=\"determinate\"\r\n [value]=\"competency.completionPercentage\"\r\n ></mat-progress-spinner>\r\n </ng-container>\r\n </div>\r\n <div class=\"competency-title\">{{ competency.competency }}</div>\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <!-- <lib-app-loader *ngIf=\"acordianLoading === true\"></lib-app-loader> -->\r\n <div class=\"expand-container\">\r\n <!-- list of levels -->\r\n <div class=\"Levels-badge\" i18n>Levels :</div>\r\n <ng-container *ngFor=\"let level of competency.levels; let i = index\">\r\n <div class=\"flex flex-row align-items-center gap-2\">\r\n <div>\r\n <ng-container *ngIf=\"level.achived\">\r\n <mat-icon class=\"circle-tick cursor-pointer\"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n <ng-container *ngIf=\"!level.achived\" >\r\n <mat-icon class=\"non-progress cursor-pointer\"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n </div>\r\n <div class=\"Levels-title\">{{ i + 1 }} : {{ level.name }}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n <hr />\r\n </ng-container>\r\n</ng-container>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.competency-badge{font-weight:400;font-size:14px;color:#1c5d95;padding:0 10px;margin-top:20px}.competency-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black)}.expand-container{padding:0 10px}.Levels-badge{font-size:14px;color:#1c5d95;margin-bottom:5px}.circle-tick{display:flex;justify-content:center;align-items:center;color:#27ae60;font-size:18px!important}.non-progress{visibility:hidden}"]}]}],"members":{"competencyList":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}}},"origins":{"EntryModule":"./entry-module/entry-module","SelfAssessmentModule":"./self-assessment/self-assessment.module","CompetencyModule":"./competency/competency.module","ɵa":"./entry-module/components/slef-assessment-entry/slef-assessment-entry.component","ɵb":"./entry-module/components/competency-entry/competency-entry.component","ɵc":"./entry-module/services/config.service","ɵd":"./entry-module/services/configuration-context","ɵe":"./self-assessment/components/self-assessment-card/self-assessment-card.component","ɵf":"./self-assessment/service/self-assessment.service","ɵg":"./self-assessment/components/self-assessment/self-assessment.component","ɵh":"./competency/components/required-comptency-card/required-comptency-card.component","ɵi":"./competency/services/required-competency.service","ɵj":"./competency/components/gained-comptency-card/gained-comptency-card.component","ɵk":"./competency/services/gained.service","ɵl":"./competency/services/active-summary.service","ɵm":"./competency/components/competency-dashboard/competency-dashboard.component","ɵn":"./competency/components/active-summary/active-summary.component","ɵo":"./competency/components/competency-accordion/competency-accordion.component"},"importAs":"@aastrika_npmjs/comptency"} | ||
{"__symbolic":"module","version":4,"metadata":{"EntryModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":12,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":13,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}],"providers":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["configContext"],"value":{"ngModule":{"__symbolic":"reference","name":"EntryModule"},"providers":[{"__symbolic":"reference","name":"ɵc"},{"provide":"config","useValue":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"configContext"},"member":"config"}}]}}}},"SelfAssessmentModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵg"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":13,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":14,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":15,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"CoreModule","line":16,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵg"}]}]}],"members":{}},"CompetencyModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":17,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵm"},{"__symbolic":"reference","name":"ɵn"},{"__symbolic":"reference","name":"ɵo"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatTabsModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":26,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatExpansionModule","line":27,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressBarModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressSpinnerModule","line":29,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":30,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"CoreModule","line":31,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/self-assessment","name":"SelfAssessmentModule","line":32,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵm"},{"__symbolic":"reference","name":"ɵn"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-slef-assessment-entry","template":"<button class=\"mat-primary-background \"\r\n (click)=\"navigateTo()\" i18n> Self Assessment\r\n</button>","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;background:#1c5d95!important;border-radius:50px;color:#fff;border:none;gap:8px;width:310px;cursor:pointer}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":9,"character":28}]}],"ngOnInit":[{"__symbolic":"method"}],"navigateTo":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-competency-entry","template":"<button class=\"mat-primary-background \"\r\n (click)=\"navigateTo()\" i18n> Competency Dashboard\r\n</button>","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;background:#1c5d95!important;border-radius:50px;color:#fff;border:none;gap:8px;width:310px;cursor:pointer}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"navigateTo":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":11,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":11,"character":27},"arguments":["config"]}]],"parameters":[{"__symbolic":"reference","name":"ɵd"}]}],"setConfig":[{"__symbolic":"method"}],"getConfig":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵd":{"__symbolic":"class","members":{}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"lib-self-assessment-card","template":"<div class=\"card_box\">\r\n <ng-container *ngIf=\"cardData?.title\">\r\n <div class=\"title\">{{ cardData?.title }}</div>\r\n </ng-container>\r\n <!-- <ng-container *ngIf=\"cardData?.description\">\r\n <div class=\"description\">{{ cardData?.description }}</div>\r\n </ng-container> -->\r\n <div class=\"flex flex-row gap-3 mt-3\">\r\n <!-- <button class=\"assess-btn\">Assess</button> -->\r\n <ng-container *ngFor=\"let btn of btnType\">\r\n <ng-container *ngIf=\"btn.courseId == cardData.contentId\">\r\n <button\r\n *ngIf=\"btn.type === 'START'\"\r\n mat-button\r\n class=\"assess-btn btn-small\"\r\n (click)=\"startSelfAssesment(cardData)\"\r\n i18n\r\n >\r\n Assess\r\n </button>\r\n <button\r\n *ngIf=\"btn.type === 'RESUME'\"\r\n mat-button\r\n class=\"reassess-btn btn-small\"\r\n (click)=\"startSelfAssesment(cardData)\"\r\n i18n\r\n >\r\n Re-Assess\r\n </button>\r\n <button\r\n *ngIf=\"btn.type === 'DONE'\"\r\n mat-button\r\n disabled\r\n class=\"done-btn btn-small\"\r\n (click)=\"startSelfAssesment(cardData)\"\r\n i18n\r\n >\r\n Done\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <button class=\"btn-long\" i18n (click)=\"viewCourses(cardData)\">View Courses</button>\r\n </div>\r\n</div>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card_box{margin:7px 2px 15px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:7px}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.startBtn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-style:italic;font-size:14px;line-height:17px;cursor:pointer;margin-top:4px}.assess-btn{background:#1c5d95;color:#fff}.reassess-btn{background:#52ad9d;color:#fff}.done-btn{background-color:#bfbfbf;color:grey}.btn-small{border-radius:50px;width:-moz-fit-content;width:fit-content;padding:3px 20px;border:none;cursor:pointer}.btn-long{border:1px solid #1c5d95;border-radius:50px;color:#1c5d95;background-color:inherit;width:-moz-fit-content;width:fit-content;padding:3px 30px;cursor:pointer}"]}]}],"members":{"cardData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"btnType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":15,"character":20},{"__symbolic":"reference","name":"ɵf"}]}],"ngOnInit":[{"__symbolic":"method"}],"startSelfAssesment":[{"__symbolic":"method"}],"viewCourses":[{"__symbolic":"method"}]}},"ɵf":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":10,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":11,"character":19},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":11,"character":54}]}],"getCompetencyCourseIdentifier":[{"__symbolic":"method"}],"fetchHiearchyDetails":[{"__symbolic":"method"}],"fetchPrgressDetails":[{"__symbolic":"method"}],"getUserdetailsFromRegistry":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"selector":"lib-self-assessment","template":"<lib-app-loader *ngIf=\"loading === true\"></lib-app-loader>\r\n<div class=\"content\" *ngIf=\"selfAssessmentData\">\r\n <!-- <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer\">chevron_left</mat-icon> -->\r\n <!-- <h1 class=\" mb-1 pl-2 \">Self Assessment</h1> -->\r\n <ng-container *ngFor=\"let cardData of selfAssessmentData\">\r\n <ng-container *ngIf=\"cardData\">\r\n <lib-self-assessment-card [cardData]=\"cardData\" [btnType]=\"btnType\"></lib-self-assessment-card>\r\n </ng-container>\r\n </ng-container>\r\n</div>","styles":[""]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common","name":"Location","line":22,"character":22},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":24,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"getCompetencyData":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getCompetencyCourse":[{"__symbolic":"method"}],"getProgress":[{"__symbolic":"method"}],"navigateBack":[{"__symbolic":"method"}]}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"lib-required-comptency-card","template":"<lib-self-assessment></lib-self-assessment>","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.start-btn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-size:20px;cursor:pointer;margin-top:15px}.log-title{font-size:14px;line-height:24px;letter-spacing:-.02em;color:#1c5d95}.log{border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.logs{padding:5px}.log-items{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}:host ::ng-deep .mat-expansion-panel-header:hover{background:rgba(255,255,255,.98)!important}:host ::ng-deep .mat-content{display:flex!important}.level{place-self:flex-end}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵi"}]}],"ngOnInit":[{"__symbolic":"method"}],"getRequiredByPostion":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵi":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":13,"character":47},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":15,"character":19},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":15,"character":53}]}],"getRequiredCompetencyById":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"lib-gained-comptency-card","template":"<lib-app-loader *ngIf=\"loading === true\"></lib-app-loader>\r\n<ng-container *ngFor=\"let proficency of gainedproficencyData; let i = index\">\r\n <div class=\"card-container example-container container-balanced\">\r\n <ng-container *ngIf=\"proficency?.title\">\r\n <div class=\"title\">{{ proficency?.title }}</div>\r\n </ng-container>\r\n\r\n <div class=\"levelsTitle\" i18n>Levels:</div>\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n [expanded]=\"i === selectedProficiencyIndex\"\r\n class=\"w-full panel\"\r\n hideToggle\r\n >\r\n <mat-expansion-panel-header\r\n class=\"flex-between items-center panel-header w-full\"\r\n >\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container\r\n *ngFor=\"let proficiencyLevel of proficency?.proficiencyLevels\"\r\n >\r\n <ng-container *ngIf=\"proficiencyLevel.selected; else addLevel\">\r\n <div\r\n (click)=\"\r\n $event.stopPropagation();\r\n selectLevel(i, proficiencyLevel.displayLevel)\r\n \"\r\n class=\"level mb-1\"\r\n [ngStyle]=\"{ 'background-color': proficiencyLevel.color }\"\r\n [ngClass]=\"{\r\n 'individual-select':\r\n selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === proficiencyLevel?.displayLevel\r\n }\"\r\n >\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-container>\r\n <ng-template #addLevel>\r\n <div (click)=\"$event.stopPropagation()\" class=\"level mb-1\">\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <div\r\n class=\"level mb-1\"\r\n (click)=\"$event.stopPropagation(); selectLevel(i, -1)\"\r\n >\r\n <mat-icon\r\n [ngClass]=\"{ arrowReverse: selectedProficiencyIndex === i }\"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <div>\r\n <span class=\"log-header\" i18n>Log:</span>\r\n <ng-container\r\n *ngFor=\"let log of proficency?.logs; let logIndex = index; let last = last; \"\r\n >\r\n <ng-container\r\n *ngIf=\"\r\n selectedDisplayLevel === -1 ||\r\n (selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === log.level)\r\n \"\r\n >\r\n <div class=\"log\" [ngClass]=\"{'border-bottom-0': last}\">\r\n <div class=\"flex\">\r\n <ng-container *ngIf=\"log.header\">\r\n <span class=\"\"\r\n i18n>Level </span> <span>{{ log.level }}: {{ log.header }}</span\r\n >\r\n <span class=\"log-date mr-2\">{{\r\n log?.date | date : \"dd/MM/yyyy\"\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf=\"log.description\">\r\n <div\r\n class=\"mt-2\"\r\n [ngClass]=\"{ 'hide-content': !log.keyboardArrowUp }\"\r\n >\r\n {{ log.description }}\r\n </div>\r\n <div class=\"justify-end\">\r\n <mat-icon\r\n (click)=\"log.keyboardArrowUp = !log.keyboardArrowUp\"\r\n class=\"mr-3\"\r\n [ngClass]=\"{ arrowReverse: log.keyboardArrowUp }\"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n </div>\r\n <!-- <hr> -->\r\n</ng-container>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.date{font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-300)}.justify-end{display:flex;justify-content:flex-end}.card-container{background:var(--white);border-bottom:1px solid #ddd;padding:5px 4px}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:18px}.levelsTitle{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.panel{box-shadow:0 0!important;padding:1px 3px 1px 0}.panel-header{padding:0!important;background:0 0!important}.panel-header-description{margin:0!important;padding:1px}.arrowReverse{transform:rotateX(180deg)}.level{width:47px;max-width:16.6%;height:36px;display:flex;justify-content:center;align-items:center;box-shadow:0 0 2.17333px rgba(0,0,0,.2509803922)}.log-header{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.log{font-style:italic;font-size:14px;line-height:16px;letter-spacing:-.02em;color:var(--gray-400);border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.log-date{font-style:normal;font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-400);margin:0 auto}::ng-deep .mat-expansion-panel-body{padding:0!important}:host ::ng-deep .mat-content{display:unset!important}.hide-content{display:none}.individual-select{border:2px solid #1c5d95}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵk"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":24,"character":26},{"__symbolic":"reference","name":"ɵl"}]}],"ngOnInit":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getAllUserPassbook":[{"__symbolic":"method"}],"getAllEntity":[{"__symbolic":"method"}],"selectLevel":[{"__symbolic":"method"}]}},"ɵk":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":15,"character":35},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":12,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":21,"character":19},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":21,"character":53}]}],"fetchUserPassbook":[{"__symbolic":"method"}],"fetchAllEntity":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵl":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":14,"character":42},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":16,"character":19},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":16,"character":53}]}],"getActivityById":[{"__symbolic":"method"}],"getUserdetailsFromRegistry":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵm":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"lib-competency-dashboard","template":"<div class=\"content\" [ngClass]=\"isMobileApp ? 'content-mobile' : 'content'\">\r\n <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer mb-3\"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class=\"pl-2 mb-0\" i18n>Competency Dashboard</h1>\r\n\r\n <div class=\"pl-2 tab-container\">\r\n <!-- <ng-container *ngIf=\"tabIndex === 1\">\r\n <div class=\"sortIcon\">\r\n <img src=\"./assets/comptency/images/filter.png\" />\r\n </div>\r\n </ng-container> -->\r\n <mat-tab-group\r\n [ngClass]=\"{ 'header-width-icon': tabIndex === 1 }\"\r\n class=\"remove-border-bottom\"\r\n animationDuration=\"0ms\"\r\n [selectedIndex]=\"tabIndex\"\r\n (selectedTabChange)=\"changeTab($event)\"\r\n >\r\n <!-- Active Summary as Job Description -->\r\n <mat-tab i18n-label label=\"Job Description\">\r\n <h4 class=\"mt-4 mb-1\" i18n>Roles</h4>\r\n <lib-active-summary *ngIf=\"tabIndex === 0\"></lib-active-summary>\r\n </mat-tab>\r\n\r\n <!-- gained as Passbook -->\r\n <mat-tab i18n-label label=\"Passbook\">\r\n <div class=\"legend-container\">\r\n <div class=\"legend legend-blue\"></div>\r\n <h5 i18n>External</h5>\r\n <div class=\"legend legend-green\"></div>\r\n <h5 i18n>Self</h5>\r\n <div class=\"legend legend-yellow\"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf=\"tabIndex === 1\"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n <!-- required -->\r\n <mat-tab i18n-label label=\"Required\">\r\n <div class=\"required-comperencies\">\r\n <div class=\"mt-2 tab-badge\" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf=\"tabIndex === 2\"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}@media only screen and (max-width:599px){.content{max-width:90%}}.content-mobile{padding:70px 0;max-width:100%;margin:0 10px}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":10,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":14,"character":31},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":14,"character":61}]}],"ngOnInit":[{"__symbolic":"method"}],"navigateBack":[{"__symbolic":"method"}],"changeTab":[{"__symbolic":"method"}],"startSelfAssessment":[{"__symbolic":"method"}]}},"ɵn":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"selector":"lib-active-summary","template":"<lib-app-loader *ngIf=\"loading === true\"></lib-app-loader>\r\n<ng-container *ngFor=\"let role of roleactivitySummaries\">\r\n <div class=\"card-container\">\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n class=\"\"\r\n (opened)=\"panelOpenState = true\"\r\n (closed)=\"panelOpenState = false\"\r\n >\r\n <mat-expansion-panel-header\r\n class=\"flex-between items-center w-full\"\r\n collapsedHeight=\"auto\"\r\n expandedHeight=\"auto\"\r\n >\r\n\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container *ngIf=\"role?.roles\">\r\n <div class=\"flex flex-column w-full\">\r\n <div class=\"title\">{{ role?.roles }}</div>\r\n <div class=\"progress-status-none\" *ngIf=\"role?.averagePercentage == 0\"></div>\r\n <div class=\"progress-status\" *ngIf=\"role?.averagePercentage < 100 && role?.averagePercentage != 0\" i18n>In Progress</div>\r\n <div class=\"progress-status\" *ngIf=\"role?.averagePercentage == 100\" i18n>Completed</div>\r\n <ng-container >\r\n <!-- 'warn-bar': role?.averagePercentage < 100 && role?.averagePercentage != 0, -->\r\n <div [ngClass]=\"{'green-bar': role?.averagePercentage == 100 , 'warn-bar': role?.averagePercentage < 100 && role?.averagePercentage != 0 }\">\r\n <mat-progress-bar class=\"bar-progress-colour\" mode=\"determinate\" value={{role?.averagePercentage}} class=\"mt-1\"></mat-progress-bar>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <lib-app-loader *ngIf=\"acordianLoading === true\"></lib-app-loader>\r\n <div class=\"expand-container\" *ngIf=\"roleactivitySummaries.length>0\">\r\n <!-- list of activity -->\r\n <div class=\"activity-badge\" i18n>Activities</div>\r\n <ng-container\r\n *ngFor=\"let activity of role?.activities; let i = index\"\r\n >\r\n <div class=\"activity-title\" *ngIf=\"activity.title\">\r\n - {{ activity.title }}\r\n </div>\r\n\r\n\r\n </ng-container>\r\n <ng-container *ngIf=\"role?.activities\">\r\n <lib-competency-accordion [competencyList]=\"role?.activities\"></lib-competency-accordion>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n\r\n </div>\r\n</ng-container>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px}.spinner-loading{display:flex;justify-content:center}.title{font-size:20px;line-height:19px;letter-spacing:-.02em;color:var(--blue)}.icon-down{place-self:flex-end;color:var(--black)!important}:host ::ng-deep .mat-expansion-panel{height:auto}:host ::ng-deep .mat-expansion-panel-header:hover{background:inherit!important}:host ::ng-deep .mat-expansion-panel-body{padding:0 0 16px!important}:host ::ng-deep .mat-expansion-panel-header{border-radius:10px!important;padding:10px 10px 0}:host ::ng-deep .mat-expansion-indicator:after{color:var(--black)!important}:host ::ng-deep .mat-expansion-panel-header-description{margin-right:0!important}.activity-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black);margin-bottom:10px;padding:0 10px}.competency-container{background:var(--white);box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;padding:10px;margin:18px 0 15px}.competency-container .competency-title{font-size:20px;line-height:25px;letter-spacing:-.02em;color:var(--black);margin-bottom:20px}.competency-container .level{font-size:24px;line-height:24px;letter-spacing:-.02em;color:var(--blue)}.expand-container{padding:15px 0 0}.activity-badge{font-weight:400;font-size:14px;color:#1c5d95;background:#ebf4fb;border-radius:50px;width:-moz-fit-content;width:fit-content;padding:5px 20px;margin:0 10px 15px}.mat-progress-bar{border-radius:40px;height:4px}.value{position:relative;bottom:19px;color:#1c5d95;width:275px;display:flex;justify-content:center}::ng-deep.green-bar .theme-igot.day-mode .mat-progress-bar-fill::after{background:no-repeat padding-box #34d6a4!important;border-radius:40px}::ng-deep.warn-bar .mat-progress-bar-fill::after{background:no-repeat padding-box #f1cf8a!important;border-radius:40px}::ng-deep.theme-igot.day-mode .mat-progress-bar-buffer{background-color:#f5f5f5}.progress-status{font-style:italic;font-weight:400;font-size:12px;color:#000;place-self:end}.progress-status-none{visibility:hidden}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵl"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":31,"character":26},{"__symbolic":"reference","name":"ɵk"}]}],"ngOnInit":[{"__symbolic":"method"}],"getProgress":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getActivityByRole":[{"__symbolic":"method"}],"designationMap":[{"__symbolic":"method"}],"getActivityByRoleId":[{"__symbolic":"method"}],"getEntityById":[{"__symbolic":"method"}],"getAveragepercentage":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵo":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-competency-accordion","template":"<div class=\"competency-badge\" i18n>Competencies :</div>\r\n<ng-container *ngFor=\"let competency of competencyList; let i = index\">\r\n <ng-container *ngIf=\"competency.competency\">\r\n <mat-accordion>\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header\r\n class=\"flex-between items-center w-full\"\r\n collapsedHeight=\"auto\"\r\n expandedHeight=\"auto\"\r\n >\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container *ngIf=\"competency.competency\">\r\n <div class=\"flex flex-row align-items-center gap-2\">\r\n <div>\r\n <ng-container *ngIf=\"competency.completionPercentage == 100\">\r\n <mat-icon class=\"circle-tick cursor-pointer\"\r\n >check_circle</mat-icon\r\n >\r\n </ng-container>\r\n <ng-container *ngIf=\"competency.completionPercentage < 100\">\r\n <mat-progress-spinner\r\n diameter=\"20\"\r\n strokeWidth=\"2\"\r\n mode=\"determinate\"\r\n [value]=\"competency.completionPercentage\"\r\n ></mat-progress-spinner>\r\n </ng-container>\r\n </div>\r\n <div class=\"competency-title\">{{ competency.competency }}</div>\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <!-- <lib-app-loader *ngIf=\"acordianLoading === true\"></lib-app-loader> -->\r\n <div class=\"expand-container\">\r\n <!-- list of levels -->\r\n <div class=\"Levels-badge\" i18n>Levels :</div>\r\n <ng-container *ngFor=\"let level of competency.levels; let i = index\">\r\n <div class=\"flex flex-row align-items-center gap-2\">\r\n <div>\r\n <ng-container *ngIf=\"level.achived\">\r\n <mat-icon class=\"circle-tick cursor-pointer\"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n <ng-container *ngIf=\"!level.achived\" >\r\n <mat-icon class=\"non-progress cursor-pointer\"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n </div>\r\n <div class=\"Levels-title\">{{ i + 1 }} : {{ level.name }}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n <hr />\r\n </ng-container>\r\n</ng-container>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.competency-badge{font-weight:400;font-size:14px;color:#1c5d95;padding:0 10px;margin-top:20px}.competency-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black)}.expand-container{padding:0 10px}.Levels-badge{font-size:14px;color:#1c5d95;margin-bottom:5px}.circle-tick{display:flex;justify-content:center;align-items:center;color:#27ae60;font-size:18px!important}.non-progress{visibility:hidden}"]}]}],"members":{"competencyList":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}}},"origins":{"EntryModule":"./entry-module/entry-module","SelfAssessmentModule":"./self-assessment/self-assessment.module","CompetencyModule":"./competency/competency.module","ɵa":"./entry-module/components/slef-assessment-entry/slef-assessment-entry.component","ɵb":"./entry-module/components/competency-entry/competency-entry.component","ɵc":"./entry-module/services/config.service","ɵd":"./entry-module/services/configuration-context","ɵe":"./self-assessment/components/self-assessment-card/self-assessment-card.component","ɵf":"./self-assessment/service/self-assessment.service","ɵg":"./self-assessment/components/self-assessment/self-assessment.component","ɵh":"./competency/components/required-comptency-card/required-comptency-card.component","ɵi":"./competency/services/required-competency.service","ɵj":"./competency/components/gained-comptency-card/gained-comptency-card.component","ɵk":"./competency/services/gained.service","ɵl":"./competency/services/active-summary.service","ɵm":"./competency/components/competency-dashboard/competency-dashboard.component","ɵn":"./competency/components/active-summary/active-summary.component","ɵo":"./competency/components/competency-accordion/competency-accordion.component"},"importAs":"@aastrika_npmjs/comptency"} |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("lodash-es"),require("@aastrika_npmjs/comptency/core"),require("@angular/common/http"),require("rxjs"),require("rxjs/operators"),require("@aastrika_npmjs/comptency/entry-module"),require("@angular/router"),require("@angular/common"),require("@angular/material"),require("@aastrika_npmjs/comptency/self-assessment")):"function"==typeof define&&define.amd?define("@aastrika_npmjs/comptency/competency",["exports","@angular/core","lodash-es","@aastrika_npmjs/comptency/core","@angular/common/http","rxjs","rxjs/operators","@aastrika_npmjs/comptency/entry-module","@angular/router","@angular/common","@angular/material","@aastrika_npmjs/comptency/self-assessment"],n):n(((e=e||self).aastrika_npmjs=e.aastrika_npmjs||{},e.aastrika_npmjs.comptency=e.aastrika_npmjs.comptency||{},e.aastrika_npmjs.comptency.competency={}),e.ng.core,e.lodashEs,e.aastrika_npmjs.comptency.core,e.ng.common.http,e.rxjs,e.rxjs.operators,e.aastrika_npmjs.comptency["entry-module"],e.ng.router,e.ng.common,e.ng.material,e.aastrika_npmjs.comptency["self-assessment"])}(this,(function(e,n,t,r,i,a,o,c,l,s,p,d){"use strict"; | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("lodash-es"),require("@aastrika_npmjs/comptency/core"),require("@angular/common/http"),require("@aastrika_npmjs/comptency/entry-module"),require("rxjs"),require("rxjs/operators"),require("@angular/router"),require("@angular/common"),require("@angular/material"),require("@aastrika_npmjs/comptency/self-assessment")):"function"==typeof define&&define.amd?define("@aastrika_npmjs/comptency/competency",["exports","@angular/core","lodash-es","@aastrika_npmjs/comptency/core","@angular/common/http","@aastrika_npmjs/comptency/entry-module","rxjs","rxjs/operators","@angular/router","@angular/common","@angular/material","@aastrika_npmjs/comptency/self-assessment"],n):n(((e=e||self).aastrika_npmjs=e.aastrika_npmjs||{},e.aastrika_npmjs.comptency=e.aastrika_npmjs.comptency||{},e.aastrika_npmjs.comptency.competency={}),e.ng.core,e.lodashEs,e.aastrika_npmjs.comptency.core,e.ng.common.http,e.aastrika_npmjs.comptency["entry-module"],e.rxjs,e.rxjs.operators,e.ng.router,e.ng.common,e.ng.material,e.aastrika_npmjs.comptency["self-assessment"])}(this,(function(e,n,t,r,i,o,a,c,l,s,p,d){"use strict"; | ||
/*! ***************************************************************************** | ||
@@ -15,3 +15,3 @@ Copyright (c) Microsoft Corporation. | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var g=function(e,n){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)};function m(e,n){function t(){this.constructor=e}g(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}function u(e,n,t,r){var i,a=arguments.length,o=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(o=(a<3?i(o):a>3?i(n,t,o):i(n,t))||o);return a>3&&o&&Object.defineProperty(n,t,o),o}function f(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,i,a=t.call(e),o=[];try{for(;(void 0===n||n-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(t=a.return)&&t.call(a)}finally{if(i)throw i.error}}return o}var y=function(){function e(){var e=this;this.formatedActivities=function(e){if(!t.isEmpty(e))return e},this.formatedActivitityByPostion=function(n,r){if(t.get(n,"result")){var i=t.get(n,"result.response").children;if(i.length>0){var a=t.reduce(i,(function(n,i){return n.push({roles:"hi"==r?e.getHiName(i):t.get(i,"name"),id:t.get(i,"id"),description:t.get(i,"description"),averagePercentage:0,code:t.get(i.additionalProperties,"Code")}),n}),[]);return a=t.sortBy(a,[function(e){return e.code}])}}},this.formatedActivitityByRoleId=function(n,r){if(t.get(n,"result")){var i=t.get(n,"result.response").children;if(i.length>0){var a=t.reduce(i,(function(n,i){return n.push({title:"hi"==r?e.getHiName(i):t.get(i,"name"),cid:t.get(i,"id"),description:t.get(i,"description"),code:t.get(i.additionalProperties,"Code")}),n}),[]);return t.sortBy(a,[function(e){return e.code}])}}},this.formatedCompetency=function(n,r,i){var a=[];return t.forEach(n,(function(n){if(t.get(n,"result")){var o=t.get(n,"result.response").children;o.length>0&&t.forEach(o,(function(o){a.push({levels:e.getLevels(t.get(o,"id"),r,i),competency:"hi"==i?e.getHiName(o):t.get(o,"name"),id:t.get(o,"id"),description:t.get(o,"description"),cid:t.get(n,"result.response").id,lastLevel:e.getheighestLevel(t.get(o,"id"),r),completionPercentage:e.getCompeletionPercentage(t.get(o,"id"),r),code:t.get(o.additionalProperties,"Code")})}))}})),a=t.sortBy(a,[function(e){return e.code}]),t.uniqBy(a,"id")}}return e.prototype.getHiName=function(e){return t.get(e.additionalProperties,"lang-hi-name")?t.get(e.additionalProperties,"lang-hi-name"):t.get(e,"name")},e.prototype.getLevels=function(e,n,r){var i=[{name:"hi"==r?"स्तर 1":"Level 1",achived:!1,level:"1"},{name:"hi"==r?"स्तर 2":"Level 2",achived:!1,level:"2"},{name:"hi"==r?"स्तर 3":"Level 3",achived:!1,level:"3"},{name:"hi"==r?"स्तर 4":"Level 4",achived:!1,level:"4"},{name:"hi"==r?"स्तर 5":"Level 5",achived:!1,level:"5"}],a=null;return t.forEach(n,(function(n){t.toNumber(n.competencyId)===e&&(a=t.uniq(n.levelsAchieve))})),t.forEach(i,(function(e){t.forEach(a,(function(n){n==e.level&&(e.achived=!0)}))})),i},e.prototype.getheighestLevel=function(e,n){var r="";return t.forEach(n,(function(n){t.toNumber(n.competencyId)===e&&(r=n.levelId.competencyLevelId)})),r},e.prototype.getCompeletionPercentage=function(e,n){var r=0;return t.forEach(n,(function(n){t.toNumber(n.competencyId)===e&&(r=t.toNumber(n.levelId.competencyLevelId))})),r=100*r/5},e.prototype.formatedGainedCompetency=function(e,n,r){var i=this,a=[];return t.forEach(e,(function(o){var c=t.get(o,"id");t.forEach(n,(function(n){if(n.competencies.hasOwnProperty(c)){var o=n.competencies[c];a.push({title:"hi"==r?i.getHiTitle(c,e,o):t.get(o,"additionalParams.competencyName"),logs:i.acquiredPassbookLogs(t.get(o,"acquiredDetails")),proficiencyLevels:i.acauiredChannelColourCode(t.get(o,"acquiredDetails")),competencyStoreData:i.competencyStoreDataFomat(o),titleHi:i.getHiTitle(c,e,o)})}}))})),a},e.prototype.getHiTitle=function(e,n,r){var i;return t.forEach(n,(function(n){n.id==e&&(i=t.get(n.additionalProperties,"lang-hi-name")?t.get(n.additionalProperties,"lang-hi-name"):t.get(r,"additionalParams.competencyName"))})),i},e.prototype.acquiredPassbookLogs=function(e){var n=[];return e.length>0&&t.forEach(e,(function(e){n.push({header:t.get(e,"courseName")?t.get(e,"courseName"):t.get(e,"acquiredChannel"),date:t.get(e,"createdDate"),description:t.get(e,"additionalParams.description"),keyboardArrowUp:!0,level:t.toNumber(t.get(e,"competencyLevelId"))})})),n},e.prototype.acauiredChannelColourCode=function(e){var n=[{color:"#FFFBB0",displayLevel:1,selected:!1},{color:"#FFFBB0",displayLevel:2,selected:!1},{color:"#FFFBB0",displayLevel:3,selected:!1},{color:"#FFFBB0",displayLevel:4,selected:!1},{color:"#FFFBB0",displayLevel:5,selected:!1}];return t.forEach(e,(function(e){switch(t.get(e,"acquiredChannel")){case"course":case"Course":t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#FFFBB0",n.selected=!0)}));break;case"selfAssessment":t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#A4DFCA",n.selected=!0)}));break;case"admin":t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#7cb5e6",n.selected=!0)}));break;default:t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#FFFBB0",n.selected=!1)}))}})),n},e.prototype.competencyStoreDataFomat=function(e){var n=[];return e.acquiredDetails&&t.forEach(e.acquiredDetails,(function(e){e.competencyLevelId&&n.push(e.competencyLevelId)})),{competencyId:e.competencyId,competencyName:e.additionalParams.competencyName,levelId:t.maxBy(e.acquiredDetails,"competencyLevelId"),levelsAchieve:n}},e}(),v=function(e){function t(n){return e.call(this,n)||this}return m(t,e),t.prototype.getRequiredCompetencyById=function(e){var n={url:r.urlConfig.getEntityById(3),data:e};return console.log("reqBody",n),this.post(n)},t.ctorParameters=function(){return[{type:i.HttpClient}]},t.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(i.HttpClient))},token:t,providedIn:"root"}),t=u([n.Injectable({providedIn:"root"})],t)}(r.DataService),h=function(){function e(e){this.requiredCompetencyService=e,this.competencyData=[{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Store management and planning and coordination of THR and Dry ration",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"},{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Early Childhood Care Education",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"},{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Early Childhood Care Education",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"}],this.panelOpenState=!0,this.customCollapsedHeight="100px",this.customExpandedHeight="100px",this.loading=!1,this.logs=[{index:1,header:"Understands HCM guidelines"},{index:2,header:"Lists raw material required"},{index:3,header:"Plans for storage"},{index:4,header:"Motivates the AWH and children on optimal hygiene and handwashing practices"},{index:5,header:"Course-Name Completion"}],this.requestUtil=new y}return e.prototype.ngOnInit=function(){},e.prototype.getRequiredByPostion=function(){return this.requiredCompetencyService.getRequiredCompetencyById({filter:{isDetail:!0}})},e.prototype.ngOnDestroy=function(){},e.ctorParameters=function(){return[{type:v}]},e=u([n.Component({selector:"lib-required-comptency-card",template:"<lib-self-assessment></lib-self-assessment>",styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.start-btn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-size:20px;cursor:pointer;margin-top:15px}.log-title{font-size:14px;line-height:24px;letter-spacing:-.02em;color:#1c5d95}.log{border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.logs{padding:5px}.log-items{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}:host ::ng-deep .mat-expansion-panel-header:hover{background:rgba(255,255,255,.98)!important}:host ::ng-deep .mat-content{display:flex!important}.level{place-self:flex-end}"]})],e)}(),b=function(e){function t(n){var t=e.call(this,n)||this;return t.competencyData=new a.BehaviorSubject(void 0),t.competencyData$=t.competencyData.asObservable(),t}return m(t,e),t.prototype.fetchUserPassbook=function(e){var n={url:r.urlConfig.getUserPassbook(),data:e};return this.post(n)},t.prototype.fetchAllEntity=function(e){var n={url:r.urlConfig.getAllEntity(),data:e};return this.post(n)},t.ctorParameters=function(){return[{type:i.HttpClient}]},t.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(i.HttpClient))},token:t,providedIn:"root"}),t=u([n.Injectable({providedIn:"root"})],t)}(r.DataService),x=function(e){function t(n){return e.call(this,n)||this}return m(t,e),t.prototype.getActivityById=function(e){var n={url:r.urlConfig.getEntityById(e.id),data:e};return this.post(n)},t.prototype.getUserdetailsFromRegistry=function(e){var n={url:r.urlConfig.getUserdetailsFromRegistry(e.id)};return this.get(n).pipe(o.map((function(e){return e.result.response})))},t.ctorParameters=function(){return[{type:i.HttpClient}]},t.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(i.HttpClient))},token:t,providedIn:"root"}),t=u([n.Injectable({providedIn:"root"})],t)}(r.DataService),C=function(){function e(e,n,t){this.gainedService=e,this.configService=n,this.activeSummaryService=t,this.loading=!1,this.panelOpenState=!1,this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=-1,this.requestUtil=new y}return e.prototype.ngOnInit=function(){var e=this;this.getUserDetails().subscribe((function(n){e.profileData=n.profileDetails.preferences?n.profileDetails.preferences.language:"en"})),this.loading=!0;var n=this.getAllEntity(),r=this.getAllUserPassbook();a.forkJoin([n,r]).subscribe((function(n){var r=e.requestUtil.formatedGainedCompetency(n[0].result.response,n[1].result.content,e.profileData);if(e.gainedproficencyData=r,e.gainedproficencyData){var i=[];t.forEach(e.gainedproficencyData,(function(e){e.competencyStoreData&&i.push(e.competencyStoreData)})),e.gainedService.competencyData.next(i)}e.loading=!1}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getAllUserPassbook=function(){return this.gainedService.fetchUserPassbook({request:{typeName:"competency"}})},e.prototype.getAllEntity=function(){return this.gainedService.fetchAllEntity({search:{type:"Competency"}})},e.prototype.selectLevel=function(e,n){e!==this.selectedProficiencyIndex||-1!==n&&n!==this.selectedDisplayLevel?this.selectedProficiencyIndex=e:this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=n},e.ctorParameters=function(){return[{type:b},{type:c.ConfigService},{type:x}]},e=u([n.Component({selector:"lib-gained-comptency-card",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let proficency of gainedproficencyData; let i = index">\r\n <div class="card-container example-container container-balanced">\r\n <ng-container *ngIf="proficency?.title">\r\n <div class="title">{{ proficency?.title }}</div>\r\n </ng-container>\r\n\r\n <div class="levelsTitle" i18n>Levels:</div>\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n [expanded]="i === selectedProficiencyIndex"\r\n class="w-full panel"\r\n hideToggle\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center panel-header w-full"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container\r\n *ngFor="let proficiencyLevel of proficency?.proficiencyLevels"\r\n >\r\n <ng-container *ngIf="proficiencyLevel.selected; else addLevel">\r\n <div\r\n (click)="\r\n $event.stopPropagation();\r\n selectLevel(i, proficiencyLevel.displayLevel)\r\n "\r\n class="level mb-1"\r\n [ngStyle]="{ \'background-color\': proficiencyLevel.color }"\r\n [ngClass]="{\r\n \'individual-select\':\r\n selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === proficiencyLevel?.displayLevel\r\n }"\r\n >\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-container>\r\n <ng-template #addLevel>\r\n <div (click)="$event.stopPropagation()" class="level mb-1">\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <div\r\n class="level mb-1"\r\n (click)="$event.stopPropagation(); selectLevel(i, -1)"\r\n >\r\n <mat-icon\r\n [ngClass]="{ arrowReverse: selectedProficiencyIndex === i }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <div>\r\n <span class="log-header" i18n>Log:</span>\r\n <ng-container\r\n *ngFor="let log of proficency?.logs; let logIndex = index; let last = last; "\r\n >\r\n <ng-container\r\n *ngIf="\r\n selectedDisplayLevel === -1 ||\r\n (selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === log.level)\r\n "\r\n >\r\n <div class="log" [ngClass]="{\'border-bottom-0\': last}">\r\n <div class="flex">\r\n <ng-container *ngIf="log.header">\r\n <span class=""\r\n i18n>Level </span> <span>{{ log.level }}: {{ log.header }}</span\r\n >\r\n <span class="log-date mr-2">{{\r\n log?.date | date : "dd/MM/yyyy"\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf="log.description">\r\n <div\r\n class="mt-2"\r\n [ngClass]="{ \'hide-content\': !log.keyboardArrowUp }"\r\n >\r\n {{ log.description }}\r\n </div>\r\n <div class="justify-end">\r\n <mat-icon\r\n (click)="log.keyboardArrowUp = !log.keyboardArrowUp"\r\n class="mr-3"\r\n [ngClass]="{ arrowReverse: log.keyboardArrowUp }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n </div>\r\n \x3c!-- <hr> --\x3e\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.date{font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-300)}.justify-end{display:flex;justify-content:flex-end}.card-container{background:var(--white);border-bottom:1px solid #ddd;padding:5px 4px}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:18px}.levelsTitle{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.panel{box-shadow:0 0!important;padding:1px 3px 1px 0}.panel-header{padding:0!important;background:0 0!important}.panel-header-description{margin:0!important;padding:1px}.arrowReverse{transform:rotateX(180deg)}.level{width:47px;max-width:16.6%;height:36px;display:flex;justify-content:center;align-items:center;box-shadow:0 0 2.17333px rgba(0,0,0,.2509803922)}.log-header{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.log{font-style:italic;font-size:14px;line-height:16px;letter-spacing:-.02em;color:var(--gray-400);border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.log-date{font-style:normal;font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-400);margin:0 auto}::ng-deep .mat-expansion-panel-body{padding:0!important}:host ::ng-deep .mat-content{display:unset!important}.hide-content{display:none}.individual-select{border:2px solid #1c5d95}"]})],e)}(),w=function(){function e(e){this.router=e,this.stateChange=new n.EventEmitter,this.tabIndex=1}return e.prototype.ngOnInit=function(){this.tabIndex=1},e.prototype.navigateBack=function(){this.router.navigate(["/app/profile-view"])},e.prototype.changeTab=function(e){this.tabIndex=e.index},e.prototype.startSelfAssessment=function(){this.stateChange.emit({navigation:!0})},e.ctorParameters=function(){return[{type:l.Router}]},u([n.Output()],e.prototype,"stateChange",void 0),e=u([n.Component({selector:"lib-competency-dashboard",template:'<div class="content">\r\n <mat-icon (click)="navigateBack()" class="cursor-pointer mb-3"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class="pl-2 mb-0" i18n>Competency Dashboard</h1>\r\n\r\n <div class="pl-2 tab-container">\r\n \x3c!-- <ng-container *ngIf="tabIndex === 1">\r\n <div class="sortIcon">\r\n <img src="./assets/comptency/images/filter.png" />\r\n </div>\r\n </ng-container> --\x3e\r\n <mat-tab-group\r\n [ngClass]="{ \'header-width-icon\': tabIndex === 1 }"\r\n class="remove-border-bottom"\r\n animationDuration="0ms"\r\n [selectedIndex]="tabIndex"\r\n (selectedTabChange)="changeTab($event)"\r\n >\r\n \x3c!-- Active Summary as Job Description --\x3e\r\n <mat-tab i18n-label label="Job Description">\r\n <h4 class="mt-4 mb-1" i18n>Roles</h4>\r\n <lib-active-summary *ngIf="tabIndex === 0"></lib-active-summary>\r\n </mat-tab>\r\n\r\n \x3c!-- gained as Passbook --\x3e\r\n <mat-tab i18n-label label="Passbook">\r\n <div class="legend-container">\r\n <div class="legend legend-blue"></div>\r\n <h5 i18n>External</h5>\r\n <div class="legend legend-green"></div>\r\n <h5 i18n>Self</h5>\r\n <div class="legend legend-yellow"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf="tabIndex === 1"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n \x3c!-- required --\x3e\r\n <mat-tab i18n-label label="Required">\r\n <div class="required-comperencies">\r\n <div class="mt-2 tab-badge" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf="tabIndex === 2"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.content{max-width:90%}.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"]})],e)}(),I=function(){function e(e,n,t){this.activeSummaryService=e,this.configService=n,this.gainedService=t,this.panelOpenState=!0,this.loading=!1,this.acordianLoading=!1,this.requestUtil=new y}return e.prototype.ngOnInit=function(){var e=this;this.getProgress(),this.loading=!0,this.getUserDetails().pipe(o.mergeMap((function(n){if(e.profileData=n.profileDetails.profileReq,e.language=n.profileDetails.preferences?n.profileDetails.preferences.language:"en",e.language||(e.language="en"),e.profileData)return e.getActivityByRole()}))).subscribe((function(n){var r=e.requestUtil.formatedActivitityByPostion(n,e.language);e.roleactivitySummaries=r,t.forEach(e.roleactivitySummaries,(function(n){n.id&&e.getActivityByRoleId(n.id)})),console.log(e.roleactivitySummaries),e.loading=!1}))},e.prototype.getProgress=function(){var e=this;this.gainedService.competencyData$.subscribe((function(n){e.competencyProgress=n}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getActivityByRole=function(){var e;this.profileData.professionalDetails&&(e=this.profileData.professionalDetails[0].designation);var n={filter:{isDetail:!0},id:this.designationMap(e)};return this.activeSummaryService.getActivityById(n)},e.prototype.designationMap=function(e){var n={AWW:95,ANM:210};return n.hasOwnProperty(e)?n[e]:1},e.prototype.getActivityByRoleId=function(e){var n=this;this.acordianLoading=!0;var r=t.findIndex(this.roleactivitySummaries,{id:e});this.roleactivitySummaries[r].activities=[],this.getEntityById(e).pipe(o.mergeMap((function(e){var i=n.requestUtil.formatedActivitityByRoleId(e,n.language);n.roleactivitySummaries[r].activities=i;var o=t.map(n.roleactivitySummaries[r].activities,"cid"),c=[];return t.forEach(o,(function(e){c.push(n.getEntityById(e))})),n.acordianLoading=!1,a.forkJoin.apply(void 0,function(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(f(arguments[n]));return e}(c))}))).subscribe((function(e){var i=n.requestUtil.formatedCompetency(e,n.competencyProgress,n.language);n.roleactivitySummaries[r].activities=t.values(t.merge(t.keyBy(i,"id"),t.keyBy(n.roleactivitySummaries[r].activities,"cid"))),n.roleactivitySummaries[r].averagePercentage=[];var a=n.getAveragepercentage(i);n.roleactivitySummaries[r].averagePercentage=a}))},e.prototype.getEntityById=function(e){var n={filter:{isDetail:!0},id:e};return this.activeSummaryService.getActivityById(n)},e.prototype.getAveragepercentage=function(e){var n=e.length,r=[];return t.forEach(e,(function(e){r.push(e.completionPercentage)})),t.round(t.sum(r)/n)},e.prototype.ngOnDestroy=function(){this.unsubscribe&&this.unsubscribe.unsubscribe()},e.ctorParameters=function(){return[{type:x},{type:c.ConfigService},{type:b}]},e=u([n.Component({selector:"lib-active-summary",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let role of roleactivitySummaries">\r\n <div class="card-container">\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n class=""\r\n (opened)="panelOpenState = true"\r\n (closed)="panelOpenState = false"\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="role?.roles">\r\n <div class="flex flex-column w-full">\r\n <div class="title">{{ role?.roles }}</div>\r\n <div class="progress-status-none" *ngIf="role?.averagePercentage == 0"></div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage < 100 && role?.averagePercentage != 0" i18n>In Progress</div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage == 100" i18n>Completed</div>\r\n <ng-container >\r\n \x3c!-- \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0, --\x3e\r\n <div [ngClass]="{\'green-bar\': role?.averagePercentage == 100 , \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0 }">\r\n <mat-progress-bar class="bar-progress-colour" mode="determinate" value={{role?.averagePercentage}} class="mt-1"></mat-progress-bar>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader>\r\n <div class="expand-container" *ngIf="roleactivitySummaries.length>0">\r\n \x3c!-- list of activity --\x3e\r\n <div class="activity-badge" i18n>Activities</div>\r\n <ng-container\r\n *ngFor="let activity of role?.activities; let i = index"\r\n >\r\n <div class="activity-title" *ngIf="activity.title">\r\n - {{ activity.title }}\r\n </div>\r\n\r\n\r\n </ng-container>\r\n <ng-container *ngIf="role?.activities">\r\n <lib-competency-accordion [competencyList]="role?.activities"></lib-competency-accordion>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n\r\n </div>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px}.spinner-loading{display:flex;justify-content:center}.title{font-size:20px;line-height:19px;letter-spacing:-.02em;color:var(--blue)}.icon-down{place-self:flex-end;color:var(--black)!important}:host ::ng-deep .mat-expansion-panel{height:auto}:host ::ng-deep .mat-expansion-panel-header:hover{background:inherit!important}:host ::ng-deep .mat-expansion-panel-body{padding:0 0 16px!important}:host ::ng-deep .mat-expansion-panel-header{border-radius:10px!important;padding:10px 10px 0}:host ::ng-deep .mat-expansion-indicator:after{color:var(--black)!important}:host ::ng-deep .mat-expansion-panel-header-description{margin-right:0!important}.activity-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black);margin-bottom:10px;padding:0 10px}.competency-container{background:var(--white);box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;padding:10px;margin:18px 0 15px}.competency-container .competency-title{font-size:20px;line-height:25px;letter-spacing:-.02em;color:var(--black);margin-bottom:20px}.competency-container .level{font-size:24px;line-height:24px;letter-spacing:-.02em;color:var(--blue)}.expand-container{padding:15px 0 0}.activity-badge{font-weight:400;font-size:14px;color:#1c5d95;background:#ebf4fb;border-radius:50px;width:-moz-fit-content;width:fit-content;padding:5px 20px;margin:0 10px 15px}.mat-progress-bar{border-radius:40px;height:4px}.value{position:relative;bottom:19px;color:#1c5d95;width:275px;display:flex;justify-content:center}::ng-deep.green-bar .theme-igot.day-mode .mat-progress-bar-fill::after{background:no-repeat padding-box #34d6a4!important;border-radius:40px}::ng-deep.warn-bar .mat-progress-bar-fill::after{background:no-repeat padding-box #f1cf8a!important;border-radius:40px}::ng-deep.theme-igot.day-mode .mat-progress-bar-buffer{background-color:#f5f5f5}.progress-status{font-style:italic;font-weight:400;font-size:12px;color:#000;place-self:end}.progress-status-none{visibility:hidden}"]})],e)}(),k=function(){function e(){}return e.prototype.ngOnInit=function(){console.log("list",this.competencyList)},u([n.Input()],e.prototype,"competencyList",void 0),e=u([n.Component({selector:"lib-competency-accordion",template:'<div class="competency-badge" i18n>Competencies :</div>\r\n<ng-container *ngFor="let competency of competencyList; let i = index">\r\n <ng-container *ngIf="competency.competency">\r\n <mat-accordion>\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="competency.competency">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="competency.completionPercentage == 100">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon\r\n >\r\n </ng-container>\r\n <ng-container *ngIf="competency.completionPercentage < 100">\r\n <mat-progress-spinner\r\n diameter="20"\r\n strokeWidth="2"\r\n mode="determinate"\r\n [value]="competency.completionPercentage"\r\n ></mat-progress-spinner>\r\n </ng-container>\r\n </div>\r\n <div class="competency-title">{{ competency.competency }}</div>\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n \x3c!-- <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader> --\x3e\r\n <div class="expand-container">\r\n \x3c!-- list of levels --\x3e\r\n <div class="Levels-badge" i18n>Levels :</div>\r\n <ng-container *ngFor="let level of competency.levels; let i = index">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="level.achived">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n <ng-container *ngIf="!level.achived" >\r\n <mat-icon class="non-progress cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n </div>\r\n <div class="Levels-title">{{ i + 1 }} : {{ level.name }}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n <hr />\r\n </ng-container>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.competency-badge{font-weight:400;font-size:14px;color:#1c5d95;padding:0 10px;margin-top:20px}.competency-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black)}.expand-container{padding:0 10px}.Levels-badge{font-size:14px;color:#1c5d95;margin-bottom:5px}.circle-tick{display:flex;justify-content:center;align-items:center;color:#27ae60;font-size:18px!important}.non-progress{visibility:hidden}"]})],e)}(),D=function(){function e(){}return e=u([n.NgModule({declarations:[h,C,w,I,k],imports:[s.CommonModule,p.MatTabsModule,p.MatIconModule,p.MatExpansionModule,p.MatProgressBarModule,p.MatProgressSpinnerModule,i.HttpClientModule,r.CoreModule,d.SelfAssessmentModule],exports:[h,C,w,I]})],e)}();e.CompetencyDashboardComponent=w,e.CompetencyModule=D,e.GainedComptencyCardComponent=C,e.RequestUtil=y,e.RequiredComptencyCardComponent=h,e.ɵa=v,e.ɵb=b,e.ɵc=x,e.ɵd=I,e.ɵe=k,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
***************************************************************************** */var g=function(e,n){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)};function m(e,n){function t(){this.constructor=e}g(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}function u(e,n,t,r){var i,o=arguments.length,a=o<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a}function f(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,i,o=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a}var y=function(){function e(){var e=this;this.formatedActivities=function(e){if(!t.isEmpty(e))return e},this.formatedActivitityByPostion=function(n,r){if(t.get(n,"result")){var i=t.get(n,"result.response").children;if(i.length>0){var o=t.reduce(i,(function(n,i){return n.push({roles:"hi"==r?e.getHiName(i):t.get(i,"name"),id:t.get(i,"id"),description:t.get(i,"description"),averagePercentage:0,code:t.get(i.additionalProperties,"Code")}),n}),[]);return o=t.sortBy(o,[function(e){return e.code}])}}},this.formatedActivitityByRoleId=function(n,r){if(t.get(n,"result")){var i=t.get(n,"result.response").children;if(i.length>0){var o=t.reduce(i,(function(n,i){return n.push({title:"hi"==r?e.getHiName(i):t.get(i,"name"),cid:t.get(i,"id"),description:t.get(i,"description"),code:t.get(i.additionalProperties,"Code")}),n}),[]);return t.sortBy(o,[function(e){return e.code}])}}},this.formatedCompetency=function(n,r,i){var o=[];return t.forEach(n,(function(n){if(t.get(n,"result")){var a=t.get(n,"result.response").children;a.length>0&&t.forEach(a,(function(a){o.push({levels:e.getLevels(t.get(a,"id"),r,i),competency:"hi"==i?e.getHiName(a):t.get(a,"name"),id:t.get(a,"id"),description:t.get(a,"description"),cid:t.get(n,"result.response").id,lastLevel:e.getheighestLevel(t.get(a,"id"),r),completionPercentage:e.getCompeletionPercentage(t.get(a,"id"),r),code:t.get(a.additionalProperties,"Code")})}))}})),o=t.sortBy(o,[function(e){return e.code}]),t.uniqBy(o,"id")}}return e.prototype.getHiName=function(e){return t.get(e.additionalProperties,"lang-hi-name")?t.get(e.additionalProperties,"lang-hi-name"):t.get(e,"name")},e.prototype.getLevels=function(e,n,r){var i=[{name:"hi"==r?"स्तर 1":"Level 1",achived:!1,level:"1"},{name:"hi"==r?"स्तर 2":"Level 2",achived:!1,level:"2"},{name:"hi"==r?"स्तर 3":"Level 3",achived:!1,level:"3"},{name:"hi"==r?"स्तर 4":"Level 4",achived:!1,level:"4"},{name:"hi"==r?"स्तर 5":"Level 5",achived:!1,level:"5"}],o=null;return t.forEach(n,(function(n){t.toNumber(n.competencyId)===e&&(o=t.uniq(n.levelsAchieve))})),t.forEach(i,(function(e){t.forEach(o,(function(n){n==e.level&&(e.achived=!0)}))})),i},e.prototype.getheighestLevel=function(e,n){var r="";return t.forEach(n,(function(n){t.toNumber(n.competencyId)===e&&(r=n.levelId.competencyLevelId)})),r},e.prototype.getCompeletionPercentage=function(e,n){var r=0;return t.forEach(n,(function(n){t.toNumber(n.competencyId)===e&&(r=t.toNumber(n.levelId.competencyLevelId))})),r=100*r/5},e.prototype.formatedGainedCompetency=function(e,n,r){var i=this,o=[];return t.forEach(e,(function(a){var c=t.get(a,"id");t.forEach(n,(function(n){if(n.competencies.hasOwnProperty(c)){var a=n.competencies[c];o.push({title:"hi"==r?i.getHiTitle(c,e,a):t.get(a,"additionalParams.competencyName"),logs:i.acquiredPassbookLogs(t.get(a,"acquiredDetails")),proficiencyLevels:i.acauiredChannelColourCode(t.get(a,"acquiredDetails")),competencyStoreData:i.competencyStoreDataFomat(a),titleHi:i.getHiTitle(c,e,a)})}}))})),o},e.prototype.getHiTitle=function(e,n,r){var i;return t.forEach(n,(function(n){n.id==e&&(i=t.get(n.additionalProperties,"lang-hi-name")?t.get(n.additionalProperties,"lang-hi-name"):t.get(r,"additionalParams.competencyName"))})),i},e.prototype.acquiredPassbookLogs=function(e){var n=[];return e.length>0&&t.forEach(e,(function(e){n.push({header:t.get(e,"courseName")?t.get(e,"courseName"):t.get(e,"acquiredChannel"),date:t.get(e,"createdDate"),description:t.get(e,"additionalParams.description"),keyboardArrowUp:!0,level:t.toNumber(t.get(e,"competencyLevelId"))})})),n},e.prototype.acauiredChannelColourCode=function(e){var n=[{color:"#FFFBB0",displayLevel:1,selected:!1},{color:"#FFFBB0",displayLevel:2,selected:!1},{color:"#FFFBB0",displayLevel:3,selected:!1},{color:"#FFFBB0",displayLevel:4,selected:!1},{color:"#FFFBB0",displayLevel:5,selected:!1}];return t.forEach(e,(function(e){switch(t.get(e,"acquiredChannel")){case"course":case"Course":t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#FFFBB0",n.selected=!0)}));break;case"selfAssessment":t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#A4DFCA",n.selected=!0)}));break;case"admin":t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#7cb5e6",n.selected=!0)}));break;default:t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#FFFBB0",n.selected=!1)}))}})),n},e.prototype.competencyStoreDataFomat=function(e){var n=[];return e.acquiredDetails&&t.forEach(e.acquiredDetails,(function(e){e.competencyLevelId&&n.push(e.competencyLevelId)})),{competencyId:e.competencyId,competencyName:e.additionalParams.competencyName,levelId:t.maxBy(e.acquiredDetails,"competencyLevelId"),levelsAchieve:n}},e}(),v=function(e){function t(n,t){var r=e.call(this,n,t)||this;return r.configService=t,r}return m(t,e),t.prototype.getRequiredCompetencyById=function(e){var n={url:r.urlConfig.getEntityById(3),data:e};return console.log("reqBody",n),this.post(n)},t.ctorParameters=function(){return[{type:i.HttpClient},{type:o.ConfigService}]},t.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(i.HttpClient),n.ɵɵinject(o.ConfigService))},token:t,providedIn:"root"}),t=u([n.Injectable({providedIn:"root"})],t)}(r.DataService),h=function(){function e(e){this.requiredCompetencyService=e,this.panelOpenState=!0,this.customCollapsedHeight="100px",this.customExpandedHeight="100px",this.loading=!1,this.logs=[{index:1,header:"Understands HCM guidelines"},{index:2,header:"Lists raw material required"},{index:3,header:"Plans for storage"},{index:4,header:"Motivates the AWH and children on optimal hygiene and handwashing practices"},{index:5,header:"Course-Name Completion"}],this.requestUtil=new y}return e.prototype.ngOnInit=function(){},e.prototype.getRequiredByPostion=function(){return this.requiredCompetencyService.getRequiredCompetencyById({filter:{isDetail:!0}})},e.prototype.ngOnDestroy=function(){},e.ctorParameters=function(){return[{type:v}]},e=u([n.Component({selector:"lib-required-comptency-card",template:"<lib-self-assessment></lib-self-assessment>",styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.start-btn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-size:20px;cursor:pointer;margin-top:15px}.log-title{font-size:14px;line-height:24px;letter-spacing:-.02em;color:#1c5d95}.log{border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.logs{padding:5px}.log-items{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}:host ::ng-deep .mat-expansion-panel-header:hover{background:rgba(255,255,255,.98)!important}:host ::ng-deep .mat-content{display:flex!important}.level{place-self:flex-end}"]})],e)}(),b=function(e){function t(n,t){var r=e.call(this,n,t)||this;return r.configService=t,r.competencyData=new a.BehaviorSubject(void 0),r.competencyData$=r.competencyData.asObservable(),r}return m(t,e),t.prototype.fetchUserPassbook=function(e,n){var t=this.configService.getConfig(),i={url:t.isMobileApp?r.urlConfig.getUserPassbookMobile():r.urlConfig.getUserPassbook(),data:e,header:t.isMobileApp?{"x-authenticated-userid":n}:""};return this.post(i)},t.prototype.fetchAllEntity=function(e){var n={url:this.configService.getConfig().isMobileApp?r.urlConfig.getAllEntityMobile():r.urlConfig.getAllEntity(),data:e};return this.post(n)},t.ctorParameters=function(){return[{type:i.HttpClient},{type:o.ConfigService}]},t.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(i.HttpClient),n.ɵɵinject(o.ConfigService))},token:t,providedIn:"root"}),t=u([n.Injectable({providedIn:"root"})],t)}(r.DataService),x=function(e){function t(n,t){var r=e.call(this,n,t)||this;return r.configService=t,r}return m(t,e),t.prototype.getActivityById=function(e){var n={url:this.configService.getConfig().isMobileApp?r.urlConfig.getEntityByIdMobile(e.id):r.urlConfig.getEntityById(e.id),data:e};return this.post(n)},t.prototype.getUserdetailsFromRegistry=function(e){var n={url:this.configService.getConfig().isMobileApp?r.urlConfig.getUserdetailsMobile(e.id):r.urlConfig.getUserdetailsFromRegistry(e.id)};return this.get(n).pipe(c.map((function(e){return e.result.response})))},t.ctorParameters=function(){return[{type:i.HttpClient},{type:o.ConfigService}]},t.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(i.HttpClient),n.ɵɵinject(o.ConfigService))},token:t,providedIn:"root"}),t=u([n.Injectable({providedIn:"root"})],t)}(r.DataService),w=function(){function e(e,n,t){this.gainedService=e,this.configService=n,this.activeSummaryService=t,this.loading=!1,this.panelOpenState=!1,this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=-1,this.requestUtil=new y}return e.prototype.ngOnInit=function(){var e=this;this.getUserDetails().subscribe((function(n){console.log(n),e.profileData=n.profileDetails.preferences?n.profileDetails.preferences.language:"en"})),this.loading=!0;var n=this.getAllEntity(),r=this.getAllUserPassbook();a.forkJoin([n,r]).subscribe((function(n){console.log(n);var r=e.requestUtil.formatedGainedCompetency(n[0].result.response,n[1].result.content,e.profileData);if(e.gainedproficencyData=r,console.log(r),e.gainedproficencyData){var i=[];t.forEach(e.gainedproficencyData,(function(e){e.competencyStoreData&&i.push(e.competencyStoreData)})),e.gainedService.competencyData.next(i)}e.loading=!1}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getAllUserPassbook=function(){var e=this.configService.getConfig().id;return this.gainedService.fetchUserPassbook({request:{typeName:"competency"}},e)},e.prototype.getAllEntity=function(){return this.gainedService.fetchAllEntity({search:{type:"Competency"}})},e.prototype.selectLevel=function(e,n){e!==this.selectedProficiencyIndex||-1!==n&&n!==this.selectedDisplayLevel?this.selectedProficiencyIndex=e:this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=n},e.ctorParameters=function(){return[{type:b},{type:o.ConfigService},{type:x}]},e=u([n.Component({selector:"lib-gained-comptency-card",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let proficency of gainedproficencyData; let i = index">\r\n <div class="card-container example-container container-balanced">\r\n <ng-container *ngIf="proficency?.title">\r\n <div class="title">{{ proficency?.title }}</div>\r\n </ng-container>\r\n\r\n <div class="levelsTitle" i18n>Levels:</div>\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n [expanded]="i === selectedProficiencyIndex"\r\n class="w-full panel"\r\n hideToggle\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center panel-header w-full"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container\r\n *ngFor="let proficiencyLevel of proficency?.proficiencyLevels"\r\n >\r\n <ng-container *ngIf="proficiencyLevel.selected; else addLevel">\r\n <div\r\n (click)="\r\n $event.stopPropagation();\r\n selectLevel(i, proficiencyLevel.displayLevel)\r\n "\r\n class="level mb-1"\r\n [ngStyle]="{ \'background-color\': proficiencyLevel.color }"\r\n [ngClass]="{\r\n \'individual-select\':\r\n selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === proficiencyLevel?.displayLevel\r\n }"\r\n >\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-container>\r\n <ng-template #addLevel>\r\n <div (click)="$event.stopPropagation()" class="level mb-1">\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <div\r\n class="level mb-1"\r\n (click)="$event.stopPropagation(); selectLevel(i, -1)"\r\n >\r\n <mat-icon\r\n [ngClass]="{ arrowReverse: selectedProficiencyIndex === i }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <div>\r\n <span class="log-header" i18n>Log:</span>\r\n <ng-container\r\n *ngFor="let log of proficency?.logs; let logIndex = index; let last = last; "\r\n >\r\n <ng-container\r\n *ngIf="\r\n selectedDisplayLevel === -1 ||\r\n (selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === log.level)\r\n "\r\n >\r\n <div class="log" [ngClass]="{\'border-bottom-0\': last}">\r\n <div class="flex">\r\n <ng-container *ngIf="log.header">\r\n <span class=""\r\n i18n>Level </span> <span>{{ log.level }}: {{ log.header }}</span\r\n >\r\n <span class="log-date mr-2">{{\r\n log?.date | date : "dd/MM/yyyy"\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf="log.description">\r\n <div\r\n class="mt-2"\r\n [ngClass]="{ \'hide-content\': !log.keyboardArrowUp }"\r\n >\r\n {{ log.description }}\r\n </div>\r\n <div class="justify-end">\r\n <mat-icon\r\n (click)="log.keyboardArrowUp = !log.keyboardArrowUp"\r\n class="mr-3"\r\n [ngClass]="{ arrowReverse: log.keyboardArrowUp }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n </div>\r\n \x3c!-- <hr> --\x3e\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.date{font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-300)}.justify-end{display:flex;justify-content:flex-end}.card-container{background:var(--white);border-bottom:1px solid #ddd;padding:5px 4px}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:18px}.levelsTitle{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.panel{box-shadow:0 0!important;padding:1px 3px 1px 0}.panel-header{padding:0!important;background:0 0!important}.panel-header-description{margin:0!important;padding:1px}.arrowReverse{transform:rotateX(180deg)}.level{width:47px;max-width:16.6%;height:36px;display:flex;justify-content:center;align-items:center;box-shadow:0 0 2.17333px rgba(0,0,0,.2509803922)}.log-header{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.log{font-style:italic;font-size:14px;line-height:16px;letter-spacing:-.02em;color:var(--gray-400);border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.log-date{font-style:normal;font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-400);margin:0 auto}::ng-deep .mat-expansion-panel-body{padding:0!important}:host ::ng-deep .mat-content{display:unset!important}.hide-content{display:none}.individual-select{border:2px solid #1c5d95}"]})],e)}(),C=function(){function e(e,t){this.router=e,this.configService=t,this.stateChange=new n.EventEmitter,this.tabIndex=1}return e.prototype.ngOnInit=function(){this.tabIndex=1,this.isMobileApp=this.configService.getConfig().isMobileApp},e.prototype.navigateBack=function(){this.router.navigate(["/app/profile-view"])},e.prototype.changeTab=function(e){this.tabIndex=e.index},e.prototype.startSelfAssessment=function(){this.stateChange.emit({navigation:!0})},e.ctorParameters=function(){return[{type:l.Router},{type:o.ConfigService}]},u([n.Output()],e.prototype,"stateChange",void 0),e=u([n.Component({selector:"lib-competency-dashboard",template:'<div class="content" [ngClass]="isMobileApp ? \'content-mobile\' : \'content\'">\r\n <mat-icon (click)="navigateBack()" class="cursor-pointer mb-3"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class="pl-2 mb-0" i18n>Competency Dashboard</h1>\r\n\r\n <div class="pl-2 tab-container">\r\n \x3c!-- <ng-container *ngIf="tabIndex === 1">\r\n <div class="sortIcon">\r\n <img src="./assets/comptency/images/filter.png" />\r\n </div>\r\n </ng-container> --\x3e\r\n <mat-tab-group\r\n [ngClass]="{ \'header-width-icon\': tabIndex === 1 }"\r\n class="remove-border-bottom"\r\n animationDuration="0ms"\r\n [selectedIndex]="tabIndex"\r\n (selectedTabChange)="changeTab($event)"\r\n >\r\n \x3c!-- Active Summary as Job Description --\x3e\r\n <mat-tab i18n-label label="Job Description">\r\n <h4 class="mt-4 mb-1" i18n>Roles</h4>\r\n <lib-active-summary *ngIf="tabIndex === 0"></lib-active-summary>\r\n </mat-tab>\r\n\r\n \x3c!-- gained as Passbook --\x3e\r\n <mat-tab i18n-label label="Passbook">\r\n <div class="legend-container">\r\n <div class="legend legend-blue"></div>\r\n <h5 i18n>External</h5>\r\n <div class="legend legend-green"></div>\r\n <h5 i18n>Self</h5>\r\n <div class="legend legend-yellow"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf="tabIndex === 1"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n \x3c!-- required --\x3e\r\n <mat-tab i18n-label label="Required">\r\n <div class="required-comperencies">\r\n <div class="mt-2 tab-badge" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf="tabIndex === 2"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}@media only screen and (max-width:599px){.content{max-width:90%}}.content-mobile{padding:70px 0;max-width:100%;margin:0 10px}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"]})],e)}(),I=function(){function e(e,n,t){this.activeSummaryService=e,this.configService=n,this.gainedService=t,this.panelOpenState=!0,this.loading=!1,this.acordianLoading=!1,this.requestUtil=new y}return e.prototype.ngOnInit=function(){var e=this;this.getProgress(),this.loading=!0,this.getUserDetails().pipe(c.mergeMap((function(n){if(e.profileData=n.profileDetails.profileReq,e.language=n.profileDetails.preferences?n.profileDetails.preferences.language:"en",e.language||(e.language="en"),e.profileData)return e.getActivityByRole()}))).subscribe((function(n){var r=e.requestUtil.formatedActivitityByPostion(n,e.language);e.roleactivitySummaries=r,t.forEach(e.roleactivitySummaries,(function(n){n.id&&e.getActivityByRoleId(n.id)})),console.log(e.roleactivitySummaries),e.loading=!1})),console.log(this.roleactivitySummaries)},e.prototype.getProgress=function(){var e=this;this.gainedService.competencyData$.subscribe((function(n){e.competencyProgress=n}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getActivityByRole=function(){var e;this.profileData.professionalDetails&&(e=this.profileData.professionalDetails[0].designation);var n={filter:{isDetail:!0},id:this.designationMap(e)};return this.activeSummaryService.getActivityById(n)},e.prototype.designationMap=function(e){var n={AWW:95,ANM:210};return n.hasOwnProperty(e)?n[e]:1},e.prototype.getActivityByRoleId=function(e){var n=this;this.acordianLoading=!0;var r=t.findIndex(this.roleactivitySummaries,{id:e});this.roleactivitySummaries[r].activities=[],this.getEntityById(e).pipe(c.mergeMap((function(e){var i=n.requestUtil.formatedActivitityByRoleId(e,n.language);n.roleactivitySummaries[r].activities=i;var o=t.map(n.roleactivitySummaries[r].activities,"cid"),c=[];return t.forEach(o,(function(e){c.push(n.getEntityById(e))})),n.acordianLoading=!1,a.forkJoin.apply(void 0,function(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(f(arguments[n]));return e}(c))}))).subscribe((function(e){var i=n.requestUtil.formatedCompetency(e,n.competencyProgress,n.language);n.roleactivitySummaries[r].activities=t.values(t.merge(t.keyBy(i,"id"),t.keyBy(n.roleactivitySummaries[r].activities,"cid"))),n.roleactivitySummaries[r].averagePercentage=[];var o=n.getAveragepercentage(i);n.roleactivitySummaries[r].averagePercentage=o}))},e.prototype.getEntityById=function(e){var n={filter:{isDetail:!0},id:e};return this.activeSummaryService.getActivityById(n)},e.prototype.getAveragepercentage=function(e){var n=e.length,r=[];return t.forEach(e,(function(e){r.push(e.completionPercentage)})),t.round(t.sum(r)/n)},e.prototype.ngOnDestroy=function(){this.unsubscribe&&this.unsubscribe.unsubscribe()},e.ctorParameters=function(){return[{type:x},{type:o.ConfigService},{type:b}]},e=u([n.Component({selector:"lib-active-summary",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let role of roleactivitySummaries">\r\n <div class="card-container">\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n class=""\r\n (opened)="panelOpenState = true"\r\n (closed)="panelOpenState = false"\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="role?.roles">\r\n <div class="flex flex-column w-full">\r\n <div class="title">{{ role?.roles }}</div>\r\n <div class="progress-status-none" *ngIf="role?.averagePercentage == 0"></div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage < 100 && role?.averagePercentage != 0" i18n>In Progress</div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage == 100" i18n>Completed</div>\r\n <ng-container >\r\n \x3c!-- \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0, --\x3e\r\n <div [ngClass]="{\'green-bar\': role?.averagePercentage == 100 , \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0 }">\r\n <mat-progress-bar class="bar-progress-colour" mode="determinate" value={{role?.averagePercentage}} class="mt-1"></mat-progress-bar>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader>\r\n <div class="expand-container" *ngIf="roleactivitySummaries.length>0">\r\n \x3c!-- list of activity --\x3e\r\n <div class="activity-badge" i18n>Activities</div>\r\n <ng-container\r\n *ngFor="let activity of role?.activities; let i = index"\r\n >\r\n <div class="activity-title" *ngIf="activity.title">\r\n - {{ activity.title }}\r\n </div>\r\n\r\n\r\n </ng-container>\r\n <ng-container *ngIf="role?.activities">\r\n <lib-competency-accordion [competencyList]="role?.activities"></lib-competency-accordion>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n\r\n </div>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px}.spinner-loading{display:flex;justify-content:center}.title{font-size:20px;line-height:19px;letter-spacing:-.02em;color:var(--blue)}.icon-down{place-self:flex-end;color:var(--black)!important}:host ::ng-deep .mat-expansion-panel{height:auto}:host ::ng-deep .mat-expansion-panel-header:hover{background:inherit!important}:host ::ng-deep .mat-expansion-panel-body{padding:0 0 16px!important}:host ::ng-deep .mat-expansion-panel-header{border-radius:10px!important;padding:10px 10px 0}:host ::ng-deep .mat-expansion-indicator:after{color:var(--black)!important}:host ::ng-deep .mat-expansion-panel-header-description{margin-right:0!important}.activity-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black);margin-bottom:10px;padding:0 10px}.competency-container{background:var(--white);box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;padding:10px;margin:18px 0 15px}.competency-container .competency-title{font-size:20px;line-height:25px;letter-spacing:-.02em;color:var(--black);margin-bottom:20px}.competency-container .level{font-size:24px;line-height:24px;letter-spacing:-.02em;color:var(--blue)}.expand-container{padding:15px 0 0}.activity-badge{font-weight:400;font-size:14px;color:#1c5d95;background:#ebf4fb;border-radius:50px;width:-moz-fit-content;width:fit-content;padding:5px 20px;margin:0 10px 15px}.mat-progress-bar{border-radius:40px;height:4px}.value{position:relative;bottom:19px;color:#1c5d95;width:275px;display:flex;justify-content:center}::ng-deep.green-bar .theme-igot.day-mode .mat-progress-bar-fill::after{background:no-repeat padding-box #34d6a4!important;border-radius:40px}::ng-deep.warn-bar .mat-progress-bar-fill::after{background:no-repeat padding-box #f1cf8a!important;border-radius:40px}::ng-deep.theme-igot.day-mode .mat-progress-bar-buffer{background-color:#f5f5f5}.progress-status{font-style:italic;font-weight:400;font-size:12px;color:#000;place-self:end}.progress-status-none{visibility:hidden}"]})],e)}(),k=function(){function e(){}return e.prototype.ngOnInit=function(){console.log("list",this.competencyList)},u([n.Input()],e.prototype,"competencyList",void 0),e=u([n.Component({selector:"lib-competency-accordion",template:'<div class="competency-badge" i18n>Competencies :</div>\r\n<ng-container *ngFor="let competency of competencyList; let i = index">\r\n <ng-container *ngIf="competency.competency">\r\n <mat-accordion>\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="competency.competency">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="competency.completionPercentage == 100">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon\r\n >\r\n </ng-container>\r\n <ng-container *ngIf="competency.completionPercentage < 100">\r\n <mat-progress-spinner\r\n diameter="20"\r\n strokeWidth="2"\r\n mode="determinate"\r\n [value]="competency.completionPercentage"\r\n ></mat-progress-spinner>\r\n </ng-container>\r\n </div>\r\n <div class="competency-title">{{ competency.competency }}</div>\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n \x3c!-- <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader> --\x3e\r\n <div class="expand-container">\r\n \x3c!-- list of levels --\x3e\r\n <div class="Levels-badge" i18n>Levels :</div>\r\n <ng-container *ngFor="let level of competency.levels; let i = index">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="level.achived">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n <ng-container *ngIf="!level.achived" >\r\n <mat-icon class="non-progress cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n </div>\r\n <div class="Levels-title">{{ i + 1 }} : {{ level.name }}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n <hr />\r\n </ng-container>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.competency-badge{font-weight:400;font-size:14px;color:#1c5d95;padding:0 10px;margin-top:20px}.competency-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black)}.expand-container{padding:0 10px}.Levels-badge{font-size:14px;color:#1c5d95;margin-bottom:5px}.circle-tick{display:flex;justify-content:center;align-items:center;color:#27ae60;font-size:18px!important}.non-progress{visibility:hidden}"]})],e)}(),D=function(){function e(){}return e=u([n.NgModule({declarations:[h,w,C,I,k],imports:[s.CommonModule,p.MatTabsModule,p.MatIconModule,p.MatExpansionModule,p.MatProgressBarModule,p.MatProgressSpinnerModule,i.HttpClientModule,r.CoreModule,d.SelfAssessmentModule],exports:[h,w,C,I]})],e)}();e.CompetencyDashboardComponent=C,e.CompetencyModule=D,e.GainedComptencyCardComponent=w,e.RequestUtil=y,e.RequiredComptencyCardComponent=h,e.ɵa=v,e.ɵb=b,e.ɵc=x,e.ɵd=I,e.ɵe=k,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=aastrika_npmjs-comptency-competency.umd.min.js.map |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('rxjs/operators'), require('rxjs'), require('lodash-es'), require('@angular/common')) : | ||
typeof define === 'function' && define.amd ? define('@aastrika_npmjs/comptency/core', ['exports', '@angular/core', '@angular/common/http', 'rxjs/operators', 'rxjs', 'lodash-es', '@angular/common'], factory) : | ||
(global = global || self, factory((global.aastrika_npmjs = global.aastrika_npmjs || {}, global.aastrika_npmjs.comptency = global.aastrika_npmjs.comptency || {}, global.aastrika_npmjs.comptency.core = {}), global.ng.core, global.ng.common.http, global.rxjs.operators, global.rxjs, global.lodashEs, global.ng.common)); | ||
}(this, (function (exports, core, http, operators, rxjs, lodashEs, common) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('rxjs/operators'), require('rxjs'), require('@aastrika_npmjs/comptency/entry-module'), require('lodash-es'), require('@angular/common')) : | ||
typeof define === 'function' && define.amd ? define('@aastrika_npmjs/comptency/core', ['exports', '@angular/core', '@angular/common/http', 'rxjs/operators', 'rxjs', '@aastrika_npmjs/comptency/entry-module', 'lodash-es', '@angular/common'], factory) : | ||
(global = global || self, factory((global.aastrika_npmjs = global.aastrika_npmjs || {}, global.aastrika_npmjs.comptency = global.aastrika_npmjs.comptency || {}, global.aastrika_npmjs.comptency.core = {}), global.ng.core, global.ng.common.http, global.rxjs.operators, global.rxjs, global.aastrika_npmjs.comptency['entry-module'], global.lodashEs, global.ng.common)); | ||
}(this, (function (exports, core, http, operators, rxjs, entryModule, lodashEs, common) { 'use strict'; | ||
@@ -226,3 +226,3 @@ /*! ***************************************************************************** | ||
var ɵ0 = function () { return "" + urlConfig.host + urlConfig.apiSlug; }, ɵ1 = function () { return "" + urlConfig.host + urlConfig.apiProxy; }, ɵ2 = function () { return "" + urlConfig.host + urlConfig.apiPublic; }, ɵ3 = function (id) { return urlConfig.apiBasePath() + "/entityCompetency/getEntityById/" + id; }, ɵ4 = function () { return urlConfig.apiBasePath() + "/entityCompetency/getAllEntity"; }, ɵ5 = function () { return urlConfig.apiBaseProxy() + "/user/v1/passbook"; }, ɵ6 = function () { return urlConfig.apiBasePublic() + "/publicSearch/getCourses"; }, ɵ7 = function (identifier, hierarchyType) { return urlConfig.apiBaseProxy() + "/action/content/v3/hierarchy/" + identifier + "?hierarchyType=" + hierarchyType; }, ɵ8 = function (wid) { return urlConfig.apiBaseProxy() + "/api/user/v2/read/" + wid; }, ɵ9 = function (id) { return urlConfig.apiBaseProxy() + "/read/content-progres/" + id; }; | ||
var ɵ0 = function () { return "" + urlConfig.host + urlConfig.apiSlug; }, ɵ1 = function () { return "" + urlConfig.host + urlConfig.apiProxy; }, ɵ2 = function () { return "" + urlConfig.host + urlConfig.apiPublic; }, ɵ3 = function (id) { return urlConfig.apiBasePath() + "/entityCompetency/getEntityById/" + id; }, ɵ4 = function () { return urlConfig.apiBasePath() + "/entityCompetency/getAllEntity"; }, ɵ5 = function () { return urlConfig.apiBaseProxy() + "/user/v1/passbook"; }, ɵ6 = function () { return urlConfig.apiBasePublic() + "/publicSearch/getCourses"; }, ɵ7 = function (identifier, hierarchyType) { return urlConfig.apiBaseProxy() + "/action/content/v3/hierarchy/" + identifier + "?hierarchyType=" + hierarchyType; }, ɵ8 = function (wid) { return urlConfig.apiBaseProxy() + "/api/user/v2/read/" + wid; }, ɵ9 = function (id) { return urlConfig.apiBaseProxy() + "/read/content-progres/" + id; }, ɵ10 = function () { return "" + urlConfig.mobileHost + urlConfig.apiPublic + "/mobileApp/getAllEntity"; }, ɵ11 = function () { return urlConfig.mobileHost + "/api/user/v1/passbook"; }, ɵ12 = function (wid) { return urlConfig.mobileHost + "/api/user/v2/read/" + wid; }, ɵ13 = function (id) { return "" + urlConfig.mobileHost + urlConfig.apiPublic + "/mobileApp/getEntityById/" + id; }, ɵ14 = function () { return "" + urlConfig.mobileHost + urlConfig.apiPublic + "/publicSearch/getCourses"; }, ɵ15 = function () { return urlConfig.mobileHost + "/api/course/v1/content/state/read"; }; | ||
/** | ||
@@ -235,2 +235,3 @@ * urlConfig to return the api url | ||
host: window.location.protocol + "//" + window.location.host || 'https://sphere.aastrika.org', | ||
mobileHost: 'https://sphere.aastrika.org', | ||
apiSlug: '/apis/protected/v8', | ||
@@ -248,3 +249,9 @@ apiProxy: '/apis/proxies/v8', | ||
getUserdetailsFromRegistry: ɵ8, | ||
getContentProgress: ɵ9 | ||
getContentProgress: ɵ9, | ||
getAllEntityMobile: ɵ10, | ||
getUserPassbookMobile: ɵ11, | ||
getUserdetailsMobile: ɵ12, | ||
getEntityByIdMobile: ɵ13, | ||
getSearchMobile: ɵ14, | ||
getContentProgressMobile: ɵ15, | ||
}; | ||
@@ -258,3 +265,4 @@ | ||
var DataService = /** @class */ (function () { | ||
function DataService(http) { | ||
function DataService(http, configService) { | ||
this.configService = configService; | ||
this.http = http; | ||
@@ -268,4 +276,5 @@ } | ||
DataService.prototype.get = function (requestParam) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
headers: requestParam.header ? requestParam.header : this.getHeader(), | ||
headers: config.session ? this.setHeader(config.session) : requestParam.header ? requestParam.header : this.getHeader(), | ||
params: requestParam.param, | ||
@@ -288,4 +297,5 @@ observe: 'response' | ||
DataService.prototype.post = function (requestParam) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
headers: requestParam.header ? this.getHeader(requestParam.header) : this.getHeader(), | ||
headers: config.session ? this.setHeader(config.session, requestParam.header ? requestParam.header : "") : requestParam.header ? requestParam.header : this.getHeader(), | ||
params: requestParam.param | ||
@@ -317,6 +327,19 @@ }; | ||
}; | ||
DataService.prototype.setHeader = function (session, header) { | ||
var default_headers = { | ||
'Authorization': "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJTNHNNVFdjZUZqYkxUWGxiczkzUzk4dmFtODBhdkRPUiJ9.nPOCY0-bVX28iNcxxnYbGpihY3ZzfNwx0-SFCnJwjas", | ||
'X-authenticated-user-token': session ? session.access_token : '', | ||
}; | ||
if (header) { | ||
return __assign({}, default_headers, header); | ||
} | ||
else { | ||
return __assign({}, default_headers); | ||
} | ||
}; | ||
DataService.ctorParameters = function () { return [ | ||
{ type: http.HttpClient } | ||
{ type: http.HttpClient }, | ||
{ type: entryModule.ConfigService } | ||
]; }; | ||
DataService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function DataService_Factory() { return new DataService(core.ɵɵinject(http.HttpClient)); }, token: DataService, providedIn: "root" }); | ||
DataService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function DataService_Factory() { return new DataService(core.ɵɵinject(http.HttpClient), core.ɵɵinject(entryModule.ConfigService)); }, token: DataService, providedIn: "root" }); | ||
DataService = __decorate([ | ||
@@ -382,2 +405,8 @@ core.Injectable({ | ||
exports.ɵ1 = ɵ1; | ||
exports.ɵ10 = ɵ10; | ||
exports.ɵ11 = ɵ11; | ||
exports.ɵ12 = ɵ12; | ||
exports.ɵ13 = ɵ13; | ||
exports.ɵ14 = ɵ14; | ||
exports.ɵ15 = ɵ15; | ||
exports.ɵ2 = ɵ2; | ||
@@ -384,0 +413,0 @@ exports.ɵ3 = ɵ3; |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common/http"),require("rxjs/operators"),require("rxjs"),require("lodash-es"),require("@angular/common")):"function"==typeof define&&define.amd?define("@aastrika_npmjs/comptency/core",["exports","@angular/core","@angular/common/http","rxjs/operators","rxjs","lodash-es","@angular/common"],t):t(((e=e||self).aastrika_npmjs=e.aastrika_npmjs||{},e.aastrika_npmjs.comptency=e.aastrika_npmjs.comptency||{},e.aastrika_npmjs.comptency.core={}),e.ng.core,e.ng.common.http,e.rxjs.operators,e.rxjs,e.lodashEs,e.ng.common)}(this,(function(e,t,r,o,n,a,i){"use strict"; | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common/http"),require("rxjs/operators"),require("rxjs"),require("@aastrika_npmjs/comptency/entry-module"),require("lodash-es"),require("@angular/common")):"function"==typeof define&&define.amd?define("@aastrika_npmjs/comptency/core",["exports","@angular/core","@angular/common/http","rxjs/operators","rxjs","@aastrika_npmjs/comptency/entry-module","lodash-es","@angular/common"],t):t(((e=e||self).aastrika_npmjs=e.aastrika_npmjs||{},e.aastrika_npmjs.comptency=e.aastrika_npmjs.comptency||{},e.aastrika_npmjs.comptency.core={}),e.ng.core,e.ng.common.http,e.rxjs.operators,e.rxjs,e.aastrika_npmjs.comptency["entry-module"],e.lodashEs,e.ng.common)}(this,(function(e,t,r,o,n,i,a,s){"use strict"; | ||
/*! ***************************************************************************** | ||
@@ -15,3 +15,3 @@ Copyright (c) Microsoft Corporation. | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var s=function(){return(s=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function p(e,t,r,o){var n,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}var c=function(){return""+x.host+x.apiSlug},u=function(){return""+x.host+x.apiProxy},d=function(){return""+x.host+x.apiPublic},l=function(e){return x.apiBasePath()+"/entityCompetency/getEntityById/"+e},f=function(){return x.apiBasePath()+"/entityCompetency/getAllEntity"},g=function(){return x.apiBaseProxy()+"/user/v1/passbook"},h=function(){return x.apiBasePublic()+"/publicSearch/getCourses"},m=function(e,t){return x.apiBaseProxy()+"/action/content/v3/hierarchy/"+e+"?hierarchyType="+t},y=function(e){return x.apiBaseProxy()+"/api/user/v2/read/"+e},b=function(e){return x.apiBaseProxy()+"/read/content-progres/"+e},x={host:window.location.protocol+"//"+window.location.host||"https://sphere.aastrika.org",apiSlug:"/apis/protected/v8",apiProxy:"/apis/proxies/v8",apiPublic:"/apis/public/v8",apiBasePath:c,apiBaseProxy:u,apiBasePublic:d,getEntityById:l,getAllEntity:f,getUserPassbook:g,getSearch:h,getHierachyDetails:m,getUserdetailsFromRegistry:y,getContentProgress:b},v=function(){function e(e){this.http=e}return e.prototype.get=function(e){var t={headers:e.header?e.header:this.getHeader(),params:e.param,observe:"response"};return this.http.get(e.url,t).pipe(o.mergeMap((function(e){var t=e.body;e.headers;return"OK"!==t.responseCode?n.throwError(t):n.of(t)})))},e.prototype.post=function(e){var t={headers:e.header?this.getHeader(e.header):this.getHeader(),params:e.param};return this.http.post(e.url,e.data,t).pipe(o.mergeMap((function(e){return 200===e.responseCode||"OK"===e.responseCode?n.of(e):n.throwError(e)})))},e.prototype.getHeader=function(e){var t={Accept:"application/json"};return e?s({},t,e):s({},t)},e.ctorParameters=function(){return[{type:r.HttpClient}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(r.HttpClient))},token:e,providedIn:"root"}),e=p([t.Injectable({providedIn:"root"})],e)}(),j=function(){function e(){}return e.prototype.ngOnInit=function(){this.headerMessage="Please wait",this.loaderMessage="We are fetching details",this.data&&(this.headerMessage=a.get(this.data,"headerMessage")||this.headerMessage,this.loaderMessage=a.get(this.data,"loaderMessage")||this.loaderMessage)},p([t.Input()],e.prototype,"data",void 0),e=p([t.Component({selector:"lib-app-loader",template:'<ng-container>\r\n <div class="loader-content">\r\n <p class="loader"></p>\r\n </div>\r\n</ng-container>\r\n ',styles:[".sbt-app-loader-container{background:var(--sbt-compt-bg);width:94%!important;margin:0 auto;border-radius:1.5rem;border:0}.loader-content{display:flex;justify-content:center;align-items:center;margin-top:38px}.message{margin:0;font-size:16px;color:#919191}.loader{width:30px;height:30px;margin:-76px 0 0 -76px;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #555;animation:2s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"]})],e)}(),P=function(){function e(){}return e=p([t.NgModule({imports:[i.CommonModule,r.HttpClientModule],declarations:[j],exports:[j],providers:[v]})],e)}();e.AppLoaderComponent=j,e.CoreModule=P,e.DataService=v,e.urlConfig=x,e.ɵ0=c,e.ɵ1=u,e.ɵ2=d,e.ɵ3=l,e.ɵ4=f,e.ɵ5=g,e.ɵ6=h,e.ɵ7=m,e.ɵ8=y,e.ɵ9=b,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
***************************************************************************** */var p=function(){return(p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function c(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}var u=function(){return""+H.host+H.apiSlug},l=function(){return""+H.host+H.apiProxy},d=function(){return""+H.host+H.apiPublic},g=function(e){return H.apiBasePath()+"/entityCompetency/getEntityById/"+e},f=function(){return H.apiBasePath()+"/entityCompetency/getAllEntity"},h=function(){return H.apiBaseProxy()+"/user/v1/passbook"},m=function(){return H.apiBasePublic()+"/publicSearch/getCourses"},y=function(e,t){return H.apiBaseProxy()+"/action/content/v3/hierarchy/"+e+"?hierarchyType="+t},b=function(e){return H.apiBaseProxy()+"/api/user/v2/read/"+e},v=function(e){return H.apiBaseProxy()+"/read/content-progres/"+e},x=function(){return""+H.mobileHost+H.apiPublic+"/mobileApp/getAllEntity"},j=function(){return H.mobileHost+"/api/user/v1/passbook"},P=function(e){return H.mobileHost+"/api/user/v2/read/"+e},k=function(e){return""+H.mobileHost+H.apiPublic+"/mobileApp/getEntityById/"+e},C=function(){return""+H.mobileHost+H.apiPublic+"/publicSearch/getCourses"},M=function(){return H.mobileHost+"/api/course/v1/content/state/read"},H={host:window.location.protocol+"//"+window.location.host||"https://sphere.aastrika.org",mobileHost:"https://sphere.aastrika.org",apiSlug:"/apis/protected/v8",apiProxy:"/apis/proxies/v8",apiPublic:"/apis/public/v8",apiBasePath:u,apiBaseProxy:l,apiBasePublic:d,getEntityById:g,getAllEntity:f,getUserPassbook:h,getSearch:m,getHierachyDetails:y,getUserdetailsFromRegistry:b,getContentProgress:v,getAllEntityMobile:x,getUserPassbookMobile:j,getUserdetailsMobile:P,getEntityByIdMobile:k,getSearchMobile:C,getContentProgressMobile:M},I=function(){function e(e,t){this.configService=t,this.http=e}return e.prototype.get=function(e){var t=this.configService.getConfig(),r={headers:t.session?this.setHeader(t.session):e.header?e.header:this.getHeader(),params:e.param,observe:"response"};return this.http.get(e.url,r).pipe(o.mergeMap((function(e){var t=e.body;e.headers;return"OK"!==t.responseCode?n.throwError(t):n.of(t)})))},e.prototype.post=function(e){var t=this.configService.getConfig(),r={headers:t.session?this.setHeader(t.session,e.header?e.header:""):e.header?e.header:this.getHeader(),params:e.param};return this.http.post(e.url,e.data,r).pipe(o.mergeMap((function(e){return 200===e.responseCode||"OK"===e.responseCode?n.of(e):n.throwError(e)})))},e.prototype.getHeader=function(e){var t={Accept:"application/json"};return e?p({},t,e):p({},t)},e.prototype.setHeader=function(e,t){var r={Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJTNHNNVFdjZUZqYkxUWGxiczkzUzk4dmFtODBhdkRPUiJ9.nPOCY0-bVX28iNcxxnYbGpihY3ZzfNwx0-SFCnJwjas","X-authenticated-user-token":e?e.access_token:""};return t?p({},r,t):p({},r)},e.ctorParameters=function(){return[{type:r.HttpClient},{type:i.ConfigService}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(r.HttpClient),t.ɵɵinject(i.ConfigService))},token:e,providedIn:"root"}),e=c([t.Injectable({providedIn:"root"})],e)}(),B=function(){function e(){}return e.prototype.ngOnInit=function(){this.headerMessage="Please wait",this.loaderMessage="We are fetching details",this.data&&(this.headerMessage=a.get(this.data,"headerMessage")||this.headerMessage,this.loaderMessage=a.get(this.data,"loaderMessage")||this.loaderMessage)},c([t.Input()],e.prototype,"data",void 0),e=c([t.Component({selector:"lib-app-loader",template:'<ng-container>\r\n <div class="loader-content">\r\n <p class="loader"></p>\r\n </div>\r\n</ng-container>\r\n ',styles:[".sbt-app-loader-container{background:var(--sbt-compt-bg);width:94%!important;margin:0 auto;border-radius:1.5rem;border:0}.loader-content{display:flex;justify-content:center;align-items:center;margin-top:38px}.message{margin:0;font-size:16px;color:#919191}.loader{width:30px;height:30px;margin:-76px 0 0 -76px;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #555;animation:2s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"]})],e)}(),w=function(){function e(){}return e=c([t.NgModule({imports:[s.CommonModule,r.HttpClientModule],declarations:[B],exports:[B],providers:[I]})],e)}();e.AppLoaderComponent=B,e.CoreModule=w,e.DataService=I,e.urlConfig=H,e.ɵ0=u,e.ɵ1=l,e.ɵ10=x,e.ɵ11=j,e.ɵ12=P,e.ɵ13=k,e.ɵ14=C,e.ɵ15=M,e.ɵ2=d,e.ɵ3=g,e.ɵ4=f,e.ɵ5=h,e.ɵ6=m,e.ɵ7=y,e.ɵ8=b,e.ɵ9=v,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=aastrika_npmjs-comptency-core.umd.min.js.map |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@aastrika_npmjs/comptency/core'), require('@angular/common/http'), require('rxjs/operators'), require('@angular/common'), require('lodash-es'), require('@aastrika_npmjs/comptency/entry-module'), require('@angular/material')) : | ||
typeof define === 'function' && define.amd ? define('@aastrika_npmjs/comptency/self-assessment', ['exports', '@angular/core', '@angular/router', '@aastrika_npmjs/comptency/core', '@angular/common/http', 'rxjs/operators', '@angular/common', 'lodash-es', '@aastrika_npmjs/comptency/entry-module', '@angular/material'], factory) : | ||
(global = global || self, factory((global.aastrika_npmjs = global.aastrika_npmjs || {}, global.aastrika_npmjs.comptency = global.aastrika_npmjs.comptency || {}, global.aastrika_npmjs.comptency['self-assessment'] = {}), global.ng.core, global.ng.router, global.aastrika_npmjs.comptency.core, global.ng.common.http, global.rxjs.operators, global.ng.common, global.lodashEs, global.aastrika_npmjs.comptency['entry-module'], global.ng.material)); | ||
}(this, (function (exports, core, router, core$1, http, operators, common, lodashEs, entryModule, material) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@aastrika_npmjs/comptency/core'), require('@angular/common/http'), require('rxjs/operators'), require('@aastrika_npmjs/comptency/entry-module'), require('@angular/common'), require('lodash-es'), require('@angular/material')) : | ||
typeof define === 'function' && define.amd ? define('@aastrika_npmjs/comptency/self-assessment', ['exports', '@angular/core', '@angular/router', '@aastrika_npmjs/comptency/core', '@angular/common/http', 'rxjs/operators', '@aastrika_npmjs/comptency/entry-module', '@angular/common', 'lodash-es', '@angular/material'], factory) : | ||
(global = global || self, factory((global.aastrika_npmjs = global.aastrika_npmjs || {}, global.aastrika_npmjs.comptency = global.aastrika_npmjs.comptency || {}, global.aastrika_npmjs.comptency['self-assessment'] = {}), global.ng.core, global.ng.router, global.aastrika_npmjs.comptency.core, global.ng.common.http, global.rxjs.operators, global.aastrika_npmjs.comptency['entry-module'], global.ng.common, global.lodashEs, global.ng.material)); | ||
}(this, (function (exports, core, router, core$1, http, operators, entryModule, common, lodashEs, material) { 'use strict'; | ||
@@ -228,4 +228,6 @@ /*! ***************************************************************************** | ||
__extends(SelfAssessmentService, _super); | ||
function SelfAssessmentService(http) { | ||
return _super.call(this, http) || this; | ||
function SelfAssessmentService(http, configService) { | ||
var _this = _super.call(this, http, configService) || this; | ||
_this.configService = configService; | ||
return _this; | ||
} | ||
@@ -259,4 +261,5 @@ /** | ||
}; | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: core$1.urlConfig.getSearch(), | ||
url: config.isMobileApp ? core$1.urlConfig.getSearchMobile() : core$1.urlConfig.getSearch(), | ||
data: reqBody | ||
@@ -281,4 +284,5 @@ }; | ||
SelfAssessmentService.prototype.fetchPrgressDetails = function (req) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: core$1.urlConfig.getContentProgress(req.request.courseId), | ||
url: config.isMobileApp ? core$1.urlConfig.getContentProgressMobile() : core$1.urlConfig.getContentProgress(req.request.courseId), | ||
data: req | ||
@@ -289,4 +293,5 @@ }; | ||
SelfAssessmentService.prototype.getUserdetailsFromRegistry = function (reqBody) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: core$1.urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
url: config.isMobileApp ? core$1.urlConfig.getUserdetailsMobile(reqBody.id) : core$1.urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
}; | ||
@@ -296,5 +301,6 @@ return this.get(httpOptions).pipe(operators.map(function (res) { return res.result.response; })); | ||
SelfAssessmentService.ctorParameters = function () { return [ | ||
{ type: http.HttpClient } | ||
{ type: http.HttpClient }, | ||
{ type: entryModule.ConfigService } | ||
]; }; | ||
SelfAssessmentService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function SelfAssessmentService_Factory() { return new SelfAssessmentService(core.ɵɵinject(http.HttpClient)); }, token: SelfAssessmentService, providedIn: "root" }); | ||
SelfAssessmentService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function SelfAssessmentService_Factory() { return new SelfAssessmentService(core.ɵɵinject(http.HttpClient), core.ɵɵinject(entryModule.ConfigService)); }, token: SelfAssessmentService, providedIn: "root" }); | ||
SelfAssessmentService = __decorate([ | ||
@@ -317,2 +323,3 @@ core.Injectable({ | ||
SelfAssessmentCardComponent.prototype.startSelfAssesment = function (data) { | ||
console.log("query data ", data); | ||
this.router.navigate(["app/user/self-assessment"], { queryParams: data }); | ||
@@ -319,0 +326,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/router"),require("@aastrika_npmjs/comptency/core"),require("@angular/common/http"),require("rxjs/operators"),require("@angular/common"),require("lodash-es"),require("@aastrika_npmjs/comptency/entry-module"),require("@angular/material")):"function"==typeof define&&define.amd?define("@aastrika_npmjs/comptency/self-assessment",["exports","@angular/core","@angular/router","@aastrika_npmjs/comptency/core","@angular/common/http","rxjs/operators","@angular/common","lodash-es","@aastrika_npmjs/comptency/entry-module","@angular/material"],e):e(((t=t||self).aastrika_npmjs=t.aastrika_npmjs||{},t.aastrika_npmjs.comptency=t.aastrika_npmjs.comptency||{},t.aastrika_npmjs.comptency["self-assessment"]={}),t.ng.core,t.ng.router,t.aastrika_npmjs.comptency.core,t.ng.common.http,t.rxjs.operators,t.ng.common,t.lodashEs,t.aastrika_npmjs.comptency["entry-module"],t.ng.material)}(this,(function(t,e,n,r,o,s,a,i,c,p){"use strict"; | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/router"),require("@aastrika_npmjs/comptency/core"),require("@angular/common/http"),require("rxjs/operators"),require("@aastrika_npmjs/comptency/entry-module"),require("@angular/common"),require("lodash-es"),require("@angular/material")):"function"==typeof define&&define.amd?define("@aastrika_npmjs/comptency/self-assessment",["exports","@angular/core","@angular/router","@aastrika_npmjs/comptency/core","@angular/common/http","rxjs/operators","@aastrika_npmjs/comptency/entry-module","@angular/common","lodash-es","@angular/material"],t):t(((e=e||self).aastrika_npmjs=e.aastrika_npmjs||{},e.aastrika_npmjs.comptency=e.aastrika_npmjs.comptency||{},e.aastrika_npmjs.comptency["self-assessment"]={}),e.ng.core,e.ng.router,e.aastrika_npmjs.comptency.core,e.ng.common.http,e.rxjs.operators,e.aastrika_npmjs.comptency["entry-module"],e.ng.common,e.lodashEs,e.ng.material)}(this,(function(e,t,n,r,o,s,i,a,c,p){"use strict"; | ||
/*! ***************************************************************************** | ||
@@ -15,3 +15,3 @@ Copyright (c) Microsoft Corporation. | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var l=function(t,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function u(t,e,n,r){var o,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}var f=function(t){function n(e){return t.call(this,e)||this}return function(t,e){function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(n,t),n.prototype.getCompetencyCourseIdentifier=function(t){var e={request:{filters:{primaryCategory:["Course"],contentType:["Course"],status:["Live"],competency:[!0],lang:"hi"==t?"hi":"en"}},sort:[{lastUpdatedOn:"desc"}]},n={url:r.urlConfig.getSearch(),data:e};return this.post(n)},n.prototype.fetchHiearchyDetails=function(t,e){var n={url:r.urlConfig.getHierachyDetails(t,e)};return this.get(n)},n.prototype.fetchPrgressDetails=function(t){var e={url:r.urlConfig.getContentProgress(t.request.courseId),data:t};return this.post(e)},n.prototype.getUserdetailsFromRegistry=function(t){var e={url:r.urlConfig.getUserdetailsFromRegistry(t.id)};return this.get(e).pipe(s.map((function(t){return t.result.response})))},n.ctorParameters=function(){return[{type:o.HttpClient}]},n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n(e.ɵɵinject(o.HttpClient))},token:n,providedIn:"root"}),n=u([e.Injectable({providedIn:"root"})],n)}(r.DataService),d=function(){function t(t,e){this.router=t,this.selfAssessmentService=e}return t.prototype.ngOnInit=function(){console.log(this.cardData)},t.prototype.startSelfAssesment=function(t){this.router.navigate(["app/user/self-assessment"],{queryParams:t})},t.prototype.viewCourses=function(t){t.competencyID&&this.router.navigate(["/app/search"],{queryParams:{q:[t.competencyID+"-1",t.competencyID+"-2",t.competencyID+"-3",t.competencyID+"-4",t.competencyID+"-5"],competency:!0},queryParamsHandling:"merge"})},t.ctorParameters=function(){return[{type:n.Router},{type:f}]},u([e.Input()],t.prototype,"cardData",void 0),u([e.Input()],t.prototype,"btnType",void 0),t=u([e.Component({selector:"lib-self-assessment-card",template:'<div class="card_box">\r\n <ng-container *ngIf="cardData?.title">\r\n <div class="title">{{ cardData?.title }}</div>\r\n </ng-container>\r\n \x3c!-- <ng-container *ngIf="cardData?.description">\r\n <div class="description">{{ cardData?.description }}</div>\r\n </ng-container> --\x3e\r\n <div class="flex flex-row gap-3 mt-3">\r\n \x3c!-- <button class="assess-btn">Assess</button> --\x3e\r\n <ng-container *ngFor="let btn of btnType">\r\n <ng-container *ngIf="btn.courseId == cardData.contentId">\r\n <button\r\n *ngIf="btn.type === \'START\'"\r\n mat-button\r\n class="assess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'RESUME\'"\r\n mat-button\r\n class="reassess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Re-Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'DONE\'"\r\n mat-button\r\n disabled\r\n class="done-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Done\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <button class="btn-long" i18n (click)="viewCourses(cardData)">View Courses</button>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card_box{margin:7px 2px 15px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:7px}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.startBtn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-style:italic;font-size:14px;line-height:17px;cursor:pointer;margin-top:4px}.assess-btn{background:#1c5d95;color:#fff}.reassess-btn{background:#52ad9d;color:#fff}.done-btn{background-color:#bfbfbf;color:grey}.btn-small{border-radius:50px;width:-moz-fit-content;width:fit-content;padding:3px 20px;border:none;cursor:pointer}.btn-long{border:1px solid #1c5d95;border-radius:50px;color:#1c5d95;background-color:inherit;width:-moz-fit-content;width:fit-content;padding:3px 30px;cursor:pointer}"]})],t)}(),g=function(){function t(){}return t.prototype.formatedcompetencyData=function(t){var e=[];if(i.get(t,"result")&&!0===i.get(t,"result.content").competency){var n=i.get(t,"result.content").children;if(n.length>0)return i.forEach(n,(function(t){e.push({title:i.get(t,"name"),courseId:i.get(t,"parent"),contentId:i.get(t,"identifier"),contentType:i.get(t,"contentType"),artifactUrl:i.get(t,"artifactUrl")})})),e}},t.prototype.formatedCompetencyCourseData=function(t){var e=this,n=[];if(i.get(t,"result")){var r=i.get(t,"result.content");if(r)return i.forEach(r,(function(t){n.push({title:i.get(t,"name"),contentId:i.get(t,"identifier"),contentType:i.get(t,"contentType"),subTitle:i.get(t,"subTitle"),description:i.get(t,"description"),creator:i.get(t,"creator"),duration:i.get(t,"duration"),batchId:e.getBatchData(t),childContent:i.get(t,"childNodes").length,competencyID:e.getCompetencyData(t.competencies_v1)})})),n}},t.prototype.getCompetencyData=function(t){if(t)return JSON.parse(t)[0].competencyId},t.prototype.getBatchData=function(t){var e="";return t.batches&&i.forEach(t.batches,(function(t){e=i.get(t,"batchId")})),e},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t=u([e.Injectable({providedIn:"root"})],t)}(),m=function(){function t(t,e,n){this.location=t,this.selfAssessmentService=e,this.configService=n,this.selfAssessmentData=[],this.loading=!1,this.btnType=[],this.requestUtil=new g}return t.prototype.ngOnInit=function(){var t=this;this.loading=!0,this.getUserDetails().pipe(s.mergeMap((function(e){if(t.profileData=e.profileDetails.preferences?e.profileDetails.preferences.language:"en",t.profileData||(t.profileData="en"),t.profileData)return t.getCompetencyCourse()}))).subscribe((function(e){t.selfAssessmentData=t.requestUtil.formatedCompetencyCourseData(e),i.forEach(t.selfAssessmentData,(function(e){t.getProgress(e).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&e.childContent===n.result.contentList.length){var r="";i.forEach(n.result.contentList,(function(t){r=100===t.completionPercentage&&0!==t.completionPercentage?"DONE":"RESUME"})),t.btnType.push({courseId:e.contentId,type:r})}else t.btnType.push({courseId:e.contentId,type:"RESUME"});0==n.result.contentList.length&&t.btnType.push({courseId:e.contentId,type:"START"})}))})),t.loading=!1}))},t.prototype.getCompetencyData=function(){var t=this;this.getCompetencyCourse().pipe(s.map((function(e){return t.requestUtil.formatedCompetencyCourseData(e)}))).subscribe((function(e){t.selfAssessmentData=e,i.forEach(e,(function(e){t.getProgress(e).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&e.childContent===n.result.contentList.length){var r="";i.forEach(n.result.contentList,(function(t){r=100===t.completionPercentage&&0!==t.completionPercentage?"DONE":"RESUME"})),t.btnType.push({courseId:e.contentId,type:r})}else t.btnType.push({courseId:e.contentId,type:"RESUME"});0==n.result.contentList.length&&t.btnType.push({courseId:e.contentId,type:"START"})}))})),t.loading=!1}))},t.prototype.getUserDetails=function(){var t={id:this.configService.getConfig().id};return this.selfAssessmentService.getUserdetailsFromRegistry(t)},t.prototype.getCompetencyCourse=function(){return this.selfAssessmentService.getCompetencyCourseIdentifier(this.profileData)},t.prototype.getProgress=function(t){var e={request:{userId:this.configService.getConfig().id,batchId:t.batchId,courseId:t.contentId,contentIds:[],fields:["progressdetails"]}};return this.selfAssessmentService.fetchPrgressDetails(e)},t.prototype.navigateBack=function(){this.location.back()},t.ctorParameters=function(){return[{type:a.Location},{type:f},{type:c.ConfigService}]},t=u([e.Component({selector:"lib-self-assessment",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<div class="content" *ngIf="selfAssessmentData">\r\n \x3c!-- <mat-icon (click)="navigateBack()" class="cursor-pointer">chevron_left</mat-icon> --\x3e\r\n \x3c!-- <h1 class=" mb-1 pl-2 ">Self Assessment</h1> --\x3e\r\n <ng-container *ngFor="let cardData of selfAssessmentData">\r\n <ng-container *ngIf="cardData">\r\n <lib-self-assessment-card [cardData]="cardData" [btnType]="btnType"></lib-self-assessment-card>\r\n </ng-container>\r\n </ng-container>\r\n</div>',styles:[""]})],t)}(),y=function(){function t(){}return t=u([e.NgModule({declarations:[d,m],imports:[a.CommonModule,p.MatIconModule,o.HttpClientModule,r.CoreModule],exports:[d,m]})],t)}();t.SelfAssessmentCardComponent=d,t.SelfAssessmentComponent=m,t.SelfAssessmentModule=y,t.SelfAssessmentService=f,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
***************************************************************************** */var l=function(e,t){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function u(e,t,n,r){var o,s=arguments.length,i=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,n,i):o(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}var f=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.configService=n,r}return function(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.prototype.getCompetencyCourseIdentifier=function(e){var t={request:{filters:{primaryCategory:["Course"],contentType:["Course"],status:["Live"],competency:[!0],lang:"hi"==e?"hi":"en"}},sort:[{lastUpdatedOn:"desc"}]},n={url:this.configService.getConfig().isMobileApp?r.urlConfig.getSearchMobile():r.urlConfig.getSearch(),data:t};return this.post(n)},n.prototype.fetchHiearchyDetails=function(e,t){var n={url:r.urlConfig.getHierachyDetails(e,t)};return this.get(n)},n.prototype.fetchPrgressDetails=function(e){var t={url:this.configService.getConfig().isMobileApp?r.urlConfig.getContentProgressMobile():r.urlConfig.getContentProgress(e.request.courseId),data:e};return this.post(t)},n.prototype.getUserdetailsFromRegistry=function(e){var t={url:this.configService.getConfig().isMobileApp?r.urlConfig.getUserdetailsMobile(e.id):r.urlConfig.getUserdetailsFromRegistry(e.id)};return this.get(t).pipe(s.map((function(e){return e.result.response})))},n.ctorParameters=function(){return[{type:o.HttpClient},{type:i.ConfigService}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(o.HttpClient),t.ɵɵinject(i.ConfigService))},token:n,providedIn:"root"}),n=u([t.Injectable({providedIn:"root"})],n)}(r.DataService),g=function(){function e(e,t){this.router=e,this.selfAssessmentService=t}return e.prototype.ngOnInit=function(){console.log(this.cardData)},e.prototype.startSelfAssesment=function(e){console.log("query data ",e),this.router.navigate(["app/user/self-assessment"],{queryParams:e})},e.prototype.viewCourses=function(e){e.competencyID&&this.router.navigate(["/app/search"],{queryParams:{q:[e.competencyID+"-1",e.competencyID+"-2",e.competencyID+"-3",e.competencyID+"-4",e.competencyID+"-5"],competency:!0},queryParamsHandling:"merge"})},e.ctorParameters=function(){return[{type:n.Router},{type:f}]},u([t.Input()],e.prototype,"cardData",void 0),u([t.Input()],e.prototype,"btnType",void 0),e=u([t.Component({selector:"lib-self-assessment-card",template:'<div class="card_box">\r\n <ng-container *ngIf="cardData?.title">\r\n <div class="title">{{ cardData?.title }}</div>\r\n </ng-container>\r\n \x3c!-- <ng-container *ngIf="cardData?.description">\r\n <div class="description">{{ cardData?.description }}</div>\r\n </ng-container> --\x3e\r\n <div class="flex flex-row gap-3 mt-3">\r\n \x3c!-- <button class="assess-btn">Assess</button> --\x3e\r\n <ng-container *ngFor="let btn of btnType">\r\n <ng-container *ngIf="btn.courseId == cardData.contentId">\r\n <button\r\n *ngIf="btn.type === \'START\'"\r\n mat-button\r\n class="assess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'RESUME\'"\r\n mat-button\r\n class="reassess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Re-Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'DONE\'"\r\n mat-button\r\n disabled\r\n class="done-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Done\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <button class="btn-long" i18n (click)="viewCourses(cardData)">View Courses</button>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card_box{margin:7px 2px 15px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:7px}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.startBtn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-style:italic;font-size:14px;line-height:17px;cursor:pointer;margin-top:4px}.assess-btn{background:#1c5d95;color:#fff}.reassess-btn{background:#52ad9d;color:#fff}.done-btn{background-color:#bfbfbf;color:grey}.btn-small{border-radius:50px;width:-moz-fit-content;width:fit-content;padding:3px 20px;border:none;cursor:pointer}.btn-long{border:1px solid #1c5d95;border-radius:50px;color:#1c5d95;background-color:inherit;width:-moz-fit-content;width:fit-content;padding:3px 30px;cursor:pointer}"]})],e)}(),d=function(){function e(){}return e.prototype.formatedcompetencyData=function(e){var t=[];if(c.get(e,"result")&&!0===c.get(e,"result.content").competency){var n=c.get(e,"result.content").children;if(n.length>0)return c.forEach(n,(function(e){t.push({title:c.get(e,"name"),courseId:c.get(e,"parent"),contentId:c.get(e,"identifier"),contentType:c.get(e,"contentType"),artifactUrl:c.get(e,"artifactUrl")})})),t}},e.prototype.formatedCompetencyCourseData=function(e){var t=this,n=[];if(c.get(e,"result")){var r=c.get(e,"result.content");if(r)return c.forEach(r,(function(e){n.push({title:c.get(e,"name"),contentId:c.get(e,"identifier"),contentType:c.get(e,"contentType"),subTitle:c.get(e,"subTitle"),description:c.get(e,"description"),creator:c.get(e,"creator"),duration:c.get(e,"duration"),batchId:t.getBatchData(e),childContent:c.get(e,"childNodes").length,competencyID:t.getCompetencyData(e.competencies_v1)})})),n}},e.prototype.getCompetencyData=function(e){if(e)return JSON.parse(e)[0].competencyId},e.prototype.getBatchData=function(e){var t="";return e.batches&&c.forEach(e.batches,(function(e){t=c.get(e,"batchId")})),t},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=u([t.Injectable({providedIn:"root"})],e)}(),m=function(){function e(e,t,n){this.location=e,this.selfAssessmentService=t,this.configService=n,this.selfAssessmentData=[],this.loading=!1,this.btnType=[],this.requestUtil=new d}return e.prototype.ngOnInit=function(){var e=this;this.loading=!0,this.getUserDetails().pipe(s.mergeMap((function(t){if(e.profileData=t.profileDetails.preferences?t.profileDetails.preferences.language:"en",e.profileData||(e.profileData="en"),e.profileData)return e.getCompetencyCourse()}))).subscribe((function(t){e.selfAssessmentData=e.requestUtil.formatedCompetencyCourseData(t),c.forEach(e.selfAssessmentData,(function(t){e.getProgress(t).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&t.childContent===n.result.contentList.length){var r="";c.forEach(n.result.contentList,(function(e){r=100===e.completionPercentage&&0!==e.completionPercentage?"DONE":"RESUME"})),e.btnType.push({courseId:t.contentId,type:r})}else e.btnType.push({courseId:t.contentId,type:"RESUME"});0==n.result.contentList.length&&e.btnType.push({courseId:t.contentId,type:"START"})}))})),e.loading=!1}))},e.prototype.getCompetencyData=function(){var e=this;this.getCompetencyCourse().pipe(s.map((function(t){return e.requestUtil.formatedCompetencyCourseData(t)}))).subscribe((function(t){e.selfAssessmentData=t,c.forEach(t,(function(t){e.getProgress(t).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&t.childContent===n.result.contentList.length){var r="";c.forEach(n.result.contentList,(function(e){r=100===e.completionPercentage&&0!==e.completionPercentage?"DONE":"RESUME"})),e.btnType.push({courseId:t.contentId,type:r})}else e.btnType.push({courseId:t.contentId,type:"RESUME"});0==n.result.contentList.length&&e.btnType.push({courseId:t.contentId,type:"START"})}))})),e.loading=!1}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.selfAssessmentService.getUserdetailsFromRegistry(e)},e.prototype.getCompetencyCourse=function(){return this.selfAssessmentService.getCompetencyCourseIdentifier(this.profileData)},e.prototype.getProgress=function(e){var t={request:{userId:this.configService.getConfig().id,batchId:e.batchId,courseId:e.contentId,contentIds:[],fields:["progressdetails"]}};return this.selfAssessmentService.fetchPrgressDetails(t)},e.prototype.navigateBack=function(){this.location.back()},e.ctorParameters=function(){return[{type:a.Location},{type:f},{type:i.ConfigService}]},e=u([t.Component({selector:"lib-self-assessment",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<div class="content" *ngIf="selfAssessmentData">\r\n \x3c!-- <mat-icon (click)="navigateBack()" class="cursor-pointer">chevron_left</mat-icon> --\x3e\r\n \x3c!-- <h1 class=" mb-1 pl-2 ">Self Assessment</h1> --\x3e\r\n <ng-container *ngFor="let cardData of selfAssessmentData">\r\n <ng-container *ngIf="cardData">\r\n <lib-self-assessment-card [cardData]="cardData" [btnType]="btnType"></lib-self-assessment-card>\r\n </ng-container>\r\n </ng-container>\r\n</div>',styles:[""]})],e)}(),y=function(){function e(){}return e=u([t.NgModule({declarations:[g,m],imports:[a.CommonModule,p.MatIconModule,o.HttpClientModule,r.CoreModule],exports:[g,m]})],e)}();e.SelfAssessmentCardComponent=g,e.SelfAssessmentComponent=m,e.SelfAssessmentModule=y,e.SelfAssessmentService=f,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=aastrika_npmjs-comptency-self-assessment.umd.min.js.map |
@@ -15,3 +15,3 @@ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/router"),require("@angular/material"),require("rxjs"),require("lodash-es"),require("@aastrika_npmjs/comptency/core"),require("@angular/common/http"),require("rxjs/operators"),require("@aastrika_npmjs/comptency/entry-module"),require("@aastrika_npmjs/comptency/self-assessment")):"function"==typeof define&&define.amd?define("@aastrika_npmjs/comptency",["exports","@angular/core","@angular/common","@angular/router","@angular/material","rxjs","lodash-es","@aastrika_npmjs/comptency/core","@angular/common/http","rxjs/operators","@aastrika_npmjs/comptency/entry-module","@aastrika_npmjs/comptency/self-assessment"],t):t(((e=e||self).aastrika_npmjs=e.aastrika_npmjs||{},e.aastrika_npmjs.comptency={}),e.ng.core,e.ng.common,e.ng.router,e.ng.material,e.rxjs,e.lodashEs,e.aastrika_npmjs.comptency.core,e.ng.common.http,e.rxjs.operators,e.aastrika_npmjs.comptency["entry-module"],e.aastrika_npmjs.comptency["self-assessment"])}(this,(function(e,t,n,r,o,i,a,c,s,l,p,d){"use strict"; | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var g=function(e,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function u(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function f(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function m(e,t){return function(n,r){t(n,r,e)}}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var h=function(){function e(e){this.router=e,this.stateChange=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.navigateTo=function(){this.stateChange.emit({navigation:!0})},e.ctorParameters=function(){return[{type:r.Router}]},f([t.Output()],e.prototype,"stateChange",void 0),e=f([t.Component({selector:"lib-slef-assessment-entry",template:'<button class="mat-primary-background "\r\n (click)="navigateTo()" i18n> Self Assessment\r\n</button>',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;background:#1c5d95!important;border-radius:50px;color:#fff;border:none;gap:8px;width:310px;cursor:pointer}"]})],e)}(),v=function(){function e(){this.stateChange=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.navigateTo=function(){this.stateChange.emit({navigation:!0})},f([t.Output()],e.prototype,"stateChange",void 0),e=f([t.Component({selector:"lib-competency-entry",template:'<button class="mat-primary-background "\r\n (click)="navigateTo()" i18n> Competency Dashboard\r\n</button>',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;background:#1c5d95!important;border-radius:50px;color:#fff;border:none;gap:8px;width:310px;cursor:pointer}"]})],e)}(),b=function(){},x=function(){function e(e){this.config=e,this.config$=new i.BehaviorSubject({}),this._config=this.config$.asObservable(),console.log("log in config service ",e),a.isEmpty(e)||(console.log("context log in config service ------ ",e),this.setConfig(e))}return e.prototype.setConfig=function(e){this.config$.next(e)},e.prototype.getConfig=function(){var e;return this._config.subscribe((function(t){if(a.isEmpty(t)){var n=JSON.parse(localStorage.getItem("competency"));e=n}else e=t})),e},e.ctorParameters=function(){return[{type:b,decorators:[{type:t.Optional},{type:t.Inject,args:["config"]}]}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject("config",8))},token:e,providedIn:"root"}),e=f([t.Injectable({providedIn:"root"}),m(0,t.Optional()),m(0,t.Inject("config"))],e)}(),I=function(){function e(){}var i;return i=e,e.forRoot=function(e){return{ngModule:i,providers:[x,{provide:"config",useValue:e.config}]}},e=i=f([t.NgModule({declarations:[h,v],imports:[n.CommonModule,r.RouterModule,o.MatIconModule],exports:[h,v],providers:[]})],e)}(),C=function(e){function n(t){return e.call(this,t)||this}return u(n,e),n.prototype.getCompetencyCourseIdentifier=function(e){var t={request:{filters:{primaryCategory:["Course"],contentType:["Course"],status:["Live"],competency:[!0],lang:"hi"==e?"hi":"en"}},sort:[{lastUpdatedOn:"desc"}]},n={url:c.urlConfig.getSearch(),data:t};return this.post(n)},n.prototype.fetchHiearchyDetails=function(e,t){var n={url:c.urlConfig.getHierachyDetails(e,t)};return this.get(n)},n.prototype.fetchPrgressDetails=function(e){var t={url:c.urlConfig.getContentProgress(e.request.courseId),data:e};return this.post(t)},n.prototype.getUserdetailsFromRegistry=function(e){var t={url:c.urlConfig.getUserdetailsFromRegistry(e.id)};return this.get(t).pipe(l.map((function(e){return e.result.response})))},n.ctorParameters=function(){return[{type:s.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),D=function(){function e(e,t){this.router=e,this.selfAssessmentService=t}return e.prototype.ngOnInit=function(){console.log(this.cardData)},e.prototype.startSelfAssesment=function(e){this.router.navigate(["app/user/self-assessment"],{queryParams:e})},e.prototype.viewCourses=function(e){e.competencyID&&this.router.navigate(["/app/search"],{queryParams:{q:[e.competencyID+"-1",e.competencyID+"-2",e.competencyID+"-3",e.competencyID+"-4",e.competencyID+"-5"],competency:!0},queryParamsHandling:"merge"})},e.ctorParameters=function(){return[{type:r.Router},{type:C}]},f([t.Input()],e.prototype,"cardData",void 0),f([t.Input()],e.prototype,"btnType",void 0),e=f([t.Component({selector:"lib-self-assessment-card",template:'<div class="card_box">\r\n <ng-container *ngIf="cardData?.title">\r\n <div class="title">{{ cardData?.title }}</div>\r\n </ng-container>\r\n \x3c!-- <ng-container *ngIf="cardData?.description">\r\n <div class="description">{{ cardData?.description }}</div>\r\n </ng-container> --\x3e\r\n <div class="flex flex-row gap-3 mt-3">\r\n \x3c!-- <button class="assess-btn">Assess</button> --\x3e\r\n <ng-container *ngFor="let btn of btnType">\r\n <ng-container *ngIf="btn.courseId == cardData.contentId">\r\n <button\r\n *ngIf="btn.type === \'START\'"\r\n mat-button\r\n class="assess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'RESUME\'"\r\n mat-button\r\n class="reassess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Re-Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'DONE\'"\r\n mat-button\r\n disabled\r\n class="done-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Done\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <button class="btn-long" i18n (click)="viewCourses(cardData)">View Courses</button>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card_box{margin:7px 2px 15px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:7px}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.startBtn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-style:italic;font-size:14px;line-height:17px;cursor:pointer;margin-top:4px}.assess-btn{background:#1c5d95;color:#fff}.reassess-btn{background:#52ad9d;color:#fff}.done-btn{background-color:#bfbfbf;color:grey}.btn-small{border-radius:50px;width:-moz-fit-content;width:fit-content;padding:3px 20px;border:none;cursor:pointer}.btn-long{border:1px solid #1c5d95;border-radius:50px;color:#1c5d95;background-color:inherit;width:-moz-fit-content;width:fit-content;padding:3px 30px;cursor:pointer}"]})],e)}(),w=function(){function e(){}return e.prototype.formatedcompetencyData=function(e){var t=[];if(a.get(e,"result")&&!0===a.get(e,"result.content").competency){var n=a.get(e,"result.content").children;if(n.length>0)return a.forEach(n,(function(e){t.push({title:a.get(e,"name"),courseId:a.get(e,"parent"),contentId:a.get(e,"identifier"),contentType:a.get(e,"contentType"),artifactUrl:a.get(e,"artifactUrl")})})),t}},e.prototype.formatedCompetencyCourseData=function(e){var t=this,n=[];if(a.get(e,"result")){var r=a.get(e,"result.content");if(r)return a.forEach(r,(function(e){n.push({title:a.get(e,"name"),contentId:a.get(e,"identifier"),contentType:a.get(e,"contentType"),subTitle:a.get(e,"subTitle"),description:a.get(e,"description"),creator:a.get(e,"creator"),duration:a.get(e,"duration"),batchId:t.getBatchData(e),childContent:a.get(e,"childNodes").length,competencyID:t.getCompetencyData(e.competencies_v1)})})),n}},e.prototype.getCompetencyData=function(e){if(e)return JSON.parse(e)[0].competencyId},e.prototype.getBatchData=function(e){var t="";return e.batches&&a.forEach(e.batches,(function(e){t=a.get(e,"batchId")})),t},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=f([t.Injectable({providedIn:"root"})],e)}(),k=function(){function e(e,t,n){this.location=e,this.selfAssessmentService=t,this.configService=n,this.selfAssessmentData=[],this.loading=!1,this.btnType=[],this.requestUtil=new w}return e.prototype.ngOnInit=function(){var e=this;this.loading=!0,this.getUserDetails().pipe(l.mergeMap((function(t){if(e.profileData=t.profileDetails.preferences?t.profileDetails.preferences.language:"en",e.profileData||(e.profileData="en"),e.profileData)return e.getCompetencyCourse()}))).subscribe((function(t){e.selfAssessmentData=e.requestUtil.formatedCompetencyCourseData(t),a.forEach(e.selfAssessmentData,(function(t){e.getProgress(t).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&t.childContent===n.result.contentList.length){var r="";a.forEach(n.result.contentList,(function(e){r=100===e.completionPercentage&&0!==e.completionPercentage?"DONE":"RESUME"})),e.btnType.push({courseId:t.contentId,type:r})}else e.btnType.push({courseId:t.contentId,type:"RESUME"});0==n.result.contentList.length&&e.btnType.push({courseId:t.contentId,type:"START"})}))})),e.loading=!1}))},e.prototype.getCompetencyData=function(){var e=this;this.getCompetencyCourse().pipe(l.map((function(t){return e.requestUtil.formatedCompetencyCourseData(t)}))).subscribe((function(t){e.selfAssessmentData=t,a.forEach(t,(function(t){e.getProgress(t).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&t.childContent===n.result.contentList.length){var r="";a.forEach(n.result.contentList,(function(e){r=100===e.completionPercentage&&0!==e.completionPercentage?"DONE":"RESUME"})),e.btnType.push({courseId:t.contentId,type:r})}else e.btnType.push({courseId:t.contentId,type:"RESUME"});0==n.result.contentList.length&&e.btnType.push({courseId:t.contentId,type:"START"})}))})),e.loading=!1}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.selfAssessmentService.getUserdetailsFromRegistry(e)},e.prototype.getCompetencyCourse=function(){return this.selfAssessmentService.getCompetencyCourseIdentifier(this.profileData)},e.prototype.getProgress=function(e){var t={request:{userId:this.configService.getConfig().id,batchId:e.batchId,courseId:e.contentId,contentIds:[],fields:["progressdetails"]}};return this.selfAssessmentService.fetchPrgressDetails(t)},e.prototype.navigateBack=function(){this.location.back()},e.ctorParameters=function(){return[{type:n.Location},{type:C},{type:p.ConfigService}]},e=f([t.Component({selector:"lib-self-assessment",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<div class="content" *ngIf="selfAssessmentData">\r\n \x3c!-- <mat-icon (click)="navigateBack()" class="cursor-pointer">chevron_left</mat-icon> --\x3e\r\n \x3c!-- <h1 class=" mb-1 pl-2 ">Self Assessment</h1> --\x3e\r\n <ng-container *ngFor="let cardData of selfAssessmentData">\r\n <ng-container *ngIf="cardData">\r\n <lib-self-assessment-card [cardData]="cardData" [btnType]="btnType"></lib-self-assessment-card>\r\n </ng-container>\r\n </ng-container>\r\n</div>',styles:[""]})],e)}(),E=function(){function e(){}return e=f([t.NgModule({declarations:[D,k],imports:[n.CommonModule,o.MatIconModule,s.HttpClientModule,c.CoreModule],exports:[D,k]})],e)}(),F=function(){function e(){var e=this;this.formatedActivities=function(e){if(!a.isEmpty(e))return e},this.formatedActivitityByPostion=function(t,n){if(a.get(t,"result")){var r=a.get(t,"result.response").children;if(r.length>0){var o=a.reduce(r,(function(t,r){return t.push({roles:"hi"==n?e.getHiName(r):a.get(r,"name"),id:a.get(r,"id"),description:a.get(r,"description"),averagePercentage:0,code:a.get(r.additionalProperties,"Code")}),t}),[]);return o=a.sortBy(o,[function(e){return e.code}])}}},this.formatedActivitityByRoleId=function(t,n){if(a.get(t,"result")){var r=a.get(t,"result.response").children;if(r.length>0){var o=a.reduce(r,(function(t,r){return t.push({title:"hi"==n?e.getHiName(r):a.get(r,"name"),cid:a.get(r,"id"),description:a.get(r,"description"),code:a.get(r.additionalProperties,"Code")}),t}),[]);return a.sortBy(o,[function(e){return e.code}])}}},this.formatedCompetency=function(t,n,r){var o=[];return a.forEach(t,(function(t){if(a.get(t,"result")){var i=a.get(t,"result.response").children;i.length>0&&a.forEach(i,(function(i){o.push({levels:e.getLevels(a.get(i,"id"),n,r),competency:"hi"==r?e.getHiName(i):a.get(i,"name"),id:a.get(i,"id"),description:a.get(i,"description"),cid:a.get(t,"result.response").id,lastLevel:e.getheighestLevel(a.get(i,"id"),n),completionPercentage:e.getCompeletionPercentage(a.get(i,"id"),n),code:a.get(i.additionalProperties,"Code")})}))}})),o=a.sortBy(o,[function(e){return e.code}]),a.uniqBy(o,"id")}}return e.prototype.getHiName=function(e){return a.get(e.additionalProperties,"lang-hi-name")?a.get(e.additionalProperties,"lang-hi-name"):a.get(e,"name")},e.prototype.getLevels=function(e,t,n){var r=[{name:"hi"==n?"स्तर 1":"Level 1",achived:!1,level:"1"},{name:"hi"==n?"स्तर 2":"Level 2",achived:!1,level:"2"},{name:"hi"==n?"स्तर 3":"Level 3",achived:!1,level:"3"},{name:"hi"==n?"स्तर 4":"Level 4",achived:!1,level:"4"},{name:"hi"==n?"स्तर 5":"Level 5",achived:!1,level:"5"}],o=null;return a.forEach(t,(function(t){a.toNumber(t.competencyId)===e&&(o=a.uniq(t.levelsAchieve))})),a.forEach(r,(function(e){a.forEach(o,(function(t){t==e.level&&(e.achived=!0)}))})),r},e.prototype.getheighestLevel=function(e,t){var n="";return a.forEach(t,(function(t){a.toNumber(t.competencyId)===e&&(n=t.levelId.competencyLevelId)})),n},e.prototype.getCompeletionPercentage=function(e,t){var n=0;return a.forEach(t,(function(t){a.toNumber(t.competencyId)===e&&(n=a.toNumber(t.levelId.competencyLevelId))})),n=100*n/5},e.prototype.formatedGainedCompetency=function(e,t,n){var r=this,o=[];return a.forEach(e,(function(i){var c=a.get(i,"id");a.forEach(t,(function(t){if(t.competencies.hasOwnProperty(c)){var i=t.competencies[c];o.push({title:"hi"==n?r.getHiTitle(c,e,i):a.get(i,"additionalParams.competencyName"),logs:r.acquiredPassbookLogs(a.get(i,"acquiredDetails")),proficiencyLevels:r.acauiredChannelColourCode(a.get(i,"acquiredDetails")),competencyStoreData:r.competencyStoreDataFomat(i),titleHi:r.getHiTitle(c,e,i)})}}))})),o},e.prototype.getHiTitle=function(e,t,n){var r;return a.forEach(t,(function(t){t.id==e&&(r=a.get(t.additionalProperties,"lang-hi-name")?a.get(t.additionalProperties,"lang-hi-name"):a.get(n,"additionalParams.competencyName"))})),r},e.prototype.acquiredPassbookLogs=function(e){var t=[];return e.length>0&&a.forEach(e,(function(e){t.push({header:a.get(e,"courseName")?a.get(e,"courseName"):a.get(e,"acquiredChannel"),date:a.get(e,"createdDate"),description:a.get(e,"additionalParams.description"),keyboardArrowUp:!0,level:a.toNumber(a.get(e,"competencyLevelId"))})})),t},e.prototype.acauiredChannelColourCode=function(e){var t=[{color:"#FFFBB0",displayLevel:1,selected:!1},{color:"#FFFBB0",displayLevel:2,selected:!1},{color:"#FFFBB0",displayLevel:3,selected:!1},{color:"#FFFBB0",displayLevel:4,selected:!1},{color:"#FFFBB0",displayLevel:5,selected:!1}];return a.forEach(e,(function(e){switch(a.get(e,"acquiredChannel")){case"course":case"Course":a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#FFFBB0",t.selected=!0)}));break;case"selfAssessment":a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#A4DFCA",t.selected=!0)}));break;case"admin":a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#7cb5e6",t.selected=!0)}));break;default:a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#FFFBB0",t.selected=!1)}))}})),t},e.prototype.competencyStoreDataFomat=function(e){var t=[];return e.acquiredDetails&&a.forEach(e.acquiredDetails,(function(e){e.competencyLevelId&&t.push(e.competencyLevelId)})),{competencyId:e.competencyId,competencyName:e.additionalParams.competencyName,levelId:a.maxBy(e.acquiredDetails,"competencyLevelId"),levelsAchieve:t}},e}(),P=function(e){function n(t){return e.call(this,t)||this}return u(n,e),n.prototype.getRequiredCompetencyById=function(e){var t={url:c.urlConfig.getEntityById(3),data:e};return console.log("reqBody",t),this.post(t)},n.ctorParameters=function(){return[{type:s.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),S=function(){function e(e){this.requiredCompetencyService=e,this.competencyData=[{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Store management and planning and coordination of THR and Dry ration",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"},{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Early Childhood Care Education",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"},{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Early Childhood Care Education",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"}],this.panelOpenState=!0,this.customCollapsedHeight="100px",this.customExpandedHeight="100px",this.loading=!1,this.logs=[{index:1,header:"Understands HCM guidelines"},{index:2,header:"Lists raw material required"},{index:3,header:"Plans for storage"},{index:4,header:"Motivates the AWH and children on optimal hygiene and handwashing practices"},{index:5,header:"Course-Name Completion"}],this.requestUtil=new F}return e.prototype.ngOnInit=function(){},e.prototype.getRequiredByPostion=function(){return this.requiredCompetencyService.getRequiredCompetencyById({filter:{isDetail:!0}})},e.prototype.ngOnDestroy=function(){},e.ctorParameters=function(){return[{type:P}]},e=f([t.Component({selector:"lib-required-comptency-card",template:"<lib-self-assessment></lib-self-assessment>",styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.start-btn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-size:20px;cursor:pointer;margin-top:15px}.log-title{font-size:14px;line-height:24px;letter-spacing:-.02em;color:#1c5d95}.log{border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.logs{padding:5px}.log-items{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}:host ::ng-deep .mat-expansion-panel-header:hover{background:rgba(255,255,255,.98)!important}:host ::ng-deep .mat-content{display:flex!important}.level{place-self:flex-end}"]})],e)}(),L=function(e){function n(t){var n=e.call(this,t)||this;return n.competencyData=new i.BehaviorSubject(void 0),n.competencyData$=n.competencyData.asObservable(),n}return u(n,e),n.prototype.fetchUserPassbook=function(e){var t={url:c.urlConfig.getUserPassbook(),data:e};return this.post(t)},n.prototype.fetchAllEntity=function(e){var t={url:c.urlConfig.getAllEntity(),data:e};return this.post(t)},n.ctorParameters=function(){return[{type:s.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),A=function(e){function n(t){return e.call(this,t)||this}return u(n,e),n.prototype.getActivityById=function(e){var t={url:c.urlConfig.getEntityById(e.id),data:e};return this.post(t)},n.prototype.getUserdetailsFromRegistry=function(e){var t={url:c.urlConfig.getUserdetailsFromRegistry(e.id)};return this.get(t).pipe(l.map((function(e){return e.result.response})))},n.ctorParameters=function(){return[{type:s.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),B=function(){function e(e,t,n){this.gainedService=e,this.configService=t,this.activeSummaryService=n,this.loading=!1,this.panelOpenState=!1,this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=-1,this.requestUtil=new F}return e.prototype.ngOnInit=function(){var e=this;this.getUserDetails().subscribe((function(t){e.profileData=t.profileDetails.preferences?t.profileDetails.preferences.language:"en"})),this.loading=!0;var t=this.getAllEntity(),n=this.getAllUserPassbook();i.forkJoin([t,n]).subscribe((function(t){var n=e.requestUtil.formatedGainedCompetency(t[0].result.response,t[1].result.content,e.profileData);if(e.gainedproficencyData=n,e.gainedproficencyData){var r=[];a.forEach(e.gainedproficencyData,(function(e){e.competencyStoreData&&r.push(e.competencyStoreData)})),e.gainedService.competencyData.next(r)}e.loading=!1}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getAllUserPassbook=function(){return this.gainedService.fetchUserPassbook({request:{typeName:"competency"}})},e.prototype.getAllEntity=function(){return this.gainedService.fetchAllEntity({search:{type:"Competency"}})},e.prototype.selectLevel=function(e,t){e!==this.selectedProficiencyIndex||-1!==t&&t!==this.selectedDisplayLevel?this.selectedProficiencyIndex=e:this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=t},e.ctorParameters=function(){return[{type:L},{type:p.ConfigService},{type:A}]},e=f([t.Component({selector:"lib-gained-comptency-card",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let proficency of gainedproficencyData; let i = index">\r\n <div class="card-container example-container container-balanced">\r\n <ng-container *ngIf="proficency?.title">\r\n <div class="title">{{ proficency?.title }}</div>\r\n </ng-container>\r\n\r\n <div class="levelsTitle" i18n>Levels:</div>\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n [expanded]="i === selectedProficiencyIndex"\r\n class="w-full panel"\r\n hideToggle\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center panel-header w-full"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container\r\n *ngFor="let proficiencyLevel of proficency?.proficiencyLevels"\r\n >\r\n <ng-container *ngIf="proficiencyLevel.selected; else addLevel">\r\n <div\r\n (click)="\r\n $event.stopPropagation();\r\n selectLevel(i, proficiencyLevel.displayLevel)\r\n "\r\n class="level mb-1"\r\n [ngStyle]="{ \'background-color\': proficiencyLevel.color }"\r\n [ngClass]="{\r\n \'individual-select\':\r\n selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === proficiencyLevel?.displayLevel\r\n }"\r\n >\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-container>\r\n <ng-template #addLevel>\r\n <div (click)="$event.stopPropagation()" class="level mb-1">\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <div\r\n class="level mb-1"\r\n (click)="$event.stopPropagation(); selectLevel(i, -1)"\r\n >\r\n <mat-icon\r\n [ngClass]="{ arrowReverse: selectedProficiencyIndex === i }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <div>\r\n <span class="log-header" i18n>Log:</span>\r\n <ng-container\r\n *ngFor="let log of proficency?.logs; let logIndex = index; let last = last; "\r\n >\r\n <ng-container\r\n *ngIf="\r\n selectedDisplayLevel === -1 ||\r\n (selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === log.level)\r\n "\r\n >\r\n <div class="log" [ngClass]="{\'border-bottom-0\': last}">\r\n <div class="flex">\r\n <ng-container *ngIf="log.header">\r\n <span class=""\r\n i18n>Level </span> <span>{{ log.level }}: {{ log.header }}</span\r\n >\r\n <span class="log-date mr-2">{{\r\n log?.date | date : "dd/MM/yyyy"\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf="log.description">\r\n <div\r\n class="mt-2"\r\n [ngClass]="{ \'hide-content\': !log.keyboardArrowUp }"\r\n >\r\n {{ log.description }}\r\n </div>\r\n <div class="justify-end">\r\n <mat-icon\r\n (click)="log.keyboardArrowUp = !log.keyboardArrowUp"\r\n class="mr-3"\r\n [ngClass]="{ arrowReverse: log.keyboardArrowUp }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n </div>\r\n \x3c!-- <hr> --\x3e\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.date{font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-300)}.justify-end{display:flex;justify-content:flex-end}.card-container{background:var(--white);border-bottom:1px solid #ddd;padding:5px 4px}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:18px}.levelsTitle{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.panel{box-shadow:0 0!important;padding:1px 3px 1px 0}.panel-header{padding:0!important;background:0 0!important}.panel-header-description{margin:0!important;padding:1px}.arrowReverse{transform:rotateX(180deg)}.level{width:47px;max-width:16.6%;height:36px;display:flex;justify-content:center;align-items:center;box-shadow:0 0 2.17333px rgba(0,0,0,.2509803922)}.log-header{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.log{font-style:italic;font-size:14px;line-height:16px;letter-spacing:-.02em;color:var(--gray-400);border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.log-date{font-style:normal;font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-400);margin:0 auto}::ng-deep .mat-expansion-panel-body{padding:0!important}:host ::ng-deep .mat-content{display:unset!important}.hide-content{display:none}.individual-select{border:2px solid #1c5d95}"]})],e)}(),j=function(){function e(e){this.router=e,this.stateChange=new t.EventEmitter,this.tabIndex=1}return e.prototype.ngOnInit=function(){this.tabIndex=1},e.prototype.navigateBack=function(){this.router.navigate(["/app/profile-view"])},e.prototype.changeTab=function(e){this.tabIndex=e.index},e.prototype.startSelfAssessment=function(){this.stateChange.emit({navigation:!0})},e.ctorParameters=function(){return[{type:r.Router}]},f([t.Output()],e.prototype,"stateChange",void 0),e=f([t.Component({selector:"lib-competency-dashboard",template:'<div class="content">\r\n <mat-icon (click)="navigateBack()" class="cursor-pointer mb-3"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class="pl-2 mb-0" i18n>Competency Dashboard</h1>\r\n\r\n <div class="pl-2 tab-container">\r\n \x3c!-- <ng-container *ngIf="tabIndex === 1">\r\n <div class="sortIcon">\r\n <img src="./assets/comptency/images/filter.png" />\r\n </div>\r\n </ng-container> --\x3e\r\n <mat-tab-group\r\n [ngClass]="{ \'header-width-icon\': tabIndex === 1 }"\r\n class="remove-border-bottom"\r\n animationDuration="0ms"\r\n [selectedIndex]="tabIndex"\r\n (selectedTabChange)="changeTab($event)"\r\n >\r\n \x3c!-- Active Summary as Job Description --\x3e\r\n <mat-tab i18n-label label="Job Description">\r\n <h4 class="mt-4 mb-1" i18n>Roles</h4>\r\n <lib-active-summary *ngIf="tabIndex === 0"></lib-active-summary>\r\n </mat-tab>\r\n\r\n \x3c!-- gained as Passbook --\x3e\r\n <mat-tab i18n-label label="Passbook">\r\n <div class="legend-container">\r\n <div class="legend legend-blue"></div>\r\n <h5 i18n>External</h5>\r\n <div class="legend legend-green"></div>\r\n <h5 i18n>Self</h5>\r\n <div class="legend legend-yellow"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf="tabIndex === 1"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n \x3c!-- required --\x3e\r\n <mat-tab i18n-label label="Required">\r\n <div class="required-comperencies">\r\n <div class="mt-2 tab-badge" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf="tabIndex === 2"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.content{max-width:90%}.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"]})],e)}(),M=function(){function e(e,t,n){this.activeSummaryService=e,this.configService=t,this.gainedService=n,this.panelOpenState=!0,this.loading=!1,this.acordianLoading=!1,this.requestUtil=new F}return e.prototype.ngOnInit=function(){var e=this;this.getProgress(),this.loading=!0,this.getUserDetails().pipe(l.mergeMap((function(t){if(e.profileData=t.profileDetails.profileReq,e.language=t.profileDetails.preferences?t.profileDetails.preferences.language:"en",e.language||(e.language="en"),e.profileData)return e.getActivityByRole()}))).subscribe((function(t){var n=e.requestUtil.formatedActivitityByPostion(t,e.language);e.roleactivitySummaries=n,a.forEach(e.roleactivitySummaries,(function(t){t.id&&e.getActivityByRoleId(t.id)})),console.log(e.roleactivitySummaries),e.loading=!1}))},e.prototype.getProgress=function(){var e=this;this.gainedService.competencyData$.subscribe((function(t){e.competencyProgress=t}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getActivityByRole=function(){var e;this.profileData.professionalDetails&&(e=this.profileData.professionalDetails[0].designation);var t={filter:{isDetail:!0},id:this.designationMap(e)};return this.activeSummaryService.getActivityById(t)},e.prototype.designationMap=function(e){var t={AWW:95,ANM:210};return t.hasOwnProperty(e)?t[e]:1},e.prototype.getActivityByRoleId=function(e){var t=this;this.acordianLoading=!0;var n=a.findIndex(this.roleactivitySummaries,{id:e});this.roleactivitySummaries[n].activities=[],this.getEntityById(e).pipe(l.mergeMap((function(e){var r=t.requestUtil.formatedActivitityByRoleId(e,t.language);t.roleactivitySummaries[n].activities=r;var o=a.map(t.roleactivitySummaries[n].activities,"cid"),c=[];return a.forEach(o,(function(e){c.push(t.getEntityById(e))})),t.acordianLoading=!1,i.forkJoin.apply(void 0,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}(c))}))).subscribe((function(e){var r=t.requestUtil.formatedCompetency(e,t.competencyProgress,t.language);t.roleactivitySummaries[n].activities=a.values(a.merge(a.keyBy(r,"id"),a.keyBy(t.roleactivitySummaries[n].activities,"cid"))),t.roleactivitySummaries[n].averagePercentage=[];var o=t.getAveragepercentage(r);t.roleactivitySummaries[n].averagePercentage=o}))},e.prototype.getEntityById=function(e){var t={filter:{isDetail:!0},id:e};return this.activeSummaryService.getActivityById(t)},e.prototype.getAveragepercentage=function(e){var t=e.length,n=[];return a.forEach(e,(function(e){n.push(e.completionPercentage)})),a.round(a.sum(n)/t)},e.prototype.ngOnDestroy=function(){this.unsubscribe&&this.unsubscribe.unsubscribe()},e.ctorParameters=function(){return[{type:A},{type:p.ConfigService},{type:L}]},e=f([t.Component({selector:"lib-active-summary",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let role of roleactivitySummaries">\r\n <div class="card-container">\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n class=""\r\n (opened)="panelOpenState = true"\r\n (closed)="panelOpenState = false"\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="role?.roles">\r\n <div class="flex flex-column w-full">\r\n <div class="title">{{ role?.roles }}</div>\r\n <div class="progress-status-none" *ngIf="role?.averagePercentage == 0"></div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage < 100 && role?.averagePercentage != 0" i18n>In Progress</div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage == 100" i18n>Completed</div>\r\n <ng-container >\r\n \x3c!-- \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0, --\x3e\r\n <div [ngClass]="{\'green-bar\': role?.averagePercentage == 100 , \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0 }">\r\n <mat-progress-bar class="bar-progress-colour" mode="determinate" value={{role?.averagePercentage}} class="mt-1"></mat-progress-bar>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader>\r\n <div class="expand-container" *ngIf="roleactivitySummaries.length>0">\r\n \x3c!-- list of activity --\x3e\r\n <div class="activity-badge" i18n>Activities</div>\r\n <ng-container\r\n *ngFor="let activity of role?.activities; let i = index"\r\n >\r\n <div class="activity-title" *ngIf="activity.title">\r\n - {{ activity.title }}\r\n </div>\r\n\r\n\r\n </ng-container>\r\n <ng-container *ngIf="role?.activities">\r\n <lib-competency-accordion [competencyList]="role?.activities"></lib-competency-accordion>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n\r\n </div>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px}.spinner-loading{display:flex;justify-content:center}.title{font-size:20px;line-height:19px;letter-spacing:-.02em;color:var(--blue)}.icon-down{place-self:flex-end;color:var(--black)!important}:host ::ng-deep .mat-expansion-panel{height:auto}:host ::ng-deep .mat-expansion-panel-header:hover{background:inherit!important}:host ::ng-deep .mat-expansion-panel-body{padding:0 0 16px!important}:host ::ng-deep .mat-expansion-panel-header{border-radius:10px!important;padding:10px 10px 0}:host ::ng-deep .mat-expansion-indicator:after{color:var(--black)!important}:host ::ng-deep .mat-expansion-panel-header-description{margin-right:0!important}.activity-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black);margin-bottom:10px;padding:0 10px}.competency-container{background:var(--white);box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;padding:10px;margin:18px 0 15px}.competency-container .competency-title{font-size:20px;line-height:25px;letter-spacing:-.02em;color:var(--black);margin-bottom:20px}.competency-container .level{font-size:24px;line-height:24px;letter-spacing:-.02em;color:var(--blue)}.expand-container{padding:15px 0 0}.activity-badge{font-weight:400;font-size:14px;color:#1c5d95;background:#ebf4fb;border-radius:50px;width:-moz-fit-content;width:fit-content;padding:5px 20px;margin:0 10px 15px}.mat-progress-bar{border-radius:40px;height:4px}.value{position:relative;bottom:19px;color:#1c5d95;width:275px;display:flex;justify-content:center}::ng-deep.green-bar .theme-igot.day-mode .mat-progress-bar-fill::after{background:no-repeat padding-box #34d6a4!important;border-radius:40px}::ng-deep.warn-bar .mat-progress-bar-fill::after{background:no-repeat padding-box #f1cf8a!important;border-radius:40px}::ng-deep.theme-igot.day-mode .mat-progress-bar-buffer{background-color:#f5f5f5}.progress-status{font-style:italic;font-weight:400;font-size:12px;color:#000;place-self:end}.progress-status-none{visibility:hidden}"]})],e)}(),q=function(){function e(){}return e.prototype.ngOnInit=function(){console.log("list",this.competencyList)},f([t.Input()],e.prototype,"competencyList",void 0),e=f([t.Component({selector:"lib-competency-accordion",template:'<div class="competency-badge" i18n>Competencies :</div>\r\n<ng-container *ngFor="let competency of competencyList; let i = index">\r\n <ng-container *ngIf="competency.competency">\r\n <mat-accordion>\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="competency.competency">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="competency.completionPercentage == 100">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon\r\n >\r\n </ng-container>\r\n <ng-container *ngIf="competency.completionPercentage < 100">\r\n <mat-progress-spinner\r\n diameter="20"\r\n strokeWidth="2"\r\n mode="determinate"\r\n [value]="competency.completionPercentage"\r\n ></mat-progress-spinner>\r\n </ng-container>\r\n </div>\r\n <div class="competency-title">{{ competency.competency }}</div>\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n \x3c!-- <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader> --\x3e\r\n <div class="expand-container">\r\n \x3c!-- list of levels --\x3e\r\n <div class="Levels-badge" i18n>Levels :</div>\r\n <ng-container *ngFor="let level of competency.levels; let i = index">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="level.achived">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n <ng-container *ngIf="!level.achived" >\r\n <mat-icon class="non-progress cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n </div>\r\n <div class="Levels-title">{{ i + 1 }} : {{ level.name }}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n <hr />\r\n </ng-container>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.competency-badge{font-weight:400;font-size:14px;color:#1c5d95;padding:0 10px;margin-top:20px}.competency-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black)}.expand-container{padding:0 10px}.Levels-badge{font-size:14px;color:#1c5d95;margin-bottom:5px}.circle-tick{display:flex;justify-content:center;align-items:center;color:#27ae60;font-size:18px!important}.non-progress{visibility:hidden}"]})],e)}(),H=function(){function e(){}return e=f([t.NgModule({declarations:[S,B,j,M,q],imports:[n.CommonModule,o.MatTabsModule,o.MatIconModule,o.MatExpansionModule,o.MatProgressBarModule,o.MatProgressSpinnerModule,s.HttpClientModule,c.CoreModule,d.SelfAssessmentModule],exports:[S,B,j,M]})],e)}();e.CompetencyModule=H,e.EntryModule=I,e.SelfAssessmentModule=E,e.ɵa=h,e.ɵb=v,e.ɵc=x,e.ɵd=b,e.ɵe=D,e.ɵf=C,e.ɵg=k,e.ɵh=S,e.ɵi=P,e.ɵj=B,e.ɵk=L,e.ɵl=A,e.ɵm=j,e.ɵn=M,e.ɵo=q,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
***************************************************************************** */var g=function(e,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function u(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function f(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function m(e,t){return function(n,r){t(n,r,e)}}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var h=function(){function e(e){this.router=e,this.stateChange=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.navigateTo=function(){this.stateChange.emit({navigation:!0})},e.ctorParameters=function(){return[{type:r.Router}]},f([t.Output()],e.prototype,"stateChange",void 0),e=f([t.Component({selector:"lib-slef-assessment-entry",template:'<button class="mat-primary-background "\r\n (click)="navigateTo()" i18n> Self Assessment\r\n</button>',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;background:#1c5d95!important;border-radius:50px;color:#fff;border:none;gap:8px;width:310px;cursor:pointer}"]})],e)}(),v=function(){function e(){this.stateChange=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.navigateTo=function(){this.stateChange.emit({navigation:!0})},f([t.Output()],e.prototype,"stateChange",void 0),e=f([t.Component({selector:"lib-competency-entry",template:'<button class="mat-primary-background "\r\n (click)="navigateTo()" i18n> Competency Dashboard\r\n</button>',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;background:#1c5d95!important;border-radius:50px;color:#fff;border:none;gap:8px;width:310px;cursor:pointer}"]})],e)}(),b=function(){},x=function(){function e(e){this.config=e,this.config$=new i.BehaviorSubject({}),this._config=this.config$.asObservable(),console.log("log in config service ",e),a.isEmpty(e)||(console.log("context log in config service ------ ",e),this.setConfig(e))}return e.prototype.setConfig=function(e){this.config$.next(e)},e.prototype.getConfig=function(){var e;return this._config.subscribe((function(t){if(a.isEmpty(t)){var n=JSON.parse(localStorage.getItem("competency"));e=n}else e=t})),e},e.ctorParameters=function(){return[{type:b,decorators:[{type:t.Optional},{type:t.Inject,args:["config"]}]}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject("config",8))},token:e,providedIn:"root"}),e=f([t.Injectable({providedIn:"root"}),m(0,t.Optional()),m(0,t.Inject("config"))],e)}(),I=function(){function e(){}var i;return i=e,e.forRoot=function(e){return{ngModule:i,providers:[x,{provide:"config",useValue:e.config}]}},e=i=f([t.NgModule({declarations:[h,v],imports:[n.CommonModule,r.RouterModule,o.MatIconModule],exports:[h,v],providers:[]})],e)}(),C=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.configService=n,r}return u(n,e),n.prototype.getCompetencyCourseIdentifier=function(e){var t={request:{filters:{primaryCategory:["Course"],contentType:["Course"],status:["Live"],competency:[!0],lang:"hi"==e?"hi":"en"}},sort:[{lastUpdatedOn:"desc"}]},n={url:this.configService.getConfig().isMobileApp?c.urlConfig.getSearchMobile():c.urlConfig.getSearch(),data:t};return this.post(n)},n.prototype.fetchHiearchyDetails=function(e,t){var n={url:c.urlConfig.getHierachyDetails(e,t)};return this.get(n)},n.prototype.fetchPrgressDetails=function(e){var t={url:this.configService.getConfig().isMobileApp?c.urlConfig.getContentProgressMobile():c.urlConfig.getContentProgress(e.request.courseId),data:e};return this.post(t)},n.prototype.getUserdetailsFromRegistry=function(e){var t={url:this.configService.getConfig().isMobileApp?c.urlConfig.getUserdetailsMobile(e.id):c.urlConfig.getUserdetailsFromRegistry(e.id)};return this.get(t).pipe(l.map((function(e){return e.result.response})))},n.ctorParameters=function(){return[{type:s.HttpClient},{type:p.ConfigService}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient),t.ɵɵinject(p.ConfigService))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),D=function(){function e(e,t){this.router=e,this.selfAssessmentService=t}return e.prototype.ngOnInit=function(){console.log(this.cardData)},e.prototype.startSelfAssesment=function(e){console.log("query data ",e),this.router.navigate(["app/user/self-assessment"],{queryParams:e})},e.prototype.viewCourses=function(e){e.competencyID&&this.router.navigate(["/app/search"],{queryParams:{q:[e.competencyID+"-1",e.competencyID+"-2",e.competencyID+"-3",e.competencyID+"-4",e.competencyID+"-5"],competency:!0},queryParamsHandling:"merge"})},e.ctorParameters=function(){return[{type:r.Router},{type:C}]},f([t.Input()],e.prototype,"cardData",void 0),f([t.Input()],e.prototype,"btnType",void 0),e=f([t.Component({selector:"lib-self-assessment-card",template:'<div class="card_box">\r\n <ng-container *ngIf="cardData?.title">\r\n <div class="title">{{ cardData?.title }}</div>\r\n </ng-container>\r\n \x3c!-- <ng-container *ngIf="cardData?.description">\r\n <div class="description">{{ cardData?.description }}</div>\r\n </ng-container> --\x3e\r\n <div class="flex flex-row gap-3 mt-3">\r\n \x3c!-- <button class="assess-btn">Assess</button> --\x3e\r\n <ng-container *ngFor="let btn of btnType">\r\n <ng-container *ngIf="btn.courseId == cardData.contentId">\r\n <button\r\n *ngIf="btn.type === \'START\'"\r\n mat-button\r\n class="assess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'RESUME\'"\r\n mat-button\r\n class="reassess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Re-Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'DONE\'"\r\n mat-button\r\n disabled\r\n class="done-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Done\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <button class="btn-long" i18n (click)="viewCourses(cardData)">View Courses</button>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card_box{margin:7px 2px 15px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:7px}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.startBtn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-style:italic;font-size:14px;line-height:17px;cursor:pointer;margin-top:4px}.assess-btn{background:#1c5d95;color:#fff}.reassess-btn{background:#52ad9d;color:#fff}.done-btn{background-color:#bfbfbf;color:grey}.btn-small{border-radius:50px;width:-moz-fit-content;width:fit-content;padding:3px 20px;border:none;cursor:pointer}.btn-long{border:1px solid #1c5d95;border-radius:50px;color:#1c5d95;background-color:inherit;width:-moz-fit-content;width:fit-content;padding:3px 30px;cursor:pointer}"]})],e)}(),w=function(){function e(){}return e.prototype.formatedcompetencyData=function(e){var t=[];if(a.get(e,"result")&&!0===a.get(e,"result.content").competency){var n=a.get(e,"result.content").children;if(n.length>0)return a.forEach(n,(function(e){t.push({title:a.get(e,"name"),courseId:a.get(e,"parent"),contentId:a.get(e,"identifier"),contentType:a.get(e,"contentType"),artifactUrl:a.get(e,"artifactUrl")})})),t}},e.prototype.formatedCompetencyCourseData=function(e){var t=this,n=[];if(a.get(e,"result")){var r=a.get(e,"result.content");if(r)return a.forEach(r,(function(e){n.push({title:a.get(e,"name"),contentId:a.get(e,"identifier"),contentType:a.get(e,"contentType"),subTitle:a.get(e,"subTitle"),description:a.get(e,"description"),creator:a.get(e,"creator"),duration:a.get(e,"duration"),batchId:t.getBatchData(e),childContent:a.get(e,"childNodes").length,competencyID:t.getCompetencyData(e.competencies_v1)})})),n}},e.prototype.getCompetencyData=function(e){if(e)return JSON.parse(e)[0].competencyId},e.prototype.getBatchData=function(e){var t="";return e.batches&&a.forEach(e.batches,(function(e){t=a.get(e,"batchId")})),t},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=f([t.Injectable({providedIn:"root"})],e)}(),k=function(){function e(e,t,n){this.location=e,this.selfAssessmentService=t,this.configService=n,this.selfAssessmentData=[],this.loading=!1,this.btnType=[],this.requestUtil=new w}return e.prototype.ngOnInit=function(){var e=this;this.loading=!0,this.getUserDetails().pipe(l.mergeMap((function(t){if(e.profileData=t.profileDetails.preferences?t.profileDetails.preferences.language:"en",e.profileData||(e.profileData="en"),e.profileData)return e.getCompetencyCourse()}))).subscribe((function(t){e.selfAssessmentData=e.requestUtil.formatedCompetencyCourseData(t),a.forEach(e.selfAssessmentData,(function(t){e.getProgress(t).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&t.childContent===n.result.contentList.length){var r="";a.forEach(n.result.contentList,(function(e){r=100===e.completionPercentage&&0!==e.completionPercentage?"DONE":"RESUME"})),e.btnType.push({courseId:t.contentId,type:r})}else e.btnType.push({courseId:t.contentId,type:"RESUME"});0==n.result.contentList.length&&e.btnType.push({courseId:t.contentId,type:"START"})}))})),e.loading=!1}))},e.prototype.getCompetencyData=function(){var e=this;this.getCompetencyCourse().pipe(l.map((function(t){return e.requestUtil.formatedCompetencyCourseData(t)}))).subscribe((function(t){e.selfAssessmentData=t,a.forEach(t,(function(t){e.getProgress(t).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&t.childContent===n.result.contentList.length){var r="";a.forEach(n.result.contentList,(function(e){r=100===e.completionPercentage&&0!==e.completionPercentage?"DONE":"RESUME"})),e.btnType.push({courseId:t.contentId,type:r})}else e.btnType.push({courseId:t.contentId,type:"RESUME"});0==n.result.contentList.length&&e.btnType.push({courseId:t.contentId,type:"START"})}))})),e.loading=!1}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.selfAssessmentService.getUserdetailsFromRegistry(e)},e.prototype.getCompetencyCourse=function(){return this.selfAssessmentService.getCompetencyCourseIdentifier(this.profileData)},e.prototype.getProgress=function(e){var t={request:{userId:this.configService.getConfig().id,batchId:e.batchId,courseId:e.contentId,contentIds:[],fields:["progressdetails"]}};return this.selfAssessmentService.fetchPrgressDetails(t)},e.prototype.navigateBack=function(){this.location.back()},e.ctorParameters=function(){return[{type:n.Location},{type:C},{type:p.ConfigService}]},e=f([t.Component({selector:"lib-self-assessment",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<div class="content" *ngIf="selfAssessmentData">\r\n \x3c!-- <mat-icon (click)="navigateBack()" class="cursor-pointer">chevron_left</mat-icon> --\x3e\r\n \x3c!-- <h1 class=" mb-1 pl-2 ">Self Assessment</h1> --\x3e\r\n <ng-container *ngFor="let cardData of selfAssessmentData">\r\n <ng-container *ngIf="cardData">\r\n <lib-self-assessment-card [cardData]="cardData" [btnType]="btnType"></lib-self-assessment-card>\r\n </ng-container>\r\n </ng-container>\r\n</div>',styles:[""]})],e)}(),F=function(){function e(){}return e=f([t.NgModule({declarations:[D,k],imports:[n.CommonModule,o.MatIconModule,s.HttpClientModule,c.CoreModule],exports:[D,k]})],e)}(),S=function(){function e(){var e=this;this.formatedActivities=function(e){if(!a.isEmpty(e))return e},this.formatedActivitityByPostion=function(t,n){if(a.get(t,"result")){var r=a.get(t,"result.response").children;if(r.length>0){var o=a.reduce(r,(function(t,r){return t.push({roles:"hi"==n?e.getHiName(r):a.get(r,"name"),id:a.get(r,"id"),description:a.get(r,"description"),averagePercentage:0,code:a.get(r.additionalProperties,"Code")}),t}),[]);return o=a.sortBy(o,[function(e){return e.code}])}}},this.formatedActivitityByRoleId=function(t,n){if(a.get(t,"result")){var r=a.get(t,"result.response").children;if(r.length>0){var o=a.reduce(r,(function(t,r){return t.push({title:"hi"==n?e.getHiName(r):a.get(r,"name"),cid:a.get(r,"id"),description:a.get(r,"description"),code:a.get(r.additionalProperties,"Code")}),t}),[]);return a.sortBy(o,[function(e){return e.code}])}}},this.formatedCompetency=function(t,n,r){var o=[];return a.forEach(t,(function(t){if(a.get(t,"result")){var i=a.get(t,"result.response").children;i.length>0&&a.forEach(i,(function(i){o.push({levels:e.getLevels(a.get(i,"id"),n,r),competency:"hi"==r?e.getHiName(i):a.get(i,"name"),id:a.get(i,"id"),description:a.get(i,"description"),cid:a.get(t,"result.response").id,lastLevel:e.getheighestLevel(a.get(i,"id"),n),completionPercentage:e.getCompeletionPercentage(a.get(i,"id"),n),code:a.get(i.additionalProperties,"Code")})}))}})),o=a.sortBy(o,[function(e){return e.code}]),a.uniqBy(o,"id")}}return e.prototype.getHiName=function(e){return a.get(e.additionalProperties,"lang-hi-name")?a.get(e.additionalProperties,"lang-hi-name"):a.get(e,"name")},e.prototype.getLevels=function(e,t,n){var r=[{name:"hi"==n?"स्तर 1":"Level 1",achived:!1,level:"1"},{name:"hi"==n?"स्तर 2":"Level 2",achived:!1,level:"2"},{name:"hi"==n?"स्तर 3":"Level 3",achived:!1,level:"3"},{name:"hi"==n?"स्तर 4":"Level 4",achived:!1,level:"4"},{name:"hi"==n?"स्तर 5":"Level 5",achived:!1,level:"5"}],o=null;return a.forEach(t,(function(t){a.toNumber(t.competencyId)===e&&(o=a.uniq(t.levelsAchieve))})),a.forEach(r,(function(e){a.forEach(o,(function(t){t==e.level&&(e.achived=!0)}))})),r},e.prototype.getheighestLevel=function(e,t){var n="";return a.forEach(t,(function(t){a.toNumber(t.competencyId)===e&&(n=t.levelId.competencyLevelId)})),n},e.prototype.getCompeletionPercentage=function(e,t){var n=0;return a.forEach(t,(function(t){a.toNumber(t.competencyId)===e&&(n=a.toNumber(t.levelId.competencyLevelId))})),n=100*n/5},e.prototype.formatedGainedCompetency=function(e,t,n){var r=this,o=[];return a.forEach(e,(function(i){var c=a.get(i,"id");a.forEach(t,(function(t){if(t.competencies.hasOwnProperty(c)){var i=t.competencies[c];o.push({title:"hi"==n?r.getHiTitle(c,e,i):a.get(i,"additionalParams.competencyName"),logs:r.acquiredPassbookLogs(a.get(i,"acquiredDetails")),proficiencyLevels:r.acauiredChannelColourCode(a.get(i,"acquiredDetails")),competencyStoreData:r.competencyStoreDataFomat(i),titleHi:r.getHiTitle(c,e,i)})}}))})),o},e.prototype.getHiTitle=function(e,t,n){var r;return a.forEach(t,(function(t){t.id==e&&(r=a.get(t.additionalProperties,"lang-hi-name")?a.get(t.additionalProperties,"lang-hi-name"):a.get(n,"additionalParams.competencyName"))})),r},e.prototype.acquiredPassbookLogs=function(e){var t=[];return e.length>0&&a.forEach(e,(function(e){t.push({header:a.get(e,"courseName")?a.get(e,"courseName"):a.get(e,"acquiredChannel"),date:a.get(e,"createdDate"),description:a.get(e,"additionalParams.description"),keyboardArrowUp:!0,level:a.toNumber(a.get(e,"competencyLevelId"))})})),t},e.prototype.acauiredChannelColourCode=function(e){var t=[{color:"#FFFBB0",displayLevel:1,selected:!1},{color:"#FFFBB0",displayLevel:2,selected:!1},{color:"#FFFBB0",displayLevel:3,selected:!1},{color:"#FFFBB0",displayLevel:4,selected:!1},{color:"#FFFBB0",displayLevel:5,selected:!1}];return a.forEach(e,(function(e){switch(a.get(e,"acquiredChannel")){case"course":case"Course":a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#FFFBB0",t.selected=!0)}));break;case"selfAssessment":a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#A4DFCA",t.selected=!0)}));break;case"admin":a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#7cb5e6",t.selected=!0)}));break;default:a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#FFFBB0",t.selected=!1)}))}})),t},e.prototype.competencyStoreDataFomat=function(e){var t=[];return e.acquiredDetails&&a.forEach(e.acquiredDetails,(function(e){e.competencyLevelId&&t.push(e.competencyLevelId)})),{competencyId:e.competencyId,competencyName:e.additionalParams.competencyName,levelId:a.maxBy(e.acquiredDetails,"competencyLevelId"),levelsAchieve:t}},e}(),E=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.configService=n,r}return u(n,e),n.prototype.getRequiredCompetencyById=function(e){var t={url:c.urlConfig.getEntityById(3),data:e};return console.log("reqBody",t),this.post(t)},n.ctorParameters=function(){return[{type:s.HttpClient},{type:p.ConfigService}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient),t.ɵɵinject(p.ConfigService))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),P=function(){function e(e){this.requiredCompetencyService=e,this.panelOpenState=!0,this.customCollapsedHeight="100px",this.customExpandedHeight="100px",this.loading=!1,this.logs=[{index:1,header:"Understands HCM guidelines"},{index:2,header:"Lists raw material required"},{index:3,header:"Plans for storage"},{index:4,header:"Motivates the AWH and children on optimal hygiene and handwashing practices"},{index:5,header:"Course-Name Completion"}],this.requestUtil=new S}return e.prototype.ngOnInit=function(){},e.prototype.getRequiredByPostion=function(){return this.requiredCompetencyService.getRequiredCompetencyById({filter:{isDetail:!0}})},e.prototype.ngOnDestroy=function(){},e.ctorParameters=function(){return[{type:E}]},e=f([t.Component({selector:"lib-required-comptency-card",template:"<lib-self-assessment></lib-self-assessment>",styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.start-btn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-size:20px;cursor:pointer;margin-top:15px}.log-title{font-size:14px;line-height:24px;letter-spacing:-.02em;color:#1c5d95}.log{border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.logs{padding:5px}.log-items{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}:host ::ng-deep .mat-expansion-panel-header:hover{background:rgba(255,255,255,.98)!important}:host ::ng-deep .mat-content{display:flex!important}.level{place-self:flex-end}"]})],e)}(),A=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.configService=n,r.competencyData=new i.BehaviorSubject(void 0),r.competencyData$=r.competencyData.asObservable(),r}return u(n,e),n.prototype.fetchUserPassbook=function(e,t){var n=this.configService.getConfig(),r={url:n.isMobileApp?c.urlConfig.getUserPassbookMobile():c.urlConfig.getUserPassbook(),data:e,header:n.isMobileApp?{"x-authenticated-userid":t}:""};return this.post(r)},n.prototype.fetchAllEntity=function(e){var t={url:this.configService.getConfig().isMobileApp?c.urlConfig.getAllEntityMobile():c.urlConfig.getAllEntity(),data:e};return this.post(t)},n.ctorParameters=function(){return[{type:s.HttpClient},{type:p.ConfigService}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient),t.ɵɵinject(p.ConfigService))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),L=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.configService=n,r}return u(n,e),n.prototype.getActivityById=function(e){var t={url:this.configService.getConfig().isMobileApp?c.urlConfig.getEntityByIdMobile(e.id):c.urlConfig.getEntityById(e.id),data:e};return this.post(t)},n.prototype.getUserdetailsFromRegistry=function(e){var t={url:this.configService.getConfig().isMobileApp?c.urlConfig.getUserdetailsMobile(e.id):c.urlConfig.getUserdetailsFromRegistry(e.id)};return this.get(t).pipe(l.map((function(e){return e.result.response})))},n.ctorParameters=function(){return[{type:s.HttpClient},{type:p.ConfigService}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient),t.ɵɵinject(p.ConfigService))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),B=function(){function e(e,t,n){this.gainedService=e,this.configService=t,this.activeSummaryService=n,this.loading=!1,this.panelOpenState=!1,this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=-1,this.requestUtil=new S}return e.prototype.ngOnInit=function(){var e=this;this.getUserDetails().subscribe((function(t){console.log(t),e.profileData=t.profileDetails.preferences?t.profileDetails.preferences.language:"en"})),this.loading=!0;var t=this.getAllEntity(),n=this.getAllUserPassbook();i.forkJoin([t,n]).subscribe((function(t){console.log(t);var n=e.requestUtil.formatedGainedCompetency(t[0].result.response,t[1].result.content,e.profileData);if(e.gainedproficencyData=n,console.log(n),e.gainedproficencyData){var r=[];a.forEach(e.gainedproficencyData,(function(e){e.competencyStoreData&&r.push(e.competencyStoreData)})),e.gainedService.competencyData.next(r)}e.loading=!1}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getAllUserPassbook=function(){var e=this.configService.getConfig().id;return this.gainedService.fetchUserPassbook({request:{typeName:"competency"}},e)},e.prototype.getAllEntity=function(){return this.gainedService.fetchAllEntity({search:{type:"Competency"}})},e.prototype.selectLevel=function(e,t){e!==this.selectedProficiencyIndex||-1!==t&&t!==this.selectedDisplayLevel?this.selectedProficiencyIndex=e:this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=t},e.ctorParameters=function(){return[{type:A},{type:p.ConfigService},{type:L}]},e=f([t.Component({selector:"lib-gained-comptency-card",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let proficency of gainedproficencyData; let i = index">\r\n <div class="card-container example-container container-balanced">\r\n <ng-container *ngIf="proficency?.title">\r\n <div class="title">{{ proficency?.title }}</div>\r\n </ng-container>\r\n\r\n <div class="levelsTitle" i18n>Levels:</div>\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n [expanded]="i === selectedProficiencyIndex"\r\n class="w-full panel"\r\n hideToggle\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center panel-header w-full"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container\r\n *ngFor="let proficiencyLevel of proficency?.proficiencyLevels"\r\n >\r\n <ng-container *ngIf="proficiencyLevel.selected; else addLevel">\r\n <div\r\n (click)="\r\n $event.stopPropagation();\r\n selectLevel(i, proficiencyLevel.displayLevel)\r\n "\r\n class="level mb-1"\r\n [ngStyle]="{ \'background-color\': proficiencyLevel.color }"\r\n [ngClass]="{\r\n \'individual-select\':\r\n selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === proficiencyLevel?.displayLevel\r\n }"\r\n >\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-container>\r\n <ng-template #addLevel>\r\n <div (click)="$event.stopPropagation()" class="level mb-1">\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <div\r\n class="level mb-1"\r\n (click)="$event.stopPropagation(); selectLevel(i, -1)"\r\n >\r\n <mat-icon\r\n [ngClass]="{ arrowReverse: selectedProficiencyIndex === i }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <div>\r\n <span class="log-header" i18n>Log:</span>\r\n <ng-container\r\n *ngFor="let log of proficency?.logs; let logIndex = index; let last = last; "\r\n >\r\n <ng-container\r\n *ngIf="\r\n selectedDisplayLevel === -1 ||\r\n (selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === log.level)\r\n "\r\n >\r\n <div class="log" [ngClass]="{\'border-bottom-0\': last}">\r\n <div class="flex">\r\n <ng-container *ngIf="log.header">\r\n <span class=""\r\n i18n>Level </span> <span>{{ log.level }}: {{ log.header }}</span\r\n >\r\n <span class="log-date mr-2">{{\r\n log?.date | date : "dd/MM/yyyy"\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf="log.description">\r\n <div\r\n class="mt-2"\r\n [ngClass]="{ \'hide-content\': !log.keyboardArrowUp }"\r\n >\r\n {{ log.description }}\r\n </div>\r\n <div class="justify-end">\r\n <mat-icon\r\n (click)="log.keyboardArrowUp = !log.keyboardArrowUp"\r\n class="mr-3"\r\n [ngClass]="{ arrowReverse: log.keyboardArrowUp }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n </div>\r\n \x3c!-- <hr> --\x3e\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.date{font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-300)}.justify-end{display:flex;justify-content:flex-end}.card-container{background:var(--white);border-bottom:1px solid #ddd;padding:5px 4px}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:18px}.levelsTitle{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.panel{box-shadow:0 0!important;padding:1px 3px 1px 0}.panel-header{padding:0!important;background:0 0!important}.panel-header-description{margin:0!important;padding:1px}.arrowReverse{transform:rotateX(180deg)}.level{width:47px;max-width:16.6%;height:36px;display:flex;justify-content:center;align-items:center;box-shadow:0 0 2.17333px rgba(0,0,0,.2509803922)}.log-header{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.log{font-style:italic;font-size:14px;line-height:16px;letter-spacing:-.02em;color:var(--gray-400);border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.log-date{font-style:normal;font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-400);margin:0 auto}::ng-deep .mat-expansion-panel-body{padding:0!important}:host ::ng-deep .mat-content{display:unset!important}.hide-content{display:none}.individual-select{border:2px solid #1c5d95}"]})],e)}(),j=function(){function e(e,n){this.router=e,this.configService=n,this.stateChange=new t.EventEmitter,this.tabIndex=1}return e.prototype.ngOnInit=function(){this.tabIndex=1,this.isMobileApp=this.configService.getConfig().isMobileApp},e.prototype.navigateBack=function(){this.router.navigate(["/app/profile-view"])},e.prototype.changeTab=function(e){this.tabIndex=e.index},e.prototype.startSelfAssessment=function(){this.stateChange.emit({navigation:!0})},e.ctorParameters=function(){return[{type:r.Router},{type:p.ConfigService}]},f([t.Output()],e.prototype,"stateChange",void 0),e=f([t.Component({selector:"lib-competency-dashboard",template:'<div class="content" [ngClass]="isMobileApp ? \'content-mobile\' : \'content\'">\r\n <mat-icon (click)="navigateBack()" class="cursor-pointer mb-3"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class="pl-2 mb-0" i18n>Competency Dashboard</h1>\r\n\r\n <div class="pl-2 tab-container">\r\n \x3c!-- <ng-container *ngIf="tabIndex === 1">\r\n <div class="sortIcon">\r\n <img src="./assets/comptency/images/filter.png" />\r\n </div>\r\n </ng-container> --\x3e\r\n <mat-tab-group\r\n [ngClass]="{ \'header-width-icon\': tabIndex === 1 }"\r\n class="remove-border-bottom"\r\n animationDuration="0ms"\r\n [selectedIndex]="tabIndex"\r\n (selectedTabChange)="changeTab($event)"\r\n >\r\n \x3c!-- Active Summary as Job Description --\x3e\r\n <mat-tab i18n-label label="Job Description">\r\n <h4 class="mt-4 mb-1" i18n>Roles</h4>\r\n <lib-active-summary *ngIf="tabIndex === 0"></lib-active-summary>\r\n </mat-tab>\r\n\r\n \x3c!-- gained as Passbook --\x3e\r\n <mat-tab i18n-label label="Passbook">\r\n <div class="legend-container">\r\n <div class="legend legend-blue"></div>\r\n <h5 i18n>External</h5>\r\n <div class="legend legend-green"></div>\r\n <h5 i18n>Self</h5>\r\n <div class="legend legend-yellow"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf="tabIndex === 1"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n \x3c!-- required --\x3e\r\n <mat-tab i18n-label label="Required">\r\n <div class="required-comperencies">\r\n <div class="mt-2 tab-badge" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf="tabIndex === 2"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}@media only screen and (max-width:599px){.content{max-width:90%}}.content-mobile{padding:70px 0;max-width:100%;margin:0 10px}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"]})],e)}(),M=function(){function e(e,t,n){this.activeSummaryService=e,this.configService=t,this.gainedService=n,this.panelOpenState=!0,this.loading=!1,this.acordianLoading=!1,this.requestUtil=new S}return e.prototype.ngOnInit=function(){var e=this;this.getProgress(),this.loading=!0,this.getUserDetails().pipe(l.mergeMap((function(t){if(e.profileData=t.profileDetails.profileReq,e.language=t.profileDetails.preferences?t.profileDetails.preferences.language:"en",e.language||(e.language="en"),e.profileData)return e.getActivityByRole()}))).subscribe((function(t){var n=e.requestUtil.formatedActivitityByPostion(t,e.language);e.roleactivitySummaries=n,a.forEach(e.roleactivitySummaries,(function(t){t.id&&e.getActivityByRoleId(t.id)})),console.log(e.roleactivitySummaries),e.loading=!1})),console.log(this.roleactivitySummaries)},e.prototype.getProgress=function(){var e=this;this.gainedService.competencyData$.subscribe((function(t){e.competencyProgress=t}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getActivityByRole=function(){var e;this.profileData.professionalDetails&&(e=this.profileData.professionalDetails[0].designation);var t={filter:{isDetail:!0},id:this.designationMap(e)};return this.activeSummaryService.getActivityById(t)},e.prototype.designationMap=function(e){var t={AWW:95,ANM:210};return t.hasOwnProperty(e)?t[e]:1},e.prototype.getActivityByRoleId=function(e){var t=this;this.acordianLoading=!0;var n=a.findIndex(this.roleactivitySummaries,{id:e});this.roleactivitySummaries[n].activities=[],this.getEntityById(e).pipe(l.mergeMap((function(e){var r=t.requestUtil.formatedActivitityByRoleId(e,t.language);t.roleactivitySummaries[n].activities=r;var o=a.map(t.roleactivitySummaries[n].activities,"cid"),c=[];return a.forEach(o,(function(e){c.push(t.getEntityById(e))})),t.acordianLoading=!1,i.forkJoin.apply(void 0,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}(c))}))).subscribe((function(e){var r=t.requestUtil.formatedCompetency(e,t.competencyProgress,t.language);t.roleactivitySummaries[n].activities=a.values(a.merge(a.keyBy(r,"id"),a.keyBy(t.roleactivitySummaries[n].activities,"cid"))),t.roleactivitySummaries[n].averagePercentage=[];var o=t.getAveragepercentage(r);t.roleactivitySummaries[n].averagePercentage=o}))},e.prototype.getEntityById=function(e){var t={filter:{isDetail:!0},id:e};return this.activeSummaryService.getActivityById(t)},e.prototype.getAveragepercentage=function(e){var t=e.length,n=[];return a.forEach(e,(function(e){n.push(e.completionPercentage)})),a.round(a.sum(n)/t)},e.prototype.ngOnDestroy=function(){this.unsubscribe&&this.unsubscribe.unsubscribe()},e.ctorParameters=function(){return[{type:L},{type:p.ConfigService},{type:A}]},e=f([t.Component({selector:"lib-active-summary",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let role of roleactivitySummaries">\r\n <div class="card-container">\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n class=""\r\n (opened)="panelOpenState = true"\r\n (closed)="panelOpenState = false"\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="role?.roles">\r\n <div class="flex flex-column w-full">\r\n <div class="title">{{ role?.roles }}</div>\r\n <div class="progress-status-none" *ngIf="role?.averagePercentage == 0"></div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage < 100 && role?.averagePercentage != 0" i18n>In Progress</div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage == 100" i18n>Completed</div>\r\n <ng-container >\r\n \x3c!-- \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0, --\x3e\r\n <div [ngClass]="{\'green-bar\': role?.averagePercentage == 100 , \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0 }">\r\n <mat-progress-bar class="bar-progress-colour" mode="determinate" value={{role?.averagePercentage}} class="mt-1"></mat-progress-bar>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader>\r\n <div class="expand-container" *ngIf="roleactivitySummaries.length>0">\r\n \x3c!-- list of activity --\x3e\r\n <div class="activity-badge" i18n>Activities</div>\r\n <ng-container\r\n *ngFor="let activity of role?.activities; let i = index"\r\n >\r\n <div class="activity-title" *ngIf="activity.title">\r\n - {{ activity.title }}\r\n </div>\r\n\r\n\r\n </ng-container>\r\n <ng-container *ngIf="role?.activities">\r\n <lib-competency-accordion [competencyList]="role?.activities"></lib-competency-accordion>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n\r\n </div>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px}.spinner-loading{display:flex;justify-content:center}.title{font-size:20px;line-height:19px;letter-spacing:-.02em;color:var(--blue)}.icon-down{place-self:flex-end;color:var(--black)!important}:host ::ng-deep .mat-expansion-panel{height:auto}:host ::ng-deep .mat-expansion-panel-header:hover{background:inherit!important}:host ::ng-deep .mat-expansion-panel-body{padding:0 0 16px!important}:host ::ng-deep .mat-expansion-panel-header{border-radius:10px!important;padding:10px 10px 0}:host ::ng-deep .mat-expansion-indicator:after{color:var(--black)!important}:host ::ng-deep .mat-expansion-panel-header-description{margin-right:0!important}.activity-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black);margin-bottom:10px;padding:0 10px}.competency-container{background:var(--white);box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;padding:10px;margin:18px 0 15px}.competency-container .competency-title{font-size:20px;line-height:25px;letter-spacing:-.02em;color:var(--black);margin-bottom:20px}.competency-container .level{font-size:24px;line-height:24px;letter-spacing:-.02em;color:var(--blue)}.expand-container{padding:15px 0 0}.activity-badge{font-weight:400;font-size:14px;color:#1c5d95;background:#ebf4fb;border-radius:50px;width:-moz-fit-content;width:fit-content;padding:5px 20px;margin:0 10px 15px}.mat-progress-bar{border-radius:40px;height:4px}.value{position:relative;bottom:19px;color:#1c5d95;width:275px;display:flex;justify-content:center}::ng-deep.green-bar .theme-igot.day-mode .mat-progress-bar-fill::after{background:no-repeat padding-box #34d6a4!important;border-radius:40px}::ng-deep.warn-bar .mat-progress-bar-fill::after{background:no-repeat padding-box #f1cf8a!important;border-radius:40px}::ng-deep.theme-igot.day-mode .mat-progress-bar-buffer{background-color:#f5f5f5}.progress-status{font-style:italic;font-weight:400;font-size:12px;color:#000;place-self:end}.progress-status-none{visibility:hidden}"]})],e)}(),q=function(){function e(){}return e.prototype.ngOnInit=function(){console.log("list",this.competencyList)},f([t.Input()],e.prototype,"competencyList",void 0),e=f([t.Component({selector:"lib-competency-accordion",template:'<div class="competency-badge" i18n>Competencies :</div>\r\n<ng-container *ngFor="let competency of competencyList; let i = index">\r\n <ng-container *ngIf="competency.competency">\r\n <mat-accordion>\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="competency.competency">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="competency.completionPercentage == 100">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon\r\n >\r\n </ng-container>\r\n <ng-container *ngIf="competency.completionPercentage < 100">\r\n <mat-progress-spinner\r\n diameter="20"\r\n strokeWidth="2"\r\n mode="determinate"\r\n [value]="competency.completionPercentage"\r\n ></mat-progress-spinner>\r\n </ng-container>\r\n </div>\r\n <div class="competency-title">{{ competency.competency }}</div>\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n \x3c!-- <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader> --\x3e\r\n <div class="expand-container">\r\n \x3c!-- list of levels --\x3e\r\n <div class="Levels-badge" i18n>Levels :</div>\r\n <ng-container *ngFor="let level of competency.levels; let i = index">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="level.achived">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n <ng-container *ngIf="!level.achived" >\r\n <mat-icon class="non-progress cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n </div>\r\n <div class="Levels-title">{{ i + 1 }} : {{ level.name }}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n <hr />\r\n </ng-container>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.competency-badge{font-weight:400;font-size:14px;color:#1c5d95;padding:0 10px;margin-top:20px}.competency-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black)}.expand-container{padding:0 10px}.Levels-badge{font-size:14px;color:#1c5d95;margin-bottom:5px}.circle-tick{display:flex;justify-content:center;align-items:center;color:#27ae60;font-size:18px!important}.non-progress{visibility:hidden}"]})],e)}(),U=function(){function e(){}return e=f([t.NgModule({declarations:[P,B,j,M,q],imports:[n.CommonModule,o.MatTabsModule,o.MatIconModule,o.MatExpansionModule,o.MatProgressBarModule,o.MatProgressSpinnerModule,s.HttpClientModule,c.CoreModule,d.SelfAssessmentModule],exports:[P,B,j,M]})],e)}();e.CompetencyModule=U,e.EntryModule=I,e.SelfAssessmentModule=F,e.ɵa=h,e.ɵb=v,e.ɵc=x,e.ɵd=b,e.ɵe=D,e.ɵf=C,e.ɵg=k,e.ɵh=P,e.ɵi=E,e.ɵj=B,e.ɵk=A,e.ɵl=L,e.ɵm=j,e.ɵn=M,e.ɵo=q,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=aastrika_npmjs-comptency.umd.min.js.map |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"RequiredComptencyCardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"lib-required-comptency-card","template":"<lib-self-assessment></lib-self-assessment>","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.start-btn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-size:20px;cursor:pointer;margin-top:15px}.log-title{font-size:14px;line-height:24px;letter-spacing:-.02em;color:#1c5d95}.log{border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.logs{padding:5px}.log-items{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}:host ::ng-deep .mat-expansion-panel-header:hover{background:rgba(255,255,255,.98)!important}:host ::ng-deep .mat-content{display:flex!important}.level{place-self:flex-end}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"getRequiredByPostion":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"GainedComptencyCardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"lib-gained-comptency-card","template":"<lib-app-loader *ngIf=\"loading === true\"></lib-app-loader>\r\n<ng-container *ngFor=\"let proficency of gainedproficencyData; let i = index\">\r\n <div class=\"card-container example-container container-balanced\">\r\n <ng-container *ngIf=\"proficency?.title\">\r\n <div class=\"title\">{{ proficency?.title }}</div>\r\n </ng-container>\r\n\r\n <div class=\"levelsTitle\" i18n>Levels:</div>\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n [expanded]=\"i === selectedProficiencyIndex\"\r\n class=\"w-full panel\"\r\n hideToggle\r\n >\r\n <mat-expansion-panel-header\r\n class=\"flex-between items-center panel-header w-full\"\r\n >\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container\r\n *ngFor=\"let proficiencyLevel of proficency?.proficiencyLevels\"\r\n >\r\n <ng-container *ngIf=\"proficiencyLevel.selected; else addLevel\">\r\n <div\r\n (click)=\"\r\n $event.stopPropagation();\r\n selectLevel(i, proficiencyLevel.displayLevel)\r\n \"\r\n class=\"level mb-1\"\r\n [ngStyle]=\"{ 'background-color': proficiencyLevel.color }\"\r\n [ngClass]=\"{\r\n 'individual-select':\r\n selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === proficiencyLevel?.displayLevel\r\n }\"\r\n >\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-container>\r\n <ng-template #addLevel>\r\n <div (click)=\"$event.stopPropagation()\" class=\"level mb-1\">\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <div\r\n class=\"level mb-1\"\r\n (click)=\"$event.stopPropagation(); selectLevel(i, -1)\"\r\n >\r\n <mat-icon\r\n [ngClass]=\"{ arrowReverse: selectedProficiencyIndex === i }\"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <div>\r\n <span class=\"log-header\" i18n>Log:</span>\r\n <ng-container\r\n *ngFor=\"let log of proficency?.logs; let logIndex = index; let last = last; \"\r\n >\r\n <ng-container\r\n *ngIf=\"\r\n selectedDisplayLevel === -1 ||\r\n (selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === log.level)\r\n \"\r\n >\r\n <div class=\"log\" [ngClass]=\"{'border-bottom-0': last}\">\r\n <div class=\"flex\">\r\n <ng-container *ngIf=\"log.header\">\r\n <span class=\"\"\r\n i18n>Level </span> <span>{{ log.level }}: {{ log.header }}</span\r\n >\r\n <span class=\"log-date mr-2\">{{\r\n log?.date | date : \"dd/MM/yyyy\"\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf=\"log.description\">\r\n <div\r\n class=\"mt-2\"\r\n [ngClass]=\"{ 'hide-content': !log.keyboardArrowUp }\"\r\n >\r\n {{ log.description }}\r\n </div>\r\n <div class=\"justify-end\">\r\n <mat-icon\r\n (click)=\"log.keyboardArrowUp = !log.keyboardArrowUp\"\r\n class=\"mr-3\"\r\n [ngClass]=\"{ arrowReverse: log.keyboardArrowUp }\"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n </div>\r\n <!-- <hr> -->\r\n</ng-container>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.date{font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-300)}.justify-end{display:flex;justify-content:flex-end}.card-container{background:var(--white);border-bottom:1px solid #ddd;padding:5px 4px}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:18px}.levelsTitle{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.panel{box-shadow:0 0!important;padding:1px 3px 1px 0}.panel-header{padding:0!important;background:0 0!important}.panel-header-description{margin:0!important;padding:1px}.arrowReverse{transform:rotateX(180deg)}.level{width:47px;max-width:16.6%;height:36px;display:flex;justify-content:center;align-items:center;box-shadow:0 0 2.17333px rgba(0,0,0,.2509803922)}.log-header{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.log{font-style:italic;font-size:14px;line-height:16px;letter-spacing:-.02em;color:var(--gray-400);border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.log-date{font-style:normal;font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-400);margin:0 auto}::ng-deep .mat-expansion-panel-body{padding:0!important}:host ::ng-deep .mat-content{display:unset!important}.hide-content{display:none}.individual-select{border:2px solid #1c5d95}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":23,"character":26},{"__symbolic":"reference","name":"ɵc"}]}],"ngOnInit":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getAllUserPassbook":[{"__symbolic":"method"}],"getAllEntity":[{"__symbolic":"method"}],"selectLevel":[{"__symbolic":"method"}]}},"CompetencyDashboardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"lib-competency-dashboard","template":"<div class=\"content\">\r\n <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer mb-3\"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class=\"pl-2 mb-0\" i18n>Competency Dashboard</h1>\r\n\r\n <div class=\"pl-2 tab-container\">\r\n <!-- <ng-container *ngIf=\"tabIndex === 1\">\r\n <div class=\"sortIcon\">\r\n <img src=\"./assets/comptency/images/filter.png\" />\r\n </div>\r\n </ng-container> -->\r\n <mat-tab-group\r\n [ngClass]=\"{ 'header-width-icon': tabIndex === 1 }\"\r\n class=\"remove-border-bottom\"\r\n animationDuration=\"0ms\"\r\n [selectedIndex]=\"tabIndex\"\r\n (selectedTabChange)=\"changeTab($event)\"\r\n >\r\n <!-- Active Summary as Job Description -->\r\n <mat-tab i18n-label label=\"Job Description\">\r\n <h4 class=\"mt-4 mb-1\" i18n>Roles</h4>\r\n <lib-active-summary *ngIf=\"tabIndex === 0\"></lib-active-summary>\r\n </mat-tab>\r\n\r\n <!-- gained as Passbook -->\r\n <mat-tab i18n-label label=\"Passbook\">\r\n <div class=\"legend-container\">\r\n <div class=\"legend legend-blue\"></div>\r\n <h5 i18n>External</h5>\r\n <div class=\"legend legend-green\"></div>\r\n <h5 i18n>Self</h5>\r\n <div class=\"legend legend-yellow\"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf=\"tabIndex === 1\"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n <!-- required -->\r\n <mat-tab i18n-label label=\"Required\">\r\n <div class=\"required-comperencies\">\r\n <div class=\"mt-2 tab-badge\" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf=\"tabIndex === 2\"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.content{max-width:90%}.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":9,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":11,"character":31}]}],"ngOnInit":[{"__symbolic":"method"}],"navigateBack":[{"__symbolic":"method"}],"changeTab":[{"__symbolic":"method"}],"startSelfAssessment":[{"__symbolic":"method"}]}},"CompetencyModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":17,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"RequiredComptencyCardComponent"},{"__symbolic":"reference","name":"GainedComptencyCardComponent"},{"__symbolic":"reference","name":"CompetencyDashboardComponent"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatTabsModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":26,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatExpansionModule","line":27,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressBarModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressSpinnerModule","line":29,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":30,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"CoreModule","line":31,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/self-assessment","name":"SelfAssessmentModule","line":32,"character":4}],"exports":[{"__symbolic":"reference","name":"RequiredComptencyCardComponent"},{"__symbolic":"reference","name":"GainedComptencyCardComponent"},{"__symbolic":"reference","name":"CompetencyDashboardComponent"},{"__symbolic":"reference","name":"ɵd"}]}]}],"members":{}},"RequestUtil":{"__symbolic":"class","members":{"getHiName":[{"__symbolic":"method"}],"getLevels":[{"__symbolic":"method"}],"getheighestLevel":[{"__symbolic":"method"}],"getCompeletionPercentage":[{"__symbolic":"method"}],"formatedGainedCompetency":[{"__symbolic":"method"}],"getHiTitle":[{"__symbolic":"method"}],"acquiredPassbookLogs":[{"__symbolic":"method"}],"acauiredChannelColourCode":[{"__symbolic":"method"}],"competencyStoreDataFomat":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":12,"character":47},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":14,"character":19}]}],"getRequiredCompetencyById":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵb":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":14,"character":35},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":20,"character":19}]}],"fetchUserPassbook":[{"__symbolic":"method"}],"fetchAllEntity":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵc":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":13,"character":42},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":15,"character":19}]}],"getActivityById":[{"__symbolic":"method"}],"getUserdetailsFromRegistry":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"selector":"lib-active-summary","template":"<lib-app-loader *ngIf=\"loading === true\"></lib-app-loader>\r\n<ng-container *ngFor=\"let role of roleactivitySummaries\">\r\n <div class=\"card-container\">\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n class=\"\"\r\n (opened)=\"panelOpenState = true\"\r\n (closed)=\"panelOpenState = false\"\r\n >\r\n <mat-expansion-panel-header\r\n class=\"flex-between items-center w-full\"\r\n collapsedHeight=\"auto\"\r\n expandedHeight=\"auto\"\r\n >\r\n\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container *ngIf=\"role?.roles\">\r\n <div class=\"flex flex-column w-full\">\r\n <div class=\"title\">{{ role?.roles }}</div>\r\n <div class=\"progress-status-none\" *ngIf=\"role?.averagePercentage == 0\"></div>\r\n <div class=\"progress-status\" *ngIf=\"role?.averagePercentage < 100 && role?.averagePercentage != 0\" i18n>In Progress</div>\r\n <div class=\"progress-status\" *ngIf=\"role?.averagePercentage == 100\" i18n>Completed</div>\r\n <ng-container >\r\n <!-- 'warn-bar': role?.averagePercentage < 100 && role?.averagePercentage != 0, -->\r\n <div [ngClass]=\"{'green-bar': role?.averagePercentage == 100 , 'warn-bar': role?.averagePercentage < 100 && role?.averagePercentage != 0 }\">\r\n <mat-progress-bar class=\"bar-progress-colour\" mode=\"determinate\" value={{role?.averagePercentage}} class=\"mt-1\"></mat-progress-bar>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <lib-app-loader *ngIf=\"acordianLoading === true\"></lib-app-loader>\r\n <div class=\"expand-container\" *ngIf=\"roleactivitySummaries.length>0\">\r\n <!-- list of activity -->\r\n <div class=\"activity-badge\" i18n>Activities</div>\r\n <ng-container\r\n *ngFor=\"let activity of role?.activities; let i = index\"\r\n >\r\n <div class=\"activity-title\" *ngIf=\"activity.title\">\r\n - {{ activity.title }}\r\n </div>\r\n\r\n\r\n </ng-container>\r\n <ng-container *ngIf=\"role?.activities\">\r\n <lib-competency-accordion [competencyList]=\"role?.activities\"></lib-competency-accordion>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n\r\n </div>\r\n</ng-container>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px}.spinner-loading{display:flex;justify-content:center}.title{font-size:20px;line-height:19px;letter-spacing:-.02em;color:var(--blue)}.icon-down{place-self:flex-end;color:var(--black)!important}:host ::ng-deep .mat-expansion-panel{height:auto}:host ::ng-deep .mat-expansion-panel-header:hover{background:inherit!important}:host ::ng-deep .mat-expansion-panel-body{padding:0 0 16px!important}:host ::ng-deep .mat-expansion-panel-header{border-radius:10px!important;padding:10px 10px 0}:host ::ng-deep .mat-expansion-indicator:after{color:var(--black)!important}:host ::ng-deep .mat-expansion-panel-header-description{margin-right:0!important}.activity-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black);margin-bottom:10px;padding:0 10px}.competency-container{background:var(--white);box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;padding:10px;margin:18px 0 15px}.competency-container .competency-title{font-size:20px;line-height:25px;letter-spacing:-.02em;color:var(--black);margin-bottom:20px}.competency-container .level{font-size:24px;line-height:24px;letter-spacing:-.02em;color:var(--blue)}.expand-container{padding:15px 0 0}.activity-badge{font-weight:400;font-size:14px;color:#1c5d95;background:#ebf4fb;border-radius:50px;width:-moz-fit-content;width:fit-content;padding:5px 20px;margin:0 10px 15px}.mat-progress-bar{border-radius:40px;height:4px}.value{position:relative;bottom:19px;color:#1c5d95;width:275px;display:flex;justify-content:center}::ng-deep.green-bar .theme-igot.day-mode .mat-progress-bar-fill::after{background:no-repeat padding-box #34d6a4!important;border-radius:40px}::ng-deep.warn-bar .mat-progress-bar-fill::after{background:no-repeat padding-box #f1cf8a!important;border-radius:40px}::ng-deep.theme-igot.day-mode .mat-progress-bar-buffer{background-color:#f5f5f5}.progress-status{font-style:italic;font-weight:400;font-size:12px;color:#000;place-self:end}.progress-status-none{visibility:hidden}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":31,"character":26},{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}],"getProgress":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getActivityByRole":[{"__symbolic":"method"}],"designationMap":[{"__symbolic":"method"}],"getActivityByRoleId":[{"__symbolic":"method"}],"getEntityById":[{"__symbolic":"method"}],"getAveragepercentage":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-competency-accordion","template":"<div class=\"competency-badge\" i18n>Competencies :</div>\r\n<ng-container *ngFor=\"let competency of competencyList; let i = index\">\r\n <ng-container *ngIf=\"competency.competency\">\r\n <mat-accordion>\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header\r\n class=\"flex-between items-center w-full\"\r\n collapsedHeight=\"auto\"\r\n expandedHeight=\"auto\"\r\n >\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container *ngIf=\"competency.competency\">\r\n <div class=\"flex flex-row align-items-center gap-2\">\r\n <div>\r\n <ng-container *ngIf=\"competency.completionPercentage == 100\">\r\n <mat-icon class=\"circle-tick cursor-pointer\"\r\n >check_circle</mat-icon\r\n >\r\n </ng-container>\r\n <ng-container *ngIf=\"competency.completionPercentage < 100\">\r\n <mat-progress-spinner\r\n diameter=\"20\"\r\n strokeWidth=\"2\"\r\n mode=\"determinate\"\r\n [value]=\"competency.completionPercentage\"\r\n ></mat-progress-spinner>\r\n </ng-container>\r\n </div>\r\n <div class=\"competency-title\">{{ competency.competency }}</div>\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <!-- <lib-app-loader *ngIf=\"acordianLoading === true\"></lib-app-loader> -->\r\n <div class=\"expand-container\">\r\n <!-- list of levels -->\r\n <div class=\"Levels-badge\" i18n>Levels :</div>\r\n <ng-container *ngFor=\"let level of competency.levels; let i = index\">\r\n <div class=\"flex flex-row align-items-center gap-2\">\r\n <div>\r\n <ng-container *ngIf=\"level.achived\">\r\n <mat-icon class=\"circle-tick cursor-pointer\"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n <ng-container *ngIf=\"!level.achived\" >\r\n <mat-icon class=\"non-progress cursor-pointer\"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n </div>\r\n <div class=\"Levels-title\">{{ i + 1 }} : {{ level.name }}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n <hr />\r\n </ng-container>\r\n</ng-container>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.competency-badge{font-weight:400;font-size:14px;color:#1c5d95;padding:0 10px;margin-top:20px}.competency-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black)}.expand-container{padding:0 10px}.Levels-badge{font-size:14px;color:#1c5d95;margin-bottom:5px}.circle-tick{display:flex;justify-content:center;align-items:center;color:#27ae60;font-size:18px!important}.non-progress{visibility:hidden}"]}]}],"members":{"competencyList":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}}},"origins":{"RequiredComptencyCardComponent":"./components/required-comptency-card/required-comptency-card.component","GainedComptencyCardComponent":"./components/gained-comptency-card/gained-comptency-card.component","CompetencyDashboardComponent":"./components/competency-dashboard/competency-dashboard.component","CompetencyModule":"./competency.module","RequestUtil":"./services/request-util","ɵa":"./services/required-competency.service","ɵb":"./services/gained.service","ɵc":"./services/active-summary.service","ɵd":"./components/active-summary/active-summary.component","ɵe":"./components/competency-accordion/competency-accordion.component"},"importAs":"@aastrika_npmjs/comptency/competency"} | ||
{"__symbolic":"module","version":4,"metadata":{"RequiredComptencyCardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"lib-required-comptency-card","template":"<lib-self-assessment></lib-self-assessment>","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.start-btn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-size:20px;cursor:pointer;margin-top:15px}.log-title{font-size:14px;line-height:24px;letter-spacing:-.02em;color:#1c5d95}.log{border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.logs{padding:5px}.log-items{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}:host ::ng-deep .mat-expansion-panel-header:hover{background:rgba(255,255,255,.98)!important}:host ::ng-deep .mat-content{display:flex!important}.level{place-self:flex-end}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"getRequiredByPostion":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"GainedComptencyCardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"lib-gained-comptency-card","template":"<lib-app-loader *ngIf=\"loading === true\"></lib-app-loader>\r\n<ng-container *ngFor=\"let proficency of gainedproficencyData; let i = index\">\r\n <div class=\"card-container example-container container-balanced\">\r\n <ng-container *ngIf=\"proficency?.title\">\r\n <div class=\"title\">{{ proficency?.title }}</div>\r\n </ng-container>\r\n\r\n <div class=\"levelsTitle\" i18n>Levels:</div>\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n [expanded]=\"i === selectedProficiencyIndex\"\r\n class=\"w-full panel\"\r\n hideToggle\r\n >\r\n <mat-expansion-panel-header\r\n class=\"flex-between items-center panel-header w-full\"\r\n >\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container\r\n *ngFor=\"let proficiencyLevel of proficency?.proficiencyLevels\"\r\n >\r\n <ng-container *ngIf=\"proficiencyLevel.selected; else addLevel\">\r\n <div\r\n (click)=\"\r\n $event.stopPropagation();\r\n selectLevel(i, proficiencyLevel.displayLevel)\r\n \"\r\n class=\"level mb-1\"\r\n [ngStyle]=\"{ 'background-color': proficiencyLevel.color }\"\r\n [ngClass]=\"{\r\n 'individual-select':\r\n selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === proficiencyLevel?.displayLevel\r\n }\"\r\n >\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-container>\r\n <ng-template #addLevel>\r\n <div (click)=\"$event.stopPropagation()\" class=\"level mb-1\">\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <div\r\n class=\"level mb-1\"\r\n (click)=\"$event.stopPropagation(); selectLevel(i, -1)\"\r\n >\r\n <mat-icon\r\n [ngClass]=\"{ arrowReverse: selectedProficiencyIndex === i }\"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <div>\r\n <span class=\"log-header\" i18n>Log:</span>\r\n <ng-container\r\n *ngFor=\"let log of proficency?.logs; let logIndex = index; let last = last; \"\r\n >\r\n <ng-container\r\n *ngIf=\"\r\n selectedDisplayLevel === -1 ||\r\n (selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === log.level)\r\n \"\r\n >\r\n <div class=\"log\" [ngClass]=\"{'border-bottom-0': last}\">\r\n <div class=\"flex\">\r\n <ng-container *ngIf=\"log.header\">\r\n <span class=\"\"\r\n i18n>Level </span> <span>{{ log.level }}: {{ log.header }}</span\r\n >\r\n <span class=\"log-date mr-2\">{{\r\n log?.date | date : \"dd/MM/yyyy\"\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf=\"log.description\">\r\n <div\r\n class=\"mt-2\"\r\n [ngClass]=\"{ 'hide-content': !log.keyboardArrowUp }\"\r\n >\r\n {{ log.description }}\r\n </div>\r\n <div class=\"justify-end\">\r\n <mat-icon\r\n (click)=\"log.keyboardArrowUp = !log.keyboardArrowUp\"\r\n class=\"mr-3\"\r\n [ngClass]=\"{ arrowReverse: log.keyboardArrowUp }\"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n </div>\r\n <!-- <hr> -->\r\n</ng-container>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.date{font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-300)}.justify-end{display:flex;justify-content:flex-end}.card-container{background:var(--white);border-bottom:1px solid #ddd;padding:5px 4px}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:18px}.levelsTitle{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.panel{box-shadow:0 0!important;padding:1px 3px 1px 0}.panel-header{padding:0!important;background:0 0!important}.panel-header-description{margin:0!important;padding:1px}.arrowReverse{transform:rotateX(180deg)}.level{width:47px;max-width:16.6%;height:36px;display:flex;justify-content:center;align-items:center;box-shadow:0 0 2.17333px rgba(0,0,0,.2509803922)}.log-header{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.log{font-style:italic;font-size:14px;line-height:16px;letter-spacing:-.02em;color:var(--gray-400);border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.log-date{font-style:normal;font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-400);margin:0 auto}::ng-deep .mat-expansion-panel-body{padding:0!important}:host ::ng-deep .mat-content{display:unset!important}.hide-content{display:none}.individual-select{border:2px solid #1c5d95}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":24,"character":26},{"__symbolic":"reference","name":"ɵc"}]}],"ngOnInit":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getAllUserPassbook":[{"__symbolic":"method"}],"getAllEntity":[{"__symbolic":"method"}],"selectLevel":[{"__symbolic":"method"}]}},"CompetencyDashboardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"lib-competency-dashboard","template":"<div class=\"content\" [ngClass]=\"isMobileApp ? 'content-mobile' : 'content'\">\r\n <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer mb-3\"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class=\"pl-2 mb-0\" i18n>Competency Dashboard</h1>\r\n\r\n <div class=\"pl-2 tab-container\">\r\n <!-- <ng-container *ngIf=\"tabIndex === 1\">\r\n <div class=\"sortIcon\">\r\n <img src=\"./assets/comptency/images/filter.png\" />\r\n </div>\r\n </ng-container> -->\r\n <mat-tab-group\r\n [ngClass]=\"{ 'header-width-icon': tabIndex === 1 }\"\r\n class=\"remove-border-bottom\"\r\n animationDuration=\"0ms\"\r\n [selectedIndex]=\"tabIndex\"\r\n (selectedTabChange)=\"changeTab($event)\"\r\n >\r\n <!-- Active Summary as Job Description -->\r\n <mat-tab i18n-label label=\"Job Description\">\r\n <h4 class=\"mt-4 mb-1\" i18n>Roles</h4>\r\n <lib-active-summary *ngIf=\"tabIndex === 0\"></lib-active-summary>\r\n </mat-tab>\r\n\r\n <!-- gained as Passbook -->\r\n <mat-tab i18n-label label=\"Passbook\">\r\n <div class=\"legend-container\">\r\n <div class=\"legend legend-blue\"></div>\r\n <h5 i18n>External</h5>\r\n <div class=\"legend legend-green\"></div>\r\n <h5 i18n>Self</h5>\r\n <div class=\"legend legend-yellow\"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf=\"tabIndex === 1\"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n <!-- required -->\r\n <mat-tab i18n-label label=\"Required\">\r\n <div class=\"required-comperencies\">\r\n <div class=\"mt-2 tab-badge\" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf=\"tabIndex === 2\"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}@media only screen and (max-width:599px){.content{max-width:90%}}.content-mobile{padding:70px 0;max-width:100%;margin:0 10px}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":10,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":14,"character":31},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":14,"character":61}]}],"ngOnInit":[{"__symbolic":"method"}],"navigateBack":[{"__symbolic":"method"}],"changeTab":[{"__symbolic":"method"}],"startSelfAssessment":[{"__symbolic":"method"}]}},"CompetencyModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":17,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"RequiredComptencyCardComponent"},{"__symbolic":"reference","name":"GainedComptencyCardComponent"},{"__symbolic":"reference","name":"CompetencyDashboardComponent"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatTabsModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":26,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatExpansionModule","line":27,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressBarModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressSpinnerModule","line":29,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":30,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"CoreModule","line":31,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/self-assessment","name":"SelfAssessmentModule","line":32,"character":4}],"exports":[{"__symbolic":"reference","name":"RequiredComptencyCardComponent"},{"__symbolic":"reference","name":"GainedComptencyCardComponent"},{"__symbolic":"reference","name":"CompetencyDashboardComponent"},{"__symbolic":"reference","name":"ɵd"}]}]}],"members":{}},"RequestUtil":{"__symbolic":"class","members":{"getHiName":[{"__symbolic":"method"}],"getLevels":[{"__symbolic":"method"}],"getheighestLevel":[{"__symbolic":"method"}],"getCompeletionPercentage":[{"__symbolic":"method"}],"formatedGainedCompetency":[{"__symbolic":"method"}],"getHiTitle":[{"__symbolic":"method"}],"acquiredPassbookLogs":[{"__symbolic":"method"}],"acauiredChannelColourCode":[{"__symbolic":"method"}],"competencyStoreDataFomat":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":13,"character":47},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":15,"character":19},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":15,"character":53}]}],"getRequiredCompetencyById":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵb":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":15,"character":35},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":12,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":21,"character":19},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":21,"character":53}]}],"fetchUserPassbook":[{"__symbolic":"method"}],"fetchAllEntity":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵc":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":14,"character":42},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":16,"character":19},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":16,"character":53}]}],"getActivityById":[{"__symbolic":"method"}],"getUserdetailsFromRegistry":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"selector":"lib-active-summary","template":"<lib-app-loader *ngIf=\"loading === true\"></lib-app-loader>\r\n<ng-container *ngFor=\"let role of roleactivitySummaries\">\r\n <div class=\"card-container\">\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n class=\"\"\r\n (opened)=\"panelOpenState = true\"\r\n (closed)=\"panelOpenState = false\"\r\n >\r\n <mat-expansion-panel-header\r\n class=\"flex-between items-center w-full\"\r\n collapsedHeight=\"auto\"\r\n expandedHeight=\"auto\"\r\n >\r\n\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container *ngIf=\"role?.roles\">\r\n <div class=\"flex flex-column w-full\">\r\n <div class=\"title\">{{ role?.roles }}</div>\r\n <div class=\"progress-status-none\" *ngIf=\"role?.averagePercentage == 0\"></div>\r\n <div class=\"progress-status\" *ngIf=\"role?.averagePercentage < 100 && role?.averagePercentage != 0\" i18n>In Progress</div>\r\n <div class=\"progress-status\" *ngIf=\"role?.averagePercentage == 100\" i18n>Completed</div>\r\n <ng-container >\r\n <!-- 'warn-bar': role?.averagePercentage < 100 && role?.averagePercentage != 0, -->\r\n <div [ngClass]=\"{'green-bar': role?.averagePercentage == 100 , 'warn-bar': role?.averagePercentage < 100 && role?.averagePercentage != 0 }\">\r\n <mat-progress-bar class=\"bar-progress-colour\" mode=\"determinate\" value={{role?.averagePercentage}} class=\"mt-1\"></mat-progress-bar>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <lib-app-loader *ngIf=\"acordianLoading === true\"></lib-app-loader>\r\n <div class=\"expand-container\" *ngIf=\"roleactivitySummaries.length>0\">\r\n <!-- list of activity -->\r\n <div class=\"activity-badge\" i18n>Activities</div>\r\n <ng-container\r\n *ngFor=\"let activity of role?.activities; let i = index\"\r\n >\r\n <div class=\"activity-title\" *ngIf=\"activity.title\">\r\n - {{ activity.title }}\r\n </div>\r\n\r\n\r\n </ng-container>\r\n <ng-container *ngIf=\"role?.activities\">\r\n <lib-competency-accordion [competencyList]=\"role?.activities\"></lib-competency-accordion>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n\r\n </div>\r\n</ng-container>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px}.spinner-loading{display:flex;justify-content:center}.title{font-size:20px;line-height:19px;letter-spacing:-.02em;color:var(--blue)}.icon-down{place-self:flex-end;color:var(--black)!important}:host ::ng-deep .mat-expansion-panel{height:auto}:host ::ng-deep .mat-expansion-panel-header:hover{background:inherit!important}:host ::ng-deep .mat-expansion-panel-body{padding:0 0 16px!important}:host ::ng-deep .mat-expansion-panel-header{border-radius:10px!important;padding:10px 10px 0}:host ::ng-deep .mat-expansion-indicator:after{color:var(--black)!important}:host ::ng-deep .mat-expansion-panel-header-description{margin-right:0!important}.activity-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black);margin-bottom:10px;padding:0 10px}.competency-container{background:var(--white);box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;padding:10px;margin:18px 0 15px}.competency-container .competency-title{font-size:20px;line-height:25px;letter-spacing:-.02em;color:var(--black);margin-bottom:20px}.competency-container .level{font-size:24px;line-height:24px;letter-spacing:-.02em;color:var(--blue)}.expand-container{padding:15px 0 0}.activity-badge{font-weight:400;font-size:14px;color:#1c5d95;background:#ebf4fb;border-radius:50px;width:-moz-fit-content;width:fit-content;padding:5px 20px;margin:0 10px 15px}.mat-progress-bar{border-radius:40px;height:4px}.value{position:relative;bottom:19px;color:#1c5d95;width:275px;display:flex;justify-content:center}::ng-deep.green-bar .theme-igot.day-mode .mat-progress-bar-fill::after{background:no-repeat padding-box #34d6a4!important;border-radius:40px}::ng-deep.warn-bar .mat-progress-bar-fill::after{background:no-repeat padding-box #f1cf8a!important;border-radius:40px}::ng-deep.theme-igot.day-mode .mat-progress-bar-buffer{background-color:#f5f5f5}.progress-status{font-style:italic;font-weight:400;font-size:12px;color:#000;place-self:end}.progress-status-none{visibility:hidden}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":31,"character":26},{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}],"getProgress":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getActivityByRole":[{"__symbolic":"method"}],"designationMap":[{"__symbolic":"method"}],"getActivityByRoleId":[{"__symbolic":"method"}],"getEntityById":[{"__symbolic":"method"}],"getAveragepercentage":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-competency-accordion","template":"<div class=\"competency-badge\" i18n>Competencies :</div>\r\n<ng-container *ngFor=\"let competency of competencyList; let i = index\">\r\n <ng-container *ngIf=\"competency.competency\">\r\n <mat-accordion>\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header\r\n class=\"flex-between items-center w-full\"\r\n collapsedHeight=\"auto\"\r\n expandedHeight=\"auto\"\r\n >\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container *ngIf=\"competency.competency\">\r\n <div class=\"flex flex-row align-items-center gap-2\">\r\n <div>\r\n <ng-container *ngIf=\"competency.completionPercentage == 100\">\r\n <mat-icon class=\"circle-tick cursor-pointer\"\r\n >check_circle</mat-icon\r\n >\r\n </ng-container>\r\n <ng-container *ngIf=\"competency.completionPercentage < 100\">\r\n <mat-progress-spinner\r\n diameter=\"20\"\r\n strokeWidth=\"2\"\r\n mode=\"determinate\"\r\n [value]=\"competency.completionPercentage\"\r\n ></mat-progress-spinner>\r\n </ng-container>\r\n </div>\r\n <div class=\"competency-title\">{{ competency.competency }}</div>\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <!-- <lib-app-loader *ngIf=\"acordianLoading === true\"></lib-app-loader> -->\r\n <div class=\"expand-container\">\r\n <!-- list of levels -->\r\n <div class=\"Levels-badge\" i18n>Levels :</div>\r\n <ng-container *ngFor=\"let level of competency.levels; let i = index\">\r\n <div class=\"flex flex-row align-items-center gap-2\">\r\n <div>\r\n <ng-container *ngIf=\"level.achived\">\r\n <mat-icon class=\"circle-tick cursor-pointer\"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n <ng-container *ngIf=\"!level.achived\" >\r\n <mat-icon class=\"non-progress cursor-pointer\"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n </div>\r\n <div class=\"Levels-title\">{{ i + 1 }} : {{ level.name }}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n <hr />\r\n </ng-container>\r\n</ng-container>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.competency-badge{font-weight:400;font-size:14px;color:#1c5d95;padding:0 10px;margin-top:20px}.competency-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black)}.expand-container{padding:0 10px}.Levels-badge{font-size:14px;color:#1c5d95;margin-bottom:5px}.circle-tick{display:flex;justify-content:center;align-items:center;color:#27ae60;font-size:18px!important}.non-progress{visibility:hidden}"]}]}],"members":{"competencyList":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}}},"origins":{"RequiredComptencyCardComponent":"./components/required-comptency-card/required-comptency-card.component","GainedComptencyCardComponent":"./components/gained-comptency-card/gained-comptency-card.component","CompetencyDashboardComponent":"./components/competency-dashboard/competency-dashboard.component","CompetencyModule":"./competency.module","RequestUtil":"./services/request-util","ɵa":"./services/required-competency.service","ɵb":"./services/gained.service","ɵc":"./services/active-summary.service","ɵd":"./components/active-summary/active-summary.component","ɵe":"./components/competency-accordion/competency-accordion.component"},"importAs":"@aastrika_npmjs/comptency/competency"} |
@@ -0,1 +1,2 @@ | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import { EventEmitter, OnInit } from '@angular/core'; | ||
@@ -5,5 +6,7 @@ import { Router } from '@angular/router'; | ||
router: Router; | ||
configService: ConfigService; | ||
stateChange: EventEmitter<any>; | ||
tabIndex: number; | ||
constructor(router: Router); | ||
isMobileApp: any; | ||
constructor(router: Router, configService: ConfigService); | ||
ngOnInit(): void; | ||
@@ -10,0 +13,0 @@ navigateBack(): void; |
@@ -5,7 +5,2 @@ import { OnDestroy, OnInit } from '@angular/core'; | ||
private requiredCompetencyService; | ||
competencyData: { | ||
title: string; | ||
description: string; | ||
requiredLevel: string; | ||
}[]; | ||
panelOpenState: Boolean; | ||
@@ -12,0 +7,0 @@ customCollapsedHeight: string; |
import { DataService } from '@aastrika_npmjs/comptency/core'; | ||
import { HttpClient } from '@angular/common/http'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
/** | ||
@@ -9,3 +10,4 @@ * ActiveSummaryService to extend Data Service | ||
export declare class ActiveSummaryService extends DataService { | ||
constructor(http: HttpClient); | ||
configService: ConfigService; | ||
constructor(http: HttpClient, configService: ConfigService); | ||
/** | ||
@@ -12,0 +14,0 @@ * for making getall activity api calls |
import { DataService } from '@aastrika_npmjs/comptency/core'; | ||
import { HttpClient } from '@angular/common/http'; | ||
import { BehaviorSubject } from 'rxjs'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
/** | ||
@@ -10,5 +11,6 @@ * GainedService to extend Data Service | ||
export declare class GainedService extends DataService { | ||
configService: ConfigService; | ||
competencyData: BehaviorSubject<any>; | ||
competencyData$: import("rxjs").Observable<any>; | ||
constructor(http: HttpClient); | ||
constructor(http: HttpClient, configService: ConfigService); | ||
/** | ||
@@ -18,4 +20,4 @@ * for making getall Gained api calls | ||
*/ | ||
fetchUserPassbook(reqBody: any): import("rxjs").Observable<any>; | ||
fetchUserPassbook(reqBody: any, id?: any): import("rxjs").Observable<any>; | ||
fetchAllEntity(reqBody: any): import("rxjs").Observable<any>; | ||
} |
import { DataService } from '@aastrika_npmjs/comptency/core'; | ||
import { HttpClient } from '@angular/common/http'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
/** | ||
@@ -9,3 +10,4 @@ * RequiredCompetencyService to extend Data Service | ||
export declare class RequiredCompetencyService extends DataService { | ||
constructor(http: HttpClient); | ||
configService: ConfigService; | ||
constructor(http: HttpClient, configService: ConfigService); | ||
/** | ||
@@ -12,0 +14,0 @@ * for making getall required competency api calls |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"urlConfig":{"__symbolic":"error","message":"Lambda not supported","line":10,"character":15,"module":"./config/url.config"},"DataService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":21,"character":19}]}],"get":[{"__symbolic":"method"}],"post":[{"__symbolic":"method"}],"getHeader":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"AppLoaderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-app-loader","template":"<ng-container>\r\n <div class=\"loader-content\">\r\n <p class=\"loader\"></p>\r\n </div>\r\n</ng-container>\r\n ","styles":[".sbt-app-loader-container{background:var(--sbt-compt-bg);width:94%!important;margin:0 auto;border-radius:1.5rem;border:0}.loader-content{display:flex;justify-content:center;align-items:center;margin-top:38px}.message{margin:0;font-size:16px;color:#919191}.loader{width:30px;height:30px;margin:-76px 0 0 -76px;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #555;animation:2s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"]}]}],"members":{"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"CoreModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":12,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":13,"character":4}],"declarations":[{"__symbolic":"reference","name":"AppLoaderComponent"}],"exports":[{"__symbolic":"reference","name":"AppLoaderComponent"}],"providers":[{"__symbolic":"reference","name":"DataService"}]}]}],"members":{}}},"origins":{"urlConfig":"./config/url.config","DataService":"./services/data.service","AppLoaderComponent":"./components/app-loader/app-loader.component","CoreModule":"./core.module"},"importAs":"@aastrika_npmjs/comptency/core"} | ||
{"__symbolic":"module","version":4,"metadata":{"urlConfig":{"__symbolic":"error","message":"Lambda not supported","line":11,"character":15,"module":"./config/url.config"},"DataService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":22,"character":19},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":22,"character":54}]}],"get":[{"__symbolic":"method"}],"post":[{"__symbolic":"method"}],"getHeader":[{"__symbolic":"method"}],"setHeader":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"AppLoaderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-app-loader","template":"<ng-container>\r\n <div class=\"loader-content\">\r\n <p class=\"loader\"></p>\r\n </div>\r\n</ng-container>\r\n ","styles":[".sbt-app-loader-container{background:var(--sbt-compt-bg);width:94%!important;margin:0 auto;border-radius:1.5rem;border:0}.loader-content{display:flex;justify-content:center;align-items:center;margin-top:38px}.message{margin:0;font-size:16px;color:#919191}.loader{width:30px;height:30px;margin:-76px 0 0 -76px;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #555;animation:2s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"]}]}],"members":{"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"CoreModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":12,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":13,"character":4}],"declarations":[{"__symbolic":"reference","name":"AppLoaderComponent"}],"exports":[{"__symbolic":"reference","name":"AppLoaderComponent"}],"providers":[{"__symbolic":"reference","name":"DataService"}]}]}],"members":{}}},"origins":{"urlConfig":"./config/url.config","DataService":"./services/data.service","AppLoaderComponent":"./components/app-loader/app-loader.component","CoreModule":"./core.module"},"importAs":"@aastrika_npmjs/comptency/core"} |
@@ -8,2 +8,3 @@ /** | ||
host: string; | ||
mobileHost: string; | ||
apiSlug: string; | ||
@@ -22,2 +23,8 @@ apiProxy: string; | ||
getContentProgress: (id: any) => string; | ||
getAllEntityMobile: () => string; | ||
getUserPassbookMobile: () => string; | ||
getUserdetailsMobile: (wid: string) => string; | ||
getEntityByIdMobile: (id: number) => string; | ||
getSearchMobile: () => string; | ||
getContentProgressMobile: () => string; | ||
}; |
import { HttpClient } from '@angular/common/http'; | ||
import { Observable } from 'rxjs'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
/** | ||
@@ -9,2 +10,3 @@ * DataService to make http call | ||
export declare class DataService { | ||
configService: ConfigService; | ||
/** | ||
@@ -18,3 +20,3 @@ * Contains base Url for api end points | ||
http: HttpClient; | ||
constructor(http: HttpClient); | ||
constructor(http: HttpClient, configService: ConfigService); | ||
/** | ||
@@ -36,2 +38,3 @@ * for making get api calls | ||
private getHeader; | ||
private setHeader; | ||
} |
@@ -48,2 +48,3 @@ import * as tslib_1 from "tslib"; | ||
}); | ||
console.log(this.roleactivitySummaries); | ||
} | ||
@@ -146,2 +147,2 @@ getProgress() { | ||
export { ActiveSummaryComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZlLXN1bW1hcnkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3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SlcclxuICB9XHJcbiAgZ2V0RW50aXR5QnlJZChpZDogYW55KSB7XHJcbiAgICBjb25zdCByZXFCb2R5ID0ge1xyXG4gICAgICBmaWx0ZXI6IHtcclxuICAgICAgICBcImlzRGV0YWlsXCI6IHRydWVcclxuICAgICAgfSxcclxuICAgICAgaWQ6IGlkXHJcbiAgICB9O1xyXG4gICAgcmV0dXJuIHRoaXMuYWN0aXZlU3VtbWFyeVNlcnZpY2UuZ2V0QWN0aXZpdHlCeUlkKHJlcUJvZHkpXHJcbiAgfVxyXG4gIGdldEF2ZXJhZ2VwZXJjZW50YWdlKGRhdGEpIHtcclxuICAgIGxldCB0b3RhbExlbmd0aCA9IGRhdGEubGVuZ3RoXHJcbiAgICBsZXQgcGVyY2VudGFnZSA9IFtdXHJcbiAgICBsZXQgdG90YWxQZXJjZW50ID0gMFxyXG4gICAgXy5mb3JFYWNoKGRhdGEsICh2YWx1ZTogYW55KSA9PiB7XHJcbiAgICAgIHBlcmNlbnRhZ2UucHVzaCh2YWx1ZS5jb21wbGV0aW9uUGVyY2VudGFnZSlcclxuICAgIH0pXHJcbiAgICB0b3RhbFBlcmNlbnQgPSBfLnJvdW5kKF8uc3VtKHBlcmNlbnRhZ2UpIC8gdG90YWxMZW5ndGgpXHJcbiAgICByZXR1cm4gdG90YWxQZXJjZW50XHJcbiAgfVxyXG4gIG5nT25EZXN0cm95KCkge1xyXG4gICAgaWYgKHRoaXMudW5zdWJzY3JpYmUpIHtcclxuICAgICAgdGhpcy51bnN1YnNjcmliZS51bnN1YnNjcmliZSgpXHJcbiAgICB9XHJcblxyXG4gIH1cclxufVxyXG4iXX0= |
import * as tslib_1 from "tslib"; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import { Component, EventEmitter, Output } from '@angular/core'; | ||
import { Router } from '@angular/router'; | ||
let CompetencyDashboardComponent = class CompetencyDashboardComponent { | ||
constructor(router) { | ||
constructor(router, configService) { | ||
this.router = router; | ||
this.configService = configService; | ||
this.stateChange = new EventEmitter(); | ||
@@ -12,2 +14,3 @@ this.tabIndex = 1; | ||
this.tabIndex = 1; | ||
this.isMobileApp = this.configService.getConfig().isMobileApp; | ||
} | ||
@@ -25,3 +28,4 @@ navigateBack() { | ||
CompetencyDashboardComponent.ctorParameters = () => [ | ||
{ type: Router } | ||
{ type: Router }, | ||
{ type: ConfigService } | ||
]; | ||
@@ -34,7 +38,7 @@ tslib_1.__decorate([ | ||
selector: 'lib-competency-dashboard', | ||
template: "<div class=\"content\">\r\n <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer mb-3\"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class=\"pl-2 mb-0\" i18n>Competency Dashboard</h1>\r\n\r\n <div class=\"pl-2 tab-container\">\r\n <!-- <ng-container *ngIf=\"tabIndex === 1\">\r\n <div class=\"sortIcon\">\r\n <img src=\"./assets/comptency/images/filter.png\" />\r\n </div>\r\n </ng-container> -->\r\n <mat-tab-group\r\n [ngClass]=\"{ 'header-width-icon': tabIndex === 1 }\"\r\n class=\"remove-border-bottom\"\r\n animationDuration=\"0ms\"\r\n [selectedIndex]=\"tabIndex\"\r\n (selectedTabChange)=\"changeTab($event)\"\r\n >\r\n <!-- Active Summary as Job Description -->\r\n <mat-tab i18n-label label=\"Job Description\">\r\n <h4 class=\"mt-4 mb-1\" i18n>Roles</h4>\r\n <lib-active-summary *ngIf=\"tabIndex === 0\"></lib-active-summary>\r\n </mat-tab>\r\n\r\n <!-- gained as Passbook -->\r\n <mat-tab i18n-label label=\"Passbook\">\r\n <div class=\"legend-container\">\r\n <div class=\"legend legend-blue\"></div>\r\n <h5 i18n>External</h5>\r\n <div class=\"legend legend-green\"></div>\r\n <h5 i18n>Self</h5>\r\n <div class=\"legend legend-yellow\"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf=\"tabIndex === 1\"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n <!-- required -->\r\n <mat-tab i18n-label label=\"Required\">\r\n <div class=\"required-comperencies\">\r\n <div class=\"mt-2 tab-badge\" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf=\"tabIndex === 2\"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n", | ||
styles: [":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.content{max-width:90%}.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"] | ||
template: "<div class=\"content\" [ngClass]=\"isMobileApp ? 'content-mobile' : 'content'\">\r\n <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer mb-3\"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class=\"pl-2 mb-0\" i18n>Competency Dashboard</h1>\r\n\r\n <div class=\"pl-2 tab-container\">\r\n <!-- <ng-container *ngIf=\"tabIndex === 1\">\r\n <div class=\"sortIcon\">\r\n <img src=\"./assets/comptency/images/filter.png\" />\r\n </div>\r\n </ng-container> -->\r\n <mat-tab-group\r\n [ngClass]=\"{ 'header-width-icon': tabIndex === 1 }\"\r\n class=\"remove-border-bottom\"\r\n animationDuration=\"0ms\"\r\n [selectedIndex]=\"tabIndex\"\r\n (selectedTabChange)=\"changeTab($event)\"\r\n >\r\n <!-- Active Summary as Job Description -->\r\n <mat-tab i18n-label label=\"Job Description\">\r\n <h4 class=\"mt-4 mb-1\" i18n>Roles</h4>\r\n <lib-active-summary *ngIf=\"tabIndex === 0\"></lib-active-summary>\r\n </mat-tab>\r\n\r\n <!-- gained as Passbook -->\r\n <mat-tab i18n-label label=\"Passbook\">\r\n <div class=\"legend-container\">\r\n <div class=\"legend legend-blue\"></div>\r\n <h5 i18n>External</h5>\r\n <div class=\"legend legend-green\"></div>\r\n <h5 i18n>Self</h5>\r\n <div class=\"legend legend-yellow\"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf=\"tabIndex === 1\"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n <!-- required -->\r\n <mat-tab i18n-label label=\"Required\">\r\n <div class=\"required-comperencies\">\r\n <div class=\"mt-2 tab-badge\" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf=\"tabIndex === 2\"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n", | ||
styles: [":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}@media only screen and (max-width:599px){.content{max-width:90%}}.content-mobile{padding:70px 0;max-width:100%;margin:0 10px}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"] | ||
}) | ||
], CompetencyDashboardComponent); | ||
export { CompetencyDashboardComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGV0ZW5jeS1kYXNoYm9hcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3RyaWthX25wbWpzL2NvbXB0ZW5jeS9jb21wZXRlbmN5LyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9jb21wZXRlbmN5LWRhc2hib2FyZC9jb21wZXRlbmN5LWRhc2hib2FyZC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFVLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN4RSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFPekMsSUFBYSw0QkFBNEIsR0FBekMsTUFBYSw0QkFBNEI7SUFHdkMsWUFBcUIsTUFBYztRQUFkLFdBQU0sR0FBTixNQUFNLENBQVE7UUFGekIsZ0JBQVcsR0FBc0IsSUFBSSxZQUFZLEVBQUUsQ0FBQztRQUM5RCxhQUFRLEdBQUcsQ0FBQyxDQUFDO0lBRVosQ0FBQztJQUVGLFFBQVE7UUFDTixJQUFJLENBQUMsUUFBUSxHQUFHLENBQUMsQ0FB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clxuICAgIHRoaXMucm91dGVyLm5hdmlnYXRlKFtgL2FwcC9wcm9maWxlLXZpZXdgXSlcclxuICB9XHJcbiAgY2hhbmdlVGFiKGV2ZW50OmFueSl7XHJcbiAgICB0aGlzLnRhYkluZGV4ID0gZXZlbnQuaW5kZXg7XHJcbiAgfVxyXG4gIHN0YXJ0U2VsZkFzc2Vzc21lbnQoKSB7XHJcbiAgICB0aGlzLnN0YXRlQ2hhbmdlLmVtaXQoeyduYXZpZ2F0aW9uJzp0cnVlfSlcclxuICB9XHJcblxyXG59XHJcbiJdfQ== |
@@ -22,2 +22,3 @@ import * as tslib_1 from "tslib"; | ||
this.getUserDetails().subscribe((res) => { | ||
console.log(res); | ||
this.profileData = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
@@ -29,4 +30,7 @@ }); | ||
forkJoin([allEntity, userPassbook]).subscribe((res) => { | ||
console.log(res); | ||
const response = this.requestUtil.formatedGainedCompetency(res[0].result.response, res[1].result.content, this.profileData); | ||
this.gainedproficencyData = response; | ||
// this.gainedproficencyData = this.dummyData | ||
console.log(response); | ||
if (this.gainedproficencyData) { | ||
@@ -43,5 +47,2 @@ let res = []; | ||
}); | ||
// if (this.gainedproficencyData) { | ||
// this.gainedService.competencyData.next(this.gainedproficencyData.competencyStoreData) | ||
// } | ||
} | ||
@@ -55,2 +56,3 @@ getUserDetails() { | ||
getAllUserPassbook() { | ||
let id = this.configService.getConfig().id; | ||
const reqBody = { | ||
@@ -61,3 +63,3 @@ "request": { | ||
}; | ||
return this.gainedService.fetchUserPassbook(reqBody); | ||
return this.gainedService.fetchUserPassbook(reqBody, id); | ||
} | ||
@@ -96,2 +98,2 @@ getAllEntity() { | ||
export { GainedComptencyCardComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2FpbmVkLWNvbXB0ZW5jeS1jYXJkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYXN0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maWNpZW5jeUluZGV4LCBzZWxlY3RlZERpc3BsYXlMZXZlbCkge1xyXG4gICAgaWYgKChzZWxlY3RlZFByb2ZpY2llbmN5SW5kZXggPT09IHRoaXMuc2VsZWN0ZWRQcm9maWNpZW5jeUluZGV4KSAmJiAoc2VsZWN0ZWREaXNwbGF5TGV2ZWwgPT09IC0xIHx8XHJcbiAgICAgIHNlbGVjdGVkRGlzcGxheUxldmVsID09PSB0aGlzLnNlbGVjdGVkRGlzcGxheUxldmVsKSkge1xyXG4gICAgICB0aGlzLnNlbGVjdGVkUHJvZmljaWVuY3lJbmRleCA9IC0xXHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICB0aGlzLnNlbGVjdGVkUHJvZmljaWVuY3lJbmRleCA9IHNlbGVjdGVkUHJvZmljaWVuY3lJbmRleFxyXG4gICAgfVxyXG4gICAgdGhpcy5zZWxlY3RlZERpc3BsYXlMZXZlbCA9IHNlbGVjdGVkRGlzcGxheUxldmVsXHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -8,34 +8,2 @@ import * as tslib_1 from "tslib"; | ||
this.requiredCompetencyService = requiredCompetencyService; | ||
this.competencyData = [ | ||
{ | ||
title: 'Procurement and Distribution of HCM', | ||
description: 'Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Store management and planning and coordination of THR and Dry ration', | ||
description: 'Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Procurement and Distribution of HCM', | ||
description: 'Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Early Childhood Care Education', | ||
description: 'Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Procurement and Distribution of HCM', | ||
description: 'Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Early Childhood Care Education', | ||
description: 'Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ', | ||
requiredLevel: 'level 4' | ||
}, | ||
]; | ||
this.panelOpenState = true; | ||
@@ -94,2 +62,2 @@ this.customCollapsedHeight = '100px'; | ||
export { RequiredComptencyCardComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWlyZWQtY29tcHRlbmN5LWNhcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3RyaWthX25wbWpzL2NvbXB0ZW5jeS9jb21wZXRlbmN5LyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9yZXF1aXJlZC1jb21wdGVuY3ktY2FyZC9yZXF1aXJlZC1jb21wdGVuY3ktY2FyZC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQXFCLE1BQU0sZUFBZSxDQUFDO0FBRzdELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUMxRCxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSw0Q0FBNEMsQ0FBQztBQU92RixJQUFhLDhCQUE4QixHQUEzQyxNQUFhLDhCQUE4QjtJQTBDekMsWUFDVSx5QkFBb0Q7UUFBcEQsOEJBQXlCLEdBQXpCLHlCQUF5QixDQUEyQjtRQXpDOUQsbUJBQWMsR0FBRztZQUNmO2dCQUNFLEtBQUssRUFBRSxxQ0FBcUM7Z0JBQzVDLFdBQVcsRUFBRSwrSkFBK0o7Z0JBQzVLLGFBQWEsRUFBRSxTQUFTO2FBQ3pCO1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IHRoaXMucmVxdWlyZWRDb21wZXRlbmN5U2VydmljZS5nZXRSZXF1aXJlZENvbXBldGVuY3lCeUlkKHJlcUJvZHkpXHJcbiAgfVxyXG5cclxuICBsb2dzID0gW1xyXG4gICAge1xyXG4gICAgICBpbmRleDogMSxcclxuICAgICAgaGVhZGVyOiAnVW5kZXJzdGFuZHMgSENNIGd1aWRlbGluZXMnLFxyXG4gICAgfSxcclxuICAgIHtcclxuICAgICAgaW5kZXg6IDIsXHJcbiAgICAgIGhlYWRlcjogJ0xpc3RzIHJhdyBtYXRlcmlhbCByZXF1aXJlZCcsXHJcbiAgICB9LFxyXG4gICAge1xyXG4gICAgICBpbmRleDogMyxcclxuICAgICAgaGVhZGVyOiAnUGxhbnMgZm9yIHN0b3JhZ2UnLFxyXG4gICAgfSxcclxuICAgIHtcclxuICAgICAgaW5kZXg6IDQsXHJcbiAgICAgIGhlYWRlcjogJ01vdGl2YXRlcyB0aGUgQVdIIGFuZCBjaGlsZHJlbiBvbiBvcHRpbWFsIGh5Z2llbmUgYW5kIGhhbmR3YXNoaW5nIHByYWN0aWNlcycsXHJcbiAgICB9LFxyXG4gICAge1xyXG4gICAgICBpbmRleDogNSxcclxuICAgICAgaGVhZGVyOiAnQ291cnNlLU5hbWUgQ29tcGxldGlvbicsXHJcbiAgICB9LFxyXG4gICAgXHJcbiAgXVxyXG4gIFxyXG4gIG5nT25EZXN0cm95KCkge1xyXG4gICAgLy90aGlzLnVuc3Vic2NyaWJlLnVuc3Vic2NyaWJlKClcclxuICB9XHJcbn1cclxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWlyZWQtY29tcHRlbmN5LWNhcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3RyaWthX25wbWpzL2NvbXB0ZW5jeS9jb21wZXRlbmN5LyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9yZXF1aXJlZC1jb21wdGVuY3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NIGd1aWRlbGluZXMnLFxyXG4gICAgfSxcclxuICAgIHtcclxuICAgICAgaW5kZXg6IDIsXHJcbiAgICAgIGhlYWRlcjogJ0xpc3RzIHJhdyBtYXRlcmlhbCByZXF1aXJlZCcsXHJcbiAgICB9LFxyXG4gICAge1xyXG4gICAgICBpbmRleDogMyxcclxuICAgICAgaGVhZGVyOiAnUGxhbnMgZm9yIHN0b3JhZ2UnLFxyXG4gICAgfSxcclxuICAgIHtcclxuICAgICAgaW5kZXg6IDQsXHJcbiAgICAgIGhlYWRlcjogJ01vdGl2YXRlcyB0aGUgQVdIIGFuZCBjaGlsZHJlbiBvbiBvcHRpbWFsIGh5Z2llbmUgYW5kIGhhbmR3YXNoaW5nIHByYWN0aWNlcycsXHJcbiAgICB9LFxyXG4gICAge1xyXG4gICAgICBpbmRleDogNSxcclxuICAgICAgaGVhZGVyOiAnQ291cnNlLU5hbWUgQ29tcGxldGlvbicsXHJcbiAgICB9LFxyXG4gICAgXHJcbiAgXVxyXG4gIFxyXG4gIG5nT25EZXN0cm95KCkge1xyXG4gICAgLy90aGlzLnVuc3Vic2NyaWJlLnVuc3Vic2NyaWJlKClcclxuICB9XHJcbn1cclxuIl19 |
@@ -7,4 +7,6 @@ import * as tslib_1 from "tslib"; | ||
import { map } from 'rxjs/operators'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "@angular/common/http"; | ||
import * as i2 from "@aastrika_npmjs/comptency/entry-module"; | ||
/** | ||
@@ -16,4 +18,5 @@ * ActiveSummaryService to extend Data Service | ||
let ActiveSummaryService = class ActiveSummaryService extends DataService { | ||
constructor(http) { | ||
super(http); | ||
constructor(http, configService) { | ||
super(http, configService); | ||
this.configService = configService; | ||
} | ||
@@ -26,4 +29,5 @@ /** | ||
// console.log('calling getActivityById>>') | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
url: urlConfig.getEntityById(reqBody.id), | ||
url: config.isMobileApp ? urlConfig.getEntityByIdMobile(reqBody.id) : urlConfig.getEntityById(reqBody.id), | ||
data: reqBody | ||
@@ -39,4 +43,5 @@ }; | ||
getUserdetailsFromRegistry(reqBody) { | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
url: urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
url: config.isMobileApp ? urlConfig.getUserdetailsMobile(reqBody.id) : urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
}; | ||
@@ -47,5 +52,6 @@ return this.get(httpOptions).pipe(map((res) => res.result.response)); | ||
ActiveSummaryService.ctorParameters = () => [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; | ||
ActiveSummaryService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function ActiveSummaryService_Factory() { return new ActiveSummaryService(i0.ɵɵinject(i1.HttpClient)); }, token: ActiveSummaryService, providedIn: "root" }); | ||
ActiveSummaryService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function ActiveSummaryService_Factory() { return new ActiveSummaryService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: ActiveSummaryService, providedIn: "root" }); | ||
ActiveSummaryService = tslib_1.__decorate([ | ||
@@ -57,2 +63,2 @@ Injectable({ | ||
export { ActiveSummaryService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZlLXN1bW1hcnkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYXN0cmlrYV9ucG1qcy9jb21wdGVuY3kvY29tcGV0ZW5jeS8iLCJzb3VyY2VzIjpbInNlcnZpY2VzL2FjdGl2ZS1zdW1tYXJ5LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLFdBQVcsRUFBRS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cbiAgICAgIC8vIGNvbnNvbGUubG9nKCdjYWxsaW5nIGdldEFjdGl2aXR5QnlJZD4+JylcclxuICAgICAgY29uc3QgaHR0cE9wdGlvbnM6IGFueSA9IHtcclxuICAgICAgICB1cmw6IHVybENvbmZpZy5nZXRFbnRpdHlCeUlkKHJlcUJvZHkuaWQpLFxyXG4gICAgICAgIGRhdGE6IHJlcUJvZHlcclxuICAgICAgfTtcclxuICAgICAgLy8gY29uc29sZS5sb2coJ3JlcUJvZHknLGh0dHBPcHRpb25zKVxyXG4gICAgICByZXR1cm4gdGhpcy5wb3N0KGh0dHBPcHRpb25zKVxyXG4gICAgfVxyXG4gICAgIC8qKlxyXG4gICAqIGZvciBtYWtpbmcgIGFwaSBjYWxscyB0byBnZXQgdXNlckRldGFpbHNcclxuICAgKiBcclxuICAgKi9cclxuICAgIHB1YmxpYyBnZXRVc2VyZGV0YWlsc0Zyb21SZWdpc3RyeShyZXFCb2R5OmFueSl7XHJcbiAgICAgIGNvbnN0IGh0dHBPcHRpb25zOiBhbnkgPSB7XHJcbiAgICAgICAgdXJsOiB1cmxDb25maWcuZ2V0VXNlcmRldGFpbHNGcm9tUmVnaXN0cnkocmVxQm9keS5pZCksXHJcbiAgICAgIH07XHJcbiAgICAgIHJldHVybiB0aGlzLmdldChodHRwT3B0aW9ucykucGlwZShtYXAoKHJlczogYW55KSA9PiByZXMucmVzdWx0LnJlc3BvbnNlKSlcclxuICAgIH1cclxufVxyXG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZlLXN1bW1hcnkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYXN0cmlrYV9ucG1qcy9jb21wdGVuY3kvY29tcGV0ZW5jeS8iLCJzb3VyY2VzIjpbInNlcnZpY2VzL2FjdGl2ZS1zdW1tYXJ5LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQ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mdldEVudGl0eUJ5SWQocmVxQm9keS5pZCksXHJcbiAgICAgICAgZGF0YTogcmVxQm9keVxyXG4gICAgICB9O1xyXG4gICAgICAvLyBjb25zb2xlLmxvZygncmVxQm9keScsaHR0cE9wdGlvbnMpXHJcbiAgICAgIHJldHVybiB0aGlzLnBvc3QoaHR0cE9wdGlvbnMpXHJcbiAgICB9XHJcbiAgICAgLyoqXHJcbiAgICogZm9yIG1ha2luZyAgYXBpIGNhbGxzIHRvIGdldCB1c2VyRGV0YWlsc1xyXG4gICAqIFxyXG4gICAqL1xyXG4gICAgcHVibGljIGdldFVzZXJkZXRhaWxzRnJvbVJlZ2lzdHJ5KHJlcUJvZHk6YW55ICl7XHJcbiAgICAgIGxldCBjb25maWcgPSB0aGlzLmNvbmZpZ1NlcnZpY2UuZ2V0Q29uZmlnKClcclxuICAgICAgY29uc3QgaHR0cE9wdGlvbnM6IGFueSA9IHtcclxuICAgICAgICB1cmw6IGNvbmZpZyEuaXNNb2JpbGVBcHA/IHVybENvbmZpZy5nZXRVc2VyZGV0YWlsc01vYmlsZShyZXFCb2R5LmlkKSA6IHVybENvbmZpZy5nZXRVc2VyZGV0YWlsc0Zyb21SZWdpc3RyeShyZXFCb2R5LmlkKSxcclxuICAgICAgfTtcclxuICAgICAgcmV0dXJuIHRoaXMuZ2V0KGh0dHBPcHRpb25zKS5waXBlKG1hcCgocmVzOiBhbnkpID0+IHJlcy5yZXN1bHQucmVzcG9uc2UpKVxyXG4gICAgfVxyXG59XHJcbiJdfQ== |
@@ -6,4 +6,6 @@ import * as tslib_1 from "tslib"; | ||
import { BehaviorSubject } from 'rxjs'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "@angular/common/http"; | ||
import * as i2 from "@aastrika_npmjs/comptency/entry-module"; | ||
/** | ||
@@ -15,4 +17,5 @@ * GainedService to extend Data Service | ||
let GainedService = class GainedService extends DataService { | ||
constructor(http) { | ||
super(http); | ||
constructor(http, configService) { | ||
super(http, configService); | ||
this.configService = configService; | ||
this.competencyData = new BehaviorSubject(undefined); | ||
@@ -25,6 +28,8 @@ this.competencyData$ = this.competencyData.asObservable(); | ||
*/ | ||
fetchUserPassbook(reqBody) { | ||
fetchUserPassbook(reqBody, id) { | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
url: urlConfig.getUserPassbook(), | ||
data: reqBody | ||
url: config.isMobileApp ? urlConfig.getUserPassbookMobile() : urlConfig.getUserPassbook(), | ||
data: reqBody, | ||
header: config.isMobileApp ? { 'x-authenticated-userid': id } : '' | ||
}; | ||
@@ -34,5 +39,6 @@ return this.post(httpOptions); | ||
fetchAllEntity(reqBody) { | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
url: urlConfig.getAllEntity(), | ||
data: reqBody | ||
url: config.isMobileApp ? urlConfig.getAllEntityMobile() : urlConfig.getAllEntity(), | ||
data: reqBody, | ||
}; | ||
@@ -43,5 +49,6 @@ return this.post(httpOptions); | ||
GainedService.ctorParameters = () => [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; | ||
GainedService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function GainedService_Factory() { return new GainedService(i0.ɵɵinject(i1.HttpClient)); }, token: GainedService, providedIn: "root" }); | ||
GainedService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function GainedService_Factory() { return new GainedService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: GainedService, providedIn: "root" }); | ||
GainedService = tslib_1.__decorate([ | ||
@@ -53,2 +60,2 @@ Injectable({ | ||
export { GainedService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2FpbmVkLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWFzdHJpa2FfbnBtanMvY29tcHRlbmN5L2NvbXBldGVuY3kvIiwic291cmNlcyI6Wy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xyXG5cclxuICBcclxuICBwdWJsaWMgZmV0Y2hBbGxFbnRpdHkocmVxQm9keTphbnkpe1xyXG4gICAgbGV0IGNvbmZpZyA9IHRoaXMuY29uZmlnU2VydmljZS5nZXRDb25maWcoKVxyXG4gICAgY29uc3QgaHR0cE9wdGlvbnM6IGFueSA9IHtcclxuICAgICAgdXJsOiBjb25maWchLmlzTW9iaWxlQXBwID8gIHVybENvbmZpZy5nZXRBbGxFbnRpdHlNb2JpbGUoKSAgOiB1cmxDb25maWcuZ2V0QWxsRW50aXR5KCksXHJcbiAgICAgIGRhdGE6IHJlcUJvZHksXHJcbiAgICAgIFxyXG4gICAgfTtcclxuICAgIHJldHVybiB0aGlzLnBvc3QoaHR0cE9wdGlvbnMpXHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -6,4 +6,6 @@ import * as tslib_1 from "tslib"; | ||
import { urlConfig } from '@aastrika_npmjs/comptency/core'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "@angular/common/http"; | ||
import * as i2 from "@aastrika_npmjs/comptency/entry-module"; | ||
/** | ||
@@ -15,4 +17,5 @@ * RequiredCompetencyService to extend Data Service | ||
let RequiredCompetencyService = class RequiredCompetencyService extends DataService { | ||
constructor(http) { | ||
super(http); | ||
constructor(http, configService) { | ||
super(http, configService); | ||
this.configService = configService; | ||
} | ||
@@ -33,5 +36,6 @@ /** | ||
RequiredCompetencyService.ctorParameters = () => [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; | ||
RequiredCompetencyService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function RequiredCompetencyService_Factory() { return new RequiredCompetencyService(i0.ɵɵinject(i1.HttpClient)); }, token: RequiredCompetencyService, providedIn: "root" }); | ||
RequiredCompetencyService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function RequiredCompetencyService_Factory() { return new RequiredCompetencyService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: RequiredCompetencyService, providedIn: "root" }); | ||
RequiredCompetencyService = tslib_1.__decorate([ | ||
@@ -43,2 +47,2 @@ Injectable({ | ||
export { RequiredCompetencyService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWlyZWQtY29tcGV0ZW5jeS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3RyaWthX25wbWpzL2NvbXB0ZW5jeS9jb21wZXRlbmN5LyIsInNvdXJjZXMiOlsic2VydmljZXMvcmVxdWlyZWQtY29tcGV0ZW5jeS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUM3RCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDbEQsT0FBTyxFQUFFLFNBQVMsRUFBRyxNQUFNLGdDQUFnQyxDQUFDOzs7QUFDNUQ7Ozs7R0FJRztBQUlILElBQWEseUJBQXlCLEdBQXRDLE1BQWEseUJBQTBCLFNBQVEsV0FBVztJQUV4RCxZQUFZLElBQWU7UUFDekIsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFBO0lBQ1osQ0FBQztJQUVGOzs7T0FHRztJQUVLLHlCQUF5QixDQUFDLE9BQVc7UUFDM0MsTUFBTSxXQUFXLEdBQVE7WUFDdkIsR0FBRyxFQUFFLFNBQVMsQ0FBQyxhQUFhLENBQUMsQ0FBQyxDQUFDO1lBQy9CLElBQUksRUFBRSxPQUFPO1NBQ2QsQ0FBQztRQUNGLE9BQU8sQ0FBQyxHQUFHLENBQUMsU0FBUyxFQUFDLFdBQVcsQ0FBQyxDQUFBO1FBQ2xDLE9B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ljZSBcclxuICpcclxuICogQGF1dGhvciBNYW5zdXIgU2hhaWsgPG1hbnN1ci5zaGFpa0B0YXJlbnRvLmNvbT5cclxuICovXHJcbkBJbmplY3RhYmxlKHtcclxuICBwcm92aWRlZEluOiAncm9vdCdcclxufSlcclxuZXhwb3J0IGNsYXNzIFJlcXVpcmVkQ29tcGV0ZW5jeVNlcnZpY2UgZXh0ZW5kcyBEYXRhU2VydmljZSB7XHJcblxyXG4gIGNvbnN0cnVjdG9yKGh0dHA6SHR0cENsaWVudCwgcHVibGljIGNvbmZpZ1NlcnZpY2U6IENvbmZpZ1NlcnZpY2UpIHtcclxuICAgIHN1cGVyKGh0dHAsIGNvbmZpZ1NlcnZpY2UpXHJcbiAgIH1cclxuXHJcbiAgLyoqXHJcbiAgICogZm9yIG1ha2luZyBnZXRhbGwgcmVxdWlyZWQgY29tcGV0ZW5jeSBhcGkgY2FsbHNcclxuICAgKiBcclxuICAgKi9cclxuXHJcbiAgIHB1YmxpYyBnZXRSZXF1aXJlZENvbXBldGVuY3lCeUlkKHJlcUJvZHk6YW55KXtcclxuICAgIGNvbnN0IGh0dHBPcHRpb25zOiBhbnkgPSB7XHJcbiAgICAgIHVybDogdXJsQ29uZmlnLmdldEVudGl0eUJ5SWQoMyksXHJcbiAgICAgIGRhdGE6IHJlcUJvZHlcclxuICAgIH07XHJcbiAgICBjb25zb2xlLmxvZygncmVxQm9keScsaHR0cE9wdGlvbnMpXHJcbiAgICByZXR1cm4gdGhpcy5wb3N0KGh0dHBPcHRpb25zKVxyXG4gIH1cclxuICBcclxufVxyXG4iXX0= |
@@ -1,2 +0,2 @@ | ||
const ɵ0 = () => `${urlConfig.host}${urlConfig.apiSlug}`, ɵ1 = () => `${urlConfig.host}${urlConfig.apiProxy}`, ɵ2 = () => `${urlConfig.host}${urlConfig.apiPublic}`, ɵ3 = (id) => `${urlConfig.apiBasePath()}/entityCompetency/getEntityById/${id}`, ɵ4 = () => `${urlConfig.apiBasePath()}/entityCompetency/getAllEntity`, ɵ5 = () => `${urlConfig.apiBaseProxy()}/user/v1/passbook`, ɵ6 = () => `${urlConfig.apiBasePublic()}/publicSearch/getCourses`, ɵ7 = (identifier, hierarchyType) => `${urlConfig.apiBaseProxy()}/action/content/v3/hierarchy/${identifier}?hierarchyType=${hierarchyType}`, ɵ8 = (wid) => `${urlConfig.apiBaseProxy()}/api/user/v2/read/${wid}`, ɵ9 = (id) => `${urlConfig.apiBaseProxy()}/read/content-progres/${id}`; | ||
const ɵ0 = () => `${urlConfig.host}${urlConfig.apiSlug}`, ɵ1 = () => `${urlConfig.host}${urlConfig.apiProxy}`, ɵ2 = () => `${urlConfig.host}${urlConfig.apiPublic}`, ɵ3 = (id) => `${urlConfig.apiBasePath()}/entityCompetency/getEntityById/${id}`, ɵ4 = () => `${urlConfig.apiBasePath()}/entityCompetency/getAllEntity`, ɵ5 = () => `${urlConfig.apiBaseProxy()}/user/v1/passbook`, ɵ6 = () => `${urlConfig.apiBasePublic()}/publicSearch/getCourses`, ɵ7 = (identifier, hierarchyType) => `${urlConfig.apiBaseProxy()}/action/content/v3/hierarchy/${identifier}?hierarchyType=${hierarchyType}`, ɵ8 = (wid) => `${urlConfig.apiBaseProxy()}/api/user/v2/read/${wid}`, ɵ9 = (id) => `${urlConfig.apiBaseProxy()}/read/content-progres/${id}`, ɵ10 = () => `${urlConfig.mobileHost}${urlConfig.apiPublic}/mobileApp/getAllEntity`, ɵ11 = () => `${urlConfig.mobileHost}/api/user/v1/passbook`, ɵ12 = (wid) => `${urlConfig.mobileHost}/api/user/v2/read/${wid}`, ɵ13 = (id) => `${urlConfig.mobileHost}${urlConfig.apiPublic}/mobileApp/getEntityById/${id}`, ɵ14 = () => `${urlConfig.mobileHost}${urlConfig.apiPublic}/publicSearch/getCourses`, ɵ15 = () => `${urlConfig.mobileHost}/api/course/v1/content/state/read`; | ||
/** | ||
@@ -9,2 +9,3 @@ * urlConfig to return the api url | ||
host: window.location.protocol + "//" + window.location.host || 'https://sphere.aastrika.org', | ||
mobileHost: 'https://sphere.aastrika.org', | ||
apiSlug: '/apis/protected/v8', | ||
@@ -22,5 +23,11 @@ apiProxy: '/apis/proxies/v8', | ||
getUserdetailsFromRegistry: ɵ8, | ||
getContentProgress: ɵ9 | ||
getContentProgress: ɵ9, | ||
getAllEntityMobile: ɵ10, | ||
getUserPassbookMobile: ɵ11, | ||
getUserdetailsMobile: ɵ12, | ||
getEntityByIdMobile: ɵ13, | ||
getSearchMobile: ɵ14, | ||
getContentProgressMobile: ɵ15, | ||
}; | ||
export { ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, ɵ9 }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXJsLmNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYXN0cmlrYV9ucG1qcy9jb21wdGVuY3kvY29yZS8iLCJzb3VyY2VzIjpbImNvbmZpZy91cmwuY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJXQVVlLEdBQUcsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLElBQUksR0FBRyxTQUFTLENBQUMsT0FBTyxFQUFFLE9BQzdDLEdBQUcsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLElBQUksR0FBRyxTQUFTLENBQUMsUUFBUSxFQUFFLE9BQzdDLEdBQUcsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLElBQUksR0FBRyxTQUFTLENBQUMsU0FBUyxFQUFFLE9BQzlDLENBQUMsRUFBUyxFQUFFLEVBQUUsQ0FBQyxHQUFHLFNBQVMsQ0FBQyxXQUFXLEVBQUUsbUNBQW1DLEVBQUUsRUFBRSxPQUNqRixHQUFHLEVBQUUsQ0FBQyxHQUFHLFNBQVMsQ0FBQyxXQUFXLEVBQUUsZ0NBQWdDLE9BQzdELEdBQUcsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLFl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dXJsQ29uZmlnLm1vYmlsZUhvc3R9JHt1cmxDb25maWcuYXBpUHVibGljfS9wdWJsaWNTZWFyY2gvZ2V0Q291cnNlc2AsXHJcbiAgZ2V0Q29udGVudFByb2dyZXNzTW9iaWxlOiAoKSA9PiBgJHt1cmxDb25maWcubW9iaWxlSG9zdH0vYXBpL2NvdXJzZS92MS9jb250ZW50L3N0YXRlL3JlYWRgLFxyXG4gIFxyXG5cclxuXHJcbn1cclxuIl19 |
@@ -6,4 +6,6 @@ import * as tslib_1 from "tslib"; | ||
import { of as observableOf, throwError as observableThrowError } from 'rxjs'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "@angular/common/http"; | ||
import * as i2 from "@aastrika_npmjs/comptency/entry-module"; | ||
/** | ||
@@ -15,3 +17,4 @@ * DataService to make http call | ||
let DataService = class DataService { | ||
constructor(http) { | ||
constructor(http, configService) { | ||
this.configService = configService; | ||
this.http = http; | ||
@@ -25,4 +28,5 @@ } | ||
get(requestParam) { | ||
const httpOptions = { | ||
headers: requestParam.header ? requestParam.header : this.getHeader(), | ||
let config = this.configService.getConfig(); | ||
let httpOptions = { | ||
headers: config.session ? this.setHeader(config.session) : requestParam.header ? requestParam.header : this.getHeader(), | ||
params: requestParam.param, | ||
@@ -44,4 +48,5 @@ observe: 'response' | ||
post(requestParam) { | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
headers: requestParam.header ? this.getHeader(requestParam.header) : this.getHeader(), | ||
headers: config.session ? this.setHeader(config.session, requestParam.header ? requestParam.header : "") : requestParam.header ? requestParam.header : this.getHeader(), | ||
params: requestParam.param | ||
@@ -73,7 +78,20 @@ }; | ||
} | ||
setHeader(session, header) { | ||
const default_headers = { | ||
'Authorization': `Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJTNHNNVFdjZUZqYkxUWGxiczkzUzk4dmFtODBhdkRPUiJ9.nPOCY0-bVX28iNcxxnYbGpihY3ZzfNwx0-SFCnJwjas`, | ||
'X-authenticated-user-token': session ? session.access_token : '', | ||
}; | ||
if (header) { | ||
return Object.assign({}, default_headers, header); | ||
} | ||
else { | ||
return Object.assign({}, default_headers); | ||
} | ||
} | ||
}; | ||
DataService.ctorParameters = () => [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; | ||
DataService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function DataService_Factory() { return new DataService(i0.ɵɵinject(i1.HttpClient)); }, token: DataService, providedIn: "root" }); | ||
DataService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function DataService_Factory() { return new DataService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: DataService, providedIn: "root" }); | ||
DataService = tslib_1.__decorate([ | ||
@@ -85,2 +103,2 @@ Injectable({ | ||
export { DataService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3RyaWthX25wbWpzL2NvbXB0ZW5jeS9jb3JlLyIsInNvdXJjZXMiOlsic2VydmljZXMvZGF0YS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNsRCxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZ0JBQWdCLENBQUE7QUFDdkMsT0FBTyxFQUFFLEVBQUUsSUFBSSxZQUFZLEVBQUUsVUFBVSxJQUFJLG9CQUFvQixFQUFjLE1BQU0sTUFBTSxDQUFDOzs7QUFDMUY7Ozs7R0FJRztBQUlILElBQWEsV0FBVyxHQUF4QixNQUFhLFdBQVc7SUFT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3BvbnNlQ29kZSA9PT0gMjAwIHx8IGRhdGEucmVzcG9uc2VDb2RlID09PSAnT0snKXtcclxuICAgICAgICAgIHJldHVybiBvYnNlcnZhYmxlT2YoZGF0YSk7XHJcbiAgICAgICAgfWVsc2Uge1xyXG4gICAgICAgICAgcmV0dXJuIG9ic2VydmFibGVUaHJvd0Vycm9yKGRhdGEpO1xyXG4gICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgfSlcclxuICAgIClcclxuICB9XHJcbiAgLyoqXHJcbiAgICogZm9yIHByZXBhcmluZyBoZWFkZXJzXHJcbiAgICovXHJcbiAgIHByaXZhdGUgZ2V0SGVhZGVyKGhlYWRlcnM/OiBhbnkpOiBhbnkge1xyXG4gICAgXHJcbiAgICBjb25zdCBkZWZhdWx0X2hlYWRlcnMgPSB7XHJcbiAgICAgICdBY2NlcHQnOiAnYXBwbGljYXRpb24vanNvbicsXHJcbiAgICAgXHJcbiAgICB9O1xyXG4gICAgXHJcbiAgICBpZiAoaGVhZGVycykge1xyXG4gICAgICByZXR1cm4geyAuLi5kZWZhdWx0X2hlYWRlcnMsIC4uLmhlYWRlcnMgfTtcclxuICAgIH0gZWxzZSB7XHJcbiAgICAgIHJldHVybiB7IC4uLmRlZmF1bHRfaGVhZGVycyB9O1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3RyaWthX25wbWpzL2NvbXB0ZW5jeS9jb3JlLyIsInNvdXJjZXMiOlsic2VydmljZXMvZGF0YS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQ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FkZXJzKSB7XHJcbiAgICAgIHJldHVybiB7IC4uLmRlZmF1bHRfaGVhZGVycywgLi4uaGVhZGVycyB9O1xyXG4gICAgfSBlbHNlIHtcclxuICAgICAgcmV0dXJuIHsgLi4uZGVmYXVsdF9oZWFkZXJzIH07XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICBwcml2YXRlIHNldEhlYWRlcihzZXNzaW9uLCBoZWFkZXI/OiBhbnkpe1xyXG4gICAgY29uc3QgZGVmYXVsdF9oZWFkZXJzID0geyBcclxuICAgICAgJ0F1dGhvcml6YXRpb24nOiBgQmVhcmVyIGV5SmhiR2NpT2lKSVV6STFOaUlzSW5SNWNDSTZJa3BYVkNKOS5leUpwYzNNaU9pSlROSE5OVkZkalpVWnFZa3hVV0d4aWN6a3pVems0ZG1GdE9EQmhka1JQVWlKOS5uUE9DWTAtYlZYMjhpTmN4eG5ZYkdwaWhZM1p6Zk53eDAtU0ZDbkp3amFzYCwgICAgIFxyXG4gICAgICAnWC1hdXRoZW50aWNhdGVkLXVzZXItdG9rZW4nOiBzZXNzaW9uID8gc2Vzc2lvbi5hY2Nlc3NfdG9rZW4gOiAnJyxcclxuICAgIH1cclxuICAgIGlmKGhlYWRlcil7XHJcbiAgICAgcmV0dXJuIHsuLi5kZWZhdWx0X2hlYWRlcnMsIC4uLmhlYWRlcn1cclxuICAgIH1lbHNle1xyXG5cclxuICAgICAgcmV0dXJuIHsuLi5kZWZhdWx0X2hlYWRlcnN9XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -14,2 +14,3 @@ import * as tslib_1 from "tslib"; | ||
startSelfAssesment(data) { | ||
console.log("query data ", data); | ||
this.router.navigate([`app/user/self-assessment`], { queryParams: data }); | ||
@@ -84,2 +85,2 @@ } | ||
export { SelfAssessmentCardComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZi1hc3Nlc3NtZW50LWNhcmQuY29tcG9uZW50L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bmN5SUR9LTVgXHJcbiAgICAgIC8vICAgICAgIF0sXHJcbiAgICAgIC8vICAgICAgICAgXCJwcmltYXJ5Q2F0ZWdvcnlcIjogW1xyXG4gICAgICAvLyAgICAgICAgICAgXCJDb3Vyc2VcIlxyXG4gICAgICAvLyAgICAgICAgIF0sXHJcbiAgICAgIC8vICAgICAgICAgICBcImNvbnRlbnRUeXBlXCI6IFtcclxuICAgICAgLy8gICAgICAgICAgICAgXCJDb3Vyc2VcIlxyXG4gICAgICAvLyAgICAgICAgICAgXSxcclxuICAgICAgLy8gICAgICAgICAgICAgXCJzdGF0dXNcIjogW1xyXG4gICAgICAvLyAgICAgICAgICAgICAgIFwiTGl2ZVwiXHJcbiAgICAgIC8vICAgICAgICAgICAgIF1cclxuICAgICAgLy8gICAgIH0sXHJcbiAgICAgIC8vICAgICBcInNvcnRfYnlcIjoge1xyXG4gICAgICAvLyAgICAgICBcImxhc3RVcGRhdGVkT25cIjogXCJkZXNjXCJcclxuICAgICAgLy8gICAgIH1cclxuICAgICAgLy8gICB9LFxyXG4gICAgICAvLyAgIFwic29ydFwiOiBbXHJcbiAgICAgIC8vICAgICB7XHJcbiAgICAgIC8vICAgICAgIFwibGFzdFVwZGF0ZWRPblwiOiBcImRlc2NcIlxyXG4gICAgICAvLyAgICAgfVxyXG4gICAgICAvLyAgIF1cclxuICAgICAgLy8gfVxyXG5cclxuICAgICAgLy8gdGhpcy5zZWxmQXNzZXNzbWVudFNlcnZpY2UuZ2V0Q29tcGV0ZW5jeUNvdXJzZUlkZW50aWZpZXIocmVxQm9keSkuc3Vic2NyaWJlKFxyXG4gICAgICAvLyAgIHJlcyA9PiB7XHJcblxyXG4gICAgICAgICAgXHJcbiAgICAgIC8vICAgfVxyXG4gICAgICAvLyApXHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZi1hc3Nlc3NtZW50LWNhcmQ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0YS5jb21wZXRlbmN5SUR9LTNgLFxyXG4gICAgICAvLyAgICAgICAgIGAke2RhdGEuY29tcGV0ZW5jeUlEfS00YCxcclxuICAgICAgLy8gICAgICAgICBgJHtkYXRhLmNvbXBldGVuY3lJRH0tNWBcclxuICAgICAgLy8gICAgICAgXSxcclxuICAgICAgLy8gICAgICAgICBcInByaW1hcnlDYXRlZ29yeVwiOiBbXHJcbiAgICAgIC8vICAgICAgICAgICBcIkNvdXJzZVwiXHJcbiAgICAgIC8vICAgICAgICAgXSxcclxuICAgICAgLy8gICAgICAgICAgIFwiY29udGVudFR5cGVcIjogW1xyXG4gICAgICAvLyAgICAgICAgICAgICBcIkNvdXJzZVwiXHJcbiAgICAgIC8vICAgICAgICAgICBdLFxyXG4gICAgICAvLyAgICAgICAgICAgICBcInN0YXR1c1wiOiBbXHJcbiAgICAgIC8vICAgICAgICAgICAgICAgXCJMaXZlXCJcclxuICAgICAgLy8gICAgICAgICAgICAgXVxyXG4gICAgICAvLyAgICAgfSxcclxuICAgICAgLy8gICAgIFwic29ydF9ieVwiOiB7XHJcbiAgICAgIC8vICAgICAgIFwibGFzdFVwZGF0ZWRPblwiOiBcImRlc2NcIlxyXG4gICAgICAvLyAgICAgfVxyXG4gICAgICAvLyAgIH0sXHJcbiAgICAgIC8vICAgXCJzb3J0XCI6IFtcclxuICAgICAgLy8gICAgIHtcclxuICAgICAgLy8gICAgICAgXCJsYXN0VXBkYXRlZE9uXCI6IFwiZGVzY1wiXHJcbiAgICAgIC8vICAgICB9XHJcbiAgICAgIC8vICAgXVxyXG4gICAgICAvLyB9XHJcblxyXG4gICAgICAvLyB0aGlzLnNlbGZBc3Nlc3NtZW50U2VydmljZS5nZXRDb21wZXRlbmN5Q291cnNlSWRlbnRpZmllcihyZXFCb2R5KS5zdWJzY3JpYmUoXHJcbiAgICAgIC8vICAgcmVzID0+IHtcclxuXHJcbiAgICAgICAgICBcclxuICAgICAgLy8gICB9XHJcbiAgICAgIC8vIClcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19 |
@@ -7,7 +7,10 @@ import * as tslib_1 from "tslib"; | ||
import { map } from 'rxjs/operators'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "@angular/common/http"; | ||
import * as i2 from "@aastrika_npmjs/comptency/entry-module"; | ||
let SelfAssessmentService = class SelfAssessmentService extends DataService { | ||
constructor(http) { | ||
super(http); | ||
constructor(http, configService) { | ||
super(http, configService); | ||
this.configService = configService; | ||
} | ||
@@ -41,4 +44,5 @@ /** | ||
}; | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
url: urlConfig.getSearch(), | ||
url: config.isMobileApp ? urlConfig.getSearchMobile() : urlConfig.getSearch(), | ||
data: reqBody | ||
@@ -63,4 +67,5 @@ }; | ||
fetchPrgressDetails(req) { | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
url: urlConfig.getContentProgress(req.request.courseId), | ||
url: config.isMobileApp ? urlConfig.getContentProgressMobile() : urlConfig.getContentProgress(req.request.courseId), | ||
data: req | ||
@@ -71,4 +76,5 @@ }; | ||
getUserdetailsFromRegistry(reqBody) { | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
url: urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
url: config.isMobileApp ? urlConfig.getUserdetailsMobile(reqBody.id) : urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
}; | ||
@@ -79,5 +85,6 @@ return this.get(httpOptions).pipe(map((res) => res.result.response)); | ||
SelfAssessmentService.ctorParameters = () => [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; | ||
SelfAssessmentService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function SelfAssessmentService_Factory() { return new SelfAssessmentService(i0.ɵɵinject(i1.HttpClient)); }, token: SelfAssessmentService, providedIn: "root" }); | ||
SelfAssessmentService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function SelfAssessmentService_Factory() { return new SelfAssessmentService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: SelfAssessmentService, providedIn: "root" }); | ||
SelfAssessmentService = tslib_1.__decorate([ | ||
@@ -89,2 +96,2 @@ Injectable({ | ||
export { SelfAssessmentService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZi1hc3Nlc3NtZW50LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWFzdHJpa2FfbnBtanMvY29tcHRlbmN5LyIsInNvdXJjZXMiOlsic2VsZi1hc3Nlc3NtZW50L3NlcnZpY2Uvc2VsZi1hc3Nlc3NtZW50LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQzdELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNsRCxPQUFPLEVBQUUsU0FBUyxFQUFHLE1BQU0sZ0NBQWdDLENBQUM7QUFDNUQsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDOzs7QUFLckMsSUFBYSxxQkFBcUIsR0FBbEMsTUFBYSxxQkFBc0IsU0FBUSxXQUFXO0lBQ3BELFlBQVksSUFBZTtRQUN6QixLQUFLLENBQUMsSUFBSSxDQUFDLENBQUE7SUFDYixDQUFDO0lBRUQ7OztPQUdHO0lBQ0ksNkJBQTZCLENBQUMsSUFBUTtRQUMzQyxNQUFNLE9BQU8sR0FBRztZQUNkLFNBQVMsRUFBRTtnQkFDVCxTQUFTLEVBQUU7b0JBQ1QsaUJBQWlCLEVBQUU7d0JBQ2pCLFFBQVE7cUJBQ1Q7b0JBQ0QsYUFBYSx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uICAgIHN1cGVyKGh0dHApXHJcbiAgfVxyXG5cclxuICAvKipcclxuICAgKnNlYXJjaGluZyBmb3IgdGhlIGNvbnRlbnQgSWRlbnRpZmllclxyXG4gICAqIFxyXG4gICAqL1xyXG4gIHB1YmxpYyBnZXRDb21wZXRlbmN5Q291cnNlSWRlbnRpZmllcihkYXRhOmFueSl7IFxyXG4gICAgY29uc3QgcmVxQm9keSA9IHtcclxuICAgICAgXCJyZXF1ZXN0XCI6IHtcclxuICAgICAgICBcImZpbHRlcnNcIjoge1xyXG4gICAgICAgICAgXCJwcmltYXJ5Q2F0ZWdvcnlcIjogW1xyXG4gICAgICAgICAgICBcIkNvdXJzZVwiXHJcbiAgICAgICAgICBdLFxyXG4gICAgICAgICAgXCJjb250ZW50VHlwZVwiOiBbXHJcbiAgICAgICAgICAgIFwiQ291cnNlXCJcclxuICAgICAgICAgIF0sXHJcbiAgICAgICAgICBcInN0YXR1c1wiOiBbXHJcbiAgICAgICAgICAgIFwiTGl2ZVwiXHJcbiAgICAgICAgICBdLFxyXG4gICAgICAgICAgXCJjb21wZXRlbmN5XCI6IFt0cnVlXSxcclxuICAgICAgICAgIFwibGFuZ1wiOiBkYXRhID09ICdoaScgPyAnaGknIDogJ2VuJ1xyXG4gICAgICAgIH1cclxuICAgICAgfSxcclxuICAgICAgXCJzb3J0XCI6IFtcclxuICAgICAgICB7XHJcbiAgICAgICAgICBcImxhc3RVcGRhdGVkT25cIjogXCJkZXNjXCJcclxuICAgICAgICB9XHJcbiAgICAgIF1cclxuICAgIH1cclxuICAgIGNvbnN0IGh0dHBPcHRpb25zOiBhbnkgPSB7XHJcbiAgICAgIHVybDogdXJsQ29uZmlnLmdldFNlYXJjaCgpLFxyXG4gICAgICBkYXRhOiByZXFCb2R5XHJcbiAgICB9O1xyXG4gICAgXHJcbiAgICByZXR1cm4gdGhpcy5wb3N0KGh0dHBPcHRpb25zKVxyXG4gIH1cclxuXHJcbiAgIC8qKlxyXG4gICAqZ2V0dGluZyB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gICAgXCJwcmltYXJ5Q2F0ZWdvcnlcIjogW1xyXG4gICAgICAgICAgICBcIkNvdXJzZVwiXHJcbiAgICAgICAgICBdLFxyXG4gICAgICAgICAgXCJjb250ZW50VHlwZVwiOiBbXHJcbiAgICAgICAgICAgIFwiQ291cnNlXCJcclxuICAgICAgICAgIF0sXHJcbiAgICAgICAgICBcInN0YXR1c1wiOiBbXHJcbiAgICAgICAgICAgIFwiTGl2ZVwiXHJcbiAgICAgICAgICBdLFxyXG4gICAgICAgICAgXCJjb21wZXRlbmN5XCI6IFt0cnVlXSxcclxuICAgICAgICAgIFwibGFuZ1wiOiBkYXRhID09ICdoaScgPyAnaGknIDogJ2VuJ1xyXG4gICAgICAgIH1cclxuICAgICAgfSxcclxuICAgICAgXCJzb3J0XCI6IFtcclxuICAgICAgICB7XHJcbiAgICAgICAgICBcImxhc3RVcGRhdGVkT25cIjogXCJkZXNjXCJcclxuICAgICAgICB9XHJcbiAgICAgIF1cclxuICAgIH1cclxuICAgIGxldCBjb25maWcgPSB0aGlzLmNvbmZpZ1NlcnZpY2UuZ2V0Q29uZmlnKClcclxuICAgIGNvbnN0IGh0dHBPcHRpb25zOiBhbnkgPSB7XHJcbiAgICAgIHVybDogICBjb25maWchLmlzTW9iaWxlQXBwPyAgIHVybENvbmZpZy5nZXRTZWFyY2hNb2JpbGUoKSA6IHVybENvbmZpZy5nZXRTZWFyY2goKSxcclxuICAgICAgZGF0YTogcmVxQm9keVxyXG4gICAgfTtcclxuICAgIFxyXG4gICAgcmV0dXJuIHRoaXMucG9zdChodHRwT3B0aW9ucylcclxuICB9XHJcblxyXG4gICAvKipcclxuICAgKmdldHRpbmcgdGhlIGRldGFpbHMgb2YgY291cnNlIGJ5IHBhc2luZyB0aGUgaWRlbnRpZmllciBhbmQgaGllcmFyY2h5VHlwZVxyXG4gICAqIFxyXG4gICAqL1xyXG5cclxuICBwdWJsaWMgZmV0Y2hIaWVhcmNoeURldGFpbHMoaWRlbnRpZmllciwgaGllcm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lsc0Zyb21SZWdpc3RyeShyZXFCb2R5LmlkKSxcclxuICAgIH07XHJcbiAgICByZXR1cm4gdGhpcy5nZXQoaHR0cE9wdGlvbnMpLnBpcGUobWFwKChyZXM6IGFueSkgPT4gcmVzLnJlc3VsdC5yZXNwb25zZSkpXHJcbiAgfVxyXG5cclxuXHJcblxyXG59XHJcbiJdfQ== |
@@ -49,2 +49,3 @@ import * as tslib_1 from "tslib"; | ||
}); | ||
console.log(this.roleactivitySummaries); | ||
}; | ||
@@ -150,2 +151,2 @@ ActiveSummaryComponent.prototype.getProgress = function () { | ||
export { ActiveSummaryComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZlLXN1bW1hcnkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3RyaWthX25wbWpzL2NvbXB0ZW5jeS9jb21wZXRlbmN5LyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9hY3RpdmUtc3VtbWFyeS9hY3RpdmUtc3VtbWFyeS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQXFCLE1BQU0sZUFBZSxDQUFDO0FBQzdELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUMxRCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQztBQUM3RSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDMUMsT0FBTyxFQUFFLFFBQVEsRUFBb0IsTUFBTSxNQUFNLENBQUM7QUFDbEQsT0FBTyxLQUFLLENBQUMsTUFBTSxXQUFXLENBQUM7QUFDL0IsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQ3ZFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBT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BlcmNlbnRhZ2UpXHJcbiAgICB9KVxyXG4gICAgdG90YWxQZXJjZW50ID0gXy5yb3VuZChfLnN1bShwZXJjZW50YWdlKSAvIHRvdGFsTGVuZ3RoKVxyXG4gICAgcmV0dXJuIHRvdGFsUGVyY2VudFxyXG4gIH1cclxuICBuZ09uRGVzdHJveSgpIHtcclxuICAgIGlmICh0aGlzLnVuc3Vic2NyaWJlKSB7XHJcbiAgICAgIHRoaXMudW5zdWJzY3JpYmUudW5zdWJzY3JpYmUoKVxyXG4gICAgfVxyXG5cclxuICB9XHJcbn1cclxuIl19 |
import * as tslib_1 from "tslib"; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import { Component, EventEmitter, Output } from '@angular/core'; | ||
import { Router } from '@angular/router'; | ||
var CompetencyDashboardComponent = /** @class */ (function () { | ||
function CompetencyDashboardComponent(router) { | ||
function CompetencyDashboardComponent(router, configService) { | ||
this.router = router; | ||
this.configService = configService; | ||
this.stateChange = new EventEmitter(); | ||
@@ -12,2 +14,3 @@ this.tabIndex = 1; | ||
this.tabIndex = 1; | ||
this.isMobileApp = this.configService.getConfig().isMobileApp; | ||
}; | ||
@@ -24,3 +27,4 @@ CompetencyDashboardComponent.prototype.navigateBack = function () { | ||
CompetencyDashboardComponent.ctorParameters = function () { return [ | ||
{ type: Router } | ||
{ type: Router }, | ||
{ type: ConfigService } | ||
]; }; | ||
@@ -33,4 +37,4 @@ tslib_1.__decorate([ | ||
selector: 'lib-competency-dashboard', | ||
template: "<div class=\"content\">\r\n <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer mb-3\"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class=\"pl-2 mb-0\" i18n>Competency Dashboard</h1>\r\n\r\n <div class=\"pl-2 tab-container\">\r\n <!-- <ng-container *ngIf=\"tabIndex === 1\">\r\n <div class=\"sortIcon\">\r\n <img src=\"./assets/comptency/images/filter.png\" />\r\n </div>\r\n </ng-container> -->\r\n <mat-tab-group\r\n [ngClass]=\"{ 'header-width-icon': tabIndex === 1 }\"\r\n class=\"remove-border-bottom\"\r\n animationDuration=\"0ms\"\r\n [selectedIndex]=\"tabIndex\"\r\n (selectedTabChange)=\"changeTab($event)\"\r\n >\r\n <!-- Active Summary as Job Description -->\r\n <mat-tab i18n-label label=\"Job Description\">\r\n <h4 class=\"mt-4 mb-1\" i18n>Roles</h4>\r\n <lib-active-summary *ngIf=\"tabIndex === 0\"></lib-active-summary>\r\n </mat-tab>\r\n\r\n <!-- gained as Passbook -->\r\n <mat-tab i18n-label label=\"Passbook\">\r\n <div class=\"legend-container\">\r\n <div class=\"legend legend-blue\"></div>\r\n <h5 i18n>External</h5>\r\n <div class=\"legend legend-green\"></div>\r\n <h5 i18n>Self</h5>\r\n <div class=\"legend legend-yellow\"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf=\"tabIndex === 1\"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n <!-- required -->\r\n <mat-tab i18n-label label=\"Required\">\r\n <div class=\"required-comperencies\">\r\n <div class=\"mt-2 tab-badge\" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf=\"tabIndex === 2\"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n", | ||
styles: [":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.content{max-width:90%}.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"] | ||
template: "<div class=\"content\" [ngClass]=\"isMobileApp ? 'content-mobile' : 'content'\">\r\n <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer mb-3\"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class=\"pl-2 mb-0\" i18n>Competency Dashboard</h1>\r\n\r\n <div class=\"pl-2 tab-container\">\r\n <!-- <ng-container *ngIf=\"tabIndex === 1\">\r\n <div class=\"sortIcon\">\r\n <img src=\"./assets/comptency/images/filter.png\" />\r\n </div>\r\n </ng-container> -->\r\n <mat-tab-group\r\n [ngClass]=\"{ 'header-width-icon': tabIndex === 1 }\"\r\n class=\"remove-border-bottom\"\r\n animationDuration=\"0ms\"\r\n [selectedIndex]=\"tabIndex\"\r\n (selectedTabChange)=\"changeTab($event)\"\r\n >\r\n <!-- Active Summary as Job Description -->\r\n <mat-tab i18n-label label=\"Job Description\">\r\n <h4 class=\"mt-4 mb-1\" i18n>Roles</h4>\r\n <lib-active-summary *ngIf=\"tabIndex === 0\"></lib-active-summary>\r\n </mat-tab>\r\n\r\n <!-- gained as Passbook -->\r\n <mat-tab i18n-label label=\"Passbook\">\r\n <div class=\"legend-container\">\r\n <div class=\"legend legend-blue\"></div>\r\n <h5 i18n>External</h5>\r\n <div class=\"legend legend-green\"></div>\r\n <h5 i18n>Self</h5>\r\n <div class=\"legend legend-yellow\"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf=\"tabIndex === 1\"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n <!-- required -->\r\n <mat-tab i18n-label label=\"Required\">\r\n <div class=\"required-comperencies\">\r\n <div class=\"mt-2 tab-badge\" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf=\"tabIndex === 2\"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n", | ||
styles: [":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}@media only screen and (max-width:599px){.content{max-width:90%}}.content-mobile{padding:70px 0;max-width:100%;margin:0 10px}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"] | ||
}) | ||
@@ -41,2 +45,2 @@ ], CompetencyDashboardComponent); | ||
export { CompetencyDashboardComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGV0ZW5jeS1kYXNoYm9hcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3RyaWthX25wbWpzL2Nvb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21wZXRlbmN5LWRhc2hib2FyZC5jb21wb25lbnQuc2NzcyddXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBDb21wZXRlbmN5RGFzaGJvYXJkQ29tcG9uZW50IGltcGxlbWVudHMgT25Jbml0IHtcclxuICBAT3V0cHV0KCkgc3RhdGVDaGFuZ2U6IEV2ZW50RW1pdHRlcjxhbnk+ID0gbmV3IEV2ZW50RW1pdHRlcigpO1xyXG4gIHRhYkluZGV4ID0gMTtcclxuICBpc01vYmlsZUFwcFxyXG5cclxuICBjb25zdHJ1Y3RvciggIHB1YmxpYyByb3V0ZXI6IFJvdXRlciwgcHVibGljIGNvbmZpZ1NlcnZpY2U6IENvbmZpZ1NlcnZpY2UpIHtcclxuICAgfVxyXG5cclxuICBuZ09uSW5pdCgpIHtcclxuICAgIHRoaXMudGFiSW5kZXggPSAxXHJcbiAgICB0aGlzLmlzTW9iaWxlQXBwID0gdGhpcy5jb25maWdTZXJ2aWNlLmdldENvbmZpZygpLmlzTW9iaWxlQXBwXHJcbiAgfVxyXG5cclxuICBuYXZpZ2F0ZUJhY2soKSB7XHJcbiAgICB0aGlzLnJvdXRlci5uYXZpZ2F0ZShbYC9hcHAvcHJvZmlsZS12aWV3YF0pXHJcbiAgfVxyXG4gIGNoYW5nZVRhYihldmVudDphbnkpe1xyXG4gICAgdGhpcy50YWJJbmRleCA9IGV2ZW50LmluZGV4O1xyXG4gIH1cclxuICBzdGFydFNlbGZBc3Nlc3NtZW50KCkge1xyXG4gICAgdGhpcy5zdGF0ZUNoYW5nZS5lbWl0KHsnbmF2aWdhdGlvbic6dHJ1ZX0pXHJcbiAgfVxyXG5cclxufVxyXG4iXX0= |
@@ -23,2 +23,3 @@ import * as tslib_1 from "tslib"; | ||
this.getUserDetails().subscribe(function (res) { | ||
console.log(res); | ||
_this.profileData = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
@@ -30,4 +31,7 @@ }); | ||
forkJoin([allEntity, userPassbook]).subscribe(function (res) { | ||
console.log(res); | ||
var response = _this.requestUtil.formatedGainedCompetency(res[0].result.response, res[1].result.content, _this.profileData); | ||
_this.gainedproficencyData = response; | ||
// this.gainedproficencyData = this.dummyData | ||
console.log(response); | ||
if (_this.gainedproficencyData) { | ||
@@ -44,5 +48,2 @@ var res_1 = []; | ||
}); | ||
// if (this.gainedproficencyData) { | ||
// this.gainedService.competencyData.next(this.gainedproficencyData.competencyStoreData) | ||
// } | ||
}; | ||
@@ -56,2 +57,3 @@ GainedComptencyCardComponent.prototype.getUserDetails = function () { | ||
GainedComptencyCardComponent.prototype.getAllUserPassbook = function () { | ||
var id = this.configService.getConfig().id; | ||
var reqBody = { | ||
@@ -62,3 +64,3 @@ "request": { | ||
}; | ||
return this.gainedService.fetchUserPassbook(reqBody); | ||
return this.gainedService.fetchUserPassbook(reqBody, id); | ||
}; | ||
@@ -98,2 +100,2 @@ GainedComptencyCardComponent.prototype.getAllEntity = function () { | ||
export { GainedComptencyCardComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2FpbmVkLWNvbXB0ZW5jeS1jYXJkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYXN0cmlrYV9ucG1qcy9jb21wdGVuY3kvY29tcGV0ZW5jeS8iLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvZ2FpbmVkLWNvbXB0ZW5jeS1jYXJkL2dhaW5lZC1jb21wdGVuY3ktY2FyZC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDbEQsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUNoQyxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFDOUQsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLDZCQUE2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CA9IHNlbGVjdGVkUHJvZmljaWVuY3lJbmRleFxyXG4gICAgfVxyXG4gICAgdGhpcy5zZWxlY3RlZERpc3BsYXlMZXZlbCA9IHNlbGVjdGVkRGlzcGxheUxldmVsXHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -8,34 +8,2 @@ import * as tslib_1 from "tslib"; | ||
this.requiredCompetencyService = requiredCompetencyService; | ||
this.competencyData = [ | ||
{ | ||
title: 'Procurement and Distribution of HCM', | ||
description: 'Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Store management and planning and coordination of THR and Dry ration', | ||
description: 'Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Procurement and Distribution of HCM', | ||
description: 'Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Early Childhood Care Education', | ||
description: 'Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Procurement and Distribution of HCM', | ||
description: 'Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Early Childhood Care Education', | ||
description: 'Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ', | ||
requiredLevel: 'level 4' | ||
}, | ||
]; | ||
this.panelOpenState = true; | ||
@@ -95,2 +63,2 @@ this.customCollapsedHeight = '100px'; | ||
export { RequiredComptencyCardComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWlyZWQtY29tcHRlbmN5LWNhcmQuY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hbmR3YXNoaW5nIHByYWN0aWNlcycsXHJcbiAgICB9LFxyXG4gICAge1xyXG4gICAgICBpbmRleDogNSxcclxuICAgICAgaGVhZGVyOiAnQ291cnNlLU5hbWUgQ29tcGxldGlvbicsXHJcbiAgICB9LFxyXG4gICAgXHJcbiAgXVxyXG4gIFxyXG4gIG5nT25EZXN0cm95KCkge1xyXG4gICAgLy90aGlzLnVuc3Vic2NyaWJlLnVuc3Vic2NyaWJlKClcclxuICB9XHJcbn1cclxuIl19 |
@@ -7,4 +7,6 @@ import * as tslib_1 from "tslib"; | ||
import { map } from 'rxjs/operators'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "@angular/common/http"; | ||
import * as i2 from "@aastrika_npmjs/comptency/entry-module"; | ||
/** | ||
@@ -17,4 +19,6 @@ * ActiveSummaryService to extend Data Service | ||
tslib_1.__extends(ActiveSummaryService, _super); | ||
function ActiveSummaryService(http) { | ||
return _super.call(this, http) || this; | ||
function ActiveSummaryService(http, configService) { | ||
var _this = _super.call(this, http, configService) || this; | ||
_this.configService = configService; | ||
return _this; | ||
} | ||
@@ -27,4 +31,5 @@ /** | ||
// console.log('calling getActivityById>>') | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: urlConfig.getEntityById(reqBody.id), | ||
url: config.isMobileApp ? urlConfig.getEntityByIdMobile(reqBody.id) : urlConfig.getEntityById(reqBody.id), | ||
data: reqBody | ||
@@ -40,4 +45,5 @@ }; | ||
ActiveSummaryService.prototype.getUserdetailsFromRegistry = function (reqBody) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
url: config.isMobileApp ? urlConfig.getUserdetailsMobile(reqBody.id) : urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
}; | ||
@@ -47,5 +53,6 @@ return this.get(httpOptions).pipe(map(function (res) { return res.result.response; })); | ||
ActiveSummaryService.ctorParameters = function () { return [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; }; | ||
ActiveSummaryService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function ActiveSummaryService_Factory() { return new ActiveSummaryService(i0.ɵɵinject(i1.HttpClient)); }, token: ActiveSummaryService, providedIn: "root" }); | ||
ActiveSummaryService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function ActiveSummaryService_Factory() { return new ActiveSummaryService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: ActiveSummaryService, providedIn: "root" }); | ||
ActiveSummaryService = tslib_1.__decorate([ | ||
@@ -59,2 +66,2 @@ Injectable({ | ||
export { ActiveSummaryService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZlLXN1bW1hcnkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYXN0cmlrYV9ucG1qcy9jb21wdGVuY3kvY29tcGV0ZW5jeS8iLCJzb3VyY2VzIjpbInNlcnZpY2VzL2FjdGl2ZS1zdW1tYXJ5LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQzdELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNsRCxPQUFPLEVBQUUsU0FBUyxFQUFHLE1BQU0sZ0NBQWdDLENBQUM7QUFDNUQsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDOzs7QUFDckM7Ozs7R0FJRztBQUlIO0lBQTBDLGdEQUFXO0lBRW5ELDhCQUFZLElBQWU7ZUFDekIsa0JBQU0sSUFBSSxDQUFDO0lBQ2I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NhbGxzIHRvIGdldCB1c2VyRGV0YWlsc1xyXG4gICAqIFxyXG4gICAqL1xyXG4gICAgcHVibGljIGdldFVzZXJkZXRhaWxzRnJvbVJlZ2lzdHJ5KHJlcUJvZHk6YW55ICl7XHJcbiAgICAgIGxldCBjb25maWcgPSB0aGlzLmNvbmZpZ1NlcnZpY2UuZ2V0Q29uZmlnKClcclxuICAgICAgY29uc3QgaHR0cE9wdGlvbnM6IGFueSA9IHtcclxuICAgICAgICB1cmw6IGNvbmZpZyEuaXNNb2JpbGVBcHA/IHVybENvbmZpZy5nZXRVc2VyZGV0YWlsc01vYmlsZShyZXFCb2R5LmlkKSA6IHVybENvbmZpZy5nZXRVc2VyZGV0YWlsc0Zyb21SZWdpc3RyeShyZXFCb2R5LmlkKSxcclxuICAgICAgfTtcclxuICAgICAgcmV0dXJuIHRoaXMuZ2V0KGh0dHBPcHRpb25zKS5waXBlKG1hcCgocmVzOiBhbnkpID0+IHJlcy5yZXN1bHQucmVzcG9uc2UpKVxyXG4gICAgfVxyXG59XHJcbiJdfQ== |
@@ -6,4 +6,6 @@ import * as tslib_1 from "tslib"; | ||
import { BehaviorSubject } from 'rxjs'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "@angular/common/http"; | ||
import * as i2 from "@aastrika_npmjs/comptency/entry-module"; | ||
/** | ||
@@ -16,4 +18,5 @@ * GainedService to extend Data Service | ||
tslib_1.__extends(GainedService, _super); | ||
function GainedService(http) { | ||
var _this = _super.call(this, http) || this; | ||
function GainedService(http, configService) { | ||
var _this = _super.call(this, http, configService) || this; | ||
_this.configService = configService; | ||
_this.competencyData = new BehaviorSubject(undefined); | ||
@@ -27,6 +30,8 @@ _this.competencyData$ = _this.competencyData.asObservable(); | ||
*/ | ||
GainedService.prototype.fetchUserPassbook = function (reqBody) { | ||
GainedService.prototype.fetchUserPassbook = function (reqBody, id) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: urlConfig.getUserPassbook(), | ||
data: reqBody | ||
url: config.isMobileApp ? urlConfig.getUserPassbookMobile() : urlConfig.getUserPassbook(), | ||
data: reqBody, | ||
header: config.isMobileApp ? { 'x-authenticated-userid': id } : '' | ||
}; | ||
@@ -36,5 +41,6 @@ return this.post(httpOptions); | ||
GainedService.prototype.fetchAllEntity = function (reqBody) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: urlConfig.getAllEntity(), | ||
data: reqBody | ||
url: config.isMobileApp ? urlConfig.getAllEntityMobile() : urlConfig.getAllEntity(), | ||
data: reqBody, | ||
}; | ||
@@ -44,5 +50,6 @@ return this.post(httpOptions); | ||
GainedService.ctorParameters = function () { return [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; }; | ||
GainedService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function GainedService_Factory() { return new GainedService(i0.ɵɵinject(i1.HttpClient)); }, token: GainedService, providedIn: "root" }); | ||
GainedService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function GainedService_Factory() { return new GainedService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: GainedService, providedIn: "root" }); | ||
GainedService = tslib_1.__decorate([ | ||
@@ -56,2 +63,2 @@ Injectable({ | ||
export { GainedService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2FpbmVkLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWFzdHJpa2FfbnBtanMvY29tcHRlbmN5L2NvbXBldGVuY3kvIiwic291cmNlcyI6WyJzZXJ2aWNlcy9nYWluZWQuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsV0FBVyxFQUFFLFNBQVMsRUFB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q29uZmlnKClcclxuICAgIGNvbnN0IGh0dHBPcHRpb25zOiBhbnkgPSB7XHJcbiAgICAgIHVybDogY29uZmlnIS5pc01vYmlsZUFwcCA/ICB1cmxDb25maWcuZ2V0QWxsRW50aXR5TW9iaWxlKCkgIDogdXJsQ29uZmlnLmdldEFsbEVudGl0eSgpLFxyXG4gICAgICBkYXRhOiByZXFCb2R5LFxyXG4gICAgICBcclxuICAgIH07XHJcbiAgICByZXR1cm4gdGhpcy5wb3N0KGh0dHBPcHRpb25zKVxyXG4gIH1cclxufVxyXG4iXX0= |
@@ -6,4 +6,6 @@ import * as tslib_1 from "tslib"; | ||
import { urlConfig } from '@aastrika_npmjs/comptency/core'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "@angular/common/http"; | ||
import * as i2 from "@aastrika_npmjs/comptency/entry-module"; | ||
/** | ||
@@ -16,4 +18,6 @@ * RequiredCompetencyService to extend Data Service | ||
tslib_1.__extends(RequiredCompetencyService, _super); | ||
function RequiredCompetencyService(http) { | ||
return _super.call(this, http) || this; | ||
function RequiredCompetencyService(http, configService) { | ||
var _this = _super.call(this, http, configService) || this; | ||
_this.configService = configService; | ||
return _this; | ||
} | ||
@@ -33,5 +37,6 @@ /** | ||
RequiredCompetencyService.ctorParameters = function () { return [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; }; | ||
RequiredCompetencyService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function RequiredCompetencyService_Factory() { return new RequiredCompetencyService(i0.ɵɵinject(i1.HttpClient)); }, token: RequiredCompetencyService, providedIn: "root" }); | ||
RequiredCompetencyService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function RequiredCompetencyService_Factory() { return new RequiredCompetencyService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: RequiredCompetencyService, providedIn: "root" }); | ||
RequiredCompetencyService = tslib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Rob3IgTWFuc3VyIFNoYWlrIDxtYW5zdXIuc2hhaWtAdGFyZW50by5jb20+XHJcbiAqL1xyXG5ASW5qZWN0YWJsZSh7XHJcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBSZXF1aXJlZENvbXBldGVuY3lTZXJ2aWNlIGV4dGVuZHMgRGF0YVNlcnZpY2Uge1xyXG5cclxuICBjb25zdHJ1Y3RvcihodHRwOkh0dHBDbGllbnQsIHB1YmxpYyBjb25maWdTZXJ2aWNlOiBDb25maWdTZXJ2aWNlKSB7XHJcbiAgICBzdXBlcihodHRwLCBjb25maWdTZXJ2aWNlKVxyXG4gICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIGZvciBtYWtpbmcgZ2V0YWxsIHJlcXVpcmVkIGNvbXBldGVuY3kgYXBpIGNhbGxzXHJcbiAgICogXHJcbiAgICovXHJcblxyXG4gICBwdWJsaWMgZ2V0UmVxdWlyZWRDb21wZXRlbmN5QnlJZChyZXFCb2R5OmFueSl7XHJcbiAgICBjb25zdCBodHRwT3B0aW9uczogYW55ID0ge1xyXG4gICAgICB1cmw6IHVybENvbmZpZy5nZXRFbnRpdHlCeUlkKDMpLFxyXG4gICAgICBkYXRhOiByZXFCb2R5XHJcbiAgICB9O1xyXG4gICAgY29uc29sZS5sb2coJ3JlcUJvZHknLGh0dHBPcHRpb25zKVxyXG4gICAgcmV0dXJuIHRoaXMucG9zdChodHRwT3B0aW9ucylcclxuICB9XHJcbiAgXHJcbn1cclxuIl19 |
@@ -1,2 +0,2 @@ | ||
var ɵ0 = function () { return "" + urlConfig.host + urlConfig.apiSlug; }, ɵ1 = function () { return "" + urlConfig.host + urlConfig.apiProxy; }, ɵ2 = function () { return "" + urlConfig.host + urlConfig.apiPublic; }, ɵ3 = function (id) { return urlConfig.apiBasePath() + "/entityCompetency/getEntityById/" + id; }, ɵ4 = function () { return urlConfig.apiBasePath() + "/entityCompetency/getAllEntity"; }, ɵ5 = function () { return urlConfig.apiBaseProxy() + "/user/v1/passbook"; }, ɵ6 = function () { return urlConfig.apiBasePublic() + "/publicSearch/getCourses"; }, ɵ7 = function (identifier, hierarchyType) { return urlConfig.apiBaseProxy() + "/action/content/v3/hierarchy/" + identifier + "?hierarchyType=" + hierarchyType; }, ɵ8 = function (wid) { return urlConfig.apiBaseProxy() + "/api/user/v2/read/" + wid; }, ɵ9 = function (id) { return urlConfig.apiBaseProxy() + "/read/content-progres/" + id; }; | ||
var ɵ0 = function () { return "" + urlConfig.host + urlConfig.apiSlug; }, ɵ1 = function () { return "" + urlConfig.host + urlConfig.apiProxy; }, ɵ2 = function () { return "" + urlConfig.host + urlConfig.apiPublic; }, ɵ3 = function (id) { return urlConfig.apiBasePath() + "/entityCompetency/getEntityById/" + id; }, ɵ4 = function () { return urlConfig.apiBasePath() + "/entityCompetency/getAllEntity"; }, ɵ5 = function () { return urlConfig.apiBaseProxy() + "/user/v1/passbook"; }, ɵ6 = function () { return urlConfig.apiBasePublic() + "/publicSearch/getCourses"; }, ɵ7 = function (identifier, hierarchyType) { return urlConfig.apiBaseProxy() + "/action/content/v3/hierarchy/" + identifier + "?hierarchyType=" + hierarchyType; }, ɵ8 = function (wid) { return urlConfig.apiBaseProxy() + "/api/user/v2/read/" + wid; }, ɵ9 = function (id) { return urlConfig.apiBaseProxy() + "/read/content-progres/" + id; }, ɵ10 = function () { return "" + urlConfig.mobileHost + urlConfig.apiPublic + "/mobileApp/getAllEntity"; }, ɵ11 = function () { return urlConfig.mobileHost + "/api/user/v1/passbook"; }, ɵ12 = function (wid) { return urlConfig.mobileHost + "/api/user/v2/read/" + wid; }, ɵ13 = function (id) { return "" + urlConfig.mobileHost + urlConfig.apiPublic + "/mobileApp/getEntityById/" + id; }, ɵ14 = function () { return "" + urlConfig.mobileHost + urlConfig.apiPublic + "/publicSearch/getCourses"; }, ɵ15 = function () { return urlConfig.mobileHost + "/api/course/v1/content/state/read"; }; | ||
/** | ||
@@ -9,2 +9,3 @@ * urlConfig to return the api url | ||
host: window.location.protocol + "//" + window.location.host || 'https://sphere.aastrika.org', | ||
mobileHost: 'https://sphere.aastrika.org', | ||
apiSlug: '/apis/protected/v8', | ||
@@ -22,5 +23,11 @@ apiProxy: '/apis/proxies/v8', | ||
getUserdetailsFromRegistry: ɵ8, | ||
getContentProgress: ɵ9 | ||
getContentProgress: ɵ9, | ||
getAllEntityMobile: ɵ10, | ||
getUserPassbookMobile: ɵ11, | ||
getUserdetailsMobile: ɵ12, | ||
getEntityByIdMobile: ɵ13, | ||
getSearchMobile: ɵ14, | ||
getContentProgressMobile: ɵ15, | ||
}; | ||
export { ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, ɵ9 }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXJsLmNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYXN0cmlrYV9ucG1qcy9jb21wdGVuY3kvY29yZS8iLCJzb3VyY2VzIjpbImNvbmZpZy91cmwuY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJTQVVlLGNBQU0sT0FBQSxLQUFHLFNBQVMsQ0FBQyxJQUFJLEdBQUcsU0FBUyxDQUFDLE9BQVMsRUFBdkMsQ0FBdUMsT0FDN0MsY0FBTSxPQUFBLEtBQUcsU0FBUyxDQUFDLElBQUksR0FBRyxTQUFTLENBQUMsUUFBVSxFQUF4QyxDQUF3QyxPQUM3QyxjQUFNLE9BQUEsS0FBRyxTQUFTLENBQUMsSUFBSSxHQUFHLFNBQVMsQ0FBQyxTQUFXLEVBQXpDLENBQXlDLE9BQzlDLFVBQUMsRUFBUyxJQUFLLE9BQUcsU0FBUyxDQUFDLFdBQVcsRUFBRSx3Q0FBbUMsRUFBSSxFQUFqRSxDQUFpRSxPQUNqRixjQUFNLE9BQUcsU0FBUyxDQUFDLFdBQVcsRUFBRSxtQ0FBZ0Ms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W50aXR5QnlJZC8ke2lkfWAsXHJcbiAgZ2V0U2VhcmNoTW9iaWxlOiAoKSA9PiBgJHt1cmxDb25maWcubW9iaWxlSG9zdH0ke3VybENvbmZpZy5hcGlQdWJsaWN9L3B1YmxpY1NlYXJjaC9nZXRDb3Vyc2VzYCxcclxuICBnZXRDb250ZW50UHJvZ3Jlc3NNb2JpbGU6ICgpID0+IGAke3VybENvbmZpZy5tb2JpbGVIb3N0fS9hcGkvY291cnNlL3YxL2NvbnRlbnQvc3RhdGUvcmVhZGAsXHJcbiAgXHJcblxyXG5cclxufVxyXG4iXX0= |
@@ -6,4 +6,6 @@ import * as tslib_1 from "tslib"; | ||
import { of as observableOf, throwError as observableThrowError } from 'rxjs'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "@angular/common/http"; | ||
import * as i2 from "@aastrika_npmjs/comptency/entry-module"; | ||
/** | ||
@@ -15,3 +17,4 @@ * DataService to make http call | ||
var DataService = /** @class */ (function () { | ||
function DataService(http) { | ||
function DataService(http, configService) { | ||
this.configService = configService; | ||
this.http = http; | ||
@@ -25,4 +28,5 @@ } | ||
DataService.prototype.get = function (requestParam) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
headers: requestParam.header ? requestParam.header : this.getHeader(), | ||
headers: config.session ? this.setHeader(config.session) : requestParam.header ? requestParam.header : this.getHeader(), | ||
params: requestParam.param, | ||
@@ -45,4 +49,5 @@ observe: 'response' | ||
DataService.prototype.post = function (requestParam) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
headers: requestParam.header ? this.getHeader(requestParam.header) : this.getHeader(), | ||
headers: config.session ? this.setHeader(config.session, requestParam.header ? requestParam.header : "") : requestParam.header ? requestParam.header : this.getHeader(), | ||
params: requestParam.param | ||
@@ -74,6 +79,19 @@ }; | ||
}; | ||
DataService.prototype.setHeader = function (session, header) { | ||
var default_headers = { | ||
'Authorization': "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJTNHNNVFdjZUZqYkxUWGxiczkzUzk4dmFtODBhdkRPUiJ9.nPOCY0-bVX28iNcxxnYbGpihY3ZzfNwx0-SFCnJwjas", | ||
'X-authenticated-user-token': session ? session.access_token : '', | ||
}; | ||
if (header) { | ||
return tslib_1.__assign({}, default_headers, header); | ||
} | ||
else { | ||
return tslib_1.__assign({}, default_headers); | ||
} | ||
}; | ||
DataService.ctorParameters = function () { return [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; }; | ||
DataService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function DataService_Factory() { return new DataService(i0.ɵɵinject(i1.HttpClient)); }, token: DataService, providedIn: "root" }); | ||
DataService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function DataService_Factory() { return new DataService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: DataService, providedIn: "root" }); | ||
DataService = tslib_1.__decorate([ | ||
@@ -87,2 +105,2 @@ Injectable({ | ||
export { DataService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3RyaWthX25wbWpzL2NvbXB0ZW5jeS9jb3JlLyIsInNvdXJjZXMiOlsic2VydmljZXMvZGF0YS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNsRCxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZ0JBQWdCLENBQUE7QUFDdkMsT0FBTyxFQUFFLEVBQUUsSUFBSSxZQUFZLEVBQUUsVUFBVSxJQUFJLG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dGlvbnMpLnBpcGUoXHJcbiAgICAgIG1lcmdlTWFwKChkYXRhOmFueSk9PntcclxuICAgICAgICBpZihkYXRhLnJlc3BvbnNlQ29kZSA9PT0gMjAwIHx8IGRhdGEucmVzcG9uc2VDb2RlID09PSAnT0snKXtcclxuICAgICAgICAgIHJldHVybiBvYnNlcnZhYmxlT2YoZGF0YSk7XHJcbiAgICAgICAgfWVsc2Uge1xyXG4gICAgICAgICAgcmV0dXJuIG9ic2VydmFibGVUaHJvd0Vycm9yKGRhdGEpO1xyXG4gICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgfSlcclxuICAgIClcclxuICB9XHJcbiAgLyoqXHJcbiAgICogZm9yIHByZXBhcmluZyBoZWFkZXJzXHJcbiAgICovXHJcbiAgIHByaXZhdGUgZ2V0SGVhZGVyKGhlYWRlcnM/OiBhbnkpOiBhbnkge1xyXG4gICAgXHJcbiAgICBjb25zdCBkZWZhdWx0X2hlYWRlcnMgPSB7XHJcbiAgICAgICdBY2NlcHQnOiAnYXBwbGljYXRpb24vanNvbicsXHJcbiAgICAgXHJcbiAgICB9O1xyXG4gICAgXHJcbiAgICBpZiAoaGVhZGVycykge1xyXG4gICAgICByZXR1cm4geyAuLi5kZWZhdWx0X2hlYWRlcnMsIC4uLmhlYWRlcnMgfTtcclxuICAgIH0gZWxzZSB7XHJcbiAgICAgIHJldHVybiB7IC4uLmRlZmF1bHRfaGVhZGVycyB9O1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3RyaWthX25wbWpzL2NvbXB0ZW5jeS9jb3JlLyIsInNvdXJjZXMiOlsic2VydmljZXMvZGF0YS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQU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jY2VwdCc6ICdhcHBsaWNhdGlvbi9qc29uJyxcclxuICAgICBcclxuICAgIH07XHJcbiAgICBcclxuICAgIGlmIChoZWFkZXJzKSB7XHJcbiAgICAgIHJldHVybiB7IC4uLmRlZmF1bHRfaGVhZGVycywgLi4uaGVhZGVycyB9O1xyXG4gICAgfSBlbHNlIHtcclxuICAgICAgcmV0dXJuIHsgLi4uZGVmYXVsdF9oZWFkZXJzIH07XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICBwcml2YXRlIHNldEhlYWRlcihzZXNzaW9uLCBoZWFkZXI/OiBhbnkpe1xyXG4gICAgY29uc3QgZGVmYXVsdF9oZWFkZXJzID0geyBcclxuICAgICAgJ0F1dGhvcml6YXRpb24nOiBgQmVhcmVyIGV5SmhiR2NpT2lKSVV6STFOaUlzSW5SNWNDSTZJa3BYVkNKOS5leUpwYzNNaU9pSlROSE5OVkZkalpVWnFZa3hVV0d4aWN6a3pVems0ZG1GdE9EQmhka1JQVWlKOS5uUE9DWTAtYlZYMjhpTmN4eG5ZYkdwaWhZM1p6Zk53eDAtU0ZDbkp3amFzYCwgICAgIFxyXG4gICAgICAnWC1hdXRoZW50aWNhdGVkLXVzZXItdG9rZW4nOiBzZXNzaW9uID8gc2Vzc2lvbi5hY2Nlc3NfdG9rZW4gOiAnJyxcclxuICAgIH1cclxuICAgIGlmKGhlYWRlcil7XHJcbiAgICAgcmV0dXJuIHsuLi5kZWZhdWx0X2hlYWRlcnMsIC4uLmhlYWRlcn1cclxuICAgIH1lbHNle1xyXG5cclxuICAgICAgcmV0dXJuIHsuLi5kZWZhdWx0X2hlYWRlcnN9XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -14,2 +14,3 @@ import * as tslib_1 from "tslib"; | ||
SelfAssessmentCardComponent.prototype.startSelfAssesment = function (data) { | ||
console.log("query data ", data); | ||
this.router.navigate(["app/user/self-assessment"], { queryParams: data }); | ||
@@ -85,2 +86,2 @@ }; | ||
export { SelfAss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BldGVuY3lJRH0tM2AsXHJcbiAgICAgIC8vICAgICAgICAgYCR7ZGF0YS5jb21wZXRlbmN5SUR9LTRgLFxyXG4gICAgICAvLyAgICAgICAgIGAke2RhdGEuY29tcGV0ZW5jeUlEfS01YFxyXG4gICAgICAvLyAgICAgICBdLFxyXG4gICAgICAvLyAgICAgICAgIFwicHJpbWFyeUNhdGVnb3J5XCI6IFtcclxuICAgICAgLy8gICAgICAgICAgIFwiQ291cnNlXCJcclxuICAgICAgLy8gICAgICAgICBdLFxyXG4gICAgICAvLyAgICAgICAgICAgXCJjb250ZW50VHlwZVwiOiBbXHJcbiAgICAgIC8vICAgICAgICAgICAgIFwiQ291cnNlXCJcclxuICAgICAgLy8gICAgICAgICAgIF0sXHJcbiAgICAgIC8vICAgICAgICAgICAgIFwic3RhdHVzXCI6IFtcclxuICAgICAgLy8gICAgICAgICAgICAgICBcIkxpdmVcIlxyXG4gICAgICAvLyAgICAgICAgICAgICBdXHJcbiAgICAgIC8vICAgICB9LFxyXG4gICAgICAvLyAgICAgXCJzb3J0X2J5XCI6IHtcclxuICAgICAgLy8gICAgICAgXCJsYXN0VXBkYXRlZE9uXCI6IFwiZGVzY1wiXHJcbiAgICAgIC8vICAgICB9XHJcbiAgICAgIC8vICAgfSxcclxuICAgICAgLy8gICBcInNvcnRcIjogW1xyXG4gICAgICAvLyAgICAge1xyXG4gICAgICAvLyAgICAgICBcImxhc3RVcGRhdGVkT25cIjogXCJkZXNjXCJcclxuICAgICAgLy8gICAgIH1cclxuICAgICAgLy8gICBdXHJcbiAgICAgIC8vIH1cclxuXHJcbiAgICAgIC8vIHRoaXMuc2VsZkFzc2Vzc21lbnRTZXJ2aWNlLmdldENvbXBldGVuY3lDb3Vyc2VJZGVudGlmaWVyKHJlcUJvZHkpLnN1YnNjcmliZShcclxuICAgICAgLy8gICByZXMgPT4ge1xyXG5cclxuICAgICAgICAgIFxyXG4gICAgICAvLyAgIH1cclxuICAgICAgLy8gKVxyXG4gICAgfVxyX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lJRH0tMWAsXHJcbiAgICAgIC8vICAgICAgICAgYCR7ZGF0YS5jb21wZXRlbmN5SUR9LTJgLFxyXG4gICAgICAvLyAgICAgICAgIGAke2RhdGEuY29tcGV0ZW5jeUlEfS0zYCxcclxuICAgICAgLy8gICAgICAgICBgJHtkYXRhLmNvbXBldGVuY3lJRH0tNGAsXHJcbiAgICAgIC8vICAgICAgICAgYCR7ZGF0YS5jb21wZXRlbmN5SUR9LTVgXHJcbiAgICAgIC8vICAgICAgIF0sXHJcbiAgICAgIC8vICAgICAgICAgXCJwcmltYXJ5Q2F0ZWdvcnlcIjogW1xyXG4gICAgICAvLyAgICAgICAgICAgXCJDb3Vyc2VcIlxyXG4gICAgICAvLyAgICAgICAgIF0sXHJcbiAgICAgIC8vICAgICAgICAgICBcImNvbnRlbnRUeXBlXCI6IFtcclxuICAgICAgLy8gICAgICAgICAgICAgXCJDb3Vyc2VcIlxyXG4gICAgICAvLyAgICAgICAgICAgXSxcclxuICAgICAgLy8gICAgICAgICAgICAgXCJzdGF0dXNcIjogW1xyXG4gICAgICAvLyAgICAgICAgICAgICAgIFwiTGl2ZVwiXHJcbiAgICAgIC8vICAgICAgICAgICAgIF1cclxuICAgICAgLy8gICAgIH0sXHJcbiAgICAgIC8vICAgICBcInNvcnRfYnlcIjoge1xyXG4gICAgICAvLyAgICAgICBcImxhc3RVcGRhdGVkT25cIjogXCJkZXNjXCJcclxuICAgICAgLy8gICAgIH1cclxuICAgICAgLy8gICB9LFxyXG4gICAgICAvLyAgIFwic29ydFwiOiBbXHJcbiAgICAgIC8vICAgICB7XHJcbiAgICAgIC8vICAgICAgIFwibGFzdFVwZGF0ZWRPblwiOiBcImRlc2NcIlxyXG4gICAgICAvLyAgICAgfVxyXG4gICAgICAvLyAgIF1cclxuICAgICAgLy8gfVxyXG5cclxuICAgICAgLy8gdGhpcy5zZWxmQXNzZXNzbWVudFNlcnZpY2UuZ2V0Q29tcGV0ZW5jeUNvdXJzZUlkZW50aWZpZXIocmVxQm9keSkuc3Vic2NyaWJlKFxyXG4gICAgICAvLyAgIHJlcyA9PiB7XHJcblxyXG4gICAgICAgICAgXHJcbiAgICAgIC8vICAgfVxyXG4gICAgICAvLyApXHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -7,8 +7,12 @@ import * as tslib_1 from "tslib"; | ||
import { map } from 'rxjs/operators'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "@angular/common/http"; | ||
import * as i2 from "@aastrika_npmjs/comptency/entry-module"; | ||
var SelfAssessmentService = /** @class */ (function (_super) { | ||
tslib_1.__extends(SelfAssessmentService, _super); | ||
function SelfAssessmentService(http) { | ||
return _super.call(this, http) || this; | ||
function SelfAssessmentService(http, configService) { | ||
var _this = _super.call(this, http, configService) || this; | ||
_this.configService = configService; | ||
return _this; | ||
} | ||
@@ -42,4 +46,5 @@ /** | ||
}; | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: urlConfig.getSearch(), | ||
url: config.isMobileApp ? urlConfig.getSearchMobile() : urlConfig.getSearch(), | ||
data: reqBody | ||
@@ -64,4 +69,5 @@ }; | ||
SelfAssessmentService.prototype.fetchPrgressDetails = function (req) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: urlConfig.getContentProgress(req.request.courseId), | ||
url: config.isMobileApp ? urlConfig.getContentProgressMobile() : urlConfig.getContentProgress(req.request.courseId), | ||
data: req | ||
@@ -72,4 +78,5 @@ }; | ||
SelfAssessmentService.prototype.getUserdetailsFromRegistry = function (reqBody) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
url: config.isMobileApp ? urlConfig.getUserdetailsMobile(reqBody.id) : urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
}; | ||
@@ -79,5 +86,6 @@ return this.get(httpOptions).pipe(map(function (res) { return res.result.response; })); | ||
SelfAssessmentService.ctorParameters = function () { return [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; }; | ||
SelfAssessmentService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function SelfAssessmentService_Factory() { return new SelfAssessmentService(i0.ɵɵinject(i1.HttpClient)); }, token: SelfAssessmentService, providedIn: "root" }); | ||
SelfAssessmentService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function SelfAssessmentService_Factory() { return new SelfAssessmentService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: SelfAssessmentService, providedIn: "root" }); | ||
SelfAssessmentService = tslib_1.__decorate([ | ||
@@ -91,2 +99,2 @@ Injectable({ | ||
export { SelfAssessmentService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZi1hc3Nlc3NtZW50LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWFzdHJpa2FfbnBtanMvY29tcHRlbmN5LyIsInNvdXJjZXMiOlsic2VsZi1hc3Nlc3NtZW50L3NlcnZpY2Uvc2VsZi1hc3Nlc3NtZW50LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQzdELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNsRCxPQUFPLEVBQUUsU0FBUyxFQUFHLE1BQU0sZ0NBQWdDLENBQUM7QUFDNUQsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDOzs7QUFLckM7SUFBMkMsaURBQVc7SUFDcEQsK0JBQVksSUFBZTtlQUN6QixrQkFBTSxJQUFJLENBQUM7SUFDYixDQUFDO0lB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Y3kvY29yZSc7XHJcbmltcG9ydCB7IG1hcCB9IGZyb20gJ3J4anMvb3BlcmF0b3JzJztcclxuXHJcbkBJbmplY3RhYmxlKHtcclxuICBwcm92aWRlZEluOiAncm9vdCdcclxufSlcclxuZXhwb3J0IGNsYXNzIFNlbGZBc3Nlc3NtZW50U2VydmljZSBleHRlbmRzIERhdGFTZXJ2aWNlIHtcclxuICBjb25zdHJ1Y3RvcihodHRwOkh0dHBDbGllbnQpIHtcclxuICAgIHN1cGVyKGh0dHApXHJcbiAgfVxyXG5cclxuICAvKipcclxuICAgKnNlYXJjaGluZyBmb3IgdGhlIGNvbnRlbnQgSWRlbnRpZmllclxyXG4gICAqIFxyXG4gICAqL1xyXG4gIHB1YmxpYyBnZXRDb21wZXRlbmN5Q291cnNlSWRlbnRpZmllcihkYXRhOmFueSl7IFxyXG4gICAgY29uc3QgcmVxQm9keSA9IHtcclxuICAgICAgXCJyZXF1ZXN0XCI6IHtcclxuICAgICAgICBcImZpbHRlcnNcIjoge1xyXG4gICAgICAgICAgXCJwcmltYXJ5Q2F0ZWdvcnlcIjogW1xyXG4gICAgICAgICAgICBcIkNvdXJzZVwiXHJcbiAgICAgICAgICBdLFxyXG4gICAgICAgICAgXCJjb250ZW50VHlwZVwiOiBbXHJcbiAgICAgICAgICAgIFwiQ291cnNlXCJcclxuICAgICAgICAgIF0sXHJcbiAgICAgICAgICBcInN0YXR1c1wiOiBbXHJcbiAgICAgICAgICAgIFwiTGl2ZVwiXHJcbiAgICAgICAgICBdLFxyXG4gICAgICAgICAgXCJjb21wZXRlbmN5XCI6IFt0cnVlXSxcclxuICAgICAgICAgIFwibGFuZ1wiOiBkYXRhID09ICdoaScgPyAnaGknIDogJ2VuJ1xyXG4gICAgICAgIH1cclxuICAgICAgfSxcclxuICAgICAgXCJzb3J0XCI6IFtcclxuICAgICAgICB7XHJcbiAgICAgICAgICBcImxhc3RVcGRhdGVkT25cIjogXCJkZXNjXCJcclxuICAgICAgICB9XHJcbiAgICA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XG4gIC8qKlxyXG4gICAqc2VhcmNoaW5nIGZvciB0aGUgY29udGVudCBJZGVudGlmaWVyXHJcbiAgICogXHJcbiAgICovXHJcbiAgcHVibGljIGdldENvbXBldGVuY3lDb3Vyc2VJZGVudGlmaWVyKGRhdGE6YW55KXsgXHJcbiAgICBjb25zdCByZXFCb2R5ID0ge1xyXG4gICAgICBcInJlcXVlc3RcIjoge1xyXG4gICAgICAgIFwiZmlsdGVyc1wiOiB7XHJcbiAgICAgICAgICBcInByaW1hcnlDYXRlZ29yeVwiOiBbXHJcbiAgICAgICAgICAgIFwiQ291cnNlXCJcclxuICAgICAgICAgIF0sXHJcbiAgICAgICAgICBcImNvbnRlbnRUeXBlXCI6IFtcclxuICAgICAgICAgICAgXCJDb3Vyc2VcIlxyXG4gICAgICAgICAgXSxcclxuICAgICAgICAgIFwic3RhdHVzXCI6IFtcclxuICAgICAgICAgICAgXCJMaXZlXCJcclxuICAgICAgICAgIF0sXHJcbiAgICAgICAgICBcImNvbXBldGVuY3lcIjogW3RydWVdLFxyXG4gICAgICAgICAgXCJsYW5nXCI6IGRhdGEgPT0gJ2hpJyA/ICdoaScgOiAnZW4nXHJcbiAgICAgICAgfVxyXG4gICAgICB9LFxyXG4gICAgICBcInNvcnRcIjogW1xyXG4gICAgICAgIHtcclxuICAgICAgICAgIFwibGFzdFVwZGF0ZWRPblwiOiBcImRlc2NcIlxyXG4gICAgICAgIH1cclxuICAgICAgXVxyXG4gICAgfVxyXG4gICAgbGV0IGNvbmZpZyA9IHRoaXMuY29uZmlnU2VydmljZS5nZXRDb25maWcoKVxyXG4gICAgY29uc3QgaHR0cE9wdGlvbnM6IGFueSA9IHtcclxuICAgICAgdXJsOiAgIGNvbmZpZyEuaXNNb2JpbGVBcHA/ICAgdXJsQ29uZmlnLmdldFNlYXJjaE1vYmlsZSgpIDogdXJsQ29uZmlnLmdldFNlYXJjaCgpLFxyXG4gICAgICBkYXRhOiByZXFCb2R5XHJcbiAgICB9O1xyXG4gICA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mVnaXN0cnkocmVxQm9keTphbnkpe1xyXG4gICAgbGV0IGNvbmZpZyA9IHRoaXMuY29uZmlnU2VydmljZS5nZXRDb25maWcoKVxyXG4gICAgY29uc3QgaHR0cE9wdGlvbnM6IGFueSA9IHtcclxuICAgICAgdXJsOiBjb25maWchLmlzTW9iaWxlQXBwID8gdXJsQ29uZmlnLmdldFVzZXJkZXRhaWxzTW9iaWxlKHJlcUJvZHkuaWQpIDogdXJsQ29uZmlnLmdldFVzZXJkZXRhaWxzRnJvbVJlZ2lzdHJ5KHJlcUJvZHkuaWQpLFxyXG4gICAgfTtcclxuICAgIHJldHVybiB0aGlzLmdldChodHRwT3B0aW9ucykucGlwZShtYXAoKHJlczogYW55KSA9PiByZXMucmVzdWx0LnJlc3BvbnNlKSlcclxuICB9XHJcblxyXG5cclxuXHJcbn1cclxuIl19 |
@@ -6,5 +6,5 @@ import { __decorate } from 'tslib'; | ||
import { HttpClient, HttpClientModule } from '@angular/common/http'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import { BehaviorSubject, forkJoin } from 'rxjs'; | ||
import { map, mergeMap } from 'rxjs/operators'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import { Router } from '@angular/router'; | ||
@@ -304,4 +304,5 @@ import { CommonModule } from '@angular/common'; | ||
let RequiredCompetencyService = class RequiredCompetencyService extends DataService { | ||
constructor(http) { | ||
super(http); | ||
constructor(http, configService) { | ||
super(http, configService); | ||
this.configService = configService; | ||
} | ||
@@ -322,5 +323,6 @@ /** | ||
RequiredCompetencyService.ctorParameters = () => [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; | ||
RequiredCompetencyService.ngInjectableDef = ɵɵdefineInjectable({ factory: function RequiredCompetencyService_Factory() { return new RequiredCompetencyService(ɵɵinject(HttpClient)); }, token: RequiredCompetencyService, providedIn: "root" }); | ||
RequiredCompetencyService.ngInjectableDef = ɵɵdefineInjectable({ factory: function RequiredCompetencyService_Factory() { return new RequiredCompetencyService(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: RequiredCompetencyService, providedIn: "root" }); | ||
RequiredCompetencyService = __decorate([ | ||
@@ -335,34 +337,2 @@ Injectable({ | ||
this.requiredCompetencyService = requiredCompetencyService; | ||
this.competencyData = [ | ||
{ | ||
title: 'Procurement and Distribution of HCM', | ||
description: 'Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Store management and planning and coordination of THR and Dry ration', | ||
description: 'Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Procurement and Distribution of HCM', | ||
description: 'Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Early Childhood Care Education', | ||
description: 'Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Procurement and Distribution of HCM', | ||
description: 'Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Early Childhood Care Education', | ||
description: 'Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ', | ||
requiredLevel: 'level 4' | ||
}, | ||
]; | ||
this.panelOpenState = true; | ||
@@ -427,4 +397,5 @@ this.customCollapsedHeight = '100px'; | ||
let GainedService = class GainedService extends DataService { | ||
constructor(http) { | ||
super(http); | ||
constructor(http, configService) { | ||
super(http, configService); | ||
this.configService = configService; | ||
this.competencyData = new BehaviorSubject(undefined); | ||
@@ -437,6 +408,8 @@ this.competencyData$ = this.competencyData.asObservable(); | ||
*/ | ||
fetchUserPassbook(reqBody) { | ||
fetchUserPassbook(reqBody, id) { | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
url: urlConfig.getUserPassbook(), | ||
data: reqBody | ||
url: config.isMobileApp ? urlConfig.getUserPassbookMobile() : urlConfig.getUserPassbook(), | ||
data: reqBody, | ||
header: config.isMobileApp ? { 'x-authenticated-userid': id } : '' | ||
}; | ||
@@ -446,5 +419,6 @@ return this.post(httpOptions); | ||
fetchAllEntity(reqBody) { | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
url: urlConfig.getAllEntity(), | ||
data: reqBody | ||
url: config.isMobileApp ? urlConfig.getAllEntityMobile() : urlConfig.getAllEntity(), | ||
data: reqBody, | ||
}; | ||
@@ -455,5 +429,6 @@ return this.post(httpOptions); | ||
GainedService.ctorParameters = () => [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; | ||
GainedService.ngInjectableDef = ɵɵdefineInjectable({ factory: function GainedService_Factory() { return new GainedService(ɵɵinject(HttpClient)); }, token: GainedService, providedIn: "root" }); | ||
GainedService.ngInjectableDef = ɵɵdefineInjectable({ factory: function GainedService_Factory() { return new GainedService(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: GainedService, providedIn: "root" }); | ||
GainedService = __decorate([ | ||
@@ -471,4 +446,5 @@ Injectable({ | ||
let ActiveSummaryService = class ActiveSummaryService extends DataService { | ||
constructor(http) { | ||
super(http); | ||
constructor(http, configService) { | ||
super(http, configService); | ||
this.configService = configService; | ||
} | ||
@@ -481,4 +457,5 @@ /** | ||
// console.log('calling getActivityById>>') | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
url: urlConfig.getEntityById(reqBody.id), | ||
url: config.isMobileApp ? urlConfig.getEntityByIdMobile(reqBody.id) : urlConfig.getEntityById(reqBody.id), | ||
data: reqBody | ||
@@ -494,4 +471,5 @@ }; | ||
getUserdetailsFromRegistry(reqBody) { | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
url: urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
url: config.isMobileApp ? urlConfig.getUserdetailsMobile(reqBody.id) : urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
}; | ||
@@ -502,5 +480,6 @@ return this.get(httpOptions).pipe(map((res) => res.result.response)); | ||
ActiveSummaryService.ctorParameters = () => [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; | ||
ActiveSummaryService.ngInjectableDef = ɵɵdefineInjectable({ factory: function ActiveSummaryService_Factory() { return new ActiveSummaryService(ɵɵinject(HttpClient)); }, token: ActiveSummaryService, providedIn: "root" }); | ||
ActiveSummaryService.ngInjectableDef = ɵɵdefineInjectable({ factory: function ActiveSummaryService_Factory() { return new ActiveSummaryService(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: ActiveSummaryService, providedIn: "root" }); | ||
ActiveSummaryService = __decorate([ | ||
@@ -525,2 +504,3 @@ Injectable({ | ||
this.getUserDetails().subscribe((res) => { | ||
console.log(res); | ||
this.profileData = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
@@ -532,4 +512,7 @@ }); | ||
forkJoin([allEntity, userPassbook]).subscribe((res) => { | ||
console.log(res); | ||
const response = this.requestUtil.formatedGainedCompetency(res[0].result.response, res[1].result.content, this.profileData); | ||
this.gainedproficencyData = response; | ||
// this.gainedproficencyData = this.dummyData | ||
console.log(response); | ||
if (this.gainedproficencyData) { | ||
@@ -546,5 +529,2 @@ let res = []; | ||
}); | ||
// if (this.gainedproficencyData) { | ||
// this.gainedService.competencyData.next(this.gainedproficencyData.competencyStoreData) | ||
// } | ||
} | ||
@@ -558,2 +538,3 @@ getUserDetails() { | ||
getAllUserPassbook() { | ||
let id = this.configService.getConfig().id; | ||
const reqBody = { | ||
@@ -564,3 +545,3 @@ "request": { | ||
}; | ||
return this.gainedService.fetchUserPassbook(reqBody); | ||
return this.gainedService.fetchUserPassbook(reqBody, id); | ||
} | ||
@@ -600,4 +581,5 @@ getAllEntity() { | ||
let CompetencyDashboardComponent = class CompetencyDashboardComponent { | ||
constructor(router) { | ||
constructor(router, configService) { | ||
this.router = router; | ||
this.configService = configService; | ||
this.stateChange = new EventEmitter(); | ||
@@ -608,2 +590,3 @@ this.tabIndex = 1; | ||
this.tabIndex = 1; | ||
this.isMobileApp = this.configService.getConfig().isMobileApp; | ||
} | ||
@@ -621,3 +604,4 @@ navigateBack() { | ||
CompetencyDashboardComponent.ctorParameters = () => [ | ||
{ type: Router } | ||
{ type: Router }, | ||
{ type: ConfigService } | ||
]; | ||
@@ -630,4 +614,4 @@ __decorate([ | ||
selector: 'lib-competency-dashboard', | ||
template: "<div class=\"content\">\r\n <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer mb-3\"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class=\"pl-2 mb-0\" i18n>Competency Dashboard</h1>\r\n\r\n <div class=\"pl-2 tab-container\">\r\n <!-- <ng-container *ngIf=\"tabIndex === 1\">\r\n <div class=\"sortIcon\">\r\n <img src=\"./assets/comptency/images/filter.png\" />\r\n </div>\r\n </ng-container> -->\r\n <mat-tab-group\r\n [ngClass]=\"{ 'header-width-icon': tabIndex === 1 }\"\r\n class=\"remove-border-bottom\"\r\n animationDuration=\"0ms\"\r\n [selectedIndex]=\"tabIndex\"\r\n (selectedTabChange)=\"changeTab($event)\"\r\n >\r\n <!-- Active Summary as Job Description -->\r\n <mat-tab i18n-label label=\"Job Description\">\r\n <h4 class=\"mt-4 mb-1\" i18n>Roles</h4>\r\n <lib-active-summary *ngIf=\"tabIndex === 0\"></lib-active-summary>\r\n </mat-tab>\r\n\r\n <!-- gained as Passbook -->\r\n <mat-tab i18n-label label=\"Passbook\">\r\n <div class=\"legend-container\">\r\n <div class=\"legend legend-blue\"></div>\r\n <h5 i18n>External</h5>\r\n <div class=\"legend legend-green\"></div>\r\n <h5 i18n>Self</h5>\r\n <div class=\"legend legend-yellow\"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf=\"tabIndex === 1\"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n <!-- required -->\r\n <mat-tab i18n-label label=\"Required\">\r\n <div class=\"required-comperencies\">\r\n <div class=\"mt-2 tab-badge\" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf=\"tabIndex === 2\"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n", | ||
styles: [":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.content{max-width:90%}.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"] | ||
template: "<div class=\"content\" [ngClass]=\"isMobileApp ? 'content-mobile' : 'content'\">\r\n <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer mb-3\"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class=\"pl-2 mb-0\" i18n>Competency Dashboard</h1>\r\n\r\n <div class=\"pl-2 tab-container\">\r\n <!-- <ng-container *ngIf=\"tabIndex === 1\">\r\n <div class=\"sortIcon\">\r\n <img src=\"./assets/comptency/images/filter.png\" />\r\n </div>\r\n </ng-container> -->\r\n <mat-tab-group\r\n [ngClass]=\"{ 'header-width-icon': tabIndex === 1 }\"\r\n class=\"remove-border-bottom\"\r\n animationDuration=\"0ms\"\r\n [selectedIndex]=\"tabIndex\"\r\n (selectedTabChange)=\"changeTab($event)\"\r\n >\r\n <!-- Active Summary as Job Description -->\r\n <mat-tab i18n-label label=\"Job Description\">\r\n <h4 class=\"mt-4 mb-1\" i18n>Roles</h4>\r\n <lib-active-summary *ngIf=\"tabIndex === 0\"></lib-active-summary>\r\n </mat-tab>\r\n\r\n <!-- gained as Passbook -->\r\n <mat-tab i18n-label label=\"Passbook\">\r\n <div class=\"legend-container\">\r\n <div class=\"legend legend-blue\"></div>\r\n <h5 i18n>External</h5>\r\n <div class=\"legend legend-green\"></div>\r\n <h5 i18n>Self</h5>\r\n <div class=\"legend legend-yellow\"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf=\"tabIndex === 1\"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n <!-- required -->\r\n <mat-tab i18n-label label=\"Required\">\r\n <div class=\"required-comperencies\">\r\n <div class=\"mt-2 tab-badge\" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf=\"tabIndex === 2\"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n", | ||
styles: [":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}@media only screen and (max-width:599px){.content{max-width:90%}}.content-mobile{padding:70px 0;max-width:100%;margin:0 10px}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"] | ||
}) | ||
@@ -674,2 +658,3 @@ ], CompetencyDashboardComponent); | ||
}); | ||
console.log(this.roleactivitySummaries); | ||
} | ||
@@ -676,0 +661,0 @@ getProgress() { |
@@ -6,6 +6,7 @@ import { __decorate } from 'tslib'; | ||
import { throwError, of } from 'rxjs'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import { get } from 'lodash-es'; | ||
import { CommonModule } from '@angular/common'; | ||
const ɵ0 = () => `${urlConfig.host}${urlConfig.apiSlug}`, ɵ1 = () => `${urlConfig.host}${urlConfig.apiProxy}`, ɵ2 = () => `${urlConfig.host}${urlConfig.apiPublic}`, ɵ3 = (id) => `${urlConfig.apiBasePath()}/entityCompetency/getEntityById/${id}`, ɵ4 = () => `${urlConfig.apiBasePath()}/entityCompetency/getAllEntity`, ɵ5 = () => `${urlConfig.apiBaseProxy()}/user/v1/passbook`, ɵ6 = () => `${urlConfig.apiBasePublic()}/publicSearch/getCourses`, ɵ7 = (identifier, hierarchyType) => `${urlConfig.apiBaseProxy()}/action/content/v3/hierarchy/${identifier}?hierarchyType=${hierarchyType}`, ɵ8 = (wid) => `${urlConfig.apiBaseProxy()}/api/user/v2/read/${wid}`, ɵ9 = (id) => `${urlConfig.apiBaseProxy()}/read/content-progres/${id}`; | ||
const ɵ0 = () => `${urlConfig.host}${urlConfig.apiSlug}`, ɵ1 = () => `${urlConfig.host}${urlConfig.apiProxy}`, ɵ2 = () => `${urlConfig.host}${urlConfig.apiPublic}`, ɵ3 = (id) => `${urlConfig.apiBasePath()}/entityCompetency/getEntityById/${id}`, ɵ4 = () => `${urlConfig.apiBasePath()}/entityCompetency/getAllEntity`, ɵ5 = () => `${urlConfig.apiBaseProxy()}/user/v1/passbook`, ɵ6 = () => `${urlConfig.apiBasePublic()}/publicSearch/getCourses`, ɵ7 = (identifier, hierarchyType) => `${urlConfig.apiBaseProxy()}/action/content/v3/hierarchy/${identifier}?hierarchyType=${hierarchyType}`, ɵ8 = (wid) => `${urlConfig.apiBaseProxy()}/api/user/v2/read/${wid}`, ɵ9 = (id) => `${urlConfig.apiBaseProxy()}/read/content-progres/${id}`, ɵ10 = () => `${urlConfig.mobileHost}${urlConfig.apiPublic}/mobileApp/getAllEntity`, ɵ11 = () => `${urlConfig.mobileHost}/api/user/v1/passbook`, ɵ12 = (wid) => `${urlConfig.mobileHost}/api/user/v2/read/${wid}`, ɵ13 = (id) => `${urlConfig.mobileHost}${urlConfig.apiPublic}/mobileApp/getEntityById/${id}`, ɵ14 = () => `${urlConfig.mobileHost}${urlConfig.apiPublic}/publicSearch/getCourses`, ɵ15 = () => `${urlConfig.mobileHost}/api/course/v1/content/state/read`; | ||
/** | ||
@@ -18,2 +19,3 @@ * urlConfig to return the api url | ||
host: window.location.protocol + "//" + window.location.host || 'https://sphere.aastrika.org', | ||
mobileHost: 'https://sphere.aastrika.org', | ||
apiSlug: '/apis/protected/v8', | ||
@@ -31,3 +33,9 @@ apiProxy: '/apis/proxies/v8', | ||
getUserdetailsFromRegistry: ɵ8, | ||
getContentProgress: ɵ9 | ||
getContentProgress: ɵ9, | ||
getAllEntityMobile: ɵ10, | ||
getUserPassbookMobile: ɵ11, | ||
getUserdetailsMobile: ɵ12, | ||
getEntityByIdMobile: ɵ13, | ||
getSearchMobile: ɵ14, | ||
getContentProgressMobile: ɵ15, | ||
}; | ||
@@ -41,3 +49,4 @@ | ||
let DataService = class DataService { | ||
constructor(http) { | ||
constructor(http, configService) { | ||
this.configService = configService; | ||
this.http = http; | ||
@@ -51,4 +60,5 @@ } | ||
get(requestParam) { | ||
const httpOptions = { | ||
headers: requestParam.header ? requestParam.header : this.getHeader(), | ||
let config = this.configService.getConfig(); | ||
let httpOptions = { | ||
headers: config.session ? this.setHeader(config.session) : requestParam.header ? requestParam.header : this.getHeader(), | ||
params: requestParam.param, | ||
@@ -70,4 +80,5 @@ observe: 'response' | ||
post(requestParam) { | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
headers: requestParam.header ? this.getHeader(requestParam.header) : this.getHeader(), | ||
headers: config.session ? this.setHeader(config.session, requestParam.header ? requestParam.header : "") : requestParam.header ? requestParam.header : this.getHeader(), | ||
params: requestParam.param | ||
@@ -99,7 +110,20 @@ }; | ||
} | ||
setHeader(session, header) { | ||
const default_headers = { | ||
'Authorization': `Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJTNHNNVFdjZUZqYkxUWGxiczkzUzk4dmFtODBhdkRPUiJ9.nPOCY0-bVX28iNcxxnYbGpihY3ZzfNwx0-SFCnJwjas`, | ||
'X-authenticated-user-token': session ? session.access_token : '', | ||
}; | ||
if (header) { | ||
return Object.assign({}, default_headers, header); | ||
} | ||
else { | ||
return Object.assign({}, default_headers); | ||
} | ||
} | ||
}; | ||
DataService.ctorParameters = () => [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; | ||
DataService.ngInjectableDef = ɵɵdefineInjectable({ factory: function DataService_Factory() { return new DataService(ɵɵinject(HttpClient)); }, token: DataService, providedIn: "root" }); | ||
DataService.ngInjectableDef = ɵɵdefineInjectable({ factory: function DataService_Factory() { return new DataService(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: DataService, providedIn: "root" }); | ||
DataService = __decorate([ | ||
@@ -156,3 +180,3 @@ Injectable({ | ||
export { AppLoaderComponent, CoreModule, DataService, urlConfig, ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, ɵ9 }; | ||
export { AppLoaderComponent, CoreModule, DataService, urlConfig, ɵ0, ɵ1, ɵ10, ɵ11, ɵ12, ɵ13, ɵ14, ɵ15, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, ɵ9 }; | ||
//# sourceMappingURL=aastrika_npmjs-comptency-core.js.map |
@@ -7,10 +7,11 @@ import { __decorate } from 'tslib'; | ||
import { map, mergeMap } from 'rxjs/operators'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import { Location, CommonModule } from '@angular/common'; | ||
import { get, forEach } from 'lodash-es'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import { MatIconModule } from '@angular/material'; | ||
let SelfAssessmentService = class SelfAssessmentService extends DataService { | ||
constructor(http) { | ||
super(http); | ||
constructor(http, configService) { | ||
super(http, configService); | ||
this.configService = configService; | ||
} | ||
@@ -44,4 +45,5 @@ /** | ||
}; | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
url: urlConfig.getSearch(), | ||
url: config.isMobileApp ? urlConfig.getSearchMobile() : urlConfig.getSearch(), | ||
data: reqBody | ||
@@ -66,4 +68,5 @@ }; | ||
fetchPrgressDetails(req) { | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
url: urlConfig.getContentProgress(req.request.courseId), | ||
url: config.isMobileApp ? urlConfig.getContentProgressMobile() : urlConfig.getContentProgress(req.request.courseId), | ||
data: req | ||
@@ -74,4 +77,5 @@ }; | ||
getUserdetailsFromRegistry(reqBody) { | ||
let config = this.configService.getConfig(); | ||
const httpOptions = { | ||
url: urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
url: config.isMobileApp ? urlConfig.getUserdetailsMobile(reqBody.id) : urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
}; | ||
@@ -82,5 +86,6 @@ return this.get(httpOptions).pipe(map((res) => res.result.response)); | ||
SelfAssessmentService.ctorParameters = () => [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; | ||
SelfAssessmentService.ngInjectableDef = ɵɵdefineInjectable({ factory: function SelfAssessmentService_Factory() { return new SelfAssessmentService(ɵɵinject(HttpClient)); }, token: SelfAssessmentService, providedIn: "root" }); | ||
SelfAssessmentService.ngInjectableDef = ɵɵdefineInjectable({ factory: function SelfAssessmentService_Factory() { return new SelfAssessmentService(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: SelfAssessmentService, providedIn: "root" }); | ||
SelfAssessmentService = __decorate([ | ||
@@ -101,2 +106,3 @@ Injectable({ | ||
startSelfAssesment(data) { | ||
console.log("query data ", data); | ||
this.router.navigate([`app/user/self-assessment`], { queryParams: data }); | ||
@@ -103,0 +109,0 @@ } |
@@ -6,5 +6,5 @@ import { __extends, __decorate, __spread } from 'tslib'; | ||
import { HttpClient, HttpClientModule } from '@angular/common/http'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import { BehaviorSubject, forkJoin } from 'rxjs'; | ||
import { map, mergeMap } from 'rxjs/operators'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import { Router } from '@angular/router'; | ||
@@ -308,4 +308,6 @@ import { CommonModule } from '@angular/common'; | ||
__extends(RequiredCompetencyService, _super); | ||
function RequiredCompetencyService(http) { | ||
return _super.call(this, http) || this; | ||
function RequiredCompetencyService(http, configService) { | ||
var _this = _super.call(this, http, configService) || this; | ||
_this.configService = configService; | ||
return _this; | ||
} | ||
@@ -325,5 +327,6 @@ /** | ||
RequiredCompetencyService.ctorParameters = function () { return [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; }; | ||
RequiredCompetencyService.ngInjectableDef = ɵɵdefineInjectable({ factory: function RequiredCompetencyService_Factory() { return new RequiredCompetencyService(ɵɵinject(HttpClient)); }, token: RequiredCompetencyService, providedIn: "root" }); | ||
RequiredCompetencyService.ngInjectableDef = ɵɵdefineInjectable({ factory: function RequiredCompetencyService_Factory() { return new RequiredCompetencyService(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: RequiredCompetencyService, providedIn: "root" }); | ||
RequiredCompetencyService = __decorate([ | ||
@@ -340,34 +343,2 @@ Injectable({ | ||
this.requiredCompetencyService = requiredCompetencyService; | ||
this.competencyData = [ | ||
{ | ||
title: 'Procurement and Distribution of HCM', | ||
description: 'Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Store management and planning and coordination of THR and Dry ration', | ||
description: 'Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Procurement and Distribution of HCM', | ||
description: 'Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Early Childhood Care Education', | ||
description: 'Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Procurement and Distribution of HCM', | ||
description: 'Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)', | ||
requiredLevel: 'level 4' | ||
}, | ||
{ | ||
title: 'Early Childhood Care Education', | ||
description: 'Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ', | ||
requiredLevel: 'level 4' | ||
}, | ||
]; | ||
this.panelOpenState = true; | ||
@@ -434,4 +405,5 @@ this.customCollapsedHeight = '100px'; | ||
__extends(GainedService, _super); | ||
function GainedService(http) { | ||
var _this = _super.call(this, http) || this; | ||
function GainedService(http, configService) { | ||
var _this = _super.call(this, http, configService) || this; | ||
_this.configService = configService; | ||
_this.competencyData = new BehaviorSubject(undefined); | ||
@@ -445,6 +417,8 @@ _this.competencyData$ = _this.competencyData.asObservable(); | ||
*/ | ||
GainedService.prototype.fetchUserPassbook = function (reqBody) { | ||
GainedService.prototype.fetchUserPassbook = function (reqBody, id) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: urlConfig.getUserPassbook(), | ||
data: reqBody | ||
url: config.isMobileApp ? urlConfig.getUserPassbookMobile() : urlConfig.getUserPassbook(), | ||
data: reqBody, | ||
header: config.isMobileApp ? { 'x-authenticated-userid': id } : '' | ||
}; | ||
@@ -454,5 +428,6 @@ return this.post(httpOptions); | ||
GainedService.prototype.fetchAllEntity = function (reqBody) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: urlConfig.getAllEntity(), | ||
data: reqBody | ||
url: config.isMobileApp ? urlConfig.getAllEntityMobile() : urlConfig.getAllEntity(), | ||
data: reqBody, | ||
}; | ||
@@ -462,5 +437,6 @@ return this.post(httpOptions); | ||
GainedService.ctorParameters = function () { return [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; }; | ||
GainedService.ngInjectableDef = ɵɵdefineInjectable({ factory: function GainedService_Factory() { return new GainedService(ɵɵinject(HttpClient)); }, token: GainedService, providedIn: "root" }); | ||
GainedService.ngInjectableDef = ɵɵdefineInjectable({ factory: function GainedService_Factory() { return new GainedService(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: GainedService, providedIn: "root" }); | ||
GainedService = __decorate([ | ||
@@ -481,4 +457,6 @@ Injectable({ | ||
__extends(ActiveSummaryService, _super); | ||
function ActiveSummaryService(http) { | ||
return _super.call(this, http) || this; | ||
function ActiveSummaryService(http, configService) { | ||
var _this = _super.call(this, http, configService) || this; | ||
_this.configService = configService; | ||
return _this; | ||
} | ||
@@ -491,4 +469,5 @@ /** | ||
// console.log('calling getActivityById>>') | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: urlConfig.getEntityById(reqBody.id), | ||
url: config.isMobileApp ? urlConfig.getEntityByIdMobile(reqBody.id) : urlConfig.getEntityById(reqBody.id), | ||
data: reqBody | ||
@@ -504,4 +483,5 @@ }; | ||
ActiveSummaryService.prototype.getUserdetailsFromRegistry = function (reqBody) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
url: config.isMobileApp ? urlConfig.getUserdetailsMobile(reqBody.id) : urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
}; | ||
@@ -511,5 +491,6 @@ return this.get(httpOptions).pipe(map(function (res) { return res.result.response; })); | ||
ActiveSummaryService.ctorParameters = function () { return [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; }; | ||
ActiveSummaryService.ngInjectableDef = ɵɵdefineInjectable({ factory: function ActiveSummaryService_Factory() { return new ActiveSummaryService(ɵɵinject(HttpClient)); }, token: ActiveSummaryService, providedIn: "root" }); | ||
ActiveSummaryService.ngInjectableDef = ɵɵdefineInjectable({ factory: function ActiveSummaryService_Factory() { return new ActiveSummaryService(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: ActiveSummaryService, providedIn: "root" }); | ||
ActiveSummaryService = __decorate([ | ||
@@ -537,2 +518,3 @@ Injectable({ | ||
this.getUserDetails().subscribe(function (res) { | ||
console.log(res); | ||
_this.profileData = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
@@ -544,4 +526,7 @@ }); | ||
forkJoin([allEntity, userPassbook]).subscribe(function (res) { | ||
console.log(res); | ||
var response = _this.requestUtil.formatedGainedCompetency(res[0].result.response, res[1].result.content, _this.profileData); | ||
_this.gainedproficencyData = response; | ||
// this.gainedproficencyData = this.dummyData | ||
console.log(response); | ||
if (_this.gainedproficencyData) { | ||
@@ -558,5 +543,2 @@ var res_1 = []; | ||
}); | ||
// if (this.gainedproficencyData) { | ||
// this.gainedService.competencyData.next(this.gainedproficencyData.competencyStoreData) | ||
// } | ||
}; | ||
@@ -570,2 +552,3 @@ GainedComptencyCardComponent.prototype.getUserDetails = function () { | ||
GainedComptencyCardComponent.prototype.getAllUserPassbook = function () { | ||
var id = this.configService.getConfig().id; | ||
var reqBody = { | ||
@@ -576,3 +559,3 @@ "request": { | ||
}; | ||
return this.gainedService.fetchUserPassbook(reqBody); | ||
return this.gainedService.fetchUserPassbook(reqBody, id); | ||
}; | ||
@@ -613,4 +596,5 @@ GainedComptencyCardComponent.prototype.getAllEntity = function () { | ||
var CompetencyDashboardComponent = /** @class */ (function () { | ||
function CompetencyDashboardComponent(router) { | ||
function CompetencyDashboardComponent(router, configService) { | ||
this.router = router; | ||
this.configService = configService; | ||
this.stateChange = new EventEmitter(); | ||
@@ -621,2 +605,3 @@ this.tabIndex = 1; | ||
this.tabIndex = 1; | ||
this.isMobileApp = this.configService.getConfig().isMobileApp; | ||
}; | ||
@@ -633,3 +618,4 @@ CompetencyDashboardComponent.prototype.navigateBack = function () { | ||
CompetencyDashboardComponent.ctorParameters = function () { return [ | ||
{ type: Router } | ||
{ type: Router }, | ||
{ type: ConfigService } | ||
]; }; | ||
@@ -642,4 +628,4 @@ __decorate([ | ||
selector: 'lib-competency-dashboard', | ||
template: "<div class=\"content\">\r\n <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer mb-3\"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class=\"pl-2 mb-0\" i18n>Competency Dashboard</h1>\r\n\r\n <div class=\"pl-2 tab-container\">\r\n <!-- <ng-container *ngIf=\"tabIndex === 1\">\r\n <div class=\"sortIcon\">\r\n <img src=\"./assets/comptency/images/filter.png\" />\r\n </div>\r\n </ng-container> -->\r\n <mat-tab-group\r\n [ngClass]=\"{ 'header-width-icon': tabIndex === 1 }\"\r\n class=\"remove-border-bottom\"\r\n animationDuration=\"0ms\"\r\n [selectedIndex]=\"tabIndex\"\r\n (selectedTabChange)=\"changeTab($event)\"\r\n >\r\n <!-- Active Summary as Job Description -->\r\n <mat-tab i18n-label label=\"Job Description\">\r\n <h4 class=\"mt-4 mb-1\" i18n>Roles</h4>\r\n <lib-active-summary *ngIf=\"tabIndex === 0\"></lib-active-summary>\r\n </mat-tab>\r\n\r\n <!-- gained as Passbook -->\r\n <mat-tab i18n-label label=\"Passbook\">\r\n <div class=\"legend-container\">\r\n <div class=\"legend legend-blue\"></div>\r\n <h5 i18n>External</h5>\r\n <div class=\"legend legend-green\"></div>\r\n <h5 i18n>Self</h5>\r\n <div class=\"legend legend-yellow\"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf=\"tabIndex === 1\"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n <!-- required -->\r\n <mat-tab i18n-label label=\"Required\">\r\n <div class=\"required-comperencies\">\r\n <div class=\"mt-2 tab-badge\" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf=\"tabIndex === 2\"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n", | ||
styles: [":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.content{max-width:90%}.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"] | ||
template: "<div class=\"content\" [ngClass]=\"isMobileApp ? 'content-mobile' : 'content'\">\r\n <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer mb-3\"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class=\"pl-2 mb-0\" i18n>Competency Dashboard</h1>\r\n\r\n <div class=\"pl-2 tab-container\">\r\n <!-- <ng-container *ngIf=\"tabIndex === 1\">\r\n <div class=\"sortIcon\">\r\n <img src=\"./assets/comptency/images/filter.png\" />\r\n </div>\r\n </ng-container> -->\r\n <mat-tab-group\r\n [ngClass]=\"{ 'header-width-icon': tabIndex === 1 }\"\r\n class=\"remove-border-bottom\"\r\n animationDuration=\"0ms\"\r\n [selectedIndex]=\"tabIndex\"\r\n (selectedTabChange)=\"changeTab($event)\"\r\n >\r\n <!-- Active Summary as Job Description -->\r\n <mat-tab i18n-label label=\"Job Description\">\r\n <h4 class=\"mt-4 mb-1\" i18n>Roles</h4>\r\n <lib-active-summary *ngIf=\"tabIndex === 0\"></lib-active-summary>\r\n </mat-tab>\r\n\r\n <!-- gained as Passbook -->\r\n <mat-tab i18n-label label=\"Passbook\">\r\n <div class=\"legend-container\">\r\n <div class=\"legend legend-blue\"></div>\r\n <h5 i18n>External</h5>\r\n <div class=\"legend legend-green\"></div>\r\n <h5 i18n>Self</h5>\r\n <div class=\"legend legend-yellow\"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf=\"tabIndex === 1\"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n <!-- required -->\r\n <mat-tab i18n-label label=\"Required\">\r\n <div class=\"required-comperencies\">\r\n <div class=\"mt-2 tab-badge\" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf=\"tabIndex === 2\"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n", | ||
styles: [":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}@media only screen and (max-width:599px){.content{max-width:90%}}.content-mobile{padding:70px 0;max-width:100%;margin:0 10px}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"] | ||
}) | ||
@@ -689,2 +675,3 @@ ], CompetencyDashboardComponent); | ||
}); | ||
console.log(this.roleactivitySummaries); | ||
}; | ||
@@ -691,0 +678,0 @@ ActiveSummaryComponent.prototype.getProgress = function () { |
@@ -6,6 +6,7 @@ import { __assign, __decorate } from 'tslib'; | ||
import { throwError, of } from 'rxjs'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import { get } from 'lodash-es'; | ||
import { CommonModule } from '@angular/common'; | ||
var ɵ0 = function () { return "" + urlConfig.host + urlConfig.apiSlug; }, ɵ1 = function () { return "" + urlConfig.host + urlConfig.apiProxy; }, ɵ2 = function () { return "" + urlConfig.host + urlConfig.apiPublic; }, ɵ3 = function (id) { return urlConfig.apiBasePath() + "/entityCompetency/getEntityById/" + id; }, ɵ4 = function () { return urlConfig.apiBasePath() + "/entityCompetency/getAllEntity"; }, ɵ5 = function () { return urlConfig.apiBaseProxy() + "/user/v1/passbook"; }, ɵ6 = function () { return urlConfig.apiBasePublic() + "/publicSearch/getCourses"; }, ɵ7 = function (identifier, hierarchyType) { return urlConfig.apiBaseProxy() + "/action/content/v3/hierarchy/" + identifier + "?hierarchyType=" + hierarchyType; }, ɵ8 = function (wid) { return urlConfig.apiBaseProxy() + "/api/user/v2/read/" + wid; }, ɵ9 = function (id) { return urlConfig.apiBaseProxy() + "/read/content-progres/" + id; }; | ||
var ɵ0 = function () { return "" + urlConfig.host + urlConfig.apiSlug; }, ɵ1 = function () { return "" + urlConfig.host + urlConfig.apiProxy; }, ɵ2 = function () { return "" + urlConfig.host + urlConfig.apiPublic; }, ɵ3 = function (id) { return urlConfig.apiBasePath() + "/entityCompetency/getEntityById/" + id; }, ɵ4 = function () { return urlConfig.apiBasePath() + "/entityCompetency/getAllEntity"; }, ɵ5 = function () { return urlConfig.apiBaseProxy() + "/user/v1/passbook"; }, ɵ6 = function () { return urlConfig.apiBasePublic() + "/publicSearch/getCourses"; }, ɵ7 = function (identifier, hierarchyType) { return urlConfig.apiBaseProxy() + "/action/content/v3/hierarchy/" + identifier + "?hierarchyType=" + hierarchyType; }, ɵ8 = function (wid) { return urlConfig.apiBaseProxy() + "/api/user/v2/read/" + wid; }, ɵ9 = function (id) { return urlConfig.apiBaseProxy() + "/read/content-progres/" + id; }, ɵ10 = function () { return "" + urlConfig.mobileHost + urlConfig.apiPublic + "/mobileApp/getAllEntity"; }, ɵ11 = function () { return urlConfig.mobileHost + "/api/user/v1/passbook"; }, ɵ12 = function (wid) { return urlConfig.mobileHost + "/api/user/v2/read/" + wid; }, ɵ13 = function (id) { return "" + urlConfig.mobileHost + urlConfig.apiPublic + "/mobileApp/getEntityById/" + id; }, ɵ14 = function () { return "" + urlConfig.mobileHost + urlConfig.apiPublic + "/publicSearch/getCourses"; }, ɵ15 = function () { return urlConfig.mobileHost + "/api/course/v1/content/state/read"; }; | ||
/** | ||
@@ -18,2 +19,3 @@ * urlConfig to return the api url | ||
host: window.location.protocol + "//" + window.location.host || 'https://sphere.aastrika.org', | ||
mobileHost: 'https://sphere.aastrika.org', | ||
apiSlug: '/apis/protected/v8', | ||
@@ -31,3 +33,9 @@ apiProxy: '/apis/proxies/v8', | ||
getUserdetailsFromRegistry: ɵ8, | ||
getContentProgress: ɵ9 | ||
getContentProgress: ɵ9, | ||
getAllEntityMobile: ɵ10, | ||
getUserPassbookMobile: ɵ11, | ||
getUserdetailsMobile: ɵ12, | ||
getEntityByIdMobile: ɵ13, | ||
getSearchMobile: ɵ14, | ||
getContentProgressMobile: ɵ15, | ||
}; | ||
@@ -41,3 +49,4 @@ | ||
var DataService = /** @class */ (function () { | ||
function DataService(http) { | ||
function DataService(http, configService) { | ||
this.configService = configService; | ||
this.http = http; | ||
@@ -51,4 +60,5 @@ } | ||
DataService.prototype.get = function (requestParam) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
headers: requestParam.header ? requestParam.header : this.getHeader(), | ||
headers: config.session ? this.setHeader(config.session) : requestParam.header ? requestParam.header : this.getHeader(), | ||
params: requestParam.param, | ||
@@ -71,4 +81,5 @@ observe: 'response' | ||
DataService.prototype.post = function (requestParam) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
headers: requestParam.header ? this.getHeader(requestParam.header) : this.getHeader(), | ||
headers: config.session ? this.setHeader(config.session, requestParam.header ? requestParam.header : "") : requestParam.header ? requestParam.header : this.getHeader(), | ||
params: requestParam.param | ||
@@ -100,6 +111,19 @@ }; | ||
}; | ||
DataService.prototype.setHeader = function (session, header) { | ||
var default_headers = { | ||
'Authorization': "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJTNHNNVFdjZUZqYkxUWGxiczkzUzk4dmFtODBhdkRPUiJ9.nPOCY0-bVX28iNcxxnYbGpihY3ZzfNwx0-SFCnJwjas", | ||
'X-authenticated-user-token': session ? session.access_token : '', | ||
}; | ||
if (header) { | ||
return __assign({}, default_headers, header); | ||
} | ||
else { | ||
return __assign({}, default_headers); | ||
} | ||
}; | ||
DataService.ctorParameters = function () { return [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; }; | ||
DataService.ngInjectableDef = ɵɵdefineInjectable({ factory: function DataService_Factory() { return new DataService(ɵɵinject(HttpClient)); }, token: DataService, providedIn: "root" }); | ||
DataService.ngInjectableDef = ɵɵdefineInjectable({ factory: function DataService_Factory() { return new DataService(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: DataService, providedIn: "root" }); | ||
DataService = __decorate([ | ||
@@ -163,3 +187,3 @@ Injectable({ | ||
export { AppLoaderComponent, CoreModule, DataService, urlConfig, ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, ɵ9 }; | ||
export { AppLoaderComponent, CoreModule, DataService, urlConfig, ɵ0, ɵ1, ɵ10, ɵ11, ɵ12, ɵ13, ɵ14, ɵ15, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, ɵ9 }; | ||
//# sourceMappingURL=aastrika_npmjs-comptency-core.js.map |
@@ -7,5 +7,5 @@ import { __extends, __decorate } from 'tslib'; | ||
import { map, mergeMap } from 'rxjs/operators'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import { Location, CommonModule } from '@angular/common'; | ||
import { get, forEach } from 'lodash-es'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
import { MatIconModule } from '@angular/material'; | ||
@@ -15,4 +15,6 @@ | ||
__extends(SelfAssessmentService, _super); | ||
function SelfAssessmentService(http) { | ||
return _super.call(this, http) || this; | ||
function SelfAssessmentService(http, configService) { | ||
var _this = _super.call(this, http, configService) || this; | ||
_this.configService = configService; | ||
return _this; | ||
} | ||
@@ -46,4 +48,5 @@ /** | ||
}; | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: urlConfig.getSearch(), | ||
url: config.isMobileApp ? urlConfig.getSearchMobile() : urlConfig.getSearch(), | ||
data: reqBody | ||
@@ -68,4 +71,5 @@ }; | ||
SelfAssessmentService.prototype.fetchPrgressDetails = function (req) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: urlConfig.getContentProgress(req.request.courseId), | ||
url: config.isMobileApp ? urlConfig.getContentProgressMobile() : urlConfig.getContentProgress(req.request.courseId), | ||
data: req | ||
@@ -76,4 +80,5 @@ }; | ||
SelfAssessmentService.prototype.getUserdetailsFromRegistry = function (reqBody) { | ||
var config = this.configService.getConfig(); | ||
var httpOptions = { | ||
url: urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
url: config.isMobileApp ? urlConfig.getUserdetailsMobile(reqBody.id) : urlConfig.getUserdetailsFromRegistry(reqBody.id), | ||
}; | ||
@@ -83,5 +88,6 @@ return this.get(httpOptions).pipe(map(function (res) { return res.result.response; })); | ||
SelfAssessmentService.ctorParameters = function () { return [ | ||
{ type: HttpClient } | ||
{ type: HttpClient }, | ||
{ type: ConfigService } | ||
]; }; | ||
SelfAssessmentService.ngInjectableDef = ɵɵdefineInjectable({ factory: function SelfAssessmentService_Factory() { return new SelfAssessmentService(ɵɵinject(HttpClient)); }, token: SelfAssessmentService, providedIn: "root" }); | ||
SelfAssessmentService.ngInjectableDef = ɵɵdefineInjectable({ factory: function SelfAssessmentService_Factory() { return new SelfAssessmentService(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: SelfAssessmentService, providedIn: "root" }); | ||
SelfAssessmentService = __decorate([ | ||
@@ -104,2 +110,3 @@ Injectable({ | ||
SelfAssessmentCardComponent.prototype.startSelfAssesment = function (data) { | ||
console.log("query data ", data); | ||
this.router.navigate(["app/user/self-assessment"], { queryParams: data }); | ||
@@ -106,0 +113,0 @@ }; |
{ | ||
"name": "@aastrika_npmjs/comptency", | ||
"version": "0.0.35", | ||
"version": "0.0.36", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": "^8.2.14", |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"SelfAssessmentCardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"lib-self-assessment-card","template":"<div class=\"card_box\">\r\n <ng-container *ngIf=\"cardData?.title\">\r\n <div class=\"title\">{{ cardData?.title }}</div>\r\n </ng-container>\r\n <!-- <ng-container *ngIf=\"cardData?.description\">\r\n <div class=\"description\">{{ cardData?.description }}</div>\r\n </ng-container> -->\r\n <div class=\"flex flex-row gap-3 mt-3\">\r\n <!-- <button class=\"assess-btn\">Assess</button> -->\r\n <ng-container *ngFor=\"let btn of btnType\">\r\n <ng-container *ngIf=\"btn.courseId == cardData.contentId\">\r\n <button\r\n *ngIf=\"btn.type === 'START'\"\r\n mat-button\r\n class=\"assess-btn btn-small\"\r\n (click)=\"startSelfAssesment(cardData)\"\r\n i18n\r\n >\r\n Assess\r\n </button>\r\n <button\r\n *ngIf=\"btn.type === 'RESUME'\"\r\n mat-button\r\n class=\"reassess-btn btn-small\"\r\n (click)=\"startSelfAssesment(cardData)\"\r\n i18n\r\n >\r\n Re-Assess\r\n </button>\r\n <button\r\n *ngIf=\"btn.type === 'DONE'\"\r\n mat-button\r\n disabled\r\n class=\"done-btn btn-small\"\r\n (click)=\"startSelfAssesment(cardData)\"\r\n i18n\r\n >\r\n Done\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <button class=\"btn-long\" i18n (click)=\"viewCourses(cardData)\">View Courses</button>\r\n </div>\r\n</div>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card_box{margin:7px 2px 15px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:7px}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.startBtn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-style:italic;font-size:14px;line-height:17px;cursor:pointer;margin-top:4px}.assess-btn{background:#1c5d95;color:#fff}.reassess-btn{background:#52ad9d;color:#fff}.done-btn{background-color:#bfbfbf;color:grey}.btn-small{border-radius:50px;width:-moz-fit-content;width:fit-content;padding:3px 20px;border:none;cursor:pointer}.btn-long{border:1px solid #1c5d95;border-radius:50px;color:#1c5d95;background-color:inherit;width:-moz-fit-content;width:fit-content;padding:3px 30px;cursor:pointer}"]}]}],"members":{"cardData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"btnType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":15,"character":20},{"__symbolic":"reference","name":"SelfAssessmentService"}]}],"ngOnInit":[{"__symbolic":"method"}],"startSelfAssesment":[{"__symbolic":"method"}],"viewCourses":[{"__symbolic":"method"}]}},"SelfAssessmentComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"selector":"lib-self-assessment","template":"<lib-app-loader *ngIf=\"loading === true\"></lib-app-loader>\r\n<div class=\"content\" *ngIf=\"selfAssessmentData\">\r\n <!-- <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer\">chevron_left</mat-icon> -->\r\n <!-- <h1 class=\" mb-1 pl-2 \">Self Assessment</h1> -->\r\n <ng-container *ngFor=\"let cardData of selfAssessmentData\">\r\n <ng-container *ngIf=\"cardData\">\r\n <lib-self-assessment-card [cardData]=\"cardData\" [btnType]=\"btnType\"></lib-self-assessment-card>\r\n </ng-container>\r\n </ng-container>\r\n</div>","styles":[""]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common","name":"Location","line":22,"character":22},{"__symbolic":"reference","name":"SelfAssessmentService"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":24,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"getCompetencyData":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getCompetencyCourse":[{"__symbolic":"method"}],"getProgress":[{"__symbolic":"method"}],"navigateBack":[{"__symbolic":"method"}]}},"SelfAssessmentService":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":9,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":10,"character":19}]}],"getCompetencyCourseIdentifier":[{"__symbolic":"method"}],"fetchHiearchyDetails":[{"__symbolic":"method"}],"fetchPrgressDetails":[{"__symbolic":"method"}],"getUserdetailsFromRegistry":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"SelfAssessmentModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"SelfAssessmentCardComponent"},{"__symbolic":"reference","name":"SelfAssessmentComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":13,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":14,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":15,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"CoreModule","line":16,"character":4}],"exports":[{"__symbolic":"reference","name":"SelfAssessmentCardComponent"},{"__symbolic":"reference","name":"SelfAssessmentComponent"}]}]}],"members":{}}},"origins":{"SelfAssessmentCardComponent":"./components/self-assessment-card/self-assessment-card.component","SelfAssessmentComponent":"./components/self-assessment/self-assessment.component","SelfAssessmentService":"./service/self-assessment.service","SelfAssessmentModule":"./self-assessment.module"},"importAs":"@aastrika_npmjs/comptency/self-assessment"} | ||
{"__symbolic":"module","version":4,"metadata":{"SelfAssessmentCardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"lib-self-assessment-card","template":"<div class=\"card_box\">\r\n <ng-container *ngIf=\"cardData?.title\">\r\n <div class=\"title\">{{ cardData?.title }}</div>\r\n </ng-container>\r\n <!-- <ng-container *ngIf=\"cardData?.description\">\r\n <div class=\"description\">{{ cardData?.description }}</div>\r\n </ng-container> -->\r\n <div class=\"flex flex-row gap-3 mt-3\">\r\n <!-- <button class=\"assess-btn\">Assess</button> -->\r\n <ng-container *ngFor=\"let btn of btnType\">\r\n <ng-container *ngIf=\"btn.courseId == cardData.contentId\">\r\n <button\r\n *ngIf=\"btn.type === 'START'\"\r\n mat-button\r\n class=\"assess-btn btn-small\"\r\n (click)=\"startSelfAssesment(cardData)\"\r\n i18n\r\n >\r\n Assess\r\n </button>\r\n <button\r\n *ngIf=\"btn.type === 'RESUME'\"\r\n mat-button\r\n class=\"reassess-btn btn-small\"\r\n (click)=\"startSelfAssesment(cardData)\"\r\n i18n\r\n >\r\n Re-Assess\r\n </button>\r\n <button\r\n *ngIf=\"btn.type === 'DONE'\"\r\n mat-button\r\n disabled\r\n class=\"done-btn btn-small\"\r\n (click)=\"startSelfAssesment(cardData)\"\r\n i18n\r\n >\r\n Done\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <button class=\"btn-long\" i18n (click)=\"viewCourses(cardData)\">View Courses</button>\r\n </div>\r\n</div>\r\n","styles":[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card_box{margin:7px 2px 15px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:7px}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.startBtn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-style:italic;font-size:14px;line-height:17px;cursor:pointer;margin-top:4px}.assess-btn{background:#1c5d95;color:#fff}.reassess-btn{background:#52ad9d;color:#fff}.done-btn{background-color:#bfbfbf;color:grey}.btn-small{border-radius:50px;width:-moz-fit-content;width:fit-content;padding:3px 20px;border:none;cursor:pointer}.btn-long{border:1px solid #1c5d95;border-radius:50px;color:#1c5d95;background-color:inherit;width:-moz-fit-content;width:fit-content;padding:3px 30px;cursor:pointer}"]}]}],"members":{"cardData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"btnType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":15,"character":20},{"__symbolic":"reference","name":"SelfAssessmentService"}]}],"ngOnInit":[{"__symbolic":"method"}],"startSelfAssesment":[{"__symbolic":"method"}],"viewCourses":[{"__symbolic":"method"}]}},"SelfAssessmentComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"selector":"lib-self-assessment","template":"<lib-app-loader *ngIf=\"loading === true\"></lib-app-loader>\r\n<div class=\"content\" *ngIf=\"selfAssessmentData\">\r\n <!-- <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer\">chevron_left</mat-icon> -->\r\n <!-- <h1 class=\" mb-1 pl-2 \">Self Assessment</h1> -->\r\n <ng-container *ngFor=\"let cardData of selfAssessmentData\">\r\n <ng-container *ngIf=\"cardData\">\r\n <lib-self-assessment-card [cardData]=\"cardData\" [btnType]=\"btnType\"></lib-self-assessment-card>\r\n </ng-container>\r\n </ng-container>\r\n</div>","styles":[""]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common","name":"Location","line":22,"character":22},{"__symbolic":"reference","name":"SelfAssessmentService"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":24,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"getCompetencyData":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getCompetencyCourse":[{"__symbolic":"method"}],"getProgress":[{"__symbolic":"method"}],"navigateBack":[{"__symbolic":"method"}]}},"SelfAssessmentService":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":10,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":11,"character":19},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":11,"character":54}]}],"getCompetencyCourseIdentifier":[{"__symbolic":"method"}],"fetchHiearchyDetails":[{"__symbolic":"method"}],"fetchPrgressDetails":[{"__symbolic":"method"}],"getUserdetailsFromRegistry":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"SelfAssessmentModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"SelfAssessmentCardComponent"},{"__symbolic":"reference","name":"SelfAssessmentComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":13,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":14,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":15,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"CoreModule","line":16,"character":4}],"exports":[{"__symbolic":"reference","name":"SelfAssessmentCardComponent"},{"__symbolic":"reference","name":"SelfAssessmentComponent"}]}]}],"members":{}}},"origins":{"SelfAssessmentCardComponent":"./components/self-assessment-card/self-assessment-card.component","SelfAssessmentComponent":"./components/self-assessment/self-assessment.component","SelfAssessmentService":"./service/self-assessment.service","SelfAssessmentModule":"./self-assessment.module"},"importAs":"@aastrika_npmjs/comptency/self-assessment"} |
import { DataService } from '@aastrika_npmjs/comptency/core'; | ||
import { HttpClient } from '@angular/common/http'; | ||
import { ConfigService } from '@aastrika_npmjs/comptency/entry-module'; | ||
export declare class SelfAssessmentService extends DataService { | ||
constructor(http: HttpClient); | ||
configService: ConfigService; | ||
constructor(http: HttpClient, configService: ConfigService); | ||
/** | ||
@@ -6,0 +8,0 @@ *searching for the content Identifier |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2125108
14332