2024-09-02 10:12:20 +02:00

1 line
72 KiB
JavaScript

"use strict";(self.webpackChunkstaffdb=self.webpackChunkstaffdb||[]).push([[140],{50140:(pt,x,r)=>{r.r(x),r.d(x,{EmployeeModule:()=>lt});var u=r(60177),c=r(89417),Y=r(18406),D=r(94753),B=r(38237),H=r(33514),X=r(37712),E=r(87283),U=r(94811),M=r(18498),e=r(54438),A=r(10467),m=r(44703),$=r(65343),v=r(81121),f=r(23462);class K extends f.M{constructor(){super(...arguments),this.typeName=m.Hv.EmployeeToAttribute}get entityId(){return this.employeeToAttributeId}set entityId(p){this.employeeToAttributeId=p}}class z extends f.M{constructor(){super(...arguments),this.typeName=m.Hv.EmployeeToDepartment}get entitytitle(){return'Zuweisung von Abteilung "'+this.departmentName+'" f\xfcr Mitarbeiter'}get entityId(){return this.employeeToDepartmentId}set entityId(p){this.employeeToDepartmentId=p}}var w=r(15113);class Z extends f.M{constructor(){super(...arguments),this.typeName=m.Hv.EmployeeToWebapp}get entitytitle(){return'Zuweisung von Webapp "'+this.webAppName+'" f\xfcr Mitarbeiter'}get arExtendedDepartmentIdList(){return(0,w.TR)(this,"extendedDepartmentIdList","_arExtendedDepartmentIdList")}set arExtendedDepartmentIdList(p){(0,w.le)(this,"extendedDepartmentIdList","_arExtendedDepartmentIdList",p)}get arAdditionalRoleIdList(){return(0,w.TR)(this,"additionalRoleIdList","_arAdditionalRoleIdList")}set arAdditionalRoleIdList(p){(0,w.le)(this,"additionalRoleIdList","_arAdditionalRoleIdList",p)}get entityId(){return this.employeeToWebAppId}set entityId(p){this.employeeToWebAppId=p}clear(){super.clear(),this._arExtendedDepartmentIdList=void 0,this._arAdditionalRoleIdList=void 0}assign(p){const n=this.entityId,o=this.extendedDepartmentIdList,t=this.additionalRoleIdList;this.clear();const l=Object.assign(this,p);return n<=0&&!this.isNew()&&(this.extendedDepartmentIdList=o,this.additionalRoleIdList=t),l}}var J=r(83722),Q=r(47094);class q extends f.M{constructor(){super(...arguments),this.typeName=m.Hv.WebAppToDepartment}get entityId(){return this.webAppToDepartmentId}set entityId(p){this.webAppToDepartmentId=p}}class ee extends Q.${}class te extends f.M{constructor(){super(...arguments),this.typeName=m.Hv.WebAppToWebAppAdditionalRole}get entityId(){return this.webAppToWebAppAdditionalRoleId}set entityId(p){this.webAppToWebAppAdditionalRoleId=p}}var ne=r(51631),h=r(99589),g=r(96995),ie=r(45197),N=r(37085);let b=(()=>{class i extends $.W{get appPageNoQueries(){return 1}constructor(n,o,t){super(),this.appDataService=n,this.repositoryService=o,this.uiNotificationsService=t,this.appPage=0,this.employeeList=new h.J(v.bJ,"Mitarbeiterliste",m.Hv.Employee),this.employeeFilter=new v.sI("EmployeeFullFilter"),this.employee2AllFilter=new v.P4("EmployeeFilter"),this.employee2DepartmentList=new h.J(z,"Abteilungen von Mitarbeiter",m.Hv.EmployeeToDepartment),this.employee2WebAppList=new h.J(Z,"Applikationen von Mitarbeiter",m.Hv.EmployeeToWebapp),this.employee2AttributeList=new h.J(K,"Merkmale von Mitarbeiter",m.Hv.EmployeeToAttribute),this.employeeList.alwaysFocused=!0,this.employeeList.focusedCallBack=this.focusCallBack.bind(this),this.employeeList.filter=this.employeeFilter,this.employeeDetails=this.employeeList.createFocusedShadowEntity(ne.T.EN_ViewMode),this.employeeDetails.loadedDataExpiresInMs=m.Js,this.activateRouting4EntityList(this.employeeList),this.baseEntityWrapperWaitLoading=this.employeeDetails,this.prepareDetailsList(this.employee2DepartmentList),this.prepareDetailsList(this.employee2WebAppList),this.employeeDetails.detailItems.register(this.employee2DepartmentList,null,"employeeId"),this.employeeDetails.detailItems.register(this.employee2WebAppList,null,"employeeId"),this.employeeDetails.detailItems.register(this.employee2AttributeList,null,"employeeId"),this.employee2WebAppList.batchInsert=!1,this.employee2WebAppList.beforeSaveCallBack=this.beforeSaveEmployee2WebAppList.bind(this),this.employee2WebAppList.afterInsertCallBack=this.afterInsertEmployee2WebAppList.bind(this),this.employee2AttributeList.filter=this.employee2AllFilter,this.loadBaseData(),this.init()}beforeSaveEmployee2WebAppList(n){var o=this;return(0,A.A)(function*(){return n.forEach(t=>{t.entityChanged&&!t.isNew()&&o.afterInsertEmployee2WebAppList(t,null,!1)}),o.employee2WebAppList.deletedItems.forEach(t=>{t.arExtendedDepartmentIdList=[],t.arAdditionalRoleIdList=[],o.afterInsertEmployee2WebAppList(t,null,!1)}),0})()}afterInsertEmployee2WebAppList(n,o,t=!0){if(n){const l=new ee("EmployeeToWebAppFilter");l.employeeToWebAppId=n.employeeToWebAppId;const a=new h.J(q,"Abteilungen f\xfcr Mitarbeiterapplikation",m.Hv.WebAppToDepartment,l,this.appLogsService,this.repositoryService,this.uiNotificationsService),s=new h.J(te,"Zusatzrole f\xfcr Mitarbeiterapplikation",m.Hv.WebAppToWebAppAdditionalRole,l,this.appLogsService,this.repositoryService,this.uiNotificationsService);this._saveEmployee2WebAppSublists(n,a,"arExtendedDepartmentIdList","departmentId",P=>{this._saveEmployee2WebAppSublists(n,s,"arAdditionalRoleIdList","webAppAdditionalRoleId",st=>{t&&(P||st)?n.load(this.repositoryService,o):o&&o()})})}}_saveEmployee2WebAppSublists(n,o,t,l,a){let s=!1;o.load(()=>{(s=o.match2array(n,"employeeToWebAppId",t,l))?o.save(()=>{a&&a(!0)},P=>{a&&a(!0)}):a&&a(!1)})}prepareDetailsList(n){n.createFocusedShadowEntity(),n.filter=this.employee2AllFilter,n.focusedEntityShadowed.dontLoadEntity=!0,n.focusedEntityShadowed.dontUpdateEntityDirectly=!0,n.focusedEntityShadowed.dontInsertEntityDirectly=!0}loadData(){super.loadData(),this.employeeList.load(null,null,()=>this.pageLoadingService.updatePageLoadedCounters(this.appPage))}loadBaseData(){super.loadBaseData(3,10),this.appDataService.loadData(()=>this.pageLoadingService.updatePageLoadedCounters(3))}focusCallBack(n){}clearData(){super.clearData(),this.employeeFilter.filterReset(),this.employeeList.clear()}onLoggedInOut(n){this.userChanged(new J.K(n)),super.onLoggedInOut(n)}userChanged(n){this.authService.isLoggedIn()&&(this.employeeDetails.canNew=n.isMaster,this.employeeDetails.canEdit=this.employeeDetails.canNew,this.employeeDetails.canDelete=this.employeeDetails.canNew)}static#e=this.\u0275fac=function(o){return new(o||i)(e.KVO(g.D),e.KVO(ie.U),e.KVO(N.u))};static#t=this.\u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var F=r(85296),S=r(62855),R=r(19057),y=r(20962),d=r(31837),j=r(67336),G=r(75445),T=r(62560),oe=r(89692),_=r(85956),I=r(99213),O=r(43684),C=r(21009),k=r(92);let ae=(()=>{class i{constructor(n,o,t,l,a,s){this.employeeDataService=n,this.appDataService=o,this.authService=t,this.localeService=l,this.clipboardService=a,this.notifierService=s,this.filterFetch=new e.bkB,this.dropDownAllCaption="core.dropdown-option.all",this.dropDownAllValueString="*",this.dropDownAllValueInt=0,this.allCaption="core.dropdown-option.all",this.allValue=0,this.noneCaption="core.dropdown-option.none",this.noneValue=-1}ngOnInit(){}ngAfterViewInit(){}onFilterClick(){this.employeeDetails.inViewMode&&this.filterFetch.emit()}onClearClick(){this.filterObject.filterReset(),this.filterObject.isActive=!0,this.onFilterClick()}onEmailClick(){this.employeeList.items.filter(l=>!!l.email).map(l=>l.entityId);const o=this.employeeList.items.sort((l,a)=>l.lastName.localeCompare(a.lastName)).map(l=>l.email).filter(l=>!!l);if(0===o.length)return;this.clipboardService.copy(o.join("; "));const t=o.length>1?"n":"";this.notifierService.showMessage(`${o.length} Emailadresse${t} wurde${t} in die Zwischenablage gespeichert`)}keyboardInput(n){return!(!G.N.LOGIN_IS_SHOWN&&!this.employeeDetails.keyDownListenerStopped&&n.ctrlKey&&n.which===j.F&&(n.stopPropagation(),this.onFilterClick(),1))}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(b),e.rXU(g.D),e.rXU(T.V),e.rXU(S.i),e.rXU(oe.WW),e.rXU(N.u))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-filter"]],hostBindings:function(o,t){1&o&&e.bIt("keydown",function(a){return t.keyboardInput(a)},!1,e.tSv)},inputs:{filterObject:"filterObject",employeeDetails:"employeeDetails",employeeList:"employeeList"},outputs:{filterFetch:"filterFetch"},decls:23,vars:20,consts:[[1,"card"],[1,"filterCardContainer"],["title","Suche in Nachnamen, Vornamen","placeholder","Vor- oder Nachname","suffix","---",1,"filterName",3,"ngModelChange","keyup.Enter","ngModel"],["placeholder","K\xfcrzel",1,"filterShortName",3,"ngModelChange","keyup.Enter","ngModel"],["placeholder","Login",1,"filterLogin",3,"ngModelChange","keyup.Enter","ngModel"],["id","filterDepartment","placeholder","Abteilung","keyExpr","entityId","displayExpr","departmentName","sortField","*","separator",",",1,"filterDepartment",3,"selectedItemsChange","dataSource","multiSelect","selectedItems"],["id","filterWebApp","placeholder","Webapp","keyExpr","entityId","displayExpr","webAppName","sortField","*","separator",",",1,"filterWebApp",3,"selectedItemsChange","dataSource","multiSelect","selectedItems"],["id","filterAttribute","placeholder","Merkmal","keyExpr","entityId","displayExpr","name","sortField","*","separator",",",1,"filterAttribute",3,"selectedItemsChange","dataSource","multiSelect","selectedItems"],["mask","separator.0","placeholder","MitarbeiterId",1,"filterEmployeeId",3,"ngModelChange","keyup.Enter","leadZero","decimalMarker","thousandSeparator","ngModel"],["id","filterMandant","placeholder","Mandant","keyExpr","clientId","displayExpr","subsidiaryCode","sortField","*","separator",",",1,"filterMandant",3,"selectedItemsChange","dataSource","multiSelect","selectedItems"],["name","Enabled","labelPosition","after",1,"filterIsActive",2,"float","left",3,"change","ngModelChange","ngModel"],[1,"filterButtons","mat-button-withoutcaption"],["id","filterBtnClear","mat-stroked-button","","type","button","title","Reset",1,"filterBtn",3,"click"],["id","filterBtnEmails","mat-stroked-button","","type","button","title","Emaildresse f\xfcr ausgew\xe4hlten Mitarbeiter in die Zwischenablage speichern",1,"filterBtn",3,"click"],["id","filterBtnFind","mat-stroked-button","","type","submit","titel","Suchen",1,"filterBtn",3,"click"]],template:function(o,t){1&o&&(e.j41(0,"mat-card",0),e.nrm(1,"mat-card-header"),e.j41(2,"mat-card-content",1)(3,"hensel-input",2),e.mxI("ngModelChange",function(a){return e.DH7(t.filterObject.name,a)||(t.filterObject.name=a),a}),e.bIt("keyup.Enter",function(){return t.onFilterClick()}),e.k0s(),e.j41(4,"hensel-input",3),e.mxI("ngModelChange",function(a){return e.DH7(t.filterObject.shortName,a)||(t.filterObject.shortName=a),a}),e.bIt("keyup.Enter",function(){return t.onFilterClick()}),e.k0s(),e.j41(5,"hensel-input",4),e.mxI("ngModelChange",function(a){return e.DH7(t.filterObject.loginName,a)||(t.filterObject.loginName=a),a}),e.bIt("keyup.Enter",function(){return t.onFilterClick()}),e.k0s(),e.j41(6,"hensel-selection",5),e.mxI("selectedItemsChange",function(a){return e.DH7(t.filterObject.departmentIds,a)||(t.filterObject.departmentIds=a),a}),e.bIt("selectedItemsChange",function(){return t.onFilterClick()}),e.k0s(),e.j41(7,"hensel-selection",6),e.mxI("selectedItemsChange",function(a){return e.DH7(t.filterObject.webappIds,a)||(t.filterObject.webappIds=a),a}),e.bIt("selectedItemsChange",function(){return t.onFilterClick()}),e.k0s(),e.j41(8,"hensel-selection",7),e.mxI("selectedItemsChange",function(a){return e.DH7(t.filterObject.attributeIds,a)||(t.filterObject.attributeIds=a),a}),e.bIt("selectedItemsChange",function(){return t.onFilterClick()}),e.k0s(),e.j41(9,"hensel-input",8),e.mxI("ngModelChange",function(a){return e.DH7(t.filterObject.employeeId,a)||(t.filterObject.employeeId=a),a}),e.bIt("keyup.Enter",function(){return t.onFilterClick()}),e.k0s(),e.j41(10,"hensel-selection",9),e.mxI("selectedItemsChange",function(a){return e.DH7(t.filterObject.clientId,a)||(t.filterObject.clientId=a),a}),e.bIt("selectedItemsChange",function(){return t.onFilterClick()}),e.k0s(),e.j41(11,"mat-checkbox",10),e.bIt("change",function(){return t.onFilterClick()}),e.mxI("ngModelChange",function(a){return e.DH7(t.filterObject.isActive,a)||(t.filterObject.isActive=a),a}),e.EFF(12," Aktiv "),e.k0s(),e.j41(13,"section",11)(14,"button",12),e.bIt("click",function(){return t.onClearClick()}),e.j41(15,"mat-icon"),e.EFF(16,"clear"),e.k0s()(),e.j41(17,"button",13),e.bIt("click",function(){return t.onEmailClick()}),e.j41(18,"mat-icon"),e.EFF(19,"alternate_email"),e.k0s()(),e.j41(20,"button",14),e.bIt("click",function(){return t.onFilterClick()}),e.j41(21,"mat-icon"),e.EFF(22,"search"),e.k0s()()()()()),2&o&&(e.R7$(3),e.R50("ngModel",t.filterObject.name),e.R7$(),e.R50("ngModel",t.filterObject.shortName),e.R7$(),e.R50("ngModel",t.filterObject.loginName),e.R7$(),e.Y8G("dataSource",t.appDataService.departmentList.items)("multiSelect",!0),e.R50("selectedItems",t.filterObject.departmentIds),e.R7$(),e.Y8G("dataSource",t.appDataService.webAppList.items)("multiSelect",!0),e.R50("selectedItems",t.filterObject.webappIds),e.R7$(),e.Y8G("dataSource",t.appDataService.employeeAttributeList.items)("multiSelect",!0),e.R50("selectedItems",t.filterObject.attributeIds),e.R7$(),e.Y8G("leadZero",!0)("decimalMarker",t.localeService.decimalSeparator)("thousandSeparator",""),e.R50("ngModel",t.filterObject.employeeId),e.R7$(),e.Y8G("dataSource",t.appDataService.subsidiaryList.items)("multiSelect",!1),e.R50("selectedItems",t.filterObject.clientId),e.R7$(),e.R50("ngModel",t.filterObject.isActive))},dependencies:[_.iV,I.An,y._m,y.XB,y.Rm,O.NZ,c.BC,c.vS,C.n,k.d],styles:['.filterCardContainer[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-column-gap:15px;grid-template-rows:repeat(1,auto);grid-template-columns:repeat(8,minmax(0,1fr)) auto auto;grid-template-areas:"filterName filterShortName filterLogin filterDepartment filterWebApp filterAttribute filterEmployeeId filterMandant filterIsActive filterButtons "}.filterIsActive[_ngcontent-%COMP%]{margin:auto;grid-area:filterIsActive}.filterMandant[_ngcontent-%COMP%]{grid-area:filterMandant}.filterName[_ngcontent-%COMP%]{grid-area:filterName}.filterShortName[_ngcontent-%COMP%]{grid-area:filterShortName}.filterLogin[_ngcontent-%COMP%]{grid-area:filterLogin}.filterWebApp[_ngcontent-%COMP%]{grid-area:filterWebApp}.filterDepartment[_ngcontent-%COMP%]{grid-area:filterDepartment}.filterEmployeeId[_ngcontent-%COMP%]{grid-area:filterEmployeeId}.filterAttribute[_ngcontent-%COMP%]{grid-area:filterAttribute}.filterButtons[_ngcontent-%COMP%]{grid-area:filterButtons;margin-left:auto}.card[_ngcontent-%COMP%]{padding:10px;margin:2px 2px 0}.filterButtons[_ngcontent-%COMP%] .filterBtn[_ngcontent-%COMP%]{width:unset}']})}return i})();const le=()=>({exportAll:"Excel Export"});function se(i,p){if(1&i&&e.nrm(0,"dxo-format",19),2&i){const n=e.XpG(3);e.Y8G("type",n.localeService.dateFormat)}}function pe(i,p){if(1&i&&e.nrm(0,"dxo-format",19),2&i){const n=e.XpG(3);e.Y8G("type",n.localeService.dateTimeFormat)}}function re(i,p){if(1&i&&e.nrm(0,"dxo-lookup",20),2&i){const n=e.XpG(3);e.Y8G("dataSource",null==n.appDataService.rangList?null:n.appDataService.rangList.items)}}function de(i,p){if(1&i&&(e.qex(0),e.j41(1,"dxi-column",16),e.DNE(2,se,1,1,"dxo-format",17)(3,pe,1,1,"dxo-format",17)(4,re,1,1,"dxo-lookup",18),e.k0s(),e.bVm()),2&i){const n=e.XpG().$implicit;e.R7$(),e.Y8G("allowHeaderFiltering",n.allowHeaderFiltering)("dataField",n.dataField)("dataType",n.dataType)("caption",n.caption)("width",n.width)("sortIndex",n.sortIndex)("sortOrder",n.sortOrder)("visibleIndex",n.visibleIndex)("visible",n.visible)("fixed",n.fixed)("headerCellTemplate",n.headerCellTemplate)("cellTemplate",n.cellTemplate)("alignment",n.alignment),e.R7$(),e.Y8G("ngIf","date"===n.dataType),e.R7$(),e.Y8G("ngIf","datetime"===n.dataType),e.R7$(),e.Y8G("ngIf","rangId"===n.dataField)}}function me(i,p){if(1&i&&(e.qex(0),e.DNE(1,de,5,16,"ng-container",15),e.bVm()),2&i){const n=p.$implicit;e.R7$(),e.Y8G("ngIf",n.visible)}}function ce(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.0-0",o.culture)," ")}}function ue(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.1-1",o.culture)," ")}}function ge(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.2-2",o.culture)," ")}}function ye(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.3-3",o.culture)," ")}}function he(i,p){1&i&&e.nrm(0,"div",21)}let be=(()=>{class i{constructor(n,o,t,l){this.employeeDataService=n,this.appDataService=o,this.localeService=t,this.globals=l,this.columnConfigList=new F.L}ngOnInit(){this.initColumns()}initColumns(){let n;this.appDataService.showIds&&(n=this.columnConfigList.addNumber("Id","entityId",7,0)),this.appDataService.showIds&&(n=this.columnConfigList.add("Nr","employeeNo",7)),n=this.columnConfigList.add("Nachname","lastName",25),n.sortIndex=1,n.sortOrder="asc",n=this.columnConfigList.add("Vorname","firstName",15),n.sortIndex=2,n.sortOrder="asc",n=this.columnConfigList.add("K\xfcrzel","shortName",7),n=this.columnConfigList.add("Position","position",25),n=this.columnConfigList.add("Login","loginName",15),n=this.columnConfigList.add("Email","email",30),n=this.columnConfigList.add("Rang","rangId",10),n=this.columnConfigList.add("Handynummer","mobilePhoneNo",20),n=this.columnConfigList.add("Festnetznummer","phoneNo",20),n=this.columnConfigList.add("Department","departmentNamesList",30),n=this.columnConfigList.add("Webapps","webappNamesList",25),n=this.columnConfigList.add("Merkmale","attributeNamesList",20),n=this.columnConfigList.add("Mandant","mandantCode",15),n=this.columnConfigList.addBoolean("Aktiv","isActive",-50),n.alignment="left",this.columnConfigList.recalcWidth()}loadData(){this.employeeDataService.loadData()}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(b),e.rXU(g.D),e.rXU(S.i),e.rXU(R.RV))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-list"]],inputs:{dataSource:"dataSource"},decls:21,vars:27,consts:[["gridEmployee",""],[1,"EmployeeList"],[1,"FilterComponent",3,"filterFetch","employeeDetails","employeeList","filterObject"],[1,"card"],["id","gridEmployee","keyExpr","employeeId","columnResizingMode","nextColumn","noDataText","Keine Daten vorhanden",3,"focusedRowIndexChange","focusedRowKeyChange","selectedRowKeysChange","onKeyDown","onFocusedRowChanging","onRowDblClick","onExporting","dataSource","focusedRowEnabled","autoNavigateToFocusedRow","focusedRowIndex","focusedRowKey","selectedRowKeys","showBorders","allowColumnResizing"],[3,"enabled","texts"],[3,"visible"],[3,"visible","applyFilter"],[3,"enabled"],["mode","virtual"],["mode","multiple"],["mode","none"],[4,"ngFor","ngForOf"],[4,"dxTemplate","dxTemplateOf"],["class","disableClicks",4,"ngIf"],[4,"ngIf"],[3,"allowHeaderFiltering","dataField","dataType","caption","width","sortIndex","sortOrder","visibleIndex","visible","fixed","headerCellTemplate","cellTemplate","alignment"],[3,"type",4,"ngIf"],["valueExpr","entityId","displayExpr","rangShortname",3,"dataSource",4,"ngIf"],[3,"type"],["valueExpr","entityId","displayExpr","rangShortname",3,"dataSource"],[1,"disableClicks"]],template:function(o,t){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"app-employee-filter",2),e.bIt("filterFetch",function(){return e.eBV(l),e.Njj(t.loadData())}),e.k0s(),e.j41(2,"mat-card",3),e.nrm(3,"mat-card-header"),e.j41(4,"mat-card-content")(5,"dx-data-grid",4,0),e.mxI("focusedRowIndexChange",function(s){return e.eBV(l),e.DH7(t.dataSource.focusedItemGridIndex,s)||(t.dataSource.focusedItemGridIndex=s),e.Njj(s)})("focusedRowKeyChange",function(s){return e.eBV(l),e.DH7(t.dataSource.focusedItemId,s)||(t.dataSource.focusedItemId=s),e.Njj(s)})("selectedRowKeysChange",function(s){return e.eBV(l),e.DH7(t.dataSource.selectedItemIds,s)||(t.dataSource.selectedItemIds=s),e.Njj(s)}),e.bIt("onKeyDown",function(s){return e.eBV(l),s.handled="Escape"===s.event.key,e.Njj(t.dataSource.gridUpDownProcessing(s))})("onFocusedRowChanging",function(s){return e.eBV(l),e.Njj(t.dataSource.onFocusedRowChanging(s))})("onRowDblClick",function(s){return e.eBV(l),e.Njj(t.dataSource.focusedEntityShadowed.delayedEdit(s.data.entityId))})("onExporting",function(s){return e.eBV(l),e.Njj(t.globals.doExcelExportSimple(s,t.dataSource.getExportFilename4List()))}),e.nrm(7,"dxo-export",5)(8,"dxo-header-filter",6)(9,"dxo-filter-row",7)(10,"dxo-paging",8)(11,"dxo-scrolling",9)(12,"dxo-load-panel",8)(13,"dxo-sorting",10)(14,"dxo-selection",11),e.DNE(15,me,2,1,"ng-container",12)(16,ce,3,5,"div",13)(17,ue,3,5,"div",13)(18,ge,3,5,"div",13)(19,ye,3,5,"div",13),e.k0s()()(),e.DNE(20,he,1,0,"div",14),e.k0s()}2&o&&(e.R7$(),e.Y8G("employeeDetails",t.employeeDataService.employeeDetails)("employeeList",t.employeeDataService.employeeList)("filterObject",t.dataSource.filter),e.R7$(4),e.HbH("gridEmployee"+(t.columnConfigList.withExport?" withexport":"")),e.Y8G("dataSource",t.dataSource.items)("focusedRowEnabled",!0)("autoNavigateToFocusedRow",!0),e.R50("focusedRowIndex",t.dataSource.focusedItemGridIndex)("focusedRowKey",t.dataSource.focusedItemId)("selectedRowKeys",t.dataSource.selectedItemIds),e.Y8G("showBorders",!0)("allowColumnResizing",!0),e.R7$(2),e.Y8G("enabled",t.columnConfigList.withExport)("texts",e.lJ4(26,le)),e.R7$(),e.Y8G("visible",!1),e.R7$(),e.Y8G("visible",!1)("applyFilter",!0),e.R7$(),e.Y8G("enabled",!1),e.R7$(2),e.Y8G("enabled",!0),e.R7$(3),e.Y8G("ngForOf",t.columnConfigList.columns),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_0"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_1"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_2"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_3"),e.R7$(),e.Y8G("ngIf",t.employeeDataService.employeeDetails.inNotViewMode))},dependencies:[u.Sq,u.bT,y._m,y.XB,y.Rm,D.s,d.hVU,d.nj_,d.gtJ,d.b4U,d.ABd,d.ZJU,d.FTx,d.xzc,d.PVd,d.eA9,d.Z6T,E.eC,ae,u.QX],styles:['.EmployeeList[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);grid-row-gap:7px;grid-template-areas:"filter" "grid"}.FilterComponent[_ngcontent-%COMP%]{grid-area:filter;margin:0}.card[_ngcontent-%COMP%]{grid-area:grid;width:100%;padding:0;margin:0;border-radius:0;box-shadow:none}.gridEmployee[_ngcontent-%COMP%]{position:absolute;height:100%;width:100%;padding-left:1px;padding-right:1px;padding-bottom:1px}']})}return i})();var fe=r(76461);const _e=["detailForm"];let Ie=(()=>{class i{constructor(n,o,t,l){this.appDataService=n,this.employeeDataService=o,this.authorizeService=t,this.globals=l}ngAfterViewInit(){this.employeeDetails.detailForm=this.detailForm}ngOnInit(){}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(g.D),e.rXU(b),e.rXU(T.V),e.rXU(R.RV))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-details-content"]],viewQuery:function(o,t){if(1&o&&e.GBs(_e,5),2&o){let l;e.mGM(l=e.lsd())&&(t.detailForm=l.first)}},inputs:{employeeDetails:"employeeDetails"},decls:17,vars:32,consts:[["detailForm","ngForm"],[1,"employeeDetailsContent"],["name","employeeNo","placeholder","Mitarbeiter Nr.","required","","autocomplete","off","maxlength","50",1,"input-employeeno",3,"ngModelChange","ngModel","disabled"],["name","salutation","placeholder","Anrede","maxlength","50",1,"input-salutation",3,"ngModelChange","ngModel","disabled"],["name","firstname","placeholder","Vorname","required","","maxlength","50",1,"input-firstname",3,"ngModelChange","ngModel","disabled"],["name","lastname","placeholder","Nachname","required","","maxlength","50",1,"input-lastname",3,"ngModelChange","ngModel","disabled"],["name","shortname","placeholder","K\xfcrzel","required","","maxlength","10",1,"input-shortname",3,"ngModelChange","ngModel","disabled"],["name","login","placeholder","Login","required","","maxlength","50",1,"input-loginname",3,"ngModelChange","ngModel","disabled"],["name","Email","placeholder","User Email","maxlength","50",1,"input-email",3,"ngModelChange","ngModel","disabled"],["name","Mandant","placeholder","Mandant","keyExpr","clientId","displayExpr","subsidiaryCode","sortField","*","required","",1,"input-mandant",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled"],["name","title","placeholder","Titel","maxlength","50",1,"input-title",3,"ngModelChange","ngModel","disabled"],["name","position","placeholder","Position","required","","maxlength","50",1,"input-position",3,"ngModelChange","ngModel","disabled"],["name","rang","placeholder","Rang","keyExpr","entityId","displayExpr","rangName","sortField","*","required","",1,"input-rang",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled"],["name","mobileno","placeholder","Handynummer","maxlength","30",1,"input-mobilephoneno",3,"ngModelChange","ngModel","disabled"],["name","phoneno","placeholder","Festnetznummer","maxlength","30",1,"input-phoneno",3,"ngModelChange","ngModel","disabled"],["name","Enabled","labelPosition","after",1,"input-isActive",2,"float","left",3,"ngModelChange","ngModel","disabled"]],template:function(o,t){if(1&o){const l=e.RV6();e.j41(0,"form",1,0)(2,"hensel-input",2),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.employeeNo,s)||(t.employeeDetails.entity.employeeNo=s),e.Njj(s)}),e.k0s(),e.j41(3,"hensel-input",3),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.salutation,s)||(t.employeeDetails.entity.salutation=s),e.Njj(s)}),e.k0s(),e.j41(4,"hensel-input",4),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.firstName,s)||(t.employeeDetails.entity.firstName=s),e.Njj(s)}),e.k0s(),e.j41(5,"hensel-input",5),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.lastName,s)||(t.employeeDetails.entity.lastName=s),e.Njj(s)}),e.k0s(),e.j41(6,"hensel-input",6),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.shortName,s)||(t.employeeDetails.entity.shortName=s),e.Njj(s)}),e.k0s(),e.j41(7,"hensel-input",7),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.loginName,s)||(t.employeeDetails.entity.loginName=s),e.Njj(s)}),e.k0s(),e.j41(8,"hensel-input",8),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.email,s)||(t.employeeDetails.entity.email=s),e.Njj(s)}),e.k0s(),e.j41(9,"hensel-selection",9),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.clientId,s)||(t.employeeDetails.entity.clientId=s),e.Njj(s)}),e.k0s(),e.j41(10,"hensel-input",10),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.title,s)||(t.employeeDetails.entity.title=s),e.Njj(s)}),e.k0s(),e.j41(11,"hensel-input",11),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.position,s)||(t.employeeDetails.entity.position=s),e.Njj(s)}),e.k0s(),e.j41(12,"hensel-selection",12),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.rangId,s)||(t.employeeDetails.entity.rangId=s),e.Njj(s)}),e.k0s(),e.j41(13,"hensel-input",13),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.mobilePhoneNo,s)||(t.employeeDetails.entity.mobilePhoneNo=s),e.Njj(s)}),e.k0s(),e.j41(14,"hensel-input",14),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.phoneNo,s)||(t.employeeDetails.entity.phoneNo=s),e.Njj(s)}),e.k0s(),e.j41(15,"mat-checkbox",15),e.mxI("ngModelChange",function(s){return e.eBV(l),e.DH7(t.employeeDetails.entity.isActive,s)||(t.employeeDetails.entity.isActive=s),e.Njj(s)}),e.EFF(16," Aktiv "),e.k0s()()}2&o&&(e.R7$(2),e.R50("ngModel",t.employeeDetails.entity.employeeNo),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.salutation),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.firstName),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.lastName),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.shortName),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.loginName),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.email),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.Y8G("dataSource",t.appDataService.subsidiaryList.items)("multiSelect",!1),e.R50("selectedItems",t.employeeDetails.entity.clientId),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.title),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.position),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.Y8G("dataSource",t.appDataService.rangList.items)("multiSelect",!1),e.R50("selectedItems",t.employeeDetails.entity.rangId),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.mobilePhoneNo),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.phoneNo),e.Y8G("disabled",!t.employeeDetails.inNewEditMode),e.R7$(),e.R50("ngModel",t.employeeDetails.entity.isActive),e.Y8G("disabled",!t.employeeDetails.inNewEditMode))},dependencies:[O.NZ,c.qT,c.BC,c.cb,c.YS,c.tU,c.vS,c.cV,C.n,k.d],styles:['.employeeDetailsContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-column-gap:8px;grid-template-columns:repeat(2,minmax(1px,1fr));grid-template-rows:repeat(7,42px);grid-template-areas:"input-employeeno input-title" "input-salutation input-position" "input-firstname input-rang" "input-lastname input-mobilephoneno" "input-shortname input-phoneno" "input-loginname input-mandant" "input-email input-isActive "}.input-isActive[_ngcontent-%COMP%]{margin-top:12px;grid-area:input-isActive}.input-mandant[_ngcontent-%COMP%]{grid-area:input-mandant}.input-employeeno[_ngcontent-%COMP%]{grid-area:input-employeeno}.input-firstname[_ngcontent-%COMP%]{grid-area:input-firstname}.input-lastname[_ngcontent-%COMP%]{grid-area:input-lastname}.input-shortname[_ngcontent-%COMP%]{grid-area:input-shortname}.input-loginname[_ngcontent-%COMP%]{grid-area:input-loginname}.input-salutation[_ngcontent-%COMP%]{grid-area:input-salutation}.input-title[_ngcontent-%COMP%]{grid-area:input-title}.input-position[_ngcontent-%COMP%]{grid-area:input-position}.input-rang[_ngcontent-%COMP%]{grid-area:input-rang}.input-email[_ngcontent-%COMP%]{grid-area:input-email}.input-mobilephoneno[_ngcontent-%COMP%]{grid-area:input-mobilephoneno}.input-phoneno[_ngcontent-%COMP%]{grid-area:input-phoneno}.check-box[_ngcontent-%COMP%]{margin-top:13px}.card[_ngcontent-%COMP%]{padding:12px;margin:2px}.abstand[_ngcontent-%COMP%]{margin-right:1px!important}']})}return i})(),Ce=(()=>{class i{constructor(n){this.appDataService=n}ngOnInit(){}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(g.D))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-attribute"]],inputs:{employeeDetails:"employeeDetails"},decls:4,vars:6,consts:[[1,"employee-attribute"],[1,"label"],["id","attributes","name","attributes","placeholder","Merkmal","keyExpr","entityId","displayTemplate","${name} (${shortname})","sortField","seqNo","separator",",",1,"attributes",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled","height","useResultGrid"]],template:function(o,t){1&o&&(e.j41(0,"div",0)(1,"label",1),e.EFF(2,"Merkmale"),e.k0s(),e.j41(3,"hensel-selection",2),e.mxI("selectedItemsChange",function(a){return e.DH7(t.employeeDetails.entity.arAttributeIdList,a)||(t.employeeDetails.entity.arAttributeIdList=a),a}),e.bIt("selectedItemsChange",function(){return t.employeeDetails.entityWasChanged=!0}),e.k0s()()),2&o&&(e.R7$(3),e.Y8G("dataSource",t.appDataService.employeeAttributeList.items)("multiSelect",!0),e.R50("selectedItems",t.employeeDetails.entity.arAttributeIdList),e.Y8G("disabled",!t.employeeDetails.inNotViewMode)("height","100%")("useResultGrid",!0))},dependencies:[C.n],styles:['.employee-attribute[_ngcontent-%COMP%]{width:100%;height:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(1px,1fr);grid-template-areas:"label" "attributes"}.attributes[_ngcontent-%COMP%]{grid-area:attributes;height:100%;width:calc(100% - 28px);margin-left:28px}.label[_ngcontent-%COMP%]{grid-area:label}']})}return i})();var V=r(70753),De=r(97910);class Ee extends f.M{constructor(){super(...arguments),this.typeName=m.Hv.WebAppAdditionalRole}get entityId(){return this.webAppAdditionalRoleId}set entityId(p){this.webAppAdditionalRoleId=p}}var L=r(74854);function we(i,p){if(1&i){const n=e.RV6();e.j41(0,"hensel-selection",18,6),e.mxI("selectedItemsChange",function(t){e.eBV(n);const l=e.XpG();return e.DH7(l.focusedItem.arAdditionalRoleIdList,t)||(l.focusedItem.arAdditionalRoleIdList=t),e.Njj(t)}),e.bIt("selectedItemsDisplayChange",function(t){e.eBV(n);const l=e.XpG();return e.Njj(l.focusedItem.additionalRoleNameList=t)}),e.k0s()}if(2&i){const n=e.XpG();e.Y8G("dataSource",n.additionalRoleList.items)("multiSelect",!0),e.R50("selectedItems",n.focusedItem.arAdditionalRoleIdList),e.Y8G("disabled",n.readOnly)("height","100%")("width",300)("useResultGrid",!0)("showSpinner",n.webAppRoleList.isLoading)}}let Se=(()=>{class i extends V.F{constructor(n,o){super(),this.appDataService=n,this.employeeService=o,this.webAppRoleList=new h.J(De.o,"Applikation Rolenliste",m.Hv.WebAppToWebAppRole),this.additionalRoleList=new h.J(Ee,"Applikation Rolenliste",m.Hv.WebAppAdditionalRole),this.departmentIdList=this.employeeService.employee2DepartmentList.items.map(t=>t.departmentId),this.getWebapps=t=>0!==this.focusedItem.entityId||!this.list.items.find(l=>l.webAppId===t.entityId)&&t.isActive,this.filterDepartments=t=>this.departmentIdList.indexOf(t.departmentId)>-1,this.save=()=>{this.focusedItem.webAppName=this.appDataService.webAppList?.getItemById(this.focusedItem.webAppId)?.webAppName,this.focusedItem.departmentName=this.appDataService.departmentList?.getItemById(this.focusedItem.departmentId)?.departmentName,this.focusedItem.webAppRoleName=this.appDataService.roleList?.getItemById(this.focusedItem.webAppRoleId)?.webAppRoleName,this.baseEntityWrapper.save(()=>this.close(!0))},this.webAppRoleList.filter=this.appDataService.webAppFilter,this.additionalRoleList.filter=this.appDataService.webAppFilter,this.loadRoles()}loadRoles(){this.focusedItem.webAppId?(this.appDataService.webAppFilter.webAppId=this.focusedItem.webAppId,this.webAppRoleList.load(),(this.focusedItem.isNew()||null!==this.focusedItem.additionalRoleIdList)&&this.additionalRoleList.load()):(this.webAppRoleList.clear(),this.additionalRoleList.clear())}get focusedItem(){return this._focusedItem}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(g.D),e.rXU(b))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-webapp-popupedit"]],features:[e.Vt3],decls:24,vars:26,consts:[["popupForm","ngForm"],["btnCancel",""],["input_webapp",""],["input_department",""],["input_role",""],["input_adddepartment",""],["input_addrole",""],[1,"PopupContainer"],["mat-dialog-title","",1,"messageBoxHeader"],[1,"PopupContent"],[1,"buttons"],["id","btnSave","name","btnSave","mat-stroked-button","",1,"btnSave",3,"click","disabled"],["id","btnCancel","name","btnCancel","mat-stroked-button","",1,"btnCancel",3,"click"],["id","input-webapp","placeholder","Webapp","keyExpr","entityId","displayExpr","webAppName","sortField","*","separator",",","required","",1,"input-webapp",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled","customFilterFn"],["id","input-department","placeholder","Abteilung","keyExpr","entityId","displayExpr","departmentName","sortField","*","separator",",","required","",1,"input-department",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","customFilterFn","disabled"],["id","input-role","placeholder","Role","keyExpr","webAppRoleId","displayExpr","webAppRoleName","sortField","webAppRoleHierarchy","separator",",","required","",1,"input-role",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled","showSpinner"],["id","input-adddepartment","placeholder","Zusatzabteilungen","keyExpr","entityId","displayExpr","departmentName","sortField","*","separator",",",1,"input-adddepartment",3,"selectedItemsChange","selectedItemsDisplayChange","dataSource","multiSelect","customFilterFn","selectedItems","disabled","height","useResultGrid"],["id","input-addrole","class","input-addrole","placeholder","Zusatzrole","keyExpr","entityId","displayExpr","webAppAdditionalRoleName","sortField","*","separator",",",3,"dataSource","multiSelect","selectedItems","disabled","height","width","useResultGrid","showSpinner","selectedItemsChange","selectedItemsDisplayChange",4,"ngIf"],["id","input-addrole","placeholder","Zusatzrole","keyExpr","entityId","displayExpr","webAppAdditionalRoleName","sortField","*","separator",",",1,"input-addrole",3,"selectedItemsChange","selectedItemsDisplayChange","dataSource","multiSelect","selectedItems","disabled","height","width","useResultGrid","showSpinner"]],template:function(o,t){if(1&o){const l=e.RV6();e.j41(0,"form",7,0)(2,"h2",8),e.EFF(3),e.k0s(),e.j41(4,"mat-dialog-content",9)(5,"div",10)(6,"button",11),e.bIt("click",function(){return e.eBV(l),e.Njj(t.save())}),e.j41(7,"mat-icon"),e.EFF(8,"save"),e.k0s(),e.EFF(9," \xdcbernehmen "),e.k0s(),e.j41(10,"button",12,1),e.bIt("click",function(){return e.eBV(l),e.Njj(t.cancel())}),e.j41(12,"mat-icon"),e.EFF(13,"cancel"),e.k0s(),e.EFF(14," Abbrechen "),e.k0s()(),e.j41(15,"hensel-selection",13,2),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.focusedItem.webAppId,s)||(t.focusedItem.webAppId=s),e.Njj(s)}),e.bIt("selectedItemsChange",function(){return e.eBV(l),e.Njj(t.loadRoles())}),e.k0s(),e.j41(17,"hensel-selection",14,3),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.focusedItem.departmentId,s)||(t.focusedItem.departmentId=s),e.Njj(s)}),e.k0s(),e.j41(19,"hensel-selection",15,4),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.focusedItem.webAppRoleId,s)||(t.focusedItem.webAppRoleId=s),e.Njj(s)}),e.k0s(),e.j41(21,"hensel-selection",16,5),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.focusedItem.arExtendedDepartmentIdList,s)||(t.focusedItem.arExtendedDepartmentIdList=s),e.Njj(s)}),e.bIt("selectedItemsDisplayChange",function(s){return e.eBV(l),e.Njj(t.focusedItem.extendedDepartmentNameList=s)}),e.k0s(),e.DNE(23,we,2,8,"hensel-selection",17),e.k0s()()}2&o&&(e.R7$(3),e.Lme("",t.description," - ",t.keyItemName," "),e.R7$(3),e.Y8G("disabled",!t.baseEntityWrapper.enabledSaveButton()||t.readOnly),e.R7$(9),e.Y8G("dataSource",t.appDataService.webAppList.items)("multiSelect",!1),e.R50("selectedItems",t.focusedItem.webAppId),e.Y8G("disabled",t.readOnly||0!==(null==t.focusedItem?null:t.focusedItem.entityId))("customFilterFn",t.getWebapps),e.R7$(2),e.Y8G("dataSource",t.appDataService.departmentList.items)("multiSelect",!1),e.R50("selectedItems",t.focusedItem.departmentId),e.Y8G("customFilterFn",t.filterDepartments)("disabled",t.readOnly),e.R7$(2),e.Y8G("dataSource",t.webAppRoleList.items)("multiSelect",!1),e.R50("selectedItems",t.focusedItem.webAppRoleId),e.Y8G("disabled",t.readOnly)("showSpinner",t.webAppRoleList.isLoading),e.R7$(2),e.Y8G("dataSource",t.appDataService.departmentList.items)("multiSelect",!0)("customFilterFn",t.filterDepartments),e.R50("selectedItems",t.focusedItem.arExtendedDepartmentIdList),e.Y8G("disabled",t.readOnly)("height","100%")("useResultGrid",!0),e.R7$(2),e.Y8G("ngIf",!t.focusedItem.isNew()&&null!==t.focusedItem.additionalRoleIdList||t.focusedItem.isNew()&&t.additionalRoleList.items.length>0))},dependencies:[u.bT,_.iV,I.An,L.KI,L.PQ,c.qT,c.cb,c.cV,C.n],styles:['.buttonLayoutCancel[_ngcontent-%COMP%]{font-size:16px;cursor:pointer;text-align:center;margin-left:auto;float:right}.HeaderInfo[_ngcontent-%COMP%]{font-size:16px;margin-left:-5px}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-column-gap:15px;grid-template-areas:"field1 field2" "buttons buttons"}.buttons[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-column-gap:30px;grid-template-areas:"empty1 btnsave btncancel empty2"}.btnSave[_ngcontent-%COMP%]{margin-top:10px;grid-area:btnsave}.btnCancel[_ngcontent-%COMP%]{margin-top:10px;grid-area:btncancel}.field1[_ngcontent-%COMP%]{grid-area:field1}.field2[_ngcontent-%COMP%]{grid-area:field2}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:repeat(3,42px) auto;grid-template-columns:repeat(2,minmax(1px,300px)) auto;grid-column-gap:15px;grid-row-gap:15px;grid-template-areas:"input-webapp input-adddepartment input-addrole" "input-department input-adddepartment input-addrole" "input-role input-adddepartment input-addrole" "buttons buttons buttons"}.input-department[_ngcontent-%COMP%]{grid-area:input-department}.input-adddepartment[_ngcontent-%COMP%]{grid-area:input-adddepartment}.input-addrole[_ngcontent-%COMP%]{grid-area:input-addrole}.input-webapp[_ngcontent-%COMP%]{grid-area:input-webapp}.input-role[_ngcontent-%COMP%]{grid-area:input-role}']})}return i})();var W=r(89097);const Re=()=>({exportAll:"Excel Export"});function Le(i,p){if(1&i&&e.nrm(0,"dxo-format",20),2&i){const n=e.XpG(3);e.Y8G("type",n.localeService.dateFormat)}}function ve(i,p){if(1&i&&e.nrm(0,"dxo-format",20),2&i){const n=e.XpG(3);e.Y8G("type",n.localeService.dateTimeFormat)}}function Fe(i,p){if(1&i&&(e.qex(0),e.j41(1,"dxi-column",18),e.DNE(2,Le,1,1,"dxo-format",19)(3,ve,1,1,"dxo-format",19),e.k0s(),e.bVm()),2&i){const n=e.XpG().$implicit;e.R7$(),e.Y8G("allowHeaderFiltering",n.allowHeaderFiltering)("dataField",n.dataField)("dataType",n.dataType)("caption",n.caption)("width",n.width)("sortIndex",n.sortIndex)("sortOrder",n.sortOrder)("visibleIndex",n.visibleIndex)("visible",n.visible)("fixed",n.fixed)("headerCellTemplate",n.headerCellTemplate)("cellTemplate",n.cellTemplate)("allowSorting",n.allowSorting)("calculateCellValue",n.calculateCellValue)("calculateDisplayValue",n.calculateDisplayValue)("calculateGroupValue",n.calculateGroupValue)("calculateSortValue",n.calculateSortValue)("alignment",n.alignment),e.R7$(),e.Y8G("ngIf","date"==n.dataType),e.R7$(),e.Y8G("ngIf","datetime"==n.dataType)}}function Te(i,p){if(1&i&&(e.qex(0),e.DNE(1,Fe,4,20,"ng-container",17),e.bVm()),2&i){const n=p.$implicit;e.R7$(),e.Y8G("ngIf",n.visible)}}function ke(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.0-0",o.culture)," ")}}function xe(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.1-1",o.culture)," ")}}function Me(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.2-2",o.culture)," ")}}function Ae(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.3-3",o.culture)," ")}}let Ne=(()=>{class i{get employeeWebappList(){return this.employeeDataService.employee2WebAppList}constructor(n,o,t,l,a){this.dialog=n,this.employeeDataService=o,this.appDataService=t,this.localeService=l,this.globals=a,this.columnConfigList=new F.L,this.editItem=()=>{this.employeeWebappList.focusedEntityShadowed.edit(),this.openPopupDialog(this.employeeWebappList.focusedEntityShadowed)}}ngOnInit(){this.initColumns()}initColumns(){let n;this.appDataService.showIds&&(n=this.columnConfigList.addNumber("Id","entityId",7,0)),n=this.columnConfigList.add("Webapp","webAppName",15),n.sortIndex=1,n.sortOrder="asc",n=this.columnConfigList.add("Abteilung","departmentName",20),n=this.columnConfigList.add("Role","webAppRoleName",15),n=this.columnConfigList.add("Zusatzabteilungen","extendedDepartmentNameList",30),n=this.columnConfigList.add("Zusatzrolen","additionalRoleNameList",30),this.columnConfigList.recalcWidth()}addItem(){if(this.employeeWebappList.focusedEntityShadowed.new(),this.employeeWebappList.focusedEntityShadowed.entity.employeeId=this.employeeDetails.entityId,this.employeeDataService.employee2DepartmentList.items.length>0){let n=0;const o=[];let t="";this.employeeDataService.employee2DepartmentList.items.forEach(l=>{if(l.employeeStatusId===m.bF.MainFunction)0===n&&(n=l.departmentId);else{o.push(l.departmentId);const a=this.appDataService.departmentList?.items.find(s=>s.entityId===l.departmentId)?.departmentName;t+=a?a+", ":""}}),n>0&&(this.employeeWebappList.focusedEntityShadowed.entity.departmentId=n),this.employeeWebappList.focusedEntityShadowed.entity.arExtendedDepartmentIdList=o,this.employeeWebappList.focusedEntityShadowed.entity.extendedDepartmentNameList=t.slice(0,-2)}this.openPopupDialog(this.employeeWebappList.focusedEntityShadowed)}dblClick(n){this.employeeDetails.entityIsLoading||this.employeeWebappList.focusedEntityShadowed.delayedEdit(n.data.entityId,this.editItem)}openPopupDialog(n){this.employeeDetails.keyDownListenerStopped=!0,this.dialog.openDialog(Se,{baseEntityWrapper:n,keyItemName:this.employeeDetails.entity.firstName+" "+this.employeeDetails.entity.lastName,readOnly:!this.employeeDetails.inNotViewMode||!this.employeeDetails.entity.isActive,description:0===n.entity.entityId?"Neue Webbapp zuweisen":'Daten zur Webbapp "'+n.entity.webAppName+'" bearbeiten ',list:this.employeeWebappList},!0,()=>this.employeeDetails.keyDownListenerStopped=!1)}onKeyDown(n){return n.which!==j.Fm}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(W.w),e.rXU(b),e.rXU(g.D),e.rXU(S.i),e.rXU(R.RV))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-webapp"]],hostBindings:function(o,t){1&o&&e.bIt("keydown",function(a){return t.onKeyDown(a)})},inputs:{employeeDetails:"employeeDetails"},decls:28,vars:25,consts:[[1,"employee-webapp"],[1,"label"],[1,"toolbar"],[1,"toolbar-button-row"],[1,"toolbar-flex-container"],["mat-icon-button","","title","Hinzuf\xfcgen",3,"click","disabled"],["mat-icon-button","","title","Bearbeiten",3,"click","disabled"],["mat-icon-button","","title","L\xf6schen",1,"toolbar-button-last",3,"click","disabled"],["name","webappGrid","keyExpr","entityId","columnResizingMode","widget","noDataText","Keine Daten sind vorhanden",3,"focusedRowIndexChange","focusedRowKeyChange","selectedRowKeysChange","onRowDblClick","onKeyDown","onExporting","dataSource","focusedRowIndex","focusedRowEnabled","autoNavigateToFocusedRow","focusedRowKey","selectedRowKeys","showBorders","allowColumnResizing","renderAsync"],[3,"enabled","texts"],[3,"visible"],[3,"enabled"],["mode","virtual"],["mode","multiple"],["mode","none"],[4,"ngFor","ngForOf"],[4,"dxTemplate","dxTemplateOf"],[4,"ngIf"],[3,"allowHeaderFiltering","dataField","dataType","caption","width","sortIndex","sortOrder","visibleIndex","visible","fixed","headerCellTemplate","cellTemplate","allowSorting","calculateCellValue","calculateDisplayValue","calculateGroupValue","calculateSortValue","alignment"],[3,"type",4,"ngIf"],[3,"type"]],template:function(o,t){1&o&&(e.j41(0,"div",0)(1,"label",1),e.EFF(2,"Webapp Liste"),e.k0s(),e.j41(3,"section",2)(4,"div",3)(5,"div",4)(6,"button",5),e.bIt("click",function(){return t.addItem()}),e.j41(7,"mat-icon"),e.EFF(8,"add"),e.k0s()(),e.j41(9,"button",6),e.bIt("click",function(){return t.editItem()}),e.j41(10,"mat-icon"),e.EFF(11,"edit"),e.k0s()(),e.j41(12,"button",7),e.bIt("click",function(){return t.employeeWebappList.focusedEntityShadowed.delete()}),e.j41(13,"mat-icon"),e.EFF(14,"delete"),e.k0s()()()()(),e.j41(15,"dx-data-grid",8),e.mxI("focusedRowIndexChange",function(a){return e.DH7(t.employeeWebappList.focusedItemGridIndex,a)||(t.employeeWebappList.focusedItemGridIndex=a),a})("focusedRowKeyChange",function(a){return e.DH7(t.employeeWebappList.focusedItemId,a)||(t.employeeWebappList.focusedItemId=a),a})("selectedRowKeysChange",function(a){return e.DH7(t.employeeWebappList.selectedItemIds,a)||(t.employeeWebappList.selectedItemIds=a),a}),e.bIt("onRowDblClick",function(a){return t.dblClick(a)})("onKeyDown",function(a){return a.handled="Escape"===a.event.key,t.employeeWebappList.gridUpDownProcessing(a)})("onExporting",function(a){return t.globals.doExcelExportSimple(a,t.employeeWebappList.getExportFilename4List())}),e.nrm(16,"dxo-export",9)(17,"dxo-filter-row",10)(18,"dxo-paging",11)(19,"dxo-scrolling",12)(20,"dxo-load-panel",11)(21,"dxo-sorting",13)(22,"dxo-selection",14),e.DNE(23,Te,2,1,"ng-container",15)(24,ke,3,5,"div",16)(25,xe,3,5,"div",16)(26,Me,3,5,"div",16)(27,Ae,3,5,"div",16),e.k0s()()),2&o&&(e.R7$(6),e.Y8G("disabled",!t.employeeDetails.entity.isActive||!t.employeeDetails.inNotViewMode||!t.employeeWebappList.focusedEntityShadowed.enabledNewButton()),e.R7$(3),e.Y8G("disabled",!(t.employeeDetails.entity.isActive&&t.employeeDetails.inNotViewMode&&t.employeeWebappList.focusedItem&&t.employeeWebappList.focusedEntityShadowed.enabledEditButton())),e.R7$(3),e.Y8G("disabled",!(t.employeeDetails.entity.isActive&&t.employeeDetails.inNotViewMode&&t.employeeWebappList.focusedItem&&t.employeeWebappList.focusedEntityShadowed.enabledDeleteButton())),e.R7$(3),e.HbH("grid"+(t.columnConfigList.withExport?" withexport":"")),e.Y8G("dataSource",t.employeeWebappList.items),e.R50("focusedRowIndex",t.employeeWebappList.focusedItemGridIndex),e.Y8G("focusedRowEnabled",!0)("autoNavigateToFocusedRow",!0),e.R50("focusedRowKey",t.employeeWebappList.focusedItemId)("selectedRowKeys",t.employeeWebappList.selectedItemIds),e.Y8G("showBorders",!0)("allowColumnResizing",!0)("renderAsync",!0),e.R7$(),e.Y8G("enabled",t.columnConfigList.withExport)("texts",e.lJ4(24,Re)),e.R7$(),e.Y8G("visible",!0),e.R7$(),e.Y8G("enabled",!1),e.R7$(2),e.Y8G("enabled",!0),e.R7$(3),e.Y8G("ngForOf",t.columnConfigList.columns),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_0"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_1"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_2"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_3"))},dependencies:[u.Sq,u.bT,_.iV,I.An,D.s,d.hVU,d.nj_,d.ABd,d.ZJU,d.FTx,d.xzc,d.PVd,d.eA9,d.Z6T,E.eC,u.QX],styles:['.employee-webapp[_ngcontent-%COMP%]{width:100%;height:100%;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(1px,1fr);grid-template-areas:"label label" "toolbar grid"}.grid[_ngcontent-%COMP%]{grid-area:grid;height:100%;width:100%}.label[_ngcontent-%COMP%]{grid-area:label}.toolbar[_ngcontent-%COMP%]{grid-area:toolbar}']})}return i})(),je=(()=>{class i extends V.F{constructor(n){super(),this.appDataService=n,this.getNotUsedDepartments=o=>!this.list.items.find(t=>t.departmentId===o.entityId)}get focusedItem(){return this._focusedItem}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(g.D))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-department-popupedit"]],features:[e.Vt3],decls:21,vars:16,consts:[["popupForm","ngForm"],["btnCancel",""],["input_department",""],["input_emplstatus",""],["input_rang",""],[1,"PopupContainer"],["mat-dialog-title","",1,"messageBoxHeader"],[1,"PopupContent"],[1,"buttons"],["id","btnSave","name","btnSave","mat-stroked-button","",1,"btnSave",3,"click","disabled"],["id","btnCancel","name","btnCancel","mat-stroked-button","",1,"btnCancel",3,"click"],["id","input-department","placeholder","Abteilung","keyExpr","entityId","displayExpr","departmentName","sortField","*","separator",",","required","",1,"input-department",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled","customFilterFn"],["id","input-emplstatus","placeholder","Status","keyExpr","entityId","displayExpr","employeeStatusName","sortField","*","separator",",","required","",1,"input-emplstatus",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled"],["id","input-rang","placeholder","Rang","keyExpr","entityId","displayExpr","rangName","sortField","rangOrder","separator",",","required","",1,"input-rang",3,"selectedItemsChange","dataSource","multiSelect","selectedItems","disabled"]],template:function(o,t){if(1&o){const l=e.RV6();e.j41(0,"form",5,0)(2,"h2",6),e.EFF(3),e.k0s(),e.j41(4,"mat-dialog-content",7)(5,"div",8)(6,"button",9),e.bIt("click",function(){return e.eBV(l),e.Njj(t.save())}),e.j41(7,"mat-icon"),e.EFF(8,"save"),e.k0s(),e.EFF(9," \xdcbernehmen "),e.k0s(),e.j41(10,"button",10,1),e.bIt("click",function(){return e.eBV(l),e.Njj(t.cancel())}),e.j41(12,"mat-icon"),e.EFF(13,"cancel"),e.k0s(),e.EFF(14," Abbrechen "),e.k0s()(),e.j41(15,"hensel-selection",11,2),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.focusedItem.departmentId,s)||(t.focusedItem.departmentId=s),e.Njj(s)}),e.k0s(),e.j41(17,"hensel-selection",12,3),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.focusedItem.employeeStatusId,s)||(t.focusedItem.employeeStatusId=s),e.Njj(s)}),e.k0s(),e.j41(19,"hensel-selection",13,4),e.mxI("selectedItemsChange",function(s){return e.eBV(l),e.DH7(t.focusedItem.rangId,s)||(t.focusedItem.rangId=s),e.Njj(s)}),e.k0s()()()}2&o&&(e.R7$(3),e.Lme("",t.description," - ",t.keyItemName," "),e.R7$(3),e.Y8G("disabled",!t.baseEntityWrapper.enabledSaveButton()||t.readOnly),e.R7$(9),e.Y8G("dataSource",t.appDataService.departmentList.items)("multiSelect",!1),e.R50("selectedItems",t.focusedItem.departmentId),e.Y8G("disabled",t.readOnly||0!==t.focusedItem.entityId)("customFilterFn",0===t.focusedItem.entityId?t.getNotUsedDepartments:""),e.R7$(2),e.Y8G("dataSource",t.appDataService.employeeStatusList.items)("multiSelect",!1),e.R50("selectedItems",t.focusedItem.employeeStatusId),e.Y8G("disabled",t.readOnly),e.R7$(2),e.Y8G("dataSource",t.appDataService.rangList.items)("multiSelect",!1),e.R50("selectedItems",t.focusedItem.rangId),e.Y8G("disabled",t.readOnly))},dependencies:[_.iV,I.An,L.KI,L.PQ,c.qT,c.cb,c.cV,C.n],styles:['.buttonLayoutCancel[_ngcontent-%COMP%]{font-size:16px;cursor:pointer;text-align:center;margin-left:auto;float:right}.HeaderInfo[_ngcontent-%COMP%]{font-size:16px;margin-left:-5px}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-column-gap:15px;grid-template-areas:"field1 field2" "buttons buttons"}.buttons[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-column-gap:30px;grid-template-areas:"empty1 btnsave btncancel empty2"}.btnSave[_ngcontent-%COMP%]{margin-top:10px;grid-area:btnsave}.btnCancel[_ngcontent-%COMP%]{margin-top:10px;grid-area:btncancel}.field1[_ngcontent-%COMP%]{grid-area:field1}.field2[_ngcontent-%COMP%]{grid-area:field2}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto;grid-template-columns:repeat(3,minmax(0,1fr));grid-column-gap:15px;grid-row-gap:15px;grid-template-areas:"input-department input-emplstatus input-rang" "buttons buttons buttons"}.input-department[_ngcontent-%COMP%]{grid-area:input-department}.input-emplstatus[_ngcontent-%COMP%]{grid-area:input-emplstatus}.input-rang[_ngcontent-%COMP%]{grid-area:input-rang}']})}return i})();const Ge=()=>({exportAll:"Excel Export"});function Oe(i,p){if(1&i&&e.nrm(0,"dxo-format",24),2&i){const n=e.XpG(3);e.Y8G("type",n.localeService.dateFormat)}}function Ve(i,p){if(1&i&&e.nrm(0,"dxo-format",24),2&i){const n=e.XpG(3);e.Y8G("type",n.localeService.dateTimeFormat)}}function We(i,p){if(1&i&&e.nrm(0,"dxo-lookup",25),2&i){const n=e.XpG(3);e.Y8G("dataSource",null==n.appDataService.departmentList?null:n.appDataService.departmentList.items)}}function Pe(i,p){if(1&i&&e.nrm(0,"dxo-lookup",26),2&i){const n=e.XpG(3);e.Y8G("dataSource",null==n.appDataService.employeeStatusList?null:n.appDataService.employeeStatusList.items)}}function Ye(i,p){if(1&i&&e.nrm(0,"dxo-lookup",27),2&i){const n=e.XpG(3);e.Y8G("dataSource",null==n.appDataService.rangList?null:n.appDataService.rangList.items)}}function Be(i,p){if(1&i&&(e.qex(0),e.j41(1,"dxi-column",19),e.DNE(2,Oe,1,1,"dxo-format",20)(3,Ve,1,1,"dxo-format",20)(4,We,1,1,"dxo-lookup",21)(5,Pe,1,1,"dxo-lookup",22)(6,Ye,1,1,"dxo-lookup",23),e.k0s(),e.bVm()),2&i){const n=e.XpG().$implicit;e.R7$(),e.Y8G("allowHeaderFiltering",n.allowHeaderFiltering)("dataField",n.dataField)("dataType",n.dataType)("caption",n.caption)("width",n.width)("sortIndex",n.sortIndex)("sortOrder",n.sortOrder)("visibleIndex",n.visibleIndex)("visible",n.visible)("fixed",n.fixed)("headerCellTemplate",n.headerCellTemplate)("cellTemplate",n.cellTemplate)("allowSorting",n.allowSorting)("calculateCellValue",n.calculateCellValue)("calculateDisplayValue",n.calculateDisplayValue)("calculateGroupValue",n.calculateGroupValue)("calculateSortValue",n.calculateSortValue)("alignment",n.alignment),e.R7$(),e.Y8G("ngIf","date"==n.dataType),e.R7$(),e.Y8G("ngIf","datetime"==n.dataType),e.R7$(),e.Y8G("ngIf","departmentId"===n.dataField),e.R7$(),e.Y8G("ngIf","employeeStatusId"===n.dataField),e.R7$(),e.Y8G("ngIf","rangId"===n.dataField)}}function He(i,p){if(1&i&&(e.qex(0),e.DNE(1,Be,7,23,"ng-container",18),e.bVm()),2&i){const n=p.$implicit;e.R7$(),e.Y8G("ngIf",n.visible)}}function Xe(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.0-0",o.culture)," ")}}function Ue(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.1-1",o.culture)," ")}}function $e(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.2-2",o.culture)," ")}}function Ke(i,p){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&i){const n=p.$implicit,o=e.XpG();e.R7$(),e.SpI(" ",e.brH(2,1,n.value,"1.3-3",o.culture)," ")}}let ze=(()=>{class i{constructor(n,o,t,l,a){this.dialog=n,this.appDataService=o,this.employeeDataService=t,this.localeService=l,this.globals=a,this.columnConfigList=new F.L,this.editItem=()=>{this.emplDepDetails.edit(),this.openPopupDialog(this.emplDepDetails)}}get emplDepDetails(){return this.employeeDepartmentList.focusedEntityShadowed}ngOnInit(){this.initColumns()}initColumns(){let n;this.appDataService.showIds&&(n=this.columnConfigList.addNumber("Id","entityId",7,0)),n=this.columnConfigList.add("Name","departmentId",25),n=this.columnConfigList.add("Status","employeeStatusId",20),n.sortIndex=1,n.sortOrder="asc",n=this.columnConfigList.add("Rang","rangId",10),this.columnConfigList.recalcWidth()}addItem(){this.emplDepDetails.new(),this.emplDepDetails.entity.employeeId=this.employeeDetails.entityId;const n=this.employeeDepartmentList.items.find(o=>o.employeeStatusId===m.bF.MainFunction)?m.bF.AdditionalFunction:m.bF.MainFunction;this.emplDepDetails.entity.employeeStatusId=n,this.emplDepDetails.entity.rangId=m.tm.Mitarbeiter,this.openPopupDialog(this.emplDepDetails)}dblClick(n){this.employeeDetails.entityIsLoading||this.employeeDepartmentList.focusedEntityShadowed.delayedEdit(n.data.entityId,this.editItem)}openPopupDialog(n){this.employeeDetails.keyDownListenerStopped=!0,this.dialog.openDialog(je,{baseEntityWrapper:n,keyItemName:this.employeeDetails.entity.firstName+" "+this.employeeDetails.entity.lastName,readOnly:!this.employeeDetails.inNotViewMode,description:0===n.entity.entityId?"Neue Abteilung zuweisen":'Daten zur Abteilung "'+n.entity.departmentName+'" bearbeiten ',list:this.employeeDepartmentList},!0,()=>this.employeeDetails.keyDownListenerStopped=!1)}deleteDepartment(){let n="";this.employeeDataService.employee2WebAppList.items.forEach(t=>n+=","+t.departmentId+","+t.arExtendedDepartmentIdList),n.split(",").indexOf(""+this.emplDepDetails.entity.departmentId)>-1?this.emplDepDetails.warningMessageBox(`L\xf6schen von Abteilung <${this.emplDepDetails.entity.departmentName}>`,"Die Abteilung kann nicht gel\xf6scht werden, weil sie zu einer Webapplikation zugewiesen ist"):this.emplDepDetails.delete()}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(W.w),e.rXU(g.D),e.rXU(b),e.rXU(S.i),e.rXU(R.RV))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-department"]],inputs:{employeeDepartmentList:"employeeDepartmentList",employeeDetails:"employeeDetails"},decls:30,vars:27,consts:[[1,"employee-department"],[1,"label"],[1,"toolbar"],[1,"toolbar-button-row"],[1,"toolbar-flex-container"],["mat-icon-button","","title","Hinzuf\xfcgen",3,"click","disabled"],["mat-icon-button","","title","Bearbeiten",3,"click","disabled"],["mat-icon-button","","title","L\xf6schen",1,"toolbar-button-last",3,"click","disabled"],["name","departmentGrid","keyExpr","entityId","columnResizingMode","widget","noDataText","Keine Daten sind vorhanden",3,"focusedRowIndexChange","focusedRowKeyChange","selectedRowKeysChange","onRowDblClick","onKeyDown","onExporting","dataSource","focusedRowIndex","focusedRowEnabled","autoNavigateToFocusedRow","focusedRowKey","selectedRowKeys","showBorders","allowColumnResizing","renderAsync"],[3,"enabled","texts"],[3,"visible"],[3,"visible","applyFilter"],[3,"enabled"],["mode","virtual"],["mode","multiple"],["mode","none"],[4,"ngFor","ngForOf"],[4,"dxTemplate","dxTemplateOf"],[4,"ngIf"],[3,"allowHeaderFiltering","dataField","dataType","caption","width","sortIndex","sortOrder","visibleIndex","visible","fixed","headerCellTemplate","cellTemplate","allowSorting","calculateCellValue","calculateDisplayValue","calculateGroupValue","calculateSortValue","alignment"],[3,"type",4,"ngIf"],["valueExpr","entityId","displayExpr","departmentName",3,"dataSource",4,"ngIf"],["valueExpr","entityId","displayExpr","employeeStatusName",3,"dataSource",4,"ngIf"],["valueExpr","entityId","displayExpr","rangShortname",3,"dataSource",4,"ngIf"],[3,"type"],["valueExpr","entityId","displayExpr","departmentName",3,"dataSource"],["valueExpr","entityId","displayExpr","employeeStatusName",3,"dataSource"],["valueExpr","entityId","displayExpr","rangShortname",3,"dataSource"]],template:function(o,t){1&o&&(e.j41(0,"div",0)(1,"label",1),e.EFF(2,"Abteilungsliste"),e.k0s(),e.j41(3,"section",2)(4,"div",3)(5,"div",4)(6,"button",5),e.bIt("click",function(){return t.addItem()}),e.j41(7,"mat-icon"),e.EFF(8,"add"),e.k0s()(),e.j41(9,"button",6),e.bIt("click",function(){return t.editItem()}),e.j41(10,"mat-icon"),e.EFF(11,"edit"),e.k0s()(),e.j41(12,"button",7),e.bIt("click",function(){return t.deleteDepartment()}),e.j41(13,"mat-icon"),e.EFF(14,"delete"),e.k0s()()()()(),e.j41(15,"dx-data-grid",8),e.mxI("focusedRowIndexChange",function(a){return e.DH7(t.employeeDepartmentList.focusedItemGridIndex,a)||(t.employeeDepartmentList.focusedItemGridIndex=a),a})("focusedRowKeyChange",function(a){return e.DH7(t.employeeDepartmentList.focusedItemId,a)||(t.employeeDepartmentList.focusedItemId=a),a})("selectedRowKeysChange",function(a){return e.DH7(t.employeeDepartmentList.selectedItemIds,a)||(t.employeeDepartmentList.selectedItemIds=a),a}),e.bIt("onRowDblClick",function(a){return t.dblClick(a)})("onKeyDown",function(a){return a.handled="Escape"===a.event.key})("onExporting",function(a){return t.globals.doExcelExportSimple(a,t.employeeDepartmentList.getExportFilename4List())}),e.nrm(16,"dxo-export",9)(17,"dxo-header-filter",10),e.EFF(18," --\x3e "),e.nrm(19,"dxo-filter-row",11)(20,"dxo-paging",12)(21,"dxo-scrolling",13)(22,"dxo-load-panel",12)(23,"dxo-sorting",14)(24,"dxo-selection",15),e.DNE(25,He,2,1,"ng-container",16)(26,Xe,3,5,"div",17)(27,Ue,3,5,"div",17)(28,$e,3,5,"div",17)(29,Ke,3,5,"div",17),e.k0s()()),2&o&&(e.R7$(6),e.Y8G("disabled",!t.employeeDetails.inNotViewMode||!t.employeeDepartmentList.focusedEntityShadowed.enabledNewButton()),e.R7$(3),e.Y8G("disabled",!t.employeeDetails.inNotViewMode||!t.employeeDepartmentList.focusedItem||!t.employeeDepartmentList.focusedEntityShadowed.enabledEditButton()),e.R7$(3),e.Y8G("disabled",!t.employeeDetails.inNotViewMode||!t.employeeDepartmentList.focusedItem||!t.employeeDepartmentList.focusedEntityShadowed.enabledDeleteButton()),e.R7$(3),e.HbH("grid"+(t.columnConfigList.withExport?" withexport":"")),e.Y8G("dataSource",t.employeeDepartmentList.items),e.R50("focusedRowIndex",t.employeeDepartmentList.focusedItemGridIndex),e.Y8G("focusedRowEnabled",!0)("autoNavigateToFocusedRow",!0),e.R50("focusedRowKey",t.employeeDepartmentList.focusedItemId)("selectedRowKeys",t.employeeDepartmentList.selectedItemIds),e.Y8G("showBorders",!0)("allowColumnResizing",!0)("renderAsync",!0),e.R7$(),e.Y8G("enabled",t.columnConfigList.withExport)("texts",e.lJ4(26,Ge)),e.R7$(),e.Y8G("visible",!0),e.R7$(2),e.Y8G("visible",!1)("applyFilter",!0),e.R7$(),e.Y8G("enabled",!1),e.R7$(2),e.Y8G("enabled",!0),e.R7$(3),e.Y8G("ngForOf",t.columnConfigList.columns),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_0"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_1"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_2"),e.R7$(),e.Y8G("dxTemplateOf","numberTemplate_3"))},dependencies:[u.Sq,u.bT,_.iV,I.An,D.s,d.hVU,d.nj_,d.gtJ,d.b4U,d.ABd,d.ZJU,d.FTx,d.xzc,d.PVd,d.eA9,d.Z6T,E.eC,u.QX],styles:['.employee-department[_ngcontent-%COMP%]{width:100%;height:100%;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(1px,1fr);grid-template-areas:"label label" "toolbar grid"}.grid[_ngcontent-%COMP%]{grid-area:grid;height:100%;width:100%}.label[_ngcontent-%COMP%]{grid-area:label}.toolbar[_ngcontent-%COMP%]{grid-area:toolbar}']})}return i})();function Ze(i,p){if(1&i){const n=e.RV6();e.j41(0,"button",17,1),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.add())}),e.j41(2,"mat-icon"),e.EFF(3,"add"),e.k0s(),e.EFF(4," Hinzuf\xfcgen "),e.k0s()}if(2&i){const n=e.XpG();e.Y8G("disabled",!n.employeeDetails.enabledNewButton())}}function Je(i,p){if(1&i){const n=e.RV6();e.j41(0,"button",18,2),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.employeeDetails.edit())}),e.j41(2,"mat-icon"),e.EFF(3,"edit"),e.k0s(),e.EFF(4," Bearbeiten "),e.k0s()}if(2&i){const n=e.XpG();e.Y8G("disabled",!n.employeeDetails.enabledEditButton())}}function Qe(i,p){if(1&i){const n=e.RV6();e.j41(0,"button",19),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.save())}),e.j41(1,"mat-icon"),e.EFF(2,"save"),e.k0s(),e.EFF(3," Speichern "),e.k0s()}if(2&i){const n=e.XpG();e.Y8G("disabled",!n.employeeDetails.enabledSaveButton())}}function qe(i,p){if(1&i){const n=e.RV6();e.j41(0,"button",20),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.cancel())}),e.j41(1,"mat-icon"),e.EFF(2,"undo"),e.k0s(),e.EFF(3," Verwerfen "),e.k0s()}if(2&i){const n=e.XpG();e.Y8G("autofocus",!0)("disabled",!n.employeeDetails.enabledCancelButton())}}function et(i,p){if(1&i){const n=e.RV6();e.j41(0,"button",21),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.employeeDetails.delete())}),e.j41(1,"mat-icon"),e.EFF(2,"delete"),e.k0s(),e.EFF(3," L\xf6schen "),e.k0s()}if(2&i){const n=e.XpG();e.Y8G("disabled",!n.employeeDetails.enabledDeleteButton())}}let tt=(()=>{class i{constructor(n,o,t){this.employeeDataService=n,this.authorizeService=o,this.pageLoadingService=t,this.save=()=>{this.pageLoadingService.startSpinner(),this.employeeDetails.save(l=>this.afterSave(l),null,()=>this.pageLoadingService.hideSpinner())},this.cancel=()=>{this.employeeDetails.cancelWithSave(this.save)}}get focusedItem(){return this.employeeDetails.entity}ngAfterViewInit(){this.employeeDetails.beforeNewCallBack=this.newEmployeeInit.bind(this),this.employeeDetails.beforeSaveCallBack=this.beforeSaveEmployee.bind(this)}newEmployeeInit(n){}beforeSaveEmployee(n){var o=this;return(0,A.A)(function*(){return o.employeeDataService.employee2AttributeList.match2array(n,"employeeId","arAttributeIdList","employeeAttributeId"),0})()}afterSave(n){}add(){this.employeeDetails.new(),this.employeeDetails.entity.isActive=!0}keyboardInput(n){return G.N.LOGIN_IS_SHOWN||this.employeeDetails.shortcutsHandler(n,this.save,this.cancel)}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(b),e.rXU(T.V),e.rXU(fe.V))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee-detail"]],hostBindings:function(o,t){1&o&&e.bIt("keydown",function(a){return t.keyboardInput(a)},!1,e.tSv)},inputs:{employeeDetails:"employeeDetails"},decls:16,vars:10,consts:[["detailForm","ngForm"],["btnNew",""],["btnEdit",""],["id","form_employee",1,"EmployeeDetailsForm"],[1,"card"],[1,"EmployeeDetails"],[1,"toolbar"],[1,"toolbar-button-row"],["id","btnNew","name","btnNew","class","abstand","mat-stroked-button","","title","Neuer Mitarbeiter",3,"disabled","click",4,"ngIf"],["id","btnEdit","name","btnEdit","class","abstand","mat-stroked-button","","title","Bearbeiten",3,"disabled","click",4,"ngIf"],["id","btnSave","name","btnSave","class","abstand","mat-stroked-button","","disabled","","title","Speichern",3,"disabled","click",4,"ngIf"],["id","btnUndo","name","btnUndo","class","abstand","mat-stroked-button","","disabled","","title","\xc4nderungen verwerfen",3,"autofocus","disabled","click",4,"ngIf"],["id","btnDelete","name","btnDelete","mat-stroked-button","","title","Benutzer l\xf6schen","class","last",3,"disabled","click",4,"ngIf"],[1,"DetailsContent",3,"employeeDetails"],[1,"DepartmentList",3,"employeeDepartmentList","employeeDetails"],[1,"WebAppList",3,"employeeDetails"],[1,"AttributeList",3,"employeeDetails"],["id","btnNew","name","btnNew","mat-stroked-button","","title","Neuer Mitarbeiter",1,"abstand",3,"click","disabled"],["id","btnEdit","name","btnEdit","mat-stroked-button","","title","Bearbeiten",1,"abstand",3,"click","disabled"],["id","btnSave","name","btnSave","mat-stroked-button","","disabled","","title","Speichern",1,"abstand",3,"click","disabled"],["id","btnUndo","name","btnUndo","mat-stroked-button","","disabled","","title","\xc4nderungen verwerfen",1,"abstand",3,"click","autofocus","disabled"],["id","btnDelete","name","btnDelete","mat-stroked-button","","title","Benutzer l\xf6schen",1,"last",3,"click","disabled"]],template:function(o,t){1&o&&(e.j41(0,"form",3,0)(2,"mat-card",4),e.nrm(3,"mat-card-header"),e.j41(4,"mat-card-content",5)(5,"section",6)(6,"div",7),e.DNE(7,Ze,5,1,"button",8)(8,Je,5,1,"button",9)(9,Qe,4,1,"button",10)(10,qe,4,2,"button",11)(11,et,4,1,"button",12),e.k0s()(),e.nrm(12,"app-details-content",13)(13,"app-employee-department",14)(14,"app-employee-webapp",15)(15,"app-employee-attribute",16),e.k0s()()()),2&o&&(e.R7$(7),e.Y8G("ngIf",t.employeeDetails.canNew),e.R7$(),e.Y8G("ngIf",t.employeeDetails.canEdit),e.R7$(),e.Y8G("ngIf",t.employeeDetails.canEdit||t.employeeDetails.canNew),e.R7$(),e.Y8G("ngIf",t.employeeDetails.canEdit||t.employeeDetails.canNew),e.R7$(),e.Y8G("ngIf",t.employeeDetails.canDelete),e.R7$(),e.Y8G("employeeDetails",t.employeeDetails),e.R7$(),e.Y8G("employeeDepartmentList",t.employeeDataService.employee2DepartmentList)("employeeDetails",t.employeeDetails),e.R7$(),e.Y8G("employeeDetails",t.employeeDetails),e.R7$(),e.Y8G("employeeDetails",t.employeeDetails))},dependencies:[u.bT,_.iV,I.An,y._m,y.XB,y.Rm,c.qT,c.cb,c.cV,Ie,Ce,Ne,ze],styles:['.EmployeeDetails[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-template-rows:42px minmax(1px,168px) minmax(1px,120px);grid-template-columns:auto minmax(1px,1fr) minmax(1px,1.8fr);grid-row-gap:6px;grid-column-gap:13px;grid-template-areas:"toolbar department-grid webapps-grid" "detail department-grid webapps-grid " "detail attribute-grid webapps-grid";z-index:10;position:relative}.DetailsContent[_ngcontent-%COMP%]{grid-area:detail}.DepartmentList[_ngcontent-%COMP%]{grid-area:department-grid}.WebAppList[_ngcontent-%COMP%]{grid-area:webapps-grid}.AttributeList[_ngcontent-%COMP%]{grid-area:attribute-grid}.abstand[_ngcontent-%COMP%]{margin-right:1px!important}.toolbar[_ngcontent-%COMP%]{grid-area:toolbar}.card[_ngcontent-%COMP%]{padding:12px;margin:2px}']})}return i})();const ot=[{path:"**",component:(()=>{class i{constructor(n){this.employeeDataService=n}ngOnInit(){}static#e=this.\u0275fac=function(o){return new(o||i)(e.rXU(b))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["app-employee"]],decls:3,vars:2,consts:[[1,"EmployeeComponent"],[1,"EmployeeListComponent",3,"dataSource"],[1,"EmployeeDetailsComponent",3,"employeeDetails"]],template:function(o,t){1&o&&(e.j41(0,"div",0),e.nrm(1,"app-employee-list",1)(2,"app-employee-detail",2),e.k0s()),2&o&&(e.R7$(),e.Y8G("dataSource",t.employeeDataService.employeeList),e.R7$(),e.Y8G("employeeDetails",t.employeeDataService.employeeList.focusedEntityShadowed))},dependencies:[be,tt],styles:['.EmployeeComponent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);grid-template-areas:"list" "details";grid-column-gap:5px;grid-row-gap:5px}.EmployeeListComponent[_ngcontent-%COMP%]{grid-area:list}.EmployeeDetailsComponent[_ngcontent-%COMP%]{grid-area:details;z-index:10}']})}return i})(),canActivate:[r(27938).q]}];let at=(()=>{class i{static#e=this.\u0275fac=function(o){return new(o||i)};static#t=this.\u0275mod=e.$C({type:i});static#n=this.\u0275inj=e.G2t({imports:[M.iI.forChild(ot),M.iI]})}return i})(),lt=(()=>{class i{static#e=this.\u0275fac=function(o){return new(o||i)};static#t=this.\u0275mod=e.$C({type:i});static#n=this.\u0275inj=e.G2t({imports:[u.MD,at,Y.e,D.N,c.YN,C.n,k.d,B.b,H.L,X.U,E.xZ,U.F]})}return i})()}}]);