@dflat-core/web 1.7.2100 → 1.7.2102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/assets/buttons.scss +3 -3
  2. package/assets/components/bootstrap-lite.scss +36 -36
  3. package/assets/components/icons.scss +8 -8
  4. package/assets/components/login.scss +3 -3
  5. package/assets/components/modals.scss +5 -5
  6. package/assets/forms.scss +11 -11
  7. package/assets/modals.scss +6 -6
  8. package/assets/property.scss +1 -1
  9. package/assets/shared.scss +4 -4
  10. package/assets/site.scss +9 -9
  11. package/assets/text.scss +8 -8
  12. package/assets/theme.scss +1 -1
  13. package/fesm2022/dflat-core-web-core-services.mjs +23 -1
  14. package/fesm2022/dflat-core-web-core-services.mjs.map +1 -1
  15. package/fesm2022/dflat-core-web-core-ux.mjs +123 -112
  16. package/fesm2022/dflat-core-web-core-ux.mjs.map +1 -1
  17. package/fesm2022/dflat-core-web-identity-ux.mjs +6 -6
  18. package/fesm2022/dflat-core-web-identity-ux.mjs.map +1 -1
  19. package/fesm2022/dflat-core-web-meta-ux.mjs +12 -12
  20. package/fesm2022/dflat-core-web-meta-ux.mjs.map +1 -1
  21. package/fesm2022/dflat-core-web-system-data.mjs.map +1 -1
  22. package/fesm2022/dflat-core-web-system-model.mjs.map +1 -1
  23. package/fesm2022/dflat-core-web-system-ux.mjs +34 -34
  24. package/fesm2022/dflat-core-web-system-ux.mjs.map +1 -1
  25. package/package.json +1 -1
  26. package/scss/dflat-app.scss +28 -1
  27. package/scss/layout/default/default-layout.scss +14 -14
  28. package/scss/styles/drag-and-drop.scss +2 -2
  29. package/scss/styles/forms.scss +6 -6
  30. package/scss/styles/shared.scss +1 -1
  31. package/types/dflat-core-web-core-services.d.ts +4 -0
  32. package/types/dflat-core-web-core-ux.d.ts +8 -0
  33. package/types/dflat-core-web-identity-ux.d.ts +1 -1
  34. package/types/dflat-core-web-meta-ux.d.ts +1 -1
  35. package/types/dflat-core-web-system-data.d.ts +2 -2
  36. package/types/dflat-core-web-system-model.d.ts +4 -2
  37. package/types/dflat-core-web-system-ux.d.ts +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"dflat-core-web-identity-ux.mjs","names":["i2","i2","i3","i4","i6","i1","i2","i3","i4","i5","i1","i2","i1","i2","i1","i2","i1","i2","takeUntil","i1","i1","i2","i1","i2","i3","i1","i2","i1","i2","i1","i2","i1","i2","i3","i1","i2","i1","i2","i1","i2","i3.UserActionService","i4","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i3.UserActionService","i4","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i3","i1","i2","i3","i4","i1","i2","i3","i2","i4","i1.DeviceTokenComponent","i2.PresentationProfileAssignmentComponent","i3.RoleComponent","i4.RolePermissionComponent","i5.UserAccountComponent","i6.UserAccountLoginComponent","i7.UserAccountRoleComponent","i8.UserAccountTokenComponent","i9.UserFavoriteComponent","i10.UserGroupComponent","i11.UserGroupDefinitionComponent","i12.UserHistoryComponent","i13.UserPermissionViewComponent","i14.UserSessionComponent"],"sources":["../../identity-ux/src/lib/activate/activate.component.ts","../../identity-ux/src/lib/app/user-profile/user-profile.component.ts","../../identity-ux/src/lib/app/user-profile/user-profile.component.html","../../identity-ux/src/lib/app/account-security/account-security.component.ts","../../identity-ux/src/lib/app/account-security/account-security.component.html","../../identity-ux/src/lib/data-components/generated/devicetoken.component.generated.ts","../../identity-ux/src/lib/data-components/devicetoken.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/presentationprofileassignment.component.generated.ts","../../identity-ux/src/lib/data-components/presentationprofileassignment.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/editor-components/role-permission-grid.ts","../../identity-ux/src/lib/editor-components/role-editor.component.ts","../../identity-ux/src/lib/editor-components/role-editor.component.html","../../identity-ux/src/lib/data-components/generated/role.component.generated.ts","../../identity-ux/src/lib/data-components/role.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/rolepermission.component.generated.ts","../../identity-ux/src/lib/data-components/rolepermission.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/userpermissionview.component.generated.ts","../../identity-ux/src/lib/data-components/userpermission.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/useraccountrole.component.generated.ts","../../identity-ux/src/lib/services/user-action-service.ts","../../identity-ux/src/lib/data-components/userrole.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/useraccount.component.generated.ts","../../identity-ux/src/lib/data-components/user-account-sections.ts","../../identity-ux/src/lib/data-components/useraccount.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/useraccountlogin.component.generated.ts","../../identity-ux/src/lib/data-components/useraccountlogin.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/useraccountrole.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/useraccounttoken.component.generated.ts","../../identity-ux/src/lib/data-components/useraccounttoken.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/userfavorite.component.generated.ts","../../identity-ux/src/lib/data-components/userfavorite.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/usergroupdefinition.component.generated.ts","../../identity-ux/src/lib/data-components/usergroupdefinition.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/usergroup.component.generated.ts","../../identity-ux/src/lib/data-components/usergroup.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/userhistory.component.generated.ts","../../identity-ux/src/lib/data-components/userhistory.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/userpermissionview.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/usersession.component.generated.ts","../../identity-ux/src/lib/data-components/usersession.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/identity-components.generated.ts","../../identity-ux/src/lib/data-components/generated/identity-sections.generated.ts","../../identity-ux/src/lib/editor-components/user-account-editor.component.ts","../../core-ux/src/lib/components/base-editor/base-editor.component.html","../../identity-ux/src/lib/editor-components/user-account-profile.component.ts","../../identity-ux/src/lib/editor-components/user-account-profile.component.html","../../identity-ux/src/lib/editor-components/user-group-editor.component.ts","../../core-ux/src/lib/components/base-editor/base-editor.component.html","../../identity-ux/src/lib/reset-password/reset-password.component.ts","../../identity-ux/src/lib/reset-password/reset-password.component.html","../../identity-ux/src/lib/identity-ux.module.ts","../../identity-ux/src/lib/identity-routing.module.ts"],"sourcesContent":["import { Utilities } from '@dflat-core/web/core';\r\nimport { User } from '@dflat-core/web/core-model';\r\nimport { AuthService, UserService } from '@dflat-core/web/core-services';\r\nimport { AccountDataService } from '@dflat-core/web/identity-data';\r\nimport { ActivationResults, ActivationViewModel } from '@dflat-core/web/identity-model';\r\nimport { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute, Router, UrlSegment } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'msw-activate', template: '',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class ActivateComponent implements OnInit {\r\n\r\n code: string;\r\n hasErrors : boolean = false;\r\n errorMessage: string;\r\n loading: boolean = false;\r\n ActivationResults: ActivationResults = undefined;\r\n email: string;\r\n captchaToken : string;\r\n emailPattern2: string = \"^(([^<>()\\\\[\\\\]\\\\\\\\.,;:\\\\s@\\\"]+(\\\\.[^<>()\\\\[\\\\]\\\\\\\\.,;:\\\\s@\\\"]+)*)|(\\\".+\\\"))@((\\\\[[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}])|(([a-zA-Z\\\\-0-9]+\\\\.)+[a-zA-Z]{2,}))$\";\r\n \r\n\r\n constructor(\r\n protected router: Router,\r\n protected route: ActivatedRoute,\r\n protected accountDataService: AccountDataService,\r\n protected authService : AuthService,\r\n protected userService: UserService\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n\r\n \r\n if (this.authService.isLoggedIn)\r\n this.email = this.userService.AuthenticatedUser.Email;\r\n \r\n this.route.queryParams.subscribe(\r\n params => {\r\n this.code = params['code'];\r\n \r\n if ( ! Utilities.IsNil( this.code ) )\r\n this.activate(false);\r\n \r\n })\r\n }\r\n\r\n sendAgain() { \r\n this.activate(true);\r\n }\r\n \r\n activate(sendAgain: boolean) {\r\n this.hasErrors = false;\r\n this.loading = true;\r\n this.ActivationResults = undefined;\r\n this.errorMessage = '';\r\n\r\n // Initialisation du paramètre\r\n let parameter:ActivationViewModel = {};\r\n parameter.ActivationCode = this.code;\r\n parameter.SendAgain= sendAgain;\r\n parameter.UserEmail = this.email;\r\n parameter.CaptchaToken = this.captchaToken;\r\n\r\n this.accountDataService.activate(parameter)\r\n .subscribe(\r\n data => {\r\n \r\n this.ActivationResults = data;\r\n if ( this.isSuccess()) {\r\n\r\n let user: User = this.userService.AuthenticatedUser;\r\n user.IsActive = ! user.IsActive;\r\n user.AccessToken = this.authService.token;\r\n user.RefreshToken = this.authService.refreshToken;\r\n user.IsConnected = true;\r\n this.authService.saveUserInfos(user, JSON.stringify(user), this.authService.rememberMe);\r\n \r\n this.userService.setCurrent(user);\r\n }\r\n\r\n this.captchaToken = undefined;\r\n this.loading= false;\r\n },\r\n error => {\r\n this.hasErrors = true;\r\n this.ActivationResults = ActivationResults.Error;\r\n this.errorMessage = \"Une erreur s'est produite pendant l'activation de votre compte\";\r\n this.captchaToken = undefined;\r\n this.loading= false;\r\n }\r\n );\r\n }\r\n \r\n isEmptyCode() : boolean {\r\n return Utilities.IsNil(this.code);\r\n }\r\n\r\n isUserUnknown() : boolean {\r\n return ! Utilities.IsNil(this.ActivationResults) && this.ActivationResults == ActivationResults.UnknownUser;\r\n }\r\n\r\n isSuccess() : boolean {\r\n return ! Utilities.IsNil(this.ActivationResults) &&this.ActivationResults == ActivationResults.Sucess;\r\n }\r\n isError() : boolean {\r\n return ! Utilities.IsNil(this.ActivationResults) &&this.ActivationResults == ActivationResults.Error;\r\n }\r\n isExpired() : boolean {\r\n return ! Utilities.IsNil(this.ActivationResults) &&this.ActivationResults == ActivationResults.Expired;\r\n }\r\n isAlreadyActivated() : boolean {\r\n return ! Utilities.IsNil(this.ActivationResults) &&this.ActivationResults == ActivationResults.AlreadyActivated;\r\n }\r\n\r\n isSentAgain() : boolean {\r\n return ! Utilities.IsNil(this.ActivationResults) &&this.ActivationResults == ActivationResults.SentAgain;\r\n }\r\n\r\n isLoading() : boolean {\r\n return this.loading;\r\n }\r\n\r\n goHome() {\r\n this.router.navigate(['/']);\r\n }\r\n\r\n\r\n}\r\n","import { User } from '@dflat-core/web/core-model';\r\nimport { UserService } from '@dflat-core/web/core-services';\r\nimport { AlertService, MessageSeverity } from '@dflat-core/web/core-ux';\r\nimport { AccountDataService, UserAccountDataService } from '@dflat-core/web/identity-data';\r\nimport { ChangePasswordViewModel, UserProfileViewModel } from '@dflat-core/web/identity-model';\r\n\r\nimport { Component, Input, Output, ViewChild, ChangeDetectionStrategy } from '@angular/core';\r\nimport { NgForm } from '@angular/forms';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n\r\n@Component({\r\n selector: 'msw-user-profile',\r\n templateUrl: './user-profile.component.html',\r\n styleUrls: ['./user-profile.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserProfileComponent {\r\n\r\n constructor(protected route: ActivatedRoute,\r\n protected alertService: AlertService,\r\n protected accountDataService: AccountDataService,\r\n protected userAccountDataService: UserAccountDataService,\r\n private userService: UserService) {\r\n \r\n }\r\n\r\n @ViewChild('f', { static: false })\r\n form: NgForm;\r\n\r\n @ViewChild('fpwd', { static: false })\r\n pwdform: NgForm;\r\n\r\n\r\n userAccount: UserProfileViewModel = {};\r\n changePasswordVM: ChangePasswordViewModel = {};\r\n\r\n \r\n isFormValid: boolean;\r\n hasChanges: boolean = false;\r\n\r\n\r\n password: string;\r\n isPasswordFormValid: boolean;\r\n hasPasswordChanges: boolean = false;\r\n\r\n mobilePattern: string = \"^((\\\\+91-?)|0)?[0-9]{10}$\";\r\n emailPattern2: string = \"^(([^<>()\\\\[\\\\]\\\\\\\\.,;:\\\\s@\\\\\\\"]+(\\\\.[^<>()\\\\[\\\\]\\\\\\\\.,;:\\\\s@\\\\\\\"]+)*)|(\\\\\\\".+\\\\\\\"))@((\\\\[[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}])|(([a-zA-Z\\\\-0-9]+\\\\.)+[a-zA-Z]{2,}))$\";\r\n\r\n ngOnInit(): void {\r\n this.initViewModel();\r\n }\r\n\r\n initViewModel() {\r\n\r\n let currentUser = this.userService.AuthenticatedUser;\r\n this.userAccountDataService.search({Id: currentUser.Id}).subscribe(res=>{\r\n \r\n let resultUser = res.Values[0];\r\n\r\n this.userAccount.Id = resultUser.Id;\r\n this.userAccount.Email = resultUser.Email;\r\n this.userAccount.FirstName = resultUser.FirstName;\r\n this.userAccount.LastName = resultUser.LastName;\r\n this.userAccount.PhoneNumber = resultUser.PhoneNumber;\r\n this.hasChanges= false;\r\n \r\n this.changePasswordVM.Id = resultUser.Id;\r\n this.changePasswordVM.CurrentPassword = '';\r\n this.changePasswordVM.NewPassword = '';\r\n this.hasPasswordChanges= false;\r\n });\r\n\r\n \r\n \r\n }\r\n\r\n\r\n handlePasswordChanged() {\r\n\r\n\r\n\r\n // met à jour le statut du formulaire à chaque changements\r\n this.isPasswordFormValid = this.pwdform.form.valid;\r\n // met à jour le statut du formulaire à chaque changements\r\n this.hasPasswordChanges = true;\r\n }\r\n\r\n handleModelChanged() {\r\n\r\n // met à jour le statut du formulaire à chaque changements\r\n this.isFormValid = this.form.form.valid;\r\n\r\n this.hasChanges = true;\r\n }\r\n\r\n cancel() {\r\n this.initViewModel();\r\n }\r\n\r\n validate() {\r\n\r\n this.handleModelChanged();\r\n\r\n if (this.isFormValid) {\r\n\r\n\r\n this.accountDataService.updateUserProfile(this.userAccount).subscribe(\r\n (res) => {\r\n this.alertService.showMessage(\"Validation\", \"Modifications du profil enregistrées avec succés \", MessageSeverity.Success);\r\n\r\n let currentUser = this.userService.AuthenticatedUser;\r\n currentUser.Email = this.userAccount.Email;\r\n currentUser.FirstName = this.userAccount.FirstName;\r\n currentUser.LastName = this.userAccount.LastName;\r\n currentUser.PhoneNumber = this.userAccount.PhoneNumber;\r\n\r\n \r\n this.userService.setCurrent(currentUser);\r\n\r\n\r\n this.hasChanges = false;\r\n },\r\n (err) => {\r\n this.alertService.showMessage(\"Echec\", \"L'enregistrement des modifications a échoué !\", MessageSeverity.Error);\r\n }\r\n );\r\n }\r\n else {\r\n\r\n // Validation du formulaire\r\n Object.keys(this.form.form.controls).forEach(key => {\r\n this.form.form.get(key).markAsDirty();\r\n });\r\n this.form.control.markAllAsTouched();\r\n\r\n return false;\r\n }\r\n }\r\n\r\n changePassword() {\r\n\r\n this.handlePasswordChanged();\r\n\r\n if (this.isPasswordFormValid) {\r\n\r\n this.accountDataService.changePassword(this.changePasswordVM).subscribe(\r\n (res) => {\r\n\r\n this.alertService.showMessage(\"Validation\", \"Mot de passe enregistré avec succés \", MessageSeverity.Success);\r\n this.changePasswordVM.CurrentPassword = '';\r\n this.changePasswordVM.NewPassword = '';\r\n \r\n this.pwdform.reset();\r\n this.hasPasswordChanges = false;\r\n\r\n return true;\r\n },\r\n (err) => {\r\n this.alertService.showMessage(\"Echec\", err.error, MessageSeverity.Error);\r\n }\r\n );\r\n }\r\n else {\r\n\r\n // Validation du formulaire\r\n Object.keys(this.pwdform.form.controls).forEach(key => {\r\n this.pwdform.form.get(key).markAsDirty();\r\n });\r\n this.pwdform.control.markAllAsTouched();\r\n\r\n return false;\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n}\r\n\r\n\r\n","<div class=\"user-profile-container\">\r\n <div class=\"petit-titre\">Mes informations</div>\r\n <div class=\"user-form-container\">\r\n <form class=\"user-form\" #f=\"ngForm\" validate autocomplete=\"off\" (ngSubmit)=\"(f.form.valid)\" validate>\r\n <div class=\"form-group-with-columns\">\r\n <div class=\"form-group has-feedback mw-50\">\r\n <label>Nom*</label>\r\n <input type=\"text\" class=\"form-control\" required name=\"name\" #name=\"ngModel\"\r\n [(ngModel)]=\"userAccount.LastName\" (ngModelChange)=\"handleModelChanged()\" placeholder=\"\" />\r\n <div *ngIf=\"name.errors && name.dirty && name.touched\" class=\"input-alert\">\r\n <div *ngIf=\"name.errors?.required\">\r\n Merci de renseigner votre nom.\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"form-group has-feedback mw-50\">\r\n <label>Prénom*</label>\r\n <input type=\"text\" class=\"form-control\" required name=\"firstname\" #firstname=\"ngModel\"\r\n [(ngModel)]=\"userAccount.FirstName\" (ngModelChange)=\"handleModelChanged()\" placeholder=\"\" />\r\n <div *ngIf=\"\r\n firstname.errors &&\r\n firstname.dirty &&\r\n firstname.touched\r\n \" class=\"input-alert\">\r\n <div *ngIf=\"firstname.errors?.required\">\r\n Merci de renseigner votre prénom.\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"form-group-with-columns\">\r\n <div class=\"form-group has-feedback mw-50\">\r\n <label>E-mail*</label>\r\n <input (ngModelChange)=\"handleModelChanged()\" type=\"text\" class=\"form-control\" placeholder=\"\"\r\n name=\"eml\" [(ngModel)]=\"userAccount.Email\" #eml=\"ngModel\" required #name=\"ngModel\"\r\n [pattern]=\"emailPattern2\" />\r\n <span class=\"form-control-feedback mw-50\"></span>\r\n <div *ngIf=\"eml.errors && eml.dirty && eml.touched\" class=\"input-alert\">\r\n <div *ngIf=\"eml.errors?.required\">\r\n L'email est obligatoire\r\n </div>\r\n <div *ngIf=\"eml.errors?.pattern\">\r\n L'email n'est pas valide\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group has-feedback mw-50\">\r\n <label>Numéro de téléphone</label>\r\n <input (ngModelChange)=\"handleModelChanged()\" placeholder=\"\" type=\"text\" class=\"form-control\"\r\n required name=\"phone\" [pattern]=\"mobilePattern\" #phone=\"ngModel\"\r\n [(ngModel)]=\"userAccount.PhoneNumber\" />\r\n <span class=\"form-control-feedback mw-50\"></span>\r\n <div *ngIf=\"phone.errors && phone.dirty && phone.touched\" class=\"input-alert\">\r\n <div *ngIf=\"phone.errors?.required\">\r\n Le numéro de téléphone est obligatoire\r\n </div>\r\n <div *ngIf=\"phone.errors?.pattern\">\r\n Le numéro de téléphone n'est pas valide\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n \r\n\r\n </form>\r\n \r\n\r\n </div>\r\n <div class=\"btn-bar horizontal\">\r\n <div class=\"btn-bar-container\">\r\n <button type=\"button\" class=\"btn btn-secondary btn-flat\" (click)=\"cancel()\" [disabled]=\"! hasChanges\">\r\n <span>Annuler</span>\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-primary btn-flat\" (click)=\"validate()\" [disabled]=\"! hasChanges\">\r\n Sauvegarder\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"petit-titre\">Modifier mon mot de passe</div>\r\n <div class=\"user-form-container\">\r\n <form class=\"user-form\" #fpwd=\"ngForm\" validate autocomplete=\"off\" (ngSubmit)=\"(fpwd.form.valid)\" validate>\r\n <div class=\"form-group has-feedback mw-50\">\r\n <!-- <div class=\"form-group has-feedback\"> -->\r\n <label>Ancien mot de passe*</label>\r\n <input autocomplete=\"off\" type=\"password\" class=\"form-control\"\r\n (ngModelChange)=\"handlePasswordChanged()\"\r\n placeholder=\"Entrez votre ancien mot de passe\" required name=\"passwd\"\r\n [(ngModel)]=\"changePasswordVM.CurrentPassword\" #passwd=\"ngModel\" minlength=\"6\">\r\n\r\n <span class=\"form-control-feedback mw-50\"></span>\r\n <div *ngIf=\"passwd.errors && passwd.dirty && passwd.touched\" class=\"input-alert\">\r\n <div *ngIf=\"passwd.errors?.required\">\r\n Le mot de passe est obligatoire\r\n </div>\r\n <div *ngIf=\"passwd.errors?.minlength\">\r\n Le mot de passe doit comporter au moins 6 caractères\r\n </div>\r\n <!-- </div> -->\r\n\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group has-feedback mw-50\">\r\n <label>Nouveau mot de passe*</label>\r\n <input autocomplete=\"off\" type=\"password\" class=\"form-control\"\r\n (ngModelChange)=\"handlePasswordChanged()\"\r\n placeholder=\"Entrez votre nouveau de passe\" required name=\"newpasswd\"\r\n [(ngModel)]=\"changePasswordVM.NewPassword\" #newpasswd=\"ngModel\" minlength=\"6\">\r\n\r\n <span class=\"form-control-feedback mw-50\"></span>\r\n <div *ngIf=\"newpasswd.errors && newpasswd.dirty && newpasswd.touched\" class=\"input-alert\">\r\n <div *ngIf=\"newpasswd.errors?.required\">\r\n Le mot de passe est obligatoire\r\n </div>\r\n <div *ngIf=\"newpasswd.errors?.minlength\">\r\n Le mot de passe doit comporter au moins 6 caractères\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group has-feedback mw-50\">\r\n <label class=\"required-label\">Confirmation du nouveau mot de passe</label>\r\n <input autocomplete=\"off\" type=\"password\" class=\"form-control\"\r\n (ngModelChange)=\"handlePasswordChanged()\"\r\n placeholder=\"Confirmez le nouveau de passe\" required name=\"newpasswd2\"\r\n [(ngModel)]=\"changePasswordVM.NewPasswordConfirm\" #newpasswd2=\"ngModel\" minlength=\"6\">\r\n\r\n <span class=\"form-control-feedback mw-50\"></span>\r\n <div *ngIf=\"newpasswd2.errors && newpasswd2.dirty && newpasswd2.touched\" class=\"input-alert\">\r\n <div *ngIf=\"newpasswd2.errors?.required\">\r\n Le mot de passe est obligatoire\r\n </div>\r\n <div *ngIf=\"newpasswd2.errors?.minlength\">\r\n Le mot de passe doit comporter au moins 6 caractères\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"btn-bar horizontal\">\r\n <div class=\"btn-bar-container\">\r\n <button type=\"submit\" class=\"btn btn-primary btn-flat\" (click)=\"changePassword()\" [disabled]=\"! hasPasswordChanges\">\r\n Modifier\r\n </button>\r\n </div>\r\n </div>\r\n\r\n </form>\r\n\r\n </div>\r\n</div>","import { Component, ChangeDetectionStrategy, ElementRef, OnInit, ViewChild } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { AccountDataService } from '@dflat-core/web/identity-data';\r\nimport { LinkedLoginViewModel, TrustedDeviceViewModel, TwoFactorSetupViewModel, TwoFactorStatusViewModel } from '@dflat-core/web/identity-model';\r\nimport { AuthService, ExternalLoginService, IExternalLoginResult } from '@dflat-core/web/core-services';\r\nimport { IExternalLoginProvider } from '@dflat-core/web/core-model';\r\n\r\n/**\r\n * Page « Sécurité » du compte connecté (route user/security, Connexion, B.5.9) : activation de la double\r\n * authentification (QR code, premier code, codes de secours remis une fois), désactivation, renouvellement des\r\n * codes de secours, appareils de confiance. Quand la politique impose la double authentification (?required),\r\n * la page l'annonce et ne propose pas de la désactiver.\r\n */\r\n@Component({\r\n selector: 'idy-account-security',\r\n templateUrl: './account-security.component.html',\r\n styleUrls: ['./account-security.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class AccountSecurityComponent implements OnInit {\r\n\r\n status: TwoFactorStatusViewModel;\r\n setup: TwoFactorSetupViewModel;\r\n /** Codes de secours à montrer une seule fois (activation ou renouvellement). */\r\n recoveryCodes: string[];\r\n /** L'activation est imposée par la politique. */\r\n required = false;\r\n loading = true;\r\n\r\n code = '';\r\n disablePassword = '';\r\n showDisable = false;\r\n showRegenerate = false;\r\n message = '';\r\n errorMessage = '';\r\n\r\n /** Identités externes liées au compte (Connexion, B.5.10). */\r\n linkedLogins: LinkedLoginViewModel[] = [];\r\n /** Fournisseurs configurés sur le serveur. */\r\n providers: IExternalLoginProvider[] = [];\r\n\r\n /** Emplacement du bouton officiel de Google pour lier un compte Google. */\r\n @ViewChild('googleLinkButton')\r\n set googleLinkButton(element: ElementRef<HTMLElement>) {\r\n const google = this.getProvider(ExternalLoginService.google);\r\n if (element && google)\r\n this.externalLoginService.renderGoogleButton(element.nativeElement, google, result => this.link(result))\r\n .catch(error => this.onExternalError(error));\r\n }\r\n\r\n constructor(\r\n protected accountDataService: AccountDataService,\r\n protected authService: AuthService,\r\n protected route: ActivatedRoute,\r\n protected router: Router,\r\n protected externalLoginService: ExternalLoginService) {\r\n }\r\n\r\n ngOnInit() {\r\n this.required = this.route.snapshot.queryParamMap.get('required') === 'true';\r\n this.load();\r\n this.authService.getLoginOptions().subscribe(options => this.providers = options?.Providers || [], () => this.providers = []);\r\n this.loadLinkedLogins();\r\n }\r\n\r\n /** Relit les identités externes liées au compte. */\r\n loadLinkedLogins() {\r\n this.accountDataService.getLinkedLogins().subscribe(logins => this.linkedLogins = logins || [], () => this.linkedLogins = []);\r\n }\r\n\r\n /** Fournisseur configuré, ou undefined. */\r\n getProvider(name: string): IExternalLoginProvider {\r\n return this.providers.find(p => p.Provider === name);\r\n }\r\n\r\n /** Le fournisseur est configuré et pas encore lié : son bouton « Lier » est proposé. */\r\n canLink(name: string): boolean {\r\n return !!this.getProvider(name) && !this.linkedLogins.some(l => l.Provider === name);\r\n }\r\n\r\n /** Application mobile : liaison Google native (Connexion, B.5.11). */\r\n get isNativeApp(): boolean {\r\n return !!this.externalLoginService?.isNativeApp?.();\r\n }\r\n\r\n /** Lie un compte Google, dans l'application mobile. */\r\n linkGoogleNative() {\r\n this.externalLoginService.signInWithGoogleNative(this.getProvider(ExternalLoginService.google))\r\n .then(result => this.link(result)).catch(error => this.onExternalError(error));\r\n }\r\n\r\n /** Lie un compte Microsoft. */\r\n linkMicrosoft() {\r\n this.externalLoginService.signInWithMicrosoft(this.getProvider(ExternalLoginService.microsoft))\r\n .then(result => this.link(result)).catch(error => this.onExternalError(error));\r\n }\r\n\r\n /** Lie un identifiant Apple. */\r\n linkApple() {\r\n this.externalLoginService.signInWithApple(this.getProvider(ExternalLoginService.apple))\r\n .then(result => this.link(result)).catch(error => this.onExternalError(error));\r\n }\r\n\r\n /** Transmet le jeton du fournisseur au serveur, qui lie l'identité au compte connecté. */\r\n protected link(result: IExternalLoginResult) {\r\n this.clearMessages();\r\n this.accountDataService.linkExternal({\r\n Provider: result.provider, IdToken: result.idToken, AuthorizationCode: result.authorizationCode, RedirectUri: result.redirectUri\r\n }).subscribe(\r\n () => { this.message = `Compte ${result.provider} lié.`; this.loadLinkedLogins(); },\r\n error => this.errorMessage = this.readError(error, 'La liaison a échoué.'));\r\n }\r\n\r\n /** Délie une identité ; refusé par le serveur si c'est le dernier moyen de connexion. */\r\n unlink(login: LinkedLoginViewModel) {\r\n this.clearMessages();\r\n this.accountDataService.unlinkExternal({ Provider: login.Provider }).subscribe(\r\n () => { this.message = `Compte ${login.Provider} délié.`; this.loadLinkedLogins(); },\r\n error => this.errorMessage = this.readError(error, 'La déliaison a échoué.'));\r\n }\r\n\r\n /** Erreur chez le fournisseur ; une fenêtre fermée par l'utilisateur n'en est pas une. */\r\n protected onExternalError(error: any) {\r\n if (this.externalLoginService.isCancellation(error))\r\n return;\r\n this.errorMessage = error?.message || 'La liaison a échoué.';\r\n }\r\n\r\n /** Relit l'état de la double authentification. */\r\n load() {\r\n this.loading = true;\r\n this.accountDataService.getTwoFactorStatus().subscribe(\r\n status => {\r\n this.status = status;\r\n this.required = this.required || !!status?.Required;\r\n this.loading = false;\r\n },\r\n () => {\r\n this.loading = false;\r\n this.errorMessage = 'La sécurité du compte n\\'est pas disponible.';\r\n });\r\n }\r\n\r\n /** Commence l'activation : QR code et clé à saisir dans l'application d'authentification. */\r\n beginSetup() {\r\n this.clearMessages();\r\n this.accountDataService.beginTwoFactorSetup().subscribe(\r\n setup => { this.setup = setup; this.code = ''; },\r\n error => this.errorMessage = this.readError(error, 'L\\'activation n\\'a pas pu commencer.'));\r\n }\r\n\r\n /** Confirme l'activation par un premier code ; les codes de secours sont montrés une seule fois. */\r\n confirmSetup() {\r\n this.clearMessages();\r\n this.accountDataService.confirmTwoFactorSetup({ Code: this.code }).subscribe(\r\n result => {\r\n this.recoveryCodes = result?.Codes || [];\r\n this.setup = null;\r\n this.code = '';\r\n this.load();\r\n },\r\n () => this.errorMessage = 'Code incorrect : vérifiez l\\'heure de votre téléphone et réessayez.');\r\n }\r\n\r\n /** Désactive la double authentification, sur le mot de passe. */\r\n disable() {\r\n this.clearMessages();\r\n this.accountDataService.disableTwoFactor({ Password: this.disablePassword }).subscribe(\r\n () => {\r\n this.showDisable = false;\r\n this.disablePassword = '';\r\n this.recoveryCodes = null;\r\n this.message = 'La double authentification est désactivée.';\r\n this.load();\r\n },\r\n () => this.errorMessage = 'Mot de passe incorrect.');\r\n }\r\n\r\n /** Remplace les codes de secours, sur un code de l'application. */\r\n regenerate() {\r\n this.clearMessages();\r\n this.accountDataService.regenerateRecoveryCodes({ Code: this.code }).subscribe(\r\n result => {\r\n this.recoveryCodes = result?.Codes || [];\r\n this.showRegenerate = false;\r\n this.code = '';\r\n this.load();\r\n },\r\n () => this.errorMessage = 'Code incorrect.');\r\n }\r\n\r\n /** Retire la confiance d'un appareil, ou de tous. */\r\n revoke(device?: TrustedDeviceViewModel) {\r\n this.clearMessages();\r\n this.accountDataService.revokeTrustedDevice({ Id: device?.Id }).subscribe(() => this.load());\r\n }\r\n\r\n /** Télécharge les codes de secours dans un fichier texte. */\r\n downloadRecoveryCodes() {\r\n const blob = new Blob([(this.recoveryCodes || []).join('\\r\\n') + '\\r\\n'], { type: 'text/plain' });\r\n const url = URL.createObjectURL(blob);\r\n const link = document.createElement('a');\r\n link.href = url;\r\n link.download = 'codes-de-secours.txt';\r\n link.click();\r\n URL.revokeObjectURL(url);\r\n }\r\n\r\n /** Codes notés : la page reprend son état normal ; si l'activation était imposée, l'application s'ouvre. */\r\n acknowledgeRecoveryCodes() {\r\n this.recoveryCodes = null;\r\n if (this.required)\r\n this.authService.redirectLoginUser();\r\n }\r\n\r\n private clearMessages() {\r\n this.message = '';\r\n this.errorMessage = '';\r\n }\r\n\r\n private readError(error: any, fallback: string): string {\r\n return typeof error?.error === 'string' && error.error ? error.error : fallback;\r\n }\r\n}\r\n","<div class=\"account-security\">\r\n <h2>Sécurité du compte</h2>\r\n\r\n <div class=\"alert alert-warning\" *ngIf=\"required && !status?.Enabled\">\r\n Votre organisation demande d'activer la double authentification pour continuer.\r\n </div>\r\n <div class=\"alert alert-success\" *ngIf=\"message\">{{ message }}</div>\r\n <div class=\"alert alert-danger\" *ngIf=\"errorMessage\">{{ errorMessage }}</div>\r\n\r\n <p *ngIf=\"loading\">Chargement…</p>\r\n\r\n <ng-container *ngIf=\"!loading && status\">\r\n <!-- Codes de secours remis une seule fois -->\r\n <section class=\"security-section\" *ngIf=\"recoveryCodes?.length\">\r\n <h3>Vos codes de secours</h3>\r\n <p>Gardez ces codes en lieu sûr : ils remplacent le code de l'application si vous perdez votre téléphone.\r\n Chacun ne sert qu'une fois. Ils ne seront plus affichés.</p>\r\n <ul class=\"recovery-codes\">\r\n <li *ngFor=\"let c of recoveryCodes\"><code>{{ c }}</code></li>\r\n </ul>\r\n <div class=\"btn-bar\">\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"downloadRecoveryCodes()\">Télécharger</button>\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"acknowledgeRecoveryCodes()\">J'ai noté mes codes</button>\r\n </div>\r\n </section>\r\n\r\n <!-- Double authentification inactive : activation -->\r\n <section class=\"security-section\" *ngIf=\"!status.Enabled && !recoveryCodes?.length\">\r\n <h3>Double authentification</h3>\r\n <p>Protégez votre compte : après votre mot de passe, un code à 6 chiffres affiché par une application\r\n d'authentification (Google Authenticator, Microsoft Authenticator…) vous sera demandé.</p>\r\n <button type=\"button\" class=\"btn btn-primary\" *ngIf=\"!setup\" (click)=\"beginSetup()\">Activer la double authentification</button>\r\n\r\n <form *ngIf=\"setup\" (ngSubmit)=\"sf.form.valid && confirmSetup()\" #sf=\"ngForm\" novalidate>\r\n <p>1. Scannez ce QR code avec votre application d'authentification.</p>\r\n <img class=\"qr-code\" [src]=\"setup.QrCode\" alt=\"QR code de la double authentification\">\r\n <p class=\"secret\">Ou saisissez cette clé : <code>{{ setup.Secret }}</code></p>\r\n <p>2. Saisissez le code à 6 chiffres affiché par l'application.</p>\r\n <div class=\"form-group\">\r\n <input type=\"text\" class=\"form-control two-factor-code\" name=\"code\" [(ngModel)]=\"code\"\r\n inputmode=\"numeric\" autocomplete=\"one-time-code\" maxlength=\"7\" required placeholder=\"123456\">\r\n </div>\r\n <button class=\"btn btn-primary\" [disabled]=\"!sf.form.valid\">Activer</button>\r\n </form>\r\n </section>\r\n\r\n <!-- Double authentification active -->\r\n <section class=\"security-section\" *ngIf=\"status.Enabled && !recoveryCodes?.length\">\r\n <h3>Double authentification</h3>\r\n <p>Activée le {{ status.EnableDate | date: 'dd/MM/yyyy' }}. Codes de secours restants : {{ status.RecoveryCodesLeft }}.</p>\r\n\r\n <div class=\"btn-bar\">\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"showRegenerate = !showRegenerate; showDisable = false\">Nouveaux codes de secours</button>\r\n <button type=\"button\" class=\"btn btn-outline-danger\" *ngIf=\"!required\" (click)=\"showDisable = !showDisable; showRegenerate = false\">Désactiver</button>\r\n </div>\r\n\r\n <form *ngIf=\"showRegenerate\" (ngSubmit)=\"rf.form.valid && regenerate()\" #rf=\"ngForm\" novalidate>\r\n <p>Saisissez un code de votre application : les anciens codes de secours ne serviront plus.</p>\r\n <div class=\"form-group\">\r\n <input type=\"text\" class=\"form-control two-factor-code\" name=\"regenerateCode\" [(ngModel)]=\"code\" inputmode=\"numeric\" required placeholder=\"123456\">\r\n </div>\r\n <button class=\"btn btn-primary\" [disabled]=\"!rf.form.valid\">Générer</button>\r\n </form>\r\n\r\n <form *ngIf=\"showDisable\" (ngSubmit)=\"df.form.valid && disable()\" #df=\"ngForm\" novalidate>\r\n <p>Confirmez avec votre mot de passe.</p>\r\n <div class=\"form-group\">\r\n <input type=\"password\" class=\"form-control\" name=\"disablePassword\" [(ngModel)]=\"disablePassword\" required placeholder=\"Mot de passe\">\r\n </div>\r\n <button class=\"btn btn-danger\" [disabled]=\"!df.form.valid\">Désactiver la double authentification</button>\r\n </form>\r\n </section>\r\n\r\n <!-- Connexions par un fournisseur externe (Connexion, B.5.10) -->\r\n <section class=\"security-section\" *ngIf=\"providers.length || linkedLogins.length\">\r\n <h3>Connexions</h3>\r\n <p>Comptes avec lesquels vous pouvez vous connecter à la place de votre mot de passe.</p>\r\n <table class=\"table table-sm\" *ngIf=\"linkedLogins.length\">\r\n <thead><tr><th>Fournisseur</th><th>Compte</th><th>Dernière connexion</th><th></th></tr></thead>\r\n <tbody>\r\n <tr *ngFor=\"let l of linkedLogins\">\r\n <td>{{ l.Provider }}</td>\r\n <td>{{ l.ProviderEmail || l.DisplayName }}</td>\r\n <td>{{ (l.LastLoginDate || l.CreationDate) | date: 'dd/MM/yyyy HH:mm' }}</td>\r\n <td><button type=\"button\" class=\"btn btn-link\" (click)=\"unlink(l)\">Délier</button></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <div class=\"btn-bar link-buttons\">\r\n <div class=\"external-login-google\" *ngIf=\"canLink('Google') && !isNativeApp\" #googleLinkButton></div>\r\n <button type=\"button\" class=\"btn btn-outline-secondary\" *ngIf=\"canLink('Google') && isNativeApp\" (click)=\"linkGoogleNative()\">Lier un compte Google</button>\r\n <button type=\"button\" class=\"btn btn-outline-secondary\" *ngIf=\"canLink('Microsoft')\" (click)=\"linkMicrosoft()\">Lier un compte Microsoft</button>\r\n <button type=\"button\" class=\"btn btn-outline-secondary\" *ngIf=\"canLink('Apple')\" (click)=\"linkApple()\">Lier un identifiant Apple</button>\r\n </div>\r\n </section>\r\n\r\n <!-- Appareils de confiance -->\r\n <section class=\"security-section\" *ngIf=\"status.TrustedDevices?.length\">\r\n <h3>Appareils de confiance</h3>\r\n <p>Le code n'est pas redemandé sur ces appareils jusqu'à la date indiquée.</p>\r\n <table class=\"table table-sm\">\r\n <thead><tr><th>Appareil</th><th>Dernière utilisation</th><th>Jusqu'au</th><th></th></tr></thead>\r\n <tbody>\r\n <tr *ngFor=\"let d of status.TrustedDevices\">\r\n <td class=\"device-label\" [title]=\"d.Label\">{{ d.Label || 'Appareil inconnu' }}</td>\r\n <td>{{ (d.LastUseDate || d.CreationDate) | date: 'dd/MM/yyyy HH:mm' }}</td>\r\n <td>{{ d.ExpirationDate | date: 'dd/MM/yyyy' }}</td>\r\n <td><button type=\"button\" class=\"btn btn-link\" (click)=\"revoke(d)\">Retirer</button></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <button type=\"button\" class=\"btn btn-outline-secondary\" (click)=\"revoke()\">Retirer tous les appareils</button>\r\n </section>\r\n </ng-container>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur DeviceTokenController).\r\n// Ne pas modifier : le code spécifique s'écrit dans DeviceTokenComponent, dérivé de BaseDeviceTokenComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { DeviceTokenFilterViewModel, DeviceTokenView } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des DeviceTokenView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : DeviceTokenComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseDeviceTokenComponent extends BaseComponent<DeviceTokenFilterViewModel, DeviceTokenView> {\r\n getTitle(): string {\r\n return 'Jetons d\\'appareil';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.DeviceToken;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_DEVICETOKEN;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'DTKV';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { BaseDeviceTokenComponent } from './generated/devicetoken.component.generated';\r\n\r\n/**\r\n * Recherche et édition des DeviceTokenView : code spécifique du composant (la partie générée\r\n * est BaseDeviceTokenComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-device-token-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n standalone: false,\r\n changeDetection: ChangeDetectionStrategy.Eager\r\n})\r\nexport class DeviceTokenComponent extends BaseDeviceTokenComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur PresentationProfileAssignmentController).\r\n// Ne pas modifier : le code spécifique s'écrit dans PresentationProfileAssignmentComponent, dérivé de BasePresentationProfileAssignmentComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { PresentationProfileAssignmentFilterViewModel, PresentationProfileAssignmentView } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des PresentationProfileAssignmentView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : PresentationProfileAssignmentComponent.\r\n */\r\n@Directive()\r\nexport abstract class BasePresentationProfileAssignmentComponent extends BaseComponent<PresentationProfileAssignmentFilterViewModel, PresentationProfileAssignmentView> {\r\n getTitle(): string {\r\n return 'Affectation de vue';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.PresentationProfileAssignment;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_PRESENTATIONPROFILEASSIGNMENT;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'PPAV';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { BasePresentationProfileAssignmentComponent } from './generated/presentationprofileassignment.component.generated';\r\n\r\n/**\r\n * Recherche et édition des PresentationProfileAssignmentView : code spécifique du composant (la partie générée\r\n * est BasePresentationProfileAssignmentComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-presentation-profile-assignment-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n standalone: false,\r\n changeDetection: ChangeDetectionStrategy.Eager\r\n})\r\nexport class PresentationProfileAssignmentComponent extends BasePresentationProfileAssignmentComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","import { TreeItem } from '@dflat-core/web/core-model';\r\nimport { Permission } from '@dflat-core/web/meta-model';\r\nimport { RolePermissionRow } from './role-permission-row';\r\nimport { RolePermissionTable } from './role-permission-table';\r\n\r\n/**\r\n * Permissions d'un rôle, construites depuis l'arbre des permissions : une ligne par entité, une colonne\r\n * par permission (Afficher, Ajouter, Modifier, Supprimer, Exporter, puis les autres). Seules les entités\r\n * auxquelles le rôle attribue des droits sont affichées, les autres s'ajoutent à la demande ; les lignes\r\n * affichées sont réparties en un tableau par jeu de droits.\r\n * Toute feuille de l'arbre a une case : une permission sans case serait retirée du rôle à l'enregistrement.\r\n */\r\nexport class RolePermissionGrid {\r\n /** Colonnes placées en tête, dans cet ordre, quand elles existent. */\r\n static readonly standardColumns: string[] = ['Afficher', 'Ajouter', 'Modifier', 'Supprimer', 'Exporter'];\r\n /** Colonne d'une permission sans enfant, qui n'est rattachée à aucune entité. */\r\n static readonly accessColumn: string = 'Accès';\r\n /** Libellé d'une permission sans description. */\r\n static readonly emptyLabel: string = '(sans libellé)';\r\n\r\n /** Lignes de toutes les entités, affichées ou non, dans l'ordre de l'arbre. */\r\n readonly rows: RolePermissionRow[] = [];\r\n\r\n /**\r\n * @param items Racines de l'arbre des permissions (modules).\r\n * @param selection Identifiants des permissions cochées, à la place de l'état de l'arbre : des\r\n * permissions modifiées et pas encore enregistrées.\r\n */\r\n constructor(items: TreeItem<Permission>[], selection?: number[]) {\r\n const addRow = (id: number, group: string, label: string, permissions: [string, TreeItem<Permission>][]) => {\r\n const cells = new Map<string, TreeItem<Permission>>();\r\n permissions.forEach(([name, permission]) => {\r\n if (selection)\r\n permission.checked = selection.includes(permission.value);\r\n // Deux permissions de même libellé sur une entité : chacune garde sa colonne.\r\n let column = name;\r\n for (let i = 2; cells.has(column); i++)\r\n column = `${name} (${i})`;\r\n cells.set(column, permission);\r\n });\r\n const columns = [\r\n ...RolePermissionGrid.standardColumns.filter(column => cells.has(column)),\r\n ...[...cells.keys()].filter(column => !RolePermissionGrid.standardColumns.includes(column))\r\n ];\r\n const row = { id, group, label, columns, cells: columns.map(column => cells.get(column)), shown: false };\r\n row.shown = row.cells.some(cell => cell.checked);\r\n this.rows.push(row);\r\n };\r\n\r\n const visit = (node: TreeItem<Permission>, group: string, path: string[]) => {\r\n const children = node.children ?? [];\r\n const leaves = children.filter(child => RolePermissionGrid.isLeaf(child));\r\n const label = path.length > 0 ? path.join(' / ') : group;\r\n if (children.length === 0)\r\n addRow(node.value, group, label, [[RolePermissionGrid.accessColumn, node]]);\r\n else if (leaves.length > 0)\r\n addRow(node.value, group, label, leaves.map(leaf => [RolePermissionGrid.getLabel(leaf), leaf]));\r\n children.filter(child => !RolePermissionGrid.isLeaf(child))\r\n .forEach(child => visit(child, group, [...path, RolePermissionGrid.getLabel(child)]));\r\n };\r\n\r\n (items ?? []).forEach(root => visit(root, RolePermissionGrid.getLabel(root), []));\r\n }\r\n\r\n /** Indique si le nœud n'a pas d'enfant. */\r\n private static isLeaf(node: TreeItem<Permission>): boolean {\r\n return !node.children || node.children.length === 0;\r\n }\r\n\r\n /** Libellé affiché d'un nœud. */\r\n private static getLabel(node: TreeItem<Permission>): string {\r\n return node.text || RolePermissionGrid.emptyLabel;\r\n }\r\n\r\n /**\r\n * Lignes affichées, réparties en un tableau par jeu de droits : les jeux les plus courts d'abord,\r\n * puis dans l'ordre de l'arbre.\r\n */\r\n getTables(): RolePermissionTable[] {\r\n const tables = new Map<string, RolePermissionTable>();\r\n this.rows.filter(row => row.shown).forEach(row => {\r\n const key = JSON.stringify(row.columns);\r\n if (!tables.has(key))\r\n tables.set(key, { columns: row.columns, rows: [] });\r\n tables.get(key).rows.push(row);\r\n });\r\n return [...tables.values()].sort((a, b) => a.columns.length - b.columns.length);\r\n }\r\n\r\n /** Lignes non affichées : les entités que l'on peut ajouter. */\r\n getHiddenRows(): RolePermissionRow[] {\r\n return this.rows.filter(row => !row.shown);\r\n }\r\n\r\n /**\r\n * Codes de permission (module.entité, en minuscules) des lignes non affichées.\r\n * @param codes Codes des permissions, par identifiant.\r\n */\r\n getHiddenCodes(codes: Map<number, string>): string[] {\r\n const hidden = this.getHiddenRows()\r\n .map(row => (codes.get(row.id) ?? '').toLowerCase())\r\n .filter(code => !!code);\r\n return [...new Set(hidden)];\r\n }\r\n\r\n /**\r\n * Lignes non affichées d'une méta entité : celles dont la permission a pour code module.entité,\r\n * sans tenir compte de la casse.\r\n * @param codes Codes des permissions, par identifiant.\r\n * @param module Module de la méta entité.\r\n * @param entityName Nom de la méta entité.\r\n */\r\n findHiddenRows(codes: Map<number, string>, module: string, entityName: string): RolePermissionRow[] {\r\n const code = `${module}.${entityName}`.toLowerCase();\r\n return this.getHiddenRows().filter(row => (codes.get(row.id) ?? '').toLowerCase() === code);\r\n }\r\n\r\n /** Affiche des lignes, sans rien cocher. */\r\n show(rows: RolePermissionRow[]): void {\r\n rows.forEach(row => row.shown = true);\r\n }\r\n\r\n /** Retire une ligne de l'affichage et décoche ses permissions. */\r\n hide(row: RolePermissionRow): void {\r\n this.setChecked([row], false);\r\n row.shown = false;\r\n }\r\n\r\n /** Identifiants des permissions cochées. */\r\n getSelection(): number[] {\r\n return this.rows.flatMap(row => row.cells)\r\n .filter(cell => cell.checked)\r\n .map(cell => cell.value);\r\n }\r\n\r\n /** Indique si toutes les permissions des lignes sont cochées, pour une colonne ou pour toutes. */\r\n isAllChecked(rows: RolePermissionRow[], column?: number): boolean {\r\n const cells = RolePermissionGrid.getCells(rows, column);\r\n return cells.length > 0 && cells.every(cell => cell.checked);\r\n }\r\n\r\n /** Indique si une partie seulement des permissions des lignes est cochée, pour une colonne ou pour toutes. */\r\n isPartiallyChecked(rows: RolePermissionRow[], column?: number): boolean {\r\n const cells = RolePermissionGrid.getCells(rows, column);\r\n return cells.some(cell => cell.checked) && !cells.every(cell => cell.checked);\r\n }\r\n\r\n /** Coche ou décoche les permissions des lignes, pour une colonne ou pour toutes. */\r\n setChecked(rows: RolePermissionRow[], checked: boolean, column?: number): void {\r\n RolePermissionGrid.getCells(rows, column).forEach(cell => cell.checked = checked);\r\n }\r\n\r\n /** Permissions des lignes, pour une colonne ou pour toutes. */\r\n private static getCells(rows: RolePermissionRow[], column?: number): TreeItem<Permission>[] {\r\n return rows.flatMap(row => column === undefined ? row.cells : [row.cells[column]]).filter(cell => !!cell);\r\n }\r\n}\r\n","import { FieldDescriptor, FilterType, PropertyEditorEvent, Section } from '@dflat-core/web/core-model';\r\nimport { additionalQueryOf, ApplicationService, BaseEntityEditor, ValidationService } from '@dflat-core/web/core-ux';\r\nimport { MetaEntityDataService, PermissionDataService } from '@dflat-core/web/meta-data';\r\nimport { MetaEntity, MetaEntityFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { RoleView } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys } from '@dflat-core/web/identity-root';\r\nimport { MetaEntityKeys } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy, OnInit } from '@angular/core';\r\nimport { of, Subject } from 'rxjs';\r\nimport { catchError, map, switchMap, takeUntil } from 'rxjs/operators';\r\nimport { RolePermissionGrid } from './role-permission-grid';\r\nimport { RolePermissionRow } from './role-permission-row';\r\nimport { RolePermissionTable } from './role-permission-table';\r\n\r\n/**\r\n * Éditeur spécifique des rôles, affiché par l'écran des rôles (RoleComponent) à la place du\r\n * formulaire standard : onglet « Propriétés » (champs du formulaire, rôle parent par le sélecteur de\r\n * rôles) et onglet « Définition » (permissions en tableaux, un par jeu de droits). L'enregistrement\r\n * passe par l'action « Enregistrer » de l'écran.\r\n */\r\n@Component({\r\n selector: 'alg-role-editor',\r\n templateUrl: './role-editor.component.html',\r\n styleUrls: ['./role-editor.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class RoleEditorComponent extends BaseEntityEditor<RoleView> implements OnInit {\r\n\r\n /** Onglet affiché : 0 pour « Propriétés », 1 pour « Définition ». */\r\n activeTab: number = 0;\r\n /** Rôle dont les permissions sont chargées : les onglets ne s'affichent que pour lui. */\r\n loadedEntity: RoleView = undefined;\r\n /** Champ « Rôle parent » : nom du rôle en lecture seule, choix par le sélecteur de rôles. */\r\n parentField: FieldDescriptor = undefined;\r\n\r\n /** Permissions du rôle : entités en lignes, permissions en colonnes. */\r\n grid: RolePermissionGrid = new RolePermissionGrid([]);\r\n /** Tableaux affichés : un par jeu de droits. */\r\n tables: RolePermissionTable[] = [];\r\n\r\n /** Codes des permissions (module.entité), par identifiant : ils relient les lignes aux méta entités. */\r\n private permissionCodes: Map<number, string> = new Map<number, string>();\r\n /** Clés des méta entités (EntityKey), par code de permission (module.entité, en minuscules). */\r\n private metaEntityKeys: Map<string, string> = new Map<string, string>();\r\n /** Rôles dont il faut charger les permissions : seul le dernier demandé est gardé. */\r\n private load$ = new Subject<RoleView>();\r\n\r\n constructor(app: ApplicationService, validationService: ValidationService,\r\n private permissionDataService: PermissionDataService,\r\n private metaEntityDataService: MetaEntityDataService) {\r\n super(app, validationService);\r\n }\r\n\r\n ngOnInit(): void {\r\n this.load$.pipe(\r\n switchMap(entity => this.app.DataService.getEntityViewModel<RoleView>(this.entityKey, entity.Id > 0 ? entity.Id : 0).pipe(\r\n map(viewModel => ({ entity, items: viewModel?.ViewModel?.TreeItems ?? [] })),\r\n catchError(() => of(undefined)))),\r\n takeUntil(this.destroy$)\r\n ).subscribe(loaded => {\r\n if (!loaded || loaded.entity !== this.entity)\r\n return;\r\n // Des permissions déjà modifiées et pas encore enregistrées priment sur celles du serveur.\r\n this.grid = new RolePermissionGrid(loaded.items, loaded.entity.Permissions);\r\n this.refreshTables();\r\n this.loadedEntity = loaded.entity;\r\n });\r\n\r\n super.ngOnInit();\r\n this.loadPermissionCodes();\r\n }\r\n\r\n /** Champs du formulaire des rôles : « Libellé » pour le nom, sélecteur de rôles pour le rôle parent. */\r\n protected alterSections(sections: Section[]): Section[] {\r\n this.parentField = {\r\n PropertyName: 'ParentId',\r\n Label: 'Rôle parent',\r\n FilterType: FilterType.Custom,\r\n ModalEntityKey: IdentityEntityKeys.Role,\r\n ModalTitle: 'Sélectionner le rôle parent',\r\n ModalPropertyValue: 'Id',\r\n ModalPropertyName: 'UniqueName',\r\n ModalTriggerIdProperty: 'ParentId',\r\n ReadOnly: true,\r\n DataFilter: {}\r\n };\r\n\r\n // Le formulaire peut porter ParentId et ParentName : un seul champ « Rôle parent » les remplace.\r\n let hasParent = false;\r\n const altered = sections.map(section => ({\r\n ...section,\r\n FieldViewModels: (section.FieldViewModels ?? []).flatMap(field => {\r\n if (field.PropertyName === 'ParentName' || field.PropertyName === 'ParentId') {\r\n if (hasParent)\r\n return [];\r\n hasParent = true;\r\n return [this.parentField];\r\n }\r\n return [field.PropertyName === 'UniqueName' ? { ...field, Label: 'Libellé' } : field];\r\n })\r\n }));\r\n if (!hasParent) {\r\n if (altered.length === 0)\r\n altered.push({ Name: 'Propriétés', FieldViewModels: [] });\r\n altered[0].FieldViewModels.push(this.parentField);\r\n }\r\n return altered;\r\n }\r\n\r\n /** Charge les permissions du rôle sélectionné ; une ligne réémise sans changement garde son affichage. */\r\n protected onEntityChanged(entity: RoleView): void {\r\n if (entity && entity === this.loadedEntity)\r\n return;\r\n\r\n this.loadedEntity = undefined;\r\n this.grid = new RolePermissionGrid([]);\r\n this.tables = [];\r\n if (!entity)\r\n return;\r\n\r\n // Le rôle en cours d'édition est exclu du sélecteur du rôle parent.\r\n if (this.parentField)\r\n this.parentField.DataFilter = entity.Id > 0 ? { AdditionalQuery: additionalQueryOf({ Property: 'Id', Operator: 'ne', Value: Number(entity.Id) }) } : {};\r\n this.load$.next(entity);\r\n }\r\n\r\n /** Le nom du rôle parent suit le rôle choisi, pour la colonne de la grille. */\r\n onPropertyChanged(event: PropertyEditorEvent): void {\r\n super.onPropertyChanged(event);\r\n if (event.field === this.parentField)\r\n this.publishChanges({ ParentName: event.value?.UniqueName ?? null });\r\n }\r\n\r\n /** Retire le rôle parent. */\r\n onClearParent() {\r\n this.form.get(this.parentField.PropertyName)?.setValue(null);\r\n this.onPropertyChanged({ field: this.parentField, value: null, type: 'selector' });\r\n }\r\n\r\n /** Publie les permissions cochées : le rôle devient modifié, l'action « Enregistrer » les envoie. */\r\n onPermissionsChanged() {\r\n // L'arbre ne sert qu'à l'affichage : il n'est pas renvoyé au serveur.\r\n this.publishChanges({ Permissions: this.grid.getSelection(), TreeItems: undefined });\r\n }\r\n\r\n /** Charge les codes des permissions et les clés des méta entités, qui relient une ligne à sa méta entité. */\r\n private loadPermissionCodes() {\r\n this.permissionDataService.search({ Offset: 0, Take: 100000 }).subscribe(res =>\r\n (res?.Values ?? []).forEach(permission => this.permissionCodes.set(permission.Id, permission.Code)));\r\n this.metaEntityDataService.search({ Offset: 0, Take: 100000 }).subscribe(res =>\r\n (res?.Values ?? []).forEach(entity => this.metaEntityKeys.set(`${entity.Module}.${entity.EntityName}`.toLowerCase(), entity.EntityKey)));\r\n }\r\n\r\n /** Ouvre le sélecteur de méta entités, limité aux entités absentes des tableaux, et ajoute celles choisies. */\r\n onAddRows() {\r\n // Le sélecteur filtre sur la clé de la méta entité (EntityKey), retrouvée par le code de permission.\r\n const keys = this.grid.getHiddenCodes(this.permissionCodes)\r\n .map(code => this.metaEntityKeys.get(code))\r\n .filter(key => !!key);\r\n if (keys.length === 0) {\r\n this.app.ToastrService.info('Toutes les entités sont déjà dans les tableaux.', 'Permissions');\r\n return;\r\n }\r\n\r\n const filter: MetaEntityFilterViewModel = { MetaEntityKeyList: keys };\r\n this.app.selectorMapperService\r\n .openSelectorModal<MetaEntity, MetaEntityFilterViewModel>(MetaEntityKeys.MetaEntity, 'Ajouter des entités', filter)\r\n .subscribe(entities => {\r\n const missing = (entities ?? []).filter(entity => {\r\n const rows = this.grid.findHiddenRows(this.permissionCodes, entity.Module, entity.EntityName);\r\n this.grid.show(rows);\r\n return rows.length === 0;\r\n });\r\n if (missing.length > 0)\r\n this.app.ToastrService.warning('Aucune permission à attribuer pour : ' + missing.map(entity => entity.Label || entity.EntityName).join(', '), 'Permissions');\r\n this.refreshTables();\r\n });\r\n }\r\n\r\n /** Retire une entité des tableaux : le rôle ne lui attribue plus aucun droit. */\r\n onRemoveRow(row: RolePermissionRow) {\r\n this.grid.hide(row);\r\n this.refreshTables();\r\n this.onPermissionsChanged();\r\n }\r\n\r\n /** Recalcule les tableaux affichés. */\r\n private refreshTables() {\r\n this.tables = this.grid.getTables();\r\n }\r\n}\r\n","<div class=\"role-editor\">\r\n @if (loadedEntity) {\r\n <alg-tabset [showNavs]=\"true\" [pills]=\"false\" (onSelect)=\"activeTab = $event\">\r\n\r\n <!--Propriétés : champs du formulaire des rôles, avec les composants des formulaires-->\r\n <alg-tab title=\"Propriétés\" [active]=\"activeTab === 0\" [class.role-editor-tab]=\"activeTab === 0\">\r\n <div class=\"property-container role-editor-properties\">\r\n @for (section of sections; track section.Name) {\r\n <div class=\"property-section-container\">\r\n <div class=\"property-section-title\">{{ section.Name }}</div>\r\n <div class=\"property-section-content\">\r\n @for (field of section.FieldViewModels; track field.PropertyName) {\r\n <div class=\"property-row\" [hidden]=\"field.IsHidden\" [class.role-editor-parent]=\"field === parentField\">\r\n <alg-field [field]=\"field\" [form]=\"form\" [readonly]=\"readonly\"\r\n (propertyChanged)=\"onPropertyChanged($event)\">\r\n </alg-field>\r\n @if (field === parentField && !readonly && form.get(field.PropertyName)?.value) {\r\n <button type=\"button\" class=\"btn btn-link\" title=\"Retirer le rôle parent\"\r\n (click)=\"onClearParent()\"><i class=\"fa fa-times\"></i></button>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </alg-tab>\r\n\r\n <!--Définition : un tableau par jeu de droits, entités en lignes, permissions en colonnes-->\r\n <alg-tab title=\"Définition\" [active]=\"activeTab === 1\" [class.role-editor-tab]=\"activeTab === 1\">\r\n <div class=\"role-permissions\">\r\n @if (!readonly) {\r\n <div class=\"role-permissions-toolbar\">\r\n <button type=\"button\" class=\"btn btn-primary btn-flat\" (click)=\"onAddRows()\"><i class=\"fa fa-plus\"></i> Ajouter</button>\r\n </div>\r\n }\r\n <div class=\"role-permissions-scroll\">\r\n @for (table of tables; track table.columns) {\r\n <table class=\"table role-permissions-table\">\r\n <thead>\r\n <tr>\r\n <th class=\"role-permissions-entity\">Entité</th>\r\n @for (column of table.columns; track column; let c = $index) {\r\n <th class=\"role-permissions-cell\">\r\n <label>\r\n <span>{{ column }}</span>\r\n <input type=\"checkbox\" title=\"{{ column }} : tout cocher ou décocher\" [disabled]=\"readonly\"\r\n [checked]=\"grid.isAllChecked(table.rows, c)\" [indeterminate]=\"grid.isPartiallyChecked(table.rows, c)\"\r\n (change)=\"grid.setChecked(table.rows, $any($event.target).checked, c); onPermissionsChanged()\" />\r\n </label>\r\n </th>\r\n }\r\n <th class=\"role-permissions-cell\">\r\n <label>\r\n <span>Tout</span>\r\n <input type=\"checkbox\" title=\"Tout cocher ou décocher\" [disabled]=\"readonly\"\r\n [checked]=\"grid.isAllChecked(table.rows)\" [indeterminate]=\"grid.isPartiallyChecked(table.rows)\"\r\n (change)=\"grid.setChecked(table.rows, $any($event.target).checked); onPermissionsChanged()\" />\r\n </label>\r\n </th>\r\n <th class=\"role-permissions-action\"></th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (row of table.rows; track row) {\r\n <tr>\r\n <th class=\"role-permissions-entity\">{{ row.label }} <small>{{ row.group }}</small></th>\r\n @for (cell of row.cells; track cell; let c = $index) {\r\n <td class=\"role-permissions-cell\">\r\n <input type=\"checkbox\" title=\"{{ row.label }} : {{ row.columns[c] }}\" [disabled]=\"readonly\"\r\n [checked]=\"cell.checked\" (change)=\"cell.checked = $any($event.target).checked; onPermissionsChanged()\" />\r\n </td>\r\n }\r\n <td class=\"role-permissions-cell\">\r\n <input type=\"checkbox\" title=\"{{ row.label }} : tout cocher ou décocher\" [disabled]=\"readonly\"\r\n [checked]=\"grid.isAllChecked([row])\" [indeterminate]=\"grid.isPartiallyChecked([row])\"\r\n (change)=\"grid.setChecked([row], $any($event.target).checked); onPermissionsChanged()\" />\r\n </td>\r\n <td class=\"role-permissions-action\">\r\n @if (!readonly) {\r\n <button type=\"button\" class=\"btn btn-link\" title=\"Retirer {{ row.label }} : le rôle ne lui attribue plus aucun droit\"\r\n (click)=\"onRemoveRow(row)\"><i class=\"fa fa-times\"></i></button>\r\n }\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </table>\r\n } @empty {\r\n <p class=\"role-permissions-empty\">Ce rôle n'attribue aucun droit. Utiliser « Ajouter » pour choisir des entités.</p>\r\n }\r\n </div>\r\n </div>\r\n </alg-tab>\r\n </alg-tabset>\r\n } @else if (!entity) {\r\n <p class=\"role-permissions-empty\">Sélectionner un rôle pour le modifier.</p>\r\n }\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur RoleController).\r\n// Ne pas modifier : le code spécifique s'écrit dans RoleComponent, dérivé de BaseRoleComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent, EntitySections } from '@dflat-core/web/core-ux';\r\nimport { RoleFilterViewModel, RoleView } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des RoleView (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : RoleComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseRoleComponent extends BaseComponent<RoleFilterViewModel, RoleView> {\r\n getTitle(): string {\r\n return 'Rôles';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.Role;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_ROLE;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'RLE';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n // Après les onglets du composant spécifique (enregistrés dans son ngOnInit), qui priment.\r\n Promise.resolve().then(() => this.registerFormSections());\r\n }\r\n\r\n /**\r\n * Onglets des entités liées (relation 1..*) : sections du formulaire par défaut\r\n * (metadata/04-forms/RoleForm.sql), déclarées par IdentityGeneratedSectionService\r\n * (identity-sections.generated.ts) et demandées au registre du socle par la clé de l'entité :\r\n * ce composant n'importe aucun composant d'onglet. Un onglet de la même entité déjà enregistré\r\n * par le composant spécifique n'est pas dupliqué.\r\n */\r\n protected registerFormSections(): void {\r\n EntitySections.registerSections(this.getEntityKey(), this.facade);\r\n }\r\n}\r\n","import { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { RoleEditorComponent } from '../editor-components/role-editor.component';\r\nimport { BaseRoleComponent } from './generated/role.component.generated';\r\n\r\n@Component({\r\n selector: 'alg-role',\r\n templateUrl:\r\n '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false,\r\n})\r\nexport class RoleComponent extends BaseRoleComponent {\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n\r\n // Éditeur spécifique : propriétés et tableaux des permissions, à la place du formulaire standard.\r\n this.editorComponent = RoleEditorComponent;\r\n this.facade.layout.setFixedLayout({ IsVerticalLayout : false, PropertyFlexGrow : 50 });\r\n }\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur RolePermissionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans RolePermissionComponent, dérivé de BaseRolePermissionComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { RolePermission, RolePermissionFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des RolePermission (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : RolePermissionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseRolePermissionComponent extends BaseComponent<RolePermissionFilterViewModel, RolePermission> {\r\n getTitle(): string {\r\n return 'Permission de rôle';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.RolePermission;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_ROLEPERMISSION;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'RLP';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseRolePermissionComponent } from './generated/rolepermission.component.generated';\r\n\r\n/**\r\n * Recherche et édition des RolePermission : code spécifique du composant (la partie générée\r\n * est BaseRolePermissionComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-role-permission-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class RolePermissionComponent extends BaseRolePermissionComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserPermissionViewController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserPermissionViewComponent, dérivé de BaseUserPermissionViewComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserPermissionView, UserPermissionViewFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserPermissionView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserPermissionViewComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserPermissionViewComponent extends BaseComponent<UserPermissionViewFilterViewModel, UserPermissionView> {\r\n getTitle(): string {\r\n return 'Permissions de l\\'utilisateur';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserPermissionView;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERPERMISSIONVIEW;\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { BaseUserPermissionViewComponent } from './generated/userpermissionview.component.generated';\r\n\r\n@Component({\r\n selector: 'alg-user-permission',\r\n templateUrl:\r\n '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserPermissionComponent extends BaseUserPermissionViewComponent {\r\n\r\n getTitle(): string {\r\n return 'Permissions';\r\n }\r\n\r\n constructor(app: ApplicationService,\r\n protected route: ActivatedRoute)\r\n {\r\n super(app, route);\r\n \r\n this.filterAction(\"edit\");\r\n this.filterAction(\"export\");\r\n this.filterAction(\"save\");\r\n this.filterAction(\"showHistory\");\r\n this.filterAction(\"add\");\r\n this.filterAction(\"delete\");\r\n }\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserAccountRoleController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserAccountRoleComponent, dérivé de BaseUserAccountRoleComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserAccountRoleFilterViewModel, UserAccountRoleView } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserAccountRoleView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserAccountRoleComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserAccountRoleComponent extends BaseComponent<UserAccountRoleFilterViewModel, UserAccountRoleView> {\r\n getTitle(): string {\r\n return 'Rôle de l\\'utilisateur';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserAccountRole;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERACCOUNTROLE;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UARV';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { Utilities } from '@dflat-core/web/core';\r\nimport { AlertService, FacadeModalService, MessageSeverity } from '@dflat-core/web/core-ux';\r\nimport {\r\n UserGroupDefinitionDataService,\r\n UserAccountRoleDataService,\r\n} from '@dflat-core/web/identity-data';\r\nimport {\r\n UserAccount,\r\n UserAccountFilterViewModel,\r\n RoleFilterViewModel,\r\n RoleView,\r\n UserAccountRoleView,\r\n UserGroupDefinitionView,\r\n} from '@dflat-core/web/identity-model';\r\nimport { EventEmitter, Injectable } from '@angular/core';\r\nimport { Observable, tap } from 'rxjs';\r\nimport { UserAccountComponent } from '../data-components/useraccount.component';\r\nimport { RoleComponent } from '../data-components/role.component';\r\n\r\n@Injectable()\r\nexport class UserActionService {\r\n constructor(\r\n public alertService: AlertService,\r\n private userGroupDefinitionDataService: UserGroupDefinitionDataService,\r\n public userRoleDataService: UserAccountRoleDataService,\r\n private selector: FacadeModalService\r\n ) { }\r\n\r\n public onSelection: EventEmitter<void> = new EventEmitter();\r\n public onRoleAdded: EventEmitter<any> = new EventEmitter<any>();\r\n\r\n addUserToGroup(groupId: number) {\r\n if (groupId == null) return;\r\n\r\n let modal = this.selector.openSelectorModal(\r\n 'Ajouter des utilisateurs au groupe',\r\n UserAccountComponent,\r\n (component) => {\r\n component.facade.config.addAlterDefaultFilterFunction(()=> {\r\n let filter: UserAccountFilterViewModel = {\r\n ExcludedGroupId : groupId\r\n };\r\n return filter;\r\n })\r\n }\r\n );\r\n\r\n let subscription = modal.subscribe((selected: UserAccount[]) => {\r\n subscription.unsubscribe();\r\n\r\n if (!Utilities.IsNil(selected)) {\r\n let models: UserGroupDefinitionView[] = [];\r\n selected.forEach((element) => {\r\n var usg: UserGroupDefinitionView = {\r\n GroupId: groupId,\r\n UserAccountId: element.Id,\r\n };\r\n models.push(usg);\r\n });\r\n this.userGroupDefinitionDataService\r\n .saveEntities(models)\r\n .subscribe( {\r\n next: (res) => {\r\n if (res.Success)\r\n this.alertService.showMessage(\r\n `Groupes d'utilisateurs`,\r\n `La selection des utilisateura été effectuée avec succès`,\r\n MessageSeverity.Success\r\n );\r\n else this.alertService.handleSaveError(res);\r\n },\r\n error: (err) => {\r\n this.alertService.showMessage(\r\n 'Erreur',\r\n err.error.Message,\r\n MessageSeverity.Error\r\n );\r\n },\r\n complete: () => {\r\n this.onSelection.emit();\r\n }\r\n }\r\n );\r\n }\r\n });\r\n }\r\n\r\n addUserRole(userAccountId: number) {\r\n return this.selector\r\n .openSelectorModal(\r\n 'Sélectionnez un rôle à ajouter',\r\n RoleComponent,\r\n (component) => {\r\n component.facade.config.addAlterDefaultFilterFunction(() => {\r\n let filter: RoleFilterViewModel = {};\r\n filter.UserAccountId = userAccountId;\r\n filter.ExceptUserRoles = true;\r\n return filter;\r\n })})\r\n .subscribe((res: RoleView[]) => {\r\n // Rôles choisis -> affectations du compte utilisateur.\r\n let models: UserAccountRoleView[] = res?.map(role => ({ UserAccountId: userAccountId, RoleId: role.Id }));\r\n\r\n if (models != undefined && models.length > 0)\r\n this.userRoleDataService.saveEntities(models).subscribe( {\r\n next: (result) => {\r\n if (result.Success) {\r\n this.alertService.showMessage(\r\n `Sociétés`,\r\n `L'ajout des rôles a été effectué avec succès`,\r\n MessageSeverity.Success\r\n );\r\n } else this.alertService.handleSaveError(result);\r\n },\r\n error: (err) => {\r\n this.alertService.showMessage(\r\n 'Erreur',\r\n err.error.Message,\r\n MessageSeverity.Error\r\n );\r\n },\r\n complete: () => {\r\n this.onRoleAdded.emit(); \r\n }\r\n }); \r\n });\r\n }\r\n\r\n}\r\n","import { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { Component, EventEmitter, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { BaseUserAccountRoleComponent } from './generated/useraccountrole.component.generated';\r\nimport { takeUntil } from 'rxjs';\r\nimport { UserActionService } from '../services/user-action-service';\r\n\r\n@Component({\r\n selector: 'alg-user-role',\r\n templateUrl:\r\n '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false,\r\n})\r\nexport class UserRoleComponent extends BaseUserAccountRoleComponent {\r\n public onRoleAdded: EventEmitter<any> = new EventEmitter<any>();\r\n \r\n getTitle(): string {\r\n return \"Rôles de l'utilisateur\";\r\n }\r\n\r\n constructor(\r\n app: ApplicationService,\r\n protected route: ActivatedRoute,\r\n private userActionService: UserActionService\r\n ) {\r\n super(app, route);\r\n }\r\n\r\n ngOnInit() {\r\n super.ngOnInit();\r\n this.facade.actions.hideActions(['export', 'save','showHistory']);\r\n this.facade.actions.patch('add',{\r\n action :() => this.add(),\r\n })\r\n\r\n this.userActionService.onRoleAdded.asObservable().pipe(takeUntil(this.destroy$)).subscribe(()=>{ \r\n this.loadData();\r\n this.onRoleAdded.emit();\r\n });\r\n }\r\n\r\n add() {\r\n let userAccountId = this.Filter.UserAccountId;\r\n this.userActionService.addUserRole(userAccountId);\r\n \r\n }\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserAccountController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserAccountComponent, dérivé de BaseUserAccountComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent, EntitySections } from '@dflat-core/web/core-ux';\r\nimport { UserAccount, UserAccountFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserAccount (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : UserAccountComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserAccountComponent extends BaseComponent<UserAccountFilterViewModel, UserAccount> {\r\n getTitle(): string {\r\n return 'Utilisateurs';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserAccount;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERACCOUNT;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UAC';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n // Après les onglets du composant spécifique (enregistrés dans son ngOnInit), qui priment.\r\n Promise.resolve().then(() => this.registerFormSections());\r\n }\r\n\r\n /**\r\n * Onglets des entités liées (relation 1..*) : sections du formulaire par défaut\r\n * (metadata/04-forms/UserAccountForm.sql), déclarées par IdentityGeneratedSectionService\r\n * (identity-sections.generated.ts) et demandées au registre du socle par la clé de l'entité :\r\n * ce composant n'importe aucun composant d'onglet. Un onglet de la même entité déjà enregistré\r\n * par le composant spécifique n'est pas dupliqué.\r\n */\r\n protected registerFormSections(): void {\r\n EntitySections.registerSections(this.getEntityKey(), this.facade);\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\n\r\n/**\r\n * Point d'extension de l'écran des comptes utilisateurs : un module installé après Identity (System) y ajoute ses\r\n * onglets (sociétés du compte...). Chaque extension reçoit le composant de l'écran dans son ngOnInit, après les\r\n * onglets d'Identity (rôles, permissions). (Découpage modulaire System/Meta/Identity, D.4.)\r\n */\r\nexport interface UserAccountSectionExtension {\r\n /** Enregistre les onglets du module sur l'écran des comptes (`component.facade.sections.registerSection`). */\r\n register(component: any): void;\r\n}\r\n\r\n/** Extensions de l'écran des comptes utilisateurs, fournies avec `multi: true`. */\r\nexport const USER_ACCOUNT_SECTIONS = new InjectionToken<UserAccountSectionExtension[]>('USER_ACCOUNT_SECTIONS');\r\n","import { PermissionFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { UserAccount, UserAccountRoleFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { UserPermissionComponent } from './userpermission.component';\r\nimport { UserRoleComponent } from './userrole.component';\r\nimport { Component, ChangeDetectionStrategy, inject } from '@angular/core';\r\nimport { BaseUserAccountComponent } from './generated/useraccount.component.generated';\r\nimport { USER_ACCOUNT_SECTIONS } from './user-account-sections';\r\n\r\n@Component({\r\n selector: 'alg-user-account',\r\n templateUrl:\r\n '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false,\r\n})\r\nexport class UserAccountComponent extends BaseUserAccountComponent {\r\n ROLE_SECTION: string = 'Roles';\r\n PERMISSION_SECTION: string = 'Permissions';\r\n\r\n /** Onglets des autres modules (sociétés du compte dans System) : point d'extension USER_ACCOUNT_SECTIONS. */\r\n private readonly sectionExtensions = inject(USER_ACCOUNT_SECTIONS, { optional: true }) ?? [];\r\n\r\n // Titre métier (le titre généré est « Utilisateurs »).\r\n getTitle(): string {\r\n return 'Comptes utilisateurs';\r\n }\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n\r\n let currentComponent: UserAccountComponent = this;\r\n \r\n this.facade.sections.registerSection(\r\n this.ROLE_SECTION,\r\n UserRoleComponent,\r\n {\r\n layoutOverride : (component) => {\r\n component.facade.layout.disablePropertyPanel();\r\n },\r\n initOverride : (component: UserRoleComponent) => {\r\n\r\n component.facade.actions.actionResult$.subscribe({\r\n next : (value) => {\r\n // Lorsqu'on ajoute ou on supprime un rôle à l'utilisateur, on doit mettre à jour la liste des permissions\r\n // On met donc le dirtyFlag sur le composant de permissions afin de forcer le chargement si l'utilisateur clique sur l'onglet.\r\n if(value.actionName == 'delete' || value.actionName == 'add')\r\n currentComponent.facade.sections.setSectionDirty(currentComponent.PERMISSION_SECTION);\r\n },\r\n });\r\n },\r\n filterOverride : (selected: UserAccount[]) => {\r\n const filter: UserAccountRoleFilterViewModel = {\r\n UserAccountId: selected[0].Id ?? -1,\r\n };\r\n return filter;\r\n }\r\n \r\n }\r\n );\r\n\r\n this.facade.sections.registerSection(this.PERMISSION_SECTION,UserPermissionComponent,\r\n {\r\n layoutOverride : (component) => {\r\n component.facade.layout.disablePropertyPanel();\r\n },\r\n filterOverride : (selected: UserAccount[]) => {\r\n const filter: PermissionFilterViewModel = {\r\n UserAccountId: selected[0].Id ?? -1,};\r\n return filter;\r\n }\r\n });\r\n // Onglets des modules installés après Identity (sociétés du compte...).\r\n this.sectionExtensions.forEach(extension => extension.register(this));\r\n\r\n this.facade.actions.actionResult$.subscribe((res)=> {\r\n if(res.sectionName)\r\n this.loadData();\r\n });\r\n\r\n this.facade.layout.setFixedLayout({IsVerticalLayout : false, PropertyFlexGrow : 60});\r\n\r\n // // controle mot de pass .\r\n // this.facade.change.setInterceptor({\r\n // afterApply: (entity : UserAccount, event : PropertyEditorEvent) => {\r\n // // if(event.field.FilterType == FilterType.Password)\r\n // return entity;\r\n // }\r\n // });\r\n }\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserAccountLoginController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserAccountLoginComponent, dérivé de BaseUserAccountLoginComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserAccountLoginFilterViewModel, UserAccountLoginView } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserAccountLoginView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserAccountLoginComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserAccountLoginComponent extends BaseComponent<UserAccountLoginFilterViewModel, UserAccountLoginView> {\r\n getTitle(): string {\r\n return 'Identité externe';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserAccountLogin;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERACCOUNTLOGIN;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UALV';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { BaseUserAccountLoginComponent } from './generated/useraccountlogin.component.generated';\r\n\r\n/**\r\n * Recherche et édition des UserAccountLoginView : code spécifique du composant (la partie générée\r\n * est BaseUserAccountLoginComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-user-account-login-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n standalone: false,\r\n changeDetection: ChangeDetectionStrategy.Eager\r\n})\r\nexport class UserAccountLoginComponent extends BaseUserAccountLoginComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseUserAccountRoleComponent } from './generated/useraccountrole.component.generated';\r\n\r\n/**\r\n * Recherche et édition des UserAccountRoleView : code spécifique du composant (la partie générée\r\n * est BaseUserAccountRoleComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-user-account-role-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserAccountRoleComponent extends BaseUserAccountRoleComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserAccountTokenController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserAccountTokenComponent, dérivé de BaseUserAccountTokenComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserAccountToken, UserAccountTokenFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserAccountToken (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserAccountTokenComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserAccountTokenComponent extends BaseComponent<UserAccountTokenFilterViewModel, UserAccountToken> {\r\n getTitle(): string {\r\n return 'Jeton utilisateur';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserAccountToken;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERACCOUNTTOKEN;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UAT';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseUserAccountTokenComponent } from './generated/useraccounttoken.component.generated';\r\n\r\n/**\r\n * Recherche et édition des UserAccountToken : code spécifique du composant (la partie générée\r\n * est BaseUserAccountTokenComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-user-account-token-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserAccountTokenComponent extends BaseUserAccountTokenComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserFavoriteController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserFavoriteComponent, dérivé de BaseUserFavoriteComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserFavorite, UserFavoriteFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserFavorite (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserFavoriteComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserFavoriteComponent extends BaseComponent<UserFavoriteFilterViewModel, UserFavorite> {\r\n getTitle(): string {\r\n return 'Favori';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserFavorite;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERFAVORITE;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UFT';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseUserFavoriteComponent } from './generated/userfavorite.component.generated';\r\n\r\n/**\r\n * Recherche et édition des UserFavorite : code spécifique du composant (la partie générée\r\n * est BaseUserFavoriteComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-user-favorite-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserFavoriteComponent extends BaseUserFavoriteComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserGroupDefinitionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserGroupDefinitionComponent, dérivé de BaseUserGroupDefinitionComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserGroupDefinitionFilterViewModel, UserGroupDefinitionView } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserGroupDefinitionView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserGroupDefinitionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserGroupDefinitionComponent extends BaseComponent<UserGroupDefinitionFilterViewModel, UserGroupDefinitionView> {\r\n getTitle(): string {\r\n return 'Association d\\'utilisateurs';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserGroupDefinition;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERGROUPDEFINITION;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UGDV';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { takeUntil } from 'rxjs';\r\nimport { UserActionService } from '../services/user-action-service';\r\nimport { BaseUserGroupDefinitionComponent } from './generated/usergroupdefinition.component.generated';\r\n\r\n@Component({\r\n selector: 'msw-usergroupdefinition',\r\n templateUrl:\r\n '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false,\r\n})\r\nexport class UserGroupDefinitionComponent extends BaseUserGroupDefinitionComponent {\r\n // Titre métier (le titre généré est « Association d'utilisateurs »).\r\n getTitle(): string {\r\n return \"Définition du groupe d'utilisateurs\";\r\n }\r\n\r\n constructor(\r\n app: ApplicationService,\r\n protected route: ActivatedRoute,\r\n private userActionService: UserActionService\r\n ) {\r\n super(app, route);\r\n }\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n\r\n this.filterAction('edit');\r\n this.filterAction('save');\r\n this.facade.actions.patch('add', { action : () => this.add()});\r\n\r\n this.userActionService.onSelection\r\n .pipe(takeUntil(this.destroy$))\r\n .subscribe((r) => {\r\n this.loadData();\r\n });\r\n }\r\n\r\n add(): void {\r\n const groupId = this.Filter.GroupId;\r\n this.userActionService.addUserToGroup(groupId);\r\n }\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserGroupController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserGroupComponent, dérivé de BaseUserGroupComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserGroup, UserGroupFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserGroup (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserGroupComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserGroupComponent extends BaseComponent<UserGroupFilterViewModel, UserGroup> {\r\n getTitle(): string {\r\n return 'Groupe d\\'utilisateurs';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserGroup;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERGROUP;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UGR';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import {\r\n UserGroup,\r\n UserGroupDefinitionFilterViewModel,\r\n} from '@dflat-core/web/identity-model';\r\nimport { UserGroupDefinitionComponent } from './usergroupdefinition.component';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseUserGroupComponent } from './generated/usergroup.component.generated';\r\n\r\n@Component({\r\n selector: 'msw-usergroup',\r\n templateUrl:\r\n '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false,\r\n})\r\nexport class UserGroupComponent extends BaseUserGroupComponent {\r\n USER_GROUP_DEFINITION_SECTION: string = 'Utilisateurs';\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n\r\n this.facade.layout.setFixedLayout({ IsVerticalLayout : true, PropertyFlexGrow : 70 });\r\n\r\n this.facade.sections.registerSection(\r\n this.USER_GROUP_DEFINITION_SECTION,\r\n UserGroupDefinitionComponent,\r\n {\r\n layoutOverride : (component) => {\r\n component.facade.layout.disablePropertyPanel();\r\n },\r\n filterOverride : (selected: UserGroup[]) => {\r\n const filter: UserGroupDefinitionFilterViewModel = {\r\n GroupId: selected[0].Id ?? -1,\r\n UserAccountId: -1,\r\n };\r\n return filter;\r\n }\r\n });\r\n }\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserHistoryController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserHistoryComponent, dérivé de BaseUserHistoryComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserHistory, UserHistoryFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserHistory (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserHistoryComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserHistoryComponent extends BaseComponent<UserHistoryFilterViewModel, UserHistory> {\r\n getTitle(): string {\r\n return 'Historique utilisateur';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserHistory;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERHISTORY;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UHR';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseUserHistoryComponent } from './generated/userhistory.component.generated';\r\n\r\n/**\r\n * Recherche et édition des UserHistory : code spécifique du composant (la partie générée\r\n * est BaseUserHistoryComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-user-history-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserHistoryComponent extends BaseUserHistoryComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseUserPermissionViewComponent } from './generated/userpermissionview.component.generated';\r\n\r\n/**\r\n * Recherche et édition des UserPermissionView : code spécifique du composant (la partie générée\r\n * est BaseUserPermissionViewComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-user-permission-view-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserPermissionViewComponent extends BaseUserPermissionViewComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserSessionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserSessionComponent, dérivé de BaseUserSessionComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserSession, UserSessionFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserSession (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserSessionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserSessionComponent extends BaseComponent<UserSessionFilterViewModel, UserSession> {\r\n getTitle(): string {\r\n return 'Sessions utilisateur';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserSession;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERSESSION;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'USS';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseUserSessionComponent } from './generated/usersession.component.generated';\r\n\r\n/**\r\n * Recherche et édition des UserSession : code spécifique du composant (la partie générée\r\n * est BaseUserSessionComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-user-session-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserSessionComponent extends BaseUserSessionComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, module Identity).\r\n// Ne pas modifier : les composants et routes propres au module s'ajoutent dans son module Angular.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Routes } from '@angular/router';\r\nimport { CanDeactivateGuard, EntitySelector } from '@dflat-core/web/core-ux';\r\nimport { DeviceTokenDataService, PresentationProfileAssignmentDataService, RoleDataService, RolePermissionDataService, UserAccountDataService, UserAccountLoginDataService, UserAccountRoleDataService, UserAccountTokenDataService, UserFavoriteDataService, UserGroupDataService, UserGroupDefinitionDataService, UserHistoryDataService, UserPermissionViewDataService, UserSessionDataService } from '@dflat-core/web/identity-data';\r\nimport { IdentityEntityKeys } from '@dflat-core/web/identity-root';\r\nimport { DeviceTokenComponent } from '../devicetoken.component';\r\nimport { PresentationProfileAssignmentComponent } from '../presentationprofileassignment.component';\r\nimport { RoleComponent } from '../role.component';\r\nimport { RolePermissionComponent } from '../rolepermission.component';\r\nimport { UserAccountComponent } from '../useraccount.component';\r\nimport { UserAccountLoginComponent } from '../useraccountlogin.component';\r\nimport { UserAccountRoleComponent } from '../useraccountrole.component';\r\nimport { UserAccountTokenComponent } from '../useraccounttoken.component';\r\nimport { UserFavoriteComponent } from '../userfavorite.component';\r\nimport { UserGroupComponent } from '../usergroup.component';\r\nimport { UserGroupDefinitionComponent } from '../usergroupdefinition.component';\r\nimport { UserHistoryComponent } from '../userhistory.component';\r\nimport { UserPermissionViewComponent } from '../userpermissionview.component';\r\nimport { UserSessionComponent } from '../usersession.component';\r\n\r\n/** Composants des entités du module Identity (composants spécifiques), à déclarer dans son module Angular. */\r\nexport const IdentityGeneratedComponents = [\r\n DeviceTokenComponent,\r\n PresentationProfileAssignmentComponent,\r\n RoleComponent,\r\n RolePermissionComponent,\r\n UserAccountComponent,\r\n UserAccountLoginComponent,\r\n UserAccountRoleComponent,\r\n UserAccountTokenComponent,\r\n UserFavoriteComponent,\r\n UserGroupComponent,\r\n UserGroupDefinitionComponent,\r\n UserHistoryComponent,\r\n UserPermissionViewComponent,\r\n UserSessionComponent,\r\n];\r\n\r\n/** Routes des composants des entités du module Identity (clé d'entité), à ajouter à RouterModule.forChild. */\r\nexport const IdentityGeneratedRoutes: Routes = [\r\n { path: IdentityEntityKeys.DeviceToken, component: DeviceTokenComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.PresentationProfileAssignment, component: PresentationProfileAssignmentComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.Role, component: RoleComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.RolePermission, component: RolePermissionComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserAccount, component: UserAccountComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserAccountLogin, component: UserAccountLoginComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserAccountRole, component: UserAccountRoleComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserAccountToken, component: UserAccountTokenComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserFavorite, component: UserFavoriteComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserGroup, component: UserGroupComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserGroupDefinition, component: UserGroupDefinitionComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserHistory, component: UserHistoryComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserPermissionView, component: UserPermissionViewComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserSession, component: UserSessionComponent, canDeactivate: [CanDeactivateGuard] },\r\n];\r\n\r\n/**\r\n * Sélecteurs d'entité du module Identity (champs Custom des formulaires, ModalEntityKey = entité),\r\n * à enregistrer dans le constructeur de son module Angular : EntitySelectors.register(IdentityGeneratedSelectors, injector).\r\n */\r\nexport const IdentityGeneratedSelectors: EntitySelector[] = [\r\n { key: IdentityEntityKeys.DeviceToken, component: DeviceTokenComponent, title: 'Jetons d\\'appareil', dataService: DeviceTokenDataService },\r\n { key: IdentityEntityKeys.PresentationProfileAssignment, component: PresentationProfileAssignmentComponent, title: 'Affectation de vue', dataService: PresentationProfileAssignmentDataService },\r\n { key: IdentityEntityKeys.Role, component: RoleComponent, title: 'Rôles', dataService: RoleDataService },\r\n { key: IdentityEntityKeys.RolePermission, component: RolePermissionComponent, title: 'Permission de rôle', dataService: RolePermissionDataService },\r\n { key: IdentityEntityKeys.UserAccount, component: UserAccountComponent, title: 'Utilisateurs', dataService: UserAccountDataService },\r\n { key: IdentityEntityKeys.UserAccountLogin, component: UserAccountLoginComponent, title: 'Identité externe', dataService: UserAccountLoginDataService },\r\n { key: IdentityEntityKeys.UserAccountRole, component: UserAccountRoleComponent, title: 'Rôle de l\\'utilisateur', dataService: UserAccountRoleDataService },\r\n { key: IdentityEntityKeys.UserAccountToken, component: UserAccountTokenComponent, title: 'Jeton utilisateur', dataService: UserAccountTokenDataService },\r\n { key: IdentityEntityKeys.UserFavorite, component: UserFavoriteComponent, title: 'Favori', dataService: UserFavoriteDataService },\r\n { key: IdentityEntityKeys.UserGroup, component: UserGroupComponent, title: 'Groupe d\\'utilisateurs', dataService: UserGroupDataService },\r\n { key: IdentityEntityKeys.UserGroupDefinition, component: UserGroupDefinitionComponent, title: 'Association d\\'utilisateurs', dataService: UserGroupDefinitionDataService },\r\n { key: IdentityEntityKeys.UserHistory, component: UserHistoryComponent, title: 'Historique utilisateur', dataService: UserHistoryDataService },\r\n { key: IdentityEntityKeys.UserPermissionView, component: UserPermissionViewComponent, title: 'Permissions de l\\'utilisateur', dataService: UserPermissionViewDataService },\r\n { key: IdentityEntityKeys.UserSession, component: UserSessionComponent, title: 'Sessions utilisateur', dataService: UserSessionDataService },\r\n];\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, module Identity, metadata/04-forms).\r\n// Ne pas modifier : les onglets propres à un composant s'enregistrent dans son ngOnInit (facade.sections.registerSection).\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Injectable } from '@angular/core';\r\nimport { EntitySection, EntitySectionProvider, EntitySections } from '@dflat-core/web/core-ux';\r\nimport { DeviceTokenFilterViewModel, DeviceTokenView, PresentationProfileAssignmentFilterViewModel, PresentationProfileAssignmentView, RolePermission, RolePermissionFilterViewModel, UserAccountLoginFilterViewModel, UserAccountLoginView, UserAccountRoleFilterViewModel, UserAccountRoleView, UserAccountToken, UserAccountTokenFilterViewModel, UserFavorite, UserFavoriteFilterViewModel, UserGroupDefinitionFilterViewModel, UserGroupDefinitionView, UserHistory, UserHistoryFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys } from '@dflat-core/web/identity-root';\r\nimport { DeviceTokenComponent } from '../devicetoken.component';\r\nimport { PresentationProfileAssignmentComponent } from '../presentationprofileassignment.component';\r\nimport { RolePermissionComponent } from '../rolepermission.component';\r\nimport { UserAccountLoginComponent } from '../useraccountlogin.component';\r\nimport { UserAccountRoleComponent } from '../useraccountrole.component';\r\nimport { UserAccountTokenComponent } from '../useraccounttoken.component';\r\nimport { UserFavoriteComponent } from '../userfavorite.component';\r\nimport { UserGroupDefinitionComponent } from '../usergroupdefinition.component';\r\nimport { UserHistoryComponent } from '../userhistory.component';\r\n\r\n/**\r\n * Onglets des entités liées (relation 1..*) des entités du module Identity : sections des formulaires\r\n * par défaut (metadata/04-forms/[X]Form.sql), regroupées par entité. Seul fichier généré qui importe\r\n * les composants des onglets : Base[X]Component demande les siens au registre du socle par la clé\r\n * de son entité (registerFormSections), sans dépendre de ce service ni d'un autre composant.\r\n * Le service n'est interrogé qu'une fois par entité (cache d'initialisation des écrans).\r\n * À enregistrer dans le constructeur du module Angular :\r\n * EntitySections.register(injector.get(IdentityGeneratedSectionService)).\r\n */\r\n@Injectable({ providedIn: 'root' })\r\nexport class IdentityGeneratedSectionService implements EntitySectionProvider {\r\n /** Onglets par clé d'entité, dans l'ordre des sections du formulaire par défaut. */\r\n private readonly sections: { [entityKey: string]: () => EntitySection[] } = {\r\n // Rôles (metadata/04-forms/RoleForm.sql)\r\n [IdentityEntityKeys.Role]: () => [\r\n EntitySections.related<RolePermissionFilterViewModel, RolePermission>('Permission de rôle', RolePermissionComponent, 'RoleId'),\r\n EntitySections.related<UserAccountRoleFilterViewModel, UserAccountRoleView>('Rôles des utilisateurs', UserAccountRoleComponent, 'RoleId'),\r\n EntitySections.related<PresentationProfileAssignmentFilterViewModel, PresentationProfileAssignmentView>('Affectations de vues', PresentationProfileAssignmentComponent, 'RoleId'),\r\n ],\r\n // Utilisateurs (metadata/04-forms/UserAccountForm.sql)\r\n [IdentityEntityKeys.UserAccount]: () => [\r\n EntitySections.related<UserAccountLoginFilterViewModel, UserAccountLoginView>('Identités externes', UserAccountLoginComponent, 'UserAccountId'),\r\n EntitySections.related<UserAccountRoleFilterViewModel, UserAccountRoleView>('Rôles des utilisateurs', UserAccountRoleComponent, 'UserAccountId'),\r\n EntitySections.related<UserAccountTokenFilterViewModel, UserAccountToken>('Jeton utilisateur', UserAccountTokenComponent, 'UserAccountId'),\r\n EntitySections.related<UserFavoriteFilterViewModel, UserFavorite>('Favori', UserFavoriteComponent, 'UserAccountId'),\r\n EntitySections.related<UserGroupDefinitionFilterViewModel, UserGroupDefinitionView>('Membres des groupes', UserGroupDefinitionComponent, 'UserAccountId'),\r\n EntitySections.related<UserHistoryFilterViewModel, UserHistory>('Historique utilisateur', UserHistoryComponent, 'UserAccountId'),\r\n EntitySections.related<PresentationProfileAssignmentFilterViewModel, PresentationProfileAssignmentView>('Affectations de vues', PresentationProfileAssignmentComponent, 'UserAccountId'),\r\n EntitySections.related<DeviceTokenFilterViewModel, DeviceTokenView>('Jetons d\\'appareil', DeviceTokenComponent, 'UserAccountId'),\r\n ],\r\n };\r\n\r\n /** Clés des entités du module qui ont des onglets. */\r\n getEntityKeys(): string[] {\r\n return Object.keys(this.sections);\r\n }\r\n\r\n /** Onglets de l'entité de clé `entityKey`, dans l'ordre d'affichage ; liste vide si elle n'en a pas. */\r\n getSections(entityKey: string): EntitySection[] {\r\n return this.sections[entityKey]?.() ?? [];\r\n }\r\n}\r\n","\r\n\r\nimport { ApplicationService, BaseEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { UserAccount } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider } from '@dflat-core/web/identity-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'alg-user-account-editor',\r\n templateUrl: '../../../../core-ux/src/lib/components/base-editor/base-editor.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserAccountEditorComponent extends BaseEditorComponent<UserAccount> {\r\n \r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserAccount;\r\n }\r\n \r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? ('Nouvel utilisateur') : ('Utilisateur (' + this.id + ')')): 'Utilisateurs';\r\n }\r\n \r\n getPath(withId: boolean): string {\r\n return withId ? IdentityMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n constructor(app : ApplicationService, route : ActivatedRoute) {\r\n super(app, route); \r\n }\r\n}\r\n","<ng-container *ngIf=\"!isModal\">\r\n <div class=\"breadcrumb-panel\">\r\n <alg-breadcrumb></alg-breadcrumb>\r\n </div>\r\n</ng-container>\r\n\r\n<div class=\"editor-container\">\r\n <ng-container *ngIf=\"entityViewModel\">\r\n <ng-container *ngIf=\"entityViewModel\">\r\n <alg-property-grid\r\n #propertyGridComponent\r\n [validateAfterEachChange]=\"false\"\r\n (originalEntityChanged)=\"this.handleOriginalEntityChanged($event)\"\r\n [entityKey]=\"this.getEntityKey()\"\r\n (textZoneButtonClicked)=\"onTextZoneButtonClicked($event)\"\r\n (propertyModified)=\"this.propertyChanged($event)\"\r\n [specificSections]=\"specificSections\"\r\n >\r\n </alg-property-grid>\r\n </ng-container>\r\n\r\n <div *ngIf=\"showButtons\" class=\"footer-buttons\">\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-primary btn-flat\"\r\n [disabled]=\"!forceSaveButton && !dirty\"\r\n (click)=\"handleDialogButtonClick(false)\"\r\n >\r\n {{ saveButtonLabel }}\r\n </button>\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-secondary btn-flat\"\r\n (click)=\"handleDialogButtonClick(true)\"\r\n >\r\n Annuler\r\n </button>\r\n </div>\r\n </ng-container>\r\n</div>\r\n","\r\nimport { Utilities } from '@dflat-core/web/core';\r\nimport { EntityViewModelWithFields, FilterDescriptor } from '@dflat-core/web/core-model';\r\nimport { ApplicationService, BaseEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { UserAccount } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider } from '@dflat-core/web/identity-root';\r\nimport { Component, EventEmitter, OnInit, Output, ViewChild, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'alg-user-account-profile',\r\n templateUrl: './user-account-profile.component.html',\r\n styleUrls: ['./user-account-profile.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserProfileAccountComponent extends BaseEditorComponent<UserAccount>\r\nimplements OnInit {\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserAccount;\r\n }\r\n\r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? ('Nouvel utilisateur') : ('Utilisateur (' + this.id + ')')): 'Utilisateurs';\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId ? IdentityMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n @Output()\r\n cancel: EventEmitter<any> = new EventEmitter();\r\n @Output()\r\n update: EventEmitter<{ success: boolean }> = new EventEmitter();\r\n\r\n @ViewChild('FirstName', {static: false})\r\n private firstName;\r\n\r\n @ViewChild('f', {static: false})\r\n public form;\r\n\r\n\r\n isChangePassword = false;\r\n uniqueId: string = Utilities.uniqueId();\r\n showValidationErrors = true;\r\n public roleFieldDescriptor: FilterDescriptor = {};\r\n public field: FilterDescriptor = {};\r\n public fields: FilterDescriptor[] = [];\r\n\r\n constructor(app : ApplicationService, route : ActivatedRoute) {\r\n super(app, route);\r\n\r\n this.isModal = true;\r\n this.id = this.authService.userId;\r\n this.loadOnInit = true;\r\n\r\n }\r\n\r\n goBack() {\r\n this.cancel.emit();\r\n }\r\n\r\n\r\n public resetEditor() {\r\n this.isChangePassword = false;\r\n this.form.reset();\r\n }\r\n\r\n changePassword() {\r\n this.isChangePassword = true;\r\n }\r\n\r\n onCancel() {\r\n this.goBack();\r\n }\r\n\r\n OnLoadingComplete(entity: EntityViewModelWithFields<UserAccount>) {\r\n this.fields = entity.FieldSections[0].FieldViewModels;\r\n this.field = entity.FieldSections[0].FieldViewModels.find(c => c.PropertyName === 'UserAccountCompanys');\r\n this.roleFieldDescriptor = entity.FieldSections[0].FieldViewModels.find(c => c.PropertyName === 'UserAccountRoles');\r\n }\r\n\r\n}\r\n\r\n\r\n","<div>\r\n <form class=\"dynamic-form\" name=\"userInfoForm\" #f=\"ngForm\" novalidate>\r\n\r\n <div ngFor=\"let field of fields\">\r\n <div *ngIf=\"field.IsHidden\">\r\n <div [hidden]=\"true\" class=\"form-group has-feedback\">\r\n <label [htmlFor]=\"field.PropertyName\">{{ field.Label }}</label>\r\n <input class=\"form-control\" [formControlName]=\"field.PropertyName\" [id]=\"field.PropertyName\" [type]=\"field.InputType\">\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n<!--Pseudo-->\r\n<div *ngIf=\"entityViewModel.ViewModel\" class=\"form-group has-feedback\">\r\n <label class=\"col-md-3 control-label\" for=\"Pseudo-{{uniqueId}}\">Pseudo</label>\r\n <div class=\"col-md-12\" [ngClass]=\"{'has-success': f.submitted && Pseudo.valid, 'has-error' : f.submitted && !Pseudo.valid}\">\r\n <input readonly=\"true\" type=\"text\" attr.id=\"Pseudo-{{uniqueId}}\" name=\"Pseudo\" placeholder=\"Pseudo\" class=\"form-control\"\r\n [(ngModel)]=\"entityViewModel.ViewModel.Pseudo\" #Pseudo=\"ngModel\" required [ngClass]=\"{'dflat-valid': Pseudo.valid, 'dflat-invalid' : !Pseudo.valid}\" />\r\n <span *ngIf=\"showValidationErrors && f.submitted\" class=\"glyphicon form-control-feedback\" [ngClass]=\"{'glyphicon-ok ': Pseudo.valid, 'glyphicon-remove' : !Pseudo.valid}\"></span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && !Pseudo.valid\" class=\"errorMessage\">\r\n Le nom est un champ obligatoire.\r\n </span>\r\n </div>\r\n</div>\r\n<!--Email-->\r\n<div *ngIf=\"entityViewModel.ViewModel\" class=\"form-group has-feedback\">\r\n <label class=\"col-md-3 control-label\" for=\"Email-{{uniqueId}}\">Nom</label>\r\n <div class=\"col-md-12\" [ngClass]=\"{'has-success': f.submitted && Email.valid, 'has-error' : f.submitted && !Email.valid}\">\r\n <input readonly=\"true\" type=\"text\" attr.id=\"Email-{{uniqueId}}\" name=\"Email\" placeholder=\"Email\" class=\"form-control\"\r\n [(ngModel)]=\"entityViewModel.ViewModel.Email\" #Email=\"ngModel\" required pattern=\"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$\"\r\n [ngClass]=\"{'dflat-valid': Email.valid, 'dflat-invalid' : !Email.valid}\" />\r\n <span *ngIf=\"showValidationErrors && f.submitted\" class=\"glyphicon form-control-feedback\" [ngClass]=\"{'glyphicon-ok ': Email.valid, 'glyphicon-remove' : !Email.valid}\"></span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && Email.errors?.required\" class=\"errorMessage\">\r\n L'Email' est un champ obligatoire.\r\n </span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && Email.errors?.pattern\" class=\"errorMessage\">\r\n L'Email est invalide.\r\n </span>\r\n </div>\r\n</div>\r\n <!--LastName-->\r\n <div *ngIf=\"entityViewModel.ViewModel\" class=\"form-group has-feedback\">\r\n <label class=\"col-md-3 control-label\" for=\"LastName-{{uniqueId}}\">Nom</label>\r\n <div class=\"col-md-12\" [ngClass]=\"{'has-success': f.submitted && LastName.valid, 'has-error' : f.submitted && !LastName.valid}\">\r\n <input type=\"text\" attr.id=\"LastName-{{uniqueId}}\" name=\"LastName\" placeholder=\"Nom\" class=\"form-control\"\r\n [(ngModel)]=\"entityViewModel.ViewModel.LastName\" #LastName=\"ngModel\" required [ngClass]=\"{'dflat-valid': LastName.valid, 'dflat-invalid' : !LastName.valid}\" />\r\n <span *ngIf=\"showValidationErrors && f.submitted\" class=\"glyphicon form-control-feedback\" [ngClass]=\"{'glyphicon-ok ': LastName.valid, 'glyphicon-remove' : !LastName.valid}\"></span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && !LastName.valid\" class=\"errorMessage\">\r\n Le nom est un champ obligatoire.\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <!--FirstName-->\r\n <div *ngIf=\"entityViewModel.ViewModel\" class=\"form-group has-feedback\">\r\n <label class=\"col-md-3 control-label\" for=\"FirstName-{{uniqueId}}\">Prénom</label>\r\n <div class=\"col-md-12\" [ngClass]=\"{'has-success': f.submitted && FirstName.valid, 'has-error' : f.submitted && !FirstName.valid}\">\r\n <input type=\"text\" attr.id=\"FirstName-{{uniqueId}}\" name=\"FirstName\" placeholder=\"Prénom\" class=\"form-control\"\r\n [(ngModel)]=\"entityViewModel.ViewModel.FirstName\" #FirstName=\"ngModel\" required [ngClass]=\"{'dflat-valid': FirstName.valid, 'dflat-invalid' : !FirstName.valid}\" />\r\n <span *ngIf=\"showValidationErrors\" class=\"glyphicon form-control-feedback\" [ngClass]=\"{'glyphicon-ok ': FirstName.valid, 'glyphicon-remove' : !FirstName.valid}\"></span>\r\n <span *ngIf=\"showValidationErrors && !FirstName.valid\" class=\"errorMessage\">\r\n Le prénom est un champ obligatoire.\r\n </span>\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n <!--Rôles-->\r\n <!-- <div *ngIf=\"entityViewModel.ViewModel\" class=\"form-group has-feedback\">\r\n <label class=\"col-md-3\" for=\"UserAccountCompanys-{{uniqueId}}\">Rôles</label>\r\n <div class=\"col-md-12\">\r\n <ng-select placeholder=\"Sélectionner un rôle\" name=\"UserAccountRoles\" attr.id=\"UserAccountRoles-{{uniqueId}}\"\r\n [items]=\"roleFieldDescriptor.Data\" [multiple]=\"true\" [hideSelected]=\"true\" bindValue=\"Id\" bindLabel=\"UniqueName\"\r\n [(ngModel)]=\"entityViewModel.ViewModel.UserAccountRoles\" #UserAccountRoles=\"ngModel\"\r\n [disabled]=\"!entityViewModel.ViewModel.IsAdmin\">\r\n </ng-select>\r\n </div>\r\n </div> -->\r\n\r\n <!--Société-->\r\n <!-- <div *ngIf=\"entityViewModel.ViewModel\" class=\"form-group has-feedback\">\r\n <label class=\"col-md-3\" for=\"UserAccountCompanys-{{uniqueId}}\">Société</label>\r\n <div class=\"col-md-12\">\r\n <ng-select placeholder=\"Sélectionner une société\" name=\"UserAccountCompanys\" attr.id=\"UserAccountCompanys-{{uniqueId}}\"\r\n [items]=\"field.Data\" [multiple]=\"true\" [hideSelected]=\"true\" bindValue=\"Id\" bindLabel=\"CompanyName\"\r\n [(ngModel)]=\"entityViewModel.ViewModel.UserAccountCompanys\" #UserAccountCompanys=\"ngModel\"\r\n [disabled]=\"!entityViewModel.ViewModel.IsAdmin\">\r\n </ng-select>\r\n </div>\r\n </div> -->\r\n\r\n <!-- Password -->\r\n <div *ngIf=\"entityViewModel.ViewModel\" class=\"form-group\">\r\n\r\n <div *ngIf=\"!isChangePassword\" class=\"col-md-12\">\r\n <button type=\"button\" (click)=\"changePassword()\" class=\"btn btn-link\">Changer le mot de passe</button>\r\n </div>\r\n\r\n <div *ngIf=\"isChangePassword\" class=\"col-md-12 password-well well\">\r\n <div>\r\n <!-- Current Password -->\r\n <div class=\"form-group has-feedback\">\r\n <label class=\"control-label col-md-3\" for=\"currentPassword-{{uniqueId}}\">Mot de passe actuel</label>\r\n <div class=\"col-md-12\" [ngClass]=\"{'has-success': f.submitted && currentPassword.valid, 'has-error' : f.submitted && !currentPassword.valid}\">\r\n <input type=\"password\" attr.id=\"currentPassword-{{uniqueId}}\" name=\"currentPassword\"\r\n placeholder=\"Saisir le mot de passe actuel\" class=\"form-control\" [(ngModel)]=\"entityViewModel.ViewModel.CurrentPassword\"\r\n #currentPassword=\"ngModel\" required />\r\n <span *ngIf=\"showValidationErrors && f.submitted\" class=\"glyphicon form-control-feedback\"\r\n [ngClass]=\"{'glyphicon-ok ': currentPassword.valid, 'glyphicon-remove' : !currentPassword.valid}\"></span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && !currentPassword.valid\" class=\"errorMessage\">\r\n Le mot de passe actuel est obligatoire.\r\n </span>\r\n </div>\r\n </div>\r\n <!-- Separator -->\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <hr class=\"password-separator-hr\" />\r\n </div>\r\n </div>\r\n <!-- New Password -->\r\n <div class=\"form-group has-feedback\">\r\n <label class=\"control-label col-md-3\" for=\"newPassword-{{uniqueId}}\">Nouveau mot de passe</label>\r\n <div class=\"col-md-12\" [ngClass]=\"{'has-success': f.submitted && newPassword.valid, 'has-error' : f.submitted && !newPassword.valid}\">\r\n <input type=\"password\" attr.id=\"newPassword-{{uniqueId}}\" name=\"newPassword\" placeholder=\"Enter new password\"\r\n class=\"form-control\" [(ngModel)]=\"entityViewModel.ViewModel.NewPassword\" #newPassword=\"ngModel\"\r\n required validateEqual=\"confirmPassword\" reverse=\"true\" />\r\n <span *ngIf=\"showValidationErrors && f.submitted\" class=\"glyphicon form-control-feedback\"\r\n [ngClass]=\"{'glyphicon-ok ': newPassword.valid, 'glyphicon-remove' : !newPassword.valid}\"></span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && !newPassword.valid\" class=\"errorMessage\">\r\n Le nouveau mot de passe est obligatoire.\r\n </span>\r\n </div>\r\n </div>\r\n <!-- Separator -->\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <hr class=\"password-separator-hr\" />\r\n </div>\r\n </div>\r\n\r\n <!-- Confirm Password -->\r\n <div class=\"form-group has-feedback\">\r\n <label class=\"control-label col-md-3\" for=\"confirmPassword-{{uniqueId}}\">Confirmez le mot de\r\n passe</label>\r\n <div class=\"col-md-12\" [ngClass]=\"{'has-success': f.submitted && confirmPassword.valid, 'has-error' : f.submitted && !confirmPassword.valid}\">\r\n <input type=\"password\" attr.id=\"confirmPassword-{{uniqueId}}\" name=\"confirmPassword\"\r\n placeholder=\"Confirmez le mot de passe\"\r\n class=\"form-control\" [(ngModel)]=\"entityViewModel.ViewModel.ConfirmPassword\"\r\n #confirmPassword=\"ngModel\" required validateEqual=\"newPassword\" />\r\n <span *ngIf=\"showValidationErrors && f.submitted\" class=\"glyphicon form-control-feedback\"\r\n [ngClass]=\"{'glyphicon-ok ': confirmPassword.valid, 'glyphicon-remove' : !confirmPassword.valid}\"></span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && confirmPassword.errors?.required\" class=\"errorMessage\">\r\n Le mot de passe de confirmation est obligatoire.\r\n </span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && confirmPassword.errors?.validateEqual && !confirmPassword.errors?.required\"\r\n class=\"errorMessage\">\r\n Le nouveau mot de passe et le mot de passe de confirmation ne correspondent pas.\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n</div>\r\n","import { ApplicationService, BaseEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { UserGroup } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider } from '@dflat-core/web/identity-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n\r\n@Component({\r\n selector: 'msw-usergroup-editor',\r\n templateUrl: '../../../../core-ux/src/lib/components/base-editor/base-editor.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\n\r\nexport class UserGroupEditorComponent extends BaseEditorComponent<UserGroup>{\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserGroup;\r\n }\r\n\r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? (`Nouveau groupe d'utilisateurs`) : (`Groupe d'utilisateurs (${this.id})`)): `Groupe d'utilisateurs`;\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId ? IdentityMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n constructor(app : ApplicationService, route : ActivatedRoute) {\r\n super(app, route); \r\n }\r\n\r\n}\r\n","<ng-container *ngIf=\"!isModal\">\r\n <div class=\"breadcrumb-panel\">\r\n <alg-breadcrumb></alg-breadcrumb>\r\n </div>\r\n</ng-container>\r\n\r\n<div class=\"editor-container\">\r\n <ng-container *ngIf=\"entityViewModel\">\r\n <ng-container *ngIf=\"entityViewModel\">\r\n <alg-property-grid\r\n #propertyGridComponent\r\n [validateAfterEachChange]=\"false\"\r\n (originalEntityChanged)=\"this.handleOriginalEntityChanged($event)\"\r\n [entityKey]=\"this.getEntityKey()\"\r\n (textZoneButtonClicked)=\"onTextZoneButtonClicked($event)\"\r\n (propertyModified)=\"this.propertyChanged($event)\"\r\n [specificSections]=\"specificSections\"\r\n >\r\n </alg-property-grid>\r\n </ng-container>\r\n\r\n <div *ngIf=\"showButtons\" class=\"footer-buttons\">\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-primary btn-flat\"\r\n [disabled]=\"!forceSaveButton && !dirty\"\r\n (click)=\"handleDialogButtonClick(false)\"\r\n >\r\n {{ saveButtonLabel }}\r\n </button>\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-secondary btn-flat\"\r\n (click)=\"handleDialogButtonClick(true)\"\r\n >\r\n Annuler\r\n </button>\r\n </div>\r\n </ng-container>\r\n</div>\r\n","import { AuthService, UserService } from '@dflat-core/web/core-services';\r\nimport { AccountDataService } from '@dflat-core/web/identity-data';\r\nimport { ActivationResults, ResetPasswordViewModel } from '@dflat-core/web/identity-model';\r\nimport { ActivateComponent } from '../activate/activate.component';\r\nimport { Component, EventEmitter, Input, Output, ChangeDetectionStrategy } from '@angular/core';\r\nimport { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\n\r\nexport function MustMatch(controlName: string, matchingControlName: string) {\r\n return (formGroup: UntypedFormGroup) => {\r\n const control = formGroup.controls[controlName];\r\n const matchingControl = formGroup.controls[matchingControlName];\r\n\r\n if (matchingControl.errors && !matchingControl.errors.mustMatch) {\r\n // return if another validator has already found an error on the matchingControl\r\n return;\r\n }\r\n\r\n // set error on matchingControl if validation fails\r\n if (control.value !== matchingControl.value) {\r\n matchingControl.setErrors({ mustMatch: true });\r\n } else {\r\n matchingControl.setErrors(null);\r\n }\r\n }\r\n}\r\n\r\n@Component({\r\n selector: 'msw-reset-password',\r\n templateUrl: './reset-password.component.html',\r\n styleUrls: ['./reset-password.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class ResetPasswordComponent extends ActivateComponent {\r\n\r\n @Input()\r\n isModal: boolean=false;\r\n \r\n passwordSuccess: boolean = false;\r\n password: string ;\r\n password2: string ;\r\n passwordForm: UntypedFormGroup;\r\n\r\n @Output()\r\n connexionClick: EventEmitter<string> = new EventEmitter<string>();\r\n\r\n @Output()\r\n registerClick: EventEmitter<string> = new EventEmitter<string>();\r\n \r\n constructor(\r\n router: Router, \r\n route: ActivatedRoute, \r\n accountDataService: AccountDataService,\r\n authService : AuthService,\r\n userService: UserService,\r\n private formBuilder: UntypedFormBuilder\r\n\r\n ) \r\n { \r\n super(router, route, accountDataService, authService, userService);\r\n }\r\n goToConnect(){\r\n this.router.navigate(['/login']);\r\n }\r\n \r\n get f() { return this.passwordForm.controls; }\r\n resolve(event) {\r\n console.log(event);\r\n }\r\n ngOnInit() {\r\n \r\n \r\n this.passwordForm = this.formBuilder.group({\r\n passwd: ['', [Validators.required, Validators.minLength(6)]],\r\n passwd2: ['', [Validators.required, Validators.minLength(6)]],\r\n captchaToken: [null, Validators.required]\r\n }, {\r\n validator: MustMatch('passwd', 'passwd2')\r\n });\r\n super.ngOnInit();\r\n }\r\n isPasswordInitSuccess() {\r\n return this.passwordSuccess == true;\r\n }\r\n\r\n validatePassword() {\r\n this.activate(false);\r\n }\r\n\r\n activate(sendAgain: boolean) \r\n {\r\n this.passwordSuccess= false;\r\n this.hasErrors = false;\r\n this.loading = true;\r\n this.ActivationResults = undefined;\r\n this.errorMessage = '';\r\n\r\n // Initialisation du paramètre\r\n let parameter: ResetPasswordViewModel = {};\r\n parameter.ActivationCode = this.code;\r\n parameter.SendAgain= sendAgain;\r\n parameter.UserEmail = this.email;\r\n parameter.CaptchaToken = this.captchaToken;\r\n parameter.Password = this.passwordForm.controls[\"passwd\"].value;\r\n\r\n this.accountDataService.resetPassword(parameter)\r\n .subscribe(\r\n data => {\r\n \r\n this.ActivationResults = data;\r\n this.captchaToken = undefined;\r\n this.loading= false;\r\n if ( this.passwordForm.valid )\r\n this.passwordSuccess = true;\r\n this.passwordForm.reset();\r\n },\r\n error => {\r\n this.hasErrors = true;\r\n this.ActivationResults = ActivationResults.Error;\r\n this.errorMessage = \"Une erreur s'est produite pendant l'activation de votre compte\";\r\n this.captchaToken = undefined;\r\n this.loading= false;\r\n this.passwordForm.reset();\r\n }\r\n );\r\n }\r\n\r\n OnConnexionClick() \r\n {\r\n if( ! this.isModal )\r\n this.router.navigate(['/login']);\r\n else\r\n this.connexionClick.emit();\r\n }\r\n\r\n OnRegisterClick() \r\n {\r\n if( ! this.isModal )\r\n this.router.navigate(['/register']);\r\n else\r\n this.registerClick.emit();\r\n } \r\n}","<div class=\"login-form\">\r\n <div class=\"petit-titre\" style=\"text-align:center;margin-bottom: 15px;\">Réinitialisation de votre mot de passe</div>\r\n <ng-container *ngIf=\"isLoading()\">\r\n <div class=\"highlight\">\r\n <p>Le traitement de votre demande est en cours. Merci de patienter quelques instants...</p>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isLoading()\">\r\n <ng-container *ngIf=\"isPasswordInitSuccess()\">\r\n <div class=\"highlight\">\r\n <p>Félicitations, votre mot de passe a été réinitialisé avec succès !</p>\r\n </div>\r\n <div class=\"btn-bar btn-bar-rwd\">\r\n <button class=\"btn btn-link\" (click)=\"OnConnexionClick()\">Retour à l'écran d'accueil'</button>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"isSuccess() && ! isPasswordInitSuccess()\">\r\n <form [formGroup]=\"passwordForm\" (ngSubmit)=\"passwordForm.valid && validatePassword()\" validate>\r\n <div class=\"form-group\">\r\n <input type=\"password\" formControlName=\"passwd\" class=\"form-control\" placeholder=\"Entrez votre nouveau mot de passe\"\r\n >\r\n \r\n <div *ngIf=\"f.passwd.errors && f.passwd.dirty && f.passwd.touched\" class=\"input-alert\">\r\n <div *ngIf=\"f.passwd.errors?.required\">\r\n Le mot de passe est obligatoire\r\n </div>\r\n <div *ngIf=\"f.passwd.errors?.minlength\">\r\n Le mot de passe doit comporter au moins 6 caractères\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"form-group\">\r\n <input type=\"password\" formControlName=\"passwd2\" class=\"form-control\" placeholder=\"Confirmez votre nouveau mot de passe\"\r\n >\r\n \r\n <div *ngIf=\"f.passwd2.errors && f.passwd2.dirty && f.passwd2.touched\" class=\"input-alert\">\r\n <div *ngIf=\"f.passwd2.errors?.required\">\r\n Le mot de passe est obligatoire\r\n </div>\r\n <div *ngIf=\"f.passwd2.errors?.minlength\">\r\n Le mot de passe doit comporter au moins 6 caractères\r\n </div>\r\n <div *ngIf=\"f.passwd2.errors?.mustMatch\">\r\n Les 2 mots de passe ne correspondent pas !\r\n </div>\r\n \r\n </div>\r\n </div>\r\n <div style=\"display: flex;align-items: center;\">\r\n <div class=\"captcha\">\r\n <re-captcha \r\n formControlName=\"captchaToken\"\r\n name=\"captcha\"\r\n required\r\n siteKey=\"6Lcuj_4ZAAAAAKoa7Dyi7LeJRzyCfqqTpte-wPTi\"\r\n > \r\n </re-captcha>\r\n </div>\r\n </div>\r\n <div class=\"btn-bar btn-bar-rwd\">\r\n <button class=\"btn btn-primary\" [disabled]=\"!passwordForm.valid\" type=\"submit\"><span>Valider</span></button>\r\n <button class=\"btn btn-link\" (click)=\"OnConnexionClick()\">Retour à l'écran de connexion</button>\r\n </div> \r\n </form>\r\n \r\n \r\n </ng-container>\r\n <ng-container *ngIf=\"isSentAgain()\">\r\n <div class=\"highlight\">\r\n <p>Un mail de réinitilisation de votre mot de passe a été renvoyé à votre adresse mail, merci de vérifier votre messagerie.</p>\r\n </div>\r\n <div class=\"btn-bar btn-bar-rwd\">\r\n <button class=\"btn btn-link\" (click)=\"OnConnexionClick()\">Retour à l'écran d'accueil'</button>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"isError()\">\r\n <p class=\"text-error\">\r\n Une erreur s'est produite pendant la réinitialisation de votre mot de passe.\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"isExpired()\">\r\n <p class=\"text-error\">\r\n Le lien de réinitialisation de votre mot de passe n'est plus valide car le délai de 24h a été dépassé ou bien vous avez fait une demande plus récente.\r\n Cliquez sur le bouton ci-dessous pour renvoyer à nouveau un mail de réinitialisation.\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"isUserUnknown()\">\r\n <p class=\"text-error\">\r\n {{this.email}} : Aucun compte lié à cette addresse email n'a été trouvé.\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"isExpired() || isError() || isUserUnknown() || (isEmptyCode() && !isAlreadyActivated() && !isSentAgain() && ! isSuccess())\">\r\n <p>Merci de saisir votre email ci-dessous afin de recevoir un mail de réinitialisation de votre mot de passe.</p>\r\n <form (ngSubmit)=\"f.form.valid && sendAgain()\" #f=\"ngForm\" validate>\r\n <div class=\"form-group\">\r\n <input \r\n type=\"text\" class=\"form-control\" placeholder=\"Entrez votre addresse mail\" name=\"eml\"\r\n [(ngModel)]=\"email\" #eml=\"ngModel\" required [pattern]=\"emailPattern2\">\r\n <div *ngIf=\"eml.errors && (eml.dirty && eml.touched)\" class=\"input-alert\">\r\n <div *ngIf=\"eml.errors?.required\">\r\n L'email est obligatoire\r\n </div>\r\n <div *ngIf=\"eml.errors?.pattern\">\r\n L'email n'est pas valide\r\n </div>\r\n </div>\r\n </div>\r\n <div style=\"display: flex;align-items: center;\">\r\n <div class=\"captcha\">\r\n <re-captcha \r\n [(ngModel)]=\"captchaToken\"\r\n name=\"captcha\"\r\n required\r\n siteKey=\"6Lcuj_4ZAAAAAKoa7Dyi7LeJRzyCfqqTpte-wPTi\"\r\n > \r\n </re-captcha>\r\n </div>\r\n </div>\r\n <div class=\"btn-bar btn-bar-rwd\">\r\n <button class=\"btn btn-primary\" [disabled]=\"!f.form.valid\" type=\"submit\"><span>Valider</span></button>\r\n <button class=\"btn btn-link\" (click)=\"OnConnexionClick()\">Retour à l'écran d'accueil'</button>\r\n </div>\r\n </form>\r\n \r\n </ng-container>\r\n\r\n </ng-container>\r\n \r\n \r\n <!-- <kzk-login-disclaimer class=\"login-disclaimer\"></kzk-login-disclaimer> -->\r\n <ng-container *ngIf=\"hasErrors\">\r\n <div class=\"error-message\">\r\n <div>\r\n {{this.errorMessage}}\r\n </div>\r\n </div>\r\n </ng-container>\r\n</div>","import { CommonModule } from '@angular/common';\r\nimport { Injector, NgModule } from '@angular/core';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { NgSelectModule } from '@ng-select/ng-select';\r\nimport { RecaptchaFormsModule, RecaptchaModule } from 'ng-recaptcha-2';\r\n\r\nimport { CoreDataModule } from '@dflat-core/web/core-data';\r\nimport { CoreModelModule } from '@dflat-core/web/core-model';\r\nimport { CanDeactivateGuard, CoreUxModule, EntitySections, EntitySelectors } from '@dflat-core/web/core-ux';\r\nimport { IdentityDataModule } from '@dflat-core/web/identity-data';\r\nimport { IdentityModelModule } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityRootModule } from '@dflat-core/web/identity-root';\r\nimport { MetaUxModule } from '@dflat-core/web/meta-ux';\r\n\r\nimport { ActivateComponent } from './activate/activate.component';\r\nimport { UserProfileComponent } from './app/user-profile/user-profile.component';\r\nimport { AccountSecurityComponent } from './app/account-security/account-security.component';\r\nimport { IdentityGeneratedComponents, IdentityGeneratedRoutes, IdentityGeneratedSelectors } from './data-components/generated/identity-components.generated';\r\nimport { IdentityGeneratedSectionService } from './data-components/generated/identity-sections.generated';\r\nimport { UserPermissionComponent } from './data-components/userpermission.component';\r\nimport { UserRoleComponent } from './data-components/userrole.component';\r\nimport { RoleEditorComponent } from './editor-components/role-editor.component';\r\nimport { UserAccountEditorComponent } from './editor-components/user-account-editor.component';\r\nimport { UserProfileAccountComponent } from './editor-components/user-account-profile.component';\r\nimport { UserGroupEditorComponent } from './editor-components/user-group-editor.component';\r\nimport { ResetPasswordComponent } from './reset-password/reset-password.component';\r\nimport { UserActionService } from './services/user-action-service';\r\n\r\nconst components = [\r\n // Composants des entités (spécifiques, dérivés des composants générés) : voir generated/identity-components.generated.ts\r\n ...IdentityGeneratedComponents,\r\n\r\n // Écrans de compte : activation, mot de passe, profil (la connexion reste dans la coquille de System).\r\n ActivateComponent,\r\n ResetPasswordComponent,\r\n UserProfileComponent,\r\n AccountSecurityComponent,\r\n\r\n RoleEditorComponent,\r\n UserRoleComponent,\r\n UserPermissionComponent,\r\n UserAccountEditorComponent,\r\n UserProfileAccountComponent,\r\n UserGroupEditorComponent,\r\n];\r\n\r\n/**\r\n * Écrans du module Identity (Découpage modulaire System/Meta/Identity, D.4) : comptes, rôles, groupes,\r\n * sessions, activation et mot de passe. SystemUxModule l'importe pour ses composants ; les routes sont dans\r\n * IdentityRoutingModule, chargé sous /idy.\r\n */\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n CoreModelModule,\r\n CoreUxModule,\r\n CoreDataModule,\r\n MetaUxModule,\r\n IdentityModelModule,\r\n IdentityDataModule,\r\n IdentityRootModule,\r\n NgSelectModule,\r\n RecaptchaModule,\r\n RecaptchaFormsModule,\r\n ],\r\n declarations: [...components],\r\n exports: [...components],\r\n providers: [\r\n UserActionService,\r\n ],\r\n})\r\nexport class IdentityUxModule {\r\n constructor(injector: Injector) {\r\n // Sélecteurs d'entité des champs Custom (clés étrangères) des formulaires : voir generated/identity-components.generated.ts\r\n EntitySelectors.register(IdentityGeneratedSelectors, injector);\r\n // Onglets des entités liées des composants générés : voir generated/identity-sections.generated.ts\r\n EntitySections.register(injector.get(IdentityGeneratedSectionService));\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\nimport { CanDeactivateGuard } from '@dflat-core/web/core-ux';\r\nimport { IdentityEntityKeys } from '@dflat-core/web/identity-root';\r\nimport { IdentityGeneratedRoutes } from './data-components/generated/identity-components.generated';\r\nimport { UserAccountEditorComponent } from './editor-components/user-account-editor.component';\r\nimport { UserGroupEditorComponent } from './editor-components/user-group-editor.component';\r\nimport { IdentityUxModule } from './identity-ux.module';\r\n\r\n/**\r\n * Routes des écrans du module Identity, chargées par l'application sous /idy (Découpage modulaire\r\n * System/Meta/Identity) : { path: 'idy', loadChildren: () => import('@dflat-core/web/identity-ux').then(m => m.IdentityRoutingModule) }.\r\n */\r\n@NgModule({\r\n imports: [\r\n IdentityUxModule,\r\n RouterModule.forChild([\r\n // Routes des composants des entités (clé d'entité) : voir generated/identity-components.generated.ts\r\n ...IdentityGeneratedRoutes,\r\n { path: IdentityEntityKeys.UserAccount + '/:id', component: UserAccountEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserGroup + '/:id', component: UserGroupEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n ]),\r\n ],\r\n})\r\nexport class IdentityRoutingModule {}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAa,oBAAb,MAAa,kBAAiB;CAY5B,YACY,QACA,OACA,oBACA,aACA,aAAwB;EAJxB,KAAA,SAAA;EACA,KAAA,QAAA;EACA,KAAA,qBAAA;EACA,KAAA,cAAA;EACA,KAAA,cAAA;EAdZ,KAAA,YAAsB;EAEtB,KAAA,UAAmB;EACnB,KAAA,oBAAuC;EAGvC,KAAA,gBAAwB;CASpB;CAEJ,WAAQ;EAGN,IAAI,KAAK,YAAY,YACnB,KAAK,QAAQ,KAAK,YAAY,kBAAkB;EAElD,KAAK,MAAM,YAAY,WACrB,WAAS;GACP,KAAK,OAAO,OAAO;GAEnB,IAAK,CAAE,UAAU,MAAO,KAAK,IAAI,GAC/B,KAAK,SAAS,KAAK;EAEvB,CAAC;CACL;CAEA,YAAS;EACP,KAAK,SAAS,IAAI;CACpB;CAEA,SAAS,WAAkB;EACzB,KAAK,YAAY;EACjB,KAAK,UAAU;EACf,KAAK,oBAAoB;EACzB,KAAK,e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GG,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAqB,YAAA,CAAA;EAXjC,MAAA;EAAS,MAAA,CAAA,EACN,SAAS,CACL,kBACA,aAAa,SAAS;GAElB,GAAG;GACH;IAAE,MAAM,mBAAmB,cAAc;IAAQ,WAAW;IAA4B,eAAe,CAAC,kBAAkB;GAAC;GAC3H;IAAE,MAAM,mBAAmB,YAAY;IAAQ,WAAW;IAA0B,eAAe,CAAC,kBAAkB;GAAC;EAC1H,CAAA,CACJ,EACJ,CAAA"}
