Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vk-roles

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vk-roles - npm Package Compare versions

Comparing version 0.0.38 to 0.0.39

3

bundles/vk-roles.umd.js

@@ -50,3 +50,2 @@ (function (global, factory) {

var url = this.apiBaseUrl + 'edit';
console.log(body);
return this.http.put(url, body, { headers: this.authHeaders });

@@ -143,3 +142,3 @@ };

this.formGroup = this.formBuilder.group({
RoleId: [0,],
RoleId: ['',],
RoleName: ['', [forms.Validators.required, forms.Validators.maxLength(256)]],

@@ -146,0 +145,0 @@ Description: ['', [forms.Validators.required, forms.Validators.maxLength(256)]],

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common/http"),require("@angular/core"),require("@angular/material"),require("ngx-spinner"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("vk-roles",["exports","@angular/common/http","@angular/core","@angular/material","ngx-spinner","@angular/forms","@angular/common"],t):t((e=e||self)["vk-roles"]={},e.ng.common.http,e.ng.core,e.ng.material,e.ngxSpinner,e.ng.forms,e.ng.common)}(this,(function(e,t,r,o,n,a,i){"use strict";var l=function(){function e(e){this.http=e}return e.prototype.getAllRoles=function(){return this._setAuthHeaders(this.accessToken),this.http.get(this.apiBaseUrl+"get-all",{headers:this.authHeaders})},e.prototype.newRole=function(e){var t=this.apiBaseUrl+"new";return this.http.post(t,e,{headers:this.authHeaders})},e.prototype.editRole=function(e){var t=this.apiBaseUrl+"edit";return console.log(e),this.http.put(t,e,{headers:this.authHeaders})},e.prototype._setAuthHeaders=function(e){var r="Bearer "+e;this.authHeaders=new t.HttpHeaders({"Content-Type":"application/json",Authorization:r})},e.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:t.HttpClient}]},e.ngInjectableDef=r.ɵɵdefineInjectable({factory:function(){return new e(r.ɵɵinject(t.HttpClient))},token:e,providedIn:"root"}),e}();var s=function(){function e(e,t,r,o,n){this.data=e,this.dialogRef=t,this.rolesService=r,this.formBuilder=o,this.snackBar=n,this.loading=!1}return e.prototype.ngOnInit=function(){this.role=this.data.role,this.initForm(),this.initInputs(),this.role?this.title=this.role.RoleName:this.title="Nuevo Rol"},e.prototype.closeDialog=function(){this.dialogRef.close()},e.prototype.initForm=function(){this.formGroup=this.formBuilder.group({RoleId:[0],RoleName:["",[a.Validators.required,a.Validators.maxLength(256)]],Description:["",[a.Validators.required,a.Validators.maxLength(256)]]})},e.prototype.initInputs=function(){this.role&&(this.formGroup=this.formBuilder.group({RoleId:[this.role.RoleId],RoleName:[this.role.RoleName,[a.Validators.required,a.Validators.maxLength(256)]],Description:[this.role.Description,[a.Validators.required,a.Validators.maxLength(256)]]}))},e.prototype.onSubmit=function(){var e=this;if(this.loading=!0,this.formGroup.valid){var t=this.formGroup.getRawValue();this.role?this.rolesService.editRole(t).subscribe((function(t){return e.editRoleResponseHandler(t)}),(function(t){return e.editRoleResponseHandlerError()})):this.rolesService.newRole(t).subscribe((function(t){return e.newRoleResponseHandler(t)}),(function(t){return e.newRoleResponseHandlerError()}))}else this.loading=!1},e.prototype.newRoleResponseHandler=function(e){if(!e.success)return this.loading=!1,void this.showErrorMessage("ERROR: "+e.errorsMessages[0]);this.loading=!1,this.closeDialog(),this.snackBar.open("El Rol ha sido creada con éxito","OK",{duration:4e3})},e.prototype.newRoleResponseHandlerError=function(){this.loading=!1,this.showErrorMessage("Ocurrió un error durante la creación del Rol")},e.prototype.editRoleResponseHandler=function(e){if(!e.success)return this.loading=!1,void this.showErrorMessage("ERROR: "+e.errorsMessages[0]);this.loading=!1,this.closeDialog(),this.snackBar.open("El Rol ha sido editado con éxito","OK",{duration:4e3})},e.prototype.editRoleResponseHandlerError=function(){this.loading=!1,this.showErrorMessage("Ocurrió un error durante la edición del Rol")},e.prototype.showErrorMessage=function(e){this.snackBar.open(e,null,{duration:5e3})},e.decorators=[{type:r.Component,args:[{selector:"vk-roles-modal",template:'<div class="container">\r\n <div class="title-container">\r\n <div class="header" mat-dialog-title>\r\n {{title}} \r\n </div> \r\n <div class="close-button">\r\n <button mat-flat-button (click)="closeDialog()" >\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n </div> \r\n <div class="content" mat-dialog-content > \r\n <form ngNativeValidate *ngIf="!loading" class="container-form" novalidate (ngSubmit)="onSubmit()" [formGroup]="formGroup">\r\n <div class="input-container" fxLayout="column" fxLayout.gt-xs="row" fxLayoutGap="10px">\r\n <div class="formRow" fxFlex="100" fxFlex.gt-xs="100">\r\n <mat-form-field class="field-form">\r\n <mat-label>Nombre</mat-label>\r\n <input matInput class="form-control" formControlName="RoleName" required maxlength="100">\r\n </mat-form-field>\r\n </div>\r\n <div class="formRow" fxFlex="100" fxFlex.gt-xs="100">\r\n <mat-form-field class="field-form-textarea">\r\n <mat-label>Descripción</mat-label>\r\n <textarea matInput formControlName="Description" required maxlength="500"></textarea> \r\n </mat-form-field> \r\n </div>\r\n </div> \r\n <br>\r\n <br> \r\n <div class="btn-container">\r\n <button mat-raised-button class="btn-cancelar" [mat-dialog-close]>Cancelar</button> \r\n <button mat-raised-button style="margin-left: 5%;" class="btn mat-raised-button mat-button-base" type="submit" >Guardar</button> \r\n </div>\r\n </form>\r\n <div class="requesting" *ngIf="loading">\r\n <mat-progress-bar color="warn" mode="indeterminate"></mat-progress-bar>\r\n <p>Guardando...</p>\r\n </div>\r\n </div>\r\n</div>',styles:[".mat-form-field{width:100%!important}.field-form-textarea .mat-input-element{height:36px!important}.container{width:100%}.container .title-container{display:grid;grid-template-columns:1fr 1fr;grid-column-gap:8px;margin-bottom:8px;border-bottom:1px solid #ccc;background-color:#fff;color:#1d1b1bb5}.container .title-container .title{justify-self:start;align-self:center}.container .title-container .close-button{justify-self:end}.container .mat-dialog-content{padding:3px 24px!important}.container .container-form{min-width:150px;max-width:500px;width:100%}.container .container-form .field-form{width:100%}.container .container-form .buttons-new-catalog{position:relative;left:0;bottom:10px}.container .container-form .btn-container{text-align:right}.container .error-wrapper{color:red;display:inline-flex}.container .error-wrapper p{font-size:14px}"]}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[o.MAT_DIALOG_DATA]}]},{type:o.MatDialogRef},{type:l},{type:a.FormBuilder},{type:o.MatSnackBar}]},e}();var c=function(){function e(e,t,r,o){this.rolesService=e,this.snackBar=t,this.spinner=r,this.dialog=o,this.loadingRoles=!0}return e.prototype.ngOnInit=function(){var e=this;this.spinner.show(),this.displayedColumns=["application","name","description","actions"],this.rolesService.apiBaseUrl=this.apiBaseUrl,this.rolesService.accessToken=this.accessToken,this.rolesService.getAllRoles().subscribe((function(t){return e.getAllRolesResponseHandler(t)}),(function(){return e.getAllRolesResponseHandlerError()}))},e.prototype.getAllRolesResponseHandler=function(e){e.success?(this.roles=e.data,this._roles=this.roles.sort((function(e,t){return e.RoleName.localeCompare(t.RoleName)})),this.loadingRoles=!1,this.error=!1,this.spinner.hide):(this.showErrorMessage("ERROR: "+e.errorsMessages[0]),this.loadingRoles=!1,this.error=!0,this.spinner.hide)},e.prototype.getAllRolesResponseHandlerError=function(){this.showErrorMessage("Ha ocurrido un error inesperado. Por favor, intente más tarde"),this.loadingRoles=!1,this.error=!0,this.spinner.hide},e.prototype.showErrorMessage=function(e){this.snackBar.open(e,null,{duration:5e3})},e.prototype.openDialog=function(e){var t=this;this.dialog.open(s,{data:{role:e},height:"340px",width:"600px"}).afterClosed().subscribe((function(e){t.ngOnInit()}))},e.prototype.onCreate=function(){this.openDialog()},e.prototype.onEdit=function(e){this.openDialog(e)},e.prototype.onSearch=function(e){var t=this.roles.filter((function(t){return t.ApplicationName.toLowerCase().includes(e.toLowerCase())||t.RoleName.toLowerCase().includes(e.toLowerCase())||(t.Description||"").toLowerCase().includes(e.toLowerCase())}));this._roles=t.sort((function(e,t){return e.RoleName.localeCompare(t.RoleName)}))},e.prototype.onRefresh=function(){this.ngOnInit()},e.decorators=[{type:r.Component,args:[{selector:"vk-roles",template:'<ng-container>\r\n <div class="title-container">\r\n <p class="roles-title">Roles</p>\r\n </div>\r\n \r\n <div class="contendor">\r\n <div class="wrapper"> \r\n <div class="content">\r\n <ng-container *ngIf="loadingRoles; else rolesListTemplate">\r\n <mat-progress-bar mode="indeterminate" color="warn"></mat-progress-bar>\r\n <p>Cargando roles...</p>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <ng-template #rolesListTemplate> \r\n <ng-container>\r\n <form #f="ngForm" autocomplete="off">\r\n <div class="new-preferred-customer-container">\r\n <div class="form-group form-roles">\r\n <div class="header-container">\r\n <div class="container-search" fxLayout="column" fxLayout.gt-xs="row" fxLayoutGap="10px"\r\n style="display: flex;">\r\n <div class="formRow" fxFlex="100" fxFlex.gt-xs="50">\r\n <mat-form-field appearance="standard">\r\n <input matInput placeholder="Buscar rol" type="text" (input)="onSearch($event.target.value)" [disabled]="roles?.length === 0">\r\n </mat-form-field>\r\n </div> \r\n \x3c!-- <div class="formRow row-filter" fxFlex="100" fxFlex.gt-xs="50">\r\n <button mat-raised-button color="warn" type="submit" (click)="onFilter()">Filtrar</button>\r\n </div> --\x3e\r\n <div class="formRow row-new" fxFlex="100" fxFlex.gt-xs="50">\r\n <button mat-raised-button color="warn" (click)="onCreate()"><mat-icon>add_circle</mat-icon> Rol</button> \r\n </div>\r\n </div>\r\n </div>\r\n <div class="body-container" fxLayout="column" fxLayout.gt-xs="row" fxLayoutGap="20px">\r\n <div class="formRow" fxFlex="100" > \r\n <div *ngIf="loadingRoles">\r\n <mat-progress-bar color="warn" mode="indeterminate">Cargando Roles...</mat-progress-bar>\r\n </div>\r\n <div *ngIf="!loadingRoles && roles?.length > 0 else noRolesTemplate">\r\n <table mat-table [dataSource]="_roles" class="mat-elevation-z8" class="margen"> \r\n \r\n <ng-container matColumnDef="application">\r\n <th mat-header-cell *matHeaderCellDef> Aplicación </th>\r\n <td mat-cell *matCellDef="let role" class="size-column-code"> {{role.ApplicationName}}</td>\r\n </ng-container>\r\n <ng-container matColumnDef="name">\r\n <th mat-header-cell *matHeaderCellDef> Nombre </th>\r\n <td mat-cell *matCellDef="let role" class="size-column-code"> {{role.RoleName}}</td>\r\n </ng-container>\r\n <ng-container matColumnDef="description">\r\n <th mat-header-cell *matHeaderCellDef> Descripción </th>\r\n <td mat-cell *matCellDef="let role" class="size-column-code"> {{role.Description}}</td>\r\n </ng-container>\r\n \r\n <ng-container matColumnDef="actions">\r\n <th mat-header-cell *matHeaderCellDef>Acciones</th> \r\n <td mat-cell *matCellDef="let element">\r\n <a class="icon-btn" title="Editar Rol" (click)="onEdit(element)"><mat-icon >edit</mat-icon></a>\r\n </td>\r\n </ng-container>\r\n <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\r\n <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\r\n </table>\r\n </div>\r\n \r\n <ng-template #noRolesTemplate>\r\n <div class="table-msg">\r\n <p>No se encontraron roles</p>\r\n <button mat-raised-button class="btn mat-raised-button mat-button-base" (click)="onRefresh()">Volver a cargar</button> \r\n </div>\r\n </ng-template>\r\n \r\n </div>\r\n </div> \r\n </div> \r\n </div> \r\n </form>\r\n </ng-container> \r\n </ng-template>\r\n </div>\r\n</ng-container>',styles:[".title-container{display:flex;flex-direction:column;padding:10px;margin:10px 0;background-color:#d32020}.title-container .roles-title{margin:0 0 10px;color:#fff;font-size:24px;font-weight:500}.contendor{height:70vh}.contendor .wrapper{margin:5px 0;padding:10px 5px 5px;background-color:#fff}.contendor .wrapper .content{display:block;flex-direction:row;height:100%;width:100%;margin-bottom:15px}.contendor .wrapper .content p{font-size:12px;text-align:left;justify-self:start;align-self:center}.contendor .new-preferred-customer-container .form-roles .header-container{margin:8px 0;padding:10px 5px 5px;border:1px solid #e0e0e0;border-radius:4px;box-shadow:2px 2px 8px rgba(80,80,80,.1)}.contendor .new-preferred-customer-container .form-roles .header-container .text{font-size:12px;font-weight:400}.contendor .new-preferred-customer-container .form-roles .header-container .input-search{margin-right:8px;border:1px solid #ccc;height:22px;font-size:12px}.contendor .new-preferred-customer-container .form-roles .header-container .input-search:focus{border:1px solid #d32020}.contendor .new-preferred-customer-container .form-roles .header-container .btn-search{background-color:#d32020;color:#fff}.contendor .new-preferred-customer-container .form-roles .header-container .inlineinput{display:inline}.contendor .new-preferred-customer-container .form-roles .header-container .container-search{display:flex;margin-top:10px;min-width:100%}.contendor .new-preferred-customer-container .form-roles .header-container .container-search .formRow{width:49%;position:relative}.contendor .new-preferred-customer-container .form-roles .header-container .container-search .formRow button:focus,.contendor .new-preferred-customer-container .form-roles .header-container .container-search .formRow input:focus,.contendor .new-preferred-customer-container .form-roles .header-container .container-search .formRow select:focus,.contendor .new-preferred-customer-container .form-roles .header-container .container-search .formRow textarea:focus{outline:0}.contendor .new-preferred-customer-container .form-roles .header-container .container-search .formRow.row-filter{margin-top:4px;text-align:left}.contendor .new-preferred-customer-container .form-roles .header-container .container-search .formRow.row-new{margin-top:22px!important;text-align:right}.contendor .new-preferred-customer-container .form-roles .body-container{margin-top:10px;min-width:100%;overflow:hidden!important}.contendor .new-preferred-customer-container .form-roles .body-container .formRow{position:relative;overflow-y:scroll;max-height:63vh}.contendor .new-preferred-customer-container .form-roles .body-container .formRow button:focus,.contendor .new-preferred-customer-container .form-roles .body-container .formRow input:focus,.contendor .new-preferred-customer-container .form-roles .body-container .formRow select:focus,.contendor .new-preferred-customer-container .form-roles .body-container .formRow textarea:focus{outline:0}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table{text-align:center!important;width:100%;overflow-x:auto;overflow-y:hidden;--td-row-height:55px}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table th.mat-header-cell{padding:10px;background:#f1f1f1;color:#000;font-size:11px}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table tr.mat-header-row{height:35px}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table tr.mat-footer-row,.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table tr.mat-row{height:var(--td-row-height)}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table td.mat-cell{font-size:12px;padding:2px;background:#f1f1f1}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table td.mat-cell p.id{cursor:pointer;text-decoration:underline;color:#1e90ff}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table td.mat-cell .status{display:flex;cursor:pointer;justify-content:center}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table td.mat-cell .status mat-icon{font-size:16px;width:16px;height:16px}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table td.mat-cell .mat-icon{cursor:pointer!important}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table td.mat-cell:last-of-type{padding:5px}.contendor .new-preferred-customer-container .form-roles .body-container .formRow .table-msg{text-align:center;margin-top:20px}form{width:100%}@media screen and (min-width:768px){.wrapper{margin:5px auto 10px}.wrapper .header{grid-template-columns:1fr 1fr 20fr}.wrapper .body .title p{font-size:13px}.wrapper .body .content{grid-template-columns:90% 1fr}.wrapper .body .content p{font-size:13px}}@media (min-width:400px){table.mat-table{--td-row-height:40px}table.mat-table th.mat-header-cell{text-align:center;font-size:15px}table.mat-table td.mat-cell .status mat-icon{font-size:20px;width:20px;height:20px}}@media (device-height:568px) and (device-width:320px) and (-webkit-min-device-pixel-ratio:2){.title-container p{width:100%;font-size:1.2rem}table.mat-table{width:100%;overflow-x:auto;overflow-y:hidden;--td-row-height:55px}table.mat-table td.mat-cell:first-of-type,table.mat-table td.mat-footer-cell:first-of-type,table.mat-table th.mat-header-cell:first-of-type{padding-left:0}table.mat-table th.mat-header-cell{padding:7px;background:#f1f1f1;color:#000;font-size:11px}table.mat-table tr.mat-header-row{height:35px}table.mat-table tr.mat-footer-row,table.mat-table tr.mat-row{height:var(--td-row-height)}table.mat-table td.mat-cell{font-size:11px;padding:1px;background:#f1f1f1}table.mat-table td.mat-cell:last-of-type{padding:5px}}@media (device-height:653px) and (device-width:280px){.title-container p{width:100%;font-size:1.1rem}table.mat-table{width:100%;overflow-x:auto;overflow-y:hidden;--td-row-height:55px}table.mat-table td.mat-cell:first-of-type,table.mat-table td.mat-footer-cell:first-of-type,table.mat-table th.mat-header-cell:first-of-type{padding-left:0}table.mat-table th.mat-header-cell{padding:2px;background:#f1f1f1;color:#fff;font-size:11px}table.mat-table tr.mat-header-row{height:35px}table.mat-table tr.mat-footer-row,table.mat-table tr.mat-row{height:var(--td-row-height)}table.mat-table td.mat-cell{font-size:10px;padding:0;background:#f1f1f1}table.mat-table td.mat-cell:last-of-type{padding:5px}}@media (max-width:599px){.formRow.row-filter button{width:100%}.formRow.row-new{margin-top:14px!important}.formRow.row-new button{width:100%}}"]}]}],e.ctorParameters=function(){return[{type:l},{type:o.MatSnackBar},{type:n.NgxSpinnerService},{type:o.MatDialog}]},e.propDecorators={apiBaseUrl:[{type:r.Input}],accessToken:[{type:r.Input}]},e}();var d=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{declarations:[c,s],imports:[i.CommonModule,a.FormsModule,o.MatFormFieldModule,o.MatInputModule,o.MatTableModule,o.MatButtonModule,o.MatProgressBarModule,o.MatIconModule,o.MatSnackBarModule,o.MatDialogModule,n.NgxSpinnerModule,t.HttpClientModule,a.ReactiveFormsModule],exports:[c,s],entryComponents:[s]}]}],e}();e.VkRolesComponent=c,e.VkRolesModule=d,e.VkRolesService=l,e.ɵa=s,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common/http"),require("@angular/core"),require("@angular/material"),require("ngx-spinner"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("vk-roles",["exports","@angular/common/http","@angular/core","@angular/material","ngx-spinner","@angular/forms","@angular/common"],t):t((e=e||self)["vk-roles"]={},e.ng.common.http,e.ng.core,e.ng.material,e.ngxSpinner,e.ng.forms,e.ng.common)}(this,(function(e,t,r,o,n,a,i){"use strict";var l=function(){function e(e){this.http=e}return e.prototype.getAllRoles=function(){return this._setAuthHeaders(this.accessToken),this.http.get(this.apiBaseUrl+"get-all",{headers:this.authHeaders})},e.prototype.newRole=function(e){var t=this.apiBaseUrl+"new";return this.http.post(t,e,{headers:this.authHeaders})},e.prototype.editRole=function(e){var t=this.apiBaseUrl+"edit";return this.http.put(t,e,{headers:this.authHeaders})},e.prototype._setAuthHeaders=function(e){var r="Bearer "+e;this.authHeaders=new t.HttpHeaders({"Content-Type":"application/json",Authorization:r})},e.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:t.HttpClient}]},e.ngInjectableDef=r.ɵɵdefineInjectable({factory:function(){return new e(r.ɵɵinject(t.HttpClient))},token:e,providedIn:"root"}),e}();var s=function(){function e(e,t,r,o,n){this.data=e,this.dialogRef=t,this.rolesService=r,this.formBuilder=o,this.snackBar=n,this.loading=!1}return e.prototype.ngOnInit=function(){this.role=this.data.role,this.initForm(),this.initInputs(),this.role?this.title=this.role.RoleName:this.title="Nuevo Rol"},e.prototype.closeDialog=function(){this.dialogRef.close()},e.prototype.initForm=function(){this.formGroup=this.formBuilder.group({RoleId:[""],RoleName:["",[a.Validators.required,a.Validators.maxLength(256)]],Description:["",[a.Validators.required,a.Validators.maxLength(256)]]})},e.prototype.initInputs=function(){this.role&&(this.formGroup=this.formBuilder.group({RoleId:[this.role.RoleId],RoleName:[this.role.RoleName,[a.Validators.required,a.Validators.maxLength(256)]],Description:[this.role.Description,[a.Validators.required,a.Validators.maxLength(256)]]}))},e.prototype.onSubmit=function(){var e=this;if(this.loading=!0,this.formGroup.valid){var t=this.formGroup.getRawValue();this.role?this.rolesService.editRole(t).subscribe((function(t){return e.editRoleResponseHandler(t)}),(function(t){return e.editRoleResponseHandlerError()})):this.rolesService.newRole(t).subscribe((function(t){return e.newRoleResponseHandler(t)}),(function(t){return e.newRoleResponseHandlerError()}))}else this.loading=!1},e.prototype.newRoleResponseHandler=function(e){if(!e.success)return this.loading=!1,void this.showErrorMessage("ERROR: "+e.errorsMessages[0]);this.loading=!1,this.closeDialog(),this.snackBar.open("El Rol ha sido creada con éxito","OK",{duration:4e3})},e.prototype.newRoleResponseHandlerError=function(){this.loading=!1,this.showErrorMessage("Ocurrió un error durante la creación del Rol")},e.prototype.editRoleResponseHandler=function(e){if(!e.success)return this.loading=!1,void this.showErrorMessage("ERROR: "+e.errorsMessages[0]);this.loading=!1,this.closeDialog(),this.snackBar.open("El Rol ha sido editado con éxito","OK",{duration:4e3})},e.prototype.editRoleResponseHandlerError=function(){this.loading=!1,this.showErrorMessage("Ocurrió un error durante la edición del Rol")},e.prototype.showErrorMessage=function(e){this.snackBar.open(e,null,{duration:5e3})},e.decorators=[{type:r.Component,args:[{selector:"vk-roles-modal",template:'<div class="container">\r\n <div class="title-container">\r\n <div class="header" mat-dialog-title>\r\n {{title}} \r\n </div> \r\n <div class="close-button">\r\n <button mat-flat-button (click)="closeDialog()" >\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n </div> \r\n <div class="content" mat-dialog-content > \r\n <form ngNativeValidate *ngIf="!loading" class="container-form" novalidate (ngSubmit)="onSubmit()" [formGroup]="formGroup">\r\n <div class="input-container" fxLayout="column" fxLayout.gt-xs="row" fxLayoutGap="10px">\r\n <div class="formRow" fxFlex="100" fxFlex.gt-xs="100">\r\n <mat-form-field class="field-form">\r\n <mat-label>Nombre</mat-label>\r\n <input matInput class="form-control" formControlName="RoleName" required maxlength="100">\r\n </mat-form-field>\r\n </div>\r\n <div class="formRow" fxFlex="100" fxFlex.gt-xs="100">\r\n <mat-form-field class="field-form-textarea">\r\n <mat-label>Descripción</mat-label>\r\n <textarea matInput formControlName="Description" required maxlength="500"></textarea> \r\n </mat-form-field> \r\n </div>\r\n </div> \r\n <br>\r\n <br> \r\n <div class="btn-container">\r\n <button mat-raised-button class="btn-cancelar" [mat-dialog-close]>Cancelar</button> \r\n <button mat-raised-button style="margin-left: 5%;" class="btn mat-raised-button mat-button-base" type="submit" >Guardar</button> \r\n </div>\r\n </form>\r\n <div class="requesting" *ngIf="loading">\r\n <mat-progress-bar color="warn" mode="indeterminate"></mat-progress-bar>\r\n <p>Guardando...</p>\r\n </div>\r\n </div>\r\n</div>',styles:[".mat-form-field{width:100%!important}.field-form-textarea .mat-input-element{height:36px!important}.container{width:100%}.container .title-container{display:grid;grid-template-columns:1fr 1fr;grid-column-gap:8px;margin-bottom:8px;border-bottom:1px solid #ccc;background-color:#fff;color:#1d1b1bb5}.container .title-container .title{justify-self:start;align-self:center}.container .title-container .close-button{justify-self:end}.container .mat-dialog-content{padding:3px 24px!important}.container .container-form{min-width:150px;max-width:500px;width:100%}.container .container-form .field-form{width:100%}.container .container-form .buttons-new-catalog{position:relative;left:0;bottom:10px}.container .container-form .btn-container{text-align:right}.container .error-wrapper{color:red;display:inline-flex}.container .error-wrapper p{font-size:14px}"]}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[o.MAT_DIALOG_DATA]}]},{type:o.MatDialogRef},{type:l},{type:a.FormBuilder},{type:o.MatSnackBar}]},e}();var c=function(){function e(e,t,r,o){this.rolesService=e,this.snackBar=t,this.spinner=r,this.dialog=o,this.loadingRoles=!0}return e.prototype.ngOnInit=function(){var e=this;this.spinner.show(),this.displayedColumns=["application","name","description","actions"],this.rolesService.apiBaseUrl=this.apiBaseUrl,this.rolesService.accessToken=this.accessToken,this.rolesService.getAllRoles().subscribe((function(t){return e.getAllRolesResponseHandler(t)}),(function(){return e.getAllRolesResponseHandlerError()}))},e.prototype.getAllRolesResponseHandler=function(e){e.success?(this.roles=e.data,this._roles=this.roles.sort((function(e,t){return e.RoleName.localeCompare(t.RoleName)})),this.loadingRoles=!1,this.error=!1,this.spinner.hide):(this.showErrorMessage("ERROR: "+e.errorsMessages[0]),this.loadingRoles=!1,this.error=!0,this.spinner.hide)},e.prototype.getAllRolesResponseHandlerError=function(){this.showErrorMessage("Ha ocurrido un error inesperado. Por favor, intente más tarde"),this.loadingRoles=!1,this.error=!0,this.spinner.hide},e.prototype.showErrorMessage=function(e){this.snackBar.open(e,null,{duration:5e3})},e.prototype.openDialog=function(e){var t=this;this.dialog.open(s,{data:{role:e},height:"340px",width:"600px"}).afterClosed().subscribe((function(e){t.ngOnInit()}))},e.prototype.onCreate=function(){this.openDialog()},e.prototype.onEdit=function(e){this.openDialog(e)},e.prototype.onSearch=function(e){var t=this.roles.filter((function(t){return t.ApplicationName.toLowerCase().includes(e.toLowerCase())||t.RoleName.toLowerCase().includes(e.toLowerCase())||(t.Description||"").toLowerCase().includes(e.toLowerCase())}));this._roles=t.sort((function(e,t){return e.RoleName.localeCompare(t.RoleName)}))},e.prototype.onRefresh=function(){this.ngOnInit()},e.decorators=[{type:r.Component,args:[{selector:"vk-roles",template:'<ng-container>\r\n <div class="title-container">\r\n <p class="roles-title">Roles</p>\r\n </div>\r\n \r\n <div class="contendor">\r\n <div class="wrapper"> \r\n <div class="content">\r\n <ng-container *ngIf="loadingRoles; else rolesListTemplate">\r\n <mat-progress-bar mode="indeterminate" color="warn"></mat-progress-bar>\r\n <p>Cargando roles...</p>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <ng-template #rolesListTemplate> \r\n <ng-container>\r\n <form #f="ngForm" autocomplete="off">\r\n <div class="new-preferred-customer-container">\r\n <div class="form-group form-roles">\r\n <div class="header-container">\r\n <div class="container-search" fxLayout="column" fxLayout.gt-xs="row" fxLayoutGap="10px"\r\n style="display: flex;">\r\n <div class="formRow" fxFlex="100" fxFlex.gt-xs="50">\r\n <mat-form-field appearance="standard">\r\n <input matInput placeholder="Buscar rol" type="text" (input)="onSearch($event.target.value)" [disabled]="roles?.length === 0">\r\n </mat-form-field>\r\n </div> \r\n \x3c!-- <div class="formRow row-filter" fxFlex="100" fxFlex.gt-xs="50">\r\n <button mat-raised-button color="warn" type="submit" (click)="onFilter()">Filtrar</button>\r\n </div> --\x3e\r\n <div class="formRow row-new" fxFlex="100" fxFlex.gt-xs="50">\r\n <button mat-raised-button color="warn" (click)="onCreate()"><mat-icon>add_circle</mat-icon> Rol</button> \r\n </div>\r\n </div>\r\n </div>\r\n <div class="body-container" fxLayout="column" fxLayout.gt-xs="row" fxLayoutGap="20px">\r\n <div class="formRow" fxFlex="100" > \r\n <div *ngIf="loadingRoles">\r\n <mat-progress-bar color="warn" mode="indeterminate">Cargando Roles...</mat-progress-bar>\r\n </div>\r\n <div *ngIf="!loadingRoles && roles?.length > 0 else noRolesTemplate">\r\n <table mat-table [dataSource]="_roles" class="mat-elevation-z8" class="margen"> \r\n \r\n <ng-container matColumnDef="application">\r\n <th mat-header-cell *matHeaderCellDef> Aplicación </th>\r\n <td mat-cell *matCellDef="let role" class="size-column-code"> {{role.ApplicationName}}</td>\r\n </ng-container>\r\n <ng-container matColumnDef="name">\r\n <th mat-header-cell *matHeaderCellDef> Nombre </th>\r\n <td mat-cell *matCellDef="let role" class="size-column-code"> {{role.RoleName}}</td>\r\n </ng-container>\r\n <ng-container matColumnDef="description">\r\n <th mat-header-cell *matHeaderCellDef> Descripción </th>\r\n <td mat-cell *matCellDef="let role" class="size-column-code"> {{role.Description}}</td>\r\n </ng-container>\r\n \r\n <ng-container matColumnDef="actions">\r\n <th mat-header-cell *matHeaderCellDef>Acciones</th> \r\n <td mat-cell *matCellDef="let element">\r\n <a class="icon-btn" title="Editar Rol" (click)="onEdit(element)"><mat-icon >edit</mat-icon></a>\r\n </td>\r\n </ng-container>\r\n <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\r\n <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\r\n </table>\r\n </div>\r\n \r\n <ng-template #noRolesTemplate>\r\n <div class="table-msg">\r\n <p>No se encontraron roles</p>\r\n <button mat-raised-button class="btn mat-raised-button mat-button-base" (click)="onRefresh()">Volver a cargar</button> \r\n </div>\r\n </ng-template>\r\n \r\n </div>\r\n </div> \r\n </div> \r\n </div> \r\n </form>\r\n </ng-container> \r\n </ng-template>\r\n </div>\r\n</ng-container>',styles:[".title-container{display:flex;flex-direction:column;padding:10px;margin:10px 0;background-color:#d32020}.title-container .roles-title{margin:0 0 10px;color:#fff;font-size:24px;font-weight:500}.contendor{height:70vh}.contendor .wrapper{margin:5px 0;padding:10px 5px 5px;background-color:#fff}.contendor .wrapper .content{display:block;flex-direction:row;height:100%;width:100%;margin-bottom:15px}.contendor .wrapper .content p{font-size:12px;text-align:left;justify-self:start;align-self:center}.contendor .new-preferred-customer-container .form-roles .header-container{margin:8px 0;padding:10px 5px 5px;border:1px solid #e0e0e0;border-radius:4px;box-shadow:2px 2px 8px rgba(80,80,80,.1)}.contendor .new-preferred-customer-container .form-roles .header-container .text{font-size:12px;font-weight:400}.contendor .new-preferred-customer-container .form-roles .header-container .input-search{margin-right:8px;border:1px solid #ccc;height:22px;font-size:12px}.contendor .new-preferred-customer-container .form-roles .header-container .input-search:focus{border:1px solid #d32020}.contendor .new-preferred-customer-container .form-roles .header-container .btn-search{background-color:#d32020;color:#fff}.contendor .new-preferred-customer-container .form-roles .header-container .inlineinput{display:inline}.contendor .new-preferred-customer-container .form-roles .header-container .container-search{display:flex;margin-top:10px;min-width:100%}.contendor .new-preferred-customer-container .form-roles .header-container .container-search .formRow{width:49%;position:relative}.contendor .new-preferred-customer-container .form-roles .header-container .container-search .formRow button:focus,.contendor .new-preferred-customer-container .form-roles .header-container .container-search .formRow input:focus,.contendor .new-preferred-customer-container .form-roles .header-container .container-search .formRow select:focus,.contendor .new-preferred-customer-container .form-roles .header-container .container-search .formRow textarea:focus{outline:0}.contendor .new-preferred-customer-container .form-roles .header-container .container-search .formRow.row-filter{margin-top:4px;text-align:left}.contendor .new-preferred-customer-container .form-roles .header-container .container-search .formRow.row-new{margin-top:22px!important;text-align:right}.contendor .new-preferred-customer-container .form-roles .body-container{margin-top:10px;min-width:100%;overflow:hidden!important}.contendor .new-preferred-customer-container .form-roles .body-container .formRow{position:relative;overflow-y:scroll;max-height:63vh}.contendor .new-preferred-customer-container .form-roles .body-container .formRow button:focus,.contendor .new-preferred-customer-container .form-roles .body-container .formRow input:focus,.contendor .new-preferred-customer-container .form-roles .body-container .formRow select:focus,.contendor .new-preferred-customer-container .form-roles .body-container .formRow textarea:focus{outline:0}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table{text-align:center!important;width:100%;overflow-x:auto;overflow-y:hidden;--td-row-height:55px}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table th.mat-header-cell{padding:10px;background:#f1f1f1;color:#000;font-size:11px}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table tr.mat-header-row{height:35px}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table tr.mat-footer-row,.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table tr.mat-row{height:var(--td-row-height)}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table td.mat-cell{font-size:12px;padding:2px;background:#f1f1f1}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table td.mat-cell p.id{cursor:pointer;text-decoration:underline;color:#1e90ff}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table td.mat-cell .status{display:flex;cursor:pointer;justify-content:center}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table td.mat-cell .status mat-icon{font-size:16px;width:16px;height:16px}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table td.mat-cell .mat-icon{cursor:pointer!important}.contendor .new-preferred-customer-container .form-roles .body-container .formRow table.mat-table td.mat-cell:last-of-type{padding:5px}.contendor .new-preferred-customer-container .form-roles .body-container .formRow .table-msg{text-align:center;margin-top:20px}form{width:100%}@media screen and (min-width:768px){.wrapper{margin:5px auto 10px}.wrapper .header{grid-template-columns:1fr 1fr 20fr}.wrapper .body .title p{font-size:13px}.wrapper .body .content{grid-template-columns:90% 1fr}.wrapper .body .content p{font-size:13px}}@media (min-width:400px){table.mat-table{--td-row-height:40px}table.mat-table th.mat-header-cell{text-align:center;font-size:15px}table.mat-table td.mat-cell .status mat-icon{font-size:20px;width:20px;height:20px}}@media (device-height:568px) and (device-width:320px) and (-webkit-min-device-pixel-ratio:2){.title-container p{width:100%;font-size:1.2rem}table.mat-table{width:100%;overflow-x:auto;overflow-y:hidden;--td-row-height:55px}table.mat-table td.mat-cell:first-of-type,table.mat-table td.mat-footer-cell:first-of-type,table.mat-table th.mat-header-cell:first-of-type{padding-left:0}table.mat-table th.mat-header-cell{padding:7px;background:#f1f1f1;color:#000;font-size:11px}table.mat-table tr.mat-header-row{height:35px}table.mat-table tr.mat-footer-row,table.mat-table tr.mat-row{height:var(--td-row-height)}table.mat-table td.mat-cell{font-size:11px;padding:1px;background:#f1f1f1}table.mat-table td.mat-cell:last-of-type{padding:5px}}@media (device-height:653px) and (device-width:280px){.title-container p{width:100%;font-size:1.1rem}table.mat-table{width:100%;overflow-x:auto;overflow-y:hidden;--td-row-height:55px}table.mat-table td.mat-cell:first-of-type,table.mat-table td.mat-footer-cell:first-of-type,table.mat-table th.mat-header-cell:first-of-type{padding-left:0}table.mat-table th.mat-header-cell{padding:2px;background:#f1f1f1;color:#fff;font-size:11px}table.mat-table tr.mat-header-row{height:35px}table.mat-table tr.mat-footer-row,table.mat-table tr.mat-row{height:var(--td-row-height)}table.mat-table td.mat-cell{font-size:10px;padding:0;background:#f1f1f1}table.mat-table td.mat-cell:last-of-type{padding:5px}}@media (max-width:599px){.formRow.row-filter button{width:100%}.formRow.row-new{margin-top:14px!important}.formRow.row-new button{width:100%}}"]}]}],e.ctorParameters=function(){return[{type:l},{type:o.MatSnackBar},{type:n.NgxSpinnerService},{type:o.MatDialog}]},e.propDecorators={apiBaseUrl:[{type:r.Input}],accessToken:[{type:r.Input}]},e}();var d=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{declarations:[c,s],imports:[i.CommonModule,a.FormsModule,o.MatFormFieldModule,o.MatInputModule,o.MatTableModule,o.MatButtonModule,o.MatProgressBarModule,o.MatIconModule,o.MatSnackBarModule,o.MatDialogModule,n.NgxSpinnerModule,t.HttpClientModule,a.ReactiveFormsModule],exports:[c,s],entryComponents:[s]}]}],e}();e.VkRolesComponent=c,e.VkRolesModule=d,e.VkRolesService=l,e.ɵa=s,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=vk-roles.umd.min.js.map

@@ -47,3 +47,3 @@ /**

this.formGroup = this.formBuilder.group({
RoleId: [0,],
RoleId: ['',],
RoleName: ['', [Validators.required, Validators.maxLength(256)]],

@@ -198,2 +198,2 @@ Description: ['', [Validators.required, Validators.maxLength(256)]],

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmstcm9sZXMubW9kYWwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly92ay1yb2xlcy8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL21vZGFsL3ZrLXJvbGVzLm1vZGFsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDMUQsT0FBTyxFQUFFLFdBQVcsRUFBYSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNwRSxPQUFPLEVBQUUsWUFBWSxFQUFFLFdBQVcsRUFBRSxlQUFlLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUUvRSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFPakUsTUFBTSxPQUFPLHFCQUFxQjs7Ozs7Ozs7SUFNaEMsWUFDa0MsSUFBUyxFQUNqQyxTQUE4QyxFQUM5QyxZQUE0QixFQUM1QixXQUF3QixFQUN4QixRQUFxQjtRQUpHLFNBQUksR0FBSixJQUFJLENBQUs7UUFDakMsY0FBUyxHQUFULFNBQVMsQ0FBcUM7UUFDOUMsaUJBQVksR0FBWixZQU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Jyb3IoKXtcbiAgICB0aGlzLmxvYWRpbmcgPSBmYWxzZTtcbiAgICB0aGlzLnNob3dFcnJvck1lc3NhZ2UoXCJPY3VycmnDsyB1biBlcnJvciBkdXJhbnRlIGxhIGNyZWFjacOzbiBkZWwgUm9sXCIpO1xuICB9XG5cbiAgZWRpdFJvbGVSZXNwb25zZUhhbmRsZXIocmVzcG9uc2Upe1xuICAgIGlmICghcmVzcG9uc2Uuc3VjY2VzcykgeyBcbiAgICAgIHRoaXMubG9hZGluZyA9IGZhbHNlO1xuICAgICAgdGhpcy5zaG93RXJyb3JNZXNzYWdlKFwiRVJST1I6IFwiICsgcmVzcG9uc2UuZXJyb3JzTWVzc2FnZXNbMF0pO1xuICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICB0aGlzLmxvYWRpbmcgPSBmYWxzZTtcbiAgICB0aGlzLmNsb3NlRGlhbG9nKCk7XG4gICAgdGhpcy5zbmFja0Jhci5vcGVuKFwiRWwgUm9sIGhhIHNpZG8gZWRpdGFkbyBjb24gw6l4aXRvXCIsICdPSycseyBkdXJhdGlvbjogNDAwMCB9KTtcbiAgfVxuXG4gIGVkaXRSb2xlUmVzcG9uc2VIYW5kbGVyRXJyb3IoKSB7XG4gICAgdGhpcy5sb2FkaW5nID0gZmFsc2U7XG4gICAgdGhpcy5zaG93RXJyb3JNZXNzYWdlKFwiT2N1cnJpw7MgdW4gZXJyb3IgZHVyYW50ZSBsYSBlZGljacOzbiBkZWwgUm9sXCIpO1xuICB9XG5cbiAgcHJpdmF0ZSBzaG93RXJyb3JNZXNzYWdlKG1lc3NhZ2U6IHN0cmluZykgeyBcbiAgICB0aGlzLnNuYWNrQmFyLm9wZW4obWVzc2FnZSwgbnVsbCwge2R1cmF0aW9uOiA1MDAwfSk7XG4gIH1cbn1cbiJdfQ==

@@ -40,3 +40,2 @@ /**

const url = this.apiBaseUrl + 'edit';
console.log(body);
return this.http.put(url, body, { headers: this.authHeaders });

@@ -81,2 +80,2 @@ }

}
//# s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lbiA9ICdCZWFyZXIgJyArIGFjY2Vzc190b2tlbjtcbiAgICB0aGlzLmF1dGhIZWFkZXJzID0gbmV3IEh0dHBIZWFkZXJzKHsgJ0NvbnRlbnQtVHlwZSc6ICdhcHBsaWNhdGlvbi9qc29uJywgJ0F1dGhvcml6YXRpb24nOiB1c2VyVG9rZW4gfSk7XG4gIH1cbn1cbiJdfQ==

@@ -50,3 +50,3 @@ /**

this.formGroup = this.formBuilder.group({
RoleId: [0,],
RoleId: ['',],
RoleName: ['', [Validators.required, Validators.maxLength(256)]],

@@ -229,2 +229,2 @@ Description: ['', [Validators.required, Validators.maxLength(256)]],

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmstcm9sZXMubW9kYWwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly92ay1yb2xlcy8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL21vZGFsL3ZrLXJvbGVzLm1vZGFsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDMUQsT0FBTyxFQUFFLFdBQVcsRUFBYSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNwRSxPQUFPLEVBQUUsWUFBWSxFQUFFLFdBQVcsRUFBRSxlQUFlLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUUvRSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFFakU7SUFXRSwrQkFDa0MsSUFBUyxFQUNqQyxTQUE4QyxFQUM5QyxZQUE0QixFQUM1QixXQUF3QixFQUN4QixRQUFxQjtRQUpHLFNBQUksR0FBSixJQUFJLENBQUs7UUFDakMsY0FBUyxHQUFULFNBQVMsQ0FBcUM7UUFDOUMsaUJBQVksR0FBWixZQUFZLENBQWdCO1FBQzVCLGdCQUF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SycseyBkdXJhdGlvbjogNDAwMCB9KTtcbiAgfVxuXG4gIGVkaXRSb2xlUmVzcG9uc2VIYW5kbGVyRXJyb3IoKSB7XG4gICAgdGhpcy5sb2FkaW5nID0gZmFsc2U7XG4gICAgdGhpcy5zaG93RXJyb3JNZXNzYWdlKFwiT2N1cnJpw7MgdW4gZXJyb3IgZHVyYW50ZSBsYSBlZGljacOzbiBkZWwgUm9sXCIpO1xuICB9XG5cbiAgcHJpdmF0ZSBzaG93RXJyb3JNZXNzYWdlKG1lc3NhZ2U6IHN0cmluZykgeyBcbiAgICB0aGlzLnNuYWNrQmFyLm9wZW4obWVzc2FnZSwgbnVsbCwge2R1cmF0aW9uOiA1MDAwfSk7XG4gIH1cbn1cbiJdfQ==

@@ -48,3 +48,2 @@ /**

var url = this.apiBaseUrl + 'edit';
console.log(body);
return this.http.put(url, body, { headers: this.authHeaders });

@@ -96,2 +95,2 @@ };

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmstcm9sZXMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL3ZrLXJvbGVzLyIsInNvdXJjZXMiOlsibGliL3NlcnZpY2VzL3ZrLXJvbGVzLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLFdBQVcsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQy9ELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQUkzQztJQVNFLHdCQUFvQixJQUFnQjtRQUFoQixTQUFJLEdBQUosSUFBSSxDQUFZO0lBQUcsQ0FBQzs7OztJQUV4QyxvQ0FBVzs7O0lBQVg7UUFDRSxJQUFJLENBQUMsZUFBZSxDQUFDLElBQUksQ0FBQyxXQUFXLENBQUMsQ0FBQztRQUN2QyxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsR0FBR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ZXQtYWxsYCwgeyBoZWFkZXJzOiB0aGlzLmF1dGhIZWFkZXJzIH0pO1xuICB9XG5cbiAgbmV3Um9sZShib2R5OiBJUm9sKTogT2JzZXJ2YWJsZTxJR2VuZXJpY1Jlc3BvbnNlPiB7XG4gICAgY29uc3QgdXJsID0gdGhpcy5hcGlCYXNlVXJsICsgJ25ldyc7XG4gICAgcmV0dXJuIHRoaXMuaHR0cC5wb3N0PElHZW5lcmljUmVzcG9uc2U+KHVybCwgYm9keSwgeyBoZWFkZXJzOiB0aGlzLmF1dGhIZWFkZXJzIH0pO1xuICB9XG5cbiAgZWRpdFJvbGUoYm9keTogSVJvbCk6IE9ic2VydmFibGU8SUdlbmVyaWNSZXNwb25zZT4ge1xuICAgIGNvbnN0IHVybCA9IHRoaXMuYXBpQmFzZVVybCArICdlZGl0JztcbiAgICByZXR1cm4gdGhpcy5odHRwLnB1dDxJR2VuZXJpY1Jlc3BvbnNlPih1cmwsIGJvZHksIHsgaGVhZGVyczogdGhpcy5hdXRoSGVhZGVycyB9KTtcbiAgfVxuXG4gIHByaXZhdGUgX3NldEF1dGhIZWFkZXJzKGFjY2Vzc190b2tlbjogc3RyaW5nKSB7XG4gICAgY29uc3QgdXNlclRva2VuID0gJ0JlYXJlciAnICsgYWNjZXNzX3Rva2VuO1xuICAgIHRoaXMuYXV0aEhlYWRlcnMgPSBuZXcgSHR0cEhlYWRlcnMoeyAnQ29udGVudC1UeXBlJzogJ2FwcGxpY2F0aW9uL2pzb24nLCAnQXV0aG9yaXphdGlvbic6IHVzZXJUb2tlbiB9KTtcbiAgfVxufVxuIl19

@@ -43,3 +43,2 @@ import { HttpHeaders, HttpClient, HttpClientModule } from '@angular/common/http';

const url = this.apiBaseUrl + 'edit';
console.log(body);
return this.http.put(url, body, { headers: this.authHeaders });

@@ -127,3 +126,3 @@ }

this.formGroup = this.formBuilder.group({
RoleId: [0,],
RoleId: ['',],
RoleName: ['', [Validators.required, Validators.maxLength(256)]],

@@ -130,0 +129,0 @@ Description: ['', [Validators.required, Validators.maxLength(256)]],

@@ -51,3 +51,2 @@ import { HttpHeaders, HttpClient, HttpClientModule } from '@angular/common/http';

var url = this.apiBaseUrl + 'edit';
console.log(body);
return this.http.put(url, body, { headers: this.authHeaders });

@@ -144,3 +143,3 @@ };

this.formGroup = this.formBuilder.group({
RoleId: [0,],
RoleId: ['',],
RoleName: ['', [Validators.required, Validators.maxLength(256)]],

@@ -147,0 +146,0 @@ Description: ['', [Validators.required, Validators.maxLength(256)]],

{
"name": "vk-roles",
"version": "0.0.38",
"version": "0.0.39",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": "^8.2.14",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc