{"ast":null,"code":"import { FormGroup, FormControl, Validators } from '@angular/forms';\nimport { SuccessModalComponent } from 'src/app/shared/modals/success-modal/success-modal.component';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"src/app/shared/services/repository.service\";\nimport * as i2 from \"src/app/shared/services/repository-error-handler.service\";\nimport * as i3 from \"@angular/router\";\nimport * as i4 from \"ngx-bootstrap/modal\";\nimport * as i5 from \"@angular/common\";\nimport * as i6 from \"@angular/material/form-field\";\nimport * as i7 from \"@angular/material/input\";\nimport * as i8 from \"@angular/material/card\";\nimport * as i9 from \"@angular/material/button\";\nimport * as i10 from \"@angular/flex-layout/flex\";\nimport * as i11 from \"@angular/forms\";\nfunction UpdateEmployeeComponent_mat_error_11_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"Ad gerekli\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction UpdateEmployeeComponent_mat_error_12_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"60'tan fazla karakteriniz var\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction UpdateEmployeeComponent_mat_error_17_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"Soyad\\u0131 gerekli\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction UpdateEmployeeComponent_mat_error_18_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"60'tan fazla karakteriniz var\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction UpdateEmployeeComponent_mat_error_23_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"\\u00C7al\\u0131\\u015Fan Numaras\\u0131 gerekli\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction UpdateEmployeeComponent_mat_error_24_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"60'tan fazla karakteriniz var\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction UpdateEmployeeComponent_mat_error_29_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"Position is required\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction UpdateEmployeeComponent_mat_error_30_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"You have more than 60 characters\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction UpdateEmployeeComponent_mat_error_35_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"Email is required\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction UpdateEmployeeComponent_mat_error_36_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"Invalid Email Address\");\n    i0.ɵɵelementEnd();\n  }\n}\nexport class UpdateEmployeeComponent {\n  constructor(repository, errorHandler, router, modal, route) {\n    this.repository = repository;\n    this.errorHandler = errorHandler;\n    this.router = router;\n    this.modal = modal;\n    this.route = route;\n    this.errorMessage = '';\n    this.employeeId = '';\n    this.initializeForm = () => {\n      if (this.employeeId) {\n        this.repository.getData(`api/employees/${this.employeeId}`).subscribe({\n          next: employee => {\n            this.employeeForm = new FormGroup({\n              firstName: new FormControl(employee.firstName, [Validators.required, Validators.maxLength(60)]),\n              lastName: new FormControl(employee.lastName, [Validators.required, Validators.maxLength(60)]),\n              employeeNumber: new FormControl(employee.employeeNumber, [Validators.required, Validators.maxLength(60)]),\n              position: new FormControl(employee.position, [Validators.required, Validators.maxLength(60)]),\n              email: new FormControl(employee.email, [Validators.required, Validators.email])\n            });\n          },\n          error: err => {\n            this.errorHandler.handleError(err);\n            this.errorMessage = this.errorHandler.errorMessage;\n          }\n        });\n      }\n    };\n    this.validateControl = controlName => {\n      if (this.employeeForm.get(controlName).invalid && this.employeeForm.get(controlName).touched) return true;\n      return false;\n    };\n    this.hasError = (controlName, errorName) => {\n      if (this.employeeForm.get(controlName).hasError(errorName)) return true;\n      return false;\n    };\n    this.updateEmployee = employeeFormValue => {\n      if (this.employeeForm.valid) this.executeEmployeeUpdate(employeeFormValue);\n    };\n    this.executeEmployeeUpdate = employeeFormValue => {\n      const updatedEmployee = {\n        id: this.employeeId ? this.employeeId : '',\n        firstName: employeeFormValue.firstName,\n        lastName: employeeFormValue.lastName,\n        employeeNumber: employeeFormValue.employeeNumber,\n        position: employeeFormValue.position,\n        email: employeeFormValue.email\n      };\n      const apiUrl = `api/employees/${this.employeeId}`;\n      this.repository.update(apiUrl, updatedEmployee).subscribe({\n        next: () => {\n          const config = {\n            initialState: {\n              modalHeaderText: 'Success Message',\n              modalBodyText: `Employee: ${updatedEmployee.firstName} ${updatedEmployee.lastName} updated successfully`,\n              okButtonText: 'OK'\n            }\n          };\n          this.bsModalRef = this.modal.show(SuccessModalComponent, config);\n          this.bsModalRef.content.redirectOnOk.subscribe(() => this.redirectToEmployeeList());\n        },\n        error: err => {\n          this.errorHandler.handleError(err);\n          this.errorMessage = this.errorHandler.errorMessage;\n        }\n      });\n    };\n    this.redirectToEmployeeList = () => {\n      this.router.navigate(['/ui-components/employee']);\n    };\n  }\n  ngOnInit() {\n    this.employeeId = this.route.snapshot.paramMap.get('id');\n    this.employeeForm = new FormGroup({\n      firstName: new FormControl('', [Validators.required, Validators.maxLength(60)]),\n      lastName: new FormControl('', [Validators.required, Validators.maxLength(60)]),\n      employeeNumber: new FormControl('', [Validators.required, Validators.maxLength(60)]),\n      position: new FormControl('', [Validators.required, Validators.maxLength(60)]),\n      email: new FormControl('', [Validators.required, Validators.email])\n    });\n    this.initializeForm();\n  }\n  static #_ = this.ɵfac = function UpdateEmployeeComponent_Factory(t) {\n    return new (t || UpdateEmployeeComponent)(i0.ɵɵdirectiveInject(i1.RepositoryService), i0.ɵɵdirectiveInject(i2.RepositoryErrorHandlerService), i0.ɵɵdirectiveInject(i3.Router), i0.ɵɵdirectiveInject(i4.BsModalService), i0.ɵɵdirectiveInject(i3.ActivatedRoute));\n  };\n  static #_2 = this.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n    type: UpdateEmployeeComponent,\n    selectors: [[\"app-update-employee\"]],\n    decls: 42,\n    vars: 12,\n    consts: [[\"fxLayout\", \"row wrap\", \"fxLayoutAlign\", \"center center\"], [\"fxFlex\", \"500px\", \"fxFlex.xs\", \"100%\", 1, \"b-1\", \"shadow-none\"], [\"autocomplete\", \"off\", \"novalidate\", \"\", 3, \"ngSubmit\", \"formGroup\"], [\"appearance\", \"outline\", \"color\", \"primary\", 1, \"w-100\"], [\"matInput\", \"\", \"type\", \"text\", \"placeholder\", \"First Name\", \"formControlName\", \"firstName\", \"id\", \"firstName\"], [\"align\", \"end\"], [4, \"ngIf\"], [\"matInput\", \"\", \"type\", \"text\", \"placeholder\", \"Last Name\", \"formControlName\", \"lastName\", \"id\", \"lastName\"], [\"matInput\", \"\", \"type\", \"text\", \"placeholder\", \"Employee Number\", \"formControlName\", \"employeeNumber\", \"id\", \"employeeNumber\"], [\"matInput\", \"\", \"type\", \"text\", \"placeholder\", \"Position\", \"formControlName\", \"position\", \"id\", \"position\"], [\"matInput\", \"\", \"type\", \"email\", \"placeholder\", \"Email\", \"formControlName\", \"email\", \"id\", \"email\"], [\"mat-flat-button\", \"\", \"color\", \"primary\", 1, \"w-100\", \"action-button\", 3, \"disabled\"], [\"type\", \"button\", \"mat-flat-button\", \"\", \"color\", \"warn\", 1, \"w-100\", 3, \"click\"]],\n    template: function UpdateEmployeeComponent_Template(rf, ctx) {\n      if (rf & 1) {\n        i0.ɵɵelementStart(0, \"section\", 0)(1, \"mat-card\", 1)(2, \"mat-card-header\")(3, \"mat-card-title\");\n        i0.ɵɵtext(4, \"\\u00C7al\\u0131\\u015Fan\\u0131 G\\u00FCncelle\");\n        i0.ɵɵelementEnd()();\n        i0.ɵɵelementStart(5, \"form\", 2);\n        i0.ɵɵlistener(\"ngSubmit\", function UpdateEmployeeComponent_Template_form_ngSubmit_5_listener() {\n          return ctx.updateEmployee(ctx.employeeForm.value);\n        });\n        i0.ɵɵelementStart(6, \"mat-card-content\")(7, \"mat-form-field\", 3);\n        i0.ɵɵelement(8, \"input\", 4);\n        i0.ɵɵelementStart(9, \"mat-hint\", 5);\n        i0.ɵɵtext(10, \"60 karakterden uzun olmamal\\u0131d\\u0131r.\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵtemplate(11, UpdateEmployeeComponent_mat_error_11_Template, 2, 0, \"mat-error\", 6)(12, UpdateEmployeeComponent_mat_error_12_Template, 2, 0, \"mat-error\", 6);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(13, \"mat-form-field\", 3);\n        i0.ɵɵelement(14, \"input\", 7);\n        i0.ɵɵelementStart(15, \"mat-hint\", 5);\n        i0.ɵɵtext(16, \"60 karakterden uzun olmamal\\u0131d\\u0131r.\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵtemplate(17, UpdateEmployeeComponent_mat_error_17_Template, 2, 0, \"mat-error\", 6)(18, UpdateEmployeeComponent_mat_error_18_Template, 2, 0, \"mat-error\", 6);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(19, \"mat-form-field\", 3);\n        i0.ɵɵelement(20, \"input\", 8);\n        i0.ɵɵelementStart(21, \"mat-hint\", 5);\n        i0.ɵɵtext(22, \"60 karakterden uzun olmamal\\u0131d\\u0131r.\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵtemplate(23, UpdateEmployeeComponent_mat_error_23_Template, 2, 0, \"mat-error\", 6)(24, UpdateEmployeeComponent_mat_error_24_Template, 2, 0, \"mat-error\", 6);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(25, \"mat-form-field\", 3);\n        i0.ɵɵelement(26, \"input\", 9);\n        i0.ɵɵelementStart(27, \"mat-hint\", 5);\n        i0.ɵɵtext(28, \"Not more than 60 characters long.\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵtemplate(29, UpdateEmployeeComponent_mat_error_29_Template, 2, 0, \"mat-error\", 6)(30, UpdateEmployeeComponent_mat_error_30_Template, 2, 0, \"mat-error\", 6);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(31, \"mat-form-field\", 3);\n        i0.ɵɵelement(32, \"input\", 10);\n        i0.ɵɵelementStart(33, \"mat-hint\", 5);\n        i0.ɵɵtext(34, \"Enter a valid email address.\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵtemplate(35, UpdateEmployeeComponent_mat_error_35_Template, 2, 0, \"mat-error\", 6)(36, UpdateEmployeeComponent_mat_error_36_Template, 2, 0, \"mat-error\", 6);\n        i0.ɵɵelementEnd()();\n        i0.ɵɵelementStart(37, \"mat-card-actions\")(38, \"button\", 11);\n        i0.ɵɵtext(39, \"Update\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(40, \"button\", 12);\n        i0.ɵɵlistener(\"click\", function UpdateEmployeeComponent_Template_button_click_40_listener() {\n          return ctx.redirectToEmployeeList();\n        });\n        i0.ɵɵtext(41, \"Cancel\");\n        i0.ɵɵelementEnd()()()()();\n      }\n      if (rf & 2) {\n        i0.ɵɵadvance(5);\n        i0.ɵɵproperty(\"formGroup\", ctx.employeeForm);\n        i0.ɵɵadvance(6);\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"firstName\", \"required\"));\n        i0.ɵɵadvance();\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"firstName\", \"maxlength\"));\n        i0.ɵɵadvance(5);\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"lastName\", \"required\"));\n        i0.ɵɵadvance();\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"lastName\", \"maxlength\"));\n        i0.ɵɵadvance(5);\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"employeeNumber\", \"required\"));\n        i0.ɵɵadvance();\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"employeeNumber\", \"maxlength\"));\n        i0.ɵɵadvance(5);\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"position\", \"required\"));\n        i0.ɵɵadvance();\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"position\", \"maxlength\"));\n        i0.ɵɵadvance(5);\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"email\", \"required\"));\n        i0.ɵɵadvance();\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"email\", \"email\"));\n        i0.ɵɵadvance(2);\n        i0.ɵɵproperty(\"disabled\", !ctx.employeeForm.valid);\n      }\n    },\n    dependencies: [i5.NgIf, i6.MatFormField, i6.MatHint, i6.MatError, i7.MatInput, i8.MatCard, i8.MatCardActions, i8.MatCardContent, i8.MatCardHeader, i8.MatCardTitle, i9.MatButton, i10.DefaultLayoutDirective, i10.DefaultLayoutAlignDirective, i10.DefaultFlexDirective, i11.ɵNgNoValidate, i11.DefaultValueAccessor, i11.NgControlStatus, i11.NgControlStatusGroup, i11.FormGroupDirective, i11.FormControlName],\n    styles: [\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */\"]\n  });\n}","map":{"version":3,"names":["FormGroup","FormControl","Validators","SuccessModalComponent","i0","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","UpdateEmployeeComponent","constructor","repository","errorHandler","router","modal","route","errorMessage","employeeId","initializeForm","getData","subscribe","next","employee","employeeForm","firstName","required","maxLength","lastName","employeeNumber","position","email","error","err","handleError","validateControl","controlName","get","invalid","touched","hasError","errorName","updateEmployee","employeeFormValue","valid","executeEmployeeUpdate","updatedEmployee","id","apiUrl","update","config","initialState","modalHeaderText","modalBodyText","okButtonText","bsModalRef","show","content","redirectOnOk","redirectToEmployeeList","navigate","ngOnInit","snapshot","paramMap","_","ɵɵdirectiveInject","i1","RepositoryService","i2","RepositoryErrorHandlerService","i3","Router","i4","BsModalService","ActivatedRoute","_2","selectors","decls","vars","consts","template","UpdateEmployeeComponent_Template","rf","ctx","ɵɵlistener","UpdateEmployeeComponent_Template_form_ngSubmit_5_listener","value","ɵɵelement","ɵɵtemplate","UpdateEmployeeComponent_mat_error_11_Template","UpdateEmployeeComponent_mat_error_12_Template","UpdateEmployeeComponent_mat_error_17_Template","UpdateEmployeeComponent_mat_error_18_Template","UpdateEmployeeComponent_mat_error_23_Template","UpdateEmployeeComponent_mat_error_24_Template","UpdateEmployeeComponent_mat_error_29_Template","UpdateEmployeeComponent_mat_error_30_Template","UpdateEmployeeComponent_mat_error_35_Template","UpdateEmployeeComponent_mat_error_36_Template","UpdateEmployeeComponent_Template_button_click_40_listener","ɵɵadvance","ɵɵproperty"],"sources":["C:\\Users\\fsengul\\Desktop\\MendereIT\\InventoryManagement\\InventryUI-Client\\src\\app\\pages\\ui-components\\employee\\update-employee\\update-employee.component.ts","C:\\Users\\fsengul\\Desktop\\MendereIT\\InventoryManagement\\InventryUI-Client\\src\\app\\pages\\ui-components\\employee\\update-employee\\update-employee.component.html"],"sourcesContent":["import { HttpErrorResponse } from '@angular/common/http';\nimport { Component, OnInit } from '@angular/core';\nimport { FormGroup, FormControl, Validators } from '@angular/forms';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { BsModalRef, BsModalService, ModalOptions } from 'ngx-bootstrap/modal';\nimport { SuccessModalComponent } from 'src/app/shared/modals/success-modal/success-modal.component';\nimport { RepositoryErrorHandlerService } from 'src/app/shared/services/repository-error-handler.service';\nimport { RepositoryService } from 'src/app/shared/services/repository.service';\n\n@Component({\n  selector: 'app-update-employee',\n  templateUrl: './update-employee.component.html',\n  styleUrls: ['./update-employee.component.css']\n})\nexport class UpdateEmployeeComponent implements OnInit {\n\n  public employeeForm: FormGroup | any;\n  public errorMessage: string = '';\n  public bsModalRef?: BsModalRef;\n  private employeeId: string | null = '';\n\n  constructor(\n    private repository: RepositoryService,\n    private errorHandler: RepositoryErrorHandlerService,\n    private router: Router,\n    private modal: BsModalService,\n    private route: ActivatedRoute\n  ) { }\n\n  ngOnInit(): void {\n    this.employeeId = this.route.snapshot.paramMap.get('id');\n    this.employeeForm = new FormGroup({\n      firstName: new FormControl('', [Validators.required, Validators.maxLength(60)]),\n      lastName: new FormControl('', [Validators.required, Validators.maxLength(60)]),\n      employeeNumber: new FormControl('', [Validators.required, Validators.maxLength(60)]),\n      position: new FormControl('', [Validators.required, Validators.maxLength(60)]),\n      email: new FormControl('', [Validators.required, Validators.email])\n    });\n    this.initializeForm();\n  }\n\n  private initializeForm = () => {\n    if (this.employeeId) {\n      this.repository.getData(`api/employees/${this.employeeId}`)\n        .subscribe({\n          next: (employee: any) => {\n            this.employeeForm = new FormGroup({\n              firstName: new FormControl(employee.firstName, [Validators.required, Validators.maxLength(60)]),\n              lastName: new FormControl(employee.lastName, [Validators.required, Validators.maxLength(60)]),\n              employeeNumber: new FormControl(employee.employeeNumber, [Validators.required, Validators.maxLength(60)]),\n              position: new FormControl(employee.position, [Validators.required, Validators.maxLength(60)]),\n              email: new FormControl(employee.email, [Validators.required, Validators.email])\n            });\n          },\n          error: (err: HttpErrorResponse) => {\n            this.errorHandler.handleError(err);\n            this.errorMessage = this.errorHandler.errorMessage;\n          }\n        });\n    }\n  }\n\n  validateControl = (controlName: string) => {\n    if (this.employeeForm.get(controlName).invalid && this.employeeForm.get(controlName).touched)\n      return true;\n    \n    return false;\n  }\n\n  hasError = (controlName: string, errorName: string) => {\n    if (this.employeeForm.get(controlName).hasError(errorName))\n      return true;\n    \n    return false;\n  }\n\n  updateEmployee = (employeeFormValue: any) => {\n    if (this.employeeForm.valid)\n      this.executeEmployeeUpdate(employeeFormValue);\n  }\n\n  private executeEmployeeUpdate = (employeeFormValue: any) => {\n    const updatedEmployee = {\n      id: this.employeeId ? this.employeeId : '',\n      firstName: employeeFormValue.firstName,\n      lastName: employeeFormValue.lastName,\n      employeeNumber: employeeFormValue.employeeNumber,\n      position: employeeFormValue.position,\n      email: employeeFormValue.email\n    };\n\n    const apiUrl = `api/employees/${this.employeeId}`;\n    this.repository.update(apiUrl, updatedEmployee)\n      .subscribe({\n        next: () => {\n          const config: ModalOptions = {\n            initialState: {\n              modalHeaderText: 'Success Message',\n              modalBodyText: `Employee: ${updatedEmployee.firstName} ${updatedEmployee.lastName} updated successfully`,\n              okButtonText: 'OK'\n            }\n          };\n\n          this.bsModalRef = this.modal.show(SuccessModalComponent, config);\n          this.bsModalRef.content.redirectOnOk.subscribe(() => this.redirectToEmployeeList());\n        },\n        error: (err: HttpErrorResponse) => {\n          this.errorHandler.handleError(err);\n          this.errorMessage = this.errorHandler.errorMessage;\n        }\n      });\n  }\n\n  redirectToEmployeeList = () => {\n    this.router.navigate(['/ui-components/employee']);\n  }\n\n\n}\n","<section fxLayout=\"row wrap\" fxLayoutAlign=\"center center\">\n  <mat-card fxFlex=\"500px\" fxFlex.xs=\"100%\" class=\"b-1 shadow-none\">\n    <mat-card-header>\n      <mat-card-title>Çalışanı Güncelle</mat-card-title>\n    </mat-card-header>\n    <form [formGroup]=\"employeeForm\" autocomplete=\"off\" novalidate (ngSubmit)=\"updateEmployee(employeeForm.value)\">\n      <mat-card-content>\n        <mat-form-field appearance=\"outline\" class=\"w-100\" color=\"primary\">\n          <input matInput type=\"text\" placeholder=\"First Name\" formControlName=\"firstName\" id=\"firstName\">\n          <mat-hint align=\"end\">60 karakterden uzun olmamalıdır.</mat-hint>\n          <mat-error *ngIf=\"hasError('firstName', 'required')\">Ad gerekli</mat-error>\n          <mat-error *ngIf=\"hasError('firstName', 'maxlength')\">60'tan fazla karakteriniz var</mat-error>\n        </mat-form-field>\n\n        <mat-form-field appearance=\"outline\" class=\"w-100\" color=\"primary\">\n          <input matInput type=\"text\" placeholder=\"Last Name\" formControlName=\"lastName\" id=\"lastName\">\n          <mat-hint align=\"end\">60 karakterden uzun olmamalıdır.</mat-hint>\n          <mat-error *ngIf=\"hasError('lastName', 'required')\">Soyadı gerekli</mat-error>\n          <mat-error *ngIf=\"hasError('lastName', 'maxlength')\">60'tan fazla karakteriniz var</mat-error>\n        </mat-form-field>\n\n        <mat-form-field appearance=\"outline\" class=\"w-100\" color=\"primary\">\n          <input matInput type=\"text\" placeholder=\"Employee Number\" formControlName=\"employeeNumber\" id=\"employeeNumber\">\n          <mat-hint align=\"end\">60 karakterden uzun olmamalıdır.</mat-hint>\n          <mat-error *ngIf=\"hasError('employeeNumber', 'required')\">Çalışan Numarası gerekli</mat-error>\n          <mat-error *ngIf=\"hasError('employeeNumber', 'maxlength')\">60'tan fazla karakteriniz var</mat-error>\n        </mat-form-field>\n\n        <mat-form-field appearance=\"outline\" class=\"w-100\" color=\"primary\">\n          <input matInput type=\"text\" placeholder=\"Position\" formControlName=\"position\" id=\"position\">\n          <mat-hint align=\"end\">Not more than 60 characters long.</mat-hint>\n          <mat-error *ngIf=\"hasError('position', 'required')\">Position is required</mat-error>\n          <mat-error *ngIf=\"hasError('position', 'maxlength')\">You have more than 60 characters</mat-error>\n        </mat-form-field>\n\n        <mat-form-field appearance=\"outline\" class=\"w-100\" color=\"primary\">\n          <input matInput type=\"email\" placeholder=\"Email\" formControlName=\"email\" id=\"email\">\n          <mat-hint align=\"end\">Enter a valid email address.</mat-hint>\n          <mat-error *ngIf=\"hasError('email', 'required')\">Email is required</mat-error>\n          <mat-error *ngIf=\"hasError('email', 'email')\">Invalid Email Address</mat-error>\n        </mat-form-field>\n      </mat-card-content>\n      <mat-card-actions>\n        <button mat-flat-button color=\"primary\" class=\"w-100 action-button\" [disabled]=\"!employeeForm.valid\">Update</button>\n        <button type=\"button\" mat-flat-button color=\"warn\" class=\"w-100\" (click)=\"redirectToEmployeeList()\">Cancel</button>\n      </mat-card-actions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