1
+ {"version":3,"file":"dflat-core-web-identity-ux.mjs","names":["i2","i2","i3","i4","i6","i1","i2","i3","i4","i5","i1","i2","i1","i2","i1","i2","i1","i2","takeUntil","i1","i1","i2","i1","i2","i3","i1","i2","i1","i2","i1","i2","i1","i2","i3","i1","i2","i1","i2","i1","i2","i3.UserActionService","i4","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i3.UserActionService","i4","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i1","i2","i3","i1","i2","i3","i4","i1","i2","i3","i2","i4","i1.DeviceTokenComponent","i2.PresentationProfileAssignmentComponent","i3.RoleComponent","i4.RolePermissionComponent","i5.UserAccountComponent","i6.UserAccountLoginComponent","i7.UserAccountRoleComponent","i8.UserAccountTokenComponent","i9.UserFavoriteComponent","i10.UserGroupComponent","i11.UserGroupDefinitionComponent","i12.UserHistoryComponent","i13.UserPermissionViewComponent","i14.UserSessionComponent"],"sources":["../../identity-ux/src/lib/activate/activate.component.ts","../../identity-ux/src/lib/app/user-profile/user-profile.component.ts","../../identity-ux/src/lib/app/user-profile/user-profile.component.html","../../identity-ux/src/lib/app/account-security/account-security.component.ts","../../identity-ux/src/lib/app/account-security/account-security.component.html","../../identity-ux/src/lib/data-components/generated/devicetoken.component.generated.ts","../../identity-ux/src/lib/data-components/devicetoken.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/presentationprofileassignment.component.generated.ts","../../identity-ux/src/lib/data-components/presentationprofileassignment.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/editor-components/role-permission-grid.ts","../../identity-ux/src/lib/editor-components/role-editor.component.ts","../../identity-ux/src/lib/editor-components/role-editor.component.html","../../identity-ux/src/lib/data-components/generated/role.component.generated.ts","../../identity-ux/src/lib/data-components/role.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/rolepermission.component.generated.ts","../../identity-ux/src/lib/data-components/rolepermission.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/userpermissionview.component.generated.ts","../../identity-ux/src/lib/data-components/userpermission.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/useraccountrole.component.generated.ts","../../identity-ux/src/lib/services/user-action-service.ts","../../identity-ux/src/lib/data-components/userrole.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/useraccount.component.generated.ts","../../identity-ux/src/lib/data-components/user-account-sections.ts","../../identity-ux/src/lib/data-components/useraccount.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/useraccountlogin.component.generated.ts","../../identity-ux/src/lib/data-components/useraccountlogin.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/useraccountrole.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/useraccounttoken.component.generated.ts","../../identity-ux/src/lib/data-components/useraccounttoken.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/userfavorite.component.generated.ts","../../identity-ux/src/lib/data-components/userfavorite.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/usergroupdefinition.component.generated.ts","../../identity-ux/src/lib/data-components/usergroupdefinition.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/usergroup.component.generated.ts","../../identity-ux/src/lib/data-components/usergroup.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/userhistory.component.generated.ts","../../identity-ux/src/lib/data-components/userhistory.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/userpermissionview.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/usersession.component.generated.ts","../../identity-ux/src/lib/data-components/usersession.component.ts","../../core-ux/src/lib/v2/components/base-component/base-template.component.html","../../identity-ux/src/lib/data-components/generated/identity-components.generated.ts","../../identity-ux/src/lib/data-components/generated/identity-sections.generated.ts","../../identity-ux/src/lib/editor-components/user-account-editor.component.ts","../../core-ux/src/lib/components/base-editor/base-editor.component.html","../../identity-ux/src/lib/editor-components/user-account-profile.component.ts","../../identity-ux/src/lib/editor-components/user-account-profile.component.html","../../identity-ux/src/lib/editor-components/user-group-editor.component.ts","../../core-ux/src/lib/components/base-editor/base-editor.component.html","../../identity-ux/src/lib/reset-password/reset-password.component.ts","../../identity-ux/src/lib/reset-password/reset-password.component.html","../../identity-ux/src/lib/identity-ux.module.ts","../../identity-ux/src/lib/identity-routing.module.ts"],"sourcesContent":["import { Utilities } from '@dflat-core/web/core';\r\nimport { User } from '@dflat-core/web/core-model';\r\nimport { AuthService, UserService } from '@dflat-core/web/core-services';\r\nimport { AccountDataService } from '@dflat-core/web/identity-data';\r\nimport { ActivationResults, ActivationViewModel } from '@dflat-core/web/identity-model';\r\nimport { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute, Router, UrlSegment } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'msw-activate', template: '',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class ActivateComponent implements OnInit {\r\n\r\n code: string;\r\n hasErrors : boolean = false;\r\n errorMessage: string;\r\n loading: boolean = false;\r\n ActivationResults: ActivationResults = undefined;\r\n email: string;\r\n captchaToken : string;\r\n emailPattern2: string = \"^(([^<>()\\\\[\\\\]\\\\\\\\.,;:\\\\s@\\\"]+(\\\\.[^<>()\\\\[\\\\]\\\\\\\\.,;:\\\\s@\\\"]+)*)|(\\\".+\\\"))@((\\\\[[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}])|(([a-zA-Z\\\\-0-9]+\\\\.)+[a-zA-Z]{2,}))$\";\r\n \r\n\r\n constructor(\r\n protected router: Router,\r\n protected route: ActivatedRoute,\r\n protected accountDataService: AccountDataService,\r\n protected authService : AuthService,\r\n protected userService: UserService\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n\r\n \r\n if (this.authService.isLoggedIn)\r\n this.email = this.userService.AuthenticatedUser.Email;\r\n \r\n this.route.queryParams.subscribe(\r\n params => {\r\n this.code = params['code'];\r\n \r\n if ( ! Utilities.IsNil( this.code ) )\r\n this.activate(false);\r\n \r\n })\r\n }\r\n\r\n sendAgain() { \r\n this.activate(true);\r\n }\r\n \r\n activate(sendAgain: boolean) {\r\n this.hasErrors = false;\r\n this.loading = true;\r\n this.ActivationResults = undefined;\r\n this.errorMessage = '';\r\n\r\n // Initialisation du paramètre\r\n let parameter:ActivationViewModel = {};\r\n parameter.ActivationCode = this.code;\r\n parameter.SendAgain= sendAgain;\r\n parameter.UserEmail = this.email;\r\n parameter.CaptchaToken = this.captchaToken;\r\n\r\n this.accountDataService.activate(parameter)\r\n .subscribe(\r\n data => {\r\n \r\n this.ActivationResults = data;\r\n if ( this.isSuccess()) {\r\n\r\n let user: User = this.userService.AuthenticatedUser;\r\n user.IsActive = ! user.IsActive;\r\n user.AccessToken = this.authService.token;\r\n user.RefreshToken = this.authService.refreshToken;\r\n user.IsConnected = true;\r\n this.authService.saveUserInfos(user, JSON.stringify(user), this.authService.rememberMe);\r\n \r\n this.userService.setCurrent(user);\r\n }\r\n\r\n this.captchaToken = undefined;\r\n this.loading= false;\r\n },\r\n error => {\r\n this.hasErrors = true;\r\n this.ActivationResults = ActivationResults.Error;\r\n this.errorMessage = \"Une erreur s'est produite pendant l'activation de votre compte\";\r\n this.captchaToken = undefined;\r\n this.loading= false;\r\n }\r\n );\r\n }\r\n \r\n isEmptyCode() : boolean {\r\n return Utilities.IsNil(this.code);\r\n }\r\n\r\n isUserUnknown() : boolean {\r\n return ! Utilities.IsNil(this.ActivationResults) && this.ActivationResults == ActivationResults.UnknownUser;\r\n }\r\n\r\n isSuccess() : boolean {\r\n return ! Utilities.IsNil(this.ActivationResults) &&this.ActivationResults == ActivationResults.Sucess;\r\n }\r\n isError() : boolean {\r\n return ! Utilities.IsNil(this.ActivationResults) &&this.ActivationResults == ActivationResults.Error;\r\n }\r\n isExpired() : boolean {\r\n return ! Utilities.IsNil(this.ActivationResults) &&this.ActivationResults == ActivationResults.Expired;\r\n }\r\n isAlreadyActivated() : boolean {\r\n return ! Utilities.IsNil(this.ActivationResults) &&this.ActivationResults == ActivationResults.AlreadyActivated;\r\n }\r\n\r\n isSentAgain() : boolean {\r\n return ! Utilities.IsNil(this.ActivationResults) &&this.ActivationResults == ActivationResults.SentAgain;\r\n }\r\n\r\n isLoading() : boolean {\r\n return this.loading;\r\n }\r\n\r\n goHome() {\r\n this.router.navigate(['/']);\r\n }\r\n\r\n\r\n}\r\n","import { User } from '@dflat-core/web/core-model';\r\nimport { UserService } from '@dflat-core/web/core-services';\r\nimport { AlertService, MessageSeverity } from '@dflat-core/web/core-ux';\r\nimport { AccountDataService, UserAccountDataService } from '@dflat-core/web/identity-data';\r\nimport { ChangePasswordViewModel, UserProfileViewModel } from '@dflat-core/web/identity-model';\r\n\r\nimport { Component, Input, Output, ViewChild, ChangeDetectionStrategy } from '@angular/core';\r\nimport { NgForm } from '@angular/forms';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n\r\n@Component({\r\n selector: 'msw-user-profile',\r\n templateUrl: './user-profile.component.html',\r\n styleUrls: ['./user-profile.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserProfileComponent {\r\n\r\n constructor(protected route: ActivatedRoute,\r\n protected alertService: AlertService,\r\n protected accountDataService: AccountDataService,\r\n protected userAccountDataService: UserAccountDataService,\r\n private userService: UserService) {\r\n \r\n }\r\n\r\n @ViewChild('f', { static: false })\r\n form: NgForm;\r\n\r\n @ViewChild('fpwd', { static: false })\r\n pwdform: NgForm;\r\n\r\n\r\n userAccount: UserProfileViewModel = {};\r\n changePasswordVM: ChangePasswordViewModel = {};\r\n\r\n \r\n isFormValid: boolean;\r\n hasChanges: boolean = false;\r\n\r\n\r\n password: string;\r\n isPasswordFormValid: boolean;\r\n hasPasswordChanges: boolean = false;\r\n\r\n mobilePattern: string = \"^((\\\\+91-?)|0)?[0-9]{10}$\";\r\n emailPattern2: string = \"^(([^<>()\\\\[\\\\]\\\\\\\\.,;:\\\\s@\\\\\\\"]+(\\\\.[^<>()\\\\[\\\\]\\\\\\\\.,;:\\\\s@\\\\\\\"]+)*)|(\\\\\\\".+\\\\\\\"))@((\\\\[[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}])|(([a-zA-Z\\\\-0-9]+\\\\.)+[a-zA-Z]{2,}))$\";\r\n\r\n ngOnInit(): void {\r\n this.initViewModel();\r\n }\r\n\r\n initViewModel() {\r\n\r\n let currentUser = this.userService.AuthenticatedUser;\r\n this.userAccountDataService.search({Id: currentUser.Id}).subscribe(res=>{\r\n \r\n let resultUser = res.Values[0];\r\n\r\n this.userAccount.Id = resultUser.Id;\r\n this.userAccount.Email = resultUser.Email;\r\n this.userAccount.FirstName = resultUser.FirstName;\r\n this.userAccount.LastName = resultUser.LastName;\r\n this.userAccount.PhoneNumber = resultUser.PhoneNumber;\r\n this.hasChanges= false;\r\n \r\n this.changePasswordVM.Id = resultUser.Id;\r\n this.changePasswordVM.CurrentPassword = '';\r\n this.changePasswordVM.NewPassword = '';\r\n this.hasPasswordChanges= false;\r\n });\r\n\r\n \r\n \r\n }\r\n\r\n\r\n handlePasswordChanged() {\r\n\r\n\r\n\r\n // met à jour le statut du formulaire à chaque changements\r\n this.isPasswordFormValid = this.pwdform.form.valid;\r\n // met à jour le statut du formulaire à chaque changements\r\n this.hasPasswordChanges = true;\r\n }\r\n\r\n handleModelChanged() {\r\n\r\n // met à jour le statut du formulaire à chaque changements\r\n this.isFormValid = this.form.form.valid;\r\n\r\n this.hasChanges = true;\r\n }\r\n\r\n cancel() {\r\n this.initViewModel();\r\n }\r\n\r\n validate() {\r\n\r\n this.handleModelChanged();\r\n\r\n if (this.isFormValid) {\r\n\r\n\r\n this.accountDataService.updateUserProfile(this.userAccount).subscribe(\r\n (res) => {\r\n this.alertService.showMessage(\"Validation\", \"Modifications du profil enregistrées avec succés \", MessageSeverity.Success);\r\n\r\n let currentUser = this.userService.AuthenticatedUser;\r\n currentUser.Email = this.userAccount.Email;\r\n currentUser.FirstName = this.userAccount.FirstName;\r\n currentUser.LastName = this.userAccount.LastName;\r\n currentUser.PhoneNumber = this.userAccount.PhoneNumber;\r\n\r\n \r\n this.userService.setCurrent(currentUser);\r\n\r\n\r\n this.hasChanges = false;\r\n },\r\n (err) => {\r\n this.alertService.showMessage(\"Echec\", \"L'enregistrement des modifications a échoué !\", MessageSeverity.Error);\r\n }\r\n );\r\n }\r\n else {\r\n\r\n // Validation du formulaire\r\n Object.keys(this.form.form.controls).forEach(key => {\r\n this.form.form.get(key).markAsDirty();\r\n });\r\n this.form.control.markAllAsTouched();\r\n\r\n return false;\r\n }\r\n }\r\n\r\n changePassword() {\r\n\r\n this.handlePasswordChanged();\r\n\r\n if (this.isPasswordFormValid) {\r\n\r\n this.accountDataService.changePassword(this.changePasswordVM).subscribe(\r\n (res) => {\r\n\r\n this.alertService.showMessage(\"Validation\", \"Mot de passe enregistré avec succés \", MessageSeverity.Success);\r\n this.changePasswordVM.CurrentPassword = '';\r\n this.changePasswordVM.NewPassword = '';\r\n \r\n this.pwdform.reset();\r\n this.hasPasswordChanges = false;\r\n\r\n return true;\r\n },\r\n (err) => {\r\n this.alertService.showMessage(\"Echec\", err.error, MessageSeverity.Error);\r\n }\r\n );\r\n }\r\n else {\r\n\r\n // Validation du formulaire\r\n Object.keys(this.pwdform.form.controls).forEach(key => {\r\n this.pwdform.form.get(key).markAsDirty();\r\n });\r\n this.pwdform.control.markAllAsTouched();\r\n\r\n return false;\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n}\r\n\r\n\r\n","<div class=\"user-profile-container\">\r\n <div class=\"petit-titre\">Mes informations</div>\r\n <div class=\"user-form-container\">\r\n <form class=\"user-form\" #f=\"ngForm\" validate autocomplete=\"off\" (ngSubmit)=\"(f.form.valid)\" validate>\r\n <div class=\"form-group-with-columns\">\r\n <div class=\"form-group has-feedback mw-50\">\r\n <label>Nom*</label>\r\n <input type=\"text\" class=\"form-control\" required name=\"name\" #name=\"ngModel\"\r\n [(ngModel)]=\"userAccount.LastName\" (ngModelChange)=\"handleModelChanged()\" placeholder=\"\" />\r\n <div *ngIf=\"name.errors && name.dirty && name.touched\" class=\"input-alert\">\r\n <div *ngIf=\"name.errors?.required\">\r\n Merci de renseigner votre nom.\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"form-group has-feedback mw-50\">\r\n <label>Prénom*</label>\r\n <input type=\"text\" class=\"form-control\" required name=\"firstname\" #firstname=\"ngModel\"\r\n [(ngModel)]=\"userAccount.FirstName\" (ngModelChange)=\"handleModelChanged()\" placeholder=\"\" />\r\n <div *ngIf=\"\r\n firstname.errors &&\r\n firstname.dirty &&\r\n firstname.touched\r\n \" class=\"input-alert\">\r\n <div *ngIf=\"firstname.errors?.required\">\r\n Merci de renseigner votre prénom.\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"form-group-with-columns\">\r\n <div class=\"form-group has-feedback mw-50\">\r\n <label>E-mail*</label>\r\n <input (ngModelChange)=\"handleModelChanged()\" type=\"text\" class=\"form-control\" placeholder=\"\"\r\n name=\"eml\" [(ngModel)]=\"userAccount.Email\" #eml=\"ngModel\" required #name=\"ngModel\"\r\n [pattern]=\"emailPattern2\" />\r\n <span class=\"form-control-feedback mw-50\"></span>\r\n <div *ngIf=\"eml.errors && eml.dirty && eml.touched\" class=\"input-alert\">\r\n <div *ngIf=\"eml.errors?.required\">\r\n L'email est obligatoire\r\n </div>\r\n <div *ngIf=\"eml.errors?.pattern\">\r\n L'email n'est pas valide\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group has-feedback mw-50\">\r\n <label>Numéro de téléphone</label>\r\n <input (ngModelChange)=\"handleModelChanged()\" placeholder=\"\" type=\"text\" class=\"form-control\"\r\n required name=\"phone\" [pattern]=\"mobilePattern\" #phone=\"ngModel\"\r\n [(ngModel)]=\"userAccount.PhoneNumber\" />\r\n <span class=\"form-control-feedback mw-50\"></span>\r\n <div *ngIf=\"phone.errors && phone.dirty && phone.touched\" class=\"input-alert\">\r\n <div *ngIf=\"phone.errors?.required\">\r\n Le numéro de téléphone est obligatoire\r\n </div>\r\n <div *ngIf=\"phone.errors?.pattern\">\r\n Le numéro de téléphone n'est pas valide\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n \r\n\r\n </form>\r\n \r\n\r\n </div>\r\n <div class=\"btn-bar horizontal\">\r\n <div class=\"btn-bar-container\">\r\n <button type=\"button\" class=\"btn btn-secondary btn-flat\" (click)=\"cancel()\" [disabled]=\"! hasChanges\">\r\n <span>Annuler</span>\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-primary btn-flat\" (click)=\"validate()\" [disabled]=\"! hasChanges\">\r\n Sauvegarder\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"petit-titre\">Modifier mon mot de passe</div>\r\n <div class=\"user-form-container\">\r\n <form class=\"user-form\" #fpwd=\"ngForm\" validate autocomplete=\"off\" (ngSubmit)=\"(fpwd.form.valid)\" validate>\r\n <div class=\"form-group has-feedback mw-50\">\r\n <!-- <div class=\"form-group has-feedback\"> -->\r\n <label>Ancien mot de passe*</label>\r\n <input autocomplete=\"off\" type=\"password\" class=\"form-control\"\r\n (ngModelChange)=\"handlePasswordChanged()\"\r\n placeholder=\"Entrez votre ancien mot de passe\" required name=\"passwd\"\r\n [(ngModel)]=\"changePasswordVM.CurrentPassword\" #passwd=\"ngModel\" minlength=\"6\">\r\n\r\n <span class=\"form-control-feedback mw-50\"></span>\r\n <div *ngIf=\"passwd.errors && passwd.dirty && passwd.touched\" class=\"input-alert\">\r\n <div *ngIf=\"passwd.errors?.required\">\r\n Le mot de passe est obligatoire\r\n </div>\r\n <div *ngIf=\"passwd.errors?.minlength\">\r\n Le mot de passe doit comporter au moins 6 caractères\r\n </div>\r\n <!-- </div> -->\r\n\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group has-feedback mw-50\">\r\n <label>Nouveau mot de passe*</label>\r\n <input autocomplete=\"off\" type=\"password\" class=\"form-control\"\r\n (ngModelChange)=\"handlePasswordChanged()\"\r\n placeholder=\"Entrez votre nouveau de passe\" required name=\"newpasswd\"\r\n [(ngModel)]=\"changePasswordVM.NewPassword\" #newpasswd=\"ngModel\" minlength=\"6\">\r\n\r\n <span class=\"form-control-feedback mw-50\"></span>\r\n <div *ngIf=\"newpasswd.errors && newpasswd.dirty && newpasswd.touched\" class=\"input-alert\">\r\n <div *ngIf=\"newpasswd.errors?.required\">\r\n Le mot de passe est obligatoire\r\n </div>\r\n <div *ngIf=\"newpasswd.errors?.minlength\">\r\n Le mot de passe doit comporter au moins 6 caractères\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group has-feedback mw-50\">\r\n <label class=\"required-label\">Confirmation du nouveau mot de passe</label>\r\n <input autocomplete=\"off\" type=\"password\" class=\"form-control\"\r\n (ngModelChange)=\"handlePasswordChanged()\"\r\n placeholder=\"Confirmez le nouveau de passe\" required name=\"newpasswd2\"\r\n [(ngModel)]=\"changePasswordVM.NewPasswordConfirm\" #newpasswd2=\"ngModel\" minlength=\"6\">\r\n\r\n <span class=\"form-control-feedback mw-50\"></span>\r\n <div *ngIf=\"newpasswd2.errors && newpasswd2.dirty && newpasswd2.touched\" class=\"input-alert\">\r\n <div *ngIf=\"newpasswd2.errors?.required\">\r\n Le mot de passe est obligatoire\r\n </div>\r\n <div *ngIf=\"newpasswd2.errors?.minlength\">\r\n Le mot de passe doit comporter au moins 6 caractères\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"btn-bar horizontal\">\r\n <div class=\"btn-bar-container\">\r\n <button type=\"submit\" class=\"btn btn-primary btn-flat\" (click)=\"changePassword()\" [disabled]=\"! hasPasswordChanges\">\r\n Modifier\r\n </button>\r\n </div>\r\n </div>\r\n\r\n </form>\r\n\r\n </div>\r\n</div>","import { Component, ChangeDetectionStrategy, ElementRef, OnInit, ViewChild } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { AccountDataService } from '@dflat-core/web/identity-data';\r\nimport { LinkedLoginViewModel, TrustedDeviceViewModel, TwoFactorSetupViewModel, TwoFactorStatusViewModel } from '@dflat-core/web/identity-model';\r\nimport { AuthService, ExternalLoginService, IExternalLoginResult } from '@dflat-core/web/core-services';\r\nimport { IExternalLoginProvider } from '@dflat-core/web/core-model';\r\n\r\n/**\r\n * Page « Sécurité » du compte connecté (route user/security, Connexion, B.5.9) : activation de la double\r\n * authentification (QR code, premier code, codes de secours remis une fois), désactivation, renouvellement des\r\n * codes de secours, appareils de confiance. Quand la politique impose la double authentification (?required),\r\n * la page l'annonce et ne propose pas de la désactiver.\r\n */\r\n@Component({\r\n selector: 'idy-account-security',\r\n templateUrl: './account-security.component.html',\r\n styleUrls: ['./account-security.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class AccountSecurityComponent implements OnInit {\r\n\r\n status: TwoFactorStatusViewModel;\r\n setup: TwoFactorSetupViewModel;\r\n /** Codes de secours à montrer une seule fois (activation ou renouvellement). */\r\n recoveryCodes: string[];\r\n /** L'activation est imposée par la politique. */\r\n required = false;\r\n loading = true;\r\n\r\n code = '';\r\n disablePassword = '';\r\n showDisable = false;\r\n showRegenerate = false;\r\n message = '';\r\n errorMessage = '';\r\n\r\n /** Identités externes liées au compte (Connexion, B.5.10). */\r\n linkedLogins: LinkedLoginViewModel[] = [];\r\n /** Fournisseurs configurés sur le serveur. */\r\n providers: IExternalLoginProvider[] = [];\r\n\r\n /** Emplacement du bouton officiel de Google pour lier un compte Google. */\r\n @ViewChild('googleLinkButton')\r\n set googleLinkButton(element: ElementRef<HTMLElement>) {\r\n const google = this.getProvider(ExternalLoginService.google);\r\n if (element && google)\r\n this.externalLoginService.renderGoogleButton(element.nativeElement, google, result => this.link(result))\r\n .catch(error => this.onExternalError(error));\r\n }\r\n\r\n constructor(\r\n protected accountDataService: AccountDataService,\r\n protected authService: AuthService,\r\n protected route: ActivatedRoute,\r\n protected router: Router,\r\n protected externalLoginService: ExternalLoginService) {\r\n }\r\n\r\n ngOnInit() {\r\n this.required = this.route.snapshot.queryParamMap.get('required') === 'true';\r\n this.load();\r\n this.authService.getLoginOptions().subscribe(options => this.providers = options?.Providers || [], () => this.providers = []);\r\n this.loadLinkedLogins();\r\n }\r\n\r\n /** Relit les identités externes liées au compte. */\r\n loadLinkedLogins() {\r\n this.accountDataService.getLinkedLogins().subscribe(logins => this.linkedLogins = logins || [], () => this.linkedLogins = []);\r\n }\r\n\r\n /** Fournisseur configuré, ou undefined. */\r\n getProvider(name: string): IExternalLoginProvider {\r\n return this.providers.find(p => p.Provider === name);\r\n }\r\n\r\n /** Le fournisseur est configuré et pas encore lié : son bouton « Lier » est proposé. */\r\n canLink(name: string): boolean {\r\n return !!this.getProvider(name) && !this.linkedLogins.some(l => l.Provider === name);\r\n }\r\n\r\n /** Application mobile : liaison Google native (Connexion, B.5.11). */\r\n get isNativeApp(): boolean {\r\n return !!this.externalLoginService?.isNativeApp?.();\r\n }\r\n\r\n /** Lie un compte Google, dans l'application mobile. */\r\n linkGoogleNative() {\r\n this.externalLoginService.signInWithGoogleNative(this.getProvider(ExternalLoginService.google))\r\n .then(result => this.link(result)).catch(error => this.onExternalError(error));\r\n }\r\n\r\n /** Lie un compte Microsoft. */\r\n linkMicrosoft() {\r\n this.externalLoginService.signInWithMicrosoft(this.getProvider(ExternalLoginService.microsoft))\r\n .then(result => this.link(result)).catch(error => this.onExternalError(error));\r\n }\r\n\r\n /** Lie un identifiant Apple. */\r\n linkApple() {\r\n this.externalLoginService.signInWithApple(this.getProvider(ExternalLoginService.apple))\r\n .then(result => this.link(result)).catch(error => this.onExternalError(error));\r\n }\r\n\r\n /** Transmet le jeton du fournisseur au serveur, qui lie l'identité au compte connecté. */\r\n protected link(result: IExternalLoginResult) {\r\n this.clearMessages();\r\n this.accountDataService.linkExternal({\r\n Provider: result.provider, IdToken: result.idToken, AuthorizationCode: result.authorizationCode, RedirectUri: result.redirectUri\r\n }).subscribe(\r\n () => { this.message = `Compte ${result.provider} lié.`; this.loadLinkedLogins(); },\r\n error => this.errorMessage = this.readError(error, 'La liaison a échoué.'));\r\n }\r\n\r\n /** Délie une identité ; refusé par le serveur si c'est le dernier moyen de connexion. */\r\n unlink(login: LinkedLoginViewModel) {\r\n this.clearMessages();\r\n this.accountDataService.unlinkExternal({ Provider: login.Provider }).subscribe(\r\n () => { this.message = `Compte ${login.Provider} délié.`; this.loadLinkedLogins(); },\r\n error => this.errorMessage = this.readError(error, 'La déliaison a échoué.'));\r\n }\r\n\r\n /** Erreur chez le fournisseur ; une fenêtre fermée par l'utilisateur n'en est pas une. */\r\n protected onExternalError(error: any) {\r\n if (this.externalLoginService.isCancellation(error))\r\n return;\r\n this.errorMessage = error?.message || 'La liaison a échoué.';\r\n }\r\n\r\n /** Relit l'état de la double authentification. */\r\n load() {\r\n this.loading = true;\r\n this.accountDataService.getTwoFactorStatus().subscribe(\r\n status => {\r\n this.status = status;\r\n this.required = this.required || !!status?.Required;\r\n this.loading = false;\r\n },\r\n () => {\r\n this.loading = false;\r\n this.errorMessage = 'La sécurité du compte n\\'est pas disponible.';\r\n });\r\n }\r\n\r\n /** Commence l'activation : QR code et clé à saisir dans l'application d'authentification. */\r\n beginSetup() {\r\n this.clearMessages();\r\n this.accountDataService.beginTwoFactorSetup().subscribe(\r\n setup => { this.setup = setup; this.code = ''; },\r\n error => this.errorMessage = this.readError(error, 'L\\'activation n\\'a pas pu commencer.'));\r\n }\r\n\r\n /** Confirme l'activation par un premier code ; les codes de secours sont montrés une seule fois. */\r\n confirmSetup() {\r\n this.clearMessages();\r\n this.accountDataService.confirmTwoFactorSetup({ Code: this.code }).subscribe(\r\n result => {\r\n this.recoveryCodes = result?.Codes || [];\r\n this.setup = null;\r\n this.code = '';\r\n this.load();\r\n },\r\n () => this.errorMessage = 'Code incorrect : vérifiez l\\'heure de votre téléphone et réessayez.');\r\n }\r\n\r\n /** Désactive la double authentification, sur le mot de passe. */\r\n disable() {\r\n this.clearMessages();\r\n this.accountDataService.disableTwoFactor({ Password: this.disablePassword }).subscribe(\r\n () => {\r\n this.showDisable = false;\r\n this.disablePassword = '';\r\n this.recoveryCodes = null;\r\n this.message = 'La double authentification est désactivée.';\r\n this.load();\r\n },\r\n () => this.errorMessage = 'Mot de passe incorrect.');\r\n }\r\n\r\n /** Remplace les codes de secours, sur un code de l'application. */\r\n regenerate() {\r\n this.clearMessages();\r\n this.accountDataService.regenerateRecoveryCodes({ Code: this.code }).subscribe(\r\n result => {\r\n this.recoveryCodes = result?.Codes || [];\r\n this.showRegenerate = false;\r\n this.code = '';\r\n this.load();\r\n },\r\n () => this.errorMessage = 'Code incorrect.');\r\n }\r\n\r\n /** Retire la confiance d'un appareil, ou de tous. */\r\n revoke(device?: TrustedDeviceViewModel) {\r\n this.clearMessages();\r\n this.accountDataService.revokeTrustedDevice({ Id: device?.Id }).subscribe(() => this.load());\r\n }\r\n\r\n /** Télécharge les codes de secours dans un fichier texte. */\r\n downloadRecoveryCodes() {\r\n const blob = new Blob([(this.recoveryCodes || []).join('\\r\\n') + '\\r\\n'], { type: 'text/plain' });\r\n const url = URL.createObjectURL(blob);\r\n const link = document.createElement('a');\r\n link.href = url;\r\n link.download = 'codes-de-secours.txt';\r\n link.click();\r\n URL.revokeObjectURL(url);\r\n }\r\n\r\n /** Codes notés : la page reprend son état normal ; si l'activation était imposée, l'application s'ouvre. */\r\n acknowledgeRecoveryCodes() {\r\n this.recoveryCodes = null;\r\n if (this.required)\r\n this.authService.redirectLoginUser();\r\n }\r\n\r\n private clearMessages() {\r\n this.message = '';\r\n this.errorMessage = '';\r\n }\r\n\r\n private readError(error: any, fallback: string): string {\r\n return typeof error?.error === 'string' && error.error ? error.error : fallback;\r\n }\r\n}\r\n","<div class=\"account-security\">\r\n <h2>Sécurité du compte</h2>\r\n\r\n <div class=\"alert alert-warning\" *ngIf=\"required && !status?.Enabled\">\r\n Votre organisation demande d'activer la double authentification pour continuer.\r\n </div>\r\n <div class=\"alert alert-success\" *ngIf=\"message\">{{ message }}</div>\r\n <div class=\"alert alert-danger\" *ngIf=\"errorMessage\">{{ errorMessage }}</div>\r\n\r\n <p *ngIf=\"loading\">Chargement…</p>\r\n\r\n <ng-container *ngIf=\"!loading && status\">\r\n <!-- Codes de secours remis une seule fois -->\r\n <section class=\"security-section\" *ngIf=\"recoveryCodes?.length\">\r\n <h3>Vos codes de secours</h3>\r\n <p>Gardez ces codes en lieu sûr : ils remplacent le code de l'application si vous perdez votre téléphone.\r\n Chacun ne sert qu'une fois. Ils ne seront plus affichés.</p>\r\n <ul class=\"recovery-codes\">\r\n <li *ngFor=\"let c of recoveryCodes\"><code>{{ c }}</code></li>\r\n </ul>\r\n <div class=\"btn-bar\">\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"downloadRecoveryCodes()\">Télécharger</button>\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"acknowledgeRecoveryCodes()\">J'ai noté mes codes</button>\r\n </div>\r\n </section>\r\n\r\n <!-- Double authentification inactive : activation -->\r\n <section class=\"security-section\" *ngIf=\"!status.Enabled && !recoveryCodes?.length\">\r\n <h3>Double authentification</h3>\r\n <p>Protégez votre compte : après votre mot de passe, un code à 6 chiffres affiché par une application\r\n d'authentification (Google Authenticator, Microsoft Authenticator…) vous sera demandé.</p>\r\n <button type=\"button\" class=\"btn btn-primary\" *ngIf=\"!setup\" (click)=\"beginSetup()\">Activer la double authentification</button>\r\n\r\n <form *ngIf=\"setup\" (ngSubmit)=\"sf.form.valid && confirmSetup()\" #sf=\"ngForm\" novalidate>\r\n <p>1. Scannez ce QR code avec votre application d'authentification.</p>\r\n <img class=\"qr-code\" [src]=\"setup.QrCode\" alt=\"QR code de la double authentification\">\r\n <p class=\"secret\">Ou saisissez cette clé : <code>{{ setup.Secret }}</code></p>\r\n <p>2. Saisissez le code à 6 chiffres affiché par l'application.</p>\r\n <div class=\"form-group\">\r\n <input type=\"text\" class=\"form-control two-factor-code\" name=\"code\" [(ngModel)]=\"code\"\r\n inputmode=\"numeric\" autocomplete=\"one-time-code\" maxlength=\"7\" required placeholder=\"123456\">\r\n </div>\r\n <button class=\"btn btn-primary\" [disabled]=\"!sf.form.valid\">Activer</button>\r\n </form>\r\n </section>\r\n\r\n <!-- Double authentification active -->\r\n <section class=\"security-section\" *ngIf=\"status.Enabled && !recoveryCodes?.length\">\r\n <h3>Double authentification</h3>\r\n <p>Activée le {{ status.EnableDate | date: 'dd/MM/yyyy' }}. Codes de secours restants : {{ status.RecoveryCodesLeft }}.</p>\r\n\r\n <div class=\"btn-bar\">\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"showRegenerate = !showRegenerate; showDisable = false\">Nouveaux codes de secours</button>\r\n <button type=\"button\" class=\"btn btn-outline-danger\" *ngIf=\"!required\" (click)=\"showDisable = !showDisable; showRegenerate = false\">Désactiver</button>\r\n </div>\r\n\r\n <form *ngIf=\"showRegenerate\" (ngSubmit)=\"rf.form.valid && regenerate()\" #rf=\"ngForm\" novalidate>\r\n <p>Saisissez un code de votre application : les anciens codes de secours ne serviront plus.</p>\r\n <div class=\"form-group\">\r\n <input type=\"text\" class=\"form-control two-factor-code\" name=\"regenerateCode\" [(ngModel)]=\"code\" inputmode=\"numeric\" required placeholder=\"123456\">\r\n </div>\r\n <button class=\"btn btn-primary\" [disabled]=\"!rf.form.valid\">Générer</button>\r\n </form>\r\n\r\n <form *ngIf=\"showDisable\" (ngSubmit)=\"df.form.valid && disable()\" #df=\"ngForm\" novalidate>\r\n <p>Confirmez avec votre mot de passe.</p>\r\n <div class=\"form-group\">\r\n <input type=\"password\" class=\"form-control\" name=\"disablePassword\" [(ngModel)]=\"disablePassword\" required placeholder=\"Mot de passe\">\r\n </div>\r\n <button class=\"btn btn-danger\" [disabled]=\"!df.form.valid\">Désactiver la double authentification</button>\r\n </form>\r\n </section>\r\n\r\n <!-- Connexions par un fournisseur externe (Connexion, B.5.10) -->\r\n <section class=\"security-section\" *ngIf=\"providers.length || linkedLogins.length\">\r\n <h3>Connexions</h3>\r\n <p>Comptes avec lesquels vous pouvez vous connecter à la place de votre mot de passe.</p>\r\n <table class=\"table table-sm\" *ngIf=\"linkedLogins.length\">\r\n <thead><tr><th>Fournisseur</th><th>Compte</th><th>Dernière connexion</th><th></th></tr></thead>\r\n <tbody>\r\n <tr *ngFor=\"let l of linkedLogins\">\r\n <td>{{ l.Provider }}</td>\r\n <td>{{ l.ProviderEmail || l.DisplayName }}</td>\r\n <td>{{ (l.LastLoginDate || l.CreationDate) | date: 'dd/MM/yyyy HH:mm' }}</td>\r\n <td><button type=\"button\" class=\"btn btn-link\" (click)=\"unlink(l)\">Délier</button></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <div class=\"btn-bar link-buttons\">\r\n <div class=\"external-login-google\" *ngIf=\"canLink('Google') && !isNativeApp\" #googleLinkButton></div>\r\n <button type=\"button\" class=\"btn btn-outline-secondary\" *ngIf=\"canLink('Google') && isNativeApp\" (click)=\"linkGoogleNative()\">Lier un compte Google</button>\r\n <button type=\"button\" class=\"btn btn-outline-secondary\" *ngIf=\"canLink('Microsoft')\" (click)=\"linkMicrosoft()\">Lier un compte Microsoft</button>\r\n <button type=\"button\" class=\"btn btn-outline-secondary\" *ngIf=\"canLink('Apple')\" (click)=\"linkApple()\">Lier un identifiant Apple</button>\r\n </div>\r\n </section>\r\n\r\n <!-- Appareils de confiance -->\r\n <section class=\"security-section\" *ngIf=\"status.TrustedDevices?.length\">\r\n <h3>Appareils de confiance</h3>\r\n <p>Le code n'est pas redemandé sur ces appareils jusqu'à la date indiquée.</p>\r\n <table class=\"table table-sm\">\r\n <thead><tr><th>Appareil</th><th>Dernière utilisation</th><th>Jusqu'au</th><th></th></tr></thead>\r\n <tbody>\r\n <tr *ngFor=\"let d of status.TrustedDevices\">\r\n <td class=\"device-label\" [title]=\"d.Label\">{{ d.Label || 'Appareil inconnu' }}</td>\r\n <td>{{ (d.LastUseDate || d.CreationDate) | date: 'dd/MM/yyyy HH:mm' }}</td>\r\n <td>{{ d.ExpirationDate | date: 'dd/MM/yyyy' }}</td>\r\n <td><button type=\"button\" class=\"btn btn-link\" (click)=\"revoke(d)\">Retirer</button></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <button type=\"button\" class=\"btn btn-outline-secondary\" (click)=\"revoke()\">Retirer tous les appareils</button>\r\n </section>\r\n </ng-container>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur DeviceTokenController).\r\n// Ne pas modifier : le code spécifique s'écrit dans DeviceTokenComponent, dérivé de BaseDeviceTokenComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { DeviceTokenFilterViewModel, DeviceTokenView } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des DeviceTokenView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : DeviceTokenComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseDeviceTokenComponent extends BaseComponent<DeviceTokenFilterViewModel, DeviceTokenView> {\r\n getTitle(): string {\r\n return 'Jetons d\\'appareil';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.DeviceToken;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_DEVICETOKEN;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'DTKV';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { BaseDeviceTokenComponent } from './generated/devicetoken.component.generated';\r\n\r\n/**\r\n * Recherche et édition des DeviceTokenView : code spécifique du composant (la partie générée\r\n * est BaseDeviceTokenComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-device-token-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n standalone: false,\r\n changeDetection: ChangeDetectionStrategy.Eager\r\n})\r\nexport class DeviceTokenComponent extends BaseDeviceTokenComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur PresentationProfileAssignmentController).\r\n// Ne pas modifier : le code spécifique s'écrit dans PresentationProfileAssignmentComponent, dérivé de BasePresentationProfileAssignmentComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { PresentationProfileAssignmentFilterViewModel, PresentationProfileAssignmentView } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des PresentationProfileAssignmentView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : PresentationProfileAssignmentComponent.\r\n */\r\n@Directive()\r\nexport abstract class BasePresentationProfileAssignmentComponent extends BaseComponent<PresentationProfileAssignmentFilterViewModel, PresentationProfileAssignmentView> {\r\n getTitle(): string {\r\n return 'Affectation de vue';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.PresentationProfileAssignment;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_PRESENTATIONPROFILEASSIGNMENT;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'PPAV';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { BasePresentationProfileAssignmentComponent } from './generated/presentationprofileassignment.component.generated';\r\n\r\n/**\r\n * Recherche et édition des PresentationProfileAssignmentView : code spécifique du composant (la partie générée\r\n * est BasePresentationProfileAssignmentComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-presentation-profile-assignment-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n standalone: false,\r\n changeDetection: ChangeDetectionStrategy.Eager\r\n})\r\nexport class PresentationProfileAssignmentComponent extends BasePresentationProfileAssignmentComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","import { TreeItem } from '@dflat-core/web/core-model';\r\nimport { Permission } from '@dflat-core/web/meta-model';\r\nimport { RolePermissionRow } from './role-permission-row';\r\nimport { RolePermissionTable } from './role-permission-table';\r\n\r\n/**\r\n * Permissions d'un rôle, construites depuis l'arbre des permissions : une ligne par entité, une colonne\r\n * par permission (Afficher, Ajouter, Modifier, Supprimer, Exporter, puis les autres). Seules les entités\r\n * auxquelles le rôle attribue des droits sont affichées, les autres s'ajoutent à la demande ; les lignes\r\n * affichées sont réparties en un tableau par jeu de droits.\r\n * Toute feuille de l'arbre a une case : une permission sans case serait retirée du rôle à l'enregistrement.\r\n */\r\nexport class RolePermissionGrid {\r\n /** Colonnes placées en tête, dans cet ordre, quand elles existent. */\r\n static readonly standardColumns: string[] = ['Afficher', 'Ajouter', 'Modifier', 'Supprimer', 'Exporter'];\r\n /** Colonne d'une permission sans enfant, qui n'est rattachée à aucune entité. */\r\n static readonly accessColumn: string = 'Accès';\r\n /** Libellé d'une permission sans description. */\r\n static readonly emptyLabel: string = '(sans libellé)';\r\n\r\n /** Lignes de toutes les entités, affichées ou non, dans l'ordre de l'arbre. */\r\n readonly rows: RolePermissionRow[] = [];\r\n\r\n /**\r\n * @param items Racines de l'arbre des permissions (modules).\r\n * @param selection Identifiants des permissions cochées, à la place de l'état de l'arbre : des\r\n * permissions modifiées et pas encore enregistrées.\r\n */\r\n constructor(items: TreeItem<Permission>[], selection?: number[]) {\r\n const addRow = (id: number, group: string, label: string, permissions: [string, TreeItem<Permission>][]) => {\r\n const cells = new Map<string, TreeItem<Permission>>();\r\n permissions.forEach(([name, permission]) => {\r\n if (selection)\r\n permission.checked = selection.includes(permission.value);\r\n // Deux permissions de même libellé sur une entité : chacune garde sa colonne.\r\n let column = name;\r\n for (let i = 2; cells.has(column); i++)\r\n column = `${name} (${i})`;\r\n cells.set(column, permission);\r\n });\r\n const columns = [\r\n ...RolePermissionGrid.standardColumns.filter(column => cells.has(column)),\r\n ...[...cells.keys()].filter(column => !RolePermissionGrid.standardColumns.includes(column))\r\n ];\r\n const row = { id, group, label, columns, cells: columns.map(column => cells.get(column)), shown: false };\r\n row.shown = row.cells.some(cell => cell.checked);\r\n this.rows.push(row);\r\n };\r\n\r\n const visit = (node: TreeItem<Permission>, group: string, path: string[]) => {\r\n const children = node.children ?? [];\r\n const leaves = children.filter(child => RolePermissionGrid.isLeaf(child));\r\n const label = path.length > 0 ? path.join(' / ') : group;\r\n if (children.length === 0)\r\n addRow(node.value, group, label, [[RolePermissionGrid.accessColumn, node]]);\r\n else if (leaves.length > 0)\r\n addRow(node.value, group, label, leaves.map(leaf => [RolePermissionGrid.getLabel(leaf), leaf]));\r\n children.filter(child => !RolePermissionGrid.isLeaf(child))\r\n .forEach(child => visit(child, group, [...path, RolePermissionGrid.getLabel(child)]));\r\n };\r\n\r\n (items ?? []).forEach(root => visit(root, RolePermissionGrid.getLabel(root), []));\r\n }\r\n\r\n /** Indique si le nœud n'a pas d'enfant. */\r\n private static isLeaf(node: TreeItem<Permission>): boolean {\r\n return !node.children || node.children.length === 0;\r\n }\r\n\r\n /** Libellé affiché d'un nœud. */\r\n private static getLabel(node: TreeItem<Permission>): string {\r\n return node.text || RolePermissionGrid.emptyLabel;\r\n }\r\n\r\n /**\r\n * Lignes affichées, réparties en un tableau par jeu de droits : les jeux les plus courts d'abord,\r\n * puis dans l'ordre de l'arbre.\r\n */\r\n getTables(): RolePermissionTable[] {\r\n const tables = new Map<string, RolePermissionTable>();\r\n this.rows.filter(row => row.shown).forEach(row => {\r\n const key = JSON.stringify(row.columns);\r\n if (!tables.has(key))\r\n tables.set(key, { columns: row.columns, rows: [] });\r\n tables.get(key).rows.push(row);\r\n });\r\n return [...tables.values()].sort((a, b) => a.columns.length - b.columns.length);\r\n }\r\n\r\n /** Lignes non affichées : les entités que l'on peut ajouter. */\r\n getHiddenRows(): RolePermissionRow[] {\r\n return this.rows.filter(row => !row.shown);\r\n }\r\n\r\n /**\r\n * Codes de permission (module.entité, en minuscules) des lignes non affichées.\r\n * @param codes Codes des permissions, par identifiant.\r\n */\r\n getHiddenCodes(codes: Map<number, string>): string[] {\r\n const hidden = this.getHiddenRows()\r\n .map(row => (codes.get(row.id) ?? '').toLowerCase())\r\n .filter(code => !!code);\r\n return [...new Set(hidden)];\r\n }\r\n\r\n /**\r\n * Lignes non affichées d'une méta entité : celles dont la permission a pour code module.entité,\r\n * sans tenir compte de la casse.\r\n * @param codes Codes des permissions, par identifiant.\r\n * @param module Module de la méta entité.\r\n * @param entityName Nom de la méta entité.\r\n */\r\n findHiddenRows(codes: Map<number, string>, module: string, entityName: string): RolePermissionRow[] {\r\n const code = `${module}.${entityName}`.toLowerCase();\r\n return this.getHiddenRows().filter(row => (codes.get(row.id) ?? '').toLowerCase() === code);\r\n }\r\n\r\n /** Affiche des lignes, sans rien cocher. */\r\n show(rows: RolePermissionRow[]): void {\r\n rows.forEach(row => row.shown = true);\r\n }\r\n\r\n /** Retire une ligne de l'affichage et décoche ses permissions. */\r\n hide(row: RolePermissionRow): void {\r\n this.setChecked([row], false);\r\n row.shown = false;\r\n }\r\n\r\n /** Identifiants des permissions cochées. */\r\n getSelection(): number[] {\r\n return this.rows.flatMap(row => row.cells)\r\n .filter(cell => cell.checked)\r\n .map(cell => cell.value);\r\n }\r\n\r\n /** Indique si toutes les permissions des lignes sont cochées, pour une colonne ou pour toutes. */\r\n isAllChecked(rows: RolePermissionRow[], column?: number): boolean {\r\n const cells = RolePermissionGrid.getCells(rows, column);\r\n return cells.length > 0 && cells.every(cell => cell.checked);\r\n }\r\n\r\n /** Indique si une partie seulement des permissions des lignes est cochée, pour une colonne ou pour toutes. */\r\n isPartiallyChecked(rows: RolePermissionRow[], column?: number): boolean {\r\n const cells = RolePermissionGrid.getCells(rows, column);\r\n return cells.some(cell => cell.checked) && !cells.every(cell => cell.checked);\r\n }\r\n\r\n /** Coche ou décoche les permissions des lignes, pour une colonne ou pour toutes. */\r\n setChecked(rows: RolePermissionRow[], checked: boolean, column?: number): void {\r\n RolePermissionGrid.getCells(rows, column).forEach(cell => cell.checked = checked);\r\n }\r\n\r\n /** Permissions des lignes, pour une colonne ou pour toutes. */\r\n private static getCells(rows: RolePermissionRow[], column?: number): TreeItem<Permission>[] {\r\n return rows.flatMap(row => column === undefined ? row.cells : [row.cells[column]]).filter(cell => !!cell);\r\n }\r\n}\r\n","import { FieldDescriptor, FilterType, PropertyEditorEvent, Section } from '@dflat-core/web/core-model';\r\nimport { additionalQueryOf, ApplicationService, BaseEntityEditor, ValidationService } from '@dflat-core/web/core-ux';\r\nimport { MetaEntityDataService, PermissionDataService } from '@dflat-core/web/meta-data';\r\nimport { MetaEntity, MetaEntityFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { RoleView } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys } from '@dflat-core/web/identity-root';\r\nimport { MetaEntityKeys } from '@dflat-core/web/meta-root';\r\nimport { Component, ChangeDetectionStrategy, OnInit } from '@angular/core';\r\nimport { of, Subject } from 'rxjs';\r\nimport { catchError, map, switchMap, takeUntil } from 'rxjs/operators';\r\nimport { RolePermissionGrid } from './role-permission-grid';\r\nimport { RolePermissionRow } from './role-permission-row';\r\nimport { RolePermissionTable } from './role-permission-table';\r\n\r\n/**\r\n * Éditeur spécifique des rôles, affiché par l'écran des rôles (RoleComponent) à la place du\r\n * formulaire standard : onglet « Propriétés » (champs du formulaire, rôle parent par le sélecteur de\r\n * rôles) et onglet « Définition » (permissions en tableaux, un par jeu de droits). L'enregistrement\r\n * passe par l'action « Enregistrer » de l'écran.\r\n */\r\n@Component({\r\n selector: 'alg-role-editor',\r\n templateUrl: './role-editor.component.html',\r\n styleUrls: ['./role-editor.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class RoleEditorComponent extends BaseEntityEditor<RoleView> implements OnInit {\r\n\r\n /** Onglet affiché : 0 pour « Propriétés », 1 pour « Définition ». */\r\n activeTab: number = 0;\r\n /** Rôle dont les permissions sont chargées : les onglets ne s'affichent que pour lui. */\r\n loadedEntity: RoleView = undefined;\r\n /** Champ « Rôle parent » : nom du rôle en lecture seule, choix par le sélecteur de rôles. */\r\n parentField: FieldDescriptor = undefined;\r\n\r\n /** Permissions du rôle : entités en lignes, permissions en colonnes. */\r\n grid: RolePermissionGrid = new RolePermissionGrid([]);\r\n /** Tableaux affichés : un par jeu de droits. */\r\n tables: RolePermissionTable[] = [];\r\n\r\n /** Codes des permissions (module.entité), par identifiant : ils relient les lignes aux méta entités. */\r\n private permissionCodes: Map<number, string> = new Map<number, string>();\r\n /** Clés des méta entités (EntityKey), par code de permission (module.entité, en minuscules). */\r\n private metaEntityKeys: Map<string, string> = new Map<string, string>();\r\n /** Rôles dont il faut charger les permissions : seul le dernier demandé est gardé. */\r\n private load$ = new Subject<RoleView>();\r\n\r\n constructor(app: ApplicationService, validationService: ValidationService,\r\n private permissionDataService: PermissionDataService,\r\n private metaEntityDataService: MetaEntityDataService) {\r\n super(app, validationService);\r\n }\r\n\r\n ngOnInit(): void {\r\n this.load$.pipe(\r\n switchMap(entity => this.app.DataService.getEntityViewModel<RoleView>(this.entityKey, entity.Id > 0 ? entity.Id : 0).pipe(\r\n map(viewModel => ({ entity, items: viewModel?.ViewModel?.TreeItems ?? [] })),\r\n catchError(() => of(undefined)))),\r\n takeUntil(this.destroy$)\r\n ).subscribe(loaded => {\r\n if (!loaded || loaded.entity !== this.entity)\r\n return;\r\n // Des permissions déjà modifiées et pas encore enregistrées priment sur celles du serveur.\r\n this.grid = new RolePermissionGrid(loaded.items, loaded.entity.Permissions);\r\n this.refreshTables();\r\n this.loadedEntity = loaded.entity;\r\n });\r\n\r\n super.ngOnInit();\r\n this.loadPermissionCodes();\r\n }\r\n\r\n /** Champs du formulaire des rôles : « Libellé » pour le nom, sélecteur de rôles pour le rôle parent. */\r\n protected alterSections(sections: Section[]): Section[] {\r\n this.parentField = {\r\n PropertyName: 'ParentId',\r\n Label: 'Rôle parent',\r\n FilterType: FilterType.Custom,\r\n ModalEntityKey: IdentityEntityKeys.Role,\r\n ModalTitle: 'Sélectionner le rôle parent',\r\n ModalPropertyValue: 'Id',\r\n ModalPropertyName: 'UniqueName',\r\n ModalTriggerIdProperty: 'ParentId',\r\n ReadOnly: true,\r\n DataFilter: {}\r\n };\r\n\r\n // Le formulaire peut porter ParentId et ParentName : un seul champ « Rôle parent » les remplace.\r\n let hasParent = false;\r\n const altered = sections.map(section => ({\r\n ...section,\r\n FieldViewModels: (section.FieldViewModels ?? []).flatMap(field => {\r\n if (field.PropertyName === 'ParentName' || field.PropertyName === 'ParentId') {\r\n if (hasParent)\r\n return [];\r\n hasParent = true;\r\n return [this.parentField];\r\n }\r\n return [field.PropertyName === 'UniqueName' ? { ...field, Label: 'Libellé' } : field];\r\n })\r\n }));\r\n if (!hasParent) {\r\n if (altered.length === 0)\r\n altered.push({ Name: 'Propriétés', FieldViewModels: [] });\r\n altered[0].FieldViewModels.push(this.parentField);\r\n }\r\n return altered;\r\n }\r\n\r\n /** Charge les permissions du rôle sélectionné ; une ligne réémise sans changement garde son affichage. */\r\n protected onEntityChanged(entity: RoleView): void {\r\n if (entity && entity === this.loadedEntity)\r\n return;\r\n\r\n this.loadedEntity = undefined;\r\n this.grid = new RolePermissionGrid([]);\r\n this.tables = [];\r\n if (!entity)\r\n return;\r\n\r\n // Le rôle en cours d'édition est exclu du sélecteur du rôle parent.\r\n if (this.parentField)\r\n this.parentField.DataFilter = entity.Id > 0 ? { AdditionalQuery: additionalQueryOf({ Property: 'Id', Operator: 'ne', Value: Number(entity.Id) }) } : {};\r\n this.load$.next(entity);\r\n }\r\n\r\n /** Le nom du rôle parent suit le rôle choisi, pour la colonne de la grille. */\r\n onPropertyChanged(event: PropertyEditorEvent): void {\r\n super.onPropertyChanged(event);\r\n if (event.field === this.parentField)\r\n this.publishChanges({ ParentName: event.value?.UniqueName ?? null });\r\n }\r\n\r\n /** Retire le rôle parent. */\r\n onClearParent() {\r\n this.form.get(this.parentField.PropertyName)?.setValue(null);\r\n this.onPropertyChanged({ field: this.parentField, value: null, type: 'selector' });\r\n }\r\n\r\n /** Publie les permissions cochées : le rôle devient modifié, l'action « Enregistrer » les envoie. */\r\n onPermissionsChanged() {\r\n // L'arbre ne sert qu'à l'affichage : il n'est pas renvoyé au serveur.\r\n this.publishChanges({ Permissions: this.grid.getSelection(), TreeItems: undefined });\r\n }\r\n\r\n /** Charge les codes des permissions et les clés des méta entités, qui relient une ligne à sa méta entité. */\r\n private loadPermissionCodes() {\r\n this.permissionDataService.search({ Offset: 0, Take: 100000 }).subscribe(res =>\r\n (res?.Values ?? []).forEach(permission => this.permissionCodes.set(permission.Id, permission.Code)));\r\n this.metaEntityDataService.search({ Offset: 0, Take: 100000 }).subscribe(res =>\r\n (res?.Values ?? []).forEach(entity => this.metaEntityKeys.set(`${entity.Module}.${entity.EntityName}`.toLowerCase(), entity.EntityKey)));\r\n }\r\n\r\n /** Ouvre le sélecteur de méta entités, limité aux entités absentes des tableaux, et ajoute celles choisies. */\r\n onAddRows() {\r\n // Le sélecteur filtre sur la clé de la méta entité (EntityKey), retrouvée par le code de permission.\r\n const keys = this.grid.getHiddenCodes(this.permissionCodes)\r\n .map(code => this.metaEntityKeys.get(code))\r\n .filter(key => !!key);\r\n if (keys.length === 0) {\r\n this.app.ToastrService.info('Toutes les entités sont déjà dans les tableaux.', 'Permissions');\r\n return;\r\n }\r\n\r\n const filter: MetaEntityFilterViewModel = { MetaEntityKeyList: keys };\r\n this.app.selectorMapperService\r\n .openSelectorModal<MetaEntity, MetaEntityFilterViewModel>(MetaEntityKeys.MetaEntity, 'Ajouter des entités', filter)\r\n .subscribe(entities => {\r\n const missing = (entities ?? []).filter(entity => {\r\n const rows = this.grid.findHiddenRows(this.permissionCodes, entity.Module, entity.EntityName);\r\n this.grid.show(rows);\r\n return rows.length === 0;\r\n });\r\n if (missing.length > 0)\r\n this.app.ToastrService.warning('Aucune permission à attribuer pour : ' + missing.map(entity => entity.Label || entity.EntityName).join(', '), 'Permissions');\r\n this.refreshTables();\r\n });\r\n }\r\n\r\n /** Retire une entité des tableaux : le rôle ne lui attribue plus aucun droit. */\r\n onRemoveRow(row: RolePermissionRow) {\r\n this.grid.hide(row);\r\n this.refreshTables();\r\n this.onPermissionsChanged();\r\n }\r\n\r\n /** Recalcule les tableaux affichés. */\r\n private refreshTables() {\r\n this.tables = this.grid.getTables();\r\n }\r\n}\r\n","<div class=\"role-editor\">\r\n @if (loadedEntity) {\r\n <alg-tabset [showNavs]=\"true\" [pills]=\"false\" (onSelect)=\"activeTab = $event\">\r\n\r\n <!--Propriétés : champs du formulaire des rôles, avec les composants des formulaires-->\r\n <alg-tab title=\"Propriétés\" [active]=\"activeTab === 0\" [class.role-editor-tab]=\"activeTab === 0\">\r\n <div class=\"property-container role-editor-properties\">\r\n @for (section of sections; track section.Name) {\r\n <div class=\"property-section-container\">\r\n <div class=\"property-section-title\">{{ section.Name }}</div>\r\n <div class=\"property-section-content\">\r\n @for (field of section.FieldViewModels; track field.PropertyName) {\r\n <div class=\"property-row\" [hidden]=\"field.IsHidden\" [class.role-editor-parent]=\"field === parentField\">\r\n <alg-field [field]=\"field\" [form]=\"form\" [readonly]=\"readonly\"\r\n (propertyChanged)=\"onPropertyChanged($event)\">\r\n </alg-field>\r\n @if (field === parentField && !readonly && form.get(field.PropertyName)?.value) {\r\n <button type=\"button\" class=\"btn btn-link\" title=\"Retirer le rôle parent\"\r\n (click)=\"onClearParent()\"><i class=\"fa fa-times\"></i></button>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </alg-tab>\r\n\r\n <!--Définition : un tableau par jeu de droits, entités en lignes, permissions en colonnes-->\r\n <alg-tab title=\"Définition\" [active]=\"activeTab === 1\" [class.role-editor-tab]=\"activeTab === 1\">\r\n <div class=\"role-permissions\">\r\n @if (!readonly) {\r\n <div class=\"role-permissions-toolbar\">\r\n <button type=\"button\" class=\"btn btn-primary btn-flat\" (click)=\"onAddRows()\"><i class=\"fa fa-plus\"></i> Ajouter</button>\r\n </div>\r\n }\r\n <div class=\"role-permissions-scroll\">\r\n @for (table of tables; track table.columns) {\r\n <table class=\"table role-permissions-table\">\r\n <thead>\r\n <tr>\r\n <th class=\"role-permissions-entity\">Entité</th>\r\n @for (column of table.columns; track column; let c = $index) {\r\n <th class=\"role-permissions-cell\">\r\n <label>\r\n <span>{{ column }}</span>\r\n <input type=\"checkbox\" title=\"{{ column }} : tout cocher ou décocher\" [disabled]=\"readonly\"\r\n [checked]=\"grid.isAllChecked(table.rows, c)\" [indeterminate]=\"grid.isPartiallyChecked(table.rows, c)\"\r\n (change)=\"grid.setChecked(table.rows, $any($event.target).checked, c); onPermissionsChanged()\" />\r\n </label>\r\n </th>\r\n }\r\n <th class=\"role-permissions-cell\">\r\n <label>\r\n <span>Tout</span>\r\n <input type=\"checkbox\" title=\"Tout cocher ou décocher\" [disabled]=\"readonly\"\r\n [checked]=\"grid.isAllChecked(table.rows)\" [indeterminate]=\"grid.isPartiallyChecked(table.rows)\"\r\n (change)=\"grid.setChecked(table.rows, $any($event.target).checked); onPermissionsChanged()\" />\r\n </label>\r\n </th>\r\n <th class=\"role-permissions-action\"></th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (row of table.rows; track row) {\r\n <tr>\r\n <th class=\"role-permissions-entity\">{{ row.label }} <small>{{ row.group }}</small></th>\r\n @for (cell of row.cells; track cell; let c = $index) {\r\n <td class=\"role-permissions-cell\">\r\n <input type=\"checkbox\" title=\"{{ row.label }} : {{ row.columns[c] }}\" [disabled]=\"readonly\"\r\n [checked]=\"cell.checked\" (change)=\"cell.checked = $any($event.target).checked; onPermissionsChanged()\" />\r\n </td>\r\n }\r\n <td class=\"role-permissions-cell\">\r\n <input type=\"checkbox\" title=\"{{ row.label }} : tout cocher ou décocher\" [disabled]=\"readonly\"\r\n [checked]=\"grid.isAllChecked([row])\" [indeterminate]=\"grid.isPartiallyChecked([row])\"\r\n (change)=\"grid.setChecked([row], $any($event.target).checked); onPermissionsChanged()\" />\r\n </td>\r\n <td class=\"role-permissions-action\">\r\n @if (!readonly) {\r\n <button type=\"button\" class=\"btn btn-link\" title=\"Retirer {{ row.label }} : le rôle ne lui attribue plus aucun droit\"\r\n (click)=\"onRemoveRow(row)\"><i class=\"fa fa-times\"></i></button>\r\n }\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </table>\r\n } @empty {\r\n <p class=\"role-permissions-empty\">Ce rôle n'attribue aucun droit. Utiliser « Ajouter » pour choisir des entités.</p>\r\n }\r\n </div>\r\n </div>\r\n </alg-tab>\r\n </alg-tabset>\r\n } @else if (!entity) {\r\n <p class=\"role-permissions-empty\">Sélectionner un rôle pour le modifier.</p>\r\n }\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur RoleController).\r\n// Ne pas modifier : le code spécifique s'écrit dans RoleComponent, dérivé de BaseRoleComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent, EntitySections } from '@dflat-core/web/core-ux';\r\nimport { RoleFilterViewModel, RoleView } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des RoleView (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : RoleComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseRoleComponent extends BaseComponent<RoleFilterViewModel, RoleView> {\r\n getTitle(): string {\r\n return 'Rôles';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.Role;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_ROLE;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'RLE';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n // Après les onglets du composant spécifique (enregistrés dans son ngOnInit), qui priment.\r\n Promise.resolve().then(() => this.registerFormSections());\r\n }\r\n\r\n /**\r\n * Onglets des entités liées (relation 1..*) : sections du formulaire par défaut\r\n * (metadata/04-forms/RoleForm.sql), déclarées par IdentityGeneratedSectionService\r\n * (identity-sections.generated.ts) et demandées au registre du socle par la clé de l'entité :\r\n * ce composant n'importe aucun composant d'onglet. Un onglet de la même entité déjà enregistré\r\n * par le composant spécifique n'est pas dupliqué.\r\n */\r\n protected registerFormSections(): void {\r\n EntitySections.registerSections(this.getEntityKey(), this.facade);\r\n }\r\n}\r\n","import { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { RoleEditorComponent } from '../editor-components/role-editor.component';\r\nimport { BaseRoleComponent } from './generated/role.component.generated';\r\n\r\n@Component({\r\n selector: 'alg-role',\r\n templateUrl:\r\n '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false,\r\n})\r\nexport class RoleComponent extends BaseRoleComponent {\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n\r\n // Éditeur spécifique : propriétés et tableaux des permissions, à la place du formulaire standard.\r\n this.editorComponent = RoleEditorComponent;\r\n this.facade.layout.setFixedLayout({ IsVerticalLayout : false, PropertyFlexGrow : 50 });\r\n }\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur RolePermissionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans RolePermissionComponent, dérivé de BaseRolePermissionComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { RolePermission, RolePermissionFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des RolePermission (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : RolePermissionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseRolePermissionComponent extends BaseComponent<RolePermissionFilterViewModel, RolePermission> {\r\n getTitle(): string {\r\n return 'Permission de rôle';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.RolePermission;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_ROLEPERMISSION;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'RLP';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseRolePermissionComponent } from './generated/rolepermission.component.generated';\r\n\r\n/**\r\n * Recherche et édition des RolePermission : code spécifique du composant (la partie générée\r\n * est BaseRolePermissionComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-role-permission-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class RolePermissionComponent extends BaseRolePermissionComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserPermissionViewController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserPermissionViewComponent, dérivé de BaseUserPermissionViewComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserPermissionView, UserPermissionViewFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserPermissionView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserPermissionViewComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserPermissionViewComponent extends BaseComponent<UserPermissionViewFilterViewModel, UserPermissionView> {\r\n getTitle(): string {\r\n return 'Permissions de l\\'utilisateur';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserPermissionView;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERPERMISSIONVIEW;\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { BaseUserPermissionViewComponent } from './generated/userpermissionview.component.generated';\r\n\r\n@Component({\r\n selector: 'alg-user-permission',\r\n templateUrl:\r\n '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserPermissionComponent extends BaseUserPermissionViewComponent {\r\n\r\n getTitle(): string {\r\n return 'Permissions';\r\n }\r\n\r\n constructor(app: ApplicationService,\r\n protected route: ActivatedRoute)\r\n {\r\n super(app, route);\r\n \r\n this.filterAction(\"edit\");\r\n this.filterAction(\"export\");\r\n this.filterAction(\"save\");\r\n this.filterAction(\"showHistory\");\r\n this.filterAction(\"add\");\r\n this.filterAction(\"delete\");\r\n }\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserAccountRoleController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserAccountRoleComponent, dérivé de BaseUserAccountRoleComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserAccountRoleFilterViewModel, UserAccountRoleView } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserAccountRoleView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserAccountRoleComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserAccountRoleComponent extends BaseComponent<UserAccountRoleFilterViewModel, UserAccountRoleView> {\r\n getTitle(): string {\r\n return 'Rôle de l\\'utilisateur';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserAccountRole;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERACCOUNTROLE;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UARV';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { Utilities } from '@dflat-core/web/core';\r\nimport { AlertService, FacadeModalService, MessageSeverity } from '@dflat-core/web/core-ux';\r\nimport {\r\n UserGroupDefinitionDataService,\r\n UserAccountRoleDataService,\r\n} from '@dflat-core/web/identity-data';\r\nimport {\r\n UserAccount,\r\n UserAccountFilterViewModel,\r\n RoleFilterViewModel,\r\n RoleView,\r\n UserAccountRoleView,\r\n UserGroupDefinitionView,\r\n} from '@dflat-core/web/identity-model';\r\nimport { EventEmitter, Injectable } from '@angular/core';\r\nimport { Observable, tap } from 'rxjs';\r\nimport { UserAccountComponent } from '../data-components/useraccount.component';\r\nimport { RoleComponent } from '../data-components/role.component';\r\n\r\n@Injectable()\r\nexport class UserActionService {\r\n constructor(\r\n public alertService: AlertService,\r\n private userGroupDefinitionDataService: UserGroupDefinitionDataService,\r\n public userRoleDataService: UserAccountRoleDataService,\r\n private selector: FacadeModalService\r\n ) { }\r\n\r\n public onSelection: EventEmitter<void> = new EventEmitter();\r\n public onRoleAdded: EventEmitter<any> = new EventEmitter<any>();\r\n\r\n addUserToGroup(groupId: number) {\r\n if (groupId == null) return;\r\n\r\n let modal = this.selector.openSelectorModal(\r\n 'Ajouter des utilisateurs au groupe',\r\n UserAccountComponent,\r\n (component) => {\r\n component.facade.config.addAlterDefaultFilterFunction(()=> {\r\n let filter: UserAccountFilterViewModel = {\r\n ExcludedGroupId : groupId\r\n };\r\n return filter;\r\n })\r\n }\r\n );\r\n\r\n let subscription = modal.subscribe((selected: UserAccount[]) => {\r\n subscription.unsubscribe();\r\n\r\n if (!Utilities.IsNil(selected)) {\r\n let models: UserGroupDefinitionView[] = [];\r\n selected.forEach((element) => {\r\n var usg: UserGroupDefinitionView = {\r\n GroupId: groupId,\r\n UserAccountId: element.Id,\r\n };\r\n models.push(usg);\r\n });\r\n this.userGroupDefinitionDataService\r\n .saveEntities(models)\r\n .subscribe( {\r\n next: (res) => {\r\n if (res.Success)\r\n this.alertService.showMessage(\r\n `Groupes d'utilisateurs`,\r\n `La selection des utilisateura été effectuée avec succès`,\r\n MessageSeverity.Success\r\n );\r\n else this.alertService.handleSaveError(res);\r\n },\r\n error: (err) => {\r\n this.alertService.showMessage(\r\n 'Erreur',\r\n err.error.Message,\r\n MessageSeverity.Error\r\n );\r\n },\r\n complete: () => {\r\n this.onSelection.emit();\r\n }\r\n }\r\n );\r\n }\r\n });\r\n }\r\n\r\n addUserRole(userAccountId: number) {\r\n return this.selector\r\n .openSelectorModal(\r\n 'Sélectionnez un rôle à ajouter',\r\n RoleComponent,\r\n (component) => {\r\n component.facade.config.addAlterDefaultFilterFunction(() => {\r\n let filter: RoleFilterViewModel = {};\r\n filter.UserAccountId = userAccountId;\r\n filter.ExceptUserRoles = true;\r\n return filter;\r\n })})\r\n .subscribe((res: RoleView[]) => {\r\n // Rôles choisis -> affectations du compte utilisateur.\r\n let models: UserAccountRoleView[] = res?.map(role => ({ UserAccountId: userAccountId, RoleId: role.Id }));\r\n\r\n if (models != undefined && models.length > 0)\r\n this.userRoleDataService.saveEntities(models).subscribe( {\r\n next: (result) => {\r\n if (result.Success) {\r\n this.alertService.showMessage(\r\n `Sociétés`,\r\n `L'ajout des rôles a été effectué avec succès`,\r\n MessageSeverity.Success\r\n );\r\n } else this.alertService.handleSaveError(result);\r\n },\r\n error: (err) => {\r\n this.alertService.showMessage(\r\n 'Erreur',\r\n err.error.Message,\r\n MessageSeverity.Error\r\n );\r\n },\r\n complete: () => {\r\n this.onRoleAdded.emit(); \r\n }\r\n }); \r\n });\r\n }\r\n\r\n}\r\n","import { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { Component, EventEmitter, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { BaseUserAccountRoleComponent } from './generated/useraccountrole.component.generated';\r\nimport { takeUntil } from 'rxjs';\r\nimport { UserActionService } from '../services/user-action-service';\r\n\r\n@Component({\r\n selector: 'alg-user-role',\r\n templateUrl:\r\n '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false,\r\n})\r\nexport class UserRoleComponent extends BaseUserAccountRoleComponent {\r\n public onRoleAdded: EventEmitter<any> = new EventEmitter<any>();\r\n \r\n getTitle(): string {\r\n return \"Rôles de l'utilisateur\";\r\n }\r\n\r\n constructor(\r\n app: ApplicationService,\r\n protected route: ActivatedRoute,\r\n private userActionService: UserActionService\r\n ) {\r\n super(app, route);\r\n }\r\n\r\n ngOnInit() {\r\n super.ngOnInit();\r\n this.facade.actions.hideActions(['export', 'save','showHistory']);\r\n this.facade.actions.patch('add',{\r\n action :() => this.add(),\r\n })\r\n\r\n this.userActionService.onRoleAdded.asObservable().pipe(takeUntil(this.destroy$)).subscribe(()=>{ \r\n this.loadData();\r\n this.onRoleAdded.emit();\r\n });\r\n }\r\n\r\n add() {\r\n let userAccountId = this.Filter.UserAccountId;\r\n this.userActionService.addUserRole(userAccountId);\r\n \r\n }\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserAccountController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserAccountComponent, dérivé de BaseUserAccountComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent, EntitySections } from '@dflat-core/web/core-ux';\r\nimport { UserAccount, UserAccountFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserAccount (partie générée) : titre, lien, clé d'entité et\r\n * permission, onglets des entités liées. Composant spécifique : UserAccountComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserAccountComponent extends BaseComponent<UserAccountFilterViewModel, UserAccount> {\r\n getTitle(): string {\r\n return 'Utilisateurs';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserAccount;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERACCOUNT;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UAC';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n // Après les onglets du composant spécifique (enregistrés dans son ngOnInit), qui priment.\r\n Promise.resolve().then(() => this.registerFormSections());\r\n }\r\n\r\n /**\r\n * Onglets des entités liées (relation 1..*) : sections du formulaire par défaut\r\n * (metadata/04-forms/UserAccountForm.sql), déclarées par IdentityGeneratedSectionService\r\n * (identity-sections.generated.ts) et demandées au registre du socle par la clé de l'entité :\r\n * ce composant n'importe aucun composant d'onglet. Un onglet de la même entité déjà enregistré\r\n * par le composant spécifique n'est pas dupliqué.\r\n */\r\n protected registerFormSections(): void {\r\n EntitySections.registerSections(this.getEntityKey(), this.facade);\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\n\r\n/**\r\n * Point d'extension de l'écran des comptes utilisateurs : un module installé après Identity (System) y ajoute ses\r\n * onglets (sociétés du compte...). Chaque extension reçoit le composant de l'écran dans son ngOnInit, après les\r\n * onglets d'Identity (rôles, permissions). (Découpage modulaire System/Meta/Identity, D.4.)\r\n */\r\nexport interface UserAccountSectionExtension {\r\n /** Enregistre les onglets du module sur l'écran des comptes (`component.facade.sections.registerSection`). */\r\n register(component: any): void;\r\n}\r\n\r\n/** Extensions de l'écran des comptes utilisateurs, fournies avec `multi: true`. */\r\nexport const USER_ACCOUNT_SECTIONS = new InjectionToken<UserAccountSectionExtension[]>('USER_ACCOUNT_SECTIONS');\r\n","import { PermissionFilterViewModel } from '@dflat-core/web/meta-model';\r\nimport { UserAccount, UserAccountRoleFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { UserPermissionComponent } from './userpermission.component';\r\nimport { UserRoleComponent } from './userrole.component';\r\nimport { Component, ChangeDetectionStrategy, inject } from '@angular/core';\r\nimport { BaseUserAccountComponent } from './generated/useraccount.component.generated';\r\nimport { USER_ACCOUNT_SECTIONS } from './user-account-sections';\r\n\r\n@Component({\r\n selector: 'alg-user-account',\r\n templateUrl:\r\n '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false,\r\n})\r\nexport class UserAccountComponent extends BaseUserAccountComponent {\r\n ROLE_SECTION: string = 'Roles';\r\n PERMISSION_SECTION: string = 'Permissions';\r\n\r\n /** Onglets des autres modules (sociétés du compte dans System) : point d'extension USER_ACCOUNT_SECTIONS. */\r\n private readonly sectionExtensions = inject(USER_ACCOUNT_SECTIONS, { optional: true }) ?? [];\r\n\r\n // Titre métier (le titre généré est « Utilisateurs »).\r\n getTitle(): string {\r\n return 'Comptes utilisateurs';\r\n }\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n\r\n let currentComponent: UserAccountComponent = this;\r\n \r\n this.facade.sections.registerSection(\r\n this.ROLE_SECTION,\r\n UserRoleComponent,\r\n {\r\n layoutOverride : (component) => {\r\n component.facade.layout.disablePropertyPanel();\r\n },\r\n initOverride : (component: UserRoleComponent) => {\r\n\r\n component.facade.actions.actionResult$.subscribe({\r\n next : (value) => {\r\n // Lorsqu'on ajoute ou on supprime un rôle à l'utilisateur, on doit mettre à jour la liste des permissions\r\n // On met donc le dirtyFlag sur le composant de permissions afin de forcer le chargement si l'utilisateur clique sur l'onglet.\r\n if(value.actionName == 'delete' || value.actionName == 'add')\r\n currentComponent.facade.sections.setSectionDirty(currentComponent.PERMISSION_SECTION);\r\n },\r\n });\r\n },\r\n filterOverride : (selected: UserAccount[]) => {\r\n const filter: UserAccountRoleFilterViewModel = {\r\n UserAccountId: selected[0].Id ?? -1,\r\n };\r\n return filter;\r\n }\r\n \r\n }\r\n );\r\n\r\n this.facade.sections.registerSection(this.PERMISSION_SECTION,UserPermissionComponent,\r\n {\r\n layoutOverride : (component) => {\r\n component.facade.layout.disablePropertyPanel();\r\n },\r\n filterOverride : (selected: UserAccount[]) => {\r\n const filter: PermissionFilterViewModel = {\r\n UserAccountId: selected[0].Id ?? -1,};\r\n return filter;\r\n }\r\n });\r\n // Onglets des modules installés après Identity (sociétés du compte...).\r\n this.sectionExtensions.forEach(extension => extension.register(this));\r\n\r\n this.facade.actions.actionResult$.subscribe((res)=> {\r\n if(res.sectionName)\r\n this.loadData();\r\n });\r\n\r\n this.facade.layout.setFixedLayout({IsVerticalLayout : false, PropertyFlexGrow : 60});\r\n\r\n // // controle mot de pass .\r\n // this.facade.change.setInterceptor({\r\n // afterApply: (entity : UserAccount, event : PropertyEditorEvent) => {\r\n // // if(event.field.FilterType == FilterType.Password)\r\n // return entity;\r\n // }\r\n // });\r\n }\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserAccountLoginController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserAccountLoginComponent, dérivé de BaseUserAccountLoginComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserAccountLoginFilterViewModel, UserAccountLoginView } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserAccountLoginView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserAccountLoginComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserAccountLoginComponent extends BaseComponent<UserAccountLoginFilterViewModel, UserAccountLoginView> {\r\n getTitle(): string {\r\n return 'Identité externe';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserAccountLogin;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERACCOUNTLOGIN;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UALV';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { BaseUserAccountLoginComponent } from './generated/useraccountlogin.component.generated';\r\n\r\n/**\r\n * Recherche et édition des UserAccountLoginView : code spécifique du composant (la partie générée\r\n * est BaseUserAccountLoginComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-user-account-login-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n standalone: false,\r\n changeDetection: ChangeDetectionStrategy.Eager\r\n})\r\nexport class UserAccountLoginComponent extends BaseUserAccountLoginComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseUserAccountRoleComponent } from './generated/useraccountrole.component.generated';\r\n\r\n/**\r\n * Recherche et édition des UserAccountRoleView : code spécifique du composant (la partie générée\r\n * est BaseUserAccountRoleComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-user-account-role-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserAccountRoleComponent extends BaseUserAccountRoleComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserAccountTokenController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserAccountTokenComponent, dérivé de BaseUserAccountTokenComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserAccountToken, UserAccountTokenFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserAccountToken (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserAccountTokenComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserAccountTokenComponent extends BaseComponent<UserAccountTokenFilterViewModel, UserAccountToken> {\r\n getTitle(): string {\r\n return 'Jeton utilisateur';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserAccountToken;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERACCOUNTTOKEN;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UAT';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseUserAccountTokenComponent } from './generated/useraccounttoken.component.generated';\r\n\r\n/**\r\n * Recherche et édition des UserAccountToken : code spécifique du composant (la partie générée\r\n * est BaseUserAccountTokenComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-user-account-token-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserAccountTokenComponent extends BaseUserAccountTokenComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserFavoriteController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserFavoriteComponent, dérivé de BaseUserFavoriteComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserFavorite, UserFavoriteFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserFavorite (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserFavoriteComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserFavoriteComponent extends BaseComponent<UserFavoriteFilterViewModel, UserFavorite> {\r\n getTitle(): string {\r\n return 'Favori';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserFavorite;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERFAVORITE;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UFT';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseUserFavoriteComponent } from './generated/userfavorite.component.generated';\r\n\r\n/**\r\n * Recherche et édition des UserFavorite : code spécifique du composant (la partie générée\r\n * est BaseUserFavoriteComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-user-favorite-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserFavoriteComponent extends BaseUserFavoriteComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserGroupDefinitionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserGroupDefinitionComponent, dérivé de BaseUserGroupDefinitionComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserGroupDefinitionFilterViewModel, UserGroupDefinitionView } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserGroupDefinitionView (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserGroupDefinitionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserGroupDefinitionComponent extends BaseComponent<UserGroupDefinitionFilterViewModel, UserGroupDefinitionView> {\r\n getTitle(): string {\r\n return 'Association d\\'utilisateurs';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserGroupDefinition;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERGROUPDEFINITION;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UGDV';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { ApplicationService } from '@dflat-core/web/core-ux';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { takeUntil } from 'rxjs';\r\nimport { UserActionService } from '../services/user-action-service';\r\nimport { BaseUserGroupDefinitionComponent } from './generated/usergroupdefinition.component.generated';\r\n\r\n@Component({\r\n selector: 'msw-usergroupdefinition',\r\n templateUrl:\r\n '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false,\r\n})\r\nexport class UserGroupDefinitionComponent extends BaseUserGroupDefinitionComponent {\r\n // Titre métier (le titre généré est « Association d'utilisateurs »).\r\n getTitle(): string {\r\n return \"Définition du groupe d'utilisateurs\";\r\n }\r\n\r\n constructor(\r\n app: ApplicationService,\r\n protected route: ActivatedRoute,\r\n private userActionService: UserActionService\r\n ) {\r\n super(app, route);\r\n }\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n\r\n this.filterAction('edit');\r\n this.filterAction('save');\r\n this.facade.actions.patch('add', { action : () => this.add()});\r\n\r\n this.userActionService.onSelection\r\n .pipe(takeUntil(this.destroy$))\r\n .subscribe((r) => {\r\n this.loadData();\r\n });\r\n }\r\n\r\n add(): void {\r\n const groupId = this.Filter.GroupId;\r\n this.userActionService.addUserToGroup(groupId);\r\n }\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserGroupController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserGroupComponent, dérivé de BaseUserGroupComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserGroup, UserGroupFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserGroup (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserGroupComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserGroupComponent extends BaseComponent<UserGroupFilterViewModel, UserGroup> {\r\n getTitle(): string {\r\n return 'Groupe d\\'utilisateurs';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserGroup;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERGROUP;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UGR';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import {\r\n UserGroup,\r\n UserGroupDefinitionFilterViewModel,\r\n} from '@dflat-core/web/identity-model';\r\nimport { UserGroupDefinitionComponent } from './usergroupdefinition.component';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseUserGroupComponent } from './generated/usergroup.component.generated';\r\n\r\n@Component({\r\n selector: 'msw-usergroup',\r\n templateUrl:\r\n '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false,\r\n})\r\nexport class UserGroupComponent extends BaseUserGroupComponent {\r\n USER_GROUP_DEFINITION_SECTION: string = 'Utilisateurs';\r\n\r\n ngOnInit(): void {\r\n super.ngOnInit();\r\n\r\n this.facade.layout.setFixedLayout({ IsVerticalLayout : true, PropertyFlexGrow : 70 });\r\n\r\n this.facade.sections.registerSection(\r\n this.USER_GROUP_DEFINITION_SECTION,\r\n UserGroupDefinitionComponent,\r\n {\r\n layoutOverride : (component) => {\r\n component.facade.layout.disablePropertyPanel();\r\n },\r\n filterOverride : (selected: UserGroup[]) => {\r\n const filter: UserGroupDefinitionFilterViewModel = {\r\n GroupId: selected[0].Id ?? -1,\r\n UserAccountId: -1,\r\n };\r\n return filter;\r\n }\r\n });\r\n }\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserHistoryController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserHistoryComponent, dérivé de BaseUserHistoryComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserHistory, UserHistoryFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserHistory (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserHistoryComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserHistoryComponent extends BaseComponent<UserHistoryFilterViewModel, UserHistory> {\r\n getTitle(): string {\r\n return 'Historique utilisateur';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserHistory;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERHISTORY;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'UHR';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseUserHistoryComponent } from './generated/userhistory.component.generated';\r\n\r\n/**\r\n * Recherche et édition des UserHistory : code spécifique du composant (la partie générée\r\n * est BaseUserHistoryComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-user-history-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserHistoryComponent extends BaseUserHistoryComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseUserPermissionViewComponent } from './generated/userpermissionview.component.generated';\r\n\r\n/**\r\n * Recherche et édition des UserPermissionView : code spécifique du composant (la partie générée\r\n * est BaseUserPermissionViewComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-user-permission-view-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserPermissionViewComponent extends BaseUserPermissionViewComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, contrôleur UserSessionController).\r\n// Ne pas modifier : le code spécifique s'écrit dans UserSessionComponent, dérivé de BaseUserSessionComponent.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Directive } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApplicationService, BaseComponent } from '@dflat-core/web/core-ux';\r\nimport { UserSession, UserSessionFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider, IdentityPermissions } from '@dflat-core/web/identity-root';\r\n\r\n/**\r\n * Recherche et édition des UserSession (partie générée) : titre, lien, clé d'entité et\r\n * permission. Composant spécifique : UserSessionComponent.\r\n */\r\n@Directive()\r\nexport abstract class BaseUserSessionComponent extends BaseComponent<UserSessionFilterViewModel, UserSession> {\r\n getTitle(): string {\r\n return 'Sessions utilisateur';\r\n }\r\n\r\n getPath(): string {\r\n return IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserSession;\r\n }\r\n\r\n get PermissionKey(): string {\r\n return IdentityPermissions.IDENTITY_USERSESSION;\r\n }\r\n\r\n /** Clé des profils de présentation de l'écran (metadata/05-presentations, menu « Colonnes » des grilles). */\r\n protected getPpMetaEntityKey(): string | null {\r\n return 'USS';\r\n }\r\n\r\n constructor(app: ApplicationService, protected route: ActivatedRoute) {\r\n super(app, route);\r\n }\r\n}\r\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { BaseUserSessionComponent } from './generated/usersession.component.generated';\r\n\r\n/**\r\n * Recherche et édition des UserSession : code spécifique du composant (la partie générée\r\n * est BaseUserSessionComponent). Créé par codegenerator (dflat -g ts), qui ne le modifie plus.\r\n */\r\n@Component({\r\n selector: 'msw-user-session-search',\r\n templateUrl: '../../../../core-ux/src/lib/v2/components/base-component/base-template.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserSessionComponent extends BaseUserSessionComponent {\r\n}\r\n","<div\r\n [class]=\"this.baseComponentClass\"\r\n [class.visible]=\"this.displayComponent\"\r\n [class.invisible]=\"!this.displayComponent\"\r\n >\r\n <alg-standard-page-layout #pageLayout [layoutKey]=\"this.layoutKey\" \r\n [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\" >\r\n <div actionsContent *ngIf=\"this.facade.layout.showActionBar$ | async\"\r\n (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-action-panel\r\n #actionComponent\r\n [entityKey]=\"this.getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n [title]=\"this.actionTitle\"\r\n [searchText]=\"this.actionBarSearchText\">\r\n <ng-content select=\"[actionsPanelContent]\"> </ng-content>\r\n </alg-action-panel>\r\n </div>\r\n \r\n <div middleHeader \r\n *ngIf=\"this.facade.layout.showFilterSummary$ | async\"\r\n >\r\n <alg-filter-summary-panel [entityKey]=\"this.getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-filter-summary-panel>\r\n </div>\r\n\r\n <ng-container middleContent>\r\n <div class=\"panel-middle-content\" [class.with-filters]=\"this.HasFilter\">\r\n <!-- Cartes (vue Carte) à la place de la grille : choisies, ou écran étroit. -->\r\n <ng-container *ngIf=\"!isCardVisible && !(this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async))\">\r\n <alg-data-grid #datagrid [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-data-grid>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isCardVisible && this.facade.config.cardSource && (this.facade.layout.cardDisplay$ | async)\">\r\n <alg-card-list [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\"></alg-card-list>\r\n </ng-container>\r\n <!-- <alg-list-display \r\n #listDisplayComponent\r\n [entityKey]=\"getEntityKey()\"\r\n [guid]=\"this.guid\"\r\n >\r\n </alg-list-display> -->\r\n </div>\r\n <ng-container *ngIf=\"isCardVisible\">\r\n <ng-content #itemListComponent></ng-content>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container rightContent>\r\n <!-- Éditeur spécifique de l'entité (editorComponent), sinon formulaire d'édition standard -->\r\n <ng-container *ngIf=\"this.editorComponent; else standardEditor\">\r\n <ng-container *ngComponentOutlet=\"this.editorComponent; inputs: { entityKey: getEntityKey(), guid: this.guid }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #standardEditor>\r\n <alg-editor #editor [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\">\r\n </alg-editor>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <div middleFooter (contextmenu)=\"this.facade.layout.openGridContextMenu($event)\">\r\n <alg-validation-error\r\n #validationErrorComponent\r\n ></alg-validation-error>\r\n <alg-new-paginator *ngIf=\"this.facade.layout.showPaginator$ | async\"\r\n [entityKey]=\"getEntityKey()\" \r\n [guid]=\"this.guid\"\r\n [log]=\"this.log\"\r\n >\r\n </alg-new-paginator>\r\n </div>\r\n </alg-standard-page-layout>\r\n <!-- Téléphone sans barre d'actions : menu de l'écran derrière un bouton rond (sinon, trois points\r\n dans la barre d'actions). -->\r\n <alg-mobile-menu *ngIf=\"this.IsTheMainComponent && (this.facade.layout.narrow$ | async) && !(this.facade.layout.showActionBar$ | async)\"\r\n [entityKey]=\"getEntityKey()\" [guid]=\"this.guid\" [title]=\"this.actionTitle\"></alg-mobile-menu>\r\n</div>\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, module Identity).\r\n// Ne pas modifier : les composants et routes propres au module s'ajoutent dans son module Angular.\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Routes } from '@angular/router';\r\nimport { CanDeactivateGuard, EntitySelector } from '@dflat-core/web/core-ux';\r\nimport { DeviceTokenDataService, PresentationProfileAssignmentDataService, RoleDataService, RolePermissionDataService, UserAccountDataService, UserAccountLoginDataService, UserAccountRoleDataService, UserAccountTokenDataService, UserFavoriteDataService, UserGroupDataService, UserGroupDefinitionDataService, UserHistoryDataService, UserPermissionViewDataService, UserSessionDataService } from '@dflat-core/web/identity-data';\r\nimport { IdentityEntityKeys } from '@dflat-core/web/identity-root';\r\nimport { DeviceTokenComponent } from '../devicetoken.component';\r\nimport { PresentationProfileAssignmentComponent } from '../presentationprofileassignment.component';\r\nimport { RoleComponent } from '../role.component';\r\nimport { RolePermissionComponent } from '../rolepermission.component';\r\nimport { UserAccountComponent } from '../useraccount.component';\r\nimport { UserAccountLoginComponent } from '../useraccountlogin.component';\r\nimport { UserAccountRoleComponent } from '../useraccountrole.component';\r\nimport { UserAccountTokenComponent } from '../useraccounttoken.component';\r\nimport { UserFavoriteComponent } from '../userfavorite.component';\r\nimport { UserGroupComponent } from '../usergroup.component';\r\nimport { UserGroupDefinitionComponent } from '../usergroupdefinition.component';\r\nimport { UserHistoryComponent } from '../userhistory.component';\r\nimport { UserPermissionViewComponent } from '../userpermissionview.component';\r\nimport { UserSessionComponent } from '../usersession.component';\r\n\r\n/** Composants des entités du module Identity (composants spécifiques), à déclarer dans son module Angular. */\r\nexport const IdentityGeneratedComponents = [\r\n DeviceTokenComponent,\r\n PresentationProfileAssignmentComponent,\r\n RoleComponent,\r\n RolePermissionComponent,\r\n UserAccountComponent,\r\n UserAccountLoginComponent,\r\n UserAccountRoleComponent,\r\n UserAccountTokenComponent,\r\n UserFavoriteComponent,\r\n UserGroupComponent,\r\n UserGroupDefinitionComponent,\r\n UserHistoryComponent,\r\n UserPermissionViewComponent,\r\n UserSessionComponent,\r\n];\r\n\r\n/** Routes des composants des entités du module Identity (clé d'entité), à ajouter à RouterModule.forChild. */\r\nexport const IdentityGeneratedRoutes: Routes = [\r\n { path: IdentityEntityKeys.DeviceToken, component: DeviceTokenComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.PresentationProfileAssignment, component: PresentationProfileAssignmentComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.Role, component: RoleComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.RolePermission, component: RolePermissionComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserAccount, component: UserAccountComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserAccountLogin, component: UserAccountLoginComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserAccountRole, component: UserAccountRoleComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserAccountToken, component: UserAccountTokenComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserFavorite, component: UserFavoriteComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserGroup, component: UserGroupComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserGroupDefinition, component: UserGroupDefinitionComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserHistory, component: UserHistoryComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserPermissionView, component: UserPermissionViewComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserSession, component: UserSessionComponent, canDeactivate: [CanDeactivateGuard] },\r\n];\r\n\r\n/**\r\n * Sélecteurs d'entité du module Identity (champs Custom des formulaires, ModalEntityKey = entité),\r\n * à enregistrer dans le constructeur de son module Angular : EntitySelectors.register(IdentityGeneratedSelectors, injector).\r\n */\r\nexport const IdentityGeneratedSelectors: EntitySelector[] = [\r\n { key: IdentityEntityKeys.DeviceToken, component: DeviceTokenComponent, title: 'Jetons d\\'appareil', dataService: DeviceTokenDataService },\r\n { key: IdentityEntityKeys.PresentationProfileAssignment, component: PresentationProfileAssignmentComponent, title: 'Affectation de vue', dataService: PresentationProfileAssignmentDataService },\r\n { key: IdentityEntityKeys.Role, component: RoleComponent, title: 'Rôles', dataService: RoleDataService },\r\n { key: IdentityEntityKeys.RolePermission, component: RolePermissionComponent, title: 'Permission de rôle', dataService: RolePermissionDataService },\r\n { key: IdentityEntityKeys.UserAccount, component: UserAccountComponent, title: 'Utilisateurs', dataService: UserAccountDataService },\r\n { key: IdentityEntityKeys.UserAccountLogin, component: UserAccountLoginComponent, title: 'Identité externe', dataService: UserAccountLoginDataService },\r\n { key: IdentityEntityKeys.UserAccountRole, component: UserAccountRoleComponent, title: 'Rôle de l\\'utilisateur', dataService: UserAccountRoleDataService },\r\n { key: IdentityEntityKeys.UserAccountToken, component: UserAccountTokenComponent, title: 'Jeton utilisateur', dataService: UserAccountTokenDataService },\r\n { key: IdentityEntityKeys.UserFavorite, component: UserFavoriteComponent, title: 'Favori', dataService: UserFavoriteDataService },\r\n { key: IdentityEntityKeys.UserGroup, component: UserGroupComponent, title: 'Groupe d\\'utilisateurs', dataService: UserGroupDataService },\r\n { key: IdentityEntityKeys.UserGroupDefinition, component: UserGroupDefinitionComponent, title: 'Association d\\'utilisateurs', dataService: UserGroupDefinitionDataService },\r\n { key: IdentityEntityKeys.UserHistory, component: UserHistoryComponent, title: 'Historique utilisateur', dataService: UserHistoryDataService },\r\n { key: IdentityEntityKeys.UserPermissionView, component: UserPermissionViewComponent, title: 'Permissions de l\\'utilisateur', dataService: UserPermissionViewDataService },\r\n { key: IdentityEntityKeys.UserSession, component: UserSessionComponent, title: 'Sessions utilisateur', dataService: UserSessionDataService },\r\n];\r\n","//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// Généré par codegenerator (dflat -g ts, module Identity, metadata/04-forms).\r\n// Ne pas modifier : les onglets propres à un composant s'enregistrent dans son ngOnInit (facade.sections.registerSection).\r\n// </auto-generated>\r\n//------------------------------------------------------------------------------\r\nimport { Injectable } from '@angular/core';\r\nimport { EntitySection, EntitySectionProvider, EntitySections } from '@dflat-core/web/core-ux';\r\nimport { DeviceTokenFilterViewModel, DeviceTokenView, PresentationProfileAssignmentFilterViewModel, PresentationProfileAssignmentView, RolePermission, RolePermissionFilterViewModel, UserAccountLoginFilterViewModel, UserAccountLoginView, UserAccountRoleFilterViewModel, UserAccountRoleView, UserAccountToken, UserAccountTokenFilterViewModel, UserFavorite, UserFavoriteFilterViewModel, UserGroupDefinitionFilterViewModel, UserGroupDefinitionView, UserHistory, UserHistoryFilterViewModel } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys } from '@dflat-core/web/identity-root';\r\nimport { DeviceTokenComponent } from '../devicetoken.component';\r\nimport { PresentationProfileAssignmentComponent } from '../presentationprofileassignment.component';\r\nimport { RolePermissionComponent } from '../rolepermission.component';\r\nimport { UserAccountLoginComponent } from '../useraccountlogin.component';\r\nimport { UserAccountRoleComponent } from '../useraccountrole.component';\r\nimport { UserAccountTokenComponent } from '../useraccounttoken.component';\r\nimport { UserFavoriteComponent } from '../userfavorite.component';\r\nimport { UserGroupDefinitionComponent } from '../usergroupdefinition.component';\r\nimport { UserHistoryComponent } from '../userhistory.component';\r\n\r\n/**\r\n * Onglets des entités liées (relation 1..*) des entités du module Identity : sections des formulaires\r\n * par défaut (metadata/04-forms/[X]Form.sql), regroupées par entité. Seul fichier généré qui importe\r\n * les composants des onglets : Base[X]Component demande les siens au registre du socle par la clé\r\n * de son entité (registerFormSections), sans dépendre de ce service ni d'un autre composant.\r\n * Le service n'est interrogé qu'une fois par entité (cache d'initialisation des écrans).\r\n * À enregistrer dans le constructeur du module Angular :\r\n * EntitySections.register(injector.get(IdentityGeneratedSectionService)).\r\n */\r\n@Injectable({ providedIn: 'root' })\r\nexport class IdentityGeneratedSectionService implements EntitySectionProvider {\r\n /** Onglets par clé d'entité, dans l'ordre des sections du formulaire par défaut. */\r\n private readonly sections: { [entityKey: string]: () => EntitySection[] } = {\r\n // Rôles (metadata/04-forms/RoleForm.sql)\r\n [IdentityEntityKeys.Role]: () => [\r\n EntitySections.related<RolePermissionFilterViewModel, RolePermission>('Permission de rôle', RolePermissionComponent, 'RoleId'),\r\n EntitySections.related<UserAccountRoleFilterViewModel, UserAccountRoleView>('Rôles des utilisateurs', UserAccountRoleComponent, 'RoleId'),\r\n EntitySections.related<PresentationProfileAssignmentFilterViewModel, PresentationProfileAssignmentView>('Affectations de vues', PresentationProfileAssignmentComponent, 'RoleId'),\r\n ],\r\n // Utilisateurs (metadata/04-forms/UserAccountForm.sql)\r\n [IdentityEntityKeys.UserAccount]: () => [\r\n EntitySections.related<UserAccountLoginFilterViewModel, UserAccountLoginView>('Identités externes', UserAccountLoginComponent, 'UserAccountId'),\r\n EntitySections.related<UserAccountRoleFilterViewModel, UserAccountRoleView>('Rôles des utilisateurs', UserAccountRoleComponent, 'UserAccountId'),\r\n EntitySections.related<UserAccountTokenFilterViewModel, UserAccountToken>('Jeton utilisateur', UserAccountTokenComponent, 'UserAccountId'),\r\n EntitySections.related<UserFavoriteFilterViewModel, UserFavorite>('Favori', UserFavoriteComponent, 'UserAccountId'),\r\n EntitySections.related<UserGroupDefinitionFilterViewModel, UserGroupDefinitionView>('Membres des groupes', UserGroupDefinitionComponent, 'UserAccountId'),\r\n EntitySections.related<UserHistoryFilterViewModel, UserHistory>('Historique utilisateur', UserHistoryComponent, 'UserAccountId'),\r\n EntitySections.related<PresentationProfileAssignmentFilterViewModel, PresentationProfileAssignmentView>('Affectations de vues', PresentationProfileAssignmentComponent, 'UserAccountId'),\r\n EntitySections.related<DeviceTokenFilterViewModel, DeviceTokenView>('Jetons d\\'appareil', DeviceTokenComponent, 'UserAccountId'),\r\n ],\r\n };\r\n\r\n /** Clés des entités du module qui ont des onglets. */\r\n getEntityKeys(): string[] {\r\n return Object.keys(this.sections);\r\n }\r\n\r\n /** Onglets de l'entité de clé `entityKey`, dans l'ordre d'affichage ; liste vide si elle n'en a pas. */\r\n getSections(entityKey: string): EntitySection[] {\r\n return this.sections[entityKey]?.() ?? [];\r\n }\r\n}\r\n","\r\n\r\nimport { ApplicationService, BaseEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { UserAccount } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider } from '@dflat-core/web/identity-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'alg-user-account-editor',\r\n templateUrl: '../../../../core-ux/src/lib/components/base-editor/base-editor.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserAccountEditorComponent extends BaseEditorComponent<UserAccount> {\r\n \r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserAccount;\r\n }\r\n \r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? ('Nouvel utilisateur') : ('Utilisateur (' + this.id + ')')): 'Utilisateurs';\r\n }\r\n \r\n getPath(withId: boolean): string {\r\n return withId ? IdentityMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n constructor(app : ApplicationService, route : ActivatedRoute) {\r\n super(app, route); \r\n }\r\n}\r\n","<ng-container *ngIf=\"!isModal\">\r\n <div class=\"breadcrumb-panel\">\r\n <alg-breadcrumb></alg-breadcrumb>\r\n </div>\r\n</ng-container>\r\n\r\n<div class=\"editor-container\">\r\n <ng-container *ngIf=\"entityViewModel\">\r\n <ng-container *ngIf=\"entityViewModel\">\r\n <alg-property-grid\r\n #propertyGridComponent\r\n [validateAfterEachChange]=\"false\"\r\n (originalEntityChanged)=\"this.handleOriginalEntityChanged($event)\"\r\n [entityKey]=\"this.getEntityKey()\"\r\n (textZoneButtonClicked)=\"onTextZoneButtonClicked($event)\"\r\n (propertyModified)=\"this.propertyChanged($event)\"\r\n [specificSections]=\"specificSections\"\r\n >\r\n </alg-property-grid>\r\n </ng-container>\r\n\r\n <div *ngIf=\"showButtons\" class=\"footer-buttons\">\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-primary btn-flat\"\r\n [disabled]=\"!forceSaveButton && !dirty\"\r\n (click)=\"handleDialogButtonClick(false)\"\r\n >\r\n {{ saveButtonLabel }}\r\n </button>\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-secondary btn-flat\"\r\n (click)=\"handleDialogButtonClick(true)\"\r\n >\r\n Annuler\r\n </button>\r\n </div>\r\n </ng-container>\r\n</div>\r\n","\r\nimport { Utilities } from '@dflat-core/web/core';\r\nimport { EntityViewModelWithFields, FilterDescriptor } from '@dflat-core/web/core-model';\r\nimport { ApplicationService, BaseEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { UserAccount } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider } from '@dflat-core/web/identity-root';\r\nimport { Component, EventEmitter, OnInit, Output, ViewChild, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'alg-user-account-profile',\r\n templateUrl: './user-account-profile.component.html',\r\n styleUrls: ['./user-account-profile.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class UserProfileAccountComponent extends BaseEditorComponent<UserAccount>\r\nimplements OnInit {\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserAccount;\r\n }\r\n\r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? ('Nouvel utilisateur') : ('Utilisateur (' + this.id + ')')): 'Utilisateurs';\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId ? IdentityMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n\r\n @Output()\r\n cancel: EventEmitter<any> = new EventEmitter();\r\n @Output()\r\n update: EventEmitter<{ success: boolean }> = new EventEmitter();\r\n\r\n @ViewChild('FirstName', {static: false})\r\n private firstName;\r\n\r\n @ViewChild('f', {static: false})\r\n public form;\r\n\r\n\r\n isChangePassword = false;\r\n uniqueId: string = Utilities.uniqueId();\r\n showValidationErrors = true;\r\n public roleFieldDescriptor: FilterDescriptor = {};\r\n public field: FilterDescriptor = {};\r\n public fields: FilterDescriptor[] = [];\r\n\r\n constructor(app : ApplicationService, route : ActivatedRoute) {\r\n super(app, route);\r\n\r\n this.isModal = true;\r\n this.id = this.authService.userId;\r\n this.loadOnInit = true;\r\n\r\n }\r\n\r\n goBack() {\r\n this.cancel.emit();\r\n }\r\n\r\n\r\n public resetEditor() {\r\n this.isChangePassword = false;\r\n this.form.reset();\r\n }\r\n\r\n changePassword() {\r\n this.isChangePassword = true;\r\n }\r\n\r\n onCancel() {\r\n this.goBack();\r\n }\r\n\r\n OnLoadingComplete(entity: EntityViewModelWithFields<UserAccount>) {\r\n this.fields = entity.FieldSections[0].FieldViewModels;\r\n this.field = entity.FieldSections[0].FieldViewModels.find(c => c.PropertyName === 'UserAccountCompanys');\r\n this.roleFieldDescriptor = entity.FieldSections[0].FieldViewModels.find(c => c.PropertyName === 'UserAccountRoles');\r\n }\r\n\r\n}\r\n\r\n\r\n","<div>\r\n <form class=\"dynamic-form\" name=\"userInfoForm\" #f=\"ngForm\" novalidate>\r\n\r\n <div ngFor=\"let field of fields\">\r\n <div *ngIf=\"field.IsHidden\">\r\n <div [hidden]=\"true\" class=\"form-group has-feedback\">\r\n <label [htmlFor]=\"field.PropertyName\">{{ field.Label }}</label>\r\n <input class=\"form-control\" [formControlName]=\"field.PropertyName\" [id]=\"field.PropertyName\" [type]=\"field.InputType\">\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n<!--Pseudo-->\r\n<div *ngIf=\"entityViewModel.ViewModel\" class=\"form-group has-feedback\">\r\n <label class=\"col-md-3 control-label\" for=\"Pseudo-{{uniqueId}}\">Pseudo</label>\r\n <div class=\"col-md-12\" [ngClass]=\"{'has-success': f.submitted && Pseudo.valid, 'has-error' : f.submitted && !Pseudo.valid}\">\r\n <input readonly=\"true\" type=\"text\" attr.id=\"Pseudo-{{uniqueId}}\" name=\"Pseudo\" placeholder=\"Pseudo\" class=\"form-control\"\r\n [(ngModel)]=\"entityViewModel.ViewModel.Pseudo\" #Pseudo=\"ngModel\" required [ngClass]=\"{'dflat-valid': Pseudo.valid, 'dflat-invalid' : !Pseudo.valid}\" />\r\n <span *ngIf=\"showValidationErrors && f.submitted\" class=\"glyphicon form-control-feedback\" [ngClass]=\"{'glyphicon-ok ': Pseudo.valid, 'glyphicon-remove' : !Pseudo.valid}\"></span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && !Pseudo.valid\" class=\"errorMessage\">\r\n Le nom est un champ obligatoire.\r\n </span>\r\n </div>\r\n</div>\r\n<!--Email-->\r\n<div *ngIf=\"entityViewModel.ViewModel\" class=\"form-group has-feedback\">\r\n <label class=\"col-md-3 control-label\" for=\"Email-{{uniqueId}}\">Nom</label>\r\n <div class=\"col-md-12\" [ngClass]=\"{'has-success': f.submitted && Email.valid, 'has-error' : f.submitted && !Email.valid}\">\r\n <input readonly=\"true\" type=\"text\" attr.id=\"Email-{{uniqueId}}\" name=\"Email\" placeholder=\"Email\" class=\"form-control\"\r\n [(ngModel)]=\"entityViewModel.ViewModel.Email\" #Email=\"ngModel\" required pattern=\"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$\"\r\n [ngClass]=\"{'dflat-valid': Email.valid, 'dflat-invalid' : !Email.valid}\" />\r\n <span *ngIf=\"showValidationErrors && f.submitted\" class=\"glyphicon form-control-feedback\" [ngClass]=\"{'glyphicon-ok ': Email.valid, 'glyphicon-remove' : !Email.valid}\"></span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && Email.errors?.required\" class=\"errorMessage\">\r\n L'Email' est un champ obligatoire.\r\n </span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && Email.errors?.pattern\" class=\"errorMessage\">\r\n L'Email est invalide.\r\n </span>\r\n </div>\r\n</div>\r\n <!--LastName-->\r\n <div *ngIf=\"entityViewModel.ViewModel\" class=\"form-group has-feedback\">\r\n <label class=\"col-md-3 control-label\" for=\"LastName-{{uniqueId}}\">Nom</label>\r\n <div class=\"col-md-12\" [ngClass]=\"{'has-success': f.submitted && LastName.valid, 'has-error' : f.submitted && !LastName.valid}\">\r\n <input type=\"text\" attr.id=\"LastName-{{uniqueId}}\" name=\"LastName\" placeholder=\"Nom\" class=\"form-control\"\r\n [(ngModel)]=\"entityViewModel.ViewModel.LastName\" #LastName=\"ngModel\" required [ngClass]=\"{'dflat-valid': LastName.valid, 'dflat-invalid' : !LastName.valid}\" />\r\n <span *ngIf=\"showValidationErrors && f.submitted\" class=\"glyphicon form-control-feedback\" [ngClass]=\"{'glyphicon-ok ': LastName.valid, 'glyphicon-remove' : !LastName.valid}\"></span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && !LastName.valid\" class=\"errorMessage\">\r\n Le nom est un champ obligatoire.\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <!--FirstName-->\r\n <div *ngIf=\"entityViewModel.ViewModel\" class=\"form-group has-feedback\">\r\n <label class=\"col-md-3 control-label\" for=\"FirstName-{{uniqueId}}\">Prénom</label>\r\n <div class=\"col-md-12\" [ngClass]=\"{'has-success': f.submitted && FirstName.valid, 'has-error' : f.submitted && !FirstName.valid}\">\r\n <input type=\"text\" attr.id=\"FirstName-{{uniqueId}}\" name=\"FirstName\" placeholder=\"Prénom\" class=\"form-control\"\r\n [(ngModel)]=\"entityViewModel.ViewModel.FirstName\" #FirstName=\"ngModel\" required [ngClass]=\"{'dflat-valid': FirstName.valid, 'dflat-invalid' : !FirstName.valid}\" />\r\n <span *ngIf=\"showValidationErrors\" class=\"glyphicon form-control-feedback\" [ngClass]=\"{'glyphicon-ok ': FirstName.valid, 'glyphicon-remove' : !FirstName.valid}\"></span>\r\n <span *ngIf=\"showValidationErrors && !FirstName.valid\" class=\"errorMessage\">\r\n Le prénom est un champ obligatoire.\r\n </span>\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n <!--Rôles-->\r\n <!-- <div *ngIf=\"entityViewModel.ViewModel\" class=\"form-group has-feedback\">\r\n <label class=\"col-md-3\" for=\"UserAccountCompanys-{{uniqueId}}\">Rôles</label>\r\n <div class=\"col-md-12\">\r\n <ng-select placeholder=\"Sélectionner un rôle\" name=\"UserAccountRoles\" attr.id=\"UserAccountRoles-{{uniqueId}}\"\r\n [items]=\"roleFieldDescriptor.Data\" [multiple]=\"true\" [hideSelected]=\"true\" bindValue=\"Id\" bindLabel=\"UniqueName\"\r\n [(ngModel)]=\"entityViewModel.ViewModel.UserAccountRoles\" #UserAccountRoles=\"ngModel\"\r\n [disabled]=\"!entityViewModel.ViewModel.IsAdmin\">\r\n </ng-select>\r\n </div>\r\n </div> -->\r\n\r\n <!--Société-->\r\n <!-- <div *ngIf=\"entityViewModel.ViewModel\" class=\"form-group has-feedback\">\r\n <label class=\"col-md-3\" for=\"UserAccountCompanys-{{uniqueId}}\">Société</label>\r\n <div class=\"col-md-12\">\r\n <ng-select placeholder=\"Sélectionner une société\" name=\"UserAccountCompanys\" attr.id=\"UserAccountCompanys-{{uniqueId}}\"\r\n [items]=\"field.Data\" [multiple]=\"true\" [hideSelected]=\"true\" bindValue=\"Id\" bindLabel=\"CompanyName\"\r\n [(ngModel)]=\"entityViewModel.ViewModel.UserAccountCompanys\" #UserAccountCompanys=\"ngModel\"\r\n [disabled]=\"!entityViewModel.ViewModel.IsAdmin\">\r\n </ng-select>\r\n </div>\r\n </div> -->\r\n\r\n <!-- Password -->\r\n <div *ngIf=\"entityViewModel.ViewModel\" class=\"form-group\">\r\n\r\n <div *ngIf=\"!isChangePassword\" class=\"col-md-12\">\r\n <button type=\"button\" (click)=\"changePassword()\" class=\"btn btn-link\">Changer le mot de passe</button>\r\n </div>\r\n\r\n <div *ngIf=\"isChangePassword\" class=\"col-md-12 password-well well\">\r\n <div>\r\n <!-- Current Password -->\r\n <div class=\"form-group has-feedback\">\r\n <label class=\"control-label col-md-3\" for=\"currentPassword-{{uniqueId}}\">Mot de passe actuel</label>\r\n <div class=\"col-md-12\" [ngClass]=\"{'has-success': f.submitted && currentPassword.valid, 'has-error' : f.submitted && !currentPassword.valid}\">\r\n <input type=\"password\" attr.id=\"currentPassword-{{uniqueId}}\" name=\"currentPassword\"\r\n placeholder=\"Saisir le mot de passe actuel\" class=\"form-control\" [(ngModel)]=\"entityViewModel.ViewModel.CurrentPassword\"\r\n #currentPassword=\"ngModel\" required />\r\n <span *ngIf=\"showValidationErrors && f.submitted\" class=\"glyphicon form-control-feedback\"\r\n [ngClass]=\"{'glyphicon-ok ': currentPassword.valid, 'glyphicon-remove' : !currentPassword.valid}\"></span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && !currentPassword.valid\" class=\"errorMessage\">\r\n Le mot de passe actuel est obligatoire.\r\n </span>\r\n </div>\r\n </div>\r\n <!-- Separator -->\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <hr class=\"password-separator-hr\" />\r\n </div>\r\n </div>\r\n <!-- New Password -->\r\n <div class=\"form-group has-feedback\">\r\n <label class=\"control-label col-md-3\" for=\"newPassword-{{uniqueId}}\">Nouveau mot de passe</label>\r\n <div class=\"col-md-12\" [ngClass]=\"{'has-success': f.submitted && newPassword.valid, 'has-error' : f.submitted && !newPassword.valid}\">\r\n <input type=\"password\" attr.id=\"newPassword-{{uniqueId}}\" name=\"newPassword\" placeholder=\"Enter new password\"\r\n class=\"form-control\" [(ngModel)]=\"entityViewModel.ViewModel.NewPassword\" #newPassword=\"ngModel\"\r\n required validateEqual=\"confirmPassword\" reverse=\"true\" />\r\n <span *ngIf=\"showValidationErrors && f.submitted\" class=\"glyphicon form-control-feedback\"\r\n [ngClass]=\"{'glyphicon-ok ': newPassword.valid, 'glyphicon-remove' : !newPassword.valid}\"></span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && !newPassword.valid\" class=\"errorMessage\">\r\n Le nouveau mot de passe est obligatoire.\r\n </span>\r\n </div>\r\n </div>\r\n <!-- Separator -->\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <hr class=\"password-separator-hr\" />\r\n </div>\r\n </div>\r\n\r\n <!-- Confirm Password -->\r\n <div class=\"form-group has-feedback\">\r\n <label class=\"control-label col-md-3\" for=\"confirmPassword-{{uniqueId}}\">Confirmez le mot de\r\n passe</label>\r\n <div class=\"col-md-12\" [ngClass]=\"{'has-success': f.submitted && confirmPassword.valid, 'has-error' : f.submitted && !confirmPassword.valid}\">\r\n <input type=\"password\" attr.id=\"confirmPassword-{{uniqueId}}\" name=\"confirmPassword\"\r\n placeholder=\"Confirmez le mot de passe\"\r\n class=\"form-control\" [(ngModel)]=\"entityViewModel.ViewModel.ConfirmPassword\"\r\n #confirmPassword=\"ngModel\" required validateEqual=\"newPassword\" />\r\n <span *ngIf=\"showValidationErrors && f.submitted\" class=\"glyphicon form-control-feedback\"\r\n [ngClass]=\"{'glyphicon-ok ': confirmPassword.valid, 'glyphicon-remove' : !confirmPassword.valid}\"></span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && confirmPassword.errors?.required\" class=\"errorMessage\">\r\n Le mot de passe de confirmation est obligatoire.\r\n </span>\r\n <span *ngIf=\"showValidationErrors && f.submitted && confirmPassword.errors?.validateEqual && !confirmPassword.errors?.required\"\r\n class=\"errorMessage\">\r\n Le nouveau mot de passe et le mot de passe de confirmation ne correspondent pas.\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n</div>\r\n","import { ApplicationService, BaseEditorComponent } from '@dflat-core/web/core-ux';\r\nimport { UserGroup } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityMenuItemProvider } from '@dflat-core/web/identity-root';\r\nimport { Component, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n\r\n@Component({\r\n selector: 'msw-usergroup-editor',\r\n templateUrl: '../../../../core-ux/src/lib/components/base-editor/base-editor.component.html',\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\n\r\nexport class UserGroupEditorComponent extends BaseEditorComponent<UserGroup>{\r\n\r\n getEntityKey(): string {\r\n return IdentityEntityKeys.UserGroup;\r\n }\r\n\r\n getTitle(withId: boolean): string {\r\n return withId ? ((this.id === \"0\") ? (`Nouveau groupe d'utilisateurs`) : (`Groupe d'utilisateurs (${this.id})`)): `Groupe d'utilisateurs`;\r\n }\r\n\r\n getPath(withId: boolean): string {\r\n return withId ? IdentityMenuItemProvider.GetLink(this.getEntityKey()) + '/' + this.id : IdentityMenuItemProvider.GetLink(this.getEntityKey());\r\n }\r\n constructor(app : ApplicationService, route : ActivatedRoute) {\r\n super(app, route); \r\n }\r\n\r\n}\r\n","<ng-container *ngIf=\"!isModal\">\r\n <div class=\"breadcrumb-panel\">\r\n <alg-breadcrumb></alg-breadcrumb>\r\n </div>\r\n</ng-container>\r\n\r\n<div class=\"editor-container\">\r\n <ng-container *ngIf=\"entityViewModel\">\r\n <ng-container *ngIf=\"entityViewModel\">\r\n <alg-property-grid\r\n #propertyGridComponent\r\n [validateAfterEachChange]=\"false\"\r\n (originalEntityChanged)=\"this.handleOriginalEntityChanged($event)\"\r\n [entityKey]=\"this.getEntityKey()\"\r\n (textZoneButtonClicked)=\"onTextZoneButtonClicked($event)\"\r\n (propertyModified)=\"this.propertyChanged($event)\"\r\n [specificSections]=\"specificSections\"\r\n >\r\n </alg-property-grid>\r\n </ng-container>\r\n\r\n <div *ngIf=\"showButtons\" class=\"footer-buttons\">\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-primary btn-flat\"\r\n [disabled]=\"!forceSaveButton && !dirty\"\r\n (click)=\"handleDialogButtonClick(false)\"\r\n >\r\n {{ saveButtonLabel }}\r\n </button>\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-secondary btn-flat\"\r\n (click)=\"handleDialogButtonClick(true)\"\r\n >\r\n Annuler\r\n </button>\r\n </div>\r\n </ng-container>\r\n</div>\r\n","import { AuthService, UserService } from '@dflat-core/web/core-services';\r\nimport { AccountDataService } from '@dflat-core/web/identity-data';\r\nimport { ActivationResults, ResetPasswordViewModel } from '@dflat-core/web/identity-model';\r\nimport { ActivateComponent } from '../activate/activate.component';\r\nimport { Component, EventEmitter, Input, Output, ChangeDetectionStrategy } from '@angular/core';\r\nimport { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\n\r\nexport function MustMatch(controlName: string, matchingControlName: string) {\r\n return (formGroup: UntypedFormGroup) => {\r\n const control = formGroup.controls[controlName];\r\n const matchingControl = formGroup.controls[matchingControlName];\r\n\r\n if (matchingControl.errors && !matchingControl.errors.mustMatch) {\r\n // return if another validator has already found an error on the matchingControl\r\n return;\r\n }\r\n\r\n // set error on matchingControl if validation fails\r\n if (control.value !== matchingControl.value) {\r\n matchingControl.setErrors({ mustMatch: true });\r\n } else {\r\n matchingControl.setErrors(null);\r\n }\r\n }\r\n}\r\n\r\n@Component({\r\n selector: 'msw-reset-password',\r\n templateUrl: './reset-password.component.html',\r\n styleUrls: ['./reset-password.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.Eager,\r\n standalone: false\r\n})\r\nexport class ResetPasswordComponent extends ActivateComponent {\r\n\r\n @Input()\r\n isModal: boolean=false;\r\n \r\n passwordSuccess: boolean = false;\r\n password: string ;\r\n password2: string ;\r\n passwordForm: UntypedFormGroup;\r\n\r\n @Output()\r\n connexionClick: EventEmitter<string> = new EventEmitter<string>();\r\n\r\n @Output()\r\n registerClick: EventEmitter<string> = new EventEmitter<string>();\r\n \r\n constructor(\r\n router: Router, \r\n route: ActivatedRoute, \r\n accountDataService: AccountDataService,\r\n authService : AuthService,\r\n userService: UserService,\r\n private formBuilder: UntypedFormBuilder\r\n\r\n ) \r\n { \r\n super(router, route, accountDataService, authService, userService);\r\n }\r\n goToConnect(){\r\n this.router.navigate(['/login']);\r\n }\r\n \r\n get f() { return this.passwordForm.controls; }\r\n resolve(event) {\r\n console.log(event);\r\n }\r\n ngOnInit() {\r\n \r\n \r\n this.passwordForm = this.formBuilder.group({\r\n passwd: ['', [Validators.required, Validators.minLength(6)]],\r\n passwd2: ['', [Validators.required, Validators.minLength(6)]],\r\n captchaToken: [null, Validators.required]\r\n }, {\r\n validator: MustMatch('passwd', 'passwd2')\r\n });\r\n super.ngOnInit();\r\n }\r\n isPasswordInitSuccess() {\r\n return this.passwordSuccess == true;\r\n }\r\n\r\n validatePassword() {\r\n this.activate(false);\r\n }\r\n\r\n activate(sendAgain: boolean) \r\n {\r\n this.passwordSuccess= false;\r\n this.hasErrors = false;\r\n this.loading = true;\r\n this.ActivationResults = undefined;\r\n this.errorMessage = '';\r\n\r\n // Initialisation du paramètre\r\n let parameter: ResetPasswordViewModel = {};\r\n parameter.ActivationCode = this.code;\r\n parameter.SendAgain= sendAgain;\r\n parameter.UserEmail = this.email;\r\n parameter.CaptchaToken = this.captchaToken;\r\n parameter.Password = this.passwordForm.controls[\"passwd\"].value;\r\n\r\n this.accountDataService.resetPassword(parameter)\r\n .subscribe(\r\n data => {\r\n \r\n this.ActivationResults = data;\r\n this.captchaToken = undefined;\r\n this.loading= false;\r\n if ( this.passwordForm.valid )\r\n this.passwordSuccess = true;\r\n this.passwordForm.reset();\r\n },\r\n error => {\r\n this.hasErrors = true;\r\n this.ActivationResults = ActivationResults.Error;\r\n this.errorMessage = \"Une erreur s'est produite pendant l'activation de votre compte\";\r\n this.captchaToken = undefined;\r\n this.loading= false;\r\n this.passwordForm.reset();\r\n }\r\n );\r\n }\r\n\r\n OnConnexionClick() \r\n {\r\n if( ! this.isModal )\r\n this.router.navigate(['/login']);\r\n else\r\n this.connexionClick.emit();\r\n }\r\n\r\n OnRegisterClick() \r\n {\r\n if( ! this.isModal )\r\n this.router.navigate(['/register']);\r\n else\r\n this.registerClick.emit();\r\n } \r\n}","<div class=\"login-form\">\r\n <div class=\"petit-titre\" style=\"text-align:center;margin-bottom: 15px;\">Réinitialisation de votre mot de passe</div>\r\n <ng-container *ngIf=\"isLoading()\">\r\n <div class=\"highlight\">\r\n <p>Le traitement de votre demande est en cours. Merci de patienter quelques instants...</p>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isLoading()\">\r\n <ng-container *ngIf=\"isPasswordInitSuccess()\">\r\n <div class=\"highlight\">\r\n <p>Félicitations, votre mot de passe a été réinitialisé avec succès !</p>\r\n </div>\r\n <div class=\"btn-bar btn-bar-rwd\">\r\n <button class=\"btn btn-link\" (click)=\"OnConnexionClick()\">Retour à l'écran d'accueil'</button>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"isSuccess() && ! isPasswordInitSuccess()\">\r\n <form [formGroup]=\"passwordForm\" (ngSubmit)=\"passwordForm.valid && validatePassword()\" validate>\r\n <div class=\"form-group\">\r\n <input type=\"password\" formControlName=\"passwd\" class=\"form-control\" placeholder=\"Entrez votre nouveau mot de passe\"\r\n >\r\n \r\n <div *ngIf=\"f.passwd.errors && f.passwd.dirty && f.passwd.touched\" class=\"input-alert\">\r\n <div *ngIf=\"f.passwd.errors?.required\">\r\n Le mot de passe est obligatoire\r\n </div>\r\n <div *ngIf=\"f.passwd.errors?.minlength\">\r\n Le mot de passe doit comporter au moins 6 caractères\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"form-group\">\r\n <input type=\"password\" formControlName=\"passwd2\" class=\"form-control\" placeholder=\"Confirmez votre nouveau mot de passe\"\r\n >\r\n \r\n <div *ngIf=\"f.passwd2.errors && f.passwd2.dirty && f.passwd2.touched\" class=\"input-alert\">\r\n <div *ngIf=\"f.passwd2.errors?.required\">\r\n Le mot de passe est obligatoire\r\n </div>\r\n <div *ngIf=\"f.passwd2.errors?.minlength\">\r\n Le mot de passe doit comporter au moins 6 caractères\r\n </div>\r\n <div *ngIf=\"f.passwd2.errors?.mustMatch\">\r\n Les 2 mots de passe ne correspondent pas !\r\n </div>\r\n \r\n </div>\r\n </div>\r\n <div style=\"display: flex;align-items: center;\">\r\n <div class=\"captcha\">\r\n <re-captcha \r\n formControlName=\"captchaToken\"\r\n name=\"captcha\"\r\n required\r\n siteKey=\"6Lcuj_4ZAAAAAKoa7Dyi7LeJRzyCfqqTpte-wPTi\"\r\n > \r\n </re-captcha>\r\n </div>\r\n </div>\r\n <div class=\"btn-bar btn-bar-rwd\">\r\n <button class=\"btn btn-primary\" [disabled]=\"!passwordForm.valid\" type=\"submit\"><span>Valider</span></button>\r\n <button class=\"btn btn-link\" (click)=\"OnConnexionClick()\">Retour à l'écran de connexion</button>\r\n </div> \r\n </form>\r\n \r\n \r\n </ng-container>\r\n <ng-container *ngIf=\"isSentAgain()\">\r\n <div class=\"highlight\">\r\n <p>Un mail de réinitilisation de votre mot de passe a été renvoyé à votre adresse mail, merci de vérifier votre messagerie.</p>\r\n </div>\r\n <div class=\"btn-bar btn-bar-rwd\">\r\n <button class=\"btn btn-link\" (click)=\"OnConnexionClick()\">Retour à l'écran d'accueil'</button>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"isError()\">\r\n <p class=\"text-error\">\r\n Une erreur s'est produite pendant la réinitialisation de votre mot de passe.\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"isExpired()\">\r\n <p class=\"text-error\">\r\n Le lien de réinitialisation de votre mot de passe n'est plus valide car le délai de 24h a été dépassé ou bien vous avez fait une demande plus récente.\r\n Cliquez sur le bouton ci-dessous pour renvoyer à nouveau un mail de réinitialisation.\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"isUserUnknown()\">\r\n <p class=\"text-error\">\r\n {{this.email}} : Aucun compte lié à cette addresse email n'a été trouvé.\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"isExpired() || isError() || isUserUnknown() || (isEmptyCode() && !isAlreadyActivated() && !isSentAgain() && ! isSuccess())\">\r\n <p>Merci de saisir votre email ci-dessous afin de recevoir un mail de réinitialisation de votre mot de passe.</p>\r\n <form (ngSubmit)=\"f.form.valid && sendAgain()\" #f=\"ngForm\" validate>\r\n <div class=\"form-group\">\r\n <input \r\n type=\"text\" class=\"form-control\" placeholder=\"Entrez votre addresse mail\" name=\"eml\"\r\n [(ngModel)]=\"email\" #eml=\"ngModel\" required [pattern]=\"emailPattern2\">\r\n <div *ngIf=\"eml.errors && (eml.dirty && eml.touched)\" class=\"input-alert\">\r\n <div *ngIf=\"eml.errors?.required\">\r\n L'email est obligatoire\r\n </div>\r\n <div *ngIf=\"eml.errors?.pattern\">\r\n L'email n'est pas valide\r\n </div>\r\n </div>\r\n </div>\r\n <div style=\"display: flex;align-items: center;\">\r\n <div class=\"captcha\">\r\n <re-captcha \r\n [(ngModel)]=\"captchaToken\"\r\n name=\"captcha\"\r\n required\r\n siteKey=\"6Lcuj_4ZAAAAAKoa7Dyi7LeJRzyCfqqTpte-wPTi\"\r\n > \r\n </re-captcha>\r\n </div>\r\n </div>\r\n <div class=\"btn-bar btn-bar-rwd\">\r\n <button class=\"btn btn-primary\" [disabled]=\"!f.form.valid\" type=\"submit\"><span>Valider</span></button>\r\n <button class=\"btn btn-link\" (click)=\"OnConnexionClick()\">Retour à l'écran d'accueil'</button>\r\n </div>\r\n </form>\r\n \r\n </ng-container>\r\n\r\n </ng-container>\r\n \r\n \r\n <!-- <kzk-login-disclaimer class=\"login-disclaimer\"></kzk-login-disclaimer> -->\r\n <ng-container *ngIf=\"hasErrors\">\r\n <div class=\"error-message\">\r\n <div>\r\n {{this.errorMessage}}\r\n </div>\r\n </div>\r\n </ng-container>\r\n</div>","import { CommonModule } from '@angular/common';\r\nimport { Injector, NgModule } from '@angular/core';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { NgSelectModule } from '@ng-select/ng-select';\r\nimport { RecaptchaFormsModule, RecaptchaModule } from 'ng-recaptcha-2';\r\n\r\nimport { CoreDataModule } from '@dflat-core/web/core-data';\r\nimport { CoreModelModule } from '@dflat-core/web/core-model';\r\nimport { CanDeactivateGuard, CoreUxModule, EntitySections, EntitySelectors } from '@dflat-core/web/core-ux';\r\nimport { IdentityDataModule } from '@dflat-core/web/identity-data';\r\nimport { IdentityModelModule } from '@dflat-core/web/identity-model';\r\nimport { IdentityEntityKeys, IdentityRootModule } from '@dflat-core/web/identity-root';\r\nimport { MetaUxModule } from '@dflat-core/web/meta-ux';\r\n\r\nimport { ActivateComponent } from './activate/activate.component';\r\nimport { UserProfileComponent } from './app/user-profile/user-profile.component';\r\nimport { AccountSecurityComponent } from './app/account-security/account-security.component';\r\nimport { IdentityGeneratedComponents, IdentityGeneratedRoutes, IdentityGeneratedSelectors } from './data-components/generated/identity-components.generated';\r\nimport { IdentityGeneratedSectionService } from './data-components/generated/identity-sections.generated';\r\nimport { UserPermissionComponent } from './data-components/userpermission.component';\r\nimport { UserRoleComponent } from './data-components/userrole.component';\r\nimport { RoleEditorComponent } from './editor-components/role-editor.component';\r\nimport { UserAccountEditorComponent } from './editor-components/user-account-editor.component';\r\nimport { UserProfileAccountComponent } from './editor-components/user-account-profile.component';\r\nimport { UserGroupEditorComponent } from './editor-components/user-group-editor.component';\r\nimport { ResetPasswordComponent } from './reset-password/reset-password.component';\r\nimport { UserActionService } from './services/user-action-service';\r\n\r\nconst components = [\r\n // Composants des entités (spécifiques, dérivés des composants générés) : voir generated/identity-components.generated.ts\r\n ...IdentityGeneratedComponents,\r\n\r\n // Écrans de compte : activation, mot de passe, profil (la connexion reste dans la coquille de System).\r\n ActivateComponent,\r\n ResetPasswordComponent,\r\n UserProfileComponent,\r\n AccountSecurityComponent,\r\n\r\n RoleEditorComponent,\r\n UserRoleComponent,\r\n UserPermissionComponent,\r\n UserAccountEditorComponent,\r\n UserProfileAccountComponent,\r\n UserGroupEditorComponent,\r\n];\r\n\r\n/**\r\n * Écrans du module Identity (Découpage modulaire System/Meta/Identity, D.4) : comptes, rôles, groupes,\r\n * sessions, activation et mot de passe. SystemUxModule l'importe pour ses composants ; les routes sont dans\r\n * IdentityRoutingModule, chargé sous /idy.\r\n */\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n CoreModelModule,\r\n CoreUxModule,\r\n CoreDataModule,\r\n MetaUxModule,\r\n IdentityModelModule,\r\n IdentityDataModule,\r\n IdentityRootModule,\r\n NgSelectModule,\r\n RecaptchaModule,\r\n RecaptchaFormsModule,\r\n ],\r\n declarations: [...components],\r\n exports: [...components],\r\n providers: [\r\n UserActionService,\r\n ],\r\n})\r\nexport class IdentityUxModule {\r\n constructor(injector: Injector) {\r\n // Sélecteurs d'entité des champs Custom (clés étrangères) des formulaires : voir generated/identity-components.generated.ts\r\n EntitySelectors.register(IdentityGeneratedSelectors, injector);\r\n // Onglets des entités liées des composants générés : voir generated/identity-sections.generated.ts\r\n EntitySections.register(injector.get(IdentityGeneratedSectionService));\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\nimport { CanDeactivateGuard } from '@dflat-core/web/core-ux';\r\nimport { IdentityEntityKeys } from '@dflat-core/web/identity-root';\r\nimport { IdentityGeneratedRoutes } from './data-components/generated/identity-components.generated';\r\nimport { UserAccountEditorComponent } from './editor-components/user-account-editor.component';\r\nimport { UserGroupEditorComponent } from './editor-components/user-group-editor.component';\r\nimport { IdentityUxModule } from './identity-ux.module';\r\n\r\n/**\r\n * Routes des écrans du module Identity, chargées par l'application sous /idy (Découpage modulaire\r\n * System/Meta/Identity) : { path: 'idy', loadChildren: () => import('@dflat-core/web/identity-ux').then(m => m.IdentityRoutingModule) }.\r\n */\r\n@NgModule({\r\n imports: [\r\n IdentityUxModule,\r\n RouterModule.forChild([\r\n // Routes des composants des entités (clé d'entité) : voir generated/identity-components.generated.ts\r\n ...IdentityGeneratedRoutes,\r\n { path: IdentityEntityKeys.UserAccount + '/:id', component: UserAccountEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n { path: IdentityEntityKeys.UserGroup + '/:id', component: UserGroupEditorComponent, canDeactivate: [CanDeactivateGuard] },\r\n ]),\r\n ],\r\n})\r\nexport class IdentityRoutingModule {}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAa,oBAAb,MAAa,kBAAiB;CAY5B,YACY,QACA,OACA,oBACA,aACA,aAAwB;EAJxB,KAAA,SAAA;EACA,KAAA,QAAA;EACA,KAAA,qBAAA;EACA,KAAA,cAAA;EACA,KAAA,cAAA;EAdZ,KAAA,YAAsB;EAEtB,KAAA,UAAmB;EACnB,KAAA,oBAAuC;EAGvC,KAAA,gBAAwB;CASpB;CAEJ,WAAQ;EAGN,IAAI,KAAK,YAAY,YACnB,KAAK,QAAQ,KAAK,YAAY,kBAAkB;EAElD,KAAK,MAAM,YA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